@inkeep/open-knowledge 0.42.1 → 0.43.0-beta.1
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/{acp-harness-probe-BC8-tjIs.mjs → acp-harness-probe-DGTFmQbn.mjs} +2 -2
- package/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/assets/skills/write-skill/SKILL.md +1 -1
- package/dist/{build-fAc55Z_L.mjs → build-DYQrG4v7.mjs} +1 -1
- package/dist/build-DcqN8tua.mjs +1 -0
- package/dist/{chunk-TLSUDHID-BOrmK-jg.mjs → chunk-TLSUDHID-B0bd8ZfM.mjs} +2 -2
- package/dist/cli.mjs +60 -60
- package/dist/config-schema.json +180 -0
- package/dist/config.project.schema.json +180 -0
- package/dist/constants-O0xpb7mH.mjs +2 -0
- package/dist/{diff-HJF2MPDN-BvwqXcA5.mjs → diff-HJF2MPDN-DhZaF2MX.mjs} +1 -1
- package/dist/{flag-coverage-6JEX67RU-D3X0I2ha.mjs → flag-coverage-6JEX67RU-D1byxsyF.mjs} +2 -2
- package/dist/fs-traced-CeWo_16n.mjs +1 -0
- package/dist/{fs-traced-Cc6WsRtP.mjs → fs-traced-DDm-belY.mjs} +2 -2
- package/dist/git-handle-DsVW51IO.mjs +1 -0
- package/dist/{git-handle-BFhoHYr0.mjs → git-handle-vqpcA9VH.mjs} +2 -2
- package/dist/index.d.mts +41 -13
- package/dist/index.mjs +1 -1
- package/dist/{init-D7cD6zok.mjs → init-CCnKaiOs.mjs} +37 -37
- package/dist/init-CF2-_1EB.mjs +1 -0
- package/dist/{launch-json-removal-CTJjliTF.mjs → launch-json-removal-DpMakhDe.mjs} +2 -2
- package/dist/{lib-CE7ieLC-.mjs → lib-BS_oZ9bm.mjs} +4 -4
- package/dist/{libesm-CG75CrN9.mjs → libesm-DzwC_yFw.mjs} +1 -1
- package/dist/{loader-CiE2EBJO.mjs → loader-96AKdkqe.mjs} +2 -2
- package/dist/loader-Bm4GaiwL.mjs +1 -0
- package/dist/md-manager-DqqkZBfY.mjs +2 -0
- package/dist/{open-browser-Be1y1t9d.mjs → open-browser-D62jJdtT.mjs} +2 -2
- package/dist/parse-worker.mjs +1 -1
- package/dist/preview-Df7P6EY2.mjs +1 -0
- package/dist/{preview-DXg4YbDp.mjs → preview-DyAg02Zz.mjs} +2 -2
- package/dist/public/assets/ActivityModeContent-g89D5S8f.js +1 -0
- package/dist/public/assets/AgentDiffPane-DEEEC5SC.js +2 -0
- package/dist/public/assets/{AgentThreadClientBinder-MaSL3zla.js → AgentThreadClientBinder-DEl9X_lO.js} +1 -1
- package/dist/public/assets/CodeMirrorPropInput-Bu3Fs6zS.js +3 -0
- package/dist/public/assets/{ConsentDialogBody-BjbzWR8D.js → ConsentDialogBody-CiXNBNFL.js} +1 -1
- package/dist/public/assets/DocumentContext-rC30TeU1.js +38 -0
- package/dist/public/assets/{EditorModeToggle-D0Db8Ydu.js → EditorModeToggle-sLw-NDKx.js} +2 -2
- package/dist/public/assets/{EnableSyncConfirmDialog-B2sHRtLY.js → EnableSyncConfirmDialog-CyQvFQvF.js} +1 -1
- package/dist/public/assets/FeedbackForm-Xv5Ofoot.js +1 -0
- package/dist/public/assets/GraphPanel-D__pyQFw.js +44 -0
- package/dist/public/assets/{LintConfigEditor-DKgxJcvl.js → LintConfigEditor-8qwaKsqI.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-C6PhweIc.js +1 -0
- package/dist/public/assets/{McpConsentDialogBody-CYOKF_sf.js → McpConsentDialogBody-v3xzJlUc.js} +1 -1
- package/dist/public/assets/MermaidDocEditor-Cb1XUuYg.js +1 -0
- package/dist/public/assets/PropertyPanel-CNbo8u41.js +2 -0
- package/dist/public/assets/{RegisteredAgentIcon-8Tcfr3WP.js → RegisteredAgentIcon-C2dU04N7.js} +1 -1
- package/dist/public/assets/ReportBugDialogBody-B9Fanm3L.js +3 -0
- package/dist/public/assets/{SchemaConfigEditor-D7xbhgl6.js → SchemaConfigEditor-BsQuL-UF.js} +1 -1
- package/dist/public/assets/SettingsDialogBody-D60WwzYw.js +7 -0
- package/dist/public/assets/{ShareBranchSwitchDialog-C6G5A_aK.js → ShareBranchSwitchDialog-CBAwJPzC.js} +1 -1
- package/dist/public/assets/{ShareReceiveDialog-DLEkjmkI.js → ShareReceiveDialog-By_ADxES.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-Ls1ECEge.js → ShareReceiveMissDialog-DRPeFjq_.js} +1 -1
- package/dist/public/assets/{SkillEditorActions-AGeWFFyT.js → SkillEditorActions-DUmsYRmo.js} +1 -1
- package/dist/public/assets/SourceEditor-C-UqlkGB.js +1 -0
- package/dist/public/assets/{TerminalPanel-Bf_h8SIB.js → TerminalPanel-CTqU6o3s.js} +3 -3
- package/dist/public/assets/TerminalSessionsHost-BPvs6cwd.js +2 -0
- package/dist/public/assets/{TerminalWindowApp-2yCXBcQc.js → TerminalWindowApp-OPcXReB3.js} +1 -1
- package/dist/public/assets/ThreadView-3ad12XVo.js +6 -0
- package/dist/public/assets/TimelineDiffPane-DgNva1gq.js +2 -0
- package/dist/public/assets/{abnfDiagram-VRR7QNED-BN6xOaJK.js → abnfDiagram-VRR7QNED-BA0sca5y.js} +1 -1
- package/dist/public/assets/{agent-diff-store-Bi0IQPgd.js → agent-diff-store-C047fGBn.js} +1 -1
- package/dist/public/assets/{agent-visibility-HpfSUFqP.js → agent-visibility-BF9jUA-S.js} +1 -1
- package/dist/public/assets/{arc-DXLgvp45.js → arc-DIcYIkPb.js} +1 -1
- package/dist/public/assets/architecture-TIHT7OUA-DhKVyAdC.js +1 -0
- package/dist/public/assets/{architectureDiagram-ZJ3FMSHR-sAL9H8K0.js → architectureDiagram-ZJ3FMSHR-CyZsfJqr.js} +1 -1
- package/dist/public/assets/auth-state-cache-BlO5xkpU.js +11 -0
- package/dist/public/assets/awareness-heartbeat.worker-BYkbsKQ2.js +1 -0
- package/dist/public/assets/{blockDiagram-677ZJIJ3-CecPiwgF.js → blockDiagram-677ZJIJ3-BL4J4ddi.js} +1 -1
- package/dist/public/assets/{c4Diagram-LMCZKHZV-D8mdqYYS.js → c4Diagram-LMCZKHZV-DtpyWL_l.js} +1 -1
- package/dist/public/assets/{calendar-DEDeJBdZ.js → calendar-2iQWonjM.js} +1 -1
- package/dist/public/assets/channel-D7XYjy4a.js +1 -0
- package/dist/public/assets/chunk-2Q5K7J3B-BpVQiBsM.js +1 -0
- package/dist/public/assets/{chunk-32BRIVSS-JpxGJ5ji.js → chunk-32BRIVSS-J_rdnOiy.js} +1 -1
- package/dist/public/assets/{chunk-52WLFC77-C_iSxcYL.js → chunk-52WLFC77-BOMCKXNP.js} +1 -1
- package/dist/public/assets/{chunk-5FCAYU7R-Bq8uZn8B.js → chunk-5FCAYU7R-8Y9BJKC-.js} +1 -1
- package/dist/public/assets/{chunk-5HE753X5-Canmf8DQ.js → chunk-5HE753X5-CQEApaqU.js} +1 -1
- package/dist/public/assets/{chunk-5JV3BV7I-Dtexaqo4.js → chunk-5JV3BV7I-Wp4ieThX.js} +1 -1
- package/dist/public/assets/{chunk-5TONJI2A-QaNyDyr1.js → chunk-5TONJI2A-Dht2oB5p.js} +1 -1
- package/dist/public/assets/{chunk-5VM5RSS4-DnRDZx9C.js → chunk-5VM5RSS4-BtUIXst7.js} +1 -1
- package/dist/public/assets/{chunk-7BUUIJ7U-CjwBXrEk.js → chunk-7BUUIJ7U-B7ItXXvn.js} +1 -1
- package/dist/public/assets/{chunk-BIQX33UG-CwPTWPTQ.js → chunk-BIQX33UG-B4CjyNhu.js} +1 -1
- package/dist/public/assets/{chunk-BO2N2NFS-BTXsfKML.js → chunk-BO2N2NFS-DMgXoikU.js} +3 -3
- package/dist/public/assets/{chunk-C7G6YPKG-yRQSkwCz.js → chunk-C7G6YPKG-Bhzd4FsL.js} +1 -1
- package/dist/public/assets/{chunk-CQNSW5MT-BzGo9Za_.js → chunk-CQNSW5MT-CVrDoms_.js} +1 -1
- package/dist/public/assets/{chunk-CYSBUYHQ-CKmnpHug.js → chunk-CYSBUYHQ-N9puYKAt.js} +1 -1
- package/dist/public/assets/{chunk-EMLP6XTP-_x7IkQoS.js → chunk-EMLP6XTP-ACA6yW7o.js} +1 -1
- package/dist/public/assets/{chunk-EX3LRPZG-Dp9dLoos.js → chunk-EX3LRPZG-BIvLDOrf.js} +1 -1
- package/dist/public/assets/{chunk-FWX5IMBZ-DS2bi_oI.js → chunk-FWX5IMBZ-1CESfm5O.js} +2 -2
- package/dist/public/assets/{chunk-HOUHSVGY-CiAzcmEO.js → chunk-HOUHSVGY-DTcG17JD.js} +1 -1
- package/dist/public/assets/{chunk-ICXQ74PX-COjRz7aI.js → chunk-ICXQ74PX-CDyWyZCQ.js} +1 -1
- package/dist/public/assets/{chunk-JG7HCLWE-BIqqOtX1.js → chunk-JG7HCLWE-gt52jYPR.js} +1 -1
- package/dist/public/assets/{chunk-JWPE2WC7-DKmcMFEN.js → chunk-JWPE2WC7-BIGkO1cG.js} +1 -1
- package/dist/public/assets/{chunk-MOJQB5TN-BJQv3CxF.js → chunk-MOJQB5TN-dX_Ns_6-.js} +1 -1
- package/dist/public/assets/{chunk-MOZMSUNE-Cy6wrRA7.js → chunk-MOZMSUNE-DtIvb1II.js} +1 -1
- package/dist/public/assets/{chunk-OGEWGWER-C7C3Oiaz.js → chunk-OGEWGWER-BgCGYbch.js} +1 -1
- package/dist/public/assets/{chunk-OSBZ3O6U-DmX-gaPq.js → chunk-OSBZ3O6U-BjU8eaT1.js} +1 -1
- package/dist/public/assets/{chunk-PUDLZKDR-ZoTPQ917.js → chunk-PUDLZKDR-BtLyPGmD.js} +1 -1
- package/dist/public/assets/{chunk-Q4XR5HBZ-sjes-Yon.js → chunk-Q4XR5HBZ-B32WTAPs.js} +1 -1
- package/dist/public/assets/{chunk-QBLGF6JB-BiU9LEk8.js → chunk-QBLGF6JB-CprENtRb.js} +1 -1
- package/dist/public/assets/{chunk-R7FJI6CG-BAfUnNIm.js → chunk-R7FJI6CG-DCV9Dvbs.js} +1 -1
- package/dist/public/assets/{chunk-RYQCIY6F-IRvgwbUs.js → chunk-RYQCIY6F-DAyLri1b.js} +1 -1
- package/dist/public/assets/{chunk-U6XO7XAA-2Ds3FX_A.js → chunk-U6XO7XAA-DSdpZQB7.js} +1 -1
- package/dist/public/assets/{chunk-V7JOEXUC-Xkrljz-l.js → chunk-V7JOEXUC-9lX7N0EN.js} +1 -1
- package/dist/public/assets/chunk-VAUOI2AC-buA1NS7h.js +1 -0
- package/dist/public/assets/{chunk-VR4S4FIN-Db6y0lij.js → chunk-VR4S4FIN-CcTJJ1HA.js} +1 -1
- package/dist/public/assets/{chunk-WYO6CB5R-WjatCbeP.js → chunk-WYO6CB5R-9yPqK9ib.js} +1 -1
- package/dist/public/assets/chunk-XXDRQBXY-Dpdm1nrz.js +1 -0
- package/dist/public/assets/{chunk-YOTPTUD7-BDIMzFfd.js → chunk-YOTPTUD7-DBti7bK5.js} +1 -1
- package/dist/public/assets/{chunk-ZGVPDNZ5-DKtGLh__.js → chunk-ZGVPDNZ5-5ruaVNfo.js} +1 -1
- package/dist/public/assets/{chunk-ZIRB5QZD-JvsKOaWe.js → chunk-ZIRB5QZD-DmY1977n.js} +1 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-BdRcUr99.js +1 -0
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-4fffeoHu.js +1 -0
- package/dist/public/assets/client-version-BXkMIB54.js +1 -0
- package/dist/public/assets/{config-provider-DIuwNlqX.js → config-provider-Csi6hMEt.js} +2 -2
- package/dist/public/assets/{cose-bilkent-JH36ORCC-B5xjEHuC.js → cose-bilkent-JH36ORCC-D8nyC_t4.js} +1 -1
- package/dist/public/assets/cynefin-VYW2F7L2-BlrdxSfe.js +1 -0
- package/dist/public/assets/{cynefinDiagram-TSTJHNR4-BeGFvfoc.js → cynefinDiagram-TSTJHNR4-B4B58YEO.js} +1 -1
- package/dist/public/assets/{dagre-CLVncoxl.js → dagre-DjTdhlGF.js} +1 -1
- package/dist/public/assets/{dagre-VKFMJZFB-D98i06T_.js → dagre-VKFMJZFB-DQHmtQOE.js} +1 -1
- package/dist/public/assets/{diagram-FQU43EPY--u6SeKWp.js → diagram-FQU43EPY-B28ABQG6.js} +1 -1
- package/dist/public/assets/{diagram-G47NLZAW-BqkpNwsF.js → diagram-G47NLZAW-1MthGQcj.js} +1 -1
- package/dist/public/assets/{diagram-NH7WQ7WH-eeVqGH2O.js → diagram-NH7WQ7WH-B_Fhjw29.js} +1 -1
- package/dist/public/assets/{diagram-OA4YK3LP-D_SnUALW.js → diagram-OA4YK3LP-1B7_yz5p.js} +1 -1
- package/dist/public/assets/{diagram-WEI45ONY-DKlVw8je.js → diagram-WEI45ONY-DzfuKRxf.js} +1 -1
- package/dist/public/assets/dist-ChSSPf9y.js +2 -0
- package/dist/public/assets/dist-CslAqn54.js +1 -0
- package/dist/public/assets/{dist-Cal4LUep.js → dist-D5TEqH45.js} +170 -168
- package/dist/public/assets/{dist-DQ4RxLMf.js → dist-DL8cni8v.js} +1 -1
- package/dist/public/assets/{doc-hash-BSK-KaTu.js → doc-hash--5hQmcT5.js} +1 -1
- package/dist/public/assets/{documents-events-1HWCdfoh.js → documents-events-B0k6hZi4.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-CCIWWBDH-d0cDPEQB.js → ebnfDiagram-CCIWWBDH-BjazoYYO.js} +1 -1
- package/dist/public/assets/{erDiagram-Q63AITRT-BsZ0tL6Z.js → erDiagram-Q63AITRT-DvgiLWl5.js} +1 -1
- package/dist/public/assets/eventmodeling-45OFAUF4-D8s6Yevv.js +1 -0
- package/dist/public/assets/{file-tree-adapter-Dw7Dgyj1.js → file-tree-adapter-CZ6DDAA4.js} +1 -1
- package/dist/public/assets/{file-tree-utils-DiUPuK3N.js → file-tree-utils-BaZOVY6J.js} +1 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-hlKdkNzZ.js +1 -0
- package/dist/public/assets/{ganttDiagram-NO4QXBWP-DPxkIh3b.js → ganttDiagram-NO4QXBWP-CJgOU-j1.js} +1 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-B-5iqxxO.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-IHSO6WYX-vSvxugX5.js → gitGraphDiagram-IHSO6WYX-DYP87cJL.js} +1 -1
- package/dist/public/assets/globals-88oPHAs4.css +1 -0
- package/dist/public/assets/{globals-CXEWtNVL.js → globals-BzYms-F0.js} +1 -1
- package/dist/public/assets/{graphlib-C4UD57Nn.js → graphlib-DYCc0Y9o.js} +1 -1
- package/dist/public/assets/{highlighted-body-OFNGDK62-DCKUiY8r.js → highlighted-body-OFNGDK62-C9GzQB8c.js} +1 -1
- package/dist/public/assets/index-CMPrUhWJ.js +2014 -0
- package/dist/public/assets/info-DKCQHKI2-CkzkGEPY.js +1 -0
- package/dist/public/assets/{infoDiagram-FWYZ7A6U-Crh0f5aw.js → infoDiagram-FWYZ7A6U-CbZOQ254.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-FXEZZL3T-DBJ4jEKk.js → ishikawaDiagram-FXEZZL3T-CUWPHUOP.js} +1 -1
- package/dist/public/assets/{journeyDiagram-5HDEW3XC-CUDo0rzP.js → journeyDiagram-5HDEW3XC-RLUp44OU.js} +1 -1
- package/dist/public/assets/{kanban-definition-HUTT4EX6-CJD8Oexf.js → kanban-definition-HUTT4EX6-D4TPhDQW.js} +1 -1
- package/dist/public/assets/{line-ClsiHw5g.js → line-KTG0S8eM.js} +1 -1
- package/dist/public/assets/{linear-BklRBRnp.js → linear-D6fTctUn.js} +1 -1
- package/dist/public/assets/lint-config-client-DbmBCBFs.js +1 -0
- package/dist/public/assets/{map-CMaVsxPf.js → map-Rw6uJqFR.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-rS3aDGOb.js → markdownlint-rule-browser-CKqigNbJ.js} +1 -1
- package/dist/public/assets/mermaid-GHXKKRXX-WtDC9WMV.js +1 -0
- package/dist/public/assets/{mermaid-parser.core-D-rj2UdW.js → mermaid-parser.core-CusxBOjy.js} +2 -2
- package/dist/public/assets/{mermaid.core-DZGNq3YZ.js → mermaid.core-okCkIUps.js} +3 -3
- package/dist/public/assets/{mindmap-definition-LN4V7U3C-Drk1V3-q.js → mindmap-definition-LN4V7U3C-D-eGlMvq.js} +1 -1
- package/dist/public/assets/{navigation-targets-Ci2h-vaL.js → navigation-targets-CYyBnqZZ.js} +1 -1
- package/dist/public/assets/{now-Ck_JVNC2.js → now-DRL8tqfF.js} +1 -1
- package/dist/public/assets/{open-managed-artifact-tab-DfGutPkc.js → open-managed-artifact-tab-BEVP0SdK.js} +1 -1
- package/dist/public/assets/{ordinal-DrDHGs3t.js → ordinal-DnmHW-WD.js} +1 -1
- package/dist/public/assets/overlay-layers-y-dNUWSd.js +1 -0
- package/dist/public/assets/packet-7NZHBO7P-DDIvLOTX.js +1 -0
- package/dist/public/assets/{pegDiagram-2B236MQR-CM3AjMbx.js → pegDiagram-2B236MQR-Bjnm3xCN.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-BuGLGemz.js → pending-receive-nav-store-D6BuHzW7.js} +1 -1
- package/dist/public/assets/pie-RZYD4A2V-DnssmCEa.js +1 -0
- package/dist/public/assets/{pieDiagram-ENE6RG2P-D8wIwdwS.js → pieDiagram-ENE6RG2P-BkLpbnFN.js} +1 -1
- package/dist/public/assets/{prop-types-B-N3_i3c.js → prop-types-BBKV1S78.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-ABIIQ3AL-h2Dtd1uI.js → quadrantDiagram-ABIIQ3AL-eMGNkhp-.js} +1 -1
- package/dist/public/assets/radar-I7S5WNFK-0J5y2_MO.js +1 -0
- package/dist/public/assets/railroad-3IZDKUUU-BgsONsxl.js +1 -0
- package/dist/public/assets/railroad-abnf-AHOZXSZD-BhBo_9j9.js +1 -0
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-B5mHA2IL.js +1 -0
- package/dist/public/assets/railroad-peg-LSFZ7HO6-BV4uZ4WL.js +1 -0
- package/dist/public/assets/{railroadDiagram-RFXS5EU6-CLc68_Sv.js → railroadDiagram-RFXS5EU6-Cs70gdc4.js} +1 -1
- package/dist/public/assets/{receive-store-CL0RH8Oa.js → receive-store-CLSRRsUo.js} +1 -1
- package/dist/public/assets/{requirementDiagram-TGXJPOKE-DtJA-6Zq.js → requirementDiagram-TGXJPOKE-yQhnovOU.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-HTMAVEWB-Dw4-_oAZ.js → sankeyDiagram-HTMAVEWB-C7R3anws.js} +1 -1
- package/dist/public/assets/{selection-context-zsjvL-8N.js → selection-context-CoAzJLgJ.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-DBY2YBRQ-B4Af8Tp3.js → sequenceDiagram-DBY2YBRQ-CEdbVotz.js} +1 -1
- package/dist/public/assets/{sizeCapture-X5ZJPWSS-B7J9pg7l.js → sizeCapture-X5ZJPWSS-DAh96RVo.js} +1 -1
- package/dist/public/assets/skill-actions-G-6FdAWg.js +1 -0
- package/dist/public/assets/{skills-api-ChYiP1Zv.js → skills-api-nci6FoVp.js} +1 -1
- package/dist/public/assets/{src-D9eynQ26.js → src--OxBHrEw.js} +1 -1
- package/dist/public/assets/{src-D8jPu2QV.js → src-Dqj4tsR9.js} +2 -2
- package/dist/public/assets/{stateDiagram-2N3HPSRC-L3VR_LMr.js → stateDiagram-2N3HPSRC-q96Dmt4i.js} +1 -1
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-BCNHhMpC.js +1 -0
- package/dist/public/assets/{swimlanes-5IMT3BWC-CRfWYpqt.js → swimlanes-5IMT3BWC--g7Ac5Wk.js} +2 -2
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-hRuoLGg3.js +8 -0
- package/dist/public/assets/{tag-pill-input-B27HgfRy.js → tag-pill-input-BGvE8IPF.js} +1 -1
- package/dist/public/assets/{target-navigation-intent-ClG4AlV8.js → target-navigation-intent-BtjSk9Ck.js} +1 -1
- package/dist/public/assets/{telemetry-impl-DXiL3sBk.js → telemetry-impl-Z8PmW_aL.js} +2 -2
- package/dist/public/assets/{telemetry-startup-Db44p95P.js → telemetry-startup-Cy7C8oSF.js} +1 -1
- package/dist/public/assets/{terminal-launch-events-N4CMVbPT.js → terminal-launch-events-BAOu6SND.js} +1 -1
- package/dist/public/assets/{terminal-telemetry-DxTZB2oZ.js → terminal-telemetry-CSLY2tMg.js} +1 -1
- package/dist/public/assets/thread-client-C0O75Kza.js +1 -0
- package/dist/public/assets/{timeline-definition-FHXFAJF6-C1Qc7Dba.js → timeline-definition-FHXFAJF6-DqrkK_6w.js} +1 -1
- package/dist/public/assets/treeView-QDETBFTQ-N2YNex2I.js +1 -0
- package/dist/public/assets/treemap-6X3UGDF4-DkzYKeau.js +1 -0
- package/dist/public/assets/{typing-burst-detector-BP7d86JP.js → typing-burst-detector-YikvFcgi.js} +2 -2
- package/dist/public/assets/{uninstall-DHjtqCbn.js → uninstall-CVwJS9oE.js} +1 -1
- package/dist/public/assets/use-activity-panel-DRiVx8dd.js +1 -0
- package/dist/public/assets/use-apply-config-color-theme-8mWh6sFH.js +2 -0
- package/dist/public/assets/{use-collab-url-D0INpn_f.js → use-collab-url-Byylx1V6.js} +1 -1
- package/dist/public/assets/{use-live-xterm-theme-C-fHLeXw.js → use-live-xterm-theme-B8pvprD8.js} +1 -1
- package/dist/public/assets/{use-settings-route-CXFzIfYo.js → use-settings-route-CCeZ7dN_.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-fhwpyN81.js → use-terminal-enabled-LoKyqz9U.js} +1 -1
- package/dist/public/assets/use-timeline-entry-diff-CdO4y6y7.js +6 -0
- package/dist/public/assets/{use-workspace-3T40FR83.js → use-workspace-BVbiw6ue.js} +1 -1
- package/dist/public/assets/{vennDiagram-L72KCM5P-C4cNDPVl.js → vennDiagram-L72KCM5P-DFSXk11G.js} +1 -1
- package/dist/public/assets/wardley-OPB4EBWU-OOiOMSoP.js +1 -0
- package/dist/public/assets/{wardleyDiagram-EHGQE667-B2UY3KQf.js → wardleyDiagram-EHGQE667-Bw65HviB.js} +1 -1
- package/dist/public/assets/{workspace-paths-B-NChZS2.js → workspace-paths-xqj_kQWP.js} +1 -1
- package/dist/public/assets/{xychartDiagram-FW5EYKEG-CMsrwnL2.js → xychartDiagram-FW5EYKEG-CEVfZ0d5.js} +1 -1
- package/dist/public/index.html +55 -53
- package/dist/public/uninstall.html +5 -5
- package/dist/{repair-launch-json-CyiLC6sz.mjs → repair-launch-json-yRaU75sa.mjs} +2 -2
- package/dist/{repair-mcp-configs-MZhuDeWK.mjs → repair-mcp-configs-Dhz6Ht8f.mjs} +2 -2
- package/dist/repair-skills-BH1pQ2tJ.mjs +1 -0
- package/dist/{repair-skills-CBmnNSO7.mjs → repair-skills-hJ4Ol2SE.mjs} +2 -2
- package/dist/schemas/v0/config.project.schema.json +180 -0
- package/dist/server-lock-BT7lExvG.mjs +1 -0
- package/dist/{server-lock-vdpThyb4.mjs → server-lock-BaAxTOkZ.mjs} +2 -2
- package/dist/{sleep-B2L0pvp4.mjs → sleep-DDnWCWup.mjs} +5 -5
- package/dist/{src-DtcKZLt0.mjs → src-B5_KtSx0.mjs} +120 -116
- package/dist/src-BctJxQjz.mjs +20 -0
- package/dist/src-Bpg-FG-z.mjs +1 -0
- package/dist/src-DZ0ZiS77.mjs +3269 -0
- package/dist/start-D0gmTzCW.mjs +4 -0
- package/dist/start-D5jQn9rZ.mjs +1 -0
- package/dist/{write-project-skill-B_HecSEZ.mjs → write-project-skill-2xPw07AZ.mjs} +4 -4
- package/package.json +4 -4
- package/dist/build-L3kflBeC.mjs +0 -1
- package/dist/constants-DafFdWJR.mjs +0 -2
- package/dist/fs-traced-BpCA6YXG.mjs +0 -1
- package/dist/git-handle-CRnnMEIm.mjs +0 -1
- package/dist/init-CY3jgzP0.mjs +0 -1
- package/dist/loader-BjQNNJAX.mjs +0 -1
- package/dist/md-manager-CAqfesEA.mjs +0 -2
- package/dist/preview-BMVXzzrS.mjs +0 -1
- package/dist/public/assets/ActivityModeContent-CnhDNi-c.js +0 -1
- package/dist/public/assets/AgentDiffPane-BKvov9S5.js +0 -2
- package/dist/public/assets/CodeMirrorPropInput-ZGACWLSy.js +0 -3
- package/dist/public/assets/DocumentContext-DDkluS7D.js +0 -38
- package/dist/public/assets/FeedbackForm-DuEQbMOb.js +0 -1
- package/dist/public/assets/GraphPanel-1CKwHElx.js +0 -44
- package/dist/public/assets/ManagedArtifactProperties-9e_jj3hZ.js +0 -1
- package/dist/public/assets/MermaidDocEditor-BNURUYJE.js +0 -1
- package/dist/public/assets/PropertyPanel-BMIcO_AS.js +0 -2
- package/dist/public/assets/ReportBugDialogBody-ByMe7BRT.js +0 -2
- package/dist/public/assets/SettingsDialogBody-Bkz3Bpgp.js +0 -7
- package/dist/public/assets/SourceEditor-DI6JkRTr.js +0 -1
- package/dist/public/assets/TerminalSessionsHost-B2cWbpj-.js +0 -2
- package/dist/public/assets/ThreadView-D2BFrI_O.js +0 -6
- package/dist/public/assets/TimelineDiffPane-B9KqEt7q.js +0 -2
- package/dist/public/assets/architecture-TIHT7OUA-D0qm7G-3.js +0 -1
- package/dist/public/assets/auth-state-cache-BUVYaS5m.js +0 -11
- package/dist/public/assets/channel-DA_5WVVG.js +0 -1
- package/dist/public/assets/chunk-2Q5K7J3B-CZvundFv.js +0 -1
- package/dist/public/assets/chunk-VAUOI2AC-CzpwkaIj.js +0 -1
- package/dist/public/assets/chunk-XXDRQBXY-aujsIsPx.js +0 -1
- package/dist/public/assets/classDiagram-OUVF2IWQ-DaJYvXbz.js +0 -1
- package/dist/public/assets/classDiagram-v2-EOCWNBFH-naGS_xxO.js +0 -1
- package/dist/public/assets/client-version-FVbajnsJ.js +0 -1
- package/dist/public/assets/cynefin-VYW2F7L2-BIoIBt-C.js +0 -1
- package/dist/public/assets/dist-B1qkpf98.js +0 -2
- package/dist/public/assets/eventmodeling-45OFAUF4-DJJWSxES.js +0 -1
- package/dist/public/assets/flowDiagram-23GEKE2U-BDvIWhMq.js +0 -1
- package/dist/public/assets/gitGraph-TEB2WS4Q-DbaUaLPe.js +0 -1
- package/dist/public/assets/globals-GYHxaktb.css +0 -1
- package/dist/public/assets/index-Bh6-_Nba.js +0 -2014
- package/dist/public/assets/info-DKCQHKI2-t_ReTPP2.js +0 -1
- package/dist/public/assets/lint-config-client-G_mrikOJ.js +0 -1
- package/dist/public/assets/mermaid-GHXKKRXX-Cj1_l2m9.js +0 -1
- package/dist/public/assets/packet-7NZHBO7P-DvVA7lgt.js +0 -1
- package/dist/public/assets/pie-RZYD4A2V-THg35hJ6.js +0 -1
- package/dist/public/assets/radar-I7S5WNFK-Cnae5YqF.js +0 -1
- package/dist/public/assets/railroad-3IZDKUUU-z19uKrUP.js +0 -1
- package/dist/public/assets/railroad-abnf-AHOZXSZD-BUg9AO49.js +0 -1
- package/dist/public/assets/railroad-ebnf-EBAXGLYW-DuBtfJ_K.js +0 -1
- package/dist/public/assets/railroad-peg-LSFZ7HO6-BSfcErEJ.js +0 -1
- package/dist/public/assets/skill-actions-C_5-d4BC.js +0 -1
- package/dist/public/assets/stateDiagram-v2-6OUMAXLB-DM5o7mT7.js +0 -1
- package/dist/public/assets/swimlanesDiagram-G3AALYLV-BTrTvdTh.js +0 -8
- package/dist/public/assets/thread-client-CurKSSA8.js +0 -1
- package/dist/public/assets/treeView-QDETBFTQ-nC4bzLZB.js +0 -1
- package/dist/public/assets/treemap-6X3UGDF4-D1MGcMAJ.js +0 -1
- package/dist/public/assets/use-activity-panel-35_3901z.js +0 -1
- package/dist/public/assets/use-apply-config-color-theme-CK97Jvup.js +0 -2
- package/dist/public/assets/use-timeline-entry-diff-CHWJnnz2.js +0 -6
- package/dist/public/assets/wardley-OPB4EBWU-Dt2lEMaH.js +0 -1
- package/dist/repair-skills-B1Zc-g_X.mjs +0 -1
- package/dist/server-lock-DKRUWCqU.mjs +0 -1
- package/dist/src--Oy-0xgD.mjs +0 -22
- package/dist/src-mOlBaMpr.mjs +0 -3267
- package/dist/src-o9XsfdYT.mjs +0 -1
- package/dist/start-BRjY-38U.mjs +0 -3
- package/dist/start-BnM87E8e.mjs +0 -1
- /package/dist/public/assets/{ActivityPanelDiffView-CSOgz1F9.js → ActivityPanelDiffView-B03Wzvap.js} +0 -0
- /package/dist/public/assets/{AppMenubar-CXadCCMc.js → AppMenubar-Bisp0k8X.js} +0 -0
- /package/dist/public/assets/{BugReportHistoryDialog-B5Yf5rAM.js → BugReportHistoryDialog-Bp4PHyEI.js} +0 -0
- /package/dist/public/assets/{__vite-browser-external-T_MG5_bv.js → __vite-browser-external-BckCY-VI.js} +0 -0
- /package/dist/public/assets/{agent-presence-CTJkQnoU.js → agent-presence-CEfNcJUY.js} +0 -0
- /package/dist/public/assets/{array-BAI_NyvG.js → array-D9gZmznT.js} +0 -0
- /package/dist/public/assets/{chunk-KEIR6QF5-BSqm2tNO.js → chunk-KEIR6QF5-zkgbDrf9.js} +0 -0
- /package/dist/public/assets/{chunk-Y2CYZVJY-BCLrJxO_.js → chunk-Y2CYZVJY-BAUBUeAF.js} +0 -0
- /package/dist/public/assets/{clike-CkWR_Slw.js → clike-ccBqxK3t.js} +0 -0
- /package/dist/public/assets/{clipboard-adapter--Ja4oXEM.js → clipboard-adapter-Cxzkvc1d.js} +0 -0
- /package/dist/public/assets/{colors-C1oQkVlI.js → colors-BZ7r12jC.js} +0 -0
- /package/dist/public/assets/{copilot-BAzfPGty.js → copilot-CjOGWDvv.js} +0 -0
- /package/dist/public/assets/{cursor-C1n4GZG0.js → cursor-B8rehP9c.js} +0 -0
- /package/dist/public/assets/{cytoscape.esm-ewu4kfMU.js → cytoscape.esm-GtliGICm.js} +0 -0
- /package/dist/public/assets/{defaultLocale-C0VJf-tm.js → defaultLocale-CqKPYlUZ.js} +0 -0
- /package/dist/public/assets/{diff-BsdYbIgD.js → diff-oW0nWZgn.js} +0 -0
- /package/dist/public/assets/{dist-DDqBNQiG.js → dist-B1Jbz0yl.js} +0 -0
- /package/dist/public/assets/{dist-d-7NE8aL.js → dist-Cqbn6bM9.js} +0 -0
- /package/dist/public/assets/{dist-BF6U-ayK.js → dist-D1zECWv_.js} +0 -0
- /package/dist/public/assets/{dist-BocybIB-.js → dist-zCmaEyrL.js} +0 -0
- /package/dist/public/assets/{follow-file-DBnmqlyk.js → follow-file-BghdVu5J.js} +0 -0
- /package/dist/public/assets/{form-D-z6QdLf.js → form-coxG-8Qw.js} +0 -0
- /package/dist/public/assets/{format-BVhfvqw3.js → format-CejNFduS.js} +0 -0
- /package/dist/public/assets/{go-D-ZJPtwk.js → go-CCS4kWKN.js} +0 -0
- /package/dist/public/assets/{init-BX0_4ZBD.js → init-CMTNTj66.js} +0 -0
- /package/dist/public/assets/{isObject-BkQ5hIlp.js → isObject-Ho9jn-6g.js} +0 -0
- /package/dist/public/assets/{libesm-CHqp8owk.js → libesm-Db-3Gx3Z.js} +0 -0
- /package/dist/public/assets/{lint-plugin-meta-B3N1DKgL.js → lint-plugin-meta-J-wb-uxW.js} +0 -0
- /package/dist/public/assets/{lru-string-cache-hwDoWobi.js → lru-string-cache-BZxOuxTi.js} +0 -0
- /package/dist/public/assets/{lua-Cx3bDzQk.js → lua-DgAwqJ0D.js} +0 -0
- /package/dist/public/assets/{mcp-consent-store-Xk9UA_MB.js → mcp-consent-store-wvrClpLC.js} +0 -0
- /package/dist/public/assets/{min-Bd9Lorof.js → min-BQPeeNfF.js} +0 -0
- /package/dist/public/assets/{panel-Cyobla0Z.js → panel-C8ZhM4q-.js} +0 -0
- /package/dist/public/assets/{panzoom.es-B9Lp3OVt.js → panzoom.es-CxTS7ZPP.js} +0 -0
- /package/dist/public/assets/{path-C1_RvjGX.js → path-DoEWlp6O.js} +0 -0
- /package/dist/public/assets/{pdf-B7Y_z-D1.js → pdf-Da_O_GF5.js} +0 -0
- /package/dist/public/assets/{pdf.worker-B6TdDPWM.js → pdf.worker-Pbs_-93C.js} +0 -0
- /package/dist/public/assets/{perl-CV3dlsd7.js → perl-DMwerdcj.js} +0 -0
- /package/dist/public/assets/{properties-D1GaCcfv.js → properties-Du1Kuwqc.js} +0 -0
- /package/dist/public/assets/{r-CHRF940O.js → r-wSvpRg5h.js} +0 -0
- /package/dist/public/assets/{rough.esm-B1nzhEZO.js → rough.esm-esi5HKC4.js} +0 -0
- /package/dist/public/assets/{ruby-YzQuyklS.js → ruby-DuM6hMQW.js} +0 -0
- /package/dist/public/assets/{schema-fields-view-intent-Dz1ZzVCe.js → schema-fields-view-intent-BeD8vY0v.js} +0 -0
- /package/dist/public/assets/{share-metadata-rows-BlaR96La.js → share-metadata-rows-CbXHISQ4.js} +0 -0
- /package/dist/public/assets/{shell-BvVJAeXE.js → shell-BZ7mgeL0.js} +0 -0
- /package/dist/public/assets/{skeleton-HLkcMp95.js → skeleton-BG12Hmzn.js} +0 -0
- /package/dist/public/assets/{sortable.esm-B6whf_t-.js → sortable.esm-C565D25d.js} +0 -0
- /package/dist/public/assets/{sql-CECtKdDi.js → sql-BXdRuz6d.js} +0 -0
- /package/dist/public/assets/{src-BaTc8y5c.js → src-DNE52RZP.js} +0 -0
- /package/dist/public/assets/{swift-DLct3DJs.js → swift-DZwxTp-L.js} +0 -0
- /package/dist/public/assets/{textarea-RSYJwPz9.js → textarea-tdCJViKf.js} +0 -0
- /package/dist/public/assets/{thread-draft-staging-B4_1TigQ.js → thread-draft-staging-BuvCYJwg.js} +0 -0
- /package/dist/public/assets/{toml-Bl-Vp4wG.js → toml-C5KR4pi6.js} +0 -0
- /package/dist/public/assets/{use-installed-clis-B_nDAq7A.js → use-installed-clis-UlK7P1aH.js} +0 -0
- /package/dist/public/assets/{useLintConfigViewMode-BYm6FwC5.js → useLintConfigViewMode-DKPENttR.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n}from"./wrapper-BcpqREsI.mjs";import{Blob as r,Buffer as i}from"buffer";import{TextDecoder as a,TextEncoder as o}from"util";import s,{webcrypto as c}from"crypto";import l from"zlib";import u from"stream";import d from"fs";import f from"path";import{URL as p,URLSearchParams as ee}from"url";import{PerformanceEntry as te,PerformanceObserver as ne}from"node:perf_hooks";import re from"child_process";import ie from"http";import ae from"https";import{isIP as oe}from"net";import{ReadableStream as se}from"stream/web";import ce,{Script as le}from"vm";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`),ss=Symbol(`querySelectorCache`);var cs;(function(e){e.strict=`Strict`,e.lax=`Lax`,e.none=`None`})(cs||={});var ls=cs,us={key:null,originURL:null,value:null,domain:``,path:``,expires:null,httpOnly:!1,secure:!1,sameSite:ls.lax},ds=class{static hasExpired(e){return e.expires&&e.expires.getTime()<Date.now()}},fs=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===ls.none&&e.secure||e.originURL?.hostname===t.hostname)}},ps=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({},us,r);if(e&&e.key&&e.originURL){let r=t.get(n(e));r!==void 0&&this.#e.splice(r,1),ds.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)!ds.hasExpired(r)&&(!t||!r.httpOnly)&&(!e||fs.cookieMatchesURL(r,e))&&n.push(r);return n}clearCookies(){this.#e=[]}},ms;(function(e){e.fresh=`fresh`,e.stale=`stale`})(ms||={});var hs=ms,gs;(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`})(gs||={});var H=gs,_s=class extends Error{constructor(e,t=null){super(e),this.name=t||H.domException}},vs=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 _s(`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(`, `)]}},ys=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=f.resolve(e),n=[];try{n=await d.promises.readdir(t)}catch{return}let r=[],i=this.#n;for(let e of n)e.endsWith(`.json`)&&r.push(d.promises.readFile(f.join(t,e),`utf8`).then(n=>{let r=JSON.parse(n);if(r.response&&r.request&&!r.virtual)return r.response.headers=new vs(r.response.headers),r.request.headers=new vs(r.request.headers),d.promises.readFile(f.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=f.resolve(e);if(!this.#e.has(t)){this.#e.add(t);try{await d.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 a={...n,response:{...n.response,headers:e,body:null},request:{...n.request,headers:i}},o=JSON.stringify(a,null,3),c=s.createHash(`md5`).update(o).digest(`hex`);this.#t.has(c)||(this.#t.add(c),r.push(d.promises.writeFile(f.join(t,`${c}.json`),o)),n.response.body&&r.push(d.promises.writeFile(f.join(t,`${c}.data`),n.response.body)))}await Promise.all(r)}};const bs=[`Cache-Control`,`Last-Modified`,`Vary`,`ETag`];var xs=class{fileSystem;#e=new Map;constructor(){this.fileSystem=new ys(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=hs.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 bs)t.headers.has(e)&&r.response.headers.set(e,t.headers.get(e));r.cacheUpdateTime=Date.now(),r.state=hs.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 vs(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:hs.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()}},Ss;(function(e){e[e.log=0]=`log`,e[e.info=1]=`info`,e[e.warn=2]=`warn`,e[e.error=3]=`error`})(Ss||={});var Cs=Ss,ws;(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`})(ws||={});var U=ws,Ts;(function(e){e[e.none=0]=`none`,e[e.capturing=1]=`capturing`,e[e.atTarget=2]=`atTarget`,e[e.bubbling=3]=`bubbling`})(Ts||={});var Es=Ts,W=class e{static NONE=Es.none;static CAPTURING_PHASE=Es.capturing;static AT_TARGET=Es.atTarget;static BUBBLING_PHASE=Es.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]=Es.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}},Ds;(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`})(Ds||={});var Os=Ds,ks=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,`
|
|
1
|
+
import{o as e,t}from"./chunk-DTipWd-i.mjs";import{n}from"./wrapper-BcpqREsI.mjs";import{Blob as r,Buffer as i}from"buffer";import{TextDecoder as a,TextEncoder as o}from"util";import s,{webcrypto as c}from"crypto";import l from"zlib";import u from"stream";import d from"fs";import f from"path";import{URL as p,URLSearchParams as ee}from"url";import te from"child_process";import{PerformanceEntry as ne,PerformanceObserver as re}from"node:perf_hooks";import ie from"http";import ae from"https";import{isIP as oe}from"net";import{ReadableStream as se}from"stream/web";import ce,{Script as le}from"vm";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`),ss=Symbol(`querySelectorCache`);var cs;(function(e){e.strict=`Strict`,e.lax=`Lax`,e.none=`None`})(cs||={});var ls=cs,us={key:null,originURL:null,value:null,domain:``,path:``,expires:null,httpOnly:!1,secure:!1,sameSite:ls.lax},ds=class{static hasExpired(e){return e.expires&&e.expires.getTime()<Date.now()}},fs=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===ls.none&&e.secure||e.originURL?.hostname===t.hostname)}},ps=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({},us,r);if(e&&e.key&&e.originURL){let r=t.get(n(e));r!==void 0&&this.#e.splice(r,1),ds.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)!ds.hasExpired(r)&&(!t||!r.httpOnly)&&(!e||fs.cookieMatchesURL(r,e))&&n.push(r);return n}clearCookies(){this.#e=[]}},ms;(function(e){e.fresh=`fresh`,e.stale=`stale`})(ms||={});var hs=ms,gs;(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`})(gs||={});var H=gs,_s=class extends Error{constructor(e,t=null){super(e),this.name=t||H.domException}},vs=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 _s(`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(`, `)]}},ys=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=f.resolve(e),n=[];try{n=await d.promises.readdir(t)}catch{return}let r=[],i=this.#n;for(let e of n)e.endsWith(`.json`)&&r.push(d.promises.readFile(f.join(t,e),`utf8`).then(n=>{let r=JSON.parse(n);if(r.response&&r.request&&!r.virtual)return r.response.headers=new vs(r.response.headers),r.request.headers=new vs(r.request.headers),d.promises.readFile(f.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=f.resolve(e);if(!this.#e.has(t)){this.#e.add(t);try{await d.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 a={...n,response:{...n.response,headers:e,body:null},request:{...n.request,headers:i}},o=JSON.stringify(a,null,3),c=s.createHash(`md5`).update(o).digest(`hex`);this.#t.has(c)||(this.#t.add(c),r.push(d.promises.writeFile(f.join(t,`${c}.json`),o)),n.response.body&&r.push(d.promises.writeFile(f.join(t,`${c}.data`),n.response.body)))}await Promise.all(r)}};const bs=[`Cache-Control`,`Last-Modified`,`Vary`,`ETag`];var xs=class{fileSystem;#e=new Map;constructor(){this.fileSystem=new ys(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=hs.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 bs)t.headers.has(e)&&r.response.headers.set(e,t.headers.get(e));r.cacheUpdateTime=Date.now(),r.state=hs.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 vs(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:hs.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()}},Ss;(function(e){e[e.log=0]=`log`,e[e.info=1]=`info`,e[e.warn=2]=`warn`,e[e.error=3]=`error`})(Ss||={});var Cs=Ss,ws;(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`})(ws||={});var U=ws,Ts;(function(e){e[e.none=0]=`none`,e[e.capturing=1]=`capturing`,e[e.atTarget=2]=`atTarget`,e[e.bubbling=3]=`bubbling`})(Ts||={});var Es=Ts,W=class e{static NONE=Es.none;static CAPTURING_PHASE=Es.capturing;static AT_TARGET=Es.atTarget;static BUBBLING_PHASE=Es.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]=Es.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}},Ds;(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`})(Ds||={});var Os=Ds,ks=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
2
|
`+t+`at`)}else typeof r==`object`&&r.message&&r.stack?n+=r.stack.replace(/\n at/gm,`
|
|
3
3
|
`+t+`at`):n+=this.getLogEntryIcon(e)+String(r);return n+`
|
|
4
4
|
`}static getLogEntryIcon(e){switch(e.type){case Os.group:return`▼ `;case Os.groupCollapsed:return`▶ `}return``}static getLogEntryGroupTabbing(e){let t=``,n=e.type===Os.group||e.type===Os.groupCollapsed?e.group?.parent:e.group;for(;n;)t+=` `,n=n.parent;return t}static isLogEntryCollapsed(e){let t=e.type===Os.group||e.type===Os.groupCollapsed?e.group?.parent:e.group;for(;t;){if(t.collapsed)return!0;t=t.parent}return!1}},As=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=Cs.log){let t=this.read(),n=``;for(let r of t)r.level>=e&&(n+=ks.toString(r));return n}},js=class extends Error{constructor(e){super(e),this.name=`AsyncTaskManagerDebugError`}};const Ms={setTimeout:globalThis.setTimeout.bind(globalThis),clearTimeout:globalThis.clearTimeout.bind(globalThis),clearImmediate:globalThis.clearImmediate.bind(globalThis)};var Ns=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){Ms.clearTimeout(e);return}this.waitUntilCompleteTimer&&=(Ms.clearTimeout(this.waitUntilCompleteTimer),null),this.runningTimers.push(e),this.#t.page.context.browser.settings.debug.traceWaitUntilComplete>0&&this.debugTrace.set(e,new js().stack)}endTimer(e){if(this.destroyed){Ms.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){Ms.clearImmediate(e);return}this.waitUntilCompleteTimer&&=(Ms.clearTimeout(this.waitUntilCompleteTimer),null),this.runningImmediates.push(e),this.#t.page?.context?.browser?.settings?.debug?.traceWaitUntilComplete>0&&this.debugTrace.set(e,new js().stack)}endImmediate(e){if(this.destroyed){Ms.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&&=(Ms.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 js().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&&=(Ms.clearTimeout(this.waitUntilCompleteTimer),null),this.waitUntilCompleteTimer=Ms.setTimeout(()=>{if(this.waitUntilCompleteTimer=null,!this.runningTaskCount&&!this.runningTimers.length&&!this.runningImmediates.length){this.#e&&Ms.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||=Ms.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,`
|
|
@@ -96,7 +96,7 @@ We should not end up here and it is therefore a bug in Happy DOM. Please report
|
|
|
96
96
|
});
|
|
97
97
|
request.write(Buffer.from('${e.body?e.body.toString(`base64`):``}', 'base64'));
|
|
98
98
|
request.end();
|
|
99
|
-
`}},em=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 mu?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(_u.prepareRequest(new mu(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(Mu.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=vu.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===hs.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 qu({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=Wu.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=Wu.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=d.statSync(e).isDirectory()?f.join(e,`index.html`):e,t=d.readFileSync(e)}catch{this.#e.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let e=Wu.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||!yu.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=$p.getScript({url:this.request[gt],method:this.request.method,headers:Fu.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=re.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=Vu.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,c=typeof s==`object`?s:o;return c.ok||this.#e.page.console.error(`${this.request.method} ${this.request.url} ${c.status} (${c.statusText})`),c}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 l.gunzipSync(e.body,{flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH});if(t===`deflate`||t===`x-deflate`)return l.inflateSync(e.body);if(t===`br`)return l.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(!Bu.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 mu(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(Bu.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`&&yu.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=_u.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`)}}},tm=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=Gu.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 mu(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 qu({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 mu(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=Gu.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 mu(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 em({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 mu(e,this.window.location.href).href}". Status ${i.status} ${i.statusText}.`);return{content:i.body?.toString()||``,virtualServerFile:i[$o]||null}}},nm=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()}},rm=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()}},im=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 am=[`module`,`main`],om=[`.js`,`.mjs`];var sm=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 p(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 p(t.to+a.replace(t.from,``),r)}}if(i.imports.length){for(let e of i.imports)if(a.startsWith(e.from))return new p(e.to+a.replace(e.from,``),r)}return new p(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=f.resolve(e.directory),a=t.split(`/`),o=this.nodeModuleResolveCache.get(t);if(o)return o;let s=t[0]===`@`?`${a[0]}/${a[1]}`:a[0],c=this.packageJsonCache.get(s);if(!c)try{c=JSON.parse(d.readFileSync(f.join(i,s,`package.json`),`utf-8`)),this.packageJsonCache.set(s,c)}catch{return t}if(t[0]===`@`&&a.length===2||a.length===1){if(c.exports?.[`.`]?.import){let e=`${r}${s}/${c.exports[`.`].import.replace(`./`,``)}`;return this.nodeModuleResolveCache.set(t,e),e}let n=e.mainFields||am;for(let e of n)if(c[e]&&d.existsSync(f.join(i,s,c[e]))){let n=`${r}${t}/${c[e]}`;return this.nodeModuleResolveCache.set(t,n),n}return t}let l=a.slice(t[0]===`@`?2:1).join(`/`);if(c.exports)for(let e of Object.keys(c.exports)){let n=Array.isArray(c.exports[e].import)?c.exports[e].import[0]:c.exports[e].import;if(n){let i=RegExp(`^${e.replace(`./`,``).replace(/\./g,`\\.`).replace(/\*/g,`(.*)`)}$`),a=l.match(i);if(a){let e=`${r}${s}/${n.replace(`./`,``).replace(`*`,a[1])}`;return this.nodeModuleResolveCache.set(t,e),e}}}if(!t.endsWith(`.js`)&&!t.endsWith(`.mjs`)){for(let e of om)if(d.existsSync(f.join(i,`${t}${e}`))){let n=`${r}${t}${e}`;return this.nodeModuleResolveCache.set(t,n),n}}else if(d.existsSync(f.join(i,t))){let e=`${r}${t}`;return this.nodeModuleResolveCache.set(t,e),e}return t}};const cm=/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,lm=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,um=/{([^}]+)}|\*\s+as\s+([a-zA-Z0-9-_$]+)|([a-zA-Z0-9-_$]+)/gm,dm=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,fm=/['"`(){}\s;=><\[\]+-,:&]/,pm=/['"`({};=><\[+-,:&]/,mm=/\/\*|\*\//gm,hm=/export\s*/,gm=/export\s*default\s*/,_m=/;\s*$/;var vm=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(cm),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)&&fm.test(this.getNonSpacePrecedingToken(t,f.index)))l+=`$happy_dom.importMeta.${f[1]}`;else if(f[2]&&te&&fm.test(p))o.push({url:sm.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)&&fm.test(p))l+=`$happy_dom.dynamicImport(${f[3]})`;else if(f[4]&&te&&fm.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=sm.getURL(this.window,e,f[5]).href,r=t.substring(re,f.index+1),i=new RegExp(um),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&&fm.test(p)){let t=sm.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(`;
|
|
99
|
+
`}},em=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 mu?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(_u.prepareRequest(new mu(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(Mu.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=vu.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===hs.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 qu({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=Wu.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=Wu.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=d.statSync(e).isDirectory()?f.join(e,`index.html`):e,t=d.readFileSync(e)}catch{this.#e.page.console.error(`${this.request.method} ${this.request.url} 404 (Not Found)`);let e=Wu.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||!yu.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=$p.getScript({url:this.request[gt],method:this.request.method,headers:Fu.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=te.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=Vu.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,c=typeof s==`object`?s:o;return c.ok||this.#e.page.console.error(`${this.request.method} ${this.request.url} ${c.status} (${c.statusText})`),c}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 l.gunzipSync(e.body,{flush:l.constants.Z_SYNC_FLUSH,finishFlush:l.constants.Z_SYNC_FLUSH});if(t===`deflate`||t===`x-deflate`)return l.inflateSync(e.body);if(t===`br`)return l.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(!Bu.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 mu(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(Bu.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`&&yu.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=_u.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`)}}},tm=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=Gu.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 mu(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 qu({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 mu(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=Gu.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 mu(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 em({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 mu(e,this.window.location.href).href}". Status ${i.status} ${i.statusText}.`);return{content:i.body?.toString()||``,virtualServerFile:i[$o]||null}}},nm=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()}},rm=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()}},im=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 am=[`module`,`main`],om=[`.js`,`.mjs`];var sm=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 p(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 p(t.to+a.replace(t.from,``),r)}}if(i.imports.length){for(let e of i.imports)if(a.startsWith(e.from))return new p(e.to+a.replace(e.from,``),r)}return new p(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=f.resolve(e.directory),a=t.split(`/`),o=this.nodeModuleResolveCache.get(t);if(o)return o;let s=t[0]===`@`?`${a[0]}/${a[1]}`:a[0],c=this.packageJsonCache.get(s);if(!c)try{c=JSON.parse(d.readFileSync(f.join(i,s,`package.json`),`utf-8`)),this.packageJsonCache.set(s,c)}catch{return t}if(t[0]===`@`&&a.length===2||a.length===1){if(c.exports?.[`.`]?.import){let e=`${r}${s}/${c.exports[`.`].import.replace(`./`,``)}`;return this.nodeModuleResolveCache.set(t,e),e}let n=e.mainFields||am;for(let e of n)if(c[e]&&d.existsSync(f.join(i,s,c[e]))){let n=`${r}${t}/${c[e]}`;return this.nodeModuleResolveCache.set(t,n),n}return t}let l=a.slice(t[0]===`@`?2:1).join(`/`);if(c.exports)for(let e of Object.keys(c.exports)){let n=Array.isArray(c.exports[e].import)?c.exports[e].import[0]:c.exports[e].import;if(n){let i=RegExp(`^${e.replace(`./`,``).replace(/\./g,`\\.`).replace(/\*/g,`(.*)`)}$`),a=l.match(i);if(a){let e=`${r}${s}/${n.replace(`./`,``).replace(`*`,a[1])}`;return this.nodeModuleResolveCache.set(t,e),e}}}if(!t.endsWith(`.js`)&&!t.endsWith(`.mjs`)){for(let e of om)if(d.existsSync(f.join(i,`${t}${e}`))){let n=`${r}${t}${e}`;return this.nodeModuleResolveCache.set(t,n),n}}else if(d.existsSync(f.join(i,t))){let e=`${r}${t}`;return this.nodeModuleResolveCache.set(t,e),e}return t}};const cm=/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,lm=/(\/)|(\(|\))|({|})|(\[|\])|(\${)|(`)|(')|(")|(\n)/gm,um=/{([^}]+)}|\*\s+as\s+([a-zA-Z0-9-_$]+)|([a-zA-Z0-9-_$]+)/gm,dm=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/,fm=/['"`(){}\s;=><\[\]+-,:&]/,pm=/['"`({};=><\[+-,:&]/,mm=/\/\*|\*\//gm,hm=/export\s*/,gm=/export\s*default\s*/,_m=/;\s*$/;var vm=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(cm),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)&&fm.test(this.getNonSpacePrecedingToken(t,f.index)))l+=`$happy_dom.importMeta.${f[1]}`;else if(f[2]&&te&&fm.test(p))o.push({url:sm.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)&&fm.test(p))l+=`$happy_dom.dynamicImport(${f[3]})`;else if(f[4]&&te&&fm.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=sm.getURL(this.window,e,f[5]).href,r=t.substring(re,f.index+1),i=new RegExp(um),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&&fm.test(p)){let t=sm.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
100
|
`),o.push({url:t,type:`esm`})}}else if(f[13]&&f[14]&&te&&fm.test(p)){let t=f[14].replace(`*`,``);if(t)f[11]?(l+=f[0].replace(gm,``),d+=`$happy_dom.exports.default = ${t};\n`):(l+=f[0].replace(hm,``),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&&fm.test(p))l+=`$happy_dom.exports.default = `;else if(f[16]&&te&&fm.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&&dm.test(i)&&t.push(`$happy_dom.exports['${r}'] = ${i}`)}l+=t.join(`;
|
|
101
101
|
`)}else if(f[17]&&te&&fm.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(hm,``)}else l+=f[0].replace(hm,``),d+=`$happy_dom.exports['${e}'] = ${e};\n`}else{l+=f[0].replace(hm,``);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&&!_m.test(u)&&(u=`\n${u};`),u=!i.disableErrorCapturing&&i.errorCapture===Ls.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
102
|
`+d,s.length>0){l+=`$happy_dom.addCircularImportResolver(() => {
|
|
@@ -182,7 +182,7 @@ this.Function = globalThis.Function;
|
|
|
182
182
|
`,this.errorIndex=this.startTagIndex),this.readState=_g.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=_g.error;return}if(this.currentNode===this.rootNode&&this.rootNode[Yn].length!==0){this.errorMessage=`Extra content at the end of the document
|
|
183
183
|
`,this.errorIndex=this.lastIndex-this.nextElement[w].length-1,this.readState=_g.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=_g.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(Fl.html,`html`),t=this.rootNode.createElementNS(Fl.html,`body`);e.appendChild(t),n=t,this.rootNode[Pn](e,!0)}let r=e.split(`
|
|
184
184
|
`),i=r[r.length-1].length+1,a=`error on line ${r.length} at column ${i}: ${t||`Unknown error`}`,o=this.rootNode.createElementNS(Fl.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]===gd.TEXT_NODE;)this.currentNode.removeChild(this.currentNode.lastChild)}getDocumentType(e){if(!e.toUpperCase().startsWith(`DOCTYPE`))return null;let t=e.split(hg);if(t.length<=1)return null;let n=t.slice(1).join(` `),r=[],i=new RegExp(mg,`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}}},bg=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 wf(this[b]).parse(e,r);case`image/svg+xml`:case`text/xml`:case`application/xml`:case`application/xhtml+xml`:return new yg(this[b]).parse(e);default:throw new n.DOMException(`Unknown mime type "${t}".`)}}},xg;(function(e){e[e.endToEnd=2]=`endToEnd`,e[e.endToStart=3]=`endToStart`,e[e.startToEnd=1]=`startToEnd`,e[e.startToStart=0]=`startToStart`})(xg||={});var Sg=xg,Cg=class{static END_TO_END=Sg.endToEnd;static END_TO_START=Sg.endToStart;static START_TO_END=Sg.startToEnd;static START_TO_START=Sg.startToStart;END_TO_END=Sg.endToEnd;END_TO_START=Sg.endToStart;START_TO_END=Sg.startToEnd;START_TO_START=Sg.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=fd.getNodeLength(this[_].node);this[_].offset>e&&(this[_].offset=e)}return this[_].offset}get endOffset(){if(this[m].offset>0){let e=fd.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(fd.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!==Sg.startToStart&&e!==Sg.startToEnd&&e!==Sg.endToEnd&&e!==Sg.endToStart)throw new this[b].DOMException(`The comparison method provided must be one of '${Sg.startToStart}', '${Sg.startToEnd}', '${Sg.endToEnd}' or '${Sg.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 Sg.startToStart:n.node=this[_].node,n.offset=this.startOffset,r.node=t[_].node,r.offset=t.startOffset;break;case Sg.startToEnd:n.node=this[m].node,n.offset=this.endOffset,r.node=t[_].node,r.offset=t.startOffset;break;case Sg.endToEnd:n.node=this[m].node,n.offset=this.endOffset,r.node=t[m].node,r.offset=t.endOffset;break;case Sg.endToStart:n.node=this[_].node,n.offset=this.startOffset,r.node=t[m].node,r.offset=t.endOffset;break}return Sh.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);Sh.validateBoundaryPoint({node:e,offset:t});let n={node:e,offset:t};return Sh.compareBoundaryPointsPosition(n,{node:this[_].node,offset:this.startOffset})===-1?-1:+(Sh.compareBoundaryPointsPosition(n,{node:this[m].node,offset:this.endOffset})===1)}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(;!fd.isInclusiveAncestor(i,this[m].node);)i=i[S];let a=null;if(!fd.isInclusiveAncestor(this[_].node,this[m].node)){let e=i.firstChild;for(;!a;)Sh.isPartiallyContained(e,this)&&(a=e),e=e.nextSibling}let o=null;if(!fd.isInclusiveAncestor(this[m].node,this[_].node)){let e=i.lastChild;for(;!o;)Sh.isPartiallyContained(e,this)&&(o=e),e=e.previousSibling}let s=[];for(let t of i[j])if(Sh.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,fd.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=fd.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 wf(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=fd.nextDescendantNode(this[m].node);for(;r&&r!==i;)Sh.isContained(r,this)&&!Sh.isContained(r[S],this)&&n.push(r),r=fd.following(r);let a,o;if(fd.isInclusiveAncestor(this[_].node,this[m].node))a=this[_].node,o=e;else{let e=this[_].node;for(;e&&!fd.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,fd.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(;!fd.isInclusiveAncestor(i,this[m].node);)i=i[S];let a=null;if(!fd.isInclusiveAncestor(this[_].node,this[m].node)){let e=i.firstChild;for(;!a;)Sh.isPartiallyContained(e,this)&&(a=e),e=e.nextSibling}let o=null;if(!fd.isInclusiveAncestor(this[m].node,this[_].node)){let e=i.lastChild;for(;!o;)Sh.isPartiallyContained(e,this)&&(o=e),e=e.previousSibling}let s=[];for(let e of i[j])if(Sh.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(fd.isInclusiveAncestor(this[_].node,this[m].node))c=this[_].node,l=n;else{let e=this[_].node;for(;e&&!fd.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,fd.getNodeLength(this[_].node)-n),t.appendChild(e),this[_].node.replaceData(n,fd.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=fd.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 Dd}getClientRects(){return new Md(N)}isPointInRange(e,t=0){if(e[g]!==this[g])return!1;let n={node:e,offset:t};return Sh.validateBoundaryPoint(n),!(Sh.compareBoundaryPointsPosition(n,{node:this[_].node,offset:this.startOffset})===-1||Sh.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):fd.getNodeLength(n);i+=e[C]===U.documentFragmentNode?fd.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 Sh.compareBoundaryPointsPosition({node:t,offset:n},{node:this[m].node,offset:this.endOffset})===-1&&Sh.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=fd.getNodeLength(e)}setEnd(e,t=0){Sh.validateBoundaryPoint({node:e,offset:t});let n={node:e,offset:t};(e[g]!==this[g]||Sh.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){Sh.validateBoundaryPoint({node:e,offset:t});let n={node:e,offset:t};(e[g]!==this[g]||Sh.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=fd.nextDescendantNode(t);for(;t&&t!==n;){if(t[C]!==U.textNode&&Sh.isPartiallyContained(t,this))throw new this[b].DOMException(`The Range has partially contains a non-Text node.`,H.invalidStateError);t=fd.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=fd.nextDescendantNode(this[m].node),i=this[_].node;for(;i&&i!==r;)i[C]===U.textNode&&Sh.isContained(i,this)&&(n+=i.data),i=fd.following(i);return this[m].node[C]===U.textNode&&(n+=this[m].node.data.slice(0,t)),n}},wg=class extends nl{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]}},Tg=class extends wg{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}},Eg=class extends nl{[Pr]=Rf.subtitles;[Fr]=``;[Ir]=``;[Lr]=``;[xn]=`disabled`;[Mr]=new Tm(N);[Nr]=new Tm(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))}},Dg=class e extends nl{[A]=[];onaddtrack=null;onchange=null;onremovetrack=null;constructor(t,n){if(super(),t!==N)throw TypeError(`Illegal constructor`);this[A]=n;let r=new Bc(this,[e,nl]);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}},Og=class extends nl{[Rr]=`disconnected`;onconnecting=null;onconnect=null;ondisconnect=null;get state(){return this[Rr]}async watchAvailability(){}cancelWatchAvailability(){}prompt(){}},kg=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]}})),Ag=t(((e,t)=>{let{asciiLowercase:n,solelyContainsHTTPTokenCodePoints:r,soleyContainsHTTPQuotedStringTokenCodePoints:i}=kg();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]()}}})),jg=t(((e,t)=>{let{removeLeadingAndTrailingHTTPWhitespace:n,removeTrailingHTTPWhitespace:r,isHTTPWhitespaceChar:i,solelyContainsHTTPTokenCodePoints:a,soleyContainsHTTPQuotedStringTokenCodePoints:o,asciiLowercase:s,collectAnHTTPQuotedString:c}=kg();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}})),Mg=t(((e,t)=>{let{solelyContainsHTTPTokenCodePoints:n}=kg();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}})),Ng=e(t(((e,t)=>{let n=Ag(),r=jg(),i=Mg(),{asciiLowercase:a,solelyContainsHTTPTokenCodePoints:o}=kg();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),Pg;(function(e){e[e.empty=0]=`empty`,e[e.loading=1]=`loading`,e[e.done=2]=`done`})(Pg||={});var Fg=Pg,Ig;(function(e){e.buffer=`buffer`,e.binaryString=`binaryString`,e.dataURL=`dataURL`,e.text=`text`})(Ig||={});var Lg=Ig,Rg;(function(e){e.abort=`abort`,e.error=`error`,e.load=`load`,e.loadstart=`loadstart`,e.loadend=`loadend`,e.progress=`progress`})(Rg||={});var zg=Rg,Bg=class extends nl{error=null;result=null;readyState=Fg.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 Rs))throw new this[b].TypeError(`Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.buffer)}readAsBinaryString(e){if(!(e instanceof Rs))throw new this[b].TypeError(`Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.binaryString)}readAsDataURL(e){if(!(e instanceof Rs))throw new this[b].TypeError(`Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.dataURL)}readAsText(e,t=null){if(!(e instanceof Rs))throw new this[b].TypeError(`Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.text,t||`UTF-8`)}abort(){let e=this[b];if(this.#t&&e.clearTimeout(this.#t),this.#n&&e.clearTimeout(this.#n),this.readyState===Fg.empty||this.readyState===Fg.done){this.result=null;return}this.readyState===Fg.loading&&(this.readyState=Fg.done,this.result=null),this.#e=!0,this.dispatchEvent(new lu(zg.abort)),this.dispatchEvent(new lu(zg.loadend))}#r(e,t,n=null){let r=this[b];if(this.readyState===Fg.loading)throw new r.DOMException(`The object is in an invalid state.`,H.invalidStateError);this.readyState=Fg.loading,this.#t=r.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new lu(zg.loadstart));let a=e[me];a||=i.alloc(0),this.dispatchEvent(new lu(zg.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 Lg.buffer:this.result=new Uint8Array(a).buffer;break;case Lg.binaryString:this.result=a.toString(`binary`);break;case Lg.dataURL:{let t=Ng.default.parse(e.type)||`application/octet-stream`;this.result=`data:${t};base64,${a.toString(`base64`)}`;break}case Lg.text:this.result=new TextDecoder(n||`UTF-8`).decode(a);break}this.readyState=Fg.done,this.dispatchEvent(new lu(zg.load)),this.dispatchEvent(new lu(zg.loadend))})})}};const Vg={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}},Hg={deviceId:``,frameRate:60,resizeMode:`none`};var Ug=class extends nl{contentHint=``;enabled=!0;id=s.randomUUID();muted=!1;readyState=`live`;label=``;[Fr]=``;[Pr]=`video`;[zn]={};[Bn]=JSON.parse(JSON.stringify(Vg));[Vn]=JSON.parse(JSON.stringify(Hg));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]}},Wg=class extends Ug{[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}},Gg;(function(e){e[e.connecting=0]=`connecting`,e[e.open=1]=`open`,e[e.closing=2]=`closing`,e[e.closed=3]=`closed`})(Gg||={});var Kg=Gg;const qg=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/;var Jg=class extends nl{static CONNECTING=Kg.connecting;static OPEN=Kg.open;static CLOSING=Kg.closing;static CLOSED=Kg.closed;#e=Kg.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===Kg.connecting)throw new t.DOMException(`Still in CONNECTING state.`,H.invalidStateError);if(this.#e!==Kg.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 Rs?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=Kg.connecting,this[is]=new n(e,t,{headers:{"user-agent":r.navigator.userAgent,cookie:Nu.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=Nu.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===Kg.connecting?this[is]?this[is].terminate():this.#e=Kg.closing:this[is]&&this.readyState===Kg.open&&this[is].close(e,t),this[is]=null}#s(){this[is]?.extensions&&(this.#t=Object.keys(this[is].extensions).join(`, `)),this.#e=Kg.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=Kg.closed,this.dispatchEvent(new this[b].CloseEvent(`close`,{wasClean:this.#r===null,code:e,reason:t.toString()}))}#l(e,t){if(this.#e!==Kg.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 qg.test(e)}},Yg=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 Xg={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},Zg=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,Qg=/[\s,]+/;var $g=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({},Xg,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({},Xg,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({},Xg),n=Math.tan(e*Math.PI/180);t.m21=n,t.c=n,this[ba](t)}[ya](e){let t=Object.assign({},Xg),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({},Xg,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({},Xg,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(Zg),r;for(;r=n.exec(e);){let e=r[1],n=r[2].split(Qg);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}}},e_=class extends $g{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}},t_=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)}},n_=class extends t_{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]}},r_=class{static extendClasses(e){class t extends Bh{}t.prototype[b]=e,e.Document=t;class n extends Vh{}n.prototype[b]=e,e.HTMLDocument=n;class r extends Hh{}r.prototype[b]=e,e.XMLDocument=r;class i extends hh{}i.prototype[b]=e,e.DocumentFragment=i;class a extends Uh{}a.prototype[b]=e,e.Text=a;class o extends Wh{}o.prototype[b]=e,e.Comment=o;class s extends Gh{}s.prototype[b]=e,e.Image=s;class c extends Kh{}c.prototype[b]=e,e.Audio=c;class l extends Jh{}l.prototype[b]=e,e.MutationObserver=l;class u extends Yh{}u.prototype[b]=e,e.MessagePort=u;class d extends Qh{}d.prototype[b]=e,e.CSSStyleSheet=d;class f extends _s{}e.DOMException=f;class p extends vs{}p.prototype[b]=e,e.Headers=p;class ee extends Iu{}ee.prototype[b]=e,e.Request=ee;class te extends Ru{}te.prototype[b]=e,te[b]=e,e.Response=te;class ne extends nl{}ne.prototype[b]=e,e.EventTarget=ne;class re extends eg{}re.prototype[b]=e,e.XMLHttpRequestUpload=re;class ie extends $h{}ie.prototype[b]=e,e.XMLHttpRequestEventTarget=ie;class ae extends tg{}ae.prototype[b]=e,e.AbortController=ae;class oe extends ng{}oe.prototype[b]=e,oe[b]=e,e.AbortSignal=oe;class se extends Tu{}se.prototype[b]=e,e.FormData=se;class ce extends rg{}ce.prototype[b]=e,e.PermissionStatus=ce;class le extends lg{}le.prototype[b]=e,e.XMLHttpRequest=le;class ue extends bg{}ue.prototype[b]=e,e.DOMParser=ue;class de extends Cg{}de.prototype[b]=e,e.Range=de;class fe extends Tg{}fe.prototype[b]=e,e.VTTCue=fe;class pe extends Eg{}pe.prototype[b]=e,e.TextTrack=pe;class me extends Dg{}me.prototype[b]=e,e.TextTrackList=me;class he extends wg{}he.prototype[b]=e,e.TextTrackCue=he;class ge extends Og{}ge.prototype[b]=e,e.RemotePlayback=ge;class _e extends Bg{}_e.prototype[b]=e,e.FileReader=_e;class ve extends If{}ve.prototype[b]=e,e.MediaStream=ve;class ye extends Ug{}ye.prototype[b]=e,e.MediaStreamTrack=ye;class be extends Wg{}be.prototype[b]=e,e.CanvasCaptureMediaStreamTrack=be;class xe extends mu{}xe.prototype[b]=e,e.URL=xe;class Se extends Jg{}Se.prototype[b]=e,e.WebSocket=Se;class Ce extends Yg{}Ce.prototype[b]=e,e.ImageData=Ce;class we extends Xf{}we.prototype[b]=e,e.OffscreenCanvas=we;class Te extends $g{}Te.prototype[b]=e,e.DOMMatrixReadOnly=Te;class Ee extends e_{}Ee.prototype[b]=e,e.DOMMatrix=Ee;class De extends t_{}De.prototype[b]=e,e.DOMPointReadOnly=De;class Oe extends n_{}Oe.prototype[b]=e,e.DOMPoint=Oe}};const i_=/[\t\f\n\r ,]+/;var a_=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 Bc(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(i_))n.includes(e)||n.push(e);return t.attributeValue=e,t.items=n,n}};const o_=/([a-zA-Z0-9]+)\(([^)]+)\)/,s_=/[\s,]+/;var c_=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(o_);if(!n)return new t.DOMMatrix;let r=[];for(let i of n[2].trim().split(s_)){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 e_[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 e_[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 e_[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])}},l_;(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`})(l_||={});var u_=l_;const d_=/([a-zA-Z0-9]+)\(([^)]+)\)/,f_=/[\s,]+/;var p_=class{static SVG_TRANSFORM_UNKNOWN=u_.unknown;static SVG_TRANSFORM_MATRIX=u_.matrix;static SVG_TRANSFORM_TRANSLATE=u_.translate;static SVG_TRANSFORM_SCALE=u_.scale;static SVG_TRANSFORM_ROTATE=u_.rotate;static SVG_TRANSFORM_SKEWX=u_.skewX;static SVG_TRANSFORM_SKEWY=u_.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(d_);if(!e)return u_.unknown;switch(e[1]){case`matrix`:return u_.matrix;case`translate`:return u_.translate;case`rotate`:return u_.rotate;case`scale`:return u_.scale;case`skewX`:return u_.skewX;case`skewY`:return u_.skewY}return 0}get angle(){let e=(this[I]?this[I]():this[R])?.match(d_);if(!e)return 0;let t=parseFloat(e[2].trim().split(f_)[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 c_(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 c_))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 m_=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,h_=`matrix(1 0 0 1 0 0)`;var g_=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 Bc(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 p_))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]||h_).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 p_))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]||h_).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]||h_).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 p_))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]||h_).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]||h_).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]||h_).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 p_))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]||h_).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=t.map(e=>e[R]||h_).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(m_),t;for(;t=e.exec(r);){let e=new p_(N,this[b],{readOnly:this[F],getAttribute:()=>e[R],setAttribute:()=>{this[M].attributeValue=this[P]().map(e=>e[R]||h_).join(` `),this[L](this[M].attributeValue)}});e[R]=`${t[1]}(${t[2]})`,n.push(e)}}return t.attributeValue=e,t.items=n,n}},__=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 g_(N,this[b],{readOnly:!0,getAttribute:this[I],setAttribute:()=>{}})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new g_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},v_=class extends _h{[$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 a_(N,this[b],{getAttribute:()=>this.getAttribute(`requiredExtensions`),setAttribute:e=>this.setAttribute(`requiredExtensions`,e)})),this[$r]}get systemLanguage(){return this[ei]||(this[ei]=new a_(N,this[b],{getAttribute:()=>this.getAttribute(`systemLanguage`),setAttribute:e=>this.setAttribute(`systemLanguage`,e)})),this[ei]}get transform(){return this[ti]||(this[ti]=new __(N,this[b],{getAttribute:()=>this.getAttribute(`transform`),setAttribute:e=>this.setAttribute(`transform`,e)})),this[ti]}getBBox(){return new Dd}getCTM(){return new this[b].DOMMatrix}getScreenCTM(){return new this[b].DOMMatrix}},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];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 b_=/[\t\f\n\r, ]+/;var x_=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(b_);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(b_);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])}},S_;(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`})(S_||={});var C_=S_;const w_=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/;var T_=class{static SVG_LENGTHTYPE_UNKNOWN=C_.unknown;static SVG_LENGTHTYPE_NUMBER=C_.number;static SVG_LENGTHTYPE_PERCENTAGE=C_.percentage;static SVG_LENGTHTYPE_EMS=C_.ems;static SVG_LENGTHTYPE_EXS=C_.exs;static SVG_LENGTHTYPE_PX=C_.px;static SVG_LENGTHTYPE_CM=C_.cm;static SVG_LENGTHTYPE_MM=C_.mm;static SVG_LENGTHTYPE_IN=C_.in;static SVG_LENGTHTYPE_PT=C_.pt;static SVG_LENGTHTYPE_PC=C_.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(w_);if(!e||isNaN(parseFloat(e[1])))return C_.unknown;switch(e[2]){case``:return C_.number;case`px`:return C_.px;case`cm`:return C_.cm;case`mm`:return C_.mm;case`in`:return C_.in;case`pt`:return C_.pt;case`pc`:return C_.pc;case`em`:case`ex`:case`%`:throw new this[b].TypeError(`Failed to execute 'value' on 'SVGLength': Could not resolve relative length.`);default:return C_.unknown}}get value(){let e=(this[I]?this[I]()||``:this[R]||``).match(w_);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 C_.number:n=e,t=``;break;case C_.px:n=e,t=`px`;break;case C_.cm:n=e/96*2.54,t=`cm`;break;case C_.mm:n=e/96*25.4,t=`mm`;break;case C_.in:n=e/96,t=`in`;break;case C_.pt:n=e/72,t=`pt`;break;case C_.pc:n=e/6,t=`pc`;break;case C_.percentage:case C_.ems:case C_.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 C_.number:n=``;break;case C_.px:n=`px`;break;case C_.cm:n=`cm`;break;case C_.mm:n=`mm`;break;case C_.in:n=`in`;break;case C_.pt:n=`pt`;break;case C_.pc:n=`pc`;break;case C_.ems:case C_.exs:case C_.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 C_.number:n=``;break;case C_.px:n=`px`;break;case C_.cm:t=t/96*2.54,n=`cm`;break;case C_.mm:t=t/96*25.4,n=`mm`;break;case C_.in:t/=96,n=`in`;break;case C_.pt:t/=72,n=`pt`;break;case C_.pc:t/=6,n=`pc`;break;case C_.percentage:case C_.ems:case C_.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])}},E_;(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`})(E_||={});var D_=E_;const O_=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/;var k_=class{static SVG_ANGLETYPE_UNKNOWN=D_.unknown;static SVG_ANGLETYPE_UNSPECIFIED=D_.unspecified;static SVG_ANGLETYPE_DEG=D_.deg;static SVG_ANGLETYPE_RAD=D_.rad;static SVG_ANGLETYPE_GRAD=D_.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(O_);if(!e||isNaN(parseFloat(e[1])))return D_.unknown;switch(e[2]){case``:return D_.unspecified;case`deg`:return D_.deg;case`rad`:return D_.rad;case`grad`:return D_.grad;case`turn`:return D_.unknown;default:return D_.unspecified}}get value(){let e=(this[I]?this[I]():this[R])?.match(O_);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 D_.unspecified:n=e,t=``;break;case D_.deg:n=e,t=`deg`;break;case D_.rad:n=e/(180/Math.PI),t=`rad`;break;case D_.grad:n=e/(180/200),t=`grad`;break;case D_.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 D_.unspecified:n=``;break;case D_.deg:n=`deg`;break;case D_.rad:n=`rad`;break;case D_.grad:n=`grad`;break;case D_.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 D_.unspecified:n=``;break;case D_.deg:n=`deg`;break;case D_.rad:n=`rad`,t/=180/Math.PI;break;case D_.grad:n=`grad`,t/=180/200;break;case D_.unknown:n=`turn`,t/=360;break;default:break}this[R]=String(t)+n,this[L]&&this[L](this[R])}},A_=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]||``)}},j_=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 y_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new y_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},M_;(function(e){e[e.unknown=0]=`unknown`,e[e.meet=1]=`meet`,e[e.slice=2]=`slice`})(M_||={});var N_=M_,P_;(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`})(P_||={});var F_=P_;const I_=Object.values(F_);I_.length=I_.indexOf(0);const L_=Object.values(N_);L_.length=L_.indexOf(0);var R_=class{static SVG_MEETORSLICE_UNKNOWN=N_.unknown;static SVG_MEETORSLICE_MEET=N_.meet;static SVG_MEETORSLICE_SLICE=N_.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=F_.unknown;static SVG_PRESERVEASPECTRATIO_NONE=F_.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=F_.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=F_.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=F_.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=F_.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=F_.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=F_.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=F_.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=F_.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=F_.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 F_.xMidYMid;let t=e.split(/\s+/)[0];return F_[t]===void 0?F_.xMidYMid:F_[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>I_.length)throw new this[b].TypeError(`Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.`);this[R]=`${I_[t]} ${L_[this.meetOrSlice]}`,this[L]&&this[L](this[R])}get meetOrSlice(){let e=this[I]?this[I]():this[R];if(!e)return N_.meet;let t=e.split(/\s+/)[1];return!t||N_[t]===void 0?N_.meet:N_[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]=`${I_[this.align]} ${L_[t]}`,this[L]&&this[L](this[R])}},z_=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 R_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new R_(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 T_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new T_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},B_=class extends v_{[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 z_(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 x_(N,this[b])}get viewBox(){return this[ai]||(this[ai]=new j_(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 Vc(N,[])}getEnclosureList(e,t){return new Vc(N,[])}checkIntersection(e,t){return!1}checkEnclosure(e,t){return!1}deselectAll(){}createSVGNumber(){return new A_(N,this[b])}createSVGLength(){return new T_(N,this[b])}createSVGAngle(){return new k_(N,this[b])}createSVGPoint(){return new x_(N,this[b])}createSVGMatrix(){return new c_(N,this[b])}createSVGRect(){return new y_(N,this[b])}createSVGTransform(){return new p_(N,this[b])}createSVGTransformFromMatrix(e){let t=new p_(N,this[b]);return t.setMatrix(e),t}getElementsByClassName(e){return jd.getElementsByClassName(this,e)}getElementsByTagName(e){return jd.getElementsByTagName(this,e)}getElementsByTagNameNS(e,t){return jd.getElementsByTagNameNS(this,e,t)}getElementById(e){return jd.getElementById(this,e)}[Nn](e=!1){return super[Nn](e)}},V_=class extends _h{[$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 a_(N,this[b],{getAttribute:()=>this.getAttribute(`requiredExtensions`),setAttribute:e=>this.setAttribute(`requiredExtensions`,e)})),this[$r]}get systemLanguage(){return this[ei]||(this[ei]=new a_(N,this[b],{getAttribute:()=>this.getAttribute(`systemLanguage`),setAttribute:e=>this.setAttribute(`systemLanguage`,e)})),this[ei]}get targetElement(){return null}},H_=class extends V_{},U_=class extends V_{},W_=class extends V_{},G_=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))}},K_=class extends v_{[ii]=null;get pathLength(){return this[ii]||(this[ii]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`pathLength`),setAttribute:e=>this.setAttribute(`pathLength`,e)})),this[ii]}isPointInFill(e){if(!(e instanceof x_))throw TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);return!1}isPointInStroke(e){if(!(e instanceof x_))throw TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);return!1}getTotalLength(){return 0}getPointAtLength(e){return new x_(N,this[b])}},q_=class extends K_{[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]}},J_=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||``)}},Y_=class extends _h{[Si]=null;get clipPathUnits(){return this[Si]||(this[Si]=new J_(N,this[b],{getAttribute:()=>this.getAttribute(`clipPathUnits`),setAttribute:e=>this.setAttribute(`clipPathUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Si]}},X_=class extends v_{},Z_=class extends _h{},Q_=class extends K_{[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]}},$_=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))}},ev=class extends _h{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get in2(){return this[Da]||(this[Da]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Da]}get mode(){return this[xn]||(this[xn]=new J_(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 tv=/[\t\f\n\r, ]+/;var nv=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 Bc(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 A_))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 A_))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 A_))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(tv);for(let t=0,r=e.length;t<r;t++){let r=new A_(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}},rv=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 nv(N,this[b],{readOnly:!0,getAttribute:this[I],setAttribute:()=>{}})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new nv(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},iv=class extends _h{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get in2(){return this[Da]||(this[Da]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Da]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get type(){return this[qr]||(this[qr]=new J_(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 rv(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 extends _h{[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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new $_(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 _h{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get type(){return this[qr]||(this[qr]=new J_(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 rv(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]}},sv=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))}},cv=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))}},lv=class extends _h{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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`bias`),setAttribute:e=>this.setAttribute(`bias`,e)})),this[Oa]}get divisor(){return this[ka]||(this[ka]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`divisor`),setAttribute:e=>this.setAttribute(`divisor`,e)})),this[ka]}get edgeMode(){return this[Aa]||(this[Aa]=new J_(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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get kernelMatrix(){return this[ja]||(this[ja]=new rv(N,this[b],{getAttribute:()=>this.getAttribute(`kernelMatrix`),setAttribute:e=>this.setAttribute(`kernelMatrix`,e)})),this[ja]}get kernelUnitLengthX(){return this[Ma]||(this[Ma]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Ma]}get kernelUnitLengthY(){return this[Na]||(this[Na]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Na]}get orderX(){return this[Pa]||(this[Pa]=new cv(N,this[b],{getAttribute:()=>this.getAttribute(`orderX`),setAttribute:e=>this.setAttribute(`orderX`,e)})),this[Pa]}get orderY(){return this[Fa]||(this[Fa]=new cv(N,this[b],{getAttribute:()=>this.getAttribute(`orderY`),setAttribute:e=>this.setAttribute(`orderY`,e)})),this[Fa]}get preserveAlpha(){return this[Ia]||(this[Ia]=new sv(N,this[b],{getAttribute:()=>this.getAttribute(`preserveAlpha`),setAttribute:e=>this.setAttribute(`preserveAlpha`,e)})),this[Ia]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get targetX(){return this[La]||(this[La]=new cv(N,this[b],{getAttribute:()=>this.getAttribute(`targetX`),setAttribute:e=>this.setAttribute(`targetX`,e)})),this[La]}get targetY(){return this[Ra]||(this[Ra]=new cv(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]}},uv=class extends _h{[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 G_(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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get kernelUnitLengthX(){return this[Ma]||(this[Ma]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Ma]}get kernelUnitLengthY(){return this[Na]||(this[Na]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Na]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get surfaceScale(){return this[Ba]||(this[Ba]=new G_(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]}},dv=class extends _h{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get in2(){return this[Da]||(this[Da]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Da]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get scale(){return this[Va]||(this[Va]=new G_(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 J_(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 J_(N,this[b],{getAttribute:()=>this.getAttribute(`yChannelSelector`),setAttribute:e=>this.setAttribute(`yChannelSelector`,e),values:[`r`,`g`,`b`,`a`],defaultValue:`r`})),this[Ua]}},fv=class extends _h{[Wa]=null;[Ga]=null;get azimuth(){return this[Wa]||(this[Wa]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`azimuth`),setAttribute:e=>this.setAttribute(`azimuth`,e)})),this[Wa]}get elevation(){return this[Ga]||(this[Ga]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`elevation`),setAttribute:e=>this.setAttribute(`elevation`,e)})),this[Ga]}},pv=class extends _h{[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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[Ka]}get dy(){return this[qa]||(this[qa]=new G_(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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get stdDeviationX(){return this[Ja]||(this[Ja]=new G_(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 G_(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}},mv=class extends _h{[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 $_(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]}},hv=class extends _h{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 J_(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 rv(N,this[b],{getAttribute:()=>this.getAttribute(`tableValues`),setAttribute:e=>this.setAttribute(`tableValues`,e)})),this[Xa]}get slope(){return this[Za]||(this[Za]=new G_(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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`intercept`),setAttribute:e=>this.setAttribute(`intercept`,e)})),this[Qa]}get amplitude(){return this[$a]||(this[$a]=new G_(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 G_(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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`offset`),setAttribute:e=>this.setAttribute(`offset`,e)})),this[Bi]}},gv=class extends hv{},_v=class extends hv{},vv=class extends hv{},yv=class extends hv{},bv=class extends _h{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 J_(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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get stdDeviationX(){return this[Ja]||(this[Ja]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`stdDeviationX`)||`2`,setAttribute:e=>this.setAttribute(`stdDeviationX`,e)})),this[Ja]}get stdDeviationY(){return this[Ya]||(this[Ya]=new G_(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}},xv=class extends _h{[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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get preserveAspectRatio(){return this[mi]||(this[mi]=new z_(N,this[b],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[mi]}get result(){return this[B]||(this[B]=new $_(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]}},Sv=class extends _h{[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 $_(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 _h{[z]=null;get in1(){return this[z]||(this[z]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}},wv=class extends _h{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get operator(){return this[no]||(this[no]=new J_(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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`radiusX`),setAttribute:e=>this.setAttribute(`radiusX`,e)})),this[ro]}get radiusY(){return this[io]||(this[io]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`radiusY`),setAttribute:e=>this.setAttribute(`radiusY`,e)})),this[io]}get result(){return this[B]||(this[B]=new $_(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]}},Tv=class extends _h{[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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get dx(){return this[Ka]||(this[Ka]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[Ka]}get dy(){return this[qa]||(this[qa]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[qa]}get result(){return this[B]||(this[B]=new $_(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]}},Ev=class extends _h{[D]=null;[O]=null;[Wi]=null;get x(){return this[D]||(this[D]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get z(){return this[Wi]||(this[Wi]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`z`),setAttribute:e=>this.setAttribute(`z`,e)})),this[Wi]}},Dv=class extends _h{[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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get kernelUnitLengthX(){return this[Ma]||(this[Ma]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Ma]}get kernelUnitLengthY(){return this[Na]||(this[Na]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Na]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get specularConstant(){return this[ao]||(this[ao]=new G_(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 G_(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 G_(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]}},Ov=class extends _h{[D]=null;[O]=null;[Wi]=null;[so]=null;[co]=null;[lo]=null;[oo]=null;[uo]=null;get x(){return this[D]||(this[D]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get z(){return this[Wi]||(this[Wi]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`z`),setAttribute:e=>this.setAttribute(`z`,e)})),this[Wi]}get pointsAtX(){return this[so]||(this[so]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`pointsAtX`),setAttribute:e=>this.setAttribute(`pointsAtX`,e)})),this[so]}get pointsAtY(){return this[co]||(this[co]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`pointsAtY`),setAttribute:e=>this.setAttribute(`pointsAtY`,e)})),this[co]}get pointsAtZ(){return this[lo]||(this[lo]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`pointsAtZ`),setAttribute:e=>this.setAttribute(`pointsAtZ`,e)})),this[lo]}get specularExponent(){return this[oo]||(this[oo]=new G_(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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`limitingConeAngle`),setAttribute:e=>this.setAttribute(`limitingConeAngle`,e)})),this[uo]}},kv=class extends _h{[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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new $_(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]}},Av=class extends _h{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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`baseFrequencyX`),setAttribute:e=>this.setAttribute(`baseFrequencyX`,e)})),this[fo]}get baseFrequencyY(){return this[po]||(this[po]=new G_(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 cv(N,this[b],{getAttribute:()=>this.getAttribute(`numOctaves`),setAttribute:e=>this.setAttribute(`numOctaves`,e)})),this[mo]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get seed(){return this[ho]||(this[ho]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`seed`),setAttribute:e=>this.setAttribute(`seed`,e)})),this[ho]}get stitchTiles(){return this[go]||(this[go]=new J_(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 J_(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]}},jv=class extends _h{[Di]=null;[Ti]=null;[Ei]=null;[D]=null;[O]=null;[y]=null;[h]=null;get href(){return this[Di]||(this[Di]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get filterUnits(){return this[Ti]||(this[Ti]=new J_(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 J_(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]}},Mv=class extends v_{[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]}},Nv=class extends v_{},Pv=class extends v_{[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 $_(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 z_(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()}},Fv=class extends K_{[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 extends v_{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get gradientUnits(){return this[Mi]||(this[Mi]=new J_(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 __(N,this[b],{getAttribute:()=>this.getAttribute(`gradientTransform`),setAttribute:e=>this.setAttribute(`gradientTransform`,e)})),this[Ni]}get spreadMethod(){return this[Pi]||(this[Pi]=new J_(N,this[b],{getAttribute:()=>this.getAttribute(`spreadMethod`),setAttribute:e=>this.setAttribute(`spreadMethod`,e),values:[`pad`,`reflect`,`repeat`],defaultValue:`pad`})),this[Pi]}},Lv=class extends Iv{[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]}},Rv=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 k_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new k_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},zv=class extends _h{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 J_(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 J_(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 Rv(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 j_(N,this[b],{getAttribute:()=>this.getAttribute(`viewBox`),setAttribute:e=>this.setAttribute(`viewBox`,e)})),this[ai]}get preserveAspectRatio(){return this[mi]||(this[mi]=new z_(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)}},Bv=class extends _h{[Ci]=null;[wi]=null;[D]=null;[O]=null;[y]=null;[h]=null;get maskUnits(){return this[Ci]||(this[Ci]=new J_(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 J_(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]}},Vv=class extends _h{},Hv=class extends _h{[Di]=null;get href(){return this[Di]||(this[Di]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}},Uv=class extends K_{},Wv=class extends _h{[Di]=null;[Fi]=null;[Ii]=null;[Li]=null;[D]=null;[O]=null;[y]=null;[h]=null;get href(){return this[Di]||(this[Di]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get patternUnits(){return this[Fi]||(this[Fi]=new J_(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 J_(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 __(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 Gv=/[\t\f\n\r, ]+/;var Kv=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 Bc(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 x_))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 x_))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 x_))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 x_))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(Gv);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 x_(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}},qv=class extends K_{[hi]=null;[gi]=null;get animatedPoints(){return this[hi]||(this[hi]=new Kv(N,this[b],{readOnly:!0,getAttribute:()=>this.getAttribute(`points`),setAttribute:()=>{}})),this[hi]}get points(){return this[gi]||(this[gi]=new Kv(N,this[b],{getAttribute:()=>this.getAttribute(`points`),setAttribute:e=>this.setAttribute(`points`,e)})),this[gi]}},Jv=class extends K_{[hi]=null;[gi]=null;get animatedPoints(){return this[hi]||(this[hi]=new Kv(N,this[b],{readOnly:!0,getAttribute:()=>this.getAttribute(`points`),setAttribute:()=>{}})),this[hi]}get points(){return this[gi]||(this[gi]=new Kv(N,this[b],{getAttribute:()=>this.getAttribute(`points`),setAttribute:e=>this.setAttribute(`points`,e)})),this[gi]}},Yv=class extends Iv{[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]}},Xv=class extends K_{[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]}},Zv=class extends v_{[Di]=null;get href(){return this[Di]||(this[Di]=new $_(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)}},Qv=class extends V_{},$v=class extends _h{[Bi]=null;get offset(){return this[Bi]||(this[Bi]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`offset`),setAttribute:e=>this.setAttribute(`offset`,e)})),this[Bi]}},ey=class extends _h{[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)}},ty=class extends v_{},ny=class extends v_{},ry=class extends v_{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 J_(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 x_(N,this[b])}getEndPositionOfChar(e){return new x_(N,this[b])}getExtentOfChar(e){return new y_(N,this[b])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};const iy=/[\t\f\n\r, ]+/;var ay=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 Bc(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(iy);for(let r=0,i=e.length;r<i;r++){let i=new T_(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}},oy=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 ay(N,this[b],{readOnly:!0,getAttribute:this[I],setAttribute:this[L]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new ay(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},sy=class extends ry{[D]=null;[O]=null;[Ka]=null;[qa]=null;[Co]=null;get x(){return this[D]||(this[D]=new oy(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new oy(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get dx(){return this[Ka]||(this[Ka]=new oy(N,this[b],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[Ka]}get dy(){return this[qa]||(this[qa]=new oy(N,this[b],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[qa]}get rotate(){return this[Co]||(this[Co]=new rv(N,this[b],{getAttribute:()=>this.getAttribute(`rotate`),setAttribute:e=>this.setAttribute(`rotate`,e)})),this[Co]}},cy=class extends sy{},ly=class extends ry{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 $_(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 J_(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 J_(N,this[b],{getAttribute:()=>this.getAttribute(`spacing`),setAttribute:e=>this.setAttribute(`spacing`,e),values:[`auto`,`exact`],defaultValue:`exact`})),this[Ea]}},uy=class extends _h{},dy=class extends sy{},fy=class extends v_{[Di]=null;[D]=null;[O]=null;[y]=null;[h]=null;get href(){return this[Di]||(this[Di]=new $_(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]}},py=class extends _h{},my=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`)}},hy=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}}},gy=class extends W{state;hasUAVisualTransition;constructor(e,t=null){super(e),this.state=t?.state??null,this.hasUAVisualTransition=t?.hasUAVisualTransition??!1}},_y=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}},vy=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 Lp){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 ph)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 $f||r instanceof Xf)&&(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 yy={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)},by=setTimeout.toString().includes(`new Timeout`),xy=(()=>{try{return Function(`return true;`)(),!0}catch{return!1}})(),Sy=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})();var Cy=class{constructor(){throw TypeError(`Illegal constructor`)}},wy=class{callback;constructor(e){this.callback=e}},Ty=class e extends nl{Node=gd;Attr=_d;ShadowRoot=gh;ProcessingInstruction=mh;Element=Df;CharacterData=xd;DocumentType=Sd;HTMLAnchorElement=Mf;HTMLButtonElement=Yf;HTMLOptGroupElement=Mm;HTMLOptionElement=Nm;HTMLElement=Q;HTMLUnknownElement=fh;HTMLTemplateElement=oh;HTMLInputElement=Yp;HTMLSelectElement=Jm;HTMLTextAreaElement=sh;HTMLImageElement=Lp;HTMLStyleElement=$m;HTMLLabelElement=Xp;HTMLSlotElement=Xm;HTMLMetaElement=Dm;HTMLMediaElement=zf;HTMLAudioElement=Bf;HTMLVideoElement=ph;HTMLBaseElement=Vf;HTMLDialogElement=ip;HTMLScriptElement=Km;HTMLLinkElement=Cm;HTMLIFrameElement=Sp;HTMLFormElement=hp;HTMLUListElement=dh;HTMLTrackElement=uh;HTMLTableRowElement=ah;HTMLTitleElement=lh;HTMLTimeElement=ch;HTMLTableSectionElement=rh;HTMLTableCellElement=th;HTMLTableElement=ih;HTMLSpanElement=Qm;HTMLSourceElement=Zm;HTMLQuoteElement=Bm;HTMLProgressElement=zm;HTMLPreElement=Rm;HTMLPictureElement=Lm;HTMLParamElement=Im;HTMLParagraphElement=Fm;HTMLOutputElement=Pm;HTMLOListElement=Am;HTMLObjectElement=jm;HTMLMeterElement=Om;HTMLMenuElement=Em;HTMLMapElement=wm;HTMLLIElement=Qp;HTMLLegendElement=Zp;HTMLModElement=km;HTMLHtmlElement=yp;HTMLHRElement=vp;HTMLHeadElement=gp;HTMLHeadingElement=_p;HTMLFieldSetElement=sp;HTMLEmbedElement=op;HTMLDListElement=ep;HTMLDivElement=ap;HTMLDetailsElement=rp;HTMLDataListElement=np;HTMLDataElement=tp;HTMLTableColElement=nh;HTMLTableCaptionElement=eh;HTMLCanvasElement=$f;HTMLBRElement=Uf;HTMLBodyElement=Hf;HTMLAreaElement=Nf;SVGSVGElement=B_;SVGAnimateElement=H_;SVGAnimateMotionElement=U_;SVGAnimateTransformElement=W_;SVGCircleElement=q_;SVGClipPathElement=Y_;SVGDefsElement=X_;SVGDescElement=Z_;SVGEllipseElement=Q_;SVGFEBlendElement=ev;SVGFEColorMatrixElement=iv;SVGFEComponentTransferElement=av;SVGFECompositeElement=ov;SVGFEConvolveMatrixElement=lv;SVGFEDiffuseLightingElement=uv;SVGFEDisplacementMapElement=dv;SVGFEDistantLightElement=fv;SVGFEDropShadowElement=pv;SVGFEFloodElement=mv;SVGFEFuncAElement=gv;SVGFEFuncBElement=_v;SVGFEFuncGElement=vv;SVGFEFuncRElement=yv;SVGFEGaussianBlurElement=bv;SVGFEImageElement=xv;SVGFEMergeElement=Sv;SVGFEMergeNodeElement=Cv;SVGFEMorphologyElement=wv;SVGFEOffsetElement=Tv;SVGFEPointLightElement=Ev;SVGFESpecularLightingElement=Dv;SVGFESpotLightElement=Ov;SVGFETileElement=kv;SVGFETurbulenceElement=Av;SVGFilterElement=jv;SVGForeignObjectElement=Mv;SVGGElement=Nv;SVGImageElement=Pv;SVGLineElement=Fv;SVGLinearGradientElement=Lv;SVGMarkerElement=zv;SVGMaskElement=Bv;SVGMetadataElement=Vv;SVGMPathElement=Hv;SVGPathElement=Uv;SVGPatternElement=Wv;SVGPolygonElement=qv;SVGPolylineElement=Jv;SVGRadialGradientElement=Yv;SVGRectElement=Xv;SVGScriptElement=Zv;SVGSetElement=Qv;SVGStopElement=$v;SVGStyleElement=ey;SVGSwitchElement=ty;SVGSymbolElement=ny;SVGTextElement=cy;SVGTextPathElement=ly;SVGTitleElement=uy;SVGTSpanElement=dy;SVGUseElement=fy;SVGViewElement=py;SVGElement=_h;SVGAnimationElement=V_;SVGComponentTransferFunctionElement=hv;SVGGeometryElement=K_;SVGGradientElement=Iv;SVGTextPositioningElement=sy;SVGGraphicsElement=v_;Event=W;UIEvent=Zl;CustomEvent=eu;CloseEvent=_y;AnimationEvent=Ql;KeyboardEvent=au;MessageEvent=ou;MouseEvent=su;PointerEvent=cu;FocusEvent=nu;WheelEvent=pu;InputEvent=iu;ErrorEvent=tu;StorageEvent=uu;SubmitEvent=du;ProgressEvent=lu;MediaQueryListEvent=rl;HashChangeEvent=ru;ClipboardEvent=$l;TouchEvent=fu;PopStateEvent=gy;Touch=Xl;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=sd;History=Zu;Navigator=cd;Clipboard=zs;TimeRanges=Pf;TextTrackCueList=Tm;ValidityState=Kf;MutationRecord=td;IntersectionObserver=Qu;IntersectionObserverEntry=$u;CSSStyleDeclaration=yl;CSSRule=Ks;CSSContainerRule=xl;CSSFontFaceRule=Sl;CSSKeyframeRule=Cl;CSSKeyframesRule=Tl;CSSMediaRule=Ol;CSSStyleRule=Nl;CSSSupportsRule=Pl;CSSConditionRule=bl;CSSGroupingRule=fl;CSSScopeRule=pl;DOMRect=Dd;DOMRectReadOnly=Ed;Plugin=ld;PluginArray=id;Location=ed;CustomElementRegistry=Gl;ResizeObserver=vh;Blob=Rs;File=ql;Storage=Eh;MimeType=nd;MimeTypeArray=rd;NodeFilter=Dh;ImageBitmap=vy;HTMLCollection=Ad;HTMLFormControlCollection=cp;HTMLOptionsCollection=qm;NodeList=Vc;RadioNodeList=mp;FileList=Rp;Screen=yh;ScreenDetails=xh;ScreenDetailed=bh;NamedNodeMap=Nd;TreeWalker=jh;NodeIterator=Mh;DataTransfer=Yl;DataTransferItem=Kl;DataTransferItemList=Jl;XMLSerializer=Nh;ClipboardItem=Bs;Selection=Th;CSSUnitValue=Us;SVGAngle=k_;SVGAnimatedAngle=Rv;SVGAnimatedBoolean=sv;SVGAnimatedEnumeration=J_;SVGAnimatedInteger=cv;SVGAnimatedLength=$;SVGAnimatedNumber=G_;SVGAnimatedNumberList=rv;SVGAnimatedPreserveAspectRatio=z_;SVGAnimatedRect=j_;SVGAnimatedString=$_;SVGAnimatedTransformList=__;SVGLength=T_;SVGLengthList=ay;SVGMatrix=c_;SVGNumber=A_;SVGNumberList=nv;SVGPoint=x_;SVGPointList=Kv;SVGPreserveAspectRatio=R_;SVGRect=y_;SVGStringList=a_;SVGTransform=p_;SVGTransformList=g_;SVGAnimatedLengthList=oy;SVGUnitTypes=my;StylePropertyMap=Ml;StylePropertyMapReadOnly=jl;MediaList=Dl;CSSKeywordValue=kl;CSSStyleValue=Al;Window=this.constructor;URLSearchParams=ee;WritableStream=u.Writable;ReadableStream=se;TransformStream=u.Transform;PerformanceObserver=ne;PerformanceEntry=te;PerformanceObserverEntryList=Cy;document;customElements=new Gl(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=c;TextEncoder=o;TextDecoder=a;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 hy(this);[ko]={json:new Map,css:new Map,esm:new Map};[Ro]=null;[rs]=[];[V]=new Map;[ss]=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 Td(e),this[On]=new cd(this),this[kn]=new yh,this[An]=new Eh,this[jn]=new Eh,this[En]=new ed(this.#e,t?.url??`about:blank`),this[Dn]=new Zu(this.#e,this),e[Dn].currentItem.href=t?.url??`about:blank`,Y.setWindowBrowserFrameRelation(this,this.#e),this[ct](),r_.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]=wd.complete,this.document.dispatchEvent(new W(`readystatechange`));let t=new W(`load`);t[ke]=this,t[dt]=this.document,t[Gr]=Es.atTarget,this.dispatchEvent(t),t[ke]=null,t[Gr]=Es.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 Ws}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 yl(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 Fh.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 dl({window:this,media:e})}getScreenDetails(){return Promise.resolve(new xh)}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===Ls.tryAndCatch,n=yy.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 wy(()=>e(...n));return t.timeouts.push(i),i}let i=!r||!r.disableErrorCapturing&&r.errorCapture===Ls.tryAndCatch,a=yy.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 wy){let t=this.#o;if(!t.timeouts)return;let n=t.timeouts.indexOf(e);n!==-1&&t.timeouts.splice(n,1);return}by&&(!e||e.constructor.name!==`Timeout`)||(yy.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===Ls.tryAndCatch,a=0,o=yy.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){by&&(!e||e.constructor.name!==`Timeout`)||(yy.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===Ls.tryAndCatch,r=yy.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){by&&(!e||e.constructor.name!==`Immediate`)||(yy.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===Ls.tryAndCatch;yy.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 qu({browserFrame:this.#e,window:this,url:e,init:t}).send()}btoa(e){return Fs.btoa(e)}atob(e){return Fs.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 ou(`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 vy(N,this,e,t,n,r,i,a)}[zo](e){this.#e.page.console.error(e),this.dispatchEvent(new tu(`error`,{message:e.message,error:e}))}[Fe](e,t){return new ce.Script(e,t).runInContext(this)}[ct](){ce.isContext(this)||(ce.createContext(this),Ph.runInContext(this))}[ns](){let e=this.#e;(xy||Sy)&&e.page.context.browser.settings.enableJavaScriptEvaluation&&!e.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!e.page.context.browser.settings.suppressCodeGenerationFromStringsWarning&&console.warn(`
|
|
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]}})),Ag=t(((e,t)=>{let{asciiLowercase:n,solelyContainsHTTPTokenCodePoints:r,soleyContainsHTTPQuotedStringTokenCodePoints:i}=kg();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]()}}})),jg=t(((e,t)=>{let{removeLeadingAndTrailingHTTPWhitespace:n,removeTrailingHTTPWhitespace:r,isHTTPWhitespaceChar:i,solelyContainsHTTPTokenCodePoints:a,soleyContainsHTTPQuotedStringTokenCodePoints:o,asciiLowercase:s,collectAnHTTPQuotedString:c}=kg();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}})),Mg=t(((e,t)=>{let{solelyContainsHTTPTokenCodePoints:n}=kg();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}})),Ng=e(t(((e,t)=>{let n=Ag(),r=jg(),i=Mg(),{asciiLowercase:a,solelyContainsHTTPTokenCodePoints:o}=kg();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),Pg;(function(e){e[e.empty=0]=`empty`,e[e.loading=1]=`loading`,e[e.done=2]=`done`})(Pg||={});var Fg=Pg,Ig;(function(e){e.buffer=`buffer`,e.binaryString=`binaryString`,e.dataURL=`dataURL`,e.text=`text`})(Ig||={});var Lg=Ig,Rg;(function(e){e.abort=`abort`,e.error=`error`,e.load=`load`,e.loadstart=`loadstart`,e.loadend=`loadend`,e.progress=`progress`})(Rg||={});var zg=Rg,Bg=class extends nl{error=null;result=null;readyState=Fg.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 Rs))throw new this[b].TypeError(`Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.buffer)}readAsBinaryString(e){if(!(e instanceof Rs))throw new this[b].TypeError(`Failed to execute 'readAsBinaryString' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.binaryString)}readAsDataURL(e){if(!(e instanceof Rs))throw new this[b].TypeError(`Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.dataURL)}readAsText(e,t=null){if(!(e instanceof Rs))throw new this[b].TypeError(`Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'.`);this.#r(e,Lg.text,t||`UTF-8`)}abort(){let e=this[b];if(this.#t&&e.clearTimeout(this.#t),this.#n&&e.clearTimeout(this.#n),this.readyState===Fg.empty||this.readyState===Fg.done){this.result=null;return}this.readyState===Fg.loading&&(this.readyState=Fg.done,this.result=null),this.#e=!0,this.dispatchEvent(new lu(zg.abort)),this.dispatchEvent(new lu(zg.loadend))}#r(e,t,n=null){let r=this[b];if(this.readyState===Fg.loading)throw new r.DOMException(`The object is in an invalid state.`,H.invalidStateError);this.readyState=Fg.loading,this.#t=r.setTimeout(()=>{if(this.#e){this.#e=!1;return}this.dispatchEvent(new lu(zg.loadstart));let a=e[me];a||=i.alloc(0),this.dispatchEvent(new lu(zg.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 Lg.buffer:this.result=new Uint8Array(a).buffer;break;case Lg.binaryString:this.result=a.toString(`binary`);break;case Lg.dataURL:{let t=Ng.default.parse(e.type)||`application/octet-stream`;this.result=`data:${t};base64,${a.toString(`base64`)}`;break}case Lg.text:this.result=new TextDecoder(n||`UTF-8`).decode(a);break}this.readyState=Fg.done,this.dispatchEvent(new lu(zg.load)),this.dispatchEvent(new lu(zg.loadend))})})}};const Vg={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}},Hg={deviceId:``,frameRate:60,resizeMode:`none`};var Ug=class extends nl{contentHint=``;enabled=!0;id=s.randomUUID();muted=!1;readyState=`live`;label=``;[Fr]=``;[Pr]=`video`;[zn]={};[Bn]=JSON.parse(JSON.stringify(Vg));[Vn]=JSON.parse(JSON.stringify(Hg));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]}},Wg=class extends Ug{[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}},Gg;(function(e){e[e.connecting=0]=`connecting`,e[e.open=1]=`open`,e[e.closing=2]=`closing`,e[e.closed=3]=`closed`})(Gg||={});var Kg=Gg;const qg=/^[!#$%&'*+\-.^_`|~\dA-Za-z]+$/;var Jg=class extends nl{static CONNECTING=Kg.connecting;static OPEN=Kg.open;static CLOSING=Kg.closing;static CLOSED=Kg.closed;#e=Kg.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===Kg.connecting)throw new t.DOMException(`Still in CONNECTING state.`,H.invalidStateError);if(this.#e!==Kg.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 Rs?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=Kg.connecting,this[is]=new n(e,t,{headers:{"user-agent":r.navigator.userAgent,cookie:Nu.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=Nu.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===Kg.connecting?this[is]?this[is].terminate():this.#e=Kg.closing:this[is]&&this.readyState===Kg.open&&this[is].close(e,t),this[is]=null}#s(){this[is]?.extensions&&(this.#t=Object.keys(this[is].extensions).join(`, `)),this.#e=Kg.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=Kg.closed,this.dispatchEvent(new this[b].CloseEvent(`close`,{wasClean:this.#r===null,code:e,reason:t.toString()}))}#l(e,t){if(this.#e!==Kg.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 qg.test(e)}},Yg=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 Xg={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},Zg=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,Qg=/[\s,]+/;var $g=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({},Xg,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({},Xg,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({},Xg),n=Math.tan(e*Math.PI/180);t.m21=n,t.c=n,this[ba](t)}[ya](e){let t=Object.assign({},Xg),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({},Xg,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({},Xg,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(Zg),r;for(;r=n.exec(e);){let e=r[1],n=r[2].split(Qg);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}}},e_=class extends $g{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}},t_=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)}},n_=class extends t_{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]}},r_=class{static extendClasses(e){class t extends Bh{}t.prototype[b]=e,e.Document=t;class n extends Vh{}n.prototype[b]=e,e.HTMLDocument=n;class r extends Hh{}r.prototype[b]=e,e.XMLDocument=r;class i extends hh{}i.prototype[b]=e,e.DocumentFragment=i;class a extends Uh{}a.prototype[b]=e,e.Text=a;class o extends Wh{}o.prototype[b]=e,e.Comment=o;class s extends Gh{}s.prototype[b]=e,e.Image=s;class c extends Kh{}c.prototype[b]=e,e.Audio=c;class l extends Jh{}l.prototype[b]=e,e.MutationObserver=l;class u extends Yh{}u.prototype[b]=e,e.MessagePort=u;class d extends Qh{}d.prototype[b]=e,e.CSSStyleSheet=d;class f extends _s{}e.DOMException=f;class p extends vs{}p.prototype[b]=e,e.Headers=p;class ee extends Iu{}ee.prototype[b]=e,e.Request=ee;class te extends Ru{}te.prototype[b]=e,te[b]=e,e.Response=te;class ne extends nl{}ne.prototype[b]=e,e.EventTarget=ne;class re extends eg{}re.prototype[b]=e,e.XMLHttpRequestUpload=re;class ie extends $h{}ie.prototype[b]=e,e.XMLHttpRequestEventTarget=ie;class ae extends tg{}ae.prototype[b]=e,e.AbortController=ae;class oe extends ng{}oe.prototype[b]=e,oe[b]=e,e.AbortSignal=oe;class se extends Tu{}se.prototype[b]=e,e.FormData=se;class ce extends rg{}ce.prototype[b]=e,e.PermissionStatus=ce;class le extends lg{}le.prototype[b]=e,e.XMLHttpRequest=le;class ue extends bg{}ue.prototype[b]=e,e.DOMParser=ue;class de extends Cg{}de.prototype[b]=e,e.Range=de;class fe extends Tg{}fe.prototype[b]=e,e.VTTCue=fe;class pe extends Eg{}pe.prototype[b]=e,e.TextTrack=pe;class me extends Dg{}me.prototype[b]=e,e.TextTrackList=me;class he extends wg{}he.prototype[b]=e,e.TextTrackCue=he;class ge extends Og{}ge.prototype[b]=e,e.RemotePlayback=ge;class _e extends Bg{}_e.prototype[b]=e,e.FileReader=_e;class ve extends If{}ve.prototype[b]=e,e.MediaStream=ve;class ye extends Ug{}ye.prototype[b]=e,e.MediaStreamTrack=ye;class be extends Wg{}be.prototype[b]=e,e.CanvasCaptureMediaStreamTrack=be;class xe extends mu{}xe.prototype[b]=e,e.URL=xe;class Se extends Jg{}Se.prototype[b]=e,e.WebSocket=Se;class Ce extends Yg{}Ce.prototype[b]=e,e.ImageData=Ce;class we extends Xf{}we.prototype[b]=e,e.OffscreenCanvas=we;class Te extends $g{}Te.prototype[b]=e,e.DOMMatrixReadOnly=Te;class Ee extends e_{}Ee.prototype[b]=e,e.DOMMatrix=Ee;class De extends t_{}De.prototype[b]=e,e.DOMPointReadOnly=De;class Oe extends n_{}Oe.prototype[b]=e,e.DOMPoint=Oe}};const i_=/[\t\f\n\r ,]+/;var a_=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 Bc(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(i_))n.includes(e)||n.push(e);return t.attributeValue=e,t.items=n,n}};const o_=/([a-zA-Z0-9]+)\(([^)]+)\)/,s_=/[\s,]+/;var c_=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(o_);if(!n)return new t.DOMMatrix;let r=[];for(let i of n[2].trim().split(s_)){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 e_[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 e_[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 e_[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])}},l_;(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`})(l_||={});var u_=l_;const d_=/([a-zA-Z0-9]+)\(([^)]+)\)/,f_=/[\s,]+/;var p_=class{static SVG_TRANSFORM_UNKNOWN=u_.unknown;static SVG_TRANSFORM_MATRIX=u_.matrix;static SVG_TRANSFORM_TRANSLATE=u_.translate;static SVG_TRANSFORM_SCALE=u_.scale;static SVG_TRANSFORM_ROTATE=u_.rotate;static SVG_TRANSFORM_SKEWX=u_.skewX;static SVG_TRANSFORM_SKEWY=u_.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(d_);if(!e)return u_.unknown;switch(e[1]){case`matrix`:return u_.matrix;case`translate`:return u_.translate;case`rotate`:return u_.rotate;case`scale`:return u_.scale;case`skewX`:return u_.skewX;case`skewY`:return u_.skewY}return 0}get angle(){let e=(this[I]?this[I]():this[R])?.match(d_);if(!e)return 0;let t=parseFloat(e[2].trim().split(f_)[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 c_(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 c_))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 m_=/([a-zA-Z0-9]+)\(([^)]+)\)/gm,h_=`matrix(1 0 0 1 0 0)`;var g_=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 Bc(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 p_))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]||h_).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 p_))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]||h_).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]||h_).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 p_))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]||h_).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=n.map(e=>e[R]||h_).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]||h_).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 p_))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]||h_).join(` `),this[L](this[M].attributeValue)},this[M].attributeValue=t.map(e=>e[R]||h_).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(m_),t;for(;t=e.exec(r);){let e=new p_(N,this[b],{readOnly:this[F],getAttribute:()=>e[R],setAttribute:()=>{this[M].attributeValue=this[P]().map(e=>e[R]||h_).join(` `),this[L](this[M].attributeValue)}});e[R]=`${t[1]}(${t[2]})`,n.push(e)}}return t.attributeValue=e,t.items=n,n}},__=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 g_(N,this[b],{readOnly:!0,getAttribute:this[I],setAttribute:()=>{}})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new g_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},v_=class extends _h{[$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 a_(N,this[b],{getAttribute:()=>this.getAttribute(`requiredExtensions`),setAttribute:e=>this.setAttribute(`requiredExtensions`,e)})),this[$r]}get systemLanguage(){return this[ei]||(this[ei]=new a_(N,this[b],{getAttribute:()=>this.getAttribute(`systemLanguage`),setAttribute:e=>this.setAttribute(`systemLanguage`,e)})),this[ei]}get transform(){return this[ti]||(this[ti]=new __(N,this[b],{getAttribute:()=>this.getAttribute(`transform`),setAttribute:e=>this.setAttribute(`transform`,e)})),this[ti]}getBBox(){return new Dd}getCTM(){return new this[b].DOMMatrix}getScreenCTM(){return new this[b].DOMMatrix}},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];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 b_=/[\t\f\n\r, ]+/;var x_=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(b_);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(b_);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])}},S_;(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`})(S_||={});var C_=S_;const w_=/^(\d+|\d+\.\d+)(px|em|ex|cm|mm|in|pt|pc|%|)$/;var T_=class{static SVG_LENGTHTYPE_UNKNOWN=C_.unknown;static SVG_LENGTHTYPE_NUMBER=C_.number;static SVG_LENGTHTYPE_PERCENTAGE=C_.percentage;static SVG_LENGTHTYPE_EMS=C_.ems;static SVG_LENGTHTYPE_EXS=C_.exs;static SVG_LENGTHTYPE_PX=C_.px;static SVG_LENGTHTYPE_CM=C_.cm;static SVG_LENGTHTYPE_MM=C_.mm;static SVG_LENGTHTYPE_IN=C_.in;static SVG_LENGTHTYPE_PT=C_.pt;static SVG_LENGTHTYPE_PC=C_.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(w_);if(!e||isNaN(parseFloat(e[1])))return C_.unknown;switch(e[2]){case``:return C_.number;case`px`:return C_.px;case`cm`:return C_.cm;case`mm`:return C_.mm;case`in`:return C_.in;case`pt`:return C_.pt;case`pc`:return C_.pc;case`em`:case`ex`:case`%`:throw new this[b].TypeError(`Failed to execute 'value' on 'SVGLength': Could not resolve relative length.`);default:return C_.unknown}}get value(){let e=(this[I]?this[I]()||``:this[R]||``).match(w_);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 C_.number:n=e,t=``;break;case C_.px:n=e,t=`px`;break;case C_.cm:n=e/96*2.54,t=`cm`;break;case C_.mm:n=e/96*25.4,t=`mm`;break;case C_.in:n=e/96,t=`in`;break;case C_.pt:n=e/72,t=`pt`;break;case C_.pc:n=e/6,t=`pc`;break;case C_.percentage:case C_.ems:case C_.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 C_.number:n=``;break;case C_.px:n=`px`;break;case C_.cm:n=`cm`;break;case C_.mm:n=`mm`;break;case C_.in:n=`in`;break;case C_.pt:n=`pt`;break;case C_.pc:n=`pc`;break;case C_.ems:case C_.exs:case C_.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 C_.number:n=``;break;case C_.px:n=`px`;break;case C_.cm:t=t/96*2.54,n=`cm`;break;case C_.mm:t=t/96*25.4,n=`mm`;break;case C_.in:t/=96,n=`in`;break;case C_.pt:t/=72,n=`pt`;break;case C_.pc:t/=6,n=`pc`;break;case C_.percentage:case C_.ems:case C_.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])}},E_;(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`})(E_||={});var D_=E_;const O_=/^(\d+|\d+\.\d+)(deg|rad|grad|turn|)$/;var k_=class{static SVG_ANGLETYPE_UNKNOWN=D_.unknown;static SVG_ANGLETYPE_UNSPECIFIED=D_.unspecified;static SVG_ANGLETYPE_DEG=D_.deg;static SVG_ANGLETYPE_RAD=D_.rad;static SVG_ANGLETYPE_GRAD=D_.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(O_);if(!e||isNaN(parseFloat(e[1])))return D_.unknown;switch(e[2]){case``:return D_.unspecified;case`deg`:return D_.deg;case`rad`:return D_.rad;case`grad`:return D_.grad;case`turn`:return D_.unknown;default:return D_.unspecified}}get value(){let e=(this[I]?this[I]():this[R])?.match(O_);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 D_.unspecified:n=e,t=``;break;case D_.deg:n=e,t=`deg`;break;case D_.rad:n=e/(180/Math.PI),t=`rad`;break;case D_.grad:n=e/(180/200),t=`grad`;break;case D_.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 D_.unspecified:n=``;break;case D_.deg:n=`deg`;break;case D_.rad:n=`rad`;break;case D_.grad:n=`grad`;break;case D_.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 D_.unspecified:n=``;break;case D_.deg:n=`deg`;break;case D_.rad:n=`rad`,t/=180/Math.PI;break;case D_.grad:n=`grad`,t/=180/200;break;case D_.unknown:n=`turn`,t/=360;break;default:break}this[R]=String(t)+n,this[L]&&this[L](this[R])}},A_=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]||``)}},j_=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 y_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new y_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},M_;(function(e){e[e.unknown=0]=`unknown`,e[e.meet=1]=`meet`,e[e.slice=2]=`slice`})(M_||={});var N_=M_,P_;(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`})(P_||={});var F_=P_;const I_=Object.values(F_);I_.length=I_.indexOf(0);const L_=Object.values(N_);L_.length=L_.indexOf(0);var R_=class{static SVG_MEETORSLICE_UNKNOWN=N_.unknown;static SVG_MEETORSLICE_MEET=N_.meet;static SVG_MEETORSLICE_SLICE=N_.slice;static SVG_PRESERVEASPECTRATIO_UNKNOWN=F_.unknown;static SVG_PRESERVEASPECTRATIO_NONE=F_.none;static SVG_PRESERVEASPECTRATIO_XMINYMIN=F_.xMinYMin;static SVG_PRESERVEASPECTRATIO_XMIDYMIN=F_.xMidYMin;static SVG_PRESERVEASPECTRATIO_XMAXYMIN=F_.xMaxYMin;static SVG_PRESERVEASPECTRATIO_XMINYMID=F_.xMinYMid;static SVG_PRESERVEASPECTRATIO_XMIDYMID=F_.xMidYMid;static SVG_PRESERVEASPECTRATIO_XMAXYMID=F_.xMaxYMid;static SVG_PRESERVEASPECTRATIO_XMINYMAX=F_.xMinYMax;static SVG_PRESERVEASPECTRATIO_XMIDYMAX=F_.xMidYMax;static SVG_PRESERVEASPECTRATIO_XMAXYMAX=F_.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 F_.xMidYMid;let t=e.split(/\s+/)[0];return F_[t]===void 0?F_.xMidYMid:F_[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>I_.length)throw new this[b].TypeError(`Failed to set the 'align' property on 'SVGPreserveAspectRatio': The alignment provided is invalid.`);this[R]=`${I_[t]} ${L_[this.meetOrSlice]}`,this[L]&&this[L](this[R])}get meetOrSlice(){let e=this[I]?this[I]():this[R];if(!e)return N_.meet;let t=e.split(/\s+/)[1];return!t||N_[t]===void 0?N_.meet:N_[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]=`${I_[this.align]} ${L_[t]}`,this[L]&&this[L](this[R])}},z_=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 R_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new R_(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 T_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new T_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},B_=class extends v_{[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 z_(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 x_(N,this[b])}get viewBox(){return this[ai]||(this[ai]=new j_(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 Vc(N,[])}getEnclosureList(e,t){return new Vc(N,[])}checkIntersection(e,t){return!1}checkEnclosure(e,t){return!1}deselectAll(){}createSVGNumber(){return new A_(N,this[b])}createSVGLength(){return new T_(N,this[b])}createSVGAngle(){return new k_(N,this[b])}createSVGPoint(){return new x_(N,this[b])}createSVGMatrix(){return new c_(N,this[b])}createSVGRect(){return new y_(N,this[b])}createSVGTransform(){return new p_(N,this[b])}createSVGTransformFromMatrix(e){let t=new p_(N,this[b]);return t.setMatrix(e),t}getElementsByClassName(e){return jd.getElementsByClassName(this,e)}getElementsByTagName(e){return jd.getElementsByTagName(this,e)}getElementsByTagNameNS(e,t){return jd.getElementsByTagNameNS(this,e,t)}getElementById(e){return jd.getElementById(this,e)}[Nn](e=!1){return super[Nn](e)}},V_=class extends _h{[$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 a_(N,this[b],{getAttribute:()=>this.getAttribute(`requiredExtensions`),setAttribute:e=>this.setAttribute(`requiredExtensions`,e)})),this[$r]}get systemLanguage(){return this[ei]||(this[ei]=new a_(N,this[b],{getAttribute:()=>this.getAttribute(`systemLanguage`),setAttribute:e=>this.setAttribute(`systemLanguage`,e)})),this[ei]}get targetElement(){return null}},H_=class extends V_{},U_=class extends V_{},W_=class extends V_{},G_=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))}},K_=class extends v_{[ii]=null;get pathLength(){return this[ii]||(this[ii]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`pathLength`),setAttribute:e=>this.setAttribute(`pathLength`,e)})),this[ii]}isPointInFill(e){if(!(e instanceof x_))throw TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);return!1}isPointInStroke(e){if(!(e instanceof x_))throw TypeError(`Failed to execute 'isPointInFill' on 'SVGGeometryElement': parameter 1 is not of type 'SVGPoint'.`);return!1}getTotalLength(){return 0}getPointAtLength(e){return new x_(N,this[b])}},q_=class extends K_{[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]}},J_=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||``)}},Y_=class extends _h{[Si]=null;get clipPathUnits(){return this[Si]||(this[Si]=new J_(N,this[b],{getAttribute:()=>this.getAttribute(`clipPathUnits`),setAttribute:e=>this.setAttribute(`clipPathUnits`,e),values:[`userSpaceOnUse`,`objectBoundingBox`],defaultValue:`userSpaceOnUse`})),this[Si]}},X_=class extends v_{},Z_=class extends _h{},Q_=class extends K_{[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]}},$_=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))}},ev=class extends _h{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get in2(){return this[Da]||(this[Da]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Da]}get mode(){return this[xn]||(this[xn]=new J_(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 tv=/[\t\f\n\r, ]+/;var nv=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 Bc(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 A_))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 A_))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 A_))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(tv);for(let t=0,r=e.length;t<r;t++){let r=new A_(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}},rv=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 nv(N,this[b],{readOnly:!0,getAttribute:this[I],setAttribute:()=>{}})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new nv(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},iv=class extends _h{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get in2(){return this[Da]||(this[Da]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Da]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get type(){return this[qr]||(this[qr]=new J_(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 rv(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 extends _h{[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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new $_(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 _h{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get type(){return this[qr]||(this[qr]=new J_(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 rv(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]}},sv=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))}},cv=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))}},lv=class extends _h{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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`bias`),setAttribute:e=>this.setAttribute(`bias`,e)})),this[Oa]}get divisor(){return this[ka]||(this[ka]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`divisor`),setAttribute:e=>this.setAttribute(`divisor`,e)})),this[ka]}get edgeMode(){return this[Aa]||(this[Aa]=new J_(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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get kernelMatrix(){return this[ja]||(this[ja]=new rv(N,this[b],{getAttribute:()=>this.getAttribute(`kernelMatrix`),setAttribute:e=>this.setAttribute(`kernelMatrix`,e)})),this[ja]}get kernelUnitLengthX(){return this[Ma]||(this[Ma]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Ma]}get kernelUnitLengthY(){return this[Na]||(this[Na]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Na]}get orderX(){return this[Pa]||(this[Pa]=new cv(N,this[b],{getAttribute:()=>this.getAttribute(`orderX`),setAttribute:e=>this.setAttribute(`orderX`,e)})),this[Pa]}get orderY(){return this[Fa]||(this[Fa]=new cv(N,this[b],{getAttribute:()=>this.getAttribute(`orderY`),setAttribute:e=>this.setAttribute(`orderY`,e)})),this[Fa]}get preserveAlpha(){return this[Ia]||(this[Ia]=new sv(N,this[b],{getAttribute:()=>this.getAttribute(`preserveAlpha`),setAttribute:e=>this.setAttribute(`preserveAlpha`,e)})),this[Ia]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get targetX(){return this[La]||(this[La]=new cv(N,this[b],{getAttribute:()=>this.getAttribute(`targetX`),setAttribute:e=>this.setAttribute(`targetX`,e)})),this[La]}get targetY(){return this[Ra]||(this[Ra]=new cv(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]}},uv=class extends _h{[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 G_(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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get kernelUnitLengthX(){return this[Ma]||(this[Ma]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Ma]}get kernelUnitLengthY(){return this[Na]||(this[Na]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Na]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get surfaceScale(){return this[Ba]||(this[Ba]=new G_(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]}},dv=class extends _h{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get in2(){return this[Da]||(this[Da]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`in2`),setAttribute:e=>this.setAttribute(`in2`,e)})),this[Da]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get scale(){return this[Va]||(this[Va]=new G_(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 J_(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 J_(N,this[b],{getAttribute:()=>this.getAttribute(`yChannelSelector`),setAttribute:e=>this.setAttribute(`yChannelSelector`,e),values:[`r`,`g`,`b`,`a`],defaultValue:`r`})),this[Ua]}},fv=class extends _h{[Wa]=null;[Ga]=null;get azimuth(){return this[Wa]||(this[Wa]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`azimuth`),setAttribute:e=>this.setAttribute(`azimuth`,e)})),this[Wa]}get elevation(){return this[Ga]||(this[Ga]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`elevation`),setAttribute:e=>this.setAttribute(`elevation`,e)})),this[Ga]}},pv=class extends _h{[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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[Ka]}get dy(){return this[qa]||(this[qa]=new G_(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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get stdDeviationX(){return this[Ja]||(this[Ja]=new G_(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 G_(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}},mv=class extends _h{[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 $_(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]}},hv=class extends _h{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 J_(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 rv(N,this[b],{getAttribute:()=>this.getAttribute(`tableValues`),setAttribute:e=>this.setAttribute(`tableValues`,e)})),this[Xa]}get slope(){return this[Za]||(this[Za]=new G_(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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`intercept`),setAttribute:e=>this.setAttribute(`intercept`,e)})),this[Qa]}get amplitude(){return this[$a]||(this[$a]=new G_(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 G_(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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`offset`),setAttribute:e=>this.setAttribute(`offset`,e)})),this[Bi]}},gv=class extends hv{},_v=class extends hv{},vv=class extends hv{},yv=class extends hv{},bv=class extends _h{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 J_(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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get stdDeviationX(){return this[Ja]||(this[Ja]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`stdDeviationX`)||`2`,setAttribute:e=>this.setAttribute(`stdDeviationX`,e)})),this[Ja]}get stdDeviationY(){return this[Ya]||(this[Ya]=new G_(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}},xv=class extends _h{[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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get preserveAspectRatio(){return this[mi]||(this[mi]=new z_(N,this[b],{getAttribute:()=>this.getAttribute(`preserveAspectRatio`),setAttribute:e=>this.setAttribute(`preserveAspectRatio`,e)})),this[mi]}get result(){return this[B]||(this[B]=new $_(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]}},Sv=class extends _h{[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 $_(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 _h{[z]=null;get in1(){return this[z]||(this[z]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}},wv=class extends _h{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get operator(){return this[no]||(this[no]=new J_(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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`radiusX`),setAttribute:e=>this.setAttribute(`radiusX`,e)})),this[ro]}get radiusY(){return this[io]||(this[io]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`radiusY`),setAttribute:e=>this.setAttribute(`radiusY`,e)})),this[io]}get result(){return this[B]||(this[B]=new $_(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]}},Tv=class extends _h{[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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get dx(){return this[Ka]||(this[Ka]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[Ka]}get dy(){return this[qa]||(this[qa]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[qa]}get result(){return this[B]||(this[B]=new $_(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]}},Ev=class extends _h{[D]=null;[O]=null;[Wi]=null;get x(){return this[D]||(this[D]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get z(){return this[Wi]||(this[Wi]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`z`),setAttribute:e=>this.setAttribute(`z`,e)})),this[Wi]}},Dv=class extends _h{[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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get kernelUnitLengthX(){return this[Ma]||(this[Ma]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthX`),setAttribute:e=>this.setAttribute(`kernelUnitLengthX`,e)})),this[Ma]}get kernelUnitLengthY(){return this[Na]||(this[Na]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`kernelUnitLengthY`),setAttribute:e=>this.setAttribute(`kernelUnitLengthY`,e)})),this[Na]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get specularConstant(){return this[ao]||(this[ao]=new G_(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 G_(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 G_(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]}},Ov=class extends _h{[D]=null;[O]=null;[Wi]=null;[so]=null;[co]=null;[lo]=null;[oo]=null;[uo]=null;get x(){return this[D]||(this[D]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get z(){return this[Wi]||(this[Wi]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`z`),setAttribute:e=>this.setAttribute(`z`,e)})),this[Wi]}get pointsAtX(){return this[so]||(this[so]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`pointsAtX`),setAttribute:e=>this.setAttribute(`pointsAtX`,e)})),this[so]}get pointsAtY(){return this[co]||(this[co]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`pointsAtY`),setAttribute:e=>this.setAttribute(`pointsAtY`,e)})),this[co]}get pointsAtZ(){return this[lo]||(this[lo]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`pointsAtZ`),setAttribute:e=>this.setAttribute(`pointsAtZ`,e)})),this[lo]}get specularExponent(){return this[oo]||(this[oo]=new G_(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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`limitingConeAngle`),setAttribute:e=>this.setAttribute(`limitingConeAngle`,e)})),this[uo]}},kv=class extends _h{[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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`in`),setAttribute:e=>this.setAttribute(`in`,e)})),this[z]}get result(){return this[B]||(this[B]=new $_(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]}},Av=class extends _h{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 G_(N,this[b],{getAttribute:()=>this.getAttribute(`baseFrequencyX`),setAttribute:e=>this.setAttribute(`baseFrequencyX`,e)})),this[fo]}get baseFrequencyY(){return this[po]||(this[po]=new G_(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 cv(N,this[b],{getAttribute:()=>this.getAttribute(`numOctaves`),setAttribute:e=>this.setAttribute(`numOctaves`,e)})),this[mo]}get result(){return this[B]||(this[B]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`result`),setAttribute:e=>this.setAttribute(`result`,e)})),this[B]}get seed(){return this[ho]||(this[ho]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`seed`),setAttribute:e=>this.setAttribute(`seed`,e)})),this[ho]}get stitchTiles(){return this[go]||(this[go]=new J_(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 J_(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]}},jv=class extends _h{[Di]=null;[Ti]=null;[Ei]=null;[D]=null;[O]=null;[y]=null;[h]=null;get href(){return this[Di]||(this[Di]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get filterUnits(){return this[Ti]||(this[Ti]=new J_(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 J_(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]}},Mv=class extends v_{[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]}},Nv=class extends v_{},Pv=class extends v_{[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 $_(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 z_(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()}},Fv=class extends K_{[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 extends v_{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 $_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get gradientUnits(){return this[Mi]||(this[Mi]=new J_(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 __(N,this[b],{getAttribute:()=>this.getAttribute(`gradientTransform`),setAttribute:e=>this.setAttribute(`gradientTransform`,e)})),this[Ni]}get spreadMethod(){return this[Pi]||(this[Pi]=new J_(N,this[b],{getAttribute:()=>this.getAttribute(`spreadMethod`),setAttribute:e=>this.setAttribute(`spreadMethod`,e),values:[`pad`,`reflect`,`repeat`],defaultValue:`pad`})),this[Pi]}},Lv=class extends Iv{[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]}},Rv=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 k_(N,this[b],{readOnly:!0,getAttribute:this[I]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new k_(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},zv=class extends _h{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 J_(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 J_(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 Rv(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 j_(N,this[b],{getAttribute:()=>this.getAttribute(`viewBox`),setAttribute:e=>this.setAttribute(`viewBox`,e)})),this[ai]}get preserveAspectRatio(){return this[mi]||(this[mi]=new z_(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)}},Bv=class extends _h{[Ci]=null;[wi]=null;[D]=null;[O]=null;[y]=null;[h]=null;get maskUnits(){return this[Ci]||(this[Ci]=new J_(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 J_(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]}},Vv=class extends _h{},Hv=class extends _h{[Di]=null;get href(){return this[Di]||(this[Di]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}},Uv=class extends K_{},Wv=class extends _h{[Di]=null;[Fi]=null;[Ii]=null;[Li]=null;[D]=null;[O]=null;[y]=null;[h]=null;get href(){return this[Di]||(this[Di]=new $_(N,this[b],{getAttribute:()=>this.getAttribute(`href`),setAttribute:e=>this.setAttribute(`href`,e)})),this[Di]}get patternUnits(){return this[Fi]||(this[Fi]=new J_(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 J_(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 __(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 Gv=/[\t\f\n\r, ]+/;var Kv=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 Bc(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 x_))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 x_))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 x_))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 x_))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(Gv);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 x_(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}},qv=class extends K_{[hi]=null;[gi]=null;get animatedPoints(){return this[hi]||(this[hi]=new Kv(N,this[b],{readOnly:!0,getAttribute:()=>this.getAttribute(`points`),setAttribute:()=>{}})),this[hi]}get points(){return this[gi]||(this[gi]=new Kv(N,this[b],{getAttribute:()=>this.getAttribute(`points`),setAttribute:e=>this.setAttribute(`points`,e)})),this[gi]}},Jv=class extends K_{[hi]=null;[gi]=null;get animatedPoints(){return this[hi]||(this[hi]=new Kv(N,this[b],{readOnly:!0,getAttribute:()=>this.getAttribute(`points`),setAttribute:()=>{}})),this[hi]}get points(){return this[gi]||(this[gi]=new Kv(N,this[b],{getAttribute:()=>this.getAttribute(`points`),setAttribute:e=>this.setAttribute(`points`,e)})),this[gi]}},Yv=class extends Iv{[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]}},Xv=class extends K_{[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]}},Zv=class extends v_{[Di]=null;get href(){return this[Di]||(this[Di]=new $_(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)}},Qv=class extends V_{},$v=class extends _h{[Bi]=null;get offset(){return this[Bi]||(this[Bi]=new G_(N,this[b],{getAttribute:()=>this.getAttribute(`offset`),setAttribute:e=>this.setAttribute(`offset`,e)})),this[Bi]}},ey=class extends _h{[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)}},ty=class extends v_{},ny=class extends v_{},ry=class extends v_{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 J_(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 x_(N,this[b])}getEndPositionOfChar(e){return new x_(N,this[b])}getExtentOfChar(e){return new y_(N,this[b])}getRotationOfChar(e){return 0}getCharNumAtPosition(e){return 0}};const iy=/[\t\f\n\r, ]+/;var ay=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 Bc(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(iy);for(let r=0,i=e.length;r<i;r++){let i=new T_(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}},oy=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 ay(N,this[b],{readOnly:!0,getAttribute:this[I],setAttribute:this[L]})),this[ri]}set animVal(e){}get baseVal(){return this[ni]||(this[ni]=new ay(N,this[b],{getAttribute:this[I],setAttribute:this[L]})),this[ni]}set baseVal(e){}},sy=class extends ry{[D]=null;[O]=null;[Ka]=null;[qa]=null;[Co]=null;get x(){return this[D]||(this[D]=new oy(N,this[b],{getAttribute:()=>this.getAttribute(`x`),setAttribute:e=>this.setAttribute(`x`,e)})),this[D]}get y(){return this[O]||(this[O]=new oy(N,this[b],{getAttribute:()=>this.getAttribute(`y`),setAttribute:e=>this.setAttribute(`y`,e)})),this[O]}get dx(){return this[Ka]||(this[Ka]=new oy(N,this[b],{getAttribute:()=>this.getAttribute(`dx`),setAttribute:e=>this.setAttribute(`dx`,e)})),this[Ka]}get dy(){return this[qa]||(this[qa]=new oy(N,this[b],{getAttribute:()=>this.getAttribute(`dy`),setAttribute:e=>this.setAttribute(`dy`,e)})),this[qa]}get rotate(){return this[Co]||(this[Co]=new rv(N,this[b],{getAttribute:()=>this.getAttribute(`rotate`),setAttribute:e=>this.setAttribute(`rotate`,e)})),this[Co]}},cy=class extends sy{},ly=class extends ry{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 $_(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 J_(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 J_(N,this[b],{getAttribute:()=>this.getAttribute(`spacing`),setAttribute:e=>this.setAttribute(`spacing`,e),values:[`auto`,`exact`],defaultValue:`exact`})),this[Ea]}},uy=class extends _h{},dy=class extends sy{},fy=class extends v_{[Di]=null;[D]=null;[O]=null;[y]=null;[h]=null;get href(){return this[Di]||(this[Di]=new $_(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]}},py=class extends _h{},my=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`)}},hy=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}}},gy=class extends W{state;hasUAVisualTransition;constructor(e,t=null){super(e),this.state=t?.state??null,this.hasUAVisualTransition=t?.hasUAVisualTransition??!1}},_y=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}},vy=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 Lp){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 ph)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 $f||r instanceof Xf)&&(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 yy={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)},by=setTimeout.toString().includes(`new Timeout`),xy=(()=>{try{return Function(`return true;`)(),!0}catch{return!1}})(),Sy=(()=>{try{return globalThis.Function.$UNFROZEN$=!0,delete globalThis.Function.$UNFROZEN$,!0}catch{return!1}})();var Cy=class{constructor(){throw TypeError(`Illegal constructor`)}},wy=class{callback;constructor(e){this.callback=e}},Ty=class e extends nl{Node=gd;Attr=_d;ShadowRoot=gh;ProcessingInstruction=mh;Element=Df;CharacterData=xd;DocumentType=Sd;HTMLAnchorElement=Mf;HTMLButtonElement=Yf;HTMLOptGroupElement=Mm;HTMLOptionElement=Nm;HTMLElement=Q;HTMLUnknownElement=fh;HTMLTemplateElement=oh;HTMLInputElement=Yp;HTMLSelectElement=Jm;HTMLTextAreaElement=sh;HTMLImageElement=Lp;HTMLStyleElement=$m;HTMLLabelElement=Xp;HTMLSlotElement=Xm;HTMLMetaElement=Dm;HTMLMediaElement=zf;HTMLAudioElement=Bf;HTMLVideoElement=ph;HTMLBaseElement=Vf;HTMLDialogElement=ip;HTMLScriptElement=Km;HTMLLinkElement=Cm;HTMLIFrameElement=Sp;HTMLFormElement=hp;HTMLUListElement=dh;HTMLTrackElement=uh;HTMLTableRowElement=ah;HTMLTitleElement=lh;HTMLTimeElement=ch;HTMLTableSectionElement=rh;HTMLTableCellElement=th;HTMLTableElement=ih;HTMLSpanElement=Qm;HTMLSourceElement=Zm;HTMLQuoteElement=Bm;HTMLProgressElement=zm;HTMLPreElement=Rm;HTMLPictureElement=Lm;HTMLParamElement=Im;HTMLParagraphElement=Fm;HTMLOutputElement=Pm;HTMLOListElement=Am;HTMLObjectElement=jm;HTMLMeterElement=Om;HTMLMenuElement=Em;HTMLMapElement=wm;HTMLLIElement=Qp;HTMLLegendElement=Zp;HTMLModElement=km;HTMLHtmlElement=yp;HTMLHRElement=vp;HTMLHeadElement=gp;HTMLHeadingElement=_p;HTMLFieldSetElement=sp;HTMLEmbedElement=op;HTMLDListElement=ep;HTMLDivElement=ap;HTMLDetailsElement=rp;HTMLDataListElement=np;HTMLDataElement=tp;HTMLTableColElement=nh;HTMLTableCaptionElement=eh;HTMLCanvasElement=$f;HTMLBRElement=Uf;HTMLBodyElement=Hf;HTMLAreaElement=Nf;SVGSVGElement=B_;SVGAnimateElement=H_;SVGAnimateMotionElement=U_;SVGAnimateTransformElement=W_;SVGCircleElement=q_;SVGClipPathElement=Y_;SVGDefsElement=X_;SVGDescElement=Z_;SVGEllipseElement=Q_;SVGFEBlendElement=ev;SVGFEColorMatrixElement=iv;SVGFEComponentTransferElement=av;SVGFECompositeElement=ov;SVGFEConvolveMatrixElement=lv;SVGFEDiffuseLightingElement=uv;SVGFEDisplacementMapElement=dv;SVGFEDistantLightElement=fv;SVGFEDropShadowElement=pv;SVGFEFloodElement=mv;SVGFEFuncAElement=gv;SVGFEFuncBElement=_v;SVGFEFuncGElement=vv;SVGFEFuncRElement=yv;SVGFEGaussianBlurElement=bv;SVGFEImageElement=xv;SVGFEMergeElement=Sv;SVGFEMergeNodeElement=Cv;SVGFEMorphologyElement=wv;SVGFEOffsetElement=Tv;SVGFEPointLightElement=Ev;SVGFESpecularLightingElement=Dv;SVGFESpotLightElement=Ov;SVGFETileElement=kv;SVGFETurbulenceElement=Av;SVGFilterElement=jv;SVGForeignObjectElement=Mv;SVGGElement=Nv;SVGImageElement=Pv;SVGLineElement=Fv;SVGLinearGradientElement=Lv;SVGMarkerElement=zv;SVGMaskElement=Bv;SVGMetadataElement=Vv;SVGMPathElement=Hv;SVGPathElement=Uv;SVGPatternElement=Wv;SVGPolygonElement=qv;SVGPolylineElement=Jv;SVGRadialGradientElement=Yv;SVGRectElement=Xv;SVGScriptElement=Zv;SVGSetElement=Qv;SVGStopElement=$v;SVGStyleElement=ey;SVGSwitchElement=ty;SVGSymbolElement=ny;SVGTextElement=cy;SVGTextPathElement=ly;SVGTitleElement=uy;SVGTSpanElement=dy;SVGUseElement=fy;SVGViewElement=py;SVGElement=_h;SVGAnimationElement=V_;SVGComponentTransferFunctionElement=hv;SVGGeometryElement=K_;SVGGradientElement=Iv;SVGTextPositioningElement=sy;SVGGraphicsElement=v_;Event=W;UIEvent=Zl;CustomEvent=eu;CloseEvent=_y;AnimationEvent=Ql;KeyboardEvent=au;MessageEvent=ou;MouseEvent=su;PointerEvent=cu;FocusEvent=nu;WheelEvent=pu;InputEvent=iu;ErrorEvent=tu;StorageEvent=uu;SubmitEvent=du;ProgressEvent=lu;MediaQueryListEvent=rl;HashChangeEvent=ru;ClipboardEvent=$l;TouchEvent=fu;PopStateEvent=gy;Touch=Xl;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=sd;History=Zu;Navigator=cd;Clipboard=zs;TimeRanges=Pf;TextTrackCueList=Tm;ValidityState=Kf;MutationRecord=td;IntersectionObserver=Qu;IntersectionObserverEntry=$u;CSSStyleDeclaration=yl;CSSRule=Ks;CSSContainerRule=xl;CSSFontFaceRule=Sl;CSSKeyframeRule=Cl;CSSKeyframesRule=Tl;CSSMediaRule=Ol;CSSStyleRule=Nl;CSSSupportsRule=Pl;CSSConditionRule=bl;CSSGroupingRule=fl;CSSScopeRule=pl;DOMRect=Dd;DOMRectReadOnly=Ed;Plugin=ld;PluginArray=id;Location=ed;CustomElementRegistry=Gl;ResizeObserver=vh;Blob=Rs;File=ql;Storage=Eh;MimeType=nd;MimeTypeArray=rd;NodeFilter=Dh;ImageBitmap=vy;HTMLCollection=Ad;HTMLFormControlCollection=cp;HTMLOptionsCollection=qm;NodeList=Vc;RadioNodeList=mp;FileList=Rp;Screen=yh;ScreenDetails=xh;ScreenDetailed=bh;NamedNodeMap=Nd;TreeWalker=jh;NodeIterator=Mh;DataTransfer=Yl;DataTransferItem=Kl;DataTransferItemList=Jl;XMLSerializer=Nh;ClipboardItem=Bs;Selection=Th;CSSUnitValue=Us;SVGAngle=k_;SVGAnimatedAngle=Rv;SVGAnimatedBoolean=sv;SVGAnimatedEnumeration=J_;SVGAnimatedInteger=cv;SVGAnimatedLength=$;SVGAnimatedNumber=G_;SVGAnimatedNumberList=rv;SVGAnimatedPreserveAspectRatio=z_;SVGAnimatedRect=j_;SVGAnimatedString=$_;SVGAnimatedTransformList=__;SVGLength=T_;SVGLengthList=ay;SVGMatrix=c_;SVGNumber=A_;SVGNumberList=nv;SVGPoint=x_;SVGPointList=Kv;SVGPreserveAspectRatio=R_;SVGRect=y_;SVGStringList=a_;SVGTransform=p_;SVGTransformList=g_;SVGAnimatedLengthList=oy;SVGUnitTypes=my;StylePropertyMap=Ml;StylePropertyMapReadOnly=jl;MediaList=Dl;CSSKeywordValue=kl;CSSStyleValue=Al;Window=this.constructor;URLSearchParams=ee;WritableStream=u.Writable;ReadableStream=se;TransformStream=u.Transform;PerformanceObserver=re;PerformanceEntry=ne;PerformanceObserverEntryList=Cy;document;customElements=new Gl(this);window=this;globalThis=this;performance=performance;screenLeft=0;screenTop=0;screenX=0;screenY=0;crypto=c;TextEncoder=o;TextDecoder=a;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 hy(this);[ko]={json:new Map,css:new Map,esm:new Map};[Ro]=null;[rs]=[];[V]=new Map;[ss]=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 Td(e),this[On]=new cd(this),this[kn]=new yh,this[An]=new Eh,this[jn]=new Eh,this[En]=new ed(this.#e,t?.url??`about:blank`),this[Dn]=new Zu(this.#e,this),e[Dn].currentItem.href=t?.url??`about:blank`,Y.setWindowBrowserFrameRelation(this,this.#e),this[ct](),r_.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]=wd.complete,this.document.dispatchEvent(new W(`readystatechange`));let t=new W(`load`);t[ke]=this,t[dt]=this.document,t[Gr]=Es.atTarget,this.dispatchEvent(t),t[ke]=null,t[Gr]=Es.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 Ws}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 yl(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 Fh.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 dl({window:this,media:e})}getScreenDetails(){return Promise.resolve(new xh)}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===Ls.tryAndCatch,n=yy.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 wy(()=>e(...n));return t.timeouts.push(i),i}let i=!r||!r.disableErrorCapturing&&r.errorCapture===Ls.tryAndCatch,a=yy.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 wy){let t=this.#o;if(!t.timeouts)return;let n=t.timeouts.indexOf(e);n!==-1&&t.timeouts.splice(n,1);return}by&&(!e||e.constructor.name!==`Timeout`)||(yy.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===Ls.tryAndCatch,a=0,o=yy.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){by&&(!e||e.constructor.name!==`Timeout`)||(yy.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===Ls.tryAndCatch,r=yy.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){by&&(!e||e.constructor.name!==`Immediate`)||(yy.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===Ls.tryAndCatch;yy.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 qu({browserFrame:this.#e,window:this,url:e,init:t}).send()}btoa(e){return Fs.btoa(e)}atob(e){return Fs.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 ou(`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 vy(N,this,e,t,n,r,i,a)}[zo](e){this.#e.page.console.error(e),this.dispatchEvent(new tu(`error`,{message:e.message,error:e}))}[Fe](e,t){return new ce.Script(e,t).runInContext(this)}[ct](){ce.isContext(this)||(ce.createContext(this),Ph.runInContext(this))}[ns](){let e=this.#e;(xy||Sy)&&e.page.context.browser.settings.enableJavaScriptEvaluation&&!e.page.context.browser.settings.suppressInsecureJavaScriptEnvironmentWarning&&!e.page.context.browser.settings.suppressCodeGenerationFromStringsWarning&&console.warn(`
|
|
186
186
|
Warning! Happy DOM has JavaScript evaluation enabled and is running in an insecure environment.
|
|
187
187
|
|
|
188
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.
|
|
@@ -192,4 +192,4 @@ It is recommended to disable code generation and freeze all builtins at process
|
|
|
192
192
|
For more information, see https://github.com/capricorn86/happy-dom/wiki/JavaScript-Evaluation-Warning
|
|
193
193
|
|
|
194
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[ss].clear(),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,nl]){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)})}}}},Ey=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 le(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 bm({window:n,url:e,source:r,factory:new xm(n,e)}).evaluate();case`json`:return await new rm({window:n,url:e,source:r}).evaluate();case`css`:return await new nm({window:n,url:e,source:r}).evaluate()}}return t?.url?await(await new xm(n,n.location).getModule(t.url,{with:{type:t.type||`esm`}})).evaluate():{}}},Dy=class{currentItem={title:``,href:`about:blank`,state:null,popState:!1,scrollRestoration:Yu.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:Yu.auto,method:`GET`,formData:null},this.items.push(this.currentItem)}},Oy=class{#e;#t={};#n={};#r=0;#i=[];constructor(e){this.#e=e}assert(e,t,...n){e||this.#e.print({type:Os.assert,level:Cs.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:Os.count,level:Cs.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:Os.countReset,level:Cs.warn,message:[`${e}: 0`],group:this.#i[this.#i.length-1]||null})}debug(e,...t){this.#e.print({type:Os.debug,level:Cs.log,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}dir(e){this.#e.print({type:Os.dir,level:Cs.log,message:[e],group:this.#i[this.#i.length-1]||null})}dirxml(e){this.#e.print({type:Os.dirxml,level:Cs.log,message:[e],group:this.#i[this.#i.length-1]||null})}error(e,...t){this.#e.print({type:Os.error,level:Cs.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:Os.group,level:Cs.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:Os.groupCollapsed,level:Cs.log,message:[e||`default`],group:t})}groupEnd(){this.#i.length!==0&&this.#i.pop()}info(e,...t){this.#e.print({type:Os.info,level:Cs.info,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}log(e,...t){this.#e.print({type:Os.log,level:Cs.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:Os.table,level:Cs.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:Os.timeEnd,level:Cs.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:Os.timeLog,level:Cs.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:Os.trace,level:Cs.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:Os.warn,level:Cs.warn,message:e?[e,...t]:t,group:this.#i[this.#i.length-1]||null})}},ky=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(),lp.destroyFrame(e.mainFrame)}static findFrames(e){let t=[e];for(let n of e.childFrames)t=t.concat(this.findFrames(n));return t}},Ay=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()}},jy={disableJavaScriptEvaluation:!1,enableJavaScriptEvaluation:!1,disableJavaScriptFileLoading:!1,disableCSSFileLoading:!1,enableImageFileLoading:!1,disableIframePageLoading:!1,disableComputedStyleRendering:!1,handleDisabledFileLoadingAsSuccess:!1,disableErrorCapturing:!1,errorCapture:Ls.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:dp.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.6`}.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},My=class{static createSettings(e){return e&&this.validate(jy,e),{...jy,...e,navigation:{...jy.navigation,...e?.navigation},navigator:{...jy.navigator,...e?.navigator},timer:{...jy.timer,...e?.timer},fetch:{...jy.fetch,...e?.fetch},module:{...jy.module,...e?.module},device:{...jy.device,...e?.device},debug:{...jy.debug,...e?.debug},viewport:{...jy.viewport,...e?.viewport},canvasAdapter:e?.canvasAdapter??jy.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]}"`)}}}},Ny=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))}},Py=class{childFrames=[];parentFrame=null;page;closed=!1;[fe]=new Ns(this);[Ke]={navigation:[]};[yt]=null;[bt]=null;[St]=!1;[Dn]=new Dy;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,Xu.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 Ey.evaluate(this,e)}evaluateModule(e){return Ey.evaluateModule(this,e)}goto(e,t){return pp.navigate({windowClass:this.page.context.browser.windowClass,frame:this,url:e,goToOptions:t})}goBack(e){return pp.navigateBack({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goForward(e){return pp.navigateForward({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}goSteps(e,t){return pp.navigateSteps({windowClass:this.page.context.browser.windowClass,frame:this,steps:e,goToOptions:t})}reload(e){return pp.reload({windowClass:this.page.context.browser.windowClass,frame:this,goToOptions:e})}},Fy=class{virtualConsolePrinter=new As;mainFrame;context;console;viewport;closed=!1;constructor(e){this.context=e,this.console=e.browser.console??new Oy(this.virtualConsolePrinter),this.mainFrame=new Py(this),this.viewport={width:e.browser.settings.viewport.width,height:e.browser.settings.viewport.height,devicePixelRatio:e.browser.settings.viewport.devicePixelRatio}}get frames(){return ky.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;ky.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)}},Iy=class{pages;browser;cookieContainer=new ps;responseCache=new xs;preflightResponseCache=new Ay;closed=!1;[as]=new Map;constructor(e){this.browser=e,this.pages=[],this.pages.push(new Fy(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 Fy(this);return this.pages.push(e),e}},Ly=class{contexts;settings;console;windowClass;[Ie]=null;constructor(e,t){this.windowClass=e,this.console=t?.console||null,this.settings=My.createSettings(t?.settings),this.settings.errorCapture===Ls.processLevel&&(this[Ie]=new Ny),this.contexts=[],this.contexts.push(new Iy(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()}},Ry=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})}},zy=class extends Ty{happyDOM;constructor(e){let t=new Ly(Ty,{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 Ry(n)}};export{zy as Window};
|
|
195
|
-
//# sourceMappingURL=lib-
|
|
195
|
+
//# sourceMappingURL=lib-BS_oZ9bm.mjs.map
|