just-bash 3.4.2 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +242 -0
- package/README.md +22 -9
- package/dist/AGENTS.md +58 -2
- package/dist/Bash.d.ts +4 -2
- package/dist/abort-signals.d.ts +10 -0
- package/dist/bin/chunks/awk2-U22OR5B5.js +3 -0
- package/dist/bin/{shell/chunks/base64-FLJ4YPHB.js → chunks/base64-2KKH5BCT.js} +1 -1
- package/dist/bin/chunks/{cat-2J5MA5PY.js → cat-V45MVNBT.js} +1 -1
- package/dist/bin/{shell/chunks/chmod-ZM5WLMZI.js → chunks/chmod-A54R4UUQ.js} +1 -1
- package/dist/bin/chunks/chunk-2NJJXU4K.js +27 -0
- package/dist/bin/{shell/chunks/chunk-BJRT4VKD.js → chunks/chunk-3LKMI5IX.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-4APSDE57.js → chunks/chunk-44SKMHU6.js} +1 -1
- package/dist/bin/chunks/{chunk-GRP7L2EL.js → chunk-6DAR25KN.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-VGR3NA3H.js → chunks/chunk-723HNGID.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-MRPJL3ZK.js → chunks/chunk-7X4QBCFW.js} +1 -1
- package/dist/bin/chunks/{chunk-42AMF6EE.js → chunk-ABM5WFEO.js} +1 -1
- package/dist/bin/chunks/{chunk-2HFDEZUY.js → chunk-AINNAQBQ.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-BPWZ7ADB.js → chunks/chunk-AL7RVSF4.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-MHAGHCSO.js → chunks/chunk-ARYCSNJJ.js} +7 -7
- package/dist/bin/{shell/chunks/chunk-2INNLNI5.js → chunks/chunk-BJF6B4YW.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-BZWGVRFA.js → chunks/chunk-BOXG6XBN.js} +2 -2
- package/dist/bin/chunks/chunk-DA3RFNKK.js +17 -0
- package/dist/bin/chunks/chunk-DH7M46D3.js +20 -0
- package/dist/bin/chunks/{chunk-2ND6MMXN.js → chunk-DTGQQKI2.js} +1 -1
- package/dist/bin/chunks/{chunk-YOIFOOGX.js → chunk-ECZAFQ22.js} +1 -1
- package/dist/bin/chunks/{chunk-PPVF2N6C.js → chunk-EFS34UUR.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-TW2IJRUF.js → chunks/chunk-ENEHPI32.js} +1 -1
- package/dist/bin/chunks/chunk-HFW2LXQV.js +13 -0
- package/dist/bin/{shell/chunks/chunk-UHNV55NF.js → chunks/chunk-HRKG3ZK2.js} +1 -1
- package/dist/bin/chunks/{chunk-74TZ7ZF7.js → chunk-IKUY74NG.js} +1 -1
- package/dist/bin/chunks/chunk-ILXMFIYG.js +7 -0
- package/dist/bin/chunks/chunk-IMVXTSPG.js +275 -0
- package/dist/bin/chunks/chunk-J5L5DJWL.js +3 -0
- package/dist/bin/{shell/chunks/chunk-MF3GVFLC.js → chunks/chunk-JKS7WXGR.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-XBX7KFWK.js → chunks/chunk-LG6IN6SW.js} +11 -11
- package/dist/bin/chunks/chunk-LMFAALLO.js +21 -0
- package/dist/bin/{shell/chunks/chunk-DYIBFLS3.js → chunks/chunk-LOU52GPJ.js} +2 -2
- package/dist/bin/chunks/{chunk-FB44CW33.js → chunk-M5ZBECGM.js} +1 -1
- package/dist/bin/chunks/chunk-MA6BMA4M.js +3 -0
- package/dist/bin/chunks/{chunk-Z7QCL4IA.js → chunk-MPQMTLXN.js} +1 -1
- package/dist/bin/chunks/{chunk-TIHFGNPS.js → chunk-MUIYG2RB.js} +1 -1
- package/dist/bin/chunks/{chunk-PUZGSIMN.js → chunk-NGMFI3RH.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-RYQB6GQ7.js → chunks/chunk-NLMTGTSG.js} +1 -1
- package/dist/bin/chunks/{chunk-QAYU7HPM.js → chunk-OBVTFHVP.js} +1 -1
- package/dist/bin/chunks/{chunk-MNSMZU47.js → chunk-OOKVPG5D.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-O2BCKSMK.js → chunks/chunk-PEJXCXSY.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-MYEPQX6Y.js → chunks/chunk-PL4EU7Y2.js} +1 -1
- package/dist/bin/chunks/{chunk-QFTZKD5O.js → chunk-QCGH2ZOW.js} +1 -1
- package/dist/bin/chunks/chunk-QKWMWSV3.js +3 -0
- package/dist/bin/{shell/chunks/chunk-ISOWCECJ.js → chunks/chunk-S5Z7DMIE.js} +10 -10
- package/dist/bin/{shell/chunks/chunk-OLEQNRKX.js → chunks/chunk-SQ7SZZMW.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-44MQ5AXA.js → chunks/chunk-SQUH76NP.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-BOYPCOSV.js → chunks/chunk-TGRZ42DS.js} +1 -1
- package/dist/bin/chunks/{chunk-LUHU7UUN.js → chunk-THTKNRO6.js} +1 -1
- package/dist/bin/chunks/{chunk-VKTV45AP.js → chunk-TQXLQEIT.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-2OQ5HPZE.js → chunks/chunk-U6BXPMLD.js} +1 -1
- package/dist/bin/chunks/chunk-U6DBRMD5.js +5 -0
- package/dist/bin/{shell/chunks/chunk-CC2AQ6B7.js → chunks/chunk-U6JTVQU6.js} +1 -1
- package/dist/bin/chunks/chunk-UPUFWGHR.js +3 -0
- package/dist/bin/chunks/{chunk-E5VZGTZ6.js → chunk-URRH3GPG.js} +1 -1
- package/dist/bin/chunks/{chunk-EXGPMLIE.js → chunk-VBU3UEG5.js} +1 -1
- package/dist/bin/chunks/chunk-VGSRQOLD.js +7 -0
- package/dist/bin/chunks/{chunk-GTULZ3ZD.js → chunk-WBST7XJW.js} +1 -1
- package/dist/bin/chunks/{chunk-ROFYAVPF.js → chunk-WEQ5WM2M.js} +1 -1
- package/dist/bin/{shell/chunks/chunk-BCQSUELK.js → chunks/chunk-WZ7MIBLR.js} +1 -1
- package/dist/bin/chunks/{chunk-H4BRFPKY.js → chunk-X45GP3AQ.js} +1 -1
- package/dist/bin/chunks/chunk-YQEKKZTU.js +12 -0
- package/dist/bin/chunks/{chunk-UNKX6YM6.js → chunk-Z3KAV6YJ.js} +1 -1
- package/dist/bin/chunks/{chunk-3SCW7PD5.js → chunk-Z5KICK5X.js} +1 -1
- package/dist/bin/chunks/{column-7VBJL757.js → column-LHHS4D3K.js} +1 -1
- package/dist/bin/{shell/chunks/cp-MF5GADQN.js → chunks/cp-HPLQA35N.js} +1 -1
- package/dist/bin/chunks/curl-FIRG3RB6.js +31 -0
- package/dist/bin/chunks/{cut-QOTYBJJJ.js → cut-KP3S36XS.js} +1 -1
- package/dist/bin/{shell/chunks/diff-YXZZCUSQ.js → chunks/diff-JSJ56EOK.js} +1 -1
- package/dist/bin/chunks/dist-4NZ74CRE.js +141 -0
- package/dist/bin/chunks/{du-A3UGHIKJ.js → du-WEF5YWQK.js} +1 -1
- package/dist/bin/chunks/{expr-TDF3B6QJ.js → expr-FLWT4OCO.js} +1 -1
- package/dist/bin/chunks/{file-AJGG7RYT.js → file-JLUCGBCB.js} +1 -1
- package/dist/bin/chunks/{find-6DH6TRDN.js → find-XGVQ6N6L.js} +1 -1
- package/dist/bin/chunks/flag-coverage-4JYKIAVV.js +3 -0
- package/dist/bin/chunks/{grep-WUZMZDGY.js → grep-DCPCPQOS.js} +1 -1
- package/dist/bin/chunks/{gzip-JA7JQBUS.js → gzip-6DZIKNBW.js} +1 -1
- package/dist/bin/{shell/chunks/head-YGKW3HS4.js → chunks/head-TLFXMM2T.js} +1 -1
- package/dist/bin/{shell/chunks/help-HVIDHJ6M.js → chunks/help-EXVKU23F.js} +1 -1
- package/dist/bin/chunks/{html-to-markdown-ZWL7LZIP.js → html-to-markdown-E22RLT2U.js} +1 -1
- package/dist/bin/chunks/{jq-5MI4V3G5.js → jq-GDM3OBBK.js} +1 -1
- package/dist/bin/chunks/js-exec-VU6F6WLS.js +1578 -0
- package/dist/bin/chunks/{ln-XSDIE6SU.js → ln-B35EKC2Q.js} +1 -1
- package/dist/bin/chunks/{ls-R6DAGGBH.js → ls-67NUUIYT.js} +1 -1
- package/dist/bin/chunks/{mkdir-74BP5NTG.js → mkdir-AWDWRBKC.js} +1 -1
- package/dist/bin/chunks/mktemp-L6OGMDUO.js +3 -0
- package/dist/bin/chunks/{mv-YG75IRRE.js → mv-4BJSOT4Y.js} +1 -1
- package/dist/bin/{shell/chunks/od-YCY27MMO.js → chunks/od-SI75GLRE.js} +1 -1
- package/dist/bin/chunks/{paste-ACKOG3XS.js → paste-5TSIBDF7.js} +1 -1
- package/dist/bin/chunks/python3-GUWCSSDP.js +23 -0
- package/dist/bin/{shell/chunks/readlink-HMHVGSAM.js → chunks/readlink-URO5XTBB.js} +1 -1
- package/dist/bin/{shell/chunks/rg-A3E7YM2A.js → chunks/rg-RVULUPDH.js} +1 -1
- package/dist/bin/{shell/chunks/rm-3PLW4O4B.js → chunks/rm-UCUTHC3I.js} +1 -1
- package/dist/bin/chunks/{rmdir-DCJ3XJRR.js → rmdir-J3HM7GGM.js} +1 -1
- package/dist/bin/{shell/chunks/sed-KJWKB22J.js → chunks/sed-MCLGHZOI.js} +1 -1
- package/dist/bin/chunks/{seq-Q4LZ6EXV.js → seq-I54NZE75.js} +1 -1
- package/dist/bin/{shell/chunks/sleep-DVFE2GSF.js → chunks/sleep-CV6B4M6W.js} +1 -1
- package/dist/bin/chunks/{split-XMXBXL5Q.js → split-VZO7223N.js} +1 -1
- package/dist/bin/chunks/{sqlite3-DNH2VLVN.js → sqlite3-HXVFVP4Z.js} +1 -1
- package/dist/bin/chunks/sqlite3-worker.js +75 -11
- package/dist/bin/chunks/{stat-5PUSTPTK.js → stat-UJ37RBMM.js} +1 -1
- package/dist/bin/chunks/{tail-4MB7HHIZ.js → tail-5TSF5YM4.js} +1 -1
- package/dist/bin/{shell/chunks/tar-FRDUJZDN.js → chunks/tar-ZGZZDQXO.js} +1 -1
- package/dist/bin/chunks/{time-LF7BTSK5.js → time-J2DAZUIN.js} +1 -1
- package/dist/bin/chunks/timeout-ATTDYXLX.js +3 -0
- package/dist/bin/chunks/{tr-Z6N34HZM.js → tr-6RPFASYV.js} +1 -1
- package/dist/bin/chunks/worker.js +88 -15
- package/dist/bin/chunks/{xan-VSF6ZQGZ.js → xan-CCS53B7D.js} +1 -1
- package/dist/bin/chunks/{xan-view-UEFBHYVN.js → xan-view-KOXASOEV.js} +1 -1
- package/dist/bin/chunks/yes-ELH3XQWY.js +3 -0
- package/dist/bin/chunks/yq-GSCDUHGM.js +3 -0
- package/dist/bin/just-bash.js +333 -328
- package/dist/bin/shell/chunks/awk2-U22OR5B5.js +3 -0
- package/dist/bin/{chunks/base64-FLJ4YPHB.js → shell/chunks/base64-2KKH5BCT.js} +1 -1
- package/dist/bin/shell/chunks/{cat-2J5MA5PY.js → cat-V45MVNBT.js} +1 -1
- package/dist/bin/{chunks/chmod-ZM5WLMZI.js → shell/chunks/chmod-A54R4UUQ.js} +1 -1
- package/dist/bin/shell/chunks/chunk-2NJJXU4K.js +27 -0
- package/dist/bin/{chunks/chunk-BJRT4VKD.js → shell/chunks/chunk-3LKMI5IX.js} +1 -1
- package/dist/bin/{chunks/chunk-4APSDE57.js → shell/chunks/chunk-44SKMHU6.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-GRP7L2EL.js → chunk-6DAR25KN.js} +1 -1
- package/dist/bin/{chunks/chunk-VGR3NA3H.js → shell/chunks/chunk-723HNGID.js} +1 -1
- package/dist/bin/{chunks/chunk-MRPJL3ZK.js → shell/chunks/chunk-7X4QBCFW.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-42AMF6EE.js → chunk-ABM5WFEO.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-2HFDEZUY.js → chunk-AINNAQBQ.js} +1 -1
- package/dist/bin/{chunks/chunk-BPWZ7ADB.js → shell/chunks/chunk-AL7RVSF4.js} +1 -1
- package/dist/bin/{chunks/chunk-MHAGHCSO.js → shell/chunks/chunk-ARYCSNJJ.js} +7 -7
- package/dist/bin/{chunks/chunk-2INNLNI5.js → shell/chunks/chunk-BJF6B4YW.js} +1 -1
- package/dist/bin/{chunks/chunk-BZWGVRFA.js → shell/chunks/chunk-BOXG6XBN.js} +2 -2
- package/dist/bin/shell/chunks/chunk-DA3RFNKK.js +17 -0
- package/dist/bin/shell/chunks/chunk-DH7M46D3.js +20 -0
- package/dist/bin/shell/chunks/{chunk-2ND6MMXN.js → chunk-DTGQQKI2.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-YOIFOOGX.js → chunk-ECZAFQ22.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-PPVF2N6C.js → chunk-EFS34UUR.js} +1 -1
- package/dist/bin/{chunks/chunk-TW2IJRUF.js → shell/chunks/chunk-ENEHPI32.js} +1 -1
- package/dist/bin/shell/chunks/chunk-HFW2LXQV.js +13 -0
- package/dist/bin/{chunks/chunk-UHNV55NF.js → shell/chunks/chunk-HRKG3ZK2.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-74TZ7ZF7.js → chunk-IKUY74NG.js} +1 -1
- package/dist/bin/shell/chunks/chunk-ILXMFIYG.js +7 -0
- package/dist/bin/shell/chunks/chunk-IMVXTSPG.js +275 -0
- package/dist/bin/shell/chunks/chunk-J5L5DJWL.js +3 -0
- package/dist/bin/{chunks/chunk-MF3GVFLC.js → shell/chunks/chunk-JKS7WXGR.js} +1 -1
- package/dist/bin/{chunks/chunk-XBX7KFWK.js → shell/chunks/chunk-LG6IN6SW.js} +11 -11
- package/dist/bin/shell/chunks/chunk-LMFAALLO.js +21 -0
- package/dist/bin/{chunks/chunk-DYIBFLS3.js → shell/chunks/chunk-LOU52GPJ.js} +2 -2
- package/dist/bin/shell/chunks/{chunk-FB44CW33.js → chunk-M5ZBECGM.js} +1 -1
- package/dist/bin/shell/chunks/chunk-MA6BMA4M.js +3 -0
- package/dist/bin/shell/chunks/{chunk-Z7QCL4IA.js → chunk-MPQMTLXN.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-TIHFGNPS.js → chunk-MUIYG2RB.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-PUZGSIMN.js → chunk-NGMFI3RH.js} +1 -1
- package/dist/bin/{chunks/chunk-RYQB6GQ7.js → shell/chunks/chunk-NLMTGTSG.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-QAYU7HPM.js → chunk-OBVTFHVP.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-MNSMZU47.js → chunk-OOKVPG5D.js} +1 -1
- package/dist/bin/{chunks/chunk-O2BCKSMK.js → shell/chunks/chunk-PEJXCXSY.js} +1 -1
- package/dist/bin/{chunks/chunk-MYEPQX6Y.js → shell/chunks/chunk-PL4EU7Y2.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-QFTZKD5O.js → chunk-QCGH2ZOW.js} +1 -1
- package/dist/bin/shell/chunks/chunk-QKWMWSV3.js +3 -0
- package/dist/bin/{chunks/chunk-ISOWCECJ.js → shell/chunks/chunk-S5Z7DMIE.js} +10 -10
- package/dist/bin/{chunks/chunk-OLEQNRKX.js → shell/chunks/chunk-SQ7SZZMW.js} +1 -1
- package/dist/bin/{chunks/chunk-44MQ5AXA.js → shell/chunks/chunk-SQUH76NP.js} +1 -1
- package/dist/bin/{chunks/chunk-BOYPCOSV.js → shell/chunks/chunk-TGRZ42DS.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-LUHU7UUN.js → chunk-THTKNRO6.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-VKTV45AP.js → chunk-TQXLQEIT.js} +1 -1
- package/dist/bin/{chunks/chunk-2OQ5HPZE.js → shell/chunks/chunk-U6BXPMLD.js} +1 -1
- package/dist/bin/shell/chunks/chunk-U6DBRMD5.js +5 -0
- package/dist/bin/{chunks/chunk-CC2AQ6B7.js → shell/chunks/chunk-U6JTVQU6.js} +1 -1
- package/dist/bin/shell/chunks/chunk-UPUFWGHR.js +3 -0
- package/dist/bin/shell/chunks/{chunk-E5VZGTZ6.js → chunk-URRH3GPG.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-EXGPMLIE.js → chunk-VBU3UEG5.js} +1 -1
- package/dist/bin/shell/chunks/chunk-VGSRQOLD.js +7 -0
- package/dist/bin/shell/chunks/{chunk-GTULZ3ZD.js → chunk-WBST7XJW.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-ROFYAVPF.js → chunk-WEQ5WM2M.js} +1 -1
- package/dist/bin/{chunks/chunk-BCQSUELK.js → shell/chunks/chunk-WZ7MIBLR.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-H4BRFPKY.js → chunk-X45GP3AQ.js} +1 -1
- package/dist/bin/shell/chunks/chunk-YQEKKZTU.js +12 -0
- package/dist/bin/shell/chunks/{chunk-UNKX6YM6.js → chunk-Z3KAV6YJ.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-3SCW7PD5.js → chunk-Z5KICK5X.js} +1 -1
- package/dist/bin/shell/chunks/{column-7VBJL757.js → column-LHHS4D3K.js} +1 -1
- package/dist/bin/{chunks/cp-MF5GADQN.js → shell/chunks/cp-HPLQA35N.js} +1 -1
- package/dist/bin/shell/chunks/curl-FIRG3RB6.js +31 -0
- package/dist/bin/shell/chunks/{cut-QOTYBJJJ.js → cut-KP3S36XS.js} +1 -1
- package/dist/bin/{chunks/diff-YXZZCUSQ.js → shell/chunks/diff-JSJ56EOK.js} +1 -1
- package/dist/bin/shell/chunks/dist-4NZ74CRE.js +141 -0
- package/dist/bin/shell/chunks/{du-A3UGHIKJ.js → du-WEF5YWQK.js} +1 -1
- package/dist/bin/shell/chunks/{expr-TDF3B6QJ.js → expr-FLWT4OCO.js} +1 -1
- package/dist/bin/shell/chunks/{file-AJGG7RYT.js → file-JLUCGBCB.js} +1 -1
- package/dist/bin/shell/chunks/{find-6DH6TRDN.js → find-XGVQ6N6L.js} +1 -1
- package/dist/bin/shell/chunks/flag-coverage-4JYKIAVV.js +3 -0
- package/dist/bin/shell/chunks/{grep-WUZMZDGY.js → grep-DCPCPQOS.js} +1 -1
- package/dist/bin/shell/chunks/{gzip-JA7JQBUS.js → gzip-6DZIKNBW.js} +1 -1
- package/dist/bin/{chunks/head-YGKW3HS4.js → shell/chunks/head-TLFXMM2T.js} +1 -1
- package/dist/bin/{chunks/help-HVIDHJ6M.js → shell/chunks/help-EXVKU23F.js} +1 -1
- package/dist/bin/shell/chunks/{html-to-markdown-ZWL7LZIP.js → html-to-markdown-E22RLT2U.js} +1 -1
- package/dist/bin/shell/chunks/{jq-5MI4V3G5.js → jq-GDM3OBBK.js} +1 -1
- package/dist/bin/shell/chunks/js-exec-VU6F6WLS.js +1578 -0
- package/dist/bin/shell/chunks/{ln-XSDIE6SU.js → ln-B35EKC2Q.js} +1 -1
- package/dist/bin/shell/chunks/{ls-R6DAGGBH.js → ls-67NUUIYT.js} +1 -1
- package/dist/bin/shell/chunks/{mkdir-74BP5NTG.js → mkdir-AWDWRBKC.js} +1 -1
- package/dist/bin/shell/chunks/mktemp-L6OGMDUO.js +3 -0
- package/dist/bin/shell/chunks/{mv-YG75IRRE.js → mv-4BJSOT4Y.js} +1 -1
- package/dist/bin/{chunks/od-YCY27MMO.js → shell/chunks/od-SI75GLRE.js} +1 -1
- package/dist/bin/shell/chunks/{paste-ACKOG3XS.js → paste-5TSIBDF7.js} +1 -1
- package/dist/bin/shell/chunks/python3-GUWCSSDP.js +23 -0
- package/dist/bin/{chunks/readlink-HMHVGSAM.js → shell/chunks/readlink-URO5XTBB.js} +1 -1
- package/dist/bin/{chunks/rg-A3E7YM2A.js → shell/chunks/rg-RVULUPDH.js} +1 -1
- package/dist/bin/{chunks/rm-3PLW4O4B.js → shell/chunks/rm-UCUTHC3I.js} +1 -1
- package/dist/bin/shell/chunks/{rmdir-DCJ3XJRR.js → rmdir-J3HM7GGM.js} +1 -1
- package/dist/bin/{chunks/sed-KJWKB22J.js → shell/chunks/sed-MCLGHZOI.js} +1 -1
- package/dist/bin/shell/chunks/{seq-Q4LZ6EXV.js → seq-I54NZE75.js} +1 -1
- package/dist/bin/{chunks/sleep-DVFE2GSF.js → shell/chunks/sleep-CV6B4M6W.js} +1 -1
- package/dist/bin/shell/chunks/{split-XMXBXL5Q.js → split-VZO7223N.js} +1 -1
- package/dist/bin/shell/chunks/{sqlite3-DNH2VLVN.js → sqlite3-HXVFVP4Z.js} +1 -1
- package/dist/bin/shell/chunks/{stat-5PUSTPTK.js → stat-UJ37RBMM.js} +1 -1
- package/dist/bin/shell/chunks/{tail-4MB7HHIZ.js → tail-5TSF5YM4.js} +1 -1
- package/dist/bin/{chunks/tar-FRDUJZDN.js → shell/chunks/tar-ZGZZDQXO.js} +1 -1
- package/dist/bin/shell/chunks/{time-LF7BTSK5.js → time-J2DAZUIN.js} +1 -1
- package/dist/bin/shell/chunks/timeout-ATTDYXLX.js +3 -0
- package/dist/bin/shell/chunks/{tr-Z6N34HZM.js → tr-6RPFASYV.js} +1 -1
- package/dist/bin/shell/chunks/{xan-VSF6ZQGZ.js → xan-CCS53B7D.js} +1 -1
- package/dist/bin/shell/chunks/{xan-view-UEFBHYVN.js → xan-view-KOXASOEV.js} +1 -1
- package/dist/bin/shell/chunks/yes-ELH3XQWY.js +3 -0
- package/dist/bin/shell/chunks/yq-GSCDUHGM.js +3 -0
- package/dist/bin/shell/shell.js +334 -329
- package/dist/browser.d.ts +1 -1
- package/dist/bundle/browser.js +866 -836
- package/dist/bundle/chunks/awk2-V7KYQWCD.js +2 -0
- package/dist/bundle/chunks/{base64-2BAITDZF.js → base64-QPSYZAAJ.js} +1 -1
- package/dist/bundle/chunks/{cat-33KGN4MZ.js → cat-54BXBS6X.js} +1 -1
- package/dist/bundle/chunks/{chmod-APOXUPXW.js → chmod-4OPV4QKK.js} +1 -1
- package/dist/bundle/chunks/{chunk-IBRT3OJS.js → chunk-2WBUTDF5.js} +1 -1
- package/dist/bundle/chunks/{chunk-WNH3HOQA.js → chunk-353VO5TF.js} +1 -1
- package/dist/bundle/chunks/chunk-3HDTNUL3.js +6 -0
- package/dist/bundle/chunks/{chunk-XV2V56NQ.js → chunk-3KWM4FFA.js} +1 -1
- package/dist/bundle/chunks/{chunk-WXPNKIIH.js → chunk-43OP7DFL.js} +1 -1
- package/dist/bundle/chunks/{chunk-DMWNBCXJ.js → chunk-4GEHRJMD.js} +1 -1
- package/dist/bundle/chunks/{chunk-3CBCABOZ.js → chunk-4IMUNIUJ.js} +1 -1
- package/dist/bundle/chunks/chunk-5BMPT6SF.js +19 -0
- package/dist/bundle/chunks/{chunk-XPDOK3XY.js → chunk-5QWGR2WA.js} +1 -1
- package/dist/bundle/chunks/{chunk-X3TZEFQG.js → chunk-5UTZMNI5.js} +1 -1
- package/dist/bundle/chunks/{chunk-QPZVR6ZN.js → chunk-65LVAUWW.js} +1 -1
- package/dist/bundle/chunks/{chunk-YDR2IWKO.js → chunk-72JHTO7E.js} +1 -1
- package/dist/bundle/chunks/{chunk-KVG5FR5F.js → chunk-7GA3QWJJ.js} +11 -11
- package/dist/bundle/chunks/{chunk-ICQYTW7W.js → chunk-7M672HB6.js} +1 -1
- package/dist/bundle/chunks/chunk-B6OSJB22.js +26 -0
- package/dist/bundle/chunks/{chunk-N3FZSEG7.js → chunk-BM3X75NC.js} +1 -1
- package/dist/bundle/chunks/chunk-CBM6J4AL.js +6 -0
- package/dist/bundle/chunks/{chunk-FNEG7DFQ.js → chunk-CGI6V2HW.js} +1 -1
- package/dist/bundle/chunks/{chunk-BKUWXPEM.js → chunk-CHWP6GRK.js} +1 -1
- package/dist/bundle/chunks/{chunk-UL6YJ7FT.js → chunk-D5ZJISRS.js} +1 -1
- package/dist/bundle/chunks/{chunk-TUNYNC46.js → chunk-DIRWTBKE.js} +1 -1
- package/dist/bundle/chunks/chunk-DIWMSSQY.js +2 -0
- package/dist/bundle/chunks/{chunk-273265WK.js → chunk-DPZVOEUP.js} +1 -1
- package/dist/bundle/chunks/chunk-EGTVQWAP.js +20 -0
- package/dist/bundle/chunks/{chunk-SI5VPVOA.js → chunk-EXXOLIVE.js} +1 -1
- package/dist/bundle/chunks/chunk-GLAFXDZC.js +4 -0
- package/dist/bundle/chunks/{chunk-PMYUC5JF.js → chunk-H42OAUJL.js} +1 -1
- package/dist/bundle/chunks/chunk-H53EPEGD.js +12 -0
- package/dist/bundle/chunks/{chunk-QE275OWT.js → chunk-HDOXCDVK.js} +1 -1
- package/dist/bundle/chunks/{chunk-USNDURQI.js → chunk-HIQEVPXM.js} +1 -1
- package/dist/bundle/chunks/{chunk-G4SEENI7.js → chunk-M4LDT7V7.js} +1 -1
- package/dist/bundle/chunks/{chunk-MHY57JTL.js → chunk-MDE25PQK.js} +1 -1
- package/dist/bundle/chunks/{chunk-Q6JV5CBB.js → chunk-MHDZERK4.js} +1 -1
- package/dist/bundle/chunks/{chunk-5ELNHAAJ.js → chunk-MHZF23KB.js} +1 -1
- package/dist/bundle/chunks/{chunk-LPJEKUCB.js → chunk-N6W6FM4N.js} +1 -1
- package/dist/bundle/chunks/{chunk-POIWRLUV.js → chunk-NRLE7KYI.js} +1 -1
- package/dist/bundle/chunks/{chunk-MQKGGNPS.js → chunk-NXBUT5V2.js} +2 -2
- package/dist/bundle/chunks/{chunk-4HMWZAP7.js → chunk-OB46N7Q7.js} +1 -1
- package/dist/bundle/chunks/{chunk-ALOFNPKY.js → chunk-PPHGMG47.js} +2 -2
- package/dist/bundle/chunks/{chunk-UXHSH7BM.js → chunk-R6ZGLVXI.js} +1 -1
- package/dist/bundle/chunks/chunk-RCRHDT54.js +274 -0
- package/dist/bundle/chunks/{chunk-N4TGZ6H7.js → chunk-RIIUVFUS.js} +1 -1
- package/dist/bundle/chunks/chunk-RK2WBVP4.js +2 -0
- package/dist/bundle/chunks/{chunk-MLIO3BK2.js → chunk-SQX6WQXB.js} +1 -1
- package/dist/bundle/chunks/chunk-SRB6FXRH.js +2 -0
- package/dist/bundle/chunks/{chunk-7IFSXTCJ.js → chunk-T4INBNHX.js} +1 -1
- package/dist/bundle/chunks/{chunk-TVJ6JVK4.js → chunk-TUQG2YRH.js} +1 -1
- package/dist/bundle/chunks/{chunk-JA6EY7US.js → chunk-U7UNEMLJ.js} +1 -1
- package/dist/bundle/chunks/{chunk-GVKYQN5J.js → chunk-UK2K3DHN.js} +1 -1
- package/dist/bundle/chunks/{chunk-HW6ZCMM5.js → chunk-VDJ53ESK.js} +1 -1
- package/dist/bundle/chunks/{chunk-WHHRIZS3.js → chunk-VGCXKMXN.js} +1 -1
- package/dist/bundle/chunks/chunk-VOQZ5TSL.js +2 -0
- package/dist/bundle/chunks/{chunk-R2FBRMDU.js → chunk-VWUMR4IC.js} +1 -1
- package/dist/bundle/chunks/chunk-W2Z6LYL6.js +11 -0
- package/dist/bundle/chunks/{chunk-CFBEDNHJ.js → chunk-W5J5ADJF.js} +7 -7
- package/dist/bundle/chunks/{chunk-V2SOLEQN.js → chunk-XHFP44Y4.js} +1 -1
- package/dist/bundle/chunks/{chunk-KIGPB52X.js → chunk-XZ34OGNM.js} +1 -1
- package/dist/bundle/chunks/{chunk-A3D7NRT6.js → chunk-Y32R7EZP.js} +10 -10
- package/dist/bundle/chunks/chunk-YUFU7O6I.js +16 -0
- package/dist/bundle/chunks/{chunk-MFGH46GH.js → chunk-YZH7FUSY.js} +1 -1
- package/dist/bundle/chunks/{column-LKMDIDCH.js → column-F5JDBRV6.js} +1 -1
- package/dist/bundle/chunks/{cp-FKTQRFYJ.js → cp-LTFB4EUA.js} +1 -1
- package/dist/bundle/chunks/curl-XCX2ZQEA.js +30 -0
- package/dist/bundle/chunks/{cut-RWPUW5FY.js → cut-IRSHL3BB.js} +1 -1
- package/dist/bundle/chunks/{diff-CSARC7WF.js → diff-VDB6RXHO.js} +1 -1
- package/dist/bundle/chunks/{du-PR3M44X6.js → du-DOWSRLXR.js} +1 -1
- package/dist/bundle/chunks/{expr-UMT2OHZ7.js → expr-GZ4DABKB.js} +1 -1
- package/dist/bundle/chunks/{file-VEGKTTSF.js → file-UI6QJAAU.js} +1 -1
- package/dist/bundle/chunks/{find-PM3TD7V4.js → find-JTXDH3MR.js} +1 -1
- package/dist/bundle/chunks/flag-coverage-EDO3VM43.js +2 -0
- package/dist/bundle/chunks/{grep-5UPEO42U.js → grep-OZCR76FT.js} +1 -1
- package/dist/bundle/chunks/{gzip-ZINVK3M6.js → gzip-GQC6CWVL.js} +1 -1
- package/dist/bundle/chunks/{head-CFENJILH.js → head-J6RVJFRS.js} +1 -1
- package/dist/bundle/chunks/{help-QDDMBDU7.js → help-62M75TSG.js} +1 -1
- package/dist/bundle/chunks/{html-to-markdown-GGVR4YGL.js → html-to-markdown-7OG5VWYG.js} +1 -1
- package/dist/bundle/chunks/{jq-X2P7Q64K.js → jq-FCG2IUBK.js} +1 -1
- package/dist/bundle/chunks/js-exec-NDLXDUBN.js +1577 -0
- package/dist/bundle/chunks/{ln-VYDFOFNO.js → ln-OPY2ZVGQ.js} +1 -1
- package/dist/bundle/chunks/{ls-R5CQLZQM.js → ls-MQTYWW4T.js} +1 -1
- package/dist/bundle/chunks/{mkdir-WDDKK2P3.js → mkdir-4A5W3RXH.js} +1 -1
- package/dist/bundle/chunks/mktemp-XKIE5N3X.js +2 -0
- package/dist/bundle/chunks/{mv-XSJA2FNL.js → mv-ZPIATQJL.js} +1 -1
- package/dist/bundle/chunks/{od-BI6XJPXY.js → od-LUHOH7CG.js} +1 -1
- package/dist/bundle/chunks/{paste-LLZ3ZQR2.js → paste-U57ZU47S.js} +1 -1
- package/dist/bundle/chunks/python3-SDFCGIU4.js +22 -0
- package/dist/bundle/chunks/{readlink-IY6QKK2P.js → readlink-YNNS6F7K.js} +1 -1
- package/dist/bundle/chunks/{rg-UQE6KUBP.js → rg-F4SX2PHI.js} +1 -1
- package/dist/bundle/chunks/{rm-JQ4GDKDD.js → rm-3XUUYAXQ.js} +1 -1
- package/dist/bundle/chunks/{rmdir-WZKAT6M5.js → rmdir-OGSEXEF4.js} +1 -1
- package/dist/bundle/chunks/{sed-JW2JDLSI.js → sed-MBB5SXGD.js} +1 -1
- package/dist/bundle/chunks/{seq-5R2GKXC6.js → seq-IN77HD3S.js} +1 -1
- package/dist/bundle/chunks/{sleep-PPRBTSVR.js → sleep-3QNP3BGR.js} +1 -1
- package/dist/bundle/chunks/{split-2SD6EP72.js → split-6R2TSQY6.js} +1 -1
- package/dist/bundle/chunks/{sqlite3-UVVRYDAL.js → sqlite3-7MBPFI6W.js} +1 -1
- package/dist/bundle/chunks/sqlite3-worker.js +75 -11
- package/dist/bundle/chunks/{stat-6KILP5AL.js → stat-YLVJ4L67.js} +1 -1
- package/dist/bundle/chunks/{tail-BDNMS4FR.js → tail-UGFWX3YY.js} +1 -1
- package/dist/bundle/chunks/{tar-6365WH6H.js → tar-BNHPWTOY.js} +1 -1
- package/dist/bundle/chunks/{time-NERE2JJ2.js → time-N6J6DC6C.js} +1 -1
- package/dist/bundle/chunks/timeout-ZHCL5KTP.js +2 -0
- package/dist/bundle/chunks/{tr-3I4MDKIF.js → tr-4NGL47UU.js} +1 -1
- package/dist/bundle/chunks/worker.js +88 -15
- package/dist/bundle/chunks/{xan-HUOXKUQA.js → xan-7R3I2DJO.js} +1 -1
- package/dist/bundle/chunks/xan-view-S4ZILLPU.js +2 -0
- package/dist/bundle/chunks/yes-I7SAR7XX.js +2 -0
- package/dist/bundle/chunks/yq-IOMBQYB2.js +2 -0
- package/dist/bundle/index.cjs +2862 -1489
- package/dist/bundle/index.js +349 -344
- package/dist/commands/curl/response-formatting.d.ts +2 -2
- package/dist/commands/curl/types.d.ts +5 -0
- package/dist/commands/diff/format.d.ts +46 -0
- package/dist/commands/js-exec/js-exec.d.ts +1 -10
- package/dist/commands/js-exec/run-runtime.d.ts +10 -0
- package/dist/commands/mktemp/mktemp.d.ts +4 -0
- package/dist/commands/registry.d.ts +1 -1
- package/dist/commands/sqlite3/worker.js +75 -11
- package/dist/commands/worker-request-controller.d.ts +3 -23
- package/dist/commands/yes/yes.d.ts +4 -0
- package/dist/custom-commands.d.ts +7 -0
- package/dist/fs/create-exclusive.d.ts +30 -0
- package/dist/fs/in-memory-fs/in-memory-fs.d.ts +8 -1
- package/dist/fs/interface.d.ts +37 -0
- package/dist/fs/mountable-fs/mountable-fs.d.ts +20 -1
- package/dist/fs/overlay-fs/overlay-fs.d.ts +9 -1
- package/dist/fs/read-write-fs/read-write-fs.d.ts +27 -1
- package/dist/fs/traversal.d.ts +9 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/interpreter/expansion/array-prefix-suffix.d.ts +2 -1
- package/dist/interpreter/expansion/parameter-ops.d.ts +1 -0
- package/dist/interpreter/expansion/pattern-removal.d.ts +3 -0
- package/dist/interpreter/expansion/variable.d.ts +1 -1
- package/dist/interpreter/helpers/loop.d.ts +32 -0
- package/dist/interpreter/helpers/substitution-status.d.ts +34 -0
- package/dist/interpreter/interpreter.d.ts +1 -1
- package/dist/interpreter/types.d.ts +8 -1
- package/dist/limits.d.ts +2 -0
- package/dist/network/allow-list/shared.d.ts +0 -8
- package/dist/network/dns-pin.d.ts +1 -35
- package/dist/network/fetch.d.ts +4 -6
- package/dist/network/types.d.ts +20 -2
- package/dist/security/defense-in-depth-box.d.ts +7 -0
- package/dist/security/trusted-globals.d.ts +8 -0
- package/dist/security/worker-defense-in-depth.d.ts +7 -0
- package/dist/types.d.ts +4 -3
- package/dist/worker-lifecycle.d.ts +27 -0
- package/package.json +12 -13
- package/dist/bin/chunks/awk2-C4A37H5N.js +0 -3
- package/dist/bin/chunks/chunk-23OI2XDJ.js +0 -20
- package/dist/bin/chunks/chunk-2ORJ5HTY.js +0 -276
- package/dist/bin/chunks/chunk-3PCPQIUD.js +0 -3
- package/dist/bin/chunks/chunk-7WBCA2BB.js +0 -3
- package/dist/bin/chunks/chunk-APV27ZZW.js +0 -21
- package/dist/bin/chunks/chunk-CPTQXTBJ.js +0 -3
- package/dist/bin/chunks/chunk-FE6GSISP.js +0 -22
- package/dist/bin/chunks/chunk-HL7NFZVQ.js +0 -13
- package/dist/bin/chunks/chunk-HWI42GQO.js +0 -7
- package/dist/bin/chunks/chunk-JQM3DKCH.js +0 -12
- package/dist/bin/chunks/chunk-TOTKK2XI.js +0 -16
- package/dist/bin/chunks/chunk-YTL6DXBO.js +0 -11
- package/dist/bin/chunks/curl-FS5LAEYI.js +0 -30
- package/dist/bin/chunks/flag-coverage-DOLZIUQ7.js +0 -3
- package/dist/bin/chunks/js-exec-DJQLXWCS.js +0 -99
- package/dist/bin/chunks/js-exec-worker.js +0 -4809
- package/dist/bin/chunks/python3-JCJHSX4Z.js +0 -14
- package/dist/bin/chunks/timeout-YGFHQJKX.js +0 -3
- package/dist/bin/chunks/undici-CKF2L2IP.js +0 -141
- package/dist/bin/chunks/yq-K5N5JD4N.js +0 -3
- package/dist/bin/shell/chunks/awk2-C4A37H5N.js +0 -3
- package/dist/bin/shell/chunks/chunk-23OI2XDJ.js +0 -20
- package/dist/bin/shell/chunks/chunk-2ORJ5HTY.js +0 -276
- package/dist/bin/shell/chunks/chunk-3PCPQIUD.js +0 -3
- package/dist/bin/shell/chunks/chunk-7WBCA2BB.js +0 -3
- package/dist/bin/shell/chunks/chunk-APV27ZZW.js +0 -21
- package/dist/bin/shell/chunks/chunk-CPTQXTBJ.js +0 -3
- package/dist/bin/shell/chunks/chunk-FE6GSISP.js +0 -22
- package/dist/bin/shell/chunks/chunk-HL7NFZVQ.js +0 -13
- package/dist/bin/shell/chunks/chunk-HWI42GQO.js +0 -7
- package/dist/bin/shell/chunks/chunk-JQM3DKCH.js +0 -12
- package/dist/bin/shell/chunks/chunk-TOTKK2XI.js +0 -16
- package/dist/bin/shell/chunks/chunk-YTL6DXBO.js +0 -11
- package/dist/bin/shell/chunks/curl-FS5LAEYI.js +0 -30
- package/dist/bin/shell/chunks/flag-coverage-DOLZIUQ7.js +0 -3
- package/dist/bin/shell/chunks/js-exec-DJQLXWCS.js +0 -99
- package/dist/bin/shell/chunks/python3-JCJHSX4Z.js +0 -14
- package/dist/bin/shell/chunks/timeout-YGFHQJKX.js +0 -3
- package/dist/bin/shell/chunks/undici-CKF2L2IP.js +0 -141
- package/dist/bin/shell/chunks/yq-K5N5JD4N.js +0 -3
- package/dist/bundle/chunks/awk2-NPLZQ3K7.js +0 -2
- package/dist/bundle/chunks/chunk-6DTD75TR.js +0 -275
- package/dist/bundle/chunks/chunk-6KK46B7Q.js +0 -12
- package/dist/bundle/chunks/chunk-AH7VTVWU.js +0 -2
- package/dist/bundle/chunks/chunk-BRJERIF4.js +0 -2
- package/dist/bundle/chunks/chunk-ELHOZMBD.js +0 -10
- package/dist/bundle/chunks/chunk-INDA53JL.js +0 -21
- package/dist/bundle/chunks/chunk-KBXRZGTY.js +0 -15
- package/dist/bundle/chunks/chunk-N3A4JVFJ.js +0 -2
- package/dist/bundle/chunks/chunk-UTKGYVUZ.js +0 -7
- package/dist/bundle/chunks/chunk-XMMV24SP.js +0 -20
- package/dist/bundle/chunks/chunk-YJKHREBZ.js +0 -11
- package/dist/bundle/chunks/chunk-ZBUZKIPX.js +0 -6
- package/dist/bundle/chunks/curl-DEHFBW27.js +0 -29
- package/dist/bundle/chunks/flag-coverage-I6UJUKQ4.js +0 -2
- package/dist/bundle/chunks/js-exec-XKF2B7C3.js +0 -98
- package/dist/bundle/chunks/js-exec-worker.js +0 -4809
- package/dist/bundle/chunks/python3-F5S5TYGS.js +0 -13
- package/dist/bundle/chunks/timeout-C6WDYPLV.js +0 -2
- package/dist/bundle/chunks/undici-PSPBDOYF.js +0 -140
- package/dist/bundle/chunks/xan-view-RT2WKDOQ.js +0 -2
- package/dist/bundle/chunks/yq-MI27NZ2U.js +0 -2
- package/dist/commands/js-exec/js-exec-worker.d.ts +0 -33
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a as Ya}from"./chunk-
|
|
3
|
+
import{a as Ya}from"./chunk-IKUY74NG.js";import{l as _t}from"./chunk-LCP3IKI7.js";import{a as Wr,b as ji}from"./chunk-CPKBPQ2C.js";import{a as Gi,b as zi,c as Qa}from"./chunk-MUFNRCMY.js";import{b as N,c as gl}from"./chunk-DN2YCFOR.js";var Rt=N((Nf,Wi)=>{"use strict";Wi.exports=vt;vt.CAPTURING_PHASE=1;vt.AT_TARGET=2;vt.BUBBLING_PHASE=3;function vt(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=vt.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}vt.prototype=Object.create(Object.prototype,{constructor:{value:vt},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,a){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=a)}}})});var Za=N((Sf,Ki)=>{"use strict";var Xi=Rt();Ki.exports=$a;function $a(){Xi.call(this),this.view=null,this.detail=0}$a.prototype=Object.create(Xi.prototype,{constructor:{value:$a},initUIEvent:{value:function(e,t,r,a,s){this.initEvent(e,t,r),this.view=a,this.detail=s}}})});var en=N((Cf,Qi)=>{"use strict";var Yi=Za();Qi.exports=Ja;function Ja(){Yi.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}Ja.prototype=Object.create(Yi.prototype,{constructor:{value:Ja},initMouseEvent:{value:function(e,t,r,a,s,o,x,m,h,_,v,Q,$,u,ue){switch(this.initEvent(e,t,r,a,s),this.screenX=o,this.screenY=x,this.clientX=m,this.clientY=h,this.ctrlKey=_,this.altKey=v,this.shiftKey=Q,this.metaKey=$,this.button=u,u){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=ue}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var Yr=N((Af,Zi)=>{"use strict";Zi.exports=Kr;var bl=1,El=3,_l=4,vl=5,Tl=7,yl=8,wl=9,Nl=11,Sl=12,Cl=13,Al=14,kl=15,Dl=17,Ll=18,Ml=19,Rl=20,Il=21,Ol=22,ql=23,Hl=24,Fl=25,Bl=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],Pl=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],$i={INDEX_SIZE_ERR:bl,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:El,WRONG_DOCUMENT_ERR:_l,INVALID_CHARACTER_ERR:vl,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:Tl,NOT_FOUND_ERR:yl,NOT_SUPPORTED_ERR:wl,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:Nl,SYNTAX_ERR:Sl,INVALID_MODIFICATION_ERR:Cl,NAMESPACE_ERR:Al,INVALID_ACCESS_ERR:kl,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:Dl,SECURITY_ERR:Ll,NETWORK_ERR:Ml,ABORT_ERR:Rl,URL_MISMATCH_ERR:Il,QUOTA_EXCEEDED_ERR:Ol,TIMEOUT_ERR:ql,INVALID_NODE_TYPE_ERR:Hl,DATA_CLONE_ERR:Fl};function Kr(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=Pl[e],this.name=Bl[e]}Kr.prototype.__proto__=Error.prototype;for(Xr in $i)tn={value:$i[Xr]},Object.defineProperty(Kr,Xr,tn),Object.defineProperty(Kr.prototype,Xr,tn);var tn,Xr});var Qr=N(Ji=>{Ji.isApiWritable=!globalThis.__domino_frozen__});var ne=N(V=>{"use strict";var ae=Yr(),oe=ae,Ul=Qr().isApiWritable;V.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};V.IndexSizeError=function(){throw new ae(oe.INDEX_SIZE_ERR)};V.HierarchyRequestError=function(){throw new ae(oe.HIERARCHY_REQUEST_ERR)};V.WrongDocumentError=function(){throw new ae(oe.WRONG_DOCUMENT_ERR)};V.InvalidCharacterError=function(){throw new ae(oe.INVALID_CHARACTER_ERR)};V.NoModificationAllowedError=function(){throw new ae(oe.NO_MODIFICATION_ALLOWED_ERR)};V.NotFoundError=function(){throw new ae(oe.NOT_FOUND_ERR)};V.NotSupportedError=function(){throw new ae(oe.NOT_SUPPORTED_ERR)};V.InvalidStateError=function(){throw new ae(oe.INVALID_STATE_ERR)};V.SyntaxError=function(){throw new ae(oe.SYNTAX_ERR)};V.InvalidModificationError=function(){throw new ae(oe.INVALID_MODIFICATION_ERR)};V.NamespaceError=function(){throw new ae(oe.NAMESPACE_ERR)};V.InvalidAccessError=function(){throw new ae(oe.INVALID_ACCESS_ERR)};V.TypeMismatchError=function(){throw new ae(oe.TYPE_MISMATCH_ERR)};V.SecurityError=function(){throw new ae(oe.SECURITY_ERR)};V.NetworkError=function(){throw new ae(oe.NETWORK_ERR)};V.AbortError=function(){throw new ae(oe.ABORT_ERR)};V.UrlMismatchError=function(){throw new ae(oe.URL_MISMATCH_ERR)};V.QuotaExceededError=function(){throw new ae(oe.QUOTA_EXCEEDED_ERR)};V.TimeoutError=function(){throw new ae(oe.TIMEOUT_ERR)};V.InvalidNodeTypeError=function(){throw new ae(oe.INVALID_NODE_TYPE_ERR)};V.DataCloneError=function(){throw new ae(oe.DATA_CLONE_ERR)};V.nyi=function(){throw new Error("NotYetImplemented")};V.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};V.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
|
|
4
4
|
`+new Error().stack)};V.expose=function(e,t){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],writable:Ul})};V.merge=function(e,t){for(var r in t)e[r]=t[r]};V.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)};V.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(t){return t.toLowerCase()})};V.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(t){return t.toUpperCase()})}});var rn=N((Lf,ts)=>{"use strict";var Tt=Rt(),Vl=en(),jl=ne();ts.exports=es;function es(){}es.prototype={addEventListener:function(t,r,a){if(r){a===void 0&&(a=!1),this._listeners||(this._listeners=Object.create(null)),this._listeners[t]||(this._listeners[t]=[]);for(var s=this._listeners[t],o=0,x=s.length;o<x;o++){var m=s[o];if(m.listener===r&&m.capture===a)return}var h={listener:r,capture:a};typeof r=="function"&&(h.f=r),s.push(h)}},removeEventListener:function(t,r,a){if(a===void 0&&(a=!1),this._listeners){var s=this._listeners[t];if(s)for(var o=0,x=s.length;o<x;o++){var m=s[o];if(m.listener===r&&m.capture===a){s.length===1?this._listeners[t]=void 0:s.splice(o,1);return}}}},dispatchEvent:function(t){return this._dispatchEvent(t,!1)},_dispatchEvent:function(t,r){typeof r!="boolean"&&(r=!1);function a(_,v){var Q=v.type,$=v.eventPhase;if(v.currentTarget=_,$!==Tt.CAPTURING_PHASE&&_._handlers&&_._handlers[Q]){var u=_._handlers[Q],ue;if(typeof u=="function")ue=u.call(v.currentTarget,v);else{var X=u.handleEvent;if(typeof X!="function")throw new TypeError("handleEvent property of event handler object isnot a function.");ue=X.call(u,v)}v.type==="mouseover"?ue===!0&&v.preventDefault():ue===!1&&v.preventDefault()}var M=_._listeners&&_._listeners[Q];if(M){M=M.slice();for(var G=0,y=M.length;G<y;G++){if(v._immediatePropagationStopped)return;var Y=M[G];if(!($===Tt.CAPTURING_PHASE&&!Y.capture||$===Tt.BUBBLING_PHASE&&Y.capture))if(Y.f)Y.f.call(v.currentTarget,v);else{var xe=Y.listener.handleEvent;if(typeof xe!="function")throw new TypeError("handleEvent property of event listener object is not a function.");xe.call(Y.listener,v)}}}}(!t._initialized||t._dispatching)&&jl.InvalidStateError(),t.isTrusted=r,t._dispatching=!0,t.target=this;for(var s=[],o=this.parentNode;o;o=o.parentNode)s.push(o);t.eventPhase=Tt.CAPTURING_PHASE;for(var x=s.length-1;x>=0&&(a(s[x],t),!t._propagationStopped);x--);if(t._propagationStopped||(t.eventPhase=Tt.AT_TARGET,a(this,t)),t.bubbles&&!t._propagationStopped){t.eventPhase=Tt.BUBBLING_PHASE;for(var m=0,h=s.length;m<h&&(a(s[m],t),!t._propagationStopped);m++);}if(t._dispatching=!1,t.eventPhase=Tt.AT_TARGET,t.currentTarget=null,r&&!t.defaultPrevented&&t instanceof Vl)switch(t.type){case"mousedown":this._armed={x:t.clientX,y:t.clientY,t:t.timeStamp};break;case"mouseout":case"mouseover":this._armed=null;break;case"mouseup":this._isClick(t)&&this._doClick(t),this._armed=null;break}return!t.defaultPrevented},_isClick:function(e){return this._armed!==null&&e.type==="mouseup"&&e.isTrusted&&e.button===0&&e.timeStamp-this._armed.t<1e3&&Math.abs(e.clientX-this._armed.x)<10&&Math.abs(e.clientY-this._armed.Y)<10},_doClick:function(e){if(!this._click_in_progress){this._click_in_progress=!0;for(var t=this;t&&!t._post_click_activation_steps;)t=t.parentNode;t&&t._pre_click_activation_steps&&t._pre_click_activation_steps();var r=this.ownerDocument.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,null);var a=this._dispatchEvent(r,!0);t&&(a?t._post_click_activation_steps&&t._post_click_activation_steps(r):t._cancelled_activation_steps&&t._cancelled_activation_steps())}},_setEventHandler:function(t,r){this._handlers||(this._handlers=Object.create(null)),this._handlers[t]=r},_getEventHandler:function(t){return this._handlers&&this._handlers[t]||null}}});var an=N((Mf,rs)=>{"use strict";var Xe=ne(),Ce=rs.exports={valid:function(e){return Xe.assert(e,"list falsy"),Xe.assert(e._previousSibling,"previous falsy"),Xe.assert(e._nextSibling,"next falsy"),!0},insertBefore:function(e,t){Xe.assert(Ce.valid(e)&&Ce.valid(t));var r=e,a=e._previousSibling,s=t,o=t._previousSibling;r._previousSibling=o,a._nextSibling=s,o._nextSibling=r,s._previousSibling=a,Xe.assert(Ce.valid(e)&&Ce.valid(t))},replace:function(e,t){Xe.assert(Ce.valid(e)&&(t===null||Ce.valid(t))),t!==null&&Ce.insertBefore(t,e),Ce.remove(e),Xe.assert(Ce.valid(e)&&(t===null||Ce.valid(t)))},remove:function(e){Xe.assert(Ce.valid(e));var t=e._previousSibling;if(t!==e){var r=e._nextSibling;t._nextSibling=r,r._previousSibling=t,e._previousSibling=e._nextSibling=e,Xe.assert(Ce.valid(e))}}}});var nn=N((Rf,us)=>{"use strict";us.exports={serializeOne:Ql,\u0275escapeMatchingClosingTag:os,\u0275escapeClosingCommentTag:cs,\u0275escapeProcessingInstructionContent:ls};var ss=ne(),yt=ss.NAMESPACE,as={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},Gl={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},zl={},ns=/[&<>\u00A0]/g,is=/[&"<>\u00A0]/g;function Wl(e){return ns.test(e)?e.replace(ns,t=>{switch(t){case"&":return"&";case"<":return"<";case">":return">";case"\xA0":return" "}}):e}function Xl(e){return is.test(e)?e.replace(is,t=>{switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"\xA0":return" "}}):e}function Kl(e){var t=e.namespaceURI;return t?t===yt.XML?"xml:"+e.localName:t===yt.XLINK?"xlink:"+e.localName:t===yt.XMLNS?e.localName==="xmlns"?"xmlns":"xmlns:"+e.localName:e.name:e.localName}function os(e,t){let r="</"+t;if(!e.toLowerCase().includes(r))return e;let a=[...e],s=e.matchAll(new RegExp(r,"ig"));for(let o of s)a[o.index]="<";return a.join("")}var Yl=/--!?>/;function cs(e){return Yl.test(e)?e.replace(/(--\!?)>/g,"$1>"):e}function ls(e){return e.includes(">")?e.replaceAll(">",">"):e}function Ql(e,t){var r="";switch(e.nodeType){case 1:var a=e.namespaceURI,s=a===yt.HTML,o=s||a===yt.SVG||a===yt.MATHML?e.localName:e.tagName;r+="<"+o;for(var x=0,m=e._numattrs;x<m;x++){var h=e._attr(x);r+=" "+Kl(h),h.value!==void 0&&(r+='="'+Xl(h.value)+'"')}if(r+=">",!(s&&Gl[o])){var _=e.serialize();as[o.toUpperCase()]&&(_=os(_,o)),s&&zl[o]&&_.charAt(0)===`
|
|
5
5
|
`&&(r+=`
|
|
6
6
|
`),r+=_,r+="</"+o+">"}break;case 3:case 4:var v;t.nodeType===1&&t.namespaceURI===yt.HTML?v=t.tagName:v="",as[v]||v==="NOSCRIPT"&&t.ownerDocument._scripting_enabled?r+=e.data:r+=Wl(e.data);break;case 8:r+="<!--"+cs(e.data)+"-->";break;case 7:let Q=ls(e.data);r+="<?"+e.target+" "+Q+"?>";break;case 10:r+="<!DOCTYPE "+e.name,r+=">";break;default:ss.InvalidStateError()}return r}});var de=N((If,ms)=>{"use strict";ms.exports=Z;var ps=rn(),$r=an(),xs=nn(),j=ne();function Z(){ps.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var ve=Z.ELEMENT_NODE=1,sn=Z.ATTRIBUTE_NODE=2,Zr=Z.TEXT_NODE=3,$l=Z.CDATA_SECTION_NODE=4,Zl=Z.ENTITY_REFERENCE_NODE=5,on=Z.ENTITY_NODE=6,fs=Z.PROCESSING_INSTRUCTION_NODE=7,ds=Z.COMMENT_NODE=8,ir=Z.DOCUMENT_NODE=9,Ae=Z.DOCUMENT_TYPE_NODE=10,lt=Z.DOCUMENT_FRAGMENT_NODE=11,cn=Z.NOTATION_NODE=12,ln=Z.DOCUMENT_POSITION_DISCONNECTED=1,un=Z.DOCUMENT_POSITION_PRECEDING=2,xn=Z.DOCUMENT_POSITION_FOLLOWING=4,hs=Z.DOCUMENT_POSITION_CONTAINS=8,fn=Z.DOCUMENT_POSITION_CONTAINED_BY=16,dn=Z.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;Z.prototype=Object.create(ps.prototype,{baseURI:{get:j.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===ve?this.parentNode:null}},hasChildNodes:{value:j.shouldOverride},firstChild:{get:j.shouldOverride},lastChild:{get:j.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===Z.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===Z.DOCUMENT_FRAGMENT_NODE&&(e=e.host)}return!1}},previousSibling:{get:function(){var e=this.parentNode;return!e||this===e.firstChild?null:this._previousSibling}},nextSibling:{get:function(){var e=this.parentNode,t=this._nextSibling;return!e||t===e.firstChild?null:t}},textContent:{get:function(){return null},set:function(e){}},innerText:{get:function(){return null},set:function(e){}},_countChildrenOfType:{value:function(e){for(var t=0,r=this.firstChild;r!==null;r=r.nextSibling)r.nodeType===e&&t++;return t}},_ensureInsertValid:{value:function(t,r,a){var s=this,o,x;if(!t.nodeType)throw new TypeError("not a node");switch(s.nodeType){case ir:case lt:case ve:break;default:j.HierarchyRequestError()}switch(t.isAncestor(s)&&j.HierarchyRequestError(),(r!==null||!a)&&r.parentNode!==s&&j.NotFoundError(),t.nodeType){case lt:case Ae:case ve:case Zr:case fs:case ds:break;default:j.HierarchyRequestError()}if(s.nodeType===ir)switch(t.nodeType){case Zr:j.HierarchyRequestError();break;case lt:switch(t._countChildrenOfType(Zr)>0&&j.HierarchyRequestError(),t._countChildrenOfType(ve)){case 0:break;case 1:if(r!==null)for(a&&r.nodeType===Ae&&j.HierarchyRequestError(),x=r.nextSibling;x!==null;x=x.nextSibling)x.nodeType===Ae&&j.HierarchyRequestError();o=s._countChildrenOfType(ve),a?o>0&&j.HierarchyRequestError():(o>1||o===1&&r.nodeType!==ve)&&j.HierarchyRequestError();break;default:j.HierarchyRequestError()}break;case ve:if(r!==null)for(a&&r.nodeType===Ae&&j.HierarchyRequestError(),x=r.nextSibling;x!==null;x=x.nextSibling)x.nodeType===Ae&&j.HierarchyRequestError();o=s._countChildrenOfType(ve),a?o>0&&j.HierarchyRequestError():(o>1||o===1&&r.nodeType!==ve)&&j.HierarchyRequestError();break;case Ae:if(r===null)s._countChildrenOfType(ve)&&j.HierarchyRequestError();else for(x=s.firstChild;x!==null&&x!==r;x=x.nextSibling)x.nodeType===ve&&j.HierarchyRequestError();o=s._countChildrenOfType(Ae),a?o>0&&j.HierarchyRequestError():(o>1||o===1&&r.nodeType!==Ae)&&j.HierarchyRequestError();break}else t.nodeType===Ae&&j.HierarchyRequestError()}},insertBefore:{value:function(t,r){var a=this;a._ensureInsertValid(t,r,!0);var s=r;return s===t&&(s=t.nextSibling),a.doc.adoptNode(t),t._insertOrReplace(a,s,!1),t}},appendChild:{value:function(e){return this.insertBefore(e,null)}},_appendChild:{value:function(e){e._insertOrReplace(this,null,!1)}},removeChild:{value:function(t){var r=this;if(!t.nodeType)throw new TypeError("not a node");return t.parentNode!==r&&j.NotFoundError(),t.remove(),t}},replaceChild:{value:function(t,r){var a=this;return a._ensureInsertValid(t,r,!1),t.doc!==a.doc&&a.doc.adoptNode(t),t._insertOrReplace(a,r,!0),r}},contains:{value:function(t){return t===null?!1:this===t?!0:(this.compareDocumentPosition(t)&fn)!==0}},compareDocumentPosition:{value:function(t){if(this===t)return 0;if(this.doc!==t.doc||this.rooted!==t.rooted)return ln+dn;for(var r=[],a=[],s=this;s!==null;s=s.parentNode)r.push(s);for(s=t;s!==null;s=s.parentNode)a.push(s);if(r.reverse(),a.reverse(),r[0]!==a[0])return ln+dn;s=Math.min(r.length,a.length);for(var o=1;o<s;o++)if(r[o]!==a[o])return r[o].index<a[o].index?xn:un;return r.length<a.length?xn+fn:un+hs}},isSameNode:{value:function(t){return this===t}},isEqualNode:{value:function(t){if(!t||t.nodeType!==this.nodeType||!this.isEqual(t))return!1;for(var r=this.firstChild,a=t.firstChild;r&&a;r=r.nextSibling,a=a.nextSibling)if(!r.isEqualNode(a))return!1;return r===null&&a===null}},cloneNode:{value:function(e){var t=this.clone();if(e)for(var r=this.firstChild;r!==null;r=r.nextSibling)t._appendChild(r.cloneNode(!0));return t}},lookupPrefix:{value:function(t){var r;if(t===""||t===null||t===void 0)return null;switch(this.nodeType){case ve:return this._lookupNamespacePrefix(t,this);case ir:return r=this.documentElement,r?r.lookupPrefix(t):null;case on:case cn:case lt:case Ae:return null;case sn:return r=this.ownerElement,r?r.lookupPrefix(t):null;default:return r=this.parentElement,r?r.lookupPrefix(t):null}}},lookupNamespaceURI:{value:function(t){(t===""||t===void 0)&&(t=null);var r;switch(this.nodeType){case ve:return j.shouldOverride();case ir:return r=this.documentElement,r?r.lookupNamespaceURI(t):null;case on:case cn:case Ae:case lt:return null;case sn:return r=this.ownerElement,r?r.lookupNamespaceURI(t):null;default:return r=this.parentElement,r?r.lookupNamespaceURI(t):null}}},isDefaultNamespace:{value:function(t){(t===""||t===void 0)&&(t=null);var r=this.lookupNamespaceURI(null);return r===t}},index:{get:function(){var e=this.parentNode;if(this===e.firstChild)return 0;var t=e.childNodes;if(this._index===void 0||t[this._index]!==this){for(var r=0;r<t.length;r++)t[r]._index=r;j.assert(t[this._index]===this)}return this._index}},isAncestor:{value:function(e){if(this.doc!==e.doc||this.rooted!==e.rooted)return!1;for(var t=e;t;t=t.parentNode)if(t===this)return!0;return!1}},ensureSameDoc:{value:function(e){e.ownerDocument===null?e.ownerDocument=this.doc:e.ownerDocument!==this.doc&&j.WrongDocumentError()}},removeChildren:{value:j.shouldOverride},_insertOrReplace:{value:function(t,r,a){var s=this,o,x;if(s.nodeType===lt&&s.rooted&&j.HierarchyRequestError(),t._childNodes&&(o=r===null?t._childNodes.length:r.index,s.parentNode===t)){var m=s.index;m<o&&o--}a&&(r.rooted&&r.doc.mutateRemove(r),r.parentNode=null);var h=r;h===null&&(h=t.firstChild);var _=s.rooted&&t.rooted;if(s.nodeType===lt){for(var v=[0,a?1:0],Q,$=s.firstChild;$!==null;$=Q)Q=$.nextSibling,v.push($),$.parentNode=t;var u=v.length;if(a?$r.replace(h,u>2?v[2]:null):u>2&&h!==null&&$r.insertBefore(v[2],h),t._childNodes)for(v[0]=r===null?t._childNodes.length:r._index,t._childNodes.splice.apply(t._childNodes,v),x=2;x<u;x++)v[x]._index=v[0]+(x-2);else t._firstChild===r&&(u>2?t._firstChild=v[2]:a&&(t._firstChild=null));if(s._childNodes?s._childNodes.length=0:s._firstChild=null,t.rooted)for(t.modify(),x=2;x<u;x++)t.doc.mutateInsert(v[x])}else{if(r===s)return;_?s._remove():s.parentNode&&s.remove(),s.parentNode=t,a?($r.replace(h,s),t._childNodes?(s._index=o,t._childNodes[o]=s):t._firstChild===r&&(t._firstChild=s)):(h!==null&&$r.insertBefore(s,h),t._childNodes?(s._index=o,t._childNodes.splice(o,0,s)):t._firstChild===r&&(t._firstChild=s)),_?(t.modify(),t.doc.mutateMove(s)):t.rooted&&(t.modify(),t.doc.mutateInsert(s))}}},lastModTime:{get:function(){return this._lastModTime||(this._lastModTime=this.doc.modclock),this._lastModTime}},modify:{value:function(){if(this.doc.modclock)for(var e=++this.doc.modclock,t=this;t;t=t.parentElement)t._lastModTime&&(t._lastModTime=e)}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){for(var e,t=this.firstChild;t!==null;t=e)if(e=t.nextSibling,t.normalize&&t.normalize(),t.nodeType===Z.TEXT_NODE){if(t.nodeValue===""){this.removeChild(t);continue}var r=t.previousSibling;r!==null&&r.nodeType===Z.TEXT_NODE&&(r.appendData(t.nodeValue),this.removeChild(t))}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;for(var e="",t=this.firstChild;t!==null;t=t.nextSibling)e+=xs.serializeOne(t,this);return e}},outerHTML:{get:function(){return xs.serializeOne(this,{nodeType:0})},set:j.nyi},ELEMENT_NODE:{value:ve},ATTRIBUTE_NODE:{value:sn},TEXT_NODE:{value:Zr},CDATA_SECTION_NODE:{value:$l},ENTITY_REFERENCE_NODE:{value:Zl},ENTITY_NODE:{value:on},PROCESSING_INSTRUCTION_NODE:{value:fs},COMMENT_NODE:{value:ds},DOCUMENT_NODE:{value:ir},DOCUMENT_TYPE_NODE:{value:Ae},DOCUMENT_FRAGMENT_NODE:{value:lt},NOTATION_NODE:{value:cn},DOCUMENT_POSITION_DISCONNECTED:{value:ln},DOCUMENT_POSITION_PRECEDING:{value:un},DOCUMENT_POSITION_FOLLOWING:{value:xn},DOCUMENT_POSITION_CONTAINS:{value:hs},DOCUMENT_POSITION_CONTAINED_BY:{value:fn},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:dn}})});var bs=N((qf,gs)=>{"use strict";gs.exports=class extends Array{constructor(t){if(super(t&&t.length||0),t)for(var r in t)this[r]=t[r]}item(t){return this[t]||null}}});var _s=N((Hf,Es)=>{"use strict";function Jl(e){return this[e]||null}function eu(e){return e||(e=[]),e.item=Jl,e}Es.exports=eu});var wt=N((Ff,vs)=>{"use strict";var hn;try{hn=bs()}catch{hn=_s()}vs.exports=hn});var Jr=N((Bf,ws)=>{"use strict";ws.exports=ys;var Ts=de(),tu=wt();function ys(){Ts.call(this),this._firstChild=this._childNodes=null}ys.prototype=Object.create(Ts.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?this._childNodes.length===0?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var e=this._childNodes,t;return e?e.length===0?null:e[e.length-1]:(t=this._firstChild,t===null?null:t._previousSibling)}},_ensureChildNodes:{value:function(){if(!this._childNodes){var e=this._firstChild,t=e,r=this._childNodes=new tu;if(e)do r.push(t),t=t._nextSibling;while(t!==e);this._firstChild=null}}},removeChildren:{value:function(){for(var t=this.rooted?this.ownerDocument:null,r=this.firstChild,a;r!==null;)a=r,r=a.nextSibling,t&&t.mutateRemove(a),a.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()}}})});var ea=N(gn=>{"use strict";gn.isValidName=cu;gn.isValidQName=lu;var ru=/^[_:A-Za-z][-.:\w]+$/,au=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,sr="_A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",or="-._A-Za-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0300-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Nt="["+sr+"]["+or+"]*",pn=sr+":",mn=or+":",nu=new RegExp("^["+pn+"]["+mn+"]*$"),iu=new RegExp("^("+Nt+"|"+Nt+":"+Nt+")$"),Ns=/[\uD800-\uDB7F\uDC00-\uDFFF]/,Ss=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,Cs=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;sr+="\uD800-\u{EFC00}-\uDFFF";or+="\uD800-\u{EFC00}-\uDFFF";Nt="["+sr+"]["+or+"]*";pn=sr+":";mn=or+":";var su=new RegExp("^["+pn+"]["+mn+"]*$"),ou=new RegExp("^("+Nt+"|"+Nt+":"+Nt+")$");function cu(e){if(ru.test(e)||nu.test(e))return!0;if(!Ns.test(e)||!su.test(e))return!1;var t=e.match(Ss),r=e.match(Cs);return r!==null&&2*r.length===t.length}function lu(e){if(au.test(e)||iu.test(e))return!0;if(!Ns.test(e)||!ou.test(e))return!1;var t=e.match(Ss),r=e.match(Cs);return r!==null&&2*r.length===t.length}});var En=N(bn=>{"use strict";var As=ne();bn.property=function(e){if(Array.isArray(e.type)){var t=Object.create(null);e.type.forEach(function(s){t[s.value||s]=s.alias||s});var r=e.missing;r===void 0&&(r=null);var a=e.invalid;return a===void 0&&(a=r),{get:function(){var s=this._getattr(e.name);return s===null?r:(s=t[s.toLowerCase()],s!==void 0?s:a!==null?a:s)},set:function(s){this._setattr(e.name,s)}}}else{if(e.type===Boolean)return{get:function(){return this.hasAttribute(e.name)},set:function(s){s?this._setattr(e.name,""):this.removeAttribute(e.name)}};if(e.type===Number||e.type==="long"||e.type==="unsigned long"||e.type==="limited unsigned long with fallback")return uu(e);if(!e.type||e.type===String)return{get:function(){return this._getattr(e.name)||""},set:function(s){e.treatNullAsEmptyString&&s===null&&(s=""),this._setattr(e.name,s)}};if(typeof e.type=="function")return e.type(e.name,e)}throw new Error("Invalid attribute definition")};function uu(e){var t;typeof e.default=="function"?t=e.default:typeof e.default=="number"?t=function(){return e.default}:t=function(){As.assert(!1,typeof e.default)};var r=e.type==="unsigned long",a=e.type==="long",s=e.type==="limited unsigned long with fallback",o=e.min,x=e.max,m=e.setmin;return o===void 0&&(r&&(o=0),a&&(o=-2147483648),s&&(o=1)),x===void 0&&(r||a||s)&&(x=2147483647),{get:function(){var h=this._getattr(e.name),_=e.float?parseFloat(h):parseInt(h,10);if(h===null||!isFinite(_)||o!==void 0&&_<o||x!==void 0&&_>x)return t.call(this);if(r||a||s){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(h))return t.call(this);_=_|0}return _},set:function(h){e.float||(h=Math.floor(h)),m!==void 0&&h<m&&As.IndexSizeError(e.name+" set to "+h),r?h=h<0||h>2147483647?t.call(this):h|0:s?h=h<1||h>2147483647?t.call(this):h|0:a&&(h=h<-2147483648||h>2147483647?t.call(this):h|0),this._setattr(e.name,String(h))}}}bn.registerChangeHandler=function(e,t,r){var a=e.prototype;Object.prototype.hasOwnProperty.call(a,"_attributeChangeHandlers")||(a._attributeChangeHandlers=Object.create(a._attributeChangeHandlers||null)),a._attributeChangeHandlers[t]=r}});var Ls=N((Vf,Ds)=>{"use strict";Ds.exports=ks;var xu=de();function ks(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}ks.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(e){return this.checkcache(),!this.done&&e>=this.cache.length&&this.traverse(),this.cache[e]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var e=this.cache.length-1;e>=0;e--)this[e]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(e){e!==void 0&&e++;for(var t;(t=this.next())!==null;)if(this[this.cache.length]=t,this.cache.push(t),e&&this.cache.length===e)return;this.done=!0}},next:{value:function(){var e=this.cache.length===0?this.root:this.cache[this.cache.length-1],t;for(e.nodeType===xu.DOCUMENT_NODE?t=e.documentElement:t=e.nextElement(this.root);t;){if(this.filter(t))return t;t=t.nextElement(this.root)}return null}}})});var vn=N((jf,Is)=>{"use strict";var _n=ne();Is.exports=Rs;function Rs(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(Rs.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=It(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){e=String(e);var t=It(this);return t.indexOf(e)>-1}},add:{value:function(){for(var e=It(this),t=0,r=arguments.length;t<r;t++){var a=cr(arguments[t]);e.indexOf(a)<0&&e.push(a)}this._update(e)}},remove:{value:function(){for(var e=It(this),t=0,r=arguments.length;t<r;t++){var a=cr(arguments[t]),s=e.indexOf(a);s>-1&&e.splice(s,1)}this._update(e)}},toggle:{value:function(t,r){return t=cr(t),this.contains(t)?r===void 0||r===!1?(this.remove(t),!1):!0:r===void 0||r===!0?(this.add(t),!0):!1}},replace:{value:function(t,r){String(r)===""&&_n.SyntaxError(),t=cr(t),r=cr(r);var a=It(this),s=a.indexOf(t);if(s<0)return!1;var o=a.indexOf(r);return o<0?a[s]=r:s<o?(a[s]=r,a.splice(o,1)):a.splice(s,1),this._update(a),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(e){this._setString(e),this._update()}},_update:{value:function(e){e?(Ms(this,e),this._setString(e.join(" ").trim())):Ms(this,It(this)),this._lastStringValue=this._getString()}}});function Ms(e,t){var r=e._length,a;for(e._length=t.length,a=0;a<t.length;a++)e[a]=t[a];for(;a<r;a++)e[a]=void 0}function cr(e){return e=String(e),e===""&&_n.SyntaxError(),/[ \t\r\n\f]/.test(e)&&_n.InvalidCharacterError(),e}function fu(e){for(var t=e._length,r=Array(t),a=0;a<t;a++)r[a]=e[a];return r}function It(e){var t=e._getString();if(t===e._lastStringValue)return fu(e);var r=t.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,"");if(r==="")return[];var a=Object.create(null);return r.split(/[ \t\r\n\f]+/g).filter(function(s){var o="$"+s;return a[o]?!1:(a[o]=!0,!0)})}});var na=N((Ht,Ps)=>{"use strict";var ta=Object.create(null,{location:{get:function(){throw new Error("window.location is not supported.")}}}),du=function(e,t){return e.compareDocumentPosition(t)},hu=function(e,t){return du(e,t)&2?1:-1},aa=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},qt=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},pu=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},mu=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},Ot=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},Os=function(e){if(!e)return e;var t=e[0];return t==='"'||t==="'"?(e[e.length-1]===t?e=e.slice(1,-1):e=e.slice(1),e.replace(k.str_escape,function(r){var a=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(r);if(!a)return r.slice(1);if(a[2])return"";var s=parseInt(a[1],16);return String.fromCodePoint?String.fromCodePoint(s):String.fromCharCode(s)})):k.ident.test(e)?ut(e):e},ut=function(e){return e.replace(k.escape,function(t){var r=/^\\([0-9A-Fa-f]+)/.exec(t);if(!r)return t[1];var a=parseInt(r[1],16);return String.fromCodePoint?String.fromCodePoint(a):String.fromCharCode(a)})},gu=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:function(e,t){for(var r=this.length;r--;)if(this[r]===t)return r;return-1}})(),Hs=function(e,t){var r=k.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(r)},Te=function(e,t,r){return e=e.source,e=e.replace(t,r.source||r),new RegExp(e)},qs=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",t).join("/")},bu=function(e,t){var r=e.replace(/\s+/g,""),a;return r==="even"?r="2n+0":r==="odd"?r="2n+1":r.indexOf("n")===-1&&(r="0n"+r),a=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(r),{group:a[1]==="-"?-(a[2]||1):+(a[2]||1),offset:a[4]?a[3]==="-"?-a[4]:+a[4]:0}},Tn=function(e,t,r){var a=bu(e),s=a.group,o=a.offset,x=r?mu:pu,m=r?qt:aa;return function(h){if(Ot(h))for(var _=x(h.parentNode),v=0;_;){if(t(_,h)&&v++,_===h)return v-=o,s&&v?v%s===0&&v<0==s<0:!v;_=m(_)}}},ce={"*":(function(){return function(){return!0}})(),type:function(e){return e=e.toLowerCase(),function(t){return t.nodeName.toLowerCase()===e}},attr:function(e,t,r,a){return t=Fs[t],function(s){var o;switch(e){case"for":o=s.htmlFor;break;case"class":o=s.className,o===""&&s.getAttribute("class")==null&&(o=null);break;case"href":case"src":o=s.getAttribute(e,2);break;case"title":o=s.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(s.getAttribute){o=s.getAttribute(e);break}default:if(s.hasAttribute&&!s.hasAttribute(e))break;o=s[e]!=null?s[e]:s.getAttribute&&s.getAttribute(e);break}if(o!=null)return o=o+"",a&&(o=o.toLowerCase(),r=r.toLowerCase()),t(o,r)}},":first-child":function(e){return!qt(e)&&Ot(e)},":last-child":function(e){return!aa(e)&&Ot(e)},":only-child":function(e){return!qt(e)&&!aa(e)&&Ot(e)},":nth-child":function(e,t){return Tn(e,function(){return!0},t)},":nth-last-child":function(e){return ce[":nth-child"](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=wn(e);return function(r){return!t(r)}},":first-of-type":function(e){if(Ot(e)){for(var t=e.nodeName;e=qt(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(Ot(e)){for(var t=e.nodeName;e=aa(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return ce[":first-of-type"](e)&&ce[":last-of-type"](e)},":nth-of-type":function(e,t){return Tn(e,function(r,a){return r.nodeName===a.nodeName},t)},":nth-last-of-type":function(e){return ce[":nth-of-type"](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!ce[":checked"](e)},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===ta.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return wn(e)},":matches":function(e){return ce[":is"](e)},":nth-match":function(e,t){var r=e.split(/\s*,\s*/),a=r.shift(),s=wn(r.join(","));return Tn(a,s,t)},":nth-last-match":function(e){return ce[":nth-match"](e,!0)},":links-here":function(e){return e+""==ta.location+""},":lang":function(e){return function(t){for(;t;){if(t.lang)return t.lang.indexOf(e)===0;t=t.parentNode}}},":dir":function(e){return function(t){for(;t;){if(t.dir)return t.dir===e;t=t.parentNode}}},":scope":function(e,t){var r=t||e.ownerDocument;return r.nodeType===9?e===r.documentElement:e===r},":any-link":function(e){return typeof e.href=="string"},":local-link":function(e){if(e.nodeName)return e.href&&e.host===ta.location.host;var t=+e+1;return function(r){if(r.href){var a=ta.location+"",s=r+"";return qs(a,t)===qs(s,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!ce[":valid"](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!ce[":in-range"](e)},":required":function(e){return!!e.required},":optional":function(e){return!e.required},":read-only":function(e){if(e.readOnly)return!0;var t=e.getAttribute("contenteditable"),r=e.contentEditable,a=e.nodeName.toLowerCase();return a=a!=="input"&&a!=="textarea",(a||e.disabled)&&t==null&&r!=="true"},":read-write":function(e){return!ce[":read-only"](e)},":hover":function(){throw new Error(":hover is not supported.")},":active":function(){throw new Error(":active is not supported.")},":link":function(){throw new Error(":link is not supported.")},":visited":function(){throw new Error(":visited is not supported.")},":column":function(){throw new Error(":column is not supported.")},":nth-column":function(){throw new Error(":nth-column is not supported.")},":nth-last-column":function(){throw new Error(":nth-last-column is not supported.")},":current":function(){throw new Error(":current is not supported.")},":past":function(){throw new Error(":past is not supported.")},":future":function(){throw new Error(":future is not supported.")},":contains":function(e){return function(t){var r=t.innerText||t.textContent||t.value||"";return r.indexOf(e)!==-1}},":has":function(e){return function(t){return Bs(e,t).length>0}}},Fs={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var r,a,s,o;for(a=0;;a=r+1){if(r=e.indexOf(t,a),r===-1)return!1;if(s=e[r-1],o=e[r+t.length],(!s||s===" ")&&(!o||o===" "))return!0}},"|=":function(e,t){var r=e.indexOf(t),a;if(r===0)return a=e[r+t.length],a==="-"||!a},"^=":function(e,t){return e.indexOf(t)===0},"$=":function(e,t){var r=e.lastIndexOf(t);return r!==-1&&r+t.length===e.length},"!=":function(e,t){return e!==t}},lr={" ":function(e){return function(t){for(;t=t.parentNode;)if(e(t))return t}},">":function(e){return function(t){if(t=t.parentNode)return e(t)&&t}},"+":function(e){return function(t){if(t=qt(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=qt(t);)if(e(t))return t}},noop:function(e){return function(t){return e(t)&&t}},ref:function(e,t){var r;function a(s){for(var o=s.ownerDocument,x=o.getElementsByTagName("*"),m=x.length;m--;)if(r=x[m],a.test(s))return r=null,!0;r=null}return a.combinator=function(s){if(!(!r||!r.getAttribute)){var o=r.getAttribute(t)||"";if(o[0]==="#"&&(o=o.substring(1)),o===s.id&&e(r))return r}},a}},k={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};k.cssid=Te(k.cssid,"nonascii",k.nonascii);k.cssid=Te(k.cssid,"escape",k.escape);k.qname=Te(k.qname,"cssid",k.cssid);k.simple=Te(k.simple,"cssid",k.cssid);k.ref=Te(k.ref,"cssid",k.cssid);k.attr=Te(k.attr,"cssid",k.cssid);k.pseudo=Te(k.pseudo,"cssid",k.cssid);k.inside=Te(k.inside,`[^"'>]*`,k.inside);k.attr=Te(k.attr,"inside",Hs("\\[","\\]"));k.pseudo=Te(k.pseudo,"inside",Hs("\\(","\\)"));k.simple=Te(k.simple,"pseudo",k.pseudo);k.simple=Te(k.simple,"attr",k.attr);k.ident=Te(k.ident,"cssid",k.cssid);k.str_escape=Te(k.str_escape,"escape",k.escape);var ur=function(e){for(var t=e.replace(/^\s+|\s+$/g,""),r,a=[],s=[],o,x,m,h,_;t;){if(m=k.qname.exec(t))t=t.substring(m[0].length),x=ut(m[1]),s.push(ra(x,!0));else if(m=k.simple.exec(t))t=t.substring(m[0].length),x="*",s.push(ra(x,!0)),s.push(ra(m));else throw new SyntaxError("Invalid selector.");for(;m=k.simple.exec(t);)t=t.substring(m[0].length),s.push(ra(m));if(t[0]==="!"&&(t=t.substring(1),o=_u(),o.qname=x,s.push(o.simple)),m=k.ref.exec(t)){t=t.substring(m[0].length),_=lr.ref(yn(s),ut(m[1])),a.push(_.combinator),s=[];continue}if(m=k.combinator.exec(t)){if(t=t.substring(m[0].length),h=m[1]||m[2]||m[3],h===","){a.push(lr.noop(yn(s)));break}}else h="noop";if(!lr[h])throw new SyntaxError("Bad combinator.");a.push(lr[h](yn(s))),s=[]}return r=Eu(a),r.qname=x,r.sel=t,o&&(o.lname=r.qname,o.test=r,o.qname=o.qname,o.sel=r.sel,r=o),_&&(_.test=r,_.qname=r.qname,_.sel=r.sel,r=_),r},ra=function(e,t){if(t)return e==="*"?ce["*"]:ce.type(e);if(e[1])return e[1][0]==="."?ce.attr("class","~=",ut(e[1].substring(1)),!1):ce.attr("id","=",ut(e[1].substring(1)),!1);if(e[2])return e[3]?ce[ut(e[2])](Os(e[3])):ce[ut(e[2])];if(e[4]){var r=e[6],a=/["'\s]\s*I$/i.test(r);return a&&(r=r.replace(/\s*I$/i,"")),ce.attr(ut(e[4]),e[5]||"-",Os(r),a)}throw new SyntaxError("Unknown Selector.")},yn=function(e){var t=e.length,r;return t<2?e[0]:function(a){if(a){for(r=0;r<t;r++)if(!e[r](a))return;return!0}}},Eu=function(e){return e.length<2?function(t){return!!e[0](t)}:function(t){for(var r=e.length;r--;)if(!(t=e[r](t)))return;return!0}},_u=function(){var e;function t(r){for(var a=r.ownerDocument,s=a.getElementsByTagName(t.lname),o=s.length;o--;)if(t.test(s[o])&&e===r)return e=null,!0;e=null}return t.simple=function(r){return e=r,!0},t},wn=function(e){for(var t=ur(e),r=[t];t.sel;)t=ur(t.sel),r.push(t);return r.length<2?t:function(a){for(var s=r.length,o=0;o<s;o++)if(r[o](a))return!0}},Bs=function(e,t){for(var r=[],a=ur(e),s=t.getElementsByTagName(a.qname),o=0,x;x=s[o++];)a(x)&&r.push(x);if(a.sel){for(;a.sel;)for(a=ur(a.sel),s=t.getElementsByTagName(a.qname),o=0;x=s[o++];)a(x)&&gu.call(r,x)===-1&&r.push(x);r.sort(hu)}return r};Ps.exports=Ht=function(e,t){var r,a;if(t.nodeType!==11&&e.indexOf(" ")===-1){if(e[0]==="#"&&t.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(e)&&t.doc._hasMultipleElementsWithId&&(r=e.substring(1),!t.doc._hasMultipleElementsWithId(r)))return a=t.doc.getElementById(r),a?[a]:[];if(e[0]==="."&&/^\.\w+$/.test(e))return t.getElementsByClassName(e.substring(1));if(/^\w+$/.test(e))return t.getElementsByTagName(e)}return Bs(e,t)};Ht.selectors=ce;Ht.operators=Fs;Ht.combinators=lr;Ht.matches=function(e,t){var r={sel:t};do if(r=ur(r.sel),r(e))return!0;while(r.sel);return!1}});var ia=N((Gf,Us)=>{"use strict";var vu=de(),Tu=an(),Nn=function(e,t){for(var r=e.createDocumentFragment(),a=0;a<t.length;a++){var s=t[a],o=s instanceof vu;r.appendChild(o?s:e.createTextNode(String(s)))}return r},yu={after:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,a=this.nextSibling;if(r!==null){for(;a&&t.some(function(o){return o===a});)a=a.nextSibling;var s=Nn(this.doc,t);r.insertBefore(s,a)}}},before:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,a=this.previousSibling;if(r!==null){for(;a&&t.some(function(x){return x===a});)a=a.previousSibling;var s=Nn(this.doc,t),o=a?a.nextSibling:r.firstChild;r.insertBefore(s,o)}}},remove:{value:function(){this.parentNode!==null&&(this.doc&&(this.doc._preremoveNodeIterators(this),this.rooted&&this.doc.mutateRemove(this)),this._remove(),this.parentNode=null)}},_remove:{value:function(){var t=this.parentNode;t!==null&&(t._childNodes?t._childNodes.splice(this.index,1):t._firstChild===this&&(this._nextSibling===this?t._firstChild=null:t._firstChild=this._nextSibling),Tu.remove(this),t.modify())}},replaceWith:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,a=this.nextSibling;if(r!==null){for(;a&&t.some(function(o){return o===a});)a=a.nextSibling;var s=Nn(this.doc,t);this.parentNode===r?r.replaceChild(s,this):r.insertBefore(s,a)}}}};Us.exports=yu});var Sn=N((zf,js)=>{"use strict";var Vs=de(),wu={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===Vs.ELEMENT_NODE)return e}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var e=this.previousSibling;e!==null;e=e.previousSibling)if(e.nodeType===Vs.ELEMENT_NODE)return e}return null}}};js.exports=wu});var Cn=N((Wf,zs)=>{"use strict";zs.exports=Gs;var Ft=ne();function Gs(e){this.element=e}Object.defineProperties(Gs.prototype,{length:{get:Ft.shouldOverride},item:{value:Ft.shouldOverride},getNamedItem:{value:function(t){return this.element.getAttributeNode(t)}},getNamedItemNS:{value:function(t,r){return this.element.getAttributeNodeNS(t,r)}},setNamedItem:{value:Ft.nyi},setNamedItemNS:{value:Ft.nyi},removeNamedItem:{value:function(t){var r=this.element.getAttributeNode(t);if(r)return this.element.removeAttribute(t),r;Ft.NotFoundError()}},removeNamedItemNS:{value:function(t,r){var a=this.element.getAttributeNodeNS(t,r);if(a)return this.element.removeAttributeNS(t,r),a;Ft.NotFoundError()}}})});var Pt=N((Xf,Qs)=>{"use strict";Qs.exports=xt;var An=ea(),ee=ne(),Fe=ee.NAMESPACE,oa=En(),Le=de(),kn=wt(),Nu=nn(),sa=Ls(),Bt=Yr(),Su=vn(),Dn=na(),Xs=Jr(),Cu=ia(),Au=Sn(),Ks=Cn(),Ws=Object.create(null);function xt(e,t,r,a){Xs.call(this),this.nodeType=Le.ELEMENT_NODE,this.ownerDocument=e,this.localName=t,this.namespaceURI=r,this.prefix=a,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function Ln(e,t){if(e.nodeType===Le.TEXT_NODE)t.push(e._data);else for(var r=0,a=e.childNodes.length;r<a;r++)Ln(e.childNodes[r],t)}xt.prototype=Object.create(Xs.prototype,{isHTML:{get:function(){return this.namespaceURI===Fe.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var t;if(this.prefix===null?t=this.localName:t=this.prefix+":"+this.localName,this.isHTML){var r=Ws[t];r||(Ws[t]=r=ee.toASCIIUpperCase(t)),t=r}this._tagName=t}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var e=[];return Ln(this,e),e.join("")},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return Ln(this,e),e.join("").replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerHTML:{get:function(){return this.serialize()},set:ee.nyi},outerHTML:{get:function(){return Nu.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,r=this.parentNode;if(r!==null){r.nodeType===Le.DOCUMENT_NODE&&ee.NoModificationAllowedError(),r.nodeType===Le.DOCUMENT_FRAGMENT_NODE&&(r=r.ownerDocument.createElement("body"));var a=t.implementation.mozHTMLParser(t._address,r);a.parse(e===null?"":String(e),!0),this.replaceWith(a._asDocumentFragment())}}},_insertAdjacent:{value:function(t,r){var a=!1;switch(t){case"beforebegin":a=!0;case"afterend":var s=this.parentNode;return s===null?null:s.insertBefore(r,a?this:this.nextSibling);case"afterbegin":a=!0;case"beforeend":return this.insertBefore(r,a?this.firstChild:null);default:return ee.SyntaxError()}}},insertAdjacentElement:{value:function(t,r){if(r.nodeType!==Le.ELEMENT_NODE)throw new TypeError("not an element");return t=ee.toASCIILowerCase(String(t)),this._insertAdjacent(t,r)}},insertAdjacentText:{value:function(t,r){var a=this.ownerDocument.createTextNode(r);t=ee.toASCIILowerCase(String(t)),this._insertAdjacent(t,a)}},insertAdjacentHTML:{value:function(t,r){t=ee.toASCIILowerCase(String(t)),r=String(r);var a;switch(t){case"beforebegin":case"afterend":a=this.parentNode,(a===null||a.nodeType===Le.DOCUMENT_NODE)&&ee.NoModificationAllowedError();break;case"afterbegin":case"beforeend":a=this;break;default:ee.SyntaxError()}(!(a instanceof xt)||a.ownerDocument.isHTML&&a.localName==="html"&&a.namespaceURI===Fe.HTML)&&(a=a.ownerDocument.createElementNS(Fe.HTML,"body"));var s=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,a);s.parse(r,!0),this._insertAdjacent(t,s._asDocumentFragment())}},children:{get:function(){return this._children||(this._children=new Ys(this)),this._children}},attributes:{get:function(){return this._attributes||(this._attributes=new Rn(this)),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===Le.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===Le.ELEMENT_NODE)return e;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(e){e||(e=this.ownerDocument.documentElement);var t=this.firstElementChild;if(!t){if(this===e)return null;t=this.nextElementSibling}if(t)return t;for(var r=this.parentElement;r&&r!==e;r=r.parentElement)if(t=r.nextElementSibling,t)return t;return null}},getElementsByTagName:{value:function(t){var r;return t?(t==="*"?r=function(){return!0}:this.isHTML?r=ku(t):r=Mn(t),new sa(this,r)):new kn}},getElementsByTagNameNS:{value:function(t,r){var a;return t==="*"&&r==="*"?a=function(){return!0}:t==="*"?a=Mn(r):r==="*"?a=Du(t):a=Lu(t,r),new sa(this,a)}},getElementsByClassName:{value:function(t){if(t=String(t).trim(),t===""){var r=new kn;return r}return t=t.split(/[ \t\r\n\f]+/),new sa(this,Mu(t))}},getElementsByName:{value:function(t){return new sa(this,Ru(String(t)))}},clone:{value:function(){var t;this.namespaceURI!==Fe.HTML||this.prefix||!this.ownerDocument.isHTML?t=this.ownerDocument.createElementNS(this.namespaceURI,this.prefix!==null?this.prefix+":"+this.localName:this.localName):t=this.ownerDocument.createElement(this.localName);for(var r=0,a=this._attrKeys.length;r<a;r++){var s=this._attrKeys[r],o=this._attrsByLName[s],x=o.cloneNode();x._setOwnerElement(t),t._attrsByLName[s]=x,t._addQName(x)}return t._attrKeys=this._attrKeys.concat(),t}},isEqual:{value:function(t){if(this.localName!==t.localName||this.namespaceURI!==t.namespaceURI||this.prefix!==t.prefix||this._numattrs!==t._numattrs)return!1;for(var r=0,a=this._numattrs;r<a;r++){var s=this._attr(r);if(!t.hasAttributeNS(s.namespaceURI,s.localName)||t.getAttributeNS(s.namespaceURI,s.localName)!==s.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(t,r){if(this.namespaceURI&&this.namespaceURI===t&&this.prefix!==null&&r.lookupNamespaceURI(this.prefix)===t)return this.prefix;for(var a=0,s=this._numattrs;a<s;a++){var o=this._attr(a);if(o.prefix==="xmlns"&&o.value===t&&r.lookupNamespaceURI(o.localName)===t)return o.localName}var x=this.parentElement;return x?x._lookupNamespacePrefix(t,r):null}},lookupNamespaceURI:{value:function(t){if((t===""||t===void 0)&&(t=null),this.namespaceURI!==null&&this.prefix===t)return this.namespaceURI;for(var r=0,a=this._numattrs;r<a;r++){var s=this._attr(r);if(s.namespaceURI===Fe.XMLNS&&(s.prefix==="xmlns"&&s.localName===t||t===null&&s.prefix===null&&s.localName==="xmlns"))return s.value||null}var o=this.parentElement;return o?o.lookupNamespaceURI(t):null}},getAttribute:{value:function(t){var r=this.getAttributeNode(t);return r?r.value:null}},getAttributeNS:{value:function(t,r){var a=this.getAttributeNodeNS(t,r);return a?a.value:null}},getAttributeNode:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t));var r=this._attrsByQName[t];return r?(Array.isArray(r)&&(r=r[0]),r):null}},getAttributeNodeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var a=this._attrsByLName[t+"|"+r];return a||null}},hasAttribute:{value:function(t){return t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t)),this._attrsByQName[t]!==void 0}},hasAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var a=t+"|"+r;return this._attrsByLName[a]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(t,r){t=String(t),An.isValidName(t)||ee.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t));var a=this._attrsByQName[t];return a===void 0?r===void 0||r===!0?(this._setAttribute(t,""),!0):!1:r===void 0||r===!1?(this.removeAttribute(t),!1):!0}},_setAttribute:{value:function(t,r){var a=this._attrsByQName[t],s;a?Array.isArray(a)&&(a=a[0]):(a=this._newattr(t),s=!0),a.value=r,this._attributes&&(this._attributes[t]=a),s&&this._newattrhook&&this._newattrhook(t,r)}},setAttribute:{value:function(t,r){t=String(t),An.isValidName(t)||ee.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t)),this._setAttribute(t,String(r))}},_setAttributeNS:{value:function(t,r,a){var s=r.indexOf(":"),o,x;s<0?(o=null,x=r):(o=r.substring(0,s),x=r.substring(s+1)),(t===""||t===void 0)&&(t=null);var m=(t===null?"":t)+"|"+x,h=this._attrsByLName[m],_;h||(h=new xr(this,x,o,t),_=!0,this._attrsByLName[m]=h,this._attributes&&(this._attributes[this._attrKeys.length]=h),this._attrKeys.push(m),this._addQName(h)),h.value=a,_&&this._newattrhook&&this._newattrhook(r,a)}},setAttributeNS:{value:function(t,r,a){t=t==null||t===""?null:String(t),r=String(r),An.isValidQName(r)||ee.InvalidCharacterError();var s=r.indexOf(":"),o=s<0?null:r.substring(0,s);(o!==null&&t===null||o==="xml"&&t!==Fe.XML||(r==="xmlns"||o==="xmlns")&&t!==Fe.XMLNS||t===Fe.XMLNS&&!(r==="xmlns"||o==="xmlns"))&&ee.NamespaceError(),this._setAttributeNS(t,r,String(a))}},setAttributeNode:{value:function(t){if(t.ownerElement!==null&&t.ownerElement!==this)throw new Bt(Bt.INUSE_ATTRIBUTE_ERR);var r=null,a=this._attrsByQName[t.name];if(a){if(Array.isArray(a)||(a=[a]),a.some(function(s){return s===t}))return t;if(t.ownerElement!==null)throw new Bt(Bt.INUSE_ATTRIBUTE_ERR);a.forEach(function(s){this.removeAttributeNode(s)},this),r=a[0]}return this.setAttributeNodeNS(t),r}},setAttributeNodeNS:{value:function(t){if(t.ownerElement!==null)throw new Bt(Bt.INUSE_ATTRIBUTE_ERR);var r=t.namespaceURI,a=(r===null?"":r)+"|"+t.localName,s=this._attrsByLName[a];return s&&this.removeAttributeNode(s),t._setOwnerElement(this),this._attrsByLName[a]=t,this._attributes&&(this._attributes[this._attrKeys.length]=t),this._attrKeys.push(a),this._addQName(t),this._newattrhook&&this._newattrhook(t.name,t.value),s||null}},removeAttribute:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=ee.toASCIILowerCase(t));var r=this._attrsByQName[t];if(r){Array.isArray(r)?r.length>2?r=r.shift():(this._attrsByQName[t]=r[1],r=r[0]):this._attrsByQName[t]=void 0;var a=r.namespaceURI,s=(a===null?"":a)+"|"+r.localName;this._attrsByLName[s]=void 0;var o=this._attrKeys.indexOf(s);this._attributes&&(Array.prototype.splice.call(this._attributes,o,1),this._attributes[t]=void 0),this._attrKeys.splice(o,1);var x=r.onchange;r._setOwnerElement(null),x&&x.call(r,this,r.localName,r.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(r)}}},removeAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var a=t+"|"+r,s=this._attrsByLName[a];if(s){this._attrsByLName[a]=void 0;var o=this._attrKeys.indexOf(a);this._attributes&&Array.prototype.splice.call(this._attributes,o,1),this._attrKeys.splice(o,1),this._removeQName(s);var x=s.onchange;s._setOwnerElement(null),x&&x.call(s,this,s.localName,s.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(s)}}},removeAttributeNode:{value:function(t){var r=t.namespaceURI,a=(r===null?"":r)+"|"+t.localName;return this._attrsByLName[a]!==t&&ee.NotFoundError(),this.removeAttributeNS(r,t.localName),t}},getAttributeNames:{value:function(){var t=this;return this._attrKeys.map(function(r){return t._attrsByLName[r].name})}},_getattr:{value:function(t){var r=this._attrsByQName[t];return r?r.value:null}},_setattr:{value:function(t,r){var a=this._attrsByQName[t],s;a||(a=this._newattr(t),s=!0),a.value=String(r),this._attributes&&(this._attributes[t]=a),s&&this._newattrhook&&this._newattrhook(t,r)}},_newattr:{value:function(t){var r=new xr(this,t,null,null),a="|"+t;return this._attrsByQName[t]=r,this._attrsByLName[a]=r,this._attributes&&(this._attributes[this._attrKeys.length]=r),this._attrKeys.push(a),r}},_addQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];r?Array.isArray(r)?r.push(e):this._attrsByQName[t]=[r,e]:this._attrsByQName[t]=e,this._attributes&&(this._attributes[t]=e)}},_removeQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];if(Array.isArray(r)){var a=r.indexOf(e);ee.assert(a!==-1),r.length===2?(this._attrsByQName[t]=r[1-a],this._attributes&&(this._attributes[t]=this._attrsByQName[t])):(r.splice(a,1),this._attributes&&this._attributes[t]===e&&(this._attributes[t]=r[0]))}else ee.assert(r===e),this._attrsByQName[t]=void 0,this._attributes&&(this._attributes[t]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(e){return this._attrsByLName[this._attrKeys[e]]}},id:oa.property({name:"id"}),className:oa.property({name:"class"}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new Su(function(){return e.className||""},function(r){e.className=r});return this._classList=t,t},set:function(e){this.className=e}},matches:{value:function(e){return Dn.matches(this,e)}},closest:{value:function(e){var t=this;do{if(t.matches&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===Le.ELEMENT_NODE);return null}},querySelector:{value:function(e){return Dn(e,this)[0]}},querySelectorAll:{value:function(e){var t=Dn(e,this);return t.item?t:new kn(t)}}});Object.defineProperties(xt.prototype,Cu);Object.defineProperties(xt.prototype,Au);oa.registerChangeHandler(xt,"id",function(e,t,r,a){e.rooted&&(r&&e.ownerDocument.delId(r,e),a&&e.ownerDocument.addId(a,e))});oa.registerChangeHandler(xt,"class",function(e,t,r,a){e._classList&&e._classList._update()});function xr(e,t,r,a,s){this.localName=t,this.prefix=r===null||r===""?null:""+r,this.namespaceURI=a===null||a===""?null:""+a,this.data=s,this._setOwnerElement(e)}xr.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(t){this._ownerElement=t,this.prefix===null&&this.namespaceURI===null&&t?this.onchange=t._attributeChangeHandlers[this.localName]:this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(e){var t=this.data;e=e===void 0?"":e+"",e!==t&&(this.data=e,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,t,e),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,t)))}},cloneNode:{value:function(t){return new xr(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return Le.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(e){this.value=e}},textContent:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}},innerText:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}}});xt._Attr=xr;function Rn(e){Ks.call(this,e);for(var t in e._attrsByQName)this[t]=e._attrsByQName[t];for(var r=0;r<e._attrKeys.length;r++)this[r]=e._attrsByLName[e._attrKeys[r]]}Rn.prototype=Object.create(Ks.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(e){return e=e>>>0,e>=this.length?null:this.element._attrsByLName[this.element._attrKeys[e]]}}});globalThis.Symbol?.iterator&&(Rn.prototype[globalThis.Symbol.iterator]=function(){var e=0,t=this.length,r=this;return{next:function(){return e<t?{value:r.item(e++)}:{done:!0}}}});function Ys(e){this.element=e,this.updateCache()}Ys.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(t){return this.updateCache(),this.childrenByNumber[t]||null}},namedItem:{value:function(t){return this.updateCache(),this.childrenByName[t]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var t=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;for(var r=this.childrenByNumber&&this.childrenByNumber.length||0,a=0;a<r;a++)this[a]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var s=this.element.firstChild;s!==null;s=s.nextSibling)if(s.nodeType===Le.ELEMENT_NODE){this[this.childrenByNumber.length]=s,this.childrenByNumber.push(s);var o=s.getAttribute("id");o&&!this.childrenByName[o]&&(this.childrenByName[o]=s);var x=s.getAttribute("name");x&&this.element.namespaceURI===Fe.HTML&&t.test(this.element.localName)&&!this.childrenByName[x]&&(this.childrenByName[o]=s)}}}}});function Mn(e){return function(t){return t.localName===e}}function ku(e){var t=ee.toASCIILowerCase(e);return t===e?Mn(e):function(r){return r.isHTML?r.localName===t:r.localName===e}}function Du(e){return function(t){return t.namespaceURI===e}}function Lu(e,t){return function(r){return r.namespaceURI===e&&r.localName===t}}function Mu(e){return function(t){return e.every(function(r){return t.classList.contains(r)})}}function Ru(e){return function(t){return t.namespaceURI!==Fe.HTML?!1:t.getAttribute("name")===e}}});var In=N((Kf,t0)=>{"use strict";t0.exports=e0;var Zs=de(),Iu=wt(),Js=ne(),$s=Js.HierarchyRequestError,Ou=Js.NotFoundError;function e0(){Zs.call(this)}e0.prototype=Object.create(Zs.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");$s()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");$s()}},removeChild:{value:function(e){if(!e.nodeType)throw new TypeError("not a node");Ou()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new Iu),this._childNodes}}})});var fr=N((Yf,n0)=>{"use strict";n0.exports=ca;var a0=In(),r0=ne(),qu=ia(),Hu=Sn();function ca(){a0.call(this)}ca.prototype=Object.create(a0.prototype,{substringData:{value:function(t,r){if(arguments.length<2)throw new TypeError("Not enough arguments");return t=t>>>0,r=r>>>0,(t>this.data.length||t<0||r<0)&&r0.IndexSizeError(),this.data.substring(t,t+r)}},appendData:{value:function(t){if(arguments.length<1)throw new TypeError("Not enough arguments");this.data+=String(t)}},insertData:{value:function(t,r){return this.replaceData(t,0,r)}},deleteData:{value:function(t,r){return this.replaceData(t,r,"")}},replaceData:{value:function(t,r,a){var s=this.data,o=s.length;t=t>>>0,r=r>>>0,a=String(a),(t>o||t<0)&&r0.IndexSizeError(),t+r>o&&(r=o-t);var x=s.substring(0,t),m=s.substring(t+r);this.data=x+a+m}},isEqual:{value:function(t){return this._data===t._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(ca.prototype,qu);Object.defineProperties(ca.prototype,Hu)});var qn=N((Qf,c0)=>{"use strict";c0.exports=On;var i0=ne(),s0=de(),o0=fr();function On(e,t){o0.call(this),this.nodeType=s0.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var dr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),e!==this._data&&(this._data=e,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};On.prototype=Object.create(o0.prototype,{nodeName:{value:"#text"},nodeValue:dr,textContent:dr,innerText:dr,data:{get:dr.get,set:function(e){dr.set.call(this,e===null?"":String(e))}},splitText:{value:function(t){(t>this._data.length||t<0)&&i0.IndexSizeError();var r=this._data.substring(t),a=this.ownerDocument.createTextNode(r);this.data=this.data.substring(0,t);var s=this.parentNode;return s!==null&&s.insertBefore(a,this.nextSibling),a}},wholeText:{get:function(){for(var t=this.textContent,r=this.nextSibling;r&&r.nodeType===s0.TEXT_NODE;r=r.nextSibling)t+=r.textContent;return t}},replaceWholeText:{value:i0.nyi},clone:{value:function(){return new On(this.ownerDocument,this._data)}}})});var Fn=N(($f,u0)=>{"use strict";u0.exports=Hn;var Fu=de(),l0=fr();function Hn(e,t){l0.call(this),this.nodeType=Fu.COMMENT_NODE,this.ownerDocument=e,this._data=t}var hr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Hn.prototype=Object.create(l0.prototype,{nodeName:{value:"#comment"},nodeValue:hr,textContent:hr,innerText:hr,data:{get:hr.get,set:function(e){hr.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Hn(this.ownerDocument,this._data)}}})});var Pn=N((Zf,d0)=>{"use strict";d0.exports=Bn;var Bu=de(),Pu=wt(),f0=Jr(),la=Pt(),Uu=na(),x0=ne();function Bn(e){f0.call(this),this.nodeType=Bu.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}Bn.prototype=Object.create(f0.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(la.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(la.prototype,"innerText"),querySelector:{value:function(e){var t=this.querySelectorAll(e);return t.length?t[0]:null}},querySelectorAll:{value:function(e){var t=Object.create(this);t.isHTML=!0,t.getElementsByTagName=la.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(la.prototype,"firstElementChild").get;var r=Uu(e,t);return r.item?r:new Pu(r)}},clone:{value:function(){return new Bn(this.ownerDocument)}},isEqual:{value:function(t){return!0}},innerHTML:{get:function(){return this.serialize()},set:x0.nyi},outerHTML:{get:function(){return this.serialize()},set:x0.nyi}})});var Vn=N((Jf,p0)=>{"use strict";p0.exports=Un;var Vu=de(),h0=fr();function Un(e,t,r){h0.call(this),this.nodeType=Vu.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=r}var pr={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Un.prototype=Object.create(h0.prototype,{nodeName:{get:function(){return this.target}},nodeValue:pr,textContent:pr,innerText:pr,data:{get:pr.get,set:function(e){pr.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Un(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(t){return this.target===t.target&&this._data===t._data}}})});var mr=N((ed,m0)=>{"use strict";var jn={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};m0.exports=jn.constructor=jn.prototype=jn});var zn=N((rd,b0)=>{"use strict";var td=b0.exports={nextSkippingChildren:ju,nextAncestorSibling:Gn,next:Gu,previous:zu,deepLastChild:g0};function ju(e,t){return e===t?null:e.nextSibling!==null?e.nextSibling:Gn(e,t)}function Gn(e,t){for(e=e.parentNode;e!==null;e=e.parentNode){if(e===t)return null;if(e.nextSibling!==null)return e.nextSibling}return null}function Gu(e,t){var r;return r=e.firstChild,r!==null?r:e===t?null:(r=e.nextSibling,r!==null?r:Gn(e,t))}function g0(e){for(;e.lastChild;)e=e.lastChild;return e}function zu(e,t){var r;return r=e.previousSibling,r!==null?g0(r):(r=e.parentNode,r===t?null:r)}});var N0=N((ad,w0)=>{"use strict";w0.exports=y0;var Wu=de(),he=mr(),E0=zn(),T0=ne(),Wn={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},Xn={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function _0(e,t){var r,a,s,o,x;for(a=e._currentNode[Wn[t]];a!==null;){if(o=e._internalFilter(a),o===he.FILTER_ACCEPT)return e._currentNode=a,a;if(o===he.FILTER_SKIP&&(r=a[Wn[t]],r!==null)){a=r;continue}for(;a!==null;){if(x=a[Xn[t]],x!==null){a=x;break}if(s=a.parentNode,s===null||s===e.root||s===e._currentNode)return null;a=s}}return null}function v0(e,t){var r,a,s;if(r=e._currentNode,r===e.root)return null;for(;;){for(s=r[Xn[t]];s!==null;){if(r=s,a=e._internalFilter(r),a===he.FILTER_ACCEPT)return e._currentNode=r,r;s=r[Wn[t]],(a===he.FILTER_REJECT||s===null)&&(s=r[Xn[t]])}if(r=r.parentNode,r===null||r===e.root||e._internalFilter(r)===he.FILTER_ACCEPT)return null}}function y0(e,t,r){(!e||!e.nodeType)&&T0.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,this._currentNode=e}Object.defineProperties(y0.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(t){if(!(t instanceof Wu))throw new TypeError("Not a Node");this._currentNode=t}},_internalFilter:{value:function(t){var r,a;if(this._active&&T0.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return he.FILTER_SKIP;if(a=this._filter,a===null)r=he.FILTER_ACCEPT;else{this._active=!0;try{typeof a=="function"?r=a(t):r=a.acceptNode(t)}finally{this._active=!1}}return+r}},parentNode:{value:function(){for(var t=this._currentNode;t!==this.root;){if(t=t.parentNode,t===null)return null;if(this._internalFilter(t)===he.FILTER_ACCEPT)return this._currentNode=t,t}return null}},firstChild:{value:function(){return _0(this,"first")}},lastChild:{value:function(){return _0(this,"last")}},previousSibling:{value:function(){return v0(this,"previous")}},nextSibling:{value:function(){return v0(this,"next")}},previousNode:{value:function(){var t,r,a,s;for(t=this._currentNode;t!==this._root;){for(a=t.previousSibling;a;a=t.previousSibling)if(t=a,r=this._internalFilter(t),r!==he.FILTER_REJECT){for(s=t.lastChild;s&&(t=s,r=this._internalFilter(t),r!==he.FILTER_REJECT);s=t.lastChild);if(r===he.FILTER_ACCEPT)return this._currentNode=t,t}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this._internalFilter(t)===he.FILTER_ACCEPT)return this._currentNode=t,t}return null}},nextNode:{value:function(){var t,r,a,s;t=this._currentNode,r=he.FILTER_ACCEPT;e:for(;;){for(a=t.firstChild;a;a=t.firstChild){if(t=a,r=this._internalFilter(t),r===he.FILTER_ACCEPT)return this._currentNode=t,t;if(r===he.FILTER_REJECT)break}for(s=E0.nextSkippingChildren(t,this.root);s;s=E0.nextSkippingChildren(t,this.root)){if(t=s,r=this._internalFilter(t),r===he.FILTER_ACCEPT)return this._currentNode=t,t;if(r===he.FILTER_SKIP)continue e}return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var L0=N((nd,D0)=>{"use strict";D0.exports=k0;var Kn=mr(),Yn=zn(),A0=ne();function Xu(e,t,r){return r?Yn.next(e,t):e===t?null:Yn.previous(e,null)}function S0(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function C0(e,t){var r,a;for(r=e._referenceNode,a=e._pointerBeforeReferenceNode;;){if(a===t)a=!a;else if(r=Xu(r,e._root,t),r===null)return null;var s=e._internalFilter(r);if(s===Kn.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=a,r}function k0(e,t,r){(!e||!e.nodeType)&&A0.NotSupportedError(),this._root=e,this._referenceNode=e,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,e.doc._attachNodeIterator(this)}Object.defineProperties(k0.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(t){var r,a;if(this._active&&A0.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return Kn.FILTER_SKIP;if(a=this._filter,a===null)r=Kn.FILTER_ACCEPT;else{this._active=!0;try{typeof a=="function"?r=a(t):r=a.acceptNode(t)}finally{this._active=!1}}return+r}},_preremove:{value:function(t){if(!S0(t,this._root)&&S0(t,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var r=t;r.lastChild;)r=r.lastChild;if(r=Yn.next(r,this.root),r){this._referenceNode=r;return}this._pointerBeforeReferenceNode=!1}if(t.previousSibling===null)this._referenceNode=t.parentNode;else{this._referenceNode=t.previousSibling;var a;for(a=this._referenceNode.lastChild;a;a=this._referenceNode.lastChild)this._referenceNode=a}}}},nextNode:{value:function(){return C0(this,!0)}},previousNode:{value:function(){return C0(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var ua=N((id,M0)=>{"use strict";M0.exports=pe;function pe(e){if(!e)return Object.create(pe.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var t=pe.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(pe.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(pe.portPattern)){var a=t[4].lastIndexOf(":");this.host=t[4].substring(0,a),this.port=t[4].substring(a+1)}else this.host=t[4]}t[5]&&(this.path=t[5]),t[6]&&(this.query=t[7]),t[8]&&(this.fragment=t[9])}}pe.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;pe.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;pe.portPattern=/:\d+$/;pe.authorityPattern=/^[^:\/?#]+:\/\//;pe.hierarchyPattern=/^[^:\/?#]+:\//;pe.percentEncode=function(t){var r=t.charCodeAt(0);if(r<256)return"%"+r.toString(16);throw Error("can't percent-encode codepoints > 255 yet")};pe.prototype={constructor:pe,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return pe.authorityPattern.test(this.url)},isHierarchical:function(){return pe.hierarchyPattern.test(this.url)},toString:function(){var e="";return this.scheme!==void 0&&(e+=this.scheme+":"),this.isAbsolute()&&(e+="//",(this.username||this.password)&&(e+=this.username||"",this.password&&(e+=":"+this.password),e+="@"),this.host&&(e+=this.host)),this.port!==void 0&&(e+=":"+this.port),this.path!==void 0&&(e+=this.path),this.query!==void 0&&(e+="?"+this.query),this.fragment!==void 0&&(e+="#"+this.fragment),e},resolve:function(e){var t=this,r=new pe(e),a=new pe;return r.scheme!==void 0?(a.scheme=r.scheme,a.username=r.username,a.password=r.password,a.host=r.host,a.port=r.port,a.path=o(r.path),a.query=r.query):(a.scheme=t.scheme,r.host!==void 0?(a.username=r.username,a.password=r.password,a.host=r.host,a.port=r.port,a.path=o(r.path),a.query=r.query):(a.username=t.username,a.password=t.password,a.host=t.host,a.port=t.port,r.path?(r.path.charAt(0)==="/"?a.path=o(r.path):(a.path=s(t.path,r.path),a.path=o(a.path)),a.query=r.query):(a.path=t.path,r.query!==void 0?a.query=r.query:a.query=t.query))),a.fragment=r.fragment,a.toString();function s(x,m){if(t.host!==void 0&&!t.path)return"/"+m;var h=x.lastIndexOf("/");return h===-1?m:x.substring(0,h+1)+m}function o(x){if(!x)return x;for(var m="";x.length>0;){if(x==="."||x===".."){x="";break}var h=x.substring(0,2),_=x.substring(0,3),v=x.substring(0,4);if(_==="../")x=x.substring(3);else if(h==="./")x=x.substring(2);else if(_==="/./")x="/"+x.substring(3);else if(h==="/."&&x.length===2)x="/";else if(v==="/../"||_==="/.."&&x.length===3)x="/"+x.substring(4),m=m.replace(/\/?[^\/]*$/,"");else{var Q=x.match(/(\/?([^\/]*))/)[0];m+=Q,x=x.substring(Q.length)}}return m}}}});var O0=N((sd,I0)=>{"use strict";I0.exports=Qn;var R0=Rt();function Qn(e,t){R0.call(this,e,t)}Qn.prototype=Object.create(R0.prototype,{constructor:{value:Qn}})});var $n=N((od,q0)=>{"use strict";q0.exports={Event:Rt(),UIEvent:Za(),MouseEvent:en(),CustomEvent:O0()}});var F0=N(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.hyphenate=Ut.parse=void 0;function Ku(e){let t=[],r=0,a=0,s=0,o=0,x=0,m=null;for(;r<e.length;)switch(e.charCodeAt(r++)){case 40:a++;break;case 41:a--;break;case 39:s===0?s=39:s===39&&e.charCodeAt(r-1)!==92&&(s=0);break;case 34:s===0?s=34:s===34&&e.charCodeAt(r-1)!==92&&(s=0);break;case 58:!m&&a===0&&s===0&&(m=H0(e.substring(x,r-1).trim()),o=r);break;case 59:if(m&&o>0&&a===0&&s===0){let _=e.substring(o,r-1).trim();t.push(m,_),x=r,o=0,m=null}break}if(m&&o){let h=e.slice(o).trim();t.push(m,h)}return t}Ut.parse=Ku;function H0(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}Ut.hyphenate=H0});var xa=N((ld,j0)=>{"use strict";var{parse:Yu}=F0();j0.exports=function(e){let t=new V0(e),r={get:function(a,s){return s in a?a[s]:a.getPropertyValue(B0(s))},has:function(a,s){return!0},set:function(a,s,o){return s in a?a[s]=o:a.setProperty(B0(s),o??void 0),!0}};return new Proxy(t,r)};function B0(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function V0(e){this._element=e}var P0="!important";function U0(e){let t={property:{},priority:{}};if(!e)return t;let r=Yu(e);if(r.length<2)return t;for(let a=0;a<r.length;a+=2){let s=r[a],o=r[a+1];o.endsWith(P0)&&(t.priority[s]="important",o=o.slice(0,-P0.length).trim()),t.property[s]=o}return t}var Vt={};V0.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=U0(e),this._lastParsedText=e,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var e=this._parsed,t="";for(var r in e.property)t&&(t+=" "),t+=r+": "+e.property[r],e.priority[r]&&(t+=" !"+e.priority[r]),t+=";";this.cssText=t,this._lastParsedText=t,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(e){this._element.setAttribute("style",e)}},length:{get:function(){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names.length}},item:{value:function(e){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names[e]}},getPropertyValue:{value:function(e){return e=e.toLowerCase(),this._parsed.property[e]||""}},getPropertyPriority:{value:function(e){return e=e.toLowerCase(),this._parsed.priority[e]||""}},setProperty:{value:function(e,t,r){if(e=e.toLowerCase(),t==null&&(t=""),r==null&&(r=""),t!==Vt&&(t=""+t),t=t.trim(),t===""){this.removeProperty(e);return}if(!(r!==""&&r!==Vt&&!/^important$/i.test(r))){var a=this._parsed;if(t===Vt){if(!a.property[e])return;r!==""?a.priority[e]="important":delete a.priority[e]}else{if(t.indexOf(";")!==-1)return;var s=U0(e+":"+t);if(Object.getOwnPropertyNames(s.property).length===0||Object.getOwnPropertyNames(s.priority).length!==0)return;for(var o in s.property)a.property[o]=s.property[o],r!==Vt&&(r!==""?a.priority[o]="important":a.priority[o]&&delete a.priority[o])}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,Vt)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,Vt,t)}},removeProperty:{value:function(e){e=e.toLowerCase();var t=this._parsed;e in t.property&&(delete t.property[e],delete t.priority[e],this._serialize())}}})});var Zn=N((ud,G0)=>{"use strict";var le=ua();G0.exports=gr;function gr(){}gr.prototype=Object.create(Object.prototype,{_url:{get:function(){return new le(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+":":":"},set:function(e){var t=this.href,r=new le(t);r.isAbsolute()&&(e=e.replace(/:+$/,""),e=e.replace(/[^-+\.a-zA-Z0-9]/g,le.percentEncode),e.length>0&&(r.scheme=e,t=r.toString())),this.href=t}},host:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host+(e.port?":"+e.port:""):""},set:function(e){var t=this.href,r=new le(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,le.percentEncode),e.length>0&&(r.host=e,delete r.port,t=r.toString())),this.href=t}},hostname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host:""},set:function(e){var t=this.href,r=new le(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,""),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,le.percentEncode),e.length>0&&(r.host=e,t=r.toString())),this.href=t}},port:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()&&e.port!==void 0?e.port:""},set:function(e){var t=this.href,r=new le(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=""+e,e=e.replace(/[^0-9].*$/,""),e=e.replace(/^0+/,""),e.length===0&&(e="0"),parseInt(e,10)<=65535&&(r.port=e,t=r.toString())),this.href=t}},pathname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()?e.path:""},set:function(e){var t=this.href,r=new le(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!=="/"&&(e="/"+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,le.percentEncode),r.path=e,t=r.toString()),this.href=t}},search:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()&&e.query!==void 0?"?"+e.query:""},set:function(e){var t=this.href,r=new le(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)==="?"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,le.percentEncode),r.query=e,t=r.toString()),this.href=t}},hash:{get:function(){var e=this._url;return e==null||e.fragment==null||e.fragment===""?"":"#"+e.fragment},set:function(e){var t=this.href,r=new le(t);e.charAt(0)==="#"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,le.percentEncode),r.fragment=e,t=r.toString(),this.href=t}},username:{get:function(){var e=this._url;return e.username||""},set:function(e){var t=this.href,r=new le(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,le.percentEncode),r.username=e,t=r.toString()),this.href=t}},password:{get:function(){var e=this._url;return e.password||""},set:function(e){var t=this.href,r=new le(t);r.isAbsolute()&&(e===""?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,le.percentEncode),r.password=e),t=r.toString()),this.href=t}},origin:{get:function(){var e=this._url;if(e==null)return"";var t=function(r){var a=[e.scheme,e.host,+e.port||r];return a[0]+"://"+a[1]+(a[2]===r?"":":"+a[2])};switch(e.scheme){case"ftp":return t(21);case"gopher":return t(70);case"http":case"ws":return t(80);case"https":case"wss":return t(443);default:return e.scheme+"://"}}}});gr._inherit=function(e){Object.getOwnPropertyNames(gr.prototype).forEach(function(t){if(!(t==="constructor"||t==="href")){var r=Object.getOwnPropertyDescriptor(gr.prototype,t);Object.defineProperty(e,t,r)}})}});var Jn=N((xd,X0)=>{"use strict";var z0=En(),Qu=Qr().isApiWritable;X0.exports=function(e,t,r,a){var s=e.ctor;if(s){var o=e.props||{};if(e.attributes)for(var x in e.attributes){var m=e.attributes[x];(typeof m!="object"||Array.isArray(m))&&(m={type:m}),m.name||(m.name=x.toLowerCase()),o[x]=z0.property(m)}o.constructor={value:s,writable:Qu},s.prototype=Object.create((e.superclass||t).prototype,o),e.events&&Zu(s,e.events),r[e.name]=s}else s=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(h){a[h]=s}),s};function W0(e,t,r,a){this.body=e,this.document=t,this.form=r,this.element=a}W0.prototype.build=function(){return()=>{}};function $u(e,t,r,a){var s=e.ownerDocument||Object.create(null),o=e.form||Object.create(null);e[t]=new W0(a,s,o,e).build()}function Zu(e,t){var r=e.prototype;t.forEach(function(a){Object.defineProperty(r,"on"+a,{get:function(){return this._getEventHandler(a)},set:function(s){this._setEventHandler(a,s)}}),z0.registerChangeHandler(e,"on"+a,$u)})}});var ha=N(da=>{"use strict";var ei=de(),K0=Pt(),Ju=xa(),ye=ne(),Y0=Zn(),ex=Jn(),Ke=da.elements={},br=Object.create(null);da.createElement=function(e,t,r){var a=br[t]||rx;return new a(e,t,r)};function E(e){return ex(e,T,Ke,br)}function ie(e){return{get:function(){var t=this._getattr(e);if(t===null)return"";var r=this.doc._resolve(t);return r===null?t:r},set:function(t){this._setattr(e,t)}}}function fa(e){return{get:function(){var t=this._getattr(e);return t===null?null:t.toLowerCase()==="use-credentials"?"use-credentials":"anonymous"},set:function(t){t==null?this.removeAttribute(e):this._setattr(e,t)}}}var jt={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},tx={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},Me=function(e,t,r){T.call(this,e,t,r),this._form=null},T=da.HTMLElement=E({superclass:K0,name:"HTMLElement",ctor:function(t,r,a){K0.call(this,t,r,ye.NAMESPACE.HTML,a)},props:{dangerouslySetInnerHTML:{set:function(e){this._innerHTML=e}},innerHTML:{get:function(){return this.serialize()},set:function(e){var t=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);t.parse(e===null?"":String(e),!0);for(var r=this instanceof br.template?this.content:this;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||(this._style=new Ju(this)),this._style},set:function(e){e==null&&(e=""),this._setattr("style",String(e))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(!this._click_in_progress){this._click_in_progress=!0;try{this._pre_click_activation_steps&&this._pre_click_activation_steps();var e=this.ownerDocument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);var t=this.dispatchEvent(e);t?this._post_click_activation_steps&&this._post_click_activation_steps(e):this._cancelled_activation_steps&&this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}}},submit:{value:ye.nyi}},attributes:{title:String,lang:String,dir:{type:["ltr","rtl","auto"],missing:""},draggable:{type:["true","false"],treatNullAsEmptyString:!0},spellcheck:{type:["true","false"],missing:""},enterKeyHint:{type:["enter","done","go","next","previous","search","send"],missing:""},autoCapitalize:{type:["off","on","none","sentences","words","characters"],missing:""},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:["no","yes"],missing:""},tabIndex:{type:"long",default:function(){return this.tagName in tx||this.contentEditable?0:-1}}},events:["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"]}),rx=E({name:"HTMLUnknownElement",ctor:function(t,r,a){T.call(this,t,r,a)}}),Re={form:{get:function(){return this._form}}};E({tag:"a",name:"HTMLAnchorElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:ie,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:jt,coords:String,charset:String,name:String,rev:String,shape:String}});Y0._inherit(br.a.prototype);E({tag:"area",name:"HTMLAreaElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:ie,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:jt,noHref:Boolean}});Y0._inherit(br.area.prototype);E({tag:"br",name:"HTMLBRElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{clear:String}});E({tag:"base",name:"HTMLBaseElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{target:String}});E({tag:"body",name:"HTMLBodyElement",ctor:function(t,r,a){T.call(this,t,r,a)},events:["afterprint","beforeprint","beforeunload","blur","error","focus","hashchange","load","message","offline","online","pagehide","pageshow","popstate","resize","scroll","storage","unload"],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}});E({tag:"button",name:"HTMLButtonElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:Re,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:ie,formNoValidate:Boolean,formMethod:{type:["get","post","dialog"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""}}});E({tag:"dl",name:"HTMLDListElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{compact:Boolean}});E({tag:"data",name:"HTMLDataElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{value:String}});E({tag:"datalist",name:"HTMLDataListElement",ctor:function(t,r,a){T.call(this,t,r,a)}});E({tag:"details",name:"HTMLDetailsElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{open:Boolean}});E({tag:"div",name:"HTMLDivElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String}});E({tag:"embed",name:"HTMLEmbedElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{src:ie,type:String,width:String,height:String,align:String,name:String}});E({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:Re,attributes:{disabled:Boolean,name:String}});E({tag:"form",name:"HTMLFormElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{action:String,autocomplete:{type:["on","off"],missing:"on"},name:String,acceptCharset:{name:"accept-charset"},target:String,noValidate:Boolean,method:{type:["get","post","dialog"],invalid:"get",missing:"get"},enctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"},encoding:{name:"enctype",type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"}}});E({tag:"hr",name:"HTMLHRElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});E({tag:"head",name:"HTMLHeadElement",ctor:function(t,r,a){T.call(this,t,r,a)}});E({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String}});E({tag:"html",name:"HTMLHtmlElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{xmlns:ie,version:String}});E({tag:"iframe",name:"HTMLIFrameElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{src:ie,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:jt,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:ie,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});E({tag:"img",name:"HTMLImageElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{alt:String,src:ie,srcset:String,crossOrigin:fa,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:jt,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:ie,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:ie,border:{type:String,treatNullAsEmptyString:!0}}});E({tag:"input",name:"HTMLInputElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:{form:Re.form,_post_click_activation_steps:{value:function(e){if(this.type==="checkbox")this.checked=!this.checked;else if(this.type==="radio")for(var t=this.form.getElementsByName(this.name),r=t.length-1;r>=0;r--){var a=t[r];a.checked=a===this}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:"value"},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:ie,defaultChecked:{name:"checked",type:Boolean},size:{type:"unsigned long",default:20,min:1,setmin:1},width:{type:"unsigned long",min:0,setmin:0,default:0},height:{type:"unsigned long",min:0,setmin:0,default:0},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},autocomplete:String,type:{type:["text","hidden","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"],missing:"text"},formTarget:String,formNoValidate:Boolean,formMethod:{type:["get","post"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""},align:String,useMap:String}});E({tag:"keygen",name:"HTMLKeygenElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:Re,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});E({tag:"li",name:"HTMLLIElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{value:{type:"long",default:0},type:String}});E({tag:"label",name:"HTMLLabelElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:Re,attributes:{htmlFor:{name:"for",type:String}}});E({tag:"legend",name:"HTMLLegendElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String}});E({tag:"link",name:"HTMLLinkElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{href:ie,rel:String,media:String,hreflang:String,type:String,crossOrigin:fa,nonce:String,integrity:String,referrerPolicy:jt,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});E({tag:"map",name:"HTMLMapElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{name:String}});E({tag:"menu",name:"HTMLMenuElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});E({tag:"meta",name:"HTMLMetaElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});E({tag:"meter",name:"HTMLMeterElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:Re});E({tags:["ins","del"],name:"HTMLModElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{cite:ie,dateTime:String}});E({tag:"ol",name:"HTMLOListElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(t){t.nodeType===ei.ELEMENT_NODE&&t.tagName==="LI"&&e++}),e}}},attributes:{type:String,reversed:Boolean,start:{type:"long",default:function(){return this.reversed?this._numitems:1}},compact:Boolean}});E({tag:"object",name:"HTMLObjectElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:Re,attributes:{data:ie,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:"unsigned long",default:0},standby:String,vspace:{type:"unsigned long",default:0},codeBase:ie,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});E({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{disabled:Boolean,label:String}});E({tag:"option",name:"HTMLOptionElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===ei.ELEMENT_NODE;){if(e.localName==="select")return e.form;e=e.parentNode}}},value:{get:function(){return this._getattr("value")||this.text},set:function(e){this._setattr("value",e)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.textContent=e}}},attributes:{disabled:Boolean,defaultSelected:{name:"selected",type:Boolean},label:String}});E({tag:"output",name:"HTMLOutputElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:Re,attributes:{name:String}});E({tag:"p",name:"HTMLParagraphElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String}});E({tag:"param",name:"HTMLParamElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{name:String,value:String,type:String,valueType:String}});E({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{width:{type:"long",default:0}}});E({tag:"progress",name:"HTMLProgressElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:Re,attributes:{max:{type:Number,float:!0,default:1,min:0}}});E({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{cite:ie}});E({tag:"script",name:"HTMLScriptElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{text:{get:function(){for(var e="",t=0,r=this.childNodes.length;t<r;t++){var a=this.childNodes[t];a.nodeType===ei.TEXT_NODE&&(e+=a._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==""&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:ie,type:String,charset:String,referrerPolicy:jt,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:fa,nonce:String,integrity:String}});E({tag:"select",name:"HTMLSelectElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:{form:Re.form,options:{get:function(){return this.getElementsByTagName("option")}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:"unsigned long",default:0}}});E({tag:"span",name:"HTMLSpanElement",ctor:function(t,r,a){T.call(this,t,r,a)}});E({tag:"style",name:"HTMLStyleElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{media:String,type:String,scoped:Boolean}});E({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{align:String}});E({name:"HTMLTableCellElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{colSpan:{type:"unsigned long",default:1},rowSpan:{type:"unsigned long",default:1},scope:{type:["row","col","rowgroup","colgroup"],missing:""},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});E({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{span:{type:"limited unsigned long with fallback",default:1,min:1},align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,width:String}});E({tag:"table",name:"HTMLTableElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}});E({tag:"template",name:"HTMLTemplateElement",ctor:function(t,r,a){T.call(this,t,r,a),this._contentFragment=t._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});E({tag:"tr",name:"HTMLTableRowElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{cells:{get:function(){return this.querySelectorAll("td,th")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});E({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String}});E({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(t,r,a){Me.call(this,t,r,a)},props:{form:Re.form,type:{get:function(){return"textarea"}},defaultValue:{get:function(){return this.textContent},set:function(e){this.textContent=e}},value:{get:function(){return this.defaultValue},set:function(e){this.defaultValue=e}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:"limited unsigned long with fallback",default:2},cols:{type:"limited unsigned long with fallback",default:20},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""}}});E({tag:"time",name:"HTMLTimeElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{dateTime:String,pubDate:Boolean}});E({tag:"title",name:"HTMLTitleElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{text:{get:function(){return this.textContent}}}});E({tag:"ul",name:"HTMLUListElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{type:String,compact:Boolean}});E({name:"HTMLMediaElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{src:ie,crossOrigin:fa,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});E({name:"HTMLAudioElement",tag:"audio",superclass:Ke.HTMLMediaElement,ctor:function(t,r,a){Ke.HTMLMediaElement.call(this,t,r,a)}});E({name:"HTMLVideoElement",tag:"video",superclass:Ke.HTMLMediaElement,ctor:function(t,r,a){Ke.HTMLMediaElement.call(this,t,r,a)},attributes:{poster:ie,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});E({tag:"td",name:"HTMLTableDataCellElement",superclass:Ke.HTMLTableCellElement,ctor:function(t,r,a){Ke.HTMLTableCellElement.call(this,t,r,a)}});E({tag:"th",name:"HTMLTableHeaderCellElement",superclass:Ke.HTMLTableCellElement,ctor:function(t,r,a){Ke.HTMLTableCellElement.call(this,t,r,a)}});E({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(t,r,a){T.call(this,t,r,a)}});E({tag:"frame",name:"HTMLFrameElement",ctor:function(t,r,a){T.call(this,t,r,a)}});E({tag:"canvas",name:"HTMLCanvasElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{getContext:{value:ye.nyi},probablySupportsContext:{value:ye.nyi},setContext:{value:ye.nyi},transferControlToProxy:{value:ye.nyi},toDataURL:{value:ye.nyi},toBlob:{value:ye.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});E({tag:"dialog",name:"HTMLDialogElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{show:{value:ye.nyi},showModal:{value:ye.nyi},close:{value:ye.nyi}},attributes:{open:Boolean,returnValue:String}});E({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(t,r,a){T.call(this,t,r,a)},props:{_label:{get:function(){var e=this._getattr("label");return e!==null&&e!==""?e:(e=this.textContent,e.replace(/[ \t\n\f\r]+/g," ").trim())}},label:{get:function(){var e=this._getattr("label");return e!==null?e:this._label},set:function(e){this._setattr("label",e)}}},attributes:{type:{type:["command","checkbox","radio"],missing:"command"},icon:ie,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});E({tag:"source",name:"HTMLSourceElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{srcset:String,sizes:String,media:String,src:ie,type:String,width:String,height:String}});E({tag:"track",name:"HTMLTrackElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{src:ie,srclang:String,label:String,default:Boolean,kind:{type:["subtitles","captions","descriptions","chapters","metadata"],missing:"subtitles",invalid:"metadata"}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:ye.nyi},track:{get:ye.nyi}}});E({tag:"font",name:"HTMLFontElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});E({tag:"dir",name:"HTMLDirectoryElement",ctor:function(t,r,a){T.call(this,t,r,a)},attributes:{compact:Boolean}});E({tags:["abbr","address","article","aside","b","bdi","bdo","cite","content","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","main","mark","nav","noscript","rb","rp","rt","rtc","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr","acronym","basefont","big","center","nobr","noembed","noframes","plaintext","strike","tt"]})});var ai=N(pa=>{"use strict";var Q0=Pt(),ax=Jn(),nx=ne(),ix=xa(),sx=pa.elements={},$0=Object.create(null);pa.createElement=function(e,t,r){var a=$0[t]||ri;return new a(e,t,r)};function ti(e){return ax(e,ri,sx,$0)}var ri=ti({superclass:Q0,name:"SVGElement",ctor:function(t,r,a){Q0.call(this,t,r,nx.NAMESPACE.SVG,a)},props:{style:{get:function(){return this._style||(this._style=new ix(this)),this._style}}}});ti({name:"SVGSVGElement",ctor:function(t,r,a){ri.call(this,t,r,a)},tag:"svg",props:{createSVGRect:{value:function(){return pa.createElement(this.ownerDocument,"rect",null)}}}});ti({tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]})});var J0=N((hd,Z0)=>{"use strict";Z0.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var ga=N((pd,lo)=>{"use strict";lo.exports=_r;var me=de(),ox=wt(),io=Jr(),ft=Pt(),cx=qn(),lx=Fn(),Er=Rt(),ux=Pn(),xx=Vn(),fx=vr(),dx=N0(),hx=L0(),eo=mr(),to=ua(),ro=na(),px=$n(),ma=ea(),ni=ha(),mx=ai(),B=ne(),Gt=J0(),Wt=B.NAMESPACE,ii=Qr().isApiWritable;function _r(e,t){io.call(this),this.nodeType=me.DOCUMENT_NODE,this.isHTML=e,this._address=t||"about:blank",this.readyState="loading",this.implementation=new fx(this),this.ownerDocument=null,this._contentType=e?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var gx={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},bx={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},zt=function(e,t,r){return{get:function(){var a=e.call(this);return a?a[t]:r},set:function(a){var s=e.call(this);s&&(s[t]=a)}}};function ao(e,t){var r,a,s;return e===""&&(e=null),ma.isValidQName(t)||B.InvalidCharacterError(),r=null,a=t,s=t.indexOf(":"),s>=0&&(r=t.substring(0,s),a=t.substring(s+1)),r!==null&&e===null&&B.NamespaceError(),r==="xml"&&e!==Wt.XML&&B.NamespaceError(),(r==="xmlns"||t==="xmlns")&&e!==Wt.XMLNS&&B.NamespaceError(),e===Wt.XMLNS&&!(r==="xmlns"||t==="xmlns")&&B.NamespaceError(),{namespace:e,prefix:r,localName:a}}_r.prototype=Object.create(io.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,r){var a=this._nodes[e];a&&a._dispatchEvent(new Er(t,r),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:B.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(e){return new cx(this,String(e))}},createComment:{value:function(e){return new lx(this,e)}},createDocumentFragment:{value:function(){return new ux(this)}},createProcessingInstruction:{value:function(e,t){return(!ma.isValidName(e)||t.indexOf("?>")!==-1)&&B.InvalidCharacterError(),new xx(this,e,t)}},createAttribute:{value:function(e){return e=String(e),ma.isValidName(e)||B.InvalidCharacterError(),this.isHTML&&(e=B.toASCIILowerCase(e)),new ft._Attr(null,e,null,null,"")}},createAttributeNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=ao(e,t);return new ft._Attr(null,r.localName,r.prefix,r.namespace,"")}},createElement:{value:function(e){return e=String(e),ma.isValidName(e)||B.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=B.toASCIILowerCase(e)),ni.createElement(this,e,null)):this.contentType==="application/xhtml+xml"?ni.createElement(this,e,null):new ft(this,e,null,null)},writable:ii},createElementNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=ao(e,t);return this._createElementNS(r.localName,r.namespace,r.prefix)},writable:ii},_createElementNS:{value:function(e,t,r){return t===Wt.HTML?ni.createElement(this,e,r):t===Wt.SVG?mx.createElement(this,e,r):new ft(this,e,t,r)}},createEvent:{value:function(t){t=t.toLowerCase();var r=bx[t]||t,a=px[gx[r]];if(a){var s=new a;return s._initialized=!1,s}else B.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof me))throw new TypeError("root not a node");return t=t===void 0?eo.SHOW_ALL:+t,r=r===void 0?null:r,new dx(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof me))throw new TypeError("root not a node");return t=t===void 0?eo.SHOW_ALL:+t,r=r===void 0?null:r,new hx(e,t,r)}},_attachNodeIterator:{value:function(e){this._nodeIterators||(this._nodeIterators=[]),this._nodeIterators.push(e)}},_detachNodeIterator:{value:function(e){var t=this._nodeIterators.indexOf(e);this._nodeIterators.splice(t,1)}},_preremoveNodeIterators:{value:function(e){this._nodeIterators&&this._nodeIterators.forEach(function(t){t._preremove(e)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var t=this.firstChild;t!==null;t=t.nextSibling)t.nodeType===me.DOCUMENT_TYPE_NODE?this.doctype=t:t.nodeType===me.ELEMENT_NODE&&(this.documentElement=t)}},insertBefore:{value:function(t,r){return me.prototype.insertBefore.call(this,t,r),this._updateDocTypeElement(),t}},replaceChild:{value:function(t,r){return me.prototype.replaceChild.call(this,t,r),this._updateDocTypeElement(),r}},removeChild:{value:function(t){return me.prototype.removeChild.call(this,t),this._updateDocTypeElement(),t}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof Ye?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof Ye}},getElementsByName:{value:ft.prototype.getElementsByName},getElementsByTagName:{value:ft.prototype.getElementsByTagName},getElementsByTagNameNS:{value:ft.prototype.getElementsByTagNameNS},getElementsByClassName:{value:ft.prototype.getElementsByClassName},adoptNode:{value:function(t){return t.nodeType===me.DOCUMENT_NODE&&B.NotSupportedError(),t.nodeType===me.ATTRIBUTE_NODE||(t.parentNode&&t.parentNode.removeChild(t),t.ownerDocument!==this&&co(t,this)),t}},importNode:{value:function(t,r){return this.adoptNode(t.cloneNode(r))},writable:ii},origin:{get:function(){return null}},characterSet:{get:function(){return"UTF-8"}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:B.nyi,set:B.nyi},referrer:{get:B.nyi},cookie:{get:B.nyi,set:B.nyi},lastModified:{get:B.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:B.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var e=this._titleElement,t=e?e.textContent:"";return t.replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(e){var t=this._titleElement,r=this.head;!t&&!r||(t||(t=this.createElement("title"),r.appendChild(t)),t.textContent=e)}},dir:zt(function(){var e=this.documentElement;if(e&&e.tagName==="HTML")return e},"dir",""),fgColor:zt(function(){return this.body},"text",""),linkColor:zt(function(){return this.body},"link",""),vlinkColor:zt(function(){return this.body},"vLink",""),alinkColor:zt(function(){return this.body},"aLink",""),bgColor:zt(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return no(this.documentElement,"body")},set:B.nyi},head:{get:function(){return no(this.documentElement,"head")}},images:{get:B.nyi},embeds:{get:B.nyi},plugins:{get:B.nyi},links:{get:B.nyi},forms:{get:B.nyi},scripts:{get:B.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:B.nyi},outerHTML:{get:function(){return this.serialize()},set:B.nyi},write:{value:function(e){if(this.isHTML||B.InvalidStateError(),!!this._parser){this._parser;var t=arguments.join("");this._parser.parse(t)}}},writeln:{value:function(t){this.write(Array.prototype.join.call(arguments,"")+`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{a as
|
|
3
|
+
import{a as u}from"./chunk-I4IRHQDW.js";import{a as p}from"./chunk-PBOVSFTJ.js";import{a as m}from"./chunk-NE4R2FVV.js";var v={recursive:{short:"r",long:"recursive",type:"boolean"},recursiveUpper:{short:"R",type:"boolean"},force:{short:"f",long:"force",type:"boolean"},verbose:{short:"v",long:"verbose",type:"boolean"}},E={name:"rm",async execute(g,s){let e=m("rm",g,v);if(!e.ok)return e.error;let i=e.result.flags.recursive||e.result.flags.recursiveUpper,a=e.result.flags.force,d=e.result.flags.verbose,c=e.result.positional;if(c.length===0)return a?{stdout:"",stderr:"",exitCode:0}:{stdout:"",stderr:`rm: missing operand
|
|
4
4
|
`,exitCode:1};let f="",t="",l=0;for(let r of c)try{let n=s.fs.resolvePath(s.cwd,r);if((await s.fs.stat(n)).isDirectory&&!i){t+=`rm: cannot remove '${r}': Is a directory
|
|
5
5
|
`,l=1;continue}await s.fs.rm(n,{recursive:i,force:a}),d&&(f+=`removed '${r}'
|
|
6
6
|
`)}catch(n){if(!a){let o=u(n);o.includes("ENOENT")||o.includes("no such file")?t+=`rm: cannot remove '${r}': No such file or directory
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
import{b as a}from"./chunk-
|
|
3
|
+
import{b as a}from"./chunk-VGSRQOLD.js";var s=globalThis.setTimeout.bind(globalThis),l=globalThis.clearTimeout.bind(globalThis),T=globalThis.setInterval.bind(globalThis),f=globalThis.clearInterval.bind(globalThis);function u(e){return typeof e!="function"?e:a.bindCurrentContext(e)}var b=((e,n,...i)=>s(u(e),n,...i)),d=l,c=2147483647;function I(e,n){if(n===Number.POSITIVE_INFINITY)return;let i=u(e),t={cleared:!1,remainingMs:Math.max(0,n),timer:void 0},r=()=>{if(t.cleared)return;let o=Math.min(t.remainingMs,c);t.timer=s(()=>{t.cleared||(t.remainingMs-=o,t.remainingMs>0?r():i())},o)};return r(),t}function _(e){e&&(e.cleared=!0,e.timer!==void 0&&l(e.timer))}export{b as a,d as b,I as c,_ as d};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
-
var o=globalThis.SharedArrayBuffer,r=globalThis.Atomics,e=performance.now.bind(performance),
|
|
3
|
+
var o=globalThis.SharedArrayBuffer,r=globalThis.Atomics,e=performance.now.bind(performance),t=globalThis.Headers,s=globalThis.Proxy,a=Promise.prototype.then;export{o as a,r as b,e as c,t as d,s as e,a as f};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
3
|
+
import{a as E,b as k,c as _,d as Ie,e as S,g as C,h as ce}from"./chunk-WDV2ECOC.js";import{a as ue,c as xe}from"./chunk-MROECM42.js";import{a as Me}from"./chunk-ABM5WFEO.js";import{a as j}from"./chunk-LG6IN6SW.js";import{e as G}from"./chunk-QKWMWSV3.js";import{l as g}from"./chunk-LCP3IKI7.js";import{a as x}from"./chunk-CPKBPQ2C.js";function I(e){return e!==!1&&e!==null}function J(e,n){return JSON.stringify(e)===JSON.stringify(n)}function Y(e,n){return typeof e=="number"&&typeof n=="number"?e-n:typeof e=="string"&&typeof n=="string"?e.localeCompare(n):0}function je(e,n,t={}){let r=t.maxDepth??2e3,s=C(e),o=[{target:s,source:n,depth:0}];for(;o.length>0;){let p=o.pop();if(!p)break;if(p.depth>r)throw new g(`query depth limit exceeded (${r})`,"recursion");for(let u of Object.keys(p.source)){if(t.visit?.(),!E(u))continue;let f=_(p.target,u)?S(p.target[u]):null,i=S(p.source[u]);if(f&&i){let c=C(f);k(p.target,u,c),o.push({target:c,source:i,depth:p.depth+1})}else k(p.target,u,p.source[u])}}return s}function B(e,n=3e3){if(e===null||typeof e!="object")return 0;if(n<=1)return n;let t=(i,c)=>({value:i,keys:Array.isArray(i)?void 0:Object.keys(i),nextChild:0,pathDepth:c,maxChildDepth:0}),r=i=>i.keys!==void 0?i.keys.length:i.value.length,s=i=>{if(i.keys){let c=i.keys[i.nextChild++];return i.value[c]}return i.value[i.nextChild++]},o=new WeakMap,p=new WeakMap,u=e,f=[t(u,1)];for(o.set(u,"visiting");f.length>0;){let i=f[f.length-1];if(i.nextChild<r(i)){let a=s(i);if(a===null||typeof a!="object")continue;let l=o.get(a);if(l==="visiting")return n;if(l==="done"){let b=p.get(a)??0;if(i.pathDepth+b>=n)return n;i.maxChildDepth=Math.max(i.maxChildDepth,b);continue}let y=i.pathDepth+1;if(y>=n)return n;let m=a;o.set(a,"visiting"),f.push(t(m,y));continue}let c=i.maxChildDepth+1;p.set(i.value,c),o.set(i.value,"done"),f.pop();let h=f.at(-1);if(h)h.maxChildDepth=Math.max(h.maxChildDepth,c);else return c}return 0}function Z(e,n){let t=u=>u===null?0:typeof u=="boolean"?1:typeof u=="number"?2:typeof u=="string"?3:Array.isArray(u)?4:typeof u=="object"?5:6,r=t(e),s=t(n);if(r!==s)return r-s;if(typeof e=="number"&&typeof n=="number")return e-n;if(typeof e=="string"&&typeof n=="string")return e.localeCompare(n);if(typeof e=="boolean"&&typeof n=="boolean")return(e?1:0)-(n?1:0);if(Array.isArray(e)&&Array.isArray(n)){for(let u=0;u<Math.min(e.length,n.length);u++){let f=Z(e[u],n[u]);if(f!==0)return f}return e.length-n.length}let o=S(e),p=S(n);if(o&&p){let u=Object.keys(o).sort(),f=Object.keys(p).sort();for(let i=0;i<Math.min(u.length,f.length);i++){let c=u[i].localeCompare(f[i]);if(c!==0)return c}if(u.length!==f.length)return u.length-f.length;for(let i of u){let c=Z(o[i],p[i]);if(c!==0)return c}}return 0}function v(e,n){if(J(e,n))return!0;if(typeof e=="string"&&typeof n=="string")return e.includes(n);if(Array.isArray(e)&&Array.isArray(n))return n.every(s=>e.some(o=>v(o,s)));let t=S(e),r=S(n);return t&&r?Object.keys(r).every(s=>_(t,s)&&v(t[s],r[s])):!1}function z(e,n,t=1){let r=e.limits.maxArrayElements;if(t<0||n>r-t)throw new g(`query result element limit exceeded (${r})`,"array_elements")}function pe(e,n,t,r,s,o,p,u,f,i){switch(n){case"sort":return Array.isArray(e)?[[...e].sort(p)]:[null];case"sort_by":return!Array.isArray(e)||t.length===0?[null]:[[...e].sort((h,a)=>{let l=s(h,t[0],r)[0],y=s(a,t[0],r)[0];return p(l,y)})];case"bsearch":{if(!Array.isArray(e)){let h=e===null?"null":typeof e=="object"?"object":typeof e;throw new Error(`${h} (${JSON.stringify(e)}) cannot be searched from`)}return t.length===0?[null]:s(e,t[0],r).map(h=>{let a=0,l=e.length;for(;a<l;){let y=a+l>>>1;p(e[y],h)<0?a=y+1:l=y}return a<e.length&&p(e[a],h)===0?a:-a-1})}case"unique_by":{if(!Array.isArray(e)||t.length===0)return[null];let c=new Map;for(let a of e){let l=s(a,t[0],r)[0],y=JSON.stringify(l);c.has(y)||c.set(y,{item:a,key:l})}let h=[...c.values()];return h.sort((a,l)=>p(a.key,l.key)),[h.map(a=>a.item)]}case"group_by":{if(!Array.isArray(e)||t.length===0)return[null];let c=new Map;for(let h of e){let a=JSON.stringify(s(h,t[0],r)[0]);c.has(a)||c.set(a,[]),c.get(a)?.push(h)}return[[...c.values()]]}case"max":return Array.isArray(e)&&e.length>0?[e.reduce((c,h)=>p(c,h)>0?c:h)]:[null];case"max_by":return!Array.isArray(e)||e.length===0||t.length===0?[null]:[e.reduce((c,h)=>{let a=s(c,t[0],r)[0],l=s(h,t[0],r)[0];return p(a,l)>0?c:h})];case"min":return Array.isArray(e)&&e.length>0?[e.reduce((c,h)=>p(c,h)<0?c:h)]:[null];case"min_by":return!Array.isArray(e)||e.length===0||t.length===0?[null]:[e.reduce((c,h)=>{let a=s(c,t[0],r)[0],l=s(h,t[0],r)[0];return p(a,l)<0?c:h})];case"add":{let c=h=>{let a=h.filter(l=>l!==null);return a.length===0?null:a.every(l=>typeof l=="number")?a.reduce((l,y)=>l+y,0):a.every(l=>typeof l=="string")?a.join(""):a.every(l=>Array.isArray(l))?a.flat():a.every(l=>l&&typeof l=="object"&&!Array.isArray(l))?xe(...a):null};if(t.length>=1){let h=s(e,t[0],r);return[c(h)]}return Array.isArray(e)?[c(e)]:[null]}case"any":{if(t.length>=2){try{let c=o(e,t[0],r);for(let h of c)if(s(h,t[1],r).some(u))return[!0]}catch(c){if(c instanceof i)throw c}return[!1]}return t.length===1?Array.isArray(e)?[e.some(c=>u(s(c,t[0],r)[0]))]:[!1]:Array.isArray(e)?[e.some(u)]:[!1]}case"all":{if(t.length>=2){try{let c=o(e,t[0],r);for(let h of c)if(!s(h,t[1],r).some(u))return[!1]}catch(c){if(c instanceof i)throw c}return[!0]}return t.length===1?Array.isArray(e)?[e.every(c=>u(s(c,t[0],r)[0]))]:[!0]:Array.isArray(e)?[e.every(u)]:[!0]}case"select":return t.length===0?[e]:s(e,t[0],r).some(u)?[e]:[];case"map":{if(t.length===0||!Array.isArray(e))return[null];z(r,0,e.length);let c=[];for(let h of e){let a=s(h,t[0],r);z(r,c.length,a.length);for(let l of a)c.push(l)}return[c]}case"map_values":{if(t.length===0)return[null];if(Array.isArray(e)){z(r,0,e.length);let c=[];for(let h of e){let a=s(h,t[0],r);z(r,c.length,a.length);for(let l of a)c.push(l)}return[c]}if(e&&typeof e=="object"){let c=Object.create(null),h=Object.keys(e);z(r,0,h.length);for(let a of h){if(!E(a))continue;let l=e[a],y=s(l,t[0],r);y.length>0&&k(c,a,y[0])}return[c]}return[null]}case"has":{if(t.length===0)return[!1];let h=s(e,t[0],r)[0];return Array.isArray(e)&&typeof h=="number"?[h>=0&&h<e.length]:e&&typeof e=="object"&&typeof h=="string"?[Object.hasOwn(e,h)]:[!1]}case"in":{if(t.length===0)return[!1];let h=s(e,t[0],r)[0];return Array.isArray(h)&&typeof e=="number"?[e>=0&&e<h.length]:h&&typeof h=="object"&&typeof e=="string"?[Object.hasOwn(h,e)]:[!1]}case"contains":{if(t.length===0)return[!1];let c=s(e,t[0],r);return[f(e,c[0])]}case"inside":{if(t.length===0)return[!1];let c=s(e,t[0],r);return[f(c[0],e)]}default:return null}}function he(e,n,t,r,s,o,p,u){switch(n){case"first":if(t.length>0)try{let f=o(e,t[0],r);return f.length>0?[f[0]]:[]}catch(f){if(f instanceof u)throw f;return[]}return Array.isArray(e)&&e.length>0?[e[0]]:[null];case"last":if(t.length>0){let f=s(e,t[0],r);return f.length>0?[f[f.length-1]]:[]}return Array.isArray(e)&&e.length>0?[e[e.length-1]]:[null];case"nth":{if(t.length<1)return[null];let f=s(e,t[0],r);if(t.length>1){for(let c of f)if(c<0)throw new Error("nth doesn't support negative indices");let i;try{i=o(e,t[1],r)}catch(c){if(c instanceof u)throw c;i=[]}return f.flatMap(c=>{let h=c;return h<i.length?[i[h]]:[]})}return Array.isArray(e)?f.flatMap(i=>{let c=i;if(c<0)throw new Error("nth doesn't support negative indices");return c<e.length?[e[c]]:[null]}):[null]}case"range":{if(t.length===0)return[];let f=r.limits.maxArrayElements,i=(y,m)=>{if(y.length>=f)throw new u(`query result element limit exceeded (${f})`,"array_elements");y.push(m)},c=s(e,t[0],r);if(t.length===1){let y=[];for(let m of c){let b=m;for(let A=0;A<b;A++)i(y,A)}return y}let h=s(e,t[1],r);if(t.length===2){let y=[];for(let m of c)for(let b of h){let A=m,w=b;for(let N=A;N<w;N++)i(y,N)}return y}let a=s(e,t[2],r),l=[];for(let y of c)for(let m of h)for(let b of a){let A=y,w=m,N=b;if(N!==0)if(N>0)for(let O=A;O<w;O+=N)i(l,O);else for(let O=A;O>w;O+=N)i(l,O)}return l}case"limit":return t.length<2?[]:s(e,t[0],r).flatMap(i=>{let c=i;if(c<0)throw new Error("limit doesn't support negative count");if(c===0)return[];let h;try{h=o(e,t[1],r)}catch(a){if(a instanceof u)throw a;h=[]}return h.slice(0,c)});case"isempty":{if(t.length<1)return[!0];try{return[o(e,t[0],r).length===0]}catch(f){if(f instanceof u)throw f;return[!0]}}case"isvalid":{if(t.length<1)return[!0];try{return[s(e,t[0],r).length>0]}catch(f){if(f instanceof u)throw f;return[!1]}}case"skip":return t.length<2?[]:s(e,t[0],r).flatMap(i=>{let c=i;if(c<0)throw new Error("skip doesn't support negative count");return s(e,t[1],r).slice(c)});case"until":{if(t.length<2)return[e];let f=e,i=r.limits.maxIterations;for(let c=0;c<i;c++){if(s(f,t[0],r).some(p))return[f];let a=s(f,t[1],r);if(a.length===0)return[f];f=a[0]}throw new u(`jq until: too many iterations (${i}), increase executionLimits.maxJqIterations`,"iterations")}case"while":{if(t.length<2)return[e];let f=[],i=e,c=r.limits.maxIterations;for(let h=0;h<c&&s(i,t[0],r).some(p);h++){f.push(i);let l=s(i,t[1],r);if(l.length===0)break;i=l[0]}if(f.length>=c)throw new u(`jq while: too many iterations (${c}), increase executionLimits.maxJqIterations`,"iterations");return f}case"repeat":{if(t.length===0)return[e];let f=[],i=e,c=r.limits.maxIterations;for(let h=0;h<c;h++){f.push(i);let a=s(i,t[0],r);if(a.length===0)break;i=a[0]}if(f.length>=c)throw new u(`jq repeat: too many iterations (${c}), increase executionLimits.maxJqIterations`,"iterations");return f}default:return null}}var Pe="%Y-%m-%dT%H:%M:%SZ";function ae(e,n){if(!Number.isFinite(e)||Math.abs(e)>864e10)throw new Error(`${n} timestamp is outside the supported range`);return new Date(e*1e3)}function $e(e){let n=e.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/);if(!n)return null;let[,t,r,s,o,p,u]=n.map(Number),f=Date.UTC(t,r-1,s,o,p,u);if(!Number.isFinite(f))return null;let i=new Date(f);return i.getUTCFullYear()!==t||i.getUTCMonth()!==r-1||i.getUTCDate()!==s||i.getUTCHours()!==o||i.getUTCMinutes()!==p||i.getUTCSeconds()!==u?null:i}function le(e,n,t,r,s){switch(n){case"now":return[Date.now()/1e3];case"gmtime":{if(typeof e!="number")return[null];let o=ae(e,"gmtime"),p=o.getUTCFullYear(),u=o.getUTCMonth(),f=o.getUTCDate(),i=o.getUTCHours(),c=o.getUTCMinutes(),h=o.getUTCSeconds(),a=o.getUTCDay(),l=Date.UTC(p,0,1),y=Math.floor((o.getTime()-l)/(1440*60*1e3));return[[p,u,f,i,c,h,a,y]]}case"mktime":{if(!Array.isArray(e))throw new Error("mktime requires parsed datetime inputs");let[o,p,u,f=0,i=0,c=0]=e;if(typeof o!="number"||typeof p!="number")throw new Error("mktime requires parsed datetime inputs");let h=Date.UTC(o,p,u??1,f??0,i??0,c??0);return[Math.floor(h/1e3)]}case"strftime":{if(t.length===0)return[null];let p=s(e,t[0],r)[0];if(typeof p!="string")throw new Error("strftime/1 requires a string format");let u;if(typeof e=="number")u=ae(e,"strftime");else if(Array.isArray(e)){let[a,l,y,m=0,b=0,A=0]=e;if(typeof a!="number"||typeof l!="number")throw new Error("strftime/1 requires parsed datetime inputs");u=new Date(Date.UTC(a,l,y??1,m??0,b??0,A??0))}else throw new Error("strftime/1 requires parsed datetime inputs");let f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["January","February","March","April","May","June","July","August","September","October","November","December"],c=(a,l=2)=>String(a).padStart(l,"0");return[p.replace(/%Y/g,String(u.getUTCFullYear())).replace(/%m/g,c(u.getUTCMonth()+1)).replace(/%d/g,c(u.getUTCDate())).replace(/%H/g,c(u.getUTCHours())).replace(/%M/g,c(u.getUTCMinutes())).replace(/%S/g,c(u.getUTCSeconds())).replace(/%A/g,f[u.getUTCDay()]).replace(/%B/g,i[u.getUTCMonth()]).replace(/%Z/g,"UTC").replace(/%%/g,"%")]}case"strptime":{if(t.length===0)return[null];if(typeof e!="string")throw new Error("strptime/1 requires a string input");let p=s(e,t[0],r)[0];if(typeof p!="string")throw new Error("strptime/1 requires a string format");if(p!==Pe)throw new Error(`strptime format is not supported: ${p}`);let u=$e(e);if(u){let f=u.getUTCFullYear(),i=u.getUTCMonth(),c=u.getUTCDate(),h=u.getUTCHours(),a=u.getUTCMinutes(),l=u.getUTCSeconds(),y=u.getUTCDay(),m=Date.UTC(f,0,1),b=Math.floor((u.getTime()-m)/(1440*60*1e3));return[[f,i,c,h,a,l,y,b]]}throw new Error(`Cannot parse date: ${e}`)}case"fromdate":{if(typeof e!="string")throw new Error("fromdate requires a string input");let o=$e(e);if(!o)throw new Error(`date "${e}" does not match format "${Pe}"`);return[Math.floor(o.getTime()/1e3)]}case"todate":{if(typeof e!="number")throw new Error("todate requires a number input");return[ae(e,"todate").toISOString().replace(/\.\d{3}Z$/,"Z")]}default:return null}}var We=2e3;function Xe(e){let n=[];for(let r=0;r<e.length;r+=32768){let s=Math.min(r+32768,e.length),o="";for(let p=r;p<s;p++)o+=String.fromCharCode(e[p]);n.push(o)}return n.join("")}function Ge(e){let n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n}function ye(e,n,t){switch(n){case"@base64":if(typeof e=="string"){if(typeof Buffer<"u")return[Buffer.from(e,"utf-8").toString("base64")];let r=new TextEncoder().encode(e);return[btoa(Xe(r))]}return[null];case"@base64d":if(typeof e=="string"){if(typeof Buffer<"u")return[Buffer.from(e,"base64").toString("utf-8")];let r=Ge(atob(e));return[new TextDecoder("utf-8",{fatal:!1}).decode(r)]}return[null];case"@uri":return typeof e=="string"?[encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")]:[null];case"@urid":return typeof e=="string"?[decodeURIComponent(e)]:[null];case"@csv":return Array.isArray(e)?[e.map(s=>{if(s===null)return"";if(typeof s=="boolean")return s?"true":"false";if(typeof s=="number")return String(s);let o=String(s);return o.includes(",")||o.includes('"')||o.includes(`
|
|
4
|
+
`)||o.includes("\r")?`"${o.replace(/"/g,'""')}"`:o}).join(",")]:[null];case"@tsv":return Array.isArray(e)?[e.map(r=>String(r??"").replace(/\t/g,"\\t").replace(/\n/g,"\\n")).join(" ")]:[null];case"@json":{let r=t??We;return B(e,r+1)>r?[null]:[JSON.stringify(e)]}case"@html":return typeof e=="string"?[e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")]:[null];case"@sh":return typeof e=="string"?[`'${e.replace(/'/g,"'\\''")}'`]:[null];case"@text":return typeof e=="string"?[e]:e==null?[""]:[String(e)];default:return null}}function me(e,n,t,r,s,o){switch(n){case"index":return t.length===0?[null]:s(e,t[0],r).map(u=>{if(typeof e=="string"&&typeof u=="string"){if(u===""&&e==="")return null;let f=e.indexOf(u);return f>=0?f:null}if(Array.isArray(e)){if(Array.isArray(u)){for(let i=0;i<=e.length-u.length;i++){let c=!0;for(let h=0;h<u.length;h++)if(!o(e[i+h],u[h])){c=!1;break}if(c)return i}return null}let f=e.findIndex(i=>o(i,u));return f>=0?f:null}return null});case"rindex":return t.length===0?[null]:s(e,t[0],r).map(u=>{if(typeof e=="string"&&typeof u=="string"){let f=e.lastIndexOf(u);return f>=0?f:null}if(Array.isArray(e)){if(Array.isArray(u)){for(let f=e.length-u.length;f>=0;f--){let i=!0;for(let c=0;c<u.length;c++)if(!o(e[f+c],u[c])){i=!1;break}if(i)return f}return null}for(let f=e.length-1;f>=0;f--)if(o(e[f],u))return f;return null}return null});case"indices":return t.length===0?[[]]:s(e,t[0],r).map(u=>{let f=[];if(typeof e=="string"&&typeof u=="string"){let i=e.indexOf(u);for(;i!==-1;)f.push(i),i=e.indexOf(u,i+1)}else if(Array.isArray(e))if(Array.isArray(u)){let i=u.length;if(i===0)for(let c=0;c<=e.length;c++)f.push(c);else for(let c=0;c<=e.length-i;c++){let h=!0;for(let a=0;a<i;a++)if(!o(e[c+a],u[a])){h=!1;break}h&&f.push(c)}}else for(let i=0;i<e.length;i++)o(e[i],u)&&f.push(i);return f});default:return null}}function de(e,n,t,r,s){switch(n){case"fabs":case"abs":return typeof e=="number"?[Math.abs(e)]:typeof e=="string"?[e]:[null];case"exp10":return typeof e=="number"?[10**e]:[null];case"exp2":return typeof e=="number"?[2**e]:[null];case"pow":{if(t.length<2)return[null];let o=s(e,t[0],r),p=s(e,t[1],r),u=o[0],f=p[0];return typeof u!="number"||typeof f!="number"?[null]:[u**f]}case"atan2":{if(t.length<2)return[null];let o=s(e,t[0],r),p=s(e,t[1],r),u=o[0],f=p[0];return typeof u!="number"||typeof f!="number"?[null]:[Math.atan2(u,f)]}case"hypot":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[Math.hypot(e,o)]}case"fma":{if(typeof e!="number"||t.length<2)return[null];let o=s(e,t[0],r)[0],p=s(e,t[1],r)[0];return[e*o+p]}case"copysign":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[Math.sign(o)*Math.abs(e)]}case"drem":case"remainder":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[e-Math.round(e/o)*o]}case"fdim":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[Math.max(0,e-o)]}case"fmax":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[Math.max(e,o)]}case"fmin":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[Math.min(e,o)]}case"ldexp":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[e*2**o]}case"scalbn":case"scalbln":{if(typeof e!="number"||t.length===0)return[null];let o=s(e,t[0],r)[0];return[e*2**o]}case"nearbyint":return typeof e=="number"?[Math.round(e)]:[null];case"logb":return typeof e=="number"?[Math.floor(Math.log2(Math.abs(e)))]:[null];case"significand":if(typeof e=="number"){let o=Math.floor(Math.log2(Math.abs(e)));return[e/2**o]}return[null];case"frexp":if(typeof e=="number"){if(e===0)return[[0,0]];let o=Math.floor(Math.log2(Math.abs(e)))+1;return[[e/2**o,o]]}return[null];case"modf":if(typeof e=="number"){let o=Math.trunc(e);return[[e-o,o]]}return[null];default:return null}}function V(e){let n=e.limits.maxIterations;return{maxDepth:e.limits.maxDepth,maxResults:e.limits.maxArrayElements,maxIterations:n}}function H(e){throw new g(e,"array_elements")}function ge(e,n){let t=1;for(let r of e){if(!Number.isSafeInteger(r)||r<0)throw new Error("combinations requires finite array lengths");r!==0&&t>Math.floor(n/r)&&H(`query combination limit exceeded (${n})`),t*=r}return t}function be(e,n,t,r,s,o,p,u){switch(n){case"recurse":{let f=[],i=V(r),c=t.length>=2?t[1]:null,h=[{value:e,depth:0}],a=0;for(;h.length>0;){let l=h.pop();if(!l)break;if(++a>i.maxIterations)throw new g(`query iteration limit exceeded (${i.maxIterations})`,"iterations");if(l.depth>i.maxDepth)throw new g(`query depth limit exceeded (${i.maxDepth})`,"recursion");if(c&&!s(l.value,c,r).some(o))continue;f.length>=i.maxResults&&H(`query result element limit exceeded (${i.maxResults})`),f.push(l.value);let y=[];t.length===0?Array.isArray(l.value)?y=l.value:l.value&&typeof l.value=="object"&&(y=Object.keys(l.value).map(m=>l.value[m])):y=s(l.value,t[0],r).filter(m=>m!=null),h.length>i.maxResults-y.length&&H(`query traversal queue limit exceeded (${i.maxResults})`);for(let m=y.length-1;m>=0;m--)h.push({value:y[m],depth:l.depth+1})}return f}case"recurse_down":return u(e,"recurse",t,r);case"walk":{if(t.length===0)return[e];let f=V(r),i=new WeakSet,c=new WeakMap,h=[{value:e,depth:0,expanded:!1}],a=e,l=0;for(;h.length>0;){let y=h.pop();if(!y)break;if(++l>f.maxIterations)throw new g(`query iteration limit exceeded (${f.maxIterations})`,"iterations");if(y.depth>f.maxDepth)throw new g(`query depth limit exceeded (${f.maxDepth})`,"recursion");let m=y.value!==null&&typeof y.value=="object"?y.value:null;if(!y.expanded&&m){if(i.has(m))continue;i.add(m),h.push({...y,expanded:!0});let w=S(y.value),N=Array.isArray(y.value)?y.value:Object.keys(w??{}).map(O=>w?.[O]);h.length>f.maxResults-N.length&&H(`query traversal queue limit exceeded (${f.maxResults})`);for(let O=N.length-1;O>=0;O--)h.push({value:N[O],depth:y.depth+1,expanded:!1});continue}let b=y.value;if(Array.isArray(y.value))b=y.value.map(w=>w!==null&&typeof w=="object"?c.get(w)??w:w);else if(m){let w=Object.create(null),N=S(y.value);for(let O of Object.keys(N??{})){if(!E(O))continue;let $=N?.[O];k(w,O,$!==null&&typeof $=="object"?c.get($)??$:$)}b=w}let A=s(b,t[0],r)[0];m&&c.set(m,A),y.depth===0&&(a=A)}return[a]}case"transpose":{if(!Array.isArray(e))return[null];if(e.length===0)return[[]];let f=V(r),i=0;for(let h of e)Array.isArray(h)&&(i=Math.max(i,h.length));ge([e.length,i],f.maxResults);let c=[];for(let h=0;h<i;h++)c.push(e.map(a=>Array.isArray(a)?a[h]:null));return[c]}case"combinations":{if(t.length>0){let y=s(e,t[0],r)[0];if(!Array.isArray(e))return[];if(!Number.isFinite(y)||!Number.isSafeInteger(y)||y<0)throw new Error("combinations length must be a finite non-negative integer");let m=V(r);if(y>m.maxDepth||y>m.maxResults)throw new g(`query depth limit exceeded (${m.maxDepth})`,"recursion");if(y===0)return m.maxResults<1&&H("query combination limit exceeded (0)"),[[]];let b=ge(Array.from({length:y},()=>e.length),m.maxResults);if(b===0)return[];let A=[],w=new Array(y).fill(0);for(let N=0;N<b;N++){A.push(w.map(O=>e[O]));for(let O=y-1;O>=0&&(w[O]++,!(w[O]<e.length));O--)w[O]=0}return A}if(!Array.isArray(e))return[];if(e.length===0)return V(r).maxResults<1&&H("query combination limit exceeded (0)"),[[]];for(let l of e)if(!Array.isArray(l))return[];let f=V(r),i=e;if(i.length>f.maxDepth)throw new g(`query depth limit exceeded (${f.maxDepth})`,"recursion");let c=ge(i.map(l=>l.length),f.maxResults);if(c===0)return[];let h=[],a=new Array(i.length).fill(0);for(let l=0;l<c;l++){h.push(a.map((y,m)=>i[m][y]));for(let y=i.length-1;y>=0&&(a[y]++,!(a[y]<i[y].length));y--)a[y]=0}return h}case"parent":{if(r.root===void 0||r.currentPath===void 0)return[];let f=r.currentPath;if(f.length===0)return[];let i=t.length>0?s(e,t[0],r)[0]:1;if(i>=0){if(i>f.length)return[];let c=f.slice(0,f.length-i);return[p(r.root,c)]}else{let c=-i-1;if(c>=f.length)return[e];let h=f.slice(0,c);return[p(r.root,h)]}}case"parents":{if(r.root===void 0||r.currentPath===void 0)return[[]];let f=r.currentPath,i=[];for(let c=f.length-1;c>=0;c--)i.push(p(r.root,f.slice(0,c)));return[i]}case"root":return r.root!==void 0?[r.root]:[];default:return null}}var we=2e3;function R(e){return e.limits.maxArrayElements}function Ae(e,n){let t=Object.create(null);return k(t,"key",e),k(t,"value",n),t}function ee(e,n){let t=R(e);if(n>=t)throw new g(`query result element limit exceeded (${t})`,"array_elements")}function Ze(e,n){let t=n.limits.maxDepth??we;if(e.length>t)throw new g(`query depth limit exceeded (${t})`,"recursion");let r=n.limits.maxArrayElements;for(let s of e)if(typeof s=="number"){if(!Number.isSafeInteger(s)||s<0||s>=r)throw new g(`query array index limit exceeded (${r})`,"array_elements")}else if(typeof s!="string")throw new Error("stream path components must be strings or integers")}function Ee(e,n,t,r,s){switch(n){case"keys":return Array.isArray(e)?[e.map((o,p)=>p)]:e&&typeof e=="object"?[Object.keys(e).sort()]:[null];case"keys_unsorted":return Array.isArray(e)?[e.map((o,p)=>p)]:e&&typeof e=="object"?[Object.keys(e)]:[null];case"length":return typeof e=="string"?[e.length]:Array.isArray(e)?[e.length]:e&&typeof e=="object"?[Object.keys(e).length]:e===null?[0]:typeof e=="number"?[Math.abs(e)]:[null];case"utf8bytelength":{if(typeof e=="string")return[x(e)];let o=e===null?"null":Array.isArray(e)?"array":typeof e,p=o==="array"||o==="object"?JSON.stringify(e):String(e);throw new Error(`${o} (${p}) only strings have UTF-8 byte length`)}case"to_entries":{if(Array.isArray(e)){if(e.length>R(r))throw new g(`query result element limit exceeded (${R(r)})`,"array_elements");return[e.map((p,u)=>Ae(u,p))]}let o=S(e);if(o){let p=Object.keys(o);if(p.length>R(r))throw new g(`query result element limit exceeded (${R(r)})`,"array_elements");return[p.map(u=>Ae(u,o[u]))]}return[null]}case"from_entries":if(Array.isArray(e)){let o=Object.create(null);for(let p of e){let u=S(p);if(u){let f=u.key??u.Key??u.name??u.Name??u.k,i=u.value??u.Value??u.v;if(f!==void 0){let c=String(f);E(c)&&k(o,c,i)}}}return[o]}return[null];case"with_entries":{if(t.length===0)return[e];let o=S(e);if(o){let p=Object.keys(o);if(p.length>R(r))throw new g(`query result element limit exceeded (${R(r)})`,"array_elements");let u=[];for(let i of p){let c=Ae(i,o[i]),h=s(c,t[0],r);if(u.length>R(r)-h.length)throw new g(`query result element limit exceeded (${R(r)})`,"array_elements");for(let a of h)u.push(a)}let f=Object.create(null);for(let i of u){let c=S(i);if(c){let h=c.key??c.name??c.k,a=c.value??c.v;if(h!==void 0){let l=String(h);E(l)&&k(f,l,a)}}}return[f]}return[null]}case"reverse":return Array.isArray(e)?[[...e].reverse()]:typeof e=="string"?[e.split("").reverse().join("")]:[null];case"flatten":return Array.isArray(e)?(t.length>0?s(e,t[0],r):[Number.POSITIVE_INFINITY]).map(p=>{let u=p;if(u<0)throw new Error("flatten depth must not be negative");return e.flat(u)}):[null];case"unique":if(Array.isArray(e)){let o=new Set,p=[];for(let u of e){let f=JSON.stringify(u);o.has(f)||(o.add(f),p.push(u))}return[p]}return[null];case"tojson":case"tojsonstream":{let o=r.limits.maxDepth??we;return B(e,o+1)>o?[null]:[JSON.stringify(e)]}case"fromjson":{if(typeof e=="string"){let o=e.trim().toLowerCase();if(o==="nan")return[Number.NaN];if(o==="inf"||o==="infinity")return[Number.POSITIVE_INFINITY];if(o==="-inf"||o==="-infinity")return[Number.NEGATIVE_INFINITY];try{return[Ie(JSON.parse(e),{maxDepth:r.limits.maxDepth,maxElements:r.limits.maxArrayElements})]}catch(p){throw p instanceof g?p:new Error(`Invalid JSON: ${e}`)}}return[e]}case"tostring":return typeof e=="string"?[e]:[JSON.stringify(e)];case"tonumber":if(typeof e=="number")return[e];if(typeof e=="string"){let o=e.trim()===""?Number.NaN:Number(e);if(Number.isNaN(o))throw new Error(`${JSON.stringify(e)} cannot be parsed as a number`);return[o]}throw new Error(`${typeof e} cannot be parsed as a number`);case"toboolean":{if(typeof e=="boolean")return[e];if(typeof e=="string"){if(e==="true")return[!0];if(e==="false")return[!1];throw new Error(`string (${JSON.stringify(e)}) cannot be parsed as a boolean`)}let o=e===null?"null":Array.isArray(e)?"array":typeof e,p=o==="array"||o==="object"?JSON.stringify(e):String(e);throw new Error(`${o} (${p}) cannot be parsed as a boolean`)}case"tostream":{let o=[],p=r.limits.maxDepth??we,u=[{value:e,path:[]}],f=new WeakSet,i=0;for(;u.length>0;){let c=u.pop();if(!c)break;if(++i>r.limits.maxIterations)throw new g(`query iteration limit exceeded (${r.limits.maxIterations})`,"iterations");if(c.path.length>p)throw new g(`query depth limit exceeded (${p})`,"recursion");let h=c.value;if(h===null||typeof h!="object")ee(r,o.length),o.push([c.path,h]);else if(Array.isArray(h)){if(f.has(h))throw new g("cyclic value cannot be converted to a stream","recursion");if(f.add(h),h.length===0)ee(r,o.length),o.push([c.path,[]]);else{if(u.length>R(r)-h.length)throw new g(`query traversal queue limit exceeded (${R(r)})`,"array_elements");for(let a=h.length-1;a>=0;a--)u.push({value:h[a],path:[...c.path,a]})}}else{if(f.has(h))throw new g("cyclic value cannot be converted to a stream","recursion");f.add(h);let a=Object.keys(h);if(a.length===0)ee(r,o.length),o.push([c.path,Object.create(null)]);else{if(u.length>R(r)-a.length)throw new g(`query traversal queue limit exceeded (${R(r)})`,"array_elements");for(let l=a.length-1;l>=0;l--){let y=a[l];u.push({value:h[y],path:[...c.path,y]})}}}}return ee(r,o.length),o.push([[]]),o}case"fromstream":{if(t.length===0)return[e];let o=s(e,t[0],r);if(o.length>R(r))throw new g(`query stream item limit exceeded (${R(r)})`,"array_elements");let p=null,u=0;for(let f of o){if(!Array.isArray(f)||f.length===1&&Array.isArray(f[0])&&f[0].length===0||f.length!==2)continue;let[i,c]=f;if(!Array.isArray(i))continue;if(Ze(i,r),i.length===0){p=c;continue}p===null&&(p=typeof i[0]=="number"?[]:Object.create(null));let h=p;for(let l=0;l<i.length-1;l++){let y=i[l],m=i[l+1];if(Array.isArray(h)&&typeof y=="number"){let b=y+1-h.length;if(b>r.limits.maxIterations-u)throw new g(`query iteration limit exceeded (${r.limits.maxIterations})`,"iterations");for(u+=Math.max(0,b);h.length<=y;)h.push(null);h[y]===null&&(h[y]=typeof m=="number"?[]:Object.create(null)),h=h[y]}else{let b=S(h);if(b){let A=String(y);if(!E(A))continue;(b[A]===null||b[A]===void 0)&&k(b,A,typeof m=="number"?[]:Object.create(null)),h=b[A]}}}let a=i[i.length-1];if(Array.isArray(h)&&typeof a=="number"){let l=a+1-h.length;if(l>r.limits.maxIterations-u)throw new g(`query iteration limit exceeded (${r.limits.maxIterations})`,"iterations");for(u+=Math.max(0,l);h.length<=a;)h.push(null);h[a]=c}else{let l=S(h);if(l){let y=String(a);E(y)&&k(l,y,c)}}}return[p]}case"truncate_stream":{let o=typeof e=="number"?Math.floor(e):0;if(t.length===0)return[];let p=[],u=s(e,t[0],r);for(let f of u)if(Array.isArray(f)){if(f.length===1&&Array.isArray(f[0])){let i=f[0];i.length>o&&p.push([i.slice(o)]);continue}if(f.length===2&&Array.isArray(f[0])){let i=f[0],c=f[1];i.length>o&&p.push([i.slice(o),c])}}return p}default:return null}}function Le(e,n){if(!Array.isArray(e))throw new Error("path must be an array");let t=n.limits.maxDepth;if(e.length>t)throw new g(`query depth limit exceeded (${t})`,"recursion");let r=n.limits.maxArrayElements,s=0;for(let o of e)if(typeof o=="number"){if(!Number.isSafeInteger(o)||o<0||o>=r)throw new g(`query array index limit exceeded (${r})`,"array_elements");let p=o+1;if(s>r-p)throw new g(`query cumulative array allocation limit exceeded (${r})`,"array_elements");s+=p}else if(typeof o!="string")throw new Error("path components must be strings or integers");return T(n,s+e.length),e}function _e(e,n,t){let r=[],s=[{value:e,path:[],isRoot:!0}];for(;s.length>0;){let o=s.pop();if(!o)break;if(T(n),o.path.length>n.limits.maxDepth)throw new g(`query depth limit exceeded (${n.limits.maxDepth})`,"recursion");if(!(o.value!==null&&typeof o.value=="object")){(t||!o.isRoot)&&(D(n,r.length),r.push(o.path));continue}!t&&!o.isRoot&&(D(n,r.length),r.push(o.path));let u=Array.isArray(o.value)?o.value.map((f,i)=>[i,f]):Object.keys(o.value).map(f=>[f,o.value[f]]);D(n,r.length,s.length+u.length);for(let f=u.length-1;f>=0;f--){let[i,c]=u[f],h=[...o.path,i];s.push({value:c,path:h,isRoot:!1})}}return r}function ke(e,n,t,r,s,o,p,u,f,i){switch(n){case"getpath":{if(t.length===0)return[null];let c=s(e,t[0],r),h=[];for(let a of c){let l=a,y=e;for(let m of l){if(y==null){y=null;break}if(Array.isArray(y)&&typeof m=="number")y=y[m];else if(typeof m=="string"){let b=S(y);if(!b||!Object.hasOwn(b,m)){y=null;break}y=b[m]}else{y=null;break}}h.push(y)}return h}case"setpath":{if(t.length<2)return[null];let c=s(e,t[0],r),h=Le(c[0],r),l=s(e,t[1],r)[0];return[p(e,h,l)]}case"delpaths":{if(t.length===0)return[e];let h=s(e,t[0],r)[0],a=e;for(let l of h.sort((y,m)=>m.length-y.length))a=u(a,l);return[a]}case"path":{if(t.length===0)return[[]];let c=[];return i(e,t[0],r,[],c),c}case"del":return t.length===0?[e]:[f(e,t[0],r)];case"pick":{if(t.length===0)return[null];let c=[];for(let a of t)i(e,a,r,[],c);let h=null;for(let a of c){for(let y of a)if(typeof y=="number"&&y<0)throw new Error("Out of bounds negative array index");Le(a,r);let l=e;for(let y of a){if(l==null)break;if(Array.isArray(l)&&typeof y=="number")l=l[y];else if(typeof y=="string"){let m=S(l);if(!m||!Object.hasOwn(m,y)){l=null;break}l=m[y]}else{l=null;break}}h=p(h,a,l)}return[h]}case"paths":{let c=_e(e,r,!1);return t.length>0?c.filter(h=>{let a=e;for(let y of h)if(Array.isArray(a)&&typeof y=="number")a=a[y];else if(typeof y=="string"){let m=S(a);if(!m||!Object.hasOwn(m,y))return!1;a=m[y]}else return!1;return s(a,t[0],r).some(o)}):c}case"leaf_paths":return _e(e,r,!0);default:return null}}function Se(e,n,t,r,s,o){switch(n){case"IN":{if(t.length===0)return[!1];if(t.length===1){let i=s(e,t[0],r);for(let c of i)if(o(e,c))return[!0];return[!1]}let p=s(e,t[0],r),u=s(e,t[1],r),f=new Set(u.map(i=>JSON.stringify(i)));for(let i of p)if(f.has(JSON.stringify(i)))return[!0];return[!1]}case"INDEX":{if(t.length===0)return[Object.create(null)];if(t.length===1){let f=s(e,t[0],r),i=Object.create(null);for(let c of f){let h=String(c);E(h)&&k(i,h,c)}return[i]}if(t.length===2){let f=s(e,t[0],r),i=Object.create(null);for(let c of f){let h=s(c,t[1],r);if(h.length>0){let a=String(h[0]);E(a)&&k(i,a,c)}}return[i]}let p=s(e,t[0],r),u=Object.create(null);for(let f of p){let i=s(f,t[1],r),c=s(f,t[2],r);if(i.length>0&&c.length>0){let h=String(i[0]);E(h)&&k(u,h,c[0])}}return[u]}case"JOIN":{if(t.length<2)return[null];let p=S(s(e,t[0],r)[0]);if(!p)return[null];if(!Array.isArray(e))return[null];let u=[];for(let f of e){let i=s(f,t[1],r),c=i.length>0?String(i[0]):"",h=_(p,c)?p[c]:null;u.push([f,h])}return[u]}default:return null}}function Ue(e){return e.limits.maxArrayElements}function Be(e){return Math.min(e.limits.maxStringLength,e.limits.maxOutputSize)}function U(e,n){let t=Ue(e);if(!Number.isSafeInteger(n)||n<0||n>t)throw new g(`query result element limit exceeded (${t})`,"array_elements")}function ve(e,n,t){if(e==="")return n===""?0:1;if(n==="")return e.length;let r=1,s=0;for(;;){let o=e.indexOf(n,s);if(o<0||(r++,r>t))return r;s=o+n.length}}function Oe(e,n,t,r,s){switch(n){case"join":{if(!Array.isArray(e))return[null];let o=t.length>0?s(e,t[0],r):[""];for(let p of e)if(Array.isArray(p)||p!==null&&typeof p=="object")throw new Error("cannot join: contains arrays or objects");return U(r,o.length),o.map(p=>{let u=String(p),f=0;for(let i=0;i<e.length;i++){let c=e[i]===null?"":typeof e[i]=="string"?e[i]:String(e[i]);if(f+=x(c),i>0&&(f+=x(u)),f>Be(r))throw new g(`query string size limit exceeded (${Be(r)} bytes)`,"string_length")}return e.map(i=>i===null?"":typeof i=="string"?i:String(i)).join(u)})}case"split":{if(typeof e!="string"||t.length===0)return[null];let o=s(e,t[0],r),p=String(o[0]);return U(r,ve(e,p,Ue(r))),[e.split(p)]}case"splits":{if(typeof e!="string"||t.length===0)return[];let o=s(e,t[0],r),p=String(o[0]);try{let u=t.length>1?String(s(e,t[1],r)[0]):"g",f=j(p,u.includes("g")?u:`${u}g`),i=1;for(let h of f.matchAll(e))i+=Math.max(1,h.length),U(r,i);let c=f.split(e);return U(r,c.length),c}catch(u){if(u instanceof g)throw u;return[]}}case"scan":{if(typeof e!="string"||t.length===0)return[];let o=s(e,t[0],r),p=String(o[0]);try{let u=t.length>1?String(s(e,t[1],r)[0]):"",f=j(p,u.includes("g")?u:`${u}g`),i=[];for(let c of f.matchAll(e))U(r,i.length+1),c.length>1?(U(r,c.length-1),i.push(c.slice(1))):i.push(c[0]);return i}catch(u){if(u instanceof g)throw u;return[]}}case"test":{if(typeof e!="string"||t.length===0)return[!1];let o=s(e,t[0],r),p=String(o[0]);try{let u=t.length>1?String(s(e,t[1],r)[0]):"";return[j(p,u).test(e)]}catch{return[!1]}}case"match":{if(typeof e!="string"||t.length===0)return[null];let o=s(e,t[0],r),p=String(o[0]);try{let u=t.length>1?String(s(e,t[1],r)[0]):"",i=j(p,`${u}d`).exec(e);if(!i)return[];let c=i.indices;return[{offset:i.index,length:i[0].length,string:i[0],captures:i.slice(1).map((h,a)=>({offset:c?.[a+1]?.[0]??null,length:h?.length??0,string:h??"",name:null}))}]}catch{return[null]}}case"capture":{if(typeof e!="string"||t.length===0)return[null];let o=s(e,t[0],r),p=String(o[0]);try{let u=t.length>1?String(s(e,t[1],r)[0]):"",i=j(p,u).match(e);return!i||!i.groups?[Object.create(null)]:[i.groups]}catch{return[null]}}case"sub":{if(typeof e!="string"||t.length<2)return[null];let o=s(e,t[0],r),p=s(e,t[1],r),u=String(o[0]),f=String(p[0]);try{let i=t.length>2?String(s(e,t[2],r)[0]):"";return[j(u,i).replace(e,f)]}catch{return[e]}}case"gsub":{if(typeof e!="string"||t.length<2)return[null];let o=s(e,t[0],r),p=s(e,t[1],r),u=String(o[0]),f=String(p[0]);try{let i=t.length>2?String(s(e,t[2],r)[0]):"g",c=i.includes("g")?i:`${i}g`;return[j(u,c).replace(e,f)]}catch{return[e]}}case"ascii_downcase":return typeof e=="string"?[e.replace(/[A-Z]/g,o=>String.fromCharCode(o.charCodeAt(0)+32))]:[null];case"ascii_upcase":return typeof e=="string"?[e.replace(/[a-z]/g,o=>String.fromCharCode(o.charCodeAt(0)-32))]:[null];case"ltrimstr":{if(typeof e!="string"||t.length===0)return[e];let o=s(e,t[0],r),p=String(o[0]);return[e.startsWith(p)?e.slice(p.length):e]}case"rtrimstr":{if(typeof e!="string"||t.length===0)return[e];let o=s(e,t[0],r),p=String(o[0]);return p===""?[e]:[e.endsWith(p)?e.slice(0,-p.length):e]}case"trimstr":{if(typeof e!="string"||t.length===0)return[e];let o=s(e,t[0],r),p=String(o[0]);if(p==="")return[e];let u=e;return u.startsWith(p)&&(u=u.slice(p.length)),u.endsWith(p)&&(u=u.slice(0,-p.length)),[u]}case"trim":if(typeof e=="string")return[e.trim()];throw new Error("trim input must be a string");case"ltrim":if(typeof e=="string")return[e.trimStart()];throw new Error("trim input must be a string");case"rtrim":if(typeof e=="string")return[e.trimEnd()];throw new Error("trim input must be a string");case"startswith":{if(typeof e!="string"||t.length===0)return[!1];let o=s(e,t[0],r);return[e.startsWith(String(o[0]))]}case"endswith":{if(typeof e!="string"||t.length===0)return[!1];let o=s(e,t[0],r);return[e.endsWith(String(o[0]))]}case"ascii":return typeof e=="string"&&e.length>0?[e.charCodeAt(0)]:[null];case"explode":if(typeof e=="string"){let o=0;for(let p of e)o++,U(r,o);return[Array.from(e).map(p=>p.codePointAt(0))]}return[null];case"implode":if(!Array.isArray(e))throw new Error("implode input must be an array");return[e.map(u=>{if(typeof u=="string")throw new Error(`string (${JSON.stringify(u)}) can't be imploded, unicode codepoint needs to be numeric`);if(typeof u!="number"||Number.isNaN(u))throw new Error("number (null) can't be imploded, unicode codepoint needs to be numeric");let f=Math.trunc(u);return f<0||f>1114111||f>=55296&&f<=57343?String.fromCodePoint(65533):String.fromCodePoint(f)}).join("")];default:return null}}function Ne(e,n){switch(n){case"type":return e===null?["null"]:Array.isArray(e)?["array"]:typeof e=="boolean"?["boolean"]:typeof e=="number"?["number"]:typeof e=="string"?["string"]:typeof e=="object"?["object"]:["null"];case"infinite":return[Number.POSITIVE_INFINITY];case"nan":return[Number.NaN];case"isinfinite":return[typeof e=="number"&&!Number.isFinite(e)];case"isnan":return[typeof e=="number"&&Number.isNaN(e)];case"isnormal":return[typeof e=="number"&&Number.isFinite(e)&&e!==0];case"isfinite":return[typeof e=="number"&&Number.isFinite(e)];case"numbers":return typeof e=="number"?[e]:[];case"strings":return typeof e=="string"?[e]:[];case"booleans":return typeof e=="boolean"?[e]:[];case"nulls":return e===null?[e]:[];case"arrays":return Array.isArray(e)?[e]:[];case"objects":return e&&typeof e=="object"&&!Array.isArray(e)?[e]:[];case"iterables":return Array.isArray(e)||e&&typeof e=="object"&&!Array.isArray(e)?[e]:[];case"scalars":return!Array.isArray(e)&&!(e&&typeof e=="object")?[e]:[];case"values":return e===null?[]:[e];case"not":return e===!1||e===null?[!0]:[!1];case"null":return[null];case"true":return[!0];case"false":return[!1];case"empty":return[];default:return null}}function te(e,n,t){if(n.length===0)return t;let[r,...s]=n;if(typeof r=="number"){if(e&&typeof e=="object"&&!Array.isArray(e))throw new Error("Cannot index object with number");if(r>536870911)throw new Error("Array index too large");if(r<0)throw new Error("Out of bounds negative array index");let i=Array.isArray(e)?[...e]:[];for(;i.length<=r;)i.push(null);return i[r]=te(i[r],s,t),i}if(Array.isArray(e))throw new Error("Cannot index array with string");if(!E(r))return e??Object.create(null);let o=S(e),p=o?C(o):Object.create(null),u=Object.hasOwn(p,r)?p[r]:void 0;return k(p,r,te(u,s,t)),p}function re(e,n){if(n.length===0)return null;if(n.length===1){let s=n[0];if(Array.isArray(e)&&typeof s=="number"){let o=[...e];return o.splice(s,1),o}if(e&&typeof e=="object"&&!Array.isArray(e)){let o=String(s);if(!E(o))return e;let p=C(e);return delete p[o],p}return e}let[t,...r]=n;if(Array.isArray(e)&&typeof t=="number"){let s=[...e];return s[t]=re(s[t],r),s}if(e&&typeof e=="object"&&!Array.isArray(e)){let s=String(t);if(!E(s))return e;let o=C(e);return Object.hasOwn(o,s)&&k(o,s,re(o[s],r)),o}return e}var Q=class e extends Error{label;partialResults;constructor(n,t=[]){super(`break ${n}`),this.label=n,this.partialResults=t,this.name="BreakError"}withPrependedResults(n){return new e(this.label,[...n,...this.partialResults])}},ie=class extends Error{value;constructor(n){super(typeof n=="string"?n:JSON.stringify(n)),this.value=n,this.name="JqError"}},et=1e4,qe=10*1024*1024,Je=2e3,tt=new Map([["floor",Math.floor],["ceil",Math.ceil],["round",Math.round],["sqrt",Math.sqrt],["log",Math.log],["log10",Math.log10],["log2",Math.log2],["exp",Math.exp],["sin",Math.sin],["cos",Math.cos],["tan",Math.tan],["asin",Math.asin],["acos",Math.acos],["atan",Math.atan],["sinh",Math.sinh],["cosh",Math.cosh],["tanh",Math.tanh],["asinh",Math.asinh],["acosh",Math.acosh],["atanh",Math.atanh],["cbrt",Math.cbrt],["expm1",Math.expm1],["log1p",Math.log1p],["trunc",Math.trunc]]);function F(e,n){return new g(e,n)}function T(e,n=1){if(!Number.isSafeInteger(n)||n<0||e.budget.operations>e.limits.maxIterations-n)throw F(`query evaluation: too many iterations (${e.limits.maxIterations})`,"iterations");e.budget.operations+=n}function D(e,n,t=1){let r=e.limits.maxArrayElements;if(!Number.isSafeInteger(n)||!Number.isSafeInteger(t)||n<0||t<0||n>r-t)throw F(`query result element limit exceeded (${r})`,"array_elements")}function q(e,n,t){D(e,n.length,t.length);for(let r of t)n.push(r)}function M(e,n,t){let r=[];for(let s of n){T(e);let o=t(s);q(e,r,o)}return r}function rt(e){let n=new Map;if(e?.namedArgs)for(let[t,r]of e.namedArgs)n.set(`$${t}`,r);return{vars:n,limits:{maxIterations:e?.limits?.maxIterations??et,maxDepth:e?.limits?.maxDepth??Je,maxStringLength:e?.limits?.maxStringLength??qe,maxOutputSize:e?.limits?.maxOutputSize??qe,maxArrayElements:e?.limits?.maxArrayElements??1e5},env:e?.env,namedArgs:e?.namedArgs,positionalArgs:e?.positionalArgs,coverage:e?.coverage,requireDefenseContext:e?.requireDefenseContext,defenseContextChecked:!1,budget:e?.budget??{operations:0,callDepth:0}}}function se(e,n,t){let r=new Map(e.vars);return r.set(n,t),{vars:r,limits:e.limits,env:e.env,namedArgs:e.namedArgs,positionalArgs:e.positionalArgs,requireDefenseContext:e.requireDefenseContext,defenseContextChecked:e.defenseContextChecked,root:e.root,currentPath:e.currentPath,funcs:e.funcs,labels:e.labels,coverage:e.coverage,budget:e.budget}}function W(e,n,t){switch(n.type){case"var":return se(e,n.name,t);case"array":{if(!Array.isArray(t))return null;let r=e;for(let s=0;s<n.elements.length;s++){let o=n.elements[s],p=s<t.length?t[s]:null,u=W(r,o,p);if(u===null)return null;r=u}return r}case"object":{let r=S(t);if(!r)return null;let s=e;for(let o of n.fields){let p;if(typeof o.key=="string")p=o.key;else{let i=d(t,o.key,e);if(i.length===0)return null;p=String(i[0])}let u=_(r,p)?r[p]:null;o.keyVar&&(s=se(s,o.keyVar,u));let f=W(s,o.pattern,u);if(f===null)return null;s=f}return s}}}function nt(e,n){let t=e;for(let r of n)if(t&&typeof t=="object")if(Array.isArray(t))if(typeof r=="number")t=t[r];else return;else{let s=S(t);if(s&&typeof r=="string"&&Object.hasOwn(s,r))t=s[r];else return}else return;return t}function P(e){if(e.type==="Identity")return[];if(e.type==="Field"){let n=e.base?P(e.base):[];return n===null?null:[...n,e.name]}if(e.type==="Index"&&e.index.type==="Literal"){let n=e.base?P(e.base):[];if(n===null)return null;let t=e.index.value;return typeof t=="number"||typeof t=="string"?[...n,t]:null}if(e.type==="Pipe"){let n=P(e.left);return n===null?null:Ce(n,e.right)}if(e.type==="Call"){if(e.name==="parent"||e.name==="root")return null;if(e.name==="first"&&e.args.length===0)return[0];if(e.name==="last"&&e.args.length===0)return[-1]}return null}function Ce(e,n){if(n.type==="Call"){if(n.name==="parent"){let t=1;if(n.args.length>0&&n.args[0].type==="Literal"){let r=n.args[0].value;typeof r=="number"&&(t=r)}if(t>=0)return e.slice(0,Math.max(0,e.length-t));{let r=-t-1;return e.slice(0,Math.min(r,e.length))}}if(n.name==="root")return[]}if(n.type==="Field"){let t=P(n);if(t!==null)return[...e,...t]}if(n.type==="Index"&&n.index.type==="Literal"){let t=P(n);if(t!==null)return[...e,...t]}if(n.type==="Pipe"){let t=Ce(e,n.left);return t===null?null:Ce(t,n.right)}return n.type==="Identity"?e:null}function Fe(e,n,t){if(n.type==="Comma"){let r=[];try{let s=d(e,n.left,t);q(t,r,s)}catch(s){if(s instanceof g)throw s;if(r.length>0)return r;throw new Error("evaluation failed")}try{let s=d(e,n.right,t);q(t,r,s)}catch(s){if(s instanceof g)throw s;return r}return r}return d(e,n,t)}function d(e,n,t){let r=t&&"vars"in t?t:rt(t);if(r.defenseContextChecked||(Me(r.requireDefenseContext,"query-engine","evaluation"),r={...r,defenseContextChecked:!0}),r.root===void 0&&(r={...r,root:e,currentPath:[]}),T(r),r.budget.callDepth++,r.budget.callDepth>r.limits.maxDepth)throw r.budget.callDepth--,F(`query depth limit exceeded (${r.limits.maxDepth})`,"recursion");try{let s=it(e,n,r);return D(r,0,s.length),s}finally{r.budget.callDepth--}}function it(e,n,t){switch(t.coverage?.hit(`jq:node:${n.type}`),n.type){case"Identity":return[e];case"Field":{let r=n.base?d(e,n.base,t):[e];return M(t,r,s=>{let o=S(s);if(o){if(!Object.hasOwn(o,n.name))return[null];let u=o[n.name];return[u===void 0?null:u]}if(s===null)return[null];let p=Array.isArray(s)?"array":typeof s;throw new Error(`Cannot index ${p} with string "${n.name}"`)})}case"Index":{let r=n.base?d(e,n.base,t):[e];return M(t,r,s=>{let o=d(s,n.index,t);return M(t,o,p=>{if(typeof p=="number"&&Array.isArray(s)){if(Number.isNaN(p))return[null];let u=Math.trunc(p),f=u<0?s.length+u:u;return f>=0&&f<s.length?[s[f]]:[null]}if(typeof p=="string"){let u=S(s);return!u||!Object.hasOwn(u,p)?[null]:[u[p]]}return[null]})})}case"Slice":{let r=n.base?d(e,n.base,t):[e];return M(t,r,s=>{if(s===null)return[null];if(!Array.isArray(s)&&typeof s!="string")throw new Error(`Cannot slice ${typeof s} (${JSON.stringify(s)})`);let o=s.length,p=n.start?d(e,n.start,t):[0],u=n.end?d(e,n.end,t):[o];return D(t,0,p.length*u.length),M(t,p,f=>u.map(i=>{let c=f,h=i,a=Number.isNaN(c)?0:Number.isInteger(c)?c:Math.floor(c),l=Number.isNaN(h)?o:Number.isInteger(h)?h:Math.ceil(h),y=Ke(a,o),m=Ke(l,o);return Array.isArray(s),s.slice(y,m)}))})}case"Iterate":{let r=n.base?d(e,n.base,t):[e];return M(t,r,s=>Array.isArray(s)?s:s&&typeof s=="object"?Object.values(s):[])}case"Pipe":{let r=d(e,n.left,t),s=P(n.left),o=[];for(let p of r)try{if(s!==null){let u={...t,currentPath:[...t.currentPath??[],...s]},f=d(p,n.right,u);q(t,o,f)}else{let u=d(p,n.right,t);q(t,o,u)}}catch(u){throw u instanceof Q?u.withPrependedResults(o):u}return o}case"Comma":{let r=d(e,n.left,t),s=d(e,n.right,t);return D(t,r.length,s.length),[...r,...s]}case"Literal":return[n.value];case"Array":return n.elements?[d(e,n.elements,t)]:[[]];case"Object":{let r=[Object.create(null)];for(let s of n.entries){let o=typeof s.key=="string"?[s.key]:d(e,s.key,t),p=d(e,s.value,t),u=[],f=o.filter(h=>typeof h=="string"&&E(h)).length,i=f+(o.length-f),c=r.length*i*p.length;D(t,0,c);for(let h of r)for(let a of o){if(typeof a!="string"){let l=a===null?"null":Array.isArray(a)?"array":typeof a;throw new Error(`Cannot use ${l} (${JSON.stringify(a)}) as object key`)}if(!E(a)){for(let l of p)u.push(C(h));continue}for(let l of p){let y=C(h);k(y,a,l),u.push(y)}}r.length=0,q(t,r,u)}return r}case"Paren":return d(e,n.expr,t);case"BinaryOp":return ft(e,n.op,n.left,n.right,t);case"UnaryOp":return d(e,n.operand,t).map(s=>{if(n.op==="-"){if(typeof s=="number")return-s;if(typeof s=="string"){let o=p=>p.length>5?`"${p.slice(0,3)}...`:JSON.stringify(p);throw new Error(`string (${o(s)}) cannot be negated`)}return null}return n.op==="not"?!I(s):null});case"Cond":{let r=d(e,n.cond,t);return M(t,r,s=>{if(I(s))return d(e,n.then,t);for(let o of n.elifs)if(d(e,o.cond,t).some(I))return d(e,o.then,t);return n.else?d(e,n.else,t):[e]})}case"Try":try{return d(e,n.body,t)}catch(r){if(r instanceof g)throw r;if(n.catch){let s=r instanceof ie?r.value:r instanceof Error?r.message:String(r);return d(s,n.catch,t)}return[]}case"Call":return Ve(e,n.name,n.args,t);case"VarBind":{let r=d(e,n.value,t);return M(t,r,s=>{let o=null,p=[];if(n.pattern?p.push(n.pattern):n.name&&p.push({type:"var",name:n.name}),n.alternatives)for(let u of n.alternatives)p.push(u);for(let u of p)if(o=W(t,u,s),o!==null)break;return o===null?[]:d(e,n.body,o)})}case"VarRef":{if(n.name==="$ENV")return[t.env?ue(t.env):Object.create(null)];if(n.name==="$ARGS"){let s=Object.create(null);if(t.namedArgs)for(let[p,u]of t.namedArgs)Object.defineProperty(s,p,{value:u,enumerable:!0,writable:!0,configurable:!0});let o=Object.create(null);return o.positional=t.positionalArgs?[...t.positionalArgs]:[],o.named=s,[o]}let r=t.vars.get(n.name);return r!==void 0?[r]:[null]}case"Recurse":{let r=[],s=new WeakSet,o=[{val:e,depth:0}];for(;o.length>0;){let p=o.pop();if(!p)break;let{val:u,depth:f}=p;if(T(t),f>t.limits.maxDepth)throw F(`query depth limit exceeded (${t.limits.maxDepth})`,"recursion");if(u&&typeof u=="object"){if(s.has(u))continue;s.add(u)}if(D(t,r.length),r.push(u),Array.isArray(u))for(let i=u.length-1;i>=0;i--)o.push({val:u[i],depth:f+1});else if(u&&typeof u=="object"){let i=Object.keys(u);for(let c=i.length-1;c>=0;c--)o.push({val:u[i[c]],depth:f+1})}}return r}case"Optional":try{return d(e,n.expr,t)}catch(r){if(r instanceof g)throw r;return[]}case"StringInterp":{let r=new G(t.limits.maxStringLength,"query string interpolation",()=>new g(`string size limit exceeded (${t.limits.maxStringLength} bytes)`,"string_length"));for(let s of n.parts){if(typeof s=="string"){r.append(s);continue}let o=d(e,s,t);for(let p of o){if(T(t),B(p,t.limits.maxDepth+1)>t.limits.maxDepth)throw F(`query depth limit exceeded (${t.limits.maxDepth})`,"recursion");r.append(typeof p=="string"?p:JSON.stringify(p))}}return[r.build()]}case"UpdateOp":return[st(e,n.path,n.op,n.value,t)];case"Reduce":{let r=d(e,n.expr,t),s=d(e,n.init,t)[0],o=t.limits.maxDepth??Je;for(let p of r){let u;if(n.pattern){if(u=W(t,n.pattern,p),u===null)continue}else u=se(t,n.varName,p);if(s=d(s,n.update,u)[0],B(s,o+1)>o)return[null]}return[s]}case"Foreach":{let r=d(e,n.expr,t),s=d(e,n.init,t)[0],o=[];for(let p of r)try{let u;if(n.pattern){if(u=W(t,n.pattern,p),u===null)continue}else u=se(t,n.varName,p);if(s=d(s,n.update,u)[0],n.extract){let f=d(s,n.extract,u);q(t,o,f)}else D(t,o.length),o.push(s)}catch(u){throw u instanceof Q?u.withPrependedResults(o):u}return o}case"Label":try{return d(e,n.body,{...t,labels:new Set([...t.labels??[],n.name])})}catch(r){if(r instanceof Q&&r.label===n.name)return r.partialResults;throw r}case"Break":throw new Q(n.name);case"Def":{let r=new Map(t.funcs??[]),s=`${n.name}/${n.params.length}`;r.set(s,{params:n.params,body:n.funcBody,closure:new Map(t.funcs??[])});let o={...t,funcs:r};return d(e,n.body,o)}default:{let r=n;throw new Error(`Unknown AST node type: ${r.type}`)}}}function Ke(e,n){return e<0?Math.max(0,n+e):Math.min(e,n)}function st(e,n,t,r,s){function o(f,i){switch(t){case"=":return i;case"|=":return d(f,r,s)[0]??null;case"+=":return typeof f=="number"&&typeof i=="number"||typeof f=="string"&&typeof i=="string"?f+i:Array.isArray(f)&&Array.isArray(i)?(D(s,f.length,i.length),[...f,...i]):f&&i&&typeof f=="object"&&typeof i=="object"?ce(f,i):i;case"-=":return typeof f=="number"&&typeof i=="number"?f-i:f;case"*=":return typeof f=="number"&&typeof i=="number"?f*i:f;case"/=":return typeof f=="number"&&typeof i=="number"?f/i:f;case"%=":return typeof f=="number"&&typeof i=="number"?f%i:f;case"//=":return f===null||f===!1?i:f;default:return i}}function p(f,i,c){switch(i.type){case"Identity":return c(f);case"Field":{if(!E(i.name))return f;if(i.base)return p(f,i.base,h=>{if(h&&typeof h=="object"&&!Array.isArray(h)){let a=C(h),l=Object.hasOwn(a,i.name)?a[i.name]:void 0;return k(a,i.name,c(l)),a}return h});if(f&&typeof f=="object"&&!Array.isArray(f)){let h=C(f),a=Object.hasOwn(h,i.name)?h[i.name]:void 0;return k(h,i.name,c(a)),h}return f}case"Index":{let a=d(e,i.index,s)[0];if(typeof a=="number"&&Number.isNaN(a))throw new Error("Cannot set array element at NaN index");if(typeof a=="number"&&!Number.isFinite(a))throw new Error("array index must be finite");if(typeof a=="number"&&!Number.isInteger(a)&&(a=Math.trunc(a)),i.base)return p(f,i.base,l=>{if(typeof a=="number"&&Array.isArray(l)){let y=[...l],m=a<0?y.length+a:a;if(m>=0){D(s,0,m+1),y.length<=m&&(y.length=m+1);for(let b=l.length;b<m;b++)y[b]=null;y[m]=c(y[m])}return y}if(typeof a=="string"&&l&&typeof l=="object"&&!Array.isArray(l)){if(!E(a))return l;let y=C(l),m=Object.hasOwn(y,a)?y[a]:void 0;return k(y,a,c(m)),y}return l});if(typeof a=="number"){if(!Number.isSafeInteger(a)||a>536870911)throw new Error("Array index too large");if(a<0&&(!f||!Array.isArray(f)))throw new Error("Out of bounds negative array index");if(Array.isArray(f)){let y=[...f],m=a<0?y.length+a:a;if(m>=0){D(s,0,m+1),y.length<=m&&(y.length=m+1);for(let b=f.length;b<m;b++)y[b]=null;y[m]=c(y[m])}return y}if(f==null){D(s,0,a+1);let y=new Array(a+1).fill(null);return y[a]=c(null),y}return f}if(typeof a=="string"&&f&&typeof f=="object"&&!Array.isArray(f)){if(!E(a))return f;let l=C(f),y=Object.hasOwn(l,a)?l[a]:void 0;return k(l,a,c(y)),l}return f}case"Iterate":{let h=a=>{if(Array.isArray(a)){D(s,0,a.length);let l=[];for(let y of a)T(s),l.push(c(y));return l}if(a&&typeof a=="object"){let l=Object.create(null);for(let[y,m]of Object.entries(a))E(y)&&k(l,y,c(m));return l}return a};return i.base?p(f,i.base,h):h(f)}case"Pipe":{let h=p(f,i.left,a=>a);return p(h,i.right,c)}default:return c(f)}}return p(e,n,f=>{if(t==="|=")return o(f,f);let i=d(e,r,s);return o(f,i[0]??null)})}function ot(e,n,t){function r(o,p,u){switch(p.type){case"Identity":return u;case"Field":{if(!E(p.name))return o;if(p.base){let f=d(o,p.base,t)[0],i=r(f,{type:"Field",name:p.name},u);return r(o,p.base,i)}if(o&&typeof o=="object"&&!Array.isArray(o)){let f=C(o);return k(f,p.name,u),f}return o}case"Index":{if(p.base){let c=d(o,p.base,t)[0],h=r(c,{type:"Index",index:p.index},u);return r(o,p.base,h)}let i=d(e,p.index,t)[0];if(typeof i=="number"&&Array.isArray(o)){let c=[...o],h=i<0?c.length+i:i;return h>=0&&h<c.length&&(c[h]=u),c}if(typeof i=="string"&&o&&typeof o=="object"&&!Array.isArray(o)){if(!E(i))return o;let c=C(o);return k(c,i,u),c}return o}default:return o}}function s(o,p){switch(p.type){case"Identity":return null;case"Field":{if(!E(p.name))return o;if(p.base){let f=d(o,p.base,t)[0];if(f==null)return o;let i=s(f,{type:"Field",name:p.name});return r(o,p.base,i)}if(o&&typeof o=="object"&&!Array.isArray(o)){if(!E(p.name))return o;let f=C(o);return delete f[p.name],f}return o}case"Index":{if(p.base){let c=d(o,p.base,t)[0];if(c==null)return o;let h=s(c,{type:"Index",index:p.index});return r(o,p.base,h)}let i=d(e,p.index,t)[0];if(typeof i=="number"&&Array.isArray(o)){let c=[...o],h=i<0?c.length+i:i;return h>=0&&h<c.length&&c.splice(h,1),c}if(typeof i=="string"&&o&&typeof o=="object"&&!Array.isArray(o)){if(!E(i))return o;let c=C(o);return delete c[i],c}return o}case"Iterate":return Array.isArray(o)?[]:o&&typeof o=="object"?Object.create(null):o;case"Pipe":{let c=function(l,y,m){switch(y.type){case"Identity":return m;case"Field":{if(!E(y.name))return l;if(l&&typeof l=="object"&&!Array.isArray(l)){let b=C(l);return k(b,y.name,m),b}return l}case"Index":{let A=d(e,y.index,t)[0];if(typeof A=="number"&&Array.isArray(l)){let w=[...l],N=A<0?w.length+A:A;return N>=0&&N<w.length&&(w[N]=m),w}if(typeof A=="string"&&l&&typeof l=="object"&&!Array.isArray(l)){if(!E(A))return l;let w=C(l);return k(w,A,m),w}return l}case"Pipe":{let b=d(l,y.left,t)[0],A=c(b,y.right,m);return c(l,y.left,A)}default:return l}};var u=c;let f=p.left,i=p.right,h=d(o,f,t)[0];if(h==null)return o;let a=s(h,i);return c(o,f,a)}default:return o}}return s(e,n)}function ft(e,n,t,r,s){if(n==="and"){let f=d(e,t,s);return M(s,f,i=>{if(!I(i))return[!1];let c=d(e,r,s);return M(s,c,h=>[I(h)])})}if(n==="or"){let f=d(e,t,s);return M(s,f,i=>{if(I(i))return[!0];let c=d(e,r,s);return M(s,c,h=>[I(h)])})}if(n==="//"){let i=d(e,t,s).filter(c=>c!=null&&c!==!1);return i.length>0?i:d(e,r,s)}let o=d(e,t,s),p=d(e,r,s),u=o.length*p.length;return D(s,0,u),T(s,u),o.flatMap(f=>p.map(i=>{switch(n){case"+":if(f===null)return i;if(i===null)return f;if(typeof f=="number"&&typeof i=="number")return f+i;if(typeof f=="string"&&typeof i=="string"){let c=s.limits.maxStringLength;if(x(f)+x(i)>c)throw new g(`string size limit exceeded (${c} bytes)`,"string_length");return f+i}return Array.isArray(f)&&Array.isArray(i)?(D(s,f.length,i.length),[...f,...i]):f&&i&&typeof f=="object"&&typeof i=="object"&&!Array.isArray(f)&&!Array.isArray(i)?ce(f,i):null;case"-":if(typeof f=="number"&&typeof i=="number")return f-i;if(Array.isArray(f)&&Array.isArray(i)){let c=new Set(i.map(h=>JSON.stringify(h)));return f.filter(h=>!c.has(JSON.stringify(h)))}if(typeof f=="string"&&typeof i=="string"){let c=h=>h.length>10?`"${h.slice(0,10)}...`:JSON.stringify(h);throw new Error(`string (${c(f)}) and string (${c(i)}) cannot be subtracted`)}return null;case"*":if(typeof f=="number"&&typeof i=="number")return f*i;if(typeof f=="string"&&typeof i=="number"){if(!Number.isFinite(i))throw new Error(`invalid string repetition count: ${i}`);let c=Math.trunc(i);if(c<0)return null;let h=x(f),a=s.limits.maxStringLength;if(h>0&&c>Math.floor(a/h))throw new g(`string size limit exceeded (${a} bytes)`,"string_length");return f.repeat(c)}{let c=S(f),h=S(i);if(c&&h)return je(c,h,{maxDepth:s.limits.maxDepth,visit:()=>T(s)})}return null;case"/":if(typeof f=="number"&&typeof i=="number"){if(i===0)throw new Error(`number (${f}) and number (${i}) cannot be divided because the divisor is zero`);return f/i}return typeof f=="string"&&typeof i=="string"?f.split(i):null;case"%":if(typeof f=="number"&&typeof i=="number"){if(i===0)throw new Error(`number (${f}) and number (${i}) cannot be divided (remainder) because the divisor is zero`);return!Number.isFinite(f)&&!Number.isNaN(f)?!Number.isFinite(i)&&!Number.isNaN(i)&&f<0&&i>0?-1:0:f%i}return null;case"==":return J(f,i);case"!=":return!J(f,i);case"<":return Y(f,i)<0;case"<=":return Y(f,i)<=0;case">":return Y(f,i)>0;case">=":return Y(f,i)>=0;default:return null}}))}function Ve(e,n,t,r){let s=tt.get(n);if(s)return typeof e=="number"?[s(e)]:[null];let o=de(e,n,t,r,d);if(o!==null)return o;let p=Oe(e,n,t,r,d);if(p!==null)return p;let u=le(e,n,t,r,d);if(u!==null)return u;let f=ye(e,n,r.limits.maxDepth);if(f!==null)return f;let i=Ne(e,n);if(i!==null)return i;let c=Ee(e,n,t,r,d);if(c!==null)return c;let h=pe(e,n,t,r,d,Fe,Z,I,v,g);if(h!==null)return h;let a=ke(e,n,t,r,d,I,te,re,ot,ne);if(a!==null)return a;let l=me(e,n,t,r,d,J);if(l!==null)return l;let y=he(e,n,t,r,d,Fe,I,g);if(y!==null)return y;let m=be(e,n,t,r,d,I,nt,Ve);if(m!==null)return m;let b=Se(e,n,t,r,d,J);if(b!==null)return b;switch(n){case"builtins":return[["add/0","all/0","all/1","all/2","any/0","any/1","any/2","arrays/0","ascii/0","ascii_downcase/0","ascii_upcase/0","booleans/0","bsearch/1","builtins/0","combinations/0","combinations/1","contains/1","debug/0","del/1","delpaths/1","empty/0","env/0","error/0","error/1","explode/0","first/0","first/1","flatten/0","flatten/1","floor/0","from_entries/0","fromdate/0","fromjson/0","getpath/1","gmtime/0","group_by/1","gsub/2","gsub/3","has/1","implode/0","IN/1","IN/2","INDEX/1","INDEX/2","index/1","indices/1","infinite/0","inside/1","isempty/1","isnan/0","isnormal/0","isvalid/1","iterables/0","join/1","keys/0","keys_unsorted/0","last/0","last/1","length/0","limit/2","ltrimstr/1","map/1","map_values/1","match/1","match/2","max/0","max_by/1","min/0","min_by/1","mktime/0","modulemeta/1","nan/0","not/0","nth/1","nth/2","null/0","nulls/0","numbers/0","objects/0","path/1","paths/0","paths/1","pick/1","range/1","range/2","range/3","recurse/0","recurse/1","recurse_down/0","repeat/1","reverse/0","rindex/1","rtrimstr/1","scalars/0","scan/1","scan/2","select/1","setpath/2","skip/2","sort/0","sort_by/1","split/1","splits/1","splits/2","sqrt/0","startswith/1","strftime/1","strings/0","strptime/1","sub/2","sub/3","test/1","test/2","to_entries/0","toboolean/0","todate/0","tojson/0","tostream/0","fromstream/1","truncate_stream/1","tonumber/0","tostring/0","transpose/0","trim/0","ltrim/0","rtrim/0","type/0","unique/0","unique_by/1","until/2","utf8bytelength/0","values/0","walk/1","while/2","with_entries/1"]];case"error":{let A=t.length>0?d(e,t[0],r)[0]:e;throw new ie(A)}case"env":return[r.env?ue(r.env):Object.create(null)];case"debug":return[e];case"input_line_number":return[1];default:{let A=`${n}/${t.length}`,w=r.funcs?.get(A);if(w){let N=w.closure??r.funcs??new Map,O=new Map(N);O.set(A,w);for(let X=0;X<w.params.length;X++){let ze=w.params[X],Te=t[X];if(Te){let L=d(e,Te,r),K;if(L.length===0)K={type:"Call",name:"empty",args:[]};else if(L.length===1)K={type:"Literal",value:L[0]};else{K={type:"Literal",value:L[L.length-1]};for(let fe=L.length-2;fe>=0;fe--)K={type:"Comma",left:{type:"Literal",value:L[fe]},right:K}}O.set(`${ze}/0`,{params:[],body:K})}}let $={...r,funcs:O};return d(e,w.body,$)}throw new Error(`Unknown function: ${n}`)}}}function ne(e,n,t,r,s){if(T(t),r.length>t.limits.maxDepth)throw F(`query depth limit exceeded (${t.limits.maxDepth})`,"recursion");let o=f=>{if(f.length>t.limits.maxDepth)throw F(`query depth limit exceeded (${t.limits.maxDepth})`,"recursion");D(t,s.length),s.push(f)};if(n.type==="Comma"){let f=n;ne(e,f.left,t,r,s),ne(e,f.right,t,r,s);return}let p=P(n);if(p!==null){o([...r,...p]);return}if(n.type==="Iterate"){if(Array.isArray(e))for(let f=0;f<e.length;f++)T(t),o([...r,f]);else if(e&&typeof e=="object")for(let f of Object.keys(e))T(t),o([...r,f]);return}if(n.type==="Recurse"){let f=[{value:e,path:[]}];for(;f.length>0;){let i=f.pop();if(!i)break;if(T(t),o([...r,...i.path]),i.value&&typeof i.value=="object"){let c=Array.isArray(i.value)?i.value.map((h,a)=>[a,h]):Object.keys(i.value).map(h=>[h,i.value[h]]);D(t,0,f.length+c.length);for(let h=c.length-1;h>=0;h--){let[a,l]=c[h];f.push({value:l,path:[...i.path,a]})}}}return}if(n.type==="Pipe"){let f=P(n.left);if(f!==null){let i=d(e,n.left,t);for(let c of i)ne(c,n.right,t,[...r,...f],s);return}}d(e,n,t).length>0&&o(r)}var He=new Map([["and","AND"],["or","OR"],["not","NOT"],["if","IF"],["then","THEN"],["elif","ELIF"],["else","ELSE"],["end","END"],["as","AS"],["try","TRY"],["catch","CATCH"],["true","TRUE"],["false","FALSE"],["null","NULL"],["reduce","REDUCE"],["foreach","FOREACH"],["label","LABEL"],["break","BREAK"],["def","DEF"]]),oe=new Set(He.values());function Qe(e){let n=[],t=0,r=(i=0)=>e[t+i],s=()=>e[t++],o=()=>t>=e.length,p=i=>i>="0"&&i<="9",u=i=>i>="a"&&i<="z"||i>="A"&&i<="Z"||i==="_",f=i=>u(i)||p(i);for(;!o();){let i=t,c=s();if(!(c===" "||c===" "||c===`
|
|
5
|
+
`||c==="\r")){if(c==="#"){for(;!o()&&r()!==`
|
|
6
|
+
`;)s();continue}if(c==="."&&r()==="."){s(),n.push({type:"DOTDOT",pos:i});continue}if(c==="="&&r()==="="){s(),n.push({type:"EQ",pos:i});continue}if(c==="!"&&r()==="="){s(),n.push({type:"NE",pos:i});continue}if(c==="<"&&r()==="="){s(),n.push({type:"LE",pos:i});continue}if(c===">"&&r()==="="){s(),n.push({type:"GE",pos:i});continue}if(c==="/"&&r()==="/"){s(),r()==="="?(s(),n.push({type:"UPDATE_ALT",pos:i})):n.push({type:"ALT",pos:i});continue}if(c==="+"&&r()==="="){s(),n.push({type:"UPDATE_ADD",pos:i});continue}if(c==="-"&&r()==="="){s(),n.push({type:"UPDATE_SUB",pos:i});continue}if(c==="*"&&r()==="="){s(),n.push({type:"UPDATE_MUL",pos:i});continue}if(c==="/"&&r()==="="){s(),n.push({type:"UPDATE_DIV",pos:i});continue}if(c==="%"&&r()==="="){s(),n.push({type:"UPDATE_MOD",pos:i});continue}if(c==="="&&r()!=="="){n.push({type:"ASSIGN",pos:i});continue}if(c==="."){n.push({type:"DOT",pos:i});continue}if(c==="|"){r()==="="?(s(),n.push({type:"UPDATE_PIPE",pos:i})):n.push({type:"PIPE",pos:i});continue}if(c===","){n.push({type:"COMMA",pos:i});continue}if(c===":"){n.push({type:"COLON",pos:i});continue}if(c===";"){n.push({type:"SEMICOLON",pos:i});continue}if(c==="("){n.push({type:"LPAREN",pos:i});continue}if(c===")"){n.push({type:"RPAREN",pos:i});continue}if(c==="["){n.push({type:"LBRACKET",pos:i});continue}if(c==="]"){n.push({type:"RBRACKET",pos:i});continue}if(c==="{"){n.push({type:"LBRACE",pos:i});continue}if(c==="}"){n.push({type:"RBRACE",pos:i});continue}if(c==="?"){n.push({type:"QUESTION",pos:i});continue}if(c==="+"){n.push({type:"PLUS",pos:i});continue}if(c==="-"){n.push({type:"MINUS",pos:i});continue}if(c==="*"){n.push({type:"STAR",pos:i});continue}if(c==="/"){n.push({type:"SLASH",pos:i});continue}if(c==="%"){n.push({type:"PERCENT",pos:i});continue}if(c==="<"){n.push({type:"LT",pos:i});continue}if(c===">"){n.push({type:"GT",pos:i});continue}if(p(c)){let h=c;for(;!o()&&(p(r())||r()==="."||r()==="e"||r()==="E");)(r()==="e"||r()==="E")&&(e[t+1]==="+"||e[t+1]==="-")&&(h+=s()),h+=s();n.push({type:"NUMBER",value:Number(h),pos:i});continue}if(c==='"'){let h="",a=0;for(;!o();){let l=r();if(a===0&&l==='"')break;if(a===0&&l==="\\"){if(s(),o())break;let y=s();switch(y){case"n":h+=`
|
|
7
|
+
`;break;case"r":h+="\r";break;case"t":h+=" ";break;case"\\":h+="\\";break;case'"':h+='"';break;case"(":h+="\\(",a=1;break;default:h+=y}continue}if(a>0){if(l==='"'){for(h+=s();!o();){let y=r();if(y==="\\"){h+=s(),o()||(h+=s());continue}if(h+=s(),y==='"')break}continue}l==="("?a++:l===")"&&a--,h+=s();continue}h+=s()}o()||s(),n.push({type:"STRING",value:h,pos:i});continue}if(u(c)||c==="$"||c==="@"){let h=c;for(;!o()&&f(r());)h+=s();let a=He.get(h);a?n.push({type:a,value:h,pos:i}):n.push({type:"IDENT",value:h,pos:i});continue}throw new Error(`Unexpected character '${c}' at position ${i}`)}}return n.push({type:"EOF",pos:t}),n}var De=class e{maxDepth;tokens;pos=0;depth;constructor(n,t,r=0){this.maxDepth=t,this.tokens=n,this.depth=r}peek(n=0){return this.tokens[this.pos+n]??{type:"EOF",pos:-1}}advance(){return this.tokens[this.pos++]}check(n){return this.peek().type===n}match(...n){for(let t of n)if(this.check(t))return this.advance();return null}expect(n,t){if(!this.check(n))throw new Error(`${t} at position ${this.peek().pos}, got ${this.peek().type}`);return this.advance()}withDepth(n){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return n()}finally{this.depth--}}isFieldNameAfterDot(n=0){let t=this.peek(n),r=this.peek(n+1);return r.type==="STRING"?!0:r.type==="IDENT"||oe.has(r.type)?r.pos===t.pos+1:!1}isIdentLike(){let n=this.peek().type;return n==="IDENT"||oe.has(n)}consumeFieldNameAfterDot(n){let t=this.peek();return t.type==="STRING"?this.advance().value:(t.type==="IDENT"||oe.has(t.type))&&t.pos===n.pos+1?this.advance().value:null}parse(){let n=this.parseExpr();if(!this.check("EOF"))throw new Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`);return n}parseExpr(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parsePipe()}finally{this.depth--}}parsePattern(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parsePatternInner()}finally{this.depth--}}parsePatternInner(){if(this.match("LBRACKET")){let r=[];if(!this.check("RBRACKET"))for(r.push(this.parsePattern());this.match("COMMA")&&!this.check("RBRACKET");)r.push(this.parsePattern());return this.expect("RBRACKET","Expected ']' after array pattern"),{type:"array",elements:r}}if(this.match("LBRACE")){let r=[];if(!this.check("RBRACE"))for(r.push(this.parsePatternField());this.match("COMMA")&&!this.check("RBRACE");)r.push(this.parsePatternField());return this.expect("RBRACE","Expected '}' after object pattern"),{type:"object",fields:r}}let n=this.expect("IDENT","Expected variable name in pattern"),t=n.value;if(!t.startsWith("$"))throw new Error(`Variable name must start with $ at position ${n.pos}`);return{type:"var",name:t}}parsePatternField(){if(this.match("LPAREN")){let t=this.parseExpr();this.expect("RPAREN","Expected ')' after computed key"),this.expect("COLON","Expected ':' after computed key");let r=this.parsePattern();return{key:t,pattern:r}}let n=this.peek();if(n.type==="IDENT"||oe.has(n.type)){let t=n.value;if(t.startsWith("$")){if(this.advance(),this.match("COLON")){let r=this.parsePattern();return{key:t.slice(1),pattern:r,keyVar:t}}return{key:t.slice(1),pattern:{type:"var",name:t}}}if(this.advance(),this.match("COLON")){let r=this.parsePattern();return{key:t,pattern:r}}return{key:t,pattern:{type:"var",name:`$${t}`}}}throw new Error(`Expected field name in object pattern at position ${n.pos}`)}parsePipe(){let n=this.parseComma();for(;this.match("PIPE");){let t=this.parseComma();n={type:"Pipe",left:n,right:t}}return n}parseComma(){let n=this.parseVarBind();for(;this.match("COMMA");){let t=this.parseVarBind();n={type:"Comma",left:n,right:t}}return n}parseVarBind(){let n=this.parseUpdate();if(this.match("AS")){let t=this.parsePattern(),r=[];for(;this.check("QUESTION")&&this.peekAhead(1)?.type==="ALT";)this.advance(),this.advance(),r.push(this.parsePattern());this.expect("PIPE","Expected '|' after variable binding");let s=this.parseExpr();return t.type==="var"&&r.length===0?{type:"VarBind",name:t.name,value:n,body:s}:{type:"VarBind",name:t.type==="var"?t.name:"",value:n,body:s,pattern:t.type!=="var"?t:void 0,alternatives:r.length>0?r:void 0}}return n}peekAhead(n){let t=this.pos+n;return t<this.tokens.length?this.tokens[t]:void 0}parseUpdate(){let n=this.parseAlt(),t=new Map([["ASSIGN","="],["UPDATE_ADD","+="],["UPDATE_SUB","-="],["UPDATE_MUL","*="],["UPDATE_DIV","/="],["UPDATE_MOD","%="],["UPDATE_ALT","//="],["UPDATE_PIPE","|="]]),r=this.match("ASSIGN","UPDATE_ADD","UPDATE_SUB","UPDATE_MUL","UPDATE_DIV","UPDATE_MOD","UPDATE_ALT","UPDATE_PIPE");if(r){let s=this.withDepth(()=>this.parseVarBind()),o=t.get(r.type);if(o)return{type:"UpdateOp",op:o,path:n,value:s}}return n}parseAlt(){let n=this.parseOr();for(;this.match("ALT");){let t=this.parseOr();n={type:"BinaryOp",op:"//",left:n,right:t}}return n}parseOr(){let n=this.parseAnd();for(;this.match("OR");){let t=this.parseAnd();n={type:"BinaryOp",op:"or",left:n,right:t}}return n}parseAnd(){let n=this.parseNot();for(;this.match("AND");){let t=this.parseNot();n={type:"BinaryOp",op:"and",left:n,right:t}}return n}parseNot(){return this.parseComparison()}parseComparison(){let n=this.parseAddSub(),t=new Map([["EQ","=="],["NE","!="],["LT","<"],["LE","<="],["GT",">"],["GE",">="]]),r=this.match("EQ","NE","LT","LE","GT","GE");if(r){let s=t.get(r.type);if(s){let o=this.parseAddSub();n={type:"BinaryOp",op:s,left:n,right:o}}}return n}parseAddSub(){let n=this.parseMulDiv();for(;;)if(this.match("PLUS")){let t=this.parseMulDiv();n={type:"BinaryOp",op:"+",left:n,right:t}}else if(this.match("MINUS")){let t=this.parseMulDiv();n={type:"BinaryOp",op:"-",left:n,right:t}}else break;return n}parseMulDiv(){let n=this.parseUnary();for(;;)if(this.match("STAR")){let t=this.parseUnary();n={type:"BinaryOp",op:"*",left:n,right:t}}else if(this.match("SLASH")){let t=this.parseUnary();n={type:"BinaryOp",op:"/",left:n,right:t}}else if(this.match("PERCENT")){let t=this.parseUnary();n={type:"BinaryOp",op:"%",left:n,right:t}}else break;return n}parseUnary(){let n=0;for(;this.match("MINUS");)if(n++,this.depth+n>this.maxDepth)throw new Error(`query parse depth limit exceeded (${this.maxDepth})`);let t=this.parsePostfix();for(;n-- >0;)t={type:"UnaryOp",op:"-",operand:t};return t}parsePostfix(){let n=this.parsePrimary();for(;;)if(this.match("QUESTION"))n={type:"Optional",expr:n};else if(this.check("DOT")&&this.isFieldNameAfterDot())this.advance(),n={type:"Field",name:this.advance().value,base:n};else if(this.check("LBRACKET"))if(this.advance(),this.match("RBRACKET"))n={type:"Iterate",base:n};else if(this.check("COLON")){this.advance();let t=this.check("RBRACKET")?void 0:this.parseExpr();this.expect("RBRACKET","Expected ']'"),n={type:"Slice",end:t,base:n}}else{let t=this.parseExpr();if(this.match("COLON")){let r=this.check("RBRACKET")?void 0:this.parseExpr();this.expect("RBRACKET","Expected ']'"),n={type:"Slice",start:t,end:r,base:n}}else this.expect("RBRACKET","Expected ']'"),n={type:"Index",index:t,base:n}}else break;return n}parsePrimary(){if(this.match("DOTDOT"))return{type:"Recurse"};if(this.check("DOT")){let n=this.advance();if(this.check("LBRACKET")){if(this.advance(),this.match("RBRACKET"))return{type:"Iterate"};if(this.check("COLON")){this.advance();let s=this.check("RBRACKET")?void 0:this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Slice",end:s}}let r=this.parseExpr();if(this.match("COLON")){let s=this.check("RBRACKET")?void 0:this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Slice",start:r,end:s}}return this.expect("RBRACKET","Expected ']'"),{type:"Index",index:r}}let t=this.consumeFieldNameAfterDot(n);return t!==null?{type:"Field",name:t}:{type:"Identity"}}if(this.match("TRUE"))return{type:"Literal",value:!0};if(this.match("FALSE"))return{type:"Literal",value:!1};if(this.match("NULL"))return{type:"Literal",value:null};if(this.check("NUMBER"))return{type:"Literal",value:this.advance().value};if(this.check("STRING")){let t=this.advance().value;return t.includes("\\(")?this.parseStringInterpolation(t):{type:"Literal",value:t}}if(this.match("LBRACKET")){if(this.match("RBRACKET"))return{type:"Array"};let n=this.parseExpr();return this.expect("RBRACKET","Expected ']'"),{type:"Array",elements:n}}if(this.match("LBRACE"))return this.parseObjectConstruction();if(this.match("LPAREN")){let n=this.parseExpr();return this.expect("RPAREN","Expected ')'"),{type:"Paren",expr:n}}if(this.match("IF"))return this.parseIf();if(this.match("TRY")){let n=this.withDepth(()=>this.parsePostfix()),t;return this.match("CATCH")&&(t=this.withDepth(()=>this.parsePostfix())),{type:"Try",body:n,catch:t}}if(this.match("REDUCE")){let n=this.parseAddSub();this.expect("AS","Expected 'as' after reduce expression");let t=this.parsePattern();this.expect("LPAREN","Expected '(' after variable");let r=this.parseExpr();this.expect("SEMICOLON","Expected ';' after init expression");let s=this.parseExpr();this.expect("RPAREN","Expected ')' after update expression");let o=t.type==="var"?t.name:"";return{type:"Reduce",expr:n,varName:o,init:r,update:s,pattern:t.type!=="var"?t:void 0}}if(this.match("FOREACH")){let n=this.parseAddSub();this.expect("AS","Expected 'as' after foreach expression");let t=this.parsePattern();this.expect("LPAREN","Expected '(' after variable");let r=this.parseExpr();this.expect("SEMICOLON","Expected ';' after init expression");let s=this.parseExpr(),o;this.match("SEMICOLON")&&(o=this.parseExpr()),this.expect("RPAREN","Expected ')' after expressions");let p=t.type==="var"?t.name:"";return{type:"Foreach",expr:n,varName:p,init:r,update:s,extract:o,pattern:t.type!=="var"?t:void 0}}if(this.match("LABEL")){let n=this.expect("IDENT","Expected label name (e.g., $out)"),t=n.value;if(!t.startsWith("$"))throw new Error(`Label name must start with $ at position ${n.pos}`);this.expect("PIPE","Expected '|' after label name");let r=this.parseExpr();return{type:"Label",name:t,body:r}}if(this.match("BREAK")){let n=this.expect("IDENT","Expected label name to break to"),t=n.value;if(!t.startsWith("$"))throw new Error(`Break label must start with $ at position ${n.pos}`);return{type:"Break",name:t}}if(this.match("DEF")){let t=this.expect("IDENT","Expected function name after def").value,r=[];if(this.match("LPAREN")){if(!this.check("RPAREN")){let p=this.expect("IDENT","Expected parameter name");for(r.push(p.value);this.match("SEMICOLON");){let u=this.expect("IDENT","Expected parameter name");r.push(u.value)}}this.expect("RPAREN","Expected ')' after parameters")}this.expect("COLON","Expected ':' after function name");let s=this.parseExpr();this.expect("SEMICOLON","Expected ';' after function body");let o=this.parseExpr();return{type:"Def",name:t,params:r,funcBody:s,body:o}}if(this.match("NOT"))return{type:"Call",name:"not",args:[]};if(this.check("IDENT")){let t=this.advance().value;if(t.startsWith("$"))return{type:"VarRef",name:t};if(this.match("LPAREN")){let r=[];if(!this.check("RPAREN"))for(r.push(this.parseExpr());this.match("SEMICOLON");)r.push(this.parseExpr());return this.expect("RPAREN","Expected ')'"),{type:"Call",name:t,args:r}}return{type:"Call",name:t,args:[]}}throw new Error(`Unexpected token ${this.peek().type} at position ${this.peek().pos}`)}parseObjectConstruction(){if(this.depth++,this.depth>this.maxDepth)throw this.depth--,new Error(`query parse depth limit exceeded (${this.maxDepth})`);try{return this.parseObjectConstructionInner()}finally{this.depth--}}parseObjectConstructionInner(){let n=[];if(!this.check("RBRACE"))do{let t,r;if(this.match("LPAREN"))t=this.parseExpr(),this.expect("RPAREN","Expected ')'"),this.expect("COLON","Expected ':'"),r=this.parseObjectValue();else if(this.isIdentLike()){let s=this.advance().value;this.match("COLON")?(t=s,r=this.parseObjectValue()):(t=s,r={type:"Field",name:s})}else if(this.check("STRING"))t=this.advance().value,this.expect("COLON","Expected ':'"),r=this.parseObjectValue();else throw new Error(`Expected object key at position ${this.peek().pos}`);n.push({key:t,value:r})}while(this.match("COMMA"));return this.expect("RBRACE","Expected '}'"),{type:"Object",entries:n}}parseObjectValue(){let n=this.parseVarBind();for(;this.match("PIPE");){let t=this.parseVarBind();n={type:"Pipe",left:n,right:t}}return n}parseIf(){let n=this.parseExpr();this.expect("THEN","Expected 'then'");let t=this.parseExpr(),r=[];for(;this.match("ELIF");){let o=this.parseExpr();this.expect("THEN","Expected 'then' after elif");let p=this.parseExpr();r.push({cond:o,then:p})}let s;return this.match("ELSE")&&(s=this.parseExpr()),this.expect("END","Expected 'end'"),{type:"Cond",cond:n,then:t,elifs:r,else:s}}parseStringInterpolation(n){let t=[],r="",s=0;for(;s<n.length;)if(n[s]==="\\"&&n[s+1]==="("){r&&(t.push(r),r=""),s+=2;let o=1,p="";for(;s<n.length&&o>0;){let i=n[s];if(i==='"'){for(p+=i,s++;s<n.length;){let c=n[s];if(c==="\\"){p+=c,s++,s<n.length&&(p+=n[s],s++);continue}if(p+=c,s++,c==='"')break}continue}i==="("?o++:i===")"&&o--,o>0&&(p+=i),s++}let u=Qe(p),f=new e(u,this.maxDepth,this.depth);t.push(f.parse())}else r+=n[s],s++;return r&&t.push(r),{type:"StringInterp",parts:t}}};function hr(e,n={}){let t=n.maxDepth??256,r=n.maxTokens??1e5,s=n.maxSourceLength??1048576;if(e.length>s)throw new Error(`query source length limit exceeded (${s} characters)`);if(e.length+1>r)throw new Error(`query token limit exceeded (${r})`);let o=Qe(e);return new De(o,t).parse()}function br(e,n,t={}){let r=new G(n,"query JSON output",()=>new g(`output size limit exceeded (${n} bytes)`,t.limitKind??"output_size"));return Re(r,e,t,0),r.build()}function Re(e,n,t,r){if(n==null){e.append("null");return}if(typeof n=="boolean"){e.append(String(n));return}if(typeof n=="number"){e.append(Number.isFinite(n)?String(n):"null");return}if(typeof n=="string"){t.raw&&r===0?e.append(n):Ye(e,n);return}let s=t.compact??!1,o=t.indent??2,p=t.useTab?" ":" ".repeat(o);if(Array.isArray(n)){e.append("[");for(let f=0;f<n.length;f++)e.append(s?f===0?"":",":f===0?`
|
|
8
|
+
`:`,
|
|
9
|
+
`),s||e.repeat(p,r+1),Re(e,n[f],t,r+1);!s&&n.length>0&&e.append(`
|
|
10
|
+
`).repeat(p,r),e.append("]");return}let u=Object.keys(n);t.sortKeys&&(u=u.sort()),e.append("{");for(let f=0;f<u.length;f++){let i=u[f];e.append(s?f===0?"":",":f===0?`
|
|
11
|
+
`:`,
|
|
12
|
+
`),s||e.repeat(p,r+1),Ye(e,i),e.append(s?":":": "),Re(e,n[i],t,r+1)}!s&&u.length>0&&e.append(`
|
|
13
|
+
`).repeat(p,r),e.append("}")}function Ye(e,n){e.append('"');let t=0;for(let r=0;r<n.length;r++){let s=n.charCodeAt(r),o="";s===34?o='\\"':s===92?o="\\\\":s===8?o="\\b":s===9?o="\\t":s===10?o="\\n":s===12?o="\\f":s===13?o="\\r":s<32&&(o=`\\u${s.toString(16).padStart(4,"0")}`),o&&(e.append(n.slice(t,r)).append(o),t=r+1)}e.append(n.slice(t)).append('"')}export{B as a,d as b,hr as c,br as d};
|