@inkeep/open-knowledge 0.12.0-beta.13 → 0.12.0-beta.15
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/THIRD_PARTY_NOTICES.md +35 -0
- package/dist/_baseFor-m0TxKeb9.mjs +2 -0
- package/dist/alias-JE7RI5QX-DmHh8yog.mjs +1 -0
- package/dist/arc-Doj9VrmJ.mjs +2 -0
- package/dist/architecture-YZFGNWBL-YPACCZ88.mjs +1 -0
- package/dist/architectureDiagram-Q4EWVU46-C9cSuC8m.mjs +37 -0
- package/dist/array-1jkOhClC.mjs +2 -0
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +3 -3
- package/dist/awk2-POPGKRAI-C7696e-z.mjs +1 -0
- package/dist/{banner-BeneQTB4.mjs → banner-BxCFCyu8.mjs} +2 -2
- package/dist/base64-4YMZCVJ5-BIHNwDj2.mjs +1 -0
- package/dist/basename-AA2KJYZQ-Dcz4Ls85.mjs +1 -0
- package/dist/bash-IJWYRKFO-DgruzS3i.mjs +1 -0
- package/dist/blockDiagram-DXYQGD6D-Dr7L7QsL.mjs +133 -0
- package/dist/build-CCDQyip-.mjs +1 -0
- package/dist/{build-CJEQ0nGy.mjs → build-DCHzh6iE.mjs} +1 -1
- package/dist/c4Diagram-AHTNJAMY-CPm6kKNR.mjs +11 -0
- package/dist/cat-RDUMLXKC-BJJIS9lB.mjs +1 -0
- package/dist/channel-DE79NHCf.mjs +2 -0
- package/dist/chmod-SYMGL4JA-C1Ie7s0s.mjs +1 -0
- package/dist/{chokidar-BDjANGpQ.mjs → chokidar-Bu9Rdqzq.mjs} +1 -1
- package/dist/{chunk-24IMIIXA-C-Zyd2K_.mjs → chunk-24IMIIXA-DaS5XS55.mjs} +2 -2
- package/dist/chunk-2KRD3SAO-BXl7sX-7.mjs +2 -0
- package/dist/chunk-336JU56O-KTMEs5Wk.mjs +2 -0
- package/dist/{chunk-3THT3N7L-Ce6LrnIA.mjs → chunk-3THT3N7L-B1WzJUh4.mjs} +1 -1
- package/dist/{chunk-3ZUFRYJ4-C93H8j0V.mjs → chunk-3ZUFRYJ4-Bv1jGN68.mjs} +1 -1
- package/dist/chunk-426QAEUC-DUpKwtVu.mjs +2 -0
- package/dist/{chunk-44UOCSGV-uErOrz7G.mjs → chunk-44UOCSGV-BZ6LfyW2.mjs} +1 -1
- package/dist/chunk-4BX2VUAB-DM-mXRDw.mjs +2 -0
- package/dist/{chunk-4GTNDTRF-_OVmXcJ-.mjs → chunk-4GTNDTRF-DLnFbNSw.mjs} +2 -2
- package/dist/{chunk-4HHKTUW3-Dm69hDaZ.mjs → chunk-4HHKTUW3-Ct4ue15f.mjs} +1 -1
- package/dist/{chunk-4Q4SM6WR-DDQRsilN.mjs → chunk-4Q4SM6WR-CAvCnPq5.mjs} +2 -2
- package/dist/chunk-4TB4RGXK-Ct6WjPoY.mjs +207 -0
- package/dist/chunk-55IACEB6-Cmyc0XwJ.mjs +2 -0
- package/dist/{chunk-55VFSPNA-DVZfQAzN.mjs → chunk-55VFSPNA-RFvY6zq0.mjs} +2 -2
- package/dist/chunk-5FUZZQ4R-Bf6nbyQG.mjs +63 -0
- package/dist/chunk-5PVQY5BW-DUXm3tDu.mjs +3 -0
- package/dist/{chunk-5QMZ5MUS-BfIuRNkK.mjs → chunk-5QMZ5MUS-BwpNU33k.mjs} +2 -2
- package/dist/{chunk-5QVNJEHU-BvsipSFW.mjs → chunk-5QVNJEHU-BV0xuiYW.mjs} +2 -2
- package/dist/{chunk-5V6VZH6T-BCr5_GDF.mjs → chunk-5V6VZH6T-ByuVaPWr.mjs} +2 -2
- package/dist/{chunk-62RKD26F-CvuML91F.mjs → chunk-62RKD26F-DebCAz0V.mjs} +2 -2
- package/dist/{chunk-64BAICW3-CTJNEx4Q.mjs → chunk-64BAICW3-BlirlXmE.mjs} +2 -2
- package/dist/chunk-67CJDMHE-C58W8DAL.mjs +2 -0
- package/dist/{chunk-74CEPOFO-D1bzz49u.mjs → chunk-74CEPOFO-V0JXh91S.mjs} +1 -1
- package/dist/{chunk-7L36YK2X-RiPZFKaV.mjs → chunk-7L36YK2X-B3QRwLbB.mjs} +1 -1
- package/dist/chunk-7N4EOEYR-DzEIb3Sc.mjs +2 -0
- package/dist/{chunk-7TSDKFEO-a-GUGBTu.mjs → chunk-7TSDKFEO-CMVuiOdP.mjs} +1 -1
- package/dist/{chunk-A4HU7SVR-hefV_YmW.mjs → chunk-A4HU7SVR-Bjuqsbev.mjs} +1 -1
- package/dist/{chunk-A4JSPFCI-k-tJSZgB.mjs → chunk-A4JSPFCI-CQJoYugB.mjs} +2 -2
- package/dist/{chunk-A5O5YHGN-C6ngIqYR.mjs → chunk-A5O5YHGN-DApqA6Ow.mjs} +2 -2
- package/dist/{chunk-A65PWWJC-D7J5l9eq.mjs → chunk-A65PWWJC-GGt9898w.mjs} +2 -2
- package/dist/{chunk-A7A2DBEE-PLfkXLI4.mjs → chunk-A7A2DBEE-BqvlRSRw.mjs} +1 -1
- package/dist/{chunk-A7ICOL4V-Drb3XsEL.mjs → chunk-A7ICOL4V-D5TsVU6v.mjs} +2 -2
- package/dist/chunk-AA7GKIK3-DKgpQZxa.mjs +2 -0
- package/dist/{chunk-ALLTKNUZ-BMiTDN50.mjs → chunk-ALLTKNUZ-4H3OLfNN.mjs} +2 -2
- package/dist/{chunk-APT7OOP2-CXHnSuct.mjs → chunk-APT7OOP2-DnIeUlVe.mjs} +2 -2
- package/dist/{chunk-BBXLRYSX-Oks1GMhO.mjs → chunk-BBXLRYSX-XWD4jM9A.mjs} +2 -2
- package/dist/{chunk-BRGMQKJV-CHO764qS.mjs → chunk-BRGMQKJV-CHbk2NqS.mjs} +3 -3
- package/dist/chunk-BSJP7CBP-BG3yJGkJ.mjs +2 -0
- package/dist/{chunk-FK9Q3tQk.mjs → chunk-C94x7I9S.mjs} +1 -1
- package/dist/chunk-CIAEETIT-CH33zQ9L.mjs +2 -0
- package/dist/{chunk-CR5AFCPT-CH8ZGz3B.mjs → chunk-CR5AFCPT-DN7EAdus.mjs} +2 -2
- package/dist/{chunk-CWQS3NFK-BP3kiNgH.mjs → chunk-CWQS3NFK-BkE4vqrf.mjs} +1 -1
- package/dist/{chunk-D4J545R4-C8nMOauR.mjs → chunk-D4J545R4-KlK3EOFl.mjs} +2 -2
- package/dist/{chunk-D6CWQ5DW-BgQGt8eQ.mjs → chunk-D6CWQ5DW-CF9bBHyK.mjs} +2 -2
- package/dist/{chunk-D7MEQ3VN-Csvth_Ss.mjs → chunk-D7MEQ3VN-BM_kIbvf.mjs} +2 -2
- package/dist/{chunk-DCAAORBQ-BdrR5ttw.mjs → chunk-DCAAORBQ-BUMlCZ4-.mjs} +2 -2
- package/dist/{chunk-DXB73IDG-C2RuFAAY.mjs → chunk-DXB73IDG-F_tmy-Lz.mjs} +2 -2
- package/dist/chunk-EDXVE4YY-CI4s3JHP.mjs +2 -0
- package/dist/{chunk-EEXR5ZDP-C5AJH114.mjs → chunk-EEXR5ZDP-CvpAxUxM.mjs} +1 -1
- package/dist/{chunk-EIZGF4BS-8bsVXqW0.mjs → chunk-EIZGF4BS-C8wRSfCC.mjs} +2 -2
- package/dist/chunk-ENJZ2VHE-CQwjtY5A.mjs +11 -0
- package/dist/{chunk-F23WWYKW-DST0dB7V.mjs → chunk-F23WWYKW-DLeNVzzD.mjs} +2 -2
- package/dist/{chunk-F55TLFGB-Bkfd8ak_.mjs → chunk-F55TLFGB-BZSRX-Vi.mjs} +2 -2
- package/dist/{chunk-FEIOJCZD-DmvuPNqm.mjs → chunk-FEIOJCZD-NzTooVTc.mjs} +2 -2
- package/dist/chunk-FMBD7UC4-CAloFUY3.mjs +16 -0
- package/dist/chunk-FOC6F5B3-Cv5O0Fxp.mjs +2 -0
- package/dist/{chunk-GCTKCWKD-Deqi1D_N.mjs → chunk-GCTKCWKD-D3J1Ev9z.mjs} +1 -1
- package/dist/{chunk-GFQRA5P5-ePq2jelx.mjs → chunk-GFQRA5P5-DbAN9IDm.mjs} +1 -1
- package/dist/{chunk-GOV5EKKI-CyL1eJ32.mjs → chunk-GOV5EKKI-CDGzZWfT.mjs} +2 -2
- package/dist/{chunk-GXVXFKBA-993FoPmq.mjs → chunk-GXVXFKBA-D0BDCtkE.mjs} +2 -2
- package/dist/{chunk-HDQ56CKY-pGV4pOJA.mjs → chunk-HDQ56CKY-DZc2LbWr.mjs} +2 -2
- package/dist/{chunk-HJQJAYMS-Ci3vsKQW.mjs → chunk-HJQJAYMS-BS_JF11O.mjs} +1 -1
- package/dist/{chunk-HJWBQKYG-UZig4wUt.mjs → chunk-HJWBQKYG-DknkBuxy.mjs} +2 -2
- package/dist/{chunk-HWBSOZZR-BeVrNfQw.mjs → chunk-HWBSOZZR-5PJ_z6D6.mjs} +2 -2
- package/dist/{chunk-HWKDQ44K-CPSjqtR_.mjs → chunk-HWKDQ44K-BJxdK4fT.mjs} +2 -2
- package/dist/{chunk-I57KEIP3-5RFY25TO.mjs → chunk-I57KEIP3-DSoF8c_0.mjs} +2 -2
- package/dist/chunk-ICPOFSXX-C--tVIY5.mjs +123 -0
- package/dist/{chunk-IPJHKYVM-D6H6ZTtk.mjs → chunk-IPJHKYVM-CUKythEA.mjs} +1 -1
- package/dist/{chunk-J642UCRS-D87gHOLP.mjs → chunk-J642UCRS-HjD8qpZD.mjs} +2 -2
- package/dist/{chunk-JVPRLUMK-DnQCNjpq.mjs → chunk-JVPRLUMK-D6CRdXSO.mjs} +2 -2
- package/dist/chunk-K5T4RW27-BPgPjo39.mjs +98 -0
- package/dist/chunk-KGLVRYIC-CmkADDeV.mjs +2 -0
- package/dist/{chunk-KMEYNNUA-DfdK88O_.mjs → chunk-KMEYNNUA-Qk0eg7gN.mjs} +2 -2
- package/dist/chunk-LIHQZDEY-Fy8O-IVI.mjs +2 -0
- package/dist/{chunk-LL3S3NLB-DxXgE3kY.mjs → chunk-LL3S3NLB-CH16p_-s.mjs} +2 -2
- package/dist/{chunk-LPQPILI2-DyyhWSR7.mjs → chunk-LPQPILI2-OoVL_l9j.mjs} +2 -2
- package/dist/{chunk-LTZRCH7N-GAjTFNwG.mjs → chunk-LTZRCH7N-BfgCUlp9.mjs} +2 -2
- package/dist/{chunk-LWEGUNWT-BALY4RLC.mjs → chunk-LWEGUNWT-DhbhFY11.mjs} +2 -2
- package/dist/{chunk-MDDMCKUK-poQ25EjI.mjs → chunk-MDDMCKUK-ChL1CU4m.mjs} +2 -2
- package/dist/{chunk-MDLLFABN-oBQf6bGE.mjs → chunk-MDLLFABN-UsHGHHoh.mjs} +2 -2
- package/dist/{chunk-MHTUABJP-dKmK6Hw7.mjs → chunk-MHTUABJP-Dk5ocjFo.mjs} +1 -1
- package/dist/{chunk-MIZPJHVH-BdoPqh_Y.mjs → chunk-MIZPJHVH-BD7tHmLL.mjs} +2 -2
- package/dist/{chunk-MLXIYONF-DwewZM3r.mjs → chunk-MLXIYONF-CV7WHBm-.mjs} +2 -2
- package/dist/{chunk-MYE6AGBJ-B4pRo9ma.mjs → chunk-MYE6AGBJ-DwzjGrc0.mjs} +2 -2
- package/dist/{chunk-NAERJDUW-BFcmkHme.mjs → chunk-NAERJDUW-Cyg2DAzO.mjs} +2 -2
- package/dist/{chunk-NCNPKYJZ-BFGan4lR.mjs → chunk-NCNPKYJZ-Ct0_l0YT.mjs} +2 -2
- package/dist/{chunk-NUYSJFDK-DAvAseHr.mjs → chunk-NUYSJFDK-BH2DjyxF.mjs} +2 -2
- package/dist/{chunk-NYQYO467-_2947cgi.mjs → chunk-NYQYO467-CY88QCuT.mjs} +2 -2
- package/dist/{chunk-OARHFVLG-vxL5zuWx.mjs → chunk-OARHFVLG-dXiYYC4o.mjs} +2 -2
- package/dist/{chunk-OCLXQMOG-C7k2qEN6.mjs → chunk-OCLXQMOG-DOkdFgyf.mjs} +2 -2
- package/dist/{chunk-OCS6LSEM-Lh1p0H-V.mjs → chunk-OCS6LSEM-Bcx6uxmm.mjs} +2 -2
- package/dist/{chunk-OJDRYQWQ-DWhg7YHU.mjs → chunk-OJDRYQWQ-CmrD0Dg2.mjs} +1 -1
- package/dist/{chunk-OL3S66CO-B3hSNlNP.mjs → chunk-OL3S66CO-CWEDi2F_.mjs} +2 -2
- package/dist/chunk-ORNJ4GCN-R_gUIosC.mjs +2 -0
- package/dist/chunk-OYMX7WX6-Dvg98Zb-.mjs +232 -0
- package/dist/{chunk-PBXLG62G-MmAqjdXR.mjs → chunk-PBXLG62G-CpvczNyQ.mjs} +2 -2
- package/dist/{chunk-PP6PSHAB-DMC_XCfO.mjs → chunk-PP6PSHAB-DQ3LPONR.mjs} +1 -1
- package/dist/{chunk-PYSFUGCK-CY7pclEB.mjs → chunk-PYSFUGCK-B_Gv8rUn.mjs} +2 -2
- package/dist/{chunk-QCDB2VPH-D1RuXtOm.mjs → chunk-QCDB2VPH-Bays5mAr.mjs} +2 -2
- package/dist/{chunk-QJ7O6ZN3-BH67tCjg.mjs → chunk-QJ7O6ZN3-BCF2wp2J.mjs} +2 -2
- package/dist/chunk-QZHKN3VN-D0OJ2eQ1.mjs +2 -0
- package/dist/{chunk-R6QSAL5T-CtbJTvt9.mjs → chunk-R6QSAL5T-RaNW7MSS.mjs} +1 -1
- package/dist/{chunk-R6VWJ2ZL-D1Ufj9fh.mjs → chunk-R6VWJ2ZL-BVeTwIsz.mjs} +1 -1
- package/dist/{chunk-RPNGRAAP-BughPjdR.mjs → chunk-RPNGRAAP-yHFoBjjv.mjs} +2 -2
- package/dist/{chunk-SDNKECQQ-C3GEf3VZ.mjs → chunk-SDNKECQQ-BsAYzqU5.mjs} +2 -2
- package/dist/{chunk-SYMJJMQ4-DLPoQaug.mjs → chunk-SYMJJMQ4-jdmKoBFb.mjs} +2 -2
- package/dist/{chunk-T56QNPHK-TppyesRp.mjs → chunk-T56QNPHK-DmDxJbbD.mjs} +2 -2
- package/dist/{chunk-TLSUDHID-B2VV2ufQ.mjs → chunk-TLSUDHID-CSDR438C.mjs} +2 -2
- package/dist/{chunk-TOMNU26N-DfLjxpHW.mjs → chunk-TOMNU26N-CrDa7MpH.mjs} +2 -2
- package/dist/{chunk-TXBZCHCQ-l48TczF5.mjs → chunk-TXBZCHCQ-BxbbtyNr.mjs} +2 -2
- package/dist/chunk-U2HBQHQK-C1Q2DiEX.mjs +71 -0
- package/dist/{chunk-UNYNJIFU--HT-3lrq.mjs → chunk-UNYNJIFU-CZ2Mla0s.mjs} +3 -3
- package/dist/{chunk-V7TAPXDL-CnKUp2df.mjs → chunk-V7TAPXDL-CKif4_mH.mjs} +2 -2
- package/dist/{chunk-VJFXDYWH-IiUXkKX0.mjs → chunk-VJFXDYWH-CWlZv59U.mjs} +2 -2
- package/dist/{chunk-VLGZJRPG-DbWYxLfI.mjs → chunk-VLGZJRPG-DpYP_EVp.mjs} +2 -2
- package/dist/{chunk-VOBGTVA6-BT7gUxqf.mjs → chunk-VOBGTVA6-D6fSjWnx.mjs} +2 -2
- package/dist/{chunk-VYOJP4TV-BvibOnKG.mjs → chunk-VYOJP4TV-DN1CSkP5.mjs} +2 -2
- package/dist/{chunk-WKFATFPP-DCZdrA8x.mjs → chunk-WKFATFPP-CoPg2OGf.mjs} +2 -2
- package/dist/{chunk-X2AJGDEF-BaH6i1Rq.mjs → chunk-X2AJGDEF-ClcErtij.mjs} +1 -1
- package/dist/chunk-X2U36JSP-BiF0R9ys.mjs +2 -0
- package/dist/{chunk-XHM67O4N-BWGDFyz_.mjs → chunk-XHM67O4N-C_wCK9HT.mjs} +1 -1
- package/dist/{chunk-XKQRETAK-cVWA9gEB.mjs → chunk-XKQRETAK-BC2HZ_y9.mjs} +2 -2
- package/dist/{chunk-XORM457F-D-QrjagQ.mjs → chunk-XORM457F-BuPOSqOe.mjs} +2 -2
- package/dist/chunk-XPW4576I-BkucPPwf.mjs +39 -0
- package/dist/{chunk-XVDPCNWR-CtK-Xs2O.mjs → chunk-XVDPCNWR-CkzIJQaO.mjs} +2 -2
- package/dist/{chunk-YCFVLTST-CFJxSbsH.mjs → chunk-YCFVLTST-DsF45PbT.mjs} +2 -2
- package/dist/{chunk-YFG2CMIF-DkT4NiqV.mjs → chunk-YFG2CMIF-DjdwxBNc.mjs} +2 -2
- package/dist/{chunk-YNYSPYQ5-iQGTFdx0.mjs → chunk-YNYSPYQ5-gU4-j5DO.mjs} +1 -1
- package/dist/{chunk-YS3AZT3J-w6Dw8reo.mjs → chunk-YS3AZT3J-CB0wWPLc.mjs} +2 -2
- package/dist/{chunk-YTNYSM6T-Cz_dxkBy.mjs → chunk-YTNYSM6T-DpkSVTln.mjs} +2 -2
- package/dist/chunk-YZCP3GAM-DRdMIQsB.mjs +2 -0
- package/dist/{chunk-Z6LRHWXI-BcgkPhhu.mjs → chunk-Z6LRHWXI-EsbeaQ3V.mjs} +2 -2
- package/dist/{chunk-Z7JVV2SM-BzR-yvwK.mjs → chunk-Z7JVV2SM-BtFBVQEW.mjs} +2 -2
- package/dist/chunk-ZZ45TVLE-DwKS4e_N.mjs +2 -0
- package/dist/classDiagram-6PBFFD2Q-BrpY9pLd.mjs +2 -0
- package/dist/classDiagram-v2-HSJHXN6E-DDV6mz7Y.mjs +2 -0
- package/dist/clear-5CZ5X4YR-CHSnzs8i.mjs +1 -0
- package/dist/cli.mjs +48 -48
- package/dist/clone-BD_JFVST.mjs +2 -0
- package/dist/{colors-BtKMHmBX.mjs → colors-8SzMRIVy.mjs} +2 -2
- package/dist/colors-CkPULM8m.mjs +1 -0
- package/dist/column-WLPMMSTS-DTBoovzp.mjs +1 -0
- package/dist/comm-5SLSESQG-DT3SY7zS.mjs +1 -0
- package/dist/constants-Dtudr2AF.mjs +2 -0
- package/dist/cose-bilkent-S5V4N54A-E5vxHQ63.mjs +2 -0
- package/dist/cp-XOYR4ABJ-Bs6Rpbb2.mjs +1 -0
- package/dist/{curl-47BFPSFW-CdMFK7aW.mjs → curl-47BFPSFW-xgS5bDTx.mjs} +2 -2
- package/dist/cut-OPC3VAGB-Bm1HBn07.mjs +1 -0
- package/dist/cytoscape.esm-BNCKY88j.mjs +332 -0
- package/dist/dagre-KV5264BT-Ci7CcQr4.mjs +5 -0
- package/dist/dagre-L3rg9n9q.mjs +2 -0
- package/dist/date-DD7FVA2V-Dv3os04S.mjs +1 -0
- package/dist/defaultLocale-BljHASC9.mjs +2 -0
- package/dist/diagram-5BDNPKRD-BM3C88Zx.mjs +11 -0
- package/dist/diagram-G4DWMVQ6-Dt1Kt-mj.mjs +25 -0
- package/dist/diagram-MMDJMWI5-DomPsk0L.mjs +44 -0
- package/dist/diagram-TYMM5635-eOfCqwhs.mjs +25 -0
- package/dist/diff-HJF2MPDN-Di-oK2tx.mjs +1 -0
- package/dist/dirname-LEMTZZFS-D-u8wJ0b.mjs +1 -0
- package/dist/{dist-Cq3lpa-J.mjs → dist-D7myPw4s.mjs} +46 -46
- package/dist/dist-DZb_HoiN.mjs +2 -0
- package/dist/{dist-DB_zTxUW.mjs → dist-GL5zcXSU.mjs} +1 -1
- package/dist/dist-bundle-BnlRWriT.mjs +1 -0
- package/dist/{dist-bundle-B3l-HkEL.mjs → dist-bundle-D75dREX-.mjs} +2 -2
- package/dist/du-WO2ENHXQ-CO_jR0w6.mjs +1 -0
- package/dist/echo-O45JWWI2-RBT2dq5Y.mjs +1 -0
- package/dist/env-5EPCWSXR-DSwwgRF5.mjs +1 -0
- package/dist/erDiagram-SMLLAGMA-CPcwhEue.mjs +86 -0
- package/dist/{esm-CEs3LWY3.mjs → esm-BLMtE3s6.mjs} +2 -2
- package/dist/{esm-k1YlZnpm.mjs → esm-BS2W3Uzl.mjs} +2 -2
- package/dist/{execAsync-0jii24p9.mjs → execAsync-B4xEJACY.mjs} +2 -2
- package/dist/{execAsync-Czqc-yAz.mjs → execAsync-Chx_LJuI.mjs} +2 -2
- package/dist/{execAsync-DgmLXmTx.mjs → execAsync-DunQtInX.mjs} +2 -2
- package/dist/expand-DTNXU4LQ-CtzV8vlq.mjs +1 -0
- package/dist/expansion-ENLSRCXJ-CNi8PTVy.mjs +1 -0
- package/dist/expr-5T3UU5KE-BOXtVHu2.mjs +1 -0
- package/dist/file-ZIGAJ4YS-Bt-1Wusv.mjs +1 -0
- package/dist/find-TPUOAIUQ-CJd25AiD.mjs +1 -0
- package/dist/flag-coverage-QT4N2Z44-DJYVWsW6.mjs +2 -0
- package/dist/flatten-CX5MwHL4.mjs +2 -0
- package/dist/flowDiagram-DWJPFMVM-WnIxEgSt.mjs +163 -0
- package/dist/fold-LDSORVYE-DZ2L21IZ.mjs +1 -0
- package/dist/ganttDiagram-T4ZO3ILL-BJEuIZ2X.mjs +293 -0
- package/dist/getMachineId-bsd-B7ue3N1o.mjs +2 -0
- package/dist/getMachineId-bsd-DYQqYqxN.mjs +2 -0
- package/dist/getMachineId-bsd-ucL-2FoT.mjs +2 -0
- package/dist/{getMachineId-darwin-C4PiguA-.mjs → getMachineId-darwin-BNCkZc-0.mjs} +2 -2
- package/dist/{getMachineId-darwin-COcA_c6l.mjs → getMachineId-darwin-CSTYV_Bd.mjs} +2 -2
- package/dist/{getMachineId-darwin-CywdnyvB.mjs → getMachineId-darwin-DWmBOUuk.mjs} +2 -2
- package/dist/getMachineId-linux-BaNp1ZEm.mjs +2 -0
- package/dist/getMachineId-linux-Bv6oOXxT.mjs +2 -0
- package/dist/getMachineId-linux-tTgUzx-Z.mjs +2 -0
- package/dist/getMachineId-unsupported-Kf9p6LJQ.mjs +2 -0
- package/dist/getMachineId-unsupported-fh_7WYkB.mjs +2 -0
- package/dist/getMachineId-unsupported-iDvWGFBk.mjs +2 -0
- package/dist/{getMachineId-win-B20yaCSB.mjs → getMachineId-win-Bo1_B38N.mjs} +2 -2
- package/dist/{getMachineId-win-BXWDfxLS.mjs → getMachineId-win-DHmdubaR.mjs} +2 -2
- package/dist/{getMachineId-win-BfSvDvM7.mjs → getMachineId-win-DQ2s9Z1n.mjs} +2 -2
- package/dist/{gh-detect-DW_FsIun.mjs → gh-detect-CNO7EkgF.mjs} +2 -2
- package/dist/{git-handle--dq7Gq14-C8bnaqHA.mjs → git-handle--dq7Gq14-BpH0pmv5.mjs} +2 -2
- package/dist/git-handle-BaZ9y3AC-CCCU9J5d.mjs +1 -0
- package/dist/gitGraph-7Q5UKJZL-ClGjTWw6.mjs +1 -0
- package/dist/gitGraphDiagram-UUTBAWPF-BqA8KMTw.mjs +107 -0
- package/dist/graphlib-BI4uS4Lx.mjs +2 -0
- package/dist/grep-3AIAIJVR-CzG01gPs.mjs +1 -0
- package/dist/gzip-AQXSGOVS-B_BV2fa3.mjs +1 -0
- package/dist/head-HT2B6D2J-CjBr6WQ1.mjs +1 -0
- package/dist/help-VVWX7SA5-C4HsVKec.mjs +1 -0
- package/dist/history-J4QRNGRO-1CYG7cs0.mjs +1 -0
- package/dist/hostname-BK6HG2DE-BLS00ZWn.mjs +1 -0
- package/dist/html-to-markdown-TFCECAGV-5Fopg2Q5.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/info-OMHHGYJF-11Qh6VJr.mjs +1 -0
- package/dist/infoDiagram-42DDH7IO-0lM1lRCH.mjs +3 -0
- package/dist/{init-OLCCUCLO.mjs → init-C-Sic0J-.mjs} +5 -5
- package/dist/init-Cxmln5T5.mjs +1 -0
- package/dist/init-L1KCVOHH.mjs +2 -0
- package/dist/{is-object-C-4FJ0rP.mjs → is-object-Cie0xXKD.mjs} +1 -1
- package/dist/isEmpty-CaTO-fHo.mjs +2 -0
- package/dist/ishikawaDiagram-UXIWVN3A-j-jlqjJX.mjs +71 -0
- package/dist/join-GG2LDHE5-C_A2RnwJ.mjs +1 -0
- package/dist/journeyDiagram-VCZTEJTY-BDX_OcrR.mjs +140 -0
- package/dist/jq-ODXZBPLY-hdWY1RUY.mjs +1 -0
- package/dist/{js-exec-M6UR76J5-Bo7dCQVP.mjs → js-exec-M6UR76J5-Cu6NIWHE.mjs} +2 -2
- package/dist/kanban-definition-6JOO6SKY-C5XJUD3U.mjs +90 -0
- package/dist/katex-DEJL_MaU.mjs +258 -0
- package/dist/{lib-Dl2j2VNl.mjs → lib-BbNAtG4h.mjs} +2 -2
- package/dist/lib-CItGM3rN.mjs +195 -0
- package/dist/{libesm-D3nlnq5U.mjs → libesm-Ob3yvbRV.mjs} +1 -1
- package/dist/line-C6RZPh4T.mjs +2 -0
- package/dist/linear-gA98NGf7.mjs +2 -0
- package/dist/ln-4TRFBYAT-CMm4PFgi.mjs +1 -0
- package/dist/loader-DDttka0M.mjs +1 -0
- package/dist/{loader-BEE6_Oez.mjs → loader-DlkjgmrD.mjs} +2 -2
- package/dist/ls-KSXFZCWH-Beyjypib.mjs +1 -0
- package/dist/{lzma-DMoteSiK.mjs → lzma-D4yjI8KW.mjs} +1 -1
- package/dist/{mcp-migrate-event-BF8ILHwp.mjs → mcp-migrate-event-D0NrGjvc.mjs} +1 -1
- package/dist/md5sum-INMIK4DX-C2RH1Ljb.mjs +1 -0
- package/dist/mermaid-parser.core-Cx4njenA.mjs +4 -0
- package/dist/mermaid.core-CcmmzbTt.mjs +16 -0
- package/dist/mindmap-definition-QFDTVHPH-WLdthwDy.mjs +97 -0
- package/dist/mkdir-TDEMSB6C-BeLs_C7x.mjs +1 -0
- package/dist/mv-Z6MORUFL-BDAoI0Wd.mjs +1 -0
- package/dist/nl-U5YJDM32-SP99R3HJ.mjs +1 -0
- package/dist/od-VJEF2UR5-BR0Ho1t5.mjs +1 -0
- package/dist/{open-browser-C6LU_1mt.mjs → open-browser-DHTbHSqx.mjs} +1 -1
- package/dist/ordinal-BCuCMCHk.mjs +2 -0
- package/dist/packet-4T2RLAQJ-jzF54bgp.mjs +1 -0
- package/dist/paste-7N6AFSDS-Bz3kd4hU.mjs +1 -0
- package/dist/path-C9DYqGo_.mjs +2 -0
- package/dist/pie-ZZUOXDRM-x8WFG16Q.mjs +1 -0
- package/dist/pieDiagram-DEJITSTG-7oeIAT-R.mjs +31 -0
- package/dist/preview-CzG3Zl3u.mjs +1 -0
- package/dist/{preview-BBVzMIZ1.mjs → preview-H--aPJdm.mjs} +2 -2
- package/dist/printf-CX64KX2P-GrZNCK4M.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-Zo-ELIQV.js → ActivityModeContent-BWmb9zCZ.js} +1 -1
- package/dist/public/assets/{DocumentContext-k2DjymG3.js → DocumentContext-9Sn6Kq-o.js} +1 -1
- package/dist/public/assets/{GraphPanel-D8NK8BUZ.js → GraphPanel-PYMXWVsg.js} +1 -1
- package/dist/public/assets/{SettingsDialogBody-C-vY1kWI.js → SettingsDialogBody-YOvgrn38.js} +1 -1
- package/dist/public/assets/{SourceEditor-CleGALgO.js → SourceEditor-D1zhJS8f.js} +1 -1
- package/dist/public/assets/{config-validation-events-2oi_K0gL.js → config-validation-events-BUyp1R_U.js} +1 -1
- package/dist/public/assets/{index-D6s4l6eX.css → index-BXgWyDFu.css} +1 -1
- package/dist/public/assets/{index-OM_9JG_q.js → index-CEtMQRxi.js} +76 -76
- package/dist/public/assets/{keyboard-shortcuts-B_OdnEM8.js → keyboard-shortcuts-CNJfczoS.js} +1 -1
- package/dist/public/assets/{prop-types-B5unaqIG.js → prop-types-COA7UVY9.js} +153 -153
- package/dist/public/assets/{target-navigation-intent-B9alFb27.js → target-navigation-intent-Cp-mOxXo.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-B34EwapS.js → typing-burst-detector-DWg86xJw.js} +1 -1
- package/dist/public/index.html +8 -8
- package/dist/pwd-D4OZ7N27-DDRhZsId.mjs +1 -0
- package/dist/{python3-AUFTPCU6-1PPUn2I7.mjs → python3-AUFTPCU6-DmPp1QHj.mjs} +2 -2
- package/dist/quadrantDiagram-34T5L4WZ-DWVBhb1E.mjs +8 -0
- package/dist/radar-PYXPWWZC-C-wbHKao.mjs +1 -0
- package/dist/readlink-MI4GCHJF-mNeJ3km7.mjs +1 -0
- package/dist/reduce-V0ODtSr4.mjs +2 -0
- package/dist/{repair-launch-json-DgZxaWnG.mjs → repair-launch-json-D4hVKILG.mjs} +2 -2
- package/dist/{repair-mcp-configs-vSrhkJ_f.mjs → repair-mcp-configs-2MaJ-0it.mjs} +2 -2
- package/dist/repair-skills-BSA3PyS7.mjs +1 -0
- package/dist/{repair-skills-CTGljUDo.mjs → repair-skills-uHQb0hCn.mjs} +2 -2
- package/dist/requirementDiagram-MS252O5E-Bneel37I.mjs +85 -0
- package/dist/rev-XOSYPP45-KAKdorsx.mjs +1 -0
- package/dist/rg-FOQSCCX3-BWOdKDEd.mjs +1 -0
- package/dist/rm-RTZG23RL-D4Xj3X_m.mjs +1 -0
- package/dist/rmdir-XTQXT7RK-Bx-u3U5l.mjs +1 -0
- package/dist/rough.cjs-C-63phNL.mjs +2 -0
- package/dist/sankeyDiagram-XADWPNL6-4f2f9-uf.mjs +11 -0
- package/dist/sed-VFTTATXJ-DmL_7Y-J.mjs +1 -0
- package/dist/seq-RN5ZUASB-DeaNEJEM.mjs +1 -0
- package/dist/sequenceDiagram-FGHM5R23-B1K4VtLp.mjs +158 -0
- package/dist/{server-lock-BpjJj3OD-D_v2bsKE.mjs → server-lock-BpjJj3OD-CUhVvie4.mjs} +8 -8
- package/dist/server-lock-CyhBidkz-D41BTXw5.mjs +1 -0
- package/dist/sha1sum-VJPNLNU6-DYUNX0rt.mjs +1 -0
- package/dist/sha256sum-PI32XWXY-BwDMGEnF.mjs +1 -0
- package/dist/sleep-VZFPZFWA-D3IG7CwN.mjs +1 -0
- package/dist/sort-DCNRDA7U-BfL8J8kf.mjs +1 -0
- package/dist/split-SITCSYCZ-Q5NIWguo.mjs +1 -0
- package/dist/sqlite3-56UMWEY3-B4_LAdBq.mjs +1 -0
- package/dist/{src-Ca1ztIww.mjs → src-9McvXWLT.mjs} +2 -2
- package/dist/src-BkCVz_TJ.mjs +2 -0
- package/dist/{start-C4nqviIE.mjs → start-C_XaJtDB.mjs} +2 -2
- package/dist/start-CqSDUlbT.mjs +1 -0
- package/dist/stat-BT5A227F-CYFqsI8W.mjs +1 -0
- package/dist/stateDiagram-FHFEXIEX-BREbMXiC.mjs +2 -0
- package/dist/stateDiagram-v2-QKLJ7IA2-DQeH2s3K.mjs +2 -0
- package/dist/strings-7PLOGTPD-BLW4mXRs.mjs +1 -0
- package/dist/tac-SJGXQ4T2-BGR2Dq7O.mjs +1 -0
- package/dist/tail-S5ULNTJU-BOBd42y5.mjs +1 -0
- package/dist/tar-ANUBEFJY-GYQ0YvKO.mjs +1 -0
- package/dist/tee-O7VXZDCO-Bg8MXC_K.mjs +1 -0
- package/dist/time-DEUO3QV2-CxVP9vXG.mjs +1 -0
- package/dist/timeline-definition-GMOUNBTQ-Bd7XEw7o.mjs +121 -0
- package/dist/timeout-VRKMCG72-CVG2Q30a.mjs +1 -0
- package/dist/touch-DX2IJOQ4-DmEja_Fu.mjs +1 -0
- package/dist/tr-2HXZRDSW-DWcyuCoi.mjs +1 -0
- package/dist/tree-LYXBS7DC-CFaeUWGI.mjs +1 -0
- package/dist/treeView-SZITEDCU-DXyZ3zQc.mjs +1 -0
- package/dist/treemap-W4RFUUIX-CZRYHpYU.mjs +1 -0
- package/dist/true-WHJNXCHG-CJH22fVg.mjs +1 -0
- package/dist/unexpand-RGTMIGZM-Uj1QzdPV.mjs +1 -0
- package/dist/uniq-SUNANL47-MRCnRrGo.mjs +1 -0
- package/dist/vennDiagram-DHZGUBPP-Bk-INjRY.mjs +35 -0
- package/dist/wardley-RL74JXVD-UKzwcBOa.mjs +1 -0
- package/dist/wardleyDiagram-NUSXRM2D-DOD6wQla.mjs +21 -0
- package/dist/wc-TQB3VNOX-JPk1lni-.mjs +1 -0
- package/dist/which-XZHEH76L-Cl63MOrV.mjs +1 -0
- package/dist/whoami-DGKU3D2X-CB3itqHE.mjs +1 -0
- package/dist/wrapper-BZO_sIci.mjs +7 -0
- package/dist/{write-project-skill-Q0CHx78L.mjs → write-project-skill-DnuutHfZ.mjs} +2 -2
- package/dist/xan-BXDXYEIB-ZPqGVO90.mjs +1 -0
- package/dist/xan-view-ECQUO7AJ-C-WHEJiv.mjs +1 -0
- package/dist/xargs-I6EZUCYF-BvcSF5Y7.mjs +1 -0
- package/dist/xychartDiagram-5P7HB3ND-B4AGYFQs.mjs +8 -0
- package/dist/yazl-CQSNnbvt.mjs +1 -0
- package/dist/{yazl-CB0sfSbo.mjs → yazl-Docqgl6q.mjs} +2 -2
- package/dist/yq-MJMAR36V-_D_zdU3z.mjs +1 -0
- package/package.json +1 -1
- package/dist/alias-JE7RI5QX-oTDRHt3W.mjs +0 -1
- package/dist/awk2-POPGKRAI-BZ_7e8H1.mjs +0 -1
- package/dist/base64-4YMZCVJ5-BhIrz6He.mjs +0 -1
- package/dist/basename-AA2KJYZQ-C5R0pcfV.mjs +0 -1
- package/dist/bash-IJWYRKFO-DywpGlyx.mjs +0 -1
- package/dist/build-CZpdADQB.mjs +0 -1
- package/dist/cat-RDUMLXKC-BNwer8pK.mjs +0 -1
- package/dist/chmod-SYMGL4JA-BN-B1xmG.mjs +0 -1
- package/dist/clear-5CZ5X4YR-B6kVcfOw.mjs +0 -1
- package/dist/colors-gw_5YWUu.mjs +0 -1
- package/dist/column-WLPMMSTS-CEev_e2R.mjs +0 -1
- package/dist/comm-5SLSESQG-BXsiD7To.mjs +0 -1
- package/dist/constants-szne1IVT.mjs +0 -2
- package/dist/cp-XOYR4ABJ-Dy5aHk72.mjs +0 -1
- package/dist/cut-OPC3VAGB-GohHdbJ4.mjs +0 -1
- package/dist/date-DD7FVA2V-RM_vdvCh.mjs +0 -1
- package/dist/diff-HJF2MPDN-DTuHZGVW.mjs +0 -1
- package/dist/dirname-LEMTZZFS-C6aDcxLl.mjs +0 -1
- package/dist/dist-bundle-XlngXUNr.mjs +0 -1
- package/dist/du-WO2ENHXQ-Da1HuQkH.mjs +0 -1
- package/dist/echo-O45JWWI2-Cr9jHdYm.mjs +0 -1
- package/dist/env-5EPCWSXR-6RSqo9Bn.mjs +0 -1
- package/dist/expand-DTNXU4LQ-D4dbwBrD.mjs +0 -1
- package/dist/expansion-ENLSRCXJ-Bv6RV19y.mjs +0 -1
- package/dist/expr-5T3UU5KE-D7ekHiOy.mjs +0 -1
- package/dist/file-ZIGAJ4YS-DzKHvjCj.mjs +0 -1
- package/dist/find-TPUOAIUQ-DuBwOGWI.mjs +0 -1
- package/dist/flag-coverage-QT4N2Z44-DmAL_7h5.mjs +0 -2
- package/dist/fold-LDSORVYE-BQyKAmCr.mjs +0 -1
- package/dist/getMachineId-bsd-CzP05Ffc.mjs +0 -2
- package/dist/getMachineId-bsd-D0erQsHH.mjs +0 -2
- package/dist/getMachineId-bsd-Dp2q7huT.mjs +0 -2
- package/dist/getMachineId-linux-BRPjBsHg.mjs +0 -2
- package/dist/getMachineId-linux-CQZJR55S.mjs +0 -2
- package/dist/getMachineId-linux-DcN5tfI_.mjs +0 -2
- package/dist/getMachineId-unsupported-BokXsjFr.mjs +0 -2
- package/dist/getMachineId-unsupported-DZAxq-oW.mjs +0 -2
- package/dist/getMachineId-unsupported-GPbM_evk.mjs +0 -2
- package/dist/git-handle-BaZ9y3AC-B05Md-6F.mjs +0 -1
- package/dist/grep-3AIAIJVR-DhLMPK9o.mjs +0 -1
- package/dist/gzip-AQXSGOVS-kzAFjO_Y.mjs +0 -1
- package/dist/head-HT2B6D2J-BR-dv_ar.mjs +0 -1
- package/dist/help-VVWX7SA5-jdvqGfQj.mjs +0 -1
- package/dist/history-J4QRNGRO-jb5B-tWQ.mjs +0 -1
- package/dist/hostname-BK6HG2DE-CVVAGatl.mjs +0 -1
- package/dist/html-to-markdown-TFCECAGV-B5yiu2Qr.mjs +0 -1
- package/dist/init-Cwlj7SOE.mjs +0 -1
- package/dist/join-GG2LDHE5-BLgXAHZ_.mjs +0 -1
- package/dist/jq-ODXZBPLY-JpgGenzN.mjs +0 -1
- package/dist/ln-4TRFBYAT-C7xn5Rqr.mjs +0 -1
- package/dist/loader-CQXANk9h.mjs +0 -1
- package/dist/ls-KSXFZCWH-BFVVAoBi.mjs +0 -1
- package/dist/md5sum-INMIK4DX-0GZIz1Ci.mjs +0 -1
- package/dist/mkdir-TDEMSB6C-DTyG__G-.mjs +0 -1
- package/dist/mv-Z6MORUFL-CmjBk72Q.mjs +0 -1
- package/dist/nl-U5YJDM32-5XaxKjVN.mjs +0 -1
- package/dist/od-VJEF2UR5-BYZOEzSd.mjs +0 -1
- package/dist/paste-7N6AFSDS-BnDgUhuq.mjs +0 -1
- package/dist/preview-as-l5GvS.mjs +0 -1
- package/dist/printf-CX64KX2P-0abCeF-D.mjs +0 -1
- package/dist/pwd-D4OZ7N27-AYS4A9o1.mjs +0 -1
- package/dist/readlink-MI4GCHJF-BvzND_DT.mjs +0 -1
- package/dist/repair-skills-DYWZx8WB.mjs +0 -1
- package/dist/rev-XOSYPP45-Bqdhxuez.mjs +0 -1
- package/dist/rg-FOQSCCX3-CrVzsut-.mjs +0 -1
- package/dist/rm-RTZG23RL-DVQCHLUL.mjs +0 -1
- package/dist/rmdir-XTQXT7RK-DrUUkxCF.mjs +0 -1
- package/dist/sed-VFTTATXJ-QHemmbCP.mjs +0 -1
- package/dist/seq-RN5ZUASB-BBSGpJq5.mjs +0 -1
- package/dist/server-lock-CyhBidkz-CEUtTbEY.mjs +0 -1
- package/dist/sha1sum-VJPNLNU6-D6-7B21n.mjs +0 -1
- package/dist/sha256sum-PI32XWXY-BYVtIJOS.mjs +0 -1
- package/dist/sleep-VZFPZFWA-C-x_VGtG.mjs +0 -1
- package/dist/sort-DCNRDA7U-BTlvuG7X.mjs +0 -1
- package/dist/split-SITCSYCZ-BmGbaiMe.mjs +0 -1
- package/dist/sqlite3-56UMWEY3-Cjvsy5Oo.mjs +0 -1
- package/dist/start-DGxPYzt3.mjs +0 -1
- package/dist/stat-BT5A227F-BjNsVAze.mjs +0 -1
- package/dist/strings-7PLOGTPD-B6_kjNM-.mjs +0 -1
- package/dist/tac-SJGXQ4T2-BEQ9sZmi.mjs +0 -1
- package/dist/tail-S5ULNTJU-DSe2aEO8.mjs +0 -1
- package/dist/tar-ANUBEFJY-HbwMpE1g.mjs +0 -1
- package/dist/tee-O7VXZDCO-BD6QXg_b.mjs +0 -1
- package/dist/time-DEUO3QV2-CRnH51wk.mjs +0 -1
- package/dist/timeout-VRKMCG72-D_oS0IDg.mjs +0 -1
- package/dist/touch-DX2IJOQ4-4yR1M9Nd.mjs +0 -1
- package/dist/tr-2HXZRDSW-Ca-NmLk7.mjs +0 -1
- package/dist/tree-LYXBS7DC-CR3kfmh6.mjs +0 -1
- package/dist/true-WHJNXCHG-x85l8vsW.mjs +0 -1
- package/dist/unexpand-RGTMIGZM-D-1EwjbB.mjs +0 -1
- package/dist/uniq-SUNANL47-DtBj3lmA.mjs +0 -1
- package/dist/wc-TQB3VNOX-Qw6WjSl1.mjs +0 -1
- package/dist/which-XZHEH76L-B-Xo178d.mjs +0 -1
- package/dist/whoami-DGKU3D2X-_Mgzu6ty.mjs +0 -1
- package/dist/xan-BXDXYEIB-qijhj_cA.mjs +0 -1
- package/dist/xan-view-ECQUO7AJ-BfZejrY6.mjs +0 -1
- package/dist/xargs-I6EZUCYF-aS184J1w.mjs +0 -1
- package/dist/yazl-Dqnhfxk7.mjs +0 -1
- package/dist/yq-MJMAR36V-Cgql6fKu.mjs +0 -1
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import{s as e,t}from"./chunk-C94x7I9S.mjs";import{n}from"./wrapper-BZO_sIci.mjs";import{Blob as r,Buffer as i}from"buffer";import a from"fs";import{TextDecoder as o,TextEncoder as s}from"util";import c from"child_process";import l,{webcrypto as u}from"crypto";import d from"zlib";import f from"stream";import p from"path";import ee from"http";import te from"https";import{isIP as ne}from"net";import{URL as re,URLSearchParams as ie}from"url";import{ReadableStream as ae}from"stream/web";import oe,{Script as se}from"vm";import{PerformanceEntry as ce,PerformanceObserver as le}from"node:perf_hooks";const ue=Symbol(`abort`),de=Symbol(`activeElement`),fe=Symbol(`asyncTaskManager`),pe=Symbol(`bodyBuffer`),me=Symbol(`buffer`),he=Symbol(`cachedResponse`),ge=Symbol(`callbacks`),_e=Symbol(`checked`),ve=Symbol(`childNodes`),ye=Symbol(`children`),be=Symbol(`classList`),xe=Symbol(`connectedToNode`),Se=Symbol(`disconnectedFromNode`),Ce=Symbol(`connectedToDocument`),we=Symbol(`disconnectedFromDocument`),Te=Symbol(`contentLength`),Ee=Symbol(`contentType`),De=Symbol(`cssText`),Oe=Symbol(`currentScript`),ke=Symbol(`currentTarget`),Ae=Symbol(`data`),je=Symbol(`defaultView`),Me=Symbol(`destroy`),Ne=Symbol(`dirtyness`),m=Symbol(`end`),Pe=Symbol(`entries`),Fe=Symbol(`evaluateScript`),Ie=Symbol(`exceptionObserver`),Le=Symbol(`formNode`),Re=Symbol(`internalId`),h=Symbol(`height`),ze=Symbol(`immediatePropagationStopped`),Be=Symbol(`indeterminate`),Ve=Symbol(`isFirstWrite`),He=Symbol(`isFirstWriteAfterOpen`),Ue=Symbol(`isInPassiveEventListener`),We=Symbol(`isValue`),Ge=Symbol(`listenerOptions`),Ke=Symbol(`listeners`),qe=Symbol(`itemsByName`),Je=Symbol(`nextActiveElement`),Ye=Symbol(`observeMutations`),Xe=Symbol(`mutationListeners`),g=Symbol(`ownerDocument`),Ze=Symbol(`ownerElement`),Qe=Symbol(`propagationStopped`),$e=Symbol(`readyStateManager`),et=Symbol(`referrer`),tt=Symbol(`registry`),nt=Symbol(`relList`),rt=Symbol(`resetSelection`),it=Symbol(`rootNode`),at=Symbol(`selectNode`),ot=Symbol(`selectedness`),st=Symbol(`selection`),ct=Symbol(`setupVMContext`),lt=Symbol(`shadowRoot`),_=Symbol(`start`),ut=Symbol(`style`),dt=Symbol(`target`),ft=Symbol(`textAreaNode`),pt=Symbol(`unobserveMutations`),mt=Symbol(`reportMutation`),ht=Symbol(`updateSelectedness`),gt=Symbol(`url`),v=Symbol(`value`),y=Symbol(`width`),b=Symbol(`window`),_t=Symbol(`windowResizeListener`),vt=Symbol(`mutationObservers`),yt=Symbol(`openerFrame`),bt=Symbol(`openerWindow`),xt=Symbol(`pointerCaptures`),St=Symbol(`popup`),x=Symbol(`isConnected`),S=Symbol(`parentNode`),C=Symbol(`nodeType`),w=Symbol(`tagName`),Ct=Symbol(`prefix`),wt=Symbol(`scrollHeight`),Tt=Symbol(`scrollWidth`),Et=Symbol(`scrollTop`),Dt=Symbol(`scrollLeft`),Ot=Symbol(`attributes`),kt=Symbol(`attributesProxy`),T=Symbol(`namespaceURI`),At=Symbol(`accessKey`),jt=Symbol(`offsetHeight`),Mt=Symbol(`offsetWidth`),Nt=Symbol(`offsetLeft`),Pt=Symbol(`offsetTop`),Ft=Symbol(`clientHeight`),It=Symbol(`clientWidth`),Lt=Symbol(`clientLeft`),Rt=Symbol(`clientTop`),E=Symbol(`name`),zt=Symbol(`specified`),Bt=Symbol(`adoptedStyleSheets`),Vt=Symbol(`implementation`),Ht=Symbol(`readyState`),Ut=Symbol(`publicId`),Wt=Symbol(`systemId`),Gt=Symbol(`validationMessage`),Kt=Symbol(`validity`),qt=Symbol(`returnValue`),Jt=Symbol(`elements`),Yt=Symbol(`complete`),Xt=Symbol(`naturalHeight`),Zt=Symbol(`naturalWidth`),Qt=Symbol(`loading`),D=Symbol(`x`),O=Symbol(`y`),$t=Symbol(`files`),en=Symbol(`sheet`),tn=Symbol(`volume`),nn=Symbol(`paused`),rn=Symbol(`currentTime`),an=Symbol(`playbackRate`),on=Symbol(`defaultPlaybackRate`),sn=Symbol(`muted`),cn=Symbol(`defaultMuted`),ln=Symbol(`preservesPitch`),un=Symbol(`buffered`),dn=Symbol(`duration`),fn=Symbol(`error`),pn=Symbol(`ended`),mn=Symbol(`networkState`),hn=Symbol(`textTracks`),gn=Symbol(`seeking`),_n=Symbol(`seekable`),vn=Symbol(`played`),yn=Symbol(`options`),bn=Symbol(`content`),xn=Symbol(`mode`),Sn=Symbol(`host`),Cn=Symbol(`setURL`),k=Symbol(`localName`),wn=Symbol(`classRegistry`),Tn=Symbol(`nodeStream`),En=Symbol(`location`),Dn=Symbol(`history`),On=Symbol(`navigator`),kn=Symbol(`screen`),An=Symbol(`sessionStorage`),jn=Symbol(`localStorage`),Mn=Symbol(`sandbox`),Nn=Symbol(`cloneNode`),Pn=Symbol(`appendChild`),Fn=Symbol(`removeChild`),In=Symbol(`insertBefore`),Ln=Symbol(`replaceChild`),Rn=Symbol(`tracks`),zn=Symbol(`constraints`),Bn=Symbol(`capabilities`),Vn=Symbol(`settings`),Hn=Symbol(`removeNamedItem`),A=Symbol(`items`),Un=Symbol(`selectedOptions`),Wn=Symbol(`styleNode`),Gn=Symbol(`updateSheet`),Kn=Symbol(`clearCache`),qn=Symbol(`onSetAttribute`),Jn=Symbol(`onRemoveAttribute`),j=Symbol(`nodeArray`),Yn=Symbol(`elementArray`),M=Symbol(`cache`),Xn=Symbol(`affectsCache`),Zn=Symbol(`forms`),Qn=Symbol(`affectsComputedStyleCache`),$n=Symbol(`query`),er=Symbol(`computedStyle`),tr=Symbol(`getFormControlItems`),nr=Symbol(`getFormControlNamedItem`),rr=Symbol(`dataset`),ir=Symbol(`itemsByNamespaceURI`),ar=Symbol(`proxy`),or=Symbol(`setNamedItem`),sr=Symbol(`getTokenList`),cr=Symbol(`attributeName`),lr=Symbol(`selectedIndex`),ur=Symbol(`self`),dr=Symbol(`parent`),fr=Symbol(`top`),pr=Symbol(`areas`),mr=Symbol(`defaultValue`),hr=Symbol(`elementIdMap`),gr=Symbol(`clonable`),_r=Symbol(`delegatesFocus`),vr=Symbol(`serializable`),yr=Symbol(`slotAssignment`),br=Symbol(`assignedNodes`),xr=Symbol(`assignedToSlot`),Sr=Symbol(`cells`),Cr=Symbol(`rows`),wr=Symbol(`headers`),Tr=Symbol(`tBodies`),Er=Symbol(`track`),Dr=Symbol(`controlsList`),Or=Symbol(`mediaKeys`),kr=Symbol(`remote`),Ar=Symbol(`sinkId`),jr=Symbol(`srcObject`),Mr=Symbol(`cues`),Nr=Symbol(`activeCues`),Pr=Symbol(`kind`),Fr=Symbol(`label`),Ir=Symbol(`language`),Lr=Symbol(`id`),N=Symbol(`illegalConstructor`),Rr=Symbol(`state`),zr=Symbol(`canvas`),Br=Symbol(`popoverTargetElement`),Vr=Symbol(`composed`),Hr=Symbol(`bubbles`),Ur=Symbol(`cancelable`),Wr=Symbol(`defaultPrevented`),Gr=Symbol(`eventPhase`),Kr=Symbol(`timeStamp`),qr=Symbol(`type`),Jr=Symbol(`detail`),Yr=Symbol(`destroyed`),Xr=Symbol(`aborted`),Zr=Symbol(`browserFrames`),Qr=Symbol(`windowInternalId`),P=Symbol(`getItemList`),$r=Symbol(`requiredExtensions`),ei=Symbol(`systemLanguage`),ti=Symbol(`transform`),ni=Symbol(`baseVal`),ri=Symbol(`animVal`),ii=Symbol(`pathLength`),ai=Symbol(`viewBox`),oi=Symbol(`markerUnits`),si=Symbol(`markerWidth`),ci=Symbol(`markerHeight`),li=Symbol(`values`),ui=Symbol(`orientType`),di=Symbol(`orientAngle`),fi=Symbol(`refX`),pi=Symbol(`refY`),F=Symbol(`readOnly`),mi=Symbol(`preserveAspectRatio`),hi=Symbol(`animatedPoints`),gi=Symbol(`points`),_i=Symbol(`rx`),vi=Symbol(`ry`),yi=Symbol(`cx`),bi=Symbol(`cy`),xi=Symbol(`r`),Si=Symbol(`clipPathUnits`),Ci=Symbol(`maskUnits`),wi=Symbol(`maskContentUnits`),Ti=Symbol(`filterUnits`),Ei=Symbol(`primitiveUnits`),Di=Symbol(`href`),Oi=Symbol(`x1`),ki=Symbol(`y1`),Ai=Symbol(`x2`),ji=Symbol(`y2`),Mi=Symbol(`gradientUnits`),Ni=Symbol(`gradientTransform`),Pi=Symbol(`spreadMethod`),Fi=Symbol(`patternUnits`),Ii=Symbol(`patternContentUnits`),Li=Symbol(`patternTransform`),Ri=Symbol(`fx`),zi=Symbol(`fy`),Bi=Symbol(`offset`),Vi=Symbol(`disabled`),Hi=Symbol(`textLength`),Ui=Symbol(`lengthAdjust`),I=Symbol(`getAttribute`),L=Symbol(`setAttribute`),Wi=Symbol(`z`),Gi=Symbol(`w`),Ki=Symbol(`toArray`),qi=Symbol(`fromString`),Ji=Symbol(`fromArray`),Yi=Symbol(`m11`),Xi=Symbol(`m12`),Zi=Symbol(`m13`),Qi=Symbol(`m14`),$i=Symbol(`m21`),ea=Symbol(`m22`),ta=Symbol(`m23`),na=Symbol(`m24`),ra=Symbol(`m31`),ia=Symbol(`m32`),aa=Symbol(`m33`),oa=Symbol(`m34`),sa=Symbol(`m41`),ca=Symbol(`m42`),la=Symbol(`m43`),ua=Symbol(`m44`),da=Symbol(`setMatrixValue`),fa=Symbol(`translateSelf`),pa=Symbol(`rotateSelf`),ma=Symbol(`rotateAxisAngleSelf`),ha=Symbol(`scaleSelf`),ga=Symbol(`scale3dSelf`),_a=Symbol(`scaleNonUniformSelf`),va=Symbol(`skewXSelf`),ya=Symbol(`skewYSelf`),ba=Symbol(`multiplySelf`),xa=Symbol(`matrix`),Sa=Symbol(`getDOMMatrix`),Ca=Symbol(`setDOMMatrix`),R=Symbol(`attributeValue`),wa=Symbol(`startOffset`),Ta=Symbol(`method`),Ea=Symbol(`spacing`),z=Symbol(`in1`),Da=Symbol(`in2`),B=Symbol(`result`),Oa=Symbol(`bias`),ka=Symbol(`divisor`),Aa=Symbol(`edgeMode`),ja=Symbol(`kernelMatrix`),Ma=Symbol(`kernelUnitLengthX`),Na=Symbol(`kernelUnitLengthY`),Pa=Symbol(`orderX`),Fa=Symbol(`orderY`),Ia=Symbol(`preserveAlpha`),La=Symbol(`targetX`),Ra=Symbol(`targetY`),za=Symbol(`diffuseConstant`),Ba=Symbol(`surfaceScale`),Va=Symbol(`scale`),Ha=Symbol(`xChannelSelector`),Ua=Symbol(`yChannelSelector`),Wa=Symbol(`azimuth`),Ga=Symbol(`elevation`),Ka=Symbol(`dx`),qa=Symbol(`dy`),Ja=Symbol(`stdDeviationX`),Ya=Symbol(`stdDeviationY`),Xa=Symbol(`tableValues`),Za=Symbol(`slope`),Qa=Symbol(`intercept`),$a=Symbol(`amplitude`),eo=Symbol(`exponent`),to=Symbol(`crossOrigin`),no=Symbol(`operator`),ro=Symbol(`radiusX`),io=Symbol(`radiusY`),ao=Symbol(`specularConstant`),oo=Symbol(`specularExponent`),so=Symbol(`pointsAtX`),co=Symbol(`pointsAtY`),lo=Symbol(`pointsAtZ`),uo=Symbol(`limitingConeAngle`),fo=Symbol(`baseFrequencyX`),po=Symbol(`baseFrequencyY`),mo=Symbol(`numOctaves`),ho=Symbol(`seed`),go=Symbol(`stitchTiles`),_o=Symbol(`rotateFromVectorSelf`),vo=Symbol(`flipXSelf`),yo=Symbol(`flipYSelf`),bo=Symbol(`invertSelf`),xo=Symbol(`getLength`),So=Symbol(`currentScale`),Co=Symbol(`rotate`),wo=Symbol(`bindMethods`),To=Symbol(`xmlProcessingInstruction`),Eo=Symbol(`filterNode`),Do=Symbol(`customElementReactionStack`),Oo=Symbol(`dispatching`),ko=Symbol(`modules`),Ao=Symbol(`preloads`),jo=Symbol(`body`),Mo=Symbol(`redirect`),No=Symbol(`referrerPolicy`),Po=Symbol(`signal`),Fo=Symbol(`bodyUsed`),Io=Symbol(`credentials`),Lo=Symbol(`blocking`),Ro=Symbol(`moduleImportMap`),zo=Symbol(`dispatchError`),Bo=Symbol(`supports`),Vo=Symbol(`reason`),V=Symbol(`propertyEventListeners`),Ho=Symbol(`cssRules`),Uo=Symbol(`parentRule`),Wo=Symbol(`parentStyleSheet`),Go=Symbol(`conditionText`),Ko=Symbol(`keyText`),qo=Symbol(`media`),Jo=Symbol(`styleMap`),Yo=Symbol(`selectorText`),Xo=Symbol(`cssParser`),Zo=Symbol(`cssRule`),Qo=Symbol(`rulePrefix`),$o=Symbol(`virtualServerFile`),es=Symbol(`frames`),ts=Symbol(`disableEvaluation`),ns=Symbol(`validateJavaScriptExecutionEnvironment`),rs=Symbol(`openWebSockets`),is=Symbol(`webSocket`),as=Symbol(`moduleCache`),os=Symbol(`context`);var ss;(function(e){e.strict=`Strict`,e.lax=`Lax`,e.none=`None`})(ss||={});var cs=ss,ls={key:null,originURL:null,value:null,domain:``,path:``,expires:null,httpOnly:!1,secure:!1,sameSite:cs.lax},us=class{static hasExpired(e){return e.expires&&e.expires.getTime()<Date.now()}},ds=class{static cookieMatchesURL(e,t){let n=t.hostname===`localhost`||t.hostname?.endsWith(`.localhost`);return(!e.secure||t.protocol===`https:`||n)&&(!e.domain||t.hostname?.endsWith(e.domain))&&(!e.path||t.pathname?.startsWith(e.path))&&(e.sameSite===cs.none&&e.secure||e.originURL?.hostname===t.hostname)}},fs=class{#e=[];addCookies(e){let t=new Map,n=e=>`${e.key}-${e.originURL.hostname}-${e.path}-${typeof e.value}`;for(let e=0,r=this.#e.length;e<r;e++)t.set(n(this.#e[e]),e);for(let r of e){let e=Object.assign({},ls,r);if(e&&e.key&&e.originURL){let r=t.get(n(e));r!==void 0&&this.#e.splice(r,1),us.hasExpired(e)||(t.set(n(e),this.#e.length),this.#e.push(e))}}}getCookies(e=null,t=!1){let n=[];for(let r of this.#e)!us.hasExpired(r)&&(!t||!r.httpOnly)&&(!e||ds.cookieMatchesURL(r,e))&&n.push(r);return n}clearCookies(){this.#e=[]}},ps;(function(e){e.fresh=`fresh`,e.stale=`stale`})(ps||={});var ms=ps,hs;(function(e){e.invalidStateError=`InvalidStateError`,e.indexSizeError=`IndexSizeError`,e.syntaxError=`SyntaxError`,e.hierarchyRequestError=`HierarchyRequestError`,e.notSupportedError=`NotSupportedError`,e.wrongDocumentError=`WrongDocumentError`,e.invalidNodeTypeError=`InvalidNodeTypeError`,e.invalidCharacterError=`InvalidCharacterError`,e.notFoundError=`NotFoundError`,e.securityError=`SecurityError`,e.networkError=`NetworkError`,e.domException=`DOMException`,e.invalidAccessError=`InvalidAccessError`,e.unknownError=`UnknownError`,e.abortError=`AbortError`,e.timeoutError=`TimeoutError`,e.encodingError=`EncodingError`,e.uriMismatchError=`URIMismatchError`,e.inUseAttributeError=`InUseAttributeError`,e.namespaceError=`NamespaceError`})(hs||={});var H=hs,gs=class extends Error{constructor(e,t=null){super(e),this.name=t||H.domException}},_s=class e{[Pe]={};constructor(t){if(t)if(t instanceof e)this[Pe]=JSON.parse(JSON.stringify(t[Pe]));else if(Array.isArray(t))for(let e of t){if(e.length!==2)throw new gs(`Failed to construct "Headers": The provided init is not a valid array.`,H.invalidStateError);this.append(e[0],e[1])}else for(let e of Object.keys(t))this.set(e,t[e])}append(e,t){let n=e.toLowerCase();this[Pe][n]?this[Pe][n].value.push(t):this[Pe][n]={name:e,value:[t]}}delete(e){delete this[Pe][e.toLowerCase()]}get(e){return this[Pe][e.toLowerCase()]?.value.join(`, `)??null}set(e,t){this[Pe][e.toLowerCase()]={name:e,value:[t]}}getSetCookie(){let e=this[Pe][`set-cookie`];return e?e.value:[]}has(e){return!!this[Pe][e.toLowerCase()]}forEach(e,t){let n=t??this[b];for(let t of Object.values(this[Pe]))e.call(n,t.value.join(`, `),t.name,this)}*keys(){for(let e of Object.values(this[Pe]))yield e.name}*values(){for(let e of Object.values(this[Pe]))yield e.value.join(`, `)}*entries(){for(let e of Object.values(this[Pe]))yield[e.name,e.value.join(`, `)]}*[Symbol.iterator](){for(let e of Object.values(this[Pe]))yield[e.name,e.value.join(`, `)]}},vs=class{#e=new Set;#t=new Set;#n;constructor(e){this.#n=e}async load(e){if(!e)throw Error(`Failed to execute 'load' on 'ResponseCacheFileSystem': Directory is not specified.`);let t=p.resolve(e),n=[];try{n=await a.promises.readdir(t)}catch{return}let r=[],i=this.#n;for(let e of n)e.endsWith(`.json`)&&r.push(a.promises.readFile(p.join(t,e),`utf8`).then(n=>{let r=JSON.parse(n);if(r.response&&r.request&&!r.virtual)return r.response.headers=new _s(r.response.headers),r.request.headers=new _s(r.request.headers),a.promises.readFile(p.join(t,e.split(`.`)[0]+`.data`)).then(e=>{r.response.body=e;let t=i.get(r.response.url);t||(t=[],i.set(r.response.url,t)),t.push(r)}).catch(()=>{let e=i.get(r.response.url);e||(e=[],i.set(r.response.url,e)),e.push(r)})}).catch(()=>{}));await Promise.all(r)}async save(e){if(!e)throw Error(`Failed to execute 'store' on 'ResponseCacheFileSystem': Directory is not specified.`);if(!this.#n.size)return;let t=p.resolve(e);if(!this.#e.has(t)){this.#e.add(t);try{await a.promises.mkdir(t,{recursive:!0})}catch{}}let n=this.#n,r=[];for(let e of n.values())for(let n of e)if(!n.virtual){let e={},i={};for(let[t,r]of n.response.headers.entries())e[t]=r;for(let[e,t]of n.request.headers.entries())i[e]=t;let o={...n,response:{...n.response,headers:e,body:null},request:{...n.request,headers:i}},s=JSON.stringify(o,null,3),c=l.createHash(`md5`).update(s).digest(`hex`);this.#t.has(c)||(this.#t.add(c),r.push(a.promises.writeFile(p.join(t,`${c}.json`),s)),n.response.body&&r.push(a.promises.writeFile(p.join(t,`${c}.data`),n.response.body)))}await Promise.all(r)}};const ys=[`Cache-Control`,`Last-Modified`,`Vary`,`ETag`];var bs=class{fileSystem;#e=new Map;constructor(){this.fileSystem=new vs(this.#e)}get(e){if(e.headers.get(`Cache-Control`)?.includes(`no-cache`))return null;let t=e.url,n=this.#e.get(t);if(n)for(let t=0,r=n.length;t<r;t++){let r=n[t],i=r.request.method===e.method;if(i)for(let t of Object.keys(r.vary)){let n=e.headers.get(t);if(n!==null&&r.vary[t]!==n){i=!1;break}}if(i){if(r.expires&&r.expires<Date.now()){if(r.lastModified)r.state=ms.stale;else if(!r.etag)return n.splice(t,1),null}return r}}return null}add(e,t){if(e.method!==`GET`&&e.method!==`HEAD`||e.headers.get(`Cache-Control`)?.includes(`no-cache`))return null;let n=e.url,r=this.get(e);if(t.status===304){if(!r)throw Error(`ResponseCache: Cached response not found.`);for(let e of ys)t.headers.has(e)&&r.response.headers.set(e,t.headers.get(e));r.cacheUpdateTime=Date.now(),r.state=ms.fresh}else{if(r){let e=this.#e.get(n);if(e){let t=e.indexOf(r);t!==-1&&e.splice(t,1)}}r={response:{status:t.status,statusText:t.statusText,url:t.url,headers:new _s(t.headers),waitingForBody:t.waitingForBody,body:t.body??null},request:{headers:e.headers,method:e.method},vary:{},expires:null,etag:null,cacheUpdateTime:Date.now(),lastModified:null,mustRevalidate:!1,staleWhileRevalidate:!1,state:ms.fresh,virtual:t.virtual??!1};let i=this.#e.get(n);i||(i=[],this.#e.set(n,i)),i.push(r)}if(t.headers.has(`Cache-Control`)){let e=t.headers.get(`Age`);for(let i of t.headers.get(`Cache-Control`).split(`,`)){let[t,a]=i.trim().split(`=`);switch(t){case`max-age`:r.expires=Date.now()+parseFloat(a)*1e3-(e?parseFloat(e)*1e3:0);break;case`no-cache`:case`no-store`:let t=this.#e.get(n);if(t){let e=t.indexOf(r);e!==-1&&t.splice(e,1)}return null;case`must-revalidate`:r.mustRevalidate=!0;break;case`stale-while-revalidate`:r.staleWhileRevalidate=!0;break}}}if(t.headers.has(`Last-Modified`)&&(r.lastModified=Date.parse(t.headers.get(`Last-Modified`))),t.headers.has(`Vary`))for(let n of t.headers.get(`Vary`).split(`,`)){let t=n.trim(),i=e.headers.get(t);i&&(r.vary[t]=i)}if(t.headers.has(`ETag`)&&(r.etag=t.headers.get(`ETag`)),!r.expires){let e=t.headers.get(`Expires`);e&&(r.expires=Date.parse(e))}if(!r.etag&&(!r.expires||r.expires<Date.now())){let e=this.#e.get(n);if(e){let t=e.indexOf(r);t!==-1&&e.splice(t,1)}return null}return r}clear(e){if(e)if(e.toTime)for(let t of e.url?[e.url]:this.#e.keys()){let n=this.#e.get(t);if(n)for(let t=0,r=n.length;t<r;t++)n[t].cacheUpdateTime<e.toTime&&(n.splice(t,1),t--,r--)}else e.url&&this.#e.delete(e.url);else this.#e.clear()}},xs;(function(e){e[e.log=0]=`log`,e[e.info=1]=`info`,e[e.warn=2]=`warn`,e[e.error=3]=`error`})(xs||={});var Ss=xs,Cs;(function(e){e[e.elementNode=1]=`elementNode`,e[e.attributeNode=2]=`attributeNode`,e[e.textNode=3]=`textNode`,e[e.cdataSectionNode=4]=`cdataSectionNode`,e[e.commentNode=8]=`commentNode`,e[e.documentNode=9]=`documentNode`,e[e.documentTypeNode=10]=`documentTypeNode`,e[e.documentFragmentNode=11]=`documentFragmentNode`,e[e.processingInstructionNode=7]=`processingInstructionNode`})(Cs||={});var U=Cs,ws;(function(e){e[e.none=0]=`none`,e[e.capturing=1]=`capturing`,e[e.atTarget=2]=`atTarget`,e[e.bubbling=3]=`bubbling`})(ws||={});var Ts=ws,W=class e{static NONE=Ts.none;static CAPTURING_PHASE=Ts.capturing;static AT_TARGET=Ts.atTarget;static BUBBLING_PHASE=Ts.bubbling;NONE=e.NONE;CAPTURING_PHASE=e.CAPTURING_PHASE;AT_TARGET=e.AT_TARGET;BUBBLING_PHASE=e.BUBBLING_PHASE;[Vr]=!1;[Hr]=!1;[Ur]=!1;[Wr]=!1;[Gr]=Ts.none;[Kr]=performance.now();[qr];[Oo]=!1;[ze]=!1;[Qe]=!1;[dt]=null;[ke]=null;[Ue]=!1;constructor(e,t=null){this[qr]=e,this[Hr]=t?.bubbles??!1,this[Ur]=t?.cancelable??!1,this[Vr]=t?.composed??!1}get composed(){return this[Vr]}get bubbles(){return this[Hr]}get cancelable(){return this[Ur]}get defaultPrevented(){return this[Wr]}get eventPhase(){return this[Gr]}get timeStamp(){return this[Kr]}get type(){return this[qr]}get target(){return this[dt]}get currentTarget(){return this[ke]}get cancelBubble(){return this[Qe]}composedPath(){if(!this[dt])return[];let e=[],t=this[dt];for(;t;)if(e.push(t),t.parentNode)t=t.parentNode;else if(this[Vr]&&t[C]===U.documentFragmentNode&&t.host)t=t.host;else if(t[C]===U.documentNode&&this[qr]!==`load`)t=t[b];else break;return e}initEvent(e,t=!1,n=!1){this[qr]=e,this[Hr]=t,this[Ur]=n,this[Qe]=!1,this[ze]=!1,this[Wr]=!1}preventDefault(){!this[Ue]&&this.cancelable&&(this[Wr]=!0)}stopImmediatePropagation(){this[ze]=!0}stopPropagation(){this[Qe]=!0}},Es;(function(e){e.log=`log`,e.table=`table`,e.trace=`trace`,e.dir=`dir`,e.dirxml=`dirxml`,e.group=`group`,e.groupCollapsed=`groupCollapsed`,e.debug=`debug`,e.timeLog=`timeLog`,e.info=`info`,e.count=`count`,e.timeEnd=`timeEnd`,e.warn=`warn`,e.countReset=`countReset`,e.error=`error`,e.assert=`assert`})(Es||={});var Ds=Es,Os=class{static toString(e){if(this.isLogEntryCollapsed(e))return``;let t=this.getLogEntryGroupTabbing(e),n=t;for(let r of e.message)if(n+=n!==``&&n!==t?` `:``,typeof r==`object`&&(r===null||r.constructor.name===`Object`||Array.isArray(r)))try{n+=JSON.stringify(r)}catch{n+=Error(`Failed to JSON stringify object in log entry.`).stack.replace(/\n at/gm,`
|
|
2
|
+
`+t+`at`)}else typeof r==`object`&&r.message&&r.stack?n+=r.stack.replace(/\n at/gm,`
|
|
3
|
+
`+t+`at`):n+=this.getLogEntryIcon(e)+String(r);return n+`
|
|
4
|
+
`}static getLogEntryIcon(e){switch(e.type){case Ds.group:return`▼ `;case Ds.groupCollapsed:return`▶ `}return``}static getLogEntryGroupTabbing(e){let t=``,n=e.type===Ds.group||e.type===Ds.groupCollapsed?e.group?.parent:e.group;for(;n;)t+=` `,n=n.parent;return t}static isLogEntryCollapsed(e){let t=e.type===Ds.group||e.type===Ds.groupCollapsed?e.group?.parent:e.group;for(;t;){if(t.collapsed)return!0;t=t.parent}return!1}},ks=class{#e=[];#t={print:[],clear:[]};#n=!1;get closed(){return this.#n}print(e){this.#n||(this.#e.push(e),this.dispatchEvent(new W(`print`)))}clear(){this.#n||(this.#e=[],this.dispatchEvent(new W(`clear`)))}close(){this.#n||=(this.#e=[],this.#t={print:[],clear:[]},!0)}addEventListener(e,t){if(!this.#n){if(!this.#t[e])throw Error(`Event type "${e}" is not supported.`);this.#t[e].push(t)}}removeEventListener(e,t){if(this.#n)return;if(!this.#t[e])throw Error(`Event type "${e}" is not supported.`);let n=this.#t[e].indexOf(t);n!==-1&&this.#t[e].splice(n,1)}dispatchEvent(e){if(!this.#n)switch(e.type){case`print`:case`clear`:for(let t of this.#t[e.type])t(e);break;default:throw Error(`Event type "${e.type}" is not supported.`)}}read(){let e=this.#e;return this.#e=[],e}readAsString(e=Ss.log){let t=this.read(),n=``;for(let r of t)r.level>=e&&(n+=Os.toString(r));return n}},As=class extends Error{constructor(e){super(e),this.name=`AsyncTaskManagerDebugError`}};const js={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)};var Ms=class{static taskID=0;runningTasks={};runningTaskCount=0;runningTimers=[];runningImmediates=[];debugTrace=new Map;waitUntilCompleteTimer=null;waitUntilCompleteResolvers=[];destroyed=!1;#e=null;#t;constructor(e){this.#t=e}waitUntilComplete(){return new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()})}abort(){return this.destroyed?new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()}):this.abortAll(!1)}destroy(){return this.destroyed?new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()}):this.abortAll(!0)}startTimer(e){if(this.destroyed){js.clearTimeout(e);return}this.waitUntilCompleteTimer&&=(js.clearTimeout(this.waitUntilCompleteTimer),null),this.runningTimers.push(e),this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(e,new As().stack)}endTimer(e){if(this.destroyed){js.clearTimeout(e);return}let t=this.runningTimers.indexOf(e);t!==-1&&(this.runningTimers.splice(t,1),this.resolveWhenComplete()),this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e)}startImmediate(e){if(this.destroyed){js.clearImmediate(e);return}this.waitUntilCompleteTimer&&=(js.clearTimeout(this.waitUntilCompleteTimer),null),this.runningImmediates.push(e),this.#t.page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0&&this.debugTrace.set(e,new As().stack)}endImmediate(e){if(this.destroyed){js.clearImmediate(e);return}let t=this.runningImmediates.indexOf(e);t!==-1&&(this.runningImmediates.splice(t,1),this.resolveWhenComplete()),this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e)}startTask(e){if(this.destroyed)throw e&&e(this.destroyed),new this.#t.window.Error(`Failed to execute 'startTask()' on 'AsyncTaskManager': The asynchronous task manager has been destroyed. This error can be thrown if scripts continue to run while a browser frame is closed.`);this.waitUntilCompleteTimer&&=(js.clearTimeout(this.waitUntilCompleteTimer),null);let t=this.newTaskID();return this.runningTasks[t]=e||(()=>{}),this.runningTaskCount++,this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(t,new As().stack),t}endTask(e){this.destroyed||(this.runningTasks[e]&&(delete this.runningTasks[e],this.runningTaskCount--,this.resolveWhenComplete()),this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.delete(e))}getTaskCount(){return this.runningTaskCount}newTaskID(){return this.constructor.taskID++,this.constructor.taskID}resolveWhenComplete(){this.applyDebugging(),!(this.runningTaskCount||this.runningTimers.length||this.runningImmediates.length)&&(this.waitUntilCompleteTimer&&=(js.clearTimeout(this.waitUntilCompleteTimer),null),this.waitUntilCompleteTimer=js.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){this.#e&&js.clearTimeout(this.#e);let e=this.waitUntilCompleteResolvers;this.waitUntilCompleteResolvers=[];for(let t of e)t.resolve();this.destroyed=!1}else this.applyDebugging()},1))}applyDebugging(){let e=this.#t.page.context.browser.settings.debug;!e?.traceWaitUntilComplete||e.traceWaitUntilComplete<1||(this.#e||=js.setTimeout(()=>{this.#e=null;let e=`The maximum time was reached for "waitUntilComplete()".\n\n${this.debugTrace.size} task${this.debugTrace.size===1?``:`s`} did not end in time.\n\nThe following traces were recorded:\n\n`,t=1;for(let[n,r]of this.debugTrace.entries())e+=`${typeof n==`number`?`Task`:`Timer`} #${t}\n‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾${r.replace(/AsyncTaskManagerDebugError:{0,1}/,``).replace(/\s+at /gm,`
|
|
5
|
+
> `)}\n\n`,t++;let n=Error(e);for(let e of this.waitUntilCompleteResolvers)e.reject(n);this.abortAll(!0)},e.traceWaitUntilComplete))}abortAll(e){let t=this.runningTimers,n=this.runningImmediates,r=this.runningTasks;e&&(this.destroyed=!0),this.runningTasks={},this.runningTaskCount=0,this.runningImmediates=[],this.runningTimers=[],this.debugTrace=new Map,this.waitUntilCompleteTimer&&=(js.clearTimeout(this.waitUntilCompleteTimer),null);for(let e of n)js.clearImmediate(e);for(let e of t)js.clearTimeout(e);for(let t of Object.keys(r))r[t](e);return new Promise((e,t)=>{this.waitUntilCompleteResolvers.push({resolve:e,reject:t}),this.resolveWhenComplete()})}};const Ns=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;var Ps=class{static btoa(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new gs(`Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.`,H.invalidCharacterError);let n=``,r=-6,i=0,a=0,o=0,s;for(;a<t.length||r>-6;)r<0&&(a<t.length?(s=t.charCodeAt(a++),o+=8):s=0,i=(i&255)<<8|s&255,r+=8),n+=Ns.charAt(o>0?i>>r&63:64),r-=6,o-=6;return n}static atob(e){let t=e.toString();if(/[^\u0000-\u00ff]/.test(t))throw new gs(`Failed to execute 'atob' on 'Window': The string to be decoded contains characters outside of the Latin1 range.`,H.invalidCharacterError);if(/[^A-Za-z\d+/=]/.test(t)||t.length%4==1)throw new gs(`Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.`,H.invalidCharacterError);let n=``,r=-8,i=0,a,o;for(let e=0;e<t.length;e++)(a=Ns.indexOf(t.charAt(e)))<0||(i=i<<6|a&63,(r+=6)>=0&&(o=i>>r&255,a!==64&&(n+=String.fromCharCode(o)),i&=63,r-=8));return n}},Fs;(function(e){e.tryAndCatch=`tryAndCatch`,e.processLevel=`processLevel`,e.disabled=`disabled`})(Fs||={});var Is=Fs,Ls=class e{type=``;[me];constructor(t,n){let r=[];if(t)for(let n of t){let t;t=n instanceof ArrayBuffer?i.from(new Uint8Array(n)):n instanceof e?n[me]:n instanceof i?n:ArrayBuffer.isView(n)?i.from(new Uint8Array(n.buffer,n.byteOffset,n.byteLength)):i.from(typeof n==`string`?n:String(n)),r.push(t)}this[me]=i.concat(r),n&&n.type&&n.type.match(/^[\u0020-\u007E]*$/)&&(this.type=String(n.type).toLowerCase())}get size(){return this[me].length}slice(t=0,n=null,r=``){let i=this.size,a,o,s;a=t===void 0?0:t<0?Math.max(i+t,0):Math.min(t,i),o=n===null?i:n<0?Math.max(i+n,0):Math.min(n,i),s=r===void 0?``:r;let c=Math.max(o-a,0),l=this[me].slice(a,a+c),u=new e([],{type:s});return u[me]=l,u}async arrayBuffer(){return new Uint8Array(this[me]).buffer}async text(){return this[me].toString()}stream(){let e=this[me];return new ae({start(t){t.enqueue(e),t.close()}})}toString(){return`[object Blob]`}},Rs=class{#e;#t=[];constructor(e){if(!e)throw TypeError(`Illegal constructor`);this.#e=e}async read(){if((await this.#e.navigator.permissions.query({name:`clipboard-read`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'read' on 'Clipboard': The request is not allowed`);return this.#t}async readText(){if((await this.#e.navigator.permissions.query({name:`clipboard-read`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'readText' on 'Clipboard': The request is not allowed`);let e=``;for(let t of this.#t)if(t.types.includes(`text/plain`)){let n=await t.getType(`text/plain`);typeof n==`string`?e+=n:e+=await n.text()}return e}async write(e){if((await this.#e.navigator.permissions.query({name:`clipboard-write`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'write' on 'Clipboard': The request is not allowed`);this.#t=e}async writeText(e){if((await this.#e.navigator.permissions.query({name:`clipboard-write`})).state===`denied`)throw new this.#e.DOMException(`Failed to execute 'writeText' on 'Clipboard': The request is not allowed`);this.#t=[new this.#e.ClipboardItem({"text/plain":new Ls([e],{type:`text/plain`})})]}},zs=class{presentationStyle=`unspecified`;#e;constructor(e,t){this.#e=e,t?.presentationStyle&&(this.presentationStyle=t.presentationStyle)}get types(){return Object.keys(this.#e)}async getType(e){if(!this.#e[e])throw new gs(`Failed to execute 'getType' on 'ClipboardItem': The type '${e}' was not found`);return this.#e[e]instanceof Ls?this.#e[e]:new Ls([await this.#e[e]],{type:e})}},Bs=class{static escape(e){if(arguments.length==0)throw TypeError("`CSS.escape` requires an argument.");let t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);if(n==1&&o==45)return`\\`+t;for(;++r<n;){if(i=t.charCodeAt(r),i==0){a+=`�`;continue}if(i>=1&&i<=31||i==127||r==0&&i>=48&&i<=57||r==1&&i>=48&&i<=57&&o==45){a+=`\\`+i.toString(16)+` `;continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a}},Vs=`Hz.Q.ch.cm.deg.dpcm.dpi.dppx.em.ex.fr.grad.in.kHz.mm.ms.number.pc.percent.pt.px.rad.rem.s.turn.vh.vmax.vmin.vw`.split(`.`),Hs=class{unit;value;constructor(e,t){if(typeof e!=`number`)throw TypeError(`The provided double value is non-finite`);if(!Vs.includes(t))throw TypeError(`Invalid unit: `+t);this.value=e,this.unit=t}},Us=class{Hz=e=>new Hs(e,`Hz`);Q=e=>new Hs(e,`Q`);ch=e=>new Hs(e,`ch`);cm=e=>new Hs(e,`cm`);deg=e=>new Hs(e,`deg`);dpcm=e=>new Hs(e,`dpcm`);dpi=e=>new Hs(e,`dpi`);dppx=e=>new Hs(e,`dppx`);em=e=>new Hs(e,`em`);ex=e=>new Hs(e,`ex`);fr=e=>new Hs(e,`fr`);grad=e=>new Hs(e,`grad`);in=e=>new Hs(e,`in`);kHz=e=>new Hs(e,`kHz`);mm=e=>new Hs(e,`mm`);ms=e=>new Hs(e,`ms`);number=e=>new Hs(e,`number`);pc=e=>new Hs(e,`pc`);percent=e=>new Hs(e,`percent`);pt=e=>new Hs(e,`pt`);px=e=>new Hs(e,`px`);rad=e=>new Hs(e,`rad`);rem=e=>new Hs(e,`rem`);s=e=>new Hs(e,`s`);turn=e=>new Hs(e,`turn`);vh=e=>new Hs(e,`vh`);vmax=e=>new Hs(e,`vmax`);vmin=e=>new Hs(e,`vmin`);vw=e=>new Hs(e,`vw`);supports(e,t){return!0}escape(e){return Bs.escape(e)}},Ws;(function(e){e[e.containerRule=0]=`containerRule`,e[e.styleRule=1]=`styleRule`,e[e.importRule=3]=`importRule`,e[e.mediaRule=4]=`mediaRule`,e[e.fontFaceRule=5]=`fontFaceRule`,e[e.pageRule=6]=`pageRule`,e[e.keyframesRule=7]=`keyframesRule`,e[e.keyframeRule=8]=`keyframeRule`,e[e.namespaceRule=10]=`namespaceRule`,e[e.counterStyleRule=11]=`counterStyleRule`,e[e.supportsRule=12]=`supportsRule`,e[e.documentRule=13]=`documentRule`,e[e.fontFeatureValuesRule=14]=`fontFeatureValuesRule`,e[e.regionStyleRule=16]=`regionStyleRule`})(Ws||={});var G=Ws,Gs=class{static CONTAINER_RULE=G.containerRule;static STYLE_RULE=G.styleRule;static IMPORT_RULE=G.importRule;static MEDIA_RULE=G.mediaRule;static FONT_FACE_RULE=G.fontFaceRule;static PAGE_RULE=G.pageRule;static KEYFRAMES_RULE=G.keyframesRule;static KEYFRAME_RULE=G.keyframeRule;static NAMESPACE_RULE=G.namespaceRule;static COUNTER_STYLE_RULE=G.counterStyleRule;static SUPPORTS_RULE=G.supportsRule;static DOCUMENT_RULE=G.documentRule;static FONT_FEATURE_VALUES_RULE=G.fontFeatureValuesRule;static REGION_STYLE_RULE=G.regionStyleRule;[b];[Xo];[Uo]=null;[Wo]=null;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[Xo]=n}get parentRule(){return this[Uo]}get parentStyleSheet(){return this[Wo]}};const Ks=/[,()]/gm,qs=/[()]|\s+/gm;var Js=class{static splitByComma(e){let t=[],n=new RegExp(Ks),r,i=0,a=0;for(;r=n.exec(e);)switch(r[0]){case`(`:i++;break;case`)`:i--;break;case`,`:if(i===0){let i=e.substring(a,r.index).trim();i&&t.push(i),a=n.lastIndex}break}return a<e.length&&t.push(e.substring(a).trim()),t}static splitBySpace(e){let t=[],n=new RegExp(qs),r,i=0,a=0;for(;r=n.exec(e);)switch(r[0]){case`(`:i++;break;case`)`:i--;break;default:if(i===0){let i=e.substring(a,r.index).trim();i&&t.push(i),a=n.lastIndex}break}if(a<e.length){let n=e.substring(a).trim();n&&t.push(n)}return t}};const Ys=/^#([0-9a-fA-F]{3,4}){1,2}$|^rgb\(([^)]*)\)$|^rgba\(([^)]*)\)$|^hsla?\(\s*(-?\d+|-?\d*.\d+)\s*,\s*(-?\d+|-?\d*.\d+)%\s*,\s*(-?\d+|-?\d*.\d+)%\s*(,\s*(-?\d+|-?\d*.\d+)\s*)?\)|(?:(rgba?|hsla?)\((var\(\s*(--[^)\s]+)\))\))/,Xs=/^(0|[-+]?[0-9]*\.?[0-9]+)(in|cm|em|mm|pt|pc|px|ex|rem|vh|vw|ch|vw|vh|vmin|vmax|Q)$/,Zs=/^[-+]?[0-9]*\.?[0-9]+%$/,Qs=/^[0-9]+deg$/,$s=/^url\(\s*([^)]*)\s*\)$/,ec=/^[0-9]+$/,tc=/^[0-9.]+$/,nc=/^calc\([^^)]+\)$/,rc=/^var\(\s*(--[^)\s]+)\)$/,ic=/^fit-content\([^^)]+\)$/,ac=/^((repeating-linear|linear|radial|repeating-radial|conic|repeating-conic)-gradient)\(((?:[^()]|\([^()]*\))*)\)$/,oc=[`inherit`,`initial`,`unset`,`revert`],sc=`none.currentcolor.transparent.silver.gray.white.maroon.red.purple.fuchsia.green.lime.olive.yellow.navy.blue.teal.aliceblue.aqua.antiquewhite.aquamarine.azure.beige.bisque.black.blanchedalmond.blueviolet.brown.burlywood.cadetblue.chartreuse.chocolate.coral.cornflowerblue.cornsilk.crimson.cyan.darkblue.darkcyan.darkgoldenrod.darkgray.darkgreen.darkgrey.darkkhaki.darkmagenta.darkolivegreen.darkorange.darkorchid.darkred.darksalmon.darkseagreen.darkslateblue.darkslategray.darkslategrey.darkturquoise.darkviolet.deeppink.deepskyblue.dimgray.dimgrey.dodgerblue.firebrick.floralwhite.forestgreen.gainsboro.ghostwhite.gold.goldenrod.greenyellow.grey.honeydew.hotpink.indianred.indigo.ivory.khaki.lavender.lavenderblush.lawngreen.lemonchiffon.lightblue.lightcoral.lightcyan.lightgoldenrodyellow.lightgray.lightgreen.lightgrey.lightpink.lightsalmon.lightseagreen.lightskyblue.lightslategray.lightslategrey.lightsteelblue.lightyellow.limegreen.linen.magenta.mediumaquamarine.mediumblue.mediumorchid.mediumpurple.mediumseagreen.mediumslateblue.mediumspringgreen.mediumturquoise.mediumvioletred.midnightblue.mintcream.mistyrose.moccasin.navajowhite.oldlace.olivedrab.orange.orangered.orchid.palegoldenrod.palegreen.paleturquoise.palevioletred.papayawhip.peachpuff.peru.pink.plum.powderblue.rebeccapurple.rosybrown.royalblue.saddlebrown.salmon.sandybrown.seagreen.seashell.sienna.skyblue.slateblue.slategray.slategrey.snow.springgreen.steelblue.tan.thistle.tomato.turquoise.violet.wheat.whitesmoke.yellowgreen`.split(`.`);var K=class{static getLength(e){if(e===`0`)return`0px`;let t=e.match(Xs);if(t){let e=parseFloat(t[1]);if(isNaN(e))return null;let n=t[2];return`${Math.round(e*1e6)/1e6}${n}`}return null}static getPercentage(e){return e===`0`?`0%`:Zs.test(e)?e:null}static getDegree(e){return e===`0`?`0deg`:Qs.test(e)?e:null}static getCalc(e){return nc.test(e)?e:null}static getFitContent(e){let t=e.toLowerCase();return t===`auto`||t===`max-content`||t===`min-content`||t===`fit-content`||ic.test(t)?t:null}static getMeasurement(e){return this.getLength(e)||this.getPercentage(e)||this.getCalc(e)}static getContentMeasurement(e){return this.getFitContent(e)||this.getMeasurement(e)}static getAutoMeasurement(e){return e.toLocaleLowerCase()===`auto`?`auto`:this.getMeasurement(e)}static getInteger(e){return ec.test(e)?e:null}static getFloat(e){if(tc.test(e)){let t=parseFloat(e);return isNaN(t)?null:String(Math.round(t*1e6)/1e6)}return null}static getGradient(e){let t=e.match(ac);if(t){let e=t[3].trim(),n=Js.splitByComma(e);return`${t[1]}(${n.join(`, `)})`}return null}static getColor(e){let t=e.toLowerCase();return sc.includes(t)?t:Ys.test(e)?e.replace(/,([^ ])/g,`, $1`):null}static getURL(e){if(!e)return null;if(e.toLowerCase()===`none`)return`none`;let t=$s.exec(e);if(!t)return null;let n=t[1].trim();if((n[0]===`"`||n[0]===`'`)&&n[0]!==n[n.length-1])return null;(n[0]===`"`||n[0]===`'`)&&(n=n.substring(1,n.length-1));for(let e=0;e<n.length;e++)switch(n[e]){case`(`:case`)`:case` `:case` `:case`
|
|
6
|
+
`:case`'`:case`"`:return null;case`\\`:e++;break}return`url("${n}")`}static getInitial(e){return e.toLowerCase()===`initial`?`initial`:null}static getVariable(e){let t=e.match(rc);return t?`var(${t[1]})`:null}static getGlobal(e){let t=e.toLowerCase();return oc.includes(t)?t:null}static getGlobalExceptInitial(e){let t=e.toLowerCase();return t!==`initial`&&oc.includes(t)?t:null}};const cc=/^rect\((.*)\)$/i,lc=/,(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,uc=/\s+(?=(?:(?:(?!\))[\s\S])*\()|[^\(\)]*$)/,dc=/\s+/gm,fc=[`none`,`hidden`,`dotted`,`dashed`,`solid`,`double`,`groove`,`ridge`,`inset`,`outset`],pc=[`thin`,`medium`,`thick`],mc=[`separate`,`collapse`],hc=[`repeat`,`repeat-x`,`repeat-y`,`no-repeat`],gc=[`border-box`,`padding-box`,`content-box`],_c=[`border-box`,`padding-box`,`content-box`],vc=[`scroll`,`fixed`],yc=[`auto`,`fill`,`content`],bc=[`none`,`left`,`right`,`both`],xc=[`none`,`left`,`right`,`inline-start`,`inline-end`],Sc=[`caption`,`icon`,`menu`,`message-box`,`small-caption`,`status-bar`],Cc=[`normal`,`bold`,`bolder`,`lighter`],wc=[`normal`,`italic`,`oblique`],Tc=[`xx-small`,`x-small`,`small`,`medium`,`large`,`x-large`,`xx-large`,`xxx-large`,`smaller`,`larger`],Ec=[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`],Dc=[`block`,`inline`,`inline-block`,`flex`,`inline-flex`,`grid`,`inline-grid`,`flow-root`,`none`,`contents`,`block flow`,`inline flow`,`inline flow-root`,`block flex`,`inline flex`,`block grid`,`inline grid`,`block flow-root`,`table`,`table-row`,`list-item`],Oc=[`stretch`,`repeat`,`round`,`space`],kc=[`capitalize`,`uppercase`,`lowercase`,`none`,`full-width`,`full-size-kana`],Ac=[`visible`,`hidden`,`collapse`];var q=class{static getBorderCollapse(e,t){let n=K.getVariable(e);if(n)return{"border-collapse":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||mc.includes(r)?{"border-collapse":{value:r,important:t}}:null}static getDisplay(e,t){let n=K.getVariable(e);if(n)return{display:{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||Dc.includes(r)?{display:{value:r,important:t}}:null}static getDirection(e,t){let n=K.getVariable(e);if(n)return{direction:{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||r===`ltr`||r===`rtl`?{direction:{value:r,important:t}}:null}static getLetterSpacing(e,t){let n=K.getVariable(e)||K.getGlobal(e)||K.getContentMeasurement(e);return n?{"letter-spacing":{value:n,important:t}}:null}static getWordSpacing(e,t){let n=K.getVariable(e)||K.getGlobal(e)||K.getContentMeasurement(e);return n?{"word-spacing":{value:n,important:t}}:null}static getTextIndent(e,t){let n=K.getVariable(e)||K.getGlobal(e)||K.getContentMeasurement(e);return n?{"text-indent":{value:n,important:t}}:null}static getWidth(e,t){let n=K.getVariable(e)||K.getGlobal(e)||K.getContentMeasurement(e);return n?{width:{value:n,important:t}}:null}static getHeight(e,t){let n=K.getVariable(e)||K.getGlobal(e)||K.getContentMeasurement(e);return n?{height:{value:n,important:t}}:null}static getTop(e,t){let n=K.getVariable(e)||K.getGlobal(e)||K.getContentMeasurement(e);return n?{top:{value:n,important:t}}:null}static getRight(e,t){let n=K.getVariable(e)||K.getGlobal(e)||K.getContentMeasurement(e);return n?{right:{value:n,important:t}}:null}static getBottom(e,t){let n=K.getVariable(e)||K.getGlobal(e)||K.getContentMeasurement(e);return n?{bottom:{value:n,important:t}}:null}static getLeft(e,t){let n=K.getVariable(e)||K.getGlobal(e)||K.getContentMeasurement(e);return n?{left:{value:n,important:t}}:null}static getClear(e,t){let n=K.getVariable(e);if(n)return{clear:{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||bc.includes(r)?{clear:{value:r,important:t}}:null}static getClip(e,t){let n=K.getVariable(e);if(n)return{clip:{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r)||r===`auto`)return{clip:{value:r,important:t}};let i=r.match(cc);if(!i)return null;let a=i[1].split(/\s*,\s*/);if(a.length!==4)return null;for(let e of a)if(!K.getMeasurement(e))return null;return{clip:{value:e,important:t}}}static getFloat(e,t){let n=K.getVariable(e);if(n)return{float:{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||xc.includes(r)?{float:{value:r,important:t}}:null}static getCSSFloat(e,t){let n=K.getVariable(e);if(n)return{"css-float":{value:n,important:t}};let r=this.getFloat(e,t);return r?{"css-float":r.float}:null}static getOutline(e,t){let n=K.getVariable(e);if(n)return{outline:{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getOutlineColor(r,t),...this.getOutlineStyle(r,t),...this.getOutlineWidth(r,t)};let i={...this.getOutlineColor(`initial`,t),...this.getOutlineStyle(`initial`,t),...this.getOutlineWidth(`initial`,t)},a=e.split(uc);for(let e of a){let n=this.getOutlineWidth(e,t),r=this.getOutlineStyle(e,t),a=this.getOutlineColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getOutlineColor(e,t){let n=K.getVariable(e)||K.getGlobal(e)||K.getColor(e);return n?{"outline-color":{value:n,important:t}}:null}static getOutlineOffset(e,t){let n=K.getVariable(e)||K.getLength(e);return n?{"outline-offset":{value:n,important:t}}:null}static getOutlineStyle(e,t){let n=K.getVariable(e);if(n)return{"outline-style":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||fc.includes(r)?{"outline-style":{value:r,important:t}}:null}static getOutlineWidth(e,t){let n=K.getVariable(e);if(n)return{"outline-width":{value:n,important:t}};let r=e.toLowerCase(),i=pc.includes(r)||K.getGlobal(r)?r:K.getLength(e);return i?{"outline-width":{value:i,important:t}}:null}static getBorder(e,t){let n=K.getVariable(e);if(n)return{border:{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBorderWidth(r,t),...this.getBorderStyle(r,t),...this.getBorderColor(r,t),...this.getBorderImage(r,t)};let i={...this.getBorderWidth(`initial`,t),...this.getBorderStyle(`initial`,t),...this.getBorderColor(`initial`,t),...this.getBorderImage(`initial`,t)},a=e.replace(/\s*,\s*/g,`,`).split(uc);for(let e of a){let n=this.getBorderWidth(e,t),r=this.getBorderStyle(e,t),a=this.getBorderColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getBorderWidth(e,t){let n=K.getVariable(e);if(n)return{"border-width":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBorderTopWidth(r,t),...this.getBorderRightWidth(r,t),...this.getBorderBottomWidth(r,t),...this.getBorderLeftWidth(r,t)};let i=e.split(uc),a=this.getBorderTopWidth(i[0],t),o=this.getBorderRightWidth(i[1]||i[0],t),s=this.getBorderBottomWidth(i[2]||i[0],t),c=this.getBorderLeftWidth(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getBorderStyle(e,t){let n=K.getVariable(e);if(n)return{"border-style":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBorderTopStyle(r,t),...this.getBorderRightStyle(r,t),...this.getBorderBottomStyle(r,t),...this.getBorderLeftStyle(r,t)};let i=e.split(uc),a=this.getBorderTopStyle(i[0],t),o=this.getBorderRightStyle(i[1]||i[0],t),s=this.getBorderBottomStyle(i[2]||i[0],t),c=this.getBorderLeftStyle(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getBorderColor(e,t){let n=K.getVariable(e);if(n)return{"border-color":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBorderTopColor(r,t),...this.getBorderRightColor(r,t),...this.getBorderBottomColor(r,t),...this.getBorderLeftColor(r,t)};let i=e.split(uc),a=this.getBorderTopColor(i[0],t),o=this.getBorderRightColor(i[1]||i[0],t),s=this.getBorderBottomColor(i[2]||i[0],t),c=this.getBorderLeftColor(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getBorderImage(e,t){let n=K.getVariable(e);if(n)return{"border-image":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBorderImageSource(r,t),...this.getBorderImageSlice(r,t),...this.getBorderImageWidth(r,t),...this.getBorderImageOutset(r,t),...this.getBorderImageRepeat(r,t)};let i=e.replace(/\s\/\s/g,`/`),a=i.match(/\s*([a-zA-Z-]+\([^)]*\))\s*/);a&&(i=i.replace(a[0],``));let o=i.split(uc);a&&o.push(a[1]);let s={...this.getBorderImageSource(`none`,t),...this.getBorderImageSlice(`100%`,t),...this.getBorderImageWidth(`1`,t),...this.getBorderImageOutset(`0`,t),...this.getBorderImageRepeat(`stretch`,t)};for(let e=0,n=o.length;e<n;e++){let n=o[e],r=e>0?o[e-1]:``;if(!n.startsWith(`url`)&&n.includes(`/`)){let[e,i,a]=n.split(`/`),o=this.getBorderImageSlice(`${r} ${e}`,t)||this.getBorderImageSlice(e,t),c=this.getBorderImageWidth(i,t),l=a&&this.getBorderImageOutset(a,t);if(!o||!c||l===null)return null;Object.assign(s,o,c,l)}else{let e=this.getBorderImageSlice(`${r} ${n}`,t)||this.getBorderImageSlice(n,t),i=this.getBorderImageSource(n,t),a=this.getBorderImageRepeat(n,t);if(!e&&!i&&!a)return null;Object.assign(s,e,i,a)}}return s}static getBorderImageSource(e,t){let n=K.getVariable(e);if(n)return{"border-image-source":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r)||r===`none`)return{"border-image-source":{important:t,value:r}};let i=K.getURL(e)||K.getGradient(e);return i?{"border-image-source":{important:t,value:i}}:null}static getBorderImageSlice(e,t){let n=K.getVariable(e);if(n)return{"border-image-slice":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r))return{"border-image-slice":{important:t,value:r}};if(r!==r.trim())return null;let i=/(fill)|(calc\([^^)]+\))|([0-9]+%)|([0-9]+)/g,a=[],o;for(;o=i.exec(r);){let e=r[o.index-1],t=r[o.index+o[0].length];if(e&&e!==` `||t&&t!==` `)return null;let n=o[1]&&`fill`,i=o[2]&&K.getCalc(o[2]),s=o[3]&&K.getPercentage(o[3]),c=o[4]&&K.getInteger(o[4]);if(!n&&!i&&!s&&!c)return null;a.push(n||i||s||c)}return!a.length||a.length>4?null:{"border-image-slice":{important:t,value:a.join(` `)}}}static getBorderImageWidth(e,t){let n=K.getVariable(e);if(n)return{"border-image-width":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r))return{"border-image-width":{important:t,value:r}};let i=r.split(uc);if(i.length>4)return null;for(let e of i)if(!K.getInteger(e)&&!K.getAutoMeasurement(e))return null;return{"border-image-width":{important:t,value:e}}}static getBorderImageOutset(e,t){if(e===`0`)return{"border-image-outset":{important:t,value:e}};let n=K.getVariable(e);if(n)return{"border-image-outset":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r))return{"border-image-outset":{important:t,value:r}};let i=e.split(uc);if(i.length>4)return null;let a=[];for(let e of i){let t=K.getLength(e)||K.getFloat(e);if(!t)return null;a.push(t===`0px`?`0`:t)}return{"border-image-outset":{important:t,value:a.join(` `)}}}static getBorderImageRepeat(e,t){let n=K.getVariable(e);if(n)return{"border-image-repeat":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r))return{"border-image-repeat":{important:t,value:r}};let i=r.split(uc);if(i.length>2)return null;for(let e of i)if(!Oc.includes(e))return null;return{"border-image-repeat":{important:t,value:e}}}static getBorderTopWidth(e,t){let n=K.getVariable(e);if(n)return{"border-top-width":{value:n,important:t}};let r=e.toLowerCase(),i=pc.includes(r)||K.getGlobal(r)?r:K.getLength(e);return i?{"border-top-width":{value:i,important:t}}:null}static getBorderRightWidth(e,t){let n=K.getVariable(e);if(n)return{"border-right-width":{value:n,important:t}};let r=e.toLowerCase(),i=pc.includes(r)||K.getGlobal(r)?r:K.getLength(e);return i?{"border-right-width":{value:i,important:t}}:null}static getBorderBottomWidth(e,t){let n=K.getVariable(e);if(n)return{"border-bottom-width":{value:n,important:t}};let r=e.toLowerCase(),i=pc.includes(r)||K.getGlobal(r)?r:K.getLength(e);return i?{"border-bottom-width":{value:i,important:t}}:null}static getBorderLeftWidth(e,t){let n=K.getVariable(e);if(n)return{"border-left-width":{value:n,important:t}};let r=e.toLowerCase(),i=pc.includes(r)||K.getGlobal(r)?r:K.getLength(e);return i?{"border-left-width":{value:i,important:t}}:null}static getBorderTopStyle(e,t){let n=K.getVariable(e);if(n)return{"border-top-style":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||fc.includes(r)?{"border-top-style":{value:r,important:t}}:null}static getBorderRightStyle(e,t){let n=K.getVariable(e);if(n)return{"border-right-style":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||fc.includes(r)?{"border-right-style":{value:r,important:t}}:null}static getBorderBottomStyle(e,t){let n=K.getVariable(e);if(n)return{"border-bottom-style":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||fc.includes(r)?{"border-bottom-style":{value:r,important:t}}:null}static getBorderLeftStyle(e,t){let n=K.getVariable(e);if(n)return{"border-left-style":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||fc.includes(r)?{"border-left-style":{value:r,important:t}}:null}static getBorderTopColor(e,t){let n=K.getVariable(e);if(n)return{"border-top-color":{value:n,important:t}};let r=K.getGlobal(e)||K.getColor(e);return r?{"border-top-color":{value:r,important:t}}:null}static getBorderRightColor(e,t){let n=K.getVariable(e);if(n)return{"border-right-color":{value:n,important:t}};let r=K.getGlobal(e)||K.getColor(e);return r?{"border-right-color":{value:r,important:t}}:null}static getBorderBottomColor(e,t){let n=K.getVariable(e);if(n)return{"border-bottom-color":{value:n,important:t}};let r=K.getGlobal(e)||K.getColor(e);return r?{"border-bottom-color":{value:r,important:t}}:null}static getBorderLeftColor(e,t){let n=K.getVariable(e);if(n)return{"border-left-color":{value:n,important:t}};let r=K.getGlobal(e)||K.getColor(e);return r?{"border-left-color":{value:r,important:t}}:null}static getBorderRadius(e,t){let n=K.getVariable(e);if(n)return{"border-radius":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBorderTopLeftRadius(r,t),...this.getBorderTopRightRadius(r,t),...this.getBorderBottomRightRadius(r,t),...this.getBorderBottomLeftRadius(r,t)};let i=e.split(uc),a=this.getBorderTopLeftRadius(i[0],t),o=this.getBorderTopRightRadius(i[1]||i[0],t),s=this.getBorderBottomRightRadius(i[2]||i[0],t),c=this.getBorderBottomLeftRadius(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getBorderTopLeftRadius(e,t){let n=K.getVariable(e);if(n)return{"border-top-left-radius":{value:n,important:t}};let r=K.getGlobal(e)||K.getMeasurement(e);return r?{"border-top-left-radius":{important:t,value:r}}:null}static getBorderTopRightRadius(e,t){let n=K.getVariable(e);if(n)return{"border-top-right-radius":{value:n,important:t}};let r=K.getGlobal(e)||K.getMeasurement(e);return r?{"border-top-right-radius":{important:t,value:r}}:null}static getBorderBottomRightRadius(e,t){let n=K.getVariable(e);if(n)return{"border-bottom-right-radius":{value:n,important:t}};let r=K.getGlobal(e)||K.getMeasurement(e);return r?{"border-bottom-right-radius":{important:t,value:r}}:null}static getBorderBottomLeftRadius(e,t){let n=K.getVariable(e);if(n)return{"border-bottom-left-radius":{value:n,important:t}};let r=K.getGlobal(e)||K.getMeasurement(e);return r?{"border-bottom-left-radius":{important:t,value:r}}:null}static getBorderTop(e,t){let n=K.getVariable(e);if(n)return{"border-top":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBorderTopWidth(r,t),...this.getBorderTopStyle(r,t),...this.getBorderTopColor(r,t)};let i={...this.getBorderTopWidth(`initial`,t),...this.getBorderTopStyle(`initial`,t),...this.getBorderTopColor(`initial`,t)},a=e.split(uc);for(let e of a){let n=this.getBorderTopWidth(e,t),r=this.getBorderTopStyle(e,t),a=this.getBorderTopColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getBorderRight(e,t){let n=K.getVariable(e);if(n)return{"border-right":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBorderRightWidth(r,t),...this.getBorderRightStyle(r,t),...this.getBorderRightColor(r,t)};let i={...this.getBorderRightWidth(`initial`,t),...this.getBorderRightStyle(`initial`,t),...this.getBorderRightColor(`initial`,t)},a=e.split(uc);for(let e of a){let n=this.getBorderRightWidth(e,t),r=this.getBorderRightStyle(e,t),a=this.getBorderRightColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getBorderBottom(e,t){let n=K.getVariable(e);if(n)return{"border-bottom":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBorderBottomWidth(r,t),...this.getBorderBottomStyle(r,t),...this.getBorderBottomColor(r,t)};let i={...this.getBorderBottomWidth(`initial`,t),...this.getBorderBottomStyle(`initial`,t),...this.getBorderBottomColor(`initial`,t)},a=e.split(uc);for(let e of a){let n=this.getBorderBottomWidth(e,t),r=this.getBorderBottomStyle(e,t),a=this.getBorderBottomColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getBorderLeft(e,t){let n=K.getVariable(e);if(n)return{"border-left":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBorderLeftWidth(r,t),...this.getBorderLeftStyle(r,t),...this.getBorderLeftColor(r,t)};let i={...this.getBorderLeftWidth(`initial`,t),...this.getBorderLeftStyle(`initial`,t),...this.getBorderLeftColor(`initial`,t)},a=e.split(uc);for(let e of a){let n=this.getBorderLeftWidth(e,t),r=this.getBorderLeftStyle(e,t),a=this.getBorderLeftColor(e,t);if(n===null&&r===null&&a===null)return null;Object.assign(i,n,r,a)}return i}static getPadding(e,t){let n=K.getVariable(e);if(n)return{padding:{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getPaddingTop(r,t),...this.getPaddingRight(r,t),...this.getPaddingBottom(r,t),...this.getPaddingLeft(r,t)};let i=e.split(uc),a=this.getPaddingTop(i[0],t),o=this.getPaddingRight(i[1]||i[0],t),s=this.getPaddingBottom(i[2]||i[0],t),c=this.getPaddingLeft(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getPaddingTop(e,t){let n=K.getVariable(e);if(n)return{"padding-top":{value:n,important:t}};let r=K.getGlobal(e)||K.getMeasurement(e);return r?{"padding-top":{value:r,important:t}}:null}static getPaddingRight(e,t){let n=K.getVariable(e);if(n)return{"padding-right":{value:n,important:t}};let r=K.getGlobal(e)||K.getMeasurement(e);return r?{"padding-right":{value:r,important:t}}:null}static getPaddingBottom(e,t){let n=K.getVariable(e);if(n)return{"padding-bottom":{value:n,important:t}};let r=K.getGlobal(e)||K.getMeasurement(e);return r?{"padding-bottom":{value:r,important:t}}:null}static getPaddingLeft(e,t){let n=K.getVariable(e);if(n)return{"padding-left":{value:n,important:t}};let r=K.getGlobal(e)||K.getMeasurement(e);return r?{"padding-left":{value:r,important:t}}:null}static getMargin(e,t){let n=K.getVariable(e);if(n)return{margin:{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getMarginTop(r,t),...this.getMarginRight(r,t),...this.getMarginBottom(r,t),...this.getMarginLeft(r,t)};let i=e.split(uc),a=this.getMarginTop(i[0],t),o=this.getMarginRight(i[1]||i[0],t),s=this.getMarginBottom(i[2]||i[0],t),c=this.getMarginLeft(i[3]||i[1]||i[0],t);return!a||!o||!s||!c?null:{...a,...o,...s,...c}}static getMarginTop(e,t){let n=K.getVariable(e);if(n)return{"margin-top":{value:n,important:t}};let r=K.getGlobal(e)||K.getAutoMeasurement(e);return r?{"margin-top":{value:r,important:t}}:null}static getMarginRight(e,t){let n=K.getVariable(e);if(n)return{"margin-right":{value:n,important:t}};let r=K.getGlobal(e)||K.getAutoMeasurement(e);return r?{"margin-right":{value:r,important:t}}:null}static getMarginBottom(e,t){let n=K.getVariable(e);if(n)return{"margin-bottom":{value:n,important:t}};let r=K.getGlobal(e)||K.getAutoMeasurement(e);return r?{"margin-bottom":{value:r,important:t}}:null}static getMarginLeft(e,t){let n=K.getVariable(e);if(n)return{"margin-left":{value:n,important:t}};let r=K.getGlobal(e)||K.getAutoMeasurement(e);return r?{"margin-left":{value:r,important:t}}:null}static getFlex(e,t){let n=K.getVariable(e);if(n)return{flex:{value:n,important:t}};let r=e.trim().toLowerCase(),i=K.getGlobal(e);if(i)return{...this.getFlexGrow(i,t),...this.getFlexShrink(i,t),...this.getFlexBasis(i,t)};switch(r){case`none`:return{...this.getFlexGrow(`0`,t),...this.getFlexShrink(`0`,t),...this.getFlexBasis(`auto`,t)};case`auto`:return{...this.getFlexGrow(`1`,t),...this.getFlexShrink(`1`,t),...this.getFlexBasis(`auto`,t)}}let a=K.getContentMeasurement(r);if(a)return{...this.getFlexGrow(`1`,t),...this.getFlexShrink(`1`,t),...this.getFlexBasis(a,t)};let o=e.split(uc),s=this.getFlexGrow(o[0],t),c=this.getFlexShrink(o[1]||`1`,t),l=this.getFlexBasis(o[2]||`0%`,t);return!s||!c||!l?null:{...s,...c,...l}}static getFlexBasis(e,t){let n=K.getVariable(e);if(n)return{"flex-basis":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r)||yc.includes(r))return{"flex-basis":{value:r,important:t}};let i=K.getContentMeasurement(r);return i?{"flex-basis":{value:i,important:t}}:null}static getFlexShrink(e,t){let n=K.getVariable(e);if(n)return{"flex-shrink":{value:n,important:t}};let r=K.getGlobal(e)||K.getFloat(e);return r?{"flex-shrink":{value:r,important:t}}:null}static getFlexGrow(e,t){let n=K.getVariable(e);if(n)return{"flex-grow":{value:n,important:t}};let r=K.getGlobal(e)||K.getFloat(e);return r?{"flex-grow":{value:r,important:t}}:null}static getBackground(e,t){let n=K.getVariable(e);if(n)return{background:{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBackgroundImage(r,t),...this.getBackgroundPosition(r,t),...this.getBackgroundSize(r,t),...this.getBackgroundRepeat(r,t),...this.getBackgroundAttachment(r,t),...this.getBackgroundOrigin(r,t),...this.getBackgroundClip(r,t),...this.getBackgroundColor(r,t)};let i={...this.getBackgroundImage(`initial`,t),...this.getBackgroundPosition(`initial`,t),...this.getBackgroundSize(`initial`,t),...this.getBackgroundRepeat(`initial`,t),...this.getBackgroundAttachment(`initial`,t),...this.getBackgroundOrigin(`initial`,t),...this.getBackgroundClip(`initial`,t),...this.getBackgroundColor(`initial`,t)},a=Js.splitBySpace(e.replace(/\s+\/\s+/g,`/`)),o=[];for(let e of a)if(!e.startsWith(`url`)&&e.includes(`/`)){let[n,r]=e.split(`/`),a=this.getBackgroundPositionX(n,t),s=this.getBackgroundPositionY(n,t),c=this.getBackgroundSize(r,t);if(!a&&!s||!c)return null;s?o.push(s[`background-position-y`].value):a&&o.push(a[`background-position-x`].value),Object.assign(i,c)}else{let n=this.getBackgroundImage(e,t),r=this.getBackgroundRepeat(e,t),a=this.getBackgroundAttachment(e,t),s=this.getBackgroundPositionX(e,t),c=this.getBackgroundPositionY(e,t),l=this.getBackgroundColor(e,t),u=this.getBackgroundOrigin(e,t),d=this.getBackgroundClip(e,t);if(!n&&!r&&!a&&!s&&!c&&!l&&!u&&!d)return null;s?o.push(s[`background-position-x`].value):c&&o.push(c[`background-position-y`].value),Object.assign(i,n,r,a,l,u,d)}return o.length&&Object.assign(i,this.getBackgroundPosition(o.join(` `),t)),i}static getBackgroundSize(e,t){let n=K.getVariable(e);if(n)return{"background-size":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r))return{"background-size":{value:r,important:t}};let i=r.split(lc),a=[];for(let e of i){let t=e.trim().split(` `);if(t.length!==1&&t.length!==2)return null;if(t.length===1){if(t[0]!==`cover`&&t[0]!==`contain`&&!K.getAutoMeasurement(t[0]))return null;a.push(t[0])}else{if(!K.getAutoMeasurement(t[0])||!K.getAutoMeasurement(t[1]))return null;a.push(`${t[0]} ${t[1]}`)}}return a.length===1?{"background-size":{value:a.join(`, `),important:t}}:null}static getBackgroundOrigin(e,t){let n=K.getVariable(e);if(n)return{"background-origin":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||gc.includes(r)?{"background-origin":{value:r,important:t}}:null}static getBackgroundClip(e,t){let n=K.getVariable(e);if(n)return{"background-clip":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||_c.includes(r)?{"background-clip":{value:r,important:t}}:null}static getBackgroundRepeat(e,t){let n=K.getVariable(e);if(n)return{"background-repeat":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||hc.includes(r)?{"background-repeat":{value:r,important:t}}:null}static getBackgroundAttachment(e,t){let n=K.getVariable(e);if(n)return{"background-attachment":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||vc.includes(r)?{"background-attachment":{value:r,important:t}}:null}static getBackgroundPosition(e,t){let n=K.getVariable(e);if(n)return{"background-position":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{...this.getBackgroundPositionX(r,t),...this.getBackgroundPositionY(r,t)};let i=e.split(lc),a=``,o=``;for(let e of i){let t=e.trim().split(uc);switch(a&&(a+=`,`,o+=`,`),t.length){case 1:t[0]===`top`||t[0]===`bottom`?(a+=`center`,o+=t[0]):t[0]===`left`||t[0]===`right`?(a+=t[0],o+=`center`):t[0]===`center`&&(a+=`center`,o+=`center`);break;case 2:a+=t[0]===`top`||t[0]===`bottom`?t[1]:t[0],o+=t[0]===`top`||t[0]===`bottom`?t[0]:t[1];break;case 3:t[0]===`top`||t[0]===`bottom`||t[1]===`left`||t[1]===`right`||t[2]===`left`||t[2]===`right`?K.getMeasurement(t[1])?(a+=t[2],o+=`${t[0]} ${t[1]}`):(a+=`${t[1]} ${t[2]}`,o+=t[0]):K.getMeasurement(t[1])?(a+=`${t[0]} ${t[1]}`,o+=t[2]):(a+=t[0],o+=`${t[1]} ${t[2]}`);break;case 4:a+=t[0]===`top`||t[0]===`bottom`||t[1]===`top`||t[1]===`bottom`?`${t[2]} ${t[3]}`:`${t[0]} ${t[1]}`,o+=t[0]===`top`||t[0]===`bottom`||t[1]===`top`||t[1]===`bottom`?`${t[0]} ${t[1]}`:`${t[2]} ${t[3]}`;break;default:return null}}let s=this.getBackgroundPositionX(a,t),c=this.getBackgroundPositionY(o,t);return s&&c?{...s,...c}:null}static getBackgroundPositionX(e,t){let n=K.getVariable(e);if(n)return{"background-position-x":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r))return{"background-position-x":{value:r,important:t}};let i=r.split(lc),a=``;for(let e of i){let t=e.trim().split(uc);a&&(a+=`,`);for(let e of t){let t=K.getMeasurement(e);if(!t&&e!==`left`&&e!==`right`&&e!==`center`)return null;a&&(a+=` `),a+=t||e}}return{"background-position-x":{value:a,important:t}}}static getBackgroundPositionY(e,t){let n=K.getVariable(e);if(n)return{"background-position-y":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r))return{"background-position-y":{value:r,important:t}};let i=r.split(lc),a=``;for(let e of i){let t=e.trim().split(uc);a&&(a+=`,`);for(let e of t){let t=K.getMeasurement(e);if(!t&&e!==`top`&&e!==`bottom`&&e!==`center`)return null;a&&(a+=` `),a+=t||e}}return{"background-position-y":{value:a,important:t}}}static getBackgroundColor(e,t){let n=K.getVariable(e);if(n)return{"background-color":{value:n,important:t}};let r=K.getGlobal(e)||K.getColor(e);return r?{"background-color":{important:t,value:r}}:null}static getBackgroundImage(e,t){let n=K.getVariable(e);if(n)return{"background-image":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r)||r===`none`)return{"background-image":{value:r,important:t}};let i=Js.splitByComma(e),a=[];for(let e of i){let t=K.getURL(e.trim())||K.getGradient(e.trim());if(!t)return null;a.push(t)}return a.length?{"background-image":{value:a.join(`, `),important:t}}:null}static getColor(e,t){let n=K.getVariable(e);if(n)return{color:{value:n,important:t}};let r=K.getGlobal(e)||K.getColor(e);return r?{color:{important:t,value:r}}:null}static getFloodColor(e,t){let n=K.getVariable(e);if(n)return{"flood-color":{value:n,important:t}};let r=K.getGlobal(e)||K.getColor(e);return r?{"flood-color":{important:t,value:r}}:null}static getFont(e,t){let n=K.getVariable(e);if(n)return{font:{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r))return{...this.getFontStyle(r,t),...this.getFontVariant(r,t),...this.getFontWeight(r,t),...this.getFontStretch(r,t),...this.getFontSize(r,t),...this.getLineHeight(r,t),...this.getFontFamily(r,t)};if(Sc.includes(r))return{font:{value:r,important:t}};let i={...this.getFontStyle(`normal`,t),...this.getFontVariant(`normal`,t),...this.getFontWeight(`normal`,t),...this.getFontStretch(`normal`,t),...this.getLineHeight(`normal`,t)},a=e.replace(/\s*\/\s*/g,`/`).split(uc);for(let e=0,n=a.length;e<n;e++){let n=a[e];if(n.includes(`/`)){let[e,r]=n.split(`/`),a=this.getFontSize(e,t),o=this.getLineHeight(r,t);if(!a||!o)return null;Object.assign(i,a,o)}else{let r=this.getFontStyle(n,t),o=this.getFontVariant(n,t),s=this.getFontWeight(n,t),c=this.getFontSize(n,t),l=this.getFontStretch(n,t);if(r)Object.assign(i,r);else if(o)Object.assign(i,o);else if(s)Object.assign(i,s);else if(c)Object.assign(i,c);else if(l)Object.assign(i,l);else{let n=a.slice(e).join(` `),r=this.getFontFamily(n,t);if(!r)return null;Object.assign(i,r);break}}}return i}static getFontStyle(e,t){let n=K.getVariable(e);if(n)return{"font-style":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r)||wc.includes(r))return{"font-style":{value:r,important:t}};let i=e.split(uc);return i.length===2&&i[0]===`oblique`&&K.getDegree(i[1])?{"font-style":{value:r,important:t}}:null}static getFontVariant(e,t){let n=K.getVariable(e);if(n)return{"font-variant":{value:n,important:t}};let r=e.toLowerCase();return K.getGlobal(r)||r===`normal`||r===`small-caps`?{"font-variant":{value:r,important:t}}:null}static getFontStretch(e,t){let n=K.getVariable(e);if(n)return{"font-stretch":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r)||Ec.includes(r))return{"font-stretch":{value:r,important:t}};let i=K.getPercentage(e);return i?{"font-stretch":{value:i,important:t}}:null}static getFontWeight(e,t){let n=K.getVariable(e);if(n)return{"font-weight":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r)||Cc.includes(r))return{"font-weight":{value:r,important:t}};let i=K.getInteger(e);return i?{"font-weight":{value:i,important:t}}:null}static getFontSize(e,t){let n=K.getVariable(e);if(n)return{"font-size":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r)||Tc.includes(r))return{"font-size":{value:r,important:t}};let i=K.getMeasurement(e);return i?{"font-size":{value:i,important:t}}:null}static getLineHeight(e,t){let n=K.getVariable(e);if(n)return{"line-height":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r)||r===`normal`)return{"line-height":{value:r,important:t}};let i=K.getFloat(e)||K.getMeasurement(e);return i?{"line-height":{value:i,important:t}}:null}static getFontFamily(e,t){let n=K.getVariable(e);if(n)return{"font-family":{value:n,important:t}};let r=K.getGlobal(e);if(r)return{"font-family":{value:r,important:t}};let i=e.split(`,`),a=``,o=!1;for(let e=0,t=i.length;e<t;e++){let t=i[e].trim().replace(/'/g,`"`);if(!t)return null;if(t.includes(` `)){let n=(t.match(/"/g)||[]).length;if((t[0]!==`"`||e!==0)&&n!==2&&n!==0)return null;t[0]===`"`&&t[t.length-1]!==`"`?o=!0:t[0]!==`"`&&t[t.length-1]!==`"`&&(t=`"${t}"`)}else t=t.replace(/"/g,``);e>0&&(a+=`, `),a+=t}return o&&(a+=`"`),a?{"font-family":{important:t,value:a}}:null}static getTextTransform(e,t){let n=K.getVariable(e);if(n)return{"text-transform":{value:n,important:t}};let r=e.toLowerCase(),i=K.getGlobal(r)||kc.includes(r)&&r;return i?{"text-transform":{value:i,important:t}}:null}static getVisibility(e,t){let n=K.getVariable(e);if(n)return{visibility:{value:n,important:t}};let r=e.toLowerCase(),i=K.getGlobal(r)||Ac.includes(r)&&r;return i?{visibility:{value:i,important:t}}:null}static getAspectRatio(e,t){let n=K.getVariable(e);if(n)return{"aspect-ratio":{value:n,important:t}};let r=e.toLowerCase();if(K.getGlobal(r))return{"aspect-ratio":{value:r,important:t}};let i=e,a=i.includes(`auto`);if(a&&(i=i.replace(`auto`,``)),i=i.replace(dc,``),!i)return{"aspect-ratio":{value:`auto`,important:t}};let o=i.split(`/`);if(o.length>3)return null;let s=Number(o[0]),c=o[1]?Number(o[1]):1;return isNaN(s)||isNaN(c)?null:a?{"aspect-ratio":{value:`auto ${s} / ${c}`,important:t}}:{"aspect-ratio":{value:`${s} / ${c}`,important:t}}}},jc=class{static getMargin(e){return this.getPaddingLikeProperty([`margin-top`,`margin-right`,`margin-bottom`,`margin-left`],e)}static getPadding(e){return this.getPaddingLikeProperty([`padding-top`,`padding-right`,`padding-bottom`,`padding-left`],e)}static getOutline(e){if(!e[`outline-color`]?.value||!e[`outline-style`]?.value||!e[`outline-width`]?.value)return null;let t=e[`outline-color`].important&&e[`outline-style`].important&&e[`outline-width`].important;if(K.getGlobalExceptInitial(e[`outline-width`].value)&&e[`outline-width`].value===e[`outline-style`].value&&e[`outline-width`].value===e[`outline-color`].value)return{important:t,value:e[`outline-width`].value};let n=[];return K.getInitial(e[`outline-color`]?.value)||n.push(e[`outline-color`].value),K.getInitial(e[`outline-style`]?.value)||n.push(e[`outline-style`].value),K.getInitial(e[`outline-width`].value)||n.push(e[`outline-width`].value),{important:t,value:n.join(` `)}}static getBorder(e){if(!e[`border-top-width`]?.value||e[`border-top-width`]?.value!==e[`border-right-width`]?.value||e[`border-top-width`]?.value!==e[`border-bottom-width`]?.value||e[`border-top-width`]?.value!==e[`border-left-width`]?.value||!e[`border-top-style`]?.value||e[`border-top-style`]?.value!==e[`border-right-style`]?.value||e[`border-top-style`]?.value!==e[`border-bottom-style`]?.value||e[`border-top-style`]?.value!==e[`border-left-style`]?.value||!e[`border-top-color`]?.value||e[`border-top-color`]?.value!==e[`border-right-color`]?.value||e[`border-top-color`]?.value!==e[`border-bottom-color`]?.value||e[`border-top-color`]?.value!==e[`border-left-color`]?.value||!e[`border-image-source`]?.value||!e[`border-image-slice`]?.value||!e[`border-image-width`]?.value||!e[`border-image-outset`]?.value||!e[`border-image-repeat`]?.value)return null;let t=e[`border-top-width`].important&&e[`border-right-width`].important&&e[`border-bottom-width`].important&&e[`border-left-width`].important&&e[`border-top-style`].important&&e[`border-right-style`].important&&e[`border-bottom-style`].important&&e[`border-left-style`].important&&e[`border-top-color`].important&&e[`border-right-color`].important&&e[`border-bottom-color`].important&&e[`border-left-color`].important&&e[`border-image-source`].important&&e[`border-image-slice`].important&&e[`border-image-width`].important&&e[`border-image-outset`].important&&e[`border-image-repeat`].important;if(K.getGlobalExceptInitial(e[`border-top-width`].value)||K.getGlobalExceptInitial(e[`border-top-style`].value)||K.getGlobalExceptInitial(e[`border-top-color`].value)||K.getGlobalExceptInitial(e[`border-image-source`].value)||K.getGlobalExceptInitial(e[`border-image-slice`].value)||K.getGlobalExceptInitial(e[`border-image-width`].value)||K.getGlobalExceptInitial(e[`border-image-outset`].value)||K.getGlobalExceptInitial(e[`border-image-repeat`].value))return e[`border-top-width`].value!==e[`border-top-style`].value||e[`border-top-width`].value!==e[`border-top-color`].value||e[`border-top-width`].value!==e[`border-image-source`].value||e[`border-top-width`].value!==e[`border-image-slice`].value||e[`border-top-width`].value!==e[`border-image-width`].value||e[`border-top-width`].value!==e[`border-image-outset`].value||e[`border-top-width`].value!==e[`border-image-repeat`].value?null:{important:t,value:e[`border-top-width`].value};let n=[];return K.getInitial(e[`border-top-width`].value)||n.push(e[`border-top-width`].value),K.getInitial(e[`border-top-style`].value)||n.push(e[`border-top-style`].value),K.getInitial(e[`border-top-color`].value)||n.push(e[`border-top-color`].value),{important:t,value:n.join(` `)}}static getBorderTop(e){return this.getBorderTopRightBottomLeft(`top`,e)}static getBorderRight(e){return this.getBorderTopRightBottomLeft(`right`,e)}static getBorderBottom(e){return this.getBorderTopRightBottomLeft(`bottom`,e)}static getBorderLeft(e){return this.getBorderTopRightBottomLeft(`left`,e)}static getBorderColor(e){return this.getPaddingLikeProperty([`border-top-color`,`border-right-color`,`border-bottom-color`,`border-left-color`],e)}static getBorderWidth(e){return this.getPaddingLikeProperty([`border-top-width`,`border-right-width`,`border-bottom-width`,`border-left-width`],e)}static getBorderStyle(e){return this.getPaddingLikeProperty([`border-top-style`,`border-right-style`,`border-bottom-style`,`border-left-style`],e)}static getBorderRadius(e){return this.getPaddingLikeProperty([`border-top-left-radius`,`border-top-right-radius`,`border-bottom-right-radius`,`border-bottom-left-radius`],e)}static getBorderImage(e){if(!e[`border-image-source`]?.value||!e[`border-image-slice`]?.value||!e[`border-image-width`]?.value||!e[`border-image-outset`]?.value||!e[`border-image-repeat`]?.value)return null;let t=e[`border-image-source`].important&&e[`border-image-slice`].important&&e[`border-image-width`].important&&e[`border-image-outset`].important&&e[`border-image-repeat`].important;return K.getGlobal(e[`border-image-source`].value)||K.getGlobal(e[`border-image-slice`].value)||K.getGlobal(e[`border-image-width`].value)||K.getGlobal(e[`border-image-outset`].value)||K.getGlobal(e[`border-image-repeat`].value)?e[`border-image-source`].value!==e[`border-image-slice`].value||e[`border-image-source`].value!==e[`border-image-width`].value||e[`border-image-source`].value!==e[`border-image-outset`].value||e[`border-image-source`].value!==e[`border-image-repeat`].value?null:{important:t,value:e[`border-image-source`].value}:{important:t,value:`${e[`border-image-source`].value} ${e[`border-image-slice`].value} / ${e[`border-image-width`].value} / ${e[`border-image-outset`].value} ${e[`border-image-repeat`].value}`}}static getBackground(e){if(!e[`background-image`]?.value||!e[`background-repeat`]?.value||!e[`background-attachment`]?.value||!e[`background-position-x`]?.value||!e[`background-position-y`]?.value||!e[`background-color`]?.value||!e[`background-size`]?.value||!e[`background-origin`]?.value||!e[`background-clip`]?.value)return null;let t=e[`background-image`].important&&e[`background-repeat`].important&&e[`background-attachment`].important&&e[`background-position-x`].important&&e[`background-position-y`].important&&e[`background-color`].important&&e[`background-size`].important&&e[`background-origin`].important&&e[`background-clip`].important;if(K.getGlobalExceptInitial(e[`background-image`].value)||K.getGlobalExceptInitial(e[`background-repeat`].value)||K.getGlobalExceptInitial(e[`background-attachment`].value)||K.getGlobalExceptInitial(e[`background-position-x`].value)||K.getGlobalExceptInitial(e[`background-position-y`].value)||K.getGlobalExceptInitial(e[`background-color`].value)||K.getGlobalExceptInitial(e[`background-size`].value)||K.getGlobalExceptInitial(e[`background-origin`].value)||K.getGlobalExceptInitial(e[`background-clip`].value))return e[`background-image`].value!==e[`background-repeat`].value||e[`background-image`].value!==e[`background-attachment`].value||e[`background-image`].value!==e[`background-position-x`].value||e[`background-image`].value!==e[`background-position-y`].value||e[`background-image`].value!==e[`background-color`].value||e[`background-image`].value!==e[`background-size`].value||e[`background-image`].value!==e[`background-origin`].value||e[`background-image`].value!==e[`background-clip`].value?null:{important:t,value:e[`background-image`].value};let n=[];return K.getInitial(e[`background-image`].value)||n.push(e[`background-image`].value),!K.getInitial(e[`background-position-x`].value)&&!K.getInitial(e[`background-position-y`].value)&&!K.getInitial(e[`background-size`].value)?n.push(`${e[`background-position-x`].value} ${e[`background-position-y`].value} / ${e[`background-size`].value}`):!K.getInitial(e[`background-position-x`].value)&&!K.getInitial(e[`background-position-y`].value)&&n.push(`${e[`background-position-x`].value} ${e[`background-position-y`].value}`),K.getInitial(e[`background-repeat`].value)||n.push(e[`background-repeat`].value),K.getInitial(e[`background-attachment`].value)||n.push(e[`background-attachment`].value),K.getInitial(e[`background-origin`].value)||n.push(e[`background-origin`].value),K.getInitial(e[`background-clip`].value)||n.push(e[`background-clip`].value),K.getInitial(e[`background-color`].value)||n.push(e[`background-color`].value),{important:t,value:n.join(` `)}}static getBackgroundPosition(e){if(!e[`background-position-x`]?.value||!e[`background-position-y`]?.value)return null;let t=e[`background-position-x`].important&&e[`background-position-y`].important;if(K.getGlobal(e[`background-position-x`].value)||K.getGlobal(e[`background-position-y`].value))return e[`background-position-x`].value===e[`background-position-y`].value?{important:t,value:e[`background-position-x`].value}:null;let n=e[`background-position-x`].value.replace(/ *, */g,`,`).split(`,`),r=e[`background-position-y`].value.replace(/ *, */g,`,`).split(`,`),i=[];for(let e=0;e<n.length;e++)i.push(`${n[e]} ${r[e]}`);return{important:t,value:i.join(`, `)}}static getFlex(e){if(!e[`flex-grow`]?.value||!e[`flex-shrink`]?.value||!e[`flex-basis`]?.value)return null;let t=e[`flex-grow`].important&&e[`flex-shrink`].important&&e[`flex-basis`].important;return K.getGlobal(e[`flex-grow`].value)||K.getGlobal(e[`flex-shrink`].value)||K.getGlobal(e[`flex-basis`].value)?e[`flex-grow`].value!==e[`flex-shrink`].value||e[`flex-grow`].value!==e[`flex-basis`].value?null:{important:t,value:e[`flex-grow`].value}:{important:t,value:`${e[`flex-grow`].value} ${e[`flex-shrink`].value} ${e[`flex-basis`].value}`}}static getFont(e){if(!e[`font-size`]?.value||!e[`font-family`]?.value||!e[`font-weight`]?.value||!e[`font-style`]?.value||!e[`font-variant`]?.value||!e[`font-stretch`]?.value||!e[`line-height`]?.value)return null;let t=e[`font-size`].important&&e[`font-family`].important&&e[`font-weight`].important&&e[`font-style`].important&&e[`font-variant`].important&&e[`font-stretch`].important&&e[`line-height`].important;if(K.getGlobal(e[`font-size`].value)||K.getGlobal(e[`font-family`].value)||K.getGlobal(e[`font-weight`].value)||K.getGlobal(e[`font-style`].value)||K.getGlobal(e[`font-variant`].value)||K.getGlobal(e[`font-stretch`].value)||K.getGlobal(e[`line-height`].value))return e[`font-size`].value!==e[`font-family`].value||e[`font-size`].value!==e[`font-weight`].value||e[`font-size`].value!==e[`font-style`].value||e[`font-size`].value!==e[`font-variant`].value||e[`font-size`].value!==e[`font-stretch`].value||e[`font-size`].value!==e[`line-height`].value?null:{important:t,value:e[`font-size`].value};let n=[];return e[`font-style`].value!==`normal`&&n.push(e[`font-style`].value),e[`font-variant`].value!==`normal`&&n.push(e[`font-variant`].value),e[`font-weight`].value!==`normal`&&n.push(e[`font-weight`].value),e[`font-stretch`].value!==`normal`&&n.push(e[`font-stretch`].value),e[`line-height`].value===`normal`?n.push(e[`font-size`].value):n.push(`${e[`font-size`].value} / ${e[`line-height`].value}`),n.push(e[`font-family`].value),{important:t,value:n.join(` `)}}static getBorderTopRightBottomLeft(e,t){if(!t[`border-${e}-width`]?.value||!t[`border-${e}-style`]?.value||!t[`border-${e}-color`]?.value)return null;let n=t[`border-${e}-width`].important&&t[`border-${e}-style`].important&&t[`border-${e}-color`].important;if(K.getGlobalExceptInitial(t[`border-${e}-width`].value)&&t[`border-${e}-width`].value===t[`border-${e}-style`].value&&t[`border-${e}-width`].value===t[`border-${e}-color`].value)return{important:n,value:t[`border-${e}-width`].value};let r=[];return K.getInitial(t[`border-${e}-width`].value)||r.push(t[`border-${e}-width`].value),K.getInitial(t[`border-${e}-style`]?.value)||r.push(t[`border-${e}-style`].value),K.getInitial(t[`border-${e}-color`]?.value)||r.push(t[`border-${e}-color`].value),{important:n,value:r.join(` `)}}static getPaddingLikeProperty(e,t){if(!t[e[0]]?.value||!t[e[1]]?.value||!t[e[2]]?.value||!t[e[3]]?.value)return null;let n=t[e[0]].important&&t[e[1]].important&&t[e[2]].important&&t[e[3]].important;if(K.getGlobal(t[e[0]].value)||K.getGlobal(t[e[1]].value)||K.getGlobal(t[e[2]].value)||K.getGlobal(t[e[3]].value))return t[e[0]].value!==t[e[1]].value||t[e[0]].value!==t[e[2]].value||t[e[0]].value!==t[e[3]].value?null:{important:n,value:t[e[0]].value};let r=[t[e[0]].value];return(t[e[1]].value!==t[e[0]].value||t[e[2]].value!==t[e[0]].value||t[e[3]].value!==t[e[1]].value)&&r.push(t[e[1]].value),(t[e[2]].value!==t[e[0]].value||t[e[3]].value!==t[e[1]].value)&&r.push(t[e[2]].value),t[e[3]].value!==t[e[1]].value&&r.push(t[e[3]].value),{important:n,value:r.join(` `)}}};const Mc=/\s*([^:;]+?)\s*:\s*((?:[^(;]*?(?:\([^)]*\))?)*?)\s*(!important)?\s*(?:$|;)/g;var Nc=class{static parse(e){let t={},n=[],r=new RegExp(Mc),i;for(;i=r.exec(e);){let e=(i[1]??``).trim(),r=(i[2]??``).trim(),a=!!i[3];e&&r&&(e.startsWith(`--`)&&(t[e]=r),n.push({name:e,value:r,important:a}))}return{rules:n,properties:t}}};const Pc=[[`margin`],[`padding`],[`border`,[`border-width`,`border-style`,`border-color`,`border-image`]],[`border-radius`],[`background`,`background-position`],[`font`]];var Fc=class{properties={};definedPropertyNames={};constructor(e){if(e?.cssText){let{rules:t}=Nc.parse(e.cssText);for(let e of t)(e.important||!this.get(e.name)?.important)&&this.set(e.name,e.value,e.important)}}get(e){if(this.properties[e])return this.properties[e];switch(e){case`margin`:return jc.getMargin(this.properties);case`padding`:return jc.getPadding(this.properties);case`border`:return jc.getBorder(this.properties);case`border-top`:return jc.getBorderTop(this.properties);case`border-right`:return jc.getBorderRight(this.properties);case`border-bottom`:return jc.getBorderBottom(this.properties);case`border-left`:return jc.getBorderLeft(this.properties);case`border-color`:return jc.getBorderColor(this.properties);case`border-style`:return jc.getBorderStyle(this.properties);case`border-width`:return jc.getBorderWidth(this.properties);case`border-radius`:return jc.getBorderRadius(this.properties);case`border-image`:return jc.getBorderImage(this.properties);case`outline`:return jc.getOutline(this.properties);case`background`:return jc.getBackground(this.properties);case`background-position`:return jc.getBackgroundPosition(this.properties);case`flex`:return jc.getFlex(this.properties);case`font`:return jc.getFont(this.properties)}return this.properties[e]||null}remove(e){switch(delete this.properties[e],delete this.definedPropertyNames[e],e){case`border`:delete this.properties[`border-top-width`],delete this.properties[`border-right-width`],delete this.properties[`border-bottom-width`],delete this.properties[`border-left-width`],delete this.properties[`border-top-style`],delete this.properties[`border-right-style`],delete this.properties[`border-bottom-style`],delete this.properties[`border-left-style`],delete this.properties[`border-top-color`],delete this.properties[`border-right-color`],delete this.properties[`border-bottom-color`],delete this.properties[`border-left-color`],delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-top`:delete this.properties[`border-top-width`],delete this.properties[`border-top-style`],delete this.properties[`border-top-color`],delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-right`:delete this.properties[`border-right-width`],delete this.properties[`border-right-style`],delete this.properties[`border-right-color`],delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-bottom`:delete this.properties[`border-bottom-width`],delete this.properties[`border-bottom-style`],delete this.properties[`border-bottom-color`],delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-left`:delete this.properties[`border-left-width`],delete this.properties[`border-left-style`],delete this.properties[`border-left-color`],delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-width`:delete this.properties[`border-top-width`],delete this.properties[`border-right-width`],delete this.properties[`border-bottom-width`],delete this.properties[`border-left-width`];break;case`border-style`:delete this.properties[`border-top-style`],delete this.properties[`border-right-style`],delete this.properties[`border-bottom-style`],delete this.properties[`border-left-style`];break;case`border-color`:delete this.properties[`border-top-color`],delete this.properties[`border-right-color`],delete this.properties[`border-bottom-color`],delete this.properties[`border-left-color`];break;case`border-image`:delete this.properties[`border-image-source`],delete this.properties[`border-image-slice`],delete this.properties[`border-image-width`],delete this.properties[`border-image-outset`],delete this.properties[`border-image-repeat`];break;case`border-radius`:delete this.properties[`border-top-left-radius`],delete this.properties[`border-top-right-radius`],delete this.properties[`border-bottom-right-radius`],delete this.properties[`border-bottom-left-radius`];break;case`outline`:delete this.properties[`outline-color`],delete this.properties[`outline-style`],delete this.properties[`outline-width`];break;case`background`:delete this.properties[`background-color`],delete this.properties[`background-image`],delete this.properties[`background-repeat`],delete this.properties[`background-attachment`],delete this.properties[`background-position-x`],delete this.properties[`background-position-y`],delete this.properties[`background-size`],delete this.properties[`background-origin`],delete this.properties[`background-clip`];break;case`background-position`:delete this.properties[`background-position-x`],delete this.properties[`background-position-y`];break;case`flex`:delete this.properties[`flex-grow`],delete this.properties[`flex-shrink`],delete this.properties[`flex-basis`];break;case`font`:delete this.properties[`font-style`],delete this.properties[`font-variant`],delete this.properties[`font-weight`],delete this.properties[`font-stretch`],delete this.properties[`font-size`],delete this.properties[`line-height`],delete this.properties[`font-family`];break;case`padding`:delete this.properties[`padding-top`],delete this.properties[`padding-right`],delete this.properties[`padding-bottom`],delete this.properties[`padding-left`];break;case`margin`:delete this.properties[`margin-top`],delete this.properties[`margin-right`],delete this.properties[`margin-bottom`],delete this.properties[`margin-left`];break}}set(e,t,n){if(t===null){this.remove(e);return}let r=null;switch(e){case`border`:r=q.getBorder(t,n);break;case`border-top`:r=q.getBorderTop(t,n);break;case`border-right`:r=q.getBorderRight(t,n);break;case`border-bottom`:r=q.getBorderBottom(t,n);break;case`border-left`:r=q.getBorderLeft(t,n);break;case`border-width`:r=q.getBorderWidth(t,n);break;case`border-style`:r=q.getBorderStyle(t,n);break;case`border-color`:r=q.getBorderColor(t,n);break;case`border-image`:r=q.getBorderImage(t,n);break;case`border-image-source`:r=q.getBorderImageSource(t,n);break;case`border-image-slice`:r=q.getBorderImageSlice(t,n);break;case`border-image-width`:r=q.getBorderImageWidth(t,n);break;case`border-image-outset`:r=q.getBorderImageOutset(t,n);break;case`border-image-repeat`:r=q.getBorderImageRepeat(t,n);break;case`border-top-width`:r=q.getBorderTopWidth(t,n);break;case`border-right-width`:r=q.getBorderRightWidth(t,n);break;case`border-bottom-width`:r=q.getBorderBottomWidth(t,n);break;case`border-left-width`:r=q.getBorderLeftWidth(t,n);break;case`border-top-color`:r=q.getBorderTopColor(t,n);break;case`border-right-color`:r=q.getBorderRightColor(t,n);break;case`border-bottom-color`:r=q.getBorderBottomColor(t,n);break;case`border-left-color`:r=q.getBorderLeftColor(t,n);break;case`border-top-style`:r=q.getBorderTopStyle(t,n);break;case`border-right-style`:r=q.getBorderRightStyle(t,n);break;case`border-bottom-style`:r=q.getBorderBottomStyle(t,n);break;case`border-left-style`:r=q.getBorderLeftStyle(t,n);break;case`border-radius`:r=q.getBorderRadius(t,n);break;case`border-top-left-radius`:r=q.getBorderTopLeftRadius(t,n);break;case`border-top-right-radius`:r=q.getBorderTopRightRadius(t,n);break;case`border-bottom-right-radius`:r=q.getBorderBottomRightRadius(t,n);break;case`border-bottom-left-radius`:r=q.getBorderBottomLeftRadius(t,n);break;case`border-collapse`:r=q.getBorderCollapse(t,n);break;case`outline`:r=q.getOutline(t,n);break;case`outline-width`:r=q.getOutlineWidth(t,n);break;case`outline-style`:r=q.getOutlineStyle(t,n);break;case`outline-color`:r=q.getOutlineColor(t,n);break;case`letter-spacing`:r=q.getLetterSpacing(t,n);break;case`word-spacing`:r=q.getWordSpacing(t,n);break;case`clear`:r=q.getClear(t,n);break;case`clip`:r=q.getClip(t,n);break;case`css-float`:r=q.getCSSFloat(t,n);break;case`float`:r=q.getFloat(t,n);break;case`display`:r=q.getDisplay(t,n);break;case`direction`:r=q.getDirection(t,n);break;case`flex`:r=q.getFlex(t,n);break;case`flex-shrink`:r=q.getFlexShrink(t,n);break;case`flex-grow`:r=q.getFlexGrow(t,n);break;case`flex-basis`:r=q.getFlexBasis(t,n);break;case`padding`:r=q.getPadding(t,n);break;case`padding-top`:r=q.getPaddingTop(t,n);break;case`padding-right`:r=q.getPaddingRight(t,n);break;case`padding-bottom`:r=q.getPaddingBottom(t,n);break;case`padding-left`:r=q.getPaddingLeft(t,n);break;case`margin`:r=q.getMargin(t,n);break;case`margin-top`:r=q.getMarginTop(t,n);break;case`margin-right`:r=q.getMarginRight(t,n);break;case`margin-bottom`:r=q.getMarginBottom(t,n);break;case`margin-left`:r=q.getMarginLeft(t,n);break;case`background`:r=q.getBackground(t,n);break;case`background-image`:r=q.getBackgroundImage(t,n);break;case`background-color`:r=q.getBackgroundColor(t,n);break;case`background-repeat`:r=q.getBackgroundRepeat(t,n);break;case`background-attachment`:r=q.getBackgroundAttachment(t,n);break;case`background-position`:r=q.getBackgroundPosition(t,n);break;case`width`:r=q.getWidth(t,n);break;case`height`:r=q.getHeight(t,n);break;case`top`:r=q.getTop(t,n);break;case`right`:r=q.getRight(t,n);break;case`bottom`:r=q.getBottom(t,n);break;case`left`:r=q.getLeft(t,n);break;case`font`:r=q.getFont(t,n);break;case`font-style`:r=q.getFontStyle(t,n);break;case`font-variant`:r=q.getFontVariant(t,n);break;case`font-weight`:r=q.getFontWeight(t,n);break;case`font-stretch`:r=q.getFontStretch(t,n);break;case`font-size`:r=q.getFontSize(t,n);break;case`line-height`:r=q.getLineHeight(t,n);break;case`text-indent`:r=q.getTextIndent(t,n);break;case`font-family`:r=q.getFontFamily(t,n);break;case`color`:r=q.getColor(t,n);break;case`flood-color`:r=q.getFloodColor(t,n);break;case`text-transform`:r=q.getTextTransform(t,n);break;case`visibility`:r=q.getVisibility(t,n);break;case`aspect-ratio`:r=q.getAspectRatio(t,n);break;default:let i=t.trim();if(i){let t=K.getGlobal(i);r={[e]:{value:t||i,important:n}}}break}r!==null&&Object.keys(r).length>0&&(this.definedPropertyNames[e]=!0,Object.assign(this.properties,r))}clone(){let e=this.constructor,t=new e;return t.properties=JSON.parse(JSON.stringify(this.properties)),t.definedPropertyNames=Object.assign({},this.definedPropertyNames),t}size(){return Object.keys(this.properties).length}item(e){return Object.keys(this.properties)[e]||``}toString(){let e=[],t=this.clone(),n={};for(let e of Pc)for(let r of e)if(Array.isArray(r)){let e=!1;for(let i of r){let r=t.get(i);r&&(n[i]=r,t.remove(i),e=!0)}if(e)break}else{let e=t.get(r);if(e){n[r]=e,t.remove(r);break}}for(let e of Object.keys(t.properties))n[e]=t.get(e);for(let t of Object.keys(this.definedPropertyNames)){let r=n[t];r&&(e.push(`${t}: ${r.value}${r.important?` !important`:``};`),delete n[t])}for(let t of Object.keys(n)){let r=n[t];r&&e.push(`${t}: ${r.value}${r.important?` !important`:``};`)}return e.join(` `)}},Ic={default:`display: inline;`,A:``,ABBR:``,ADDRESS:`display: block;`,AREA:``,ARTICLE:`display: block;`,ASIDE:`display: block;`,AUDIO:`display: none;`,B:``,BASE:`display: none;`,BDI:``,BDO:``,BLOCKQUAOTE:``,BODY:`display: block;`,TEMPLATE:`display: none;`,FORM:`display: block;`,INPUT:`display: inline-block;`,TEXTAREA:`display: inline-block;`,SCRIPT:`display: none;`,IMG:``,LINK:`display: none;`,STYLE:`display: none;`,LABEL:``,SLOT:`display: contents;`,SVG:``,CIRCLE:``,ELLIPSE:``,LINE:``,PATH:``,POLYGON:``,POLYLINE:``,RECT:``,STOP:``,USE:``,META:`display: none;`,BLOCKQUOTE:`display: block;`,BR:``,BUTTON:`display: inline-block;`,CANVAS:``,CAPTION:`display: table-caption;`,CITE:``,CODE:``,COL:`display: table-column;`,COLGROUP:`display: table-column-group;`,DATA:``,DATALIST:`display: none;`,DD:`display: block;`,DEL:``,DETAILS:`display: block;`,DFN:``,DIALOG:{default:`display: none;`,open:`display: block;`},DIV:`display: block;`,DL:`display: block;`,DT:`display: block;`,EM:``,EMBED:``,FIELDSET:`display: block;`,FIGCAPTION:`display: block;`,FIGURE:`display: block;`,FOOTER:`display: block;`,H1:`display: block;`,H2:`display: block;`,H3:`display: block;`,H4:`display: block;`,H5:`display: block;`,H6:`display: block;`,HEAD:`display: none;`,HEADER:`display: block;`,HGROUP:`display: block;`,HR:`display: block;`,HTML:`display: block;direction: ltr;font: 16px "Times New Roman";`,I:``,IFRAME:``,INS:``,KBD:``,LEGEND:`display: block;`,LI:`display: list-item;`,MAIN:`display: block;`,MAP:``,MARK:``,MATH:``,MENU:`display: block;`,MENUITEM:``,METER:`display: inline-block;`,NAV:`display: block;`,NOSCRIPT:``,OBJECT:``,OL:`display: block;`,OPTGROUP:`display: block;`,OPTION:`display: block;`,OUTPUT:`unicode-bidi: isolate;`,P:`display: block;`,PARAM:`display: none;`,PICTURE:``,PRE:`display: block;`,PROGRESS:`display: inline-block;`,Q:``,RB:``,RP:`display: none;`,RT:``,RTC:``,RUBY:``,S:``,SAMP:``,SECTION:`display: block;`,SELECT:`display: inline-block;`,SMALL:``,SOURCE:``,SPAN:``,STRONG:``,SUB:``,SUMMARY:`display: block;`,SUP:``,TABLE:`display: table;`,TBODY:`display: table-row-group;`,TD:`display: table-cell;`,TFOOT:`display: table-footer-group;`,TH:`display: table-cell;`,THEAD:`display: table-header-group;`,TIME:``,TITLE:`display: none;`,TR:`display: table-row;`,TRACK:``,U:``,UL:`display: block;`,VAR:``,VIDEO:``,WBR:``},Lc={"border-collapse":!0,"border-spacing":!0,"caption-side":!0,color:!0,cursor:!0,direction:!0,"empty-cells":!0,"font-family":!0,"font-size":!0,"font-style":!0,"font-variant":!0,"font-weight":!0,"font-size-adjust":!0,"font-stretch":!0,font:!0,"letter-spacing":!0,"line-height":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,"list-style":!0,orphans:!0,quotes:!0,"tab-size":!0,"text-align":!0,"text-align-last":!0,"text-decoration-color":!0,"text-indent":!0,"text-justify":!0,"text-shadow":!0,"text-transform":!0,visibility:!0,"white-space":!0,widows:!0,"word-break":!0,"word-spacing":!0,"word-wrap":!0},Rc=`background-position-x.background-position-y.background-size.border-image-outset.border-top-width.border-right-width.border-bottom-width.border-left-width.border-top-left-radius.border-top-right-radius.border-bottom-right-radius.border-bottom-left-radius.border-image-width.clip.font-size.padding-top.padding-right.padding-bottom.padding-left.margin-top.margin-right.margin-bottom.margin-left.width.height.min-width.min-height.max-width.max-height.top.right.bottom.left.outline-width.outline-offset.letter-spacing.word-spacing.text-indent.line-height`.split(`.`),zc=class{target;classes;cache=new Map;constructor(e,t){this.target=e,this.classes=t}bind(e){if(this.cache.has(e)||e===Symbol.iterator||e===`constructor`)return;this.cache.set(e,!0);let t=this.target;if(e in t)for(let n of this.classes){let r=Object.getOwnPropertyDescriptor(n.prototype,e);if(r){if(typeof r.value==`function`){if(r.value.toString().startsWith(`class `))return;Object.defineProperty(t,e,{...r,value:r.value.bind(t)})}else r.get!==void 0&&Object.defineProperty(t,e,{...r,get:r.get?.bind(t),set:r.set?.bind(t)});return}}}preventBinding(e){this.cache.set(e,!0)}},Bc=class e{[A];[ar];constructor(t,n){if(t!==N)throw TypeError(`Illegal constructor`);this[A]=n;let r=new zc(this,this.constructor===e?[e]:[this.constructor,e]),i=new Proxy(this,{get:(e,t)=>{if(t===`length`)return n.length;if(t in e||typeof t==`symbol`)return r.bind(t),e[t];if(t===``)return;let i=Number(t);if(!isNaN(i))return n[i]},set(e,t,n){if(r.bind(t),typeof t==`symbol`)return e[t]=n,!0;let i=Number(t);return isNaN(i)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(){return Object.keys(n)},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let r=Number(t);return!isNaN(r)&&r>=0&&r<n.length},defineProperty(e,t,n){return r.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let r=Number(t);if(!isNaN(r)&&n[r])return{value:n[r],writable:!1,enumerable:!0,configurable:!0}}});return this[ar]=i,i}get length(){return this[A].length}get[Symbol.toStringTag](){return`NodeList`}toLocaleString(){return`[object NodeList]`}toString(){return`[object NodeList]`}item(e){let t=this[A];return e>=0&&t[e]?t[e]:null}[Symbol.iterator](){return this[A][Symbol.iterator]()}values(){return this[A].values()}entries(){return this[A].entries()}forEach(e,t){let n=this[A],r=this[ar]??this;for(let i=0,a=n.length;i<a;i++){let a=n[i];e.call(t??a[b],a,i,r)}}keys(){return this[A].keys()}},Vc;(function(e){e.none=`none`,e.descendant=`descendant`,e.child=`child`,e.adjacentSibling=`adjacentSibling`,e.subsequentSibling=`subsequentSibling`})(Vc||={});var Hc=Vc,Uc=class{root;scope;tagName;id;classNames;attributes;pseudos;isPseudoElement;combinator;ignoreErrors;constructor(e){this.root=e?.scope?.[g]?.documentElement||e?.scope?.[b].document?.documentElement||null,this.scope=e?.scope||null,this.tagName=e?.tagName||null,this.id=e?.id||null,this.classNames=e?.classNames||null,this.attributes=e?.attributes||null,this.pseudos=e?.pseudos||null,this.isPseudoElement=e?.isPseudoElement||!1,this.combinator=e?.combinator||Hc.none,this.ignoreErrors=e?.ignoreErrors||!1}match(e){let t=0;if(this.isPseudoElement)return null;if(this.tagName){if(this.tagName!==`*`&&this.tagName!==e[w].toUpperCase())return null;t+=1}if(this.id){if(this.id!==e.id)return null;t+=100}if(this.classNames){let n=this.matchClass(e);if(!n)return null;t+=n.priorityWeight}if(this.attributes){let n=this.matchAttributes(e);if(!n)return null;t+=n.priorityWeight}if(this.pseudos){let n=this.matchPseudo(e);if(!n)return null;t+=n.priorityWeight}return{priorityWeight:t}}matchPseudo(e){let t=e[S],n=e[S]?e[S][Yn]:[];if(!this.pseudos)return{priorityWeight:0};let r=0;for(let i of this.pseudos){switch(i.name){case`not`:case`nth-child`:case`nth-of-type`:case`nth-last-child`:case`nth-last-of-type`:case`is`:case`where`:if(!i.arguments){if(this.ignoreErrors)return null;throw new e[b].DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${this.getSelectorString()}' is not a valid selector.`)}break}if(!t)switch(i.name){case`first-child`:case`last-child`:case`only-child`:case`first-of-type`:case`last-of-type`:case`only-of-type`:case`nth-child`:case`nth-of-type`:case`nth-last-child`:case`nth-last-of-type`:return null}let a=this.matchPseudoItem(e,n,i);if(!a)return null;r+=a.priorityWeight}return{priorityWeight:r}}matchPseudoItem(e,t,n){switch(n.name){case`first-child`:return t[0]===e?{priorityWeight:10}:null;case`last-child`:return t.length&&t[t.length-1]===e?{priorityWeight:10}:null;case`only-child`:return t.length===1&&t[0]===e?{priorityWeight:10}:null;case`first-of-type`:for(let n of t)if(n[w]===e[w])return n===e?{priorityWeight:10}:null;return null;case`last-of-type`:for(let n=t.length-1;n>=0;n--){let r=t[n];if(r[w]===e[w])return r===e?{priorityWeight:10}:null}return null;case`only-of-type`:let r=!1;for(let n of t)if(n[w]===e[w]){if(r||n!==e)return null;r=!0}return r?{priorityWeight:10}:null;case`checked`:return e[w]===`INPUT`&&e.checked?{priorityWeight:10}:null;case`disabled`:return`disabled`in e&&e.hasAttribute(`disabled`)?{priorityWeight:10}:null;case`empty`:return e[Yn].length?null:{priorityWeight:10};case`root`:return this.root&&e===this.root?{priorityWeight:10}:null;case`not`:for(let t of n.selectorItems)if(t.match(e))return null;return{priorityWeight:10};case`nth-child`:let i=-1;if(n.selectorItems?.[0]&&!n.selectorItems[0].match(e))return null;for(let r=0,a=t.length;r<a;r++)if((!n.selectorItems?.[0]||n.selectorItems[0].match(t[r]))&&i++,t[r]===e)return i!==-1&&n.nthFunction(i+1)?{priorityWeight:10}:null;return null;case`nth-of-type`:let a=-1;for(let r=0,i=t.length;r<i;r++)if(t[r][w]===e[w]&&a++,t[r]===e)return a!==-1&&n.nthFunction(a+1)?{priorityWeight:10}:null;return null;case`nth-last-child`:let o=-1;if(n.selectorItems?.[0]&&!n.selectorItems[0].match(e))return null;for(let r=t.length-1;r>=0;r--)if((!n.selectorItems?.[0]||n.selectorItems[0].match(t[r]))&&o++,t[r]===e)return o!==-1&&n.nthFunction(o+1)?{priorityWeight:10}:null;return null;case`nth-last-of-type`:let s=-1;for(let r=t.length-1;r>=0;r--)if(t[r][w]===e[w]&&s++,t[r]===e)return s!==-1&&n.nthFunction(s+1)?{priorityWeight:10}:null;return null;case`target`:let c=e[g].location.hash;return c&&e.isConnected&&e.id===c.slice(1)?{priorityWeight:10}:null;case`is`:let l=0;if(!n.selectorItems)return null;for(let t of n.selectorItems){let n=t.match(e);n&&l<n.priorityWeight&&(l=n.priorityWeight)}return l?{priorityWeight:l}:null;case`where`:if(!n.selectorItems)return null;for(let t of n.selectorItems)if(t.match(e))return{priorityWeight:0};return null;case`has`:let u=0;if(n.arguments&&n.selectorItems)if(n.arguments[0]===`+`){let t=e.nextElementSibling;if(!t)return null;for(let e of n.selectorItems){let n=e.match(t);n&&u<n.priorityWeight&&(u=n.priorityWeight)}}else if(n.arguments[0]===`>`)for(let t of n.selectorItems)for(let n of e[Yn]){let e=t.match(n);if(e&&u<e.priorityWeight){u=e.priorityWeight;break}}else for(let t of n.selectorItems){let n=this.matchChildOfElement(t,e);n&&u<n.priorityWeight&&(u=n.priorityWeight)}return u?{priorityWeight:u}:null;case`focus`:case`focus-visible`:return e[g].activeElement===e?{priorityWeight:10}:null;case`scope`:return this.scope&&this.scope===e?{priorityWeight:10}:null;default:return null}}matchAttributes(e){if(!this.attributes)return null;let t=0;for(let n of this.attributes){let r=e[Ot].getNamedItem(n.name);if(!r||(t+=10,n.value!==null&&(r[v]===null||n.regExp&&!n.regExp.test(r[v])||!n.regExp&&n.value!==r[v])))return null}return{priorityWeight:t}}matchClass(e){if(!this.classNames)return null;let t=0;for(let n of this.classNames){if(!e.classList.contains(n))return null;t+=10}return{priorityWeight:t}}matchChildOfElement(e,t){for(let n of t[Yn]){let t=e.match(n);if(t)return t;let r=this.matchChildOfElement(e,n);if(r)return r}return null}getSelectorString(){return`${this.tagName?this.tagName.toLowerCase():``}${this.id?`#${this.id}`:``}${this.classNames?`.${this.classNames.join(`.`)}`:``}${this.attributes?this.attributes.map(e=>`[${e.name}${e.value?`${e.operator||``}="${e.value}"`:``}]`).join(``):``}${this.pseudos?this.pseudos.map(e=>`:${e.name}${e.arguments?`(${e.arguments})`:``}`).join(``):``}`}};const Wc=/(\s*[\s,+>~]\s*)|([\[\]\(\)"'])/gm,Gc=/(\*)|([a-zA-Z0-9\u00A0-\uFFFF-]+)|#(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\.(([a-zA-Z0-9\u00A0-\uFFFF_-]|\\.)+)|\[(([a-zA-Z0-9-_]|\\.)+)\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*("([^"]*)"|'([^']*)')\s*(s|i){0,1}\]|\[(([a-zA-Z0-9-_]|\\.)+)\s*([~|^$*]{0,1})\s*=\s*(([a-zA-Z0-9\u00A0-\uFFFF_¤£-]|\\.)+)\]|:([a-zA-Z-]+)\s*\(.+\)|:([a-zA-Z-]+)|::([a-zA-Z-]+)/gm,Kc=/:([a-zA-Z-]+)|([()])/gm,qc=/\\/g,Jc=/\\([0-9a-fA-F]{1,6})\s?|\\(.)/g,Yc=/[.*+?^${}()|[\]\\]/g,Xc={odd:e=>(e+1)%2==0,even:e=>(e+1)%2!=0,alwaysFalse:()=>!1},Zc=/ /g;var Qc=class e{window;scope;ignoreErrors;constructor(e){this.window=e.window,this.scope=e.scope,this.ignoreErrors=e.ignoreErrors??!1}getSelectorItem(e){return this.getSelectorGroups(e)[0][0]}getSelectorGroups(e){e=e.trim();let t=[],n=[t],r=new RegExp(Wc),i={parentheses:0,brackets:0,doubleApostrophe:0,singleApostrophe:0},a=this.scope.nodeType===U.documentNode?`Document`:`Element`,o=new this.window.DOMException(`Failed to execute 'querySelectorAll' on '${a}': '${e}' is not a valid selector.`),s=null,c=0,l=null,u=Hc.none;for(;s=r.exec(e);)if(s[1]){if(i.parentheses===0&&i.brackets===0&&i.singleApostrophe===0&&i.doubleApostrophe===0){let i=e.substring(c,s.index).trim();switch(s[1].trim()){case`,`:if(l=this.getSelectorGroupItem(i,u),!l){if(this.ignoreErrors)return[];throw o}t.push(l),t=[],n.push(t),u=Hc.none;break;case`>`:if(l=this.getSelectorGroupItem(i,u),!l){if(this.ignoreErrors)return[];throw o}t.push(l),u=Hc.child;break;case`+`:if(l=this.getSelectorGroupItem(i,u),!l){if(this.ignoreErrors)return[];throw o}t.push(l),u=Hc.adjacentSibling;break;case`~`:if(l=this.getSelectorGroupItem(i,u),!l){if(this.ignoreErrors)return[];throw o}t.push(l),u=Hc.subsequentSibling;break;case``:if(l=this.getSelectorGroupItem(i,u),!l){if(this.ignoreErrors)return[];throw o}t.push(l),u=Hc.descendant;break}c=r.lastIndex}}else switch(s[2]){case`(`:i.singleApostrophe===0&&i.doubleApostrophe===0&&i.parentheses++;break;case`)`:i.singleApostrophe===0&&i.doubleApostrophe===0&&i.parentheses--;break;case`[`:i.singleApostrophe===0&&i.doubleApostrophe===0&&i.brackets++;break;case`]`:i.singleApostrophe===0&&i.doubleApostrophe===0&&i.brackets--;break;case`"`:i.singleApostrophe===0&&(i.doubleApostrophe=i.doubleApostrophe===1?0:1);break;case`'`:i.doubleApostrophe===0&&(i.singleApostrophe=i.singleApostrophe===1?0:1);break}if(l=this.getSelectorGroupItem(e.substring(c),u),!l||i.parentheses!==0||i.brackets!==0||i.singleApostrophe!==0||i.doubleApostrophe!==0){if(this.ignoreErrors)return[];throw o}return u===Hc.none&&t.length>0?n.push([l]):t.push(l),n}getSelectorGroupItem(t,n){t=t.trim();let r=this.ignoreErrors,i=this.scope;if(!t)return null;if(t===`*`)return new Uc({scope:i,tagName:`*`,combinator:n,ignoreErrors:r});let a=new RegExp(Gc),o=new Uc({scope:i,combinator:n,ignoreErrors:r}),s,c=0;for(;s=a.exec(t);){if(t.substring(c,s.index).trim()!==``)return null;if(s[1])o.tagName=`*`;else if(s[2])o.tagName=s[2].toUpperCase();else if(s[3])o.id=s[3].replace(qc,``);else if(s[5])o.classNames=o.classNames||[],o.classNames.push(s[5].replace(qc,``));else if(s[7])o.attributes=o.attributes||[],o.attributes.push({name:s[7].replace(qc,``),operator:null,value:null,modifier:null,regExp:null});else if(s[9]&&(s[13]!==void 0||s[14]!==void 0)){let t=s[13]??s[14],n=e.cssUnescape(t);o.attributes=o.attributes||[],o.attributes.push({name:s[9].replace(qc,``),operator:s[11]||null,value:n,modifier:s[15]||null,regExp:this.getAttributeRegExp({operator:s[11],value:n,modifier:s[15]})})}else if(s[16]&&s[19]!==void 0){let t=e.cssUnescape(s[19]);o.attributes=o.attributes||[],o.attributes.push({name:s[16].replace(qc,``),operator:s[18]||null,value:t,modifier:null,regExp:this.getAttributeRegExp({operator:s[18],value:t})})}else if(s[21]){let e=new RegExp(Kc),t=null,n=null,r=0,i=-1;for(;t=e.exec(s[0]);)if(t[1])r===0&&(n=t[1]);else if(t[2]){if(t[2]===`(`)r===0&&(i=e.lastIndex),r++;else if(t[2]===`)`){if(r--,r<0)return null;if(r===0){if(i===-1||!n)return null;o.pseudos=o.pseudos||[],o.pseudos.push(this.getPseudo(n,s[0].substring(i,t.index))),n=null,i=-1}}}}else s[22]?(o.pseudos=o.pseudos||[],o.pseudos.push(this.getPseudo(s[22],null))):s[23]&&(o.isPseudoElement=!0);c=a.lastIndex}return c<t.length?null:o}getAttributeRegExp(e){let t=e.modifier===`i`?`i`:``;if(!e.operator||!e.value)return null;let n=e.value.replace(Yc,`\\$&`);switch(e.operator){case`~`:return RegExp(`[- ]${n}|${n}[- ]|^${n}$`,t);case`|`:return RegExp(`^${n}[- ]|^${n}$`,t);case`^`:return RegExp(`^${n}`,t);case`$`:return RegExp(`${n}$`,t);case`*`:return RegExp(`${n}`,t);default:return null}}getPseudo(e,t){let n=e.toLowerCase();if(t&&=t.trim(),!t)return{name:n,arguments:null,selectorItems:null,nthFunction:null};switch(n){case`nth-last-child`:case`nth-child`:let e=t.indexOf(` of `),r=e===-1?t:t.substring(0,e),i=e===-1?null:this.getSelectorItem(t.substring(e+4).trim());return{name:n,arguments:t,selectorItems:i?[i]:null,nthFunction:this.getPseudoNthFunction(r)};case`nth-of-type`:case`nth-last-of-type`:return{name:n,arguments:t,selectorItems:null,nthFunction:this.getPseudoNthFunction(t)};case`not`:let a=[];for(let e of this.getSelectorGroups(t))e[0]&&a.push(e[0]);return{name:n,arguments:t,selectorItems:a,nthFunction:null};case`is`:case`where`:let o=[];for(let e of this.getSelectorGroups(t))e[0]&&o.push(e[0]);return{name:n,arguments:t,selectorItems:o,nthFunction:null};case`has`:let s=[];if(!t.includes(`:has(`)){let e=t;t[0]===`+`?e=t.replace(`+`,``):t[0]===`>`&&(e=t.replace(`>`,``));for(let t of this.getSelectorGroups(e))t[0]&&s.push(t[0])}return{name:n,arguments:t||``,selectorItems:s,nthFunction:null};default:return{name:n,arguments:t,selectorItems:null,nthFunction:null}}}getPseudoNthFunction(e){if(!e)return null;if(e===`odd`)return Xc.odd;if(e===`even`)return Xc.even;let t=e.replace(Zc,``).split(`n`),n=parseInt(t[0],10)||0;if(t[0]==`-`&&(n=-1),t.length===1)return e=>e==n;let r=parseInt(t[1],10)||0;return t[0]==`+`&&(r=1),n>=1||n<=-1?n>=1?Math.abs(n)===1?e=>e>r-1:e=>e>r-1&&(e+-1*r)%n===0:Math.abs(n)===1?e=>e<r+1:e=>e<r+1&&(e+-1*r)%n===0:t[0]?e=>e===r:e=>e>r-1}static cssUnescape(e){return e.replace(Jc,(e,t,n)=>t?String.fromCodePoint(parseInt(t,16)):n)}};const $c=/^[.#\[]?\d|[.#]$/;var J=class{static querySelectorAll(e,t){let n=e[b];if(t===``)throw new n.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': The provided selector is empty.`);if(typeof t==`function`)throw new n.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': '${t}' is not a valid selector.`);if(typeof t==`symbol`)throw new n.TypeError(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': Cannot convert a Symbol value to a string`);if(t=String(t),$c.test(t))throw new n.DOMException(`Failed to execute 'querySelectorAll' on '${e.constructor.name}': '${t}' is not a valid selector.`);let r=e[M].querySelectorAll,i=r.get(t);if(i){if(i.result!==null){let e=i.result.deref();if(e)return e}r.delete(t)}let a=new Qc({window:n,scope:e[C]===U.documentNode?e.documentElement:e}).getSelectorGroups(t),o=[],s=new Bc(N,o),c=new Map,l=[],u={result:new WeakRef(s)};e[M].querySelectorAll.set(t,u),e[x]&&(e[g]||e)[Xn].push(u);for(let t of a){let n=e[C]===U.elementNode?this.findAll(e,[e],t,u):this.findAll(null,e[Yn],t,u);for(let e of n)c.has(e.documentPosition)||(c.set(e.documentPosition,e.element),l.push(e.documentPosition))}let d=l.sort();for(let e=0,t=d.length;e<t;e++)o.push(c.get(d[e]));return s}static querySelector(e,t){let n=e[b];if(t===``)throw new n.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': The provided selector is empty.`);if(typeof t==`function`)throw new n.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': '${t}' is not a valid selector.`);if(typeof t==`symbol`)throw new n.TypeError(`Failed to execute 'querySelector' on '${e.constructor.name}': Cannot convert a Symbol value to a string`);if(t=String(t),$c.test(t))throw new n.DOMException(`Failed to execute 'querySelector' on '${e.constructor.name}': '${t}' is not a valid selector.`);let r=e[M].querySelector.get(t);if(r){if(r.result!==null){if(!r.result.element)return null;let e=r.result.element.deref();if(e)return e}e[M].querySelector.delete(t)}let i={result:{element:null}};e[M].querySelector.set(t,i),e[x]&&(e[g]||e)[Xn].push(i);let a=null,o=new Map,s=e[C]===U.documentNode?e.documentElement:e;for(let r of new Qc({window:n,scope:s}).getSelectorGroups(t)){let t=e[C]===U.elementNode?this.findFirst(e,[e],r,i):this.findFirst(null,e[Yn],r,i);t&&!o.has(t.documentPosition)&&(o.set(t.documentPosition,!0),(!a||t.documentPosition<a.documentPosition)&&(a=t))}let c=a?.element||null;return i.result={element:c?new WeakRef(c):null},c}static matches(e,t,n){let r=n?.ignoreErrors,i=e[b];if(t===`*`)return{priorityWeight:1};if(t===``){if(r)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': The provided selector is empty.`)}if(typeof t==`function`){if(r)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${t}' is not a valid selector.`)}if(typeof t==`symbol`){if(r)return null;throw new i.TypeError(`Cannot convert a Symbol value to a string`)}if(t=String(t),$c.test(t)){if(r)return null;throw new i.DOMException(`Failed to execute 'matches' on '${e.constructor.name}': '${t}' is not a valid selector.`)}let a=e[M].matches.get(t);if(a){if(a.result!==null)return a.result.match;e[M].matches.delete(t)}let o={result:{match:null}};e[M].matches.set(t,o),e[x]&&(e[g]||e)[Xn].push(o);let s=n?.scope||e,c=s[C]===U.documentNode?s.documentElement:s;for(let r of new Qc({ignoreErrors:n?.ignoreErrors,window:i,scope:c}).getSelectorGroups(t)){let t=this.matchSelector(e,r.reverse(),o);if(t)return o.result.match=t,t}return null}static matchSelector(e,t,n,r=null,i=0){let a=t[0];if(!a)return null;let o=a.match(e);if(o){if(t.length===1)return{priorityWeight:i+o.priorityWeight};switch(a.combinator){case Hc.adjacentSibling:let r=e.previousElementSibling;if(r){r[Xn].push(n);let e=this.matchSelector(r,t.slice(1),n,a,i+o.priorityWeight);if(e)return e}break;case Hc.none:case Hc.child:case Hc.descendant:let s=e.parentElement;if(s){s[Xn].push(n);let e=this.matchSelector(s,t.slice(1),n,a,i+o.priorityWeight);if(e)return e}break;case Hc.subsequentSibling:let c=e.parentElement;if(c){let r=c[Yn],s=r.indexOf(e);c[Xn].push(n);for(let e=s-1;e>=0;e--){let s=r[e];s[Xn].push(n);let c=this.matchSelector(s,t.slice(1),n,a,i+o.priorityWeight);if(c)return c}}break}}if(r?.combinator===Hc.none||r?.combinator===Hc.descendant){let a=e.parentElement;if(a)return this.matchSelector(a,t,n,r,i)}return null}static findAll(e,t,n,r,i){let a=n[0],o=n[1],s=[];if(!a)return[];for(let c=0,l=t.length;c<l;c++){let l=t[c],u=l[Yn],d=(i?i+`>`:``)+String.fromCharCode(c);if(l[Xn].push(r),a.match(l))if(!o)e!==l&&s.push({documentPosition:d,element:l});else switch(o.combinator){case Hc.adjacentSibling:let i=l.nextElementSibling;i&&(s=s.concat(this.findAll(e,[i],n.slice(1),r,d)));break;case Hc.none:case Hc.descendant:case Hc.child:s=s.concat(this.findAll(e,u,n.slice(1),r,d));break;case Hc.subsequentSibling:let a=t.indexOf(l);for(let i=a+1;i<t.length;i++){let a=t[i];s=s.concat(this.findAll(e,[a],n.slice(1),r,d))}break}(a.combinator===Hc.none||a.combinator===Hc.descendant)&&u.length&&(s=s.concat(this.findAll(e,u,n,r,d)))}return s}static findFirst(e,t,n,r,i){let a=n[0],o=n[1];if(!a)return null;for(let s=0,c=t.length;s<c;s++){let c=t[s],l=c[Yn],u=(i?i+`>`:``)+String.fromCharCode(s);if(c[Xn].push(r),a.match(c)){if(o)switch(o.combinator){case Hc.adjacentSibling:let i=c.nextElementSibling;if(i){let t=this.findFirst(e,[i],n.slice(1),r,u);if(t)return t}break;case Hc.none:case Hc.descendant:case Hc.child:let a=this.findFirst(e,l,n.slice(1),r,u);if(a)return a;break;case Hc.subsequentSibling:let o=t.indexOf(c);for(let i=o+1;i<t.length;i++){let a=t[i],o=this.findFirst(e,[a],n.slice(1),r,u);if(o)return o}break}else if(e!==c)return{documentPosition:u,element:c}}if((a.combinator===Hc.none||a.combinator===Hc.descendant)&&l.length){let t=this.findFirst(e,l,n,r,u);if(t)return t}}return null}},el=class{static toPixels(e){let t=parseFloat(e.value),n=e.value.replace(t.toString(),``);if(isNaN(t))return null;switch(n){case`px`:return t;case`rem`:return this.round(t*parseFloat(e.rootFontSize));case`em`:return this.round(t*parseFloat(e.parentFontSize));case`vw`:return this.round(t*e.window.innerWidth/100);case`vh`:return this.round(t*e.window.innerHeight/100);case`%`:return e.parentSize!==void 0&&e.parentSize!==null?this.round(t*parseFloat(e.parentSize)/100):null;case`vmin`:return this.round(t*Math.min(e.window.innerWidth,e.window.innerHeight)/100);case`vmax`:return t*Math.max(e.window.innerWidth,e.window.innerHeight)/100;case`cm`:return this.round(t*37.7812);case`mm`:return this.round(t*3.7781);case`in`:return this.round(t*96);case`pt`:return this.round(t*1.3281);case`pc`:return this.round(t*16);case`Q`:return this.round(t*.945);default:return null}}static round(e){return Math.round(e*1e4)/1e4}},Y=class{static[Zr]=new Map;static[Qr]=0;#e;constructor(e){this.#e=e}getSettings(){return this.getBrowserFrame()?.page.context.browser.settings||null}getBrowser(){return this.getBrowserFrame()?.page.context.browser||null}getBrowserPage(){return this.getBrowserFrame()?.page||null}getBrowserContext(){return this.getBrowserFrame()?.page.context||null}getBrowserFrame(){return this.#e&&this.constructor[Zr].get(this.#e[Re])||null}getAsyncTaskManager(){return this.getBrowserFrame()?.[fe]||null}static setWindowBrowserFrameRelation(e,t){let n=this[Zr];e[Re]===-1&&(e[Re]=this[Qr],this[Qr]++),n.set(e[Re],t)}static removeWindowBrowserFrameRelation(e){this[Zr].delete(e[Re])}},tl=class{[Ke]={capturing:new Map,bubbling:new Map};[Ge]={capturing:new Map,bubbling:new Map};get[Symbol.toStringTag](){return`EventTarget`}addEventListener(e,t,n){n=typeof n==`boolean`?{capture:n}:n||{};let r=n.capture?`capturing`:`bubbling`,i=this[Ke][r].get(e),a;i?a=this[Ge][r].get(e):(i=[],a=[],this[Ke][r].set(e,i),this[Ge][r].set(e,a)),!i.includes(t)&&(i.push(t),a.push(n),n.signal&&!n.signal.aborted&&n.signal.addEventListener(`abort`,()=>{this.removeEventListener(e,t)}))}removeEventListener(e,t){let n=this[Ke].bubbling.get(e);if(n){let r=n.indexOf(t);if(r!==-1){n.splice(r,1),this[Ge].bubbling.get(e).splice(r,1);return}}let r=this[Ke].capturing.get(e);if(r){let n=r.indexOf(t);n!==-1&&(r.splice(n,1),this[Ge].capturing.get(e).splice(n,1))}}dispatchEvent(e){if(!(e instanceof W))throw new this[b].TypeError(`Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.`);return!e[Oo]&&(e[qr]!==`load`||!e[dt])?(e[Oo]=!0,e[dt]=this[ar]||this,this.#e(e),e[Oo]=!1,!(e[Ur]&&e[Wr])):(this.#t(e),!(e[Ur]&&e[Wr]))}attachEvent(e,t){this.addEventListener(e.replace(`on`,``),t)}detachEvent(e,t){this.removeEventListener(e.replace(`on`,``),t)}[Me](){this[Ke].capturing.clear(),this[Ke].bubbling.clear(),this[Ge].capturing.clear(),this[Ge].bubbling.clear()}#e(e){let t=e.composedPath();e[Gr]=Ts.capturing;for(let n=t.length-1;n>=0;n--)if(e[ke]=t[n],t[n].dispatchEvent(e),e[Qe]||e[ze]){e[Gr]=Ts.none,e[ke]=null;return}if(e[Gr]=Ts.atTarget,e[ke]=this[ar]||this,e[dt].dispatchEvent(e),e[Gr]=Ts.bubbling,e[Hr]&&!e[Qe]&&!e[ze]){for(let n=1,r=t.length;n<r;n++)if(e[ke]=t[n],t[n].dispatchEvent(e),e[Qe]||e[ze]){e[Gr]=Ts.none,e[ke]=null;return}}e[Gr]=Ts.none,e[ke]=null}#t(e){let t=this[b],n=t?new Y(t).getSettings():null,r=e.eventPhase===Ts.capturing?`capturing`:`bubbling`,i=this[Ke][r].get(e.type)?.slice();if(i&&i.length){let a=this[Ge][r].get(e.type).slice();for(let r=0,o=i.length;r<o;r++){let s=i[r],c=a[r];if(c?.passive&&(e[Ue]=!0),t&&(this!==t||e.type!==`error`)&&!n?.disableErrorCapturing&&n?.errorCapture===Is.tryAndCatch)if(s.handleEvent){let n;try{n=s.handleEvent.call(s,e)}catch(e){t[zo](e)}n instanceof Promise&&n.catch(e=>t[zo](e))}else{let n;try{n=s.call(this,e)}catch(e){t[zo](e)}n instanceof Promise&&n.catch(e=>t[zo](e))}else s.handleEvent?s.handleEvent.call(s,e):s.call(this,e);if(e[Ue]=!1,c?.once&&(i.splice(r,1),a.splice(r,1),this.removeEventListener(e.type,s),r--,o--),e[ze])return}}if(e.eventPhase!==Ts.capturing){let r=`on`+e.type.toLowerCase(),i=this[V],a=!i&&Object.hasOwn(this,r)&&this.constructor.name!==`EventTarget`;if(i||a){let a=i?.get(r)??this[r];if(typeof a==`function`)if(t&&(this!==t||e.type!==`error`)&&!n?.disableErrorCapturing&&n?.errorCapture===Is.tryAndCatch){let n;try{n=a(e)}catch(e){t[zo](e)}n instanceof Promise&&n.catch(e=>t[zo](e))}else a(e)}}}},nl=class extends W{matches;media;constructor(e,t=null){super(e,t),this.matches=t?.matches??!1,this.media=t?.media??``}},rl;(function(e){e.all=`all`,e.print=`print`,e.screen=`screen`})(rl||={});var il=rl,al=class{mediaTypes;not;rules;ranges;rootFontSize=null;window;constructor(e){this.window=e.window,this.rootFontSize=e.rootFontSize||null,this.mediaTypes=e.mediaTypes||[],this.not=e.not||!1,this.rules=e.rules||[],this.ranges=e.ranges||[]}toString(){return`${this.not?`not `:``}${this.mediaTypes.join(`, `)}${(this.not||this.mediaTypes.length>0)&&this.ranges.length?` and `:``}${this.ranges.map(e=>`(${e.before?`${e.before.value} ${e.before.operator} `:``}${e.type}${e.after?` ${e.after.operator} ${e.after.value}`:``})`).join(` and `)}${(this.not||this.mediaTypes.length>0)&&this.rules.length?` and `:``}${this.rules.map(e=>e.value?`(${e.name}: ${e.value})`:`(${e.name})`).join(` and `)}`}matches(){return this.not?!this.matchesAll():this.matchesAll()}matchesAll(){if(this.mediaTypes.length){let e=!1;for(let t of this.mediaTypes)if(this.matchesMediaType(t)){e=!0;break}if(!e)return!1}for(let e of this.rules)if(!this.matchesRule(e))return!1;for(let e of this.ranges)if(!this.matchesRange(e))return!1;return!0}matchesMediaType(e){return e===il.all?!0:e===new Y(this.window).getSettings()?.device.mediaType}matchesRange(e){let t=e.type===`width`?this.window.innerWidth:this.window.innerHeight;if(e.before){let n=this.toPixels(e.before.value);if(n===null)return!1;switch(e.before.operator){case`<`:if(n>=t)return!1;break;case`<=`:if(n>t)return!1;break;case`>`:if(n<=t)return!1;break;case`>=`:if(n<t)return!1;break}}if(e.after){let n=this.toPixels(e.after.value);if(n===null)return!1;switch(e.after.operator){case`<`:if(t>=n)return!1;break;case`<=`:if(t>n)return!1;break;case`>`:if(t<=n)return!1;break;case`>=`:if(t<n)return!1;break}}return!0}matchesRule(e){let t=new Y(this.window).getSettings();if(!t)return!1;if(!e.value){switch(e.name){case`min-width`:case`max-width`:case`min-height`:case`max-height`:case`width`:case`height`:case`orientation`:case`prefers-color-scheme`:case`hover`:case`any-hover`:case`any-pointer`:case`pointer`:case`display-mode`:case`min-aspect-ratio`:case`max-aspect-ratio`:case`aspect-ratio`:return!0;case`prefers-reduced-motion`:return t.device.prefersReducedMotion===`reduce`;case`forced-colors`:return t.device.forcedColors===`active`}return!1}switch(e.name){case`min-width`:let n=this.toPixels(e.value);return n!==null&&this.window.innerWidth>=n;case`max-width`:let r=this.toPixels(e.value);return r!==null&&this.window.innerWidth<=r;case`min-height`:let i=this.toPixels(e.value);return i!==null&&this.window.innerHeight>=i;case`max-height`:let a=this.toPixels(e.value);return a!==null&&this.window.innerHeight<=a;case`width`:let o=this.toPixels(e.value);return o!==null&&this.window.innerWidth===o;case`height`:let s=this.toPixels(e.value);return s!==null&&this.window.innerHeight===s;case`orientation`:return e.value===`landscape`?this.window.innerWidth>this.window.innerHeight:this.window.innerWidth<this.window.innerHeight;case`prefers-color-scheme`:return e.value===t.device.prefersColorScheme;case`prefers-reduced-motion`:return e.value===t.device.prefersReducedMotion;case`forced-colors`:return(e.value===`none`||e.value===`active`)&&e.value===t.device.forcedColors;case`any-hover`:case`hover`:return e.value===`none`?this.window.navigator.maxTouchPoints>0:e.value===`hover`?this.window.navigator.maxTouchPoints===0:!1;case`any-pointer`:case`pointer`:return e.value===`none`?!1:e.value===`coarse`?this.window.navigator.maxTouchPoints>0:e.value===`fine`?this.window.navigator.maxTouchPoints===0:!1;case`display-mode`:return e.value===`browser`;case`min-aspect-ratio`:case`max-aspect-ratio`:case`aspect-ratio`:let c=e.value.split(`/`),l=parseInt(c[0],10),u=parseInt(c[1],10);if(isNaN(l)||isNaN(u))return!1;switch(e.name){case`min-aspect-ratio`:return l/u<=this.window.innerWidth/this.window.innerHeight;case`max-aspect-ratio`:return l/u>=this.window.innerWidth/this.window.innerHeight;case`aspect-ratio`:return l/u===this.window.innerWidth/this.window.innerHeight}}return!1}toPixels(e){return!new Y(this.window).getSettings()?.disableComputedStyleRendering&&e.endsWith(`em`)?(this.rootFontSize=this.rootFontSize||parseFloat(this.window.getComputedStyle(this.window.document.documentElement).fontSize),el.toPixels({window:this.window,value:e,rootFontSize:this.rootFontSize,parentFontSize:this.rootFontSize})):el.toPixels({window:this.window,value:e,rootFontSize:16,parentFontSize:16})}};const ol=/(not|only|all|screen|print)|\(([^\)]+)(\)){0,1}|(,)| +(or|and) +/g,sl=/[<>]/,cl=/(?:([0-9]+[a-z]+) *(<|<=|>|>=)){0,1} *(width|height) *(?:(<|<=|>|>=) *([0-9]+[a-z]+)){0,1}/;var ll=class{static parse(e){let t=new al({window:e.window,rootFontSize:e.rootFontSize}),n=[t],r=new RegExp(ol),i=null;for(;i=r.exec(e.mediaQuery.toLowerCase());)if(i[4]===`,`||i[5]===`or`)t=new al({window:e.window,rootFontSize:e.rootFontSize}),n.push(t);else if(i[1]===`all`||i[1]===`screen`||i[1]===`print`)t.mediaTypes.push(i[1]);else if(i[1]===`not`)t.not=!0;else if(i[2]){let n=sl.test(i[2])?i[2].match(cl):null;if(n&&(n[1]||n[5]))t.ranges.push({before:n[1]?{value:n[1],operator:n[2]}:null,type:n[3],after:n[5]?{value:n[5],operator:n[4]}:null});else{let[n,r]=i[2].split(`:`),a=r?r.trim():null;if(!a&&!i[3])return[new al({window:e.window,rootFontSize:e.rootFontSize,not:!0,mediaTypes:[il.all]})];t.rules.push({name:n.trim(),value:a})}}return n}},ul=class extends tl{onchange=null;#e;#t=null;#n;#r=null;constructor(e){super(),this.#e=e.window,this.#n=e.media,this.#r=e.rootFontSize||null}get media(){return this.#t=this.#t||ll.parse({window:this.#e,mediaQuery:this.#n,rootFontSize:this.#r}),this.#t.map(e=>e.toString()).join(`, `)}get matches(){this.#t=this.#t||ll.parse({window:this.#e,mediaQuery:this.#n,rootFontSize:this.#r});for(let e of this.#t)if(!e.matches())return!1;return!0}addListener(e){this.addEventListener(`change`,e)}removeListener(e){this.removeEventListener(`change`,e)}addEventListener(e,t){if(super.addEventListener(e,t),e===`change`){let e=!1,n=()=>{let t=this.matches;t!==e&&(e=t,this.dispatchEvent(new nl(`change`,{matches:t,media:this.media})))};t[_t]=n,this.#e.addEventListener(`resize`,n)}}removeEventListener(e,t){super.removeEventListener(e,t),e===`change`&&t[_t]&&this.#e.removeEventListener(`resize`,t[_t])}},dl=class extends Gs{[Ho]=[];get cssRules(){return this[Ho]}insertRule(e,t){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'insertRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);let n=this[Xo].parseFromString(e);if(n.length===0||n.length>1)throw new this[b].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': Failed to parse the rule '${e}'.`,H.syntaxError);if(t!==void 0){if(t=Number(t),isNaN(t)||t>this.cssRules.length)throw new this[b].DOMException(`Failed to execute 'insertRule' on '${this.constructor.name}': The index provided (${t}) is larger than the maximum index (${this.cssRules.length}).`,H.indexSizeError);return this.cssRules.splice(t,0,n[0]),t}let r=this.cssRules.length;return this.cssRules.unshift(n[0]),r}deleteRule(e){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'deleteRule' on '${this.constructor.name}': 1 argument required, but only 0 present.`);if(e=Number(e),isNaN(e)||e<0||e>=this.cssRules.length)throw new this[b].DOMException(`Failed to execute 'deleteRule' on '${this.constructor.name}': the index (${e}) is greater than the length of the rule list.`,H.indexSizeError);this.cssRules.splice(e,1)}},fl=class extends dl{[_]=``;[m]=``;[Qo]=``;get type(){return G.containerRule}get cssText(){let e=``;for(let t of this[Ho])e+=`
|
|
7
|
+
`+t.cssText;return e+=`
|
|
8
|
+
`,`@${this[Qo]}scope${this[_]?` (${this[_]})`:``}${this[m]?` to (${this[m]})`:``} {${e}}`}get start(){return this[_]}get end(){return this[m]}};const pl=/[0-9.]+(px|rem|em|vw|vh|%|vmin|vmax|cm|mm|in|pt|pc|Q)/g,ml=/:host\s*\(([^)]+)\)|:host-context\s*\(([^)]+)\)/,hl=/var\( *(--[^), ]+)\)/,gl=/var\( *(--[^), ]+), *([^), ]+)\)/;var _l=class{element;constructor(e){this.element=e}getComputedStyle(){let e=[],t=[],n={element:this.element,cssTexts:[]},r=[],i=[];if(!this.element[x])return new Fc;let a=this.element[M].computedStyle;if(a?.result){let e=a.result.deref();if(e)return e}for(;n.element;)if(n.element[C]===U.elementNode&&(n.element.getRootNode()[C]===U.documentNode?e.unshift(n):r.unshift(n),n.element.shadowRoot&&i.push(n),t.unshift(n)),n.element===this.element[g]){let t=this.getStyleSheets(this.element[g]);for(let n of t)this.parseCSSRules({elements:e,cssRules:n.cssRules});for(let e of i){let t=this.getStyleSheets(e.element.shadowRoot);for(let n of t)this.parseCSSRules({elements:[],cssRules:n.cssRules,hostElement:e})}n={element:null,cssTexts:[]}}else if(n.element[C]===U.documentFragmentNode&&n.element.host){let e=n.element,t=this.getStyleSheets(e);n={element:e.host,cssTexts:[]};for(let e of t)this.parseCSSRules({elements:r,cssRules:e.cssRules,hostElement:n});for(let e of i){let t=this.getStyleSheets(e.element.shadowRoot);for(let n of t)this.parseCSSRules({elements:[],cssRules:n.cssRules,hostElement:e})}i=[],r=[]}else n={element:n.element[S],cssTexts:[]};let o=t[t.length-1],s=new Fc,c={},l=16,u=16;for(let e of t){e.cssTexts.sort((e,t)=>e.priorityWeight-t.priorityWeight);let t=Ic[e.element[w]],n=``;if(t)if(typeof t==`string`)n+=t;else for(let r of Object.keys(t))(r===`default`||e.element[r])&&(n+=t[r]);for(let t of e.cssTexts)n+=t.cssText;let r=e.element.getAttribute(`style`);r&&(n+=r);let i=Nc.parse(n),a=i.rules;Object.assign(c,i.properties);for(let{name:t,value:n,important:r}of a)if(Lc[t]||e===o){let i=this.parseCSSVariablesInValue(n.trim(),c);if(i&&(!s.get(t)?.important||r)&&(s.set(t,i,r),t===`font`||t===`font-size`)){let t=s.properties[`font-size`];if(t!==null){let n=this.parseMeasurementsInValue({value:t.value,rootFontSize:l,parentFontSize:u,parentSize:u});e.element[w]===`HTML`?l=n:e!==o&&(u=n)}}}}for(let e of Rc){let t=s.properties[e];t&&(t.value=this.parseMeasurementsInValue({value:t.value,rootFontSize:l,parentFontSize:u,parentSize:e===`font-size`?u:null}))}let d={result:new WeakRef(s)};return this.element[M].computedStyle=d,this.element[g][Qn].push(d),s}getStyleSheets(e){if(!e)return[];let t=e.querySelectorAll(`style,link[rel="stylesheet"]`),n=[];for(let e of t){let t=e.sheet;t&&n.push(t)}return e.adoptedStyleSheets&&(n=n.concat(e.adoptedStyleSheets)),n}parseCSSRules(e){if(!e.hostElement&&!e.elements.length)return;let t=this.element[b];for(let n of e.cssRules)if(n.type===G.styleRule){let t=n.selectorText;if(t)if(t[0]===`:`&&t.startsWith(`:host`)){if(e.hostElement){let r=!0;if(t!==`:host`){let i=t.match(ml);if(i)if(J.matches(e.hostElement.element,i[1]||i[2],{ignoreErrors:!0,scope:e.scopeElement?.element})){let i=t?.replace(ml,``).trim();if(i&&i[0]!==`:`){r=!1;for(let t of e.elements){let r=J.matches(t.element,i,{ignoreErrors:!0,scope:e.scopeElement?.element});r&&t.cssTexts.push({cssText:n[De],priorityWeight:10+r.priorityWeight})}}}else r=!1}r&&e.hostElement.cssTexts.push({cssText:n[De],priorityWeight:10})}}else for(let r of e.elements){let i=J.matches(r.element,t,{ignoreErrors:!0,scope:e.scopeElement?.element});i&&r.cssTexts.push({cssText:n[De],priorityWeight:i.priorityWeight})}}else if(n.type===G.mediaRule&&new ul({window:t,media:n.conditionText,rootFontSize:this.element[w]===`HTML`?16:null}).matches)this.parseCSSRules({elements:e.elements,cssRules:n.cssRules,hostElement:e.hostElement,scopeElement:e.scopeElement});else if(n.type===G.supportsRule)t.CSS.supports(n.conditionText)&&this.parseCSSRules({elements:e.elements,cssRules:n.cssRules,hostElement:e.hostElement,scopeElement:e.scopeElement});else if(n.type===G.containerRule&&n instanceof fl){let t=[],r=null;for(let i of e.elements)if(r){if(n[m]&&J.matches(i.element,n[m],{ignoreErrors:!0,scope:r.element}))break;t.push(i)}else J.matches(i.element,n[_]||`:root`,{ignoreErrors:!0})&&(r=i,t.push(i));t.length&&this.parseCSSRules({elements:t,cssRules:n.cssRules,hostElement:e.hostElement,scopeElement:r})}}parseCSSVariablesInValue(e,t){let n=e,r;for(;(r=n.match(hl))!=null;)n=n.replace(r[0],t[r[1]]||``);for(;(r=n.match(gl))!==null;)n=n.replace(r[0],t[r[1]]||r[2]);return n}parseMeasurementsInValue(e){if(new Y(this.element[b]).getSettings()?.disableComputedStyleRendering)return e.value;let t=new RegExp(pl),n=e.value,r;for(;(r=t.exec(e.value))!==null;)if(r[1]!==`px`){let t=el.toPixels({window:this.element[b],value:r[0],rootFontSize:e.rootFontSize,parentFontSize:e.parentFontSize,parentSize:e.parentSize});t!==null&&(n=n.replace(r[0],t+`px`))}return n}},vl=class{parentRule=null;[b];#e;#t;#n={attributeValue:null,propertyManager:null};constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this.#e=n?.element||null,this.#t=n?.element?!!n?.computed:!1}get 0(){return this.item(0)||void 0}get 1(){return this.item(1)||void 0}get 2(){return this.item(2)||void 0}get 3(){return this.item(3)||void 0}get 4(){return this.item(4)||void 0}get 5(){return this.item(5)||void 0}get 6(){return this.item(6)||void 0}get 7(){return this.item(7)||void 0}get 8(){return this.item(8)||void 0}get 9(){return this.item(9)||void 0}get 10(){return this.item(10)||void 0}get 11(){return this.item(11)||void 0}get 12(){return this.item(12)||void 0}get 13(){return this.item(13)||void 0}get 14(){return this.item(14)||void 0}get 15(){return this.item(15)||void 0}get 16(){return this.item(16)||void 0}get 17(){return this.item(17)||void 0}get 18(){return this.item(18)||void 0}get 19(){return this.item(19)||void 0}get 20(){return this.item(20)||void 0}get 21(){return this.item(21)||void 0}get 22(){return this.item(22)||void 0}get 23(){return this.item(23)||void 0}get 24(){return this.item(24)||void 0}get 25(){return this.item(25)||void 0}get 26(){return this.item(26)||void 0}get 27(){return this.item(27)||void 0}get 28(){return this.item(28)||void 0}get 29(){return this.item(29)||void 0}get 30(){return this.item(30)||void 0}get 31(){return this.item(31)||void 0}get 32(){return this.item(32)||void 0}get 33(){return this.item(33)||void 0}get 34(){return this.item(34)||void 0}get 35(){return this.item(35)||void 0}get 36(){return this.item(36)||void 0}get 37(){return this.item(37)||void 0}get 38(){return this.item(38)||void 0}get 39(){return this.item(39)||void 0}get 40(){return this.item(40)||void 0}get 41(){return this.item(41)||void 0}get 42(){return this.item(42)||void 0}get 43(){return this.item(43)||void 0}get 44(){return this.item(44)||void 0}get 45(){return this.item(45)||void 0}get 46(){return this.item(46)||void 0}get 47(){return this.item(47)||void 0}get 48(){return this.item(48)||void 0}get 49(){return this.item(49)||void 0}get 50(){return this.item(50)||void 0}get 51(){return this.item(51)||void 0}get 52(){return this.item(52)||void 0}get 53(){return this.item(53)||void 0}get 54(){return this.item(54)||void 0}get 55(){return this.item(55)||void 0}get 56(){return this.item(56)||void 0}get 57(){return this.item(57)||void 0}get 58(){return this.item(58)||void 0}get 59(){return this.item(59)||void 0}get 60(){return this.item(60)||void 0}get 61(){return this.item(61)||void 0}get 62(){return this.item(62)||void 0}get 63(){return this.item(63)||void 0}get 64(){return this.item(64)||void 0}get 65(){return this.item(65)||void 0}get 66(){return this.item(66)||void 0}get 67(){return this.item(67)||void 0}get 68(){return this.item(68)||void 0}get 69(){return this.item(69)||void 0}get 70(){return this.item(70)||void 0}get 71(){return this.item(71)||void 0}get 72(){return this.item(72)||void 0}get 73(){return this.item(73)||void 0}get 74(){return this.item(74)||void 0}get 75(){return this.item(75)||void 0}get 76(){return this.item(76)||void 0}get 77(){return this.item(77)||void 0}get 78(){return this.item(78)||void 0}get 79(){return this.item(79)||void 0}get 80(){return this.item(80)||void 0}get 81(){return this.item(81)||void 0}get 82(){return this.item(82)||void 0}get 83(){return this.item(83)||void 0}get 84(){return this.item(84)||void 0}get 85(){return this.item(85)||void 0}get 86(){return this.item(86)||void 0}get 87(){return this.item(87)||void 0}get 88(){return this.item(88)||void 0}get 89(){return this.item(89)||void 0}get 90(){return this.item(90)||void 0}get 91(){return this.item(91)||void 0}get 92(){return this.item(92)||void 0}get 93(){return this.item(93)||void 0}get 94(){return this.item(94)||void 0}get 95(){return this.item(95)||void 0}get 96(){return this.item(96)||void 0}get 97(){return this.item(97)||void 0}get 98(){return this.item(98)||void 0}get 99(){return this.item(99)||void 0}get 100(){return this.item(100)||void 0}get 101(){return this.item(101)||void 0}get 102(){return this.item(102)||void 0}get 103(){return this.item(103)||void 0}get 104(){return this.item(104)||void 0}get 105(){return this.item(105)||void 0}get 106(){return this.item(106)||void 0}get 107(){return this.item(107)||void 0}get 108(){return this.item(108)||void 0}get 109(){return this.item(109)||void 0}get 110(){return this.item(110)||void 0}get 111(){return this.item(111)||void 0}get 112(){return this.item(112)||void 0}get 113(){return this.item(113)||void 0}get 114(){return this.item(114)||void 0}get 115(){return this.item(115)||void 0}get 116(){return this.item(116)||void 0}get 117(){return this.item(117)||void 0}get 118(){return this.item(118)||void 0}get 119(){return this.item(119)||void 0}get 120(){return this.item(120)||void 0}get 121(){return this.item(121)||void 0}get 122(){return this.item(122)||void 0}get 123(){return this.item(123)||void 0}get 124(){return this.item(124)||void 0}get 125(){return this.item(125)||void 0}get 126(){return this.item(126)||void 0}get 127(){return this.item(127)||void 0}get 128(){return this.item(128)||void 0}get 129(){return this.item(129)||void 0}get 130(){return this.item(130)||void 0}get 131(){return this.item(131)||void 0}get 132(){return this.item(132)||void 0}get 133(){return this.item(133)||void 0}get 134(){return this.item(134)||void 0}get 135(){return this.item(135)||void 0}get 136(){return this.item(136)||void 0}get 137(){return this.item(137)||void 0}get 138(){return this.item(138)||void 0}get 139(){return this.item(139)||void 0}get 140(){return this.item(140)||void 0}get 141(){return this.item(141)||void 0}get 142(){return this.item(142)||void 0}get 143(){return this.item(143)||void 0}get 144(){return this.item(144)||void 0}get 145(){return this.item(145)||void 0}get 146(){return this.item(146)||void 0}get 147(){return this.item(147)||void 0}get 148(){return this.item(148)||void 0}get 149(){return this.item(149)||void 0}get 150(){return this.item(150)||void 0}get 151(){return this.item(151)||void 0}get 152(){return this.item(152)||void 0}get 153(){return this.item(153)||void 0}get 154(){return this.item(154)||void 0}get 155(){return this.item(155)||void 0}get 156(){return this.item(156)||void 0}get 157(){return this.item(157)||void 0}get 158(){return this.item(158)||void 0}get 159(){return this.item(159)||void 0}get 160(){return this.item(160)||void 0}get 161(){return this.item(161)||void 0}get 162(){return this.item(162)||void 0}get 163(){return this.item(163)||void 0}get 164(){return this.item(164)||void 0}get 165(){return this.item(165)||void 0}get 166(){return this.item(166)||void 0}get 167(){return this.item(167)||void 0}get 168(){return this.item(168)||void 0}get 169(){return this.item(169)||void 0}get 170(){return this.item(170)||void 0}get 171(){return this.item(171)||void 0}get 172(){return this.item(172)||void 0}get 173(){return this.item(173)||void 0}get 174(){return this.item(174)||void 0}get 175(){return this.item(175)||void 0}get 176(){return this.item(176)||void 0}get 177(){return this.item(177)||void 0}get 178(){return this.item(178)||void 0}get 179(){return this.item(179)||void 0}get 180(){return this.item(180)||void 0}get 181(){return this.item(181)||void 0}get 182(){return this.item(182)||void 0}get 183(){return this.item(183)||void 0}get 184(){return this.item(184)||void 0}get 185(){return this.item(185)||void 0}get 186(){return this.item(186)||void 0}get 187(){return this.item(187)||void 0}get 188(){return this.item(188)||void 0}get 189(){return this.item(189)||void 0}get 190(){return this.item(190)||void 0}get 191(){return this.item(191)||void 0}get 192(){return this.item(192)||void 0}get 193(){return this.item(193)||void 0}get 194(){return this.item(194)||void 0}get 195(){return this.item(195)||void 0}get 196(){return this.item(196)||void 0}get 197(){return this.item(197)||void 0}get 198(){return this.item(198)||void 0}get 199(){return this.item(199)||void 0}get 200(){return this.item(200)||void 0}get 201(){return this.item(201)||void 0}get 202(){return this.item(202)||void 0}get 203(){return this.item(203)||void 0}get 204(){return this.item(204)||void 0}get 205(){return this.item(205)||void 0}get 206(){return this.item(206)||void 0}get 207(){return this.item(207)||void 0}get 208(){return this.item(208)||void 0}get 209(){return this.item(209)||void 0}get 210(){return this.item(210)||void 0}get 211(){return this.item(211)||void 0}get 212(){return this.item(212)||void 0}get 213(){return this.item(213)||void 0}get 214(){return this.item(214)||void 0}get 215(){return this.item(215)||void 0}get 216(){return this.item(216)||void 0}get 217(){return this.item(217)||void 0}get 218(){return this.item(218)||void 0}get 219(){return this.item(219)||void 0}get 220(){return this.item(220)||void 0}get 221(){return this.item(221)||void 0}get 222(){return this.item(222)||void 0}get 223(){return this.item(223)||void 0}get 224(){return this.item(224)||void 0}get 225(){return this.item(225)||void 0}get 226(){return this.item(226)||void 0}get 227(){return this.item(227)||void 0}get 228(){return this.item(228)||void 0}get 229(){return this.item(229)||void 0}get 230(){return this.item(230)||void 0}get 231(){return this.item(231)||void 0}get 232(){return this.item(232)||void 0}get 233(){return this.item(233)||void 0}get 234(){return this.item(234)||void 0}get 235(){return this.item(235)||void 0}get 236(){return this.item(236)||void 0}get 237(){return this.item(237)||void 0}get 238(){return this.item(238)||void 0}get 239(){return this.item(239)||void 0}get 240(){return this.item(240)||void 0}get 241(){return this.item(241)||void 0}get 242(){return this.item(242)||void 0}get 243(){return this.item(243)||void 0}get 244(){return this.item(244)||void 0}get 245(){return this.item(245)||void 0}get 246(){return this.item(246)||void 0}get 247(){return this.item(247)||void 0}get 248(){return this.item(248)||void 0}get 249(){return this.item(249)||void 0}get 250(){return this.item(250)||void 0}get 251(){return this.item(251)||void 0}get 252(){return this.item(252)||void 0}get 253(){return this.item(253)||void 0}get 254(){return this.item(254)||void 0}get 255(){return this.item(255)||void 0}get 256(){return this.item(256)||void 0}get 257(){return this.item(257)||void 0}get 258(){return this.item(258)||void 0}get 259(){return this.item(259)||void 0}get 260(){return this.item(260)||void 0}get 261(){return this.item(261)||void 0}get 262(){return this.item(262)||void 0}get 263(){return this.item(263)||void 0}get 264(){return this.item(264)||void 0}get 265(){return this.item(265)||void 0}get 266(){return this.item(266)||void 0}get 267(){return this.item(267)||void 0}get 268(){return this.item(268)||void 0}get 269(){return this.item(269)||void 0}get 270(){return this.item(270)||void 0}get 271(){return this.item(271)||void 0}get 272(){return this.item(272)||void 0}get 273(){return this.item(273)||void 0}get 274(){return this.item(274)||void 0}get 275(){return this.item(275)||void 0}get 276(){return this.item(276)||void 0}get 277(){return this.item(277)||void 0}get 278(){return this.item(278)||void 0}get 279(){return this.item(279)||void 0}get 280(){return this.item(280)||void 0}get 281(){return this.item(281)||void 0}get 282(){return this.item(282)||void 0}get 283(){return this.item(283)||void 0}get 284(){return this.item(284)||void 0}get 285(){return this.item(285)||void 0}get 286(){return this.item(286)||void 0}get 287(){return this.item(287)||void 0}get 288(){return this.item(288)||void 0}get 289(){return this.item(289)||void 0}get 290(){return this.item(290)||void 0}get 291(){return this.item(291)||void 0}get 292(){return this.item(292)||void 0}get 293(){return this.item(293)||void 0}get 294(){return this.item(294)||void 0}get 295(){return this.item(295)||void 0}get 296(){return this.item(296)||void 0}get 297(){return this.item(297)||void 0}get 298(){return this.item(298)||void 0}get 299(){return this.item(299)||void 0}get 300(){return this.item(300)||void 0}get 301(){return this.item(301)||void 0}get 302(){return this.item(302)||void 0}get 303(){return this.item(303)||void 0}get 304(){return this.item(304)||void 0}get 305(){return this.item(305)||void 0}get 306(){return this.item(306)||void 0}get 307(){return this.item(307)||void 0}get 308(){return this.item(308)||void 0}get 309(){return this.item(309)||void 0}get 310(){return this.item(310)||void 0}get 311(){return this.item(311)||void 0}get 312(){return this.item(312)||void 0}get 313(){return this.item(313)||void 0}get 314(){return this.item(314)||void 0}get 315(){return this.item(315)||void 0}get 316(){return this.item(316)||void 0}get 317(){return this.item(317)||void 0}get 318(){return this.item(318)||void 0}get 319(){return this.item(319)||void 0}get 320(){return this.item(320)||void 0}get 321(){return this.item(321)||void 0}get 322(){return this.item(322)||void 0}get 323(){return this.item(323)||void 0}get 324(){return this.item(324)||void 0}get 325(){return this.item(325)||void 0}get 326(){return this.item(326)||void 0}get 327(){return this.item(327)||void 0}get 328(){return this.item(328)||void 0}get 329(){return this.item(329)||void 0}get 330(){return this.item(330)||void 0}get 331(){return this.item(331)||void 0}get 332(){return this.item(332)||void 0}get 333(){return this.item(333)||void 0}get 334(){return this.item(334)||void 0}get 335(){return this.item(335)||void 0}get 336(){return this.item(336)||void 0}get 337(){return this.item(337)||void 0}get 338(){return this.item(338)||void 0}get 339(){return this.item(339)||void 0}get 340(){return this.item(340)||void 0}get 341(){return this.item(341)||void 0}get 342(){return this.item(342)||void 0}get 343(){return this.item(343)||void 0}get 344(){return this.item(344)||void 0}get 345(){return this.item(345)||void 0}get 346(){return this.item(346)||void 0}get 347(){return this.item(347)||void 0}get 348(){return this.item(348)||void 0}get 349(){return this.item(349)||void 0}get 350(){return this.item(350)||void 0}get 351(){return this.item(351)||void 0}get 352(){return this.item(352)||void 0}get 353(){return this.item(353)||void 0}get 354(){return this.item(354)||void 0}get 355(){return this.item(355)||void 0}get 356(){return this.item(356)||void 0}get 357(){return this.item(357)||void 0}get 358(){return this.item(358)||void 0}get 359(){return this.item(359)||void 0}get 360(){return this.item(360)||void 0}get 361(){return this.item(361)||void 0}get 362(){return this.item(362)||void 0}get 363(){return this.item(363)||void 0}get 364(){return this.item(364)||void 0}get 365(){return this.item(365)||void 0}get 366(){return this.item(366)||void 0}get 367(){return this.item(367)||void 0}get 368(){return this.item(368)||void 0}get 369(){return this.item(369)||void 0}get 370(){return this.item(370)||void 0}get 371(){return this.item(371)||void 0}get 372(){return this.item(372)||void 0}get 373(){return this.item(373)||void 0}get 374(){return this.item(374)||void 0}get 375(){return this.item(375)||void 0}get 376(){return this.item(376)||void 0}get 377(){return this.item(377)||void 0}get 378(){return this.item(378)||void 0}get 379(){return this.item(379)||void 0}get 380(){return this.item(380)||void 0}get 381(){return this.item(381)||void 0}get 382(){return this.item(382)||void 0}get 383(){return this.item(383)||void 0}get 384(){return this.item(384)||void 0}get 385(){return this.item(385)||void 0}get 386(){return this.item(386)||void 0}get 387(){return this.item(387)||void 0}get 388(){return this.item(388)||void 0}get 389(){return this.item(389)||void 0}get 390(){return this.item(390)||void 0}get 391(){return this.item(391)||void 0}get 392(){return this.item(392)||void 0}get 393(){return this.item(393)||void 0}get accentColor(){return this.getPropertyValue(`accent-color`)}set accentColor(e){this.setProperty(`accent-color`,e)}get appRegion(){return this.getPropertyValue(`app-region`)}set appRegion(e){this.setProperty(`app-region`,e)}get alignContent(){return this.getPropertyValue(`align-content`)}set alignContent(e){this.setProperty(`align-content`,e)}get alignItems(){return this.getPropertyValue(`align-items`)}set alignItems(e){this.setProperty(`align-items`,e)}get alignSelf(){return this.getPropertyValue(`align-self`)}set alignSelf(e){this.setProperty(`align-self`,e)}get alignmentBaseline(){return this.getPropertyValue(`alignment-baseline`)}set alignmentBaseline(e){this.setProperty(`alignment-baseline`,e)}get all(){return this.getPropertyValue(`all`)}set all(e){this.setProperty(`all`,e)}get animation(){return this.getPropertyValue(`animation`)}set animation(e){this.setProperty(`animation`,e)}get animationDelay(){return this.getPropertyValue(`animation-delay`)}set animationDelay(e){this.setProperty(`animation-delay`,e)}get animationDirection(){return this.getPropertyValue(`animation-direction`)}set animationDirection(e){this.setProperty(`animation-direction`,e)}get animationDuration(){return this.getPropertyValue(`animation-duration`)}set animationDuration(e){this.setProperty(`animation-duration`,e)}get animationFillMode(){return this.getPropertyValue(`animation-fill-mode`)}set animationFillMode(e){this.setProperty(`animation-fill-mode`,e)}get animationIterationCount(){return this.getPropertyValue(`animation-iteration-count`)}set animationIterationCount(e){this.setProperty(`animation-iteration-count`,e)}get animationName(){return this.getPropertyValue(`animation-name`)}set animationName(e){this.setProperty(`animation-name`,e)}get animationPlayState(){return this.getPropertyValue(`animation-play-state`)}set animationPlayState(e){this.setProperty(`animation-play-state`,e)}get animationTimingFunction(){return this.getPropertyValue(`animation-timing-function`)}set animationTimingFunction(e){this.setProperty(`animation-timing-function`,e)}get appearance(){return this.getPropertyValue(`appearance`)}set appearance(e){this.setProperty(`appearance`,e)}get backdropFilter(){return this.getPropertyValue(`backdrop-filter`)}set backdropFilter(e){this.setProperty(`backdrop-filter`,e)}get backfaceVisibility(){return this.getPropertyValue(`backface-visibility`)}set backfaceVisibility(e){this.setProperty(`backface-visibility`,e)}get background(){return this.getPropertyValue(`background`)}set background(e){this.setProperty(`background`,e)}get backgroundAttachment(){return this.getPropertyValue(`background-attachment`)}set backgroundAttachment(e){this.setProperty(`background-attachment`,e)}get backgroundBlendMode(){return this.getPropertyValue(`background-blend-mode`)}set backgroundBlendMode(e){this.setProperty(`background-blend-mode`,e)}get backgroundClip(){return this.getPropertyValue(`background-clip`)}set backgroundClip(e){this.setProperty(`background-clip`,e)}get backgroundColor(){return this.getPropertyValue(`background-color`)}set backgroundColor(e){this.setProperty(`background-color`,e)}get backgroundImage(){return this.getPropertyValue(`background-image`)}set backgroundImage(e){this.setProperty(`background-image`,e)}get backgroundOrigin(){return this.getPropertyValue(`background-origin`)}set backgroundOrigin(e){this.setProperty(`background-origin`,e)}get backgroundPosition(){return this.getPropertyValue(`background-position`)}set backgroundPosition(e){this.setProperty(`background-position`,e)}get backgroundPositionX(){return this.getPropertyValue(`background-position-x`)}set backgroundPositionX(e){this.setProperty(`background-position-x`,e)}get backgroundPositionY(){return this.getPropertyValue(`background-position-y`)}set backgroundPositionY(e){this.setProperty(`background-position-y`,e)}get backgroundRepeat(){return this.getPropertyValue(`background-repeat`)}set backgroundRepeat(e){this.setProperty(`background-repeat`,e)}get backgroundRepeatX(){return this.getPropertyValue(`background-repeat-x`)}set backgroundRepeatX(e){this.setProperty(`background-repeat-x`,e)}get backgroundRepeatY(){return this.getPropertyValue(`background-repeat-y`)}set backgroundRepeatY(e){this.setProperty(`background-repeat-y`,e)}get backgroundSize(){return this.getPropertyValue(`background-size`)}set backgroundSize(e){this.setProperty(`background-size`,e)}get baselineShift(){return this.getPropertyValue(`baseline-shift`)}set baselineShift(e){this.setProperty(`baseline-shift`,e)}get blockSize(){return this.getPropertyValue(`block-size`)}set blockSize(e){this.setProperty(`block-size`,e)}get border(){return this.getPropertyValue(`border`)}set border(e){this.setProperty(`border`,e)}get borderBlockEnd(){return this.getPropertyValue(`border-block-end`)}set borderBlockEnd(e){this.setProperty(`border-block-end`,e)}get borderBlockEndColor(){return this.getPropertyValue(`border-block-end-color`)}set borderBlockEndColor(e){this.setProperty(`border-block-end-color`,e)}get borderBlockEndStyle(){return this.getPropertyValue(`border-block-end-style`)}set borderBlockEndStyle(e){this.setProperty(`border-block-end-style`,e)}get borderBlockEndWidth(){return this.getPropertyValue(`border-block-end-width`)}set borderBlockEndWidth(e){this.setProperty(`border-block-end-width`,e)}get borderBlockStart(){return this.getPropertyValue(`border-block-start`)}set borderBlockStart(e){this.setProperty(`border-block-start`,e)}get borderBlockStartColor(){return this.getPropertyValue(`border-block-start-color`)}set borderBlockStartColor(e){this.setProperty(`border-block-start-color`,e)}get borderBlockStartStyle(){return this.getPropertyValue(`border-block-start-style`)}set borderBlockStartStyle(e){this.setProperty(`border-block-start-style`,e)}get borderBlockStartWidth(){return this.getPropertyValue(`border-block-start-width`)}set borderBlockStartWidth(e){this.setProperty(`border-block-start-width`,e)}get borderBottom(){return this.getPropertyValue(`border-bottom`)}set borderBottom(e){this.setProperty(`border-bottom`,e)}get borderBottomColor(){return this.getPropertyValue(`border-bottom-color`)}set borderBottomColor(e){this.setProperty(`border-bottom-color`,e)}get borderBottomLeftRadius(){return this.getPropertyValue(`border-bottom-left-radius`)}set borderBottomLeftRadius(e){this.setProperty(`border-bottom-left-radius`,e)}get borderBottomRightRadius(){return this.getPropertyValue(`border-bottom-right-radius`)}set borderBottomRightRadius(e){this.setProperty(`border-bottom-right-radius`,e)}get borderBottomStyle(){return this.getPropertyValue(`border-bottom-style`)}set borderBottomStyle(e){this.setProperty(`border-bottom-style`,e)}get borderBottomWidth(){return this.getPropertyValue(`border-bottom-width`)}set borderBottomWidth(e){this.setProperty(`border-bottom-width`,e)}get borderCollapse(){return this.getPropertyValue(`border-collapse`)}set borderCollapse(e){this.setProperty(`border-collapse`,e)}get borderColor(){return this.getPropertyValue(`border-color`)}set borderColor(e){this.setProperty(`border-color`,e)}get borderImage(){return this.getPropertyValue(`border-image`)}set borderImage(e){this.setProperty(`border-image`,e)}get borderImageOutset(){return this.getPropertyValue(`border-image-outset`)}set borderImageOutset(e){this.setProperty(`border-image-outset`,e)}get borderImageRepeat(){return this.getPropertyValue(`border-image-repeat`)}set borderImageRepeat(e){this.setProperty(`border-image-repeat`,e)}get borderImageSlice(){return this.getPropertyValue(`border-image-slice`)}set borderImageSlice(e){this.setProperty(`border-image-slice`,e)}get borderImageSource(){return this.getPropertyValue(`border-image-source`)}set borderImageSource(e){this.setProperty(`border-image-source`,e)}get borderImageWidth(){return this.getPropertyValue(`border-image-width`)}set borderImageWidth(e){this.setProperty(`border-image-width`,e)}get borderInlineEnd(){return this.getPropertyValue(`border-inline-end`)}set borderInlineEnd(e){this.setProperty(`border-inline-end`,e)}get borderInlineEndColor(){return this.getPropertyValue(`border-inline-end-color`)}set borderInlineEndColor(e){this.setProperty(`border-inline-end-color`,e)}get borderInlineEndStyle(){return this.getPropertyValue(`border-inline-end-style`)}set borderInlineEndStyle(e){this.setProperty(`border-inline-end-style`,e)}get borderInlineEndWidth(){return this.getPropertyValue(`border-inline-end-width`)}set borderInlineEndWidth(e){this.setProperty(`border-inline-end-width`,e)}get borderInlineStart(){return this.getPropertyValue(`border-inline-start`)}set borderInlineStart(e){this.setProperty(`border-inline-start`,e)}get borderInlineStartColor(){return this.getPropertyValue(`border-inline-start-color`)}set borderInlineStartColor(e){this.setProperty(`border-inline-start-color`,e)}get borderInlineStartStyle(){return this.getPropertyValue(`border-inline-start-style`)}set borderInlineStartStyle(e){this.setProperty(`border-inline-start-style`,e)}get borderInlineStartWidth(){return this.getPropertyValue(`border-inline-start-width`)}set borderInlineStartWidth(e){this.setProperty(`border-inline-start-width`,e)}get borderLeft(){return this.getPropertyValue(`border-left`)}set borderLeft(e){this.setProperty(`border-left`,e)}get borderLeftColor(){return this.getPropertyValue(`border-left-color`)}set borderLeftColor(e){this.setProperty(`border-left-color`,e)}get borderLeftStyle(){return this.getPropertyValue(`border-left-style`)}set borderLeftStyle(e){this.setProperty(`border-left-style`,e)}get borderLeftWidth(){return this.getPropertyValue(`border-left-width`)}set borderLeftWidth(e){this.setProperty(`border-left-width`,e)}get borderRadius(){return this.getPropertyValue(`border-radius`)}set borderRadius(e){this.setProperty(`border-radius`,e)}get borderRight(){return this.getPropertyValue(`border-right`)}set borderRight(e){this.setProperty(`border-right`,e)}get borderRightColor(){return this.getPropertyValue(`border-right-color`)}set borderRightColor(e){this.setProperty(`border-right-color`,e)}get borderRightStyle(){return this.getPropertyValue(`border-right-style`)}set borderRightStyle(e){this.setProperty(`border-right-style`,e)}get borderRightWidth(){return this.getPropertyValue(`border-right-width`)}set borderRightWidth(e){this.setProperty(`border-right-width`,e)}get borderSpacing(){return this.getPropertyValue(`border-spacing`)}set borderSpacing(e){this.setProperty(`border-spacing`,e)}get borderStyle(){return this.getPropertyValue(`border-style`)}set borderStyle(e){this.setProperty(`border-style`,e)}get borderTop(){return this.getPropertyValue(`border-top`)}set borderTop(e){this.setProperty(`border-top`,e)}get borderTopColor(){return this.getPropertyValue(`border-top-color`)}set borderTopColor(e){this.setProperty(`border-top-color`,e)}get borderTopLeftRadius(){return this.getPropertyValue(`border-top-left-radius`)}set borderTopLeftRadius(e){this.setProperty(`border-top-left-radius`,e)}get borderTopRightRadius(){return this.getPropertyValue(`border-top-right-radius`)}set borderTopRightRadius(e){this.setProperty(`border-top-right-radius`,e)}get borderTopStyle(){return this.getPropertyValue(`border-top-style`)}set borderTopStyle(e){this.setProperty(`border-top-style`,e)}get borderTopWidth(){return this.getPropertyValue(`border-top-width`)}set borderTopWidth(e){this.setProperty(`border-top-width`,e)}get borderWidth(){return this.getPropertyValue(`border-width`)}set borderWidth(e){this.setProperty(`border-width`,e)}get borderEndEndRadius(){return this.getPropertyValue(`border-end-end-radius`)}set borderEndEndRadius(e){this.setProperty(`border-end-end-radius`,e)}get borderEndStartRadius(){return this.getPropertyValue(`border-end-start-radius`)}set borderEndStartRadius(e){this.setProperty(`border-end-start-radius`,e)}get borderStartEndRadius(){return this.getPropertyValue(`border-start-end-radius`)}set borderStartEndRadius(e){this.setProperty(`border-start-end-radius`,e)}get borderStartStartRadius(){return this.getPropertyValue(`border-start-start-radius`)}set borderStartStartRadius(e){this.setProperty(`border-start-start-radius`,e)}get bottom(){return this.getPropertyValue(`bottom`)}set bottom(e){this.setProperty(`bottom`,e)}get boxShadow(){return this.getPropertyValue(`box-shadow`)}set boxShadow(e){this.setProperty(`box-shadow`,e)}get boxSizing(){return this.getPropertyValue(`box-sizing`)}set boxSizing(e){this.setProperty(`box-sizing`,e)}get breakAfter(){return this.getPropertyValue(`break-after`)}set breakAfter(e){this.setProperty(`break-after`,e)}get breakBefore(){return this.getPropertyValue(`break-before`)}set breakBefore(e){this.setProperty(`break-before`,e)}get breakInside(){return this.getPropertyValue(`break-inside`)}set breakInside(e){this.setProperty(`break-inside`,e)}get bufferedRendering(){return this.getPropertyValue(`buffered-rendering`)}set bufferedRendering(e){this.setProperty(`buffered-rendering`,e)}get captionSide(){return this.getPropertyValue(`caption-side`)}set captionSide(e){this.setProperty(`caption-side`,e)}get caretColor(){return this.getPropertyValue(`caret-color`)}set caretColor(e){this.setProperty(`caret-color`,e)}get clear(){return this.getPropertyValue(`clear`)}set clear(e){this.setProperty(`clear`,e)}get clip(){return this.getPropertyValue(`clip`)}set clip(e){this.setProperty(`clip`,e)}get clipPath(){return this.getPropertyValue(`clip-path`)}set clipPath(e){this.setProperty(`clip-path`,e)}get clipRule(){return this.getPropertyValue(`clip-rule`)}set clipRule(e){this.setProperty(`clip-rule`,e)}get color(){return this.getPropertyValue(`color`)}set color(e){this.setProperty(`color`,e)}get colorInterpolation(){return this.getPropertyValue(`color-interpolation`)}set colorInterpolation(e){this.setProperty(`color-interpolation`,e)}get colorInterpolationFilters(){return this.getPropertyValue(`color-interpolation-filters`)}set colorInterpolationFilters(e){this.setProperty(`color-interpolation-filters`,e)}get colorRendering(){return this.getPropertyValue(`color-rendering`)}set colorRendering(e){this.setProperty(`color-rendering`,e)}get colorScheme(){return this.getPropertyValue(`color-scheme`)}set colorScheme(e){this.setProperty(`color-scheme`,e)}get columnCount(){return this.getPropertyValue(`column-count`)}set columnCount(e){this.setProperty(`column-count`,e)}get columnFill(){return this.getPropertyValue(`column-fill`)}set columnFill(e){this.setProperty(`column-fill`,e)}get columnGap(){return this.getPropertyValue(`column-gap`)}set columnGap(e){this.setProperty(`column-gap`,e)}get columnRule(){return this.getPropertyValue(`column-rule`)}set columnRule(e){this.setProperty(`column-rule`,e)}get columnRuleColor(){return this.getPropertyValue(`column-rule-color`)}set columnRuleColor(e){this.setProperty(`column-rule-color`,e)}get columnRuleStyle(){return this.getPropertyValue(`column-rule-style`)}set columnRuleStyle(e){this.setProperty(`column-rule-style`,e)}get columnRuleWidth(){return this.getPropertyValue(`column-rule-width`)}set columnRuleWidth(e){this.setProperty(`column-rule-width`,e)}get columnSpan(){return this.getPropertyValue(`column-span`)}set columnSpan(e){this.setProperty(`column-span`,e)}get columnWidth(){return this.getPropertyValue(`column-width`)}set columnWidth(e){this.setProperty(`column-width`,e)}get columns(){return this.getPropertyValue(`columns`)}set columns(e){this.setProperty(`columns`,e)}get contain(){return this.getPropertyValue(`contain`)}set contain(e){this.setProperty(`contain`,e)}get containIntrinsicSize(){return this.getPropertyValue(`contain-intrinsic-size`)}set containIntrinsicSize(e){this.setProperty(`contain-intrinsic-size`,e)}get content(){return this.getPropertyValue(`content`)}set content(e){this.setProperty(`content`,e)}get contentVisibility(){return this.getPropertyValue(`content-visibility`)}set contentVisibility(e){this.setProperty(`content-visibility`,e)}get counterIncrement(){return this.getPropertyValue(`counter-increment`)}set counterIncrement(e){this.setProperty(`counter-increment`,e)}get counterReset(){return this.getPropertyValue(`counter-reset`)}set counterReset(e){this.setProperty(`counter-reset`,e)}get counterSet(){return this.getPropertyValue(`counter-set`)}set counterSet(e){this.setProperty(`counter-set`,e)}get containIntrinsicBlockSize(){return this.getPropertyValue(`contain-intrinsic-block-size`)}set containIntrinsicBlockSize(e){this.setProperty(`contain-intrinsic-block-size`,e)}get containIntrinsicHeight(){return this.getPropertyValue(`contain-intrinsic-height`)}set containIntrinsicHeight(e){this.setProperty(`contain-intrinsic-height`,e)}get containIntrinsicInlineSize(){return this.getPropertyValue(`contain-intrinsic-inline-size`)}set containIntrinsicInlineSize(e){this.setProperty(`contain-intrinsic-inline-size`,e)}get containIntrinsicWidth(){return this.getPropertyValue(`contain-intrinsic-width`)}set containIntrinsicWidth(e){this.setProperty(`contain-intrinsic-width`,e)}get cssFloat(){return this.getPropertyValue(`css-float`)}set cssFloat(e){this.setProperty(`css-float`,e)}get cursor(){return this.getPropertyValue(`cursor`)}set cursor(e){this.setProperty(`cursor`,e)}get cx(){return this.getPropertyValue(`cx`)}set cx(e){this.setProperty(`cx`,e)}get cy(){return this.getPropertyValue(`cy`)}set cy(e){this.setProperty(`cy`,e)}get d(){return this.getPropertyValue(`d`)}set d(e){this.setProperty(`d`,e)}get direction(){return this.getPropertyValue(`direction`)}set direction(e){this.setProperty(`direction`,e)}get display(){return this.getPropertyValue(`display`)}set display(e){this.setProperty(`display`,e)}get dominantBaseline(){return this.getPropertyValue(`dominant-baseline`)}set dominantBaseline(e){this.setProperty(`dominant-baseline`,e)}get emptyCells(){return this.getPropertyValue(`empty-cells`)}set emptyCells(e){this.setProperty(`empty-cells`,e)}get fill(){return this.getPropertyValue(`fill`)}set fill(e){this.setProperty(`fill`,e)}get fillOpacity(){return this.getPropertyValue(`fill-opacity`)}set fillOpacity(e){this.setProperty(`fill-opacity`,e)}get fillRule(){return this.getPropertyValue(`fill-rule`)}set fillRule(e){this.setProperty(`fill-rule`,e)}get filter(){return this.getPropertyValue(`filter`)}set filter(e){this.setProperty(`filter`,e)}get flex(){return this.getPropertyValue(`flex`)}set flex(e){this.setProperty(`flex`,e)}get flexBasis(){return this.getPropertyValue(`flex-basis`)}set flexBasis(e){this.setProperty(`flex-basis`,e)}get flexDirection(){return this.getPropertyValue(`flex-direction`)}set flexDirection(e){this.setProperty(`flex-direction`,e)}get flexFlow(){return this.getPropertyValue(`flex-flow`)}set flexFlow(e){this.setProperty(`flex-flow`,e)}get flexGrow(){return this.getPropertyValue(`flex-grow`)}set flexGrow(e){this.setProperty(`flex-grow`,e)}get flexShrink(){return this.getPropertyValue(`flex-shrink`)}set flexShrink(e){this.setProperty(`flex-shrink`,e)}get flexWrap(){return this.getPropertyValue(`flex-wrap`)}set flexWrap(e){this.setProperty(`flex-wrap`,e)}get float(){return this.getPropertyValue(`float`)}set float(e){this.setProperty(`float`,e)}get floodColor(){return this.getPropertyValue(`flood-color`)}set floodColor(e){this.setProperty(`flood-color`,e)}get floodOpacity(){return this.getPropertyValue(`flood-opacity`)}set floodOpacity(e){this.setProperty(`flood-opacity`,e)}get font(){return this.getPropertyValue(`font`)}set font(e){this.setProperty(`font`,e)}get fontDisplay(){return this.getPropertyValue(`font-display`)}set fontDisplay(e){this.setProperty(`font-display`,e)}get fontFamily(){return this.getPropertyValue(`font-family`)}set fontFamily(e){this.setProperty(`font-family`,e)}get fontFeatureSettings(){return this.getPropertyValue(`font-feature-settings`)}set fontFeatureSettings(e){this.setProperty(`font-feature-settings`,e)}get fontKerning(){return this.getPropertyValue(`font-kerning`)}set fontKerning(e){this.setProperty(`font-kerning`,e)}get fontOpticalSizing(){return this.getPropertyValue(`font-optical-sizing`)}set fontOpticalSizing(e){this.setProperty(`font-optical-sizing`,e)}get fontSize(){return this.getPropertyValue(`font-size`)}set fontSize(e){this.setProperty(`font-size`,e)}get fontStretch(){return this.getPropertyValue(`font-stretch`)}set fontStretch(e){this.setProperty(`font-stretch`,e)}get fontStyle(){return this.getPropertyValue(`font-style`)}set fontStyle(e){this.setProperty(`font-style`,e)}get fontVariant(){return this.getPropertyValue(`font-variant`)}set fontVariant(e){this.setProperty(`font-variant`,e)}get fontVariantCaps(){return this.getPropertyValue(`font-variant-caps`)}set fontVariantCaps(e){this.setProperty(`font-variant-caps`,e)}get fontVariantEastAsian(){return this.getPropertyValue(`font-variant-east-asian`)}set fontVariantEastAsian(e){this.setProperty(`font-variant-east-asian`,e)}get fontVariantLigatures(){return this.getPropertyValue(`font-variant-ligatures`)}set fontVariantLigatures(e){this.setProperty(`font-variant-ligatures`,e)}get fontVariantNumeric(){return this.getPropertyValue(`font-variant-numeric`)}set fontVariantNumeric(e){this.setProperty(`font-variant-numeric`,e)}get fontVariationSettings(){return this.getPropertyValue(`font-variation-settings`)}set fontVariationSettings(e){this.setProperty(`font-variation-settings`,e)}get fontPalette(){return this.getPropertyValue(`font-palette`)}set fontPalette(e){this.setProperty(`font-palette`,e)}get fontSynthesisSmallCaps(){return this.getPropertyValue(`font-synthesis-small-caps`)}set fontSynthesisSmallCaps(e){this.setProperty(`font-synthesis-small-caps`,e)}get fontSynthesisStyle(){return this.getPropertyValue(`font-synthesis-style`)}set fontSynthesisStyle(e){this.setProperty(`font-synthesis-style`,e)}get fontSynthesisWeight(){return this.getPropertyValue(`font-synthesis-weight`)}set fontSynthesisWeight(e){this.setProperty(`font-synthesis-weight`,e)}get fontWeight(){return this.getPropertyValue(`font-weight`)}set fontWeight(e){this.setProperty(`font-weight`,e)}get gap(){return this.getPropertyValue(`gap`)}set gap(e){this.setProperty(`gap`,e)}get grid(){return this.getPropertyValue(`grid`)}set grid(e){this.setProperty(`grid`,e)}get gridArea(){return this.getPropertyValue(`grid-area`)}set gridArea(e){this.setProperty(`grid-area`,e)}get gridAutoColumns(){return this.getPropertyValue(`grid-auto-columns`)}set gridAutoColumns(e){this.setProperty(`grid-auto-columns`,e)}get gridAutoFlow(){return this.getPropertyValue(`grid-auto-flow`)}set gridAutoFlow(e){this.setProperty(`grid-auto-flow`,e)}get gridAutoRows(){return this.getPropertyValue(`grid-auto-rows`)}set gridAutoRows(e){this.setProperty(`grid-auto-rows`,e)}get gridColumn(){return this.getPropertyValue(`grid-column`)}set gridColumn(e){this.setProperty(`grid-column`,e)}get gridColumnEnd(){return this.getPropertyValue(`grid-column-end`)}set gridColumnEnd(e){this.setProperty(`grid-column-end`,e)}get gridColumnGap(){return this.getPropertyValue(`grid-column-gap`)}set gridColumnGap(e){this.setProperty(`grid-column-gap`,e)}get gridColumnStart(){return this.getPropertyValue(`grid-column-start`)}set gridColumnStart(e){this.setProperty(`grid-column-start`,e)}get gridGap(){return this.getPropertyValue(`grid-gap`)}set gridGap(e){this.setProperty(`grid-gap`,e)}get gridRow(){return this.getPropertyValue(`grid-row`)}set gridRow(e){this.setProperty(`grid-row`,e)}get gridRowEnd(){return this.getPropertyValue(`grid-row-end`)}set gridRowEnd(e){this.setProperty(`grid-row-end`,e)}get gridRowGap(){return this.getPropertyValue(`grid-row-gap`)}set gridRowGap(e){this.setProperty(`grid-row-gap`,e)}get gridRowStart(){return this.getPropertyValue(`grid-row-start`)}set gridRowStart(e){this.setProperty(`grid-row-start`,e)}get gridTemplate(){return this.getPropertyValue(`grid-template`)}set gridTemplate(e){this.setProperty(`grid-template`,e)}get gridTemplateAreas(){return this.getPropertyValue(`grid-template-areas`)}set gridTemplateAreas(e){this.setProperty(`grid-template-areas`,e)}get gridTemplateColumns(){return this.getPropertyValue(`grid-template-columns`)}set gridTemplateColumns(e){this.setProperty(`grid-template-columns`,e)}get gridTemplateRows(){return this.getPropertyValue(`grid-template-rows`)}set gridTemplateRows(e){this.setProperty(`grid-template-rows`,e)}get height(){return this.getPropertyValue(`height`)}set height(e){this.setProperty(`height`,e)}get hyphens(){return this.getPropertyValue(`hyphens`)}set hyphens(e){this.setProperty(`hyphens`,e)}get imageOrientation(){return this.getPropertyValue(`image-orientation`)}set imageOrientation(e){this.setProperty(`image-orientation`,e)}get imageRendering(){return this.getPropertyValue(`image-rendering`)}set imageRendering(e){this.setProperty(`image-rendering`,e)}get inherits(){return this.getPropertyValue(`inherits`)}set inherits(e){this.setProperty(`inherits`,e)}get initialValue(){return this.getPropertyValue(`initial-value`)}set initialValue(e){this.setProperty(`initial-value`,e)}get inlineSize(){return this.getPropertyValue(`inline-size`)}set inlineSize(e){this.setProperty(`inline-size`,e)}get isolation(){return this.getPropertyValue(`isolation`)}set isolation(e){this.setProperty(`isolation`,e)}get insetBlockEnd(){return this.getPropertyValue(`inset-block-end`)}set insetBlockEnd(e){this.setProperty(`inset-block-end`,e)}get insetBlockStart(){return this.getPropertyValue(`inset-block-start`)}set insetBlockStart(e){this.setProperty(`inset-block-start`,e)}get insetInlineEnd(){return this.getPropertyValue(`inset-inline-end`)}set insetInlineEnd(e){this.setProperty(`inset-inline-end`,e)}get insetInlineStart(){return this.getPropertyValue(`inset-inline-start`)}set insetInlineStart(e){this.setProperty(`inset-inline-start`,e)}get justifyContent(){return this.getPropertyValue(`justify-content`)}set justifyContent(e){this.setProperty(`justify-content`,e)}get justifyItems(){return this.getPropertyValue(`justify-items`)}set justifyItems(e){this.setProperty(`justify-items`,e)}get justifySelf(){return this.getPropertyValue(`justify-self`)}set justifySelf(e){this.setProperty(`justify-self`,e)}get left(){return this.getPropertyValue(`left`)}set left(e){this.setProperty(`left`,e)}get letterSpacing(){return this.getPropertyValue(`letter-spacing`)}set letterSpacing(e){this.setProperty(`letter-spacing`,e)}get lightingColor(){return this.getPropertyValue(`lighting-color`)}set lightingColor(e){this.setProperty(`lighting-color`,e)}get lineBreak(){return this.getPropertyValue(`line-break`)}set lineBreak(e){this.setProperty(`line-break`,e)}get lineHeight(){return this.getPropertyValue(`line-height`)}set lineHeight(e){this.setProperty(`line-height`,e)}get listStyle(){return this.getPropertyValue(`list-style`)}set listStyle(e){this.setProperty(`list-style`,e)}get listStyleImage(){return this.getPropertyValue(`list-style-image`)}set listStyleImage(e){this.setProperty(`list-style-image`,e)}get listStylePosition(){return this.getPropertyValue(`list-style-position`)}set listStylePosition(e){this.setProperty(`list-style-position`,e)}get listStyleType(){return this.getPropertyValue(`list-style-type`)}set listStyleType(e){this.setProperty(`list-style-type`,e)}get margin(){return this.getPropertyValue(`margin`)}set margin(e){this.setProperty(`margin`,e)}get marginBlockEnd(){return this.getPropertyValue(`margin-block-end`)}set marginBlockEnd(e){this.setProperty(`margin-block-end`,e)}get marginBlockStart(){return this.getPropertyValue(`margin-block-start`)}set marginBlockStart(e){this.setProperty(`margin-block-start`,e)}get marginBottom(){return this.getPropertyValue(`margin-bottom`)}set marginBottom(e){this.setProperty(`margin-bottom`,e)}get marginInlineEnd(){return this.getPropertyValue(`margin-inline-end`)}set marginInlineEnd(e){this.setProperty(`margin-inline-end`,e)}get marginInlineStart(){return this.getPropertyValue(`margin-inline-start`)}set marginInlineStart(e){this.setProperty(`margin-inline-start`,e)}get marginLeft(){return this.getPropertyValue(`margin-left`)}set marginLeft(e){this.setProperty(`margin-left`,e)}get marginRight(){return this.getPropertyValue(`margin-right`)}set marginRight(e){this.setProperty(`margin-right`,e)}get marginTop(){return this.getPropertyValue(`margin-top`)}set marginTop(e){this.setProperty(`margin-top`,e)}get marker(){return this.getPropertyValue(`marker`)}set marker(e){this.setProperty(`marker`,e)}get markerEnd(){return this.getPropertyValue(`marker-end`)}set markerEnd(e){this.setProperty(`marker-end`,e)}get markerMid(){return this.getPropertyValue(`marker-mid`)}set markerMid(e){this.setProperty(`marker-mid`,e)}get markerStart(){return this.getPropertyValue(`marker-start`)}set markerStart(e){this.setProperty(`marker-start`,e)}get mask(){return this.getPropertyValue(`mask`)}set mask(e){this.setProperty(`mask`,e)}get maskType(){return this.getPropertyValue(`mask-type`)}set maskType(e){this.setProperty(`mask-type`,e)}get maxBlockSize(){return this.getPropertyValue(`max-block-size`)}set maxBlockSize(e){this.setProperty(`max-block-size`,e)}get maxHeight(){return this.getPropertyValue(`max-height`)}set maxHeight(e){this.setProperty(`max-height`,e)}get maxInlineSize(){return this.getPropertyValue(`max-inline-size`)}set maxInlineSize(e){this.setProperty(`max-inline-size`,e)}get maxWidth(){return this.getPropertyValue(`max-width`)}set maxWidth(e){this.setProperty(`max-width`,e)}get maxZoom(){return this.getPropertyValue(`max-zoom`)}set maxZoom(e){this.setProperty(`max-zoom`,e)}get minBlockSize(){return this.getPropertyValue(`min-block-size`)}set minBlockSize(e){this.setProperty(`min-block-size`,e)}get minHeight(){return this.getPropertyValue(`min-height`)}set minHeight(e){this.setProperty(`min-height`,e)}get minInlineSize(){return this.getPropertyValue(`min-inline-size`)}set minInlineSize(e){this.setProperty(`min-inline-size`,e)}get minWidth(){return this.getPropertyValue(`min-width`)}set minWidth(e){this.setProperty(`min-width`,e)}get minZoom(){return this.getPropertyValue(`min-zoom`)}set minZoom(e){this.setProperty(`min-zoom`,e)}get mixBlendMode(){return this.getPropertyValue(`mix-blend-mode`)}set mixBlendMode(e){this.setProperty(`mix-blend-mode`,e)}get objectFit(){return this.getPropertyValue(`object-fit`)}set objectFit(e){this.setProperty(`object-fit`,e)}get objectPosition(){return this.getPropertyValue(`object-position`)}set objectPosition(e){this.setProperty(`object-position`,e)}get offset(){return this.getPropertyValue(`offset`)}set offset(e){this.setProperty(`offset`,e)}get offsetDistance(){return this.getPropertyValue(`offset-distance`)}set offsetDistance(e){this.setProperty(`offset-distance`,e)}get offsetPath(){return this.getPropertyValue(`offset-path`)}set offsetPath(e){this.setProperty(`offset-path`,e)}get offsetRotate(){return this.getPropertyValue(`offset-rotate`)}set offsetRotate(e){this.setProperty(`offset-rotate`,e)}get opacity(){return this.getPropertyValue(`opacity`)}set opacity(e){this.setProperty(`opacity`,e)}get order(){return this.getPropertyValue(`order`)}set order(e){this.setProperty(`order`,e)}get orientation(){return this.getPropertyValue(`orientation`)}set orientation(e){this.setProperty(`orientation`,e)}get orphans(){return this.getPropertyValue(`orphans`)}set orphans(e){this.setProperty(`orphans`,e)}get outline(){return this.getPropertyValue(`outline`)}set outline(e){this.setProperty(`outline`,e)}get outlineColor(){return this.getPropertyValue(`outline-color`)}set outlineColor(e){this.setProperty(`outline-color`,e)}get outlineOffset(){return this.getPropertyValue(`outline-offset`)}set outlineOffset(e){this.setProperty(`outline-offset`,e)}get outlineStyle(){return this.getPropertyValue(`outline-style`)}set outlineStyle(e){this.setProperty(`outline-style`,e)}get outlineWidth(){return this.getPropertyValue(`outline-width`)}set outlineWidth(e){this.setProperty(`outline-width`,e)}get overflow(){return this.getPropertyValue(`overflow`)}set overflow(e){this.setProperty(`overflow`,e)}get overflowAnchor(){return this.getPropertyValue(`overflow-anchor`)}set overflowAnchor(e){this.setProperty(`overflow-anchor`,e)}get overflowWrap(){return this.getPropertyValue(`overflow-wrap`)}set overflowWrap(e){this.setProperty(`overflow-wrap`,e)}get overflowX(){return this.getPropertyValue(`overflow-x`)}set overflowX(e){this.setProperty(`overflow-x`,e)}get overflowY(){return this.getPropertyValue(`overflow-y`)}set overflowY(e){this.setProperty(`overflow-y`,e)}get overscrollBehavior(){return this.getPropertyValue(`overscroll-behavior`)}set overscrollBehavior(e){this.setProperty(`overscroll-behavior`,e)}get overscrollBehaviorBlock(){return this.getPropertyValue(`overscroll-behavior-block`)}set overscrollBehaviorBlock(e){this.setProperty(`overscroll-behavior-block`,e)}get overscrollBehaviorInline(){return this.getPropertyValue(`overscroll-behavior-inline`)}set overscrollBehaviorInline(e){this.setProperty(`overscroll-behavior-inline`,e)}get overscrollBehaviorX(){return this.getPropertyValue(`overscroll-behavior-x`)}set overscrollBehaviorX(e){this.setProperty(`overscroll-behavior-x`,e)}get overscrollBehaviorY(){return this.getPropertyValue(`overscroll-behavior-y`)}set overscrollBehaviorY(e){this.setProperty(`overscroll-behavior-y`,e)}get overflowClipMargin(){return this.getPropertyValue(`overflow-clip-margin`)}set overflowClipMargin(e){this.setProperty(`overflow-clip-margin`,e)}get padding(){return this.getPropertyValue(`padding`)}set padding(e){this.setProperty(`padding`,e)}get paddingBlockEnd(){return this.getPropertyValue(`padding-block-end`)}set paddingBlockEnd(e){this.setProperty(`padding-block-end`,e)}get paddingBlockStart(){return this.getPropertyValue(`padding-block-start`)}set paddingBlockStart(e){this.setProperty(`padding-block-start`,e)}get paddingBottom(){return this.getPropertyValue(`padding-bottom`)}set paddingBottom(e){this.setProperty(`padding-bottom`,e)}get paddingInlineEnd(){return this.getPropertyValue(`padding-inline-end`)}set paddingInlineEnd(e){this.setProperty(`padding-inline-end`,e)}get paddingInlineStart(){return this.getPropertyValue(`padding-inline-start`)}set paddingInlineStart(e){this.setProperty(`padding-inline-start`,e)}get paddingLeft(){return this.getPropertyValue(`padding-left`)}set paddingLeft(e){this.setProperty(`padding-left`,e)}get paddingRight(){return this.getPropertyValue(`padding-right`)}set paddingRight(e){this.setProperty(`padding-right`,e)}get paddingTop(){return this.getPropertyValue(`padding-top`)}set paddingTop(e){this.setProperty(`padding-top`,e)}get page(){return this.getPropertyValue(`page`)}set page(e){this.setProperty(`page`,e)}get pageBreakAfter(){return this.getPropertyValue(`page-break-after`)}set pageBreakAfter(e){this.setProperty(`page-break-after`,e)}get pageBreakBefore(){return this.getPropertyValue(`page-break-before`)}set pageBreakBefore(e){this.setProperty(`page-break-before`,e)}get pageBreakInside(){return this.getPropertyValue(`page-break-inside`)}set pageBreakInside(e){this.setProperty(`page-break-inside`,e)}get pageOrientation(){return this.getPropertyValue(`page-orientation`)}set pageOrientation(e){this.setProperty(`page-orientation`,e)}get paintOrder(){return this.getPropertyValue(`paint-order`)}set paintOrder(e){this.setProperty(`paint-order`,e)}get perspective(){return this.getPropertyValue(`perspective`)}set perspective(e){this.setProperty(`perspective`,e)}get perspectiveOrigin(){return this.getPropertyValue(`perspective-origin`)}set perspectiveOrigin(e){this.setProperty(`perspective-origin`,e)}get placeContent(){return this.getPropertyValue(`place-content`)}set placeContent(e){this.setProperty(`place-content`,e)}get placeItems(){return this.getPropertyValue(`place-items`)}set placeItems(e){this.setProperty(`place-items`,e)}get placeSelf(){return this.getPropertyValue(`place-self`)}set placeSelf(e){this.setProperty(`place-self`,e)}get pointerEvents(){return this.getPropertyValue(`pointer-events`)}set pointerEvents(e){this.setProperty(`pointer-events`,e)}get position(){return this.getPropertyValue(`position`)}set position(e){this.setProperty(`position`,e)}get quotes(){return this.getPropertyValue(`quotes`)}set quotes(e){this.setProperty(`quotes`,e)}get r(){return this.getPropertyValue(`r`)}set r(e){this.setProperty(`r`,e)}get resize(){return this.getPropertyValue(`resize`)}set resize(e){this.setProperty(`resize`,e)}get right(){return this.getPropertyValue(`right`)}set right(e){this.setProperty(`right`,e)}get rowGap(){return this.getPropertyValue(`row-gap`)}set rowGap(e){this.setProperty(`row-gap`,e)}get rubyPosition(){return this.getPropertyValue(`ruby-position`)}set rubyPosition(e){this.setProperty(`ruby-position`,e)}get rx(){return this.getPropertyValue(`rx`)}set rx(e){this.setProperty(`rx`,e)}get ry(){return this.getPropertyValue(`ry`)}set ry(e){this.setProperty(`ry`,e)}get scrollBehavior(){return this.getPropertyValue(`scroll-behavior`)}set scrollBehavior(e){this.setProperty(`scroll-behavior`,e)}get scrollMargin(){return this.getPropertyValue(`scroll-margin`)}set scrollMargin(e){this.setProperty(`scroll-margin`,e)}get scrollMarginBlock(){return this.getPropertyValue(`scroll-margin-block`)}set scrollMarginBlock(e){this.setProperty(`scroll-margin-block`,e)}get scrollMarginBlockEnd(){return this.getPropertyValue(`scroll-margin-block-end`)}set scrollMarginBlockEnd(e){this.setProperty(`scroll-margin-block-end`,e)}get scrollMarginBlockStart(){return this.getPropertyValue(`scroll-margin-block-start`)}set scrollMarginBlockStart(e){this.setProperty(`scroll-margin-block-start`,e)}get scrollMarginBottom(){return this.getPropertyValue(`scroll-margin-bottom`)}set scrollMarginBottom(e){this.setProperty(`scroll-margin-bottom`,e)}get scrollMarginInline(){return this.getPropertyValue(`scroll-margin-inline`)}set scrollMarginInline(e){this.setProperty(`scroll-margin-inline`,e)}get scrollMarginInlineEnd(){return this.getPropertyValue(`scroll-margin-inline-end`)}set scrollMarginInlineEnd(e){this.setProperty(`scroll-margin-inline-end`,e)}get scrollMarginInlineStart(){return this.getPropertyValue(`scroll-margin-inline-start`)}set scrollMarginInlineStart(e){this.setProperty(`scroll-margin-inline-start`,e)}get scrollMarginLeft(){return this.getPropertyValue(`scroll-margin-left`)}set scrollMarginLeft(e){this.setProperty(`scroll-margin-left`,e)}get scrollMarginRight(){return this.getPropertyValue(`scroll-margin-right`)}set scrollMarginRight(e){this.setProperty(`scroll-margin-right`,e)}get scrollMarginTop(){return this.getPropertyValue(`scroll-margin-top`)}set scrollMarginTop(e){this.setProperty(`scroll-margin-top`,e)}get scrollPadding(){return this.getPropertyValue(`scroll-padding`)}set scrollPadding(e){this.setProperty(`scroll-padding`,e)}get scrollPaddingBlock(){return this.getPropertyValue(`scroll-padding-block`)}set scrollPaddingBlock(e){this.setProperty(`scroll-padding-block`,e)}get scrollPaddingBlockEnd(){return this.getPropertyValue(`scroll-padding-block-end`)}set scrollPaddingBlockEnd(e){this.setProperty(`scroll-padding-block-end`,e)}get scrollPaddingBlockStart(){return this.getPropertyValue(`scroll-padding-block-start`)}set scrollPaddingBlockStart(e){this.setProperty(`scroll-padding-block-start`,e)}get scrollPaddingBottom(){return this.getPropertyValue(`scroll-padding-bottom`)}set scrollPaddingBottom(e){this.setProperty(`scroll-padding-bottom`,e)}get scrollPaddingInline(){return this.getPropertyValue(`scroll-padding-inline`)}set scrollPaddingInline(e){this.setProperty(`scroll-padding-inline`,e)}get scrollPaddingInlineEnd(){return this.getPropertyValue(`scroll-padding-inline-end`)}set scrollPaddingInlineEnd(e){this.setProperty(`scroll-padding-inline-end`,e)}get scrollPaddingInlineStart(){return this.getPropertyValue(`scroll-padding-inline-start`)}set scrollPaddingInlineStart(e){this.setProperty(`scroll-padding-inline-start`,e)}get scrollPaddingLeft(){return this.getPropertyValue(`scroll-padding-left`)}set scrollPaddingLeft(e){this.setProperty(`scroll-padding-left`,e)}get scrollPaddingRight(){return this.getPropertyValue(`scroll-padding-right`)}set scrollPaddingRight(e){this.setProperty(`scroll-padding-right`,e)}get scrollPaddingTop(){return this.getPropertyValue(`scroll-padding-top`)}set scrollPaddingTop(e){this.setProperty(`scroll-padding-top`,e)}get scrollSnapAlign(){return this.getPropertyValue(`scroll-snap-align`)}set scrollSnapAlign(e){this.setProperty(`scroll-snap-align`,e)}get scrollSnapStop(){return this.getPropertyValue(`scroll-snap-stop`)}set scrollSnapStop(e){this.setProperty(`scroll-snap-stop`,e)}get scrollSnapType(){return this.getPropertyValue(`scroll-snap-type`)}set scrollSnapType(e){this.setProperty(`scroll-snap-type`,e)}get shapeImageThreshold(){return this.getPropertyValue(`shape-image-threshold`)}set shapeImageThreshold(e){this.setProperty(`shape-image-threshold`,e)}get shapeMargin(){return this.getPropertyValue(`shape-margin`)}set shapeMargin(e){this.setProperty(`shape-margin`,e)}get shapeOutside(){return this.getPropertyValue(`shape-outside`)}set shapeOutside(e){this.setProperty(`shape-outside`,e)}get shapeRendering(){return this.getPropertyValue(`shape-rendering`)}set shapeRendering(e){this.setProperty(`shape-rendering`,e)}get size(){return this.getPropertyValue(`size`)}set size(e){this.setProperty(`size`,e)}get speak(){return this.getPropertyValue(`speak`)}set speak(e){this.setProperty(`speak`,e)}get src(){return this.getPropertyValue(`src`)}set src(e){this.setProperty(`src`,e)}get stopColor(){return this.getPropertyValue(`stop-color`)}set stopColor(e){this.setProperty(`stop-color`,e)}get stopOpacity(){return this.getPropertyValue(`stop-opacity`)}set stopOpacity(e){this.setProperty(`stop-opacity`,e)}get stroke(){return this.getPropertyValue(`stroke`)}set stroke(e){this.setProperty(`stroke`,e)}get strokeDasharray(){return this.getPropertyValue(`stroke-dasharray`)}set strokeDasharray(e){this.setProperty(`stroke-dasharray`,e)}get strokeDashoffset(){return this.getPropertyValue(`stroke-dashoffset`)}set strokeDashoffset(e){this.setProperty(`stroke-dashoffset`,e)}get strokeLinecap(){return this.getPropertyValue(`stroke-linecap`)}set strokeLinecap(e){this.setProperty(`stroke-linecap`,e)}get strokeLinejoin(){return this.getPropertyValue(`stroke-linejoin`)}set strokeLinejoin(e){this.setProperty(`stroke-linejoin`,e)}get strokeMiterlimit(){return this.getPropertyValue(`stroke-miterlimit`)}set strokeMiterlimit(e){this.setProperty(`stroke-miterlimit`,e)}get strokeOpacity(){return this.getPropertyValue(`stroke-opacity`)}set strokeOpacity(e){this.setProperty(`stroke-opacity`,e)}get strokeWidth(){return this.getPropertyValue(`stroke-width`)}set strokeWidth(e){this.setProperty(`stroke-width`,e)}get syntax(){return this.getPropertyValue(`syntax`)}set syntax(e){this.setProperty(`syntax`,e)}get scrollbarGutter(){return this.getPropertyValue(`scrollbar-gutter`)}set scrollbarGutter(e){this.setProperty(`scrollbar-gutter`,e)}get tabSize(){return this.getPropertyValue(`tab-size`)}set tabSize(e){this.setProperty(`tab-size`,e)}get tableLayout(){return this.getPropertyValue(`table-layout`)}set tableLayout(e){this.setProperty(`table-layout`,e)}get textAlign(){return this.getPropertyValue(`text-align`)}set textAlign(e){this.setProperty(`text-align`,e)}get textAlignLast(){return this.getPropertyValue(`text-align-last`)}set textAlignLast(e){this.setProperty(`text-align-last`,e)}get textAnchor(){return this.getPropertyValue(`text-anchor`)}set textAnchor(e){this.setProperty(`text-anchor`,e)}get textCombineUpright(){return this.getPropertyValue(`text-combine-upright`)}set textCombineUpright(e){this.setProperty(`text-combine-upright`,e)}get textDecoration(){return this.getPropertyValue(`text-decoration`)}set textDecoration(e){this.setProperty(`text-decoration`,e)}get textDecorationColor(){return this.getPropertyValue(`text-decoration-color`)}set textDecorationColor(e){this.setProperty(`text-decoration-color`,e)}get textDecorationLine(){return this.getPropertyValue(`text-decoration-line`)}set textDecorationLine(e){this.setProperty(`text-decoration-line`,e)}get textDecorationSkipInk(){return this.getPropertyValue(`text-decoration-skip-ink`)}set textDecorationSkipInk(e){this.setProperty(`text-decoration-skip-ink`,e)}get textDecorationStyle(){return this.getPropertyValue(`text-decoration-style`)}set textDecorationStyle(e){this.setProperty(`text-decoration-style`,e)}get textIndent(){return this.getPropertyValue(`text-indent`)}set textIndent(e){this.setProperty(`text-indent`,e)}get textOrientation(){return this.getPropertyValue(`text-orientation`)}set textOrientation(e){this.setProperty(`text-orientation`,e)}get textOverflow(){return this.getPropertyValue(`text-overflow`)}set textOverflow(e){this.setProperty(`text-overflow`,e)}get textRendering(){return this.getPropertyValue(`text-rendering`)}set textRendering(e){this.setProperty(`text-rendering`,e)}get textShadow(){return this.getPropertyValue(`text-shadow`)}set textShadow(e){this.setProperty(`text-shadow`,e)}get textSizeAdjust(){return this.getPropertyValue(`text-size-adjust`)}set textSizeAdjust(e){this.setProperty(`text-size-adjust`,e)}get textTransform(){return this.getPropertyValue(`text-transform`)}set textTransform(e){this.setProperty(`text-transform`,e)}get textUnderlinePosition(){return this.getPropertyValue(`text-underline-position`)}set textUnderlinePosition(e){this.setProperty(`text-underline-position`,e)}get top(){return this.getPropertyValue(`top`)}set top(e){this.setProperty(`top`,e)}get touchAction(){return this.getPropertyValue(`touch-action`)}set touchAction(e){this.setProperty(`touch-action`,e)}get transform(){return this.getPropertyValue(`transform`)}set transform(e){this.setProperty(`transform`,e)}get transformBox(){return this.getPropertyValue(`transform-box`)}set transformBox(e){this.setProperty(`transform-box`,e)}get transformOrigin(){return this.getPropertyValue(`transform-origin`)}set transformOrigin(e){this.setProperty(`transform-origin`,e)}get transformStyle(){return this.getPropertyValue(`transform-style`)}set transformStyle(e){this.setProperty(`transform-style`,e)}get transition(){return this.getPropertyValue(`transition`)}set transition(e){this.setProperty(`transition`,e)}get transitionDelay(){return this.getPropertyValue(`transition-delay`)}set transitionDelay(e){this.setProperty(`transition-delay`,e)}get transitionDuration(){return this.getPropertyValue(`transition-duration`)}set transitionDuration(e){this.setProperty(`transition-duration`,e)}get transitionProperty(){return this.getPropertyValue(`transition-property`)}set transitionProperty(e){this.setProperty(`transition-property`,e)}get transitionTimingFunction(){return this.getPropertyValue(`transition-timing-function`)}set transitionTimingFunction(e){this.setProperty(`transition-timing-function`,e)}get textEmphasisColor(){return this.getPropertyValue(`text-emphasis-color`)}set textEmphasisColor(e){this.setProperty(`text-emphasis-color`,e)}get textEmphasisPosition(){return this.getPropertyValue(`text-emphasis-position`)}set textEmphasisPosition(e){this.setProperty(`text-emphasis-position`,e)}get textEmphasisStyle(){return this.getPropertyValue(`text-emphasis-style`)}set textEmphasisStyle(e){this.setProperty(`text-emphasis-style`,e)}get unicodeBidi(){return this.getPropertyValue(`unicode-bidi`)}set unicodeBidi(e){this.setProperty(`unicode-bidi`,e)}get unicodeRange(){return this.getPropertyValue(`unicode-range`)}set unicodeRange(e){this.setProperty(`unicode-range`,e)}get userSelect(){return this.getPropertyValue(`user-select`)}set userSelect(e){this.setProperty(`user-select`,e)}get userZoom(){return this.getPropertyValue(`user-zoom`)}set userZoom(e){this.setProperty(`user-zoom`,e)}get vectorEffect(){return this.getPropertyValue(`vector-effect`)}set vectorEffect(e){this.setProperty(`vector-effect`,e)}get verticalAlign(){return this.getPropertyValue(`vertical-align`)}set verticalAlign(e){this.setProperty(`vertical-align`,e)}get visibility(){return this.getPropertyValue(`visibility`)}set visibility(e){this.setProperty(`visibility`,e)}get whiteSpace(){return this.getPropertyValue(`white-space`)}set whiteSpace(e){this.setProperty(`white-space`,e)}get widows(){return this.getPropertyValue(`widows`)}set widows(e){this.setProperty(`widows`,e)}get width(){return this.getPropertyValue(`width`)}set width(e){this.setProperty(`width`,e)}get willChange(){return this.getPropertyValue(`will-change`)}set willChange(e){this.setProperty(`will-change`,e)}get wordBreak(){return this.getPropertyValue(`word-break`)}set wordBreak(e){this.setProperty(`word-break`,e)}get wordSpacing(){return this.getPropertyValue(`word-spacing`)}set wordSpacing(e){this.setProperty(`word-spacing`,e)}get wordWrap(){return this.getPropertyValue(`word-wrap`)}set wordWrap(e){this.setProperty(`word-wrap`,e)}get writingMode(){return this.getPropertyValue(`writing-mode`)}set writingMode(e){this.setProperty(`writing-mode`,e)}get x(){return this.getPropertyValue(`x`)}set x(e){this.setProperty(`x`,e)}get y(){return this.getPropertyValue(`y`)}set y(e){this.setProperty(`y`,e)}get zIndex(){return this.getPropertyValue(`z-index`)}set zIndex(e){this.setProperty(`z-index`,e)}get zoom(){return this.getPropertyValue(`zoom`)}set zoom(e){this.setProperty(`zoom`,e)}get containerType(){return this.getPropertyValue(`container-type`)}set containerType(e){this.setProperty(`container-type`,e)}get containerName(){return this.getPropertyValue(`container-name`)}set containerName(e){this.setProperty(`container-name`,e)}get aspectRatio(){return this.getPropertyValue(`aspect-ratio`)}set aspectRatio(e){this.setProperty(`aspect-ratio`,e)}get length(){return this.#r().size()}get cssText(){return this.#e&&this.#t?``:this.#r().toString()}set cssText(e){if(this.#t)throw new this[b].DOMException(`Failed to execute 'cssText' on 'CSSStyleDeclaration': These styles are computed, and the properties are therefore read-only.`,H.domException);this.#e?(this.#n.propertyManager=new Fc({cssText:e}),this.#n.attributeValue=e,this.#e.setAttribute(`style`,this.#n.propertyManager.toString())):this.#n.propertyManager=new Fc({cssText:e})}item(e){return this.#r().item(e)}setProperty(e,t,n){if(this.#t)throw new this[b].DOMException(`Failed to execute 'setProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${e}' property is read-only.`,H.domException);if(n!==``&&n!==void 0&&n!==`important`)return;let r=String(t).trim(),i=this.#r();r?i.set(e,r,!!n):i.remove(e),this.#e&&(this.#n.attributeValue=i.toString(),this.#n.attributeValue?this.#e.setAttribute(`style`,this.#n.attributeValue):this.#e.removeAttribute(`style`))}removeProperty(e){if(this.#t)throw new this[b].DOMException(`Failed to execute 'removeProperty' on 'CSSStyleDeclaration': These styles are computed, and therefore the '${e}' property is read-only.`,H.domException);let t=this.#r();t.remove(e),this.#e&&(this.#n.attributeValue=t.toString(),this.#n.attributeValue?this.#e.setAttribute(`style`,this.#n.attributeValue):this.#e.removeAttribute(`style`))}getPropertyValue(e){return this.#r().get(e)?.value||``}getPropertyPriority(e){return this.#r().get(e)?.important?`important`:``}#r(){let e=this.#e,t=this.#n;if(!e)return t.propertyManager||=new Fc,t.propertyManager;if(this.#t)return new _l(e).getComputedStyle();let n=e.getAttribute(`style`)||``;return t.attributeValue!==n&&(t.propertyManager=new Fc({cssText:n})),t.propertyManager}},yl=class extends dl{[Go]=``;get conditionText(){return this[Go]}},bl=class extends yl{[qr]=G.containerRule;[Qo]=``;get type(){return G.containerRule}get cssText(){let e=``;for(let t of this[Ho])e+=`
|
|
9
|
+
`+t.cssText;return e+=`
|
|
10
|
+
`,`@${this[Qo]}container ${this[Go]} {${e}}`}},xl=class extends Gs{[De]=``;#e=null;get type(){return G.fontFaceRule}get cssText(){return`@font-face { ${this.style.cssText} }`}get style(){return this.#e||(this.#e=new vl(N,this[b]),this.#e.parentRule=this,this.#e.cssText=this[De]),this.#e}},Sl=class extends Gs{[Ko]=``;[De]=``;#e=null;get type(){return G.keyframeRule}get cssText(){return`${this[Ko]} { ${this.style.cssText} }`}get style(){return this.#e||(this.#e=new vl(N,this[b]),this.#e.parentRule=this,this.#e.cssText=this[De]),this.#e}get keyText(){return this[Ko]}};const Cl=/^(from|to|[0-9]{1,3}%)\s*{([^}]*)}$/;var wl=class extends Gs{[Ho]=[];[E]=``;[Qo]=``;get type(){return G.keyframesRule}get cssText(){let e=``;for(let t of this[Ho])e+=`
|
|
11
|
+
`+t.cssText;return e+=`
|
|
12
|
+
`,`@${this[Qo]}keyframes ${this[E]} { ${e}}`}get cssRules(){return this[Ho]}get name(){return this[E]}get length(){return this[Ho].length}appendRule(e){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'appendRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.`);let t=String(e).trim().match(Cl);if(!t)throw new this[b].DOMException(`Invalid or unexpected token`,H.syntaxError);let n=new Sl(N,this[b],this[Xo]),r=t[1].trim();r===`from`?r=`0%`:r===`to`&&(r=`100%`),n[Uo]=this,n[Ko]=r,n[De]=t[2].trim(),this[Ho].push(n)}deleteRule(e){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'deleteRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.`);for(let t=0,n=this[Ho].length;t<n;t++)if(this[Ho][t][Ko]===e){this[Ho].splice(t,1);return}}findRule(e){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'findRule' on 'CSSKeyframesRule': 1 argument required, but only 0 present.`);for(let t=0,n=this[Ho].length;t<n;t++)if(this[Ho][t][Ko]===e)return this[Ho][t];return null}};const Tl=/\s*,\s*/;var El=class e{[Zo];constructor(t,n){if(t!==N)throw TypeError(`Illegal constructor`);this[Zo]=n;let r=new zc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t in e||typeof t==`symbol`)return r.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[P]()[n]},set(e,t,n){return r.bind(t),(t in e||typeof t==`symbol`)&&(e[t]=n),!0},deleteProperty(e,t){return(t in e||typeof t==`symbol`)&&delete e[t],!0},ownKeys(e){return Object.keys(e[P]())},has(e,t){if(typeof t==`symbol`)return!1;if(t in e)return!0;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[P]().length},defineProperty(e,t,n){return r.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[P]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[P]().length}get mediaText(){return this[Zo][Go]}set mediaText(e){this[Zo][Go]=e===null?``:String(e).split(Tl).join(`, `)}item(e){return this[P]()[Number(e)]||null}appendMedium(e){let t=this[P]();t.indexOf(e)===-1&&(t.push(e),this[Zo][Go]=t.join(`, `))}deleteMedium(e){let t=this[P](),n=t.indexOf(e);n!==-1&&(t.splice(n,1),this[Zo][Go]=t.join(`, `))}[P](){return this[Zo][Go].trim()?this[Zo][Go].split(Tl):[]}},Dl=class extends yl{[qo]=new El(N,this);get type(){return G.mediaRule}get cssText(){let e=``;for(let t of this[Ho])e+=`
|
|
13
|
+
`+t.cssText;return e+=e?`
|
|
14
|
+
`:` `,`@media ${this.conditionText} {${e}}`}get media(){return this[qo]}get conditionText(){return this.media.mediaText}},Ol=class{#e;constructor(e){this.#e=e}get value(){return this.#e}set value(e){this.#e=e}},kl=class{#e;#t;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this.#e=t,this.#t=n}toString(){return this.#e.getPropertyValue(this.#t)}},Al=class{[ut];constructor(e,t){if(e!==N)throw TypeError(`Illegal constructor`);this[ut]=t}get size(){return this[ut].length}[Symbol.iterator](){return this.entries()}entries(){let e=this[ut].length,t=Array(e);for(let n=0;n<e;n++){let e=this[ut][n];t[n]=[e,[new Ol(this[ut].getPropertyValue(e))]]}return t.values()}values(){let e=this[ut].length,t=Array(e);for(let n=0;n<e;n++){let e=this[ut][n];t[n]=[new Ol(this[ut].getPropertyValue(e))]}return t.values()}keys(){let e=this[ut].length,t=Array(e);for(let n=0;n<e;n++)t[n]=this[ut][n];return t.values()}get(e){return new kl(N,this[ut],e)}getAll(e){return[new kl(N,this[ut],e)]}has(e){return!!this[ut].getPropertyValue(e)}},jl=class extends Al{append(e,t){this[ut].setProperty(e,t)}clear(){this[ut].cssText=``}delete(e){this[ut].removeProperty(e)}set(e,t){this[ut].setProperty(e,t)}},Ml=class extends dl{[Jo]=null;[Yo]=``;[De]=``;#e=null;get type(){return G.styleRule}get cssText(){return`${this[Yo]} { ${this.style.cssText} }`}get styleMap(){return this[Jo]||(this[Jo]=new jl(N,this.style)),this[Jo]}get selectorText(){return this[Yo]}get style(){return this.#e||(this.#e=new vl(N,this[b]),this.#e.parentRule=this,this.#e.cssText=this[De]),this.#e}},Nl=class extends yl{[qr]=G.supportsRule;[Qo]=``;get type(){return G.supportsRule}get cssText(){let e=``;for(let t of this[Ho])e+=`
|
|
15
|
+
`+t.cssText;return e+=`
|
|
16
|
+
`,`@${this[Qo]}supports ${this.conditionText} {${e}}`}},Pl={html:`http://www.w3.org/1999/xhtml`,svg:`http://www.w3.org/2000/svg`,mathML:`http://www.w3.org/1998/Math/MathML`,xml:`http://www.w3.org/XML/1998/namespace`,xlink:`http://www.w3.org/1999/xlink`,xmlns:`http://www.w3.org/2000/xmlns/`};const Fl=new Map,Il=new Map,Ll=/[A-Z]/g,Rl=/[a-z]/g;var zl=class{static asciiLowerCase(e){let t=Fl.get(e);if(t)return t;let n=e.replace(Ll,e=>String.fromCharCode(e.charCodeAt(0)+32));return Fl.set(e,n),n}static asciiUpperCase(e){let t=Il.get(e);if(t)return t;let n=e.replace(Rl,e=>String.fromCharCode(e.charCodeAt(0)-32));return Il.set(e,n),n}};const Bl=`[-_.]|[0-9]|[a-z]|·|[À-Ö]|[Ø-ö]|[ø-ͽ]|[Ϳ-]|[-]|[‿-⁀]|[⁰-]|[Ⰰ-]|[、-]|[豈-﷏]|[ﷰ-�]|[𐀀-]`,Vl=RegExp(`^[a-z](${Bl})*-(${Bl})*$`,`u`),Hl=[`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`];var Ul=class{static isValidCustomElementName(e){return Vl.test(e)&&!Hl.includes(e)}},Wl=class{[tt]=new Map;[wn]=new Map;[ge]=new Map;[Yr]=!1;#e;constructor(e){if(!e)throw TypeError(`Illegal constructor`);this.#e=e}define(e,t,n){if(this[Yr])return;if(!Ul.isValidCustomElementName(e))throw new this.#e.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': "${e}" is not a valid custom element name`);if(this[tt].has(e))throw new this.#e.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${e}" has already been used with this registry`);if(this[wn].has(t))throw new this.#e.DOMException(`Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry`);let r=zl.asciiUpperCase(e);t.prototype[b]=this.#e,t.prototype[g]=this.#e.document,t.prototype[w]=r,t.prototype[k]=e,t.prototype[T]=Pl.html;let i=new Set,a=t.observedAttributes;if(Array.isArray(a))for(let e of a)i.add(String(e).toLowerCase());this[tt].set(e,{elementClass:t,extends:n&&n.extends?n.extends.toLowerCase():null,observedAttributes:i,lifecycleCallbacks:{connectedCallback:t.prototype.connectedCallback,disconnectedCallback:t.prototype.disconnectedCallback,attributeChangedCallback:t.prototype.attributeChangedCallback}}),this[wn].set(t,e);let o=this[ge].get(e);if(o){this[ge].delete(e);for(let e of o)e()}}get(e){return this[tt].get(e)?.elementClass}upgrade(e){}whenDefined(e){return this[Yr]?Promise.reject(new this.#e.DOMException(`Failed to execute 'whenDefined' on 'CustomElementRegistry': The custom element registry has been destroyed.`)):Ul.isValidCustomElementName(e)?this.get(e)?Promise.resolve():new Promise(t=>{let n=this[ge].get(e);n?n.push(t):this[ge].set(e,[t])}):Promise.reject(new this.#e.DOMException(`Failed to execute 'whenDefined' on 'CustomElementRegistry': Invalid custom element name: "${e}"`))}getName(e){return this[wn].get(e)||null}[Me](){this[Yr]=!0;for(let e of this[tt].values())e.elementClass.prototype[b]=null,e.elementClass.prototype[g]=null,e.elementClass.prototype[w]=null,e.elementClass.prototype[k]=null,e.elementClass.prototype[T]=null;this[tt]=new Map,this[wn]=new Map,this[ge]=new Map}},Gl=class{kind;type;#e=null;constructor(e,t=``){this.kind=typeof e==`string`?`string`:`file`,this.type=this.kind===`string`?t:e.type,this.#e=e}getAsFile(){return this.kind===`string`?null:this.#e}getAsString(e){this.kind===`file`&&e(``),e(this.#e)}},Kl=class extends Ls{lastModified;name;constructor(e,t,n){if(arguments.length<2)throw TypeError(`Failed to construct 'File': 2 arguments required, but only `+arguments.length+` present.`);super(e,n),this.name=t,this.lastModified=n&&n.lastModified?n.lastModified:Date.now()}},ql=class extends Array{add(e,t){if(e instanceof Kl){this.push(new Gl(e));return}if(!t)throw TypeError(`Failed to execute 'add' on 'DataTransferItemList': parameter 1 is not of type 'File'.`);this.push(new Gl(e,t))}remove(e){this.splice(e,1)}clear(){for(;this.length;)this.pop()}},Jl=class{dropEffect=`none`;effectAllowed=`none`;items=new ql;get files(){let e=[];for(let t of this.items)if(t.kind===`file`){let n=t.getAsFile();n&&e.push(n)}return e}get types(){return this.items.map(e=>e.type)}clearData(){this.items.clear()}setData(e,t){for(let n=0,r=this.items.length;n<r;n++)if(this.items[n].type===e){this.items[n]=new Gl(t,e);return}this.items.add(t,e)}getData(e){let t=this.#e(e);for(let e=0,n=this.items.length;e<n;e++)if(this.#e(this.items[e].type)===t){let t=``;return this.items[e].getAsString(e=>t=e),t}return``}#e(e){let t=e.toLowerCase();return t===`text`?`text/plain`:t===`url`?`text/uri-list`:t}setDragImage(){throw Error(`Not implemented.`)}},Yl=class{identifier;target;clientX;clientY;screenX;screenY;pageX;pageY;radiusX;radiusY;rotationAngle;force;constructor(e){this.identifier=e.identifier,this.target=e.target,this.clientX=e.clientX??0,this.clientY=e.clientY??0,this.screenX=e.screenX??0,this.screenY=e.screenY??0,this.pageX=e.pageX??0,this.pageY=e.pageY??0,this.radiusX=e.radiusX??0,this.radiusY=e.radiusY??0,this.rotationAngle=e.rotationAngle??0,this.force=e.force??0}},Xl=class extends W{static NONE=0;static CAPTURING_PHASE=1;static AT_TARGET=2;static BUBBLING_PHASE=3;detail;layerX=0;layerY=0;pageX=0;pageY=0;view;constructor(e,t=null){super(e,t),this.detail=t?.detail??0,this.view=t?.view??null}},Zl=class extends W{animationName;elapsedTime;pseudoElement;constructor(e,t=null){super(e,t),this.animationName=t?.animationName??``,this.elapsedTime=t?.elapsedTime??0,this.pseudoElement=t?.pseudoElement??``}},Ql=class extends W{clipboardData;constructor(e,t=null){super(e,t),this.clipboardData=t?.clipboardData??null}},$l=class extends W{[Jr];constructor(e,t=null){super(e,t),this[Jr]=t?.detail??null}get detail(){return this[Jr]}initCustomEvent(e,t=!1,n=!1,r=null){this[qr]=e,this[Hr]=t,this[Ur]=n,this[Jr]=r}},eu=class extends Xl{message;filename;lineno;colno;error;constructor(e,t=null){super(e,t),this.message=t?.message??``,this.filename=t?.filename??``,this.lineno=t?.lineno??0,this.colno=t?.colno??0,this.error=t?.error??null}},tu=class extends Xl{relatedTarget;constructor(e,t=null){super(e,t),this.relatedTarget=t?.relatedTarget??null}},nu=class extends W{newURL;oldURL;constructor(e,t=null){super(e,t),this.newURL=t?.newURL??``,this.oldURL=t?.oldURL??``}},ru=class extends Xl{data;dataTransfer;inputType;isComposing;constructor(e,t=null){super(e,t),this.data=t?.data??``,this.dataTransfer=t?.dataTransfer??null,this.inputType=t?.inputType??``,this.isComposing=t?.isComposing??!1}},iu=class extends Xl{static DOM_KEY_LOCATION_STANDARD=0;static DOM_KEY_LOCATION_LEFT=1;static DOM_KEY_LOCATION_RIGHT=2;static DOM_KEY_LOCATION_NUMPAD=3;altKey;code;ctrlKey;isComposing;key;location;metaKey;repeat;shiftKey;keyCode;which;constructor(e,t=null){super(e,t),this.altKey=t?.altKey??!1,this.code=t?.code??``,this.ctrlKey=t?.ctrlKey??!1,this.isComposing=t?.isComposing??!1,this.key=t?.key??``,this.location=t?.location??0,this.metaKey=t?.metaKey??!1,this.repeat=t?.repeat??!1,this.shiftKey=t?.shiftKey??!1,this.keyCode=t?.keyCode??0,this.which=t?.which??t?.keyCode??0}getModifierState(e){if(arguments.length<1)throw TypeError(`Failed to execute 'getModifierState' on 'KeyboardEvent': 1 argument required, but only 0 present.`);switch(String(e).toLowerCase()){case`alt`:case`altgraph`:return this.altKey;case`control`:return this.ctrlKey;case`meta`:return this.metaKey;case`shift`:return this.shiftKey;default:return!1}}},au=class extends W{data;origin;lastEventId;source;ports;constructor(e,t=null){super(e,t),this.data=t?.data??null,this.origin=t?.origin??``,this.lastEventId=t?.lastEventId??``,this.source=t?.source??null,this.ports=t?.ports??[]}},ou=class extends Xl{altKey;button;buttons;clientX;clientY;ctrlKey;metaKey;movementX;movementY;offsetX;offsetY;region;relatedTarget;screenX;screenY;shiftKey;constructor(e,t=null){super(e,t),this.altKey=t?.altKey??!1,this.button=t?.button??0,this.buttons=t?.buttons??0,this.clientX=t?.clientX??0,this.clientY=t?.clientY??0,this.ctrlKey=t?.ctrlKey??!1,this.metaKey=t?.metaKey??!1,this.movementX=t?.movementX??0,this.movementY=t?.movementY??0,this.offsetX=t?.offsetX??0,this.offsetY=t?.offsetY??0,this.region=t?.region??``,this.relatedTarget=t?.relatedTarget??null,this.screenX=t?.screenX??0,this.screenY=t?.screenY??0,this.shiftKey=t?.shiftKey??!1}},su=class extends ou{pointerId;width;height;pressure;tangentialPressure;tiltX;tiltY;twist;altitudeAngle;azimuthAngle;pointerType;isPrimary;coalescedEvents;predictedEvents;constructor(e,t=null){super(e,t),this.pointerId=t?.pointerId??0,this.width=t?.width??1,this.height=t?.height??1,this.pressure=t?.pressure??0,this.tangentialPressure=t?.tangentialPressure??0,this.tiltX=t?.tiltX??0,this.tiltY=t?.tiltY??0,this.twist=t?.twist??0,this.altitudeAngle=t?.altitudeAngle??0,this.azimuthAngle=t?.azimuthAngle??0,this.pointerType=t?.pointerType??``,this.isPrimary=t?.isPrimary??!1,this.coalescedEvents=t?.coalescedEvents??[],this.predictedEvents=t?.predictedEvents??[]}getCoalescedEvents=()=>this.coalescedEvents;getPredictedEvents=()=>this.predictedEvents},cu=class extends W{lengthComputable;loaded;total;constructor(e,t=null){super(e),this.lengthComputable=t?.lengthComputable??!1,this.loaded=t?.loaded??0,this.total=t?.total??0}},lu=class extends W{key;oldValue;newValue;url;storageArea;constructor(e,t=null){super(e),this.key=t?.key??null,this.oldValue=t?.oldValue??null,this.newValue=t?.newValue??null,this.url=t?.url??``,this.storageArea=t?.storageArea??null}},uu=class extends W{submitter;constructor(e,t=null){super(e,t),this.submitter=t?.submitter??null}},du=class extends Xl{altKey;changedTouches;ctrlKey;metaKey;shiftKey;targetTouches;touches;constructor(e,t=null){super(e,t),this.altKey=t?.altKey??!1,this.changedTouches=t?.changedTouches??[],this.ctrlKey=t?.ctrlKey??!1,this.metaKey=t?.metaKey??!1,this.shiftKey=t?.shiftKey??!1,this.targetTouches=t?.targetTouches??[],this.touches=t?.touches??[]}},fu=class extends Xl{static DOM_DELTA_PIXEL=0;static DOM_DELTA_LINE=1;static DOM_DELTA_PAGE=2;deltaX;deltaY;deltaZ;deltaMode;constructor(e,t=null){super(e,t),this.deltaX=t?.deltaX??0,this.deltaY=t?.deltaY??0,this.deltaZ=t?.deltaZ??0,this.deltaMode=t?.deltaMode??0}},pu=class extends re{constructor(e,t){try{super(e,t)}catch(e){throw super(`about:blank`),this[b]?new this[b].TypeError(`Invalid URL`):e}}static createObjectURL(e){if(e instanceof Ls){let t=new r([e[me]],{type:e.type});return super.createObjectURL(t)}return super.createObjectURL(e)}};const mu=/^(about|blob|data):$/,hu=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`];var gu=class{static prepareRequest(e,t){t.referrerPolicy||(t[No]=`strict-origin-when-cross-origin`),t.referrer&&t.referrer!==`no-referrer`?t[et]=this.getSentReferrer(e,t):t[et]=`no-referrer`}static getInitialReferrer(e,t){if(t===``||t===`no-referrer`||t===`client`)return t;if(t){let n=t instanceof pu?t:new pu(t,e.location.href);return n.origin===e.location.origin?n:`client`}return`client`}static getReferrerPolicyFromHeader(e){let t=e.get(`Referrer-Policy`);if(!t)return``;let n=t.split(/[,\s]+/),r=``;for(let e of n)e&&hu.includes(e)&&(r=e);return r}static getSentReferrer(e,t){if(t.referrer===`about:client`&&e.origin===`null`)return`no-referrer`;let n=new pu(t.url),r=t.referrer===`about:client`?new pu(e.href):new pu(t.referrer);if(mu.test(r.protocol))return`no-referrer`;switch(r.username=``,r.password=``,r.hash=``,t.referrerPolicy){case`no-referrer`:return`no-referrer`;case`origin`:return new pu(r.origin);case`unsafe-url`:return r;case`strict-origin`:return this.isURLPotentiallyTrustWorthy(r)&&!this.isURLPotentiallyTrustWorthy(n)?`no-referrer`:new pu(r.origin);case`strict-origin-when-cross-origin`:return r.origin===n.origin?r:this.isURLPotentiallyTrustWorthy(r)&&!this.isURLPotentiallyTrustWorthy(n)?`no-referrer`:new pu(r.origin);case`same-origin`:return r.origin===n.origin?r:`no-referrer`;case`origin-when-cross-origin`:return r.origin===n.origin?r:new pu(r.origin);case`no-referrer-when-downgrade`:return this.isURLPotentiallyTrustWorthy(r)&&!this.isURLPotentiallyTrustWorthy(n)?`no-referrer`:r}return`no-referrer`}static isURLPotentiallyTrustWorthy(e){return/^about:(blank|srcdoc)$/.test(e.href)||e.protocol===`data:`||/^(blob|filesystem):$/.test(e.protocol)?!0:this.isOriginPotentiallyTrustWorthy(e)}static isOriginPotentiallyTrustWorthy(e){if(/^(http|ws)s:$/.test(e.protocol))return!0;let t=e.host.replace(/(^\[)|(]$)/g,``),n=ne(t);return n===4&&/^127\./.test(t)||n===6&&/^(((0+:){7})|(::(0+:){0,6}))0*1$/.test(t)?!0:e.host===`localhost`||e.host.endsWith(`.localhost`)?!1:e.protocol===`file:`}},_u=class{static parse(e){if(!/^data:/i.test(e))throw TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,``);let t=e.indexOf(`,`);if(t===-1||t<=4)throw TypeError(`malformed data: URI`);let n=e.substring(5,t).split(`;`),r=``,i=!1,a=n[0]||`text/plain`;for(let e=1;e<n.length;e++)n[e]===`base64`?i=!0:n[e]&&(a+=`;${n[e]}`,n[e].indexOf(`charset=`)===0&&(r=n[e].substring(8)));!n[0]&&!r.length&&(a+=`;charset=US-ASCII`,r=`US-ASCII`);let o=i?`base64`:`ascii`,s=unescape(e.substring(t+1)),c=Buffer.from(s,o);return{type:a,charset:r,buffer:c}}},vu=class{static isCORS(e,t){return e=typeof e==`string`?new re(e):e,t=typeof t==`string`?new re(t):t,t.protocol===`about:`||t.protocol===`javascript:`?!1:e.hostname!==t.hostname&&!e.hostname.endsWith(t.hostname)||e.protocol!==t.protocol}},yu;(function(e){e[e.boundary=0]=`boundary`,e[e.headerStart=2]=`headerStart`,e[e.header=3]=`header`,e[e.data=5]=`data`})(yu||={});const bu={lf:10,cr:13};var xu=class{formData;boundary;boundaryIndex=0;state=yu.boundary;data={contentDisposition:null,value:[],contentType:null,header:``};constructor(e,t){let n=`--${t}`;this.boundary=new Uint8Array(n.length),this.formData=new e.FormData;for(let e=0,t=n.length;e<t;e++)this.boundary[e]=n.charCodeAt(e)}write(e){let t,n;for(let r=0,i=e.length;r<i;r++)switch(t=e[r],n=e[r+1],this.state){case yu.boundary:t===this.boundary[this.boundaryIndex]?this.boundaryIndex++:this.boundaryIndex=0,this.boundaryIndex===this.boundary.length&&(this.state=yu.headerStart,this.boundaryIndex=0);break;case yu.headerStart:n!==bu.cr&&n!==bu.lf&&(this.data.header=``,this.state=e[r-2]===bu.lf?yu.data:yu.header);break;case yu.header:if(t===bu.cr){if(this.data.header){let e=this.data.header.split(`:`);if(e.length>1){let t=e[0].toLowerCase(),n=e[1].trim();switch(t){case`content-disposition`:this.data.contentDisposition=this.getContentDisposition(n);break;case`content-type`:this.data.contentType=n;break}}}this.state=yu.headerStart}else this.data.header+=String.fromCharCode(t);break;case yu.data:t===this.boundary[this.boundaryIndex]?this.boundaryIndex++:this.boundaryIndex=0,this.boundaryIndex===this.boundary.length?(this.state=yu.headerStart,this.data.value.length&&(this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-(this.boundary.length+1))),this.data.contentDisposition.filename,this.data.contentType),this.data.value=[],this.data.contentDisposition=null,this.data.contentType=null),this.boundaryIndex=0):this.data.value.push(t);break}}end(){return this.data.contentDisposition&&this.data.value.length&&this.appendFormData(this.data.contentDisposition.name,Buffer.from(this.data.value.slice(0,-2)),this.data.contentDisposition.filename,this.data.contentType),this.formData}appendFormData(e,t,n,r){t.length&&(n?this.formData.append(e,new Kl([t],n,{type:r})):this.formData.append(e,t.toString()))}getContentDisposition(e){let t=/([a-z]+) *= *"([^"]+)"/g,n={},r;for(;r=t.exec(e);)n[r[1]]=r[2];return n}},Su=class{static async streamToFormData(e,t,n){if(!/multipart/i.test(n))throw new e.DOMException(`Failed to build FormData object: The "content-type" header isn't of type "multipart/form-data".`,H.invalidStateError);let r=t.body;if(!r)throw new e.DOMException(`Failed to build FormData object: The response body is null.`,H.invalidStateError);let a=n.match(/boundary=(?:"([^"]+)"|([^;]+))/i);if(!a)throw new e.DOMException(`Failed to build FormData object: The "content-type" header doesn't contain any multipart boundary.`,H.invalidStateError);let o=r.getReader(),s=new xu(e,a[1]||a[2]),c=[],l,u=await o.read();for(;!u.done;){if(t[fn])throw t[fn];if(t[Xr])throw new e.DOMException(`Failed to read response body: The stream was aborted.`,H.abortError);s.write(u.value),u=await o.read()}try{l=typeof c[0]==`string`?i.from(c.join(``)):i.concat(c,0)}catch(t){throw new e.DOMException(`Could not create Buffer from response body. Error: ${t.message}.`,H.invalidStateError)}return{formData:s.end(),buffer:l}}static formDataToStream(e){let t=`----HappyDOMFormDataBoundary`+Math.random().toString(36),n=[],r=`--${t}\r\nContent-Disposition: form-data; name="`;for(let[t,a]of e)typeof a==`string`?n.push(i.from(`${r}${this.escapeName(t)}"\r\n\r\n${a.replace(/\r(?!\n)|(?<!\r)\n/g,`\r
|
|
17
|
+
`)}\r\n`)):(n.push(i.from(`${r}${this.escapeName(t)}"; filename="${this.escapeName(a.name,!0)}"\r\nContent-Type: ${a.type||`application/octet-stream`}\r\n\r\n`)),n.push(a[me]),n.push(i.from(`\r
|
|
18
|
+
`)));n.push(i.from(`--${t}--\r\n`));let a=i.concat(n);return{contentType:`multipart/form-data; boundary=${t}`,contentLength:a.length,buffer:a,stream:new ae({start(e){e.enqueue(a),e.close()}})}}static escapeName(e,t=!1){return(t?e:e.replace(/\r?\n|\r/g,`\r
|
|
19
|
+
`)).replace(/\n/g,`%0A`).replace(/\r/g,`%0D`).replace(/"/g,`%22`)}},Cu=class{#e=[];constructor(e,t){if(!e)return;if(t){let n=e[ar]?e[ar]:e;if(t.form!==n)throw new this[b].DOMException(`The specified element is not owned by this form element`,H.notFoundError);if(!(t[w]===`INPUT`&&(t.type===`submit`||t.type===`image`)||t[w]===`BUTTON`&&t.type===`submit`))throw new this[b].TypeError(`The specified element is not a submit button`)}let n=e[tr]();for(let e of n){let n=e.name;if(n)switch(e[w]){case`INPUT`:if(e.disabled)break;switch(e.type){case`file`:if(e[$t].length===0)this.append(n,new Kl([],``,{type:`application/octet-stream`}));else for(let t of e[$t])this.append(n,t);break;case`checkbox`:case`radio`:e.checked&&this.append(n,e.value);break;case`submit`:case`reset`:case`button`:e===t&&e.value&&this.append(n,e.value);break;default:this.append(n,e.value);break}break;case`BUTTON`:e===t&&e.value&&this.append(n,e.value);break;case`TEXTAREA`:case`SELECT`:this.append(n,e.value);break}}}forEach(e,t){for(let n of this.#e)e.call(t,n.value,n.name,this)}append(e,t,n){if(n&&!(t instanceof Ls))throw new this[b].TypeError(`Failed to execute "append" on "FormData": parameter 2 is not of type "Blob".`);this.#e.push({name:e,value:this.#t(t,n)})}delete(e){let t=[];for(let n of this.#e)n.name!==e&&t.push(n);this.#e=t}get(e){for(let t of this.#e)if(t.name===e)return t.value;return null}getAll(e){let t=[];for(let n of this.#e)n.name===e&&t.push(n.value);return t}has(e){for(let t of this.#e)if(t.name===e)return!0;return!1}set(e,t,n){for(let r of this.#e)if(r.name===e){r.value=this.#t(t,n);return}this.append(e,t)}*keys(){for(let e of this.#e)yield e.name}*values(){for(let e of this.#e)yield e.value}*entries(){for(let e of this.#e)yield[e.name,e.value]}*[Symbol.iterator](){for(let e of this.#e)yield[e.name,e.value]}#t(e,t){if(e instanceof Kl){if(t){let n=new Kl([],t,{type:e.type,lastModified:e.lastModified});return n[me]=e[me],n}return e}if(e instanceof Ls){let t=new Kl([],`blob`,{type:e.type});return t[me]=e[me],t}return String(e)}},wu=class{static getBodyStream(e){if(e==null)return{stream:null,buffer:null,contentType:null,contentLength:null};if(e instanceof ie){let t=i.from(e.toString());return{buffer:t,stream:this.toReadableStream(t),contentType:`application/x-www-form-urlencoded;charset=UTF-8`,contentLength:t.length}}else if(e instanceof Ls){let t=e[me];return{buffer:t,stream:this.toReadableStream(t),contentType:e.type,contentLength:e.size}}else if(i.isBuffer(e))return{buffer:e,stream:this.toReadableStream(e),contentType:null,contentLength:e.length};else if(e instanceof ArrayBuffer){let t=i.from(e);return{buffer:t,stream:this.toReadableStream(t),contentType:null,contentLength:e.byteLength}}else if(ArrayBuffer.isView(e)){let t=i.from(e.buffer,e.byteOffset,e.byteLength);return{buffer:t,stream:this.toReadableStream(t),contentType:null,contentLength:e.byteLength}}else if(e instanceof ae)return{buffer:null,stream:e,contentType:null,contentLength:null};else if(e instanceof Cu)return Su.formDataToStream(e);let t=i.from(String(e));return{buffer:t,stream:this.toReadableStream(t),contentType:`text/plain;charset=UTF-8`,contentLength:t.length}}static cloneBodyStream(e,t){if(t.bodyUsed)throw new e.DOMException(`Failed to clone body stream of request: Request body is already used.`,H.invalidStateError);if(t.body===null||t.body===void 0)return null;if(t[me])return this.toReadableStream(t[me]);if(t.body[Tn]){let e=new f.PassThrough,n=new f.PassThrough;t.body[Tn].pipe(e),t.body[Tn].pipe(n);let r=this.nodeToWebStream(e);return jo in t?t[jo]=r:t.body=r,this.nodeToWebStream(n)}let[n,r]=t.body.tee();return jo in t?t[jo]=n:t.body=n,r}static async consumeBodyStream(e,t){let n=t.body;if(n===null||!(n instanceof ae))return i.alloc(0);if(t[fn])throw t[fn];let r=n.getReader(),a=[],o=0;try{let n=await r.read();for(;!n.done;){if(t[fn])throw t[fn];if(t[Xr])throw new e.DOMException(`Failed to read response body: The stream was aborted.`,H.abortError);let i=n.value;o+=i.length,a.push(i),n=await r.read()}}catch(t){throw t instanceof gs?t:new e.DOMException(`Failed to read response body. Error: ${t.message}.`,H.encodingError)}try{return typeof a[0]==`string`?i.from(a.join(``)):i.concat(a,o)}catch(t){throw new e.DOMException(`Could not create Buffer from response body. Error: ${t.message}.`,H.invalidStateError)}}static toReadableStream(e){return new ae({start(t){t.enqueue(e),t.close()}})}static nodeToWebStream(e){let t=new ae({start(t){e.on(`data`,e=>{t.enqueue(e)}),e.on(`end`,()=>{t.close()}),e.on(`error`,e=>{t.error(e)})}});return t[Tn]=e,t}};const Tu=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],Eu=[`error`,`manual`,`follow`],Du=[`data:`,`http:`,`https:`],Ou=[`TRACE`,`TRACK`,`CONNECT`],ku=/^[A-Z]+$/;var Au=class{static validateMethod(e){if(!e.method||Ou.includes(e.method))throw new gs(`'${e.method||``}' is not a valid HTTP method.`,H.invalidStateError);if(!ku.test(e.method))throw new gs(`'${e.method}' HTTP method is unsupported.`,H.invalidStateError)}static validateBody(e){if(e.body&&(e.method===`GET`||e.method===`HEAD`))throw new gs(`Request with GET/HEAD method cannot have body.`,H.invalidStateError)}static validateURL(e){if(e.username!==``||e.password!==``)throw new gs(`${e} is an url with embedded credentials.`,H.notSupportedError)}static validateReferrerPolicy(e){if(!Tu.includes(e))throw new gs(`Invalid referrer policy "${e}".`,H.syntaxError)}static validateRedirect(e){if(!Eu.includes(e))throw new gs(`Invalid redirect "${e}".`,H.syntaxError)}static validateSchema(e){if(!Du.includes(e[gt].protocol))throw new gs(`Failed to fetch from "${e.url}": URL scheme "${e[gt].protocol.replace(/:$/,``)}" is not supported.`,H.notSupportedError)}},ju=class{static stringToCookie(e,t){let n=t.split(`;`),r=n.shift();if(!r)return null;let i=r.indexOf(`=`),a=i===-1?r.trim():r.slice(0,i).trim(),o=i===-1?null:r.slice(i+1).trim(),s=Object.assign({},ls,{key:a,value:o,originURL:e});if(!s.key)return null;for(let e of n){let t=e.indexOf(`=`),n=t===-1?e.trim().toLowerCase():e.slice(0,t).trim().toLowerCase(),r=t===-1?``:e.slice(t+1).trim();switch(n){case`expires`:s.expires=new Date(r);break;case`max-age`:s.expires=new Date(parseInt(r,10)*1e3+Date.now());break;case`domain`:s.domain=r;break;case`path`:s.path=r[0]===`/`?r:`/${r}`;break;case`httponly`:s.httpOnly=!0;break;case`secure`:s.secure=!0;break;case`samesite`:switch(r.toLowerCase()){case`strict`:s.sameSite=cs.strict;break;case`lax`:s.sameSite=cs.lax;break;case`none`:s.sameSite=cs.none}break}}let c=s.key.toLowerCase();return c.startsWith(`__secure-`)&&!s.secure||c.startsWith(`__host-`)&&(!s.secure||s.path!==`/`||s.domain)?null:s}static cookiesToString(e){let t=[];for(let n of e)n.value===null?t.push(n.key):t.push(`${n.key}=${n.value}`);return t.join(`; `)}};const Mu=[`accept-charset`,`accept-encoding`,`access-control-request-headers`,`access-control-request-method`,`connection`,`content-length`,`content-transfer-encoding`,`cookie`,`cookie2`,`date`,`dnt`,`expect`,`host`,`keep-alive`,`origin`,`referer`,`te`,`trailer`,`transfer-encoding`,`upgrade`,`via`];var Nu=class{static removeForbiddenHeaders(e){for(let t of Object.keys(e[Pe]))(Mu.includes(t)||t.startsWith(`proxy-`)||t.startsWith(`sec-`))&&delete e[Pe][t]}static isHeaderForbidden(e){return Mu.includes(e.toLowerCase())}static getRequestHeaders(e){let t=new e.window.Headers(e.baseHeaders);e.request.headers.forEach((e,n)=>{t.set(n,e)});let n=new re(e.window.location.href),r=vu.isCORS(n,e.request[gt]);if(t.set(`Accept-Encoding`,`gzip, deflate, br`),t.set(`Connection`,`close`),t.has(`User-Agent`)||t.set(`User-Agent`,e.window.navigator.userAgent),e.request[et]instanceof re&&t.set(`Referer`,e.request[et].href),e.request.credentials===`include`||e.request.credentials===`same-origin`&&!r){let n=e.browserFrame.page.context.cookieContainer.getCookies(e.request[gt],!1);n.length>0&&t.set(`Cookie`,ju.cookiesToString(n))}else t.delete(`Cookie`),t.delete(`Cookie2`);t.has(`Accept`)||t.set(`Accept`,`*/*`),!t.has(`Content-Length`)&&e.request[Te]!==null&&t.set(`Content-Length`,String(e.request[Te])),!t.has(`Content-Type`)&&e.request[Ee]&&t.set(`Content-Type`,e.request[Ee]),r&&t.set(`Origin`,n.origin);let i={};for(let e of Object.values(t[Pe]))i[e.name]=e.value.join(`, `);return i}},Pu=class e{[Ta];[jo];[xn]=`cors`;[wr];[Mo];[No];[Po];[Fo]=!1;[Io];[Xr]=!1;[fn]=null;[Te]=null;[Ee]=null;[et]=`client`;[gt];[pe];constructor(t,n){let r=this[b];if(!r)throw TypeError(`Failed to construct 'Request': 'Request' was constructed outside a Window context.`);if(typeof t!=`string`&&!t)throw new r.TypeError(`Failed to construct 'Request': 1 argument required, only 0 present.`);if(this[Ta]=(n?.method||t.method||`GET`).toUpperCase(),n?.mode)switch(n.mode){case`navigate`:case`websocket`:throw new r.DOMException(`Failed to construct 'Request': Cannot construct a Request with a RequestInit whose mode member is set as '${n.mode}'.`,H.securityError);case`same-origin`:case`no-cors`:case`cors`:this[xn]=n.mode;break;default:throw new r.DOMException(`Failed to construct 'Request': The provided value '${n.mode}' is not a valid enum value of type RequestMode.`,H.syntaxError)}else t instanceof e&&(this[xn]=t.mode);let{stream:i,buffer:a,contentType:o,contentLength:s}=wu.getBodyStream(t instanceof e&&(t[pe]||t.body)?t[pe]||wu.cloneBodyStream(r,t):n?.body??null);if(this[pe]=a,this[jo]=i,this[Io]=n?.credentials||t.credentials||`same-origin`,this[wr]=new this[b].Headers(n?.headers||t.headers||{}),Nu.removeForbiddenHeaders(this.headers),s?this[Te]=s:!this.body&&(this.method===`POST`||this.method===`PUT`)&&(this[Te]=0),o?(this.headers.has(`Content-Type`)||this.headers.set(`Content-Type`,o),this[Ee]=o):t instanceof e&&t[Ee]&&(this[Ee]=t[Ee]),this[Mo]=n?.redirect||t.redirect||`follow`,this[No]=(n?.referrerPolicy||t.referrerPolicy||``).toLowerCase(),this[Po]=n?.signal||t.signal||new r.AbortSignal,this[et]=gu.getInitialReferrer(r,n?.referrer!==null&&n?.referrer!==void 0?n?.referrer:t.referrer),t instanceof re)this[gt]=t;else try{t instanceof e&&t.url?this[gt]=new re(t.url,r.location.href):this[gt]=new re(t,r.location.href)}catch{throw new r.DOMException(`Failed to construct 'Request': Invalid URL "${t}" on document location '${r.location}'.${r.location.origin===`null`?` Relative URLs are not permitted on current document location.`:``}`,H.notSupportedError)}Au.validateMethod(this),Au.validateBody(this),Au.validateURL(this[gt]),Au.validateReferrerPolicy(this.referrerPolicy),Au.validateRedirect(this.redirect)}get method(){return this[Ta]}get body(){return this[jo]}get mode(){return this[xn]}get headers(){return this[wr]}get redirect(){return this[Mo]}get referrerPolicy(){return this[No]}get signal(){return this[Po]}get bodyUsed(){return this[Fo]}get credentials(){return this[Io]}get referrer(){return!this[et]||this[et]===`no-referrer`?``:this[et]===`client`?`about:client`:this[et].toString()}get url(){return this[gt].href}get[Symbol.toStringTag](){return`Request`}async arrayBuffer(){let e=this[b];if(this[Fo])throw new e.DOMException(`Body has already been used for "${this.url}".`,H.invalidStateError);let t=new Y(e).getAsyncTaskManager();this[Fo]=!0;let n=t.startTask(()=>{this[Xr]=!0,this.signal[ue]()}),r;try{r=await wu.consumeBodyStream(e,this)}catch(e){throw t.endTask(n),e}return t.endTask(n),r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}async blob(){let e=this.headers.get(`Content-Type`)||``;return new Ls([await this.arrayBuffer()],{type:e})}async buffer(){let e=this[b];if(this[Fo])throw new e.DOMException(`Body has already been used for "${this.url}".`,H.invalidStateError);let t=new Y(e).getAsyncTaskManager();this[Fo]=!0;let n=t.startTask(()=>{this[Xr]=!0,this.signal[ue]()}),r;try{r=await wu.consumeBodyStream(e,this)}catch(e){throw t.endTask(n),e}return t.endTask(n),r}async text(){let e=this[b];if(this[Fo])throw new e.DOMException(`Body has already been used for "${this.url}".`,H.invalidStateError);let t=new Y(e).getAsyncTaskManager();this[Fo]=!0;let n=t.startTask(()=>{this[Xr]=!0,this.signal[ue]()}),r;try{r=await wu.consumeBodyStream(e,this)}catch(e){throw t.endTask(n),e}return t.endTask(n),new TextDecoder().decode(r)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[b],t=new Y(e).getAsyncTaskManager(),n=this.headers.get(`Content-Type`)??this[Ee];if(this.body&&n&&/multipart/i.test(n)){if(this[Fo])throw new e.DOMException(`Body has already been used for "${this.url}".`,H.invalidStateError);this[Fo]=!0;let r=t.startTask(()=>{this[Xr]=!0,this.signal[ue]()}),i;try{i=(await Su.streamToFormData(e,this,n)).formData}catch(e){throw t.endTask(r),e}return t.endTask(r),i}if(n?.startsWith(`application/x-www-form-urlencoded`)){let t=new URLSearchParams(await this.text()),n=new e.FormData;for(let[e,r]of t)n.append(e,r);return n}throw new e.DOMException(`Failed to construct FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".`,H.invalidStateError)}clone(){return new this[b].Request(this)}};const Fu=[301,302,303,307,308];var Iu=class{body=null;bodyUsed=!1;redirected=!1;type=`basic`;url=``;status;statusText;ok;headers;[he]=null;[me]=null;[$o]=null;[Xr]=!1;[fn]=null;constructor(e,t){if(!this[b])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);if(this.status=t?.status===void 0?200:t.status,this.statusText=t?.statusText||``,this.ok=this.status>=200&&this.status<300,this.headers=new this[b].Headers(t?.headers),this.headers.delete(`Set-Cookie`),this.headers.delete(`Set-Cookie2`),e){let{stream:t,buffer:n,contentType:r}=wu.getBodyStream(e);this.body=t,n&&(this[me]=n),r&&!this.headers.has(`Content-Type`)&&this.headers.set(`Content-Type`,r)}}get[Symbol.toStringTag](){return`Response`}async arrayBuffer(){let e=this[b];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,H.invalidStateError);let t=new Y(e).getBrowserFrame();if(!t)return new ArrayBuffer(0);let n=t[fe];this.bodyUsed=!0;let r=this[me];if(!r){let t=n.startTask(()=>{this[Xr]=!0});try{r=await wu.consumeBodyStream(e,this)}catch(e){throw n.endTask(t),e}n.endTask(t)}return this.#e(r),r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}async blob(){let e=this.headers.get(`Content-Type`)||``;return new Ls([await this.arrayBuffer()],{type:e})}async buffer(){let e=this[b];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,H.invalidStateError);let t=new Y(e).getBrowserFrame();if(!t)return i.alloc(0);let n=t[fe];this.bodyUsed=!0;let r=this[me];if(!r){let t=n.startTask(()=>{this[Xr]=!0});try{r=await wu.consumeBodyStream(e,this)}catch(e){throw n.endTask(t),e}n.endTask(t)}return this.#e(r),r}async text(){let e=this[b];if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,H.invalidStateError);let t=new Y(e).getBrowserFrame();if(!t)return``;let n=t[fe];this.bodyUsed=!0;let r=this[me];if(!r){let t=n.startTask(()=>{this[Xr]=!0});try{r=await wu.consumeBodyStream(e,this)}catch(e){throw n.endTask(t),e}n.endTask(t)}return this.#e(r),new TextDecoder().decode(r)}async json(){let e=await this.text();return JSON.parse(e)}async formData(){let e=this[b],t=new Y(e).getBrowserFrame();if(!t)return new e.FormData;let n=t[fe],r=this.headers.get(`Content-Type`);if(r&&this.body&&/multipart/i.test(r)){if(this.bodyUsed)throw new e.DOMException(`Body has already been used for "${this.url}".`,H.invalidStateError);this.bodyUsed=!0;let i=t[fe].startTask(()=>{this[Xr]=!0}),a,o;try{let t=await Su.streamToFormData(e,this,r);a=t.formData,o=t.buffer}catch(e){throw n.endTask(i),e}return this.#e(o),n.endTask(i),a}if(r?.startsWith(`application/x-www-form-urlencoded`)){let t=new ie(await this.text()),n=new e.FormData;for(let[e,r]of t)n.append(e,r);return n}throw new e.DOMException(`Failed to build FormData object: The "content-type" header is neither "application/x-www-form-urlencoded" nor "multipart/form-data".`,H.invalidStateError)}clone(){let e=this[b],t=wu.cloneBodyStream(e,this),n=new e.Response(t,{status:this.status,statusText:this.statusText,headers:this.headers});return n[he]=this[he],n[me]=this[me],n.ok=this.ok,n.redirected=this.redirected,n.type=this.type,n.url=this.url,n}#e(e){this[me]=e,this[he]?.response?.waitingForBody&&(this[he].response.body=e,this[he].response.waitingForBody=!1)}static redirect(e,t=302){let n=this[b];if(!Fu.includes(t))throw new n.DOMException(`Failed to create redirect response: Invalid redirect status code.`,H.invalidStateError);return new n.Response(null,{headers:{location:new pu(e).toString()},status:t})}static error(){let e=new this[b].Response(null,{status:0,statusText:``});return e.type=`error`,e}static json(e,t){let n=this[b],r=JSON.stringify(e);if(r===void 0)throw new n.TypeError(`data is not JSON serializable`);let i=new n.Headers(t&&t.headers);return i.has(`Content-Type`)||i.set(`Content-Type`,`application/json`),new n.Response(r,{status:200,...t,headers:i})}};const Lu=[301,302,303,307,308];var Ru=class{static isRedirect(e){return Lu.includes(e)}static isMaxRedirectsReached(e){return e>=20}},zu=class{static parseResponseHeaders(e){let t=new e.browserFrame.window.Headers,n=null;for(let r of e.rawHeaders)if(!n)n=r;else{let i=n.toLowerCase();if(i===`set-cookie`||i===`set-cookie2`){let t=ju.stringToCookie(e.requestURL,r);t&&e.browserFrame.page.context.cookieContainer.addCookies([t])}else t.append(n,r);n=null}return t}},Bu={cert:`-----BEGIN CERTIFICATE-----
|
|
20
|
+
MIIDYzCCAkugAwIBAgIUJRKB/H66hpet1VfUlm0CiXqePA4wDQYJKoZIhvcNAQEL
|
|
21
|
+
BQAwQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVNYWxt
|
|
22
|
+
bzESMBAGA1UECgwJSGFwcHkgRE9NMB4XDTIyMTAxMTIyMDM0OVoXDTMyMTAwODIy
|
|
23
|
+
MDM0OVowQTELMAkGA1UEBhMCU0UxDjAMBgNVBAgMBVNrYW5lMQ4wDAYDVQQHDAVN
|
|
24
|
+
YWxtbzESMBAGA1UECgwJSGFwcHkgRE9NMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
|
|
25
|
+
MIIBCgKCAQEAqerQSQEg/SxVxRiwlItithr5e5EMZo1nsqt/xOxagbmpW3IEmt0j
|
|
26
|
+
bpbH7iEF4DDEo7KAOwUCOwVWeFxRoag8lG2ax48wrgjlCna45XDn0Xeg1ARajL04
|
|
27
|
+
gs46HZ0VrzIloVGfln0zgt/Vum5BNqs9Oc5fQoBmoP3cAn3dn4ZVcP0AKthtcyPl
|
|
28
|
+
q2DuNRN0PV0D2RtMSiAy9l1Ko6N5x+sAeClDyOL+sTDLngZBVeZyOKt9Id15S8Zt
|
|
29
|
+
XtA6VMgHnnF3jChn7pag77rsd/y5iANAVNZYqRl+Eg7xaDcsvbgH46UBOrBcB39Q
|
|
30
|
+
tTh5Mtjoxep5e3ZDFG+kQ1HUE+iz5O5n0wIDAQABo1MwUTAdBgNVHQ4EFgQU69s9
|
|
31
|
+
YSobG/m2SN4L/7zTaF7iDbwwHwYDVR0jBBgwFoAU69s9YSobG/m2SN4L/7zTaF7i
|
|
32
|
+
DbwwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEAi/WUXx2oal8L
|
|
33
|
+
YnPlIuKfh49n/K18wXSYG//oFYwxfVxqpYH8hUiXVm/GUcXCxS++hUkaKLqXmH9q
|
|
34
|
+
MKJiCrZr3vS+2nsBKopkICu/TLdROl0sAI9lByfnEbfSAzjxe1IWJdK8NdY0y5m5
|
|
35
|
+
9pEr/URVIAp/CxrneyASb4q0Jg5To3FR7vYc+2X6wZn0MundKMg6Dp9/A37jiF3l
|
|
36
|
+
Tt/EJp299YZcsUzh+LnRuggRjnoOVu1aLcLFlaUiwZfy9m8mLG6B/mdW/qNzNMh9
|
|
37
|
+
Oqvg1zfGdpz/4D/2UUUBn6pq1vbsoAaF3OesoA3mfDcegDf/H9woJlpT0Wql+e68
|
|
38
|
+
Y3FblSokcA==
|
|
39
|
+
-----END CERTIFICATE-----`,key:`-----BEGIN PRIVATE KEY-----
|
|
40
|
+
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCp6tBJASD9LFXF
|
|
41
|
+
GLCUi2K2Gvl7kQxmjWeyq3/E7FqBualbcgSa3SNulsfuIQXgMMSjsoA7BQI7BVZ4
|
|
42
|
+
XFGhqDyUbZrHjzCuCOUKdrjlcOfRd6DUBFqMvTiCzjodnRWvMiWhUZ+WfTOC39W6
|
|
43
|
+
bkE2qz05zl9CgGag/dwCfd2fhlVw/QAq2G1zI+WrYO41E3Q9XQPZG0xKIDL2XUqj
|
|
44
|
+
o3nH6wB4KUPI4v6xMMueBkFV5nI4q30h3XlLxm1e0DpUyAeecXeMKGfulqDvuux3
|
|
45
|
+
/LmIA0BU1lipGX4SDvFoNyy9uAfjpQE6sFwHf1C1OHky2OjF6nl7dkMUb6RDUdQT
|
|
46
|
+
6LPk7mfTAgMBAAECggEAKkwTkTjAt4UjzK56tl+EMQTB+ep/hb/JgoaChci4Nva6
|
|
47
|
+
m9LkJpDJ0yuhlTuPNOGu8XjrxsVWas7HWarRf0Zb3i7yip6wZYI9Ub+AA015x4DZ
|
|
48
|
+
/i0fRU2NFbK0cM67qSL4jxG8gj+kZP3HPGNZxHwX/53JxMolwgmvjMc8NgvAlSFd
|
|
49
|
+
NnV9h4xtbhUh1NGS5zmP3iU2rwnE8JrIEzwy6axLom7nekAgkdcbAr0UoBs8gcgH
|
|
50
|
+
aYNhU4Gz3tGcZZ0IXAfT/bJIH1Ko8AGv4pssWc3BXcmmNdm/+kzvHIxEIV7Qegmo
|
|
51
|
+
XG1ZyZCyD/0b4/3e8ySDBEDqwR+HeyTW2isWG2agAQKBgQDp44aTwr3dkIXY30xv
|
|
52
|
+
FPfUOipg/B49dWnffYJ9MWc1FT9ijNPAngWSk0EIiEQIazICcUBI4Yji6/KeyqLJ
|
|
53
|
+
GdLpDi1CkKqtyh73mjELinYp3EUQgEa77aQogGa2+nMOVfu+O5CtloUrv/A18jX3
|
|
54
|
+
+VEyaEASK0fWmnSI0OdlxQHIAQKBgQC5+xOls2F3MlKASvWRLlnW1wHqlDTtVoYg
|
|
55
|
+
5Nh8syZH4Ci2UH8tON3A5/7SWNM0t1cgV6Cw4zW8Z2spgIT/W0iYYrQ4hHL1xdCu
|
|
56
|
+
+CxL1km4Gy8Uwpsd+KdFahFqF/XTmLzW0HXLxWSK0fTwmdV0SFrKF3MXfTCU2AeZ
|
|
57
|
+
jJoMFb6P0wKBgQC3Odw6s0vkYAzLGhuZxfZkVvDOK5RRF0NKpttr0iEFL9EJFkPo
|
|
58
|
+
2KKK8jr3QTDy229BBJGUxsJi6u6VwS8HlehpVQbV59kd7oKV/EBBx0XMg1fDlopT
|
|
59
|
+
PNbmN7i/zbIG4AsoOyebJZjL7kBzMn1e9vzKHWtcEHXlw/hZGja8vjooAQKBgAeg
|
|
60
|
+
xK2HLfg1mCyq5meN/yFQsENu0LzrT5UJzddPgcJw7zqLEqxIKNBAs7Ls8by3yFsL
|
|
61
|
+
PQwERa/0jfCl1M6kb9XQNpQa2pw6ANUsWKTDpUJn2wZ+9N3F1RaDwzMWyH5lRVmK
|
|
62
|
+
M0qoTfdjpSg5Jwgd75taWt4bxGJWeflSSv8z5R0BAoGAWL8c527AbeBvx2tOYKkD
|
|
63
|
+
2TFranvANNcoMrbeviZSkkGvMNDP3p8b6juJwXOIeWNr8q4vFgCzLmq6d1/9gYm2
|
|
64
|
+
3XJwwyD0LKlqzkBrrKU47qrnmMosUrIRlrAzd3HbShOptxc6Iz2apSaUDKGKXkaw
|
|
65
|
+
gl5OpEjeliU7Mus0BVS858g=
|
|
66
|
+
-----END PRIVATE KEY-----`};const Vu=`<html><head><title>Happy DOM Virtual Server - 404 Not Found</title></head><body><h1>Happy DOM Virtual Server - 404 Not Found</h1></body></html>`;var Hu=class{static getFilepath(e,t){let n=new Y(e).getSettings();if(!n||!n.fetch.virtualServers&&!n.module.resolveNodeModules)return null;if(n.fetch.virtualServers)for(let r of n.fetch.virtualServers){let n=null;if(typeof r.url==`string`){let i=new URL(r.url[r.url.length-1]===`/`?r.url.slice(0,-1):r.url,e.location.origin===`null`?void 0:e.location.origin);t.startsWith(i.href)&&(n=i)}else if(r.url instanceof RegExp){let i=t.match(r.url);i&&(n=new URL(i[0][i[0].length-1]===`/`?i[0].slice(0,-1):i[0],e.location.origin))}if(n){let e=t.slice(n.href.length).split(`?`)[0].split(`#`)[0];return p.join(p.resolve(r.directory),e.replaceAll(`/`,p.sep))}}if(n.module.resolveNodeModules){let r=n.module.resolveNodeModules.url,i=new URL(r[r.length-1]===`/`?r.slice(0,-1):r,e.location.origin);if(t.startsWith(i.href)){let e=t.slice(i.href.length).split(`?`)[0].split(`#`)[0];return p.join(p.resolve(n.module.resolveNodeModules.directory),e.replaceAll(`/`,p.sep))}}return null}static getNotFoundResponse(e){return new e.Response(Vu,{status:404,statusText:`Not Found`,headers:{"Content-Type":`text/html`}})}static getNotFoundSyncResponse(e,t){return{status:404,statusText:`Not Found`,ok:!1,url:t,redirected:!1,headers:new e.Headers({"Content-Type":`text/html`}),body:Buffer.from(Vu),[$o]:null}}},Uu=class{static getKey(e){return JSON.stringify({url:e.url,destination:e.destination,mode:e.mode,credentialsMode:e.credentialsMode})}};const Wu=i.from(`0\r
|
|
67
|
+
\r
|
|
68
|
+
`);var Gu=class e{reject=null;resolve=null;listeners={onSignalAbort:this.onSignalAbort.bind(this)};isChunkedTransfer=!1;isProperLastChunkReceived=!1;previousChunk=null;nodeRequest=null;nodeResponse=null;response=null;responseHeaders=null;interceptor;requestHeaders;request;redirectCount=0;disableCache;disableSameOriginPolicy;disablePreload;#e;#t;#n=null;constructor(e){this.#e=e.browserFrame,this.#t=e.window,this.#n=e.unfilteredHeaders??null,this.request=typeof e.url==`string`||e.url instanceof re?new e.window.Request(e.url,e.init):e.url,e.contentType&&(this.request[Ee]=e.contentType),this.redirectCount=e.redirectCount??0,this.disableCache=e.disableCache??!1,this.disableSameOriginPolicy=e.disableSameOriginPolicy??this.#e.page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=this.#e.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#e.page.context.browser.settings.fetch.requestHeaders,this.disablePreload=e.disablePreload??!1}async send(){if(!(this.request instanceof Pu)||!(this.request[gt]instanceof re))throw new this.#t.DOMException(`Unknown request object. Request object must be an instance of Request.`,H.invalidStateError);if(gu.prepareRequest(new re(this.#t.location.href),this.request),this.requestHeaders){for(let e of this.requestHeaders)if(!e.url||(typeof e.url==`string`?e.url.startsWith(this.request.url):this.request.url.match(e.url)))for(let[t,n]of Object.entries(e.headers))this.request.headers.set(t,n)}if(this.interceptor?.beforeAsyncRequest){let e=this.#e[fe].startTask(),t=await this.interceptor.beforeAsyncRequest({request:this.request,window:this.#t});if(this.#e[fe].endTask(e),t instanceof Iu)return t}if(Au.validateSchema(this.request),this.request.signal[Xr])throw this.request.signal[Vo]===void 0?new this.#t.DOMException(`signal is aborted without reason`,H.abortError):this.request.signal[Vo];if(this.request[gt].protocol===`data:`){let e=_u.parse(this.request.url);this.response=new this.#t.Response(e.buffer,{headers:{"Content-Type":e.type}});let t=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#t,response:this.response,request:this.request}):void 0;return t instanceof Iu?t:this.response}if(this.request[gt].protocol===`http:`&&this.#t.location.protocol===`https:`)throw new this.#t.DOMException(`Mixed Content: The page at '${this.#t.location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,H.securityError);if(!this.disableCache){let e=await this.getCachedResponse();if(e)return e}if(!this.disablePreload){let e=Uu.getKey({url:this.request.url,destination:`fetch`,mode:this.request.mode,credentialsMode:this.request.credentials}),t=this.#t.document[Ao].get(e);if(t){if(this.#t.document[Ao].delete(e),t.response)return t.response;let n=this.#e[fe].startTask(),r=await t.onResponseAvailable();return this.#e[fe].endTask(n),r}}let e=await this.getVirtualServerResponse();if(e)return e;if(!this.disableSameOriginPolicy&&!await this.compliesWithCrossOriginPolicy())throw this.#e.page.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new this.#t.DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,H.networkError);return await this.sendRequest()}async getCachedResponse(){if(this.disableCache)return null;let t=this.#e.page.context.responseCache.get(this.request);if(!t||t.response.waitingForBody)return null;if(t.state===ms.stale){let n=new this.#t.Headers(t.request.headers);if(t.etag)n.set(`If-None-Match`,t.etag);else{if(!t.lastModified)return null;n.set(`If-Modified-Since`,new Date(t.lastModified).toUTCString())}let r=new e({browserFrame:this.#e,window:this.#t,url:this.request.url,init:{headers:n,method:t.request.method},disableCache:!0,disableSameOriginPolicy:!0});if(t.etag||!t.staleWhileRevalidate){let e=await r.send(),n=e.status===304?null:await e.buffer();if(t=this.#e.page.context.responseCache.add(this.request,{...e,body:n,waitingForBody:!1}),e.status!==304){let r=new this.#t.Response(n,{status:e.status,statusText:e.statusText,headers:e.headers});return r.url=e.url,r[he]=t,r}}else r.send().then(e=>{e.buffer().then(t=>{this.#e.page.context.responseCache.add(this.request,{...e,body:t,waitingForBody:!1})})})}if(!t||t.response.waitingForBody)return null;let n=new this.#t.Response(t.response.body,{status:t.response.status,statusText:t.response.statusText,headers:t.response.headers});return n.url=t.response.url,n[he]=t,n}async getVirtualServerResponse(){let e=Hu.getFilepath(this.#t,this.request.url);if(!e)return null;let t=this.#e[fe].startTask();if(this.request.method!==`GET`){this.#e.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let e=Hu.getNotFoundResponse(this.#t),n=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#t,response:await e,request:this.request}):void 0;return this.#e[fe].endTask(t),n instanceof Iu?n:e}let n;try{e=(await a.promises.stat(e)).isDirectory()?p.join(e,`index.html`):e,n=await a.promises.readFile(e)}catch{this.#e.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let e=Hu.getNotFoundResponse(this.#t),n=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#t,response:await e,request:this.request}):void 0;return this.#e[fe].endTask(t),n instanceof Iu?n:e}let r=new this.#t.ReadableStream({start:e=>{this.#t.queueMicrotask(()=>{e.enqueue(n),e.close()})}}),i=new this.#t.Response(r);i[me]=n,i[$o]=e,i.url=this.request.url;let o=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#t,response:await i,request:this.request}):void 0;this.#e[fe].endTask(t);let s=o instanceof Iu?o:i,c={...s,body:n,waitingForBody:!1,virtual:!0};return i[he]=this.#e.page.context.responseCache.add(this.request,c),s}async compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!vu.isCORS(this.#t.location.href,this.request[gt]))return!0;let t=this.#e.page.context.preflightResponseCache.get(this.request);if(t)return!(t.allowOrigin!==`*`&&t.allowOrigin!==this.#t.location.origin||t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method));let n=[];for(let[e]of this.request.headers)n.push(e.toLowerCase());let r=new this.#t.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#t.location.origin});n.length>0&&r.set(`Access-Control-Request-Headers`,n.slice().sort().join(`,`));let i=await new e({browserFrame:this.#e,window:this.#t,url:this.request.url,init:{method:`OPTIONS`},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:r}).send();if(!i.ok)return!1;let a=i.headers.get(`Access-Control-Allow-Origin`);if(!a||a!==`*`&&a!==this.#t.location.origin)return!1;let o=[];if(i.headers.has(`Access-Control-Allow-Methods`)){let e=i.headers.get(`Access-Control-Allow-Methods`);if(e!==`*`)for(let t of e.split(`,`))o.push(t.trim().toUpperCase())}return!(o.length!==0&&!o.includes(this.request.method))}sendRequest(){return new Promise((e,t)=>{let n=this.#e[fe].startTask(()=>this.onAsyncTaskManagerAbort());if(this.resolve)throw new this.#t.Error(`Fetch already sent.`);this.resolve=async t=>{!this.disableCache&&t instanceof Iu&&this.#e.page&&this.#e.page.context&&(t[he]=this.#e.page.context.responseCache.add(this.request,{...t,headers:this.responseHeaders,body:t[me],waitingForBody:!t[me]&&!!t.body}));let r=this.interceptor?.afterAsyncResponse?await this.interceptor.afterAsyncResponse({window:this.#t,response:await t,request:this.request}):void 0;this.#e[fe].endTask(n);let i=r instanceof Iu?r:t;i instanceof Iu&&!i.ok&&this.#e.page.console.error(`${this.request.method} ${this.request.url} ${i.status} (${i.statusText})`),e(i)},this.reject=e=>{this.#e[fe].endTask(n),t(e)},this.request.signal.addEventListener(`abort`,this.listeners.onSignalAbort);let r=(this.request[gt].protocol===`https:`?te:ee).request;this.nodeRequest=r(this.request[gt].href,{method:this.request.method,headers:Nu.getRequestHeaders({browserFrame:this.#e,window:this.#t,request:this.request,baseHeaders:this.#n}),agent:!1,rejectUnauthorized:!this.#e.page.context.browser.settings.fetch.disableStrictSSL,key:this.request[gt].protocol===`https:`?Bu.key:void 0,cert:this.request[gt].protocol===`https:`?Bu.cert:void 0}),this.nodeRequest.on(`error`,this.onError.bind(this)),this.nodeRequest.on(`socket`,this.onSocket.bind(this)),this.nodeRequest.on(`response`,this.onResponse.bind(this)),this.request.body===null?this.nodeRequest.end():f.pipeline(this.request.body,this.nodeRequest,e=>{e&&this.onError(e)})})}onSocket(e){let t=()=>{if(this.isChunkedTransfer&&!this.isProperLastChunkReceived){let e=new this.#t.DOMException(`Premature close.`,H.networkError);this.request[fn]=e,this.response&&(this.response[fn]=e,this.response.body&&!this.response.body.locked&&this.response.body.cancel(e))}},n=e=>{this.isProperLastChunkReceived=i.compare(e.slice(-5),Wu)===0,!this.isProperLastChunkReceived&&this.previousChunk&&(this.isProperLastChunkReceived=i.compare(this.previousChunk.slice(-3),Wu.slice(0,3))===0&&i.compare(e.slice(-2),Wu.slice(3))===0),this.previousChunk=e};e.prependListener(`close`,t),e.on(`data`,n),this.nodeRequest.on(`close`,()=>{e.removeListener(`close`,t),e.removeListener(`data`,n)})}onSignalAbort(e){this.finalizeRequest(),this.abort(e.target?.reason)}onError(e){this.finalizeRequest(),this.#e.page.console.error(e),this.reject(new this.#t.DOMException(`Failed to execute "fetch()" on "Window" with URL "${this.request.url}": ${e.message}`,H.networkError))}onAsyncTaskManagerAbort(){let e=new this.#t.DOMException(`The operation was aborted.`,H.abortError);this.request[Xr]=!0,this.request[fn]=e,this.response&&(this.response[Xr]=!0,this.response[fn]=e),this.listeners.onSignalAbort&&this.request.signal.removeEventListener(`abort`,this.listeners.onSignalAbort),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(e),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(e),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(e))}onResponse(e){if(this.isChunkedTransfer=e.headers[`transfer-encoding`]===`chunked`&&!e.headers[`content-length`],this.nodeRequest.setTimeout(0),this.responseHeaders=zu.parseResponseHeaders({browserFrame:this.#e,requestURL:this.request[gt],rawHeaders:e.rawHeaders}),this.handleRedirectResponse(e,this.responseHeaders))return;e.once(`end`,()=>this.request.signal.removeEventListener(`abort`,this.listeners.onSignalAbort));let t=f.pipeline(e,new f.PassThrough,e=>{}),n={status:e.statusCode,statusText:e.statusMessage,headers:this.responseHeaders},r=this.responseHeaders.get(`Content-Encoding`);if(this.request.method===`HEAD`||r===null||e.statusCode===204||e.statusCode===304){this.response=new this.#t.Response(wu.nodeToWebStream(t),n),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(r===`gzip`||r===`x-gzip`){let e={flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH};t=f.pipeline(t,d.createGunzip(e),e=>{}),this.response=new this.#t.Response(wu.nodeToWebStream(t),n),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}if(r===`deflate`||r===`x-deflate`){let r=f.pipeline(e,new f.PassThrough,e=>{});r.on(`data`,e=>{t=(e[0]&15)==8?f.pipeline(t,d.createInflate(),e=>{}):f.pipeline(t,d.createInflateRaw(),e=>{}),this.response=new this.#t.Response(wu.nodeToWebStream(t),n),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}),r.on(`end`,()=>{this.response||(this.response=new this.#t.Response(wu.nodeToWebStream(t),n),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response))});return}if(r===`br`){t=f.pipeline(t,d.createBrotliDecompress(),e=>{}),this.response=new this.#t.Response(wu.nodeToWebStream(t),n),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response);return}this.response=new this.#t.Response(wu.nodeToWebStream(t),n),this.response.redirected=this.redirectCount>0,this.response.url=this.request.url,this.resolve(this.response)}handleRedirectResponse(t,n){if(!Ru.isRedirect(t.statusCode))return!1;switch(this.request.redirect){case`error`:return this.finalizeRequest(),this.reject(new this.#t.DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,H.abortError)),!0;case`manual`:return!1;case`follow`:let r=n.get(`Location`),i=t.statusCode===303||(t.statusCode===301||t.statusCode===302)&&this.request.method===`POST`,a=null;if(r!==null)try{a=new re(r,this.request.url)}catch{return this.finalizeRequest(),this.reject(new this.#t.DOMException(`URI requested responds with an invalid redirect URL: ${r}`,H.uriMismatchError)),!0}if(a===null)return!1;if(Ru.isMaxRedirectsReached(this.redirectCount))return this.finalizeRequest(),this.reject(new this.#t.DOMException(`Maximum redirects reached at: ${this.request.url}`,H.networkError)),!0;let o=new this.#t.Headers(this.request.headers),s={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:o,body:this.request[pe]};if((this.request.credentials===`omit`||this.request.credentials===`same-origin`&&vu.isCORS(this.#t.location.href,a))&&(o.delete(`cookie`),o.delete(`cookie2`)),this.request.signal[Xr])return this.abort(this.request.signal[Vo]),!0;i&&(s.method=`GET`,s.body=void 0,o.delete(`Content-Length`),o.delete(`Content-Type`));let c=gu.getReferrerPolicyFromHeader(o);c&&(s.referrerPolicy=c);let l=new e({browserFrame:this.#e,window:this.#t,url:a,init:s,redirectCount:this.redirectCount+1,disableSameOriginPolicy:this.disableSameOriginPolicy,contentType:i?null:this.request[Ee]});return this.finalizeRequest(),l.send().then(e=>this.resolve(e)).catch(e=>this.reject(e)),!0;default:return this.finalizeRequest(),this.reject(new this.#t.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)),!0}}finalizeRequest(){this.request.signal.removeEventListener(`abort`,this.listeners.onSignalAbort),this.nodeRequest?.destroy()}abort(e){let t=new this.#t.DOMException(`The operation was aborted.`+(e?` `+e.toString():``),H.abortError);this.request[Xr]=!0,this.request[fn]=t,this.response&&(this.response[Xr]=!0,this.response[fn]=t),this.nodeRequest&&!this.nodeRequest.destroyed&&this.nodeRequest.destroy(t),this.nodeResponse&&!this.nodeResponse.destroyed&&this.nodeResponse.destroy(t),this.response&&this.response.body&&(this.response.body.locked||this.response.body.cancel(t)),this.reject&&this.reject(e===void 0?t:e)}},Ku;(function(e){e.auto=`auto`,e.manual=`manual`})(Ku||={});var qu=Ku,Ju=class{static getRelativeURL(e,t){if(t=t?String(t):`about:blank`,t.startsWith(`about:`)||t.startsWith(`javascript:`))return new re(t);try{return new re(t,e.window[En].href)}catch{return new re(`about:blank`)}}},Yu=class{#e;#t;constructor(e,t){if(!e)throw TypeError(`Illegal constructor`);this.#e=e,this.#t=t}get length(){return this.#e?.[Dn].items.length||0}get state(){return this.#e?.[Dn].currentItem.state||null}get scrollRestoration(){return this.#e?.[Dn].currentItem.scrollRestoration||qu.auto}set scrollRestoration(e){switch(e){case qu.auto:case qu.manual:let t=this.#e?.[Dn].currentItem;t&&(t.scrollRestoration=e);break}}back(){this.#t.closed||this.#e?.goBack()}forward(){this.#t.closed||this.#e?.goForward()}go(e){this.#t.closed||this.#e?.goSteps(e)}pushState(e,t,n){if(!this.#e||this.#t.closed)return;let r=this.#e?.[Dn];if(!r)return;if(arguments.length<2)throw new this.#t.TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=this.#t[En],a=n?Ju.getRelativeURL(this.#e,n):i;if(n&&a.origin!==i.origin)throw new this.#t.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${n.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,H.securityError);r.currentItem.popState=!0,r.push({title:this.#t.document.title,href:a.href,state:e,popState:!0,scrollRestoration:r.currentItem.scrollRestoration,method:r.currentItem.method||`GET`,formData:r.currentItem.formData||null}),i[Cn](this.#e,r.currentItem.href)}replaceState(e,t,n){if(!this.#e||this.#t.closed)return;let r=this.#e?.[Dn];if(!r)return;if(arguments.length<2)throw new this.#t.TypeError(`Failed to execute 'pushState' on 'History': 2 arguments required, but only ${arguments.length} present.`);let i=this.#t[En],a=n?Ju.getRelativeURL(this.#e,n):i;if(n&&a.origin!==i.origin)throw new this.#t.DOMException(`Failed to execute 'pushState' on 'History': A history state object with URL '${n.toString()}' cannot be created in a document with origin '${i.origin}' and URL '${i.href}'.`,H.securityError);r.replace({title:this.#t.document.title,href:a.href,state:e,popState:r.currentItem.popState,scrollRestoration:r.currentItem.scrollRestoration,method:r.currentItem.method,formData:r.currentItem.formData}),n&&i[Cn](this.#e,r.currentItem.href)}[Me](){this.#e=null}},Xu=class{#e;#t;constructor(e,t){this.#e=e,this.#t=t||{}}observe(e){}disconnect(){}unobserve(e){}takeRecords(){return[]}},Zu=class{boundingClientRect=null;intersectionRatio=0;intersectionRect=null;isIntersecting=!1;rootBounds=null;target=null;time=0;constructor(e){Object.assign(this,e)}},Qu=class{[Symbol.toStringTag]=`Location`;#e;#t;#n=null;#r=[];constructor(e,t){if(!e)throw TypeError(`Illegal constructor`);this.#e=e,this.#t=new URL(t)}get hash(){return this.#t.hash}set hash(e){let t=this.#e?.[Dn];if(!t||!this.#e)return;let n=new URL(this.#t.href),r=this.#t.hash;n.hash=e,n.hash!==r&&(t.currentItem.popState=!0,t.push({title:``,href:n.href,state:t.currentItem.state,popState:!0,scrollRestoration:qu.manual,method:t.currentItem.method,formData:t.currentItem.formData||null}),this[Cn](this.#e,n.href))}get host(){return this.#t.host}set host(e){let t=new URL(this.#t.href);t.host=e,this.href=t.href}get hostname(){return this.#t.hostname}set hostname(e){let t=new URL(this.#t.href);t.hostname=e,this.href=t.href}get href(){return this.#t.href}set href(e){this.#e&&this.#e.goto(e).catch(e=>{if(this.#e?.page?.console)this.#e.page.console.error(e);else throw e})}get origin(){return this.#t.origin}get pathname(){return this.#t.pathname}set pathname(e){let t=new URL(this.#t.href);t.pathname=e,this.href=t.href}get port(){return this.#t.port}set port(e){let t=new URL(this.#t.href);t.port=e,this.href=t.href}get protocol(){return this.#t.protocol}set protocol(e){let t=new URL(this.#t.href);t.protocol=e,this.href=t.href}get search(){return this.#t.search}set search(e){let t=new URL(this.#t.href);t.search=e,this.href=t.href}replace(e){this.href=String(e)}assign(e){this.href=String(e)}reload(){this.#e&&this.#e.goto(this.href).catch(e=>{if(this.#e?.page.console)this.#e.page.console.error(e);else throw e})}[Cn](e,t){if(!this.#e)return;if(this.#e!==e)throw Error(`Failed to set URL. Browser frame mismatch.`);let n=this.#t.href,r=this.#t.hash;if(this.#t.href=t,this.#t.hash!==r){let e=this.#t.href;this.#r.push(new nu(`hashchange`,{oldURL:n,newURL:e})),this.#e?.window?.document?.[Kn](),this.#n&&this.#e.window?.clearTimeout(this.#n),this.#n=this.#e.window?.setTimeout(()=>{let e=this.#r;this.#r=[];for(let t of e)this.#e?.window?.dispatchEvent(t)})}}[Me](){this.#n&&this.#e?.window?.clearTimeout(this.#n),this.#e=null}toString(){return this.#t.toString()}},$u=class{type;target;addedNodes;removedNodes;previousSibling;nextSibling;attributeName;attributeNamespace;oldValue;constructor(e){this.type=e.type,this.target=e.target,this.addedNodes=e.addedNodes||[],this.removedNodes=e.removedNodes||[],this.previousSibling=e.previousSibling||null,this.nextSibling=e.nextSibling||null,this.attributeName=e.attributeName||null,this.attributeNamespace=e.attributeNamespace||null,this.oldValue=e.oldValue||null}},ed=class{description;enabledPlugin;suffixes;type;constructor(e,t,n,r){this.description=e,this.enabledPlugin=t,this.suffixes=n,this.type=r}toString(){return`[object MimeType]`}},td=class{length;constructor(e){for(let t=0,n=e.length;t<n;t++)this[t]=e[t],this[e[t].type]=e[t];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}toString(){return`[object MimeTypeArray]`}},nd=class{length;constructor(e){for(let t=0,n=e.length;t<n;t++)this[t]=e[t],this[e[t].name]=e[t];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}refresh(){}toString(){return`[object PluginArray]`}},rd;(function(e){e.geolocation=`geolocation`,e.notifications=`notifications`,e.push=`push`,e.midi=`midi`,e.camera=`camera`,e.microphone=`microphone`,e.backgroundFetch=`background-fetch`,e.backgroundSync=`background-sync`,e.persistentStorage=`persistent-storage`,e.ambientLightSensor=`ambient-light-sensor`,e.accelerometer=`accelerometer`,e.gyroscope=`gyroscope`,e.magnetometer=`magnetometer`,e.screenWakeLock=`screen-wake-lock`,e.nfc=`nfc`,e.displayCapture=`display-capture`,e.accessibilityEvents=`accessibility-events`,e.clipboardRead=`clipboard-read`,e.clipboardWrite=`clipboard-write`,e.paymentHandler=`payment-handler`,e.idleDetection=`idle-detection`,e.periodicBackgroundSync=`periodic-background-sync`,e.systemWakeLock=`system-wake-lock`,e.storageAccess=`storage-access`,e.windowManagement=`window-management`,e.windowPlacement=`window-placement`,e.localFonts=`local-fonts`,e.topLevelStorageAccess=`top-level-storage-access`})(rd||={});var id=rd,ad=class{#e={};#t;constructor(e){e?.document,this.#t=e}async query(e){let t=e?.name;if(t&&this.#e[t])return this.#e[t];if(!Object.values(id).includes(t))throw Error(`Failed to execute 'query' on 'Permissions': Failed to read the 'name' property from 'PermissionDescriptor': The provided value '${t}' is not a valid enum value of type PermissionName.`);return this.#e[t]=new this.#t.PermissionStatus(`granted`),this.#e[t]}},od=class{#e;#t;#n;constructor(e){if(!e)throw TypeError(`Invalid constructor`);this.#e=e,this.#t=new Rs(e),this.#n=new ad(e)}get cookieEnabled(){return!0}get credentials(){return null}get geolocation(){return null}get language(){return`en-US`}get languages(){return[`en-US`,`en`]}get locks(){return null}get maxTouchPoints(){return new Y(this.#e).getSettings()?.navigator.maxTouchPoints||0}get hardwareConcurrency(){return 8}get appCodeName(){return`Mozilla`}get appName(){return`Netscape`}get appVersion(){let e=this.userAgent,t=e.indexOf(`/`);return t>-1?e.substring(t+1):``}get platform(){let e=this.userAgent,t=e.indexOf(`(`),n=e.indexOf(`)`);return t>-1&&n>-1?e.substring(t+1,n):``}get product(){return`Gecko`}get productSub(){return`20100101`}get vendor(){return``}get vendorSub(){return``}get userAgent(){return new Y(this.#e).getSettings()?.navigator.userAgent||``}get onLine(){return!0}get permissions(){return this.#n}get clipboard(){return this.#t}get webdriver(){return!0}get doNotTrack(){return`unspecified`}get mimeTypes(){return new td([])}get plugins(){return new nd([])}sendBeacon(e,t){return this.#e.fetch(e,{method:`POST`,body:t}),!0}toString(){return`[object Navigator]`}},sd=class{length=0;description;filename;name;constructor(e,t,n,r){this.description=t,this.filename=n,this.name=r;for(let t=0,n=e.length;t<n;t++)this[t]=e[t],this[e[t].type]=e[t];this.length=e.length}item(e){return this[e]||null}namedItem(e){return this[e]||null}toString(){return`[object Plugin]`}},cd;(function(e){e[e.disconnect=1]=`disconnect`,e[e.preceding=2]=`preceding`,e[e.following=4]=`following`,e[e.contains=8]=`contains`,e[e.containedBy=16]=`containedBy`,e[e.implementationSpecific=32]=`implementationSpecific`})(cd||={});var ld=cd,ud=class e{static isTextNode(e){return e?.[C]===U.textNode}static isInclusiveAncestor(e,t,n=!1){if(e===null||t===null)return!1;if(e===t)return!0;if(!e[j].length||n&&t[x]!==e[x])return!1;if(n&&e===t[g]&&t[x])return!0;let r=t[S];for(;r;){if(e===r)return!0;if(e[S]===r[S])return!1;r=r[S]?r[S]:n&&r.host?r.host:null}return!1}static isFollowing(e,t){if(e===t)return!1;let n=t;for(;n;)if(n=this.following(n),n===e)return!0;return!1}static getNodeLength(e){switch(e[C]){case U.documentTypeNode:return 0;case U.textNode:case U.processingInstructionNode:case U.commentNode:return e.data.length;default:return e[j].length}}static following(e,t){let n=e.firstChild;if(n)return n;let r=e;for(;r;){if(r===t)return null;let e=r.nextSibling;if(e)return e;r=r[S]}return null}static nextDescendantNode(e){for(;e&&!e.nextSibling;)e=e[S];return e?e.nextSibling:null}static attributeListsEqual(e,t){let n=Array.from(e[Ot][A].values()),r=Array.from(t[Ot][A].values());for(let e of n){let t=!1;for(let n of r)if(e[T]===n[T]&&e.localName===n.localName&&e[v]===n[v]){t=!0;break}if(!t)return!1}return!0}static isEqualNode(t,n){if(t[C]!==n[C])return!1;switch(t[C]){case U.documentTypeNode:let e=t,r=n;if(e.name!==r.name||e.publicId!==r.publicId||e.systemId!==r.systemId)return!1;break;case U.elementNode:let i=t,a=n;if(i[T]!==a[T]||i[Ct]!==a[Ct]||i[k]!==a[k]||i[Ot][A].size!==a[Ot][A].size)return!1;break;case U.attributeNode:let o=t,s=n;if(o[T]!==s[T]||o.localName!==s.localName||o[v]!==s[v])return!1;break;case U.processingInstructionNode:let c=t,l=n;if(c.target!==l.target||c.data!==l.data)return!1;break;case U.textNode:case U.commentNode:let u=t,d=n;if(u.data!==d.data)return!1;break}if(t[C]===U.elementNode&&!e.attributeListsEqual(t,n)||t[j].length!==n[j].length)return!1;for(let r=0;r<t[j].length;r++){let i=t[j][r],a=n[j][r];if(!e.isEqualNode(i,a))return!1}return!0}},dd;(function(e){e.attributes=`attributes`,e.characterData=`characterData`,e.childList=`childList`})(dd||={});var fd=dd,pd=class{static ownerDocuments=[];static createNode(e,t,...n){return t.prototype[b]||this.ownerDocuments.push(e),new t(...n)}static pullOwnerDocument(){return this.ownerDocuments.pop()||null}},md=class e extends tl{static ELEMENT_NODE=U.elementNode;static ATTRIBUTE_NODE=U.attributeNode;static TEXT_NODE=U.textNode;static CDATA_SECTION_NODE=U.cdataSectionNode;static COMMENT_NODE=U.commentNode;static DOCUMENT_NODE=U.documentNode;static DOCUMENT_TYPE_NODE=U.documentTypeNode;static DOCUMENT_FRAGMENT_NODE=U.documentFragmentNode;static PROCESSING_INSTRUCTION_NODE=U.processingInstructionNode;static DOCUMENT_POSITION_CONTAINED_BY=ld.containedBy;static DOCUMENT_POSITION_CONTAINS=ld.contains;static DOCUMENT_POSITION_DISCONNECTED=ld.disconnect;static DOCUMENT_POSITION_FOLLOWING=ld.following;static DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=ld.implementationSpecific;static DOCUMENT_POSITION_PRECEDING=ld.preceding;[x]=!1;[S]=null;[it]=null;[Wn]=null;[ft]=null;[Le]=null;[at]=null;[Xe]=[];[j]=[];[Yn]=[];[ve]=null;[xr]=null;[M]={querySelector:new Map,querySelectorAll:new Map,matches:new Map,elementsByTagName:new Map,elementsByTagNameNS:new Map,elementByTagName:new Map,elementById:new Map,computedStyle:null};[Xn]=[];constructor(){if(super(),this[b])this[g]=this[b].document;else{let e=pd.pullOwnerDocument();if(!e)throw TypeError(`Illegal constructor`);this[g]=e,this[b]=e[b]}}get[Symbol.toStringTag](){return this.constructor.name}get isConnected(){return this[x]}get ownerDocument(){return this[g]}get parentNode(){return this[S]}get nodeType(){return this[C]}get childNodes(){return this[ve]||(this[ve]=new Bc(N,this[j])),this[ve]}get textContent(){return``}set textContent(e){}get nodeValue(){return null}set nodeValue(e){}get nodeName(){return``}get previousSibling(){if(this[S]){let e=this[S][j],t=e.indexOf(this[ar]||this);if(t>0)return e[t-1]}return null}get nextSibling(){if(this[S]){let e=this[S][j],t=e.indexOf(this[ar]||this);if(t>-1&&t+1<e.length)return e[t+1]}return null}get firstChild(){let e=this[j];return e.length>0?e[0]:null}get lastChild(){let e=this[j];return e.length>0?e[e.length-1]:null}get parentElement(){let e=this[S];for(;e&&e[C]!==U.elementNode;)e=e[S];return e}get baseURI(){let e=this[g].querySelector(`base`);return e?e.href:this[b].location.href}hasChildNodes(){return this[j].length>0}contains(e){if(e===void 0)return!1;let t=this[ar]||this;return ud.isInclusiveAncestor(t,e)}getRootNode(e){if(this[x])return this[it]&&!e?.composed?this[it]:this[g];let t=this;for(;t[S];)t=t[S];return t}cloneNode(e=!1){return this[Nn](e)}appendChild(e){if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'appendChild' on 'Node': 1 argument required, but only 0 present`);return this[Pn](e)}removeChild(e){if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'removeChild' on 'Node': 1 argument required, but only 0 present`);return this[Fn](e)}insertBefore(e,t){if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'insertBefore' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[In](e,t)}replaceChild(e,t){if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'replaceChild' on 'Node': 2 arguments required, but only ${arguments.length} present.`);return this[Ln](e,t)}[Nn](e=!1){let t=pd.createNode(this[g],this.constructor);if(t[j].length){let e=t[j];for(;e.length;)t.removeChild(e[0])}if(e)for(let e of this[j]){let n=e.cloneNode(!0);n[S]=t,t[j].push(n),n[C]===U.elementNode&&t[Yn].push(n)}return t}[Pn](e,t=!1){e[ar]&&(e=e[ar]);let n=this[ar]||this;if(!t){if(e===n)throw new this[b].DOMException(`Failed to execute 'appendChild' on 'Node': Not possible to append a node as a child of itself.`);if(ud.isInclusiveAncestor(e,n,!0))throw new this[b].DOMException(`Failed to execute 'appendChild' on 'Node': The new node is a parent of the node to insert to.`,H.domException)}if(e[C]===U.documentFragmentNode){let t=e[j];for(;t.length;)this.appendChild(t[0]);return e}e[S]&&e[S][Fn](e),e[S]=n,e[Kn](),this[j].push(e),e[C]===U.elementNode&&this[Yn].push(e),e[xe]();for(let t of this[Xe])t.options?.subtree&&t.callback.deref()&&e[Ye](t);return this[mt](new $u({target:n,type:fd.childList,addedNodes:[e]})),e}[Fn](e){e[ar]&&(e=e[ar]);let t=this[j].indexOf(e);if(t===-1)throw new this[b].DOMException(`Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.`);let n=e.previousSibling,r=e.nextSibling;if(e[S]=null,e[Kn](),this[j].splice(t,1),e[C]===U.elementNode){let t=this[Yn].indexOf(e);t!==-1&&this[Yn].splice(t,1)}if(e[xr]){let t=e[xr][br].indexOf(e);t!==-1&&e[xr][br].splice(t,1),e[xr]=null}e[Se]();for(let t of this[Xe])t.options?.subtree&&t.callback.deref()&&e[pt](t);return this[mt](new $u({target:this[ar]||this,type:fd.childList,removedNodes:[e],previousSibling:n,nextSibling:r})),e}[In](e,t,n=!1){if(e[ar]&&(e=e[ar]),t&&t[ar]&&(t=t[ar]),e===t)return e;let r=this[ar]||this;if(!n){if(e===r)throw new this[b].DOMException(`Failed to execute 'insertBefore' on 'Node': Not possible to insert a node as a child of itself.`);if(ud.isInclusiveAncestor(e,r,!0))throw new this[b].DOMException(`Failed to execute 'insertBefore' on 'Node': The new node is a parent of the node to insert to.`,H.domException)}if(e[C]===U.documentFragmentNode){let n=e[j];for(;n.length>0;)this[In](n[0],t,!0);return e}if(!t)return this[Pn](e,!0),e;let i=this[j];if(!i.includes(t))throw new this[b].DOMException(`Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.`);e[S]&&e[S][Fn](e),e[S]=r,e[Kn]();let a=i.indexOf(t);if(e[C]===U.elementNode){let n=this[Yn];if(t[C]===U.elementNode)n.splice(n.indexOf(t),0,e);else{let t=!1;for(let r=a,o=i.length;r<o;r++)if(i[r][C]===U.elementNode){n.splice(n.indexOf(i[r]),0,e),t=!0;break}t||n.push(e)}}i.splice(a,0,e),e[xe]();for(let t of this[Xe])t.options?.subtree&&t.callback.deref()&&e[Ye](t);return this[mt](new $u({target:r,type:fd.childList,addedNodes:[e]})),e}[Ln](e,t){return this.insertBefore(e,t),this.removeChild(t),t}isEqualNode(e){return ud.isEqualNode(this,e)}toString(){return`[object ${this.constructor.name}]`}[Ye](e){if(this[Xe].push(e),e.options.subtree)for(let t of this[j])t[Ye](e)}[pt](e){let t=this[Xe].indexOf(e);if(t!==-1&&this[Xe].splice(t,1),e.options.subtree)for(let t of this[j])t[pt](e)}[mt](e){this[Kn]();let t=this[Xe];if(t.length)for(let n=0,r=t.length;n<r;n++){let i=t[n],a=i.callback.deref();if(a)switch(e.type){case fd.childList:i.options.childList&&a(e);break;case fd.attributes:i.options.attributes&&(!i.options.attributeFilter||i.options.attributeFilter.includes(e.attributeName))&&a(e);break;case fd.characterData:i.options?.characterData&&a(e);break}else t.splice(n,1),n--,r--}}[Kn](){let e=this[M];if(e.querySelector.size){for(let t of e.querySelector.values())t.result&&=null;e.querySelector=new Map}if(e.querySelectorAll.size){for(let t of e.querySelectorAll.values())t.result&&=null;e.querySelectorAll=new Map}if(e.matches.size){for(let t of e.matches.values())t.result&&=null;e.matches=new Map}if(e.elementsByTagName.size){for(let t of e.elementsByTagName.values())t.result&&=null;e.elementsByTagName=new Map}if(e.elementsByTagNameNS.size){for(let t of e.elementsByTagNameNS.values())t.result&&=null;e.elementsByTagNameNS=new Map}if(e.elementByTagName.size){for(let t of e.elementByTagName.values())t.result&&=null;e.elementByTagName=new Map}if(e.elementById.size){for(let t of e.elementById.values())t.result&&=null;e.elementById=new Map}let t=this[Xn];if(t.length){for(let e of t)e.result=null;this[Xn]=[]}let n=this[g];if(n&&n[Qn].length){for(let e of n[Qn])e.result=null;n[Qn]=[]}}[xe](){let e=this[S],t=e||this[Sn],n=!1,r=!1;if(!this[x]&&t[x]?(this[x]=!0,n=!0):this[x]&&!t[x]&&(this[x]=!1,r=!0),this[g]=t[g]||t,this[b]=t[b]||t[je],e){this[C]!==U.documentFragmentNode&&(this[it]=e[it]);let t=this[w];e[Wn]&&t!==`STYLE`&&(this[Wn]=e[Wn]),e[ft]&&t!==`TEXTAREA`&&(this[ft]=e[ft]),e[Le]&&t!==`FORM`&&(this[Le]=e[Le]),e[at]&&t!==`SELECT`&&(this[at]=e[at])}let i=this[j].slice();for(let e=0,t=i.length;e<t;e++)i[e][S]=this,i[e][xe]();this[lt]&&this[lt][xe](),n?this[Ce]():r&&this[we]()}[Se](){this[C]!==U.documentFragmentNode&&(this[it]=null);let e=this[w];e!==`STYLE`&&(this[Wn]=null),e!==`TEXTAREA`&&(this[ft]=null),e!==`FORM`&&(this[Le]=null),e!==`SELECT`&&(this[at]=null),this[x]&&(this[x]=!1,this[we]());let t=this[j].slice();for(let e=0,n=t.length;e<n;e++)t[e][xe]();this[lt]&&this[lt][Se]()}[Ce](){this[lt]&&this[lt][Ce]()}[we](){this[g][de]===this&&(this[g][Kn](),this[g][de]=null),this[lt]&&this[lt][we]()}[Me](){super[Me](),this[x]=!1;for(let e=0,t=this[j].length;e<t;e++)this[j][e][Me]();this[Xe]=[],this[S]=null,this[it]=null,this[Wn]=null,this[ft]=null,this[Le]=null,this[at]=null,this[Xe]=[],this[j]=[],this[Yn]=[],this[ve]=null,this[xr]=null,this[Kn]()}compareDocumentPosition(t){if(this===t)return 0;let n=t,r=this[ar]||this,i=null,a=null;if(n[C]===U.attributeNode&&(i=n,n=i[Ze]),r[C]===U.attributeNode&&(a=r,r=a[Ze],i!==null&&n!==null&&r===n))for(let t of r[Ot][A].values()){if(ud.isEqualNode(t,i))return e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;if(ud.isEqualNode(t,a))return e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_FOLLOWING}let o=[],s=r;for(;s;){if(s===n)return e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;o.push(s),s=s[S]}let c=[],l=n;for(;l;){if(l===r)return e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING;c.push(l),l=l[S]}let u=(e,t)=>e[e.length-1-t],d=u(o,0);if(!d||d!==u(c,0))return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_FOLLOWING;let f=0,p=Math.min(o.length,c.length);for(let e=0;e<p&&u(o,e)===u(c,e);++e)f=e;let ee=u(o,f),te=0,ne=-1,re=-1,ie=u(o,f+1),ae=u(c,f+1),oe=e=>{for(let t of e){if(oe(t[j]),t===ie?ne=te:t===ae&&(re=te),ne!==-1&&re!==-1)break;te++}};return oe(ee[j]),re<ne?e.DOCUMENT_POSITION_PRECEDING:e.DOCUMENT_POSITION_FOLLOWING}normalize(){let e=this.firstChild;for(;e;){if(ud.isTextNode(e)){for(;ud.isTextNode(e.nextSibling);)e.data+=e.nextSibling.data,e.nextSibling.remove();if(!e.data.length){let t=e;e=e.nextSibling,t.remove();continue}}else e.normalize();e=e.nextSibling}}isSameNode(e){return this===e}};md.prototype.ELEMENT_NODE=U.elementNode,md.prototype.ATTRIBUTE_NODE=U.attributeNode,md.prototype.TEXT_NODE=U.textNode,md.prototype.CDATA_SECTION_NODE=U.cdataSectionNode,md.prototype.COMMENT_NODE=U.commentNode,md.prototype.DOCUMENT_NODE=U.documentNode,md.prototype.DOCUMENT_TYPE_NODE=U.documentTypeNode,md.prototype.DOCUMENT_FRAGMENT_NODE=U.documentFragmentNode,md.prototype.PROCESSING_INSTRUCTION_NODE=U.processingInstructionNode,md.prototype.DOCUMENT_POSITION_CONTAINED_BY=ld.containedBy,md.prototype.DOCUMENT_POSITION_CONTAINS=ld.contains,md.prototype.DOCUMENT_POSITION_DISCONNECTED=ld.disconnect,md.prototype.DOCUMENT_POSITION_FOLLOWING=ld.following,md.prototype.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=ld.implementationSpecific,md.prototype.DOCUMENT_POSITION_PRECEDING=ld.preceding;var hd=class extends md{[C]=U.attributeNode;[T]=null;[E]=null;[k]=null;[Ct]=null;[v]=null;[zt]=!0;[Ze]=null;get specified(){return this[zt]}get ownerElement(){return this[Ze]}get value(){return this[v]}set value(e){this[v]=e}get name(){return this[E]||``}get localName(){return this[k]||``}get prefix(){return this[Ct]}get textContent(){return this[v]||``}get namespaceURI(){return this[T]}[Nn](e=!1){let t=super[Nn](e);return t[T]=this[T],t[E]=this[E],t[k]=this[k],t[Ct]=this[Ct],t[v]=this[v],t[zt]=this[zt],t}},gd=class{static appendData(e,t){e.data+=t}static deleteData(e,t,n){e.data=e.data.substring(0,t)+e.data.substring(t+n)}static insertData(e,t,n){e.data=e.data.substring(0,t)+n+e.data.substring(t)}static replaceData(e,t,n,r){e.data=e.data.substring(0,t)+r+e.data.substring(t+n)}static substringData(e,t,n){return e.data.substring(t,t+n)}},_d=class{static previousElementSibling(e){let t=e.previousSibling;for(;t&&t[C]!==U.elementNode;)t=t.previousSibling;return t}static nextElementSibling(e){let t=e.nextSibling;for(;t&&t[C]!==U.elementNode;)t=t.nextSibling;return t}},vd=class{static remove(e){e[S]&&e[S].removeChild(e)}static replaceWith(e,...t){let n=e[S];if(n){for(let r of t)r instanceof md?n.insertBefore(r,e):n.insertBefore(n[g].createTextNode(String(r)),e);n.removeChild(e)}}static before(e,...t){let n=e[S];if(n)for(let r of t)r instanceof md?n.insertBefore(r,e):n.insertBefore(n[g].createTextNode(String(r)),e)}static after(e,...t){let n=e[S];if(!n)return;let r=e.nextSibling;for(let e of t){let t=e instanceof md?e:n[g].createTextNode(String(e));r?n.insertBefore(t,r):n.appendChild(t)}}},yd=class extends md{[Ae]=``;constructor(e){super(),this[Ae]=e===void 0?``:String(e)}get length(){return this[Ae].length}get data(){return this[Ae]}set data(e){let t=this[Ae];this[Ae]=String(e),this[mt](new $u({target:this,type:fd.characterData,oldValue:t}))}get textContent(){return this[Ae]}set textContent(e){this.data=e}get nodeValue(){return this[Ae]}set nodeValue(e){this.textContent=e}get previousElementSibling(){return _d.previousElementSibling(this)}get nextElementSibling(){return _d.nextElementSibling(this)}appendData(e){gd.appendData(this,e)}deleteData(e,t){gd.deleteData(this,e,t)}insertData(e,t){gd.insertData(this,e,t)}replaceData(e,t,n){gd.replaceData(this,e,t,n)}substringData(e,t){return gd.substringData(this,e,t)}remove(){vd.remove(this)}replaceWith(...e){vd.replaceWith(this,...e)}before(...e){vd.before(this,...e)}after(...e){vd.after(this,...e)}[Nn](e=!1){let t=super[Nn](e);return t[Ae]=this[Ae],t}},bd=class extends md{[C]=U.documentTypeNode;[E]=``;[Ut]=``;[Wt]=``;get name(){return this[E]}get publicId(){return this[Ut]}get systemId(){return this[Wt]}get nodeName(){return this.name}toString(){return`[object DocumentType]`}[Nn](e=!1){let t=super[Nn](e);return t[E]=this[E],t[Ut]=this[Ut],t[Wt]=this[Wt],t}},xd;(function(e){e.loading=`loading`,e.interactive=`interactive`,e.complete=`complete`})(xd||={});var Sd=xd,Cd=class{#e;constructor(e){this.#e=new Ms(e)}waitUntilComplete(){return this.#e.waitUntilComplete()}startTask(){return this.#e.startTask()}endTask(e){this.#e.endTask(e)}destroy(){return this.#e.destroy()}},wd=class e{[D]=0;[O]=0;[y]=0;[h]=0;constructor(e,t,n,r){this[D]=e==null?0:Number(e),this[O]=t==null?0:Number(t),this[y]=n==null?0:Number(n),this[h]=r==null?0:Number(r)}get x(){return this[D]}get y(){return this[O]}get width(){return this[y]}get height(){return this[h]}get top(){return Math.min(this[O],this[O]+this[h])}get right(){return Math.max(this[D],this[D]+this[y])}get bottom(){return Math.max(this[O],this[O]+this[h])}get left(){return Math.min(this[D],this[D]+this[y])}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height,top:this.top,right:this.right,bottom:this.bottom,left:this.left}}static fromRect(t){return new e(t.x,t.y,t.width,t.height)}},Td=class e extends wd{set x(e){this[D]=e}get x(){return this[D]}set y(e){this[O]=e}get y(){return this[O]}set width(e){this[y]=e}get width(){return this[y]}set height(e){this[h]=e}get height(){return this[h]}static fromRect(t){return new e(t.x,t.y,t.width,t.height)}};const Ed=/[\t\f\n\r ]+/;var Dd=class e{[Ze];[cr];[M]={items:[],attributeValue:``};[Bo];[ar];constructor(t,n,r,i){if(t!==N)throw TypeError(`Illegal constructor`);this[Ze]=n,this[cr]=r,this[Bo]=i||[];let a=new zc(this,[e]),o=new Proxy(this,{get:(e,t)=>{if(t===`length`)return e[sr]().length;if(t in e||typeof t==`symbol`)return a.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[sr]()[n]},set(e,t,n){if(a.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[sr]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[sr]().length},defineProperty(e,t,n){return a.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[sr]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}});return this[ar]=o,o}get length(){return this[sr]().length}set value(e){this[Ze].setAttribute(this[cr],e)}get value(){return this[Ze].getAttribute(this[cr])||``}[Symbol.iterator](){return this[sr]().values()}item(e){let t=this[sr]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}replace(e,t){let n=this[sr]().slice(),r=n.indexOf(e);return r===-1?!1:(n[r]=t,this[Ze].setAttribute(this[cr],n.join(` `)),!0)}supports(e){return this[Bo].includes(e)}values(){return this[sr]().values()}entries(){return this[sr]().entries()}forEach(e,t){let n=t??this[Ze][b],r=this[sr](),i=this[ar]??this;for(let t=0,a=r.length;t<a;t++)e.call(n,r[t],t,i)}keys(){return this[sr]().keys()}add(...e){let t=this[sr]().slice(),n=new Set(t);for(let r of e)n.has(r)||(n.add(r),t.push(r));this[Ze].setAttribute(this[cr],t.join(` `))}remove(...e){let t=this[sr](),n=new Set(e),r=t.filter(e=>!n.has(e));this[Ze].setAttribute(this[cr],r.join(` `))}contains(e){return this[sr]().includes(e)}toggle(e,t){let n;return n=t===void 0?!this.contains(e):t,n?(this.add(e),!0):(this.remove(e),!1)}[sr](){let e=this[Ze].getAttribute(this[cr])??``,t=this[M];if(t.attributeValue===e)return t.items;let n=[],r=e.trim();if(r)for(let e of r.split(Ed))n.includes(e)||n.push(e);return t.attributeValue=e,t.items=n,n}toString(){return this.value||``}},Od=class e{[$n];constructor(t,n){if(t!==N)throw TypeError(`Illegal constructor`);this[$n]=n;let r=new zc(this,this.constructor===e?[e]:[this.constructor,e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`)return n().length;if(t in e||typeof t==`symbol`)return r.bind(t),e[t];let i=Number(t);return isNaN(i)?e.namedItem(t)||void 0:n()[i]},set(e,t,n){if(r.bind(t),typeof t==`symbol`)return e[t]=n,!0;let i=Number(t);return isNaN(i)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(){let e=[],t=n();for(let n=0;n<t.length;n++){let r=t[n],i=r.getAttribute(`id`)||r.getAttribute(`name`);e.push(String(n)),i&&e.push(i)}return e},has(e,t){if(t in e)return!0;let r=n(),i=Number(t);if(!isNaN(i)&&i>=0&&i<r.length)return!0;t=String(t);for(let e=0;e<r.length;e++){let n=r[e],i=n.getAttribute(`id`)||n.getAttribute(`name`);if(i&&i===t)return!0}return!1},defineProperty(e,t,n){return r.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let r=n(),i=Number(t);if(!isNaN(i)&&i>=0&&i<r.length)return{value:r[i],writable:!1,enumerable:!0,configurable:!0};for(let e=0;e<r.length;e++){let n=r[e],i=n.getAttribute(`id`)||n.getAttribute(`name`);if(i&&i===t)return{value:n,writable:!1,enumerable:!0,configurable:!0}}}})}get length(){return this[$n]().length}get[Symbol.toStringTag](){return this.constructor.name}toLocaleString(){return`[object ${this.constructor.name}]`}toString(){return`[object ${this.constructor.name}]`}item(e){let t=this[$n]();return e>=0&&t[e]?t[e]:null}[Symbol.iterator](){return this[$n]()[Symbol.iterator]()}namedItem(e){let t=this[$n]();e=String(e);for(let n of t)if(n.getAttribute(`id`)===e||n.getAttribute(`name`)===e)return n;return null}},kd=class{static append(e,...t){for(let n of t)n instanceof md?e.appendChild(n):e.appendChild(e[g].createTextNode(String(n)))}static prepend(e,...t){let n=e.firstChild;for(let r of t)r instanceof md?e.insertBefore(r,n):e.insertBefore(e[g].createTextNode(String(r)),n)}static replaceChildren(e,...t){let n=e[j];for(;n.length;)e.removeChild(n[0]);this.append(e,...t)}static getElementsByClassName(e,t){return new Od(N,()=>J.querySelectorAll(e,`.${t.replace(/\s+/gm,`.`)}`)[A])}static getElementsByTagName(e,t){let n=t.toUpperCase(),r=t===`*`,i=(e,t)=>{let a=[];for(let o of e[Yn]){(r||o[w].toUpperCase()===n)&&a.push(o),o[Xn].push(t);for(let e of i(o,t))a.push(e)}return a};return new Od(N,()=>{let n=e[M].elementsByTagName,r=n.get(t);if(r?.result){let e=r.result.deref();if(e)return e}let a={result:null},o=i(e,a);return a.result=new WeakRef(o),n.set(t,a),o})}static getElementsByTagNameNS(e,t,n){let r=t===Pl.html&&e[g][Ee]===`text/html`?n.toUpperCase():n,i=n===`*`,a=(e,n)=>{let o=[];for(let s of e[Yn]){(i||s[w]===r)&&s[T]===t&&o.push(s),s[Xn].push(n);for(let e of a(s,n))o.push(e)}return o};return new Od(N,()=>{let t=e[M].elementsByTagNameNS,r=t.get(n);if(r?.result){let e=r.result.deref();if(e)return e}let i={result:null},o=a(e,i);return i.result=new WeakRef(o),t.set(n,i),o})}static getElementByTagName(e,t){let n=t.toUpperCase(),r=(e,t)=>{for(let i of e[Yn]){if(i[Xn].push(t),i[w]===n)return i;let e=r(i,t);if(e)return e}return null},i=e[M].elementByTagName,a=i.get(t);if(a?.result){let e=a.result.deref();if(e)return e}let o={result:null},s=r(e,o);return o.result=s?new WeakRef(s):{deref:()=>null},i.set(t,o),s}static getElementById(e,t){if(t=String(t),e[C]===md.DOCUMENT_NODE){let n=e[hr].get(t);return n&&n.elements.length>0?n.elements[0]:null}let n=(e,r)=>{for(let i of e[Yn]){if(i[Xn].push(r),i.getAttribute(`id`)===t)return i;let e=n(i,r);if(e)return e}return null},r=e[M].elementById,i=r.get(t);if(i?.result){let e=i.result.deref();if(e)return e}let a={result:null},o=n(e,a);return a.result=o?new WeakRef(o):{deref:()=>null},r.set(t,a),o}},Ad=class extends Array{constructor(e){if(super(),e!==1&&e!==N)throw TypeError(`Illegal constructor`)}item(e){return this[e]??null}},jd=class{[ir]=new Map;[qe]=new Map;[A]=new Map;constructor(e){this[Ze]=e}get length(){return this[A].size}get[Symbol.toStringTag](){return`NamedNodeMap`}toString(){return`[object NamedNodeMap]`}[Symbol.iterator](){return this[A].values()}item(e){let t=Array.from(this[A].values());return e>=0&&t[e]?t[e]:null}getNamedItem(e){return e=String(e),this[Ze][T]===Pl.html&&this[Ze][g][Ee]===`text/html`?this[qe].get(zl.asciiLowerCase(e))?.[0]||null:this[qe].get(e)?.[0]||null}getNamedItemNS(e,t){let n=this[ir].get(`${e||``}:${t}`);return n&&(!n[Ct]||n[T])?n:null}setNamedItem(e){return this[or](e)}setNamedItemNS(e){return this[or](e)}removeNamedItem(e){let t=this.getNamedItem(e);if(!t)throw new this[Ze][b].DOMException(`Failed to execute 'removeNamedItem' on 'NamedNodeMap': No item with name '${e}' was found.`,H.notFoundError);return this[Hn](t),t}removeNamedItemNS(e,t){let n=this.getNamedItemNS(e,t);if(!n)throw new this[Ze][b].DOMException(`Failed to execute 'removeNamedItemNS' on 'NamedNodeMap': No item with name '${t}' in namespace '${e}' was found.`,H.notFoundError);return this[Hn](n),n}[or](e,t=!1){if(e[Ze]!==null&&e[Ze]!==this[Ze])throw new this[Ze][b].DOMException(`The attribute is in use.`,H.inUseAttributeError);e[Ze]=this[Ze];let n=this.getNamedItemNS(e[T],e[k])||null,r=this[qe].get(e[E]);if(n===e)return e;if(this[ir].set(`${e[T]||``}:${e[k]}`,e),this[A].set(`${e[T]||``}:${e[E]}`,e),!r?.length)this[qe].set(e[E],[e]);else{let t=r.indexOf(n);t!==-1&&r.splice(t,1),r.push(e)}return t||this[Ze][qn](e,n),n}[Hn](e,t=!1){e[Ze]=null,this[ir].delete(`${e[T]||``}:${e[k]}`),this[A].delete(`${e[T]||``}:${e[E]}`);let n=this[qe].get(e[E]);if(n?.length){let t=n.indexOf(e);t!==-1&&n.splice(t,1),n.length||this[qe].delete(e[E])}t||this[Ze][Jn](e)}},Md=class{static createProxy(e){let t=new zc(this,[jd]);return new Proxy(e,{get:(n,r)=>{if(r===`length`)return e[A].size;if(r in n||typeof r==`symbol`)return t.bind(r),n[r];let i=Number(r);return isNaN(i)?n.getNamedItem(r)||void 0:n.item(i)},set(e,n,r){if(t.bind(n),typeof n==`symbol`)return e[n]=r,!0;let i=Number(n);return isNaN(i)&&(e[n]=r),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(){let t=Array.from(e[A].keys());for(let n=0,r=e[A].size;n<r;n++)t.push(String(n));return t},has(t,n){if(typeof n==`symbol`)return!1;if(n in t||e[A].has(n))return!0;let r=Number(n);return!isNaN(r)&&r>=0&&r<e[A].size},defineProperty(e,n,r){return t.preventBinding(n),n in e?(Object.defineProperty(e,n,r),!0):!1},getOwnPropertyDescriptor(t,n){if(n in t||typeof n==`symbol`)return;let r=Number(n);if(!isNaN(r)){if(r>=0){let e=t.item(r);if(e)return{value:e,writable:!1,enumerable:!0,configurable:!0}}return}let i=e[A].get(n);if(i)return{value:i,writable:!1,enumerable:!0,configurable:!0}}})}},Nd;(function(e){e.rawText=`rawText`,e.noSelfDescendants=`noSelfDescendants`,e.noFirstLevelSelfDescendants=`noFirstLevelSelfDescendants`,e.noForbiddenFirstLevelDescendants=`noForbiddenFirstLevelDescendants`,e.noDescendants=`noDescendants`,e.permittedDescendants=`permittedDescendants`,e.textOrComments=`textOrComments`,e.anyDescendants=`anyDescendants`})(Nd||={});var X=Nd,Pd={a:{className:`HTMLAnchorElement`,contentModel:X.noSelfDescendants},abbr:{className:`HTMLElement`,contentModel:X.anyDescendants},address:{className:`HTMLElement`,contentModel:X.anyDescendants},area:{className:`HTMLAreaElement`,contentModel:X.noDescendants},article:{className:`HTMLElement`,contentModel:X.anyDescendants},aside:{className:`HTMLElement`,contentModel:X.anyDescendants},audio:{className:`HTMLAudioElement`,contentModel:X.anyDescendants},b:{className:`HTMLElement`,contentModel:X.anyDescendants},base:{className:`HTMLBaseElement`,contentModel:X.noDescendants},bdi:{className:`HTMLElement`,contentModel:X.anyDescendants},bdo:{className:`HTMLElement`,contentModel:X.anyDescendants},body:{className:`HTMLBodyElement`,contentModel:X.anyDescendants},template:{className:`HTMLTemplateElement`,contentModel:X.anyDescendants},form:{className:`HTMLFormElement`,contentModel:X.anyDescendants},input:{className:`HTMLInputElement`,contentModel:X.noDescendants},textarea:{className:`HTMLTextAreaElement`,contentModel:X.anyDescendants},script:{className:`HTMLScriptElement`,contentModel:X.rawText},img:{className:`HTMLImageElement`,contentModel:X.noDescendants},link:{className:`HTMLLinkElement`,contentModel:X.noDescendants},style:{className:`HTMLStyleElement`,contentModel:X.rawText},label:{className:`HTMLLabelElement`,contentModel:X.anyDescendants},slot:{className:`HTMLSlotElement`,contentModel:X.anyDescendants},meta:{className:`HTMLMetaElement`,contentModel:X.noDescendants},blockquote:{className:`HTMLQuoteElement`,contentModel:X.anyDescendants},br:{className:`HTMLBRElement`,contentModel:X.noDescendants},button:{className:`HTMLButtonElement`,contentModel:X.anyDescendants},canvas:{className:`HTMLCanvasElement`,contentModel:X.anyDescendants},caption:{className:`HTMLTableCaptionElement`,contentModel:X.noForbiddenFirstLevelDescendants,forbiddenDescendants:[`table`,`tbody`,`thead`,`tfoot`,`tr`,`td`,`th`,`col`,`colgroup`],permittedParents:[`table`]},cite:{className:`HTMLElement`,contentModel:X.anyDescendants},code:{className:`HTMLElement`,contentModel:X.anyDescendants},col:{className:`HTMLTableColElement`,contentModel:X.noDescendants,permittedParents:[`colgroup`]},colgroup:{className:`HTMLTableColElement`,contentModel:X.permittedDescendants,permittedDescendants:[`col`]},data:{className:`HTMLDataElement`,contentModel:X.anyDescendants},datalist:{className:`HTMLDataListElement`,contentModel:X.anyDescendants},dd:{className:`HTMLElement`,contentModel:X.noForbiddenFirstLevelDescendants,forbiddenDescendants:[`dt`,`dd`]},del:{className:`HTMLModElement`,contentModel:X.anyDescendants},details:{className:`HTMLDetailsElement`,contentModel:X.anyDescendants},dfn:{className:`HTMLElement`,contentModel:X.anyDescendants},dialog:{className:`HTMLDialogElement`,contentModel:X.anyDescendants},div:{className:`HTMLDivElement`,contentModel:X.anyDescendants},dl:{className:`HTMLDListElement`,contentModel:X.anyDescendants},dt:{className:`HTMLElement`,contentModel:X.noForbiddenFirstLevelDescendants,forbiddenDescendants:[`dt`,`dd`]},em:{className:`HTMLElement`,contentModel:X.anyDescendants},embed:{className:`HTMLEmbedElement`,contentModel:X.noDescendants},fieldset:{className:`HTMLFieldSetElement`,contentModel:X.anyDescendants},figcaption:{className:`HTMLElement`,contentModel:X.anyDescendants},figure:{className:`HTMLElement`,contentModel:X.anyDescendants},footer:{className:`HTMLElement`,contentModel:X.anyDescendants},h1:{className:`HTMLHeadingElement`,contentModel:X.noFirstLevelSelfDescendants},h2:{className:`HTMLHeadingElement`,contentModel:X.noFirstLevelSelfDescendants},h3:{className:`HTMLHeadingElement`,contentModel:X.noFirstLevelSelfDescendants},h4:{className:`HTMLHeadingElement`,contentModel:X.noFirstLevelSelfDescendants},h5:{className:`HTMLHeadingElement`,contentModel:X.noFirstLevelSelfDescendants},h6:{className:`HTMLHeadingElement`,contentModel:X.noFirstLevelSelfDescendants},head:{className:`HTMLHeadElement`,contentModel:X.anyDescendants},header:{className:`HTMLElement`,contentModel:X.anyDescendants},hgroup:{className:`HTMLElement`,contentModel:X.anyDescendants},hr:{className:`HTMLHRElement`,contentModel:X.noDescendants},html:{className:`HTMLHtmlElement`,contentModel:X.anyDescendants},i:{className:`HTMLElement`,contentModel:X.anyDescendants},iframe:{className:`HTMLIFrameElement`,contentModel:X.anyDescendants},ins:{className:`HTMLModElement`,contentModel:X.anyDescendants},kbd:{className:`HTMLElement`,contentModel:X.anyDescendants},legend:{className:`HTMLLegendElement`,contentModel:X.anyDescendants},li:{className:`HTMLLIElement`,contentModel:X.noFirstLevelSelfDescendants},main:{className:`HTMLElement`,contentModel:X.anyDescendants},map:{className:`HTMLMapElement`,contentModel:X.anyDescendants},mark:{className:`HTMLElement`,contentModel:X.anyDescendants},menu:{className:`HTMLMenuElement`,contentModel:X.anyDescendants},meter:{className:`HTMLMeterElement`,contentModel:X.anyDescendants},nav:{className:`HTMLElement`,contentModel:X.anyDescendants},noscript:{className:`HTMLElement`,contentModel:X.anyDescendants},object:{className:`HTMLObjectElement`,contentModel:X.anyDescendants},ol:{className:`HTMLOListElement`,contentModel:X.anyDescendants},optgroup:{className:`HTMLOptGroupElement`,contentModel:X.noFirstLevelSelfDescendants},option:{className:`HTMLOptionElement`,contentModel:X.noForbiddenFirstLevelDescendants,forbiddenDescendants:[`option`,`optgroup`]},output:{className:`HTMLOutputElement`,contentModel:X.anyDescendants},p:{className:`HTMLParagraphElement`,contentModel:X.noForbiddenFirstLevelDescendants,forbiddenDescendants:`address.article.aside.blockquote.details.dialog.div.dl.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.main.menu.nav.ol.p.pre.section.table.ul`.split(`.`)},param:{className:`HTMLParamElement`,contentModel:X.noDescendants},picture:{className:`HTMLPictureElement`,contentModel:X.anyDescendants},pre:{className:`HTMLPreElement`,contentModel:X.anyDescendants},progress:{className:`HTMLProgressElement`,contentModel:X.anyDescendants},q:{className:`HTMLQuoteElement`,contentModel:X.anyDescendants},rb:{className:`HTMLElement`,contentModel:X.anyDescendants},rp:{className:`HTMLElement`,contentModel:X.noForbiddenFirstLevelDescendants,forbiddenDescendants:[`rp`,`rt`]},rt:{className:`HTMLElement`,contentModel:X.noForbiddenFirstLevelDescendants,forbiddenDescendants:[`rp`,`rt`]},rtc:{className:`HTMLElement`,contentModel:X.anyDescendants},ruby:{className:`HTMLElement`,contentModel:X.anyDescendants},s:{className:`HTMLElement`,contentModel:X.anyDescendants},samp:{className:`HTMLElement`,contentModel:X.anyDescendants},section:{className:`HTMLElement`,contentModel:X.anyDescendants},select:{className:`HTMLSelectElement`,contentModel:X.anyDescendants},small:{className:`HTMLElement`,contentModel:X.anyDescendants},source:{className:`HTMLSourceElement`,contentModel:X.noDescendants},span:{className:`HTMLSpanElement`,contentModel:X.anyDescendants},strong:{className:`HTMLElement`,contentModel:X.anyDescendants},sub:{className:`HTMLElement`,contentModel:X.anyDescendants},summary:{className:`HTMLElement`,contentModel:X.anyDescendants},sup:{className:`HTMLElement`,contentModel:X.anyDescendants},table:{className:`HTMLTableElement`,contentModel:X.permittedDescendants,permittedDescendants:[`caption`,`colgroup`,`thead`,`tfoot`,`tbody`],moveForbiddenDescendant:{exclude:[]}},tbody:{className:`HTMLTableSectionElement`,contentModel:X.permittedDescendants,permittedDescendants:[`tr`],permittedParents:[`table`],moveForbiddenDescendant:{exclude:[`caption`,`colgroup`,`thead`,`tfoot`,`tbody`]}},td:{className:`HTMLTableCellElement`,contentModel:X.noForbiddenFirstLevelDescendants,forbiddenDescendants:[`td`,`th`,`tr`,`tbody`,`tfoot`,`thead`],permittedParents:[`tr`]},tfoot:{className:`HTMLTableSectionElement`,contentModel:X.permittedDescendants,permittedDescendants:[`tr`],permittedParents:[`table`],moveForbiddenDescendant:{exclude:[`caption`,`colgroup`,`thead`,`tfoot`,`tbody`]}},th:{className:`HTMLTableCellElement`,contentModel:X.noForbiddenFirstLevelDescendants,forbiddenDescendants:[`td`,`th`,`tr`,`tbody`,`tfoot`,`thead`],permittedParents:[`tr`]},thead:{className:`HTMLTableSectionElement`,contentModel:X.permittedDescendants,permittedDescendants:[`tr`],permittedParents:[`table`],moveForbiddenDescendant:{exclude:[`caption`,`colgroup`,`thead`,`tfoot`,`tbody`]}},time:{className:`HTMLTimeElement`,contentModel:X.anyDescendants},title:{className:`HTMLTitleElement`,contentModel:X.anyDescendants},tr:{className:`HTMLTableRowElement`,contentModel:X.permittedDescendants,permittedDescendants:[`td`,`th`],permittedParents:[`tbody`,`tfoot`,`thead`],addPermittedParent:`tbody`,moveForbiddenDescendant:{exclude:[`caption`,`colgroup`,`thead`,`tfoot`,`tbody`,`tr`]}},track:{className:`HTMLTrackElement`,contentModel:X.noDescendants},u:{className:`HTMLElement`,contentModel:X.anyDescendants},ul:{className:`HTMLUListElement`,contentModel:X.anyDescendants},var:{className:`HTMLElement`,contentModel:X.anyDescendants},video:{className:`HTMLVideoElement`,contentModel:X.anyDescendants},wbr:{className:`HTMLElement`,contentModel:X.noDescendants}};const Fd=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]]),Id=String.fromCodePoint??(e=>{let t=``;return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t});function Ld(e){return e>=55296&&e<=57343||e>1114111?65533:Fd.get(e)??e}function Rd(e){let t=typeof atob==`function`?atob(e):typeof Buffer.from==`function`?Buffer.from(e,`base64`).toString(`binary`):new Buffer(e,`base64`).toString(`binary`),n=t.length&-2,r=new Uint16Array(n/2);for(let e=0,i=0;e<n;e+=2){let n=t.charCodeAt(e),a=t.charCodeAt(e+1);r[i++]=n|a<<8}return r}const zd=Rd(`QR08ALkAAgH6AYsDNQR2BO0EPgXZBQEGLAbdBxMISQrvCmQLfQurDKQNLw4fD4YPpA+6D/IPAAAAAAAAAAAAAAAAKhBMEY8TmxUWF2EYLBkxGuAa3RsJHDscWR8YIC8jSCSIJcMl6ie3Ku8rEC0CLjoupS7kLgAIRU1hYmNmZ2xtbm9wcnN0dVQAWgBeAGUAaQBzAHcAfgCBAIQAhwCSAJoAoACsALMAbABpAGcAO4DGAMZAUAA7gCYAJkBjAHUAdABlADuAwQDBQHIiZXZlAAJhAAFpeW0AcgByAGMAO4DCAMJAEGRyAADgNdgE3XIAYQB2AGUAO4DAAMBA8CFoYZFj4SFjcgBhZAAAoFMqAAFncIsAjgBvAG4ABGFmAADgNdg43fAlbHlGdW5jdGlvbgCgYSBpAG4AZwA7gMUAxUAAAWNzpACoAHIAAOA12Jzc6SFnbgCgVCJpAGwAZABlADuAwwDDQG0AbAA7gMQAxEAABGFjZWZvcnN1xQDYANoA7QDxAPYA+QD8AAABY3LJAM8AayNzbGFzaAAAoBYidgHTANUAAKDnKmUAZAAAoAYjeQARZIABY3J0AOAA5QDrAGEidXNlAACgNSLuI291bGxpcwCgLCFhAJJjcgAA4DXYBd1wAGYAAOA12Dnd5SF2ZdhiYwDyAOoAbSJwZXEAAKBOIgAHSE9hY2RlZmhpbG9yc3UXARoBHwE6AVIBVQFiAWQBZgGCAakB6QHtAfIBYwB5ACdkUABZADuAqQCpQIABY3B5ACUBKAE1AfUhdGUGYWmg0iJ0KGFsRGlmZmVyZW50aWFsRAAAoEUhbCJleXMAAKAtIQACYWVpb0EBRAFKAU0B8iFvbgxhZABpAGwAO4DHAMdAcgBjAAhhbiJpbnQAAKAwIm8AdAAKYQABZG5ZAV0BaSJsbGEAuGB0I2VyRG90ALdg8gA5AWkAp2NyImNsZQAAAkRNUFRwAXQBeQF9AW8AdAAAoJkiaSJudXMAAKCWIuwhdXMAoJUiaSJtZXMAAKCXIm8AAAFjc4cBlAFrKndpc2VDb250b3VySW50ZWdyYWwAAKAyImUjQ3VybHkAAAFEUZwBpAFvJXVibGVRdW90ZQAAoB0gdSJvdGUAAKAZIAACbG5wdbABtgHNAdgBbwBuAGWgNyIAoHQqgAFnaXQAvAHBAcUB8iJ1ZW50AKBhIm4AdAAAoC8i7yV1ckludGVncmFsAKAuIgABZnLRAdMBAKACIe8iZHVjdACgECJuLnRlckNsb2Nrd2lzZUNvbnRvdXJJbnRlZ3JhbAAAoDMi7yFzcwCgLypjAHIAAOA12J7ccABDoNMiYQBwAACgTSKABURKU1phY2VmaW9zAAsCEgIVAhgCGwIsAjQCOQI9AnMCfwNvoEUh9CJyYWhkAKARKWMAeQACZGMAeQAFZGMAeQAPZIABZ3JzACECJQIoAuchZXIAoCEgcgAAoKEhaAB2AACg5CoAAWF5MAIzAvIhb24OYRRkbAB0oAciYQCUY3IAAOA12AfdAAFhZkECawIAAWNtRQJnAvIjaXRpY2FsAAJBREdUUAJUAl8CYwJjInV0ZQC0YG8AdAFZAloC2WJiJGxlQWN1dGUA3WJyImF2ZQBgYGkibGRlANxi7yFuZACgxCJmJWVyZW50aWFsRAAAoEYhcAR9AgAAAAAAAIECjgIAABoDZgAA4DXYO91EoagAhQKJAm8AdAAAoNwgcSJ1YWwAAKBQIuIhbGUAA0NETFJVVpkCqAK1Au8C/wIRA28AbgB0AG8AdQByAEkAbgB0AGUAZwByAGEA7ADEAW8AdAKvAgAAAACwAqhgbiNBcnJvdwAAoNMhAAFlb7kC0AJmAHQAgAFBUlQAwQLGAs0CciJyb3cAAKDQIekkZ2h0QXJyb3cAoNQhZQDlACsCbgBnAAABTFLWAugC5SFmdAABQVLcAuECciJyb3cAAKD4J+kkZ2h0QXJyb3cAoPon6SRnaHRBcnJvdwCg+SdpImdodAAAAUFU9gL7AnIicm93AACg0iFlAGUAAKCoInAAQQIGAwAAAAALA3Iicm93AACg0SFvJHduQXJyb3cAAKDVIWUlcnRpY2FsQmFyAACgJSJuAAADQUJMUlRhJAM2AzoDWgNxA3oDciJyb3cAAKGTIUJVLAMwA2EAcgAAoBMpcCNBcnJvdwAAoPUhciJldmUAEWPlIWZ00gJDAwAASwMAAFIDaSVnaHRWZWN0b3IAAKBQKWUkZVZlY3RvcgAAoF4p5SJjdG9yQqC9IWEAcgAAoFYpaSJnaHQA1AFiAwAAaQNlJGVWZWN0b3IAAKBfKeUiY3RvckKgwSFhAHIAAKBXKWUAZQBBoKQiciJyb3cAAKCnIXIAcgBvAPcAtAIAAWN0gwOHA3IAAOA12J/c8iFvaxBhAAhOVGFjZGZnbG1vcHFzdHV4owOlA6kDsAO/A8IDxgPNA9ID8gP9AwEEFAQeBCAEJQRHAEphSAA7gNAA0EBjAHUAdABlADuAyQDJQIABYWl5ALYDuQO+A/Ihb24aYXIAYwA7gMoAykAtZG8AdAAWYXIAAOA12AjdcgBhAHYAZQA7gMgAyEDlIm1lbnQAoAgiAAFhcNYD2QNjAHIAEmF0AHkAUwLhAwAAAADpA20lYWxsU3F1YXJlAACg+yVlJ3J5U21hbGxTcXVhcmUAAKCrJQABZ3D2A/kDbwBuABhhZgAA4DXYPN3zImlsb26VY3UAAAFhaQYEDgRsAFSgdSppImxkZQAAoEIi7CNpYnJpdW0AoMwhAAFjaRgEGwRyAACgMCFtAACgcyphAJdjbQBsADuAywDLQAABaXApBC0E8yF0cwCgAyLvJG5lbnRpYWxFAKBHIYACY2Zpb3MAPQQ/BEMEXQRyBHkAJGRyAADgNdgJ3WwibGVkAFMCTAQAAAAAVARtJWFsbFNxdWFyZQAAoPwlZSdyeVNtYWxsU3F1YXJlAACgqiVwA2UEAABpBAAAAABtBGYAAOA12D3dwSFsbACgACLyI2llcnRyZgCgMSFjAPIAcQQABkpUYWJjZGZnb3JzdIgEiwSOBJMElwSkBKcEqwStBLIE5QTqBGMAeQADZDuAPgA+QO0hbWFkoJMD3GNyImV2ZQAeYYABZWl5AJ0EoASjBOQhaWwiYXIAYwAcYRNkbwB0ACBhcgAA4DXYCt0AoNkicABmAADgNdg+3eUiYXRlcgADRUZHTFNUvwTIBM8E1QTZBOAEcSJ1YWwATKBlIuUhc3MAoNsidSRsbEVxdWFsAACgZyJyI2VhdGVyAACgoirlIXNzAKB3IuwkYW50RXF1YWwAoH4qaSJsZGUAAKBzImMAcgAA4DXYotwAoGsiAARBYWNmaW9zdfkE/QQFBQgFCwUTBSIFKwVSIkRjeQAqZAABY3QBBQQFZQBrAMdiXmDpIXJjJGFyAACgDCFsJWJlcnRTcGFjZQAAoAsh8AEYBQAAGwVmAACgDSHpJXpvbnRhbExpbmUAoAAlAAFjdCYFKAXyABIF8iFvayZhbQBwAEQBMQU5BW8AdwBuAEgAdQBtAPAAAAFxInVhbAAAoE8iAAdFSk9hY2RmZ21ub3N0dVMFVgVZBVwFYwVtBXAFcwV6BZAFtgXFBckFzQVjAHkAFWTsIWlnMmFjAHkAAWRjAHUAdABlADuAzQDNQAABaXlnBWwFcgBjADuAzgDOQBhkbwB0ADBhcgAAoBEhcgBhAHYAZQA7gMwAzEAAoREhYXB/BYsFAAFjZ4MFhQVyACphaSNuYXJ5SQAAoEghbABpAGUA8wD6AvQBlQUAAKUFZaAsIgABZ3KaBZ4F8iFhbACgKyLzI2VjdGlvbgCgwiJpI3NpYmxlAAABQ1SsBbEFbyJtbWEAAKBjIGkibWVzAACgYiCAAWdwdAC8Bb8FwwVvAG4ALmFmAADgNdhA3WEAmWNjAHIAAKAQIWkibGRlAChh6wHSBQAA1QVjAHkABmRsADuAzwDPQIACY2Zvc3UA4QXpBe0F8gX9BQABaXnlBegFcgBjADRhGWRyAADgNdgN3XAAZgAA4DXYQd3jAfcFAAD7BXIAAOA12KXc8iFjeQhk6yFjeQRkgANISmFjZm9zAAwGDwYSBhUGHQYhBiYGYwB5ACVkYwB5AAxk8CFwYZpjAAFleRkGHAbkIWlsNmEaZHIAAOA12A7dcABmAADgNdhC3WMAcgAA4DXYptyABUpUYWNlZmxtb3N0AD0GQAZDBl4GawZkB2gHcAd0B80H2gdjAHkACWQ7gDwAPECAAmNtbnByAEwGTwZSBlUGWwb1IXRlOWHiIWRhm2NnAACg6ifsI2FjZXRyZgCgEiFyAACgniGAAWFleQBkBmcGagbyIW9uPWHkIWlsO2EbZAABZnNvBjQHdAAABUFDREZSVFVWYXKABp4GpAbGBssG3AYDByEHwQIqBwABbnKEBowGZyVsZUJyYWNrZXQAAKDoJ/Ihb3cAoZAhQlKTBpcGYQByAACg5CHpJGdodEFycm93AKDGIWUjaWxpbmcAAKAII28A9QGqBgAAsgZiJWxlQnJhY2tldAAAoOYnbgDUAbcGAAC+BmUkZVZlY3RvcgAAoGEp5SJjdG9yQqDDIWEAcgAAoFkpbCJvb3IAAKAKI2kiZ2h0AAABQVbSBtcGciJyb3cAAKCUIeUiY3RvcgCgTikAAWVy4AbwBmUAAKGjIkFW5gbrBnIicm93AACgpCHlImN0b3IAoFopaSNhbmdsZQBCorIi+wYAAAAA/wZhAHIAAKDPKXEidWFsAACgtCJwAIABRFRWAAoHEQcYB+8kd25WZWN0b3IAoFEpZSRlVmVjdG9yAACgYCnlImN0b3JCoL8hYQByAACgWCnlImN0b3JCoLwhYQByAACgUilpAGcAaAB0AGEAcgByAG8A9wDMAnMAAANFRkdMU1Q/B0cHTgdUB1gHXwfxJXVhbEdyZWF0ZXIAoNoidSRsbEVxdWFsAACgZiJyI2VhdGVyAACgdiLlIXNzAKChKuwkYW50RXF1YWwAoH0qaSJsZGUAAKByInIAAOA12A/dZaDYIuYjdGFycm93AKDaIWkiZG90AD9hgAFucHcAege1B7kHZwAAAkxSbHKCB5QHmwerB+UhZnQAAUFSiAeNB3Iicm93AACg9SfpJGdodEFycm93AKD3J+kkZ2h0QXJyb3cAoPYn5SFmdAABYXLcAqEHaQBnAGgAdABhAHIAcgBvAPcA5wJpAGcAaAB0AGEAcgByAG8A9wDuAmYAAOA12EPdZQByAAABTFK/B8YHZSRmdEFycm93AACgmSHpJGdodEFycm93AKCYIYABY2h0ANMH1QfXB/IAWgYAoLAh8iFva0FhAKBqIgAEYWNlZmlvc3XpB+wH7gf/BwMICQgOCBEIcAAAoAUpeQAcZAABZGzyB/kHaSR1bVNwYWNlAACgXyBsI2ludHJmAACgMyFyAADgNdgQ3e4jdXNQbHVzAKATInAAZgAA4DXYRN1jAPIA/gecY4AESmFjZWZvc3R1ACEIJAgoCDUIgQiFCDsKQApHCmMAeQAKZGMidXRlAENhgAFhZXkALggxCDQI8iFvbkdh5CFpbEVhHWSAAWdzdwA7CGEIfQjhInRpdmWAAU1UVgBECEwIWQhlJWRpdW1TcGFjZQAAoAsgaABpAAABY25SCFMIawBTAHAAYQBjAOUASwhlAHIAeQBUAGgAaQDuAFQI9CFlZAABR0xnCHUIcgBlAGEAdABlAHIARwByAGUAYQB0AGUA8gDrBGUAcwBzAEwAZQBzAPMA2wdMImluZQAKYHIAAOA12BHdAAJCbnB0jAiRCJkInAhyImVhawAAoGAgwiZyZWFraW5nU3BhY2WgYGYAAKAVIUOq7CqzCMIIzQgAAOcIGwkAAAAAAAAtCQAAbwkAAIcJAACdCcAJGQoAADQKAAFvdbYIvAjuI2dydWVudACgYiJwIkNhcAAAoG0ibyh1YmxlVmVydGljYWxCYXIAAKAmIoABbHF4ANII1wjhCOUibWVudACgCSL1IWFsVKBgImkibGRlAADgQiI4A2kic3RzAACgBCJyI2VhdGVyAACjbyJFRkdMU1T1CPoIAgkJCQ0JFQlxInVhbAAAoHEidSRsbEVxdWFsAADgZyI4A3IjZWF0ZXIAAOBrIjgD5SFzcwCgeSLsJGFudEVxdWFsAOB+KjgDaSJsZGUAAKB1IvUhbXBEASAJJwnvI3duSHVtcADgTiI4A3EidWFsAADgTyI4A2UAAAFmczEJRgn0JFRyaWFuZ2xlQqLqIj0JAAAAAEIJYQByAADgzyk4A3EidWFsAACg7CJzAICibiJFR0xTVABRCVYJXAlhCWkJcSJ1YWwAAKBwInIjZWF0ZXIAAKB4IuUhc3MA4GoiOAPsJGFudEVxdWFsAOB9KjgDaSJsZGUAAKB0IuUic3RlZAABR0x1CX8J8iZlYXRlckdyZWF0ZXIA4KIqOAPlI3NzTGVzcwDgoSo4A/IjZWNlZGVzAKGAIkVTjwmVCXEidWFsAADgryo4A+wkYW50RXF1YWwAoOAiAAFlaaAJqQl2JmVyc2VFbGVtZW50AACgDCLnJWh0VHJpYW5nbGVCousitgkAAAAAuwlhAHIAAODQKTgDcSJ1YWwAAKDtIgABcXXDCeAJdSNhcmVTdQAAAWJwywnVCfMhZXRF4I8iOANxInVhbAAAoOIi5SJyc2V0ReCQIjgDcSJ1YWwAAKDjIoABYmNwAOYJ8AkNCvMhZXRF4IIi0iBxInVhbAAAoIgi4yJlZWRzgKGBIkVTVAD6CQAKBwpxInVhbAAA4LAqOAPsJGFudEVxdWFsAKDhImkibGRlAADgfyI4A+UicnNldEXggyLSIHEidWFsAACgiSJpImxkZQCAoUEiRUZUACIKJwouCnEidWFsAACgRCJ1JGxsRXF1YWwAAKBHImkibGRlAACgSSJlJXJ0aWNhbEJhcgAAoCQiYwByAADgNdip3GkAbABkAGUAO4DRANFAnWMAB0VhY2RmZ21vcHJzdHV2XgphCmgKcgp2CnoKgQqRCpYKqwqtCrsKyArNCuwhaWdSYWMAdQB0AGUAO4DTANNAAAFpeWwKcQpyAGMAO4DUANRAHmRiImxhYwBQYXIAAOA12BLdcgBhAHYAZQA7gNIA0kCAAWFlaQCHCooKjQpjAHIATGFnAGEAqWNjInJvbgCfY3AAZgAA4DXYRt3lI25DdXJseQABRFGeCqYKbyV1YmxlUXVvdGUAAKAcIHUib3RlAACgGCAAoFQqAAFjbLEKtQpyAADgNdiq3GEAcwBoADuA2ADYQGkAbAHACsUKZABlADuA1QDVQGUAcwAAoDcqbQBsADuA1gDWQGUAcgAAAUJQ0wrmCgABYXLXCtoKcgAAoD4gYQBjAAABZWvgCuIKAKDeI2UAdAAAoLQjYSVyZW50aGVzaXMAAKDcI4AEYWNmaGlsb3JzAP0KAwsFCwkLCwsMCxELIwtaC3IjdGlhbEQAAKACInkAH2RyAADgNdgT3WkApmOgY/Ujc01pbnVzsWAAAWlwFQsgC24AYwBhAHIAZQBwAGwAYQBuAOUACgVmAACgGSGAobsqZWlvACoLRQtJC+MiZWRlc4CheiJFU1QANAs5C0ALcSJ1YWwAAKCvKuwkYW50RXF1YWwAoHwiaSJsZGUAAKB+Im0AZQAAoDMgAAFkcE0LUQv1IWN0AKAPIm8jcnRpb24AYaA3ImwAAKAdIgABY2leC2ILcgAA4DXYq9yoYwACVWZvc2oLbwtzC3cLTwBUADuAIgAiQHIAAOA12BTdcABmAACgGiFjAHIAAOA12KzcAAZCRWFjZWZoaW9yc3WPC5MLlwupC7YL2AvbC90LhQyTDJoMowzhIXJyAKAQKUcAO4CuAK5AgAFjbnIAnQugC6ML9SF0ZVRhZwAAoOsncgB0oKAhbAAAoBYpgAFhZXkArwuyC7UL8iFvblhh5CFpbFZhIGR2oBwhZSJyc2UAAAFFVb8LzwsAAWxxwwvIC+UibWVudACgCyL1JGlsaWJyaXVtAKDLIXAmRXF1aWxpYnJpdW0AAKBvKXIAAKAcIW8AoWPnIWh0AARBQ0RGVFVWYewLCgwQDDIMNwxeDHwM9gIAAW5y8Av4C2clbGVCcmFja2V0AACg6SfyIW93AKGSIUJM/wsDDGEAcgAAoOUhZSRmdEFycm93AACgxCFlI2lsaW5nAACgCSNvAPUBFgwAAB4MYiVsZUJyYWNrZXQAAKDnJ24A1AEjDAAAKgxlJGVWZWN0b3IAAKBdKeUiY3RvckKgwiFhAHIAAKBVKWwib29yAACgCyMAAWVyOwxLDGUAAKGiIkFWQQxGDHIicm93AACgpiHlImN0b3IAoFspaSNhbmdsZQBCorMiVgwAAAAAWgxhAHIAAKDQKXEidWFsAACgtSJwAIABRFRWAGUMbAxzDO8kd25WZWN0b3IAoE8pZSRlVmVjdG9yAACgXCnlImN0b3JCoL4hYQByAACgVCnlImN0b3JCoMAhYQByAACgUykAAXB1iQyMDGYAAKAdIe4kZEltcGxpZXMAoHAp6SRnaHRhcnJvdwCg2yEAAWNongyhDHIAAKAbIQCgsSHsJGVEZWxheWVkAKD0KYAGSE9hY2ZoaW1vcXN0dQC/DMgMzAzQDOIM5gwKDQ0NFA0ZDU8NVA1YDQABQ2PDDMYMyCFjeSlkeQAoZEYiVGN5ACxkYyJ1dGUAWmEAorwqYWVpedgM2wzeDOEM8iFvbmBh5CFpbF5hcgBjAFxhIWRyAADgNdgW3e8hcnQAAkRMUlXvDPYM/QwEDW8kd25BcnJvdwAAoJMhZSRmdEFycm93AACgkCHpJGdodEFycm93AKCSIXAjQXJyb3cAAKCRIechbWGjY+EkbGxDaXJjbGUAoBgicABmAADgNdhK3XICHw0AAAAAIg10AACgGiLhIXJlgKGhJUlTVQAqDTINSg3uJXRlcnNlY3Rpb24AoJMidQAAAWJwNw1ADfMhZXRFoI8icSJ1YWwAAKCRIuUicnNldEWgkCJxInVhbAAAoJIibiJpb24AAKCUImMAcgAA4DXYrtxhAHIAAKDGIgACYmNtcF8Nag2ODZANc6DQImUAdABFoNAicSJ1YWwAAKCGIgABY2huDYkNZSJlZHMAgKF7IkVTVAB4DX0NhA1xInVhbAAAoLAq7CRhbnRFcXVhbACgfSJpImxkZQAAoH8iVABoAGEA9ADHCwCgESIAodEiZXOVDZ8NciJzZXQARaCDInEidWFsAACghyJlAHQAAKDRIoAFSFJTYWNmaGlvcnMAtQ27Db8NyA3ODdsN3w3+DRgOHQ4jDk8AUgBOADuA3gDeQMEhREUAoCIhAAFIY8MNxg1jAHkAC2R5ACZkAAFidcwNzQ0JYKRjgAFhZXkA1A3XDdoN8iFvbmRh5CFpbGJhImRyAADgNdgX3QABZWnjDe4N8gHoDQAA7Q3lImZvcmUAoDQiYQCYYwABY27yDfkNayNTcGFjZQAA4F8gCiDTInBhY2UAoAkg7CFkZYChPCJFRlQABw4MDhMOcSJ1YWwAAKBDInUkbGxFcXVhbAAAoEUiaSJsZGUAAKBIInAAZgAA4DXYS93pI3BsZURvdACg2yAAAWN0Jw4rDnIAAOA12K/c8iFva2Zh4QpFDlYOYA5qDgAAbg5yDgAAAAAAAAAAAAB5DnwOqA6zDgAADg8RDxYPGg8AAWNySA5ODnUAdABlADuA2gDaQHIAb6CfIeMhaXIAoEkpcgDjAVsOAABdDnkADmR2AGUAbGEAAWl5Yw5oDnIAYwA7gNsA20AjZGIibGFjAHBhcgAA4DXYGN1yAGEAdgBlADuA2QDZQOEhY3JqYQABZGl/Dp8OZQByAAABQlCFDpcOAAFhcokOiw5yAF9gYQBjAAABZWuRDpMOAKDfI2UAdAAAoLUjYSVyZW50aGVzaXMAAKDdI28AbgBQoMMi7CF1cwCgjiIAAWdwqw6uDm8AbgByYWYAAOA12EzdAARBREVUYWRwc78O0g7ZDuEOBQPqDvMOBw9yInJvdwDCoZEhyA4AAMwOYQByAACgEilvJHduQXJyb3cAAKDFIW8kd25BcnJvdwAAoJUhcSV1aWxpYnJpdW0AAKBuKWUAZQBBoKUiciJyb3cAAKClIW8AdwBuAGEAcgByAG8A9wAQA2UAcgAAAUxS+Q4AD2UkZnRBcnJvdwAAoJYh6SRnaHRBcnJvdwCglyFpAGyg0gNvAG4ApWPpIW5nbmFjAHIAAOA12LDcaSJsZGUAaGFtAGwAO4DcANxAgAREYmNkZWZvc3YALQ8xDzUPNw89D3IPdg97D4AP4SFzaACgqyJhAHIAAKDrKnkAEmThIXNobKCpIgCg5ioAAWVyQQ9DDwCgwSKAAWJ0eQBJD00Paw9hAHIAAKAWIGmgFiDjIWFsAAJCTFNUWA9cD18PZg9hAHIAAKAjIukhbmV8YGUkcGFyYXRvcgAAoFgnaSJsZGUAAKBAItQkaGluU3BhY2UAoAogcgAA4DXYGd1wAGYAAOA12E3dYwByAADgNdix3GQiYXNoAACgqiKAAmNlZm9zAI4PkQ+VD5kPng/pIXJjdGHkIWdlAKDAInIAAOA12BrdcABmAADgNdhO3WMAcgAA4DXYstwAAmZpb3OqD64Prw+0D3IAAOA12BvdnmNwAGYAAOA12E/dYwByAADgNdiz3IAEQUlVYWNmb3N1AMgPyw/OD9EP2A/gD+QP6Q/uD2MAeQAvZGMAeQAHZGMAeQAuZGMAdQB0AGUAO4DdAN1AAAFpedwP3w9yAGMAdmErZHIAAOA12BzdcABmAADgNdhQ3WMAcgAA4DXYtNxtAGwAeGEABEhhY2RlZm9z/g8BEAUQDRAQEB0QIBAkEGMAeQAWZGMidXRlAHlhAAFheQkQDBDyIW9ufWEXZG8AdAB7YfIBFRAAABwQbwBXAGkAZAB0AOgAVAhhAJZjcgAAoCghcABmAACgJCFjAHIAAOA12LXc4QtCEEkQTRAAAGcQbRByEAAAAAAAAAAAeRCKEJcQ8hD9EAAAGxEhETIROREAAD4RYwB1AHQAZQA7gOEA4UByImV2ZQADYYCiPiJFZGl1eQBWEFkQWxBgEGUQAOA+IjMDAKA/InIAYwA7gOIA4kB0AGUAO4C0ALRAMGRsAGkAZwA7gOYA5kByoGEgAOA12B7dcgBhAHYAZQA7gOAA4EAAAWVwfBCGEAABZnCAEIQQ8yF5bQCgNSHoAIMQaABhALFjAAFhcI0QWwAAAWNskRCTEHIAAWFnAACgPypkApwQAAAAALEQAKInImFkc3ajEKcQqRCuEG4AZAAAoFUqAKBcKmwib3BlAACgWCoAoFoqAKMgImVsbXJzersQvRDAEN0Q5RDtEACgpCllAACgICJzAGQAYaAhImEEzhDQENIQ1BDWENgQ2hDcEACgqCkAoKkpAKCqKQCgqykAoKwpAKCtKQCgrikAoK8pdAB2oB8iYgBkoL4iAKCdKQABcHTpEOwQaAAAoCIixWDhIXJyAKB8IwABZ3D1EPgQbwBuAAVhZgAA4DXYUt0Ao0giRWFlaW9wBxEJEQ0RDxESERQRAKBwKuMhaXIAoG8qAKBKImQAAKBLInMAJ2DyIW94ZaBIIvEADhFpAG4AZwA7gOUA5UCAAWN0eQAmESoRKxFyAADgNdi23CpgbQBwAGWgSCLxAPgBaQBsAGQAZQA7gOMA40BtAGwAO4DkAORAAAFjaUERRxFvAG4AaQBuAPQA6AFuAHQAAKARKgAITmFiY2RlZmlrbG5vcHJzdWQRaBGXEZ8RpxGrEdIR1hErEjASexKKEn0RThNbE3oTbwB0AACg7SoAAWNybBGJEWsAAAJjZXBzdBF4EX0RghHvIW5nAKBMInAjc2lsb24A9mNyImltZQAAoDUgaQBtAGWgPSJxAACgzSJ2AY0RkRFlAGUAAKC9ImUAZABnoAUjZQAAoAUjcgBrAHSgtSPiIXJrAKC2IwABb3mjEaYRbgDnAHcRMWTxIXVvAKAeIIACY21wcnQAtBG5Eb4RwRHFEeEhdXPloDUi5ABwInR5dgAAoLApcwDpAH0RbgBvAPUA6gCAAWFodwDLEcwRzhGyYwCgNiHlIWVuAKBsInIAAOA12B/dZwCAA2Nvc3R1dncA4xHyEQUSEhIhEiYSKRKAAWFpdQDpEesR7xHwAKMFcgBjAACg7yVwAACgwyKAAWRwdAD4EfwRABJvAHQAAKAAKuwhdXMAoAEqaSJtZXMAAKACKnECCxIAAAAADxLjIXVwAKAGKmEAcgAAoAUm8iNpYW5nbGUAAWR1GhIeEu8hd24AoL0lcAAAoLMlcCJsdXMAAKAEKmUA5QBCD+UAkg9hInJvdwAAoA0pgAFha28ANhJoEncSAAFjbjoSZRJrAIABbHN0AEESRxJNEm8jemVuZ2UAAKDrKXEAdQBhAHIA5QBcBPIjaWFuZ2xlgKG0JWRscgBYElwSYBLvIXduAKC+JeUhZnQAoMIlaSJnaHQAAKC4JWsAAKAjJLEBbRIAAHUSsgFxEgAAcxIAoJIlAKCRJTQAAKCTJWMAawAAoIglAAFlb38ShxJx4D0A5SD1IWl2AOBhIuUgdAAAoBAjAAJwdHd4kRKVEpsSnxJmAADgNdhT3XSgpSJvAG0AAKClIvQhaWUAoMgiAAZESFVWYmRobXB0dXayEsES0RLgEvcS+xIKExoTHxMjEygTNxMAAkxSbHK5ErsSvRK/EgCgVyUAoFQlAKBWJQCgUyUAolAlRFVkdckSyxLNEs8SAKBmJQCgaSUAoGQlAKBnJQACTFJsctgS2hLcEt4SAKBdJQCgWiUAoFwlAKBZJQCjUSVITFJobHLrEu0S7xLxEvMS9RIAoGwlAKBjJQCgYCUAoGslAKBiJQCgXyVvAHgAAKDJKQACTFJscgITBBMGEwgTAKBVJQCgUiUAoBAlAKAMJQCiACVEVWR1EhMUExYTGBMAoGUlAKBoJQCgLCUAoDQlaSJudXMAAKCfIuwhdXMAoJ4iaSJtZXMAAKCgIgACTFJsci8TMRMzEzUTAKBbJQCgWCUAoBglAKAUJQCjAiVITFJobHJCE0QTRhNIE0oTTBMAoGolAKBhJQCgXiUAoDwlAKAkJQCgHCUAAWV2UhNVE3YA5QD5AGIAYQByADuApgCmQAACY2Vpb2ITZhNqE24TcgAA4DXYt9xtAGkAAKBPIG0A5aA9IogRbAAAoVwAYmh0E3YTAKDFKfMhdWIAoMgnbAF+E4QTbABloCIgdAAAoCIgcAAAoU4iRWWJE4sTAKCuKvGgTyI8BeEMqRMAAN8TABQDFB8UAAAjFDQUAAAAAIUUAAAAAI0UAAAAANcU4xT3FPsUAACIFQAAlhWAAWNwcgCuE7ET1RP1IXRlB2GAoikiYWJjZHMAuxO/E8QTzhPSE24AZAAAoEQqciJjdXAAAKBJKgABYXXIE8sTcAAAoEsqcAAAoEcqbwB0AACgQCoA4CkiAP4AAWVv2RPcE3QAAKBBIO4ABAUAAmFlaXXlE+8T9RP4E/AB6hMAAO0TcwAAoE0qbwBuAA1hZABpAGwAO4DnAOdAcgBjAAlhcABzAHOgTCptAACgUCpvAHQAC2GAAWRtbgAIFA0UEhRpAGwAO4C4ALhAcCJ0eXYAAKCyKXQAAIGiADtlGBQZFKJAcgBkAG8A9ABiAXIAAOA12CDdgAFjZWkAKBQqFDIUeQBHZGMAawBtoBMn4SFyawCgEyfHY3IAAKPLJUVjZWZtcz8UQRRHFHcUfBSAFACgwykAocYCZWxGFEkUcQAAoFciZQBhAlAUAAAAAGAUciJyb3cAAAFsclYUWhTlIWZ0AKC6IWkiZ2h0AACguyGAAlJTYWNkAGgUaRRrFG8UcxSuYACgyCRzAHQAAKCbIukhcmMAoJoi4SFzaACgnSJuImludAAAoBAqaQBkAACg7yrjIWlyAKDCKfUhYnN1oGMmaQB0AACgYybsApMUmhS2FAAAwxRvAG4AZaA6APGgVCKrAG0CnxQAAAAAoxRhAHSgLABAYAChASJmbKcUqRTuABMNZQAAAW14rhSyFOUhbnQAoAEiZQDzANIB5wG6FAAAwBRkoEUibwB0AACgbSpuAPQAzAGAAWZyeQDIFMsUzhQA4DXYVN1vAOQA1wEAgakAO3MeAdMUcgAAoBchAAFhb9oU3hRyAHIAAKC1IXMAcwAAoBcnAAFjdeYU6hRyAADgNdi43AABYnDuFPIUZaDPKgCg0SploNAqAKDSKuQhb3QAoO8igANkZWxwcnZ3AAYVEBUbFSEVRBVlFYQV4SFycgABbHIMFQ4VAKA4KQCgNSlwAhYVAAAAABkVcgAAoN4iYwAAoN8i4SFycnCgtiEAoD0pgKIqImJjZG9zACsVMBU6FT4VQRVyImNhcAAAoEgqAAFhdTQVNxVwAACgRipwAACgSipvAHQAAKCNInIAAKBFKgDgKiIA/gACYWxydksVURVuFXMVcgByAG2gtyEAoDwpeQCAAWV2dwBYFWUVaRVxAHACXxUAAAAAYxVyAGUA4wAXFXUA4wAZFWUAZQAAoM4iZSJkZ2UAAKDPImUAbgA7gKQApEBlI2Fycm93AAABbHJ7FX8V5SFmdACgtiFpImdodAAAoLchZQDkAG0VAAFjaYsVkRVvAG4AaQBuAPQAkwFuAHQAAKAxImwiY3R5AACgLSOACUFIYWJjZGVmaGlqbG9yc3R1d3oAuBW7Fb8V1RXgFegV+RUKFhUWHxZUFlcWZRbFFtsW7xb7FgUXChdyAPIAtAJhAHIAAKBlKQACZ2xyc8YVyhXOFdAV5yFlcgCgICDlIXRoAKA4IfIA9QxoAHagECAAoKMiawHZFd4VYSJyb3cAAKAPKWEA4wBfAgABYXnkFecV8iFvbg9hNGQAoUYhYW/tFfQVAAFnciEC8RVyAACgyiF0InNlcQAAoHcqgAFnbG0A/xUCFgUWO4CwALBAdABhALRjcCJ0eXYAAKCxKQABaXIOFhIW8yFodACgfykA4DXYId1hAHIAAAFschsWHRYAoMMhAKDCIYACYWVnc3YAKBauAjYWOhY+Fm0AAKHEIm9zLhY0Fm4AZABzoMQi9SFpdACgZiZhIm1tYQDdY2kAbgAAoPIiAKH3AGlvQxZRFmQAZQAAgfcAO29KFksW90BuI3RpbWVzAACgxyJuAPgAUBZjAHkAUmRjAG8CXhYAAAAAYhZyAG4AAKAeI28AcAAAoA0jgAJscHR1dwBuFnEWdRaSFp4W7CFhciRgZgAA4DXYVd0AotkCZW1wc30WhBaJFo0WcQBkoFAibwB0AACgUSJpIm51cwAAoDgi7CF1cwCgFCLxInVhcmUAoKEiYgBsAGUAYgBhAHIAdwBlAGQAZwDlANcAbgCAAWFkaAClFqoWtBZyAHIAbwD3APUMbwB3AG4AYQByAHIAbwB3APMA8xVhI3Jwb29uAAABbHK8FsAWZQBmAPQAHBZpAGcAaAD0AB4WYgHJFs8WawBhAHIAbwD3AJILbwLUFgAAAADYFnIAbgAAoB8jbwBwAACgDCOAAWNvdADhFukW7BYAAXJ55RboFgDgNdi53FVkbAAAoPYp8iFvaxFhAAFkcvMW9xZvAHQAAKDxImkA5qC/JVsSAAFhaP8WAhdyAPIANQNhAPIA1wvhIm5nbGUAoKYpAAFjaQ4XEBd5AF9k5yJyYXJyAKD/JwAJRGFjZGVmZ2xtbm9wcXJzdHV4MRc4F0YXWxcyBF4XaRd5F40XrBe0F78X2RcVGCEYLRg1GEAYAAFEbzUXgRZvAPQA+BUAAWNzPBdCF3UAdABlADuA6QDpQPQhZXIAoG4qAAJhaW95TRdQF1YXWhfyIW9uG2FyAGOgViI7gOoA6kDsIW9uAKBVIk1kbwB0ABdhAAFEcmIXZhdvAHQAAKBSIgDgNdgi3XKhmipuF3QXYQB2AGUAO4DoAOhAZKCWKm8AdAAAoJgqgKGZKmlscwCAF4UXhxfuInRlcnMAoOcjAKATIWSglSpvAHQAAKCXKoABYXBzAJMXlheiF2MAcgATYXQAeQBzogUinxcAAAAAoRdlAHQAAKAFInAAMaADIDMBqRerFwCgBCAAoAUgAAFnc7AXsRdLYXAAAKACIAABZ3C4F7sXbwBuABlhZgAA4DXYVt2AAWFscwDFF8sXzxdyAHOg1SJsAACg4yl1AHMAAKBxKmkAAKG1A2x21RfYF28AbgC1Y/VjAAJjc3V24BfoF/0XEBgAAWlv5BdWF3IAYwAAoFYiaQLuFwAAAADwF+0ADQThIW50AAFnbPUX+Rd0AHIAAKCWKuUhc3MAoJUqgAFhZWkAAxgGGAoYbABzAD1gcwB0AACgXyJ2AESgYSJEAACgeCrwImFyc2wAoOUpAAFEYRkYHRhvAHQAAKBTInIAcgAAoHEpgAFjZGkAJxgqGO0XcgAAoC8hbwD0AIwCAAFhaDEYMhi3YzuA8ADwQAABbXI5GD0YbAA7gOsA60BvAACgrCCAAWNpcABGGEgYSxhsACFgcwD0ACwEAAFlb08YVxhjAHQAYQB0AGkAbwDuABoEbgBlAG4AdABpAGEAbADlADME4Ql1GAAAgRgAAIMYiBgAAAAAoRilGAAAqhgAALsYvhjRGAAA1xgnGWwAbABpAG4AZwBkAG8AdABzAGUA8QBlF3kARGRtImFsZQAAoEAmgAFpbHIAjRiRGJ0Y7CFpZwCgA/tpApcYAAAAAJoYZwAAoAD7aQBnAACgBPsA4DXYI93sIWlnAKAB++whaWcA4GYAagCAAWFsdACvGLIYthh0AACgbSZpAGcAAKAC+24AcwAAoLElbwBmAJJh8AHCGAAAxhhmAADgNdhX3QABYWvJGMwYbADsAGsEdqDUIgCg2SphI3J0aW50AACgDSoAAWFv2hgiGQABY3PeGB8ZsQPnGP0YBRkSGRUZAAAdGbID7xjyGPQY9xj5GAAA+xg7gL0AvUAAoFMhO4C8ALxAAKBVIQCgWSEAoFshswEBGQAAAxkAoFQhAKBWIbQCCxkOGQAAAAAQGTuAvgC+QACgVyEAoFwhNQAAoFghtgEZGQAAGxkAoFohAKBdITgAAKBeIWwAAKBEIHcAbgAAoCIjYwByAADgNdi73IAIRWFiY2RlZmdpamxub3JzdHYARhlKGVoZXhlmGWkZkhmWGZkZnRmgGa0ZxhnLGc8Z4BkjGmygZyIAoIwqgAFjbXAAUBlTGVgZ9SF0ZfVhbQBhAOSgswM6FgCghipyImV2ZQAfYQABaXliGWUZcgBjAB1hM2RvAHQAIWGAoWUibHFzAMYEcBl6GfGhZSLOBAAAdhlsAGEAbgD0AN8EgKF+KmNkbACBGYQZjBljAACgqSpvAHQAb6CAKmyggioAoIQqZeDbIgD+cwAAoJQqcgAA4DXYJN3noGsirATtIWVsAKA3IWMAeQBTZIChdyJFYWoApxmpGasZAKCSKgCgpSoAoKQqAAJFYWVztBm2Gb0ZwhkAoGkicABwoIoq8iFveACgiipxoIgq8aCIKrUZaQBtAACg5yJwAGYAAOA12FjdYQB2AOUAYwIAAWNp0xnWGXIAAKAKIW0AAKFzImVs3BneGQCgjioAoJAqAIM+ADtjZGxxco0E6xn0GfgZ/BkBGgABY2nvGfEZAKCnKnIAAKB6Km8AdAAAoNci0CFhcgCglSl1ImVzdAAAoHwqgAJhZGVscwAKGvQZFhrVBCAa8AEPGgAAFBpwAHIAbwD4AFkZcgAAoHgpcQAAAWxxxAQbGmwAZQBzAPMASRlpAO0A5AQAAWVuJxouGnIjdG5lcXEAAOBpIgD+xQAsGgAFQWFiY2Vma29zeUAaQxpmGmoabRqDGocalhrCGtMacgDyAMwCAAJpbG1yShpOGlAaVBpyAHMA8ABxD2YAvWBpAGwA9AASBQABZHJYGlsaYwB5AEpkAKGUIWN3YBpkGmkAcgAAoEgpAKCtIWEAcgAAoA8h6SFyYyVhgAFhbHIAcxp7Gn8a8iF0c3WgZSZpAHQAAKBlJuwhaXAAoCYg4yFvbgCguSJyAADgNdgl3XMAAAFld4wakRphInJvdwAAoCUpYSJyb3cAAKAmKYACYW1vcHIAnxqjGqcauhq+GnIAcgAAoP8h9CFodACgOyJrAAABbHKsGrMaZSRmdGFycm93AACgqSHpJGdodGFycm93AKCqIWYAAOA12Fnd4iFhcgCgFSCAAWNsdADIGswa0BpyAADgNdi93GEAcwDoAGka8iFvaydhAAFicNca2xr1IWxsAKBDIOghZW4AoBAg4Qr2GgAA/RoAAAgbExsaGwAAIRs7GwAAAAA+G2IbmRuVG6sbAACyG80b0htjAHUAdABlADuA7QDtQAChYyBpeQEbBhtyAGMAO4DuAO5AOGQAAWN4CxsNG3kANWRjAGwAO4ChAKFAAAFmcssCFhsA4DXYJt1yAGEAdgBlADuA7ADsQIChSCFpbm8AJxsyGzYbAAFpbisbLxtuAHQAAKAMKnQAAKAtIuYhaW4AoNwpdABhAACgKSHsIWlnM2GAAWFvcABDG1sbXhuAAWNndABJG0sbWRtyACthgAFlbHAAcQVRG1UbaQBuAOUAyAVhAHIA9AByBWgAMWFmAACgtyJlAGQAtWEAoggiY2ZvdGkbbRt1G3kb4SFyZQCgBSFpAG4AdKAeImkAZQAAoN0pZABvAPQAWxsAoisiY2VscIEbhRuPG5QbYQBsAACguiIAAWdyiRuNG2UAcgDzACMQ4wCCG2EicmhrAACgFyryIW9kAKA8KgACY2dwdJ8boRukG6gbeQBRZG8AbgAvYWYAAOA12FrdYQC5Y3UAZQBzAHQAO4C/AL9AAAFjabUbuRtyAADgNdi+3G4AAKIIIkVkc3bCG8QbyBvQAwCg+SJvAHQAAKD1Inag9CIAoPMiaaBiIOwhZGUpYesB1hsAANkbYwB5AFZkbAA7gO8A70AAA2NmbW9zdeYb7hvyG/Ub+hsFHAABaXnqG+0bcgBjADVhOWRyAADgNdgn3eEhdGg3YnAAZgAA4DXYW93jAf8bAAADHHIAAOA12L/c8iFjeVhk6yFjeVRkAARhY2ZnaGpvcxUcGhwiHCYcKhwtHDAcNRzwIXBhdqC6A/BjAAFleR4cIRzkIWlsN2E6ZHIAAOA12CjdciJlZW4AOGFjAHkARWRjAHkAXGRwAGYAAOA12FzdYwByAADgNdjA3IALQUJFSGFiY2RlZmdoamxtbm9wcnN0dXYAXhxtHHEcdRx5HN8cBx0dHTwd3B3tHfEdAR4EHh0eLB5FHrwewx7hHgkfPR9LH4ABYXJ0AGQcZxxpHHIA8gBvB/IAxQLhIWlsAKAbKeEhcnIAoA4pZ6BmIgCgiyphAHIAAKBiKWMJjRwAAJAcAACVHAAAAAAAAAAAAACZHJwcAACmHKgcrRwAANIc9SF0ZTph7SJwdHl2AKC0KXIAYQDuAFoG4iFkYbtjZwAAoegnZGyhHKMcAKCRKeUAiwYAoIUqdQBvADuAqwCrQHIAgKOQIWJmaGxwc3QAuhy/HMIcxBzHHMoczhxmoOQhcwAAoB8pcwAAoB0p6wCyGnAAAKCrIWwAAKA5KWkAbQAAoHMpbAAAoKIhAKGrKmFl1hzaHGkAbAAAoBkpc6CtKgDgrSoA/oABYWJyAOUc6RztHHIAcgAAoAwpcgBrAACgcicAAWFr8Rz4HGMAAAFla/Yc9xx7YFtgAAFlc/wc/hwAoIspbAAAAWR1Ax0FHQCgjykAoI0pAAJhZXV5Dh0RHRodHB3yIW9uPmEAAWRpFR0YHWkAbAA8YewAowbiAPccO2QAAmNxcnMkHScdLB05HWEAAKA2KXUAbwDyoBwgqhEAAWR1MB00HeghYXIAoGcpcyJoYXIAAKBLKWgAAKCyIQCiZCJmZ3FzRB1FB5Qdnh10AIACYWhscnQATh1WHWUdbB2NHXIicm93AHSgkCFhAOkAzxxhI3Jwb29uAAABZHVeHWId7yF3bgCgvSFwAACgvCHlJGZ0YXJyb3dzAKDHIWkiZ2h0AIABYWhzAHUdex2DHXIicm93APOglCGdBmEAcgBwAG8AbwBuAPMAzgtxAHUAaQBnAGEAcgByAG8A9wBlGugkcmVldGltZXMAoMsi8aFkIk0HAACaHWwAYQBuAPQAXgcAon0qY2Rnc6YdqR2xHbcdYwAAoKgqbwB0AG+gfypyoIEqAKCDKmXg2iIA/nMAAKCTKoACYWRlZ3MAwB3GHcod1h3ZHXAAcAByAG8A+ACmHG8AdAAAoNYicQAAAWdxzx3SHXQA8gBGB2cAdADyAHQcdADyAFMHaQDtAGMHgAFpbHIA4h3mHeod8yFodACgfClvAG8A8gDKBgDgNdgp3UWgdiIAoJEqYQH1Hf4dcgAAAWR1YB35HWygvCEAoGopbABrAACghCVjAHkAWWQAomoiYWNodAweDx4VHhkecgDyAGsdbwByAG4AZQDyAGAW4SFyZACgaylyAGkAAKD6JQABaW8hHiQe5CFvdEBh9SFzdGGgsCPjIWhlAKCwIwACRWFlczMeNR48HkEeAKBoInAAcKCJKvIhb3gAoIkqcaCHKvGghyo0HmkAbQAAoOYiAARhYm5vcHR3elIeXB5fHoUelh6mHqsetB4AAW5yVh5ZHmcAAKDsJ3IAAKD9IXIA6wCwBmcAgAFsbXIAZh52Hnse5SFmdAABYXKIB2weaQBnAGgAdABhAHIAcgBvAPcAkwfhInBzdG8AoPwnaQBnAGgAdABhAHIAcgBvAPcAmgdwI2Fycm93AAABbHKNHpEeZQBmAPQAxhxpImdodAAAoKwhgAFhZmwAnB6fHqIecgAAoIUpAOA12F3ddQBzAACgLSppIm1lcwAAoDQqYQGvHrMecwB0AACgFyLhAIoOZaHKJbkeRhLuIWdlAKDKJWEAcgBsoCgAdAAAoJMpgAJhY2htdADMHs8e1R7bHt0ecgDyAJ0GbwByAG4AZQDyANYWYQByAGSgyyEAoG0pAKAOIHIAaQAAoL8iAANhY2hpcXTrHu8e1QfzHv0eBh/xIXVvAKA5IHIAAOA12MHcbQDloXIi+h4AAPweAKCNKgCgjyoAAWJ19xwBH28AcqAYIACgGiDyIW9rQmEAhDwAO2NkaGlscXJCBhcfxh0gHyQfKB8sHzEfAAFjaRsfHR8AoKYqcgAAoHkqcgBlAOUAkx3tIWVzAKDJIuEhcnIAoHYpdSJlc3QAAKB7KgABUGk1HzkfYQByAACglillocMlAgdfEnIAAAFkdUIfRx9zImhhcgAAoEop6CFhcgCgZikAAWVuTx9WH3IjdG5lcXEAAOBoIgD+xQBUHwAHRGFjZGVmaGlsbm9wc3VuH3Ifoh+rH68ftx+7H74f5h/uH/MfBwj/HwsgxCFvdACgOiIAAmNscHJ5H30fiR+eH3IAO4CvAK9AAAFldIEfgx8AoEImZaAgJ3MAZQAAoCAnc6CmIXQAbwCAoaYhZGx1AJQfmB+cH28AdwDuAHkDZQBmAPQA6gbwAOkO6yFlcgCgriUAAW95ph+qH+0hbWEAoCkqPGThIXNoAKAUIOElc3VyZWRhbmdsZQCgISJyAADgNdgq3W8AAKAnIYABY2RuAMQfyR/bH3IAbwA7gLUAtUBhoiMi0B8AANMf1x9zAPQAKxFpAHIAAKDwKm8AdAA7gLcAt0B1AHMA4qESIh4TAADjH3WgOCIAoCoqYwHqH+0fcAAAoNsq8gB+GnAAbAB1APMACAgAAWRw9x/7H+UhbHMAoKciZgAA4DXYXt0AAWN0AyAHIHIAAOA12MLc8CFvcwCgPiJsobwDECAVIPQiaW1hcACguCJhAPAAEyAADEdMUlZhYmNkZWZnaGlqbG1vcHJzdHV2dzwgRyBmIG0geSCqILgg2iDeIBEhFSEyIUMhTSFQIZwhnyHSIQAiIyKLIrEivyIUIwABZ3RAIEMgAODZIjgD9uBrItIgBwmAAWVsdABNIF8gYiBmAHQAAAFhclMgWCByInJvdwAAoM0h6SRnaHRhcnJvdwCgziEA4NgiOAP24Goi0iBfCekkZ2h0YXJyb3cAoM8hAAFEZHEgdSDhIXNoAKCvIuEhc2gAoK4igAJiY25wdACCIIYgiSCNIKIgbABhAACgByL1IXRlRGFnAADgICLSIACiSSJFaW9wlSCYIJwgniAA4HAqOANkAADgSyI4A3MASWFyAG8A+AAyCnUAcgBhoG4mbADzoG4mmwjzAa8gAACzIHAAO4CgAKBAbQBwAOXgTiI4AyoJgAJhZW91eQDBIMogzSDWINkg8AHGIAAAyCAAoEMqbwBuAEhh5CFpbEZhbgBnAGSgRyJvAHQAAOBtKjgDcAAAoEIqPWThIXNoAKATIACjYCJBYWRxc3jpIO0g+SD+IAIhDCFyAHIAAKDXIXIAAAFocvIg9SBrAACgJClvoJch9wAGD28AdAAA4FAiOAN1AGkA9gC7CAABZWkGIQohYQByAACgKCntAN8I6SFzdPOgBCLlCHIAAOA12CvdAAJFZXN0/wgcISshLiHxoXEiIiEAABMJ8aFxIgAJAAAnIWwAYQBuAPQAEwlpAO0AGQlyoG8iAKBvIoABQWFwADghOyE/IXIA8gBeIHIAcgAAoK4hYQByAACg8ipzogsiSiEAAAAAxwtkoPwiAKD6ImMAeQBaZIADQUVhZGVzdABcIV8hYiFmIWkhkyGWIXIA8gBXIADgZiI4A3IAcgAAoJohcgAAoCUggKFwImZxcwBwIYQhjiF0AAABYXJ1IXohcgByAG8A9wBlIWkAZwBoAHQAYQByAHIAbwD3AD4h8aFwImAhAACKIWwAYQBuAPQAZwlz4H0qOAMAoG4iaQDtAG0JcqBuImkA5aDqIkUJaQDkADoKAAFwdKMhpyFmAADgNdhf3YCBrAA7aW4AriGvIcchrEBuAIChCSJFZHYAtyG6Ib8hAOD5IjgDbwB0AADg9SI4A+EB1gjEIcYhAKD3IgCg9iJpAHagDCLhAagJzyHRIQCg/iIAoP0igAFhb3IA2CHsIfEhcgCAoSYiYXN0AOAh5SHpIWwAbABlAOwAywhsAADg/SrlIADgAiI4A2wiaW50AACgFCrjoYAi9yEAAPohdQDlAJsJY+CvKjgDZaCAIvEAkwkAAkFhaXQHIgoiFyIeInIA8gBsIHIAcgAAoZshY3cRIhQiAOAzKTgDAOCdITgDZyRodGFycm93AACgmyFyAGkA5aDrIr4JgANjaGltcHF1AC8iPCJHIpwhTSJQIloigKGBImNlcgA2Iv0JOSJ1AOUABgoA4DXYw9zvIXJ0bQKdIQAAAABEImEAcgDhAOEhbQBloEEi8aBEIiYKYQDyAMsIcwB1AAABYnBWIlgi5QDUCeUA3wmAAWJjcABgInMieCKAoYQiRWVzAGci7glqIgDgxSo4A2UAdABl4IIi0iBxAPGgiCJoImMAZaCBIvEA/gmAoYUiRWVzAH8iFgqCIgDgxio4A2UAdABl4IMi0iBxAPGgiSKAIgACZ2lscpIilCKaIpwi7AAMCWwAZABlADuA8QDxQOcAWwlpI2FuZ2xlAAABbHKkIqoi5SFmdGWg6iLxAEUJaSJnaHQAZaDrIvEAvgltoL0DAKEjAGVzuCK8InIAbwAAoBYhcAAAoAcggARESGFkZ2lscnMAziLSItYi2iLeIugi7SICIw8j4SFzaACgrSLhIXJyAKAEKXAAAOBNItIg4SFzaACgrCIAAWV04iLlIgDgZSLSIADgPgDSIG4iZmluAACg3imAAUFldADzIvci+iJyAHIAAKACKQDgZCLSIHLgPADSIGkAZQAA4LQi0iAAAUF0BiMKI3IAcgAAoAMp8iFpZQDgtSLSIGkAbQAA4Dwi0iCAAUFhbgAaIx4jKiNyAHIAAKDWIXIAAAFociMjJiNrAACgIylvoJYh9wD/DuUhYXIAoCcpUxJqFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVCMAAF4jaSN/I4IjjSOeI8AUAAAAAKYjwCMAANoj3yMAAO8jHiQvJD8kRCQAAWNzVyNsFHUAdABlADuA8wDzQAABaXlhI2cjcgBjoJoiO4D0APRAPmSAAmFiaW9zAHEjdCN3I3EBeiNzAOgAdhTsIWFjUWF2AACgOCrvIWxkAKC8KewhaWdTYQABY3KFI4kjaQByAACgvykA4DXYLN1vA5QjAAAAAJYjAACcI24A22JhAHYAZQA7gPIA8kAAoMEpAAFibaEjjAphAHIAAKC1KQACYWNpdKwjryO6I70jcgDyAFkUAAFpcrMjtiNyAACgvinvIXNzAKC7KW4A5QDZCgCgwCmAAWFlaQDFI8gjyyNjAHIATWFnAGEAyWOAAWNkbgDRI9Qj1iPyIW9uv2MAoLYpdQDzAHgBcABmAADgNdhg3YABYWVsAOQj5yPrI3IAAKC3KXIAcAAAoLkpdQDzAHwBAKMoImFkaW9zdvkj/CMPJBMkFiQbJHIA8gBeFIChXSplZm0AAyQJJAwkcgBvoDQhZgAAoDQhO4CqAKpAO4C6ALpA5yFvZgCgtiJyAACgVipsIm9wZQAAoFcqAKBbKoABY2xvACMkJSQrJPIACCRhAHMAaAA7gPgA+EBsAACgmCJpAGwBMyQ4JGQAZQA7gPUA9UBlAHMAYaCXInMAAKA2Km0AbAA7gPYA9kDiIWFyAKA9I+EKXiQAAHokAAB8JJQkAACYJKkkAAAAALUkEQsAAPAkAAAAAAQleiUAAIMlcgCAoSUiYXN0AGUkbyQBCwCBtgA7bGokayS2QGwAZQDsABgDaQJ1JAAAAAB4JG0AAKDzKgCg/Sp5AD9kcgCAAmNpbXB0AIUkiCSLJJkSjyRuAHQAJWBvAGQALmBpAGwAAKAwIOUhbmsAoDEgcgAA4DXYLd2AAWltbwCdJKAkpCR2oMYD1WNtAGEA9AD+B24AZQAAoA4m9KHAA64kAAC0JGMjaGZvcmsAAKDUItZjAAFhdbgkxCRuAAABY2u9JMIkawBooA8hAKAOIfYAaRpzAACkKwBhYmNkZW1zdNMkIRPXJNsk4STjJOck6yTjIWlyAKAjKmkAcgAAoCIqAAFvdYsW3yQAoCUqAKByKm4AO4CxALFAaQBtAACgJip3AG8AAKAnKoABaXB1APUk+iT+JO4idGludACgFSpmAADgNdhh3W4AZAA7gKMAo0CApHoiRWFjZWlub3N1ABMlFSUYJRslTCVRJVklSSV1JQCgsypwAACgtyp1AOUAPwtjoK8qgKJ6ImFjZW5zACclLSU0JTYlSSVwAHAAcgBvAPgAFyV1AHIAbAB5AGUA8QA/C/EAOAuAAWFlcwA8JUElRSXwInByb3gAoLkqcQBxAACgtSppAG0AAKDoImkA7QBEC20AZQDzoDIgIguAAUVhcwBDJVclRSXwAEAlgAFkZnAATwtfJXElgAFhbHMAZSVpJW0l7CFhcgCgLiPpIW5lAKASI/UhcmYAoBMjdKAdIu8AWQvyIWVsAKCwIgABY2l9JYElcgAA4DXYxdzIY24iY3NwAACgCCAAA2Zpb3BzdZElKxuVJZolnyWkJXIAAOA12C7dcABmAADgNdhi3XIiaW1lAACgVyBjAHIAAOA12MbcgAFhZW8AqiW6JcAldAAAAWVpryW2JXIAbgBpAG8AbgDzABkFbgB0AACgFipzAHQAZaA/APEACRj0AG0LgApBQkhhYmNkZWZoaWxtbm9wcnN0dXgA4yXyJfYl+iVpJpAmpia9JtUm5ib4JlonaCdxJ3UnnietJ7EnyCfiJ+cngAFhcnQA6SXsJe4lcgDyAJkM8gD6AuEhaWwAoBwpYQByAPIA3BVhAHIAAKBkKYADY2RlbnFydAAGJhAmEyYYJiYmKyZaJgABZXUKJg0mAOA9IjEDdABlAFVhaQDjACAN7SJwdHl2AKCzKWcAgKHpJ2RlbAAgJiImJCYAoJIpAKClKeUA9wt1AG8AO4C7ALtAcgAApZIhYWJjZmhscHN0dz0mQCZFJkcmSiZMJk4mUSZVJlgmcAAAoHUpZqDlIXMAAKAgKQCgMylzAACgHinrALka8ACVHmwAAKBFKWkAbQAAoHQpbAAAoKMhAKCdIQABYWleJmImaQBsAACgGilvAG6gNiJhAGwA8wB2C4ABYWJyAG8mciZ2JnIA8gAvEnIAawAAoHMnAAFha3omgSZjAAABZWt/JoAmfWBdYAABZXOFJocmAKCMKWwAAAFkdYwmjiYAoI4pAKCQKQACYWV1eZcmmiajJqUm8iFvbllhAAFkaZ4moSZpAGwAV2HsAA8M4gCAJkBkAAJjbHFzrSawJrUmuiZhAACgNylkImhhcgAAoGkpdQBvAPKgHSCjAWgAAKCzIYABYWNnAMMm0iaUC2wAgKEcIWlwcwDLJs4migxuAOUAoAxhAHIA9ADaC3QAAKCtJYABaWxyANsm3ybjJvMhaHQAoH0pbwBvAPIANgwA4DXYL90AAWFv6ib1JnIAAAFkde8m8SYAoMEhbKDAIQCgbCl2oMED8WOAAWducwD+Jk4nUCdoAHQAAANhaGxyc3QKJxInISc1Jz0nRydyInJvdwB0oJIhYQDpAFYmYSNycG9vbgAAAWR1GiceJ28AdwDuAPAmcAAAoMAh5SFmdAABYWgnJy0ncgByAG8AdwDzAAkMYQByAHAAbwBvAG4A8wATBGklZ2h0YXJyb3dzAACgySFxAHUAaQBnAGEAcgByAG8A9wBZJugkcmVldGltZXMAoMwiZwDaYmkAbgBnAGQAbwB0AHMAZQDxABwYgAFhaG0AYCdjJ2YncgDyAAkMYQDyABMEAKAPIG8idXN0AGGgsSPjIWhlAKCxI+0haWQAoO4qAAJhYnB0fCeGJ4knmScAAW5ygCeDJ2cAAKDtJ3IAAKD+IXIA6wAcDIABYWZsAI8nkieVJ3IAAKCGKQDgNdhj3XUAcwAAoC4qaSJtZXMAAKA1KgABYXCiJ6gncgBnoCkAdAAAoJQp7yJsaW50AKASKmEAcgDyADwnAAJhY2hxuCe8J6EMwCfxIXVvAKA6IHIAAOA12MfcAAFidYAmxCdvAPKgGSCoAYABaGlyAM4n0ifWJ3IAZQDlAE0n7SFlcwCgyiJpAIChuSVlZmwAXAxjEt4n9CFyaQCgzinsInVoYXIAoGgpAKAeIWENBSgJKA0oSyhVKIYoAACLKLAoAAAAAOMo5ygAABApJCkxKW0pcSmHKaYpAACYKgAAAACxKmMidXRlAFthcQB1AO8ABR+ApHsiRWFjZWlucHN5ABwoHignKCooLygyKEEoRihJKACgtCrwASMoAAAlKACguCpvAG4AYWF1AOUAgw1koLAqaQBsAF9hcgBjAF1hgAFFYXMAOCg6KD0oAKC2KnAAAKC6KmkAbQAAoOki7yJsaW50AKATKmkA7QCIDUFkbwB0AGKixSKRFgAAAABTKACgZiqAA0FhY21zdHgAYChkKG8ocyh1KHkogihyAHIAAKDYIXIAAAFocmkoayjrAJAab6CYIfcAzAd0ADuApwCnQGkAO2D3IWFyAKApKW0AAAFpbn4ozQBuAHUA8wDOAHQAAKA2J3IA7+A12DDdIxkAAmFjb3mRKJUonSisKHIAcAAAoG8mAAFoeZkonChjAHkASWRIZHIAdABtAqUoAAAAAKgoaQDkAFsPYQByAGEA7ABsJDuArQCtQAABZ22zKLsobQBhAAChwwNmdroouijCY4CjPCJkZWdsbnByAMgozCjPKNMo1yjaKN4obwB0AACgairxoEMiCw5FoJ4qAKCgKkWgnSoAoJ8qZQAAoEYi7CF1cwCgJCrhIXJyAKByKWEAcgDyAPwMAAJhZWl07Sj8KAEpCCkAAWxz8Sj4KGwAcwBlAHQAbQDpAH8oaABwAACgMyrwImFyc2wAoOQpAAFkbFoPBSllAACgIyNloKoqc6CsKgDgrCoA/oABZmxwABUpGCkfKfQhY3lMZGKgLwBhoMQpcgAAoD8jZgAA4DXYZN1hAAABZHIoKRcDZQBzAHWgYCZpAHQAAKBgJoABY3N1ADYpRilhKQABYXU6KUApcABzoJMiAOCTIgD+cABzoJQiAOCUIgD+dQAAAWJwSylWKQChjyJlcz4NUCllAHQAZaCPIvEAPw0AoZAiZXNIDVspZQB0AGWgkCLxAEkNAKGhJWFmZilbBHIAZQFrKVwEAKChJWEAcgDyAAMNAAJjZW10dyl7KX8pgilyAADgNdjI3HQAbQDuAM4AaQDsAAYpYQByAOYAVw0AAWFyiimOKXIA5qAGJhESAAFhbpIpoylpImdodAAAAWVwmSmgKXAAcwBpAGwAbwDuANkXaADpAKAkcwCvYIACYmNtbnAArin8KY4NJSooKgCkgiJFZGVtbnByc7wpvinCKcgpzCnUKdgp3CkAoMUqbwB0AACgvSpkoIYibwB0AACgwyr1IWx0AKDBKgABRWXQKdIpAKDLKgCgiiLsIXVzAKC/KuEhcnIAoHkpgAFlaXUA4inxKfQpdAAAoYIiZW7oKewpcQDxoIYivSllAHEA8aCKItEpbQAAoMcqAAFicPgp+ikAoNUqAKDTKmMAgKJ7ImFjZW5zAAcqDSoUKhYqRihwAHAAcgBvAPgAIyh1AHIAbAB5AGUA8QCDDfEAfA2AAWFlcwAcKiIqPShwAHAAcgBvAPgAPChxAPEAOShnAACgaiYApoMiMTIzRWRlaGxtbnBzPCo/KkIqRSpHKlIqWCpjKmcqaypzKncqO4C5ALlAO4CyALJAO4CzALNAAKDGKgABb3NLKk4qdAAAoL4qdQBiAACg2CpkoIcibwB0AACgxCpzAAABb3VdKmAqbAAAoMknYgAAoNcq4SFycgCgeyn1IWx0AKDCKgABRWVvKnEqAKDMKgCgiyLsIXVzAKDAKoABZWl1AH0qjCqPKnQAAKGDImVugyqHKnEA8aCHIkYqZQBxAPGgiyJwKm0AAKDIKgABYnCTKpUqAKDUKgCg1iqAAUFhbgCdKqEqrCpyAHIAAKDZIXIAAAFocqYqqCrrAJUab6CZIfcAxQf3IWFyAKAqKWwAaQBnADuA3wDfQOELzyrZKtwq6SrsKvEqAAD1KjQrAAAAAAAAAAAAAEwrbCsAAHErvSsAAAAAAADRK3IC1CoAAAAA2CrnIWV0AKAWI8RjcgDrAOUKgAFhZXkA4SrkKucq8iFvbmVh5CFpbGNhQmRvAPQAIg5sInJlYwAAoBUjcgAA4DXYMd0AAmVpa2/7KhIrKCsuK/IBACsAAAkrZQAAATRm6g0EK28AcgDlAOsNYQBzorgDECsAAAAAEit5AG0A0WMAAWNuFislK2sAAAFhcxsrIStwAHAAcgBvAPgAFw5pAG0AAKA8InMA8AD9DQABYXMsKyEr8AAXDnIAbgA7gP4A/kDsATgrOyswG2QA5QBnAmUAcwCAgdcAO2JkAEMrRCtJK9dAYaCgInIAAKAxKgCgMCqAAWVwcwBRK1MraSvhAAkh4qKkIlsrXysAAAAAYytvAHQAAKA2I2kAcgAAoPEqb+A12GXdcgBrAACg2irhAHgociJpbWUAAKA0IIABYWlwAHYreSu3K2QA5QC+DYADYWRlbXBzdACFK6MrmiunK6wrsCuzK24iZ2xlAACitSVkbHFykCuUK5ornCvvIXduAKC/JeUhZnRloMMl8QACBwCgXCJpImdodABloLkl8QBdDG8AdAAAoOwlaSJudXMAAKA6KuwhdXMAoDkqYgAAoM0p6SFtZQCgOyrlInppdW0AoOIjgAFjaHQAwivKK80rAAFyecYrySsA4DXYydxGZGMAeQBbZPIhb2tnYQABaW/UK9creAD0ANERaCJlYWQAAAFsct4r5ytlAGYAdABhAHIAcgBvAPcAXQbpJGdodGFycm93AKCgIQAJQUhhYmNkZmdobG1vcHJzdHV3CiwNLBEsHSwnLDEsQCxLLFIsYix6LIQsjyzLLOgs7Sz/LAotcgDyAAkDYQByAACgYykAAWNyFSwbLHUAdABlADuA+gD6QPIACQ1yAOMBIywAACUseQBeZHYAZQBtYQABaXkrLDAscgBjADuA+wD7QENkgAFhYmgANyw6LD0scgDyANEO7CFhY3FhYQDyAOAOAAFpckQsSCzzIWh0AKB+KQDgNdgy3XIAYQB2AGUAO4D5APlAYQFWLF8scgAAAWxyWixcLACgvyEAoL4hbABrAACggCUAAWN0Zix2LG8CbCwAAAAAcyxyAG4AZaAcI3IAAKAcI28AcAAAoA8jcgBpAACg+CUAAWFsfiyBLGMAcgBrYTuAqACoQAABZ3CILIssbwBuAHNhZgAA4DXYZt0AA2FkaGxzdZksniynLLgsuyzFLHIAcgBvAPcACQ1vAHcAbgBhAHIAcgBvAPcA2A5hI3Jwb29uAAABbHKvLLMsZQBmAPQAWyxpAGcAaAD0AF0sdQDzAKYOaQAAocUDaGzBLMIs0mNvAG4AxWPwI2Fycm93cwCgyCGAAWNpdADRLOEs5CxvAtcsAAAAAN4scgBuAGWgHSNyAACgHSNvAHAAAKAOI24AZwBvYXIAaQAAoPklYwByAADgNdjK3IABZGlyAPMs9yz6LG8AdAAAoPAi7CFkZWlhaQBmoLUlAKC0JQABYW0DLQYtcgDyAMosbAA7gPwA/EDhIm5nbGUAoKcpgAdBQkRhY2RlZmxub3Byc3oAJy0qLTAtNC2bLZ0toS2/LcMtxy3TLdgt3C3gLfwtcgDyABADYQByAHag6CoAoOkqYQBzAOgA/gIAAW5yOC08LechcnQAoJwpgANla25wcnN0AJkpSC1NLVQtXi1iLYItYQBwAHAA4QAaHG8AdABoAGkAbgDnAKEXgAFoaXIAoSmzJFotbwBwAPQAdCVooJUh7wD4JgABaXVmLWotZwBtAOEAuygAAWJwbi14LXMjZXRuZXEAceCKIgD+AODLKgD+cyNldG5lcQBx4IsiAP4A4MwqAP4AAWhyhi2KLWUAdADhABIraSNhbmdsZQAAAWxyki2WLeUhZnQAoLIiaSJnaHQAAKCzInkAMmThIXNoAKCiIoABZWxyAKcttC24LWKiKCKuLQAAAACyLWEAcgAAoLsicQAAoFoi7CFpcACg7iIAAWJ0vC1eD2EA8gBfD3IAAOA12DPddAByAOkAlS1zAHUAAAFicM0t0C0A4IIi0iAA4IMi0iBwAGYAAOA12GfdcgBvAPAAWQt0AHIA6QCaLQABY3XkLegtcgAA4DXYy9wAAWJw7C30LW4AAAFFZXUt8S0A4IoiAP5uAAABRWV/LfktAOCLIgD+6SJnemFnAKCaKYADY2Vmb3BycwANLhAuJS4pLiMuLi40LukhcmN1YQABZGkULiEuAAFiZxguHC5hAHIAAKBfKmUAcaAnIgCgWSLlIXJwAKAYIXIAAOA12DTdcABmAADgNdho3WWgQCJhAHQA6ABqD2MAcgAA4DXYzNzjCuQRUC4AAFQuAABYLmIuAAAAAGMubS5wLnQuAAAAAIguki4AAJouJxIqEnQAcgDpAB0ScgAA4DXYNd0AAUFhWy5eLnIA8gDnAnIA8gCTB75jAAFBYWYuaS5yAPIA4AJyAPIAjAdhAPAAeh5pAHMAAKD7IoABZHB0APgReS6DLgABZmx9LoAuAOA12GnddQDzAP8RaQBtAOUABBIAAUFhiy6OLnIA8gDuAnIA8gCaBwABY3GVLgoScgAA4DXYzdwAAXB0nS6hLmwAdQDzACUScgDpACASAARhY2VmaW9zdbEuvC7ELsguzC7PLtQu2S5jAAABdXm2LrsudABlADuA/QD9QE9kAAFpecAuwy5yAGMAd2FLZG4AO4ClAKVAcgAA4DXYNt1jAHkAV2RwAGYAAOA12GrdYwByAADgNdjO3AABY23dLt8ueQBOZGwAO4D/AP9AAAVhY2RlZmhpb3N38y73Lv8uAi8MLxAvEy8YLx0vIi9jInV0ZQB6YQABYXn7Lv4u8iFvbn5hN2RvAHQAfGEAAWV0Bi8KL3QAcgDmAB8QYQC2Y3IAAOA12DfdYwB5ADZk5yJyYXJyAKDdIXAAZgAA4DXYa91jAHIAAOA12M/cAAFqbiYvKC8AoA0gagAAoAwg`),Bd=Rd(`AAJhZ2xxBwARABMAFQBtAg0AAAAAAA8AcAAmYG8AcwAnYHQAPmB0ADxg9SFvdCJg`);var Vd;(function(e){e[e.VALUE_LENGTH=49152]=`VALUE_LENGTH`,e[e.FLAG13=8192]=`FLAG13`,e[e.BRANCH_LENGTH=8064]=`BRANCH_LENGTH`,e[e.JUMP_TABLE=127]=`JUMP_TABLE`})(Vd||={});var Hd;(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`})(Hd||={});function Ud(e){return e>=Hd.ZERO&&e<=Hd.NINE}function Wd(e){return e>=Hd.UPPER_A&&e<=Hd.UPPER_F||e>=Hd.LOWER_A&&e<=Hd.LOWER_F}function Gd(e){return e>=Hd.UPPER_A&&e<=Hd.UPPER_Z||e>=Hd.LOWER_A&&e<=Hd.LOWER_Z||Ud(e)}function Kd(e){return e===Hd.EQUALS||Gd(e)}var qd;(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`})(qd||={});var Jd;(function(e){e[e.Legacy=0]=`Legacy`,e[e.Strict=1]=`Strict`,e[e.Attribute=2]=`Attribute`})(Jd||={});var Yd=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=qd.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Jd.Strict,this.runConsumed=0}startEntity(e){this.decodeMode=e,this.state=qd.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(e,t){switch(this.state){case qd.EntityStart:return e.charCodeAt(t)===Hd.NUM?(this.state=qd.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=qd.NamedEntity,this.stateNamedEntity(e,t));case qd.NumericStart:return this.stateNumericStart(e,t);case qd.NumericDecimal:return this.stateNumericDecimal(e,t);case qd.NumericHex:return this.stateNumericHex(e,t);case qd.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|32)===Hd.LOWER_X?(this.state=qd.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=qd.NumericDecimal,this.stateNumericDecimal(e,t))}stateNumericHex(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(Ud(n)||Wd(n)){let e=n<=Hd.NINE?n-Hd.ZERO:(n|32)-Hd.LOWER_A+10;this.result=this.result*16+e,this.consumed++,t++}else return this.emitNumericEntity(n,3)}return-1}stateNumericDecimal(e,t){for(;t<e.length;){let n=e.charCodeAt(t);if(Ud(n))this.result=this.result*10+(n-Hd.ZERO),this.consumed++,t++;else return this.emitNumericEntity(n,2)}return-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return(n=this.errors)==null||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Hd.SEMI)this.consumed+=1;else if(this.decodeMode===Jd.Strict)return 0;return this.emitCodePoint(Ld(this.result),this.consumed),this.errors&&(e!==Hd.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,r=n[this.treeIndex],i=(r&Vd.VALUE_LENGTH)>>14;for(;t<e.length;){if(i===0&&(r&Vd.FLAG13)!==0){let a=(r&Vd.BRANCH_LENGTH)>>7;if(this.runConsumed===0){let n=r&Vd.JUMP_TABLE;if(e.charCodeAt(t)!==n)return this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}for(;this.runConsumed<a;){if(t>=e.length)return-1;let r=this.runConsumed-1,i=n[this.treeIndex+1+(r>>1)],a=r%2==0?i&255:i>>8&255;if(e.charCodeAt(t)!==a)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();t++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),r=n[this.treeIndex],i=(r&Vd.VALUE_LENGTH)>>14}if(t>=e.length)break;let a=e.charCodeAt(t);if(a===Hd.SEMI&&i!==0&&(r&Vd.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);if(this.treeIndex=Zd(n,r,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===Jd.Attribute&&(i===0||Kd(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&Vd.VALUE_LENGTH)>>14,i!==0){if(a===Hd.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Jd.Strict&&(r&Vd.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}t++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,r=(n[t]&Vd.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),(e=this.errors)==null||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:r}=this;return this.emitCodePoint(t===1?r[e]&~(Vd.VALUE_LENGTH|Vd.FLAG13):r[e+1],n),t===3&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case qd.NamedEntity:return this.result!==0&&(this.decodeMode!==Jd.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case qd.NumericDecimal:return this.emitNumericEntity(0,2);case qd.NumericHex:return this.emitNumericEntity(0,3);case qd.NumericStart:return(e=this.errors)==null||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case qd.EntityStart:return 0}}};function Xd(e){let t=``,n=new Yd(e,e=>t+=Id(e));return function(e,r){let i=0,a=0;for(;(a=e.indexOf(`&`,a))>=0;){t+=e.slice(i,a),n.startEntity(r);let o=n.write(e,a+1);if(o<0){i=a+n.end();break}i=a+o,a=o===0?i+1:i}let o=t+e.slice(i);return t=``,o}}function Zd(e,t,n,r){let i=(t&Vd.BRANCH_LENGTH)>>7,a=t&Vd.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){let t=r-a;return t<0||t>=i?-1:e[n+t]-1}let o=i+1>>1,s=0,c=i-1;for(;s<=c;){let t=s+c>>>1,i=e[n+(t>>1)]>>(t&1)*8&255;if(i<r)s=t+1;else if(i>r)c=t-1;else return e[n+o+t]}return-1}const Qd=Xd(zd),$d=Xd(Bd);function ef(e,t=Jd.Legacy){return Qd(e,t)}function tf(e){return Qd(e,Jd.Attribute)}function nf(e){return $d(e,Jd.Strict)}String.prototype.codePointAt;function rf(e,t){return function(n){let r,i=0,a=``;for(;r=e.exec(n);)i!==r.index&&(a+=n.substring(i,r.index)),a+=t.get(r[0].charCodeAt(0)),i=r.index+1;return a+n.substring(i)}}const af=rf(/[&<>\u00A0]/g,new Map([[38,`&`],[60,`<`],[62,`>`],[160,` `]])),of=/[&"<>\t\n\r]/g,sf=/[&"]/g,cf=/&(?:nbsp|lt|gt|amp);/g,lf={"&":`&`,'"':`"`,"<":`<`,">":`>`," ":`	`,"\n":`
`,"\r":`
`},uf={"&":`&`,'"':`"`},df={" ":`\xA0`,"<":`<`,">":`>`,"&":`&`};var ff=class{static encodeXMLAttributeValue(e){return e===null?``:e.replace(of,e=>lf[e])}static decodeXMLAttributeValue(e){return e===null?``:nf(e)}static encodeHTMLAttributeValue(e){return e===null?``:e.replace(sf,e=>uf[e])}static decodeHTMLAttributeValue(e){return e===null?``:tf(e)}static encodeTextContent(e){return e===null?``:af(e)}static decodeTextContent(e){return e===null?``:e.replace(cf,e=>df[e])}static decodeHTMLEntities(e){return e===null?``:ef(e)}static decodeXMLEntities(e){return e===null?``:nf(e)}},pf=class{options={serializableShadowRoots:!1,shadowRoots:null,allShadowRoots:!1,excludeShadowRootTags:null};constructor(e){e&&(e.serializableShadowRoots&&(this.options.serializableShadowRoots=e.serializableShadowRoots),e.shadowRoots&&(this.options.shadowRoots=e.shadowRoots),e.allShadowRoots&&(this.options.allShadowRoots=e.allShadowRoots),e.excludeShadowRootTags&&(this.options.excludeShadowRootTags=e.excludeShadowRootTags))}serializeToString(e){switch(e[C]){case U.elementNode:let t=e,n=t[Ct],r=t[k],i=Pd[t[k]],a=n?`${n}:${r}`:r;if(i?.contentModel===X.noDescendants)return`<${a}${this.getAttributes(t)}>`;let o=``;if(t.shadowRoot&&(this.options.allShadowRoots||this.options.serializableShadowRoots&&t.shadowRoot[vr]||this.options.shadowRoots?.includes(t.shadowRoot))&&(!this.options.excludeShadowRootTags||!this.options.excludeShadowRootTags.includes(a))){o+=`<template shadowrootmode="${t.shadowRoot[xn]}"${t.shadowRoot[vr]?` shadowrootserializable=""`:``}>`;for(let e of t.shadowRoot[j])o+=this.serializeToString(e);o+=`</template>`}let s=a===`template`?e.content[j]:e[j];for(let e of s)o+=this.serializeToString(e);return`<${a}${this.getAttributes(t)}>${o}</${a}>`;case md.DOCUMENT_FRAGMENT_NODE:case md.DOCUMENT_NODE:let c=``;for(let t of e[j])c+=this.serializeToString(t);return c;case U.commentNode:return`<!--${e.textContent}-->`;case U.processingInstructionNode:return`<!--?${e.target} ${e.textContent}?-->`;case U.textNode:let l=e.parentElement;return l&&Pd[l[k]]?.contentModel===X.rawText?e.textContent:ff.encodeTextContent(e.textContent);case U.documentTypeNode:let u=e,d=u.publicId?` PUBLIC`:u.systemId?` SYSTEM`:``,f=u.publicId?` "${u.publicId}"`:``,p=u.systemId?` "${u.systemId}"`:``;return`<!DOCTYPE ${u.name}${d}${f}${p}>`}return``}getAttributes(e){let t=``,n=e[Ot][A];!n.has(`:is`)&&e[We]&&(t+=` is="`+ff.encodeHTMLAttributeValue(e[We])+`"`);for(let e of n.values()){let n=ff.encodeHTMLAttributeValue(e[v]);t+=` `+e[E]+`="`+n+`"`}return t}},mf={svg:{localName:`svg`,className:`SVGSVGElement`},animate:{localName:`animate`,className:`SVGAnimateElement`},animatemotion:{localName:`animateMotion`,className:`SVGAnimateMotionElement`},animatetransform:{localName:`animateTransform`,className:`SVGAnimateTransformElement`},circle:{localName:`circle`,className:`SVGCircleElement`},clippath:{localName:`clipPath`,className:`SVGClipPathElement`},defs:{localName:`defs`,className:`SVGDefsElement`},desc:{localName:`desc`,className:`SVGDescElement`},ellipse:{localName:`ellipse`,className:`SVGEllipseElement`},feblend:{localName:`feBlend`,className:`SVGFEBlendElement`},fecolormatrix:{localName:`feColorMatrix`,className:`SVGFEColorMatrixElement`},fecomponenttransfer:{localName:`feComponentTransfer`,className:`SVGFEComponentTransferElement`},fecomposite:{localName:`feComposite`,className:`SVGFECompositeElement`},feconvolvematrix:{localName:`feConvolveMatrix`,className:`SVGFEConvolveMatrixElement`},fediffuselighting:{localName:`feDiffuseLighting`,className:`SVGFEDiffuseLightingElement`},fedisplacementmap:{localName:`feDisplacementMap`,className:`SVGFEDisplacementMapElement`},fedistantlight:{localName:`feDistantLight`,className:`SVGFEDistantLightElement`},fedropshadow:{localName:`feDropShadow`,className:`SVGFEDropShadowElement`},feflood:{localName:`feFlood`,className:`SVGFEFloodElement`},fefunca:{localName:`feFuncA`,className:`SVGFEFuncAElement`},fefuncb:{localName:`feFuncB`,className:`SVGFEFuncBElement`},fefuncg:{localName:`feFuncG`,className:`SVGFEFuncGElement`},fefuncr:{localName:`feFuncR`,className:`SVGFEFuncRElement`},fegaussianblur:{localName:`feGaussianBlur`,className:`SVGFEGaussianBlurElement`},feimage:{localName:`feImage`,className:`SVGFEImageElement`},femerge:{localName:`feMerge`,className:`SVGFEMergeElement`},femergenode:{localName:`feMergeNode`,className:`SVGFEMergeNodeElement`},femorphology:{localName:`feMorphology`,className:`SVGFEMorphologyElement`},feoffset:{localName:`feOffset`,className:`SVGFEOffsetElement`},fepointlight:{localName:`fePointLight`,className:`SVGFEPointLightElement`},fespecularlighting:{localName:`feSpecularLighting`,className:`SVGFESpecularLightingElement`},fespotlight:{localName:`feSpotLight`,className:`SVGFESpotLightElement`},fetile:{localName:`feTile`,className:`SVGFETileElement`},feturbulence:{localName:`feTurbulence`,className:`SVGFETurbulenceElement`},filter:{localName:`filter`,className:`SVGFilterElement`},foreignobject:{localName:`foreignObject`,className:`SVGForeignObjectElement`},g:{localName:`g`,className:`SVGGElement`},image:{localName:`image`,className:`SVGImageElement`},line:{localName:`line`,className:`SVGLineElement`},lineargradient:{localName:`linearGradient`,className:`SVGLinearGradientElement`},marker:{localName:`marker`,className:`SVGMarkerElement`},mask:{localName:`mask`,className:`SVGMaskElement`},metadata:{localName:`metadata`,className:`SVGMetadataElement`},mpath:{localName:`mpath`,className:`SVGMPathElement`},path:{localName:`path`,className:`SVGPathElement`},pattern:{localName:`pattern`,className:`SVGPatternElement`},polygon:{localName:`polygon`,className:`SVGPolygonElement`},polyline:{localName:`polyline`,className:`SVGPolylineElement`},radialgradient:{localName:`radialGradient`,className:`SVGRadialGradientElement`},rect:{localName:`rect`,className:`SVGRectElement`},script:{localName:`script`,className:`SVGScriptElement`},set:{localName:`set`,className:`SVGSetElement`},stop:{localName:`stop`,className:`SVGStopElement`},style:{localName:`style`,className:`SVGStyleElement`},switch:{localName:`switch`,className:`SVGSwitchElement`},symbol:{localName:`symbol`,className:`SVGSymbolElement`},text:{localName:`text`,className:`SVGTextElement`},textpath:{localName:`textPath`,className:`SVGTextPathElement`},title:{localName:`title`,className:`SVGTitleElement`},tspan:{localName:`tspan`,className:`SVGTSpanElement`},use:{localName:`use`,className:`SVGUseElement`},view:{localName:`view`,className:`SVGViewElement`}};const hf=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->|--!>)|(<!)|(<\?)|(\/>)|(>)/gm,gf=/\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*([^"'=<>\\`\s]+)|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)\s*=\s*'([^']*)('{0,1})|\s*([a-zA-Z0-9-_:.$@?\\<\[\]]+)/gm,_f=/"([^"]+)"/gm,vf=/\s+/,yf=/^\s+/;var bf;(function(e){e.any=`any`,e.startTag=`startTag`,e.comment=`comment`,e.documentType=`documentType`,e.processingInstruction=`processingInstruction`,e.rawTextElement=`rawTextElement`})(bf||={});var xf;(function(e){e[e.root=0]=`root`,e[e.doctype=1]=`doctype`,e[e.documentElement=2]=`documentElement`,e[e.head=3]=`head`,e[e.additionalHeadWithoutBody=4]=`additionalHeadWithoutBody`,e[e.body=5]=`body`,e[e.afterBody=6]=`afterBody`})(xf||={});var Sf=class{window;evaluateScripts=!1;isTemplateDocumentFragment=!1;rootNode=null;rootDocument=null;nodeStack=[];tagNameStack=[];documentStructure=null;startTagIndex=0;markupRegExp=null;nextElement=null;currentNode=null;readState=bf.any;constructor(e,t){this.window=e,t?.evaluateScripts&&(this.evaluateScripts=!0),t?.isTemplateDocumentFragment&&(this.isTemplateDocumentFragment=!0)}parse(e,t){if(this.rootNode=t||this.window.document.createDocumentFragment(),this.rootDocument=this.rootNode[C]===U.documentNode?this.rootNode:this.window.document,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=bf.any,this.documentStructure=null,this.startTagIndex=0,this.markupRegExp=new RegExp(hf),this.rootNode[C]===U.documentNode){let{doctype:e,documentElement:t,head:n,body:r}=this.rootNode;if(!t||!n||!r)throw Error(`Failed to parse HTML: The root node must have "documentElement", "head" and "body".
|
|
69
|
+
|
|
70
|
+
We should not end up here and it is therefore a bug in Happy DOM. Please report this issue.`);this.documentStructure={nodes:{doctype:e||null,documentElement:t,head:n,body:r},level:xf.root}}if(this.rootNode instanceof this.window.HTMLHtmlElement){let e=this.rootDocument.createElement(`head`),t=this.rootDocument.createElement(`body`);for(;this.rootNode[j].length>0;)this.rootNode[Fn](this.rootNode[j][this.rootNode[j].length-1]);this.rootNode[Pn](e),this.rootNode[Pn](t),this.documentStructure={nodes:{doctype:null,documentElement:this.rootNode,head:e,body:t},level:xf.documentElement}}let n,r=0;for(e=String(e);n=this.markupRegExp.exec(e);){switch(this.readState){case bf.any:n.index!==r&&(n[1]||n[2]||n[3]||n[4]||n[5]!==void 0||n[6])&&this.parsePlainText(e.substring(r,n.index)),n[1]?(this.nextElement=this.getStartTagElement(n[1]),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=bf.startTag):n[2]?this.parseEndTag(n[2]):n[3]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=bf.comment):n[5]===void 0?n[6]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=bf.processingInstruction):this.parsePlainText(e.substring(r,this.markupRegExp.lastIndex)):(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=bf.documentType);break;case bf.startTag:if(n[7]||n[8]||n[2])if(this.nextElement){let t=e.substring(this.startTagIndex,n[2]?this.markupRegExp.lastIndex-1:n.index),r=!!n[7];this.parseEndOfStartTag(t,r)}else this.readState=bf.any;break;case bf.comment:n[4]&&this.parseComment(e.substring(this.startTagIndex,n.index));break;case bf.documentType:(n[7]||n[8])&&this.parseDocumentType(e.substring(this.startTagIndex,n.index));break;case bf.processingInstruction:(n[7]||n[8])&&this.parseComment(`?`+e.substring(this.startTagIndex,n.index));break;case bf.rawTextElement:n[2]&&this.parseRawTextElementContent(n[2],e.substring(this.startTagIndex,n.index));break}r=this.markupRegExp.lastIndex}return r!==e.length&&this.currentNode&&this.parsePlainText(e.substring(r)),this.rootNode}parsePlainText(e){if(this.documentStructure){let t=this.documentStructure.level,{documentElement:n,head:r,body:i}=this.documentStructure.nodes,a=(this.currentNode===this.rootNode||this.currentNode===n)&&t<xf.head&&i[Yn].length===0?e.replace(yf,``):e;if(a){let o=this.rootDocument.createTextNode(ff.decodeHTMLEntities(a));this.currentNode===r&&t===xf.additionalHeadWithoutBody?n[In](o,i,!0):this.currentNode===this.rootNode||this.currentNode===n||this.currentNode===r&&t>=xf.body?t===xf.head?n[In](o,i,!0):i.lastChild?.[C]===U.textNode?i.lastChild[Ae]+=e:i[Pn](o,!0):this.currentNode[Pn](o,!0)}}else{let t=this.rootDocument.createTextNode(ff.decodeHTMLEntities(e));this.currentNode[Pn](t,!0)}}parseEndOfStartTag(e,t){if(e&&(!this.documentStructure||this.nextElement!==this.documentStructure.nodes.head||this.documentStructure.level<xf.body)){let t=new RegExp(gf),n;for(;n=t.exec(e);)if(n[1]&&n[2]||n[3]&&n[5]===`"`||n[6]&&n[8]===`'`||n[9]){let e=n[1]||n[3]||n[6]||n[9]||``,t=n[2]||n[4]||n[7]||``,r=t?ff.decodeHTMLAttributeValue(t):``,i=this.nextElement[Ot];if(this.nextElement[T]===Pl.svg){let t=e.split(`:`),n=null;switch(t[0]){case`xmlns`:n=!t[1]||t[1]===`xlink`?Pl.xmlns:null;break;case`xlink`:n=Pl.xlink;break}if(!i.getNamedItemNS(n,t[1]??e)){let a=pd.createNode(this.rootDocument,this.window.Attr);a[T]=n,a[E]=e,a[k]=n&&t[1]?t[1]:e,a[Ct]=n&&t[1]?t[0]:null,a[v]=r,i[or](a)}}else if(!i.getNamedItem(e)){let t=this.rootDocument.createAttribute(e);t[v]=r,i[or](t)}this.startTagIndex+=n[0].length}else if(!n[1]&&(n[3]&&!n[5]||n[6]&&!n[8]))return}let n=this.nextElement[w],r=n.toLowerCase(),i=Pd[r],a=null;for(;a!==this.rootNode;){let e=this.currentNode[w]?.toLowerCase(),t=e?Pd[e]:null;if(a===this.currentNode)throw Error(`Failed to parse HTML: The parser is stuck in an infinite loop. Please report this issue.`);if(a=this.currentNode,i?.contentModel===X.noFirstLevelSelfDescendants&&this.tagNameStack[this.tagNameStack.length-1]===n||t?.contentModel===X.textOrComments||t?.contentModel===X.noForbiddenFirstLevelDescendants&&t?.forbiddenDescendants?.includes(r)||t?.contentModel===X.permittedDescendants&&!t?.permittedDescendants?.includes(r)&&(!i||!i.addPermittedParent||Pd[i.addPermittedParent].permittedParents&&!Pd[i.addPermittedParent].permittedParents.includes(e)||Pd[i.addPermittedParent].permittedDescendants&&!Pd[i.addPermittedParent].permittedDescendants.includes(r))){if(t?.contentModel===X.permittedDescendants&&t.moveForbiddenDescendant&&!t.moveForbiddenDescendant.exclude.includes(r)){let e=this.currentNode;for(;e&&!(!e.parentNode||!Pd[e.parentNode[k]]?.permittedDescendants||Pd[e.parentNode[k]]?.permittedDescendants?.includes(r));)e=e.parentNode;e&&e.parentNode?e.parentNode.insertBefore(this.nextElement,e):e.appendChild(this.nextElement),this.startTagIndex=this.markupRegExp.lastIndex,this.readState=bf.any;return}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(i?.contentModel===X.noSelfDescendants&&this.tagNameStack.includes(n))for(;this.currentNode!==this.rootNode;){if(this.currentNode[w]===n){this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode;break}this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode}else if(!this.isTemplateDocumentFragment&&i?.permittedParents&&!i.permittedParents.includes(e)){if(!i.addPermittedParent||Pd[i.addPermittedParent].permittedParents&&!Pd[i.addPermittedParent].permittedParents.includes(e)||Pd[i.addPermittedParent].permittedDescendants&&!Pd[i.addPermittedParent].permittedDescendants.includes(r)){this.readState=bf.any,this.startTagIndex=this.markupRegExp.lastIndex;return}let t=this.rootDocument.createElement(i.addPermittedParent);this.currentNode[Pn](t,!0),this.nodeStack.push(t),this.tagNameStack.push(t[w]),this.currentNode=t}else break}if(this.documentStructure){let{documentElement:e,head:t,body:n}=this.documentStructure.nodes,r=this.documentStructure.level;(!i||i.contentModel!==X.rawText)&&this.nextElement!==e&&this.nextElement!==t&&this.nextElement!==n&&(e&&(this.currentNode===this.rootNode||this.currentNode===e||this.currentNode===t&&r>=xf.body)?(r<xf.body&&(this.documentStructure.level=xf.afterBody),n[Pn](this.nextElement,!0)):this.currentNode[Pn](this.nextElement,!0))}else this.currentNode[Pn](this.nextElement,!0);!this.documentStructure||this.nextElement!==this.documentStructure.nodes.body||this.documentStructure.level<=xf.body?(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(n),this.documentStructure&&this.nextElement===this.documentStructure.nodes.body&&(this.documentStructure.level=xf.afterBody),i?.contentModel===X.noDescendants||t&&this.currentNode[T]===Pl.svg?(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=bf.any):this.readState=i?.contentModel===X.rawText?bf.rawTextElement:bf.any):this.readState=bf.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(e){let t=this.currentNode[T]===Pl.html?zl.asciiUpperCase(e):mf[zl.asciiLowerCase(e)]?.localName||e,n=this.tagNameStack.lastIndexOf(t);n!==-1&&(this.nodeStack.splice(n,this.nodeStack.length-n),this.tagNameStack.splice(n,this.tagNameStack.length-n),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode)}parseComment(e){let t=this.rootDocument.createComment(ff.decodeHTMLEntities(e));if(this.documentStructure){let e=this.documentStructure.level,{documentElement:n,head:r,body:i}=this.documentStructure.nodes,a=null;this.currentNode===this.rootNode&&e===xf.root?a=n:this.currentNode===n&&e===xf.documentElement?a=r:this.currentNode===n&&e===xf.head&&(a=i),this.currentNode[In](t,a,!0)}else this.currentNode[Pn](t,!0);this.readState=bf.any}parseDocumentType(e){let t=ff.decodeHTMLEntities(e);if(this.documentStructure){let{doctype:e}=this.documentStructure.nodes,n=this.getDocumentType(t);n?this.currentNode===this.rootNode&&this.documentStructure.level===xf.root&&(e?(e[E]=n.name,e[Ut]=n.publicId,e[Wt]=n.systemId):(e=this.rootNode.implementation.createDocumentType(n.name,n.publicId,n.systemId),this.rootNode.insertBefore(e,this.rootNode.documentElement)),this.documentStructure.level=xf.doctype):this.parseComment(t)}else this.getDocumentType(t)||this.parseComment(t);this.readState=bf.any}parseRawTextElementContent(e,t){let n=zl.asciiUpperCase(e);if(n!==this.currentNode[w])return;(n===`SCRIPT`||n===`LINK`)&&(this.currentNode[ts]=!this.evaluateScripts),this.currentNode[Pn](this.rootDocument.createTextNode(t),!0);let r=this.currentNode;if(this.nodeStack.pop(),this.tagNameStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,this.readState=bf.any,this.documentStructure){let{documentElement:e,body:t}=this.documentStructure.nodes;e&&(this.currentNode===this.rootNode||this.currentNode===e)?t[Pn](r,!0):this.currentNode[Pn](r,!0)}else this.currentNode[Pn](r,!0)}getStartTagElement(e){let t=zl.asciiLowerCase(e),n=this.currentNode[T];if(t===`svg`)return this.rootDocument.createElementNS(Pl.svg,`svg`);if(n===Pl.svg)return this.rootDocument.createElementNS(Pl.svg,mf[t]?.localName||e);switch(t){case`html`:return this.documentStructure?(this.documentStructure.level<xf.documentElement&&(this.documentStructure.level=xf.documentElement),this.documentStructure.nodes.documentElement??null):null;case`head`:return this.documentStructure?(this.documentStructure.level<xf.head?this.documentStructure.level=xf.head:this.documentStructure.level===xf.head&&(this.documentStructure.level=xf.additionalHeadWithoutBody),this.documentStructure.nodes.head??null):null;case`body`:return this.documentStructure?(this.documentStructure.level<xf.body&&(this.documentStructure.level=xf.body),this.documentStructure.nodes.body??null):null;default:return this.rootDocument.createElementNS(Pl.html,t)}}getDocumentType(e){if(!e.toUpperCase().startsWith(`DOCTYPE`))return null;let t=e.split(vf);if(t.length<=1)return null;let n=t.slice(1).join(` `),r=[],i=new RegExp(_f,`gm`),a=n.toUpperCase().includes(`PUBLIC`),o;for(;o=i.exec(n);)r.push(o[1]);let s=a&&r[0]||``,c=a?r[1]||``:r[0]||``;return{name:t[1].toLowerCase(),publicId:s,systemId:c}}};const Cf=/[\x00-\x1F\x7F\x80-\x9F "\'><=\/\uFDD0-\uFDEF\uFFFE\uFFFF\u1FFFE\u1FFFF\u2FFFE\u2FFFF\u3FFFE\u3FFFF\u4FFFE\u4FFFF\u5FFFE\u5FFFF\u6FFFE\u6FFFF\u7FFFE\u7FFFF\u8FFFE\u8FFFF\u9FFFE\u9FFFF\uAFFFE\uAFFFF\uBFFFE\uBFFFF\uCFFFE\uCFFFF\uDFFFE\uDFFFF\uEFFFE\uEFFFF\uFFFFE\uFFFFF\u10FFFE\u10FFFF]/;var wf=class{static validateAttributeName(e,t,n){let{method:r,instance:i}=n;if(t===`text/html`){let t=String(e).toLowerCase();if(Cf.test(t)||t.length===0||t[0]===`-`)throw new gs(`Uncaught InvalidCharacterError: Failed to execute '${r}' on '${i}': '${e}' is not a valid attribute name.`,H.invalidCharacterError)}}},Z=class{static getEventListener(e,t){let n=e[V].get(t);if(n)return n;let r=e[g][je];if(!r)return null;let i=new Y(r).getSettings();if(!i||!i.enableJavaScriptEvaluation)return null;let a=e.getAttribute(t);if(!a)return null;let o=`(function anonymous($happy_dom, event) {`;i&&!i.disableErrorCapturing&&i.errorCapture===Is.tryAndCatch&&(o+=`try {
|
|
71
|
+
`),o+=a,i&&!i.disableErrorCapturing&&i.errorCapture===Is.tryAndCatch&&(o+=`} catch(e) { $happy_dom.dispatchError(e); }`),o+=`})`;let s=null;try{s=r[Fe](o,{filename:r.location.href}).bind(e,{dispatchError:r[zo].bind(r)})}catch(n){let a=new r.SyntaxError(`Failed to read the '${t}' property from '${e.constructor.name}': ${n.message}`);if(i.disableErrorCapturing||i.errorCapture!==Is.tryAndCatch)throw a;return r[zo](a),null}return s&&e[V].set(t,s),s}},Tf=class extends md{static[w]=null;static[k]=null;static[T]=null;[be]=null;[We]=null;[C]=U.elementNode;[Ct]=null;[lt]=null;[wt]=0;[Tt]=0;[Et]=0;[Dt]=0;[Ot]=new jd(this);[kt]=null;[ye]=null;[er]=null;[xt]=new Set;[V]=new Map;constructor(){super(),this[w]||(this[w]=null),this[k]||(this[k]=null),this[T]||(this[T]=null)}get onfullscreenerror(){return Z.getEventListener(this,`onfullscreenerror`)}set onfullscreenerror(e){this[V].set(`onfullscreenerror`,e)}get onfullscreenchange(){return Z.getEventListener(this,`onfullscreenchange`)}set onfullscreenchange(e){this[V].set(`onfullscreenchange`,e)}get onbeforecopy(){return Z.getEventListener(this,`onbeforecopy`)}set onbeforecopy(e){this[V].set(`onbeforecopy`,e)}get onbeforecut(){return Z.getEventListener(this,`onbeforecut`)}set onbeforecut(e){this[V].set(`onbeforecut`,e)}get onbeforepaste(){return Z.getEventListener(this,`onbeforepaste`)}set onbeforepaste(e){this[V].set(`onbeforepaste`,e)}get onsearch(){return Z.getEventListener(this,`onsearch`)}set onsearch(e){this[V].set(`onsearch`,e)}get tagName(){return this[w]}get prefix(){return this[Ct]}get shadowRoot(){let e=this[lt];return e&&e[xn]===`open`?e:null}get scrollHeight(){return this[wt]}get scrollWidth(){return this[Tt]}get scrollTop(){return this[Et]}set scrollTop(e){this[Et]=e}get scrollLeft(){return this[Dt]}set scrollLeft(e){this[Dt]=e}get attributes(){return this[kt]||(this[kt]=Md.createProxy(this[Ot])),this[kt]}get namespaceURI(){return this[T]}get children(){if(!this[ye]){let e=this[Yn];this[ye]=new Od(N,()=>e)}return this[ye]}get classList(){return this[be]||(this[be]=new Dd(N,this,`class`)),this[be]}set classList(e){this.setAttribute(`class`,e)}get id(){return this.getAttribute(`id`)||``}set id(e){this.setAttribute(`id`,e)}get className(){return this.getAttribute(`class`)||``}set className(e){this.setAttribute(`class`,e)}get nodeName(){return this[w]}get localName(){return this[k]}get role(){return this.getAttribute(`role`)||``}set role(e){this.setAttribute(`role`,e)}get previousElementSibling(){return _d.previousElementSibling(this)}get nextElementSibling(){return _d.nextElementSibling(this)}get textContent(){let e=``;for(let t of this[j])(t[C]===U.elementNode||t[C]===U.textNode)&&(e+=t.textContent);return e}set textContent(e){let t=this[j];for(;t.length;)this.removeChild(t[0]);e&&this.appendChild(this[g].createTextNode(e))}get innerHTML(){return this.getHTML()}set innerHTML(e){let t=this[j];for(;t.length;)this.removeChild(t[0]);new Sf(this[b]).parse(e,this)}get outerHTML(){return new pf().serializeToString(this)}set outerHTML(e){let t=new Sf(this[b]).parse(e)[j];this.replaceWith(...t)}get childElementCount(){return this[Yn].length}get firstElementChild(){return this[Yn][0]??null}get lastElementChild(){let e=this[Yn];return e[e.length-1]??null}get slot(){return this.getAttributeNS(null,`slot`)||``}set slot(e){this.setAttribute(`slot`,e)}getInnerHTML(e){let t=new pf({allShadowRoots:!!e?.includeShadowRoots}),n=``;for(let e of this[j])n+=t.serializeToString(e);return n}getHTML(e){let t=new pf({serializableShadowRoots:!!e?.serializableShadowRoots,shadowRoots:e?.shadowRoots??null}),n=``;for(let e of this[j])n+=t.serializeToString(e);return n}[Nn](e=!1){let t=super[Nn](e);t[w]=this[w],t[k]=this[k],t[T]=this[T],this[lt]?.[gr]&&(t[lt]=this[lt].cloneNode(e),t[lt][Sn]=t),t[Ot]=new jd(t);for(let n of this[Ot][A].values())t[Ot].setNamedItem(n.cloneNode(e));return t}remove(){vd.remove(this)}replaceWith(...e){vd.replaceWith(this,...e)}before(...e){vd.before(this,...e)}after(...e){vd.after(this,...e)}append(...e){kd.append(this,...e)}prepend(...e){kd.prepend(this,...e)}replaceChildren(...e){kd.replaceChildren(this,...e)}insertAdjacentElement(e,t){if(e===`beforebegin`){if(!this.parentElement)return null;this.parentElement.insertBefore(t,this)}else if(e===`afterbegin`)this.insertBefore(t,this.firstChild);else if(e===`beforeend`)this.appendChild(t);else if(e===`afterend`){if(!this.parentElement)return null;this.parentElement.insertBefore(t,this.nextSibling)}return t}insertAdjacentHTML(e,t){let n=new Sf(this[b]).parse(t)[j];for(;n.length;)this.insertAdjacentElement(e,n[0])}insertAdjacentText(e,t){if(!t)return;let n=this[g].createTextNode(t);this.insertAdjacentElement(e,n)}setAttribute(e,t){if(wf.validateAttributeName(e,this[g][Ee],{method:`setAttribute`,instance:`Element`}),e=String(e),this[T]===Pl.html){let n=this[g].createAttribute(e);n[v]=String(t),this[Ot][or](n)}else{let n=e.split(`:`),r=null;switch(n[0]){case`xmlns`:r=!n[1]||n[1]===`xlink`?Pl.xmlns:null;break;case`xlink`:r=Pl.xlink;break}let i=pd.createNode(this[g],this[b].Attr);i[T]=r,i[E]=e,i[k]=r&&n[1]?n[1]:e,i[Ct]=r&&n[1]?n[0]:null,i[v]=String(t),this[Ot][or](i)}}setAttributeNS(e,t,n){let r=this[g].createAttributeNS(e,t);if(!e&&r[Ct])throw new this[b].DOMException(`Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.`,H.namespaceError);r[v]=String(n),this[Ot].setNamedItemNS(r)}getAttributeNames(){let e=[];for(let t of this[Ot][A].values())e.push(t[E]);return e}getAttribute(e){let t=this[Ot].getNamedItem(e);return t?t[v]:null}toggleAttribute(e,t){e=e.toLowerCase();let n=this[Ot].getNamedItem(e);return n?t===!0?!0:(this[Ot][Hn](n),!1):t===!1?!1:(this.setAttribute(e,``),!0)}getAttributeNS(e,t){let n=this.getAttributeNodeNS(e,t);return n?n[v]:null}hasAttribute(e){return!!this.getAttributeNode(e)}hasAttributeNS(e,t){return this[Ot].getNamedItemNS(e,t)!==null}hasAttributes(){return this[Ot][A].size>0}removeAttribute(e){let t=this[Ot].getNamedItem(e);t&&this[Ot][Hn](t)}removeAttributeNS(e,t){let n=this[Ot].getNamedItemNS(e,t);n&&this[Ot][Hn](n)}attachShadow(e){let t=this[b];if(!e)throw new t.TypeError(`Failed to execute 'attachShadow' on 'Element': 1 argument required, but only 0 present.`);if(!e.mode)throw new t.TypeError(`Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': Required member is undefined.`);if(e.mode!==`open`&&e.mode!==`closed`)throw new t.TypeError(`Failed to execute 'attachShadow' on 'Element': Failed to read the 'mode' property from 'ShadowRootInit': The provided value '${e.mode}' is not a valid enum value of type ShadowRootMode.`);if(this[lt])throw new t.DOMException(`Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree.`);let n=pd.createNode(this[g],this[b].ShadowRoot);return this[lt]=n,n[Sn]=this,n[xn]=e.mode,n[gr]=!!e.clonable,n[_r]=!!e.delegateFocus,n[vr]=!!e.serializable,n[yr]=e.slotAssignment===`manual`?`manual`:`named`,n[xe](),this[lt]}toString(){return this.outerHTML}getBoundingClientRect(){return new Td}getClientRects(){let e=new Ad(N);return e.push(this.getBoundingClientRect()),e}setPointerCapture(e){this[xt].add(e)}hasPointerCapture(e){return this[xt].has(e)}releasePointerCapture(e){this[xt].delete(e)}matches(e){return!!J.matches(this,e)}closest(e){let t=this;for(;t;){if(J.matches(t,e))return t;t=t.parentElement}return null}querySelectorAll(e){return J.querySelectorAll(this,e)}querySelector(e){return J.querySelector(this,e)}getElementsByClassName(e){return kd.getElementsByClassName(this,e)}getElementsByTagName(e){return kd.getElementsByTagName(this,e)}getElementsByTagNameNS(e,t){return kd.getElementsByTagNameNS(this,e,t)}setAttributeNode(e){return this[Ot].setNamedItem(e)}setAttributeNodeNS(e){return this[Ot].setNamedItemNS(e)}getAttributeNode(e){return this[Ot].getNamedItem(e)}getAttributeNodeNS(e,t){return this[Ot].getNamedItemNS(e,t)}removeAttributeNode(e){if(e[Ze]!==this)throw new this[b].DOMException(`Failed to execute 'removeAttributeNode' on 'Element': The node provided is owned by another element.`);return this[Ot][Hn](e),e}scroll(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this[b].TypeError(`Failed to execute 'scroll' on 'Element': The provided value is not of type 'ScrollToOptions'.`);let n=typeof e==`object`?e:{left:e,top:t};if(n.behavior===`smooth`)this[b].setTimeout(()=>{if(n.top!==void 0){let e=Number(n.top);this.scrollTop=isNaN(e)?0:e}if(n.left!==void 0){let e=Number(n.left);this.scrollLeft=isNaN(e)?0:e}});else{if(n.top!==void 0){let e=Number(n.top);this.scrollTop=isNaN(e)?0:e}if(n.left!==void 0){let e=Number(n.left);this.scrollLeft=isNaN(e)?0:e}}}scrollTo(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this[b].TypeError(`Failed to execute 'scrollTo' on 'Element': The provided value is not of type 'ScrollToOptions'.`);this.scroll(e,t)}scrollBy(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this[b].TypeError(`Failed to execute 'scrollBy' on 'Element': The provided value is not of type 'ScrollToOptions'.`);let n=typeof e==`object`?e:{left:e,top:t};this.scroll({left:this.scrollLeft+(n.left??0),top:this.scrollTop+(n.top??0),behavior:n.behavior})}scrollIntoView(e){}[Pn](e,t=!1){let n=super[Pn](e,t);return this.#n(e),n}[Fn](e){let t=super[Fn](e);return this.#n(e),t}[In](e,t,n=!1){let r=super[In](e,t,n);return this.#n(e),r}[qn](e,t){if(!e[E])return;let n=t?t[v]:null;if(e[E]===`slot`&&this[S]&&this[S][lt]){let r=this[S][lt];if(r&&e[v]!==n){if(n!==null&&t){let e=r.querySelector(`slot[name="${t[v]}"]`);e&&e.dispatchEvent(new W(`slotchange`,{bubbles:!0}))}else{let e=r.querySelector(`slot:not([name])`);e&&e.dispatchEvent(new W(`slotchange`,{bubbles:!0}))}let i=r.querySelector(`slot[name="${e[v]}"]`);i&&i.dispatchEvent(new W(`slotchange`,{bubbles:!0}))}}this[e[E]]!==void 0&&e[E][0]===`o`&&e[E][1]===`n`&&this[V].delete(e[E]),e[E]===`id`&&this[x]&&(t?.[v]&&this.#t(t[v]),this.#e(e[v])),this[mt](new $u({type:fd.attributes,target:this,attributeName:e[E],oldValue:n}))}[Jn](e){if(e[E]===`slot`&&this[S]&&this[S][lt]){let t=this[S][lt],n=t.querySelector(`slot[name="${e[v]}"]`),r=t.querySelector(`slot:not([name])`);n&&n.dispatchEvent(new W(`slotchange`,{bubbles:!0})),r&&r.dispatchEvent(new W(`slotchange`,{bubbles:!0}))}e[E]===`id`&&this[x]&&this.#t(e[v]),this[mt](new $u({type:fd.attributes,target:this,attributeName:e[E],oldValue:e[v]}))}[Ce](){let e=this.getAttribute(`id`);if(e&&this.#e(e),super[Ce](),this[b][Do].enqueueReaction(this,`connectedCallback`),this[lt])for(let e of this[j])this.#n(e)}[we](){super[we]();let e=this.getAttribute(`id`);e&&this.#t(e),this[b][Do].enqueueReaction(this,`disconnectedCallback`)}[Me](){let e=this.getAttribute(`id`);e&&this.#t(e),this[b][Do].enqueueReaction(this,`disconnectedCallback`),super[Me](),this[lt]&&this[lt][Me](),this[be]=null,this[lt]=null,this[kt]=null,this[ye]=null,this[er]=null,this[V].clear(),this[Ot][ir].clear(),this[Ot][qe].clear(),this[Ot][A].clear()}#e(e){if(!e)return;let t=this[g],n=this[b];if(this[it]&&this[it]!==t)return;t[hr].has(e)||t[hr].set(e,{elements:[],htmlCollection:null});let r=t[hr].get(e);if(!r)return;let i=this[ar]||this;r.elements.push(i),r.elements.length>1?(r.htmlCollection||=new Od(N,()=>r.elements),(!(e in n)||n[e]===r.elements[0])&&(n[e]=r.htmlCollection)):(!(e in n)||r.htmlCollection!==null&&n[e]===r.htmlCollection)&&(n[e]=i)}#t(e){if(!e)return;let t=this[g],n=this[b];if(this[it]&&this[it]!==t)return;let r=t[hr].get(e);if(!r)return;let i=this[ar]||this,a=r.elements.indexOf(i);a!==-1&&r.elements.splice(a,1),r.elements.length===1?(n[e]===r.htmlCollection&&(n[e]=r.elements[0]),r.htmlCollection=null):r.elements.length||(t[hr].delete(e),(n[e]===i||n[e]===r.htmlCollection)&&delete n[e])}#n(e){let t=this[lt];if(!t||!this[x])return;let n=e.getAttribute?e.getAttribute(`slot`):null;if(n){let e=t.querySelector(`slot[name="${n}"]`);e&&e.dispatchEvent(new W(`slotchange`,{bubbles:!0}))}else if(e[C]!==U.commentNode){let e=t.querySelector(`slot:not([name])`);e&&e.dispatchEvent(new W(`slotchange`,{bubbles:!0}))}}},Ef=class{static blur(e){let t=e[ar]||e,n=t[g];if(n[de]!==t||!t[x]||t.disabled)return;let r=n[Je]??null;n[de]=null,n[Kn](),t.dispatchEvent(new tu(`blur`,{relatedTarget:r,bubbles:!1,composed:!0,cancelable:!0})),t.dispatchEvent(new tu(`focusout`,{relatedTarget:r,bubbles:!0,composed:!0,cancelable:!0}))}static focus(e){let t=e[ar]||e,n=t[g];if(n[de]===t||!t[x]||t.disabled||this.isInert(t))return;n[Je]=t;let r=n[de];n[de]!==null&&n[de].blur(),n[Je]=null,n[de]=t,n[Kn](),t.dispatchEvent(new tu(`focus`,{relatedTarget:r,bubbles:!1,composed:!0})),t.dispatchEvent(new tu(`focusin`,{relatedTarget:r,bubbles:!0,composed:!0}))}static isInert(e){let t=e[ar]||e;for(;t&&typeof t.getAttribute==`function`;){if(t.getAttribute(`inert`)!==null)return!0;t=t[S]}return!1}},Df=class{static kebabToCamelCase(e){let t=e.split(`-`);for(let e=0,n=t.length;e<n;e++)t[e]=e>0?t[e].charAt(0).toUpperCase()+t[e].slice(1):t[e];return t.join(``)}static camelCaseToKebab(e){return e.toString().replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?`-`:``)+e.toLowerCase())}},Of=class{constructor(e,t){if(e!==N)throw TypeError(`Illegal constructor`);return new Proxy(this,{get(e,n){let r=t.getAttribute(`data-`+Df.camelCaseToKebab(n));if(r!==null)return r},set(e,n,r){return t.setAttribute(`data-`+Df.camelCaseToKebab(n),r),!0},deleteProperty(e,n){return t.removeAttribute(`data-`+Df.camelCaseToKebab(n)),!0},ownKeys(e){let n=[];for(let e of t[Ot][qe].values())e[0][E].startsWith(`data-`)&&n.push(Df.kebabToCamelCase(e[0][E].replace(`data-`,``)));return n},has(e,n){return t.hasAttribute(`data-`+Df.camelCaseToKebab(n))},defineProperty(e,n,r){return r.value===void 0?!1:(t.setAttribute(`data-`+Df.camelCaseToKebab(n),r.value),!0)},getOwnPropertyDescriptor(e,n){let r=t.getAttribute(`data-`+Df.camelCaseToKebab(n));if(r)return{value:r,writable:!0,enumerable:!0,configurable:!0}}})}},Q=class extends Tf{static observedAttributes;[At]=``;[jt]=0;[Mt]=0;[Nt]=0;[Pt]=0;[Ft]=0;[It]=0;[Lt]=0;[Rt]=0;[ut]=null;[rr]=null;#e=null;get oncancel(){return Z.getEventListener(this,`oncancel`)}set oncancel(e){this[V].set(`oncancel`,e)}get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[V].set(`onerror`,e)}get onscroll(){return Z.getEventListener(this,`onscroll`)}set onscroll(e){this[V].set(`onscroll`,e)}get onselect(){return Z.getEventListener(this,`onselect`)}set onselect(e){this[V].set(`onselect`,e)}get onwheel(){return Z.getEventListener(this,`onwheel`)}set onwheel(e){this[V].set(`onwheel`,e)}get oncopy(){return Z.getEventListener(this,`oncopy`)}set oncopy(e){this[V].set(`oncopy`,e)}get oncut(){return Z.getEventListener(this,`oncut`)}set oncut(e){this[V].set(`oncut`,e)}get onpaste(){return Z.getEventListener(this,`onpaste`)}set onpaste(e){this[V].set(`onpaste`,e)}get oncompositionend(){return Z.getEventListener(this,`oncompositionend`)}set oncompositionend(e){this[V].set(`oncompositionend`,e)}get oncompositionstart(){return Z.getEventListener(this,`oncompositionstart`)}set oncompositionstart(e){this[V].set(`oncompositionstart`,e)}get oncompositionupdate(){return Z.getEventListener(this,`oncompositionupdate`)}set oncompositionupdate(e){this[V].set(`oncompositionupdate`,e)}get onblur(){return Z.getEventListener(this,`onblur`)}set onblur(e){this[V].set(`onblur`,e)}get onfocus(){return Z.getEventListener(this,`onfocus`)}set onfocus(e){this[V].set(`onfocus`,e)}get onfocusin(){return Z.getEventListener(this,`onfocusin`)}set onfocusin(e){this[V].set(`onfocusin`,e)}get onfocusout(){return Z.getEventListener(this,`onfocusout`)}set onfocusout(e){this[V].set(`onfocusout`,e)}get onkeydown(){return Z.getEventListener(this,`onkeydown`)}set onkeydown(e){this[V].set(`onkeydown`,e)}get onkeyup(){return Z.getEventListener(this,`onkeyup`)}set onkeyup(e){this[V].set(`onkeyup`,e)}get onauxclick(){return Z.getEventListener(this,`onauxclick`)}set onauxclick(e){this[V].set(`onauxclick`,e)}get onclick(){return Z.getEventListener(this,`onclick`)}set onclick(e){this[V].set(`onclick`,e)}get oncontextmenu(){return Z.getEventListener(this,`oncontextmenu`)}set oncontextmenu(e){this[V].set(`oncontextmenu`,e)}get ondblclick(){return Z.getEventListener(this,`ondblclick`)}set ondblclick(e){this[V].set(`ondblclick`,e)}get onmousedown(){return Z.getEventListener(this,`onmousedown`)}set onmousedown(e){this[V].set(`onmousedown`,e)}get onmouseenter(){return Z.getEventListener(this,`onmouseenter`)}set onmouseenter(e){this[V].set(`onmouseenter`,e)}get onmouseleave(){return Z.getEventListener(this,`onmouseleave`)}set onmouseleave(e){this[V].set(`onmouseleave`,e)}get onmousemove(){return Z.getEventListener(this,`onmousemove`)}set onmousemove(e){this[V].set(`onmousemove`,e)}get onmouseout(){return Z.getEventListener(this,`onmouseout`)}set onmouseout(e){this[V].set(`onmouseout`,e)}get onmouseover(){return Z.getEventListener(this,`onmouseover`)}set onmouseover(e){this[V].set(`onmouseover`,e)}get onmouseup(){return Z.getEventListener(this,`onmouseup`)}set onmouseup(e){this[V].set(`onmouseup`,e)}get ontouchcancel(){return Z.getEventListener(this,`ontouchcancel`)}set ontouchcancel(e){this[V].set(`ontouchcancel`,e)}get ontouchend(){return Z.getEventListener(this,`ontouchend`)}set ontouchend(e){this[V].set(`ontouchend`,e)}get ontouchmove(){return Z.getEventListener(this,`ontouchmove`)}set ontouchmove(e){this[V].set(`ontouchmove`,e)}get ontouchstart(){return Z.getEventListener(this,`ontouchstart`)}set ontouchstart(e){this[V].set(`ontouchstart`,e)}get oninvalid(){return Z.getEventListener(this,`oninvalid`)}set oninvalid(e){this[V].set(`oninvalid`,e)}get onanimationcancel(){return Z.getEventListener(this,`onanimationcancel`)}set onanimationcancel(e){this[V].set(`onanimationcancel`,e)}get onanimationend(){return Z.getEventListener(this,`onanimationend`)}set onanimationend(e){this[V].set(`onanimationend`,e)}get onanimationiteration(){return Z.getEventListener(this,`onanimationiteration`)}set onanimationiteration(e){this[V].set(`onanimationiteration`,e)}get onanimationstart(){return Z.getEventListener(this,`onanimationstart`)}set onanimationstart(e){this[V].set(`onanimationstart`,e)}get onbeforeinput(){return Z.getEventListener(this,`onbeforeinput`)}set onbeforeinput(e){this[V].set(`onbeforeinput`,e)}get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[V].set(`oninput`,e)}get onchange(){return Z.getEventListener(this,`onchange`)}set onchange(e){this[V].set(`onchange`,e)}get ongotpointercapture(){return Z.getEventListener(this,`ongotpointercapture`)}set ongotpointercapture(e){this[V].set(`ongotpointercapture`,e)}get onlostpointercapture(){return Z.getEventListener(this,`onlostpointercapture`)}set onlostpointercapture(e){this[V].set(`onlostpointercapture`,e)}get onpointercancel(){return Z.getEventListener(this,`onpointercancel`)}set onpointercancel(e){this[V].set(`onpointercancel`,e)}get onpointerdown(){return Z.getEventListener(this,`onpointerdown`)}set onpointerdown(e){this[V].set(`onpointerdown`,e)}get onpointerenter(){return Z.getEventListener(this,`onpointerenter`)}set onpointerenter(e){this[V].set(`onpointerenter`,e)}get onpointerleave(){return Z.getEventListener(this,`onpointerleave`)}set onpointerleave(e){this[V].set(`onpointerleave`,e)}get onpointermove(){return Z.getEventListener(this,`onpointermove`)}set onpointermove(e){this[V].set(`onpointermove`,e)}get onpointerout(){return Z.getEventListener(this,`onpointerout`)}set onpointerout(e){this[V].set(`onpointerout`,e)}get onpointerover(){return Z.getEventListener(this,`onpointerover`)}set onpointerover(e){this[V].set(`onpointerover`,e)}get onpointerup(){return Z.getEventListener(this,`onpointerup`)}set onpointerup(e){this[V].set(`onpointerup`,e)}get ontransitioncancel(){return Z.getEventListener(this,`ontransitioncancel`)}set ontransitioncancel(e){this[V].set(`ontransitioncancel`,e)}get ontransitionend(){return Z.getEventListener(this,`ontransitionend`)}set ontransitionend(e){this[V].set(`ontransitionend`,e)}get ontransitionrun(){return Z.getEventListener(this,`ontransitionrun`)}set ontransitionrun(e){this[V].set(`ontransitionrun`,e)}get ontransitionstart(){return Z.getEventListener(this,`ontransitionstart`)}set ontransitionstart(e){this[V].set(`ontransitionstart`,e)}get accessKey(){return this[At]}set accessKey(e){this[At]=e}get contentEditable(){let e=String(this.getAttribute(`contentEditable`)).toLowerCase();switch(e){case`false`:case`true`:case`plaintext-only`:return e;default:return`inherit`}}set contentEditable(e){switch(e=String(e).toLowerCase(),e){case`false`:case`true`:case`plaintext-only`:case`inherit`:this.setAttribute(`contentEditable`,e);break;default:throw new this[b].SyntaxError(`Failed to set the 'contentEditable' property on 'HTMLElement': The value provided ('${e}') is not one of 'true', 'false', 'plaintext-only', or 'inherit'.`)}}get isContentEditable(){let e=this.contentEditable;return e===`true`||e===`plaintext-only`?!0:e===`inherit`?this[S]?.isContentEditable??!1:!1}get offsetHeight(){return this[jt]}get offsetWidth(){return this[Mt]}get offsetLeft(){return this[Nt]}get offsetTop(){return this[Pt]}get clientHeight(){return this[Ft]}get clientWidth(){return this[It]}get clientLeft(){return this[Lt]}get clientTop(){return this[Rt]}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?-1:t}return-1}set tabIndex(e){let t=Number(e);isNaN(t)?this.setAttribute(`tabindex`,`0`):this.setAttribute(`tabindex`,String(t))}get innerText(){if(!this[x])return this.textContent;let e=``;for(let t of this[j])if(t[C]===U.elementNode){let n=t,r=this[b].getComputedStyle(n);if(n[w]!==`SCRIPT`&&n[w]!==`STYLE`&&n[w]!==`svg`){let t=r.display;if(t!==`none`){let i=r.textTransform,a=n.innerText;(t===`block`||t===`flex`)&&e&&a&&(e+=`
|
|
72
|
+
`);let o=a;switch(i){case`uppercase`:o=o.toUpperCase();break;case`lowercase`:o=o.toLowerCase();break;case`capitalize`:o=o.replace(/(^|\s)\S/g,e=>e.toUpperCase());break}e+=o}}}else t[C]===U.textNode&&(e+=t.textContent.replace(/[\n\r]/,``));return e}set innerText(e){let t=this[j];for(;t.length;)this.removeChild(t[0]);let n=e.split(/[\n\r]/),r=this[g];for(let e=0,t=n.length;e<t;e++)e!==0&&this.appendChild(r.createElement(`br`)),this.appendChild(r.createTextNode(n[e]))}get outerText(){return this.innerText}set outerText(e){if(!this[S])throw new this[b].DOMException(`Failed to set the 'outerHTML' property on 'Element': This element has no parent node.`);let t=e.split(/[\n\r]/);for(let e=0,n=t.length;e<n;e++)e!==0&&this[S].insertBefore(this[g].createElement(`br`),this),this[S].insertBefore(this[g].createTextNode(t[e]),this);this[S].removeChild(this)}get style(){return this[ut]||(this[ut]=new vl(N,this[b],{element:this})),this[ut]}set style(e){this.style.cssText=typeof e==`string`?e:``}get dataset(){return this[rr]??=new Of(N,this)}get dir(){return this.getAttribute(`dir`)||``}set dir(e){this.setAttribute(`dir`,e)}get hidden(){return this.getAttribute(`hidden`)!==null}set hidden(e){e?this.setAttribute(`hidden`,``):this.removeAttribute(`hidden`)}get inert(){return this.getAttribute(`inert`)!==null}set inert(e){e?this.setAttribute(`inert`,``):this.removeAttribute(`inert`)}get lang(){return this.getAttribute(`lang`)||``}set lang(e){this.setAttribute(`lang`,e)}get title(){return this.getAttribute(`title`)||``}set title(e){this.setAttribute(`title`,e)}get popover(){switch(this.getAttribute(`popover`)){case null:return null;case``:case`auto`:return`auto`;case`manual`:return`manual`;default:return`manual`}}set popover(e){if(e===null){this.removeAttribute(`popover`);return}this.setAttribute(`popover`,e)}click(){this.dispatchEvent(new su(`click`,{bubbles:!0,composed:!0,cancelable:!0}))}blur(){Ef.blur(this)}focus(){Ef.focus(this)}[Nn](e=!1){let t=super[Nn](e);return t[At]=this[At],t}[Ce](){let e=this[b],t=this[k],n=e.customElements[ge];if(this.constructor===e.HTMLElement&&t.includes(`-`)&&n&&!this.#e){let e=this.#t.bind(this),r=n.get(t);r?r.unshift(e):n.set(t,[e]),this.#e=e}super[Ce]()}[we](){let e=this[b],t=this[k],n=e.customElements[ge];if(this.constructor===e.HTMLElement&&t.includes(`-`)&&n){let e=n.get(t);if(e&&this.#e){let r=e.indexOf(this.#e);r!==-1&&e.splice(r,1),e.length||n.delete(t),this.#e=null}}super[we]()}[qn](e,t){super[qn](e,t),this[b][Do].enqueueReaction(this,`attributeChangedCallback`,[e.name,t?.value??null,e.value])}[Jn](e){super[Jn](e),this[b][Do].enqueueReaction(this,`attributeChangedCallback`,[e.name,e.value,null])}[Me](){super[Me](),this[ut]=null,this[rr]=null}#t(){if(!this[S])return;let e=this[b],t=this[k],n=this[g].createElement(t),r=n[M];n[j]=this[j],n[Yn]=this[Yn],n[ve]=null,n[ye]=null,n[x]=this[x],n[it]=this[it],n[Le]=this[Le],n[S]=this[S],n[at]=this[at],n[ft]=this[ft],n[Xe]=this[Xe],n[We]=this[We],n[M]=this[M],n[Xn]=this[Xn],n[Ot][ir]=this[Ot][ir],n[Ot][qe]=this[Ot][qe],n[Ot][A]=this[Ot][A];for(let e of n[Ot][A].values())e[Ze]=n;this[Kn](),this[j]=[],this[Yn]=[],this[ve]=null,this[ye]=null,this[S]=null,this[it]=null,this[Le]=null,this[at]=null,this[ft]=null,this[Xe]=[],this[We]=null,this[M]=r,this[Xn]=[],this[Ot][ir]=new Map,this[Ot][qe]=new Map,this[Ot][A]=new Map;for(let e of n[j])e[S]=n;let i=n[S][j],a=n[S][Yn];i[i.indexOf(this)]=n,a[a.indexOf(this)]=n;let o=e.customElements[ge],s=o.get(t);if(s&&this.#e){let e=s.indexOf(this.#e);e!==-1&&s.splice(e,1),s.length||o.delete(t),this.#e=null}n[x]&&(n[lt]&&(n[lt][x]=!0),n[Ce]())}},kf=class{element;constructor(e){this.element=e}getOrigin(){try{return new URL(this.getHref()).origin}catch{return``}}getHref(){if(!this.element.hasAttribute(`href`))return``;try{return new URL(this.element.getAttribute(`href`),this.element[g].location.href).href}catch{return this.element.getAttribute(`href`)}}setHref(e){this.element.setAttribute(`href`,e)}getProtocol(){try{return new URL(this.getHref()).protocol}catch{return``}}setProtocol(e){let t;try{t=new URL(this.getHref())}catch{return}t.protocol=e,this.element.setAttribute(`href`,t.href)}getUsername(){try{return new URL(this.getHref()).username}catch{return``}}setUsername(e){let t;try{t=new URL(this.getHref())}catch{return}t.username=e,this.element.setAttribute(`href`,t.href)}getPassword(){try{return new URL(this.getHref()).password}catch{return``}}setPassword(e){let t;try{t=new URL(this.getHref())}catch{return}t.password=e,this.element.setAttribute(`href`,t.href)}getHost(){try{return new URL(this.getHref()).host}catch{return``}}setHost(e){let t;try{t=new URL(this.getHref())}catch{return}t.host=e,this.element.setAttribute(`href`,t.href)}getHostname(){try{return new URL(this.getHref()).hostname}catch{return``}}setHostname(e){let t;try{t=new URL(this.getHref())}catch{return}t.hostname=e,this.element.setAttribute(`href`,t.href)}getPort(){try{return new URL(this.getHref()).port}catch{return``}}setPort(e){let t;try{t=new URL(this.getHref())}catch{return}t.port=e,this.element.setAttribute(`href`,t.href)}getPathname(){try{return new URL(this.getHref()).pathname}catch{return``}}setPathname(e){let t;try{t=new URL(this.getHref())}catch{return}t.pathname=e,this.element.setAttribute(`href`,t.href)}getSearch(){try{return new URL(this.getHref()).search}catch{return``}}setSearch(e){let t;try{t=new URL(this.getHref())}catch{return}t.search=e,this.element.setAttribute(`href`,t.href)}getHash(){let e=this.element.getAttribute(`href`);if(e?.[0]===`#`)return e;let t;try{t=new URL(this.getHref())}catch{return``}return t.hash}setHash(e){let t;try{t=new URL(this.getHref())}catch{return}t.hash=e,this.element.setAttribute(`href`,t.href)}},Af=class extends Q{[nt]=null;#e=new kf(this);get download(){return this.getAttribute(`download`)||``}set download(e){this.setAttribute(`download`,e)}get hash(){return this.#e.getHash()}set hash(e){this.#e.setHash(e)}get href(){return this.#e.getHref()}set href(e){this.#e.setHref(e)}get hreflang(){return this.getAttribute(`hreflang`)||``}set hreflang(e){this.setAttribute(`hreflang`,e)}get origin(){return this.#e.getOrigin()}get ping(){return this.getAttribute(`ping`)||``}set ping(e){this.setAttribute(`ping`,e)}get protocol(){return this.#e.getProtocol()}set protocol(e){this.#e.setProtocol(e)}get username(){return this.#e.getUsername()}set username(e){this.#e.setUsername(e)}get password(){return this.#e.getPassword()}set password(e){this.#e.setPassword(e)}get pathname(){return this.#e.getPathname()}set pathname(e){this.#e.setPathname(e)}get port(){return this.#e.getPort()}set port(e){this.#e.setPort(e)}get host(){return this.#e.getHost()}set host(e){this.#e.setHost(e)}get hostname(){return this.#e.getHostname()}set hostname(e){this.#e.setHostname(e)}get referrerPolicy(){return this.getAttribute(`referrerPolicy`)||``}set referrerPolicy(e){this.setAttribute(`referrerPolicy`,e)}get rel(){return this.getAttribute(`rel`)||``}set rel(e){this.setAttribute(`rel`,e)}get relList(){return this[nt]||(this[nt]=new Dd(N,this,`rel`)),this[nt]}set relList(e){this.setAttribute(`rel`,e)}get search(){return this.#e.getSearch()}set search(e){this.#e.setSearch(e)}get target(){return this.getAttribute(`target`)||``}set target(e){this.setAttribute(`target`,e)}get text(){return this.textContent}set text(e){this.textContent=e}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}toString(){return this.href}dispatchEvent(e){let t=super.dispatchEvent(e);if(!e[Wr]&&e.type===`click`&&e instanceof ou&&(e.eventPhase===Ts.none||e.eventPhase===Ts.bubbling)){let t=this.href;if(t){let n=[];this.relList.contains(`noreferrer`)&&n.push(`noreferrer`),this.relList.contains(`noopener`)&&n.push(`noopener`),this[b].open(t,this.target||`_self`,n.join(`,`)),this[b].closed&&e.stopImmediatePropagation()}}return t}},jf=class extends Q{[nt]=null;#e=new kf(this);get alt(){return this.getAttribute(`alt`)||``}set alt(e){this.setAttribute(`alt`,e)}get coords(){return this.getAttribute(`coords`)||``}set coords(e){this.setAttribute(`coords`,e)}get shape(){return this.getAttribute(`shape`)||``}set shape(e){this.setAttribute(`shape`,e)}get download(){return this.getAttribute(`download`)||``}set download(e){this.setAttribute(`download`,e)}get referrerPolicy(){return this.getAttribute(`referrerPolicy`)||``}set referrerPolicy(e){this.setAttribute(`referrerPolicy`,e)}get ping(){return this.getAttribute(`ping`)||``}set ping(e){this.setAttribute(`ping`,e)}get rel(){return this.getAttribute(`rel`)||``}set rel(e){this.setAttribute(`rel`,e)}get relList(){return this[nt]||(this[nt]=new Dd(N,this,`rel`)),this[nt]}set relList(e){this.setAttribute(`rel`,e)}get target(){return this.getAttribute(`target`)||``}set target(e){this.setAttribute(`target`,e)}get origin(){return this.#e.getOrigin()}get href(){return this.#e.getHref()}set href(e){this.#e.setHref(e)}get protocol(){return this.#e.getProtocol()}set protocol(e){this.#e.setProtocol(e)}get username(){return this.#e.getUsername()}set username(e){this.#e.setUsername(e)}get password(){return this.#e.getPassword()}set password(e){this.#e.setPassword(e)}get host(){return this.#e.getHost()}set host(e){this.#e.setHost(e)}get hostname(){return this.#e.getHostname()}set hostname(e){this.#e.setHostname(e)}get port(){return this.#e.getPort()}set port(e){this.#e.setPort(e)}get pathname(){return this.#e.getPathname()}set pathname(e){this.#e.setPathname(e)}get search(){return this.#e.getSearch()}set search(e){this.#e.setSearch(e)}get hash(){return this.#e.getHash()}set hash(e){this.#e.setHash(e)}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}toString(){return this.href}dispatchEvent(e){let t=super.dispatchEvent(e);if(!e[Wr]&&e[qr]===`click`&&e[Gr]===Ts.none&&e instanceof ou){let t=this.href;t&&(this[b].open(t,this.target||`_self`),this[b].closed&&e.stopImmediatePropagation())}return t}},Mf=class{constructor(e){if(e!==N)throw TypeError(`Illegal constructor`)}get length(){return 0}get[Symbol.toStringTag](){return`TimeRanges`}toLocaleString(){return`[object TimeRanges]`}toString(){return`[object TimeRanges]`}start(e){return 0}end(e){return 0}},Nf=class extends W{track;constructor(e,t=null){super(e,t),this.track=t?.track??null}},Pf=class e extends tl{active=!0;id=l.randomUUID();onaddtrack=null;onremovetrack=null;[Rn]=[];constructor(t){if(super(),!this[b])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);t!==void 0&&(this[Rn]=t instanceof e?t[Rn].slice():t)}addTrack(e){this[Rn].includes(e)||(this[Rn].push(e),this.dispatchEvent(new Nf(`addtrack`,{track:e})))}clone(){return new this.constructor(this)}getAudioTracks(){return this[Rn].filter(e=>e.kind===`audio`)}getTrackById(e){for(let t of this[Rn])if(t.id===e)return t;return null}getVideoTracks(){return this[Rn].filter(e=>e.kind===`video`)}removeTrack(e){let t=this[Rn].indexOf(e);t!==-1&&(this[Rn].splice(t,1),this.dispatchEvent(new Nf(`removetrack`,{track:e})))}},Ff;(function(e){e.subtitles=`subtitles`,e.captions=`captions`,e.descriptions=`descriptions`,e.chapters=`chapters`,e.metadata=`metadata`})(Ff||={});var If=Ff,Lf=class extends Q{[tn]=1;[nn]=!0;[rn]=0;[an]=1;[on]=1;[sn]=!1;[cn]=!1;[ln]=!0;[un]=new Mf(N);[dn]=NaN;[fn]=null;[pn]=!1;[mn]=0;[Ht]=0;[gn]=!1;[_n]=new Mf(N);[Ar]=``;[vn]=new Mf(N);[kr]=new this[b].RemotePlayback;[Dr]=null;[Or]=null;[jr]=null;[hn]=[];get onabort(){return Z.getEventListener(this,`onabort`)}set onabort(e){this[V].set(`onabort`,e)}get oncanplay(){return Z.getEventListener(this,`oncanplay`)}set oncanplay(e){this[V].set(`oncanplay`,e)}get oncanplaythrough(){return Z.getEventListener(this,`oncanplaythrough`)}set oncanplaythrough(e){this[V].set(`oncanplaythrough`,e)}get ondurationchange(){return Z.getEventListener(this,`ondurationchange`)}set ondurationchange(e){this[V].set(`ondurationchange`,e)}get onemptied(){return Z.getEventListener(this,`onemptied`)}set onemptied(e){this[V].set(`onemptied`,e)}get onended(){return Z.getEventListener(this,`onended`)}set onended(e){this[V].set(`onended`,e)}get onloadeddata(){return Z.getEventListener(this,`onloadeddata`)}set onloadeddata(e){this[V].set(`onloadeddata`,e)}get onloadedmetadata(){return Z.getEventListener(this,`onloadedmetadata`)}set onloadedmetadata(e){this[V].set(`onloadedmetadata`,e)}get onloadstart(){return Z.getEventListener(this,`onloadstart`)}set onloadstart(e){this[V].set(`onloadstart`,e)}get onpause(){return Z.getEventListener(this,`onpause`)}set onpause(e){this[V].set(`onpause`,e)}get onplay(){return Z.getEventListener(this,`onplay`)}set onplay(e){this[V].set(`onplay`,e)}get onplaying(){return Z.getEventListener(this,`onplaying`)}set onplaying(e){this[V].set(`onplaying`,e)}get onprogress(){return Z.getEventListener(this,`onprogress`)}set onprogress(e){this[V].set(`onprogress`,e)}get onratechange(){return Z.getEventListener(this,`onratechange`)}set onratechange(e){this[V].set(`onratechange`,e)}get onresize(){return Z.getEventListener(this,`onresize`)}set onresize(e){this[V].set(`onresize`,e)}get onseeked(){return Z.getEventListener(this,`onseeked`)}set onseeked(e){this[V].set(`onseeked`,e)}get onseeking(){return Z.getEventListener(this,`onseeking`)}set onseeking(e){this[V].set(`onseeking`,e)}get onstalled(){return Z.getEventListener(this,`onstalled`)}set onstalled(e){this[V].set(`onstalled`,e)}get onsuspend(){return Z.getEventListener(this,`onsuspend`)}set onsuspend(e){this[V].set(`onsuspend`,e)}get ontimeupdate(){return Z.getEventListener(this,`ontimeupdate`)}set ontimeupdate(e){this[V].set(`ontimeupdate`,e)}get onvolumechange(){return Z.getEventListener(this,`onvolumechange`)}set onvolumechange(e){this[V].set(`onvolumechange`,e)}get onwaiting(){return Z.getEventListener(this,`onwaiting`)}set onwaiting(e){this[V].set(`onwaiting`,e)}get buffered(){return this[un]}get duration(){return this[dn]}get error(){return this[fn]}get ended(){return this[pn]}get networkState(){return this[mn]}get readyState(){return this[Ht]}get remote(){return this[kr]}get seeking(){return this[gn]}get seekable(){return this[_n]}get sinkId(){return this[Ar]}get played(){return this[vn]}get autoplay(){return this.getAttribute(`autoplay`)!==null}set autoplay(e){e?this.setAttribute(`autoplay`,``):this.removeAttribute(`autoplay`)}get controls(){return this.getAttribute(`controls`)!==null}set controls(e){e?this.setAttribute(`controls`,``):this.removeAttribute(`controls`)}get loop(){return this.getAttribute(`loop`)!==null}set loop(e){e?this.setAttribute(`loop`,``):this.removeAttribute(`loop`)}get preload(){return this.getAttribute(`preload`)||`auto`}set preload(e){this.setAttribute(`preload`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[g].location.href).href}catch{return this.getAttribute(`src`)}}set src(e){this.setAttribute(`src`,e),e&&(this.dispatchEvent(new W(`canplay`,{bubbles:!1,cancelable:!1})),this.dispatchEvent(new W(`durationchange`,{bubbles:!1,cancelable:!1})))}get controlsList(){return this[Dr]===null&&(this[Dr]=new Dd(N,this,`controlslist`)),this[Dr]}set controlsList(e){this.setAttribute(`controlslist`,e)}get mediaKeys(){return this[Or]}get muted(){return this[sn]?this[sn]:this[cn]?!1:this.getAttribute(`muted`)!==null}set muted(e){this[sn]=!!e,!e&&!this[cn]?this.removeAttribute(`muted`):this.setAttribute(`muted`,``)}get defaultMuted(){return this[cn]}set defaultMuted(e){this[cn]=!!e,!this[cn]&&!this[sn]?this.removeAttribute(`muted`):this.setAttribute(`muted`,``)}get disableRemotePlayback(){return this.getAttribute(`disableremoteplayback`)!==null}set disableRemotePlayback(e){e?this.setAttribute(`disableremoteplayback`,``):this.removeAttribute(`disableremoteplayback`)}get srcObject(){return this[jr]}set srcObject(e){if(e!==null&&!(e instanceof Pf))throw new this[b].TypeError(`Failed to set the 'srcObject' property on 'HTMLMediaElement': The provided value is not of type 'MediaStream'.`);this[jr]=e}get textTracks(){let e=[];for(let t of this[hn])e.push(t);for(let t of this.querySelectorAll(`track`)[A])e.push(t.track);return new this[b].TextTrackList(N,e)}get currentSrc(){let e=this.src;if(e)return e;let t=this.querySelector(`source`);return t?t.src:``}get volume(){return this[tn]}set volume(e){let t=Number(e);if(isNaN(t))throw new this[b].TypeError(`Failed to set the 'volume' property on 'HTMLMediaElement': The provided double value is non-finite.`);if(t<0||t>1)throw new this[b].DOMException(`Failed to set the 'volume' property on 'HTMLMediaElement': The volume provided (${t}) is outside the range [0, 1].`,H.indexSizeError);this[tn]=t}get crossOrigin(){let e=this.getAttribute(`crossorigin`);return e===`use-credentials`?`use-credentials`:e===null?null:`anonymous`}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get currentTime(){return this[rn]}set currentTime(e){let t=Number(e);if(isNaN(t))throw new this[b].TypeError(`Failed to set the 'currentTime' property on 'HTMLMediaElement': The provided double value is non-finite.`);this[rn]=t}get playbackRate(){return this[an]}set playbackRate(e){let t=Number(e);if(isNaN(t))throw new this[b].TypeError(`Failed to set the 'playbackRate' property on 'HTMLMediaElement': The provided double value is non-finite.`);this[an]=t}get defaultPlaybackRate(){return this[on]}set defaultPlaybackRate(e){let t=Number(e);if(isNaN(t))throw new this[b].TypeError(`Failed to set the 'defaultPlaybackRate' property on 'HTMLMediaElement': The provided double value is non-finite.`);this[on]=t}get preservesPitch(){return this[ln]}set preservesPitch(e){this[ln]=!!e}get paused(){return this[nn]}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}addTextTrack(e,t,n){let r=this[b];if(arguments.length===0)throw new r.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': 1 argument required, but only 0 present.`);if(!If[e])throw new r.TypeError(`Failed to execute 'addTextTrack' on 'HTMLMediaElement': The provided value '${e}' is not a valid enum value of type TextTrackKind.`);let i=new r.TextTrack(N);return i[Pr]=e,i[Fr]=t||``,i[Ir]=n||``,this[hn].push(i),i}pause(){this[nn]||(this[nn]=!0,this.dispatchEvent(new W(`pause`,{bubbles:!1,cancelable:!1})))}async play(){this[nn]&&(this[nn]=!1,this.dispatchEvent(new W(`play`,{bubbles:!1,cancelable:!1})),this.dispatchEvent(new W(`playing`,{bubbles:!1,cancelable:!1})))}canPlayType(e){return``}fastSeek(e){}load(){this.dispatchEvent(new W(`emptied`,{bubbles:!1,cancelable:!1}))}async setMediaKeys(e){this[Or]=e}async setSinkId(e){this[Ar]=e}captureStream(){return new this[b].MediaStream}[Nn](e=!1){return super[Nn](e)}},Rf=class extends Lf{},zf=class extends Q{get href(){if(!this.hasAttribute(`href`))return this[g].location.href;try{return new URL(this.getAttribute(`href`),this[g].location.href).href}catch{return this.getAttribute(`href`)}}set href(e){this.setAttribute(`href`,e)}get target(){return this.getAttribute(`target`)||``}set target(e){this.setAttribute(`target`,e)}[Nn](e=!1){return super[Nn](e)}},Bf=class extends Q{get onafterprint(){return Z.getEventListener(this,`onafterprint`)}set onafterprint(e){this[V].set(`onafterprint`,e)}get onbeforeprint(){return Z.getEventListener(this,`onbeforeprint`)}set onbeforeprint(e){this[V].set(`onbeforeprint`,e)}get onbeforeunload(){return Z.getEventListener(this,`onbeforeunload`)}set onbeforeunload(e){this[V].set(`onbeforeunload`,e)}get ongamepadconnected(){return Z.getEventListener(this,`ongamepadconnected`)}set ongamepadconnected(e){this[V].set(`ongamepadconnected`,e)}get ongamepaddisconnected(){return Z.getEventListener(this,`ongamepaddisconnected`)}set ongamepaddisconnected(e){this[V].set(`ongamepaddisconnected`,e)}get onhashchange(){return Z.getEventListener(this,`onhashchange`)}set onhashchange(e){this[V].set(`onhashchange`,e)}get onlanguagechange(){return Z.getEventListener(this,`onlanguagechange`)}set onlanguagechange(e){this[V].set(`onlanguagechange`,e)}get onmessage(){return Z.getEventListener(this,`onmessage`)}set onmessage(e){this[V].set(`onmessage`,e)}get onmessageerror(){return Z.getEventListener(this,`onmessageerror`)}set onmessageerror(e){this[V].set(`onmessageerror`,e)}get onoffline(){return Z.getEventListener(this,`onoffline`)}set onoffline(e){this[V].set(`onoffline`,e)}get ononline(){return Z.getEventListener(this,`ononline`)}set ononline(e){this[V].set(`ononline`,e)}get onpagehide(){return Z.getEventListener(this,`onpagehide`)}set onpagehide(e){this[V].set(`onpagehide`,e)}get onpageshow(){return Z.getEventListener(this,`onpageshow`)}set onpageshow(e){this[V].set(`onpageshow`,e)}get onpopstate(){return Z.getEventListener(this,`onpopstate`)}set onpopstate(e){this[V].set(`onpopstate`,e)}get onrejectionhandled(){return Z.getEventListener(this,`onrejectionhandled`)}set onrejectionhandled(e){this[V].set(`onrejectionhandled`,e)}get onstorage(){return Z.getEventListener(this,`onstorage`)}set onstorage(e){this[V].set(`onstorage`,e)}get onunhandledrejection(){return Z.getEventListener(this,`onunhandledrejection`)}set onunhandledrejection(e){this[V].set(`onunhandledrejection`,e)}get onunload(){return Z.getEventListener(this,`onunload`)}set onunload(e){this[V].set(`onunload`,e)}},Vf=class extends Q{};const Hf=/^([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x22([^\x0d\x22\x5c\x80-\xff]|\x5c[\x00-\x7f])*\x22))*\x40([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d)(\x2e([^\x00-\x20\x22\x28\x29\x2c\x2e\x3a-\x3c\x3e\x40\x5b-\x5d\x7f-\xff]+|\x5b([^\x0d\x5b-\x5d\x80-\xff]|\x5c[\x00-\x7f])*\x5d))*$/,Uf=/^(?:(?:https?|HTTPS?|ftp|FTP):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)(?:\.(?:[a-zA-Z\u00a1-\uffff0-9]-*)*[a-zA-Z\u00a1-\uffff0-9]+)*)(?::\d{2,5})?(?:[\/?#]\S*)?$/;var Wf=class{element;constructor(e){this.element=e}get badInput(){return this.element[k]===`input`&&(this.element.type===`number`||this.element.type===`range`)&&this.element.value.length>0&&!/^[-+]?(?:\d+|\d*[.,]\d+)$/.test(this.element.value)}get customError(){return this.element[Gt].length>0}get patternMismatch(){return this.element[k]===`input`&&this.element.hasAttribute(`pattern`)&&this.element.value.length>0&&this.element.value.replace(new RegExp(this.element.getAttribute(`pattern`)),``).length>0}get rangeOverflow(){return this.element[k]===`input`&&this.element.hasAttribute(`max`)&&(this.element.type===`number`||this.element.type===`range`)&&this.element.value.length>0&&Number(this.element.value)>Number(this.element.getAttribute(`max`))}get rangeUnderflow(){return this.element[k]===`input`&&this.element.hasAttribute(`min`)&&(this.element.type===`number`||this.element.type===`range`)&&this.element.value.length>0&&Number(this.element.value)<Number(this.element.getAttribute(`min`))}get stepMismatch(){return this.element[k]===`input`&&(this.element.type===`number`||this.element.type===`range`)&&(this.element.hasAttribute(`step`)&&this.element.getAttribute(`step`)!==`any`&&Number(this.element.value)%Number(this.element.getAttribute(`step`))!==0||!this.element.hasAttribute(`step`)&&Number(this.element.value)%1!=0)}get tooLong(){return(this.element[k]===`input`||this.element[k]===`textarea`)&&this.element.maxLength>0&&this.element.value.length>this.element.maxLength}get tooShort(){return(this.element[k]===`input`||this.element[k]===`textarea`)&&this.element.minLength>0&&this.element.value.length>0&&this.element.value.length<this.element.minLength}get typeMismatch(){return this.element[k]===`input`&&this.element.value.length>0&&(this.element.type===`email`&&!Hf.test(this.element.value)||this.element.type===`url`&&!Uf.test(this.element.value))}get valueMissing(){if(!this.element.required||this.element[k]===`object`||this.element[k]===`output`)return!1;if(this.element[k]===`input`){if(this.element.type===`checkbox`)return!this.element.checked;if(this.element.type===`radio`){if(this.element.checked)return!1;if(!this.element.name)return!0;let e=this.element[Le]||this.element.getRootNode();return!e||!e.querySelector(`input[name="${this.element.name}"]:checked`)}}return this.element.value.length===0}get valid(){return!this.badInput&&!this.customError&&!this.patternMismatch&&!this.rangeOverflow&&!this.rangeUnderflow&&!this.stepMismatch&&!this.tooLong&&!this.tooShort&&!this.typeMismatch&&!this.valueMissing}},Gf=class{static getAssociatedLabelElements(e){let t=e.id,n;n=t&&e[x]?(e[it]||e[g]).querySelectorAll(`label[for="${t}"]`)[A]:[];let r=e[S];for(;r;){if(r.tagName===`LABEL`){n.push(r);break}r=r[S]}return new Bc(N,n)}};const Kf=[`submit`,`reset`,`button`,`menu`];var qf=class extends Q{[Gt]=``;[Kt]=new Wf(this);[Le]=null;[Br]=null;get validationMessage(){return this[Gt]}get validity(){return this[Kt]}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get value(){return this.getAttribute(`value`)||``}set value(e){this.setAttribute(`value`,e)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}get type(){let e=this.getAttribute(`type`);return e===null||!Kf.includes(e)?`submit`:e}set type(e){this.setAttribute(`type`,e)}get formAction(){if(!this.hasAttribute(`formaction`))return this[g].location.href;try{return new re(this.getAttribute(`formaction`),this[g].location.href).href}catch{return``}}set formAction(e){this.setAttribute(`formaction`,e)}get formEnctype(){return this.getAttribute(`formenctype`)||``}set formEnctype(e){this.setAttribute(`formenctype`,e)}get formMethod(){return this.getAttribute(`formmethod`)||``}set formMethod(e){this.setAttribute(`formmethod`,e)}get formNoValidate(){return this.getAttribute(`formnovalidate`)!==null}set formNoValidate(e){e?this.setAttribute(`formnovalidate`,``):this.removeAttribute(`formnovalidate`)}get formTarget(){return this.getAttribute(`formtarget`)||``}set formTarget(e){this.setAttribute(`formtarget`,e)}get form(){if(this[Le])return this[Le];let e=this.getAttribute(`form`);return!e||!this[x]?null:this[g].getElementById(e)}get labels(){return Gf.getAssociatedLabelElements(this)}get popoverTargetElement(){return this[Br]}set popoverTargetElement(e){if(e!==null&&!(e instanceof Q))throw new this[b].TypeError(`Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.`);this[Br]=e}get popoverTargetAction(){let e=this.getAttribute(`popovertargetaction`);return e===null||e!==`hide`&&e!==`show`&&e!==`toggle`?`toggle`:e}set popoverTargetAction(e){this.setAttribute(`popovertargetaction`,e)}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}checkValidity(){let e=this.disabled||this.type===`reset`||this.type===`button`||this[Kt].valid;return e||this.dispatchEvent(new W(`invalid`,{bubbles:!0,cancelable:!0})),e}reportValidity(){return this.checkValidity()}setCustomValidity(e){this[Gt]=String(e)}dispatchEvent(e){if(e.type===`click`&&e instanceof ou&&e.eventPhase===Ts.none&&this.disabled)return!1;let t=super.dispatchEvent(e);if(!e[Wr]&&e.type===`click`&&e.eventPhase===Ts.none&&e instanceof ou){let e=this.type;if(e===`submit`||e===`reset`){let t=this.form;t&&(e===`submit`&&this[x]?t.requestSubmit(this):e===`reset`&&t.reset())}}return t}},Jf=class{[os]=null;width;height;constructor(e,t){this.width=e,this.height=t}getContext(e,t){let n=new Y(this[b]).getBrowserFrame();if(!n)throw new this[b].Error(`Failed to execute 'getContext' on 'OffscreenCanvas': Browser frame is not available. This happens when the browser is closing.`);let r=new Y(this[b]).getSettings()?.canvasAdapter;return r?(this[os]=r.getContext({window:this[b],browserFrame:n,canvas:this},e,t),this[os]):null}convertToBlob(e){let t=new Y(this[b]).getBrowserFrame();if(!t)throw new this[b].Error(`Failed to execute 'getContext' on 'OffscreenCanvas': Browser frame is not available. This happens when the browser is closing.`);let n=new Y(this[b]).getSettings()?.canvasAdapter;return n?new Promise((r,i)=>{n.toBlob({window:this[b],browserFrame:t,canvas:this},e=>{e?r(e):i(new this[b].DOMException(`Failed to execute 'convertToBlob' on 'OffscreenCanvas': The canvas could not be converted to a Blob.`,H.encodingError))},e?.type,e?.quality)}):new Promise(t=>{this[b].requestAnimationFrame(()=>t(new Ls([],e)))})}transferToImageBitmap(){if(!new Y(this[b]).getBrowserFrame())throw new this[b].Error(`Failed to execute 'getContext' on 'OffscreenCanvas': Browser frame is not available. This happens when the browser is closing.`);let e=this[b];if(!new Y(e).getSettings()?.canvasAdapter)return new e.ImageBitmap(N,this[b],this);let t=this[os];if(!t)throw new this[b].TypeError(`Failed to execute 'transferToImageBitmap' on 'OffscreenCanvas': Cannot transfer an ImageBitmap from an OffscreenCanvas with no context`);let n=new e.ImageBitmap(N,this[b],this);return t.clearRect(0,0,this.width,this.height),n}};const Yf=`S3F/aBCdEfGHIjKlMnOpQRStUvWxYz1234567890+1AbC2DEf2GHi3jK34le+ab12C3+1aBCdEf==`;var Xf;(function(e){e.none=`none`,e.context=`context`,e.offscreen=`offscreen`})(Xf||={});var Zf=class extends Q{#e=Xf.none;#t=null;get oncontextlost(){return Z.getEventListener(this,`oncontextlost`)}set oncontextlost(e){this[V].set(`oncontextlost`,e)}get oncontextrestored(){return Z.getEventListener(this,`oncontextrestored`)}set oncontextrestored(e){this[V].set(`oncontextrestored`,e)}get onwebglcontextcreationerror(){return Z.getEventListener(this,`onwebglcontextcreationerror`)}set onwebglcontextcreationerror(e){this[V].set(`onwebglcontextcreationerror`,e)}get onwebglcontextlost(){return Z.getEventListener(this,`onwebglcontextlost`)}set onwebglcontextlost(e){this[V].set(`onwebglcontextlost`,e)}get onwebglcontextrestored(){return Z.getEventListener(this,`onwebglcontextrestored`)}set onwebglcontextrestored(e){this[V].set(`onwebglcontextrestored`,e)}get width(){let e=this.getAttribute(`width`);if(e===null)return 300;let t=parseInt(e,10);return isNaN(t)?300:t}set width(e){this.setAttribute(`width`,String(e))}get height(){let e=this.getAttribute(`height`);if(e===null)return 150;let t=parseInt(e,10);return isNaN(t)?150:t}set height(e){this.setAttribute(`height`,String(e))}captureStream(e){let t=new this[b].MediaStream,n=new this[b].CanvasCaptureMediaStreamTrack(N,this);return n[Pr]=`video`,n[Bn].deviceId=Yf,n[Bn].aspectRatio.max=this.width,n[Bn].height.max=this.height,n[Bn].width.max=this.width,n[Vn].deviceId=Yf,e!==void 0&&(n[Bn].frameRate.max=e,n[Vn].frameRate=e),t.addTrack(n),t}getContext(e,t){if(this.#e===Xf.offscreen)throw new this[b].DOMException(`Failed to execute 'getContext' on 'HTMLCanvasElement': Cannot get context from a canvas that has transferred its control to offscreen.`,H.invalidStateError);this.#e=Xf.context;let n=new Y(this[b]).getBrowserFrame();if(!n)throw new this[b].Error(`Failed to execute 'getContext' on 'HTMLCanvasElement': Browser frame is not available. This happens when the browser is closing.`);let r=new Y(this[b]).getSettings()?.canvasAdapter;return r?r.getContext({browserFrame:n,window:this[b],canvas:this},e,t):null}toDataURL(e,t){let n=new Y(this[b]).getBrowserFrame();if(!n)throw new this[b].Error(`Failed to execute 'toDataURL' on 'HTMLCanvasElement': Browser frame is not available. This happens when the browser is closing.`);let r=new Y(this[b]).getSettings()?.canvasAdapter;return r?this.#t?r.toDataURL({browserFrame:n,window:this[b],canvas:this.#t},e,t):r.toDataURL({browserFrame:n,window:this[b],canvas:this},e,t):`data:${e||`image/png`};base64,${Buffer.from([]).toString(`base64`)}`}toBlob(e,t,n){let r=new Y(this[b]).getBrowserFrame();if(!r)throw new this[b].Error(`Failed to execute 'toBlob' on 'HTMLCanvasElement': Browser frame is not available. This happens when the browser is closing.`);let i=new Y(this[b]).getSettings()?.canvasAdapter;if(!i){this[b].requestAnimationFrame(()=>e(new Ls([],{type:t||`image/png`})));return}if(this.#t){i.toBlob({browserFrame:r,window:this[b],canvas:this.#t},e,t,n);return}i.toBlob({browserFrame:r,window:this[b],canvas:this},e,t,n)}transferControlToOffscreen(){if(this.#e===Xf.context)throw new this[b].DOMException(`Failed to execute 'transferControlToOffscreen' on 'HTMLCanvasElement': Cannot transfer control from a canvas that has a rendering context.`,H.invalidStateError);if(this.#e===Xf.offscreen)throw new this[b].DOMException(`Failed to execute 'transferControlToOffscreen' on 'HTMLCanvasElement': Cannot transfer control from a canvas for more than one time.`,H.invalidStateError);return this.#e=Xf.offscreen,this.#t=new Jf(this.width,this.height),this.#t}},Qf=class extends Q{},$f=class extends Q{get value(){return this.getAttribute(`value`)||``}set value(e){this.setAttribute(`value`,e)}},ep=class extends Q{[yn]=null;get options(){return this[yn]||(this[yn]=kd.getElementsByTagName(this,`OPTION`)),this[yn]}},tp=class extends Q{get ontoggle(){return Z.getEventListener(this,`ontoggle`)}set ontoggle(e){this[V].set(`ontoggle`,e)}get open(){return this.getAttribute(`open`)!==null}set open(e){e?this.setAttribute(`open`,``):this.removeAttribute(`open`)}[qn](e,t){super[qn](e,t),e[E]===`open`&&e[v]!==t?.[v]&&this.dispatchEvent(new W(`toggle`))}[Jn](e){super[Jn](e),e&&e[E]===`open`&&this.dispatchEvent(new W(`toggle`))}dispatchEvent(e){let t=super.dispatchEvent(e);if(!e[Wr]&&e.type===`click`&&e.eventPhase===Ts.bubbling&&e instanceof ou){let t=e[dt];if(t)if(t[k]===`summary`&&t[S]===this)this.open=!this.open;else{let e=t;for(let t of this[Yn])if(t[k]===`summary`){e=t;break}e&&e.contains(t)&&(this.open=!this.open)}}return t}},np=class extends Q{[qt]=``;get oncancel(){return Z.getEventListener(this,`oncancel`)}set oncancel(e){this[V].set(`oncancel`,e)}get onclose(){return Z.getEventListener(this,`onclose`)}set onclose(e){this[V].set(`onclose`,e)}get returnValue(){return this[qt]}set returnValue(e){this[qt]=String(e)}set open(e){e?this.setAttribute(`open`,``):this.removeAttribute(`open`)}get open(){return this.getAttribute(`open`)!==null}close(e){let t=this.open;this.removeAttribute(`open`),this.returnValue=e===void 0?``:String(e),t&&this.dispatchEvent(new W(`close`))}showModal(){this.setAttribute(`open`,``)}show(){this.setAttribute(`open`,``)}},rp=class extends Q{},ip=class extends Q{get height(){return this.getAttribute(`height`)||``}set height(e){this.setAttribute(`height`,e)}get width(){return this.getAttribute(`width`)||``}set width(e){this.setAttribute(`width`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[g].location.href).href}catch{return this.getAttribute(`src`)}}set src(e){this.setAttribute(`src`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}},ap=class extends Q{[Jt]=null;[Le]=null;get elements(){return this[Jt]||(this[Jt]=new Od(N,()=>J.querySelectorAll(this,`input,button,textarea,select`)[A])),this[Jt]}get form(){if(this[Le])return this[Le];let e=this.getAttribute(`form`);return!e||!this[x]?null:this[g].getElementById(e)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get type(){return`fieldset`}get validationMessage(){return``}get willValidate(){return!1}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}checkValidity(){return!0}reportValidity(){return!0}setCustomValidity(e){}},op=class extends Od{constructor(e,t){super(e,()=>t[tr]()),this[Ze]=t}namedItem(e){return this[Ze][nr](e)}},sp=class{static createChildFrame(e){let t=new e.constructor(e.page);return t.parentFrame=e,e.childFrames.push(t),t}static destroyFrame(e){let t=e.page.context.browser[Ie];return e.closed?Promise.resolve():(e.closed=!0,new Promise((n,r)=>{if(!e.window){n();return}if(e.parentFrame){let t=e.parentFrame.childFrames.indexOf(e);t!==-1&&e.parentFrame.childFrames.splice(t,1)}if(!e.childFrames.length){e[fe].destroy().then(()=>{t&&e.window&&t.disconnect(e.window),e.window={closed:!0},e[yt]=null,e[bt]=null,e[Ke]&&(e[Ke].navigation=[]),n()}).catch(e=>r(e)),e.window&&e.window[Me]();return}Promise.all(e.childFrames.slice().map(e=>this.destroyFrame(e))).then(()=>{e[fe].destroy().then(()=>{t&&e.window&&t.disconnect(e.window),e.window={closed:!0},e[yt]=null,e[bt]=null,e[Ke]&&(e[Ke].navigation=[]),n()}).catch(e=>r(e)),e.window&&e.window[Me]()}).catch(e=>r(e))}))}},cp;(function(e){e.anyOrigin=`anyOrigin`,e.sameOrigin=`sameOrigin`,e.strictOrigin=`strictOrigin`})(cp||={});var lp=cp,up=class{static validateCrossOriginPolicy(e,t){let n=e.page.context.browser.settings,r=e.page.mainFrame.window.location;return e[yt]?r=e[yt].window.location:e.parentFrame&&(r=e.parentFrame.window.location),!(n.navigation.crossOriginPolicy===lp.sameOrigin&&r.protocol!==`about:`&&t.protocol!==`about:`&&t.protocol!==`javascript:`&&r.origin!==t.origin||n.navigation.crossOriginPolicy===lp.strictOrigin&&r.protocol===`https:`&&t.protocol===`http:`)}static validateFrameNavigation(e){let t=e.page.context.browser.settings;return!(e.page.context.browser.windowClass&&e.page.context===e.page.context.browser.defaultContext&&e.page.context.pages[0]===e.page&&e.page.mainFrame===e||t.navigation.disableMainFrameNavigation&&e.page.mainFrame===e||t.navigation.disableChildFrameNavigation&&e.page.mainFrame!==e||t.navigation.disableChildPageNavigation&&e[yt])}},dp=class e{static async navigate(e){let{windowClass:t,frame:n,url:r,formData:i,method:a,goToOptions:o,disableHistory:s}=e,c=n.page.context.browser[Ie],l=o?.referrer||n.window.location.origin,u=Ju.getRelativeURL(n,r),d=new URL(u.href.split(`#`)[0]),f=new URL(n.url.split(`#`)[0]),p=()=>{let e=n[Ke].navigation;n[Ke].navigation=[];for(let t of e)t()};if(!n.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);if(d.href===f.href&&u.hash&&u.hash!==n.window?.location.hash){let e=n[Dn];return s||(e.currentItem.popState=!0,e.push({title:``,href:u.href,state:null,popState:!0,scrollRestoration:qu.manual,method:a||(i?`POST`:`GET`),formData:i||null})),n.window.location[Cn](n,u.href),null}if(u.protocol===`javascript:`){if(n&&n.page.context.browser.settings.enableJavaScriptEvaluation){let e=n.window[$e],t=n[fe],r=e.startTask(),i=u.href.replace(`javascript:`,``);await new Promise(e=>{n.window.requestAnimationFrame(()=>{let r=setImmediate(()=>{t.endTask(a),e(null)}),a=t.startTask(()=>()=>{clearImmediate(r),e(null)});n.window[Fe](i,{filename:n.url})})}),e.endTask(r),p()}return null}if(!up.validateCrossOriginPolicy(n,u))return null;if(!up.validateFrameNavigation(n))return n.page.context.browser.settings.navigation.disableFallbackToSetURL||n.window.location[Cn](n,u.href),null;s||n[Dn].push({title:``,href:u.href,state:null,popState:!1,scrollRestoration:qu.auto,method:a||(i?`POST`:`GET`),formData:i||null});let ee=n.window,te=n[fe],ne=ee.innerWidth,re=ee.innerHeight,ie=ee.devicePixelRatio,ae=n.parentFrame?n.parentFrame.window:n.page.mainFrame.window,oe=n.page.mainFrame.window;n[fe]=new Ms(n),n.window=new t(n,{url:u.href,width:ne,height:re}),n.window[dr]=ae,n.window[fr]=oe,n.window.devicePixelRatio=ie,c&&c.observe(n.window),l&&(n.window.document[et]=l);let se=n[fe].startTask(),ce=()=>{te.destroy().then(()=>{c&&c.disconnect(ee),n[fe].endTask(se)}),ee[Me]()};if(n.childFrames.length?Promise.all(n.childFrames.map(e=>sp.destroyFrame(e))).then(ce):ce(),u.protocol===`about:`)return o?.beforeContentCallback&&o.beforeContentCallback(n.window),n.page.context.browser.settings.navigation.beforeContentCallback&&n.page.context.browser.settings.navigation.beforeContentCallback(n.window),await new Promise(e=>n.page.mainFrame.window.requestAnimationFrame(e)),p(),null;let le=n.window[$e],ue=n[fe],de=new n.window.AbortController,pe=setTimeout(()=>{ue.endTimer(pe),de.abort(new n.window.DOMException(`The operation was aborted. Request timed out.`,H.timeoutError))},o?.timeout??3e4);ue.startTimer(pe);let me=le.startTask(),he=()=>{clearTimeout(pe),ue.endTimer(pe),le.endTask(me),p()},ge=new n.window.Headers(o?.headers),_e,ve;o?.hard&&ge.set(`Cache-Control`,`no-cache`);let ye=new Gu({browserFrame:n,window:n.window,url:u.href,disableSameOriginPolicy:!0,init:{referrer:l,referrerPolicy:o?.referrerPolicy||`origin`,signal:de.signal,method:a||(i?`POST`:`GET`),headers:ge,body:i}});try{if(_e=await ye.send(),n.parentFrame){let e=n.parentFrame.window.location,t=_e.headers?.get(`X-Frame-Options`)?.toLowerCase(),i=e.origin===u.origin||u.origin===`null`;if(t===`deny`||t===`sameorigin`&&!i)throw Error(`Refused to display '${r}' in a frame because it set 'X-Frame-Options' to '${t}'.`)}ve=await _e.text()}catch(e){throw he(),e}return n.window?(_e.url&&n.window[En][Cn](n,_e.url),_e.ok||n.page.console.error(`GET ${u.href} ${_e.status} (${_e.statusText})`),o?.beforeContentCallback&&o.beforeContentCallback(n.window),n.page.context.browser.settings.navigation.beforeContentCallback&&n.page.context.browser.settings.navigation.beforeContentCallback(n.window),await new Promise(e=>{n.window.requestAnimationFrame(()=>{let t,r=ue.startTask(()=>()=>{clearImmediate(t),e(null)});t=setImmediate(()=>{ue.endTask(r),e(null)}),n.content=ve})}),he(),_e):null}static navigateBack(t){let{windowClass:n,frame:r,goToOptions:i}=t,a=r[Dn],o=a.items[a.items.indexOf(a.currentItem)-1];if(!o)return new Promise(e=>{r.window.requestAnimationFrame(()=>{let t=r[Ke].navigation;r[Ke].navigation=[];for(let e of t)e();e(null)})});let s=new URL(a.currentItem.href).origin,c=new URL(o.href).origin;return a.currentItem=o,!o.popState||s!==c?e.navigate({windowClass:n,frame:r,goToOptions:{...i,referrer:r.url},url:o.href,method:o.method,formData:o.formData,disableHistory:!0}):(r.window.location[Cn](r,o.href),r.window.dispatchEvent(new r.window.PopStateEvent(`popstate`,{state:o.state,hasUAVisualTransition:!1})),Promise.resolve(null))}static navigateForward(t){let{windowClass:n,frame:r,goToOptions:i}=t,a=r[Dn],o=a.items[a.items.indexOf(a.currentItem)+1];if(!o)return new Promise(e=>{r.window.requestAnimationFrame(()=>{let t=r[Ke].navigation;r[Ke].navigation=[];for(let e of t)e();e(null)})});let s=new URL(a.currentItem.href).origin,c=new URL(o.href).origin;return a.currentItem=o,!o.popState||s!==c?e.navigate({windowClass:n,frame:r,goToOptions:{...i,referrer:r.url},url:o.href,method:o.method,formData:o.formData,disableHistory:!0}):(r.window.location[Cn](r,o.href),r.window.dispatchEvent(new r.window.PopStateEvent(`popstate`,{state:o.state,hasUAVisualTransition:!1})),Promise.resolve(null))}static navigateSteps(t){if(!t.steps)return this.reload(t);let{windowClass:n,frame:r,goToOptions:i,steps:a}=t,o=r[Dn],s=o.items.indexOf(o.currentItem),c=s+a,l=o.items[c];if(!l)return new Promise(e=>{r.window.requestAnimationFrame(()=>{let t=r[Ke].navigation;r[Ke].navigation=[];for(let e of t)e();e(null)})});let u=new URL(o.currentItem.href).origin,d=!0;if(a<0){for(let e=s;e>c;e--)if(!o.items[e].popState||u!==new URL(o.items[e].href).origin){d=!1;break}}else for(let e=s;e<c;e++)if(!o.items[e].popState||u!==new URL(o.items[e].href).origin){d=!1;break}return o.currentItem=l,d?(r.window.location[Cn](r,l.href),r.window.dispatchEvent(new r.window.PopStateEvent(`popstate`,{state:l.state,hasUAVisualTransition:!1})),Promise.resolve(null)):e.navigate({windowClass:n,frame:r,goToOptions:{...i,referrer:r.url},url:l.href,method:l.method,formData:l.formData,disableHistory:!0})}static reload(t){let{windowClass:n,frame:r,goToOptions:i}=t,a=r[Dn];return e.navigate({windowClass:n,frame:r,goToOptions:{...i,referrer:r.url},url:a.currentItem.href,method:a.currentItem.method,formData:a.currentItem.formData,disableHistory:!0})}},fp=class extends Bc{get value(){for(let e of this[A])if(e.checked)return e.value;return null}},pp=class e extends Q{[Jt]=null;[ar];constructor(){super();let t=new zc(this,[e,Q,Tf,md,tl]),n=new Proxy(this,{get:(e,n)=>{if(n===`length`)return e[tr]().length;if(n in e||typeof n==`symbol`)return t.bind(n),e[n];let r=Number(n);return isNaN(r)?e[nr](n)||void 0:e[tr]()[r]},set(e,n,r){if(t.bind(n),typeof n==`symbol`)return e[n]=r,!0;let i=Number(n);return isNaN(i)&&(e[n]=r),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[tr]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=e[tr](),r=Number(t);if(!isNaN(r)&&r>=0&&r<n.length)return!0;t=String(t);for(let e=0;e<n.length;e++){let r=n[e],i=r.getAttribute(`id`)||r.getAttribute(`name`);if(i&&i===t)return!0}return!1},defineProperty(e,n,r){if(t.preventBinding(n),!r.value)return Object.defineProperty(e,n,r),!0;let i=Number(r.value);return isNaN(i)?(Object.defineProperty(e,n,r),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e)return Object.getOwnPropertyDescriptor(e,t);let n=e[tr](),r=Number(t);if(!isNaN(r)&&r>=0&&r<n.length)return{value:n[r],writable:!1,enumerable:!0,configurable:!0};for(let e=0;e<n.length;e++){let r=n[e],i=r.getAttribute(`id`)||r.getAttribute(`name`);if(i&&i===t)return{value:r,writable:!1,enumerable:!0,configurable:!0}}}});return this[ar]=n,this[Le]=n,n}get onformdata(){return Z.getEventListener(this,`onformdata`)}set onformdata(e){this[V].set(`onformdata`,e)}get onreset(){return Z.getEventListener(this,`onreset`)}set onreset(e){this[V].set(`onreset`,e)}get onsubmit(){return Z.getEventListener(this,`onsubmit`)}set onsubmit(e){this[V].set(`onsubmit`,e)}get elements(){return this[Jt]||(this[Jt]=new op(N,this)),this[Jt]}get length(){return this[tr]().length}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get method(){return this.getAttribute(`method`)||`get`}set method(e){this.setAttribute(`method`,e)}get target(){return this.getAttribute(`target`)||``}set target(e){this.setAttribute(`target`,e)}get action(){if(!this.hasAttribute(`action`))return this[g].location.href;try{return new URL(this.getAttribute(`action`),this[g].location.href).href}catch{return``}}set action(e){this.setAttribute(`action`,e)}get encoding(){return this.getAttribute(`encoding`)||``}set encoding(e){this.setAttribute(`encoding`,e)}get enctype(){return this.getAttribute(`enctype`)||``}set enctype(e){this.setAttribute(`enctype`,e)}get autocomplete(){return this.getAttribute(`autocomplete`)||``}set autocomplete(e){this.setAttribute(`autocomplete`,e)}get acceptCharset(){return this.getAttribute(`acceptcharset`)||``}set acceptCharset(e){this.setAttribute(`acceptcharset`,e)}get noValidate(){return this.getAttribute(`novalidate`)!==null}set noValidate(e){e?this.setAttribute(`novalidate`,``):this.removeAttribute(`novalidate`)}submit(){this.#e()}requestSubmit(e){if(e?.formNoValidate||this.noValidate||this.checkValidity()){let t=new uu(`submit`,{bubbles:!0,cancelable:!0,submitter:e||this[ar]});this.dispatchEvent(t),t.defaultPrevented||this.#e(e)}}reset(){for(let e of this[tr]())switch(e[w]){case`TEXTAREA`:e[v]=null;break;case`INPUT`:e[v]=null,e[_e]=null;break;case`OUTPUT`:e.textContent=e[mr];break;case`SELECT`:let t=!1;for(let n of e.options)if(n.hasAttribute(`selected`)){t=!0,n.selected=!0;break}!t&&e.options.length>0&&(e.options[0].selected=!0);break}this.dispatchEvent(new W(`reset`,{bubbles:!0,cancelable:!0}))}checkValidity(){let e={},t=!0;for(let n of this[tr]())n[w]===`INPUT`&&n.type===`radio`&&n.name?e[n.name]||(e[n.name]=!0,n.checkValidity()||(t=!1)):n.checkValidity()||(t=!1);return t}reportValidity(){return this.checkValidity()}[Nn](e=!1){return super[Nn](e)}[tr](){let e=J.querySelectorAll(this,`input,select,textarea,button,fieldset,object,output`)[A].slice();if(this[x]){let t=this.getAttribute(`id`);if(t)for(let n of J.querySelectorAll(this[g],`input[form="${t}"],select[form="${t}"],textarea[form="${t}"],button[form="${t}"],fieldset[form="${t}"],object[form="${t}"],output[form="${t}"]`)[A])e.includes(n)||e.push(n)}return e}[nr](e){let t=this[tr](),n=[];e=String(e);for(let r of t)(r.getAttribute(`id`)===e||r.getAttribute(`name`)===e)&&n.push(r);return n.length?n.length===1?n[0]:new fp(N,n):null}#e(e){let t=e?.formMethod||this.method;if(t===`dialog`){let t=null,n=this;for(;n;){if(n[w]===`DIALOG`){t=n;break}n=n.parentElement}if(t){t.close(e?.value);return}}let n=e?.hasAttribute(`formaction`)&&e?.formAction||this.action,r=new Y(this[b]).getBrowserFrame();if(!r)return;if(!n){this[g].location.hash=`#blocked`;return}let i=new this[b].FormData(this,e),a;switch(e?.formTarget||this.target){default:case`_self`:a=r;break;case`_top`:a=r.page.mainFrame;break;case`_parent`:a=r.parentFrame??r;break;case`_blank`:a=r.page.context.newPage().mainFrame,a[yt]=r;break}if(t===`get`){let e=new URL(n);e.search=``;for(let[t,n]of i)typeof n==`string`&&e.searchParams.append(t,n);dp.navigate({windowClass:this[g][je]?.constructor,frame:a,url:e.href,goToOptions:{referrer:r.page.mainFrame.window.location.origin}});return}dp.navigate({windowClass:this[g][je]?.constructor,frame:a,method:t,url:n,formData:i,goToOptions:{referrer:r.page.mainFrame.window.location.origin}})}},mp=class extends Q{},hp=class extends Q{},gp=class extends Q{},_p=class extends Q{},vp=class extends tl{window=this;location;[ur]=this;#e;constructor(e,t){super(),this[dr]=t??this,this[fr]=t??this,this.location=new Proxy({},{get:()=>{throw new gs(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,H.securityError)},set:()=>{throw new gs(`Blocked a frame with origin "${this.parent.location.origin}" from accessing a cross-origin frame.`,H.securityError)}}),this.#e=e}get self(){return this[ur]}set self(e){this[ur]=e}get top(){return this[fr]}get parent(){return this[dr]}set parent(e){this[dr]=e}get opener(){return this.#e.opener}get closed(){return this.#e.closed}blur(){this.#e.blur()}focus(){this.#e.focus()}close(){this.#e.close()}postMessage(e,t=`*`,n){this.#e.postMessage(e,t,n)}};const yp=[`allow-downloads`,`allow-forms`,`allow-modals`,`allow-orientation-lock`,`allow-pointer-lock`,`allow-popups`,`allow-popups-to-escape-sandbox`,`allow-presentation`,`allow-same-origin`,`allow-scripts`,`allow-top-navigation`,`allow-top-navigation-by-user-activation`,`allow-top-navigation-to-custom-protocols`];var bp=class extends Q{[Mn]=null;#e={window:null};#t=null;#n=null;get onload(){return Z.getEventListener(this,`onload`)}set onload(e){this[V].set(`onload`,e)}get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[V].set(`onerror`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[g].location.href).href}catch{return this.getAttribute(`src`)}}set src(e){this.setAttribute(`src`,e)}get allow(){return this.getAttribute(`allow`)||``}set allow(e){this.setAttribute(`allow`,e)}get height(){return this.getAttribute(`height`)||``}set height(e){this.setAttribute(`height`,e)}get width(){return this.getAttribute(`width`)||``}set width(e){this.setAttribute(`width`,e)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get sandbox(){return this[Mn]||(this[Mn]=new Dd(N,this,`sandbox`)),this[Mn]}set sandbox(e){this.setAttribute(`sandbox`,e)}get srcdoc(){return this.getAttribute(`srcdoc`)||``}set srcdoc(e){this.setAttribute(`srcdoc`,e)}get referrerPolicy(){return this.getAttribute(`referrerpolicy`)||``}set referrerPolicy(e){this.setAttribute(`referrerpolicy`,e)}get contentDocument(){return this.#e.window?.document??null}get contentWindow(){return this.#e.window}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}[Ce](){super[Ce](),this.#i()}[we](){super[we](),this.#a()}[Nn](e=!1){return super[Nn](e)}[qn](e,t){super[qn](e,t),e[E]===`srcdoc`&&this.#i(),e[E]===`src`&&e[v]&&!this.hasAttribute(`srcdoc`)&&e[v]!==t?.[v]&&this.#i(),e[E]===`sandbox`&&this.#r()}[Jn](e){super[Jn](e),(e[E]===`srcdoc`||e[E]===`src`)&&this.#i()}#r(){let e=this[b],t=[];for(let e of this.sandbox)yp.includes(e)||t.push(e);t.length===1?e.console.error(`Error while parsing the 'sandbox' attribute: '${t[0]}' is an invalid sandbox flag.`):t.length>1&&e.console.error(`Error while parsing the 'sandbox' attribute: '${t.join(`', '`)}' are invalid sandbox flags.`)}#i(){if(!this[x]){this.#a();return}let e=this.getAttribute(`srcdoc`),t=this[b],n=new Y(t).getBrowserFrame();if(!n)return;if(e!==null){if(this.#n===e)return;this.#a(),this.#t=sp.createChildFrame(n),this.#t.url=`about:srcdoc`,this.#e.window=this.#t.window,this.#t.window[fr]=n.window.top,this.#t.window[dr]=n.window,this.#t.window.document.open(),this.#t.window.document.write(e),this.#n=e,this[b].requestAnimationFrame(()=>this.dispatchEvent(new W(`load`)));return}this.#n!==null&&this.#a();let r=n.window.location,i=Ju.getRelativeURL(n,this.src);if(this.#t&&this.#t.window.location.href===i.href)return;if(n.page.context.browser.settings.disableIframePageLoading){let e=new t.DOMException(`Failed to load iframe page "${i.href}". Iframe page loading is disabled.`,H.notSupportedError);n.page.console.error(e),this.dispatchEvent(new W(`error`));return}let a=r.origin===i.origin||i.origin===`null`,o=a?t:new vp(t);this.#t=this.#t??sp.createChildFrame(n),this.#t.window[fr]=o,this.#t.window[dr]=o,this.#t.goto(i.href,{referrer:r.origin,referrerPolicy:this.referrerPolicy}).then(()=>this.dispatchEvent(new W(`load`))).catch(e=>{n.page.console.error(e),this.dispatchEvent(new W(`error`))}),this.#e.window=a?this.#t.window:new vp(this.#t.window,t)}#a(){this.#t&&=(sp.destroyFrame(this.#t),null),this.#e.window=null,this.#n=null}},xp=t(((e,t)=>{function n(e){return e.toString(`ascii`,0,2)===`BM`}function r(e){return{width:e.readUInt32LE(18),height:Math.abs(e.readInt32LE(22))}}t.exports={detect:n,calculate:r}})),Sp=t(((e,t)=>{var n=1,r=6,i=16;function a(e){var t;return e.readUInt16LE(0)===0?(t=e.readUInt16LE(2),t===n):!1}function o(e,t){var n=e.readUInt8(t);return n===0?256:n}function s(e,t){var n=r+t*i;return{width:o(e,n),height:o(e,n+1)}}function c(e){var t=e.readUInt16LE(4),n=s(e,0),r;if(t===1)return n;for(n.images=[{width:n.width,height:n.height}],r=1;r<t;r+=1)n.images.push(s(e,r));return n}t.exports={detect:a,calculate:c}})),Cp=t(((e,t)=>{var n=2;function r(e){var t;return e.readUInt16LE(0)===0?(t=e.readUInt16LE(2),t===n):!1}t.exports={detect:r,calculate:Sp().calculate}})),wp=t(((e,t)=>{function n(e){return e.readUInt32LE(0)===542327876}function r(e){return{height:e.readUInt32LE(12),width:e.readUInt32LE(16)}}t.exports={detect:n,calculate:r}})),Tp=t(((e,t)=>{var n=/^GIF8[79]a/;function r(e){var t=e.toString(`ascii`,0,6);return n.test(t)}function i(e){return{width:e.readUInt16LE(6),height:e.readUInt16LE(8)}}t.exports={detect:r,calculate:i}})),Ep=t(((e,t)=>{function n(e){return e.toString(`hex`,0,2)===`ffd8`}function r(e,t){return{height:e.readUInt16BE(t),width:e.readUInt16BE(t+2)}}function i(e,t){if(t>e.length)throw TypeError(`Corrupt JPG, exceeded buffer limits`);if(e[t]!==255)throw TypeError(`Invalid JPG, marker table corrupted`)}function a(e){e=e.slice(4);for(var t,n;e.length;){if(t=e.readUInt16BE(0),i(e,t),n=e[t+1],n===192||n===193||n===194)return r(e,t+5);e=e.slice(t+2)}throw TypeError(`Invalid JPG, no size found`)}t.exports={detect:n,calculate:a}})),Dp=t(((e,t)=>{var n=`PNG\r
|
|
73
|
+
|
|
74
|
+
`,r=`IHDR`,i=`CgBI`;function a(e){if(n===e.toString(`ascii`,1,8)){var t=e.toString(`ascii`,12,16);if(t===i&&(t=e.toString(`ascii`,28,32)),t!==r)throw TypeError(`invalid png`);return!0}}function o(e){return e.toString(`ascii`,12,16)===i?{width:e.readUInt32BE(32),height:e.readUInt32BE(36)}:{width:e.readUInt32BE(16),height:e.readUInt32BE(20)}}t.exports={detect:a,calculate:o}})),Op=t(((e,t)=>{function n(e){return e.toString(`ascii`,0,4)===`8BPS`}function r(e){return{width:e.readUInt32BE(18),height:e.readUInt32BE(14)}}t.exports={detect:n,calculate:r}})),kp=t(((e,t)=>{var n=/<svg[^>]+[^>]*>/;function r(e){return n.test(e)}var i={root:/<svg\s[^>]+>/,width:/\bwidth=(['"])([^%]+?)\1/,height:/\bheight=(['"])([^%]+?)\1/,viewbox:/\bviewBox=(['"])(.+?)\1/};function a(e){var t=e.split(` `);return{width:parseInt(t[2],10),height:parseInt(t[3],10)}}function o(e){var t=e.match(i.width),n=e.match(i.height),r=e.match(i.viewbox);return{width:t&&parseInt(t[2],10),height:n&&parseInt(n[2],10),viewbox:r&&a(r[2])}}function s(e){return{width:e.width,height:e.height}}function c(e){var t=e.viewbox.width/e.viewbox.height;return e.width?{width:e.width,height:Math.floor(e.width/t)}:e.height?{width:Math.floor(e.height*t),height:e.height}:{width:e.viewbox.width,height:e.viewbox.height}}function l(e){var t=e.toString(`utf8`).match(i.root);if(t){var n=o(t[0]);if(n.width&&n.height)return s(n);if(n.viewbox)return c(n)}throw TypeError(`invalid svg`)}t.exports={detect:r,calculate:l}})),Ap=t(((e,t)=>{function n(e){var t=e.toString(`ascii`,0,4)===`RIFF`,n=e.toString(`ascii`,8,12)===`WEBP`,r=e.toString(`ascii`,12,15)===`VP8`;return t&&n&&r}function r(e){var t=e.toString(`ascii`,12,16);if(e=e.slice(20,30),t===`VP8X`){var n=e[0],r=(n&192)==0,s=(n&1)==0;return r&&s?i(e):!1}if(t===`VP8 `&&e[0]!==47)return o(e);var c=e.toString(`hex`,3,6);return t===`VP8L`&&c!==`9d012a`?a(e):!1}function i(e){return{width:1+e.readUIntLE(4,3),height:1+e.readUIntLE(7,3)}}function a(e){return{width:1+((e[2]&63)<<8|e[1]),height:1+((e[4]&15)<<10|e[3]<<2|(e[2]&192)>>6)}}function o(e){return{width:e.readInt16LE(6)&16383,height:e.readInt16LE(8)&16383}}t.exports={detect:n,calculate:r}})),jp=t(((e,t)=>{t.exports={bmp:xp(),cur:Cp(),dds:wp(),gif:Tp(),ico:Sp(),jpg:Ep(),png:Dp(),psd:Op(),svg:kp(),webp:Ap()}})),Mp=t(((e,t)=>{var n=jp();t.exports=function(e){var t,r;for(t in n)if(r=n[t].detect(e),r)return t}})),Np=e(t(((e,t)=>{var n=jp(),r=Mp();function i(e){var t=r(e);if(t in n){var i=n[t].calculate(e);if(i!==!1)return i.type=t,i}throw TypeError(`unsupported file type: `+t)}t.exports=function(e){if(Buffer.isBuffer(e))return i(e);throw TypeError(`expecting only a buffer as input`)},t.exports.types=Object.keys(n)}))(),1);const Pp=/^\s*data:([^,]+)?,(.*)/;var Fp=class extends Q{[w]=`IMG`;[Yt]=!0;[Xt]=0;[Zt]=0;[Qt]=`auto`;[D]=0;[O]=0;[me]=null;get onload(){return Z.getEventListener(this,`onload`)}set onload(e){this[V].set(`onload`,e)}get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[V].set(`onerror`,e)}get complete(){return this[Yt]}get naturalHeight(){return this[Xt]}get naturalWidth(){return this[Zt]}get loading(){let e=this.getAttribute(`loading`);return e===`eager`||e===`lazy`?e:`auto`}set loading(e){this.setAttribute(`loading`,e)}get x(){return this[D]}get y(){return this[O]}get decoding(){return this.getAttribute(`decoding`)||`auto`}set decoding(e){this.setAttribute(`decoding`,e)}get crossOrigin(){return this.getAttribute(`crossOrigin`)}set crossOrigin(e){(e===`anonymous`||e===`use-credentials`)&&this.setAttribute(`crossOrigin`,e)}get alt(){return this.getAttribute(`alt`)||``}set alt(e){this.setAttribute(`alt`,e)}get currentSrc(){return this.src}get width(){let e=this.getAttribute(`width`);if(e===null)return this[Zt];let t=parseInt(e,10);return isNaN(t)||t<=0?this[Zt]:t}set width(e){this.setAttribute(`width`,String(e))}get height(){let e=this.getAttribute(`height`);if(e===null)return this[Xt];let t=parseInt(e,10);return isNaN(t)||t<=0?this[Xt]:t}set height(e){this.setAttribute(`height`,String(e))}get isMap(){return this.getAttribute(`ismap`)!==null}set isMap(e){e?this.setAttribute(`ismap`,``):this.removeAttribute(`ismap`)}get referrerPolicy(){return this.getAttribute(`referrerpolicy`)||``}set referrerPolicy(e){this.setAttribute(`referrerpolicy`,e)}get sizes(){return this.getAttribute(`sizes`)||``}set sizes(e){this.setAttribute(`sizes`,e)}get src(){let e=this.getAttribute(`src`);return e&&(this.#e(e)||this.getAttribute(`src`))||``}set src(e){this.setAttribute(`src`,e)}get srcset(){return this.getAttribute(`srcset`)||``}set srcset(e){this.setAttribute(`srcset`,e)}get useMap(){return this.getAttribute(`usemap`)||``}set useMap(e){this.setAttribute(`usemap`,e)}decode(){return Promise.resolve()}[qn](e,t){if(super[qn](e,t),e[E]===`src`){let t=this.#e(e[v]);if(!t){this[Yt]=!0,this[Xt]=0,this[Zt]=0,this.dispatchEvent(new this[b].Event(`error`));return}if(this.#t(t))return;new Y(this[b]).getSettings()?.enableImageFileLoading&&this.#n(this.src)}}[Jn](e){super[Jn](e),e[E]===`src`&&(this[Yt]=!0,this[Xt]=0,this[Zt]=0,this[me]=null)}#e(e){if(e===null)return null;try{return new URL(e,this[g].location.href).href}catch{}return null}#t(e){let t=e.match(Pp);if(t){let e=Buffer.from(t[2],`base64`);this[Yt]=!0,this[me]=e;try{let t=(0,Np.default)(e);this[Xt]=t.height,this[Zt]=t.width}catch{this[Xt]=0,this[Zt]=0}return this.dispatchEvent(new this[b].Event(`load`)),!0}return!1}async#n(e){this[Yt]=!1,this[Xt]=0,this[Zt]=0,this[me]=null;let t=null,n=null;try{t=await this[b].fetch(e)}catch(e){n=e}if(n||!t?.ok){this[Yt]=!0,this.dispatchEvent(new this[b].Event(`error`)),t?this[b].console.error(`GET ${e} ${t.status} (${t.statusText}).`):n&&this[b].console.error(n);return}let r;try{r=await t.buffer()}catch{this[Yt]=!0,this.dispatchEvent(new this[b].Event(`error`));return}this[Yt]=!0,this[me]=r;try{let e=(0,Np.default)(r);this[Xt]=e.height,this[Zt]=e.width}catch{this[Xt]=0,this[Zt]=0}this.dispatchEvent(new this[b].Event(`load`))}},Ip=class extends Array{constructor(){super(0)}get[Symbol.toStringTag](){return this.constructor.name}item(e){return this[e]||null}};const Lp=/[\n\r]/gm,Rp=e=>e.map(e=>parseInt(e,10));var zp=class{static sanitize(e,t){switch(e.type){case`password`:case`search`:case`tel`:case`text`:return t.replace(Lp,``);case`color`:return/^#[a-fA-F\d]{6}$/.test(t)?t.toLowerCase():`#000000`;case`email`:return e.multiple?t.split(`,`).map(e=>e.trim()).join(`,`):t.trim().replace(Lp,``);case`number`:return isNaN(Number.parseFloat(t))?``:t;case`range`:{let n=Number.parseFloat(t),r=parseFloat(e.min)||0,i=parseFloat(e.max)||100;return isNaN(n)?String(i<r?r:(r+i)/2):n<r?String(r):n>i?String(i):t}case`url`:return t.trim().replace(Lp,``);case`date`:return this.sanitizeDate(t);case`datetime-local`:{let e=t.match(/^(\d\d\d\d)-(\d\d)-(\d\d)[T ](\d\d):(\d\d)(?::(\d\d)(?:\.(\d{1,3}))?)?$/);if(!e)return``;let n=this.sanitizeDate(t.slice(0,10)),r=this.sanitizeTime(t.slice(11));return n&&r?(e[6]!==void 0&&(r.indexOf(`.`)!==-1&&(r=r.replace(/(?:\.0*|(\.\d+?)0+)$/,`$1`)),r=r.replace(/(\d\d:\d\d)(:00)$/,`$1`)),n+`T`+r):``}case`month`:return t.match(/^(\d\d\d\d)-(\d\d)$/)&&this.parseMonthComponent(t)&&this.checkBoundaries(t,e.min,e.max)?t:``;case`time`:return t=this.sanitizeTime(t),t&&this.checkBoundaries(t,e.min,e.max)?t:``;case`week`:{let n=t.match(/^(\d\d\d\d)-W(\d\d)$/);if(!n)return``;let[r,i]=Rp(n.slice(1,3));if(r<=0||i<1||i>53)return``;let a=this.lastIsoWeekOfYear(r);return i<1||i>52+a||!this.checkBoundaries(t,e.min,e.max)?``:t}}return t}static checkBoundaries(e,t,n){return t&&t>e?!1:!(n&&n<e)}static parseMonthComponent(e){let[t,n]=e.split(`-`),[r,i]=Rp([t,n]);return isNaN(r)||isNaN(i)||r<=0||i<1||i>12?``:e}static lastIsoWeekOfYear=e=>{let t=new Date(+e,11,31),n=(t.getDay()+6)%7;t.setDate(t.getDate()-n+3);let r=t.getTime();return t.setMonth(0,1),t.getDay()!==4&&t.setMonth(0,1+(4-t.getDay()+7)%7),1+Math.ceil((r-t.getTime())/6048e5)};static sanitizeDate(e){let t=e.match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t||!this.parseMonthComponent(e.slice(0,7)))return``;let[n,r,i]=Rp(t.slice(1,4));return i<1||i>31||i>new Date(n,r,0).getDate()?``:e}static sanitizeTime(e){let t=e.match(/^(\d{2}):(\d{2})(?::(\d{2}(?:\.(\d{1,3}))?))?$/);if(!t)return``;let[n,r]=Rp(t.slice(1,3)),i=parseFloat(t[3]||`0`)*1e3;return n>23||r>59||i>59999?``:i===0?`${t[1]}:${t[2]}`:`${t[1]}:${t[2]}${i>=1e4?`:${i/1e3}`:`:0${i/1e3}`}`}},Bp;(function(e){e.preserve=`preserve`,e.select=`select`,e.start=`start`,e.end=`end`})(Bp||={});var Vp=Bp,Hp;(function(e){e.none=`none`,e.forward=`forward`,e.backward=`backward`})(Hp||={});var Up=Hp,Wp=class{static step(e,t,n){switch(e.type){case`number`:return this.getNumberValue(e,t,n);case`date`:case`month`:case`week`:case`time`:case`datetime-local`:case`range`:return null;default:throw new gs(`This form element is not steppable.`)}}static getNumberValue(e,t,n){let r=e.step,i=e.min,a=e.max,o=i===``?null:Number(i),s=a===``?null:Number(a),c=Number(e.value),l=r===``?1:Number(r);if(c=isNaN(c)?0:c,l=isNaN(l)||l===0?1:l,o!==null&&!isNaN(o)&&s!==null&&!isNaN(s)&&(o>s||s<o)||n===0)return e.value;let u=n===void 0?l:Math.ceil(n/l)*l,d=c+u*t,f=o!==null&&!isNaN(o)?o:0;switch(t){case-1:return String(o!==null&&!isNaN(o)&&d<o?o:d+(c-f)%l);case 1:return String(s!==null&&!isNaN(s)&&d>s?f+Math.floor((s-f)/l)*l:d-(c-f)%l)}}},Gp=class{static dateIsoWeek(e){e=typeof e==`number`?new Date(e):e,e=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let t=new Date(Date.UTC(e.getUTCFullYear(),0,1)),n=Math.ceil(((e-t)/864e5+1)/7);return`${e.getUTCFullYear()}-W${n<10?`0`:``}${n}`}static isoWeekDate(e){let[,t,n]=e.match(/^(\d{4})-W(\d{2})$/)||[];if(!t||!n||Number(n)>53||Number(n)<1)return new Date(`x`);let r=new Date(`${t}-01-01T00:00Z`),i=(new Date(`${t}-01-04T00:00Z`).getUTCDay()+6)%7,a=1+(Number(n)-1)*7-i+3;return r.setUTCDate(a),r.getUTCFullYear()>Number(t)?new Date(`x`):r}};const Kp=new Set([`hidden`,`text`,`search`,`tel`,`url`,`email`,`password`,`date`,`month`,`week`,`time`,`datetime-local`,`number`,`range`,`color`,`checkbox`,`radio`,`file`,`submit`,`image`,`reset`,`button`]);var qp=class extends Q{[v]=null;[h]=0;[y]=0;[_e]=null;[Gt]=``;[Kt]=new Wf(this);[$t]=new Ip;[Be]=!1;[Le]=null;[Br]=null;#e=null;#t=null;#n=Up.none;get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[V].set(`oninput`,e)}get oninvalid(){return Z.getEventListener(this,`oninvalid`)}set oninvalid(e){this[V].set(`oninvalid`,e)}get onselectionchange(){return Z.getEventListener(this,`onselectionchange`)}set onselectionchange(e){this[V].set(`onselectionchange`,e)}get defaultChecked(){return this.hasAttribute(`checked`)}set defaultChecked(e){e?this.setAttribute(`checked`,``):this.removeAttribute(`checked`)}get files(){return this[$t]}set files(e){this[$t]=e}get formAction(){if(!this.hasAttribute(`formaction`))return this[g].location.href;try{return new re(this.getAttribute(`formaction`),this[g].location.href).href}catch{return``}}set formAction(e){this.setAttribute(`formaction`,e)}get formEnctype(){return this.getAttribute(`formenctype`)||``}set formEnctype(e){this.setAttribute(`formenctype`,e)}get formMethod(){return this.getAttribute(`formmethod`)||``}set formMethod(e){this.setAttribute(`formmethod`,e)}get formNoValidate(){return this.getAttribute(`formnovalidate`)!==null}set formNoValidate(e){e?this.setAttribute(`formnovalidate`,``):this.removeAttribute(`formnovalidate`)}get formTarget(){return this.getAttribute(`formtarget`)||``}set formTarget(e){this.setAttribute(`formtarget`,e)}get form(){if(this[Le])return this[Le];let e=this.getAttribute(`form`);return!e||!this[x]?null:this[g].getElementById(e)}get validationMessage(){return this[Gt]}get validity(){return this[Kt]}get height(){return this[h]}set height(e){this[h]=e,this.setAttribute(`height`,String(e))}get width(){return this[y]}set width(e){this[y]=e,this.setAttribute(`width`,String(e))}get size(){let e=this.getAttribute(`size`);return e===null?20:parseInt(e)}set size(e){this.setAttribute(`size`,String(e))}get minLength(){let e=this.getAttribute(`minlength`);return e===null?-1:parseInt(e)}set minLength(e){this.setAttribute(`minlength`,String(e))}get maxLength(){let e=this.getAttribute(`maxlength`);return e===null?-1:parseInt(e)}set maxLength(e){this.setAttribute(`maxlength`,String(e))}get type(){let e=(this.getAttribute(`type`)??``).toLowerCase();return Kp.has(e)?e:`text`}set type(e){this.setAttribute(`type`,e.toLowerCase())}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get alt(){return this.getAttribute(`alt`)||``}set alt(e){this.setAttribute(`alt`,e)}get min(){return this.getAttribute(`min`)||``}set min(e){this.setAttribute(`min`,e)}get max(){return this.getAttribute(`max`)||``}set max(e){this.setAttribute(`max`,e)}get pattern(){return this.getAttribute(`pattern`)||``}set pattern(e){this.setAttribute(`pattern`,e)}get placeholder(){return this.getAttribute(`placeholder`)||``}set placeholder(e){this.setAttribute(`placeholder`,e)}get step(){return this.getAttribute(`step`)||``}set step(e){this.setAttribute(`step`,e)}get inputMode(){return this.getAttribute(`inputmode`)||``}set inputMode(e){this.setAttribute(`inputmode`,e)}get accept(){return this.getAttribute(`accept`)||``}set accept(e){this.setAttribute(`accept`,e)}get allowdirs(){return this.getAttribute(`allowdirs`)||``}set allowdirs(e){this.setAttribute(`allowdirs`,e)}get autocomplete(){return this.getAttribute(`autocomplete`)||``}set autocomplete(e){this.setAttribute(`autocomplete`,e)}get src(){return this.getAttribute(`src`)||``}set src(e){this.setAttribute(`src`,e)}get defaultValue(){return this.getAttribute(`value`)||``}set defaultValue(e){this.setAttribute(`value`,e)}get readOnly(){return this.getAttribute(`readonly`)!==null}set readOnly(e){e?this.setAttribute(`readonly`,``):this.removeAttribute(`readonly`)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}get autofocus(){return this.getAttribute(`autofocus`)!==null}set autofocus(e){e?this.setAttribute(`autofocus`,``):this.removeAttribute(`autofocus`)}get required(){return this.getAttribute(`required`)!==null}set required(e){e?this.setAttribute(`required`,``):this.removeAttribute(`required`)}get indeterminate(){return this[Be]}set indeterminate(e){this[Be]=!!e}get multiple(){return this.getAttribute(`multiple`)!==null}set multiple(e){e?this.setAttribute(`multiple`,``):this.removeAttribute(`multiple`)}get checked(){return this[_e]===null?this.getAttribute(`checked`)!==null:this[_e]}set checked(e){this.#i(e)}get value(){switch(this.type){case`hidden`:case`submit`:case`image`:case`reset`:case`button`:return this.getAttribute(`value`)||``;case`checkbox`:case`radio`:let e=this.getAttribute(`value`);return e===null?`on`:e;case`file`:return this[$t].length>0?`/fake/path/`+this[$t][0].name:``}return this[v]===null?this.getAttribute(`value`)||``:this[v]}set value(e){switch(e=e===null?``:String(e),this.type){case`hidden`:case`submit`:case`image`:case`reset`:case`button`:case`checkbox`:case`radio`:this.setAttribute(`value`,e);break;case`file`:if(e!==null&&e!==``)throw new this[b].DOMException(`Input elements of type "file" may only programmatically set the value to empty string.`,H.invalidStateError);this[$t]=new Ip;break;default:let t=this.value;this[v]=zp.sanitize(this,e),t!==this[v]&&(this.#e=this[v].length,this.#t=this[v].length,this.#n=Up.none);break}}get selectionStart(){return this.#r()?this.#e===null?this.value.length:this.#e:null}set selectionStart(e){if(!this.#r())throw new this[b].DOMException(`The input element's type (${this.type}) does not support selection.`,H.invalidStateError);this.setSelectionRange(e,Math.max(e,this.selectionEnd),this.#n)}get selectionEnd(){return this.#r()?this.#t===null?this.value.length:this.#t:null}set selectionEnd(e){if(!this.#r())throw new this[b].DOMException(`The input element's type (${this.type}) does not support selection.`,H.invalidStateError);this.setSelectionRange(this.selectionStart,e,this.#n)}get selectionDirection(){return this.#r()?this.#n:null}set selectionDirection(e){if(!this.#r())throw new this[b].DOMException(`The input element's type (${this.type}) does not support selection.`,H.invalidStateError);this.setSelectionRange(this.#e,this.#t,e)}get willValidate(){return this.type!==`hidden`&&this.type!==`reset`&&this.type!==`button`&&!this.disabled&&!this.readOnly}get valueAsDate(){switch(this.type){case`date`:case`month`:return isNaN(new Date(String(this.value)).getTime())?null:new Date(this.value);case`week`:{let e=Gp.isoWeekDate(this.value);return isNaN(e.getTime())?null:e}case`time`:{let e=new Date(`1970-01-01T${this.value}Z`);return isNaN(e.getTime())?null:e}default:return null}}set valueAsDate(e){if(![`date`,`month`,`time`,`week`].includes(this.type))throw new this[b].DOMException(`Failed to set the 'valueAsDate' property on 'HTMLInputElement': This input element does not support Date values.`,H.invalidStateError);if(typeof e!=`object`)throw new this[b].TypeError(`Failed to set the 'valueAsDate' property on 'HTMLInputElement': Failed to convert value to 'object'.`);if(e&&!(e instanceof Date))throw new this[b].TypeError(`Failed to set the 'valueAsDate' property on 'HTMLInputElement': The provided value is not a Date.`);if(e===null||isNaN(e.getTime())){this.value=``;return}switch(this.type){case`date`:this.value=e.toISOString().split(`T`)[0];break;case`month`:this.value=e.toISOString().split(`T`)[0].slice(0,-3);break;case`time`:this.value=e.toISOString().split(`T`)[1].slice(0,5);break;case`week`:this.value=Gp.dateIsoWeek(e);break}}get valueAsNumber(){let e=this.value;if(!this.type.match(/^(range|number|date|datetime-local|month|time|week)$/)||!e)return NaN;switch(this.type){case`number`:return parseFloat(e);case`range`:{let t=parseFloat(e),n=parseFloat(this.min)||0,r=parseFloat(this.max)||100;return isNaN(t)?r<n?n:(n+r)/2:t<n?n:t>r?r:t}case`date`:return new Date(e).getTime();case`datetime-local`:return new Date(e).getTime()-new Date(e).getTimezoneOffset()*6e4;case`month`:return(new Date(e).getUTCFullYear()-1970)*12+new Date(e).getUTCMonth();case`time`:return new Date(`1970-01-01T`+e).getTime()-new Date(`1970-01-01T00:00:00`).getTime();case`week`:{let t=e.match(/^(\d{4})-W(\d{2})$/);if(!t)return NaN;let n=new Date(Date.UTC(parseInt(t[1],10),0)),r=n.getUTCDay(),i=((r===0?-6:1)-r)*864e5+parseInt(t[2],10)*6048e5;return n.getTime()+i}default:return NaN}}set valueAsNumber(e){switch(this.type){case`number`:case`range`:this.value=Number(e).toString();break;case`date`:case`datetime-local`:{let t=new Date(Number(e));if(isNaN(t.getTime())){this.value=``;break}this.type==`date`?this.value=t.toISOString().slice(0,10):this.value=t.toISOString().slice(0,-1);break}case`month`:!Number.isInteger(e)||e<0?this.value=``:this.value=new Date(Date.UTC(1970,Number(e))).toISOString().slice(0,7);break;case`time`:!Number.isInteger(e)||e<0?this.value=``:this.value=new Date(Number(e)).toISOString().slice(11,-1);break;case`week`:{let t=new Date(Number(e));this.value=isNaN(t.getTime())?``:Gp.dateIsoWeek(t);break}default:throw new this[b].DOMException(`Failed to set the 'valueAsNumber' property on 'HTMLInputElement': This input element does not support Number values.`,H.invalidStateError)}}get labels(){return Gf.getAssociatedLabelElements(this)}get list(){let e=this.getAttribute(`list`);return e?(this[it]||this[g]).querySelector(`datalist#${e}`):null}get popoverTargetElement(){return this[Br]}set popoverTargetElement(e){if(e!==null&&!(e instanceof Q))throw new this[b].TypeError(`Failed to set the 'popoverTargetElement' property on 'HTMLInputElement': Failed to convert value to 'Element'.`);this[Br]=e}get popoverTargetAction(){let e=this.getAttribute(`popovertargetaction`);return e===null||e!==`hide`&&e!==`show`&&e!==`toggle`?`toggle`:e}set popoverTargetAction(e){this.setAttribute(`popovertargetaction`,e)}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}setCustomValidity(e){this[Gt]=String(e)}select(){this.#r()&&(this.#e=0,this.#t=this.value.length,this.#n=Up.none,this.dispatchEvent(new W(`select`,{bubbles:!0,cancelable:!1})))}setSelectionRange(e,t,n=`none`){if(!this.#r())throw new this[b].DOMException(`The input element's type (${this.type}) does not support selection.`,H.invalidStateError);this.#t=Math.min(t,this.value.length),this.#e=Math.min(e,this.#t),this.#n=n===Up.forward||n===Up.backward?n:Up.none,this.dispatchEvent(new W(`select`,{bubbles:!0,cancelable:!1}))}setRangeText(e,t=null,n=null,r=Vp.preserve){if(!this.#r())throw new this[b].DOMException(`The input element's type (${this.type}) does not support selection.`,H.invalidStateError);if(t===null&&(t=this.#e),n===null&&(n=this.#t),t>n)throw new this[b].DOMException(`The index is not in the allowed range.`,H.invalidStateError);t=Math.min(t,this.value.length),n=Math.min(n,this.value.length);let i=this.value,a=this.#e,o=this.#t;this.value=i.slice(0,t)+e+i.slice(n);let s=t+this.value.length;switch(r){case Vp.select:this.setSelectionRange(t,s);break;case Vp.start:this.setSelectionRange(t,t);break;case Vp.end:this.setSelectionRange(s,s);break;default:let r=e.length-(n-t);a>n?a+=r:a>t&&(a=t),o>n?o+=r:o>t&&(o=s),this.setSelectionRange(a,o);break}}checkValidity(){let e=this.disabled||this.readOnly||this.type===`hidden`||this.type===`reset`||this.type===`button`||this[Kt].valid;return e||this.dispatchEvent(new W(`invalid`,{bubbles:!0,cancelable:!0})),e}reportValidity(){return this.checkValidity()}stepUp(e){let t=Wp.step(this,1,e);t!==null&&(this.value=t)}stepDown(e){let t=Wp.step(this,-1,e);t!==null&&(this.value=t)}[Nn](e=!1){let t=super[Nn](e);return t[v]=this[v],t[h]=this[h],t[y]=this[y],t[$t]=this[$t].slice(),t.#e=this.#e,t.#t=this.#t,t.#n=this.#n,t}dispatchEvent(e){if(e[qr]!==`click`||e[Gr]!==Ts.none||!(e instanceof ou))return super.dispatchEvent(e);if(this.disabled)return!1;let t=null,n=this[Be],r=this.type;(r===`checkbox`||r===`radio`)&&(t=this.checked,this.#i(r===`checkbox`?!t:!0),r===`checkbox`&&(n=this[Be],this[Be]=!1));let i=super.dispatchEvent(e);if(e[qr]!==`click`||e[Gr]!==Ts.none||!(e instanceof ou))return i;if(e[Wr])t!==null&&(this.#i(t),this[Be]=n);else{let e=this.type;if(e===`checkbox`&&this[x])this.dispatchEvent(new W(`input`,{bubbles:!0,cancelable:!0})),this.dispatchEvent(new W(`change`,{bubbles:!0,cancelable:!0}));else if(e===`radio`&&!t&&this[x])this.dispatchEvent(new W(`input`,{bubbles:!0,cancelable:!0})),this.dispatchEvent(new W(`change`,{bubbles:!0,cancelable:!0}));else if(e===`submit`||e===`reset`){let t=this.form;t&&(e===`submit`&&this[x]?t.requestSubmit(this):e===`reset`&&t.reset())}}return i}#r(){let e=this.type;return e===`text`||e===`search`||e===`url`||e===`tel`||e===`password`}#i(e){if(this[_e]=e,this[Kn](),e&&this.type===`radio`&&this.name){let e=(this[Le]||this.getRootNode()).querySelectorAll(`input[type="radio"][name="${this.name}"]`);for(let t of e)t!==this&&(t[_e]=!1)}}},Jp=class extends Q{get htmlFor(){let e=this.getAttribute(`for`);return e===null&&e===null?``:e}set htmlFor(e){this.setAttribute(`for`,e)}get control(){let e=this.getAttribute(`for`);if(e!==null){if(!e||!this[x])return null;let t=this[it].getElementById(e);if(t)switch(t[w]){case`INPUT`:return t.type===`hidden`?null:t;case`BUTTON`:case`METER`:case`OUTPUT`:case`PROGRESS`:case`SELECT`:case`TEXTAREA`:return t;default:return null}}return this.querySelector(`button,input:not([type="hidden"]),meter,output,progress,select,textarea`)}get form(){return this.control?.form||null}[Nn](e=!1){return super[Nn](e)}dispatchEvent(e){let t=super.dispatchEvent(e);if(!e[Wr]&&e.type===`click`&&(e.eventPhase===Ts.atTarget||e.eventPhase===Ts.bubbling)&&e instanceof ou){let t=this.control;t&&e.target!==t&&t.dispatchEvent(new ou(`click`,{bubbles:!0,cancelable:!0}))}return t}},Yp=class extends Q{get form(){let e=this;for(;e;){if(e instanceof ap)return e.form;e=e.parentNode}return null}},Xp=class extends Q{get value(){if(!this.hasAttribute(`value`))return 0;let e=Number(this.getAttribute(`value`));return isNaN(e)?0:e}set value(e){let t=Number(e);this.setAttribute(`value`,isNaN(t)?`0`:String(t))}},Zp=class{static getScript(e){let t={},n=Object.keys(e.headers).sort();for(let r of n)t[r]=e.headers[r];return`
|
|
75
|
+
const sendRequest = require('http${e.url.protocol===`https:`?`s`:``}').request;
|
|
76
|
+
const options = ${JSON.stringify({method:e.method,headers:t,agent:!1,rejectUnauthorized:!e.disableStrictSSL,key:e.url.protocol===`https:`?Bu.key:void 0,cert:e.url.protocol===`https:`?Bu.cert:void 0},null,4)};
|
|
77
|
+
const request = sendRequest(${JSON.stringify(e.url.href)}, options, (incomingMessage) => {
|
|
78
|
+
let data = Buffer.alloc(0);
|
|
79
|
+
incomingMessage.on('data', (chunk) => {
|
|
80
|
+
data = Buffer.concat([data, Buffer.from(chunk)]);
|
|
81
|
+
});
|
|
82
|
+
incomingMessage.on('end', () => {
|
|
83
|
+
console.log(JSON.stringify({
|
|
84
|
+
error: null,
|
|
85
|
+
incomingMessage: {
|
|
86
|
+
statusCode: incomingMessage.statusCode,
|
|
87
|
+
statusMessage: incomingMessage.statusMessage,
|
|
88
|
+
rawHeaders: incomingMessage.rawHeaders,
|
|
89
|
+
data: data.toString('base64')
|
|
90
|
+
}
|
|
91
|
+
}));
|
|
92
|
+
});
|
|
93
|
+
incomingMessage.on('error', (error) => {
|
|
94
|
+
console.log(JSON.stringify({ error: error.message, incomingMessage: null }));
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
request.write(Buffer.from('${e.body?e.body.toString(`base64`):``}', 'base64'));
|
|
98
|
+
request.end();
|
|
99
|
+
`}},Qp=class e{request;redirectCount=0;disableCache;disableSameOriginPolicy;interceptor;requestHeaders;#e;#t;#n=null;constructor(e){this.#e=e.browserFrame,this.#t=e.window,this.#n=e.unfilteredHeaders??null,this.request=typeof e.url==`string`||e.url instanceof pu?new e.window.Request(e.url,e.init):e.url,e.contentType&&(this.request[Ee]=e.contentType),this.redirectCount=e.redirectCount??0,this.disableCache=e.disableCache??!1,this.disableSameOriginPolicy=e.disableSameOriginPolicy??this.#e.page.context.browser.settings.fetch.disableSameOriginPolicy??!1,this.interceptor=this.#e.page.context.browser.settings.fetch.interceptor,this.requestHeaders=this.#e.page.context.browser.settings.fetch.requestHeaders}send(){if(gu.prepareRequest(new pu(this.#t.location.href),this.request),this.requestHeaders){for(let e of this.requestHeaders)if(!e.url||(typeof e.url==`string`?e.url.startsWith(this.request.url):this.request.url.match(e.url)))for(let[t,n]of Object.entries(e.headers))this.request.headers.set(t,n)}if(this.interceptor?.beforeSyncRequest){let e=this.interceptor.beforeSyncRequest({request:this.request,window:this.#t});if(typeof e==`object`)return e}if(Au.validateSchema(this.request),this.request.signal[Xr])throw this.request.signal[Vo]===void 0?new this.#t.DOMException(`signal is aborted without reason`,H.abortError):this.request.signal[Vo];if(this.request[gt].protocol===`data:`){let e=_u.parse(this.request.url),t={status:200,statusText:`OK`,ok:!0,url:this.request.url,redirected:!1,headers:new this.#t.Headers({"Content-Type":e.type}),body:e.buffer,[$o]:null},n=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#t,response:t,request:this.request}):void 0;return typeof n==`object`?n:t}if(this.request[gt].protocol===`http:`&&this.#t.location.protocol===`https:`)throw new this.#t.DOMException(`Mixed Content: The page at '${this.#t.location.href}' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '${this.request.url}'. This request has been blocked; the content must be served over HTTPS.`,H.securityError);let e=this.getCachedResponse();if(e)return e;let t=this.getVirtualServerResponse();if(t)return t;if(!this.compliesWithCrossOriginPolicy())throw this.#t.console.warn(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`),new this.#t.DOMException(`Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at "${this.request.url}".`,H.networkError);return this.sendRequest()}getCachedResponse(){if(this.disableCache)return null;let t=this.#e.page.context.responseCache.get(this.request);if(!t||t.response.waitingForBody)return null;if(t.state===ms.stale){let n=new this.#t.Headers(t.request.headers);if(t.etag)n.set(`If-None-Match`,t.etag);else{if(!t.lastModified)return null;n.set(`If-Modified-Since`,new Date(t.lastModified).toUTCString())}if(t.etag||!t.staleWhileRevalidate){let r=new e({browserFrame:this.#e,window:this.#t,url:this.request.url,init:{headers:n,method:t.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send(),i=r.status===304?null:r.body;if(t=this.#e.page.context.responseCache.add(this.request,{...r,body:i,waitingForBody:!1}),r.status!==304)return r}else new Gu({browserFrame:this.#e,window:this.#t,url:this.request.url,init:{headers:n,method:t.request.method},disableCache:!0,disableSameOriginPolicy:!0}).send().then(e=>{e.buffer().then(t=>{this.#e.page.context.responseCache.add(this.request,{...e,body:t,waitingForBody:!1})})})}return!t||t.response.waitingForBody?null:{status:t.response.status,statusText:t.response.statusText,ok:!0,url:t.response.url,redirected:!1,headers:t.response.headers,body:t.response.body,[$o]:t.response[$o]||null}}getVirtualServerResponse(){let e=Hu.getFilepath(this.#t,this.request.url);if(!e)return null;if(this.request.method!==`GET`){this.#e.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let e=Hu.getNotFoundSyncResponse(this.#t,this.request.url),t=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#t,response:e,request:this.request}):void 0;return typeof t==`object`?t:e}let t;try{e=a.statSync(e).isDirectory()?p.join(e,`index.html`):e,t=a.readFileSync(e)}catch{this.#e.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let e=Hu.getNotFoundSyncResponse(this.#t,this.request.url),t=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#t,response:e,request:this.request}):void 0;return typeof t==`object`?t:e}let n={status:200,statusText:``,ok:!0,url:this.request.url,redirected:!1,headers:new this.#t.Headers,body:t,[$o]:e},r=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#t,response:n,request:this.request}):void 0,i=typeof r==`object`?r:n;return this.#e.page.context.responseCache.add(this.request,{...i,waitingForBody:!1,virtual:!0}),i}compliesWithCrossOriginPolicy(){if(this.disableSameOriginPolicy||!vu.isCORS(this.#t.location.href,this.request[gt]))return!0;let t=this.#e.page.context.preflightResponseCache.get(this.request);if(t)return!(t.allowOrigin!==`*`&&t.allowOrigin!==this.#t.location.origin||t.allowMethods.length!==0&&!t.allowMethods.includes(this.request.method));let n=[];for(let[e]of this.request.headers)n.push(e.toLowerCase());let r=new this.#t.Headers({"Access-Control-Request-Method":this.request.method,Origin:this.#t.location.origin});n.length>0&&r.set(`Access-Control-Request-Headers`,n.slice().sort().join(`,`));let i=new e({browserFrame:this.#e,window:this.#t,url:this.request.url,init:{method:`OPTIONS`},disableCache:!0,disableSameOriginPolicy:!0,unfilteredHeaders:r}).send();if(!i.ok)return!1;let a=i.headers.get(`Access-Control-Allow-Origin`);if(!a||a!==`*`&&a!==this.#t.location.origin)return!1;let o=[];if(i.headers.has(`Access-Control-Allow-Methods`)){let e=i.headers.get(`Access-Control-Allow-Methods`);if(e!==`*`)for(let t of e.split(`,`))o.push(t.trim().toUpperCase())}return!(o.length!==0&&!o.includes(this.request.method))}sendRequest(){if(!this.request[pe]&&this.request.body)throw new this.#t.DOMException(`Streams are not supported as request body for synchronous requests.`,H.notSupportedError);let e=Zp.getScript({url:this.request[gt],method:this.request.method,headers:Nu.getRequestHeaders({browserFrame:this.#e,window:this.#t,request:this.request,baseHeaders:this.#n}),disableStrictSSL:this.#e.page.context.browser.settings.fetch.disableStrictSSL,body:this.request[pe]}),t=c.execFileSync(process.argv[0],[`-e`,e],{encoding:`buffer`,maxBuffer:1024*1024*1024});if(!t.length)throw new this.#t.DOMException(`Synchronous fetch to "${this.request.url}" failed.`,H.networkError);let{error:n,incomingMessage:r}=JSON.parse(t.toString());if(n)throw new this.#t.DOMException(`Synchronous fetch to "${this.request.url}" failed. Error: ${n}`,H.networkError);let i=zu.parseResponseHeaders({browserFrame:this.#e,requestURL:this.request[gt],rawHeaders:r.rawHeaders}),a={status:r.statusCode,statusText:r.statusMessage,ok:r.statusCode>=200&&r.statusCode<300,url:this.request.url,redirected:this.redirectCount>0,headers:i,body:this.parseIResponseBody({headers:i,status:r.statusCode,body:Buffer.from(r.data,`base64`)})},o=this.handleRedirectResponse(a)||a;!this.disableCache&&!o.redirected&&this.#e.page.context.responseCache.add(this.request,{status:o.status,statusText:o.statusText,url:o.url,headers:o.headers,body:o.body,waitingForBody:!1});let s=this.interceptor?.afterSyncResponse?this.interceptor.afterSyncResponse({window:this.#t,response:o,request:this.request}):void 0,l=typeof s==`object`?s:o;return l.ok||this.#e.page.console.error(`${this.request.method} ${this.request.url} ${l.status} (${l.statusText})`),l}parseIResponseBody(e){let t=e.headers.get(`Content-Encoding`);if(this.request.method===`HEAD`||t===null||e.status===204||e.status===304)return e.body;try{if(t===`gzip`||t===`x-gzip`)return d.gunzipSync(e.body,{flush:d.constants.Z_SYNC_FLUSH,finishFlush:d.constants.Z_SYNC_FLUSH});if(t===`deflate`||t===`x-deflate`)return d.inflateSync(e.body);if(t===`br`)return d.brotliDecompressSync(e.body)}catch(e){throw new this.#t.DOMException(`Failed to read response body. Error: ${e.message}.`,H.encodingError)}return e.body}handleRedirectResponse(t){if(!Ru.isRedirect(t.status))return null;switch(this.request.redirect){case`error`:throw new this.#t.DOMException(`URI requested responds with a redirect, redirect mode is set to "error": ${this.request.url}`,H.abortError);case`manual`:return null;case`follow`:let n=t.headers.get(`Location`),r=t.status===303||(t.status===301||t.status===302)&&this.request.method===`POST`,i=null;if(n!==null)try{i=new pu(n,this.request.url)}catch{throw new this.#t.DOMException(`URI requested responds with an invalid redirect URL: ${n}`,H.uriMismatchError)}if(i===null)return null;if(Ru.isMaxRedirectsReached(this.redirectCount))throw new this.#t.DOMException(`Maximum redirects reached at: ${this.request.url}`,H.networkError);let a=new this.#t.Headers(this.request.headers),o={method:this.request.method,signal:this.request.signal,referrer:this.request.referrer,referrerPolicy:this.request.referrerPolicy,credentials:this.request.credentials,headers:a,body:this.request[pe]};(this.request.credentials===`omit`||this.request.credentials===`same-origin`&&vu.isCORS(this.#t.location.href,i))&&(a.delete(`cookie`),a.delete(`cookie2`)),r&&(o.method=`GET`,o.body=void 0,a.delete(`Content-Length`),a.delete(`Content-Type`));let s=gu.getReferrerPolicyFromHeader(a);return s&&(o.referrerPolicy=s),new e({browserFrame:this.#e,window:this.#t,url:i,init:o,redirectCount:this.redirectCount+1,contentType:r?null:this.request[Ee]}).send();default:throw new this.#t.DOMException(`Redirect option '${this.request.redirect}' is not a valid value of TRequestRedirect`)}}},$p=class{window;constructor(e){this.window=e}async fetch(e,t,n){let r=new Y(this.window).getBrowserFrame();if(!r)return{content:``,virtualServerFile:null};if(t===`script`||t===`style`){let r=Uu.getKey({url:String(e),destination:t,mode:`cors`,credentialsMode:n?.credentials||`same-origin`}),i=this.window.document[Ao].get(r);if(i){this.window.document[Ao].delete(r);let t=i.response||await i.onResponseAvailable();if(t&&!t.ok)throw new this.window.DOMException(`Failed to perform request to "${new pu(e,this.window.location.href).href}". Status ${i.response?.status||`0`} ${i.response?.statusText||`Unknown`}.`);return{content:i.response?.[me]?.toString()||``,virtualServerFile:i.response?.[$o]||null}}}let i=await new Gu({browserFrame:r,window:this.window,url:e,disableSameOriginPolicy:t===`script`||t===`style`,disablePreload:!0,init:{credentials:n?.credentials,referrerPolicy:n?.referrerPolicy}}).send();if(!i.ok)throw new this.window.DOMException(`Failed to perform request to "${new pu(e,this.window.location.href).href}". Status ${i.status} ${i.statusText}.`);return{content:await i.text(),virtualServerFile:i[$o]||null}}fetchSync(e,t,n){let r=new Y(this.window).getBrowserFrame();if(!r)return{content:``,virtualServerFile:null};if(t===`script`||t===`style`){let r=Uu.getKey({url:String(e),destination:t,mode:`cors`,credentialsMode:n?.credentials||`same-origin`}),i=this.window.document[Ao].get(r);if(i&&i.response){if(this.window.document[Ao].delete(r),!i.response.ok)throw new this.window.DOMException(`Failed to perform request to "${new pu(e,this.window.location.href).href}". Status ${i.response.status} ${i.response.statusText}.`);return{content:i.response?.[me]?.toString()||``,virtualServerFile:i.response?.[$o]||null}}}let i=new Qp({browserFrame:r,window:this.window,url:e,disableSameOriginPolicy:!0,init:{credentials:n?.credentials,referrerPolicy:n?.referrerPolicy}}).send();if(!i.ok)throw new this.window.DOMException(`Failed to perform request to "${new pu(e,this.window.location.href).href}". Status ${i.status} ${i.statusText}.`);return{content:i.body?.toString()||``,virtualServerFile:i[$o]||null}}},em=class{url;#e;#t;#n=null;constructor(e){this.#e=e.window,this.url=e.url,this.#t=e.source}async evaluate(){if(this.#n)return this.#n;let e=new this.#e.CSSStyleSheet;return e.replaceSync(this.#t),this.#n={default:e},this.#n}async preload(){await this.evaluate()}},tm=class{url;#e;#t;#n=null;constructor(e){this.#e=e.window,this.url=e.url,this.#t=e.source}async evaluate(){if(this.#n)return this.#n;let e;try{e=JSON.parse(this.#t)}catch(e){throw new this.#e.TypeError(`Failed to parse module "${this.url.href}": ${e.message}`)}return this.#n={default:e},this.#n}async preload(){await this.evaluate()}},nm=class{url;#e;#t=[];#n=null;constructor(e){this.#e=e.window,this.url=e.url}async evaluate(){throw new this.#e.TypeError(`Unresolved module. We should never end up here.`)}async preload(){throw new this.#e.TypeError(`Unresolved module. We should never end up here.`)}addResolveListener(e,t){if(this.#n){t(this.#n);return}this.#t.push({resolve:e,reject:t})}resolve(e){e&&(this.#n=e);for(let t of this.#t)e?t.reject(e):t.resolve(null)}};const rm=[`module`,`main`],im=[`.js`,`.mjs`];var am=class{static nodeModuleResolveCache=new Map;static packageJsonCache=new Map;static getURL(e,t,n){let r=typeof t==`string`?t:t.href,i=e[Ro],a=this.resolveURL(e,r,n);if(!i)return new re(a,r);if(i.scopes.length){for(let e of i.scopes)if(r.includes(e.scope)){for(let t of e.rules)if(a.startsWith(t.from))return new re(t.to+a.replace(t.from,``),r)}}if(i.imports.length){for(let e of i.imports)if(a.startsWith(e.from))return new re(e.to+a.replace(e.from,``),r)}return new re(a,r)}static clearCache(){this.nodeModuleResolveCache.clear(),this.packageJsonCache.clear()}static resolveURL(e,t,n){let r=new Y(e).getSettings();if(!r)return n;let i=n;return r.module.resolveNodeModules&&(i=this.resolveNodeModuleURL(r.module.resolveNodeModules,n)),r.module.urlResolver&&(i=r.module.urlResolver({url:i,parentURL:t,window:e})),i}static resolveNodeModuleURL(e,t){if(t[0]===`.`||t[0]===`/`||t.startsWith(`http://`)||t.startsWith(`https://`))return t;let n=e.url[e.url.length-1]===`/`?``:`/`,r=`${e.url}${n}`,i=p.resolve(e.directory),o=t.split(`/`),s=this.nodeModuleResolveCache.get(t);if(s)return s;let c=t[0]===`@`?`${o[0]}/${o[1]}`:o[0],l=this.packageJsonCache.get(c);if(!l)try{l=JSON.parse(a.readFileSync(p.join(i,c,`package.json`),`utf-8`)),this.packageJsonCache.set(c,l)}catch{return t}if(t[0]===`@`&&o.length===2||o.length===1){if(l.exports?.[`.`]?.import){let e=`${r}${c}/${l.exports[`.`].import.replace(`./`,``)}`;return this.nodeModuleResolveCache.set(t,e),e}let n=e.mainFields||rm;for(let e of n)if(l[e]&&a.existsSync(p.join(i,c,l[e]))){let n=`${r}${t}/${l[e]}`;return this.nodeModuleResolveCache.set(t,n),n}return t}let u=o.slice(t[0]===`@`?2:1).join(`/`);if(l.exports)for(let e of Object.keys(l.exports)){let n=Array.isArray(l.exports[e].import)?l.exports[e].import[0]:l.exports[e].import;if(n){let i=RegExp(`^${e.replace(`./`,``).replace(/\./g,`\\.`).replace(/\*/g,`(.*)`)}$`),a=u.match(i);if(a){let e=`${r}${c}/${n.replace(`./`,``).replace(`*`,a[1])}`;return this.nodeModuleResolveCache.set(t,e),e}}}if(!t.endsWith(`.js`)&&!t.endsWith(`.mjs`)){for(let e of im)if(a.existsSync(p.join(i,`${t}${e}`))){let n=`${r}${t}${e}`;return this.nodeModuleResolveCache.set(t,n),n}}else if(a.existsSync(p.join(i,t))){let e=`${r}${t}`;return this.nodeModuleResolveCache.set(t,e),e}return t}};const om=/import\.meta\.([a-zA-Z]+)|import\s*["']([^"']+)["'];{0,1}|import\s*\(([^)]+)\)|(import[\s{])|[\s}]from\s*["']([^"']+)["'](\s+with\s*{\s*type\s*:\s*["']([^"']+)["']\s*}){0,1}([;\s]*)|export(\s+[a-zA-Z0-9-_$]+\s+|\s+\*\s+|\s+\*\s+as\s+["'a-zA-Z0-9-_$]+\s+|\s*{[^}]+}\s*)from\s*["']([^"']+)["']|export\s*(default\s+){0,1}(async\s+){0,1}(function\*{0,1}|class)\s*([^({\s]+)|(export\s*default\s*)|export\s*{([^}]+)}|export\s+(var|let|const)\s+([^=;]+)(=|;)/gm,sm=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,cm=/{([^}]+)}|\*\s+as\s+([a-zA-Z0-9-_$]+)|([a-zA-Z0-9-_$]+)/gm,lm=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,um=/['"`(){}\s;=><\[\]+-,:&]/,dm=/['"`({};=><\[+-,:&]/,fm=/\/\*|\*\//gm,pm=/export\s*/,mm=/export\s*default\s*/,hm=/;\s*$/;var gm=class{window;debug=!1;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]};templateString=[];constructor(e){this.window=e}compile(e,t,n=null){let r=new Y(this.window).getBrowserContext();if(!r)return{imports:[],execute:async()=>{}};let i=r.browser.settings;if(!i.module.disableCache&&n){let t=r[as].get(e);if(t)return{imports:t.imports,execute:this.window[Fe](t.code,{filename:n})}}this.reset();let a=new RegExp(om),o=[],s=[],c=this.count,l=``,u=``,d=``,f=null,p,ee,te=!0,ne=0,re=-1;for(;f=a.exec(t);){if(p=t[f.index-1]||` `,ee=t.substring(ne,f.index),this.parseSyntax(ee,ne),re===-1&&(l+=ee),te=c.comment===0&&c.singleLineComment===0&&c.parentheses===0&&c.curlyBraces===0&&c.squareBrackets===0&&c.regExp===0&&c.simpleString===0&&c.doubleString===0&&this.templateString.length===0,f[1]&&c.simpleString===0&&c.doubleString===0&&c.comment===0&&c.singleLineComment===0&&c.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&um.test(this.getNonSpacePrecedingToken(t,f.index)))l+=`$happy_dom.importMeta.${f[1]}`;else if(f[2]&&te&&um.test(p))o.push({url:am.getURL(this.window,e,f[2]).href,type:`esm`});else if(f[3]&&c.simpleString===0&&c.doubleString===0&&c.comment===0&&c.singleLineComment===0&&c.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&um.test(p))l+=`$happy_dom.dynamicImport(${f[3]})`;else if(f[4]&&te&&um.test(p)){if(re!==-1)throw new this.window.TypeError(`Failed to parse module: Unexpected import statement in "${e}"`);re=f.index+f[0].length-1}else if(f[5]&&te&&re!==-1){let n=am.getURL(this.window,e,f[5]).href,r=t.substring(re,f.index+1),i=new RegExp(cm),a=null;for(;a=i.exec(r);)if(a[1]){let e=this.removeMultilineComments(a[1]).split(/\s*,\s*/),t=[];for(let n of e){let e=n.trim().split(/\s+as\s+/),r=(e[1]||e[0]).replace(/["']/g,``),i=e[0].replace(/["']/g,``);r&&i&&(i===r?t.push({name:i}):t.push({name:i,alias:r}))}(!f[7]||f[7]===`esm`)&&s.push({url:n,properties:t}),u+=`let {${t.map(e=>e.alias?`"${e.name}": ${e.alias}`:e.name).join(`, `)}} = $happy_dom.imports.get('${n}')${f[8]}`}else a[2]?u+=`const ${a[2]} = $happy_dom.imports.get('${n}')${f[8]}`:a[3]&&((!f[7]||f[7]===`esm`)&&s.push({url:n,properties:[{name:`default`,alias:a[3]}]}),u+=`let ${a[3]} = $happy_dom.imports.get('${n}').default${f[8]}`);re=-1,o.push({url:n,type:f[7]||`esm`})}else if(f[9]&&f[10]&&te&&um.test(p)){let t=am.getURL(this.window,e,f[10]).href,n=f[9].trim();if(n===`*`)l+=`Object.assign($happy_dom.exports, $happy_dom.imports.get('${t}'))`,o.push({url:t,type:`esm`});else if(n[0]===`*`){let e=n.split(/\s+as\s+/);if(e.length===2){let n=e[1].replace(/["']/g,``);l+=`$happy_dom.exports['${n}'] = $happy_dom.imports.get('${t}')`,o.push({url:t,type:`esm`})}}else if(n[0]===`{`){let e=this.removeMultilineComments(n).slice(1,-1).split(/\s*,\s*/),r=[];for(let n of e){let e=n.trim().split(/\s+as\s+/),i=(e[1]||e[0]).replace(/["']/g,``),a=e[0].replace(/["']/g,``);i&&a&&r.push(`$happy_dom.exports['${i}'] = $happy_dom.imports.get('${t}')['${a}']`)}l+=r.join(`;
|
|
100
|
+
`),o.push({url:t,type:`esm`})}}else if(f[13]&&f[14]&&te&&um.test(p)){let t=f[14].replace(`*`,``);if(t)f[11]?(l+=f[0].replace(mm,``),d+=`$happy_dom.exports.default = ${t};\n`):(l+=f[0].replace(pm,``),d+=`$happy_dom.exports['${t}'] = ${t};\n`);else if(f[11])l+=`$happy_dom.exports.default = ${f[12]||``}${f[13]}${t?` `:``}${f[14]}`;else throw new this.window.SyntaxError(`Failed to parse module: Missing function or class name in export statement in "${e}"`)}else if(f[15]&&te&&um.test(p))l+=`$happy_dom.exports.default = `;else if(f[16]&&te&&um.test(p)){let e=this.removeMultilineComments(f[16]).split(/\s*,\s*/),t=[];for(let n of e){let e=n.trim().split(/\s+as\s+/),r=(e[1]||e[0]).replace(/["']/g,``),i=e[0].replace(/["']/g,``);r&&i&&lm.test(i)&&t.push(`$happy_dom.exports['${r}'] = ${i}`)}l+=t.join(`;
|
|
101
|
+
`)}else if(f[17]&&te&&um.test(p))if(f[19]===`=`){let e=this.removeMultilineComments(f[18]).trim();if(e[0]===`{`&&e[e.length-1]===`}`||e[0]===`[`&&e[e.length-1]===`]`){let t=e.slice(1,-1).split(/\s*,\s*/);for(let e of t){let t=e.trim().split(/\s*:\s*/),n=(t[1]||t[0]).replace(/["']/g,``);n&&(d+=`$happy_dom.exports['${n}'] = ${n};\n`)}l+=f[0].replace(pm,``)}else l+=f[0].replace(pm,``),d+=`$happy_dom.exports['${e}'] = ${e};\n`}else{l+=f[0].replace(pm,``);let e=this.removeMultilineComments(f[18]).split(`,`);for(let t of e){let e=t.trim();d+=`$happy_dom.exports['${e}'] = ${e};\n`}}else if(re!==-1){let e=t.substring(re,f.index+1);l+=e,this.parseSyntax(e,re)}else l+=f[0],this.parseSyntax(f[0],f.index);ne=a.lastIndex}if(this.debug)return{imports:o,execute:async()=>{}};if(u&&!hm.test(u)&&(u=`\n${u};`),u=!i.disableErrorCapturing&&i.errorCapture===Is.tryAndCatch?`(async function anonymous($happy_dom) { try {`+u:`(async function anonymous($happy_dom) {`+u,l=u+l,ne===0?l+=t:l+=t.substring(ne),l+=`
|
|
102
|
+
`+d,s.length>0){l+=`$happy_dom.addCircularImportResolver(() => {
|
|
103
|
+
`;for(let e of s)for(let t of e.properties)t.alias?l+=`${t.alias} = $happy_dom.imports.get('${e.url}')['${t.name}'];\n`:l+=`${t.name} = $happy_dom.imports.get('${e.url}')['${t.name}'];\n`;l+=`});`}!i.disableErrorCapturing&&i.errorCapture===Is.tryAndCatch&&(l+=`} catch(e) { $happy_dom.dispatchError(e); }`),l+=`})`;let ie;try{ie=this.window[Fe](l,{filename:n||e})}catch(r){let a=this.getError(e,t,n),s=a?new this.window.SyntaxError(`Failed to parse module in '${e}'. Execution error: ${r.message}. Compile error: ${a}`):r;if(r.message=`Failed to parse module in '${n}': ${s.message}`,i.disableErrorCapturing||i.errorCapture!==Is.tryAndCatch)throw s;return this.window[zo](s),{imports:o,execute:async()=>{}}}return!i.module.disableCache&&n&&r[as].set(e,{imports:o,code:l}),{imports:o,execute:ie}}parseSyntax(e,t){let n=new RegExp(sm),r=this.count,i=this.debug,a=this.debugCount,o=null,s,c;for(t++;o=n.exec(e);)s=e[o.index-1]||` `,c=s===`\\`&&e[o.index-2]!==`\\`,o[1]?r.simpleString===0&&r.doubleString===0&&r.singleLineComment===0&&r.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(r.comment===1?s===`*`&&(r.comment=0,i&&(a.comment.length=0)):r.regExp===0?e[o.index+1]===`*`?(r.comment=1,i&&(a.comment=[t+o.index])):e[o.index+1]===`/`?(r.singleLineComment=1,i&&(a.singleLineComment=[t+o.index])):dm.test(this.getNonSpacePrecedingToken(e,o.index))&&(r.regExp=1,i&&(a.regExp=[t+o.index])):c||(r.regExp=0,i&&(a.regExp.length=0))):o[2]?r.simpleString===0&&r.doubleString===0&&r.regExp===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o[2]===`(`?(r.parentheses++,i&&a.parentheses.push(t+o.index)):o[2]===`)`&&r.parentheses>0&&(r.parentheses--,i&&a.parentheses.pop())):o[3]?r.simpleString===0&&r.doubleString===0&&r.regExp===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(o[3]===`{`?(this.templateString.length&&this.templateString[0]++,r.curlyBraces++,i&&a.curlyBraces.push(t+o.index)):o[3]===`}`&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,r.curlyBraces>0&&(r.curlyBraces--,i&&a.curlyBraces.pop()))):o[4]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(r.regExp===1?c||(o[4]===`[`&&r.regExpSquareBrackets===0?(r.regExpSquareBrackets=1,i&&(a.regExpSquareBrackets=[t+o.index])):o[4]===`]`&&r.regExpSquareBrackets===1&&(r.regExpSquareBrackets=0,i&&(a.regExpSquareBrackets.length=0))):o[4]===`[`?(r.squareBrackets++,i&&a.squareBrackets.push(t+o.index)):o[4]===`]`&&r.squareBrackets>0&&(r.squareBrackets--,i&&a.squareBrackets.pop())):o[5]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!c&&this.templateString[0]===0&&(this.templateString[0]=1,r.curlyBraces++,i&&a.curlyBraces.push(t+o.index)):o[6]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!c&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):o[7]?r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!c&&(this.templateString.length===0||this.templateString[0]>0)&&(r.simpleString===0?(r.simpleString=1,i&&(a.simpleString=[t+o.index])):(r.simpleString=0,i&&(a.simpleString.length=0))):o[8]?r.simpleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!c&&(this.templateString.length===0||this.templateString[0]>0)&&(r.doubleString===0?(r.doubleString=1,i&&(a.doubleString=[t+o.index])):(r.doubleString=0,i&&(a.doubleString.length=0))):o[9]&&(r.singleLineComment=0,i&&(a.singleLineComment.length=0))}getError(e,t,n){if(this.count.comment===0&&this.count.singleLineComment===0&&this.count.parentheses===0&&this.count.curlyBraces===0&&this.count.squareBrackets===0&&this.count.regExp===0&&this.count.regExpSquareBrackets===0&&this.count.simpleString===0&&this.count.doubleString===0)return null;this.debug||(this.debug=!0,this.compile(e,t,n));let r=this.debugCount;if(r.comment.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.comment[0]);return`Missing end of comment on line ${e} and column ${n}`}else if(r.regExp.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.regExp[0]);return`Missing end of regular expression on line ${e} and column ${n}`}else if(r.regExpSquareBrackets.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.regExpSquareBrackets[0]);return`Missing end of regular expression square brackets on line ${e} and column ${n}`}else if(r.simpleString.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.simpleString[0]);return`Missing end of single quote string on line ${e} and column ${n}`}else if(r.doubleString.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.doubleString[0]);return`Missing end of double quote string on line ${e} and column ${n}`}else if(r.parentheses.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.parentheses[0]);return`Missing end of parentheses on line ${e} and column ${n}`}else if(r.curlyBraces.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.curlyBraces[0]);return`Missing end of curly braces on line ${e} and column ${n}`}else if(r.squareBrackets.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.squareBrackets[0]);return`Missing end of square brackets on line ${e} and column ${n}`}else if(r.escapeTemplateString.length>0){let{line:e,column:n}=this.getLineAndColumn(t,r.escapeTemplateString[0]);return`Missing end of escaped template string on line ${e} and column ${n}`}return null}getLineAndColumn(e,t){let n=e.substring(0,t).split(`
|
|
104
|
+
`);return{line:n.length,column:n[n.length-1].length}}getNonSpacePrecedingToken(e,t){t--;let n=e[t];for(;n===` `||n===`
|
|
105
|
+
`||n===` `;)t--,n=e[t];return n||`;`}removeMultilineComments(e){let t=new RegExp(fm),n,r=0,i=0,a=``;for(;n=t.exec(e);)r===0&&(a+=e.substring(i,n.index)),n[0]===`/*`?r++:n[0]===`*/`&&r>0&&r--,i=t.lastIndex;return a+=e.substring(i),a}reset(){this.count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0},this.debugCount={comment:[],singleLineComment:[],parentheses:[],curlyBraces:[],squareBrackets:[],regExp:[],regExpSquareBrackets:[],escapeTemplateString:[],simpleString:[],doubleString:[]},this.templateString=[]}};const _m={imports:[],execute:async()=>{}};var vm=class e{url;[b];#e;#t;#n=!1;#r=null;#i=null;#a=null;#o;constructor(e){this[b]=e.window,this.url=e.url,this.#e=e.source,this.#t=e.sourceURL||null,this.#o=e.factory}async evaluate(t=[],n=null){if(this.#a)return t.includes(this.url.href)?(n&&this.#a.push(n),this.#i):new Promise(e=>{this.#a.push(e)});if(this.#i)return this.#i;let r=this.#s(),i=[],a=this[b];if(!new Y(a).getBrowserFrame())return{};let o={};this.#i=o,this.#a=[];for(let e of r.imports)i.push(this.#o.getModule(e.url,{with:{type:e.type}}));let s=new Map,c=null,l=()=>{c&&c()};if(i.length){let n=await Promise.all(i),r=[...t,this.url.href];for(let t of n)if(t instanceof e){let e=await t.evaluate(r,l);s.set(t.url.href,e)}else{let e=await t.evaluate();s.set(t.url.href,e)}}let u=this.url.href;r.execute({dispatchError:a[zo].bind(a),dynamicImport:this.#o.importModule.bind(this.#o),importMeta:{url:u,resolve:e=>new re(e,u).href},imports:s,exports:o,addCircularImportResolver:e=>c=e});let d=this.#a;this.#a=null;for(let e of d)e(o);return o}async preload(){if(this.#n)return;this.#n=!0;let e=this.#s(),t=[],n=this[b];if(!new Y(n).getBrowserFrame())return;for(let n of e.imports)t.push(this.#o.getModule(n.url,{with:{type:n.type}}));let r=await Promise.all(t),i=[];for(let e of r)i.push(e.preload());await Promise.all(i)}#s(){return this.#r?this.#r:(this.#r=_m,this.#r=new gm(this[b]).compile(this.url.href,this.#e,this.#t),this.#r)}},ym=class e{window;parentURL;constructor(e,t){this.window=e,this.parentURL=t}async getModule(t,n){let r=this.window,i=this.parentURL,a=am.getURL(r,i,t),o=a.href,s=n?.with?.type||`esm`;if(s!==`esm`&&s!==`css`&&s!==`json`)throw new r.TypeError(`Failed to import module "${a}" from "${i}": Unknown type "${s}"`);let c=r[ko][s].get(o);if(c)return c instanceof nm?(await new Promise((e,t)=>{c.addResolveListener(e,t)}),r[ko][s].get(o)):c;if(!new Y(r).getBrowserFrame())throw new r.TypeError(`Failed to import module "${a}" from "${i}": Window is closed and is no longer attached to a frame`);let l=new nm({window:r,url:a}),u=r[$e],d=u.startTask();r[ko][s].set(o,l);let f=new $p(r),p;try{p=await f.fetch(a,`module`)}catch(e){throw u.endTask(d),l.resolve(e),e}u.endTask(d);let ee;switch(s){case`json`:ee=new tm({window:r,url:a,source:p.content});break;case`css`:ee=new em({window:r,url:a,source:p.content});break;case`esm`:ee=new vm({window:r,url:a,source:p.content,sourceURL:p.virtualServerFile||o,factory:new e(r,a)});break}return r[ko][s].set(o,ee),l.resolve(),ee}async importModule(e,t){let n=new Y(this.window).getBrowserFrame();if(!n)return{};let r=n[fe],i=r?.startTask(),a=await(await this.getModule(e,t)).evaluate();return r.endTask(i),a}},bm=class{integrityMetadata=null;response=null;error=null;#e=null;onResponseAvailable(){return new Promise((e,t)=>{this.#e={resolve:e,reject:t}})}responseAvailable(e,t){this.response=t,this.error=e,this.#e&&(e?this.#e.reject(e):t?this.#e.resolve(t):this.#e.reject(Error(`Response is null`)))}},xm=class extends Q{[en]=null;[ts]=!1;[nt]=null;#e=null;get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[V].set(`onerror`,e)}get onload(){return Z.getEventListener(this,`onload`)}set onload(e){this[V].set(`onload`,e)}get sheet(){return this[en]}get relList(){return this[nt]||(this[nt]=new Dd(N,this,`rel`,[`stylesheet`,`modulepreload`,`preload`])),this[nt]}set relList(e){this.setAttribute(`rel`,e)}get as(){return this.getAttribute(`as`)||``}set as(e){this.setAttribute(`as`,e)}get crossOrigin(){return this.getAttribute(`crossorigin`)||``}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get href(){if(!this.hasAttribute(`href`))return``;try{return new URL(this.getAttribute(`href`),this[g].location.href).href}catch{return this.getAttribute(`href`)}}set href(e){this.setAttribute(`href`,e)}get hreflang(){return this.getAttribute(`hreflang`)||``}set hreflang(e){this.setAttribute(`hreflang`,e)}get media(){return this.getAttribute(`media`)||``}set media(e){this.setAttribute(`media`,e)}get referrerPolicy(){return this.getAttribute(`referrerPolicy`)||``}set referrerPolicy(e){this.setAttribute(`referrerPolicy`,e)}get rel(){return this.getAttribute(`rel`)||``}set rel(e){this.setAttribute(`rel`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}[Ce](){super[Ce]();let e=this.getAttribute(`rel`),t=this.getAttribute(`href`);if(e&&t)switch(e){case`stylesheet`:this.#r(t);break;case`modulepreload`:this.#t(t);break;case`preload`:this.#n(t);break}}[qn](e,t){if(super[qn](e,t),e[E]===`rel`||e[E]===`href`){let e=this.getAttribute(`rel`),t=this.getAttribute(`href`);if(e&&t)switch(e){case`stylesheet`:this.#r(t);break;case`modulepreload`:this.#t(t);break;case`preload`:this.#n(t);break}}}async#t(e){let t=this[b],n=new Y(t).getBrowserFrame(),r=new Y(t).getSettings();if(!n||!r||!this[x]||r.disableJavaScriptFileLoading||!r.enableJavaScriptEvaluation)return;let i=new ym(t,t.location);if(r.disableErrorCapturing||r.errorCapture!==Is.tryAndCatch)await(await i.getModule(e)).preload();else try{await(await i.getModule(e)).preload()}catch(e){n.page.console.error(e),t[zo](e);return}}async#n(e){let t=this[b],n=new Y(t).getBrowserFrame(),r=this.as;if(!n||!this[x]||r!==`script`&&r!==`style`&&r!==`fetch`)return;let i=n.page.context.browser.settings;if(r===`script`&&(i.disableJavaScriptFileLoading||!i.enableJavaScriptEvaluation)||r===`style`&&i.disableCSSFileLoading)return;let a=new URL(e,t.location.href).href,o=Uu.getKey({url:a,destination:r,mode:`cors`,credentialsMode:this.crossOrigin===`use-credentials`?`include`:`same-origin`});if(t.document[Ao].has(o))return;let s=new bm;t.document[Ao].set(o,s);let c=new Gu({browserFrame:n,window:t,url:a,disableSameOriginPolicy:r===`script`||r===`style`,disablePreload:!0,init:{credentials:this.crossOrigin===`use-credentials`?`include`:`same-origin`}});try{let e=await c.send();e[me]||await e.buffer(),s.responseAvailable(null,e)}catch(e){s.responseAvailable(e,null),t.document[Ao].delete(o),n.page.console.error(`Failed to preload resource "${a}": ${e.message}`)}}async#r(e){let t=this[b],n=new Y(t).getBrowserFrame();if(!n||e===null)return;let r=n.page.context.browser.settings;if(this[ts]||!this[x])return;let i;try{i=new URL(e,t.location.href).href}catch{return}if(this.#e===i)return;if(r&&r.disableCSSFileLoading){if(r.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new W(`load`));else{let e=new t.DOMException(`Failed to load external stylesheet "${i}". CSS file loading is disabled.`,H.notSupportedError);n.page.console.error(e),this.dispatchEvent(new W(`error`))}return}let a=new $p(t),o=t[$e];this.#e=i;let s=o.startTask(),c=null,l=null;try{c=await a.fetch(i,`style`,{credentials:this.crossOrigin===`use-credentials`?`include`:`same-origin`})}catch(e){l=e}if(o.endTask(s),l)n.page.console.error(l),this.dispatchEvent(new W(`error`));else{let e=new this[g][b].CSSStyleSheet;e.replaceSync(c.content),this[en]=e;let t=this[g];if(t){for(let e of t[Qn])e.result=null;t[Qn]=[]}this.dispatchEvent(new W(`load`))}}},Sm=class extends Q{[pr]=null;get areas(){return this[pr]||(this[pr]=kd.getElementsByTagName(this,`area`)),this[pr]}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}},Cm=class extends Array{constructor(e){if(super(),e!==1&&e!==N)throw TypeError(`Illegal constructor`)}getCueById(e){for(let t of this)if(t.id===e)return t;return null}},wm=class extends Q{},Tm=class extends Q{get content(){return this.getAttribute(`content`)||``}set content(e){this.setAttribute(`content`,e)}get httpEquiv(){return this.getAttribute(`http-equiv`)||``}set httpEquiv(e){this.setAttribute(`http-equiv`,e)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get scheme(){return this.getAttribute(`scheme`)||``}set scheme(e){this.setAttribute(`scheme`,e)}},Em=class extends Q{get high(){if(!this.hasAttribute(`high`))return 1;let e=parseFloat(this.getAttribute(`high`)||``);return isNaN(e)||e>1?1:e<0?0:e}set high(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[b].TypeError(`Failed to set the 'high' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`high`,String(e))}get low(){if(!this.hasAttribute(`low`))return 0;let e=parseFloat(this.getAttribute(`low`)||``);return isNaN(e)||e<0?0:e>1?1:e}set low(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[b].TypeError(`Failed to set the 'low' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`low`,String(e))}get max(){if(!this.hasAttribute(`max`))return 1;let e=parseFloat(this.getAttribute(`max`)||``);return isNaN(e)||e>1?1:e<0?0:e}set max(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[b].TypeError(`Failed to set the 'max' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`max`,String(e))}get min(){if(!this.hasAttribute(`min`))return 0;let e=parseFloat(this.getAttribute(`min`)||``);return isNaN(e)||e<0?0:e>1?1:e}set min(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[b].TypeError(`Failed to set the 'min' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`min`,String(e))}get optimum(){if(!this.hasAttribute(`optimum`))return .5;let e=parseFloat(this.getAttribute(`optimum`)||``);return isNaN(e)?.5:e<0?0:e>1?1:e}set optimum(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[b].TypeError(`Failed to set the 'optimum' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`optimum`,String(e))}get value(){if(!this.hasAttribute(`value`))return 0;let e=parseFloat(this.getAttribute(`value`)||``);return isNaN(e)||e<0?0:e>1?1:e}set value(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[b].TypeError(`Failed to set the 'value' property on 'HTMLMeterElement': The provided double value is non-finite.`);this.setAttribute(`value`,String(e))}get labels(){return Gf.getAssociatedLabelElements(this)}},Dm=class extends Q{get cite(){if(!this.hasAttribute(`cite`))return``;try{return new URL(this.getAttribute(`cite`),this[g].location.href).href}catch{return this.getAttribute(`cite`)}}set cite(e){this.setAttribute(`cite`,e)}get dateTime(){return this.getAttribute(`datetime`)||``}set dateTime(e){this.setAttribute(`datetime`,e)}},Om=class extends Q{get reversed(){return this.getAttribute(`reversed`)!==null}set reversed(e){e?this.setAttribute(`reversed`,``):this.removeAttribute(`reversed`)}get start(){if(!this.hasAttribute(`start`))return 1;let e=Number(this.getAttribute(`start`)||``);return isNaN(e)?1:e}set start(e){typeof e!=`number`&&(e=Number(e)),isNaN(e)&&(e=0),this.setAttribute(`start`,String(e))}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}},km=class extends Q{[Le]=null;[Gt]=``;[Kt]=new Wf(this);get contentDocument(){return null}get contentWindow(){return null}get data(){if(!this.hasAttribute(`data`))return``;try{return new URL(this.getAttribute(`data`),this[g].location.href).href}catch{return this.getAttribute(`data`)}}set data(e){this.setAttribute(`data`,e)}get form(){if(this[Le])return this[Le];let e=this.getAttribute(`form`);return!e||!this[x]?null:this[g].getElementById(e)}get height(){return this.getAttribute(`height`)||``}set height(e){this.setAttribute(`height`,e)}get width(){return this.getAttribute(`width`)||``}set width(e){this.setAttribute(`width`,e)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}get validationMessage(){return this[Gt]}get validity(){return this[Kt]}get willValidate(){return!1}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(e){this[Gt]=String(e)}},Am=class extends Q{get label(){return this.getAttribute(`label`)||``}set label(e){e?this.setAttribute(`label`,e):this.removeAttribute(`label`)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}},jm=class extends Q{[ot]=!1;[Ne]=!1;[at]=null;get text(){return this.innerText}set text(e){this.innerText=e}get index(){return this[at]?J.querySelectorAll(this[at],`option`)[A].indexOf(this):0}get form(){return this[at]?.form||null}get selected(){return this[ot]}set selected(e){let t=this[at];this[Ne]=!0,this[ot]=!!e,t&&t[ht](this[ot]?this:null)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}get value(){return this.getAttribute(`value`)??this.textContent}set value(e){this.setAttribute(`value`,e)}[qn](e,t){if(super[qn](e,t),!this[Ne]&&e[E]===`selected`&&t?.[v]!==e[v]){let e=this[at];this[ot]=!0,e&&e[ht](this)}}[Jn](e){if(super[Jn](e),e&&!this[Ne]&&e[E]===`selected`){let e=this[at];this[ot]=!1,e&&e[ht]()}}[xe](){super[xe](),this[at]&&this[at][ht]()}[Se](){this[at]&&this[at][ht](),super[Se]()}},Mm=class extends Q{[Le]=null;[Gt]=``;[Kt]=new Wf(this);[mr]=``;get defaultValue(){return this[mr]}set defaultValue(e){this[mr]=e}get form(){if(this[Le])return this[Le];let e=this.getAttribute(`form`);return!e||!this[x]?null:this[g].getElementById(e)}get htmlFor(){return this.getAttribute(`for`)||``}set htmlFor(e){this.setAttribute(`for`,e)}get labels(){return Gf.getAssociatedLabelElements(this)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get value(){return this.textContent||``}set value(e){this.textContent=e}get type(){return`output`}get validationMessage(){return this[Gt]}get validity(){return this[Kt]}get willValidate(){return!1}checkValidity(){return!0}reportValidity(){return this.checkValidity()}setCustomValidity(e){this[Gt]=String(e)}},Nm=class extends Q{},Pm=class extends Q{},Fm=class extends Q{},Im=class extends Q{},Lm=class extends Q{get max(){if(!this.hasAttribute(`max`))return 1;let e=parseFloat(this.getAttribute(`max`)||``);return isNaN(e)||e<0?1:e}set max(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[b].TypeError(`Failed to set the 'max' property on 'HTMLProgressElement': The provided double value is non-finite.`);this.setAttribute(`max`,e<0?`1`:String(e))}get value(){if(!this.hasAttribute(`value`))return 0;let e=parseFloat(this.getAttribute(`value`)||``);return isNaN(e)||e<0?0:e}set value(e){if(e=typeof e==`number`?e:Number(e),isNaN(e))throw new this[b].TypeError(`Failed to set the 'value' property on 'HTMLProgressElement': The provided double value is non-finite.`);this.setAttribute(`value`,e<0?`0`:String(e))}get position(){return this.hasAttribute(`value`)?this.value/this.max:-1}get labels(){return Gf.getAssociatedLabelElements(this)}},Rm=class extends Q{get cite(){if(!this.hasAttribute(`cite`))return``;try{return new URL(this.getAttribute(`cite`),this[g].location.href).href}catch{return this.getAttribute(`cite`)}}set cite(e){this.setAttribute(`cite`,e)}};const zm=/import\s*\(([^)]+)\)/gm,Bm=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,Vm=/['"`(){}\s;=><\[\]+-,:&]/,Hm=/['"`({};=><\[+-,:&]/;var Um=class{window;count={comment:0,singleLineComment:0,parentheses:0,curlyBraces:0,squareBrackets:0,regExp:0,regExpSquareBrackets:0,escapeTemplateString:0,simpleString:0,doubleString:0};templateString=[];constructor(e){this.window=e}compile(e,t){let n=new Y(this.window).getSettings();if(!n)return{execute:()=>{}};let r=new RegExp(zm),i=this.count,a=`(function anonymous($happy_dom) {`,o=null,s,c,l=0;for(!n.disableErrorCapturing&&n.errorCapture===Is.tryAndCatch&&(a+=`try {`);o=r.exec(t);)s=t[o.index-1]||` `,c=t.substring(l,o.index),this.parseSyntax(c,l),a+=c,o[1]&&i.simpleString===0&&i.doubleString===0&&i.comment===0&&i.singleLineComment===0&&i.regExp===0&&(this.templateString.length===0||this.templateString[0]>0)&&Vm.test(s)?a+=`$happy_dom.dynamicImport(${o[1]})`:(a+=o[0],this.parseSyntax(o[0],o.index)),l=r.lastIndex;l===0?a+=t:a+=t.substring(l),!n.disableErrorCapturing&&n.errorCapture===Is.tryAndCatch&&(a+=`} catch (error) { $happy_dom.dispatchError(error); }`),a+=`})`;try{return{execute:this.window[Fe](a,{filename:e})}}catch(t){if(t.message=`Failed to parse JavaScript in '${e}': ${t.message}`,n.disableErrorCapturing||n.errorCapture!==Is.tryAndCatch)throw t;return this.window[zo](t),{execute:()=>{}}}}parseSyntax(e,t){let n=new RegExp(Bm),r=this.count,i=null,a,o;for(t++;i=n.exec(e);)a=e[i.index-1]||` `,o=a===`\\`&&e[i.index-2]!==`\\`,i[1]?r.simpleString===0&&r.doubleString===0&&r.singleLineComment===0&&r.regExpSquareBrackets===0&&(this.templateString.length===0||this.templateString[0]>0)&&(r.comment===1?a===`*`&&(r.comment=0):r.regExp===0?e[i.index+1]===`*`?r.comment=1:e[i.index+1]===`/`?r.singleLineComment=1:Hm.test(this.getNonSpacePrecedingToken(e,i.index))&&(r.regExp=1):o||(r.regExp=0)):i[2]?r.simpleString===0&&r.doubleString===0&&r.regExp===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[2]===`(`?r.parentheses++:i[2]===`)`&&r.parentheses>0&&r.parentheses--):i[3]?r.simpleString===0&&r.doubleString===0&&r.regExp===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(i[3]===`{`?(this.templateString.length&&this.templateString[0]++,r.curlyBraces++):i[3]===`}`&&(this.templateString.length&&this.templateString[0]>0&&this.templateString[0]--,r.curlyBraces>0&&r.curlyBraces--)):i[4]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&(this.templateString.length===0||this.templateString[0]>0)&&(r.regExp===1?o||(i[4]===`[`&&r.regExpSquareBrackets===0?r.regExpSquareBrackets=1:i[4]===`]`&&r.regExpSquareBrackets===1&&(r.regExpSquareBrackets=0)):i[4]===`[`?r.squareBrackets++:i[4]===`]`&&r.squareBrackets>0&&r.squareBrackets--):i[5]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!o&&this.templateString[0]===0&&(this.templateString[0]=1,r.curlyBraces++):i[6]?r.simpleString===0&&r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!o&&(this.templateString?.[0]===0?this.templateString.shift():this.templateString.unshift(0)):i[7]?r.doubleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!o&&(this.templateString.length===0||this.templateString[0]>0)&&(r.simpleString===0?r.simpleString=1:r.simpleString=0):i[8]?r.simpleString===0&&r.comment===0&&r.singleLineComment===0&&r.regExp===0&&!o&&(this.templateString.length===0||this.templateString[0]>0)&&(r.doubleString===0?r.doubleString=1:r.doubleString=0):i[9]&&(r.singleLineComment=0)}getNonSpacePrecedingToken(e,t){t--;let n=e[t];for(;n===` `||n===`
|
|
106
|
+
`||n===` `;)t--,n=e[t];return n||`;`}},Wm=class extends Q{[ts]=!1;[Lo]=null;#e=null;get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[V].set(`onerror`,e)}get onload(){return Z.getEventListener(this,`onload`)}set onload(e){this[V].set(`onload`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}get blocking(){return this[Lo]||(this[Lo]=new Dd(N,this,`blocking`)),this[Lo]}set blocking(e){this.setAttribute(`blocking`,e)}get crossOrigin(){return this.getAttribute(`crossorigin`)||``}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get fetchPriority(){let e=this.getAttribute(`fetchpriority`);switch(e){case`high`:case`low`:case`normal`:return e;default:return`auto`}}set fetchPriority(e){this.setAttribute(`fetchpriority`,e)}get noModule(){return this.getAttribute(`nomodule`)!==null}set noModule(e){e?this.setAttribute(`nomodule`,``):this.removeAttribute(`nomodule`)}get integrity(){return this.getAttribute(`integrity`)||``}set integrity(e){this.setAttribute(`integrity`,e)}get referrerPolicy(){let e=this.getAttribute(`referrerpolicy`);switch(e){case`no-referrer`:case`no-referrer-when-downgrade`:case`same-origin`:case`origin`:case`strict-origin`:case`origin-when-cross-origin`:case`strict-origin-when-cross-origin`:case`unsafe-url`:return e;default:return``}}set referrerPolicy(e){this.setAttribute(`referrerpolicy`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[g].location.href).href}catch{return this.getAttribute(`src`)}}set src(e){this.setAttribute(`src`,e)}get charset(){return this.getAttribute(`charset`)||``}set charset(e){this.setAttribute(`charset`,e)}get lang(){return this.getAttribute(`lang`)||``}set lang(e){this.setAttribute(`lang`,e)}get async(){return this.getAttribute(`async`)!==null}set async(e){e?this.setAttribute(`async`,``):this.removeAttribute(`async`)}get defer(){return this.getAttribute(`defer`)!==null}set defer(e){e?this.setAttribute(`defer`,``):this.removeAttribute(`defer`)}get text(){return this.textContent}set text(e){this.textContent=e}[Nn](e=!1){return super[Nn](e)}[Ce](){let e=new Y(this[b]).getSettings();if(super[Ce](),this[ts])return;let t=this.getAttribute(`src`);if(t!==null)this.getAttribute(`type`)===`module`?this.#i(t):this.#a(t);else if(e&&e.enableJavaScriptEvaluation){let e=this.textContent,t=this.getAttribute(`type`);e&&(t===`module`?this.#t(e):t===`importmap`?this.#n(e):(t===null||t===`application/x-ecmascript`||t===`application/x-javascript`||t.startsWith(`text/javascript`))&&this.#r(e))}}[qn](e,t){super[qn](e,t),e[E]===`src`&&e[v]!==null&&this[x]&&(this.getAttribute(`type`)===`module`?this.#i(e[v]):this.#a(e[v]))}#t(e){let t=this[g].location,n=this[b],r=new Y(n).getSettings();if(!new Y(n).getBrowserFrame()||!r||!r.enableJavaScriptEvaluation)return;this[g][Oe]=this;let i=new vm({window:n,url:t,source:e,factory:new ym(n,t)});r.disableErrorCapturing||r.errorCapture!==Is.tryAndCatch?i.evaluate():i.evaluate().catch(e=>{n[zo](e)}),this[g][Oe]=null,this.dispatchEvent(new W(`load`))}async#n(e){let t=this[b],n=new Y(t).getSettings();if(!new Y(t).getBrowserFrame()||!n||t[Ro]||!n.enableJavaScriptEvaluation)return;let r;if(n.disableErrorCapturing||n.errorCapture!==Is.tryAndCatch)r=JSON.parse(e);else try{r=JSON.parse(e)}catch(e){t[zo](e);return}if(r.imports||r.scopes){let e={imports:[],scopes:[]};if(r.imports)for(let t of Object.keys(r.imports))e.imports.push({from:t,to:r.imports[t]});if(r.scopes)for(let t of Object.keys(r.scopes)){let n={scope:t,rules:[]};for(let e of Object.keys(r.scopes[t])){let i=r.scopes[t][e];n.rules.push({from:e,to:i})}e.scopes.push(n)}t[Ro]=e}}#r(e){let t=this[b];if(!new Y(t).getSettings())return;this[g][Oe]=this;let n=new Um(t).compile(t.location.href,e),r=new ym(t,t.location);n.execute({dynamicImport:r.importModule.bind(r),dispatchError:t[zo].bind(t)}),this[g][Oe]=null}async#i(e){let t=this[b],n=new Y(t).getBrowserFrame(),r=new Y(t).getSettings();if(!n||!r||!e||!this[x]||this.getAttribute(`type`)!==`module`)return;if(r&&(r.disableJavaScriptFileLoading||!r.enableJavaScriptEvaluation)){if(r.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new W(`load`));else{let r=new t.DOMException(`Failed to load module "${e}". JavaScript file loading is disabled.`,H.notSupportedError);n.page.console.error(r),this.dispatchEvent(new W(`error`))}return}let i=new ym(t,t.location);if(r.disableErrorCapturing||r.errorCapture!==Is.tryAndCatch)await(await i.getModule(e)).evaluate();else try{await(await i.getModule(e)).evaluate()}catch(e){n.page.console.error(e),this.dispatchEvent(new W(`error`));return}this.dispatchEvent(new W(`load`))}async#a(e){let t=this[b],n=new Y(t).getBrowserFrame();if(!n)return;let r=n.page.context.browser.settings,i=this.getAttribute(`type`);if(!e||!this[x]||i!==null&&i!==`application/x-ecmascript`&&i!==`application/x-javascript`&&!i.startsWith(`text/javascript`))return;let a;try{a=new URL(e,t.location.href)}catch{return}let o=a.toString();if(this.#e===o)return;if(r&&(r.disableJavaScriptFileLoading||!r.enableJavaScriptEvaluation)){if(r.handleDisabledFileLoadingAsSuccess)this.dispatchEvent(new W(`load`));else{let e=new t.DOMException(`Failed to load script "${a}". JavaScript file loading is disabled.`,H.notSupportedError);n.page.console.error(e),this.dispatchEvent(new W(`error`))}return}this.#e=o;let s=new $p(t),c=this.getAttribute(`async`)!==null||this.getAttribute(`defer`)!==null,l=null;if(c){let e=t[$e],r=e.startTask();try{l=await s.fetch(o,`script`,{credentials:this.crossOrigin===`use-credentials`?`include`:`same-origin`,referrerPolicy:this.referrerPolicy})}catch(t){n.page.console.error(t),this.dispatchEvent(new W(`error`)),e.endTask(r);return}e.endTask(r)}else try{l=s.fetchSync(o,`script`,{credentials:this.crossOrigin===`use-credentials`?`include`:`same-origin`,referrerPolicy:this.referrerPolicy})}catch(e){n.page.console.error(e),this.dispatchEvent(new W(`error`));return}this[g][Oe]=this;let u=new Um(t).compile(l.virtualServerFile||o,l.content),d=new ym(t,t.location);u.execute({dynamicImport:d.importModule.bind(d),dispatchError:t[zo].bind(t)}),this[g][Oe]=null,this.dispatchEvent(new W(`load`))}static supports(e){switch(e){case`classic`:case`module`:case`importmap`:return!0;default:return!1}}},Gm=class extends Od{constructor(e,t){super(e,()=>J.querySelectorAll(t,`option`)[A]),this[Ze]=t}get selectedIndex(){return this[Ze].selectedIndex}set selectedIndex(e){this[Ze].selectedIndex=e}add(e,t){this[Ze].add(e,t)}remove(e){this[Ze].remove(e)}},Km=class e extends Q{[Gt]=``;[Kt]=new Wf(this);[yn]=null;[Un]=null;[lr]=-1;[ar];constructor(){super();let t=new zc(this,[e,Q,Tf,md,tl]),n=new Proxy(this,{get:(e,n)=>{if(n in e||typeof n==`symbol`)return t.bind(n),e[n];let r=Number(n);if(!isNaN(r))return J.querySelectorAll(e,`option`)[A][r]},set(e,n,r){if(t.bind(n),typeof n==`symbol`)return e[n]=r,!0;let i=Number(n);if(isNaN(i))return e[n]=r,!0;if(!r||!(r instanceof jm))throw new e[b].Error(`TypeError: Failed to set an indexed property [${i}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=J.querySelectorAll(e,`option`)[A],o=e[j];for(;o.length;)e[Fn](o[0]);for(let t=0;t<=i;t++)t===i?e[Pn](r):a[t]?e[Pn](a[t]):e[Pn](e[g].createElement(`option`));return!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(J.querySelectorAll(e,`option`)[A])},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return isNaN(n)?!1:!!J.querySelectorAll(e,`option`)[A][n]},defineProperty(e,n,r){t.preventBinding(n);let i=Number(n);if(isNaN(i))return Object.defineProperty(e,n,r),!0;if(!r.value||!(r.value instanceof jm))throw new e[b].Error(`TypeError: Failed to set an indexed property [${i}] on 'HTMLSelectElement': parameter 2 is not of type 'HTMLOptionElement'.`);let a=J.querySelectorAll(e,`option`)[A],o=e[j];for(;o.length;)e[Fn](o[0]);for(let t=0;t<=i;t++)t===i?e[Pn](r.value):a[t]?e[Pn](a[t]):e[Pn](e[g].createElement(`option`));return!0},getOwnPropertyDescriptor(e,t){if(t in e)return Object.getOwnPropertyDescriptor(e,t);let n=Number(t);if(isNaN(n))return;let r=J.querySelectorAll(e,`option`)[A];if(r[n])return{value:r[n],writable:!0,enumerable:!0,configurable:!0}}});return this[ar]=n,this[at]=n,n}get onchange(){return Z.getEventListener(this,`onchange`)}set onchange(e){this[V].set(`onchange`,e)}get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[V].set(`oninput`,e)}get length(){return J.querySelectorAll(this,`option`)[A].length}get options(){return this[yn]||(this[yn]=new Gm(N,this)),this[yn]}get validationMessage(){return this[Gt]}get validity(){return this[Kt]}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}get multiple(){return this.getAttribute(`multiple`)!==null}set multiple(e){e?this.setAttribute(`multiple`,``):this.removeAttribute(`multiple`)}get autofocus(){return this.getAttribute(`autofocus`)!==null}set autofocus(e){e?this.setAttribute(`autofocus`,``):this.removeAttribute(`autofocus`)}get required(){return this.getAttribute(`required`)!==null}set required(e){e?this.setAttribute(`required`,``):this.removeAttribute(`required`)}get type(){return this.hasAttributeNS(null,`multiple`)?`select-multiple`:`select-one`}get value(){let e=J.querySelectorAll(this,`option`)[A];for(let t=0,n=e.length;t<n;t++){let n=e[t];if(n[ot])return n.value}return``}set value(e){let t=J.querySelectorAll(this,`option`)[A];this[lr]=-1;for(let n=0,r=t.length;n<r;n++){let r=t[n];r.value===e?(r[ot]=!0,r[Ne]=!0,this[lr]=n):r[ot]=!1}}get selectedIndex(){return this[lr]}set selectedIndex(e){if(e=Number(e),isNaN(e))return;let t=J.querySelectorAll(this,`option`)[A];if(this[lr]=-1,typeof e==`number`&&!isNaN(e)){for(let e=0,n=t.length;e<n;e++)t[e][ot]=!1;let n=t[e];n&&(n[ot]=!0,n[Ne]=!0,this[lr]=e)}}get selectedOptions(){return this[Un]||(this[Un]=new Od(N,()=>{let e=J.querySelectorAll(this,`option`)[A];if(e[Un])return e[Un];let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];r[ot]&&t.push(r)}return e[Un]=t,t})),this[Un]}get labels(){return Gf.getAssociatedLabelElements(this)}get form(){if(this[Le])return this[Le];let e=this.getAttribute(`form`);return!e||!this[x]?null:this[g].getElementById(e)}get willValidate(){return this.type!==`hidden`&&this.type!==`reset`&&this.type!==`button`&&!this.disabled}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}item(e){return this.options.item(e)}add(e,t){let n=J.querySelectorAll(this,`option`)[A];if(!t&&t!==0){let t=this[j];for(;t.length;)this[Fn](t[0]);for(let e of n)this[Pn](e);this[Pn](e);return}let r=this[b];if(typeof t!=`number`){if(!(t instanceof jm))throw new r.DOMException(`Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not an 'HTMLOptionElement'.`);t=n.indexOf(t)}if(!n[t])throw new r.DOMException(`Failed to execute 'add' on 'HTMLFormElement': The node before which the new node is to be inserted before is not a child of this node.`);let i=this[j];for(;i.length;)this[Fn](i[0]);for(let r=0,i=n.length;r<i;r++)r===t&&this[Pn](e),this[Pn](n[r])}remove(e){if(typeof e==`number`){let t=J.querySelectorAll(this,`option`)[A];if(!t[e])return;let n=this[j];for(;n.length;)this[Fn](n[0]);for(let n=0,r=t.length;n<r;n++)n!==e&&this[Pn](t[n])}else super.remove()}setCustomValidity(e){this[Gt]=String(e)}checkValidity(){let e=this.disabled||this[Kt].valid;return e||this.dispatchEvent(new W(`invalid`,{bubbles:!0,cancelable:!0})),e}reportValidity(){return this.checkValidity()}[ht](e){let t=this.hasAttribute(`multiple`),n=J.querySelectorAll(this,`option`)[A],r=[];if(e&&(this[lr]=-1),!t)for(let t=0,i=n.length;t<i;t++){let i=n[t];e&&(i[ot]=i===e,i===e&&(this[lr]=t)),i[ot]&&r.push(i)}if(this.#e()===1&&!r.length){this[lr]=-1;for(let e=0,t=n.length;e<t;e++){let t=n[e],r=t[S],i=t.hasAttributeNS(null,`disabled`);if(r&&r[C]===U.elementNode&&r[w]===`OPTGROUP`&&r.hasAttributeNS(null,`disabled`)&&(i=!0),!i){t[ot]=!0,this[lr]=e;break}}}else if(r.length>=2){this[lr]=-1;for(let e=0,t=n.length;e<t;e++)n[e][ot]=e===r.length-1,e===r.length-1&&(this[lr]=e)}}#e(){if(this.hasAttributeNS(null,`size`)){let e=parseInt(this.getAttribute(`size`));if(!isNaN(e)&&e>=0)return e}return this.hasAttributeNS(null,`multiple`)?4:1}},qm,Jm=class extends Q{[br]=[];get onslotchange(){return Z.getEventListener(this,`onslotchange`)}set onslotchange(e){this[V].set(`onslotchange`,e)}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}assign(...e){let t=this.getRootNode();if(t?.[yr]!==`manual`)return;let n=t.host;if(n){for(let t of e)if(t instanceof md&&n[j].includes(t)&&t[C]!==U.commentNode){if(t[xr]){let e=t[xr][br].indexOf(t);e!==-1&&t[xr][br].splice(e,1)}t[xr]=this,this[br].push(t)}}}assignedNodes(e){return this.#e(this.name,e)}assignedElements(e){return this.#t(this.name,e)}[Nn](e=!1){return super[Nn](e)}[qn](e,t){if(super[qn](e,t),e[E]===`name`&&e[v]!==t?.[v]){let n=this.#e(t?.[v]),r=this.#e(e.value);if(n.length!==r.length)this.dispatchEvent(new W(`slotchange`,{bubbles:!0}));else for(let e=0,t=r.length;e<t;e++)if(n[e]!==r[e]){this.dispatchEvent(new W(`slotchange`,{bubbles:!0}));break}}}[Jn](e){super[Jn](e),e[E]===`name`&&e[v]&&this.#e(e.value).length>0&&this.dispatchEvent(new W(`slotchange`,{bubbles:!0}))}#e(e,t){let n=this.getRootNode();if(!n?.host)return[];if(n[yr]===`manual`)return this[br];let r=n.host,i=!!t?.flatten,a=[];for(let n of r[j]){let r=n.slot;if(e&&r&&r===e||!e&&!r)if(i&&n instanceof qm)for(let e of n.assignedNodes(t))a.push(e);else a.push(n)}return a}#t(e,t){let n=this.getRootNode();if(!n?.host)return[];if(n[yr]===`manual`){let e=[];for(let t of this[br])t instanceof Tf&&e.push(t);return e}let r=n.host,i=!!t?.flatten,a=[];for(let n of r[Yn]){let r=n.slot;if(e&&r===e||!e&&!r)if(i&&n instanceof qm)for(let e of n.assignedElements(t))a.push(e);else a.push(n)}return a}};qm=Jm;var Ym=class extends Q{get height(){let e=Number(this.getAttribute(`height`));return isNaN(e)||e<0?0:e}set height(e){let t=Number(e);this.setAttribute(`height`,isNaN(t)||t<0?`0`:String(t))}get width(){let e=Number(this.getAttribute(`width`));return isNaN(e)||e<0?0:e}set width(e){let t=Number(e);this.setAttribute(`width`,isNaN(t)||t<0?`0`:String(t))}get media(){return this.getAttribute(`media`)||``}set media(e){this.setAttribute(`media`,e)}get sizes(){return this.getAttribute(`sizes`)||``}set sizes(e){this.setAttribute(`sizes`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[g].location.href).href}catch{return this.getAttribute(`src`)||``}}set src(e){this.setAttribute(`src`,e)}get srcset(){return this.getAttribute(`srcset`)||``}set srcset(e){this.setAttribute(`srcset`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}},Xm=class extends Q{},Zm=class extends Q{[en]=null;[Wn]=this;[Vi]=!1;get media(){return this.getAttribute(`media`)||``}set media(e){this.setAttribute(`media`,e)}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}get disabled(){return this[Vi]}set disabled(e){this[Vi]=!!e}get sheet(){return this[x]?(this[en]||(this[en]=new this[g][b].CSSStyleSheet,this[en].replaceSync(this.textContent)),this[en]):null}[we](){super[we](),this[en]=null}[Me](){super[Me](),this[en]=null}[Gn](){this[en]&&this[en].replaceSync(this.textContent)}},Qm=class extends Q{},$m=class extends Q{get abbr(){return this.getAttribute(`abbr`)||``}set abbr(e){this.setAttribute(`abbr`,e)}get cellIndex(){let e=this.parentNode;for(;e;){if(e[w]===`TR`)return J.querySelectorAll(e,`td,th`)[A].indexOf(this);e=e.parentNode}return-1}get colSpan(){let e=Number(this.getAttribute(`colspan`));return isNaN(e)||e<1?1:e}set colSpan(e){let t=Number(e);this.setAttribute(`colspan`,isNaN(t)||t<1?`1`:String(t))}get headers(){return this.getAttribute(`headers`)||``}set headers(e){this.setAttribute(`headers`,String(e))}get rowSpan(){let e=Number(this.getAttribute(`rowspan`));return isNaN(e)||e<1?1:e}set rowSpan(e){let t=Number(e);this.setAttribute(`rowspan`,isNaN(t)||t<1?`1`:String(t))}get scope(){return this.getAttribute(`scope`)||``}set scope(e){this.setAttribute(`scope`,e)}},eh=class extends Q{},th=class extends Q{insertRow(e=-1){typeof e!=`number`&&(e=-1);let t=J.querySelectorAll(this,`tr`)[A];if(e<-1)throw new this[b].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,H.indexSizeError);if(e>t.length)throw new this[b].DOMException(`Failed to execute 'insertRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows (${t.length}).`,H.indexSizeError);let n=this[g].createElement(`tr`);return e===-1||e===t.length?this.appendChild(n):this.insertBefore(n,t[e]),n}deleteRow(e){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': 1 argument required, but only 0 present.`);if(typeof e!=`number`&&(e=-1),e<-1)throw new this[b].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is less than -1.`,H.indexSizeError);let t=J.querySelectorAll(this,`tr`)[A];if(e>=t.length)throw new this[b].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableSectionElement': The index provided (${e}) is greater than the number of rows in the table (${t.length}).`,H.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}},nh=class extends Q{[Cr]=null;[Tr]=null;get caption(){return J.querySelector(this,`caption`)}set caption(e){if(e){if(!(e instanceof Qm))throw new this[b].TypeError(`Failed to set the 'caption' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableCaptionElement'.`);this.caption?.remove(),this.insertBefore(e,this.firstChild)}else this.caption?.remove()}get tHead(){return J.querySelector(this,`thead`)}set tHead(e){if(e){if(!(e instanceof th))throw new this[b].TypeError(`Failed to set the 'tHead' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.`);this.tHead?.remove();let t=!1;for(let n of this[Yn])if(n[w]!==`CAPTION`&&n[w]!==`COLGROUP`){this.insertBefore(e,n),t=!0;break}t||this.appendChild(e)}else this.tHead?.remove()}get tFoot(){return J.querySelector(this,`tfoot`)}set tFoot(e){if(e){if(!(e instanceof th))throw new this[b].TypeError(`Failed to set the 'tFoot' property on 'HTMLTableElement': Failed to convert value to 'HTMLTableSectionElement'.`);this.tFoot?.remove();let t=!1;for(let n of this[Yn])if(n[w]!==`CAPTION`&&n[w]!==`COLGROUP`&&n[w]!==`THEAD`){this.insertBefore(e,n),t=!0;break}t||this.appendChild(e)}else this.tFoot?.remove()}get rows(){return this[Cr]||(this[Cr]=new Od(N,()=>J.querySelectorAll(this,`tr`)[A])),this[Cr]}get tBodies(){return this[Tr]||(this[Tr]=new Od(N,()=>J.querySelectorAll(this,`tbody`)[A])),this[Tr]}createTHead(){let e=this.tHead;if(e)return e;let t=this[g].createElement(`thead`);return this.tHead=t,t}deleteTHead(){this.tHead=null}createTFoot(){let e=this.tFoot;if(e)return e;let t=this[g].createElement(`tfoot`);return this.tFoot=t,t}deleteTFoot(){this.tFoot=null}createTBody(){let e=J.querySelectorAll(this,`tbody`)[A],t=this[g].createElement(`tbody`);if(e.length>0){let n=e[e.length-1];return n.parentNode?.insertBefore(t,n.nextSibling),t}return this.appendChild(t),t}createCaption(){let e=this.caption;if(e)return e;let t=this[g].createElement(`caption`);return this.caption=t,t}deleteCaption(){this.caption=null}insertRow(e=-1){typeof e!=`number`&&(e=-1);let t=J.querySelectorAll(this,`tr`)[A];if(e<-1)throw new this[b].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${e}) is less than -1.`,H.indexSizeError);if(e>t.length)throw new this[b].DOMException(`Failed to execute 'insertRow' on 'HTMLTableElement': The index provided (${e}) is greater than the number of rows (${t.length}).`,H.indexSizeError);let n=this[g].createElement(`tr`);if(e===-1||e===t.length){let e=J.querySelector(this,`tbody`);if(e)e.appendChild(n);else{let e=this[g].createElement(`tbody`);e.appendChild(n),this.appendChild(e)}return n}return t[e].parentNode?.insertBefore(n,t[e]),n}deleteRow(e){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only 0 present.`);if(typeof e!=`number`&&(e=-1),e<-1)throw new this[b].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${e}) is less than -1.`,H.indexSizeError);let t=J.querySelectorAll(this,`tr`)[A];if(e>=t.length)throw new this[b].DOMException(`Failed to execute 'deleteRow' on 'HTMLTableElement': The index provided (${e}) is greater than the number of rows in the table (${t.length}).`,H.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}},rh=class extends Q{[Sr]=null;get cells(){return this[Sr]||(this[Sr]=new Od(N,()=>J.querySelectorAll(this,`td,th`)[A])),this[Sr]}get rowIndex(){let e=this.parentNode;for(;e;){if(e[w]===`TABLE`)return J.querySelectorAll(e,`tr`)[A].indexOf(this);e=e.parentNode}return-1}get sectionRowIndex(){let e=this.parentNode;for(;e;){if(e instanceof th)return J.querySelectorAll(e,`tr`)[A].indexOf(this);e=e.parentNode}return-1}insertCell(e=-1){typeof e!=`number`&&(e=-1);let t=J.querySelectorAll(this,`td,th`)[A];if(e<-1)throw new this[b].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${e}) is less than -1.`,H.indexSizeError);if(e>t.length)throw new this[b].DOMException(`Failed to execute 'insertCell' on 'HTMLTableRowElement': The index provided (${e}) is greater than the number of cells (${t.length}).`,H.indexSizeError);let n=this[g].createElement(`td`);return e===-1||e===t.length?(this.appendChild(n),n):(t[e].parentNode?.insertBefore(n,t[e]),n)}deleteCell(e){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': 1 argument required, but only 0 present.`);if(typeof e!=`number`&&(e=-1),e<-1)throw new this[b].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${e}) is less than -1.`,H.indexSizeError);let t=J.querySelectorAll(this,`td,th`)[A];if(e>=t.length)throw new this[b].DOMException(`Failed to execute 'deleteCell' on 'HTMLTableRowElement': The index provided (${e}) is greater than the number of cells in the row (${t.length}).`,H.indexSizeError);e===-1&&(e=t.length-1),t[e].remove()}},ih=class extends Q{[bn]=this[g].createDocumentFragment();get content(){return this[bn]}get innerHTML(){return this.getHTML()}set innerHTML(e){let t=this[bn],n=t[j];for(;n.length;)t.removeChild(n[0]);new Sf(this[b],{isTemplateDocumentFragment:!0}).parse(e,this[bn])}get firstChild(){return this[bn].firstChild}get lastChild(){return this[bn].lastChild}getInnerHTML(e){let t=new pf,n=this[bn],r=``;for(let e of n[j])r+=t.serializeToString(e);return r}getHTML(e){let t=new pf,n=this[bn],r=``;for(let e of n[j])r+=t.serializeToString(e);return r}[Pn](e,t=!1){return this[bn][Pn](e,t)}[Fn](e){return this[bn][Fn](e)}[In](e,t,n=!1){return this[bn][In](e,t,n)}[Ln](e,t){return this[bn][Ln](e,t)}[Nn](e=!1){let t=super[Nn](e);return t[bn]=this[bn].cloneNode(e),t}},ah=class extends Q{type=`textarea`;[Gt]=``;[Kt]=new Wf(this);[v]=null;[ft]=this;[Le]=null;#e=null;#t=null;#n=Up.none;get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[V].set(`oninput`,e)}get onselectionchange(){return Z.getEventListener(this,`onselectionchange`)}set onselectionchange(e){this[V].set(`onselectionchange`,e)}get validationMessage(){return this[Gt]}get validity(){return this[Kt]}get defaultValue(){return this.textContent}set defaultValue(e){this.textContent=e}get minLength(){let e=this.getAttribute(`minlength`);return e===null?-1:parseInt(e)}set minLength(e){this.setAttribute(`minlength`,String(e))}get maxLength(){let e=this.getAttribute(`maxlength`);return e===null?-1:parseInt(e)}set maxLength(e){this.setAttribute(`maxlength`,String(e))}get name(){return this.getAttribute(`name`)||``}set name(e){this.setAttribute(`name`,e)}get placeholder(){return this.getAttribute(`placeholder`)||``}set placeholder(e){this.setAttribute(`placeholder`,e)}get inputMode(){return this.getAttribute(`inputmode`)||``}set inputMode(e){this.setAttribute(`inputmode`,e)}get cols(){return this.getAttribute(`cols`)||``}set cols(e){this.setAttribute(`cols`,e)}get rows(){return this.getAttribute(`rows`)||``}set rows(e){this.setAttribute(`rows`,e)}get autocomplete(){return this.getAttribute(`autocomplete`)||``}set autocomplete(e){this.setAttribute(`autocomplete`,e)}get readOnly(){return this.getAttribute(`readonly`)!==null}set readOnly(e){e?this.setAttribute(`readonly`,``):this.removeAttribute(`readonly`)}get disabled(){return this.getAttribute(`disabled`)!==null}set disabled(e){e?this.setAttribute(`disabled`,``):this.removeAttribute(`disabled`)}get autofocus(){return this.getAttribute(`autofocus`)!==null}set autofocus(e){e?this.setAttribute(`autofocus`,``):this.removeAttribute(`autofocus`)}get required(){return this.getAttribute(`required`)!==null}set required(e){e?this.setAttribute(`required`,``):this.removeAttribute(`required`)}get value(){return this[v]===null?this.textContent:this[v]}set value(e){let t=this[v];this[v]=e,t!==this[v]&&(this.#e=this[v].length,this.#t=this[v].length,this.#n=Up.none)}get selectionStart(){return this.#e===null?this.value.length:this.#e}set selectionStart(e){this.setSelectionRange(e,Math.max(e,this.selectionEnd),this.#n)}get selectionEnd(){return this.#t===null?this.value.length:this.#t}set selectionEnd(e){this.setSelectionRange(this.selectionStart,e,this.#n)}get selectionDirection(){return this.#n}set selectionDirection(e){this.setSelectionRange(this.selectionStart,this.selectionEnd,e)}get form(){if(this[Le])return this[Le];let e=this.getAttribute(`form`);return!e||!this[x]?null:this[g].getElementById(e)}get textLength(){return this.value.length}get labels(){return Gf.getAssociatedLabelElements(this)}get tabIndex(){let e=this.getAttribute(`tabindex`);if(e!==null){let t=Number(e);return isNaN(t)?0:t}return 0}set tabIndex(e){super.tabIndex=e}select(){this.#e=0,this.#t=this.value.length,this.#n=Up.none,this.dispatchEvent(new W(`select`,{bubbles:!0,cancelable:!1}))}setSelectionRange(e,t,n=`none`){this.#t=Math.min(t,this.value.length),this.#e=Math.min(e,this.selectionEnd),this.#n=n===Up.forward||n===Up.backward?n:Up.none,this.dispatchEvent(new W(`select`,{bubbles:!0,cancelable:!1}))}setRangeText(e,t=null,n=null,r=Vp.preserve){if(t===null&&(t=this.#e===null?0:this.#e),n===null&&(n=this.#t===null?this.value.length:this.#t),t>n)throw new this[b].DOMException(`The index is not in the allowed range.`,H.invalidStateError);t=Math.min(t,this.value.length),n=Math.min(n,this.value.length);let i=this.value,a=this.#e===null?0:this.#e,o=this.#t===null?this.value.length:this.#t;this.value=i.slice(0,t)+e+i.slice(n);let s=t+this.value.length;switch(r){case Vp.select:this.setSelectionRange(t,s);break;case Vp.start:this.setSelectionRange(t,t);break;case Vp.end:this.setSelectionRange(s,s);break;default:let r=e.length-(n-t);a>n?a+=r:a>t&&(a=t),o>n?o+=r:o>t&&(o=s),this.setSelectionRange(a,o);break}}setCustomValidity(e){this[Gt]=String(e)}checkValidity(){let e=this.disabled||this.readOnly||this[Kt].valid;return e||this.dispatchEvent(new W(`invalid`,{bubbles:!0,cancelable:!0})),e}reportValidity(){return this.checkValidity()}[Nn](e=!1){let t=super[Nn](e);return t[v]=this[v],t.#e=this.#e,t.#t=this.#t,t.#n=this.#n,t}[rt](){this[v]===null&&(this.#e=null,this.#t=null,this.#n=Up.none)}},oh=class extends Q{get dateTime(){return this.getAttribute(`dateTime`)||``}set dateTime(e){this.setAttribute(`dateTime`,e)}},sh=class extends Q{get text(){let e=``;for(let t of this[j])t[C]===U.textNode&&(e+=t.textContent);return e}set text(e){this.textContent=e}get innerHTML(){return this.getHTML()}set innerHTML(e){this.textContent=e}},ch=class extends Q{get oncuechange(){return Z.getEventListener(this,`oncuechange`)}set oncuechange(e){this[V].set(`oncuechange`,e)}get kind(){let e=this.getAttribute(`kind`);return e===null?If.subtitles:If[e]?e:If.metadata}set kind(e){If[e]||(e=If.metadata),this.setAttribute(`kind`,e)}get src(){if(!this.hasAttribute(`src`))return``;try{return new URL(this.getAttribute(`src`),this[g].location.href).href}catch{return this.getAttribute(`src`)||``}}set src(e){this.setAttribute(`src`,e)}get srclang(){return this.getAttribute(`srclang`)||``}set srclang(e){this.setAttribute(`srclang`,e)}get label(){return this.getAttribute(`label`)||``}set label(e){this.setAttribute(`label`,e)}get default(){return this.hasAttribute(`default`)}set default(e){e?this.setAttribute(`default`,``):this.removeAttribute(`default`)}get readyState(){return 0}get track(){let e=new this[b].TextTrack(N);return e[Pr]=this.kind,e[Fr]=this.label,e[Ir]=this.srclang,e[xn]=this.default?`showing`:`disabled`,e[Lr]=this.id,e}},lh=class extends Q{},uh=class extends Q{},dh=class extends Lf{},fh=class extends yd{[C]=U.processingInstructionNode;[dt]=``;get target(){return this[dt]}},ph=class extends md{[ye]=null;[it]=this;[C]=U.documentFragmentNode;get children(){if(!this[ye]){let e=this[Yn];this[ye]=new Od(N,()=>e)}return this[ye]}get childElementCount(){return this[Yn].length}get firstElementChild(){return this[Yn][0]??null}get lastElementChild(){let e=this[Yn];return e[e.length-1]??null}get textContent(){let e=``;for(let t of this[j])(t[C]===U.elementNode||t[C]===U.textNode)&&(e+=t.textContent);return e}set textContent(e){let t=this[j];for(;t.length;)this.removeChild(t[0]);e&&this.appendChild(this[g].createTextNode(e))}append(...e){kd.append(this,...e)}prepend(...e){kd.prepend(this,...e)}replaceChildren(...e){kd.replaceChildren(this,...e)}querySelectorAll(e){return J.querySelectorAll(this,e)}querySelector(e){return J.querySelector(this,e)}getElementById(e){return kd.getElementById(this,e)}},mh=class extends ph{[Bt]=[];[xn]=`open`;[Sn]=null;[gr]=!1;[_r]=!1;[vr]=!1;[yr]=`named`;[V]=new Map;get onslotchange(){return this[V].get(`onslotchange`)??null}set onslotchange(e){this[V].set(`onslotchange`,e)}get mode(){return this[xn]}get host(){return this[Sn]}get clonable(){return this[gr]}get delegatesFocus(){return this[_r]}get serializable(){return this[vr]}get slotAssignment(){return this[yr]}get fullscreenElement(){return null}get pictureInPictureElement(){return null}get pointerLockElement(){return null}get innerHTML(){let e=new pf,t=``;for(let n of this[j])t+=e.serializeToString(n);return t}set innerHTML(e){let t=this[j];for(;t.length;)this.removeChild(t[0]);new Sf(this[b]).parse(e,this)}get adoptedStyleSheets(){return this[Bt]}set adoptedStyleSheets(e){this[Bt]=e}get activeElement(){let e=this[g][de],t=e?.getRootNode();if(!t||t===this[g])return null;if(t===this)return e;for(;t&&t!==this;)e=t.host,t=e.getRootNode();return e}getAnimations(){return[]}setHTMLUnsafe(e){let t=this[j];for(;t.length;)this.removeChild(t[0]);new Sf(this[b]).parse(e,this)}toString(){return this.innerHTML}[Nn](e=!1){let t=super[Nn](e);return t[xn]=this[xn],t[gr]=this[gr],t[_r]=this[_r],t[vr]=this[vr],t[yr]=this[yr],t}},hh=class extends Tf{[ut]=null;#e=null;get onabort(){return Z.getEventListener(this,`onabort`)}set onabort(e){this[V].set(`onabort`,e)}get onanimationend(){return Z.getEventListener(this,`onanimationend`)}set onanimationend(e){this[V].set(`onanimationend`,e)}get onanimationiteration(){return Z.getEventListener(this,`onanimationiteration`)}set onanimationiteration(e){this[V].set(`onanimationiteration`,e)}get onanimationstart(){return Z.getEventListener(this,`onanimationstart`)}set onanimationstart(e){this[V].set(`onanimationstart`,e)}get onauxclick(){return Z.getEventListener(this,`onauxclick`)}set onauxclick(e){this[V].set(`onauxclick`,e)}get onblur(){return Z.getEventListener(this,`onblur`)}set onblur(e){this[V].set(`onblur`,e)}get oncancel(){return Z.getEventListener(this,`oncancel`)}set oncancel(e){this[V].set(`oncancel`,e)}get oncanplay(){return Z.getEventListener(this,`oncanplay`)}set oncanplay(e){this[V].set(`oncanplay`,e)}get oncanplaythrough(){return Z.getEventListener(this,`oncanplaythrough`)}set oncanplaythrough(e){this[V].set(`oncanplaythrough`,e)}get onchange(){return Z.getEventListener(this,`onchange`)}set onchange(e){this[V].set(`onchange`,e)}get onclick(){return Z.getEventListener(this,`onclick`)}set onclick(e){this[V].set(`onclick`,e)}get onclose(){return Z.getEventListener(this,`onclose`)}set onclose(e){this[V].set(`onclose`,e)}get oncontextmenu(){return Z.getEventListener(this,`oncontextmenu`)}set oncontextmenu(e){this[V].set(`oncontextmenu`,e)}get oncopy(){return Z.getEventListener(this,`oncopy`)}set oncopy(e){this[V].set(`oncopy`,e)}get oncuechange(){return Z.getEventListener(this,`oncuechange`)}set oncuechange(e){this[V].set(`oncuechange`,e)}get oncut(){return Z.getEventListener(this,`oncut`)}set oncut(e){this[V].set(`oncut`,e)}get ondblclick(){return Z.getEventListener(this,`ondblclick`)}set ondblclick(e){this[V].set(`ondblclick`,e)}get ondrag(){return Z.getEventListener(this,`ondrag`)}set ondrag(e){this[V].set(`ondrag`,e)}get ondragend(){return Z.getEventListener(this,`ondragend`)}set ondragend(e){this[V].set(`ondragend`,e)}get ondragenter(){return Z.getEventListener(this,`ondragenter`)}set ondragenter(e){this[V].set(`ondragenter`,e)}get ondragleave(){return Z.getEventListener(this,`ondragleave`)}set ondragleave(e){this[V].set(`ondragleave`,e)}get ondragover(){return Z.getEventListener(this,`ondragover`)}set ondragover(e){this[V].set(`ondragover`,e)}get ondragstart(){return Z.getEventListener(this,`ondragstart`)}set ondragstart(e){this[V].set(`ondragstart`,e)}get ondrop(){return Z.getEventListener(this,`ondrop`)}set ondrop(e){this[V].set(`ondrop`,e)}get ondurationchange(){return Z.getEventListener(this,`ondurationchange`)}set ondurationchange(e){this[V].set(`ondurationchange`,e)}get onemptied(){return Z.getEventListener(this,`onemptied`)}set onemptied(e){this[V].set(`onemptied`,e)}get onended(){return Z.getEventListener(this,`onended`)}set onended(e){this[V].set(`onended`,e)}get onerror(){return Z.getEventListener(this,`onerror`)}set onerror(e){this[V].set(`onerror`,e)}get onfocus(){return Z.getEventListener(this,`onfocus`)}set onfocus(e){this[V].set(`onfocus`,e)}get onformdata(){return Z.getEventListener(this,`onformdata`)}set onformdata(e){this[V].set(`onformdata`,e)}get ongotpointercapture(){return Z.getEventListener(this,`ongotpointercapture`)}set ongotpointercapture(e){this[V].set(`ongotpointercapture`,e)}get oninput(){return Z.getEventListener(this,`oninput`)}set oninput(e){this[V].set(`oninput`,e)}get oninvalid(){return Z.getEventListener(this,`oninvalid`)}set oninvalid(e){this[V].set(`oninvalid`,e)}get onkeydown(){return Z.getEventListener(this,`onkeydown`)}set onkeydown(e){this[V].set(`onkeydown`,e)}get onkeypress(){return Z.getEventListener(this,`onkeypress`)}set onkeypress(e){this[V].set(`onkeypress`,e)}get onkeyup(){return Z.getEventListener(this,`onkeyup`)}set onkeyup(e){this[V].set(`onkeyup`,e)}get onload(){return Z.getEventListener(this,`onload`)}set onload(e){this[V].set(`onload`,e)}get onloadeddata(){return Z.getEventListener(this,`onloadeddata`)}set onloadeddata(e){this[V].set(`onloadeddata`,e)}get onloadedmetadata(){return Z.getEventListener(this,`onloadedmetadata`)}set onloadedmetadata(e){this[V].set(`onloadedmetadata`,e)}get onloadstart(){return Z.getEventListener(this,`onloadstart`)}set onloadstart(e){this[V].set(`onloadstart`,e)}get onlostpointercapture(){return Z.getEventListener(this,`onlostpointercapture`)}set onlostpointercapture(e){this[V].set(`onlostpointercapture`,e)}get onmousedown(){return Z.getEventListener(this,`onmousedown`)}set onmousedown(e){this[V].set(`onmousedown`,e)}get onmouseenter(){return Z.getEventListener(this,`onmouseenter`)}set onmouseenter(e){this[V].set(`onmouseenter`,e)}get onmouseleave(){return Z.getEventListener(this,`onmouseleave`)}set onmouseleave(e){this[V].set(`onmouseleave`,e)}get onmousemove(){return Z.getEventListener(this,`onmousemove`)}set onmousemove(e){this[V].set(`onmousemove`,e)}get onmouseout(){return Z.getEventListener(this,`onmouseout`)}set onmouseout(e){this[V].set(`onmouseout`,e)}get onmouseover(){return Z.getEventListener(this,`onmouseover`)}set onmouseover(e){this[V].set(`onmouseover`,e)}get onmouseup(){return Z.getEventListener(this,`onmouseup`)}set onmouseup(e){this[V].set(`onmouseup`,e)}get onmousewheel(){return Z.getEventListener(this,`onmousewheel`)}set onmousewheel(e){this[V].set(`onmousewheel`,e)}get onpaste(){return Z.getEventListener(this,`onpaste`)}set onpaste(e){this[V].set(`onpaste`,e)}get onpause(){return Z.getEventListener(this,`onpause`)}set onpause(e){this[V].set(`onpause`,e)}get onplay(){return Z.getEventListener(this,`onplay`)}set onplay(e){this[V].set(`onplay`,e)}get onplaying(){return Z.getEventListener(this,`onplaying`)}set onplaying(e){this[V].set(`onplaying`,e)}get onpointercancel(){return Z.getEventListener(this,`onpointercancel`)}set onpointercancel(e){this[V].set(`onpointercancel`,e)}get onpointerdown(){return Z.getEventListener(this,`onpointerdown`)}set onpointerdown(e){this[V].set(`onpointerdown`,e)}get onpointerenter(){return Z.getEventListener(this,`onpointerenter`)}set onpointerenter(e){this[V].set(`onpointerenter`,e)}get onpointerleave(){return Z.getEventListener(this,`onpointerleave`)}set onpointerleave(e){this[V].set(`onpointerleave`,e)}get onpointermove(){return Z.getEventListener(this,`onpointermove`)}set onpointermove(e){this[V].set(`onpointermove`,e)}get onpointerout(){return Z.getEventListener(this,`onpointerout`)}set onpointerout(e){this[V].set(`onpointerout`,e)}get onpointerover(){return Z.getEventListener(this,`onpointerover`)}set onpointerover(e){this[V].set(`onpointerover`,e)}get onpointerrawupdate(){return Z.getEventListener(this,`onpointerrawupdate`)}set onpointerrawupdate(e){this[V].set(`onpointerrawupdate`,e)}get onpointerup(){return Z.getEventListener(this,`onpointerup`)}set onpointerup(e){this[V].set(`onpointerup`,e)}get onprogress(){return Z.getEventListener(this,`onprogress`)}set onprogress(e){this[V].set(`onprogress`,e)}get onratechange(){return Z.getEventListener(this,`onratechange`)}set onratechange(e){this[V].set(`onratechange`,e)}get onreset(){return Z.getEventListener(this,`onreset`)}set onreset(e){this[V].set(`onreset`,e)}get onresize(){return Z.getEventListener(this,`onresize`)}set onresize(e){this[V].set(`onresize`,e)}get onscroll(){return Z.getEventListener(this,`onscroll`)}set onscroll(e){this[V].set(`onscroll`,e)}get onscrollend(){return Z.getEventListener(this,`onscrollend`)}set onscrollend(e){this[V].set(`onscrollend`,e)}get onscrollsnapchange(){return Z.getEventListener(this,`onscrollsnapchange`)}set onscrollsnapchange(e){this[V].set(`onscrollsnapchange`,e)}get onscrollsnapchanging(){return Z.getEventListener(this,`onscrollsnapchanging`)}set onscrollsnapchanging(e){this[V].set(`onscrollsnapchanging`,e)}get onsecuritypolicyviolation(){return Z.getEventListener(this,`onsecuritypolicyviolation`)}set onsecuritypolicyviolation(e){this[V].set(`onsecuritypolicyviolation`,e)}get onseeked(){return Z.getEventListener(this,`onseeked`)}set onseeked(e){this[V].set(`onseeked`,e)}get onseeking(){return Z.getEventListener(this,`onseeking`)}set onseeking(e){this[V].set(`onseeking`,e)}get onselect(){return Z.getEventListener(this,`onselect`)}set onselect(e){this[V].set(`onselect`,e)}get onselectionchange(){return Z.getEventListener(this,`onselectionchange`)}set onselectionchange(e){this[V].set(`onselectionchange`,e)}get onselectstart(){return Z.getEventListener(this,`onselectstart`)}set onselectstart(e){this[V].set(`onselectstart`,e)}get onslotchange(){return Z.getEventListener(this,`onslotchange`)}set onslotchange(e){this[V].set(`onslotchange`,e)}get onstalled(){return Z.getEventListener(this,`onstalled`)}set onstalled(e){this[V].set(`onstalled`,e)}get onsubmit(){return Z.getEventListener(this,`onsubmit`)}set onsubmit(e){this[V].set(`onsubmit`,e)}get onsuspend(){return Z.getEventListener(this,`onsuspend`)}set onsuspend(e){this[V].set(`onsuspend`,e)}get ontimeupdate(){return Z.getEventListener(this,`ontimeupdate`)}set ontimeupdate(e){this[V].set(`ontimeupdate`,e)}get ontoggle(){return Z.getEventListener(this,`ontoggle`)}set ontoggle(e){this[V].set(`ontoggle`,e)}get ontransitioncancel(){return Z.getEventListener(this,`ontransitioncancel`)}set ontransitioncancel(e){this[V].set(`ontransitioncancel`,e)}get ontransitionend(){return Z.getEventListener(this,`ontransitionend`)}set ontransitionend(e){this[V].set(`ontransitionend`,e)}get ontransitionrun(){return Z.getEventListener(this,`ontransitionrun`)}set ontransitionrun(e){this[V].set(`ontransitionrun`,e)}get ontransitionstart(){return Z.getEventListener(this,`ontransitionstart`)}set ontransitionstart(e){this[V].set(`ontransitionstart`,e)}get onvolumechange(){return Z.getEventListener(this,`onvolumechange`)}set onvolumechange(e){this[V].set(`onvolumechange`,e)}get onwaiting(){return Z.getEventListener(this,`onwaiting`)}set onwaiting(e){this[V].set(`onwaiting`,e)}get onwheel(){return Z.getEventListener(this,`onwheel`)}set onwheel(e){this[V].set(`onwheel`,e)}get ownerSVGElement(){let e=this[S];for(;e;){if(e[k]===`svg`)return e;e=e[S]}return null}get viewportElement(){return this.ownerSVGElement}get dataset(){return this.#e??=new Of(N,this)}get style(){return this[ut]||(this[ut]=new vl(N,this[b],{element:this})),this[ut]}get tabIndex(){let e=this.getAttribute(`tabindex`);return e===null?-1:Number(e)}set tabIndex(e){e===-1?this.removeAttribute(`tabindex`):this.setAttribute(`tabindex`,String(e))}blur(){Ef.blur(this)}focus(){Ef.focus(this)}},gh=class{observe(){}unobserve(){}disconnect(){}},_h=class extends tl{width=1024;height=768;availWidth=1024;availHeight=768;colorDepth=24;pixelDepth=24;onchange=null},vh=class extends _h{availLeft=0;availTop=0;left=0;top=0;isPrimary=!0;isInternal=!0;devicePixelRatio=1;label=``},yh=class extends tl{currentScreen;screens;oncurrentscreenchange=null;onscreenschange=null;constructor(){super();let e=new vh;this.currentScreen=e,this.screens=[e]}},bh=class{static compareBoundaryPointsPosition(e,t){if(e.node===t.node)return e.offset===t.offset?0:e.offset<t.offset?-1:1;if(ud.isFollowing(e.node,t.node))return this.compareBoundaryPointsPosition(t,e)===-1?1:-1;if(ud.isInclusiveAncestor(e.node,t.node)){let n=t.node;for(;n[S]!==e.node;)n=n[S];if(n[S][j].indexOf(n)<e.offset)return 1}return-1}static validateBoundaryPoint(e){if(e.node[C]===U.documentTypeNode)throw new gs(`DocumentType Node can't be used as boundary point.`,H.invalidNodeTypeError);if(e.offset>ud.getNodeLength(e.node))throw new gs(`Offset out of bound.`,H.indexSizeError)}static isContained(e,t){return this.compareBoundaryPointsPosition({node:e,offset:0},{node:t.startContainer,offset:t.startOffset})===1&&this.compareBoundaryPointsPosition({node:e,offset:ud.getNodeLength(e)},{node:t.endContainer,offset:t.endOffset})===-1}static isPartiallyContained(e,t){return ud.isInclusiveAncestor(e,t.startContainer)&&!ud.isInclusiveAncestor(e,t.endContainer)||!ud.isInclusiveAncestor(e,t.startContainer)&&ud.isInclusiveAncestor(e,t.endContainer)}},xh;(function(e){e[e.forwards=1]=`forwards`,e[e.backwards=-1]=`backwards`,e[e.directionless=0]=`directionless`})(xh||={});var Sh=xh,Ch=class{#e;#t=null;#n=Sh.directionless;constructor(e){this.#e=e}get rangeCount(){return this.#t?1:0}get isCollapsed(){return this.#t===null||this.#t.collapsed}get type(){return this.#t?this.#t.collapsed?`Caret`:`Range`:`None`}get anchorNode(){return this.#t?this.#n===Sh.forwards?this.#t.startContainer:this.#t.endContainer:null}get anchorOffset(){return this.#t?this.#n===Sh.forwards?this.#t.startOffset:this.#t.endOffset:0}get baseNode(){return this.anchorNode}get baseOffset(){return this.anchorOffset}get focusNode(){return this.#t?this.#n===Sh.forwards?this.#t.endContainer:this.#t.startContainer:null}get focusOffset(){return this.#t?this.#n===Sh.forwards?this.#t.endOffset:this.#t.startOffset:0}get extentNode(){return this.focusNode}get extentOffset(){return this.focusOffset}addRange(e){if(!e)throw new this.#e[b].TypeError(`Failed to execute addRange on Selection. Parameter 1 is not of type Range.`);!this.#t&&e[g]===this.#e&&this.#r(e)}getRangeAt(e){if(!this.#t||e!==0)throw new this.#e[b].DOMException(`Invalid range index.`,H.indexSizeError);return this.#t}removeRange(e){if(this.#t!==e)throw new this.#e[b].DOMException(`Invalid range.`,H.notFoundError);this.#r(null)}removeAllRanges(){this.#r(null)}empty(){this.removeAllRanges()}collapse(e,t){if(e===null){this.removeAllRanges();return}if(e[C]===U.documentTypeNode)throw new this.#e[b].DOMException(`DocumentType Node can't be used as boundary point.`,H.invalidNodeTypeError);if(t>ud.getNodeLength(e))throw new this.#e[b].DOMException(`Invalid range index.`,H.indexSizeError);if(e!==this.#e&&e[g]!==this.#e)return;let n=new this.#e[b].Range;n[_].node=e,n[_].offset=t,n[m].node=e,n[m].offset=t,this.#r(n)}setPosition(e,t){this.collapse(e,t)}collapseToEnd(){if(this.#t===null)throw new this.#e[b].DOMException(`There is no selection to collapse.`,H.invalidStateError);let{node:e,offset:t}=this.#t[m],n=new this.#e[b].Range;n[_].node=e,n[_].offset=t,n[m].node=e,n[m].offset=t,this.#r(n)}collapseToStart(){if(!this.#t)throw new this.#e[b].DOMException(`There is no selection to collapse.`,H.invalidStateError);let{node:e,offset:t}=this.#t[_],n=new this.#e[b].Range;n[_].node=e,n[_].offset=t,n[m].node=e,n[m].offset=t,this.#r(n)}containsNode(e,t=!1){if(!this.#t||e[g]!==this.#e)return!1;let n=bh.compareBoundaryPointsPosition(this.#t[_],{node:e,offset:0})===-1,r=bh.compareBoundaryPointsPosition(this.#t[m],{node:e,offset:ud.getNodeLength(e)})===1;return t?n||r:n&&r}deleteFromDocument(){this.#t&&this.#t.deleteContents()}extend(e,t){if(e!==this.#e&&e[g]!==this.#e)return;if(!this.#t)throw new this.#e[b].DOMException(`There is no selection to extend.`,H.invalidStateError);let n=this.anchorNode,r=this.anchorOffset,i=new this.#e[b].Range;i[_].node=e,i[_].offset=0,i[m].node=e,i[m].offset=0,e[g]===this.#t[g]?bh.compareBoundaryPointsPosition({node:n,offset:r},{node:e,offset:t})<=0?(i[_].node=n,i[_].offset=r,i[m].node=e,i[m].offset=t):(i[_].node=e,i[_].offset=t,i[m].node=n,i[m].offset=r):(i[_].offset=t,i[m].offset=t),this.#r(i),this.#n=bh.compareBoundaryPointsPosition({node:e,offset:t},{node:n,offset:r})===-1?Sh.backwards:Sh.forwards}selectAllChildren(e){if(e[C]===U.documentTypeNode)throw new this.#e[b].DOMException(`DocumentType Node can't be used as boundary point.`,H.invalidNodeTypeError);if(e!==this.#e&&e[g]!==this.#e)return;let t=e[j].length,n=new this.#e[b].Range;n[_].node=e,n[_].offset=0,n[m].node=e,n[m].offset=t,this.#r(n)}setBaseAndExtent(e,t,n,r){if(t>ud.getNodeLength(e)||r>ud.getNodeLength(n))throw new this.#e[b].DOMException(`Invalid anchor or focus offset.`,H.indexSizeError);if(e!==this.#e&&e[g]!==this.#e||n!==this.#e&&n[g]!==this.#e)return;let i={node:e,offset:t},a={node:n,offset:r},o=new this.#e[b].Range;bh.compareBoundaryPointsPosition(i,a)===-1?(o[_]=i,o[m]=a):(o[_]=a,o[m]=i),this.#r(o),this.#n=bh.compareBoundaryPointsPosition(a,i)===-1?Sh.backwards:Sh.forwards}toString(){return this.#t?this.#t.toString():``}#r(e){let t=this.#t;this.#t=e,this.#n=e===null?Sh.directionless:Sh.forwards,t!==this.#t&&this.#e.dispatchEvent(new W(`selectionchange`))}},wh=class e{[Ae]={};constructor(){let t=this[Ae],n=new zc(this,[e]);return new Proxy(this,{get:(e,r)=>{if(r in e||typeof r==`symbol`)return n.bind(r),e[r];if(r in t)return t[r]},set(e,r,i){return n.bind(r),r in e||typeof r==`symbol`||(t[String(r)]=String(i)),!0},deleteProperty(e,n){return n in t?(delete t[String(n)],!0):!1},ownKeys(){return Object.keys(t)},has(e,n){return n in e||n in t},defineProperty(e,r,i){return n.preventBinding(r),r in e?(Object.defineProperty(e,r,i),!0):i.value===void 0?!1:(t[String(r)]=String(i.value),!0)},getOwnPropertyDescriptor(e,n){if(n in e)return;let r=t[String(n)];if(r!==void 0)return{value:r,writable:!0,enumerable:!0,configurable:!0}}})}get length(){return Object.keys(this[Ae]).length}key(e){let t=Object.keys(this[Ae])[e];return t===void 0?null:t}setItem(e,t){this[Ae][e]=String(t)}getItem(e){return this[Ae][e]===void 0?null:this[Ae][e]}removeItem(e){delete this[Ae][e]}clear(){let e=this[Ae];for(let t of Object.keys(e))delete e[t]}},Th={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:-1,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048},Eh={1:Th.SHOW_ELEMENT,2:Th.SHOW_ATTRIBUTE,3:Th.SHOW_TEXT,4:Th.SHOW_CDATA_SECTION,5:Th.SHOW_ENTITY_REFERENCE,6:Th.SHOW_PROCESSING_INSTRUCTION,7:Th.SHOW_PROCESSING_INSTRUCTION,8:Th.SHOW_COMMENT,9:Th.SHOW_DOCUMENT,10:Th.SHOW_DOCUMENT_TYPE,11:Th.SHOW_DOCUMENT_FRAGMENT,12:Th.SHOW_NOTATION},Dh;(function(e){e.first=`first`,e.last=`last`})(Dh||={});var Oh;(function(e){e.next=`next`,e.previous=`previous`})(Oh||={});var kh=class{root;whatToShow=-1;filter=null;#e=null;constructor(e,t=-1,n=null){if(!(e instanceof md))throw new gs(`Parameter 1 was not of type Node.`);this.root=e,this.whatToShow=t,this.filter=n,this.#e=e}get currentNode(){return this.#e}set currentNode(e){if(!(e instanceof md))throw new this.root[b].TypeError(`Failed to set the 'currentNode' property on 'TreeWalker': Failed to convert value to 'Node'.`);this.#e=e}parentNode(){let e=this.#e;for(;e!==null&&e!==this.root;)if(e=e.parentNode,e!==null&&this[Eo](e)===Th.FILTER_ACCEPT)return this.#e=e,this.#e;return null}firstChild(){return this.#t(Dh.first)}lastChild(){return this.#t(Dh.last)}nextSibling(){return this.#n(Oh.next)}previousSibling(){return this.#n(Oh.previous)}previousNode(){let e=this.#e;for(;e!==this.root;){let t=e?.previousSibling||null;for(;t!==null;){let e=t,n=this[Eo](e);for(;n!==Th.FILTER_REJECT&&e[j].length;)e=e.lastChild,n=this[Eo](e);if(n===Th.FILTER_ACCEPT)return this.#e=e,e;t=e.previousSibling}if(e===this.root||e.parentNode===null)return null;if(e=e.parentNode,this[Eo](e)===Th.FILTER_ACCEPT)return this.#e=e,e}return null}nextNode(){let e=this.#e,t=Th.FILTER_ACCEPT;if(e===null)return null;for(;;){for(;t!==Th.FILTER_REJECT&&e[j].length;)if(e=e.firstChild,t=this[Eo](e),t===Th.FILTER_ACCEPT)return this.#e=e,e;for(;e!==null;){if(e===this.root)return null;let t=e.nextSibling;if(t!==null){e=t;break}e=e.parentNode}if(e===null)return null;if(t=this[Eo](e),t===Th.FILTER_ACCEPT)return this.#e=e,e}}[Eo](e){let t=Eh[e.nodeType];return t&&(this.whatToShow&t)==0?Th.FILTER_SKIP:typeof this.filter==`function`?this.filter(e):this.filter?this.filter.acceptNode(e):Th.FILTER_ACCEPT}#t(e){let t=this.#e;if(!t)return null;for(t=e===Dh.first?t.firstChild:t.lastChild;t!==null;){let n=this[Eo](t);if(n===Th.FILTER_ACCEPT)return this.#e=t,t;if(n===Th.FILTER_SKIP){let n=e===Dh.first?t.firstChild:t.lastChild;if(n!==null){t=n;continue}}for(;t!==null;){let n=e===Dh.first?t.nextSibling:t.previousSibling;if(n!==null){t=n;break}let r=t.parentNode;if(r===null||r===this.root||r===this.#e)return null;t=r}}return null}#n(e){let t=this.#e;if(!t||t===this.root)return null;for(;;){let n=e===Oh.next?t.nextSibling:t.previousSibling;for(;n!==null;){let t=n,r=this[Eo](t);if(r===Th.FILTER_ACCEPT)return this.#e=t,t;n=e===Oh.next?t.firstChild:t.lastChild,(r===Th.FILTER_REJECT||n===null)&&(n=e===Oh.next?t.nextSibling:t.previousSibling)}if(t=t.parentNode,t===null||t===this.root||this[Eo](t)===Th.FILTER_ACCEPT)return null}}},Ah=class{#e;#t=-1;#n=null;#r;#i=!0;constructor(e,t=-1,n=null){this.#e=e,this.#t=t,this.#n=n,this.#r=new kh(e,t,n)}get root(){return this.#e}get whatToShow(){return this.#t}get filter(){return this.#n}nextNode(){return this.#i?(this.#i=!1,this.#r[Eo](this.#e)===Th.FILTER_ACCEPT?this.#e:this.#r.nextNode()):this.#r.nextNode()}previousNode(){return this.#r.previousNode()}},jh=class{serializeToString(e){return this.#e(e)}#e(e,t=null,n=null){switch(e[C]){case U.elementNode:let r=e,i=r[k],a=``,o=this.#t(r,n),s=r[T]===Pl.html?r[Ct]:this.#n(r,o),c=`${s?s+`:`:``}${i}`,l=s?t:r[T]||t,u=this.#r(r,s,t,n),d=l===Pl.html&&i===`template`?e.content[j]:e[j];for(let e of d)a+=this.#e(e,l,o);return!a&&l===Pl.html&&Pd[i.toLowerCase()]?.contentModel===X.noDescendants?`<${c}${u} />`:!a&&l!==Pl.html?`<${c}${u}/>`:`<${c}${u}>${a}</${c}>`;case md.DOCUMENT_FRAGMENT_NODE:case md.DOCUMENT_NODE:let f=``;e[To]&&(f+=this.#e(e[To],t,new Map(n)));for(let r of e[j])f+=this.#e(r,t,new Map(n));return f;case U.commentNode:return`<!--${e.textContent}-->`;case U.processingInstructionNode:return`<?${e.target} ${e.textContent}?>`;case U.textNode:let p=e.parentElement;return p&&Pd[p[k]]?.contentModel===X.rawText?e.textContent:ff.encodeTextContent(e.textContent);case U.documentTypeNode:let ee=e,te=ee.publicId?` PUBLIC`:ee.systemId?` SYSTEM`:``,ne=ee.publicId?` "${ee.publicId}"`:``,re=ee.systemId?` "${ee.systemId}"`:``;return`<!DOCTYPE ${ee.name}${te}${ne}${re}>`}return``}#t(e,t){let n=new Map(t);for(let t of e[Ot][A].values())t[T]===Pl.xmlns&&t[Ct]&&n.set(t[v],t[k]);return n}#n(e,t){if(e[Ct]&&!e[T])throw Error(`Element has a prefix but no namespace.`);if(!e[Ct]||!t)return null;let n=t.get(e[T]);if(n)return n;let r=new Set(t.values());if(r.has(e[Ct])){let n=1;for(;r.has(`n`+n);)n++;return t.set(e[T],`n`+n),`n`+n}return t.set(e[T],e[Ct]),e[Ct]}#r(e,t,n,r){let i=``,a=``,o=new Set;for(let n of e[Ot][A].values())n[T]===Pl.xmlns?t&&n[k]===t&&e[T]?(a+=` xmlns:${t}="${ff.encodeXMLAttributeValue(e[T])}"`,o.add(e[T])):!t&&n[E]===`xmlns`&&e[T]?(a+=` xmlns="${ff.encodeXMLAttributeValue(e[T])}"`,o.add(e[T])):(a+=` ${n[E]}="${ff.encodeXMLAttributeValue(n[v])}"`,o.add(n[v])):i+=` ${n[E]}="${ff.encodeXMLAttributeValue(n[v])}"`;return e[T]&&n!==e[T]&&!o.has(e[T])&&(t&&!r?.has(e[T])?a+=` xmlns:${t}="${ff.encodeXMLAttributeValue(e[T])}"`:!t&&n!==e[T]&&(a+=` xmlns="${ff.encodeXMLAttributeValue(e[T])}"`)),a+i}},Mh=new se(`
|
|
107
|
+
this.ArrayBuffer = globalThis.ArrayBuffer;
|
|
108
|
+
this.Boolean = globalThis.Boolean;
|
|
109
|
+
this.DataView = globalThis.DataView;
|
|
110
|
+
this.Date = globalThis.Date;
|
|
111
|
+
this.Error = globalThis.Error;
|
|
112
|
+
this.EvalError = globalThis.EvalError;
|
|
113
|
+
this.Float32Array = globalThis.Float32Array;
|
|
114
|
+
this.Float64Array = globalThis.Float64Array;
|
|
115
|
+
this.GLOBAL = globalThis.GLOBAL;
|
|
116
|
+
this.Infinity = globalThis.Infinity;
|
|
117
|
+
this.Int16Array = globalThis.Int16Array;
|
|
118
|
+
this.Int32Array = globalThis.Int32Array;
|
|
119
|
+
this.Int8Array = globalThis.Int8Array;
|
|
120
|
+
this.Intl = globalThis.Intl;
|
|
121
|
+
this.JSON = globalThis.JSON;
|
|
122
|
+
this.Map = globalThis.Map;
|
|
123
|
+
this.Math = globalThis.Math;
|
|
124
|
+
this.NaN = globalThis.NaN;
|
|
125
|
+
this.Number = globalThis.Number;
|
|
126
|
+
this.Promise = globalThis.Promise;
|
|
127
|
+
this.RangeError = globalThis.RangeError;
|
|
128
|
+
this.ReferenceError = globalThis.ReferenceError;
|
|
129
|
+
this.RegExp = globalThis.RegExp;
|
|
130
|
+
this.Reflect = globalThis.Reflect;
|
|
131
|
+
this.Set = globalThis.Set;
|
|
132
|
+
this.Symbol = globalThis.Symbol;
|
|
133
|
+
this.SyntaxError = globalThis.SyntaxError;
|
|
134
|
+
this.String = globalThis.String;
|
|
135
|
+
this.TypeError = globalThis.TypeError;
|
|
136
|
+
this.URIError = globalThis.URIError;
|
|
137
|
+
this.Uint16Array = globalThis.Uint16Array;
|
|
138
|
+
this.Uint32Array = globalThis.Uint32Array;
|
|
139
|
+
this.Uint8Array = globalThis.Uint8Array;
|
|
140
|
+
this.Uint8ClampedArray = globalThis.Uint8ClampedArray;
|
|
141
|
+
this.WeakMap = globalThis.WeakMap;
|
|
142
|
+
this.WeakSet = globalThis.WeakSet;
|
|
143
|
+
this.decodeURI = globalThis.decodeURI;
|
|
144
|
+
this.decodeURIComponent = globalThis.decodeURIComponent;
|
|
145
|
+
this.encodeURI = globalThis.encodeURI;
|
|
146
|
+
this.encodeURIComponent = globalThis.encodeURIComponent;
|
|
147
|
+
this.eval = globalThis.eval;
|
|
148
|
+
this.escape = globalThis.escape;
|
|
149
|
+
this.global = globalThis.global;
|
|
150
|
+
this.isFinite = globalThis.isFinite;
|
|
151
|
+
this.isNaN = globalThis.isNaN;
|
|
152
|
+
this.parseFloat = globalThis.parseFloat;
|
|
153
|
+
this.parseInt = globalThis.parseInt;
|
|
154
|
+
this.root = globalThis.root;
|
|
155
|
+
this.undefined = globalThis.undefined;
|
|
156
|
+
this.unescape = globalThis.unescape;
|
|
157
|
+
this.AbortController = globalThis.AbortController;
|
|
158
|
+
this.AbortSignal = globalThis.AbortSignal;
|
|
159
|
+
this.Array = globalThis.Array;
|
|
160
|
+
this.Object = globalThis.Object;
|
|
161
|
+
this.Function = globalThis.Function;
|
|
162
|
+
`),Nh=class{static openPage(e,t){let n=this.getWindowFeatures(t?.features||``),r=t?.target===void 0?null:String(t.target),i=new re(e.window.location.href),a=Ju.getRelativeURL(e,t?.url),o=e.window,s;if(e.window!==o)return null;switch(r){case`_self`:s=e;break;case`_top`:s=e.page.mainFrame;break;case`_parent`:s=e.parentFrame??e;break;default:s=e.page.context.newPage().mainFrame,s[yt]=e;break}if(s.goto(a.href,{referrer:n.noreferrer?void 0:e.window.location.origin,referrerPolicy:n.noreferrer?`no-referrer`:void 0}).catch(e=>{s.page.console.error(e)}),a.protocol===`javascript:`)return s.window;if(s===e&&e.window===o)return null;n.popup&&r!==`_self`&&r!==`_top`&&r!==`_parent`&&(s[St]=!0,(n?.width||n?.height)&&s.page.setViewport({width:n?.width,height:n?.height}),n?.left&&(s.window.screenLeft=n.left,s.window.screenX=n.left),n?.top&&(s.window.screenTop=n.top,s.window.screenY=n.top)),r&&r!==`_self`&&r!==`_top`&&r!==`_parent`&&r!==`_blank`&&(s.window.name=r);let c=vu.isCORS(i,s.url);return!n.noopener&&!n.noreferrer&&e.window&&s[yt]&&s.window!==e.window&&(s[bt]=c?new vp(e.window):e.window),n.noopener||n.noreferrer?null:c?new vp(s.window,e.window):s.window}static getWindowFeatures(e){let t=e.split(`,`),n={popup:!1,width:0,height:0,left:0,top:0,noopener:!1,noreferrer:!1};for(let e of t){let[t,r]=e.split(`=`);switch(t){case`popup`:n.popup=!r||r===`yes`||r===`1`||r===`true`;break;case`width`:case`innerWidth`:n.width=parseInt(r,10);break;case`height`:case`innerHeight`:n.height=parseInt(r,10);break;case`left`:case`screenX`:n.left=parseInt(r,10);break;case`top`:case`screenY`:n.top=parseInt(r,10);break;case`noopener`:n.noopener=!0;break;case`noreferrer`:n.noreferrer=!0;break}}return n}},Ph=class{#e;constructor(e){this.#e=e}createDocument(e,t,n){if(arguments.length<2)throw new this.#e[b].TypeError(`Failed to execute 'createDocument' on 'DOMImplementation': 2 arguments required, but only ${arguments.length} present.`);switch(t.split(`:`).pop()){case`svg`:case`xml`:return new this.#e[b].XMLDocument;default:return new this.#e[b].HTMLDocument}}createHTMLDocument(){return new this.#e[b].HTMLDocument}createDocumentType(e,t,n){let r=pd.createNode(this.#e,bd);return r[E]=e,r[Ut]=t,r[Wt]=n,r}},Fh;(function(e){e.hidden=`hidden`,e.visible=`visible`,e.prerender=`prerender`})(Fh||={});var Ih=Fh;const Lh=/^[a-z][a-z0-9-]+$/;var Rh=class extends md{[ye]=null;[de]=null;[Je]=null;[Oe]=null;[it]=this;[Ve]=!0;[He]=!1;[C]=U.documentNode;[x]=!0;[Bt]=[];[Vt]=new Ph(this);[Ht]=Sd.interactive;[et]=``;[je]=null;[Zn]=null;[Qn]=[];[g]=null;[hr]=new Map;[Ee]=`text/html`;[To]=null;[Ao]=new Map;[V]=new Map;[st]=null;get onreadystatechange(){return this[V].get(`onreadystatechange`)??null}set onreadystatechange(e){this[V].set(`onreadystatechange`,e)}get onpointerlockchange(){return this[V].get(`onpointerlockchange`)??null}set onpointerlockchange(e){this[V].set(`onpointerlockchange`,e)}get onpointerlockerror(){return this[V].get(`onpointerlockerror`)??null}set onpointerlockerror(e){this[V].set(`onpointerlockerror`,e)}get onbeforecopy(){return this[V].get(`onbeforecopy`)??null}set onbeforecopy(e){this[V].set(`onbeforecopy`,e)}get onbeforecut(){return this[V].get(`onbeforecut`)??null}set onbeforecut(e){this[V].set(`onbeforecut`,e)}get onbeforepaste(){return this[V].get(`onbeforepaste`)??null}set onbeforepaste(e){this[V].set(`onbeforepaste`,e)}get onfreeze(){return this[V].get(`onfreeze`)??null}set onfreeze(e){this[V].set(`onfreeze`,e)}get onprerenderingchange(){return this[V].get(`onprerenderingchange`)??null}set onprerenderingchange(e){this[V].set(`onprerenderingchange`,e)}get onresume(){return this[V].get(`onresume`)??null}set onresume(e){this[V].set(`onresume`,e)}get onsearch(){return this[V].get(`onsearch`)??null}set onsearch(e){this[V].set(`onsearch`,e)}get onvisibilitychange(){return this[V].get(`onvisibilitychange`)??null}set onvisibilitychange(e){this[V].set(`onvisibilitychange`,e)}get onfullscreenchange(){return this[V].get(`onfullscreenchange`)??null}set onfullscreenchange(e){this[V].set(`onfullscreenchange`,e)}get onfullscreenerror(){return this[V].get(`onfullscreenerror`)??null}set onfullscreenerror(e){this[V].set(`onfullscreenerror`,e)}get onwebkitfullscreenchange(){return this[V].get(`onwebkitfullscreenchange`)??null}set onwebkitfullscreenchange(e){this[V].set(`onwebkitfullscreenchange`,e)}get onwebkitfullscreenerror(){return this[V].get(`onwebkitfullscreenerror`)??null}set onwebkitfullscreenerror(e){this[V].set(`onwebkitfullscreenerror`,e)}get onbeforexrselect(){return this[V].get(`onbeforexrselect`)??null}set onbeforexrselect(e){this[V].set(`onbeforexrselect`,e)}get onabort(){return this[V].get(`onabort`)??null}set onabort(e){this[V].set(`onabort`,e)}get onbeforeinput(){return this[V].get(`onbeforeinput`)??null}set onbeforeinput(e){this[V].set(`onbeforeinput`,e)}get onbeforematch(){return this[V].get(`onbeforematch`)??null}set onbeforematch(e){this[V].set(`onbeforematch`,e)}get onbeforetoggle(){return this[V].get(`onbeforetoggle`)??null}set onbeforetoggle(e){this[V].set(`onbeforetoggle`,e)}get onblur(){return this[V].get(`onblur`)??null}set onblur(e){this[V].set(`onblur`,e)}get oncancel(){return this[V].get(`oncancel`)??null}set oncancel(e){this[V].set(`oncancel`,e)}get oncanplay(){return this[V].get(`oncanplay`)??null}set oncanplay(e){this[V].set(`oncanplay`,e)}get oncanplaythrough(){return this[V].get(`oncanplaythrough`)??null}set oncanplaythrough(e){this[V].set(`oncanplaythrough`,e)}get onchange(){return this[V].get(`onchange`)??null}set onchange(e){this[V].set(`onchange`,e)}get onclick(){return this[V].get(`onclick`)??null}set onclick(e){this[V].set(`onclick`,e)}get onclose(){return this[V].get(`onclose`)??null}set onclose(e){this[V].set(`onclose`,e)}get oncontentvisibilityautostatechange(){return this[V].get(`oncontentvisibilityautostatechange`)??null}set oncontentvisibilityautostatechange(e){this[V].set(`oncontentvisibilityautostatechange`,e)}get oncontextlost(){return this[V].get(`oncontextlost`)??null}set oncontextlost(e){this[V].set(`oncontextlost`,e)}get oncontextmenu(){return this[V].get(`oncontextmenu`)??null}set oncontextmenu(e){this[V].set(`oncontextmenu`,e)}get oncontextrestored(){return this[V].get(`oncontextrestored`)??null}set oncontextrestored(e){this[V].set(`oncontextrestored`,e)}get oncuechange(){return this[V].get(`oncuechange`)??null}set oncuechange(e){this[V].set(`oncuechange`,e)}get ondblclick(){return this[V].get(`ondblclick`)??null}set ondblclick(e){this[V].set(`ondblclick`,e)}get ondrag(){return this[V].get(`ondrag`)??null}set ondrag(e){this[V].set(`ondrag`,e)}get ondragend(){return this[V].get(`ondragend`)??null}set ondragend(e){this[V].set(`ondragend`,e)}get ondragenter(){return this[V].get(`ondragenter`)??null}set ondragenter(e){this[V].set(`ondragenter`,e)}get ondragleave(){return this[V].get(`ondragleave`)??null}set ondragleave(e){this[V].set(`ondragleave`,e)}get ondragover(){return this[V].get(`ondragover`)??null}set ondragover(e){this[V].set(`ondragover`,e)}get ondragstart(){return this[V].get(`ondragstart`)??null}set ondragstart(e){this[V].set(`ondragstart`,e)}get ondrop(){return this[V].get(`ondrop`)??null}set ondrop(e){this[V].set(`ondrop`,e)}get ondurationchange(){return this[V].get(`ondurationchange`)??null}set ondurationchange(e){this[V].set(`ondurationchange`,e)}get onemptied(){return this[V].get(`onemptied`)??null}set onemptied(e){this[V].set(`onemptied`,e)}get onended(){return this[V].get(`onended`)??null}set onended(e){this[V].set(`onended`,e)}get onerror(){return this[V].get(`onerror`)??null}set onerror(e){this[V].set(`onerror`,e)}get onfocus(){return this[V].get(`onfocus`)??null}set onfocus(e){this[V].set(`onfocus`,e)}get onformdata(){return this[V].get(`onformdata`)??null}set onformdata(e){this[V].set(`onformdata`,e)}get oninput(){return this[V].get(`oninput`)??null}set oninput(e){this[V].set(`oninput`,e)}get oninvalid(){return this[V].get(`oninvalid`)??null}set oninvalid(e){this[V].set(`oninvalid`,e)}get onkeydown(){return this[V].get(`onkeydown`)??null}set onkeydown(e){this[V].set(`onkeydown`,e)}get onkeypress(){return this[V].get(`onkeypress`)??null}set onkeypress(e){this[V].set(`onkeypress`,e)}get onkeyup(){return this[V].get(`onkeyup`)??null}set onkeyup(e){this[V].set(`onkeyup`,e)}get onload(){return this[V].get(`onload`)??null}set onload(e){this[V].set(`onload`,e)}get onloadeddata(){return this[V].get(`onloadeddata`)??null}set onloadeddata(e){this[V].set(`onloadeddata`,e)}get onloadedmetadata(){return this[V].get(`onloadedmetadata`)??null}set onloadedmetadata(e){this[V].set(`onloadedmetadata`,e)}get onloadstart(){return this[V].get(`onloadstart`)??null}set onloadstart(e){this[V].set(`onloadstart`,e)}get onmousedown(){return this[V].get(`onmousedown`)??null}set onmousedown(e){this[V].set(`onmousedown`,e)}get onmouseenter(){return this[V].get(`onmouseenter`)??null}set onmouseenter(e){this[V].set(`onmouseenter`,e)}get onmouseleave(){return this[V].get(`onmouseleave`)??null}set onmouseleave(e){this[V].set(`onmouseleave`,e)}get onmousemove(){return this[V].get(`onmousemove`)??null}set onmousemove(e){this[V].set(`onmousemove`,e)}get onmouseout(){return this[V].get(`onmouseout`)??null}set onmouseout(e){this[V].set(`onmouseout`,e)}get onmouseover(){return this[V].get(`onmouseover`)??null}set onmouseover(e){this[V].set(`onmouseover`,e)}get onmouseup(){return this[V].get(`onmouseup`)??null}set onmouseup(e){this[V].set(`onmouseup`,e)}get onmousewheel(){return this[V].get(`onmousewheel`)??null}set onmousewheel(e){this[V].set(`onmousewheel`,e)}get onpause(){return this[V].get(`onpause`)??null}set onpause(e){this[V].set(`onpause`,e)}get onplay(){return this[V].get(`onplay`)??null}set onplay(e){this[V].set(`onplay`,e)}get onplaying(){return this[V].get(`onplaying`)??null}set onplaying(e){this[V].set(`onplaying`,e)}get onprogress(){return this[V].get(`onprogress`)??null}set onprogress(e){this[V].set(`onprogress`,e)}get onratechange(){return this[V].get(`onratechange`)??null}set onratechange(e){this[V].set(`onratechange`,e)}get onreset(){return this[V].get(`onreset`)??null}set onreset(e){this[V].set(`onreset`,e)}get onresize(){return this[V].get(`onresize`)??null}set onresize(e){this[V].set(`onresize`,e)}get onscroll(){return this[V].get(`onscroll`)??null}set onscroll(e){this[V].set(`onscroll`,e)}get onsecuritypolicyviolation(){return this[V].get(`onsecuritypolicyviolation`)??null}set onsecuritypolicyviolation(e){this[V].set(`onsecuritypolicyviolation`,e)}get onseeked(){return this[V].get(`onseeked`)??null}set onseeked(e){this[V].set(`onseeked`,e)}get onseeking(){return this[V].get(`onseeking`)??null}set onseeking(e){this[V].set(`onseeking`,e)}get onselect(){return this[V].get(`onselect`)??null}set onselect(e){this[V].set(`onselect`,e)}get onslotchange(){return this[V].get(`onslotchange`)??null}set onslotchange(e){this[V].set(`onslotchange`,e)}get onstalled(){return this[V].get(`onstalled`)??null}set onstalled(e){this[V].set(`onstalled`,e)}get onsubmit(){return this[V].get(`onsubmit`)??null}set onsubmit(e){this[V].set(`onsubmit`,e)}get onsuspend(){return this[V].get(`onsuspend`)??null}set onsuspend(e){this[V].set(`onsuspend`,e)}get ontimeupdate(){return this[V].get(`ontimeupdate`)??null}set ontimeupdate(e){this[V].set(`ontimeupdate`,e)}get ontoggle(){return this[V].get(`ontoggle`)??null}set ontoggle(e){this[V].set(`ontoggle`,e)}get onvolumechange(){return this[V].get(`onvolumechange`)??null}set onvolumechange(e){this[V].set(`onvolumechange`,e)}get onwaiting(){return this[V].get(`onwaiting`)??null}set onwaiting(e){this[V].set(`onwaiting`,e)}get onwebkitanimationend(){return this[V].get(`onwebkitanimationend`)??null}set onwebkitanimationend(e){this[V].set(`onwebkitanimationend`,e)}get onwebkitanimationiteration(){return this[V].get(`onwebkitanimationiteration`)??null}set onwebkitanimationiteration(e){this[V].set(`onwebkitanimationiteration`,e)}get onwebkitanimationstart(){return this[V].get(`onwebkitanimationstart`)??null}set onwebkitanimationstart(e){this[V].set(`onwebkitanimationstart`,e)}get onwebkittransitionend(){return this[V].get(`onwebkittransitionend`)??null}set onwebkittransitionend(e){this[V].set(`onwebkittransitionend`,e)}get onwheel(){return this[V].get(`onwheel`)??null}set onwheel(e){this[V].set(`onwheel`,e)}get onauxclick(){return this[V].get(`onauxclick`)??null}set onauxclick(e){this[V].set(`onauxclick`,e)}get ongotpointercapture(){return this[V].get(`ongotpointercapture`)??null}set ongotpointercapture(e){this[V].set(`ongotpointercapture`,e)}get onlostpointercapture(){return this[V].get(`onlostpointercapture`)??null}set onlostpointercapture(e){this[V].set(`onlostpointercapture`,e)}get onpointerdown(){return this[V].get(`onpointerdown`)??null}set onpointerdown(e){this[V].set(`onpointerdown`,e)}get onpointermove(){return this[V].get(`onpointermove`)??null}set onpointermove(e){this[V].set(`onpointermove`,e)}get onpointerrawupdate(){return this[V].get(`onpointerrawupdate`)??null}set onpointerrawupdate(e){this[V].set(`onpointerrawupdate`,e)}get onpointerup(){return this[V].get(`onpointerup`)??null}set onpointerup(e){this[V].set(`onpointerup`,e)}get onpointercancel(){return this[V].get(`onpointercancel`)??null}set onpointercancel(e){this[V].set(`onpointercancel`,e)}get onpointerover(){return this[V].get(`onpointerover`)??null}set onpointerover(e){this[V].set(`onpointerover`,e)}get onpointerout(){return this[V].get(`onpointerout`)??null}set onpointerout(e){this[V].set(`onpointerout`,e)}get onpointerenter(){return this[V].get(`onpointerenter`)??null}set onpointerenter(e){this[V].set(`onpointerenter`,e)}get onpointerleave(){return this[V].get(`onpointerleave`)??null}set onpointerleave(e){this[V].set(`onpointerleave`,e)}get onselectstart(){return this[V].get(`onselectstart`)??null}set onselectstart(e){this[V].set(`onselectstart`,e)}get onselectionchange(){return this[V].get(`onselectionchange`)??null}set onselectionchange(e){this[V].set(`onselectionchange`,e)}get onanimationend(){return this[V].get(`onanimationend`)??null}set onanimationend(e){this[V].set(`onanimationend`,e)}get onanimationiteration(){return this[V].get(`onanimationiteration`)??null}set onanimationiteration(e){this[V].set(`onanimationiteration`,e)}get onanimationstart(){return this[V].get(`onanimationstart`)??null}set onanimationstart(e){this[V].set(`onanimationstart`,e)}get ontransitionrun(){return this[V].get(`ontransitionrun`)??null}set ontransitionrun(e){this[V].set(`ontransitionrun`,e)}get ontransitionstart(){return this[V].get(`ontransitionstart`)??null}set ontransitionstart(e){this[V].set(`ontransitionstart`,e)}get ontransitionend(){return this[V].get(`ontransitionend`)??null}set ontransitionend(e){this[V].set(`ontransitionend`,e)}get ontransitioncancel(){return this[V].get(`ontransitioncancel`)??null}set ontransitioncancel(e){this[V].set(`ontransitioncancel`,e)}get oncopy(){return this[V].get(`oncopy`)??null}set oncopy(e){this[V].set(`oncopy`,e)}get oncut(){return this[V].get(`oncut`)??null}set oncut(e){this[V].set(`oncut`,e)}get onpaste(){return this[V].get(`onpaste`)??null}set onpaste(e){this[V].set(`onpaste`,e)}get onscrollend(){return this[V].get(`onscrollend`)??null}set onscrollend(e){this[V].set(`onscrollend`,e)}get onscrollsnapchange(){return this[V].get(`onscrollsnapchange`)??null}set onscrollsnapchange(e){this[V].set(`onscrollsnapchange`,e)}get onscrollsnapchanging(){return this[V].get(`onscrollsnapchanging`)??null}set onscrollsnapchanging(e){this[V].set(`onscrollsnapchanging`,e)}get adoptedStyleSheets(){return this[Bt]}set adoptedStyleSheets(e){this[Bt]=e}get implementation(){return this[Vt]}get readyState(){return this[Ht]}get referrer(){return this[et]}get defaultView(){return this[je]}get children(){if(!this[ye]){let e=this[Yn];this[ye]=new Od(N,()=>e)}return this[ye]}get charset(){return this.characterSet}get characterSet(){return J.querySelector(this,`meta[charset]`)?.getAttributeNS(null,`charset`)||`UTF-8`}get title(){let e=kd.getElementByTagName(this,`title`);return e?e.text.trim():``}set title(e){let t=kd.getElementByTagName(this,`title`);if(t)t.textContent=e;else{let t=this.createElement(`title`);t.textContent=e,this.head.appendChild(t)}}get links(){return J.querySelectorAll(this,`a[href],area[href]`)}get forms(){return this[Zn]||(this[Zn]=kd.getElementsByTagName(this,`form`)),this[Zn]}get childElementCount(){return this[Yn].length}get firstElementChild(){return this[Yn][0]??null}get lastElementChild(){let e=this[Yn];return e[e.length-1]??null}get cookie(){let e=new Y(this[b]).getBrowserFrame();return e?ju.cookiesToString(e.page.context.cookieContainer.getCookies(this[b].location,!0)):``}set cookie(e){let t=new Y(this[b]).getBrowserFrame();if(!t)return;let n=ju.stringToCookie(this[b].location,e);n&&t.page.context.cookieContainer.addCookies([n])}get nodeName(){return`#document`}get documentElement(){return this[Yn][0]??null}get doctype(){for(let e of this[j])if(e instanceof bd)return e;return null}get body(){let e=this.documentElement;return e?kd.getElementByTagName(e,`body`):null}get head(){let e=this.documentElement;return e?kd.getElementByTagName(e,`head`):null}get styleSheets(){let e=J.querySelectorAll(this,`link[rel="stylesheet"][href],style`),t=[];for(let n of e){let e=n.sheet;e&&t.push(e)}return t}get activeElement(){if(this[de]&&!this[de][x]&&(this[de]=null),this[de]){let e=this[de].getRootNode(),t=this[de];for(;e!==this;)t=e.host,e=t?t.getRootNode():this;return t}return this[de]||this.body||this.documentElement||null}get scrollingElement(){return this.documentElement}get location(){return this[b].location}get scripts(){return this.getElementsByTagName(`script`)}get baseURI(){let e=kd.getElementByTagName(this,`base`);return e?e.href:this[b].location.href}get URL(){return this[b].location.href}get documentURI(){return this.URL}get domain(){return this[b].location.hostname}get visibilityState(){return this.defaultView?Ih.visible:Ih.hidden}get hidden(){return!this.defaultView}get currentScript(){return this[Oe]}get contentType(){return this[Ee]}append(...e){kd.append(this,...e)}prepend(...e){kd.prepend(this,...e)}replaceChildren(...e){kd.replaceChildren(this,...e)}querySelectorAll(e){return J.querySelectorAll(this,e)}querySelector(e){return J.querySelector(this,e)}queryCommandSupported(e){if(!arguments.length)throw new this[b].TypeError(`Failed to execute 'queryCommandSupported' on 'Document': 1 argument required, but only 0 present.`);return!0}getElementsByClassName(e){return kd.getElementsByClassName(this,e)}getElementsByTagName(e){return kd.getElementsByTagName(this,e)}getElementsByTagNameNS(e,t){return kd.getElementsByTagNameNS(this,e,t)}getElementById(e){return kd.getElementById(this,e)}getElementsByName(e){return J.querySelectorAll(this,`[name="${e}"]`)}write(e){if(this[Ve]||this[He]){this[Ve]&&(this[He]||this.open(),this[Ve]=!1);let{documentElement:t,head:n,body:r}=this;(!t||!n||!r)&&this.open(),this[Ve]=!1,this[He]=!1,new Sf(this[b],{evaluateScripts:!0}).parse(e,this)}else new Sf(this[b],{evaluateScripts:!0}).parse(e,this.body)}open(){this[He]=!0;for(let e of this[Ke].bubbling.keys()){let t=this[Ke].bubbling.get(e);if(t)for(let n of t)this.removeEventListener(e,n)}for(let e of this[Ke].capturing.keys()){let t=this[Ke].capturing.get(e);if(t)for(let n of t)this.removeEventListener(e,n)}let e=this[j];for(;e.length;)this.removeChild(e[0]);let t=this[Vt].createDocumentType(`html`,``,``),n=this.createElement(`html`),r=this.createElement(`body`),i=this.createElement(`head`);return this.appendChild(t),this.appendChild(n),n.appendChild(i),n.appendChild(r),this}close(){}createElement(e,t){return this.createElementNS(Pl.html,zl.asciiLowerCase(String(e)),t)}createElementNS(e,t,n){let r=this[b];if(t=String(t),!t)throw new r.DOMException(`Failed to execute 'createElementNS' on 'Document': The qualified name provided is empty.`);let i=t.split(`:`),a=i[1]??i[0],o=i[1]?i[0]:null;switch(e){case Pl.svg:let i=mf[t.toLowerCase()],s=i&&i.localName===t?r[i.className]:r.SVGElement,c=pd.createNode(this,s);return c[w]=t,c[k]=a,c[Ct]=o,c[T]=e,c[We]=n&&n.is?String(n.is):null,c;case Pl.html:let l=r.customElements[tt]?.get(n&&n.is?String(n.is):t);if(l){let r=new l.elementClass;return r[w]=zl.asciiUpperCase(t),r[k]=a,r[Ct]=o,r[T]=e,r[We]=n&&n.is?String(n.is):null,r}let u=Pd[t]?r[Pd[t].className]:null;if(u){let r=pd.createNode(this,u);return r[w]=zl.asciiUpperCase(t),r[k]=a,r[Ct]=o,r[T]=e,r[We]=n&&n.is?String(n.is):null,r}let d=t.includes(`-`)?r.HTMLElement:r.HTMLUnknownElement,f=pd.createNode(this,d);return f[w]=zl.asciiUpperCase(t),f[k]=a,f[Ct]=o,f[T]=e,f[We]=n&&n.is?String(n.is):null,f;default:let p=pd.createNode(this,Tf);return p[w]=t,p[k]=a,p[Ct]=o,p[T]=e,p[We]=n&&n.is?String(n.is):null,p}}createTextNode(e){if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'createTextNode' on 'Document': 1 argument required, but only ${arguments.length} present.`);return pd.createNode(this,this[b].Text,String(e))}createComment(e){if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'createComment' on 'Document': 1 argument required, but only ${arguments.length} present.`);return pd.createNode(this,this[b].Comment,String(e))}createDocumentFragment(){return pd.createNode(this,this[b].DocumentFragment)}createNodeIterator(e,t=-1,n=null){return new Ah(e,t,n)}createTreeWalker(e,t=-1,n=null){return new kh(e,t,n)}createEvent(e){return typeof this[b][e]==`function`?new this[b][e](`init`):new W(`init`)}createAttribute(e){let t=pd.createNode(this,this[b].Attr),n=zl.asciiLowerCase(e),r=n.split(`:`);return t[E]=n,t[k]=r[1]??n,t[Ct]=r[1]?r[0]:null,t}createAttributeNS(e,t){let n=pd.createNode(this,this[b].Attr),r=t.split(`:`);if(n[T]=e,n[E]=t,n[k]=r[1]??t,n[Ct]=r[1]?r[0]:null,!e&&n[Ct])throw new this[b].DOMException(`Failed to execute 'createAttributeNS' on 'Document': The namespace URI provided ('${e||``}') is not valid for the qualified name provided ('${t}').`,H.namespaceError);return n}importNode(e,t=!1){if(!(e instanceof md))throw new this[b].DOMException(`Parameter 1 was not of type Node.`);let n=e.cloneNode(t);return this.#e(n),n}createRange(){return new this[b].Range}adoptNode(e){if(!(e instanceof md))throw new this[b].DOMException(`Parameter 1 was not of type Node.`);let t=e[S]?e[S].removeChild(e):e;return Object.defineProperty(t,`ownerDocument`,{value:this}),t}getSelection(){return this[st]||(this[st]=new Ch(this)),this[st]}hasFocus(){return!!this.activeElement}createProcessingInstruction(e,t){if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'createProcessingInstruction' on 'Document': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),t=String(t),!e||!Lh.test(e))throw new this[b].DOMException(`Failed to execute 'createProcessingInstruction' on 'Document': The target provided ('${e}') is not a valid name.`);if(t.includes(`?>`))throw new this[b].DOMException(`Failed to execute 'createProcessingInstruction' on 'Document': The data provided ('?>') contains '?>'`);let n=pd.createNode(this,this[b].ProcessingInstruction);return n[Ae]=t,n[dt]=e,n}elementFromPoint(e,t){return null}[Me](){super[Me](),this[ye]=null,this[de]=null,this[Je]=null,this[Oe]=null,this[je]=null,this[Bt]=[],this[Zn]=null,this[Qn]=[],this[hr].clear(),this[To]=null,this[Ao].clear(),this[V].clear(),this[st]=null}#e(e){e[g]=this;for(let t of e[j])this.#e(t)}},zh=class extends Rh{constructor(){super();let e=this.createElement(`html`),t=this.createElement(`body`),n=this.createElement(`head`);this.appendChild(e),e.appendChild(n),e.appendChild(t)}[Pn](e,t=!1){if(e[C]===U.textNode)throw new this[b].Error(`Failed to execute 'appendChild' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.`);if(e[C]===U.documentFragmentNode)return e;if(e[C]===U.elementNode&&this[Yn].length!==0)throw new this[b].Error(`Failed to execute 'appendChild' on 'Node': Only one element on document allowed.`);return super[Pn](e,t)}[In](e,t,n=!1){if(e[C]===U.textNode)throw new this[b].Error(`Failed to execute 'insertBefore' on 'Node': Nodes of type '#text' may not be inserted inside nodes of type '#document'.`);if(e[C]===U.documentFragmentNode)return e;if(e[C]===U.elementNode&&this[Yn].length!==0)throw new this[b].Error(`Failed to execute 'insertBefore' on 'Node': Only one element on document allowed.`);return super[In](e,t,n)}},Bh=class extends Rh{[Ee]=`application/xml`},Vh=class extends yd{[C]=U.textNode;[ft]=null;[Wn]=null;get nodeName(){return`#text`}get wholeText(){if(!this[S])return this[Ae];let e=``;for(let t=this.previousSibling;ud.isTextNode(t);t=t.previousSibling)e=t.data+e;e+=this[Ae];for(let t=this.nextSibling;ud.isTextNode(t);t=t.nextSibling)e+=t.data;return e}get data(){return this[Ae]}set data(e){super.data=e,this[ft]&&this[ft][rt](),this[Wn]&&this[Wn][Gn]()}splitText(e){let t=this[Ae].length;if(e<0||e>t)throw new this[b].DOMException(`The index is not in the allowed range.`,H.indexSizeError);let n=t-e,r=this.substringData(e,n),i=this[g].createTextNode(r);return this[S]!==null&&this[S].insertBefore(i,this.nextSibling),this.replaceData(e,n,``),i}toString(){return`[object Text]`}[Nn](e=!1){return super[Nn](e)}[xe](){super[xe](),this[ft]&&this[ft][rt](),this[Wn]&&this[Ae]&&this[Wn][Gn]()}[Se](){this[ft]&&this[ft][rt](),this[Wn]&&this[Ae]&&this[Wn][Gn](),super[Se]()}},Hh=class extends yd{[C]=U.commentNode;get nodeName(){return`#comment`}toString(){return`[object Comment]`}[Nn](e=!1){return super[Nn](e)}},Uh=class extends Fp{[w]=`IMG`;[k]=`img`;[T]=Pl.html;constructor(e=null,t=null){super(),e!==null&&(this.width=e),t!==null&&(this.height=t)}},Wh=class extends Rf{[w]=`AUDIO`;[k]=`audio`;[T]=Pl.html;constructor(e=null){super(),e!==null&&(this.src=e)}},Gh=class{target;options;mutationListener;#e;#t;#n;#r=[];#i=!1;#a=!1;constructor(e){this.options=e.options,this.target=e.target,this.mutationListener={options:e.options,callback:new WeakRef(e=>this.report(e))},this.#e=e.window,this.#t=e.observer,this.#n=e.callback}report(e){this.#i||(this.#r.push(e),!this.#a&&(this.#e.queueMicrotask(()=>{if(this.#i)return;this.#a=!1;let e=this.#r;e?.length>0&&(this.#r=[],this.#n(e,this.#t))}),this.#a=!0))}takeRecords(){if(this.#i)return[];let e=this.#r;return this.#r=[],e}destroy(){this.#i||(this.#i=!0,this.options=null,this.target=null,this.mutationListener=null,this.#e=null,this.#t=null,this.#n=null,this.#r=null)}},Kh=class{#e;#t=[];#n=!1;constructor(e){if(!this[b])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this.#e=e}observe(e,t){if(this.#n)return;if(!e)throw new this[b].TypeError(`Failed to execute 'observe' on 'MutationObserver': The first parameter "target" should be of type "Node".`);if(t&&(t.attributeFilter||t.attributeOldValue)){if(t.attributes===void 0&&(t=Object.assign({},t,{attributes:!0,attributeFilter:t.attributeFilter,attributeOldValue:t.attributeOldValue})),!t.attributes&&t.attributeOldValue)throw new this[b].TypeError(`Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeOldValue' to true when 'attributes' is true or not present.`);if(!t.attributes&&t.attributeFilter)throw new this[b].TypeError(`Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeFilter' when 'attributes' is true or not present.`)}if(t&&t.characterDataOldValue&&(t.characterData===void 0&&(t=Object.assign({},t,{characterData:!0,characterDataOldValue:t.characterDataOldValue})),!t.characterData&&t.characterDataOldValue))throw new this[b].TypeError(`Failed to execute 'observe' on 'MutationObserver': The options object may only set 'characterDataOldValue' to true when 'characterData' is true or not present.`);if(!t||!t.childList&&!t.attributes&&!t.characterData)throw new this[b].TypeError(`Failed to execute 'observe' on 'MutationObserver': The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.`);t=Object.assign({},t,{attributeFilter:t.attributeFilter?t.attributeFilter.map(e=>e.toLowerCase()):null});for(let n of this.#t)if(n.target===e){n.options=t;return}let n=new Gh({window:this[b],options:t,callback:this.#e.bind(this),observer:this,target:e});this.#t.push(n),this[b][vt].includes(this)||this[b][vt].push(this),e[Ye](n.mutationListener)}disconnect(){if(this.#t.length===0)return;for(let e of this.#t)e.target[pt](e.mutationListener),e.destroy();this.#t=[];let e=this[b][vt],t=e.indexOf(this);t!==-1&&e.splice(t,1)}takeRecords(){let e=[];for(let t of this.#t)e=e.concat(t.takeRecords());return e}[Me](){this.#n=!0,this.disconnect()}},qh=class extends tl{postMessage(e,t){}start(){}close(){}};const Jh=/\/\*[\s\S]*?\*\//gm;var Yh=class{#e;constructor(e){this.#e=e}parseFromString(e){let t=this.#e,n=t[b],r=e.replace(Jh,``),i=[],a=/{|}/gm,o=[],s=null,c=0,l;for(;l=a.exec(r);){if(l[0]===`{`){let e=r.substring(c,l.index).trim();if(e[0]===`@`){let r=e.split(` `),a=r[0],o=r.slice(1).join(` `).trim();switch(a){case`@keyframes`:case`@-webkit-keyframes`:let e=new wl(N,n,this);e[Qo]=a===`@-webkit-keyframes`?`-webkit-`:``,e[E]=o,e[Wo]=t,s?(s.type===G.mediaRule||s.type===G.containerRule||s.type===G.supportsRule)&&s.cssRules.push(e):i.push(e),s=e;break;case`@media`:let r=o.split(`,`),c=new Dl(N,n,this);for(let e of r)c.media.appendMedium(e.trim());c[Wo]=t,s?(s.type===G.mediaRule||s.type===G.containerRule||s.type===G.supportsRule)&&s.cssRules.push(c):i.push(c),s=c;break;case`@container`:case`@-webkit-container`:let l=new bl(N,n,this);l[Qo]=a===`@-webkit-container`?`-webkit-`:``,l[Go]=o,l[Wo]=t,s?(s.type===G.mediaRule||s.type===G.containerRule||s.type===G.supportsRule)&&s.cssRules.push(l):i.push(l),s=l;break;case`@supports`:case`@-webkit-supports`:let u=new Nl(N,n,this);u[Qo]=a===`@-webkit-supports`?`-webkit-`:``,u[Go]=o,u[Wo]=t,s?(s.type===G.mediaRule||s.type===G.containerRule||s.type===G.supportsRule)&&s.cssRules.push(u):i.push(u),s=u;break;case`@font-face`:let d=new xl(N,n,this);d[De]=o,d[Wo]=t,s?(s.type===G.mediaRule||s.type===G.containerRule||s.type===G.supportsRule)&&s.cssRules.push(d):i.push(d),s=d;break;case`@scope`:case`@-webkit-scope`:let f=new fl(N,n,this);if(f[Qo]=a===`@-webkit-scope`?`-webkit-`:``,f[Wo]=t,o){let e=o.split(/\s+to\s+/);e[0]&&e[0][0]===`(`&&e[0][e[0].length-1]===`)`&&(f[_]=e[0].slice(1,-1)),e[1]&&e[1][0]===`(`&&e[1][e[1].length-1]===`)`&&(f[m]=e[1].slice(1,-1))}s?(s.type===G.mediaRule||s.type===G.containerRule||s.type===G.supportsRule)&&s.cssRules.push(f):i.push(f),s=f;break;default:let p=new Ml(N,n,this);p[Wo]=t,s=p;break}}else if(s&&s.type===G.keyframesRule){let r=new Sl(N,n,this),i=e.trim();i===`from`?i=`0%`:i===`to`&&(i=`100%`),r[Ko]=i,r[Wo]=t,r[Uo]=s,s.cssRules.push(r),s=r}else if(s&&(s.type===G.mediaRule||s.type===G.containerRule||s.type===G.supportsRule)){if(this.validateSelectorText(e)){let r=new Ml(N,n,this);r[Yo]=e,r[Wo]=t,r[Uo]=s,s.cssRules.push(r),s=r}}else if(this.validateSelectorText(e)){let r=new Ml(N,n,this);r[Yo]=e,r[Wo]=t,r[Uo]=s,s||i.push(r),s=r}s&&o.push(s)}else{if(s){let e=r.substring(c,l.index).trim().replace(/([^;])$/,`$1;`);switch(s.type){case G.fontFaceRule:case G.keyframeRule:case G.styleRule:s[De]=e;break}}o.pop(),s=o[o.length-1]||null}c=l.index+1}return i}validateSelectorText(e){let t=this.#e[b];return new Qc({window:t,scope:t.document,ignoreErrors:!0}).getSelectorGroups(e).length>0}},Xh=class{cssRules=[];media;title;alternate;disabled;#e=null;constructor(e){this.media=e&&e.media?e.media:``,this.title=e&&e.title?e.title:``,this.alternate=e&&e.alternate?e.alternate:!1,this.disabled=e&&e.disabled?e.disabled:!1}insertRule(e,t){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'insertRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.`);let n=new Yh(this).parseFromString(e);if(n.length===0||n.length>1)throw new this[b].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to parse the rule '${e}'.`,H.syntaxError);if(t!==void 0){if(t>this.cssRules.length)throw new this[b].DOMException(`Failed to execute 'insertRule' on 'CSSStyleSheet': The index provided (${t}) is larger than the maximum index (${this.cssRules.length-1}).`,H.indexSizeError);return this.cssRules.splice(t,0,n[0]),t}let r=this.cssRules.length;return this.cssRules.push(n[0]),r}deleteRule(e){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'deleteRule' on 'CSSStyleSheet': 1 argument required, but only 0 present.`);this.cssRules.splice(e,1)}async replace(e){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'replace' on 'CSSStyleSheet': 1 argument required, but only 0 present.`);this.replaceSync(e)}replaceSync(e){if(arguments.length===0)throw new this[b].TypeError(`Failed to execute 'replaceSync' on 'CSSStyleSheet': 1 argument required, but only 0 present.`);this.#e!==e&&(this.#e=e,this.cssRules=new Yh(this).parseFromString(e))}},Zh=class extends tl{[V]=new Map;get onloadstart(){return this[V].get(`onloadstart`)??null}set onloadstart(e){this[V].set(`onloadstart`,e)}get onprogress(){return this[V].get(`onprogress`)??null}set onprogress(e){this[V].set(`onprogress`,e)}get onabort(){return this[V].get(`onabort`)??null}set onabort(e){this[V].set(`onabort`,e)}get onerror(){return this[V].get(`onerror`)??null}set onerror(e){this[V].set(`onerror`,e)}get onload(){return this[V].get(`onload`)??null}set onload(e){this[V].set(`onload`,e)}get ontimeout(){return this[V].get(`ontimeout`)??null}set ontimeout(e){this[V].set(`ontimeout`,e)}get onloadend(){return this[V].get(`onloadend`)??null}set onloadend(e){this[V].set(`onloadend`,e)}},Qh=class extends Zh{},$h=class{signal=new this[b].AbortSignal;abort(e){this.signal[ue](e)}},eg=class extends tl{[Xr]=!1;[Vo]=void 0;onabort=null;constructor(){if(super(),!this[b])throw TypeError(`Failed to construct 'AbortSignal': Illegal constructor`)}get[Symbol.toStringTag](){return`AbortSignal`}get aborted(){return this[Xr]}set aborted(e){}get reason(){return this[Vo]}set reason(e){}[ue](e){this.aborted||(this[Vo]=e===void 0?new this[b].DOMException(`signal is aborted without reason`,H.abortError):e,this[Xr]=!0,this.dispatchEvent(new W(`abort`)))}throwIfAborted(){if(this.aborted)throw this.reason}static abort(e){let t=new this;return t[Vo]=e===void 0?new this[b].DOMException(`signal is aborted without reason`,H.abortError):e,t[Xr]=!0,t}static timeout(e){let t=this[b],n=new this;return t.setTimeout(()=>{n[ue](new t.DOMException(`signal timed out`,H.timeoutError))},e),n}static any(e){for(let t of e)if(t[Xr])return this.abort(t[Vo]);let t=new this,n=new Map,r=()=>{for(let t of e)t.removeEventListener(`abort`,n.get(t))};for(let i of e){let e=()=>{r(),t[ue](i[Vo])};n.set(i,e),i.addEventListener(`abort`,e)}return t}},tg=class extends tl{state;onchange=null;constructor(e=`granted`){super(),this.state=e}},ng;(function(e){e[e.unsent=0]=`unsent`,e[e.opened=1]=`opened`,e[e.headersReceived=2]=`headersReceived`,e[e.loading=3]=`loading`,e[e.done=4]=`done`})(ng||={});var rg=ng,ig;(function(e){e.arraybuffer=`arraybuffer`,e.blob=`blob`,e.document=`document`,e.json=`json`,e.text=`text`})(ig||={});var ag=ig,og=class{static parse(e){if(!e.data)return``;switch(e.responseType){case ag.arraybuffer:let t=new ArrayBuffer(e.data.length),n=new Uint8Array(t);return n.set(e.data),n;case ag.blob:try{return new e.window.Blob([new Uint8Array(e.data)],{type:e.contentType||``})}catch{}return null;case ag.document:let r=new e.window.DOMParser;try{return r.parseFromString(e.data.toString(),`application/xml`)}catch{}return null;case ag.json:try{return JSON.parse(e.data.toString())}catch{}return null;case ag.text:default:return e.data.toString()}}},sg=class extends Zh{static UNSENT=rg.unsent;static OPENED=rg.opened;static HEADERS_RECEIVED=rg.headersReceived;static LOADING=rg.loading;static DONE=rg.done;upload=new this[b].XMLHttpRequestUpload;withCredentials=!1;#e=!0;#t=null;#n=!1;#r=null;#i=null;#a=``;#o=null;#s=Buffer.from([]);#c=rg.unsent;#l=null;constructor(){if(super(),!this[b])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get status(){return this.#i?.status||0}get statusText(){return this.#i?.statusText||``}get response(){return this.#i?this.#o:``}get responseText(){if(this.responseType!==ag.text&&this.responseType!==``)throw new this[b].DOMException(`Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was '${this.responseType}').`,H.invalidStateError);return this.#o===null?this.readyState===rg.headersReceived||this.readyState===rg.loading?this.#s.toString()??``:``:this.#o}get responseXML(){if(this.responseType!==ag.document&&this.responseType!==``)throw new this[b].DOMException(`Failed to read the 'responseXML' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'document' (was '${this.responseType}').`,H.invalidStateError);return this.responseType===``?null:this.#o}get responseURL(){return this.#i?.url||``}get readyState(){return this.#c}set responseType(e){if(this.readyState!==rg.opened&&this.readyState!==rg.unsent)throw new this[b].DOMException(`Failed to set the 'responseType' property on 'XMLHttpRequest': The object's state must be OPENED or UNSENT.`,H.invalidStateError);if(!this.#e)throw new this[b].DOMException(`Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be changed for synchronous requests made from a document.`,H.invalidStateError);this.#a=e}get responseType(){return this.#a}open(e,t,n=!0,r,i){let a=this[b];if(!n&&this.responseType&&this.responseType!==ag.text)throw new a.DOMException(`Failed to execute 'open' on 'XMLHttpRequest': Synchronous requests from a document must not set a response type.`,H.invalidAccessError);let o=new this[b].Headers;if(r){let e=Buffer.from(`${r}:${i||``}`);o.set(`Authorization`,`Basic `+e.toString(`base64`))}this.#e=n,this.#n=!1,this.#i=null,this.#o=null,this.#s=Buffer.from([]),this.#t=new a.AbortController,this.#r=new a.Request(t,{method:e,headers:o,signal:this.#t.signal,credentials:this.withCredentials?`include`:`same-origin`}),this.#c=rg.opened}setRequestHeader(e,t){if(this.readyState!==rg.opened)throw new this[b].DOMException(`Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.`,H.invalidStateError);return Nu.isHeaderForbidden(e)?!1:(this.#r.headers.set(e,t),!0)}getResponseHeader(e){return this.#i?.headers.get(e)??null}getAllResponseHeaders(){if(!this.#i)return``;let e=[];for(let[t,n]of this.#i?.headers){let r=t.toLowerCase();r!==`set-cookie`&&r!==`set-cookie2`&&e.push(`${t}: ${n}`)}return e.join(`\r
|
|
163
|
+
`)}send(e){let t=this[b];if(this.readyState!=rg.opened)throw new this[b].DOMException(`Failed to execute 'send' on 'XMLHttpRequest': Connection must be opened before send() is called.`,H.invalidStateError);typeof e==`object`&&e&&e[C]===U.documentNode&&(e=new t.XMLSerializer().serializeToString(e)),this.#e?this.#u(e).catch(e=>{throw e}):this.#d(e)}abort(){this.#n||(this.#n=!0,this.#t.abort())}overrideMimeType(e){if(this.readyState===rg.loading||this.readyState===rg.done)throw new this[b].DOMException(`Failed to execute 'overrideMimeType' on 'XMLHttpRequest': MIME type cannot be overridden when the request state is LOADING or DONE.`,H.invalidStateError);this.#l=e}async#u(e){let t=this[b],n=new Y(t).getBrowserFrame();if(!n)return;let r=n[fe],i=r.startTask(()=>this.abort());this.#c=rg.loading,this.#f(new W(`readystatechange`)),this.#f(new W(`loadstart`)),e&&(this.#r=new t.Request(this.#r.url,{method:this.#r.method,headers:this.#r.headers,signal:this.#t.signal,credentials:this.#r.credentials,body:e})),this.#t.signal.addEventListener(`abort`,()=>{this.#n=!0,this.#c=rg.unsent,this.#f(new W(`abort`)),this.#f(new W(`loadend`)),this.#f(new W(`readystatechange`)),r.endTask(i)});let a=e=>{if(e instanceof gs&&e.name===H.abortError){if(this.#n)return;this.#c=rg.unsent,this.#f(new W(`abort`))}else this.#c=rg.done,this.#f(new eu(`error`,{error:e,message:e.message}));this.#f(new W(`loadend`)),this.#f(new W(`readystatechange`)),r.endTask(i)},o=new Gu({browserFrame:n,window:t,url:this.#r.url,init:this.#r});try{this.#i=await o.send()}catch(e){a(e);return}this.#c=rg.headersReceived,this.#f(new W(`readystatechange`));let s=this.#i.headers.get(`Content-Length`),c=s!==null&&!isNaN(Number(s))?Number(s):null,l=0;if(this.#i.body){let e;try{for await(let t of this.#i.body){let n=typeof t==`string`?Buffer.from(t):t;this.#s=Buffer.concat([this.#s,n]),l+=t.length;try{this.#f(new cu(`progress`,{lengthComputable:c!==null,loaded:l,total:c===null?0:c}))}catch(t){throw e=t,t}}}catch(t){if(t===e)throw t;a(t);return}}this.#o=og.parse({window:t,responseType:this.#a,data:this.#s,contentType:this.#l||this.#i.headers.get(`Content-Type`)||this.#r.headers.get(`Content-Type`)}),this.#c=rg.done,this.#s=Buffer.from([]),r.endTask(i),this.#f(new W(`readystatechange`)),this.#f(new W(`load`)),this.#f(new W(`loadend`))}#d(e){let t=this[b],n=new Y(t).getBrowserFrame();if(!n)return;e&&(this.#r=new t.Request(this.#r.url,{method:this.#r.method,headers:this.#r.headers,signal:this.#t.signal,credentials:this.#r.credentials,body:e})),this.#c=rg.loading;let r=new Qp({browserFrame:n,window:t,url:this.#r.url,init:this.#r});try{this.#i=r.send()}catch(e){this.#c=rg.done,this.#f(new eu(`error`,{error:e,message:e.message})),this.#f(new W(`loadend`)),this.#f(new W(`readystatechange`));return}this.#c=rg.headersReceived,this.#o=og.parse({window:t,responseType:this.#a,data:this.#i.body,contentType:this.#l||this.#i.headers.get(`Content-Type`)||this.#r.headers.get(`Content-Type`)}),this.#c=rg.done,this.#f(new W(`readystatechange`)),this.#f(new W(`load`)),this.#f(new W(`loadend`))}#f(e){let t=new Y(this[b]).getBrowserFrame();if(!t?.page?.context?.browser?.settings?.errorCapture)return;let n=t.page.context.browser.settings,r=n.errorCapture;n.errorCapture=Is.tryAndCatch,this.dispatchEvent(e),n.errorCapture=r}};const cg=/<([^\s/!>?]+)|<\/([^\s/!>?]+)\s*>|(<!--)|(-->)|(<!)|(<\?)|(\/>)|(>)/gm,lg=/\s*([a-zA-Z0-9-_:]+)\s*=\s*"([^"]*)("{0,1})|\s*([a-zA-Z0-9-_:]+)\s*=\s*'([^']*)('{0,1})/gm,ug=/^\s*([a-zA-Z0-9-_:]+)$/,dg=/version="[^"]+"/,fg=/"([^"]+)"/gm,pg=/\s+/,mg=/\n/g;var hg;(function(e){e.any=`any`,e.startTag=`startTag`,e.comment=`comment`,e.documentType=`documentType`,e.processingInstruction=`processingInstruction`,e.error=`error`})(hg||={});const gg=Object.values(Pl);var _g=class{window;rootNode=null;nodeStack=[];tagNameStack=[];defaultNamespaceStack=null;namespacePrefixStack=null;startTagIndex=0;markupRegExp=null;lastIndex=0;errorIndex=0;nextElement=null;nextTagName=null;currentNode=null;readState=hg.any;errorMessage=null;constructor(e){this.window=e}parse(e){this.rootNode=new this.window.XMLDocument,this.nodeStack=[this.rootNode],this.tagNameStack=[null],this.currentNode=this.rootNode,this.readState=hg.any,this.defaultNamespaceStack=[null],this.namespacePrefixStack=[null],this.startTagIndex=0,this.errorIndex=0,this.errorMessage=null,this.markupRegExp=new RegExp(cg,`gm`),this.lastIndex=0;let t;for(this.rootNode[je]=this.window,e=String(e);t=this.markupRegExp.exec(e);){switch(this.readState){case hg.any:t.index!==this.lastIndex&&(t[1]||t[2]||t[3]||t[4]||t[5]!==void 0||t[6])&&this.parsePlainText(e.substring(this.lastIndex,t.index)),t[1]?this.parseStartTag(t[1]):t[2]?this.parseEndTag(t[2])||(this.errorMessage=`Opening and ending tag mismatch: ${this.tagNameStack[this.tagNameStack.length-1]} line ${e.substring(0,this.startTagIndex).split(`
|
|
164
|
+
`).length} and ${t[2]}\n`,this.errorIndex=this.markupRegExp.lastIndex,this.readState=hg.error,this.removeOverflowingTextNodes()):t[3]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=hg.comment):t[5]===void 0?t[6]?(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=hg.processingInstruction):this.parsePlainText(e.substring(this.lastIndex,this.markupRegExp.lastIndex)):(this.startTagIndex=this.markupRegExp.lastIndex,this.readState=hg.documentType);break;case hg.startTag:if(t[7]||t[8]){let n=e.substring(this.startTagIndex,t[2]?this.markupRegExp.lastIndex-1:t.index),r=!!t[7];this.parseEndOfStartTag(n,r)}else this.errorMessage=t[2]&&this.lastIndex!==this.startTagIndex?`Unescaped '<' not allowed in attributes values
|
|
165
|
+
`:`error parsing attribute name
|
|
166
|
+
`,this.errorIndex=t.index,this.readState=hg.error,this.removeOverflowingTextNodes();break;case hg.comment:t[4]&&this.parseComment(e.substring(this.startTagIndex,t.index));break;case hg.documentType:(t[7]||t[8])&&this.parseDocumentType(e.substring(this.startTagIndex,t.index));break;case hg.processingInstruction:(t[7]||t[8])&&this.parseProcessingInstruction(e.substring(this.startTagIndex,t.index));break;case hg.error:return this.parseError(e.slice(0,this.errorIndex),this.errorMessage),this.rootNode}this.lastIndex=this.markupRegExp.lastIndex}return this.readState===hg.error?(this.parseError(e.slice(0,this.errorIndex),this.errorMessage),this.rootNode):this.readState===hg.comment?(this.parseError(e,`Comment not terminated
|
|
167
|
+
`),this.removeOverflowingTextNodes(),this.rootNode):this.rootNode[Yn].length===0?(this.parseError(``,`Start tag expected, '<' not found`),this.rootNode):(this.lastIndex!==e.length&&this.currentNode&&this.parsePlainText(e.substring(this.lastIndex)),this.nodeStack.length===1||this.parseError(e,this.nextElement?`attributes construct error
|
|
168
|
+
`:`Premature end of data in tag article line 1
|
|
169
|
+
`),this.rootNode)}parsePlainText(e){this.currentNode===this.rootNode?e.replace(pg,``)&&(this.errorMessage=`Extra content at the end of the document
|
|
170
|
+
`,this.errorIndex=this.lastIndex,this.readState=hg.error):e.includes(` `)?(this.errorMessage=`Entity 'nbsp' not defined
|
|
171
|
+
`,this.errorIndex=this.lastIndex+e.indexOf(` `)+6,this.readState=hg.error):this.currentNode[Pn](this.rootNode.createTextNode(ff.decodeXMLEntities(e)),!0)}parseProcessingInstruction(e){let t=this.markupRegExp,n=e.split(pg),r=e[e.length-1]===`?`;if(n[0]===`xml`)if(this.currentNode!==this.rootNode||this.rootNode[j].length!==0||n.length===1)this.errorMessage=`XML declaration allowed only at the start of the document
|
|
172
|
+
`,this.errorIndex=t.lastIndex-e.length+2,this.readState=hg.error,this.removeOverflowingTextNodes();else if(!dg.test(n[1]))this.errorMessage=`Malformed declaration expecting version
|
|
173
|
+
`,this.errorIndex=t.lastIndex-e.length+3,this.readState=hg.error;else if(!r)this.errorMessage=`Blank needed here
|
|
174
|
+
`,this.errorIndex=t.lastIndex-1,this.readState=hg.error;else{let e=n[0],t=n.slice(1).join(` `).slice(0,-1);this.rootNode[To]=this.rootNode.createProcessingInstruction(e,t),this.readState=hg.any}else if(n.length===1&&!r)this.errorMessage=`ParsePI: PI processing-instruction space expected
|
|
175
|
+
`,this.errorIndex=t.lastIndex-1,this.readState=hg.error;else if(n.length>1&&!r)this.errorMessage=`ParsePI: PI processing-instruction never end ...
|
|
176
|
+
`,this.errorIndex=t.lastIndex-1,this.readState=hg.error;else{let e=n[0],t=n.slice(1).join(` `).slice(0,-1);this.currentNode[Pn](this.rootNode.createProcessingInstruction(e,t),!0),this.readState=hg.any}}parseComment(e){this.currentNode!==this.rootNode&&this.currentNode[Pn](this.rootNode.createComment(ff.decodeXMLEntities(e)),!0),this.readState=hg.any}parseDocumentType(e){let t=this.markupRegExp;if(this.currentNode===this.rootNode&&this.rootNode[j].length===0){let n=this.getDocumentType(ff.decodeXMLEntities(e));n?.name?(this.rootNode[Pn](this.window.document.implementation.createDocumentType(n.name,n.publicId,n.systemId),!0),this.readState=hg.any):n?(this.errorMessage=`xmlParseDocTypeDecl : no DOCTYPE name
|
|
177
|
+
`,this.errorIndex=t.lastIndex-e.length-2,this.readState=hg.error):(this.errorMessage=`StartTag: invalid element name
|
|
178
|
+
`,this.errorIndex=t.lastIndex-e.length-2,this.readState=hg.error)}else this.currentNode===this.rootNode&&this.rootNode[Yn].length===1?(this.errorMessage=`Extra content at the end of the document
|
|
179
|
+
`,this.errorIndex=t.lastIndex-e.length-2,this.readState=hg.error):(this.errorMessage=`StartTag: invalid element name
|
|
180
|
+
`,this.errorIndex=t.lastIndex-e.length-2,this.readState=hg.error)}parseStartTag(e){let t=e.split(`:`),n=this.namespacePrefixStack,r=this.defaultNamespaceStack;t.length>1?this.nextElement=this.rootNode.createElementNS(n[n.length-1]?.get(t[0])||null,e):this.nextElement=this.rootNode.createElementNS(r[r.length-1]||null,e),n.push(new Map(n[n.length-1])),this.nextTagName=e,this.startTagIndex=this.markupRegExp.lastIndex,this.readState=hg.startTag}parseEndOfStartTag(e,t){let n=this.namespacePrefixStack[this.namespacePrefixStack.length-1];if(e){let t=new RegExp(lg,`gm`),r,i=0;for(;r=t.exec(e);){let a=e.substring(i,r.index).replace(pg,``);if(a.length){let e=a.match(ug);this.errorMessage=e?`Specification mandates value for attribute ${e[1]}\n`:`attributes construct error
|
|
181
|
+
`,this.errorIndex=this.startTagIndex,this.readState=hg.error,this.removeOverflowingTextNodes();return}if(r[1]&&r[3]===`"`||r[4]&&r[6]===`'`){let e=r[1]??r[4],t=r[2]??r[5],i=t?ff.decodeXMLAttributeValue(t.replace(mg,` `)):``,a=this.nextElement[Ot],o=e.split(`:`);if(o.length>2||o.length===2&&(!o[0]||!o[1])){this.errorMessage=`Failed to parse QName '${e}'\n`,this.errorIndex=this.startTagIndex+r.index+r[0].split(`=`)[0].length,this.readState=hg.error;return}let s=null;switch(o[0]){case`xmlns`:s=Pl.xmlns;break;case`xlink`:s=Pl.xlink;break}if(a.getNamedItemNS(s,o[1]??e))this.errorMessage=`Attribute ${e} redefined\n`,this.errorIndex=this.startTagIndex,this.readState=hg.error;else{let t=pd.createNode(this.rootNode,this.window.Attr);if(t[T]=s,t[E]=e,t[k]=s&&o[1]?o[1]:e,t[Ct]=s&&o[1]?o[0]:null,t[v]=i,a[or](t),t[Ct]===`xmlns`)n.set(t[k],i),this.nextElement[Ct]===t[k]&&(this.nextElement[T]=i);else if(e===`xmlns`&&!this.nextElement[Ct])if(gg.includes(i)){this.nextElement=this.rootNode.createElementNS(i,this.nextElement[w]),this.nextElement[Ot]=a,a[Ze]=this.nextElement;for(let e of a[A].values())e[Ze]=this.nextElement}else this.nextElement[T]=i}this.startTagIndex+=r[0].length}else if(r[1]&&r[3]!==`"`||r[4]&&r[6]!==`'`)return;i=t.lastIndex}let a=e.substring(i).replace(pg,``);if(a.length){let e=a.match(ug);e?(this.errorMessage=`Specification mandates value for attribute ${e[1]}\n`,this.errorIndex=this.markupRegExp.lastIndex-2):(this.errorMessage=`attributes construct error
|
|
182
|
+
`,this.errorIndex=this.startTagIndex),this.readState=hg.error,this.removeOverflowingTextNodes();return}}if(this.nextElement[Ct]&&!this.nextElement[T]){this.errorMessage=`Namespace prefix ${this.nextElement[Ct]} on name is not defined\n`,this.errorIndex=this.lastIndex,this.readState=hg.error;return}if(this.currentNode===this.rootNode&&this.rootNode[Yn].length!==0){this.errorMessage=`Extra content at the end of the document
|
|
183
|
+
`,this.errorIndex=this.lastIndex-this.nextElement[w].length-1,this.readState=hg.error;return}this.currentNode[Pn](this.nextElement,!0),t||(this.currentNode=this.nextElement,this.nodeStack.push(this.currentNode),this.tagNameStack.push(this.nextTagName),this.currentNode[T]&&!this.currentNode[Ct]?this.defaultNamespaceStack.push(this.currentNode[T]):this.defaultNamespaceStack.push(this.defaultNamespaceStack[this.defaultNamespaceStack.length-1])),this.nextElement=null,this.nextTagName=null,this.readState=hg.any,this.startTagIndex=this.markupRegExp.lastIndex}parseEndTag(e){return this.tagNameStack[this.tagNameStack.length-1]===e?(this.nodeStack.pop(),this.tagNameStack.pop(),this.namespacePrefixStack.pop(),this.defaultNamespaceStack.pop(),this.currentNode=this.nodeStack[this.nodeStack.length-1]||this.rootNode,!0):!1}parseError(e,t){let n=this.rootNode.documentElement;if(!n){let e=this.rootNode.createElementNS(Pl.html,`html`),t=this.rootNode.createElementNS(Pl.html,`body`);e.appendChild(t),n=t,this.rootNode[Pn](e,!0)}let r=e.split(`
|
|
184
|
+
`),i=r[r.length-1].length+1,a=`error on line ${r.length} at column ${i}: ${t||`Unknown error`}`,o=this.rootNode.createElementNS(Pl.html,`parsererror`);o.setAttribute(`style`,`display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black`),o.innerHTML=`<h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">${a}</div><h3>Below is a rendering of the page up to the first error.</h3>`,n.insertBefore(o,n.firstChild)}removeOverflowingTextNodes(){if(this.currentNode&&this.currentNode!==this.rootNode)for(;this.currentNode.lastChild?.[C]===md.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith(`DOCTYPE`))return null;let t=e.split(pg);if(t.length<=1)return null;let n=t.slice(1).join(` `),r=[],i=new RegExp(fg,`gm`),a=n.toUpperCase().includes(`PUBLIC`),o;for(;o=i.exec(n);)r.push(o[1]);let s=a&&r[0]||``,c=a?r[1]||``:r[0]||``;return{name:t[1].toLowerCase(),publicId:s,systemId:c}}},vg=class{parseFromString(e,t){if(!t)throw new this[b].DOMException(`Second parameter "mimeType" is mandatory.`);let n=this[b];switch(t){case`text/html`:let r=new n.HTMLDocument;return r[je]=n,new Sf(this[b]).parse(e,r);case`image/svg+xml`:case`text/xml`:case`application/xml`:case`application/xhtml+xml`:return new _g(this[b]).parse(e);default:throw new n.DOMException(`Unknown mime type "${t}".`)}}},yg;(function(e){e[e.endToEnd=2]=`endToEnd`,e[e.endToStart=3]=`endToStart`,e[e.startToEnd=1]=`startToEnd`,e[e.startToStart=0]=`startToStart`})(yg||={});var bg=yg,xg=class{static END_TO_END=bg.endToEnd;static END_TO_START=bg.endToStart;static START_TO_END=bg.startToEnd;static START_TO_START=bg.startToStart;END_TO_END=bg.endToEnd;END_TO_START=bg.endToStart;START_TO_END=bg.startToEnd;START_TO_START=bg.startToStart;[_];[m];[g];constructor(){let e=this[b];if(!e)throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`);this[g]=e.document,this[_]={node:e.document,offset:0},this[m]={node:e.document,offset:0}}get startContainer(){return this[_].node}get endContainer(){return this[m].node}get startOffset(){if(this[_].offset>0){let e=ud.getNodeLength(this[_].node);this[_].offset>e&&(this[_].offset=e)}return this[_].offset}get endOffset(){if(this[m].offset>0){let e=ud.getNodeLength(this[m].node);this[m].offset>e&&(this[m].offset=e)}return this[m].offset}get collapsed(){return this[_].node===this[m].node&&this.startOffset===this.endOffset}get commonAncestorContainer(){let e=this[_].node;for(;e;){if(ud.isInclusiveAncestor(e,this[m].node))return e;e=e[S]}return null}collapse(e=!1){e?this[m]=Object.assign({},this[_]):this[_]=Object.assign({},this[m])}compareBoundaryPoints(e,t){if(e!==bg.startToStart&&e!==bg.startToEnd&&e!==bg.endToEnd&&e!==bg.endToStart)throw new this[b].DOMException(`The comparison method provided must be one of '${bg.startToStart}', '${bg.startToEnd}', '${bg.endToEnd}' or '${bg.endToStart}'.`,H.notSupportedError);if(this[g]!==t[g])throw new this[b].DOMException(`The two Ranges are not in the same tree.`,H.wrongDocumentError);let n={node:null,offset:0},r={node:null,offset:0};switch(e){case bg.startToStart:n.node=this[_].node,n.offset=this.startOffset,r.node=t[_].node,r.offset=t.startOffset;break;case bg.startToEnd:n.node=this[m].node,n.offset=this.endOffset,r.node=t[_].node,r.offset=t.startOffset;break;case bg.endToEnd:n.node=this[m].node,n.offset=this.endOffset,r.node=t[m].node,r.offset=t.endOffset;break;case bg.endToStart:n.node=this[_].node,n.offset=this.startOffset,r.node=t[m].node,r.offset=t.endOffset;break}return bh.compareBoundaryPointsPosition(n,r)}comparePoint(e,t){if(e[g]!==this[g])throw new this[b].DOMException(`The two Ranges are not in the same tree.`,H.wrongDocumentError);bh.validateBoundaryPoint({node:e,offset:t});let n={node:e,offset:t};return bh.compareBoundaryPointsPosition(n,{node:this[_].node,offset:this.startOffset})===-1?-1:bh.compareBoundaryPointsPosition(n,{node:this[m].node,offset:this.endOffset})===1?1:0}cloneContents(){let e=this[b],t=this[g].createDocumentFragment(),n=this.startOffset,r=this.endOffset;if(this.collapsed)return t;if(this[_].node===this[m].node&&(this[_].node[C]===U.textNode||this[_].node[C]===U.processingInstructionNode||this[_].node[C]===U.commentNode)){let e=this[_].node.cloneNode(!1);return e[Ae]=e.substringData(n,r-n),t.appendChild(e),t}let i=this[_].node;for(;!ud.isInclusiveAncestor(i,this[m].node);)i=i[S];let a=null;if(!ud.isInclusiveAncestor(this[_].node,this[m].node)){let e=i.firstChild;for(;!a;)bh.isPartiallyContained(e,this)&&(a=e),e=e.nextSibling}let o=null;if(!ud.isInclusiveAncestor(this[m].node,this[_].node)){let e=i.lastChild;for(;!o;)bh.isPartiallyContained(e,this)&&(o=e),e=e.previousSibling}let s=[];for(let t of i[j])if(bh.isContained(t,this)){if(t[C]===U.documentTypeNode)throw new e.DOMException(`Invalid document type element.`,H.hierarchyRequestError);s.push(t)}if(a!==null&&(a[C]===U.textNode||a[C]===U.processingInstructionNode||a[C]===U.commentNode)){let e=this[_].node.cloneNode(!1);e[Ae]=e.substringData(n,ud.getNodeLength(this[_].node)-n),t.appendChild(e)}else if(a!==null){let r=a.cloneNode();t.appendChild(r);let i=new e.Range;i[_].node=this[_].node,i[_].offset=n,i[m].node=a,i[m].offset=ud.getNodeLength(a);let o=i.cloneContents();r.appendChild(o)}for(let e of s){let n=e.cloneNode(!0);t.appendChild(n)}if(o!==null&&(o[C]===U.textNode||o[C]===U.processingInstructionNode||o[C]===U.commentNode)){let e=this[m].node.cloneNode(!1);e[Ae]=e.substringData(0,r),t.appendChild(e)}else if(o!==null){let n=o.cloneNode(!1);t.appendChild(n);let i=new e.Range;i[_].node=o,i[_].offset=0,i[m].node=this[m].node,i[m].offset=r;let a=i.cloneContents();n.appendChild(a)}return t}cloneRange(){let e=new this[b].Range;return e[_].node=this[_].node,e[_].offset=this[_].offset,e[m].node=this[m].node,e[m].offset=this[m].offset,e}createContextualFragment(e){return new Sf(this[b]).parse(e)}deleteContents(){let e=this.startOffset,t=this.endOffset;if(this.collapsed)return;if(this[_].node===this[m].node&&(this[_].node[C]===U.textNode||this[_].node[C]===U.processingInstructionNode||this[_].node[C]===U.commentNode)){this[_].node.replaceData(e,t-e,``);return}let n=[],r=this[_].node,i=ud.nextDescendantNode(this[m].node);for(;r&&r!==i;)bh.isContained(r,this)&&!bh.isContained(r[S],this)&&n.push(r),r=ud.following(r);let a,o;if(ud.isInclusiveAncestor(this[_].node,this[m].node))a=this[_].node,o=e;else{let e=this[_].node;for(;e&&!ud.isInclusiveAncestor(e[S],this[m].node);)e=e[S];a=e[S],o=e[S][j].indexOf(e)+1}(this[_].node[C]===U.textNode||this[_].node[C]===U.processingInstructionNode||this[_].node[C]===U.commentNode)&&this[_].node.replaceData(this.startOffset,ud.getNodeLength(this[_].node)-this.startOffset,``);for(let e of n)e[S].removeChild(e);(this[m].node[C]===U.textNode||this[m].node[C]===U.processingInstructionNode||this[m].node[C]===U.commentNode)&&this[m].node.replaceData(0,t,``),this[_].node=a,this[_].offset=o,this[m].node=a,this[m].offset=o}detach(){}extractContents(){let e=this[b],t=this[g].createDocumentFragment(),n=this.startOffset,r=this.endOffset;if(this.collapsed)return t;if(this[_].node===this[m].node&&(this[_].node[C]===U.textNode||this[_].node[C]===U.processingInstructionNode||this[_].node[C]===U.commentNode)){let e=this[_].node.cloneNode(!1);return e[Ae]=e.substringData(n,r-n),t.appendChild(e),this[_].node.replaceData(n,r-n,``),t}let i=this[_].node;for(;!ud.isInclusiveAncestor(i,this[m].node);)i=i[S];let a=null;if(!ud.isInclusiveAncestor(this[_].node,this[m].node)){let e=i.firstChild;for(;!a;)bh.isPartiallyContained(e,this)&&(a=e),e=e.nextSibling}let o=null;if(!ud.isInclusiveAncestor(this[m].node,this[_].node)){let e=i.lastChild;for(;!o;)bh.isPartiallyContained(e,this)&&(o=e),e=e.previousSibling}let s=[];for(let e of i[j])if(bh.isContained(e,this)){if(e[C]===U.documentTypeNode)throw new this[b].DOMException(`Invalid document type element.`,H.hierarchyRequestError);s.push(e)}let c,l;if(ud.isInclusiveAncestor(this[_].node,this[m].node))c=this[_].node,l=n;else{let e=this[_].node;for(;e&&!ud.isInclusiveAncestor(e[S],this[m].node);)e=e[S];c=e[S],l=e[S][j].indexOf(e)+1}if(a!==null&&(a[C]===U.textNode||a[C]===U.processingInstructionNode||a[C]===U.commentNode)){let e=this[_].node.cloneNode(!1);e[Ae]=e.substringData(n,ud.getNodeLength(this[_].node)-n),t.appendChild(e),this[_].node.replaceData(n,ud.getNodeLength(this[_].node)-n,``)}else if(a!==null){let r=a.cloneNode(!1);t.appendChild(r);let i=new e.Range;i[_].node=this[_].node,i[_].offset=n,i[m].node=a,i[m].offset=ud.getNodeLength(a);let o=i.extractContents();r.appendChild(o)}for(let e of s)t.appendChild(e);if(o!==null&&(o[C]===U.textNode||o[C]===U.processingInstructionNode||o[C]===U.commentNode)){let e=this[m].node.cloneNode(!1);e[Ae]=e.substringData(0,r),t.appendChild(e),this[m].node.replaceData(0,r,``)}else if(o!==null){let n=o.cloneNode(!1);t.appendChild(n);let i=new e.Range;i[_].node=o,i[_].offset=0,i[m].node=this[m].node,i[m].offset=r;let a=i.extractContents();n.appendChild(a)}return this[_].node=c,this[_].offset=l,this[m].node=c,this[m].offset=l,t}getBoundingClientRect(){return new Td}getClientRects(){return new Ad(N)}isPointInRange(e,t=0){if(e[g]!==this[g])return!1;let n={node:e,offset:t};return bh.validateBoundaryPoint(n),!(bh.compareBoundaryPointsPosition(n,{node:this[_].node,offset:this.startOffset})===-1||bh.compareBoundaryPointsPosition(n,{node:this[m].node,offset:this.endOffset})===1)}insertNode(e){if(this[_].node[C]===U.processingInstructionNode||this[_].node[C]===U.commentNode||this[_].node[C]===U.textNode&&!this[_].node[S]||e===this[_].node)throw new this[b].DOMException(`Invalid start node.`,H.hierarchyRequestError);let t=this[_].node[C]===U.textNode?this[_].node:this[_].node[j][this.startOffset]||null,n=t?t[S]:this[_].node;this[_].node[C]===U.textNode&&(t=this[_].node.splitText(this.startOffset)),e===t&&(t=t.nextSibling);let r=e[S];r&&r.removeChild(e);let i=t?t[S][j].indexOf(t):ud.getNodeLength(n);i+=e[C]===U.documentFragmentNode?ud.getNodeLength(e):1,n.insertBefore(e,t),this.collapsed&&(this[m].node=n,this[m].offset=i)}intersectsNode(e){if(e[g]!==this[g])return!1;let t=e[S];if(!t)return!0;let n=t[j].indexOf(e);return bh.compareBoundaryPointsPosition({node:t,offset:n},{node:this[m].node,offset:this.endOffset})===-1&&bh.compareBoundaryPointsPosition({node:t,offset:n+1},{node:this[_].node,offset:this.startOffset})===1}selectNode(e){if(!e[S])throw new this[b].DOMException(`The given Node has no parent.`,H.invalidNodeTypeError);let t=e[S][j].indexOf(e);this[_].node=e[S],this[_].offset=t,this[m].node=e[S],this[m].offset=t+1}selectNodeContents(e){if(e[C]===U.documentTypeNode)throw new this[b].DOMException(`DocumentType Node can't be used as boundary point.`,H.invalidNodeTypeError);this[_].node=e,this[_].offset=0,this[m].node=e,this[m].offset=ud.getNodeLength(e)}setEnd(e,t=0){bh.validateBoundaryPoint({node:e,offset:t});let n={node:e,offset:t};(e[g]!==this[g]||bh.compareBoundaryPointsPosition(n,{node:this[_].node,offset:this.startOffset})===-1)&&(this[_].node=e,this[_].offset=t),this[m].node=e,this[m].offset=t}setStart(e,t=0){bh.validateBoundaryPoint({node:e,offset:t});let n={node:e,offset:t};(e[g]!==this[g]||bh.compareBoundaryPointsPosition(n,{node:this[m].node,offset:this.endOffset})===1)&&(this[m].node=e,this[m].offset=t),this[_].node=e,this[_].offset=t}setEndAfter(e){if(!e[S])throw new this[b].DOMException(`The given Node has no parent.`,H.invalidNodeTypeError);this.setEnd(e[S],e[S][j].indexOf(e)+1)}setEndBefore(e){if(!e[S])throw new this[b].DOMException(`The given Node has no parent.`,H.invalidNodeTypeError);this.setEnd(e[S],e[S][j].indexOf(e))}setStartAfter(e){if(!e[S])throw new this[b].DOMException(`The given Node has no parent.`,H.invalidNodeTypeError);this.setStart(e[S],e[S][j].indexOf(e)+1)}setStartBefore(e){if(!e[S])throw new this[b].DOMException(`The given Node has no parent.`,H.invalidNodeTypeError);this.setStart(e[S],e[S][j].indexOf(e))}surroundContents(e){let t=this.commonAncestorContainer;if(!t)return;let n=ud.nextDescendantNode(t);for(;t&&t!==n;){if(t[C]!==U.textNode&&bh.isPartiallyContained(t,this))throw new this[b].DOMException(`The Range has partially contains a non-Text node.`,H.invalidStateError);t=ud.following(t)}if(e[C]===U.documentNode||e[C]===U.documentTypeNode||e[C]===U.documentFragmentNode)throw new this[b].DOMException(`Invalid element type.`,H.invalidNodeTypeError);let r=this.extractContents();for(;e.firstChild;)e.removeChild(e.firstChild);this.insertNode(e),e.appendChild(r),this.selectNode(e)}toString(){let e=this.startOffset,t=this.endOffset,n=``;if(this[_].node===this[m].node&&this[_].node[C]===U.textNode)return this[_].node.data.slice(e,t);this[_].node[C]===U.textNode&&(n+=this[_].node.data.slice(e));let r=ud.nextDescendantNode(this[m].node),i=this[_].node;for(;i&&i!==r;)i[C]===U.textNode&&bh.isContained(i,this)&&(n+=i.data),i=ud.following(i);return this[m].node[C]===U.textNode&&(n+=this[m].node.data.slice(0,t)),n}},Sg=class extends tl{id=``;startTime=0;endTime=0;pauseOnExit=!1;[Er]=null;onenter=null;onexit=null;constructor(e){if(super(),e!==N)throw TypeError(`Illegal constructor`);if(!this[b])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get track(){return this[Er]}},Cg=class extends Sg{region=null;vertical=``;snapToLines=!0;line=0;lineAlign=``;position=`auto`;positionAlign=`auto`;size=100;align=``;text=``;constructor(e,t,n){super(N);let r=this[b],i=0;if(e!==void 0&&i++,t!==void 0&&i++,n!==void 0&&i++,i<3)throw new r.TypeError(`Failed to construct 'VTTCue': 3 arguments required, but only ${i} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw new r.TypeError(`Failed to construct 'VTTCue': The provided double value is non-finite.`);this.startTime=e,this.endTime=t,this.text=String(n)}getCueAsHTML(){let e=this[b],t=e.document.createDocumentFragment();return t.appendChild(e.document.createTextNode(this.text)),t}},wg=class extends tl{[Pr]=If.subtitles;[Fr]=``;[Ir]=``;[Lr]=``;[xn]=`disabled`;[Mr]=new Cm(N);[Nr]=new Cm(N);oncuechange=null;constructor(e){if(super(),e!==N)throw TypeError(`Illegal constructor`);if(!this[b])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[Pr]}get label(){return this[Fr]}get language(){return this[Ir]}get id(){return this[Lr]}get mode(){return this[xn]}set mode(e){e!==`disabled`&&e!==`showing`||(this[xn]=e)}get cues(){return this[xn]===`disabled`?null:this[Mr]}get activeCues(){return this[xn]===`disabled`?null:this[Nr]}addCue(e){this[Mr].includes(e)||(e[Er]=this,this[Mr].push(e))}removeCue(e){let t=this[Mr].indexOf(e);t!==-1&&(e[Er]=null,this[Mr].splice(t,1))}},Tg=class e extends tl{[A]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(t,n){if(super(),t!==N)throw TypeError(`Illegal constructor`);this[A]=n;let r=new zc(this,[e,tl]);return new Proxy(this,{get:(e,t)=>{if(t===`length`)return n.length;if(t in e||typeof t==`symbol`)return r.bind(t),e[t];let i=Number(t);if(!isNaN(i))return n[i]},set(e,t,n){if(r.bind(t),typeof t==`symbol`)return e[t]=n,!0;let i=Number(t);return isNaN(i)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(){return Object.keys(n)},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let r=Number(t);return!isNaN(r)&&r>=0&&r<n.length},defineProperty(e,t,n){return r.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let r=Number(t);if(!isNaN(r)&&n[r])return{value:n[r],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[A].length}get[Symbol.toStringTag](){return`TextTrackList`}toLocaleString(){return`[object TextTrackList]`}toString(){return`[object TextTrackList]`}[Symbol.iterator](){return this[A][Symbol.iterator]()}getTrackById(e){for(let t of this[A])if(t.id===e)return t;return null}},Eg=class extends tl{[Rr]=`disconnected`;onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[Rr]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}},Dg=t((e=>{e.removeLeadingAndTrailingHTTPWhitespace=e=>e.replace(/^[ \t\n\r]+/u,``).replace(/[ \t\n\r]+$/u,``),e.removeTrailingHTTPWhitespace=e=>e.replace(/[ \t\n\r]+$/u,``),e.isHTTPWhitespaceChar=e=>e===` `||e===` `||e===`
|
|
185
|
+
`||e===`\r`,e.solelyContainsHTTPTokenCodePoints=e=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(e),e.soleyContainsHTTPQuotedStringTokenCodePoints=e=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(e),e.asciiLowercase=e=>e.replace(/[A-Z]/gu,e=>e.toLowerCase()),e.collectAnHTTPQuotedString=(e,t)=>{let n=``;for(t++;;){for(;t<e.length&&e[t]!==`"`&&e[t]!==`\\`;)n+=e[t],++t;if(t>=e.length)break;let r=e[t];if(++t,r===`\\`){if(t>=e.length){n+=`\\`;break}n+=e[t],++t}else break}return[n,t]}})),Og=t(((e,t)=>{let{asciiLowercase:n,solelyContainsHTTPTokenCodePoints:r,soleyContainsHTTPQuotedStringTokenCodePoints:i}=Dg();t.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=n(String(e)),this._map.get(e)}has(e){return e=n(String(e)),this._map.has(e)}set(e,t){if(e=n(String(e)),t=String(t),!r(e))throw Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!i(t))throw Error(`Invalid MIME type parameter value "${t}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,t)}clear(){this._map.clear()}delete(e){return e=n(String(e)),this._map.delete(e)}forEach(e,t){this._map.forEach(e,t)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}})),kg=t(((e,t)=>{let{removeLeadingAndTrailingHTTPWhitespace:n,removeTrailingHTTPWhitespace:r,isHTTPWhitespaceChar:i,solelyContainsHTTPTokenCodePoints:a,soleyContainsHTTPQuotedStringTokenCodePoints:o,asciiLowercase:s,collectAnHTTPQuotedString:c}=Dg();t.exports=e=>{e=n(e);let t=0,l=``;for(;t<e.length&&e[t]!==`/`;)l+=e[t],++t;if(l.length===0||!a(l)||t>=e.length)return null;++t;let u=``;for(;t<e.length&&e[t]!==`;`;)u+=e[t],++t;if(u=r(u),u.length===0||!a(u))return null;let d={type:s(l),subtype:s(u),parameters:new Map};for(;t<e.length;){for(++t;i(e[t]);)++t;let n=``;for(;t<e.length&&e[t]!==`;`&&e[t]!==`=`;)n+=e[t],++t;if(n=s(n),t<e.length){if(e[t]===`;`)continue;++t}let l=null;if(e[t]===`"`)for([l,t]=c(e,t);t<e.length&&e[t]!==`;`;)++t;else{for(l=``;t<e.length&&e[t]!==`;`;)l+=e[t],++t;if(l=r(l),l===``)continue}n.length>0&&a(n)&&o(l)&&!d.parameters.has(n)&&d.parameters.set(n,l)}return d}})),Ag=t(((e,t)=>{let{solelyContainsHTTPTokenCodePoints:n}=Dg();t.exports=e=>{let t=`${e.type}/${e.subtype}`;if(e.parameters.size===0)return t;for(let[r,i]of e.parameters)t+=`;`,t+=r,t+=`=`,(!n(i)||i.length===0)&&(i=i.replace(/(["\\])/gu,`\\$1`),i=`"${i}"`),t+=i;return t}})),jg=e(t(((e,t)=>{let n=Og(),r=kg(),i=Ag(),{asciiLowercase:a,solelyContainsHTTPTokenCodePoints:o}=Dg();t.exports=class{constructor(e){e=String(e);let t=r(e);if(t===null)throw Error(`Could not parse MIME type string "${e}"`);this._type=t.type,this._subtype=t.subtype,this._parameters=new n(t.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=a(String(e)),e.length===0)throw Error(`Invalid type: must be a non-empty string`);if(!o(e))throw Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=a(String(e)),e.length===0)throw Error(`Invalid subtype: must be a non-empty string`);if(!o(e))throw Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return i(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case`text`:switch(this._subtype){case`ecmascript`:case`javascript`:case`javascript1.0`:case`javascript1.1`:case`javascript1.2`:case`javascript1.3`:case`javascript1.4`:case`javascript1.5`:case`jscript`:case`livescript`:case`x-ecmascript`:case`x-javascript`:return!e||this._parameters.size===0;default:return!1}case`application`:switch(this._subtype){case`ecmascript`:case`javascript`:case`x-ecmascript`:case`x-javascript`:return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype===`xml`&&(this._type===`text`||this._type===`application`)||this._subtype.endsWith(`+xml`)}isHTML(){return this._subtype===`html`&&this._type===`text`}}}))(),1),Mg;(function(e){e[e.empty=0]=`empty`,e[e.loading=1]=`loading`,e[e.done=2]=`done`})(Mg||={});var Ng=Mg,Pg;(function(e){e.buffer=`buffer`,e.binaryString=`binaryString`,e.dataURL=`dataURL`,e.text=`text`})(Pg||={});var Fg=Pg,Ig;(function(e){e.abort=`abort`,e.error=`error`,e.load=`load`,e.loadstart=`loadstart`,e.loadend=`loadend`,e.progress=`progress`})(Ig||={});var Lg=Ig,Rg=class extends tl{error=null;result=null;readyState=Ng.empty;onabort=null;onerror=null;onload=null;onloadstart=null;onloadend=null;onprogress=null;#e=!1;#t=null;#n=null;constructor(){if(super(),!this[b])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}readAsArrayBuffer(e){if(!(e instanceof Ls))throw new this[b].TypeError(`Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Fg.buffer)}readAsBinaryString(e){if(!(e instanceof Ls))throw new this[b].TypeError(`Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Fg.binaryString)}readAsDataURL(e){if(!(e instanceof Ls))throw new this[b].TypeError(`Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Fg.dataURL)}readAsText(e,t=null){if(!(e instanceof Ls))throw new this[b].TypeError(`Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Fg.text,t||`UTF-8`)}abort(){let e=this[b];if(this.#t&&e.clearTimeout(this.#t),this.#n&&e.clearTimeout(this.#n),this.readyState===Ng.empty||this.readyState===Ng.done){this.result=null;return}this.readyState===Ng.loading&&(this.readyState=Ng.done,this.result=null),this.#e=!0,this.dispatchEvent(new cu(Lg.abort)),this.dispatchEvent(new cu(Lg.loadend))}#r(e,t,n=null){let r=this[b];if(this.readyState===Ng.loading)throw new r.DOMException(`The object is in an invalid state.`,H.invalidStateError);this.readyState=Ng.loading,this.#t=r.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new cu(Lg.loadstart));let a=e[me];a||=i.alloc(0),this.dispatchEvent(new cu(Lg.loadstart,{lengthComputable:!isNaN(e.size),total:e.size,loaded:a.length})),this.#n=r.setTimeout(()=>{if(this.#e){this.#e=!1;return}switch(t){default:case Fg.buffer:this.result=new Uint8Array(a).buffer;break;case Fg.binaryString:this.result=a.toString(`binary`);break;case Fg.dataURL:this.result=`data:${jg.default.parse(e.type)||`application/octet-stream`};base64,${a.toString(`base64`)}`;break;case Fg.text:this.result=new TextDecoder(n||`UTF-8`).decode(a);break}this.readyState=Ng.done,this.dispatchEvent(new cu(Lg.load)),this.dispatchEvent(new cu(Lg.loadend))})})}};const zg={aspectRatio:{max:300,min:.006666666666666667},deviceId:``,facingMode:[],frameRate:{max:60,min:0},height:{max:150,min:1},resizeMode:[`none`,`crop-and-scale`],width:{max:300,min:1}},Bg={deviceId:``,frameRate:60,resizeMode:`none`};var Vg=class extends tl{contentHint=``;enabled=!0;id=l.randomUUID();muted=!1;readyState=`live`;label=``;[Fr]=``;[Pr]=`video`;[zn]={};[Bn]=JSON.parse(JSON.stringify(zg));[Vn]=JSON.parse(JSON.stringify(Bg));onended=null;onmute=null;onunmute=null;constructor(e){if(super(),e!==N)throw TypeError(`Illegal constructor`);if(!this[b])throw TypeError(`Failed to construct '${this.constructor.name}': '${this.constructor.name}' was constructed outside a Window context.`)}get kind(){return this[Pr]}async applyConstraints(e){this.#e(this[zn],e)}getConstraints(){return this[zn]}getCapabilities(){return this[Bn]}getSettings(){return this[Vn]}clone(){let e=new this.constructor(N);return e[Pr]=this[Pr],e[zn]=this[zn],e[Bn]=this[Bn],e[Vn]=this[Vn],e.contentHint=this.contentHint,e.enabled=this.enabled,e.label=this.label,e.muted=this.muted,e.readyState=this.readyState,e}stop(){this.readyState=`ended`}#e(e,t){for(let n in t)t[n]!==null&&typeof t[n]==`object`&&!Array.isArray(t[n])?(typeof e[n]!=`object`&&(e[n]={}),this.#e(e[n],t[n])):e[n]=t[n]}},Hg=class extends Vg{[zr];constructor(e,t){super(e),this[zr]=t}get canvas(){return this[zr]}requestFrame(){}clone(){let e=super.clone();return e[zr]=this.canvas,e}},Ug;(function(e){e[e.connecting=0]=`connecting`,e[e.open=1]=`open`,e[e.closing=2]=`closing`,e[e.closed=3]=`closed`})(Ug||={});var Wg=Ug;const Gg=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/;var Kg=class extends tl{static CONNECTING=Wg.connecting;static OPEN=Wg.open;static CLOSING=Wg.closing;static CLOSED=Wg.closed;#e=Wg.closed;#t=``;#n=`blob`;#r=null;#i;[is]=null;constructor(e,t){super();let n=this[b],r;try{r=new URL(e)}catch{throw new n.DOMException(`The URL '${e}' is invalid.`,H.syntaxError)}if(r.protocol!==`ws:`&&r.protocol!==`wss:`)throw new n.DOMException(`The URL's protocol must be either 'ws' or 'wss'. '${r.protocol}' is not allowed.`,H.syntaxError);r.hash&&=``;let i=new Set,a=t===void 0?[]:Array.isArray(t)?t:[t];for(let e of a){if(!this.#d(e))throw new n.DOMException(`The subprotocol '${e}' is invalid.`,H.syntaxError);if(i.has(e))throw new n.DOMException(`The subprotocol '${e}' is duplicated.`,H.syntaxError);i.add(e)}this.#i=r,this.#a(r,a)}get readyState(){return this.#e}get extensions(){return this.#t}get binaryType(){return this.#n}set binaryType(e){e!==`blob`&&e!==`arraybuffer`||(this.#n=e)}get protocol(){return this[is]?.protocol||``}get url(){return this.#i.href}close(e,t){let n=this[b];if(e!==void 0&&e!==1e3&&!(e>=3e3&&e<=4999))throw new n.DOMException(`The code must be either 1000, or between 3000 and 4999. ${e} is neither.`,H.invalidAccessError);if(t!==void 0&&Buffer.byteLength(t,`utf8`)>123)throw new n.DOMException(`The message must not be greater than 123 bytes.`,H.syntaxError);this.#o(e,t?Buffer.from(t):void 0)}send(e){let t=this[b];if(this.#e===Wg.connecting)throw new t.DOMException(`Still in CONNECTING state.`,H.invalidStateError);if(this.#e!==Wg.open)return;if(typeof e==`string`){this[is]?.send(e,{binary:!1});return}let n;n=e instanceof ArrayBuffer?Buffer.from(new Uint8Array(e)):e instanceof Ls?e[me]:e instanceof Buffer?e:ArrayBuffer.isView(e)?Buffer.from(new Uint8Array(e.buffer,e.byteOffset,e.byteLength)):Buffer.from(String(e)),this[is]?.send(n,{binary:!0})}[Me](){super[Me](),this.#o(1001)}#a(e,t){let r=this[b],i=new Y(r).getBrowserContext();if(!i)return;let a=new URL(r.location.href),o=i.cookieContainer.getCookies(a,!1);this.#e=Wg.connecting,this[is]=new n(e,t,{headers:{"user-agent":r.navigator.userAgent,cookie:ju.cookiesToString(o),origin:a.origin},rejectUnauthorized:!i.browser.settings.fetch.disableStrictSSL}),this[is].once(`open`,()=>{this.#s()}),this[is].on(`message`,this.#l.bind(this)),this[is].once(`close`,(e,t)=>{this.#c(e,t)}),this[is].once(`upgrade`,({headers:e})=>{if(e[`set-cookie`]!==void 0){let t=Array.isArray(e[`set-cookie`])?e[`set-cookie`]:[e[`set-cookie`]];for(let e of t){let t=ju.stringToCookie(a,e);t&&i.cookieContainer.addCookies([t])}}}),this[is].once(`error`,e=>{this.#r=e}),r[rs].push(this)}#o(e,t){this.readyState===Wg.connecting?this[is]?this[is].terminate():this.#e=Wg.closing:this[is]&&this.readyState===Wg.open&&this[is].close(e,t),this[is]=null}#s(){this[is]?.extensions&&(this.#t=Object.keys(this[is].extensions).join(`, `)),this.#e=Wg.open,this.dispatchEvent(new this[b].Event(`open`))}#c(e,t){let n=this[b],r=n[rs].indexOf(this);r!==-1&&n[rs].splice(r,1),this.#e=Wg.closed,this.dispatchEvent(new this[b].CloseEvent(`close`,{wasClean:this.#r===null,code:e,reason:t.toString()}))}#l(e,t){if(this.#e!==Wg.open)return;let n=this[b],r;if(t)switch(this.binaryType){case`arraybuffer`:r=e instanceof n.ArrayBuffer?e:Array.isArray(e)?this.#u(Buffer.concat(e)):this.#u(e);break;default:Array.isArray(e)||(e=[e]),r=new n.Blob(e);break}else r=String(e);this.dispatchEvent(new n.MessageEvent(`message`,{data:r,origin:this.#i.origin}))}#u(e){let t=new this[b].ArrayBuffer(e.byteLength);return new Uint8Array(t).set(e),t}#d(e){return Gg.test(e)}},qg=class{[Ae];[y];[h];constructor(e,t,n){if(arguments.length<2)throw new this[b].TypeError(`Failed to construct 'ImageData': 2 arguments required, but only ${arguments.length} present.`);if(e instanceof Uint8ClampedArray){if(typeof t!=`number`)throw new this[b].TypeError(`Failed to construct 'ImageData': The width argument must be a number.`);if(n!==void 0&&typeof n!=`number`)throw new this[b].TypeError(`Failed to construct 'ImageData': The height argument must be a number.`);this[Ae]=e,this[y]=t,this[h]=n===void 0?e.length/(t*4):n}else{if(typeof t!=`number`)throw new this[b].TypeError(`Failed to construct 'ImageData': The height argument must be a number.`);this[Ae]=new Uint8ClampedArray(Array(e*t*4).fill(0)),this[y]=e,this[h]=t}}get data(){return this[Ae]}get width(){return this[y]}get height(){return this[h]}};const Jg={a:1,b:0,c:0,d:1,e:0,f:0,m11:1,m12:0,m13:0,m14:0,m21:0,m22:1,m23:0,m24:0,m31:0,m32:0,m33:1,m34:0,m41:0,m42:0,m43:0,m44:1,is2D:!0,isIdentity:!0},Yg=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,Xg=/[\s,]+/;var Zg=class e{[Yi]=1;[Xi]=0;[Zi]=0;[Qi]=0;[$i]=0;[ea]=1;[ta]=0;[na]=0;[ra]=0;[ia]=0;[aa]=1;[oa]=0;[sa]=0;[ca]=0;[la]=0;[ua]=1;constructor(e){e&&this[da](e)}get a(){return this[Yi]}get b(){return this[Xi]}get c(){return this[$i]}get d(){return this[ea]}get e(){return this[sa]}get f(){return this[ca]}get m11(){return this[Yi]}get m12(){return this[Xi]}get m13(){return this[Zi]}get m14(){return this[Qi]}get m21(){return this[$i]}get m22(){return this[ea]}get m23(){return this[ta]}get m24(){return this[na]}get m31(){return this[ra]}get m32(){return this[ia]}get m33(){return this[aa]}get m34(){return this[oa]}get m41(){return this[sa]}get m42(){return this[ca]}get m43(){return this[la]}get m44(){return this[ua]}get isIdentity(){return this[Yi]===1&&this[Xi]===0&&this[Zi]===0&&this[Qi]===0&&this[$i]===0&&this[ea]===1&&this[ta]===0&&this[na]===0&&this[ra]===0&&this[ia]===0&&this[aa]===1&&this[oa]===0&&this[sa]===0&&this[ca]===0&&this[la]===0&&this[ua]===1}get is2D(){return this[ra]===0&&this[ia]===0&&this[aa]===1&&this[oa]===0&&this[la]===0&&this[ua]===1}toFloat32Array(e){return Float32Array.from(this[Ki](e))}toFloat64Array(e){return Float64Array.from(this[Ki](e))}toString(){let e=this.is2D,t=this[Ki](e).join(`, `);return`${e?`matrix`:`matrix3d`}(${t})`}toJSON(){let{is2D:e,isIdentity:t}=this;return{m11:this[Yi],m12:this[Xi],m13:this[Zi],m14:this[Qi],m21:this[$i],m22:this[ea],m23:this[ta],m24:this[na],m31:this[ra],m32:this[ia],m33:this[aa],m34:this[oa],m41:this[sa],m42:this[ca],m43:this[la],m44:this[ua],a:this[Yi],b:this[Xi],c:this[$i],d:this[ea],e:this[sa],f:this[ca],is2D:e,isIdentity:t}}multiply(e){let t=new this.constructor(this);return e&&t[ba](e),t}translate(e=0,t=0,n=0){let r=new this.constructor(this);return r[fa](e,t,n),r}scale(e,t,n=1,r=0,i=0,a=0){let o=new this.constructor(this);return o[ha](e,t,n,r,i,a),o}scale3d(e=1,t=0,n=0,r=0){let i=new this.constructor(this);return i[ga](e,t,n,r),i}scaleNonUniform(e=1,t=1){let n=new this.constructor(this);return n[_a](e,t),n}rotateAxisAngle(e=0,t=0,n=0,r=0){let i=new this.constructor(this);return i[ma](e,t,n,r),i}rotate(e=0,t,n){let r=new this.constructor(this);return r[pa](e,t,n),r}rotateFromVector(e=0,t=0){let n=new this.constructor(this);return n[_o](e,t),n}skewX(e){let t=new this.constructor(this);return t[va](e),t}skewY(e){let t=new this.constructor(this);return t[ya](e),t}flipX(){let e=new this.constructor(this);return e[vo](),e}flipY(){let e=new this.constructor(this);return e[yo](),e}inverse(){let e=new this.constructor(this);return e[bo](),e}transformPoint(e){let t=e?.x??0,n=e?.y??0,r=e?.z??0,i=e?.w??1,a=this[Yi]*t+this[$i]*n+this[ra]*r+this[sa]*i,o=this[Xi]*t+this[ea]*n+this[ia]*r+this[ca]*i,s=this[Zi]*t+this[ta]*n+this[aa]*r+this[la]*i,c=this[Qi]*t+this[na]*n+this[oa]*r+this[ua]*i;return new this[b].DOMPoint(a,o,s,c)}[da](e){let t=null;if(typeof e==`string`&&e.length&&e!==`none`)t=this.constructor[qi](e);else if(Array.isArray(e)||e instanceof Float64Array||e instanceof Float32Array)t=this.constructor[Ji](e);else if(typeof e==`object`)t=this.constructor.fromMatrix(e);else return;this[Yi]=t[Yi],this[Xi]=t[Xi],this[Zi]=t[Zi],this[Qi]=t[Qi],this[$i]=t[$i],this[ea]=t[ea],this[ta]=t[ta],this[na]=t[na],this[ra]=t[ra],this[ia]=t[ia],this[aa]=t[aa],this[oa]=t[oa],this[sa]=t[sa],this[ca]=t[ca],this[la]=t[la],this[ua]=t[ua]}[ba](t){if(!t)return;let n=t;n instanceof e||(n?.m11===void 0&&n?.a!==void 0?(n=Object.assign({},Jg,n),n.m11=n.a,n.m12=n.b,n.m21=n.c,n.m22=n.d,n.m41=n.e,n.m42=n.f):n=Object.assign({},Jg,n));let r=this[Yi]*n.m11+this[$i]*n.m12+this[ra]*n.m13+this[sa]*n.m14,i=this[Yi]*n.m21+this[$i]*n.m22+this[ra]*n.m23+this[sa]*n.m24,a=this[Yi]*n.m31+this[$i]*n.m32+this[ra]*n.m33+this[sa]*n.m34,o=this[Yi]*n.m41+this[$i]*n.m42+this[ra]*n.m43+this[sa]*n.m44,s=this[Xi]*n.m11+this[ea]*n.m12+this[ia]*n.m13+this[ca]*n.m14,c=this[Xi]*n.m21+this[ea]*n.m22+this[ia]*n.m23+this[ca]*n.m24,l=this[Xi]*n.m31+this[ea]*n.m32+this[ia]*n.m33+this[ca]*n.m34,u=this[Xi]*n.m41+this[ea]*n.m42+this[ia]*n.m43+this[ca]*n.m44,d=this[Zi]*n.m11+this[ta]*n.m12+this[aa]*n.m13+this[la]*n.m14,f=this[Zi]*n.m21+this[ta]*n.m22+this[aa]*n.m23+this[la]*n.m24,p=this[Zi]*n.m31+this[ta]*n.m32+this[aa]*n.m33+this[la]*n.m34,ee=this[Zi]*n.m41+this[ta]*n.m42+this[aa]*n.m43+this[la]*n.m44,te=this[Qi]*n.m11+this[na]*n.m12+this[oa]*n.m13+this[ua]*n.m14,ne=this[Qi]*n.m21+this[na]*n.m22+this[oa]*n.m23+this[ua]*n.m24,re=this[Qi]*n.m31+this[na]*n.m32+this[oa]*n.m33+this[ua]*n.m34,ie=this[Qi]*n.m41+this[na]*n.m42+this[oa]*n.m43+this[ua]*n.m44;this[Yi]=r,this[Xi]=s,this[Zi]=d,this[Qi]=te,this[$i]=i,this[ea]=c,this[ta]=f,this[na]=ne,this[ra]=a,this[ia]=l,this[aa]=p,this[oa]=re,this[sa]=o,this[ca]=u,this[la]=ee,this[ua]=ie}[fa](e=0,t=0,n=0){let r=this.constructor[Ji]([1,0,0,0,0,1,0,0,0,0,1,0,e,t,n,1]);this[ba](r)}[ha](e,t,n=1,r=0,i=0,a=0){e=e===void 0?1:Number(e),t=t===void 0?e:Number(t),(r!==0||i!==0||a!==0)&&this[fa](r,i,a),(e!==1||t!==1||n!==1)&&this[ba](this.constructor[Ji]([e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1])),(r!==0||i!==0||a!==0)&&this[fa](-r,-i,-a)}[ga](e=1,t=0,n=0,r=0){(t!==0||n!==0||r!==0)&&this[fa](t,n,r),e!==1&&this[ba](this.constructor[Ji]([e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1])),(t!==0||n!==0||r!==0)&&this[fa](-t,-n,-r)}[_a](e=1,t=1){e===1&&t===1||this[ba](this.constructor[Ji]([e,0,0,0,0,t,0,0,0,0,1,0,0,0,0,1]))}[ma](e=0,t=0,n=0,r=0){if(e=Number(e),t=Number(t),n=Number(n),r=Number(r),isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw new this[b].TypeError(`Failed to execute 'rotateAxisAngleSelf' on 'DOMMatrix': The arguments must be numbers.`);let i=Math.hypot(e,t,n);if(i===0)return;i!==1&&(e/=i,t/=i,n/=i);let a=-(r*Math.PI/360),o=this.#e,s=Math.sin(a)*Math.cos(a),c=Math.sin(a)*Math.sin(a),l=o(1-2*(t*t+n*n)*c),u=o(2*(e*t*c+n*s)),d=o(2*(e*n*c-t*s)),f=o(2*(e*t*c-n*s)),p=o(1-2*(e*e+n*n)*c),ee=o(2*(t*n*c+e*s)),te=o(2*(e*n*c+t*s)),ne=o(2*(t*n*c-e*s)),re=o(1-2*(e*e+t*t)*c),ie=this.constructor[Ji]([l,f,te,0,u,p,ne,0,d,ee,re,0,0,0,0,1]);this[ba](ie)}[pa](e=0,t,n){if(t===void 0&&n===void 0&&(n=e,e=0,t=0),t===void 0&&(t=0),n===void 0&&(n=0),e=Number(e),t=Number(t),n=Number(n),isNaN(e)||isNaN(t)||isNaN(n))throw new this[b].TypeError(`Failed to execute 'rotateSelf' on 'DOMMatrix': The arguments must be numbers.`);n!==0&&this[ma](0,0,1,n),t!==0&&this[ma](0,1,0,t),e!==0&&this[ma](1,0,0,e)}[_o](e=0,t=0){e===0&&t===0||this[pa](Math.atan2(t,e)*180/Math.PI)}[va](e){let t=Object.assign({},Jg),n=Math.tan(e*Math.PI/180);t.m21=n,t.c=n,this[ba](t)}[ya](e){let t=Object.assign({},Jg),n=Math.tan(e*Math.PI/180);t.m12=n,t.b=n,this[ba](t)}[vo](){let e=this.constructor[Ji]([-1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);this[ba](e)}[yo](){let e=this.constructor[Ji]([1,0,0,0,0,-1,0,0,0,0,1,0,0,0,0,1]);this[ba](e)}[bo](){let e=this[ea]*this[aa]*this[ua]-this[ea]*this[oa]*this[la]-this[ia]*this[ta]*this[ua]+this[ia]*this[na]*this[la]+this[ca]*this[ta]*this[oa]-this[ca]*this[na]*this[aa],t=-this[Xi]*this[aa]*this[ua]+this[Xi]*this[oa]*this[la]+this[ia]*this[Zi]*this[ua]-this[ia]*this[Qi]*this[la]-this[ca]*this[Zi]*this[oa]+this[ca]*this[Qi]*this[aa],n=this[Xi]*this[ta]*this[ua]-this[Xi]*this[na]*this[la]-this[ea]*this[Zi]*this[ua]+this[ea]*this[Qi]*this[la]+this[ca]*this[Zi]*this[na]-this[ca]*this[Qi]*this[ta],r=-this[Xi]*this[ta]*this[oa]+this[Xi]*this[na]*this[aa]+this[ea]*this[Zi]*this[oa]-this[ea]*this[Qi]*this[aa]-this[ia]*this[Zi]*this[na]+this[ia]*this[Qi]*this[ta],i=this[Yi]*e+this[$i]*t+this[ra]*n+this[sa]*r;if(i===0){this[Yi]=NaN,this[Xi]=NaN,this[Zi]=NaN,this[Qi]=NaN,this[$i]=NaN,this[ea]=NaN,this[ta]=NaN,this[na]=NaN,this[ra]=NaN,this[ia]=NaN,this[aa]=NaN,this[oa]=NaN,this[sa]=NaN,this[ca]=NaN,this[la]=NaN,this[ua]=NaN;return}let a=-this[$i]*this[aa]*this[ua]+this[$i]*this[oa]*this[la]+this[ra]*this[ta]*this[ua]-this[ra]*this[na]*this[la]-this[sa]*this[ta]*this[oa]+this[sa]*this[na]*this[aa],o=this[Yi]*this[aa]*this[ua]-this[Yi]*this[oa]*this[la]-this[ra]*this[Zi]*this[ua]+this[ra]*this[Qi]*this[la]+this[sa]*this[Zi]*this[oa]-this[sa]*this[Qi]*this[aa],s=-this[Yi]*this[ta]*this[ua]+this[Yi]*this[na]*this[la]+this[$i]*this[Zi]*this[ua]-this[$i]*this[Qi]*this[la]-this[sa]*this[Zi]*this[na]+this[sa]*this[Qi]*this[ta],c=this[Yi]*this[ta]*this[oa]-this[Yi]*this[na]*this[aa]-this[$i]*this[Zi]*this[oa]+this[$i]*this[Qi]*this[aa]+this[ra]*this[Zi]*this[na]-this[ra]*this[Qi]*this[ta],l=this[$i]*this[ia]*this[ua]-this[$i]*this[oa]*this[ca]-this[ra]*this[ea]*this[ua]+this[ra]*this[na]*this[ca]+this[sa]*this[ea]*this[oa]-this[sa]*this[na]*this[ia],u=-this[Yi]*this[ia]*this[ua]+this[Yi]*this[oa]*this[ca]+this[ra]*this[Xi]*this[ua]-this[ra]*this[Qi]*this[ca]-this[sa]*this[Xi]*this[oa]+this[sa]*this[Qi]*this[ia],d=this[Yi]*this[ea]*this[ua]-this[Yi]*this[na]*this[ca]-this[$i]*this[Xi]*this[ua]+this[$i]*this[Qi]*this[ca]+this[sa]*this[Xi]*this[na]-this[sa]*this[Qi]*this[ea],f=-this[Yi]*this[ea]*this[oa]+this[Yi]*this[na]*this[ia]+this[$i]*this[Xi]*this[oa]-this[$i]*this[Qi]*this[ia]-this[ra]*this[Xi]*this[na]+this[ra]*this[Qi]*this[ea],p=-this[$i]*this[ia]*this[la]+this[$i]*this[aa]*this[ca]+this[ra]*this[ea]*this[la]-this[ra]*this[ta]*this[ca]-this[sa]*this[ea]*this[aa]+this[sa]*this[ta]*this[ia],ee=this[Yi]*this[ia]*this[la]-this[Yi]*this[aa]*this[ca]-this[ra]*this[Xi]*this[la]+this[ra]*this[Zi]*this[ca]+this[sa]*this[Xi]*this[aa]-this[sa]*this[Zi]*this[ia],te=-this[Yi]*this[ea]*this[la]+this[Yi]*this[ta]*this[ca]+this[$i]*this[Xi]*this[la]-this[$i]*this[Zi]*this[ca]-this[sa]*this[Xi]*this[ta]+this[sa]*this[Zi]*this[ea],ne=this[Yi]*this[ea]*this[aa]-this[Yi]*this[ta]*this[ia]-this[$i]*this[Xi]*this[aa]+this[$i]*this[Zi]*this[ia]+this[ra]*this[Xi]*this[ta]-this[ra]*this[Zi]*this[ea];this[Yi]=e/i||0,this[Xi]=t/i||0,this[Zi]=n/i||0,this[Qi]=r/i||0,this[$i]=a/i||0,this[ea]=o/i||0,this[ta]=s/i||0,this[na]=c/i||0,this[ra]=l/i||0,this[ia]=u/i||0,this[aa]=d/i||0,this[oa]=f/i||0,this[sa]=p/i||0,this[ca]=ee/i||0,this[la]=te/i||0,this[ua]=ne/i||0}[Ki](e=!1){return e?[this[Yi],this[Xi],this[$i],this[ea],this[sa],this[ca]]:[this[Yi],this[Xi],this[Zi],this[Qi],this[$i],this[ea],this[ta],this[na],this[ra],this[ia],this[aa],this[oa],this[sa],this[ca],this[la],this[ua]]}#e(e,t=0x38d7ea4c68000){return Math.round(e*t)/t}static fromMatrix(t){return t instanceof e||(t?.m11===void 0&&t?.a!==void 0?(t=Object.assign({},Jg,t),t.m11=t.a,t.m12=t.b,t.m21=t.c,t.m22=t.d,t.m41=t.e,t.m42=t.f):t=Object.assign({},Jg,t)),this[Ji]([t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44])}static fromFloat32Array(e){return this[Ji](e)}static fromFloat64Array(e){return this[Ji](e)}static[Ji](e){if(!(e instanceof Float64Array||e instanceof Float32Array||Array.isArray(e))||e.length!==6&&e.length!==16)throw TypeError(`Failed to execute 'fromArray' on '${this.name}': '${String(e)}' is not a compatible array.`);let t=new this;if(e.length===16){let[n,r,i,a,o,s,c,l,u,d,f,p,ee,te,ne,re]=e;t[Yi]=n,t[Xi]=r,t[Zi]=i,t[Qi]=a,t[$i]=o,t[ea]=s,t[ta]=c,t[na]=l,t[ra]=u,t[ia]=d,t[aa]=f,t[oa]=p,t[sa]=ee,t[ca]=te,t[la]=ne,t[ua]=re}else if(e.length===6){let[n,r,i,a,o,s]=e;t[Yi]=n,t[Xi]=r,t[$i]=i,t[ea]=a,t[sa]=o,t[ca]=s}return t}static[qi](e){if(typeof e!=`string`)throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Expected '${String(e)}' to be a string.`);let t=new this,n=new RegExp(Yg),r;for(;r=n.exec(e);){let e=r[1],n=r[2].split(Xg);for(let e=0,t=n.length;e<t;e++)n[e]=this[xo](n[e]);let[i,a,o,s]=n;switch(e){case`perspective`:!isNaN(i)&&i!==0&&a===void 0&&o===void 0&&(t[oa]=-1/i);break;case`translate`:!isNaN(i)&&o===void 0&&t[fa](i,a||0,0);break;case`translate3d`:!isNaN(i)&&!isNaN(a)&&!isNaN(o)&&t[fa](i,a,o);break;case`translateX`:!isNaN(i)&&a===void 0&&o===void 0&&t[fa](i);break;case`translateY`:!isNaN(i)&&a===void 0&&o===void 0&&t[fa](0,i);break;case`translateZ`:!isNaN(i)&&a===void 0&&o===void 0&&t[fa](0,0,i);break;case`matrix`:case`matrix3d`:(n.length===6||n.length===16)&&t[da](this[Ji](n));break;case`rotate`:case`rotateZ`:!isNaN(i)&&a===void 0&&o===void 0&&t[pa](0,0,i);break;case`rotateX`:!isNaN(i)&&a===void 0&&o===void 0&&t[pa](i,0,0);break;case`rotateY`:!isNaN(i)&&a===void 0&&o===void 0&&t[pa](0,i,0);case`rotate3d`:!isNaN(i)&&!isNaN(a)&&!isNaN(o)&&!isNaN(s)&&t[ma](i,a,o,s);break;case`scale`:!isNaN(i)&&i!==1&&o===void 0&&t[ha](i,isNaN(a)?i:a);break;case`scale3d`:!isNaN(i)&&!isNaN(a)&&!isNaN(o)&&t[ha](i,a,o);break;case`scaleX`:!isNaN(i)&&a===void 0&&o===void 0&&t[ha](i,1,1);break;case`scaleY`:!isNaN(i)&&a===void 0&&o===void 0&&t[ha](1,i,1);break;case`scaleZ`:!isNaN(i)&&a===void 0&&o===void 0&&t[ha](1,1,i);break;case`skew`:isNaN(i)||t[va](i),isNaN(a)||t[ya](a);break;case`skewX`:!isNaN(i)&&a===void 0&&t[va](i);break;case`skewY`:!isNaN(i)&&a===void 0&&t[ya](i);break;default:throw TypeError(`Failed to execute 'setMatrixValue' on '${this.name}': Unknown transform function '${r[1]}'.`)}}return t}static[xo](e){let t=parseFloat(e);switch(e.replace(t.toString(),``)){case`rem`:case`em`:case`vw`:case`vh`:case`%`:case`vmin`:case`vmax`:throw SyntaxError(`Failed to construct '${this.name}': Lengths must be absolute, not relative`);case`rad`:return 180/Math.PI*t;case`turn`:return t*360;case`px`:return t;case`cm`:return t*37.7812;case`mm`:return t*3.7781;case`in`:return t*96;case`pt`:return t*1.3281;case`pc`:return t*16;case`Q`:return t*.945;default:return t}}},Qg=class extends Zg{get a(){return this[Yi]}set a(e){this[Yi]=e}get b(){return this[Xi]}set b(e){this[Xi]=e}get c(){return this[$i]}set c(e){this[$i]=e}get d(){return this[ea]}set d(e){this[ea]=e}get e(){return this[sa]}set e(e){this[sa]=e}get f(){return this[ca]}set f(e){this[ca]=e}get m11(){return this[Yi]}set m11(e){this[Yi]=e}get m12(){return this[Xi]}set m12(e){this[Xi]=e}get m13(){return this[Zi]}set m13(e){this[Zi]=e}get m14(){return this[Qi]}set m14(e){this[Qi]=e}get m21(){return this[$i]}set m21(e){this[$i]=e}get m22(){return this[ea]}set m22(e){this[ea]=e}get m23(){return this[ta]}set m23(e){this[ta]=e}get m24(){return this[na]}set m24(e){this[na]=e}get m31(){return this[ra]}set m31(e){this[ra]=e}get m32(){return this[ia]}set m32(e){this[ia]=e}get m33(){return this[aa]}set m33(e){this[aa]=e}get m34(){return this[oa]}set m34(e){this[oa]=e}get m41(){return this[sa]}set m41(e){this[sa]=e}get m42(){return this[ca]}set m42(e){this[ca]=e}get m43(){return this[la]}set m43(e){this[la]=e}get m44(){return this[ua]}set m44(e){this[ua]=e}setMatrixValue(e){return this[da](e),this}multiplySelf(e){return this[ba](e),this}translateSelf(e=0,t=0,n=0){return this[fa](e,t,n),this}scaleSelf(e,t,n=1,r=0,i=0,a=0){return this[ha](e,t,n,r,i,a),this}scale3dSelf(e=1,t=0,n=0,r=0){return this[ga](e,t,n,r),this}scaleNonUniformSelf(e=1,t=1){return this[_a](e,t),this}rotateAxisAngleSelf(e=0,t=0,n=0,r=0){return this[ma](e,t,n,r),this}rotateSelf(e=0,t,n){return this[pa](e,t,n),this}rotateFromVectorSelf(e=0,t=0){return this[_o](e,t),this}skewXSelf(e){return this[va](e),this}skewYSelf(e){return this[ya](e),this}flipXSelf(){return this[vo](),this}flipYSelf(){return this[yo](),this}invertSelf(){return this[bo](),this}preMultiplySelf(e){return this[ba](e),this}},$g=class{[D]=0;[O]=0;[Wi]=0;[Gi]=1;constructor(e,t,n,r){this[D]=e==null?0:Number(e),this[O]=t==null?0:Number(t),this[Wi]=n==null?0:Number(n),this[Gi]=r==null?1:Number(r)}get x(){return this[D]}get y(){return this[O]}get z(){return this[Wi]}get w(){return this[Gi]}toJSON(){return{x:this.x,y:this.y,z:this.z,w:this.w}}static fromPoint(e){return e?new this(e.x??null,e.y??null,e.z??null,e.w??null):new this}matrixTransform(e){let t=new this[b].DOMMatrixReadOnly(e),n=this.x*t.m11+this.y*t.m21+this.z*t.m31+this.w*t.m41,r=this.x*t.m12+this.y*t.m22+this.z*t.m32+this.w*t.m42,i=this.x*t.m13+this.y*t.m23+this.z*t.m33+this.w*t.m43,a=this.x*t.m14+this.y*t.m24+this.z*t.m34+this.w*t.m44;return new this.constructor(n,r,i,a)}},e_=class extends $g{set x(e){this[D]=e}get x(){return this[D]}set y(e){this[O]=e}get y(){return this[O]}set z(e){this[Wi]=e}get z(){return this[Wi]}set w(e){this[Gi]=e}get w(){return this[Gi]}},t_=class{static extendClasses(e){class t extends Rh{}t.prototype[b]=e,e.Document=t;class n extends zh{}n.prototype[b]=e,e.HTMLDocument=n;class r extends Bh{}r.prototype[b]=e,e.XMLDocument=r;class i extends ph{}i.prototype[b]=e,e.DocumentFragment=i;class a extends Vh{}a.prototype[b]=e,e.Text=a;class o extends Hh{}o.prototype[b]=e,e.Comment=o;class s extends Uh{}s.prototype[b]=e,e.Image=s;class c extends Wh{}c.prototype[b]=e,e.Audio=c;class l extends Kh{}l.prototype[b]=e,e.MutationObserver=l;class u extends qh{}u.prototype[b]=e,e.MessagePort=u;class d extends Xh{}d.prototype[b]=e,e.CSSStyleSheet=d;class f extends gs{}e.DOMException=f;class p extends _s{}p.prototype[b]=e,e.Headers=p;class ee extends Pu{}ee.prototype[b]=e,e.Request=ee;class te extends Iu{}te.prototype[b]=e,te[b]=e,e.Response=te;class ne extends tl{}ne.prototype[b]=e,e.EventTarget=ne;class re extends Qh{}re.prototype[b]=e,e.XMLHttpRequestUpload=re;class ie extends Zh{}ie.prototype[b]=e,e.XMLHttpRequestEventTarget=ie;class ae extends $h{}ae.prototype[b]=e,e.AbortController=ae;class oe extends eg{}oe.prototype[b]=e,oe[b]=e,e.AbortSignal=oe;class se extends Cu{}se.prototype[b]=e,e.FormData=se;class ce extends tg{}ce.prototype[b]=e,e.PermissionStatus=ce;class le extends sg{}le.prototype[b]=e,e.XMLHttpRequest=le;class ue extends vg{}ue.prototype[b]=e,e.DOMParser=ue;class de extends xg{}de.prototype[b]=e,e.Range=de;class fe extends Cg{}fe.prototype[b]=e,e.VTTCue=fe;class pe extends wg{}pe.prototype[b]=e,e.TextTrack=pe;class me extends Tg{}me.prototype[b]=e,e.TextTrackList=me;class he extends Sg{}he.prototype[b]=e,e.TextTrackCue=he;class ge extends Eg{}ge.prototype[b]=e,e.RemotePlayback=ge;class _e extends Rg{}_e.prototype[b]=e,e.FileReader=_e;class ve extends Pf{}ve.prototype[b]=e,e.MediaStream=ve;class ye extends Vg{}ye.prototype[b]=e,e.MediaStreamTrack=ye;class be extends Hg{}be.prototype[b]=e,e.CanvasCaptureMediaStreamTrack=be;class xe extends pu{}xe.prototype[b]=e,e.URL=xe;class Se extends Kg{}Se.prototype[b]=e,e.WebSocket=Se;class Ce extends qg{}Ce.prototype[b]=e,e.ImageData=Ce;class we extends Jf{}we.prototype[b]=e,e.OffscreenCanvas=we;class Te extends Zg{}Te.prototype[b]=e,e.DOMMatrixReadOnly=Te;class Ee extends Qg{}Ee.prototype[b]=e,e.DOMMatrix=Ee;class De extends $g{}De.prototype[b]=e,e.DOMPointReadOnly=De;class Oe extends e_{}Oe.prototype[b]=e,e.DOMPoint=Oe}};const n_=/[\t\f\n\r ,]+/;var r_=class e{[b];[I];[L];[F]=!1;[M]={items:[],attributeValue:``};constructor(t,n,r){if(t!==N||(this[b]=n,this[F]=!!r.readOnly,this[I]=r.getAttribute,this[L]=r.setAttribute,t!==N))throw TypeError(`Illegal constructor`);let i=new zc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[P]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[P]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[P]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[P]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[P]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[P]().length}get numberOfItems(){return this[P]().length}[Symbol.iterator](){return this[P]().values()}clear(){this[M].attributeValue=``,this[M].items=[],this[L](``)}initialize(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'initialize' on 'SVGStringList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'initialize' on 'SVGStringList': 1 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e){this.clear();return}return this[L](e),e}getItem(e){let t=this[P]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': The object is read-only.`);if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let n=this[P](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),this[L](n.join(` `)),e}replaceItem(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': The object is read-only.`);if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGStringList': 2 arguments required, but only ${arguments.length} present.`);if(e=String(e),!e)return this.removeItem(t);let n=this[P]();t<0?t=0:t>=n.length&&(t=n.length-1);let r=n[t];return n[t]=e,this[L](n.join(` `)),r}removeItem(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'removeItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);let t=this[P]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[b].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is greater than the maximum bound.`,H.indexSizeError);if(e<0)throw new this[b].DOMException(`Failed to execute 'removeItem' on 'SVGStringList': The index provided (${e}) is negative.`,H.indexSizeError);let n=t[e];return t.splice(e,1),this[L](t.join(` `)),n}appendItem(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGStringList': 1 argument required, but only ${arguments.length} present.`);if(e=String(e),!e)return e;let t=this[P](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),this[L](t.join(` `)),e}[P](){let e=this[I]()??``,t=this[M];if(t.attributeValue===e)return t.items;let n=[],r=e.trim();if(r)for(let e of r.split(n_))n.includes(e)||n.push(e);return t.attributeValue=e,t.items=n,n}};const i_=/([a-zA-Z0-9]+)\(([^)]+)\)/,a_=/[\s,]+/;var o_=class e{[b];[I]=null;[L]=null;[R]=null;[F]=!1;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,n&&(this[F]=!!n.readOnly,this[I]=n.getAttribute||null,this[L]=n.setAttribute||null)}get a(){return this[Sa]().a}set a(e){if(this[F])return;let t=this[Sa]();t.a=e,this[Ca](t)}get b(){return this[Sa]().b}set b(e){if(this[F])return;let t=this[Sa]();t.b=e,this[Ca](t)}get c(){return this[Sa]().c}set c(e){if(this[F])return;let t=this[Sa]();t.c=e,this[Ca](t)}get d(){return this[Sa]().d}set d(e){if(this[F])return;let t=this[Sa]();t.d=e,this[Ca](t)}get e(){return this[Sa]().e}set e(e){if(this[F])return;let t=this[Sa]();t.e=e,this[Ca](t)}get f(){return this[Sa]().f}set f(e){if(this[F])return;let t=this[Sa]();t.f=e,this[Ca](t)}multiply(t){if(!(t instanceof e))throw new this[b].TypeError(`Failed to execute 'multiply' on 'SVGMatrix': parameter 1 is not of type 'SVGMatrix'.`);let n=this[Sa](),r=new e(N,this[b]);return n.multiplySelf(t[Sa]()),r[Ca](n),r}translate(t=0,n=0){let r=this[Sa](),i=new e(N,this[b]);return r.translateSelf(t,n),i[Ca](r),i}scale(t){let n=this[Sa](),r=new e(N,this[b]);return n.scaleSelf(t),r[Ca](n),r}scaleNonUniform(t=1,n=1){let r=this[Sa](),i=new e(N,this[b]);return r.scaleNonUniformSelf(t,n),i[Ca](r),i}rotate(t){let n=this[Sa](),r=new e(N,this[b]);return n.rotateSelf(t),r[Ca](n),r}rotateFromVector(t=0,n=0){let r=this[Sa](),i=new e(N,this[b]);return r.rotateFromVectorSelf(t,n),i[Ca](r),i}skewX(t){let n=this[Sa](),r=new e(N,this[b]);return n.skewXSelf(t),r[Ca](n),r}skewY(t){let n=this[Sa](),r=new e(N,this[b]);return n.skewYSelf(t),r[Ca](n),r}flipX(){let t=this[Sa](),n=new e(N,this[b]);return t.flipXSelf(),n[Ca](t),n}flipY(){let t=this[Sa](),n=new e(N,this[b]);return t.flipYSelf(),n[Ca](t),n}inverse(){let t=this[Sa](),n=new e(N,this[b]);return t.invertSelf(),n[Ca](t),n}[Sa](){let e=this[I]?this[I]():this[R],t=this[b];if(!e)return new t.DOMMatrix;let n=e.match(i_);if(!n)return new t.DOMMatrix;let r=[];for(let i of n[2].trim().split(a_)){let n=Number(i);if(isNaN(n))throw new t.TypeError(`Failed to parse transform attribute: Expected number, but got "${i}" in "${e}".`);r.push(n)}switch(n[1]){case`matrix`:if(r.length!==6)throw new t.TypeError(`Failed to parse transform attribute: Expected 6 parameters in "${e}".`);return Qg[qi](e);case`scale`:case`translate`:if(r.length!==1&&r.length!==2)throw new t.TypeError(`Failed to parse transform attribute: Expected 1 or 2 parameters in "${e}".`);return Qg[qi](e);case`skewY`:case`skewX`:if(r.length!==1)throw new t.TypeError(`Failed to parse transform attribute: Expected 1 parameter in "${e}".`);return Qg[qi](e);case`rotate`:let n=new t.DOMMatrix;if(r.length!==1&&r.length!==3)throw new t.TypeError(`Failed to parse transform attribute: Expected 1 or 3 parameters in "${e}".`);let[i,a,o]=r;(a||o)&&n.translateSelf(a,o);let s=i*Math.PI/180;return n.multiplySelf(new t.DOMMatrix([Math.cos(s),Math.sin(s),-Math.sin(s),Math.cos(s),0,0])),(a||o)&&n.translateSelf(-a,-o),n;default:throw new this[b].TypeError(`Failed to parse transform attribute: Unknown transformation "${e}".`)}}[Ca](e){this[R]=e.toString().replace(/, /g,` `),this[L]&&this[L](this[R])}},s_;(function(e){e[e.unknown=0]=`unknown`,e[e.matrix=1]=`matrix`,e[e.translate=2]=`translate`,e[e.scale=3]=`scale`,e[e.rotate=4]=`rotate`,e[e.skewX=5]=`skewX`,e[e.skewY=6]=`skewY`})(s_||={});var c_=s_;const l_=/([a-zA-Z0-9]+)\(([^)]+)\)/,u_=/[\s,]+/;var d_=class{static SVG_TRANSFORM_UNKNOWN=c_.unknown;static SVG_TRANSFORM_MATRIX=c_.matrix;static SVG_TRANSFORM_TRANSLATE=c_.translate;static SVG_TRANSFORM_SCALE=c_.scale;static SVG_TRANSFORM_ROTATE=c_.rotate;static SVG_TRANSFORM_SKEWX=c_.skewX;static SVG_TRANSFORM_SKEWY=c_.skewY;[b];[I]=null;[L]=null;[R]=null;[F]=!1;[xa]=null;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,n&&(this[F]=!!n.readOnly,this[I]=n.getAttribute||null,this[L]=n.setAttribute||null)}get type(){let e=(this[I]?this[I]():this[R])?.match(l_);if(!e)return c_.unknown;switch(e[1]){case`matrix`:return c_.matrix;case`translate`:return c_.translate;case`rotate`:return c_.rotate;case`scale`:return c_.scale;case`skewX`:return c_.skewX;case`skewY`:return c_.skewY}return 0}get angle(){let e=(this[I]?this[I]():this[R])?.match(l_);if(!e)return 0;let t=parseFloat(e[2].trim().split(u_)[0]);if(isNaN(t))return 0;switch(e[1]){case`rotate`:case`skewX`:case`skewY`:return t}return 0}get matrix(){return this[xa]||(this[xa]=new o_(N,this[b],{readOnly:this[F],getAttribute:()=>this[I]?this[I]():this[R],setAttribute:e=>{if(this[R]=e,this[L]){this[L](e);return}}})),this[xa]}setMatrix(e){if(!(e instanceof o_))throw TypeError(`Failed to set the "matrix" property on "SVGTransform": The provided value is not of type "SVGMatrix".`);this[F]||(this[xa]&&(this[xa][I]=null,this[xa][L]=null),e[I]=()=>this[I]?this[I]():this[R],e[L]=e=>{if(this[R]=e,this[L]){this[L](e);return}},this[xa]=e,e[R]!==this[R]&&(this[R]=e[R],this[L]&&this[L](this[R]||``)))}setTranslate(e,t){if(arguments.length<2)throw TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw TypeError(`Failed to execute 'setTranslate' on 'SVGTransform': The provided float value is non-finite.`);this[F]||(this[R]=`translate(${e} ${t})`,this[L]&&this[L](this[R]))}setScale(e,t){if(arguments.length<2)throw TypeError(`Failed to execute 'setScale' on 'SVGTransform': 2 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),isNaN(e)||isNaN(t))throw TypeError(`Failed to execute 'setScale' on 'SVGTransform': The provided float value is non-finite.`);this[F]||(this[R]=`scale(${e} ${t})`,this[L]&&this[L](this[R]))}setRotate(e,t,n){if(arguments.length<3)throw TypeError(`Failed to execute 'setRotate' on 'SVGTransform': 3 arguments required, but only ${arguments.length} present.`);if(e=Number(e),t=Number(t),n=Number(n),isNaN(e)||isNaN(t)||isNaN(n))throw TypeError(`Failed to execute 'setRotate' on 'SVGTransform': The provided float value is non-finite.`);this[F]||(this[R]=`rotate(${e} ${t} ${n})`,this[L]&&this[L](this[R]))}setSkewX(e){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw TypeError(`Failed to execute 'setSkewX' on 'SVGTransform': The provided float value is non-finite.`);this[F]||(this[R]=`skewX(${e})`,this[L]&&this[L](this[R]))}setSkewY(e){if(arguments.length<1)throw TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': 1 arguments required, but only ${arguments.length} present.`);if(e=Number(e),isNaN(e))throw TypeError(`Failed to execute 'setSkewY' on 'SVGTransform': The provided float value is non-finite.`);this[F]||(this[R]=`skewY(${e})`,this[L]&&this[L](this[R]))}};const f_=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,p_=`matrix(1 0 0 1 0 0)`;var m_=class e{[b];[I];[L];[F]=!1;[M]={items:[],attributeValue:``};constructor(t,n,r){if(t!==N)throw TypeError(`Illegal constructor`);this[b]=n,this[F]=!!r.readOnly,this[I]=r.getAttribute,this[L]=r.setAttribute;let i=new zc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[P]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[P]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[P]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[P]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[P]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[P]().length}get numberOfItems(){return this[P]().length}[Symbol.iterator](){return this[P]().values()}clear(){if(this[F])throw new this[b].TypeError(`Failed to execute 'clear' on 'SVGTransformList': The object is read-only.`);for(let e of this[M].items)e[I]=null,e[L]=null;this[M].items=[],this[M].attributeValue=``,this[L](``)}initialize(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'initialize' on 'SVGTransformList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof d_))throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);for(let e of this[M].items)e[I]=null,e[L]=null;return e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||p_).join(` `),this[L](this[M].attributeValue)},this[M].items=[e],this[M].attributeValue=e[R],this[L](e[R]||``),e}getItem(e){let t=this[P]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': The object is read-only.`);if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof d_))throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);let n=this[P](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||p_).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]||p_).join(` `),this[L](this[M].attributeValue),e}replaceItem(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': The object is read-only.`);if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof d_))throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);let n=this[P](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][I]=null,n[t][L]=null);let i=n[t];return n[t]=e,e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||p_).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]||p_).join(` `),this[L](this[M].attributeValue),i}removeItem(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'removeItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);let t=this[P]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[b].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is greater than the maximum bound.`,H.indexSizeError);if(e<0)throw new this[b].DOMException(`Failed to execute 'removeItem' on 'SVGTransformList': The index provided (${e}) is negative.`,H.indexSizeError);let n=t[e];return n&&(n[I]=null,n[L]=null),t.splice(e,1),this[M].attributeValue=t.map(e=>e[R]||p_).join(` `),this[L](this[M].attributeValue),n}appendItem(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof d_))throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGTransformList': parameter 1 is not of type 'SVGTransform'.`);let t=this[P](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||p_).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=t.map(e=>e[R]||p_).join(` `),this[L](this[M].attributeValue),e}[P](){let e=this[I]()??``,t=this[M];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[I]=null,e[L]=null;let n=[],r=e.trim();if(r){let e=new RegExp(f_),t;for(;t=e.exec(r);){let e=new d_(N,this[b],{readOnly:this[F],getAttribute:()=>e[R],setAttribute:()=>{this[M].attributeValue=this[P]().map(e=>e[R]||p_).join(` `),this[L](this[M].attributeValue)}});e[R]=`${t[1]}(${t[2]})`,n.push(e)}}return t.attributeValue=e,t.items=n,n}},h_=class{[b];[I];[L];[ni]=null;[ri]=null;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute}get animVal(){return this[ri]||(this[ri]=new m_(N,this[b],{readOnly:!0,getAttribute:this[I],setAttribute:()=>{}})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new m_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},g_=class extends hh{[$r]=null;[ei]=null;[ti]=null;get oncopy(){return Z.getEventListener(this,`oncopy`)}set oncopy(e){this[V].set(`oncopy`,e)}get oncut(){return Z.getEventListener(this,`oncut`)}set oncut(e){this[V].set(`oncut`,e)}get onpaste(){return Z.getEventListener(this,`onpaste`)}set onpaste(e){this[V].set(`onpaste`,e)}get requiredExtensions(){return this[$r]||(this[$r]=new r_(N,this[b],{getAttribute:()=>this.getAttribute(`requiredExtensions`),setAttribute:e=>this.setAttribute(`requiredExtensions`,e)})),this[$r]}get systemLanguage(){return this[ei]||(this[ei]=new r_(N,this[b],{getAttribute:()=>this.getAttribute(`systemLanguage`),setAttribute:e=>this.setAttribute(`systemLanguage`,e)})),this[ei]}get transform(){return this[ti]||(this[ti]=new h_(N,this[b],{getAttribute:()=>this.getAttribute(`transform`),setAttribute:e=>this.setAttribute(`transform`,e)})),this[ti]}getBBox(){return new Td}getCTM(){return new this[b].DOMMatrix}getScreenCTM(){return new this[b].DOMMatrix}},__=class{[b];[I]=null;[L]=null;[R]=null;[F]=!1;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,n&&(this[F]=!!n.readOnly,this[I]=n.getAttribute||null,this[L]=n.setAttribute||null)}get x(){let e=this[I]?this[I]():this[R];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[0]);return isNaN(n)?0:n}set x(e){if(this[F])throw new this[b].TypeError(`Failed to set the 'x' property on 'SVGRect': The object is read-only.`);this[R]=`${String(typeof e==`number`?e:parseFloat(e))} ${this.y} ${this.width} ${this.height}`,this[L]&&this[L](this[R])}get y(){let e=this[I]?this[I]():this[R];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[1]);return isNaN(n)?0:n}set y(e){if(this[F])throw new this[b].TypeError(`Failed to set the 'y' property on 'SVGRect': The object is read-only.`);this[R]=`${this.x} ${String(typeof e==`number`?e:parseFloat(e))} ${this.width} ${this.height}`,this[L]&&this[L](this[R])}get width(){let e=this[I]?this[I]():this[R];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[2]);return isNaN(n)?0:n}set width(e){if(this[F])throw new this[b].TypeError(`Failed to set the 'width' property on 'SVGRect': The object is read-only.`);this[R]=`${this.x} ${this.y} ${String(typeof e==`number`?e:parseFloat(e))} ${this.height}`,this[L]&&this[L](this[R])}get height(){let e=this[I]?this[I]():this[R];if(!e)return 0;let t=e.split(/\s+/),n=Number(t[3]);return isNaN(n)?0:n}set height(e){if(this[F])throw new this[b].TypeError(`Failed to set the 'height' property on 'SVGRect': The object is read-only.`);this[R]=`${this.x} ${this.y} ${this.width} ${String(typeof e==`number`?e:parseFloat(e))}`,this[L]&&this[L](this[R])}};const v_=/[\t\f\n\r, ]+/;var y_=class{[b];[I]=null;[L]=null;[R]=null;[F]=!1;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,n&&(this[F]=!!n.readOnly,this[I]=n.getAttribute||null,this[L]=n.setAttribute||null)}get x(){let e=((this[I]?this[I]():this[R])||``).split(v_);return e[0]?parseFloat(e[0]):0}set x(e){if(this[F])throw new this[b].TypeError(`Failed to set the 'x' property on 'SVGPoint': The object is read-only.`);this[R]=`${e} ${this.y}`,this[L]&&this[L](this[R])}get y(){let e=((this[I]?this[I]():this[R])||``).split(v_);return e[1]?parseFloat(e[1]):0}set y(e){if(this[F])throw new this[b].TypeError(`Failed to set the 'y' property on 'SVGPoint': The object is read-only.`);this[R]=`${this.x} ${e}`,this[L]&&this[L](this[R])}},b_;(function(e){e[e.unknown=0]=`unknown`,e[e.number=1]=`number`,e[e.percentage=2]=`percentage`,e[e.ems=3]=`ems`,e[e.exs=4]=`exs`,e[e.px=5]=`px`,e[e.cm=6]=`cm`,e[e.mm=7]=`mm`,e[e.in=8]=`in`,e[e.pt=9]=`pt`,e[e.pc=10]=`pc`})(b_||={});var x_=b_;const S_=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/;var C_=class{static SVG_LENGTHTYPE_UNKNOWN=x_.unknown;static SVG_LENGTHTYPE_NUMBER=x_.number;static SVG_LENGTHTYPE_PERCENTAGE=x_.percentage;static SVG_LENGTHTYPE_EMS=x_.ems;static SVG_LENGTHTYPE_EXS=x_.exs;static SVG_LENGTHTYPE_PX=x_.px;static SVG_LENGTHTYPE_CM=x_.cm;static SVG_LENGTHTYPE_MM=x_.mm;static SVG_LENGTHTYPE_IN=x_.in;static SVG_LENGTHTYPE_PT=x_.pt;static SVG_LENGTHTYPE_PC=x_.pc;[b];[I]=null;[L]=null;[R]=null;[F]=!1;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,n&&(this[F]=!!n.readOnly,this[I]=n.getAttribute||null,this[L]=n.setAttribute||null)}get unitType(){let e=(this[I]?this[I]()||``:this[R]||``).match(S_);if(!e||isNaN(parseFloat(e[1])))return x_.unknown;switch(e[2]){case``:return x_.number;case`px`:return x_.px;case`cm`:return x_.cm;case`mm`:return x_.mm;case`in`:return x_.in;case`pt`:return x_.pt;case`pc`:return x_.pc;case`em`:case`ex`:case`%`:throw new this[b].TypeError(`Failed to execute 'value' on 'SVGLength': Could not resolve relative length.`);default:return x_.unknown}}get value(){let e=(this[I]?this[I]()||``:this[R]||``).match(S_);if(!e)return 0;let t=parseFloat(e[1]);if(isNaN(t))return 0;switch(e[2]){case``:return t;case`px`:return t;case`cm`:return t/2.54*96;case`mm`:return t/25.4*96;case`in`:return t*96;case`pt`:return t*72;case`pc`:return t*6;case`em`:case`ex`:case`%`:throw new this[b].TypeError(`Failed to execute 'value' on 'SVGLength': Could not resolve relative length.`);default:return 0}}set value(e){if(this[F])throw new this[b].TypeError(`Failed to set the 'value' property on 'SVGLength': The object is read-only.`);if(e=typeof e==`number`?e:parseFloat(String(e)),isNaN(e))throw new this[b].TypeError(`Failed to set the 'value' property on 'SVGLength': The provided float value is non-finite.`);let t=``,n=e;switch(this.unitType){case x_.number:n=e,t=``;break;case x_.px:n=e,t=`px`;break;case x_.cm:n=e/96*2.54,t=`cm`;break;case x_.mm:n=e/96*25.4,t=`mm`;break;case x_.in:n=e/96,t=`in`;break;case x_.pt:n=e/72,t=`pt`;break;case x_.pc:n=e/6,t=`pc`;break;case x_.percentage:case x_.ems:case x_.exs:throw new this[b].TypeError(`Failed to set the 'value' property on 'SVGLength': Could not resolve relative length.`);default:break}this[R]=String(n)+t,this[L]&&this[L](this[R])}get valueAsString(){return this[I]?this[I]()||`0`:this[R]||`0`}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The object is read-only.`);if(typeof e!=`number`)throw new this[b].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.`);if(t=typeof t==`number`?t:parseFloat(String(t)),isNaN(t))throw new this[b].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': The provided float value is non-finite.`);let n=``;switch(e){case x_.number:n=``;break;case x_.px:n=`px`;break;case x_.cm:n=`cm`;break;case x_.mm:n=`mm`;break;case x_.in:n=`in`;break;case x_.pt:n=`pt`;break;case x_.pc:n=`pc`;break;case x_.ems:case x_.exs:case x_.percentage:throw new this[b].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGLength': Could not resolve relative length.`);default:break}this[R]=String(t)+n,this[L]&&this[L](this[R])}convertToSpecifiedUnits(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': The object is read-only.`);if(typeof e!=`number`)throw new this[b].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': parameter 1 ('unitType') is not of type 'number'.`);let t=this.value,n=``;switch(e){case x_.number:n=``;break;case x_.px:n=`px`;break;case x_.cm:t=t/96*2.54,n=`cm`;break;case x_.mm:t=t/96*25.4,n=`mm`;break;case x_.in:t/=96,n=`in`;break;case x_.pt:t/=72,n=`pt`;break;case x_.pc:t/=6,n=`pc`;break;case x_.percentage:case x_.ems:case x_.exs:throw new this[b].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGLength': Could not resolve relative length.`);default:break}this[R]=String(t)+n,this[L]&&this[L](this[R])}},w_;(function(e){e[e.unknown=0]=`unknown`,e[e.unspecified=1]=`unspecified`,e[e.deg=2]=`deg`,e[e.rad=3]=`rad`,e[e.grad=4]=`grad`})(w_||={});var T_=w_;const E_=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/;var D_=class{static SVG_ANGLETYPE_UNKNOWN=T_.unknown;static SVG_ANGLETYPE_UNSPECIFIED=T_.unspecified;static SVG_ANGLETYPE_DEG=T_.deg;static SVG_ANGLETYPE_RAD=T_.rad;static SVG_ANGLETYPE_GRAD=T_.grad;[b];[I]=null;[L]=null;[R]=``;[F]=!1;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,n&&(this[F]=!!n.readOnly,this[I]=n.getAttribute||null,this[L]=n.setAttribute||null)}get unitType(){let e=(this[I]?this[I]():this[R])?.match(E_);if(!e||isNaN(parseFloat(e[1])))return T_.unknown;switch(e[2]){case``:return T_.unspecified;case`deg`:return T_.deg;case`rad`:return T_.rad;case`grad`:return T_.grad;case`turn`:return T_.unknown;default:return T_.unspecified}}get value(){let e=(this[I]?this[I]():this[R])?.match(E_);if(!e)return 0;let t=parseFloat(e[1]);if(isNaN(t))return 0;switch(e[2]){case``:return t;case`deg`:return t;case`rad`:return 180/Math.PI*t;case`grad`:return 180/200*t;case`turn`:return t*360;default:return t}}set value(e){if(this[F])throw new this[b].TypeError(`Failed to set the 'value' property on 'SVGAngle': The object is read-only.`);if(e=typeof e==`number`?e:parseFloat(String(e)),isNaN(e))throw new this[b].TypeError(`Failed to set the 'value' property on 'SVGAngle': The provided float value is non-finite.`);let t=``,n=e;switch(this.unitType){case T_.unspecified:n=e,t=``;break;case T_.deg:n=e,t=`deg`;break;case T_.rad:n=e/(180/Math.PI),t=`rad`;break;case T_.grad:n=e/(180/200),t=`grad`;break;case T_.unknown:n=e/360,t=`turn`;default:break}this[R]=String(n)+t,this[L]&&this[L](this[R])}get valueAsString(){return this[I]?this[I]()||`0`:this[R]||`0`}get valueInSpecifiedUnits(){let e=this.valueAsString;return parseFloat(e)||0}newValueSpecifiedUnits(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The object is read-only.`);if(typeof e!=`number`)throw new this[b].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.`);if(t=typeof t==`number`?t:parseFloat(t),isNaN(t))throw new this[b].TypeError(`Failed to execute 'newValueSpecifiedUnits' on 'SVGAngle': The provided float value is non-finite.`);let n=``;switch(e){case T_.unspecified:n=``;break;case T_.deg:n=`deg`;break;case T_.rad:n=`rad`;break;case T_.grad:n=`grad`;break;case T_.unknown:n=`turn`;break;default:break}this[R]=String(t)+n,this[L]&&this[L](this[R])}convertToSpecifiedUnits(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': The object is read-only.`);if(typeof e!=`number`)throw new this[b].TypeError(`Failed to execute 'convertToSpecifiedUnits' on 'SVGAngle': parameter 1 ('unitType') is not of type 'number'.`);let t=this.value,n=``;switch(e){case T_.unspecified:n=``;break;case T_.deg:n=`deg`;break;case T_.rad:n=`rad`,t/=180/Math.PI;break;case T_.grad:n=`grad`,t/=180/200;break;case T_.unknown:n=`turn`,t/=360;break;default:break}this[R]=String(t)+n,this[L]&&this[L](this[R])}},O_=class{[b];[I]=null;[L]=null;[R]=null;[F]=!1;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,n&&(this[F]=!!n.readOnly,this[I]=n.getAttribute||null,this[L]=n.setAttribute||null)}get value(){let e=this[I]?this[I]():this[R];return parseFloat(e||`0`)}set value(e){if(this[F])throw TypeError(`Failed to set the 'value' property on 'SVGNumber': The object is read-only.`);if(isNaN(typeof e==`number`?e:parseFloat(String(e))))throw TypeError(`Failed to set the 'value' property on 'SVGNumber': The provided value is not a number.`);this[R]=String(e),this[L]&&this[L](this[R]||``)}},k_=class{[b];[I];[L];[ni]=null;[ri]=null;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute}get animVal(){return this[ri]||(this[ri]=new __(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new __(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},A_;(function(e){e[e.unknown=0]=`unknown`,e[e.meet=1]=`meet`,e[e.slice=2]=`slice`})(A_||={});var j_=A_,M_;(function(e){e[e.unknown=0]=`unknown`,e[e.none=1]=`none`,e[e.xMinYMin=2]=`xMinYMin`,e[e.xMidYMin=3]=`xMidYMin`,e[e.xMaxYMin=4]=`xMaxYMin`,e[e.xMinYMid=5]=`xMinYMid`,e[e.xMidYMid=6]=`xMidYMid`,e[e.xMaxYMid=7]=`xMaxYMid`,e[e.xMinYMax=8]=`xMinYMax`,e[e.xMidYMax=9]=`xMidYMax`,e[e.xMaxYMax=10]=`xMaxYMax`})(M_||={});var N_=M_;const P_=Object.values(N_);P_.length=P_.indexOf(0);const F_=Object.values(j_);F_.length=F_.indexOf(0);var I_=class{static SVG_MEETORSLICE_UNKNOWN=j_.unknown;static SVG_MEETORSLICE_MEET=j_.meet;static SVG_MEETORSLICE_SLICE=j_.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=N_.unknown;static SVG_PRESERVEASPECTRATIO_NONE=N_.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=N_.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=N_.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=N_.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=N_.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=N_.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=N_.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=N_.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=N_.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=N_.xMaxYMax;[b];[I]=null;[L]=null;[R]=null;[F]=!1;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,n&&(this[F]=!!n.readOnly,this[I]=n.getAttribute||null,this[L]=n.setAttribute||null)}get align(){let e=this[I]?this[I]():this[R];if(!e)return N_.xMidYMid;let t=e.split(/\s+/)[0];return N_[t]===void 0?N_.xMidYMid:N_[t]}set align(e){if(this[F])throw new this[b].TypeError(`Failed to set the 'align' property on 'SVGPreserveAspectRatio': The object is read-only.`);let t=Number(e);if(isNaN(t)||t<1||t>P_.length)throw new this[b].TypeError(`Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.`);this[R]=`${P_[t]} ${F_[this.meetOrSlice]}`,this[L]&&this[L](this[R])}get meetOrSlice(){let e=this[I]?this[I]():this[R];if(!e)return j_.meet;let t=e.split(/\s+/)[1];return!t||j_[t]===void 0?j_.meet:j_[t]}set meetOrSlice(e){if(this[F])throw new this[b].TypeError(`Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The object is read-only.`);let t=Number(e);if(isNaN(t)||t<1||t>2)throw new this[b].TypeError(`Failed to set the 'meetOrSlice' property on 'SVGPreserveAspectRatio': The meetOrSlice provided is invalid.`);this[R]=`${P_[this.align]} ${F_[t]}`,this[L]&&this[L](this[R])}},L_=class{[b];[I];[L];[ni]=null;[ri]=null;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute}get animVal(){return this[ri]||(this[ri]=new I_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new I_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},$=class{[b];[I];[L];[ni]=null;[ri]=null;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute}get animVal(){return this[ri]||(this[ri]=new C_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new C_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},R_=class extends g_{[mi]=null;[D]=null;[O]=null;[y]=null;[h]=null;[So]=1;[ai]=null;get onafterprint(){return Z.getEventListener(this,`onafterprint`)}set onafterprint(e){this[V].set(`onafterprint`,e)}get onbeforeprint(){return Z.getEventListener(this,`onbeforeprint`)}set onbeforeprint(e){this[V].set(`onbeforeprint`,e)}get onbeforeunload(){return Z.getEventListener(this,`onbeforeunload`)}set onbeforeunload(e){this[V].set(`onbeforeunload`,e)}get ongamepadconnected(){return Z.getEventListener(this,`ongamepadconnected`)}set ongamepadconnected(e){this[V].set(`ongamepadconnected`,e)}get ongamepaddisconnected(){return Z.getEventListener(this,`ongamepaddisconnected`)}set ongamepaddisconnected(e){this[V].set(`ongamepaddisconnected`,e)}get onhashchange(){return Z.getEventListener(this,`onhashchange`)}set onhashchange(e){this[V].set(`onhashchange`,e)}get onlanguagechange(){return Z.getEventListener(this,`onlanguagechange`)}set onlanguagechange(e){this[V].set(`onlanguagechange`,e)}get onmessage(){return Z.getEventListener(this,`onmessage`)}set onmessage(e){this[V].set(`onmessage`,e)}get onmessageerror(){return Z.getEventListener(this,`onmessageerror`)}set onmessageerror(e){this[V].set(`onmessageerror`,e)}get onoffline(){return Z.getEventListener(this,`onoffline`)}set onoffline(e){this[V].set(`onoffline`,e)}get ononline(){return Z.getEventListener(this,`ononline`)}set ononline(e){this[V].set(`ononline`,e)}get onpagehide(){return Z.getEventListener(this,`onpagehide`)}set onpagehide(e){this[V].set(`onpagehide`,e)}get onpageshow(){return Z.getEventListener(this,`onpageshow`)}set onpageshow(e){this[V].set(`onpageshow`,e)}get onpopstate(){return Z.getEventListener(this,`onpopstate`)}set onpopstate(e){this[V].set(`onpopstate`,e)}get onrejectionhandled(){return Z.getEventListener(this,`onrejectionhandled`)}set onrejectionhandled(e){this[V].set(`onrejectionhandled`,e)}get onstorage(){return Z.getEventListener(this,`onstorage`)}set onstorage(e){this[V].set(`onstorage`,e)}get onunhandledrejection(){return Z.getEventListener(this,`onunhandledrejection`)}set onunhandledrejection(e){this[V].set(`onunhandledrejection`,e)}get onunload(){return Z.getEventListener(this,`onunload`)}set onunload(e){this[V].set(`onunload`,e)}get preserveAspectRatio(){return this[mi]||(this[mi]=new L_(N,this[b],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[mi]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get currentScale(){return this[So]}set currentScale(e){let t=typeof e==`number`?e:parseFloat(String(e));if(isNaN(t))throw this[b].TypeError(`Failed to set the 'currentScale' property on 'SVGSVGElement': The provided float value is non-finite.`);t<1||(this[So]=t)}get currentTranslate(){return new y_(N,this[b])}get viewBox(){return this[ai]||(this[ai]=new k_(N,this[b],{getAttribute:()=>this.getAttribute(`viewBox`),setAttribute:e=>this.setAttribute(`viewBox`,e)})),this[ai]}pauseAnimations(){}unpauseAnimations(){}animationsPaused(){return!1}getCurrentTime(){return 0}setCurrentTime(e){}getIntersectionList(e,t){return new Bc(N,[])}getEnclosureList(e,t){return new Bc(N,[])}checkIntersection(e,t){return!1}checkEnclosure(e,t){return!1}deselectAll(){}createSVGNumber(){return new O_(N,this[b])}createSVGLength(){return new C_(N,this[b])}createSVGAngle(){return new D_(N,this[b])}createSVGPoint(){return new y_(N,this[b])}createSVGMatrix(){return new o_(N,this[b])}createSVGRect(){return new __(N,this[b])}createSVGTransform(){return new d_(N,this[b])}createSVGTransformFromMatrix(e){let t=new d_(N,this[b]);return t.setMatrix(e),t}getElementsByClassName(e){return kd.getElementsByClassName(this,e)}getElementsByTagName(e){return kd.getElementsByTagName(this,e)}getElementsByTagNameNS(e,t){return kd.getElementsByTagNameNS(this,e,t)}getElementById(e){return kd.getElementById(this,e)}[Nn](e=!1){return super[Nn](e)}},z_=class extends hh{[$r]=null;[ei]=null;get onbegin(){return Z.getEventListener(this,`onbegin`)}set onbegin(e){this[V].set(`onbegin`,e)}get onend(){return Z.getEventListener(this,`onend`)}set onend(e){this[V].set(`onend`,e)}get onrepeat(){return Z.getEventListener(this,`onrepeat`)}set onrepeat(e){this[V].set(`onrepeat`,e)}get requiredExtensions(){return this[$r]||(this[$r]=new r_(N,this[b],{getAttribute:()=>this.getAttribute(`requiredExtensions`),setAttribute:e=>this.setAttribute(`requiredExtensions`,e)})),this[$r]}get systemLanguage(){return this[ei]||(this[ei]=new r_(N,this[b],{getAttribute:()=>this.getAttribute(`systemLanguage`),setAttribute:e=>this.setAttribute(`systemLanguage`,e)})),this[ei]}get targetElement(){return null}},B_=class extends z_{},V_=class extends z_{},H_=class extends z_{},U_=class{[b];[I];[L];[mr]=0;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute,this[mr]=n.defaultValue||0}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[I]();if(!e)return this[mr];let t=parseFloat(e);return isNaN(t)?this[mr]:t}set baseVal(e){let t=typeof e==`number`?e:parseFloat(e);if(isNaN(t))throw new this[b].TypeError(`TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedNumber': The provided float value is non-finite.`);this[L](String(t))}},W_=class extends g_{[ii]=null;get pathLength(){return this[ii]||(this[ii]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`pathLength`),setAttribute:e=>this.setAttribute(`pathLength`,e)})),this[ii]}isPointInFill(e){if(!(e instanceof y_))throw TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);return!1}isPointInStroke(e){if(!(e instanceof y_))throw TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);return!1}getTotalLength(){return 0}getPointAtLength(e){return new y_(N,this[b])}},G_=class extends W_{[yi]=null;[bi]=null;[xi]=null;get cx(){return this[yi]||(this[yi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`cx`),setAttribute:e=>this.setAttribute(`cx`,e)})),this[yi]}get cy(){return this[bi]||(this[bi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`cy`),setAttribute:e=>this.setAttribute(`cy`,e)})),this[bi]}get r(){return this[xi]||(this[xi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`r`),setAttribute:e=>this.setAttribute(`r`,e)})),this[xi]}},K_=class{[b];[I];[L];[li];[mr];constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute,this[li]=n.values,this[mr]=n.defaultValue}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[I]();if(!e)return this[li].indexOf(this[mr])+1;let t=this[li].indexOf(e);if(t===-1){let e=this[li].indexOf(null);return e===-1?0:e+1}return t+1}set baseVal(e){let t=Number(e);if(isNaN(t)&&(t=0),t<1)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided is ${t}, which is not settable.`);if(t>this[li].length)throw TypeError(`Failed to set the 'baseVal' property on 'SVGAnimatedEnumeration': The enumeration value provided (${t}) is larger than the largest allowed value (${this[li].length}).`);let n=this[I](),r=this[li][t-1]===null,i=r?`0`:this[li][t-1];(!n||r&&this[li].includes(n)||!r&&n!==i)&&this[L](i||``)}},q_=class extends hh{[Si]=null;get clipPathUnits(){return this[Si]||(this[Si]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`clipPathUnits`),setAttribute:e=>this.setAttribute(`clipPathUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Si]}},J_=class extends g_{},Y_=class extends hh{},X_=class extends W_{[yi]=null;[bi]=null;[_i]=null;[vi]=null;get cx(){return this[yi]||(this[yi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`cx`),setAttribute:e=>this.setAttribute(`cx`,e)})),this[yi]}get cy(){return this[bi]||(this[bi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`cy`),setAttribute:e=>this.setAttribute(`cy`,e)})),this[bi]}get rx(){return this[_i]||(this[_i]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`rx`),setAttribute:e=>this.setAttribute(`rx`,e)})),this[_i]}get ry(){return this[vi]||(this[vi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`ry`),setAttribute:e=>this.setAttribute(`ry`,e)})),this[vi]}},Z_=class{[b];[I];[L];constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[I]()||``}set baseVal(e){this[L](String(e))}},Q_=class extends hh{static SVG_FEBLEND_MODE_UNKNOWN=0;static SVG_FEBLEND_MODE_NORMAL=1;static SVG_FEBLEND_MODE_MULTIPLY=2;static SVG_FEBLEND_MODE_SCREEN=3;static SVG_FEBLEND_MODE_DARKEN=4;static SVG_FEBLEND_MODE_LIGHTEN=5;static SVG_FEBLEND_MODE_OVERLAY=6;static SVG_FEBLEND_MODE_COLOR_DODGE=7;static SVG_FEBLEND_MODE_COLOR_BURN=8;static SVG_FEBLEND_MODE_HARD_LIGHT=9;static SVG_FEBLEND_MODE_SOFT_LIGHT=10;static SVG_FEBLEND_MODE_DIFFERENCE=11;static SVG_FEBLEND_MODE_EXCLUSION=12;static SVG_FEBLEND_MODE_HUE=13;static SVG_FEBLEND_MODE_SATURATION=14;static SVG_FEBLEND_MODE_COLOR=15;static SVG_FEBLEND_MODE_LUMINOSITY=16;[h]=null;[z]=null;[Da]=null;[xn]=null;[D]=null;[O]=null;[y]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get in2(){return this[Da]||(this[Da]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Da]}get mode(){return this[xn]||(this[xn]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`mode`),setAttribute:e=>this.setAttribute(`mode`,e),values:[`normal`,`multiply`,`screen`,`darken`,`lighten`,`overlay`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],defaultValue:`normal`})),this[xn]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}};const $_=/[\t\f\n\r, ]+/;var ev=class e{[b];[I];[L];[F]=!1;[M]={items:[],attributeValue:``};constructor(t,n,r){if(t!==N||(this[b]=n,this[F]=!!r.readOnly,this[I]=r.getAttribute,this[L]=r.setAttribute,t!==N))throw TypeError(`Illegal constructor`);let i=new zc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[P]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[P]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[P]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[P]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[P]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[P]().length}get numberOfItems(){return this[P]().length}[Symbol.iterator](){return this[P]().values()}clear(){if(this[F])throw new this[b].TypeError(`Failed to execute 'clear' on 'SVGNumberList': The object is read-only.`);for(let e of this[M].items)e[I]=null,e[L]=null;this[M].items=[],this[M].attributeValue=``,this[L](``)}initialize(e){if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': 1 arguments required, but only ${arguments.length} present.`);if(this[F])throw new this[b].TypeError(`Failed to execute 'initialize' on 'SVGNumberList': The object is read-only.`);for(let e of this[M].items)e[I]=null,e[L]=null;return e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||`0`).join(` `),this[L](this[M].attributeValue)},this[M].items=[e],this[M].attributeValue=e[R],this[L](e[R]||``),e}getItem(e){let t=this[P]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': The object is read-only.`);if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof O_))throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.`);let n=this[P](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||`0`).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]||`0`).join(` `),this[L](this[M].attributeValue),e}replaceItem(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': The object is read-only.`);if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof O_))throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.`);let n=this[P](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][I]=null,n[t][L]=null);let i=n[t];return n[t]=e,e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||`0`).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]||`0`).join(` `),this[L](this[M].attributeValue),i}removeItem(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'removeItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);let t=this[P]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[b].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is greater than the maximum bound.`,H.indexSizeError);if(e<0)throw new this[b].DOMException(`Failed to execute 'removeItem' on 'SVGNumberList': The index provided (${e}) is negative.`,H.indexSizeError);let n=t[e];return n&&(n[I]=null,n[L]=null),t.splice(e,1),this[L](t.map(e=>e[R]||`0`).join(` `)),n}appendItem(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof O_))throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGNumberList': parameter 1 is not of type 'SVGNumber'.`);let t=this[P](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||`0`).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=t.map(e=>e[R]||`0`).join(` `),this[L](this[M].attributeValue),e}[P](){let e=this[I]()??``,t=this[M];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[I]=null,e[L]=null;let n=[],r=e.trim();if(r){let e=r.split($_);for(let t=0,r=e.length;t<r;t++){let r=new O_(N,this[b],{readOnly:this[F],getAttribute:()=>r[R],setAttribute:()=>{this[M].attributeValue=this[P]().map(e=>e[R]||`0`).join(` `),this[L](this[M].attributeValue)}});r[R]=String(parseFloat(e[t])),n.push(r)}}return t.attributeValue=e,t.items=n,n}},tv=class{[b];[I];[L];[ni]=null;[ri]=null;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute}get animVal(){return this[ri]||(this[ri]=new ev(N,this[b],{readOnly:!0,getAttribute:this[I],setAttribute:()=>{}})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new ev(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},nv=class extends hh{static SVG_FEBLEND_TYPE_UNKNOWN=0;static SVG_FEBLEND_TYPE_MATRIX=1;static SVG_FEBLEND_TYPE_SATURATE=2;static SVG_FEBLEND_TYPE_HUEROTATE=3;static SVG_FEBLEND_TYPE_LUMINANCETOALPHA=4;[h]=null;[z]=null;[Da]=null;[B]=null;[qr]=null;[li]=null;[D]=null;[O]=null;[y]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get in2(){return this[Da]||(this[Da]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Da]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get type(){return this[qr]||(this[qr]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`matrix`,`saturate`,`huerotate`,`luminancetoalpha`],defaultValue:`matrix`})),this[qr]}get values(){return this[li]||(this[li]=new tv(N,this[b],{getAttribute:()=>this.getAttribute(`values`),setAttribute:e=>this.setAttribute(`values`,e)})),this[li]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},rv=class extends hh{[h]=null;[z]=null;[B]=null;[D]=null;[O]=null;[y]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},iv=class extends hh{static SVG_FECOMPOSITE_OPERATOR_UNKNOWN=0;static SVG_FECOMPOSITE_OPERATOR_OVER=1;static SVG_FECOMPOSITE_OPERATOR_IN=2;static SVG_FECOMPOSITE_OPERATOR_OUT=3;static SVG_FECOMPOSITE_OPERATOR_ATOP=4;static SVG_FECOMPOSITE_OPERATOR_XOR=5;static SVG_FECOMPOSITE_OPERATOR_ARITHMETIC=6;[h]=null;[z]=null;[B]=null;[qr]=null;[li]=null;[D]=null;[O]=null;[y]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get type(){return this[qr]||(this[qr]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`over`,`in`,`out`,`atop`,`xor`,`arithmetic`],defaultValue:`over`})),this[qr]}get values(){return this[li]||(this[li]=new tv(N,this[b],{getAttribute:()=>this.getAttribute(`values`),setAttribute:e=>this.setAttribute(`values`,e)})),this[li]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},av=class{[b];[I];[L];constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){return this[I]()===`true`}set baseVal(e){this[L](String(typeof e==`boolean`?e:!!e))}},ov=class{[b];[I];[L];constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute}get animVal(){return this.baseVal}set animVal(e){}get baseVal(){let e=this[I]();if(!e)return 0;let t=parseInt(e);return isNaN(t)?0:t}set baseVal(e){let t=parseInt(String(e));if(isNaN(t))throw new this[b].TypeError(`TypeError: Failed to set the 'baseVal' property on 'SVGAnimatedInteger': The provided float value is non-finite.`);this[L](String(t))}},sv=class extends hh{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[Oa]=null;[ka]=null;[Aa]=null;[h]=null;[z]=null;[ja]=null;[Ma]=null;[Na]=null;[Pa]=null;[Fa]=null;[Ia]=null;[B]=null;[La]=null;[Ra]=null;[y]=null;[D]=null;[O]=null;get bias(){return this[Oa]||(this[Oa]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`bias`),setAttribute:e=>this.setAttribute(`bias`,e)})),this[Oa]}get divisor(){return this[ka]||(this[ka]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`divisor`),setAttribute:e=>this.setAttribute(`divisor`,e)})),this[ka]}get edgeMode(){return this[Aa]||(this[Aa]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`edgeMode`),setAttribute:e=>this.setAttribute(`edgeMode`,e),values:[`duplicate`,`wrap`,`none`],defaultValue:`duplicate`})),this[Aa]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get kernelMatrix(){return this[ja]||(this[ja]=new tv(N,this[b],{getAttribute:()=>this.getAttribute(`kernelMatrix`),setAttribute:e=>this.setAttribute(`kernelMatrix`,e)})),this[ja]}get kernelUnitLengthX(){return this[Ma]||(this[Ma]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Ma]}get kernelUnitLengthY(){return this[Na]||(this[Na]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Na]}get orderX(){return this[Pa]||(this[Pa]=new ov(N,this[b],{getAttribute:()=>this.getAttribute(`orderX`),setAttribute:e=>this.setAttribute(`orderX`,e)})),this[Pa]}get orderY(){return this[Fa]||(this[Fa]=new ov(N,this[b],{getAttribute:()=>this.getAttribute(`orderY`),setAttribute:e=>this.setAttribute(`orderY`,e)})),this[Fa]}get preserveAlpha(){return this[Ia]||(this[Ia]=new av(N,this[b],{getAttribute:()=>this.getAttribute(`preserveAlpha`),setAttribute:e=>this.setAttribute(`preserveAlpha`,e)})),this[Ia]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get targetX(){return this[La]||(this[La]=new ov(N,this[b],{getAttribute:()=>this.getAttribute(`targetX`),setAttribute:e=>this.setAttribute(`targetX`,e)})),this[La]}get targetY(){return this[Ra]||(this[Ra]=new ov(N,this[b],{getAttribute:()=>this.getAttribute(`targetY`),setAttribute:e=>this.setAttribute(`targetY`,e)})),this[Ra]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},cv=class extends hh{[za]=null;[h]=null;[z]=null;[Ma]=null;[Na]=null;[B]=null;[Ba]=null;[y]=null;[D]=null;[O]=null;get diffuseConstant(){return this[za]||(this[za]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`diffuseConstant`),setAttribute:e=>this.setAttribute(`diffuseConstant`,e)})),this[za]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get kernelUnitLengthX(){return this[Ma]||(this[Ma]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Ma]}get kernelUnitLengthY(){return this[Na]||(this[Na]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Na]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get surfaceScale(){return this[Ba]||(this[Ba]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`surfaceScale`),setAttribute:e=>this.setAttribute(`surfaceScale`,e)})),this[Ba]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},lv=class extends hh{static SVG_CHANNEL_UNKNOWN=0;static SVG_CHANNEL_R=1;static SVG_CHANNEL_G=2;static SVG_CHANNEL_B=3;static SVG_CHANNEL_A=4;[h]=null;[z]=null;[Da]=null;[B]=null;[Va]=null;[y]=null;[D]=null;[Ha]=null;[O]=null;[Ua]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get in2(){return this[Da]||(this[Da]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Da]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get scale(){return this[Va]||(this[Va]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`scale`),setAttribute:e=>this.setAttribute(`scale`,e)})),this[Va]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get xChannelSelector(){return this[Ha]||(this[Ha]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`xChannelSelector`),setAttribute:e=>this.setAttribute(`xChannelSelector`,e),values:[`r`,`g`,`b`,`a`],defaultValue:`r`})),this[Ha]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get yChannelSelector(){return this[Ua]||(this[Ua]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`yChannelSelector`),setAttribute:e=>this.setAttribute(`yChannelSelector`,e),values:[`r`,`g`,`b`,`a`],defaultValue:`r`})),this[Ua]}},uv=class extends hh{[Wa]=null;[Ga]=null;get azimuth(){return this[Wa]||(this[Wa]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`azimuth`),setAttribute:e=>this.setAttribute(`azimuth`,e)})),this[Wa]}get elevation(){return this[Ga]||(this[Ga]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`elevation`),setAttribute:e=>this.setAttribute(`elevation`,e)})),this[Ga]}},dv=class extends hh{[Ka]=null;[qa]=null;[h]=null;[z]=null;[B]=null;[Ja]=null;[Ya]=null;[y]=null;[D]=null;[O]=null;get dx(){return this[Ka]||(this[Ka]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[Ka]}get dy(){return this[qa]||(this[qa]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[qa]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get stdDeviationX(){return this[Ja]||(this[Ja]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`stdDeviationX`),setAttribute:e=>this.setAttribute(`stdDeviationX`,e),defaultValue:2})),this[Ja]}get stdDeviationY(){return this[Ya]||(this[Ya]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`stdDeviationY`),setAttribute:e=>this.setAttribute(`stdDeviationY`,e),defaultValue:2})),this[Ya]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}setStdDeviation(e,t){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=t}},fv=class extends hh{[h]=null;[B]=null;[y]=null;[D]=null;[O]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},pv=class extends hh{static SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN=0;static SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY=1;static SVG_FECOMPONENTTRANSFER_TYPE_TABLE=2;static SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE=3;static SVG_FECOMPONENTTRANSFER_TYPE_LINEAR=4;static SVG_FECOMPONENTTRANSFER_TYPE_GAMMA=5;[qr]=null;[Xa]=null;[Za]=null;[Qa]=null;[$a]=null;[eo]=null;[Bi]=null;get type(){return this[qr]||(this[qr]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`identity`,`table`,`discrete`,`linear`,`gamma`],defaultValue:`identity`})),this[qr]}get tableValues(){return this[Xa]||(this[Xa]=new tv(N,this[b],{getAttribute:()=>this.getAttribute(`tableValues`),setAttribute:e=>this.setAttribute(`tableValues`,e)})),this[Xa]}get slope(){return this[Za]||(this[Za]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`slope`),setAttribute:e=>this.setAttribute(`slope`,e),defaultValue:1})),this[Za]}get intercept(){return this[Qa]||(this[Qa]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`intercept`),setAttribute:e=>this.setAttribute(`intercept`,e)})),this[Qa]}get amplitude(){return this[$a]||(this[$a]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`amplitude`),setAttribute:e=>this.setAttribute(`amplitude`,e),defaultValue:1})),this[$a]}get exponent(){return this[eo]||(this[eo]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`exponent`),setAttribute:e=>this.setAttribute(`exponent`,e),defaultValue:1})),this[eo]}get offset(){return this[Bi]||(this[Bi]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`offset`),setAttribute:e=>this.setAttribute(`offset`,e)})),this[Bi]}},mv=class extends pv{},hv=class extends pv{},gv=class extends pv{},_v=class extends pv{},vv=class extends hh{static SVG_EDGEMODE_UNKNOWN=0;static SVG_EDGEMODE_DUPLICATE=1;static SVG_EDGEMODE_WRAP=2;static SVG_EDGEMODE_NONE=3;[Aa]=null;[h]=null;[z]=null;[B]=null;[Ja]=null;[Ya]=null;[y]=null;[D]=null;[O]=null;get edgeMode(){return this[Aa]||(this[Aa]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`edgeMode`),setAttribute:e=>this.setAttribute(`edgeMode`,e),values:[`duplicate`,`wrap`,`none`],defaultValue:`duplicate`})),this[Aa]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get stdDeviationX(){return this[Ja]||(this[Ja]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`stdDeviationX`)||`2`,setAttribute:e=>this.setAttribute(`stdDeviationX`,e)})),this[Ja]}get stdDeviationY(){return this[Ya]||(this[Ya]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`stdDeviationY`)||`2`,setAttribute:e=>this.setAttribute(`stdDeviationY`,e)})),this[Ya]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}setStdDeviation(e,t){this.stdDeviationX.baseVal=e,this.stdDeviationY.baseVal=t}},yv=class extends hh{[to]=null;[h]=null;[Di]=null;[mi]=null;[B]=null;[y]=null;[D]=null;[O]=null;get crossOrigin(){return this.getAttribute(`crossorigin`)}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get href(){return this[Di]||(this[Di]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get preserveAspectRatio(){return this[mi]||(this[mi]=new L_(N,this[b],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[mi]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},bv=class extends hh{[h]=null;[B]=null;[y]=null;[D]=null;[O]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},xv=class extends hh{[z]=null;get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}},Sv=class extends hh{static SVG_MORPHOLOGY_OPERATOR_UNKNOWN=0;static SVG_MORPHOLOGY_OPERATOR_ERODE=1;static SVG_MORPHOLOGY_OPERATOR_DILATE=2;[h]=null;[z]=null;[no]=null;[ro]=null;[io]=null;[B]=null;[y]=null;[D]=null;[O]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get operator(){return this[no]||(this[no]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`operator`),setAttribute:e=>this.setAttribute(`operator`,e),values:[`erode`,`dilate`],defaultValue:`erode`})),this[no]}get radiusX(){return this[ro]||(this[ro]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`radiusX`),setAttribute:e=>this.setAttribute(`radiusX`,e)})),this[ro]}get radiusY(){return this[io]||(this[io]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`radiusY`),setAttribute:e=>this.setAttribute(`radiusY`,e)})),this[io]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},Cv=class extends hh{[h]=null;[z]=null;[Ka]=null;[qa]=null;[B]=null;[y]=null;[D]=null;[O]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get dx(){return this[Ka]||(this[Ka]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[Ka]}get dy(){return this[qa]||(this[qa]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[qa]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},wv=class extends hh{[D]=null;[O]=null;[Wi]=null;get x(){return this[D]||(this[D]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get z(){return this[Wi]||(this[Wi]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`z`),setAttribute:e=>this.setAttribute(`z`,e)})),this[Wi]}},Tv=class extends hh{[h]=null;[z]=null;[Ma]=null;[Na]=null;[B]=null;[ao]=null;[oo]=null;[Ba]=null;[y]=null;[D]=null;[O]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get kernelUnitLengthX(){return this[Ma]||(this[Ma]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Ma]}get kernelUnitLengthY(){return this[Na]||(this[Na]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Na]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get specularConstant(){return this[ao]||(this[ao]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`specularConstant`),setAttribute:e=>this.setAttribute(`specularConstant`,e),defaultValue:1})),this[ao]}get specularExponent(){return this[oo]||(this[oo]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`specularExponent`),setAttribute:e=>this.setAttribute(`specularExponent`,e),defaultValue:1})),this[oo]}get surfaceScale(){return this[Ba]||(this[Ba]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`surfaceScale`),setAttribute:e=>this.setAttribute(`surfaceScale`,e),defaultValue:1})),this[Ba]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},Ev=class extends hh{[D]=null;[O]=null;[Wi]=null;[so]=null;[co]=null;[lo]=null;[oo]=null;[uo]=null;get x(){return this[D]||(this[D]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get z(){return this[Wi]||(this[Wi]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`z`),setAttribute:e=>this.setAttribute(`z`,e)})),this[Wi]}get pointsAtX(){return this[so]||(this[so]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`pointsAtX`),setAttribute:e=>this.setAttribute(`pointsAtX`,e)})),this[so]}get pointsAtY(){return this[co]||(this[co]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`pointsAtY`),setAttribute:e=>this.setAttribute(`pointsAtY`,e)})),this[co]}get pointsAtZ(){return this[lo]||(this[lo]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`pointsAtZ`),setAttribute:e=>this.setAttribute(`pointsAtZ`,e)})),this[lo]}get specularExponent(){return this[oo]||(this[oo]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`specularExponent`),setAttribute:e=>this.setAttribute(`specularExponent`,e),defaultValue:1})),this[oo]}get limitingConeAngle(){return this[uo]||(this[uo]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`limitingConeAngle`),setAttribute:e=>this.setAttribute(`limitingConeAngle`,e)})),this[uo]}},Dv=class extends hh{[h]=null;[z]=null;[B]=null;[y]=null;[D]=null;[O]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get in1(){return this[z]||(this[z]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},Ov=class extends hh{static SVG_TURBULENCE_TYPE_UNKNOWN=0;static SVG_TURBULENCE_TYPE_FRACTALNOISE=1;static SVG_TURBULENCE_TYPE_TURBULENCE=2;static SVG_STITCHTYPE_UNKNOWN=0;static SVG_STITCHTYPE_STITCH=1;static SVG_STITCHTYPE_NOSTITCH=2;[fo]=null;[po]=null;[h]=null;[mo]=null;[B]=null;[ho]=null;[go]=null;[qr]=null;[y]=null;[D]=null;[O]=null;get baseFrequencyX(){return this[fo]||(this[fo]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`baseFrequencyX`),setAttribute:e=>this.setAttribute(`baseFrequencyX`,e)})),this[fo]}get baseFrequencyY(){return this[po]||(this[po]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`baseFrequencyY`),setAttribute:e=>this.setAttribute(`baseFrequencyY`,e)})),this[po]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get numOctaves(){return this[mo]||(this[mo]=new ov(N,this[b],{getAttribute:()=>this.getAttribute(`numOctaves`),setAttribute:e=>this.setAttribute(`numOctaves`,e)})),this[mo]}get result(){return this[B]||(this[B]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get seed(){return this[ho]||(this[ho]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`seed`),setAttribute:e=>this.setAttribute(`seed`,e)})),this[ho]}get stitchTiles(){return this[go]||(this[go]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`stitchTiles`),setAttribute:e=>this.setAttribute(`stitchTiles`,e),values:[`stitch`,`noStitch`],defaultValue:`stitch`})),this[go]}get type(){return this[qr]||(this[qr]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`type`),setAttribute:e=>this.setAttribute(`type`,e),values:[`fractalNoise`,`turbulence`],defaultValue:`turbulence`})),this[qr]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},kv=class extends hh{[Di]=null;[Ti]=null;[Ei]=null;[D]=null;[O]=null;[y]=null;[h]=null;get href(){return this[Di]||(this[Di]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get filterUnits(){return this[Ti]||(this[Ti]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`filterUnits`),setAttribute:e=>this.setAttribute(`filterUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Ti]}get primitiveUnits(){return this[Ei]||(this[Ei]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`primitiveUnits`),setAttribute:e=>this.setAttribute(`primitiveUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Ei]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},Av=class extends g_{[D]=null;[O]=null;[y]=null;[h]=null;get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},jv=class extends g_{},Mv=class extends g_{[Di]=null;[mi]=null;[D]=null;[O]=null;[y]=null;[h]=null;get crossOrigin(){return this.getAttribute(`crossorigin`)}set crossOrigin(e){this.setAttribute(`crossorigin`,e)}get href(){return this[Di]||(this[Di]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get decoding(){let e=this.getAttribute(`decoding`);switch(e){case`sync`:case`async`:case`auto`:return e;default:return`auto`}}set decoding(e){this.setAttribute(`decoding`,e)}get preserveAspectRatio(){return this[mi]||(this[mi]=new L_(N,this[b],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[mi]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}decode(){return Promise.resolve()}},Nv=class extends W_{[Oi]=null;[ki]=null;[Ai]=null;[ji]=null;get x1(){return this[Oi]||(this[Oi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x1`),setAttribute:e=>this.setAttribute(`x1`,e)})),this[Oi]}get y1(){return this[ki]||(this[ki]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y1`),setAttribute:e=>this.setAttribute(`y1`,e)})),this[ki]}get x2(){return this[Ai]||(this[Ai]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x2`),setAttribute:e=>this.setAttribute(`x2`,e)})),this[Ai]}get y2(){return this[ji]||(this[ji]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y2`),setAttribute:e=>this.setAttribute(`y2`,e)})),this[ji]}},Pv=class extends g_{static SVG_SPREADMETHOD_UNKNOWN=0;static SVG_SPREADMETHOD_PAD=1;static SVG_SPREADMETHOD_REFLECT=2;static SVG_SPREADMETHOD_REPEAT=3;[Di]=null;[Mi]=null;[Ni]=null;[Pi]=null;get href(){return this[Di]||(this[Di]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get gradientUnits(){return this[Mi]||(this[Mi]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`gradientUnits`),setAttribute:e=>this.setAttribute(`gradientUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`objectBoundingBox`})),this[Mi]}get gradientTransform(){return this[Ni]||(this[Ni]=new h_(N,this[b],{getAttribute:()=>this.getAttribute(`gradientTransform`),setAttribute:e=>this.setAttribute(`gradientTransform`,e)})),this[Ni]}get spreadMethod(){return this[Pi]||(this[Pi]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`spreadMethod`),setAttribute:e=>this.setAttribute(`spreadMethod`,e),values:[`pad`,`reflect`,`repeat`],defaultValue:`pad`})),this[Pi]}},Fv=class extends Pv{[Oi]=null;[ki]=null;[Ai]=null;[ji]=null;get x1(){return this[Oi]||(this[Oi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x1`),setAttribute:e=>this.setAttribute(`x1`,e)})),this[Oi]}get y1(){return this[ki]||(this[ki]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y1`),setAttribute:e=>this.setAttribute(`y1`,e)})),this[ki]}get x2(){return this[Ai]||(this[Ai]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x2`),setAttribute:e=>this.setAttribute(`x2`,e)})),this[Ai]}get y2(){return this[ji]||(this[ji]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y2`),setAttribute:e=>this.setAttribute(`y2`,e)})),this[ji]}},Iv=class{[b];[I];[L];[ni]=null;[ri]=null;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute}get animVal(){return this[ri]||(this[ri]=new D_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new D_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},Lv=class extends hh{static SVG_MARKER_ORIENT_UNKNOWN=0;static SVG_MARKER_ORIENT_AUTO=1;static SVG_MARKER_ORIENT_ANGLE=2;static SVG_MARKERUNITS_UNKNOWN=0;static SVG_MARKERUNITS_USERSPACEONUSE=1;static SVG_MARKERUNITS_STROKEWIDTH=2;SVG_MARKER_ORIENT_UNKNOWN=0;SVG_MARKER_ORIENT_AUTO=1;SVG_MARKER_ORIENT_ANGLE=2;[oi]=null;[si]=null;[ci]=null;[ui]=null;[di]=null;[fi]=null;[pi]=null;[ai]=null;[mi]=null;get markerUnits(){return this[oi]||(this[oi]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`markerUnits`),setAttribute:e=>this.setAttribute(`markerUnits`,e),values:[`userSpaceOnUse`,`strokeWidth`],defaultValue:`strokeWidth`})),this[oi]}get markerWidth(){return this[si]||(this[si]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`markerWidth`),setAttribute:e=>this.setAttribute(`markerWidth`,e)})),this[si]}get markerHeight(){return this[ci]||(this[ci]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`markerHeight`),setAttribute:e=>this.setAttribute(`markerHeight`,e)})),this[ci]}get orientType(){return this[ui]||(this[ui]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`orient`),setAttribute:e=>this.setAttribute(`orient`,e),values:[`auto`,null],defaultValue:`auto`})),this[ui]}get orientAngle(){return this[di]||(this[di]=new Iv(N,this[b],{getAttribute:()=>this.getAttribute(`orient`),setAttribute:e=>this.setAttribute(`orient`,e)})),this[di]}get refX(){return this[fi]||(this[fi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`refX`),setAttribute:e=>this.setAttribute(`refX`,e)})),this[fi]}get refY(){return this[pi]||(this[pi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`refY`),setAttribute:e=>this.setAttribute(`refY`,e)})),this[pi]}get viewBox(){return this[ai]||(this[ai]=new k_(N,this[b],{getAttribute:()=>this.getAttribute(`viewBox`),setAttribute:e=>this.setAttribute(`viewBox`,e)})),this[ai]}get preserveAspectRatio(){return this[mi]||(this[mi]=new L_(N,this[b],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[mi]}setOrientToAuto(){this.setAttribute(`orient`,`auto`)}setOrientToAngle(e){this.setAttribute(`orient`,e.valueAsString)}},Rv=class extends hh{[Ci]=null;[wi]=null;[D]=null;[O]=null;[y]=null;[h]=null;get maskUnits(){return this[Ci]||(this[Ci]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`maskUnits`),setAttribute:e=>this.setAttribute(`maskUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Ci]}get maskContentUnits(){return this[wi]||(this[wi]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`maskContentUnits`),setAttribute:e=>this.setAttribute(`maskContentUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[wi]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}},zv=class extends hh{},Bv=class extends hh{[Di]=null;get href(){return this[Di]||(this[Di]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}},Vv=class extends W_{},Hv=class extends hh{[Di]=null;[Fi]=null;[Ii]=null;[Li]=null;[D]=null;[O]=null;[y]=null;[h]=null;get href(){return this[Di]||(this[Di]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get patternUnits(){return this[Fi]||(this[Fi]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`patternUnits`),setAttribute:e=>this.setAttribute(`patternUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`objectBoundingBox`})),this[Fi]}get patternContentUnits(){return this[Ii]||(this[Ii]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`patternContentUnits`),setAttribute:e=>this.setAttribute(`patternContentUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Ii]}get patternTransform(){return this[Li]||(this[Li]=new h_(N,this[b],{getAttribute:()=>this.getAttribute(`patternTransform`),setAttribute:e=>this.setAttribute(`patternTransform`,e)})),this[Li]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}};const Uv=/[\t\f\n\r, ]+/;var Wv=class e{[b];[I];[L];[F]=!1;[M]={items:[],attributeValue:``};constructor(t,n,r){if(t!==N)throw TypeError(`Illegal constructor`);this[b]=n,this[F]=!!r.readOnly,this[I]=r.getAttribute,this[L]=r.setAttribute;let i=new zc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[P]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[P]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[P]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[P]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[P]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[P]().length}get numberOfItems(){return this[P]().length}[Symbol.iterator](){return this[P]().values()}clear(){if(this[F])throw new this[b].TypeError(`Failed to execute 'clear' on 'SVGPointList': The object is read-only.`);for(let e of this[M].items)e[I]=null,e[L]=null;this[M].items=[],this[M].attributeValue=``,this[L](``)}initialize(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'initialize' on 'SVGPointList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'initialize' on 'SVGPointList': 1 arguments required, but only ${arguments.length} present.`);if(!(e instanceof y_))throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);for(let e of this[M].items)e[I]=null,e[L]=null;return e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||`0 0`).join(` `),this[L](this[M].attributeValue)},this[M].items=[e],this[M].attributeValue=e[R],this[L](e[R]||``),e}getItem(e){let t=this[P]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': The object is read-only.`);if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof y_))throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);let n=this[P](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||`0 0`).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]||`0 0`).join(` `),this[L](this[M].attributeValue),e}replaceItem(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': The object is read-only.`);if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': 2 arguments required, but only ${arguments.length} present.`);if(!(e instanceof y_))throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);let n=this[P](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][I]=null,n[t][L]=null);let i=n[t];return n[t]=e,e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||`0 0`).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]||`0 0`).join(` `),this[L](this[M].attributeValue),i}removeItem(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'removeItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);let t=this[P]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[b].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is greater than the maximum bound.`,H.indexSizeError);if(e<0)throw new this[b].DOMException(`Failed to execute 'removeItem' on 'SVGPointList': The index provided (${e}) is negative.`,H.indexSizeError);let n=t[e];return n&&(n[I]=null,n[L]=null),t.splice(e,1),this[L](t.map(e=>e[R]||`0 0`).join(` `)),n}appendItem(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': 1 argument required, but only ${arguments.length} present.`);if(!(e instanceof y_))throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGPointList': parameter 1 is not of type 'SVGPoint'.`);let t=this[P](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]||`0 0`).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=t.map(e=>e[R]||`0 0`).join(` `),this[L](this[M].attributeValue),e}[P](){let e=this[I]()??``,t=this[M];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[I]=null,e[L]=null;let n=[],r=e.trim();if(r){let e=r.split(Uv);for(let t=0,r=e.length;t<r;t+=2){let r=parseFloat(e[t]),i=e[t+1]===void 0?``:` `+parseFloat(e[t+1]),a=new y_(N,this[b],{readOnly:this[F],getAttribute:()=>a[R],setAttribute:()=>{this[M].attributeValue=this[P]().map(e=>e[R]||`0 0`).join(` `),this[L](this[M].attributeValue)}});a[R]=`${r}${i}`,n.push(a)}}return t.attributeValue=e,t.items=n,n}},Gv=class extends W_{[hi]=null;[gi]=null;get animatedPoints(){return this[hi]||(this[hi]=new Wv(N,this[b],{readOnly:!0,getAttribute:()=>this.getAttribute(`points`),setAttribute:()=>{}})),this[hi]}get points(){return this[gi]||(this[gi]=new Wv(N,this[b],{getAttribute:()=>this.getAttribute(`points`),setAttribute:e=>this.setAttribute(`points`,e)})),this[gi]}},Kv=class extends W_{[hi]=null;[gi]=null;get animatedPoints(){return this[hi]||(this[hi]=new Wv(N,this[b],{readOnly:!0,getAttribute:()=>this.getAttribute(`points`),setAttribute:()=>{}})),this[hi]}get points(){return this[gi]||(this[gi]=new Wv(N,this[b],{getAttribute:()=>this.getAttribute(`points`),setAttribute:e=>this.setAttribute(`points`,e)})),this[gi]}},qv=class extends Pv{[yi]=null;[bi]=null;[xi]=null;[Ri]=null;[zi]=null;get cx(){return this[yi]||(this[yi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`cx`),setAttribute:e=>this.setAttribute(`cx`,e)})),this[yi]}get cy(){return this[bi]||(this[bi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`cy`),setAttribute:e=>this.setAttribute(`cy`,e)})),this[bi]}get r(){return this[xi]||(this[xi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`r`),setAttribute:e=>this.setAttribute(`r`,e)})),this[xi]}get fx(){return this[Ri]||(this[Ri]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`fx`),setAttribute:e=>this.setAttribute(`fx`,e)})),this[Ri]}get fy(){return this[zi]||(this[zi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`fy`),setAttribute:e=>this.setAttribute(`fy`,e)})),this[zi]}},Jv=class extends W_{[D]=null;[O]=null;[y]=null;[h]=null;[_i]=null;[vi]=null;get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get rx(){return this[_i]||(this[_i]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`rx`),setAttribute:e=>this.setAttribute(`rx`,e)})),this[_i]}get ry(){return this[vi]||(this[vi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`ry`),setAttribute:e=>this.setAttribute(`ry`,e)})),this[vi]}},Yv=class extends g_{[Di]=null;get href(){return this[Di]||(this[Di]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get type(){return this.getAttribute(`type`)||``}set type(e){this.setAttribute(`type`,e)}},Xv=class extends z_{},Zv=class extends hh{[Bi]=null;get offset(){return this[Bi]||(this[Bi]=new U_(N,this[b],{getAttribute:()=>this.getAttribute(`offset`),setAttribute:e=>this.setAttribute(`offset`,e)})),this[Bi]}},Qv=class extends hh{[en]=null;[Wn]=this;[Vi]=!1;get media(){return this.getAttribute(`media`)||`all`}set media(e){this.setAttribute(`media`,e)}get type(){return this.getAttribute(`type`)||`text/css`}set type(e){this.setAttribute(`type`,e)}get title(){return this.getAttribute(`title`)||``}set title(e){this.setAttribute(`title`,e)}get disabled(){return this[Vi]}set disabled(e){this[Vi]=!!e}get sheet(){return this[x]?(this[en]||(this[en]=new this[g][b].CSSStyleSheet,this[en].replaceSync(this.textContent)),this[en]):null}[we](){super[we](),this[en]=null}[Me](){super[Me](),this[en]=null}[Gn](){this[en]&&this[en].replaceSync(this.textContent)}},$v=class extends g_{},ey=class extends g_{},ty=class extends g_{static LENGTHADJUST_UNKNOWN=0;static LENGTHADJUST_SPACING=1;static LENGTHADJUST_SPACINGANDGLYPHS=2;[Hi]=null;[Ui]=null;get textLength(){return this[Hi]||(this[Hi]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`textLength`),setAttribute:e=>this.setAttribute(`textLength`,e)})),this[Hi]}get lengthAdjust(){return this[Ui]||(this[Ui]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`lengthAdjust`),setAttribute:e=>this.setAttribute(`lengthAdjust`,e),values:[`spacing`,`spacingAndGlyphs`],defaultValue:`spacing`})),this[Ui]}getNumberOfChars(){return 0}getComputedTextLength(){return 0}getSubStringLength(e,t){return 0}getStartPositionOfChar(e){return new y_(N,this[b])}getEndPositionOfChar(e){return new y_(N,this[b])}getExtentOfChar(e){return new __(N,this[b])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};const ny=/[\t\f\n\r, ]+/;var ry=class e{[b];[I];[L];[F]=!1;[M]={items:[],attributeValue:``};constructor(t,n,r){if(t!==N)throw TypeError(`Illegal constructor`);this[b]=n,this[F]=!!r.readOnly,this[I]=r.getAttribute,this[L]=r.setAttribute;let i=new zc(this,[e]);return new Proxy(this,{get:(e,t)=>{if(t===`length`||t===`numberOfItems`)return e[P]().length;if(t in e||typeof t==`symbol`)return i.bind(t),e[t];let n=Number(t);if(!isNaN(n))return e[P]()[n]},set(e,t,n){if(i.bind(t),typeof t==`symbol`)return e[t]=n,!0;let r=Number(t);return isNaN(r)&&(e[t]=n),!0},deleteProperty(e,t){if(typeof t==`symbol`)return delete e[t],!0;let n=Number(t);return isNaN(n)&&delete e[t],!0},ownKeys(e){return Object.keys(e[P]())},has(e,t){if(t in e)return!0;if(typeof t==`symbol`)return!1;let n=Number(t);return!isNaN(n)&&n>=0&&n<e[P]().length},defineProperty(e,t,n){return i.preventBinding(t),t in e?(Object.defineProperty(e,t,n),!0):!1},getOwnPropertyDescriptor(e,t){if(t in e||typeof t==`symbol`)return;let n=Number(t),r=e[P]();if(!isNaN(n)&&r[n])return{value:r[n],writable:!1,enumerable:!0,configurable:!0}}})}get length(){return this[P]().length}get numberOfItems(){return this[P]().length}[Symbol.iterator](){return this[P]().values()}clear(){this[L](``)}initialize(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'initialize' on 'SVGLengthList': 1 arguments required, but only ${arguments.length} present.`);for(let e of this[M].items)e[I]=null,e[L]=null;return e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]??`0`).join(` `),this[L](this[M].attributeValue)},this[M].items=[e],this[M].attributeValue=e[R],this[L](e[R]||``),e}getItem(e){let t=this[P]();return typeof e==`number`?t[e]?t[e]:null:(e=Number(e),e=isNaN(e)?0:e,t[e]?t[e]:null)}insertItemBefore(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': The object is read-only.`);if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'insertItemBefore' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let n=this[P](),r=n.indexOf(e);return r!==-1&&n.splice(r,1),t<0?t=0:t>n.length&&(t=n.length),n.splice(t,0,e),e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]??`0`).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]??`0`).join(` `),this[L](this[M].attributeValue),e}replaceItem(e,t){if(this[F])throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': The object is read-only.`);if(arguments.length<2)throw new this[b].TypeError(`Failed to execute 'replaceItem' on 'SVGLengthList': 2 arguments required, but only ${arguments.length} present.`);let n=this[P](),r=n.indexOf(e);if(r===t)return e;r!==-1&&n.splice(r,1),t<0?t=0:t>=n.length&&(t=n.length-1),n[t]&&(n[t][I]=null,n[t][L]=null);let i=n[t];return n[t]=e,e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]??`0`).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]??`0`).join(` `),this[L](this[M].attributeValue),i}removeItem(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'removeItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[P]();if(e=Number(e),isNaN(e)&&(e=0),e>=t.length)throw new this[b].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is greater than the maximum bound.`,H.indexSizeError);if(e<0)throw new this[b].DOMException(`Failed to execute 'removeItem' on 'SVGLengthList': The index provided (${e}) is negative.`,H.indexSizeError);let n=t[e];return n&&(n[I]=null,n[L]=null),t.splice(e,1),this[L](t.map(e=>e[R]??`0`).join(` `)),n}appendItem(e){if(this[F])throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': The object is read-only.`);if(arguments.length<1)throw new this[b].TypeError(`Failed to execute 'appendItem' on 'SVGLengthList': 1 argument required, but only ${arguments.length} present.`);let t=this[P](),n=t.indexOf(e);return n!==-1&&t.splice(n,1),t.push(e),e[I]=()=>e[R],e[L]=()=>{this[M].attributeValue=this[P]().map(e=>e[R]??`0`).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=t.map(e=>e[R]??`0`).join(` `),this[L](this[M].attributeValue),e}[P](){let e=this[I]()??``,t=this[M];if(t.attributeValue===e)return t.items;if(t.items.length)for(let e of t.items)e[I]=null,e[L]=null;let n=[],r=e.trim();if(r){let e=r.split(ny);for(let r=0,i=e.length;r<i;r++){let i=new C_(N,this[b],{readOnly:this[F],getAttribute:()=>i[R],setAttribute:e=>{i[R]=e;let r=n.map(e=>e[R]??`0`).join(` `);t.attributeValue=r,this[L](r)}});i[R]=e[r],n.push(i)}}return t.attributeValue=e,t.items=n,n}},iy=class{[b];[I];[L];[ni]=null;[ri]=null;constructor(e,t,n){if(e!==N)throw TypeError(`Illegal constructor`);this[b]=t,this[I]=n.getAttribute,this[L]=n.setAttribute}get animVal(){return this[ri]||(this[ri]=new ry(N,this[b],{readOnly:!0,getAttribute:this[I],setAttribute:this[L]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new ry(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},ay=class extends ty{[D]=null;[O]=null;[Ka]=null;[qa]=null;[Co]=null;get x(){return this[D]||(this[D]=new iy(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new iy(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get dx(){return this[Ka]||(this[Ka]=new iy(N,this[b],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[Ka]}get dy(){return this[qa]||(this[qa]=new iy(N,this[b],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[qa]}get rotate(){return this[Co]||(this[Co]=new tv(N,this[b],{getAttribute:()=>this.getAttribute(`rotate`),setAttribute:e=>this.setAttribute(`rotate`,e)})),this[Co]}},oy=class extends ay{},sy=class extends ty{static TEXTPATH_METHODTYPE_UNKNOWN=0;static TEXTPATH_METHODTYPE_ALIGN=1;static TEXTPATH_METHODTYPE_STRETCH=2;static TEXTPATH_SPACINGTYPE_UNKNOWN=0;static TEXTPATH_SPACINGTYPE_AUTO=1;static TEXTPATH_SPACINGTYPE_EXACT=2;[Di]=null;[wa]=null;[Ta]=null;[Ea]=null;get href(){return this[Di]||(this[Di]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get startOffset(){return this[wa]||(this[wa]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`startOffset`),setAttribute:e=>this.setAttribute(`startOffset`,e)})),this[wa]}get method(){return this[Ta]||(this[Ta]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`method`),setAttribute:e=>this.setAttribute(`method`,e),values:[`align`,`stretch`],defaultValue:`align`})),this[Ta]}get spacing(){return this[Ea]||(this[Ea]=new K_(N,this[b],{getAttribute:()=>this.getAttribute(`spacing`),setAttribute:e=>this.setAttribute(`spacing`,e),values:[`auto`,`exact`],defaultValue:`exact`})),this[Ea]}},cy=class extends hh{},ly=class extends ay{},uy=class extends g_{[Di]=null;[D]=null;[O]=null;[y]=null;[h]=null;get href(){return this[Di]||(this[Di]=new Z_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get x(){return this[D]||(this[D]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get width(){return this[y]||(this[y]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`width`),setAttribute:e=>this.setAttribute(`width`,e)})),this[y]}get height(){return this[h]||(this[h]=new $(N,this[b],{getAttribute:()=>this.getAttribute(`height`),setAttribute:e=>this.setAttribute(`height`,e)})),this[h]}},dy=class extends hh{},fy=class{static SVG_UNIT_TYPE_UNKNOWN=0;static SVG_UNIT_TYPE_USERSPACEONUSE=1;static SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;SVG_UNIT_TYPE_UNKNOWN=0;SVG_UNIT_TYPE_USERSPACEONUSE=1;SVG_UNIT_TYPE_OBJECTBOUNDINGBOX=2;constructor(e){if(e!==N)throw TypeError(`Illegal constructor`)}},py=class{window;constructor(e){this.window=e}enqueueReaction(e,t,n){let r=this.window.customElements[tt]?.get(e.localName);if(r&&e[g]===this.window.document)switch(t){case`connectedCallback`:if(r.lifecycleCallbacks.connectedCallback){let t=r.lifecycleCallbacks.connectedCallback?.call(e);if(t instanceof Promise){let e=new Y(this.window).getAsyncTaskManager();if(e){let n=e.startTask();t.then(()=>e.endTask(n)).catch(()=>e.endTask(n))}}}break;case`disconnectedCallback`:r.lifecycleCallbacks.disconnectedCallback&&r.lifecycleCallbacks.disconnectedCallback.call(e);break;case`attributeChangedCallback`:r.lifecycleCallbacks.attributeChangedCallback&&n?.length&&r.observedAttributes.has(n[0])&&r.lifecycleCallbacks.attributeChangedCallback.apply(e,n);break}}},my=class extends W{state;hasUAVisualTransition;constructor(e,t=null){super(e),this.state=t?.state??null,this.hasUAVisualTransition=t?.hasUAVisualTransition??!1}},hy=class extends W{code;reason;wasClean;constructor(e,t=null){super(e,t),this.code=t?.code??0,this.reason=t?.reason??``,this.wasClean=t?.wasClean??!1}},gy=class e{[zr]=null;[y]=0;[h]=0;[yn]=null;constructor(t,n,r,i,a,o,s,c){if(t!==N)throw TypeError(`Illegal constructor`);let l=null;if(r instanceof e){if(r[zr]===null)throw new n.DOMException(`Failed to execute 'createImageBitmap' on 'Window': The image source is not usable.`,H.invalidStateError);l=r}if(r instanceof Fp){if(!r[me])throw new n.DOMException(`Failed to execute 'createImageBitmap' on 'Window': The image source is not usable.`,H.invalidStateError);l=r}else if(r instanceof dh)throw new n.DOMException(`Failed to execute 'createImageBitmap' on 'Window': HTMLVideoElement is not supported as an image source yet in Happy DOM.`,H.invalidStateError);else (r instanceof Zf||r instanceof Jf)&&(l=r);if(l===null)throw new n.TypeError(`Failed to execute 'createImageBitmap' on 'Window': The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.`);this[y]=l.width,this[h]=l.height;let u=0,d=0;if(typeof i==`number`&&typeof a==`number`&&typeof o==`number`&&typeof s==`number`){if(u=i,d=a,this[y]=o,this[h]=s,c!==void 0&&typeof c!=`object`)throw new n.TypeError(`The provided value is not of type 'ImageBitmapOptions'.`);this[yn]=c||null}else if(typeof i==`number`&&typeof a==`number`){if(this[y]=i,this[h]=a,o!==void 0&&typeof o!=`object`)throw new n.TypeError(`The provided value is not of type 'ImageBitmapOptions'.`);this[yn]=o||null}else if(typeof i==`object`)this[yn]=i;else if(i!==void 0)throw new n.TypeError(`Failed to execute 'createImageBitmap' on 'Window': Overload resolution failed.`);let f=new Y(n).getSettings(),p=new n.OffscreenCanvas(this[y],this[h]);f?.canvasAdapter&&(p.getContext(`2d`).drawImage(l,-u,-d,l.width,l.height),this[zr]=p)}get width(){return this[y]}get height(){return this[h]}close(){this[zr]=null,this[yn]=null,this[y]=0,this[h]=0}};const _y={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),setInterval:globalThis.setInterval.bind(globalThis),clearInterval:globalThis.clearInterval.bind(globalThis),queueMicrotask:globalThis.queueMicrotask.bind(globalThis),setImmediate:globalThis.setImmediate.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)},vy=setTimeout.toString().includes(`new Timeout`),yy=(()=>{try{return Function(`return true;`)(),!0}catch{return!1}})(),by=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})();var xy=class{constructor(){throw TypeError(`Illegal constructor`)}},Sy=class{callback;constructor(e){this.callback=e}},Cy=class e extends tl{Node=md;Attr=hd;ShadowRoot=mh;ProcessingInstruction=fh;Element=Tf;CharacterData=yd;DocumentType=bd;HTMLAnchorElement=Af;HTMLButtonElement=qf;HTMLOptGroupElement=Am;HTMLOptionElement=jm;HTMLElement=Q;HTMLUnknownElement=uh;HTMLTemplateElement=ih;HTMLInputElement=qp;HTMLSelectElement=Km;HTMLTextAreaElement=ah;HTMLImageElement=Fp;HTMLStyleElement=Zm;HTMLLabelElement=Jp;HTMLSlotElement=Jm;HTMLMetaElement=Tm;HTMLMediaElement=Lf;HTMLAudioElement=Rf;HTMLVideoElement=dh;HTMLBaseElement=zf;HTMLDialogElement=np;HTMLScriptElement=Wm;HTMLLinkElement=xm;HTMLIFrameElement=bp;HTMLFormElement=pp;HTMLUListElement=lh;HTMLTrackElement=ch;HTMLTableRowElement=rh;HTMLTitleElement=sh;HTMLTimeElement=oh;HTMLTableSectionElement=th;HTMLTableCellElement=$m;HTMLTableElement=nh;HTMLSpanElement=Xm;HTMLSourceElement=Ym;HTMLQuoteElement=Rm;HTMLProgressElement=Lm;HTMLPreElement=Im;HTMLPictureElement=Fm;HTMLParamElement=Pm;HTMLParagraphElement=Nm;HTMLOutputElement=Mm;HTMLOListElement=Om;HTMLObjectElement=km;HTMLMeterElement=Em;HTMLMenuElement=wm;HTMLMapElement=Sm;HTMLLIElement=Xp;HTMLLegendElement=Yp;HTMLModElement=Dm;HTMLHtmlElement=_p;HTMLHRElement=gp;HTMLHeadElement=mp;HTMLHeadingElement=hp;HTMLFieldSetElement=ap;HTMLEmbedElement=ip;HTMLDListElement=Qf;HTMLDivElement=rp;HTMLDetailsElement=tp;HTMLDataListElement=ep;HTMLDataElement=$f;HTMLTableColElement=eh;HTMLTableCaptionElement=Qm;HTMLCanvasElement=Zf;HTMLBRElement=Vf;HTMLBodyElement=Bf;HTMLAreaElement=jf;SVGSVGElement=R_;SVGAnimateElement=B_;SVGAnimateMotionElement=V_;SVGAnimateTransformElement=H_;SVGCircleElement=G_;SVGClipPathElement=q_;SVGDefsElement=J_;SVGDescElement=Y_;SVGEllipseElement=X_;SVGFEBlendElement=Q_;SVGFEColorMatrixElement=nv;SVGFEComponentTransferElement=rv;SVGFECompositeElement=iv;SVGFEConvolveMatrixElement=sv;SVGFEDiffuseLightingElement=cv;SVGFEDisplacementMapElement=lv;SVGFEDistantLightElement=uv;SVGFEDropShadowElement=dv;SVGFEFloodElement=fv;SVGFEFuncAElement=mv;SVGFEFuncBElement=hv;SVGFEFuncGElement=gv;SVGFEFuncRElement=_v;SVGFEGaussianBlurElement=vv;SVGFEImageElement=yv;SVGFEMergeElement=bv;SVGFEMergeNodeElement=xv;SVGFEMorphologyElement=Sv;SVGFEOffsetElement=Cv;SVGFEPointLightElement=wv;SVGFESpecularLightingElement=Tv;SVGFESpotLightElement=Ev;SVGFETileElement=Dv;SVGFETurbulenceElement=Ov;SVGFilterElement=kv;SVGForeignObjectElement=Av;SVGGElement=jv;SVGImageElement=Mv;SVGLineElement=Nv;SVGLinearGradientElement=Fv;SVGMarkerElement=Lv;SVGMaskElement=Rv;SVGMetadataElement=zv;SVGMPathElement=Bv;SVGPathElement=Vv;SVGPatternElement=Hv;SVGPolygonElement=Gv;SVGPolylineElement=Kv;SVGRadialGradientElement=qv;SVGRectElement=Jv;SVGScriptElement=Yv;SVGSetElement=Xv;SVGStopElement=Zv;SVGStyleElement=Qv;SVGSwitchElement=$v;SVGSymbolElement=ey;SVGTextElement=oy;SVGTextPathElement=sy;SVGTitleElement=cy;SVGTSpanElement=ly;SVGUseElement=uy;SVGViewElement=dy;SVGElement=hh;SVGAnimationElement=z_;SVGComponentTransferFunctionElement=pv;SVGGeometryElement=W_;SVGGradientElement=Pv;SVGTextPositioningElement=ay;SVGGraphicsElement=g_;Event=W;UIEvent=Xl;CustomEvent=$l;CloseEvent=hy;AnimationEvent=Zl;KeyboardEvent=iu;MessageEvent=au;MouseEvent=ou;PointerEvent=su;FocusEvent=tu;WheelEvent=fu;InputEvent=ru;ErrorEvent=eu;StorageEvent=lu;SubmitEvent=uu;ProgressEvent=cu;MediaQueryListEvent=nl;HashChangeEvent=nu;ClipboardEvent=Ql;TouchEvent=du;PopStateEvent=my;Touch=Yl;AudioProcessingEvent=W;BeforeInputEvent=W;BeforeUnloadEvent=W;BlobEvent=W;CompositionEvent=W;CSSFontFaceLoadEvent=W;DeviceLightEvent=W;DeviceMotionEvent=W;DeviceOrientationEvent=W;DeviceProximityEvent=W;DOMTransactionEvent=W;DragEvent=W;EditingBeforeInputEvent=W;FetchEvent=W;GamepadEvent=W;IDBVersionChangeEvent=W;MediaStreamEvent=W;MutationEvent=W;OfflineAudioCompletionEvent=W;OverconstrainedError=W;PageTransitionEvent=W;PaymentRequestUpdateEvent=W;RelatedEvent=W;RTCDataChannelEvent=W;RTCIdentityErrorEvent=W;RTCIdentityEvent=W;RTCPeerConnectionIceEvent=W;SensorEvent=W;SVGEvent=W;SVGZoomEvent=W;TimeEvent=W;TrackEvent=W;TransitionEvent=W;UserProximityEvent=W;WebGLContextEvent=W;TextEvent=W;Permissions=ad;History=Yu;Navigator=od;Clipboard=Rs;TimeRanges=Mf;TextTrackCueList=Cm;ValidityState=Wf;MutationRecord=$u;IntersectionObserver=Xu;IntersectionObserverEntry=Zu;CSSStyleDeclaration=vl;CSSRule=Gs;CSSContainerRule=bl;CSSFontFaceRule=xl;CSSKeyframeRule=Sl;CSSKeyframesRule=wl;CSSMediaRule=Dl;CSSStyleRule=Ml;CSSSupportsRule=Nl;CSSConditionRule=yl;CSSGroupingRule=dl;CSSScopeRule=fl;DOMRect=Td;DOMRectReadOnly=wd;Plugin=sd;PluginArray=nd;Location=Qu;CustomElementRegistry=Wl;ResizeObserver=gh;Blob=Ls;File=Kl;Storage=wh;MimeType=ed;MimeTypeArray=td;NodeFilter=Th;ImageBitmap=gy;HTMLCollection=Od;HTMLFormControlCollection=op;HTMLOptionsCollection=Gm;NodeList=Bc;RadioNodeList=fp;FileList=Ip;Screen=_h;ScreenDetails=yh;ScreenDetailed=vh;NamedNodeMap=jd;TreeWalker=kh;NodeIterator=Ah;DataTransfer=Jl;DataTransferItem=Gl;DataTransferItemList=ql;XMLSerializer=jh;ClipboardItem=zs;Selection=Ch;CSSUnitValue=Hs;SVGAngle=D_;SVGAnimatedAngle=Iv;SVGAnimatedBoolean=av;SVGAnimatedEnumeration=K_;SVGAnimatedInteger=ov;SVGAnimatedLength=$;SVGAnimatedNumber=U_;SVGAnimatedNumberList=tv;SVGAnimatedPreserveAspectRatio=L_;SVGAnimatedRect=k_;SVGAnimatedString=Z_;SVGAnimatedTransformList=h_;SVGLength=C_;SVGLengthList=ry;SVGMatrix=o_;SVGNumber=O_;SVGNumberList=ev;SVGPoint=y_;SVGPointList=Wv;SVGPreserveAspectRatio=I_;SVGRect=__;SVGStringList=r_;SVGTransform=d_;SVGTransformList=m_;SVGAnimatedLengthList=iy;SVGUnitTypes=fy;StylePropertyMap=jl;StylePropertyMapReadOnly=Al;MediaList=El;CSSKeywordValue=Ol;CSSStyleValue=kl;Window=this.constructor;URLSearchParams=ie;WritableStream=f.Writable;ReadableStream=ae;TransformStream=f.Transform;PerformanceObserver=le;PerformanceEntry=ce;PerformanceObserverEntryList=xy;document;customElements=new Wl(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=u;TextEncoder=s;TextDecoder=o;closed=!1;console;name=``;Buffer=i;[vt]=[];[$e];[En];[Dn];[On];[kn];[An];[jn];[ur]=this;[fr]=this;[dr]=this;[b]=this;[es]=this;[Re]=-1;[Do]=new py(this);[ko]={json:new Map,css:new Map,esm:new Map};[Ro]=null;[rs]=[];[V]=new Map;#e;#t=null;#n=null;#r=null;#i=null;#a=null;#o={timeouts:null};#s=[];#c=[];constructor(e,t){super(),this.#e=e,this[ns](),this.console=e.page.console,this[$e]=new Cd(e),this[On]=new od(this),this[kn]=new _h,this[An]=new wh,this[jn]=new wh,this[En]=new Qu(this.#e,t?.url??`about:blank`),this[Dn]=new Yu(this.#e,this),e[Dn].currentItem.href=t?.url??`about:blank`,Y.setWindowBrowserFrameRelation(this,this.#e),this[ct](),t_.extendClasses(this),this.document=new this.HTMLDocument,this.document[je]=this;let n=e[fe].startTask(()=>this[$e].destroy());this[$e].waitUntilComplete().then(()=>{e[fe].endTask(n),this.document[Ht]=Sd.complete,this.document.dispatchEvent(new W(`readystatechange`));let t=new W(`load`);t[ke]=this,t[dt]=this.document,t[Gr]=Ts.atTarget,this.dispatchEvent(t),t[ke]=null,t[Gr]=Ts.none,t[Oo]=!1}),this[wo]()}get onsearch(){return this[V].get(`onsearch`)??null}set onsearch(e){this[V].set(`onsearch`,e)}get onappinstalled(){return this[V].get(`onappinstalled`)??null}set onappinstalled(e){this[V].set(`onappinstalled`,e)}get onbeforeinstallprompt(){return this[V].get(`onbeforeinstallprompt`)??null}set onbeforeinstallprompt(e){this[V].set(`onbeforeinstallprompt`,e)}get onabort(){return this[V].get(`onabort`)??null}set onabort(e){this[V].set(`onabort`,e)}get onbeforeinput(){return this[V].get(`onbeforeinput`)??null}set onbeforeinput(e){this[V].set(`onbeforeinput`,e)}get onbeforematch(){return this[V].get(`onbeforematch`)??null}set onbeforematch(e){this[V].set(`onbeforematch`,e)}get onbeforetoggle(){return this[V].get(`onbeforetoggle`)??null}set onbeforetoggle(e){this[V].set(`onbeforetoggle`,e)}get onblur(){return this[V].get(`onblur`)??null}set onblur(e){this[V].set(`onblur`,e)}get oncancel(){return this[V].get(`oncancel`)??null}set oncancel(e){this[V].set(`oncancel`,e)}get oncanplay(){return this[V].get(`oncanplay`)??null}set oncanplay(e){this[V].set(`oncanplay`,e)}get oncanplaythrough(){return this[V].get(`oncanplaythrough`)??null}set oncanplaythrough(e){this[V].set(`oncanplaythrough`,e)}get onchange(){return this[V].get(`onchange`)??null}set onchange(e){this[V].set(`onchange`,e)}get onclick(){return this[V].get(`onclick`)??null}set onclick(e){this[V].set(`onclick`,e)}get onclose(){return this[V].get(`onclose`)??null}set onclose(e){this[V].set(`onclose`,e)}get oncommand(){return this[V].get(`oncommand`)??null}set oncommand(e){this[V].set(`oncommand`,e)}get oncontentvisibilityautostatechange(){return this[V].get(`oncontentvisibilityautostatechange`)??null}set oncontentvisibilityautostatechange(e){this[V].set(`oncontentvisibilityautostatechange`,e)}get oncontextlost(){return this[V].get(`oncontextlost`)??null}set oncontextlost(e){this[V].set(`oncontextlost`,e)}get oncontextmenu(){return this[V].get(`oncontextmenu`)??null}set oncontextmenu(e){this[V].set(`oncontextmenu`,e)}get oncontextrestored(){return this[V].get(`oncontextrestored`)??null}set oncontextrestored(e){this[V].set(`oncontextrestored`,e)}get oncuechange(){return this[V].get(`oncuechange`)??null}set oncuechange(e){this[V].set(`oncuechange`,e)}get ondblclick(){return this[V].get(`ondblclick`)??null}set ondblclick(e){this[V].set(`ondblclick`,e)}get ondrag(){return this[V].get(`ondrag`)??null}set ondrag(e){this[V].set(`ondrag`,e)}get ondragend(){return this[V].get(`ondragend`)??null}set ondragend(e){this[V].set(`ondragend`,e)}get ondragenter(){return this[V].get(`ondragenter`)??null}set ondragenter(e){this[V].set(`ondragenter`,e)}get ondragleave(){return this[V].get(`ondragleave`)??null}set ondragleave(e){this[V].set(`ondragleave`,e)}get ondragover(){return this[V].get(`ondragover`)??null}set ondragover(e){this[V].set(`ondragover`,e)}get ondragstart(){return this[V].get(`ondragstart`)??null}set ondragstart(e){this[V].set(`ondragstart`,e)}get ondrop(){return this[V].get(`ondrop`)??null}set ondrop(e){this[V].set(`ondrop`,e)}get ondurationchange(){return this[V].get(`ondurationchange`)??null}set ondurationchange(e){this[V].set(`ondurationchange`,e)}get onemptied(){return this[V].get(`onemptied`)??null}set onemptied(e){this[V].set(`onemptied`,e)}get onended(){return this[V].get(`onended`)??null}set onended(e){this[V].set(`onended`,e)}get onerror(){return this[V].get(`onerror`)??null}set onerror(e){this[V].set(`onerror`,e)}get onfocus(){return this[V].get(`onfocus`)??null}set onfocus(e){this[V].set(`onfocus`,e)}get onformdata(){return this[V].get(`onformdata`)??null}set onformdata(e){this[V].set(`onformdata`,e)}get oninput(){return this[V].get(`oninput`)??null}set oninput(e){this[V].set(`oninput`,e)}get oninvalid(){return this[V].get(`oninvalid`)??null}set oninvalid(e){this[V].set(`oninvalid`,e)}get onkeydown(){return this[V].get(`onkeydown`)??null}set onkeydown(e){this[V].set(`onkeydown`,e)}get onkeypress(){return this[V].get(`onkeypress`)??null}set onkeypress(e){this[V].set(`onkeypress`,e)}get onkeyup(){return this[V].get(`onkeyup`)??null}set onkeyup(e){this[V].set(`onkeyup`,e)}get onload(){return this[V].get(`onload`)??null}set onload(e){this[V].set(`onload`,e)}get onloadeddata(){return this[V].get(`onloadeddata`)??null}set onloadeddata(e){this[V].set(`onloadeddata`,e)}get onloadedmetadata(){return this[V].get(`onloadedmetadata`)??null}set onloadedmetadata(e){this[V].set(`onloadedmetadata`,e)}get onloadstart(){return this[V].get(`onloadstart`)??null}set onloadstart(e){this[V].set(`onloadstart`,e)}get onmousedown(){return this[V].get(`onmousedown`)??null}set onmousedown(e){this[V].set(`onmousedown`,e)}get onmouseenter(){return this[V].get(`onmouseenter`)??null}set onmouseenter(e){this[V].set(`onmouseenter`,e)}get onmouseleave(){return this[V].get(`onmouseleave`)??null}set onmouseleave(e){this[V].set(`onmouseleave`,e)}get onmousemove(){return this[V].get(`onmousemove`)??null}set onmousemove(e){this[V].set(`onmousemove`,e)}get onmouseout(){return this[V].get(`onmouseout`)??null}set onmouseout(e){this[V].set(`onmouseout`,e)}get onmouseover(){return this[V].get(`onmouseover`)??null}set onmouseover(e){this[V].set(`onmouseover`,e)}get onmouseup(){return this[V].get(`onmouseup`)??null}set onmouseup(e){this[V].set(`onmouseup`,e)}get onmousewheel(){return this[V].get(`onmousewheel`)??null}set onmousewheel(e){this[V].set(`onmousewheel`,e)}get onpause(){return this[V].get(`onpause`)??null}set onpause(e){this[V].set(`onpause`,e)}get onplay(){return this[V].get(`onplay`)??null}set onplay(e){this[V].set(`onplay`,e)}get onplaying(){return this[V].get(`onplaying`)??null}set onplaying(e){this[V].set(`onplaying`,e)}get onprogress(){return this[V].get(`onprogress`)??null}set onprogress(e){this[V].set(`onprogress`,e)}get onratechange(){return this[V].get(`onratechange`)??null}set onratechange(e){this[V].set(`onratechange`,e)}get onreset(){return this[V].get(`onreset`)??null}set onreset(e){this[V].set(`onreset`,e)}get onresize(){return this[V].get(`onresize`)??null}set onresize(e){this[V].set(`onresize`,e)}get onscroll(){return this[V].get(`onscroll`)??null}set onscroll(e){this[V].set(`onscroll`,e)}get onscrollend(){return this[V].get(`onscrollend`)??null}set onscrollend(e){this[V].set(`onscrollend`,e)}get onsecuritypolicyviolation(){return this[V].get(`onsecuritypolicyviolation`)??null}set onsecuritypolicyviolation(e){this[V].set(`onsecuritypolicyviolation`,e)}get onseeked(){return this[V].get(`onseeked`)??null}set onseeked(e){this[V].set(`onseeked`,e)}get onseeking(){return this[V].get(`onseeking`)??null}set onseeking(e){this[V].set(`onseeking`,e)}get onselect(){return this[V].get(`onselect`)??null}set onselect(e){this[V].set(`onselect`,e)}get onslotchange(){return this[V].get(`onslotchange`)??null}set onslotchange(e){this[V].set(`onslotchange`,e)}get onstalled(){return this[V].get(`onstalled`)??null}set onstalled(e){this[V].set(`onstalled`,e)}get onsubmit(){return this[V].get(`onsubmit`)??null}set onsubmit(e){this[V].set(`onsubmit`,e)}get onsuspend(){return this[V].get(`onsuspend`)??null}set onsuspend(e){this[V].set(`onsuspend`,e)}get ontimeupdate(){return this[V].get(`ontimeupdate`)??null}set ontimeupdate(e){this[V].set(`ontimeupdate`,e)}get ontoggle(){return this[V].get(`ontoggle`)??null}set ontoggle(e){this[V].set(`ontoggle`,e)}get onvolumechange(){return this[V].get(`onvolumechange`)??null}set onvolumechange(e){this[V].set(`onvolumechange`,e)}get onwaiting(){return this[V].get(`onwaiting`)??null}set onwaiting(e){this[V].set(`onwaiting`,e)}get onwebkitanimationend(){return this[V].get(`onwebkitanimationend`)??null}set onwebkitanimationend(e){this[V].set(`onwebkitanimationend`,e)}get onwebkitanimationiteration(){return this[V].get(`onwebkitanimationiteration`)??null}set onwebkitanimationiteration(e){this[V].set(`onwebkitanimationiteration`,e)}get onwebkitanimationstart(){return this[V].get(`onwebkitanimationstart`)??null}set onwebkitanimationstart(e){this[V].set(`onwebkitanimationstart`,e)}get onwebkittransitionend(){return this[V].get(`onwebkittransitionend`)??null}set onwebkittransitionend(e){this[V].set(`onwebkittransitionend`,e)}get onwheel(){return this[V].get(`onwheel`)??null}set onwheel(e){this[V].set(`onwheel`,e)}get onauxclick(){return this[V].get(`onauxclick`)??null}set onauxclick(e){this[V].set(`onauxclick`,e)}get ongotpointercapture(){return this[V].get(`ongotpointercapture`)??null}set ongotpointercapture(e){this[V].set(`ongotpointercapture`,e)}get onlostpointercapture(){return this[V].get(`onlostpointercapture`)??null}set onlostpointercapture(e){this[V].set(`onlostpointercapture`,e)}get onpointerdown(){return this[V].get(`onpointerdown`)??null}set onpointerdown(e){this[V].set(`onpointerdown`,e)}get onpointermove(){return this[V].get(`onpointermove`)??null}set onpointermove(e){this[V].set(`onpointermove`,e)}get onpointerup(){return this[V].get(`onpointerup`)??null}set onpointerup(e){this[V].set(`onpointerup`,e)}get onpointercancel(){return this[V].get(`onpointercancel`)??null}set onpointercancel(e){this[V].set(`onpointercancel`,e)}get onpointerover(){return this[V].get(`onpointerover`)??null}set onpointerover(e){this[V].set(`onpointerover`,e)}get onpointerout(){return this[V].get(`onpointerout`)??null}set onpointerout(e){this[V].set(`onpointerout`,e)}get onpointerenter(){return this[V].get(`onpointerenter`)??null}set onpointerenter(e){this[V].set(`onpointerenter`,e)}get onpointerleave(){return this[V].get(`onpointerleave`)??null}set onpointerleave(e){this[V].set(`onpointerleave`,e)}get onselectstart(){return this[V].get(`onselectstart`)??null}set onselectstart(e){this[V].set(`onselectstart`,e)}get onselectionchange(){return this[V].get(`onselectionchange`)??null}set onselectionchange(e){this[V].set(`onselectionchange`,e)}get onanimationcancel(){return this[V].get(`onanimationcancel`)??null}set onanimationcancel(e){this[V].set(`onanimationcancel`,e)}get onanimationend(){return this[V].get(`onanimationend`)??null}set onanimationend(e){this[V].set(`onanimationend`,e)}get onanimationiteration(){return this[V].get(`onanimationiteration`)??null}set onanimationiteration(e){this[V].set(`onanimationiteration`,e)}get onanimationstart(){return this[V].get(`onanimationstart`)??null}set onanimationstart(e){this[V].set(`onanimationstart`,e)}get ontransitionrun(){return this[V].get(`ontransitionrun`)??null}set ontransitionrun(e){this[V].set(`ontransitionrun`,e)}get ontransitionstart(){return this[V].get(`ontransitionstart`)??null}set ontransitionstart(e){this[V].set(`ontransitionstart`,e)}get ontransitionend(){return this[V].get(`ontransitionend`)??null}set ontransitionend(e){this[V].set(`ontransitionend`,e)}get ontransitioncancel(){return this[V].get(`ontransitioncancel`)??null}set ontransitioncancel(e){this[V].set(`ontransitioncancel`,e)}get onbeforexrselect(){return this[V].get(`onbeforexrselect`)??null}set onbeforexrselect(e){this[V].set(`onbeforexrselect`,e)}get onafterprint(){return this[V].get(`onafterprint`)??null}set onafterprint(e){this[V].set(`onafterprint`,e)}get onbeforeprint(){return this[V].get(`onbeforeprint`)??null}set onbeforeprint(e){this[V].set(`onbeforeprint`,e)}get onbeforeunload(){return this[V].get(`onbeforeunload`)??null}set onbeforeunload(e){this[V].set(`onbeforeunload`,e)}get onhashchange(){return this[V].get(`onhashchange`)??null}set onhashchange(e){this[V].set(`onhashchange`,e)}get onlanguagechange(){return this[V].get(`onlanguagechange`)??null}set onlanguagechange(e){this[V].set(`onlanguagechange`,e)}get onmessage(){return this[V].get(`onmessage`)??null}set onmessage(e){this[V].set(`onmessage`,e)}get onmessageerror(){return this[V].get(`onmessageerror`)??null}set onmessageerror(e){this[V].set(`onmessageerror`,e)}get onoffline(){return this[V].get(`onoffline`)??null}set onoffline(e){this[V].set(`onoffline`,e)}get ononline(){return this[V].get(`ononline`)??null}set ononline(e){this[V].set(`ononline`,e)}get onpagehide(){return this[V].get(`onpagehide`)??null}set onpagehide(e){this[V].set(`onpagehide`,e)}get onpageshow(){return this[V].get(`onpageshow`)??null}set onpageshow(e){this[V].set(`onpageshow`,e)}get onpopstate(){return this[V].get(`onpopstate`)??null}set onpopstate(e){this[V].set(`onpopstate`,e)}get onrejectionhandled(){return this[V].get(`onrejectionhandled`)??null}set onrejectionhandled(e){this[V].set(`onrejectionhandled`,e)}get onstorage(){return this[V].get(`onstorage`)??null}set onstorage(e){this[V].set(`onstorage`,e)}get onunhandledrejection(){return this[V].get(`onunhandledrejection`)??null}set onunhandledrejection(e){this[V].set(`onunhandledrejection`,e)}get onunload(){return this[V].get(`onunload`)??null}set onunload(e){this[V].set(`onunload`,e)}get ondevicemotion(){return this[V].get(`ondevicemotion`)??null}set ondevicemotion(e){this[V].set(`ondevicemotion`,e)}get ondeviceorientation(){return this[V].get(`ondeviceorientation`)??null}set ondeviceorientation(e){this[V].set(`ondeviceorientation`,e)}get ondeviceorientationabsolute(){return this[V].get(`ondeviceorientationabsolute`)??null}set ondeviceorientationabsolute(e){this[V].set(`ondeviceorientationabsolute`,e)}get onpointerrawupdate(){return this[V].get(`onpointerrawupdate`)??null}set onpointerrawupdate(e){this[V].set(`onpointerrawupdate`,e)}get onpageswap(){return this[V].get(`onpageswap`)??null}set onpageswap(e){this[V].set(`onpageswap`,e)}get onpagereveal(){return this[V].get(`onpagereveal`)??null}set onpagereveal(e){this[V].set(`onpagereveal`,e)}get onscrollsnapchange(){return this[V].get(`onscrollsnapchange`)??null}set onscrollsnapchange(e){this[V].set(`onscrollsnapchange`,e)}get onscrollsnapchanging(){return this[V].get(`onscrollsnapchanging`)??null}set onscrollsnapchanging(e){this[V].set(`onscrollsnapchanging`,e)}get ongamepadconnected(){return this[V].get(`ongamepadconnected`)??null}set ongamepadconnected(e){this[V].set(`ongamepadconnected`,e)}get ongamepaddisconnected(){return this[V].get(`ongamepaddisconnected`)??null}set ongamepaddisconnected(e){this[V].set(`ongamepaddisconnected`,e)}get self(){return this[ur]}set self(e){this[ur]=e}get top(){return this[fr]}get parent(){return this[dr]}set parent(e){this[dr]=e}get frames(){return this[es]}set frames(e){this[dr]=e}get location(){return this[En]}set location(e){this[En].href=e}get history(){return this[Dn]}get navigator(){return this[On]}get screen(){return this[kn]}get sessionStorage(){return this[An]}get localStorage(){return this[jn]}get opener(){return this.#e[bt]}get scrollX(){return this.document?.documentElement?.scrollLeft??0}get pageXOffset(){return this.scrollX}get scrollY(){return this.document?.documentElement?.scrollTop??0}get pageYOffset(){return this.scrollY}get CSS(){return new Us}get innerWidth(){return this.#t===null?this.#e.page.viewport.width:this.#t}set innerWidth(e){this.#t=e}get innerHeight(){return this.#n===null?this.#e.page.viewport.height:this.#n}set innerHeight(e){this.#n=e}get outerWidth(){return this.#r===null?this.#e.page.viewport.width:this.#r}set outerWidth(e){this.#r=e}get outerHeight(){return this.#i===null?this.#e.page.viewport.height:this.#i}set outerHeight(e){this.#i=e}get devicePixelRatio(){return this.#a===null?this.#e.page.viewport.devicePixelRatio:this.#a}set devicePixelRatio(e){this.#a=e}getComputedStyle(e){return e[er]=e[er]||new vl(N,this,{element:e,computed:!0}),e[er]}getSelection(){return this.document.getSelection()}scroll(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this.TypeError(`Failed to execute 'scroll' on 'Window': The provided value is not of type 'ScrollToOptions'.`);let n=typeof e==`object`?e:{left:e,top:t};if(n.behavior===`smooth`)this.setTimeout(()=>{if(n.top!==void 0){let e=Number(n.top);this.document.documentElement.scrollTop=isNaN(e)?0:e}if(n.left!==void 0){let e=Number(n.left);this.document.documentElement.scrollLeft=isNaN(e)?0:e}});else{if(n.top!==void 0){let e=Number(n.top);this.document.documentElement.scrollTop=isNaN(e)?0:e}if(n.left!==void 0){let e=Number(n.left);this.document.documentElement.scrollLeft=isNaN(e)?0:e}}}scrollTo(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this.TypeError(`Failed to execute 'scrollTo' on 'Window': The provided value is not of type 'ScrollToOptions'.`);this.scroll(e,t)}scrollBy(e,t){if(typeof e!=`object`&&arguments.length===1)throw new this.TypeError(`Failed to execute 'scrollBy' on 'Window': The provided value is not of type 'ScrollToOptions'.`);let n=typeof e==`object`?e:{left:e,top:t};this.scroll({left:this.document.documentElement.scrollLeft+(n.left??0),top:this.document.documentElement.scrollTop+(n.top??0),behavior:n.behavior})}blur(){}focus(){}open(e,t,n){return Nh.openPage(this.#e,{url:e,target:t,features:n})}close(){this.#e.page.mainFrame===this.#e&&this.#e[bt]&&(this[Me](),this.#e.page.close())}matchMedia(e){return new ul({window:this,media:e})}getScreenDetails(){return Promise.resolve(new yh)}setTimeout(e,t=0,...n){if(this.closed)return{};let r=this.#e.page.context.browser.settings;if(r.timer.preventTimerLoops){let e=Error().stack,t=this.#s,n=this.#c,i=t.indexOf(e);if(i!==-1){if(n[i].timeout++,n[i].timeout>=(r.timer.preventTimerLoops===!0?1:r.timer.preventTimerLoops.timeout??1))return{}}else t.push(e),n.push({timeout:0,requestAnimationFrame:0})}if(!t){let t=this.#o;if(!t.timeouts){let e=!r||!r.disableErrorCapturing&&r.errorCapture===Is.tryAndCatch,n=_y.setTimeout(()=>{this.#e[fe].endTimer(n);let r=t.timeouts;t.timeouts=null;for(let t of r)if(e){let e;try{e=t.callback()}catch(e){this[zo](e)}e instanceof Promise&&e.catch(e=>this[zo](e))}else t.callback()},0);t.timeouts=[],this.#e[fe].startTimer(n)}let i=new Sy(()=>e(...n));return t.timeouts.push(i),i}let i=!r||!r.disableErrorCapturing&&r.errorCapture===Is.tryAndCatch,a=_y.setTimeout(()=>{if(this.#e[fe].endTimer(a),i){let t;try{t=e(...n)}catch(e){this[zo](e)}t instanceof Promise&&t.catch(e=>this[zo](e))}else e(...n)},r?.timer.maxTimeout!==-1&&t&&t>r?.timer.maxTimeout?r?.timer.maxTimeout:t);return this.#e[fe].startTimer(a),a}clearTimeout(e){if(e&&e instanceof Sy){let t=this.#o;if(!t.timeouts)return;let n=t.timeouts.indexOf(e);n!==-1&&t.timeouts.splice(n,1);return}vy&&(!e||e.constructor.name!==`Timeout`)||(_y.clearTimeout(e),this.#e[fe].endTimer(e))}setInterval(e,t=0,...n){if(this.closed)return{};let r=this.#e.page.context.browser.settings,i=!r||!r.disableErrorCapturing&&r.errorCapture===Is.tryAndCatch,a=0,o=_y.setInterval(()=>{if(i){let t;try{t=e(...n)}catch(e){this.clearInterval(o),this[zo](e)}t instanceof Promise&&t.catch(e=>{this.clearInterval(o),this[zo](e)})}else e(...n);r?.timer.maxIntervalIterations!==-1&&(a>=r?.timer.maxIntervalIterations&&this.clearInterval(o),a++)},r?.timer.maxIntervalTime!==-1&&t&&t>r?.timer.maxIntervalTime?r?.timer.maxIntervalTime:t);return this.#e[fe].startTimer(o),o}clearInterval(e){vy&&(!e||e.constructor.name!==`Timeout`)||(_y.clearInterval(e),this.#e[fe].endTimer(e))}requestAnimationFrame(e){if(this.closed)return{};let t=this.#e.page.context.browser.settings;if(t.timer.preventTimerLoops){let e=Error().stack,n=this.#s,r=this.#c,i=n.indexOf(e);if(i!==-1){if(r[i].requestAnimationFrame++,r[i].requestAnimationFrame>=(t.timer.preventTimerLoops===!0?1:t.timer.preventTimerLoops.requestAnimationFrame??1))return{}}else n.push(e),r.push({timeout:0,requestAnimationFrame:0})}let n=!t||!t.disableErrorCapturing&&t.errorCapture===Is.tryAndCatch,r=_y.setImmediate(()=>{if(this.#e[fe].endImmediate(r),n){let t;try{t=e(this.performance.now())}catch(e){this[zo](e)}t instanceof Promise&&t.catch(e=>this[zo](e))}else e(this.performance.now())});return this.#e[fe].startImmediate(r),r}cancelAnimationFrame(e){vy&&(!e||e.constructor.name!==`Immediate`)||(_y.clearImmediate(e),this.#e[fe].endImmediate(e))}queueMicrotask(e){if(this.closed)return;let t=!1,n=this.#e[fe].startTask(()=>t=!0),r=this.#e.page.context.browser.settings,i=!r||!r.disableErrorCapturing&&r.errorCapture===Is.tryAndCatch;_y.queueMicrotask(()=>{if(!t)if(this.#e[fe].endTask(n),i){let t;try{t=e()}catch(e){this[zo](e)}t instanceof Promise&&t.catch(e=>this[zo](e))}else e()})}async fetch(e,t){return this.closed?Promise.reject(new this.DOMException(`Failed to execute 'fetch' on 'Window': The window is closed.`,H.invalidStateError)):await new Gu({browserFrame:this.#e,window:this,url:e,init:t}).send()}btoa(e){return Ps.btoa(e)}atob(e){return Ps.atob(e)}postMessage(e,t=`*`,n){if(!this.closed){if(t&&t!==`*`&&this.location.origin!==t)throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The target origin provided ('${t}') does not match the recipient window\'s origin ('${this.location.origin}').`,H.securityError);try{JSON.stringify(e)}catch{throw new this.DOMException(`Failed to execute 'postMessage' on 'Window': The provided message cannot be serialized.`,H.invalidStateError)}this.setTimeout(()=>this.dispatchEvent(new au(`message`,{data:e,origin:this.#e.parentFrame?this.#e.parentFrame.window.location.origin:this.#e.window.location.origin,source:this.#e.parentFrame?this.#e.parentFrame.window:this.#e.window,lastEventId:``})))}}resizeTo(e,t){if(!this.closed){if(!e||!t)throw new this.DOMException(`Failed to execute 'resizeTo' on 'Window': 2 arguments required, but only ${arguments.length} present.`);this.#e[St]&&this.#e.page.setViewport({width:e,height:t})}}resizeBy(e,t){if(!this.closed){if(!e||!t)throw new this.DOMException(`Failed to execute 'resizeBy' on 'Window': 2 arguments required, but only ${arguments.length} present.`);if(this.#e[St]){let n=this.#e.page.viewport;this.#e.page.setViewport({width:n.width+e,height:n.height+t})}}}async createImageBitmap(e,t,n,r,i,a){return new gy(N,this,e,t,n,r,i,a)}[zo](e){this.#e.page.console.error(e),this.dispatchEvent(new eu(`error`,{message:e.message,error:e}))}[Fe](e,t){return new oe.Script(e,t).runInContext(this)}[ct](){oe.isContext(this)||(oe.createContext(this),Mh.runInContext(this))}[ns](){let e=this.#e;(yy||by)&&e.page.context.browser.settings.enableJavaScriptEvaluation&&!e.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!e.page.context.browser.settings.suppressCodeGenerationFromStringsWarning&&console.warn(`
|
|
186
|
+
Warning! Happy DOM has JavaScript evaluation enabled and is running in an insecure environment.
|
|
187
|
+
|
|
188
|
+
A VM Context is not an isolated environment, and if you run untrusted code you are at risk of RCE (Remote Code Execution) attacks. The attacker can escape the VM and run code at process level.
|
|
189
|
+
|
|
190
|
+
It is recommended to disable code generation and freeze all builtins at process level by running node with the flags "--disallow-code-generation-from-strings" and "--frozen-intrinsics". You can suppress this warning by setting "suppressInsecureJavaScriptEnvironmentWarning" to "true" at your own risk.
|
|
191
|
+
|
|
192
|
+
For more information, see https://github.com/capricorn86/happy-dom/wiki/JavaScript-Evaluation-Warning
|
|
193
|
+
|
|
194
|
+
`)}[Me](){if(this.closed)return;super[Me](),this.closed=!0;let e=this[vt];for(let t of e)t[Me]&&t[Me]();this[vt]=[];for(let e of this[rs])e[Me]();this[rs]=[],this.document[Me]();let t=this.document.createElement(`html`),n=this.document.createElement(`head`),r=this.document.createElement(`body`);t.appendChild(n),t.appendChild(r),this.document[Pn](t),this.location[Me]&&this.location[Me](),this.customElements[Me]&&this.customElements[Me](),this.history[Me]&&this.history[Me](),this[ko].json.clear(),this[ko].css.clear(),this[ko].esm.clear(),this.document[Ao].clear(),this.document[de]=null,this.document[Je]=null,this.document[Oe]=null,this.document[st]=null,this[dr]=null,this[fr]=null,Y.removeWindowBrowserFrameRelation(this)}[wo](){for(let t of[e,tl]){let e=Object.getOwnPropertyDescriptors(t.prototype),n=Object.keys(e);for(let t of n){let n=e[t];n.get||n.set?Object.defineProperty(this,t,{...n,get:n.get?.bind(this),set:n.set?.bind(this)}):t!==`constructor`&&typeof n.value==`function`&&!n.value.toString().startsWith(`class `)&&Object.defineProperty(this,t,{...n,value:n.value.bind(this)})}}}},wy=class{static evaluate(e,t){if(!e.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);return t=typeof t==`string`?new se(t):t,t.runInContext(e.window)}static async evaluateModule(e,t){if(!e.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);let n=e.window;if(t?.code){let e=t.url?new URL(t.url,n.location.href):n.location,r=t.code;switch(t?.type||`esm`){case`esm`:return await new vm({window:n,url:e,source:r,factory:new ym(n,e)}).evaluate();case`json`:return await new tm({window:n,url:e,source:r}).evaluate();case`css`:return await new em({window:n,url:e,source:r}).evaluate()}}return t?.url?await(await new ym(n,n.location).getModule(t.url,{with:{type:t.type||`esm`}})).evaluate():{}}},Ty=class{currentItem={title:``,href:`about:blank`,state:null,popState:!1,scrollRestoration:qu.auto,method:`GET`,formData:null};items=[this.currentItem];push(e){let t=this.items.indexOf(this.currentItem);t!==this.items.length-1&&(this.items.length=t+1),this.items.push(e),this.currentItem=e}replace(e){let t=this.items.indexOf(this.currentItem);if(t!==this.items.length-1&&(this.items.length=t+1),t===-1)throw Error(`Current history item not found`);this.currentItem=e,this.items[t]=e}clear(){this.items.length=0,this.currentItem={title:``,href:`about:blank`,state:null,popState:!1,scrollRestoration:qu.auto,method:`GET`,formData:null},this.items.push(this.currentItem)}},Ey=class{#e;#t={};#n={};#r=0;#i=[];constructor(e){this.#e=e}assert(e,t,...n){e||this.#e.print({type:Ds.assert,level:Ss.error,message:[`Assertion failed:`,...t?[t,...n]:n],group:this.#i[this.#i.length-1]||null})}clear(){this.#e.clear()}count(e=`default`){this.#t[e]||(this.#t[e]=0),this.#t[e]++,this.#e.print({type:Ds.count,level:Ss.info,message:[`${e}: ${this.#t[e]}`],group:this.#i[this.#i.length-1]||null})}countReset(e=`default`){delete this.#t[e],this.#e.print({type:Ds.countReset,level:Ss.warn,message:[`${e}: 0`],group:this.#i[this.#i.length-1]||null})}debug(e,...t){this.#e.print({type:Ds.debug,level:Ss.log,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}dir(e){this.#e.print({type:Ds.dir,level:Ss.log,message:[e],group:this.#i[this.#i.length-1]||null})}dirxml(e){this.#e.print({type:Ds.dirxml,level:Ss.log,message:[e],group:this.#i[this.#i.length-1]||null})}error(e,...t){this.#e.print({type:Ds.error,level:Ss.error,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}exception(...e){this.error(...e)}group(e){this.#r++;let t={id:this.#r,label:e||`default`,collapsed:!1,parent:this.#i[this.#i.length-1]||null};this.#i.push(t),this.#e.print({type:Ds.group,level:Ss.log,message:[e||`default`],group:t})}groupCollapsed(e){this.#r++;let t={id:this.#r,label:e||`default`,collapsed:!0,parent:this.#i[this.#i.length-1]||null};this.#i.push(t),this.#e.print({type:Ds.groupCollapsed,level:Ss.log,message:[e||`default`],group:t})}groupEnd(){this.#i.length!==0&&this.#i.pop()}info(e,...t){this.#e.print({type:Ds.info,level:Ss.info,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}log(e,...t){this.#e.print({type:Ds.log,level:Ss.log,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}profile(){throw Error(`Method not implemented.`)}profileEnd(){throw Error(`Method not implemented.`)}table(e){this.#e.print({type:Ds.table,level:Ss.log,message:[e],group:this.#i[this.#i.length-1]||null})}time(e=`default`){this.#n[e]=performance.now()}timeEnd(e=`default`){let t=this.#n[e];if(t){let n=performance.now()-t;this.#e.print({type:Ds.timeEnd,level:Ss.info,message:[`${e}: ${n}ms - timer ended`],group:this.#i[this.#i.length-1]||null})}}timeLog(e=`default`,...t){let n=this.#n[e];if(n){let r=performance.now()-n;this.#e.print({type:Ds.timeLog,level:Ss.info,message:[`${e}: ${r}ms`,...t],group:this.#i[this.#i.length-1]||null})}}timeStamp(){throw Error(`Method not implemented.`)}trace(e,...t){this.#e.print({type:Ds.trace,level:Ss.log,message:[...e?[e,...t]:t,Error(`stack`).stack.replace(`Error: stack`,``)],group:this.#i[this.#i.length-1]||null})}warn(e,...t){this.#e.print({type:Ds.warn,level:Ss.warn,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}},Dy=class{static getFrames(e){return this.findFrames(e.mainFrame)}static closePage(e){if(e.closed)return Promise.resolve();e.closed=!0;let t=e.context.pages.indexOf(e);return t!==-1&&e.context.pages.splice(t,1),e.virtualConsolePrinter.close(),sp.destroyFrame(e.mainFrame)}static findFrames(e){let t=[e];for(let n of e.childFrames)t=t.concat(this.findFrames(n));return t}},Oy=class{#e=new Map;get(e){let t=this.#e.get(e.url);return t?t.expires<Date.now()?(this.#e.delete(e.url),null):t:null}add(e,t){if(this.#e.delete(e.url),e.headers.get(`Cache-Control`)?.includes(`no-cache`)||t.status<200||t.status>=300)return null;let n=t.headers.get(`Access-Control-Max-Age`),r=t.headers.get(`Access-Control-Allow-Origin`);if(!n||!r)return null;let i=[];if(t.headers.has(`Access-Control-Allow-Methods`)&&t.headers.get(`Access-Control-Allow-Methods`)!==`*`)for(let e of t.headers.get(`Access-Control-Allow-Methods`).split(`,`))i.push(e.trim().toUpperCase());let a={allowOrigin:r,allowMethods:i,expires:Date.now()+parseInt(n)*1e3};return isNaN(a.expires)||a.expires<Date.now()?null:(this.#e.set(e.url,a),a)}clear(){this.#e.clear()}},ky={disableJavaScriptEvaluation:!1,enableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,enableImageFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:Is.tryAndCatch,enableFileSystemHttpRequests:!1,suppressCodeGenerationFromStringsWarning:!1,suppressInsecureJavaScriptEnvironmentWarning:!1,timer:{maxTimeout:-1,maxIntervalTime:-1,maxIntervalIterations:-1,preventTimerLoops:!1},fetch:{disableSameOriginPolicy:!1,disableStrictSSL:!1,interceptor:null,requestHeaders:null,virtualServers:null},module:{resolveNodeModules:null,urlResolver:null,disableCache:!1},navigation:{disableMainFrameNavigation:!1,disableChildFrameNavigation:!1,disableChildPageNavigation:!1,disableFallbackToSetURL:!1,crossOriginPolicy:lp.anyOrigin,beforeContentCallback:null},navigator:{userAgent:`Mozilla/5.0 (X11; ${process.platform.charAt(0).toUpperCase()+process.platform.slice(1)+` `+process.arch}) AppleWebKit/537.36 (KHTML, like Gecko) HappyDOM/${{version:`20.10.2`}.version}`,maxTouchPoints:0},device:{prefersColorScheme:`light`,prefersReducedMotion:`no-preference`,mediaType:`screen`,forcedColors:`none`},debug:{traceWaitUntilComplete:-1},viewport:{width:1024,height:768,devicePixelRatio:1},canvasAdapter:null},Ay=class{static createSettings(e){return e&&this.validate(ky,e),{...ky,...e,navigation:{...ky.navigation,...e?.navigation},navigator:{...ky.navigator,...e?.navigator},timer:{...ky.timer,...e?.timer},fetch:{...ky.fetch,...e?.fetch},module:{...ky.module,...e?.module},device:{...ky.device,...e?.device},debug:{...ky.debug,...e?.debug},viewport:{...ky.viewport,...e?.viewport},canvasAdapter:e?.canvasAdapter??ky.canvasAdapter}}static validate(e,t,n){for(let r of Object.keys(t)){if(e[r]===void 0){let e=n?n+`.`+r:r;throw Error(`Unknown browser setting "${e}"`)}if(typeof e[r]==`object`&&!Array.isArray(e[r])&&e[r]!==null){let i=n?n+`.`+r:r;if(typeof t[r]!=`object`||Array.isArray(t[r])||t[r]===null)throw Error(`Browser setting "${i}" cannot be null`);this.validate(e[r],t[r],i)}else if((typeof e[r]==`boolean`||typeof e[r]==`number`||typeof e[r]==`string`)&&typeof t[r]!=typeof e[r]&&!(r===`preventTimerLoops`&&typeof t[r]==`object`&&t[r]!==null)){let t=n?n+`.`+r:r;throw Error(`Browser setting "${t}" must be of type "${typeof e[r]}"`)}}}},jy=class{static listenerCount=0;observedWindows=[];uncaughtExceptionListener=null;uncaughtRejectionListener=null;observe(e){if(this.observedWindows.includes(e))throw Error(`Browser window is already being observed.`);this.observedWindows.push(e),!this.uncaughtExceptionListener&&(this.uncaughtExceptionListener=(e,t)=>{if(t===`unhandledRejection`)return;let n=null;for(let t of this.observedWindows)if(e instanceof t.Error||e instanceof t.DOMException){n=t;break}n?(n.console.error(e),n.dispatchEvent(new n.ErrorEvent(`error`,{error:e,message:e.message}))):process.listenerCount(`uncaughtException`)===this.constructor.listenerCount&&(console.error(e),process.exit(1))},this.uncaughtRejectionListener=e=>{let t=null;for(let n of this.observedWindows)if(e instanceof n.Error||e instanceof n.DOMException){t=n;break}t?(t.console.error(e),t.dispatchEvent(new t.ErrorEvent(`error`,{error:e,message:e.message}))):process.listenerCount(`unhandledRejection`)===this.constructor.listenerCount&&(console.error(e),process.exit(1))},this.constructor.listenerCount++,process.on(`uncaughtException`,this.uncaughtExceptionListener),process.on(`unhandledRejection`,this.uncaughtRejectionListener))}disconnect(e){let t=this.observedWindows.indexOf(e);t!==-1&&(this.observedWindows.splice(t,1),this.observedWindows.length===0&&this.uncaughtExceptionListener&&(this.constructor.listenerCount--,process.off(`uncaughtException`,this.uncaughtExceptionListener),this.uncaughtRejectionListener&&process.off(`unhandledRejection`,this.uncaughtRejectionListener),this.uncaughtExceptionListener=null,this.uncaughtRejectionListener=null))}},My=class{childFrames=[];parentFrame=null;page;closed=!1;[fe]=new Ms(this);[Ke]={navigation:[]};[yt]=null;[bt]=null;[St]=!1;[Dn]=new Ty;constructor(e){this.page=e,e.context.browser.contexts[0]?.pages[0]?.mainFrame&&(this.window=new this.page.context.browser.windowClass(this),e.context.browser[Ie]&&e.context.browser[Ie].observe(this.window))}get content(){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);return this.window.document.documentElement.outerHTML}set content(e){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);this.window.document[Ve]=!0,this.window.document[He]=!1,this.window.document.open(),this.window.document.write(e)}get url(){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);return this.window.location.href}set url(e){if(!this.window)throw Error(`The frame has been destroyed, the "window" property is not set.`);this.window[En][Cn](this,Ju.getRelativeURL(this,e).href)}get document(){return this.window?.document??null}async waitUntilComplete(){await Promise.all([this[fe].waitUntilComplete(),...this.childFrames.map(e=>e.waitUntilComplete())])}waitForNavigation(){return new Promise(e=>this[Ke].navigation.push(e))}abort(){return this.childFrames.length?new Promise((e,t)=>{Promise.all(this.childFrames.map(e=>e.abort()).concat([this[fe].abort()])).then(()=>e()).catch(t)}):this[fe].abort()}evaluate(e){return wy.evaluate(this,e)}evaluateModule(e){return wy.evaluateModule(this,e)}goto(e,t){return dp.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:e,goToOptions:t})}goBack(e){return dp.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goForward(e){return dp.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goSteps(e,t){return dp.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:e,goToOptions:t})}reload(e){return dp.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}},Ny=class{virtualConsolePrinter=new ks;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new Ey(this.virtualConsolePrinter),this.mainFrame=new My(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return Dy.getFrames(this)}get content(){return this.mainFrame.content}set content(e){this.mainFrame.content=e}get url(){return this.mainFrame.url}set url(e){this.mainFrame.url=e}close(){return new Promise((e,t)=>{let n=this.context;Dy.closePage(this).then(()=>{n.pages[0]===this?n.browser.close().then(e).catch(t):e()}).catch(t)})}waitUntilComplete(){return this.mainFrame.waitUntilComplete()}waitForNavigation(){return this.mainFrame.waitForNavigation()}abort(){return this.mainFrame.abort()}evaluate(e){return this.mainFrame.evaluate(e)}evaluateModule(e){return this.mainFrame.evaluateModule(e)}setViewport(e){let t=Object.assign({},this.viewport);Object.assign(this.viewport,e),(t.width!==this.viewport.width||t.height!==this.viewport.height||t.devicePixelRatio!==this.viewport.devicePixelRatio)&&this.mainFrame.window.dispatchEvent(new W(`resize`))}goto(e,t){return this.mainFrame.goto(e,t)}goBack(e){return this.mainFrame.goBack(e)}goForward(e){return this.mainFrame.goForward(e)}goSteps(e,t){return this.mainFrame.goSteps(e,t)}reload(e){return this.mainFrame.reload(e)}},Py=class{pages;browser;cookieContainer=new fs;responseCache=new bs;preflightResponseCache=new Oy;closed=!1;[as]=new Map;constructor(e){this.browser=e,this.pages=[],this.pages.push(new Ny(this))}async close(){if(this.closed)return;if(this.browser.contexts[0]===this)throw Error("Cannot close the default context. Use `browser.close()` to close the browser instead.");this.closed=!0,await Promise.all(this.pages.slice().map(e=>e.close()));let e=this.browser,t=e.contexts.indexOf(this);t!==-1&&e.contexts.splice(t,1),this.pages=[],this.cookieContainer.clearCookies(),this.responseCache.clear(),this.preflightResponseCache.clear()}async waitUntilComplete(){await Promise.all(this.pages.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.pages.length){e();return}Promise.all(this.pages.slice().map(e=>e.abort())).then(()=>e()).catch(e=>t(e))})}newPage(){let e=new Ny(this);return this.pages.push(e),e}},Fy=class{contexts;settings;console;windowClass;[Ie]=null;constructor(e,t){this.windowClass=e,this.console=t?.console||null,this.settings=Ay.createSettings(t?.settings),this.settings.errorCapture===Is.processLevel&&(this[Ie]=new jy),this.contexts=[],this.contexts.push(new Py(this))}get closed(){return this.contexts.length===0}get defaultContext(){if(this.contexts.length===0)throw Error(`No default context. The browser has been closed.`);return this.contexts[0]}async close(){if(this.contexts.length===0)return;let e=this.contexts;this.contexts=[],await Promise.all(e.map(e=>e.close()))}async waitUntilComplete(){await Promise.all(this.contexts.map(e=>e.waitUntilComplete()))}abort(){return new Promise((e,t)=>{if(!this.contexts.length){e();return}Promise.all(this.contexts.slice().map(e=>e.abort())).then(()=>e()).catch(e=>t(e))})}newIncognitoContext(){throw Error(`Not possible to create a new context on a detached browser.`)}newPage(){if(this.contexts.length===0)throw Error(`No default context. The browser has been closed.`);return this.contexts[0].newPage()}},Iy=class{#e;constructor(e){this.#e=e}get settings(){return this.#e.page.context.browser.settings}get virtualConsolePrinter(){return this.#e.page.virtualConsolePrinter}waitUntilComplete(){return this.#e.waitUntilComplete()}whenAsyncComplete(){return this.waitUntilComplete()}abort(){return this.#e.abort()}cancelAsync(){return this.abort()}close(){return this.#e.page.close()}setURL(e){this.#e.url=e}setViewport(e){this.#e.page.setViewport(e)}setWindowSize(e){this.setViewport({width:e?.width,height:e?.height})}setInnerWidth(e){this.setViewport({width:e})}setInnerHeight(e){this.setViewport({height:e})}},Ly=class extends Cy{happyDOM;constructor(e){let t=new Fy(Cy,{console:e?.console,settings:e?.settings}).defaultContext.pages[0],n=t.mainFrame;e&&(e.width||e.height||e.innerWidth||e.innerHeight)&&Object.assign(t.viewport,{width:e.width||e.innerWidth||t.viewport.width,height:e.height||e.innerHeight||t.viewport.height}),super(n,{url:e?.url}),n.window=this,n.page.context.browser[Ie]&&n.page.context.browser[Ie].observe(this),this.happyDOM=new Iy(n)}};export{Ly as Window};
|
|
195
|
+
//# sourceMappingURL=lib-CItGM3rN.mjs.map
|