@eidos.space/just-bash 3.0.2
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 +53 -0
- package/LICENSE +201 -0
- package/README.md +609 -0
- package/dist/AGENTS.md +325 -0
- package/dist/Bash.d.ts +257 -0
- package/dist/ast/types.d.ts +609 -0
- package/dist/banned-patterns-test.d.ts +1 -0
- package/dist/bin/chunks/alias-YRVAW27Y.js +3 -0
- package/dist/bin/chunks/awk2-RLMNTGI7.js +3 -0
- package/dist/bin/chunks/base64-RZRLGMB3.js +3 -0
- package/dist/bin/chunks/basename-F3AQ4KAQ.js +3 -0
- package/dist/bin/chunks/bash-CLP24TE2.js +3 -0
- package/dist/bin/chunks/cat-LQH5FSAR.js +3 -0
- package/dist/bin/chunks/chmod-S564JCJW.js +3 -0
- package/dist/bin/chunks/chunk-22HCD466.js +3 -0
- package/dist/bin/chunks/chunk-2AIXTPH2.js +9 -0
- package/dist/bin/chunks/chunk-2ETT4ELS.js +4 -0
- package/dist/bin/chunks/chunk-2GG3NVC4.js +10 -0
- package/dist/bin/chunks/chunk-2NRAWO6E.js +7 -0
- package/dist/bin/chunks/chunk-2SVX7I5P.js +14 -0
- package/dist/bin/chunks/chunk-3BYTCO2H.js +12 -0
- package/dist/bin/chunks/chunk-3MRB66F4.js +3 -0
- package/dist/bin/chunks/chunk-3UKQXBQ3.js +6 -0
- package/dist/bin/chunks/chunk-3WIMLJM7.js +8 -0
- package/dist/bin/chunks/chunk-47WZ2U6M.js +9 -0
- package/dist/bin/chunks/chunk-4KSZJAQK.js +6 -0
- package/dist/bin/chunks/chunk-5XSZHUEI.js +15 -0
- package/dist/bin/chunks/chunk-6FSBHK6H.js +22 -0
- package/dist/bin/chunks/chunk-6WJQNLR2.js +7 -0
- package/dist/bin/chunks/chunk-77MLOOQS.js +11 -0
- package/dist/bin/chunks/chunk-7AYT3UKI.js +6 -0
- package/dist/bin/chunks/chunk-7JZKVC3F.js +2 -0
- package/dist/bin/chunks/chunk-7NC4CPHS.js +20 -0
- package/dist/bin/chunks/chunk-7UU7KPEM.js +7 -0
- package/dist/bin/chunks/chunk-7VCQWCSH.js +15 -0
- package/dist/bin/chunks/chunk-AGKL4LDL.js +4 -0
- package/dist/bin/chunks/chunk-AJF3OBTR.js +4 -0
- package/dist/bin/chunks/chunk-ALVEEXFD.js +19 -0
- package/dist/bin/chunks/chunk-B2DRBHGQ.js +3 -0
- package/dist/bin/chunks/chunk-BE4PARL3.js +13 -0
- package/dist/bin/chunks/chunk-BGX3RW7H.js +10 -0
- package/dist/bin/chunks/chunk-BIJXTWZ4.js +3 -0
- package/dist/bin/chunks/chunk-BPZJYOUA.js +33 -0
- package/dist/bin/chunks/chunk-BZP56QBM.js +24 -0
- package/dist/bin/chunks/chunk-C7ISPH7Y.js +18 -0
- package/dist/bin/chunks/chunk-CAZ75E7E.js +3 -0
- package/dist/bin/chunks/chunk-D6CPXGKK.js +75 -0
- package/dist/bin/chunks/chunk-DJAX3ZRG.js +8 -0
- package/dist/bin/chunks/chunk-DYIBFLS3.js +17 -0
- package/dist/bin/chunks/chunk-EDTBGO7F.js +37 -0
- package/dist/bin/chunks/chunk-F3GKANW3.js +12 -0
- package/dist/bin/chunks/chunk-F3WNDKOC.js +3 -0
- package/dist/bin/chunks/chunk-FKVQZWJQ.js +10 -0
- package/dist/bin/chunks/chunk-FOUVACI7.js +16 -0
- package/dist/bin/chunks/chunk-FVRXEJYQ.js +141 -0
- package/dist/bin/chunks/chunk-G4AUMZUY.js +4 -0
- package/dist/bin/chunks/chunk-H7JTIXAO.js +4 -0
- package/dist/bin/chunks/chunk-HL4ZS7TX.js +6 -0
- package/dist/bin/chunks/chunk-HN2DCT7T.js +13 -0
- package/dist/bin/chunks/chunk-I4IRHQDW.js +3 -0
- package/dist/bin/chunks/chunk-IEXQTXU5.js +34 -0
- package/dist/bin/chunks/chunk-IZGLHVBB.js +8 -0
- package/dist/bin/chunks/chunk-J7TUF2VI.js +9 -0
- package/dist/bin/chunks/chunk-JNUX75OX.js +85 -0
- package/dist/bin/chunks/chunk-JXLDT4KX.js +4 -0
- package/dist/bin/chunks/chunk-JZW7NFK2.js +288 -0
- package/dist/bin/chunks/chunk-KFMPGSUT.js +9 -0
- package/dist/bin/chunks/chunk-KI54R2QB.js +3 -0
- package/dist/bin/chunks/chunk-KRRM5UCC.js +3 -0
- package/dist/bin/chunks/chunk-KUMHQGUR.js +3 -0
- package/dist/bin/chunks/chunk-L24QXM5S.js +34 -0
- package/dist/bin/chunks/chunk-LAHBP3FW.js +11 -0
- package/dist/bin/chunks/chunk-LC6D27QJ.js +3 -0
- package/dist/bin/chunks/chunk-LNNWMRCB.js +3 -0
- package/dist/bin/chunks/chunk-LNVSXNT7.js +3 -0
- package/dist/bin/chunks/chunk-LSQTB2QK.js +7 -0
- package/dist/bin/chunks/chunk-M65CQLJE.js +101 -0
- package/dist/bin/chunks/chunk-MLUOPG3W.js +3 -0
- package/dist/bin/chunks/chunk-MNWK4UIM.js +22 -0
- package/dist/bin/chunks/chunk-MROECM42.js +3 -0
- package/dist/bin/chunks/chunk-MUFNRCMY.js +24 -0
- package/dist/bin/chunks/chunk-N6YW4W3Z.js +29 -0
- package/dist/bin/chunks/chunk-NE4R2FVV.js +5 -0
- package/dist/bin/chunks/chunk-NXVG64T3.js +22 -0
- package/dist/bin/chunks/chunk-NYIPFY36.js +3 -0
- package/dist/bin/chunks/chunk-O2BCKSMK.js +3 -0
- package/dist/bin/chunks/chunk-OLEQNRKX.js +8 -0
- package/dist/bin/chunks/chunk-OPMLWMNH.js +17 -0
- package/dist/bin/chunks/chunk-PAYQNSZN.js +18 -0
- package/dist/bin/chunks/chunk-PBOVSFTJ.js +3 -0
- package/dist/bin/chunks/chunk-PXP4YYZA.js +13 -0
- package/dist/bin/chunks/chunk-PZQVSQX6.js +4 -0
- package/dist/bin/chunks/chunk-Q2GOPGDA.js +6 -0
- package/dist/bin/chunks/chunk-Q4UMTSRO.js +15 -0
- package/dist/bin/chunks/chunk-QL33F2W6.js +8 -0
- package/dist/bin/chunks/chunk-RVPTAYDS.js +4 -0
- package/dist/bin/chunks/chunk-SMSELHIY.js +12 -0
- package/dist/bin/chunks/chunk-UGJM7CKP.js +17 -0
- package/dist/bin/chunks/chunk-UO5LOD7U.js +12 -0
- package/dist/bin/chunks/chunk-UOMNSQEZ.js +10 -0
- package/dist/bin/chunks/chunk-UR4CEP4Y.js +3 -0
- package/dist/bin/chunks/chunk-V2RP73X4.js +15 -0
- package/dist/bin/chunks/chunk-VBDLSL7Y.js +10 -0
- package/dist/bin/chunks/chunk-VZK4FHWJ.js +3 -0
- package/dist/bin/chunks/chunk-WDWNEHHE.js +9 -0
- package/dist/bin/chunks/chunk-X4MX6EHF.js +6 -0
- package/dist/bin/chunks/chunk-XBB73LFB.js +5 -0
- package/dist/bin/chunks/chunk-XFFUAO3F.js +3 -0
- package/dist/bin/chunks/chunk-XHCCSVP6.js +9 -0
- package/dist/bin/chunks/chunk-XJ37N3S5.js +7 -0
- package/dist/bin/chunks/chunk-XPTYN6UE.js +8 -0
- package/dist/bin/chunks/chunk-XRUDFQG5.js +7 -0
- package/dist/bin/chunks/chunk-Y4FPH5DQ.js +64 -0
- package/dist/bin/chunks/chunk-YJ5OCPSK.js +7 -0
- package/dist/bin/chunks/chunk-YOIFOOGX.js +9 -0
- package/dist/bin/chunks/chunk-YOKQNNQO.js +6 -0
- package/dist/bin/chunks/chunk-YUZRUF5F.js +10 -0
- package/dist/bin/chunks/chunk-YY5PJR7O.js +7 -0
- package/dist/bin/chunks/chunk-ZFUVUYWG.js +15 -0
- package/dist/bin/chunks/clear-FGNEKYDU.js +3 -0
- package/dist/bin/chunks/column-AQB3A3PJ.js +3 -0
- package/dist/bin/chunks/comm-Q4VDF6ZO.js +3 -0
- package/dist/bin/chunks/cp-HYXTMN3D.js +3 -0
- package/dist/bin/chunks/curl-PLHETP4J.js +27 -0
- package/dist/bin/chunks/cut-ZI2HIAW7.js +3 -0
- package/dist/bin/chunks/date-JEZYSA4F.js +3 -0
- package/dist/bin/chunks/diff-YDJ42RKS.js +3 -0
- package/dist/bin/chunks/dirname-VCINTLPD.js +3 -0
- package/dist/bin/chunks/du-4LRQIGRG.js +3 -0
- package/dist/bin/chunks/echo-KCOHTNDF.js +3 -0
- package/dist/bin/chunks/env-NY32PQJM.js +3 -0
- package/dist/bin/chunks/expand-YYSO35NS.js +3 -0
- package/dist/bin/chunks/expansion-PPP6PD75.js +3 -0
- package/dist/bin/chunks/expr-7PLWSWZI.js +3 -0
- package/dist/bin/chunks/file-GRZLWDVH.js +3 -0
- package/dist/bin/chunks/find-P4DOE7CE.js +3 -0
- package/dist/bin/chunks/flag-coverage-RFKIBJ6L.js +3 -0
- package/dist/bin/chunks/fold-5MF7QZWQ.js +3 -0
- package/dist/bin/chunks/grep-VAYCFO4O.js +3 -0
- package/dist/bin/chunks/gzip-UGBQQKIH.js +3 -0
- package/dist/bin/chunks/head-QNC2ZYDO.js +3 -0
- package/dist/bin/chunks/help-CGUEOGXQ.js +3 -0
- package/dist/bin/chunks/history-AQQWW3QB.js +3 -0
- package/dist/bin/chunks/hostname-USNWOQCK.js +3 -0
- package/dist/bin/chunks/html-to-markdown-QEFY7XQR.js +3 -0
- package/dist/bin/chunks/join-EJ73DYTK.js +3 -0
- package/dist/bin/chunks/jq-GGTKKMEN.js +3 -0
- package/dist/bin/chunks/js-exec-BC6NI55L.js +98 -0
- package/dist/bin/chunks/js-exec-worker.js +4443 -0
- package/dist/bin/chunks/ln-LP4HMCSM.js +3 -0
- package/dist/bin/chunks/ls-KBNHNZWQ.js +3 -0
- package/dist/bin/chunks/md5sum-MCVDIB35.js +3 -0
- package/dist/bin/chunks/mkdir-P4DKRCDX.js +3 -0
- package/dist/bin/chunks/mv-QQK4FQX6.js +3 -0
- package/dist/bin/chunks/nl-KUPLVCTS.js +3 -0
- package/dist/bin/chunks/od-YQ5ZUI2H.js +3 -0
- package/dist/bin/chunks/paste-A5KKPWXX.js +3 -0
- package/dist/bin/chunks/printf-Z5C2UOI5.js +3 -0
- package/dist/bin/chunks/pwd-FCNDA467.js +3 -0
- package/dist/bin/chunks/python3-BQWDPUBM.js +13 -0
- package/dist/bin/chunks/readlink-25V57VOL.js +3 -0
- package/dist/bin/chunks/rev-PYHOZ4D4.js +3 -0
- package/dist/bin/chunks/rg-BGFMSIVK.js +3 -0
- package/dist/bin/chunks/rm-ECNUFR66.js +3 -0
- package/dist/bin/chunks/rmdir-DLOHIA7Q.js +3 -0
- package/dist/bin/chunks/sed-FWA634SN.js +3 -0
- package/dist/bin/chunks/seq-UXDJE6FB.js +3 -0
- package/dist/bin/chunks/sha1sum-4KF52U3Y.js +3 -0
- package/dist/bin/chunks/sha256sum-6YEPULPX.js +3 -0
- package/dist/bin/chunks/sleep-QHAPNY3Q.js +3 -0
- package/dist/bin/chunks/sort-4C6WOKNK.js +3 -0
- package/dist/bin/chunks/split-TV7NL7LA.js +3 -0
- package/dist/bin/chunks/sqlite3-W777NCI4.js +3 -0
- package/dist/bin/chunks/sqlite3-worker.js +1728 -0
- package/dist/bin/chunks/stat-BD6KT3BP.js +3 -0
- package/dist/bin/chunks/strings-MDD72LR6.js +3 -0
- package/dist/bin/chunks/tac-C2N4NQ6S.js +3 -0
- package/dist/bin/chunks/tail-BCB5W6JC.js +3 -0
- package/dist/bin/chunks/tar-DOO744MK.js +3 -0
- package/dist/bin/chunks/tee-UQHPO4OW.js +3 -0
- package/dist/bin/chunks/time-ZPY52VT2.js +3 -0
- package/dist/bin/chunks/timeout-5AX3ZS3X.js +3 -0
- package/dist/bin/chunks/touch-DFGSVIX7.js +3 -0
- package/dist/bin/chunks/tr-G7K6M6HP.js +3 -0
- package/dist/bin/chunks/tree-6D7SMPUR.js +3 -0
- package/dist/bin/chunks/true-SKL4L7JP.js +3 -0
- package/dist/bin/chunks/unexpand-QIR4EDPG.js +3 -0
- package/dist/bin/chunks/uniq-I7PVFJR4.js +3 -0
- package/dist/bin/chunks/wc-6NGWULAP.js +3 -0
- package/dist/bin/chunks/which-LCXKCLFC.js +3 -0
- package/dist/bin/chunks/whoami-TZDZDU7T.js +3 -0
- package/dist/bin/chunks/worker.js +3150 -0
- package/dist/bin/chunks/xan-KX4VPXUN.js +3 -0
- package/dist/bin/chunks/xan-view-JXOZLJ7S.js +3 -0
- package/dist/bin/chunks/xargs-UWHPYLY7.js +3 -0
- package/dist/bin/chunks/yq-GCDCJBKB.js +3 -0
- package/dist/bin/just-bash.js +755 -0
- package/dist/bin/shell/chunks/alias-YRVAW27Y.js +3 -0
- package/dist/bin/shell/chunks/awk2-RLMNTGI7.js +3 -0
- package/dist/bin/shell/chunks/base64-RZRLGMB3.js +3 -0
- package/dist/bin/shell/chunks/basename-F3AQ4KAQ.js +3 -0
- package/dist/bin/shell/chunks/bash-CLP24TE2.js +3 -0
- package/dist/bin/shell/chunks/cat-LQH5FSAR.js +3 -0
- package/dist/bin/shell/chunks/chmod-S564JCJW.js +3 -0
- package/dist/bin/shell/chunks/chunk-22HCD466.js +3 -0
- package/dist/bin/shell/chunks/chunk-2AIXTPH2.js +9 -0
- package/dist/bin/shell/chunks/chunk-2ETT4ELS.js +4 -0
- package/dist/bin/shell/chunks/chunk-2GG3NVC4.js +10 -0
- package/dist/bin/shell/chunks/chunk-2NRAWO6E.js +7 -0
- package/dist/bin/shell/chunks/chunk-2SVX7I5P.js +14 -0
- package/dist/bin/shell/chunks/chunk-3BYTCO2H.js +12 -0
- package/dist/bin/shell/chunks/chunk-3MRB66F4.js +3 -0
- package/dist/bin/shell/chunks/chunk-3UKQXBQ3.js +6 -0
- package/dist/bin/shell/chunks/chunk-3WIMLJM7.js +8 -0
- package/dist/bin/shell/chunks/chunk-47WZ2U6M.js +9 -0
- package/dist/bin/shell/chunks/chunk-4KSZJAQK.js +6 -0
- package/dist/bin/shell/chunks/chunk-5XSZHUEI.js +15 -0
- package/dist/bin/shell/chunks/chunk-6FSBHK6H.js +22 -0
- package/dist/bin/shell/chunks/chunk-6WJQNLR2.js +7 -0
- package/dist/bin/shell/chunks/chunk-77MLOOQS.js +11 -0
- package/dist/bin/shell/chunks/chunk-7AYT3UKI.js +6 -0
- package/dist/bin/shell/chunks/chunk-7JZKVC3F.js +2 -0
- package/dist/bin/shell/chunks/chunk-7NC4CPHS.js +20 -0
- package/dist/bin/shell/chunks/chunk-7UU7KPEM.js +7 -0
- package/dist/bin/shell/chunks/chunk-7VCQWCSH.js +15 -0
- package/dist/bin/shell/chunks/chunk-AGKL4LDL.js +4 -0
- package/dist/bin/shell/chunks/chunk-AJF3OBTR.js +4 -0
- package/dist/bin/shell/chunks/chunk-ALVEEXFD.js +19 -0
- package/dist/bin/shell/chunks/chunk-B2DRBHGQ.js +3 -0
- package/dist/bin/shell/chunks/chunk-BE4PARL3.js +13 -0
- package/dist/bin/shell/chunks/chunk-BGX3RW7H.js +10 -0
- package/dist/bin/shell/chunks/chunk-BIJXTWZ4.js +3 -0
- package/dist/bin/shell/chunks/chunk-BPZJYOUA.js +33 -0
- package/dist/bin/shell/chunks/chunk-BZP56QBM.js +24 -0
- package/dist/bin/shell/chunks/chunk-C7ISPH7Y.js +18 -0
- package/dist/bin/shell/chunks/chunk-CAZ75E7E.js +3 -0
- package/dist/bin/shell/chunks/chunk-D6CPXGKK.js +75 -0
- package/dist/bin/shell/chunks/chunk-DJAX3ZRG.js +8 -0
- package/dist/bin/shell/chunks/chunk-DYIBFLS3.js +17 -0
- package/dist/bin/shell/chunks/chunk-EDTBGO7F.js +37 -0
- package/dist/bin/shell/chunks/chunk-F3GKANW3.js +12 -0
- package/dist/bin/shell/chunks/chunk-F3WNDKOC.js +3 -0
- package/dist/bin/shell/chunks/chunk-FKVQZWJQ.js +10 -0
- package/dist/bin/shell/chunks/chunk-FOUVACI7.js +16 -0
- package/dist/bin/shell/chunks/chunk-FVRXEJYQ.js +141 -0
- package/dist/bin/shell/chunks/chunk-G4AUMZUY.js +4 -0
- package/dist/bin/shell/chunks/chunk-H7JTIXAO.js +4 -0
- package/dist/bin/shell/chunks/chunk-HL4ZS7TX.js +6 -0
- package/dist/bin/shell/chunks/chunk-HN2DCT7T.js +13 -0
- package/dist/bin/shell/chunks/chunk-I4IRHQDW.js +3 -0
- package/dist/bin/shell/chunks/chunk-IEXQTXU5.js +34 -0
- package/dist/bin/shell/chunks/chunk-IZGLHVBB.js +8 -0
- package/dist/bin/shell/chunks/chunk-J7TUF2VI.js +9 -0
- package/dist/bin/shell/chunks/chunk-JNUX75OX.js +85 -0
- package/dist/bin/shell/chunks/chunk-JXLDT4KX.js +4 -0
- package/dist/bin/shell/chunks/chunk-JZW7NFK2.js +288 -0
- package/dist/bin/shell/chunks/chunk-KFMPGSUT.js +9 -0
- package/dist/bin/shell/chunks/chunk-KI54R2QB.js +3 -0
- package/dist/bin/shell/chunks/chunk-KRRM5UCC.js +3 -0
- package/dist/bin/shell/chunks/chunk-KUMHQGUR.js +3 -0
- package/dist/bin/shell/chunks/chunk-L24QXM5S.js +34 -0
- package/dist/bin/shell/chunks/chunk-LAHBP3FW.js +11 -0
- package/dist/bin/shell/chunks/chunk-LC6D27QJ.js +3 -0
- package/dist/bin/shell/chunks/chunk-LNNWMRCB.js +3 -0
- package/dist/bin/shell/chunks/chunk-LNVSXNT7.js +3 -0
- package/dist/bin/shell/chunks/chunk-LSQTB2QK.js +7 -0
- package/dist/bin/shell/chunks/chunk-M65CQLJE.js +101 -0
- package/dist/bin/shell/chunks/chunk-MLUOPG3W.js +3 -0
- package/dist/bin/shell/chunks/chunk-MNWK4UIM.js +22 -0
- package/dist/bin/shell/chunks/chunk-MROECM42.js +3 -0
- package/dist/bin/shell/chunks/chunk-MUFNRCMY.js +24 -0
- package/dist/bin/shell/chunks/chunk-N6YW4W3Z.js +29 -0
- package/dist/bin/shell/chunks/chunk-NE4R2FVV.js +5 -0
- package/dist/bin/shell/chunks/chunk-NXVG64T3.js +22 -0
- package/dist/bin/shell/chunks/chunk-NYIPFY36.js +3 -0
- package/dist/bin/shell/chunks/chunk-O2BCKSMK.js +3 -0
- package/dist/bin/shell/chunks/chunk-OLEQNRKX.js +8 -0
- package/dist/bin/shell/chunks/chunk-OPMLWMNH.js +17 -0
- package/dist/bin/shell/chunks/chunk-PAYQNSZN.js +18 -0
- package/dist/bin/shell/chunks/chunk-PBOVSFTJ.js +3 -0
- package/dist/bin/shell/chunks/chunk-PXP4YYZA.js +13 -0
- package/dist/bin/shell/chunks/chunk-PZQVSQX6.js +4 -0
- package/dist/bin/shell/chunks/chunk-Q2GOPGDA.js +6 -0
- package/dist/bin/shell/chunks/chunk-Q4UMTSRO.js +15 -0
- package/dist/bin/shell/chunks/chunk-QL33F2W6.js +8 -0
- package/dist/bin/shell/chunks/chunk-RVPTAYDS.js +4 -0
- package/dist/bin/shell/chunks/chunk-SMSELHIY.js +12 -0
- package/dist/bin/shell/chunks/chunk-UGJM7CKP.js +17 -0
- package/dist/bin/shell/chunks/chunk-UO5LOD7U.js +12 -0
- package/dist/bin/shell/chunks/chunk-UOMNSQEZ.js +10 -0
- package/dist/bin/shell/chunks/chunk-UR4CEP4Y.js +3 -0
- package/dist/bin/shell/chunks/chunk-V2RP73X4.js +15 -0
- package/dist/bin/shell/chunks/chunk-VBDLSL7Y.js +10 -0
- package/dist/bin/shell/chunks/chunk-VZK4FHWJ.js +3 -0
- package/dist/bin/shell/chunks/chunk-WDWNEHHE.js +9 -0
- package/dist/bin/shell/chunks/chunk-X4MX6EHF.js +6 -0
- package/dist/bin/shell/chunks/chunk-XBB73LFB.js +5 -0
- package/dist/bin/shell/chunks/chunk-XFFUAO3F.js +3 -0
- package/dist/bin/shell/chunks/chunk-XHCCSVP6.js +9 -0
- package/dist/bin/shell/chunks/chunk-XJ37N3S5.js +7 -0
- package/dist/bin/shell/chunks/chunk-XPTYN6UE.js +8 -0
- package/dist/bin/shell/chunks/chunk-XRUDFQG5.js +7 -0
- package/dist/bin/shell/chunks/chunk-Y4FPH5DQ.js +64 -0
- package/dist/bin/shell/chunks/chunk-YJ5OCPSK.js +7 -0
- package/dist/bin/shell/chunks/chunk-YOIFOOGX.js +9 -0
- package/dist/bin/shell/chunks/chunk-YOKQNNQO.js +6 -0
- package/dist/bin/shell/chunks/chunk-YUZRUF5F.js +10 -0
- package/dist/bin/shell/chunks/chunk-YY5PJR7O.js +7 -0
- package/dist/bin/shell/chunks/chunk-ZFUVUYWG.js +15 -0
- package/dist/bin/shell/chunks/clear-FGNEKYDU.js +3 -0
- package/dist/bin/shell/chunks/column-AQB3A3PJ.js +3 -0
- package/dist/bin/shell/chunks/comm-Q4VDF6ZO.js +3 -0
- package/dist/bin/shell/chunks/cp-HYXTMN3D.js +3 -0
- package/dist/bin/shell/chunks/curl-PLHETP4J.js +27 -0
- package/dist/bin/shell/chunks/cut-ZI2HIAW7.js +3 -0
- package/dist/bin/shell/chunks/date-JEZYSA4F.js +3 -0
- package/dist/bin/shell/chunks/diff-YDJ42RKS.js +3 -0
- package/dist/bin/shell/chunks/dirname-VCINTLPD.js +3 -0
- package/dist/bin/shell/chunks/du-4LRQIGRG.js +3 -0
- package/dist/bin/shell/chunks/echo-KCOHTNDF.js +3 -0
- package/dist/bin/shell/chunks/env-NY32PQJM.js +3 -0
- package/dist/bin/shell/chunks/expand-YYSO35NS.js +3 -0
- package/dist/bin/shell/chunks/expansion-PPP6PD75.js +3 -0
- package/dist/bin/shell/chunks/expr-7PLWSWZI.js +3 -0
- package/dist/bin/shell/chunks/file-GRZLWDVH.js +3 -0
- package/dist/bin/shell/chunks/find-P4DOE7CE.js +3 -0
- package/dist/bin/shell/chunks/flag-coverage-RFKIBJ6L.js +3 -0
- package/dist/bin/shell/chunks/fold-5MF7QZWQ.js +3 -0
- package/dist/bin/shell/chunks/grep-VAYCFO4O.js +3 -0
- package/dist/bin/shell/chunks/gzip-UGBQQKIH.js +3 -0
- package/dist/bin/shell/chunks/head-QNC2ZYDO.js +3 -0
- package/dist/bin/shell/chunks/help-CGUEOGXQ.js +3 -0
- package/dist/bin/shell/chunks/history-AQQWW3QB.js +3 -0
- package/dist/bin/shell/chunks/hostname-USNWOQCK.js +3 -0
- package/dist/bin/shell/chunks/html-to-markdown-QEFY7XQR.js +3 -0
- package/dist/bin/shell/chunks/join-EJ73DYTK.js +3 -0
- package/dist/bin/shell/chunks/jq-GGTKKMEN.js +3 -0
- package/dist/bin/shell/chunks/js-exec-BC6NI55L.js +98 -0
- package/dist/bin/shell/chunks/ln-LP4HMCSM.js +3 -0
- package/dist/bin/shell/chunks/ls-KBNHNZWQ.js +3 -0
- package/dist/bin/shell/chunks/md5sum-MCVDIB35.js +3 -0
- package/dist/bin/shell/chunks/mkdir-P4DKRCDX.js +3 -0
- package/dist/bin/shell/chunks/mv-QQK4FQX6.js +3 -0
- package/dist/bin/shell/chunks/nl-KUPLVCTS.js +3 -0
- package/dist/bin/shell/chunks/od-YQ5ZUI2H.js +3 -0
- package/dist/bin/shell/chunks/paste-A5KKPWXX.js +3 -0
- package/dist/bin/shell/chunks/printf-Z5C2UOI5.js +3 -0
- package/dist/bin/shell/chunks/pwd-FCNDA467.js +3 -0
- package/dist/bin/shell/chunks/python3-BQWDPUBM.js +13 -0
- package/dist/bin/shell/chunks/readlink-25V57VOL.js +3 -0
- package/dist/bin/shell/chunks/rev-PYHOZ4D4.js +3 -0
- package/dist/bin/shell/chunks/rg-BGFMSIVK.js +3 -0
- package/dist/bin/shell/chunks/rm-ECNUFR66.js +3 -0
- package/dist/bin/shell/chunks/rmdir-DLOHIA7Q.js +3 -0
- package/dist/bin/shell/chunks/sed-FWA634SN.js +3 -0
- package/dist/bin/shell/chunks/seq-UXDJE6FB.js +3 -0
- package/dist/bin/shell/chunks/sha1sum-4KF52U3Y.js +3 -0
- package/dist/bin/shell/chunks/sha256sum-6YEPULPX.js +3 -0
- package/dist/bin/shell/chunks/sleep-QHAPNY3Q.js +3 -0
- package/dist/bin/shell/chunks/sort-4C6WOKNK.js +3 -0
- package/dist/bin/shell/chunks/split-TV7NL7LA.js +3 -0
- package/dist/bin/shell/chunks/sqlite3-W777NCI4.js +3 -0
- package/dist/bin/shell/chunks/stat-BD6KT3BP.js +3 -0
- package/dist/bin/shell/chunks/strings-MDD72LR6.js +3 -0
- package/dist/bin/shell/chunks/tac-C2N4NQ6S.js +3 -0
- package/dist/bin/shell/chunks/tail-BCB5W6JC.js +3 -0
- package/dist/bin/shell/chunks/tar-DOO744MK.js +3 -0
- package/dist/bin/shell/chunks/tee-UQHPO4OW.js +3 -0
- package/dist/bin/shell/chunks/time-ZPY52VT2.js +3 -0
- package/dist/bin/shell/chunks/timeout-5AX3ZS3X.js +3 -0
- package/dist/bin/shell/chunks/touch-DFGSVIX7.js +3 -0
- package/dist/bin/shell/chunks/tr-G7K6M6HP.js +3 -0
- package/dist/bin/shell/chunks/tree-6D7SMPUR.js +3 -0
- package/dist/bin/shell/chunks/true-SKL4L7JP.js +3 -0
- package/dist/bin/shell/chunks/unexpand-QIR4EDPG.js +3 -0
- package/dist/bin/shell/chunks/uniq-I7PVFJR4.js +3 -0
- package/dist/bin/shell/chunks/wc-6NGWULAP.js +3 -0
- package/dist/bin/shell/chunks/which-LCXKCLFC.js +3 -0
- package/dist/bin/shell/chunks/whoami-TZDZDU7T.js +3 -0
- package/dist/bin/shell/chunks/xan-KX4VPXUN.js +3 -0
- package/dist/bin/shell/chunks/xan-view-JXOZLJ7S.js +3 -0
- package/dist/bin/shell/chunks/xargs-UWHPYLY7.js +3 -0
- package/dist/bin/shell/chunks/yq-GCDCJBKB.js +3 -0
- package/dist/bin/shell/shell.js +734 -0
- package/dist/browser.d.ts +23 -0
- package/dist/bundle/browser.js +1515 -0
- package/dist/bundle/chunks/alias-RTYYYW3D.js +2 -0
- package/dist/bundle/chunks/awk2-LA3USKJP.js +2 -0
- package/dist/bundle/chunks/base64-C2AIWVNC.js +2 -0
- package/dist/bundle/chunks/basename-UB3CIYNI.js +2 -0
- package/dist/bundle/chunks/bash-YZ33HQZQ.js +2 -0
- package/dist/bundle/chunks/cat-TSFMZVYS.js +2 -0
- package/dist/bundle/chunks/chmod-TFEPA42X.js +2 -0
- package/dist/bundle/chunks/chunk-27JIFWUR.js +3 -0
- package/dist/bundle/chunks/chunk-2JIPICV3.js +13 -0
- package/dist/bundle/chunks/chunk-2SMD2AUA.js +3 -0
- package/dist/bundle/chunks/chunk-2VDTE5BV.js +14 -0
- package/dist/bundle/chunks/chunk-2VJJEDV2.js +8 -0
- package/dist/bundle/chunks/chunk-46RN27KI.js +100 -0
- package/dist/bundle/chunks/chunk-4I3HOE5Z.js +21 -0
- package/dist/bundle/chunks/chunk-4JLVZKHC.js +8 -0
- package/dist/bundle/chunks/chunk-4MZPEZTU.js +3 -0
- package/dist/bundle/chunks/chunk-4N6J7B5P.js +6 -0
- package/dist/bundle/chunks/chunk-4RUAZWKT.js +33 -0
- package/dist/bundle/chunks/chunk-4WKZNNJK.js +2 -0
- package/dist/bundle/chunks/chunk-5H5SCKJM.js +11 -0
- package/dist/bundle/chunks/chunk-6LASZU3O.js +5 -0
- package/dist/bundle/chunks/chunk-6SHYIICL.js +4 -0
- package/dist/bundle/chunks/chunk-6VAT5Z2D.js +5 -0
- package/dist/bundle/chunks/chunk-7AISL3XV.js +12 -0
- package/dist/bundle/chunks/chunk-7EUWTCWK.js +2 -0
- package/dist/bundle/chunks/chunk-7JHM3L42.js +6 -0
- package/dist/bundle/chunks/chunk-A4R2GWRF.js +9 -0
- package/dist/bundle/chunks/chunk-ACSZB4FE.js +11 -0
- package/dist/bundle/chunks/chunk-AQ6FYS2X.js +2 -0
- package/dist/bundle/chunks/chunk-BVKWRAS6.js +12 -0
- package/dist/bundle/chunks/chunk-BZUGFHVS.js +2 -0
- package/dist/bundle/chunks/chunk-CBJVD2XA.js +7 -0
- package/dist/bundle/chunks/chunk-CHFEPBH4.js +18 -0
- package/dist/bundle/chunks/chunk-CN5XGDNN.js +6 -0
- package/dist/bundle/chunks/chunk-DLL7UR66.js +2 -0
- package/dist/bundle/chunks/chunk-EBAPSGAO.js +9 -0
- package/dist/bundle/chunks/chunk-FAXLQUCQ.js +10 -0
- package/dist/bundle/chunks/chunk-FHC24QSK.js +7 -0
- package/dist/bundle/chunks/chunk-FJK43EBQ.js +14 -0
- package/dist/bundle/chunks/chunk-FOCWZZDE.js +2 -0
- package/dist/bundle/chunks/chunk-FW54FHZR.js +2 -0
- package/dist/bundle/chunks/chunk-FX4RBUYU.js +5 -0
- package/dist/bundle/chunks/chunk-FX7KQCEA.js +33 -0
- package/dist/bundle/chunks/chunk-FZRQOL3C.js +7 -0
- package/dist/bundle/chunks/chunk-G5EVRAOO.js +74 -0
- package/dist/bundle/chunks/chunk-GGC5NEPZ.js +8 -0
- package/dist/bundle/chunks/chunk-GIUR5SNU.js +15 -0
- package/dist/bundle/chunks/chunk-GJC3WVOW.js +2 -0
- package/dist/bundle/chunks/chunk-GSPYNYZA.js +6 -0
- package/dist/bundle/chunks/chunk-GTQIUQM6.js +5 -0
- package/dist/bundle/chunks/chunk-HBVMHTO5.js +2 -0
- package/dist/bundle/chunks/chunk-HDRAUQK2.js +2 -0
- package/dist/bundle/chunks/chunk-HJBTD7PY.js +21 -0
- package/dist/bundle/chunks/chunk-ICIEVHY5.js +36 -0
- package/dist/bundle/chunks/chunk-KATRCGLX.js +2 -0
- package/dist/bundle/chunks/chunk-KD3KENL6.js +11 -0
- package/dist/bundle/chunks/chunk-KWGBQNTV.js +32 -0
- package/dist/bundle/chunks/chunk-L2UW7DWF.js +2 -0
- package/dist/bundle/chunks/chunk-L64BMZUV.js +2 -0
- package/dist/bundle/chunks/chunk-LEKBROJD.js +6 -0
- package/dist/bundle/chunks/chunk-LNBPBRV4.js +21 -0
- package/dist/bundle/chunks/chunk-LPJEKUCB.js +8 -0
- package/dist/bundle/chunks/chunk-LSLPJOYM.js +3 -0
- package/dist/bundle/chunks/chunk-MFDPAVC6.js +14 -0
- package/dist/bundle/chunks/chunk-MLIO3BK2.js +7 -0
- package/dist/bundle/chunks/chunk-MQKGGNPS.js +16 -0
- package/dist/bundle/chunks/chunk-MZFCCXPZ.js +63 -0
- package/dist/bundle/chunks/chunk-N6DXJ2JN.js +287 -0
- package/dist/bundle/chunks/chunk-NRSASXYY.js +2 -0
- package/dist/bundle/chunks/chunk-OC35HPHG.js +2 -0
- package/dist/bundle/chunks/chunk-OGJ5CFPR.js +9 -0
- package/dist/bundle/chunks/chunk-OVGANXCG.js +8 -0
- package/dist/bundle/chunks/chunk-Q7H5W7YE.js +140 -0
- package/dist/bundle/chunks/chunk-QAYAQNCG.js +23 -0
- package/dist/bundle/chunks/chunk-QIQMJJZ4.js +4 -0
- package/dist/bundle/chunks/chunk-R4IFXNY5.js +28 -0
- package/dist/bundle/chunks/chunk-R74UQCKX.js +5 -0
- package/dist/bundle/chunks/chunk-S3LEJEPP.js +2 -0
- package/dist/bundle/chunks/chunk-S443BAN4.js +7 -0
- package/dist/bundle/chunks/chunk-SAI2SPQQ.js +8 -0
- package/dist/bundle/chunks/chunk-SBBYKIYU.js +3 -0
- package/dist/bundle/chunks/chunk-SETW5JBN.js +9 -0
- package/dist/bundle/chunks/chunk-SHKOQWO4.js +3 -0
- package/dist/bundle/chunks/chunk-SJYEXC2Z.js +14 -0
- package/dist/bundle/chunks/chunk-SO6R3ZKN.js +16 -0
- package/dist/bundle/chunks/chunk-STHBFACM.js +1 -0
- package/dist/bundle/chunks/chunk-SX2HC7SO.js +2 -0
- package/dist/bundle/chunks/chunk-T4TFLF3R.js +16 -0
- package/dist/bundle/chunks/chunk-TDD4NFYE.js +2 -0
- package/dist/bundle/chunks/chunk-TN7HHBQW.js +5 -0
- package/dist/bundle/chunks/chunk-U73A73IE.js +17 -0
- package/dist/bundle/chunks/chunk-UIJUTQPH.js +3 -0
- package/dist/bundle/chunks/chunk-UP6MSJGD.js +17 -0
- package/dist/bundle/chunks/chunk-VLCHOJWK.js +6 -0
- package/dist/bundle/chunks/chunk-VPADYNBD.js +10 -0
- package/dist/bundle/chunks/chunk-W5DWRFSU.js +2 -0
- package/dist/bundle/chunks/chunk-WM5IJFMP.js +8 -0
- package/dist/bundle/chunks/chunk-WNH3HOQA.js +2 -0
- package/dist/bundle/chunks/chunk-WPGQVBSY.js +6 -0
- package/dist/bundle/chunks/chunk-WVRWIZF5.js +23 -0
- package/dist/bundle/chunks/chunk-XCQWV4AU.js +12 -0
- package/dist/bundle/chunks/chunk-XDGLKIHR.js +9 -0
- package/dist/bundle/chunks/chunk-XHLMAZX2.js +5 -0
- package/dist/bundle/chunks/chunk-XRFHFXFP.js +2 -0
- package/dist/bundle/chunks/chunk-XUIHBHL5.js +5 -0
- package/dist/bundle/chunks/chunk-XYXUMFSU.js +14 -0
- package/dist/bundle/chunks/chunk-Y4LIDHSD.js +7 -0
- package/dist/bundle/chunks/chunk-YCLFEX4T.js +3 -0
- package/dist/bundle/chunks/chunk-YS4NUBYX.js +9 -0
- package/dist/bundle/chunks/chunk-ZDIT6ST5.js +7 -0
- package/dist/bundle/chunks/chunk-ZDPFA4L3.js +6 -0
- package/dist/bundle/chunks/chunk-ZZKH2ELC.js +11 -0
- package/dist/bundle/chunks/clear-HKGFEOF6.js +2 -0
- package/dist/bundle/chunks/column-XT6UFXNQ.js +2 -0
- package/dist/bundle/chunks/comm-VV2LDX2J.js +2 -0
- package/dist/bundle/chunks/cp-BISAAS7A.js +2 -0
- package/dist/bundle/chunks/curl-GRYA74XW.js +26 -0
- package/dist/bundle/chunks/cut-OKARJCCV.js +2 -0
- package/dist/bundle/chunks/date-UUUPW43J.js +2 -0
- package/dist/bundle/chunks/diff-MWJFIG7X.js +2 -0
- package/dist/bundle/chunks/dirname-MPHRFUTI.js +2 -0
- package/dist/bundle/chunks/du-572XNP42.js +2 -0
- package/dist/bundle/chunks/echo-NDWZZHPO.js +2 -0
- package/dist/bundle/chunks/env-36M5BO7M.js +2 -0
- package/dist/bundle/chunks/expand-JSPG6VOP.js +2 -0
- package/dist/bundle/chunks/expansion-R25BK4W3.js +2 -0
- package/dist/bundle/chunks/expr-5JAACS4X.js +2 -0
- package/dist/bundle/chunks/file-IPZJC3FQ.js +2 -0
- package/dist/bundle/chunks/find-INTH3OLC.js +2 -0
- package/dist/bundle/chunks/flag-coverage-XWSYNE72.js +2 -0
- package/dist/bundle/chunks/fold-4TQNYMSW.js +2 -0
- package/dist/bundle/chunks/grep-V3LQVMRQ.js +2 -0
- package/dist/bundle/chunks/gzip-O5ASJAFY.js +2 -0
- package/dist/bundle/chunks/head-442HYESI.js +2 -0
- package/dist/bundle/chunks/help-HZ6M2CKN.js +2 -0
- package/dist/bundle/chunks/history-WYYKSLSZ.js +2 -0
- package/dist/bundle/chunks/hostname-C4HQXXUP.js +2 -0
- package/dist/bundle/chunks/html-to-markdown-JW4MSQZO.js +2 -0
- package/dist/bundle/chunks/join-TBRGI3LQ.js +2 -0
- package/dist/bundle/chunks/jq-4XLYLOS5.js +2 -0
- package/dist/bundle/chunks/js-exec-N5KEZBH7.js +97 -0
- package/dist/bundle/chunks/js-exec-worker.js +4443 -0
- package/dist/bundle/chunks/ln-4LGSXXGD.js +2 -0
- package/dist/bundle/chunks/ls-ZJGQER7M.js +2 -0
- package/dist/bundle/chunks/md5sum-SPU24VSG.js +2 -0
- package/dist/bundle/chunks/mkdir-MEPGZOB6.js +2 -0
- package/dist/bundle/chunks/mv-W5BIQ646.js +2 -0
- package/dist/bundle/chunks/nl-WSDW7I4O.js +2 -0
- package/dist/bundle/chunks/od-WOKFDJTP.js +2 -0
- package/dist/bundle/chunks/paste-7JC6S4DX.js +2 -0
- package/dist/bundle/chunks/printf-TWGXF445.js +2 -0
- package/dist/bundle/chunks/pwd-WE6EN5AV.js +2 -0
- package/dist/bundle/chunks/python3-POMOR4OA.js +12 -0
- package/dist/bundle/chunks/readlink-OPJF4DL5.js +2 -0
- package/dist/bundle/chunks/rev-5EHFX4EJ.js +2 -0
- package/dist/bundle/chunks/rg-S4FXYXWB.js +2 -0
- package/dist/bundle/chunks/rm-SSGETQVQ.js +2 -0
- package/dist/bundle/chunks/rmdir-OC4ZLPYA.js +2 -0
- package/dist/bundle/chunks/sed-S5UIK574.js +2 -0
- package/dist/bundle/chunks/seq-M5EC7Q57.js +2 -0
- package/dist/bundle/chunks/sha1sum-2PTOAFR6.js +2 -0
- package/dist/bundle/chunks/sha256sum-NS7D3IXX.js +2 -0
- package/dist/bundle/chunks/sleep-X22JJINO.js +2 -0
- package/dist/bundle/chunks/sort-SW2YEO5B.js +2 -0
- package/dist/bundle/chunks/split-4KKZZXXE.js +2 -0
- package/dist/bundle/chunks/sqlite3-CGOEFJAO.js +2 -0
- package/dist/bundle/chunks/sqlite3-worker.js +1728 -0
- package/dist/bundle/chunks/stat-CD34IZ4P.js +2 -0
- package/dist/bundle/chunks/strings-6WDHLGMX.js +2 -0
- package/dist/bundle/chunks/tac-2STMMJYW.js +2 -0
- package/dist/bundle/chunks/tail-R4PCA2C4.js +2 -0
- package/dist/bundle/chunks/tar-STHHZTZ6.js +2 -0
- package/dist/bundle/chunks/tee-YUZ2FKCJ.js +2 -0
- package/dist/bundle/chunks/time-D4LNBSWX.js +2 -0
- package/dist/bundle/chunks/timeout-YDCRSLPQ.js +2 -0
- package/dist/bundle/chunks/touch-UA33VN3N.js +2 -0
- package/dist/bundle/chunks/tr-36LHWFRQ.js +2 -0
- package/dist/bundle/chunks/tree-YLD52CNT.js +2 -0
- package/dist/bundle/chunks/true-FHQXJXBE.js +2 -0
- package/dist/bundle/chunks/unexpand-CADSA4VO.js +2 -0
- package/dist/bundle/chunks/uniq-XSIZR6PB.js +2 -0
- package/dist/bundle/chunks/wc-LF7NU4LA.js +2 -0
- package/dist/bundle/chunks/which-XEM24D5D.js +2 -0
- package/dist/bundle/chunks/whoami-XMTX52VE.js +2 -0
- package/dist/bundle/chunks/worker.js +3150 -0
- package/dist/bundle/chunks/xan-Y6WF3IRG.js +2 -0
- package/dist/bundle/chunks/xan-view-HDVKHFC2.js +2 -0
- package/dist/bundle/chunks/xargs-MGZPH7AX.js +2 -0
- package/dist/bundle/chunks/yq-4QJW3EQG.js +2 -0
- package/dist/bundle/index.cjs +2178 -0
- package/dist/bundle/index.js +710 -0
- package/dist/commands/alias/alias.d.ts +6 -0
- package/dist/commands/awk/ast.d.ts +202 -0
- package/dist/commands/awk/awk2.d.ts +9 -0
- package/dist/commands/awk/builtins.d.ts +17 -0
- package/dist/commands/awk/interpreter/context.d.ts +75 -0
- package/dist/commands/awk/interpreter/expressions.d.ts +17 -0
- package/dist/commands/awk/interpreter/fields.d.ts +25 -0
- package/dist/commands/awk/interpreter/index.d.ts +8 -0
- package/dist/commands/awk/interpreter/interpreter.d.ts +54 -0
- package/dist/commands/awk/interpreter/statements.d.ts +11 -0
- package/dist/commands/awk/interpreter/type-coercion.d.ts +32 -0
- package/dist/commands/awk/interpreter/types.d.ts +13 -0
- package/dist/commands/awk/interpreter/variables.d.ts +35 -0
- package/dist/commands/awk/lexer.d.ts +100 -0
- package/dist/commands/awk/parser2-print.d.ts +35 -0
- package/dist/commands/awk/parser2.d.ts +81 -0
- package/dist/commands/base64/base64.d.ts +7 -0
- package/dist/commands/basename/basename.d.ts +4 -0
- package/dist/commands/bash/bash.d.ts +6 -0
- package/dist/commands/browser-excluded.d.ts +16 -0
- package/dist/commands/cat/cat.d.ts +4 -0
- package/dist/commands/chmod/chmod.d.ts +4 -0
- package/dist/commands/clear/clear.d.ts +4 -0
- package/dist/commands/column/column.d.ts +11 -0
- package/dist/commands/comm/comm.d.ts +12 -0
- package/dist/commands/cp/cp.d.ts +4 -0
- package/dist/commands/curl/curl.d.ts +8 -0
- package/dist/commands/curl/form.d.ts +21 -0
- package/dist/commands/curl/help.d.ts +9 -0
- package/dist/commands/curl/parse.d.ts +9 -0
- package/dist/commands/curl/response-formatting.d.ts +20 -0
- package/dist/commands/curl/types.d.ts +60 -0
- package/dist/commands/cut/cut.d.ts +4 -0
- package/dist/commands/date/date.d.ts +7 -0
- package/dist/commands/diff/diff.d.ts +7 -0
- package/dist/commands/dirname/dirname.d.ts +4 -0
- package/dist/commands/du/du.d.ts +4 -0
- package/dist/commands/duration.d.ts +5 -0
- package/dist/commands/echo/echo.d.ts +4 -0
- package/dist/commands/env/env.d.ts +6 -0
- package/dist/commands/expand/expand.d.ts +12 -0
- package/dist/commands/expand/unexpand.d.ts +12 -0
- package/dist/commands/expr/expr.d.ts +9 -0
- package/dist/commands/file/file.d.ts +9 -0
- package/dist/commands/find/find.d.ts +4 -0
- package/dist/commands/find/matcher.d.ts +69 -0
- package/dist/commands/find/parser.d.ts +2 -0
- package/dist/commands/find/types.d.ts +88 -0
- package/dist/commands/flag-coverage.d.ts +2 -0
- package/dist/commands/fold/fold.d.ts +12 -0
- package/dist/commands/format-mode.d.ts +4 -0
- package/dist/commands/fuzz-flags-types.d.ts +17 -0
- package/dist/commands/fuzz-flags.d.ts +8 -0
- package/dist/commands/grep/grep.d.ts +8 -0
- package/dist/commands/gzip/gzip.d.ts +13 -0
- package/dist/commands/head/head-tail-shared.d.ts +38 -0
- package/dist/commands/head/head.d.ts +4 -0
- package/dist/commands/help/help.d.ts +4 -0
- package/dist/commands/help.d.ts +16 -0
- package/dist/commands/history/history.d.ts +4 -0
- package/dist/commands/hostname/hostname.d.ts +11 -0
- package/dist/commands/html-to-markdown/html-to-markdown.d.ts +9 -0
- package/dist/commands/join/join.d.ts +12 -0
- package/dist/commands/jq/jq.d.ts +9 -0
- package/dist/commands/js-exec/fetch-polyfill.d.ts +6 -0
- package/dist/commands/js-exec/js-exec-worker.d.ts +32 -0
- package/dist/commands/js-exec/js-exec.d.ts +11 -0
- package/dist/commands/js-exec/module-shims.d.ts +29 -0
- package/dist/commands/js-exec/path-polyfill.d.ts +6 -0
- package/dist/commands/ln/ln.d.ts +4 -0
- package/dist/commands/ls/ls.d.ts +4 -0
- package/dist/commands/md5sum/checksum.d.ts +7 -0
- package/dist/commands/md5sum/md5sum.d.ts +4 -0
- package/dist/commands/md5sum/sha1sum.d.ts +4 -0
- package/dist/commands/md5sum/sha256sum.d.ts +4 -0
- package/dist/commands/mkdir/mkdir.d.ts +4 -0
- package/dist/commands/mv/mv.d.ts +4 -0
- package/dist/commands/nl/nl.d.ts +12 -0
- package/dist/commands/od/od.d.ts +12 -0
- package/dist/commands/paste/paste.d.ts +4 -0
- package/dist/commands/printf/escapes.d.ts +25 -0
- package/dist/commands/printf/printf.d.ts +4 -0
- package/dist/commands/printf/strftime.d.ts +9 -0
- package/dist/commands/pwd/pwd.d.ts +4 -0
- package/dist/commands/python3/python3.d.ts +16 -0
- package/dist/commands/python3/worker.d.ts +28 -0
- package/dist/commands/query-engine/builtins/array-builtins.d.ts +20 -0
- package/dist/commands/query-engine/builtins/control-builtins.d.ts +18 -0
- package/dist/commands/query-engine/builtins/date-builtins.d.ts +15 -0
- package/dist/commands/query-engine/builtins/format-builtins.d.ts +11 -0
- package/dist/commands/query-engine/builtins/index-builtins.d.ts +16 -0
- package/dist/commands/query-engine/builtins/index.d.ts +17 -0
- package/dist/commands/query-engine/builtins/math-builtins.d.ts +15 -0
- package/dist/commands/query-engine/builtins/navigation-builtins.d.ts +18 -0
- package/dist/commands/query-engine/builtins/object-builtins.d.ts +15 -0
- package/dist/commands/query-engine/builtins/path-builtins.d.ts +20 -0
- package/dist/commands/query-engine/builtins/sql-builtins.d.ts +16 -0
- package/dist/commands/query-engine/builtins/string-builtins.d.ts +15 -0
- package/dist/commands/query-engine/builtins/type-builtins.d.ts +11 -0
- package/dist/commands/query-engine/evaluator.d.ts +40 -0
- package/dist/commands/query-engine/index.d.ts +8 -0
- package/dist/commands/query-engine/parser-types.d.ts +171 -0
- package/dist/commands/query-engine/parser.d.ts +9 -0
- package/dist/commands/query-engine/path-operations.d.ts +15 -0
- package/dist/commands/query-engine/safe-object.d.ts +83 -0
- package/dist/commands/query-engine/value-operations.d.ts +41 -0
- package/dist/commands/readlink/readlink.d.ts +4 -0
- package/dist/commands/registry.d.ts +56 -0
- package/dist/commands/rev/rev.d.ts +13 -0
- package/dist/commands/rg/file-types.d.ts +49 -0
- package/dist/commands/rg/gitignore.d.ts +98 -0
- package/dist/commands/rg/rg-options.d.ts +61 -0
- package/dist/commands/rg/rg-parser.d.ts +20 -0
- package/dist/commands/rg/rg-search.d.ts +15 -0
- package/dist/commands/rg/rg.d.ts +14 -0
- package/dist/commands/rm/rm.d.ts +4 -0
- package/dist/commands/rmdir/rmdir.d.ts +4 -0
- package/dist/commands/search-engine/index.d.ts +10 -0
- package/dist/commands/search-engine/matcher.d.ts +66 -0
- package/dist/commands/search-engine/regex.d.ts +46 -0
- package/dist/commands/sed/executor.d.ts +7 -0
- package/dist/commands/sed/lexer.d.ts +86 -0
- package/dist/commands/sed/parser.d.ts +18 -0
- package/dist/commands/sed/sed-regex.d.ts +23 -0
- package/dist/commands/sed/sed.d.ts +4 -0
- package/dist/commands/sed/types.d.ts +216 -0
- package/dist/commands/seq/seq.d.ts +16 -0
- package/dist/commands/sleep/sleep.d.ts +4 -0
- package/dist/commands/sort/comparator.d.ts +9 -0
- package/dist/commands/sort/parser.d.ts +11 -0
- package/dist/commands/sort/sort.d.ts +4 -0
- package/dist/commands/sort/types.d.ts +30 -0
- package/dist/commands/split/split.d.ts +12 -0
- package/dist/commands/sqlite3/formatters.d.ts +15 -0
- package/dist/commands/sqlite3/sqlite3.d.ts +23 -0
- package/dist/commands/sqlite3/worker.d.ts +45 -0
- package/dist/commands/sqlite3/worker.js +1728 -0
- package/dist/commands/stat/stat.d.ts +4 -0
- package/dist/commands/strings/strings.d.ts +12 -0
- package/dist/commands/tac/tac.d.ts +11 -0
- package/dist/commands/tail/tail.d.ts +4 -0
- package/dist/commands/tar/archive.d.ts +135 -0
- package/dist/commands/tar/bzip2-compress.d.ts +17 -0
- package/dist/commands/tar/tar-options.d.ts +37 -0
- package/dist/commands/tar/tar.d.ts +10 -0
- package/dist/commands/tee/tee.d.ts +4 -0
- package/dist/commands/time/time.d.ts +27 -0
- package/dist/commands/timeout/timeout.d.ts +4 -0
- package/dist/commands/touch/touch.d.ts +4 -0
- package/dist/commands/tr/tr.d.ts +4 -0
- package/dist/commands/tree/tree.d.ts +4 -0
- package/dist/commands/true/true.d.ts +6 -0
- package/dist/commands/uniq/uniq.d.ts +4 -0
- package/dist/commands/wc/wc.d.ts +4 -0
- package/dist/commands/which/which.d.ts +4 -0
- package/dist/commands/whoami/whoami.d.ts +11 -0
- package/dist/commands/worker-bridge/bridge-handler.d.ts +73 -0
- package/dist/commands/worker-bridge/protocol.d.ts +141 -0
- package/dist/commands/worker-bridge/sync-backend.d.ts +86 -0
- package/dist/commands/xan/aggregation.d.ts +20 -0
- package/dist/commands/xan/column-selection.d.ts +19 -0
- package/dist/commands/xan/csv.d.ts +37 -0
- package/dist/commands/xan/moonblade-parser.d.ts +80 -0
- package/dist/commands/xan/moonblade-to-jq.d.ts +12 -0
- package/dist/commands/xan/moonblade-tokenizer.d.ts +25 -0
- package/dist/commands/xan/subcommands.d.ts +15 -0
- package/dist/commands/xan/xan-agg.d.ts +8 -0
- package/dist/commands/xan/xan-columns.d.ts +8 -0
- package/dist/commands/xan/xan-core.d.ts +10 -0
- package/dist/commands/xan/xan-data.d.ts +52 -0
- package/dist/commands/xan/xan-filter.d.ts +8 -0
- package/dist/commands/xan/xan-map.d.ts +11 -0
- package/dist/commands/xan/xan-reshape.d.ts +40 -0
- package/dist/commands/xan/xan-simple.d.ts +40 -0
- package/dist/commands/xan/xan-view.d.ts +12 -0
- package/dist/commands/xan/xan.d.ts +10 -0
- package/dist/commands/xargs/xargs.d.ts +4 -0
- package/dist/commands/yq/formats.d.ts +64 -0
- package/dist/commands/yq/yq.d.ts +13 -0
- package/dist/custom-commands.d.ts +42 -0
- package/dist/encoding.d.ts +115 -0
- package/dist/fs/encoding.d.ts +17 -0
- package/dist/fs/in-memory-fs/in-memory-fs.d.ts +75 -0
- package/dist/fs/in-memory-fs/index.d.ts +1 -0
- package/dist/fs/init.d.ts +22 -0
- package/dist/fs/interface.d.ts +251 -0
- package/dist/fs/mountable-fs/index.d.ts +1 -0
- package/dist/fs/mountable-fs/mountable-fs.d.ts +118 -0
- package/dist/fs/overlay-fs/index.d.ts +1 -0
- package/dist/fs/overlay-fs/overlay-fs.d.ts +165 -0
- package/dist/fs/path-utils.d.ts +46 -0
- package/dist/fs/read-write-fs/index.d.ts +1 -0
- package/dist/fs/read-write-fs/read-write-fs.d.ts +98 -0
- package/dist/fs/real-fs-utils.d.ts +90 -0
- package/dist/fs/sanitize-error.d.ts +19 -0
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/interpreter/alias-expansion.d.ts +23 -0
- package/dist/interpreter/arithmetic.d.ts +24 -0
- package/dist/interpreter/assignment-expansion.d.ts +24 -0
- package/dist/interpreter/builtin-dispatch.d.ts +39 -0
- package/dist/interpreter/builtins/break.d.ts +6 -0
- package/dist/interpreter/builtins/cd.d.ts +6 -0
- package/dist/interpreter/builtins/compgen.d.ts +26 -0
- package/dist/interpreter/builtins/complete.d.ts +17 -0
- package/dist/interpreter/builtins/compopt.d.ts +28 -0
- package/dist/interpreter/builtins/continue.d.ts +6 -0
- package/dist/interpreter/builtins/declare-array-parsing.d.ts +14 -0
- package/dist/interpreter/builtins/declare-print.d.ts +39 -0
- package/dist/interpreter/builtins/declare.d.ts +35 -0
- package/dist/interpreter/builtins/dirs.d.ts +29 -0
- package/dist/interpreter/builtins/eval.d.ts +9 -0
- package/dist/interpreter/builtins/exit.d.ts +5 -0
- package/dist/interpreter/builtins/export.d.ts +14 -0
- package/dist/interpreter/builtins/getopts.d.ts +18 -0
- package/dist/interpreter/builtins/hash.d.ts +19 -0
- package/dist/interpreter/builtins/help.d.ts +12 -0
- package/dist/interpreter/builtins/index.d.ts +45 -0
- package/dist/interpreter/builtins/let.d.ts +18 -0
- package/dist/interpreter/builtins/local.d.ts +6 -0
- package/dist/interpreter/builtins/mapfile.d.ts +17 -0
- package/dist/interpreter/builtins/read.d.ts +6 -0
- package/dist/interpreter/builtins/return.d.ts +6 -0
- package/dist/interpreter/builtins/set.d.ts +9 -0
- package/dist/interpreter/builtins/shift.d.ts +15 -0
- package/dist/interpreter/builtins/shopt.d.ts +7 -0
- package/dist/interpreter/builtins/source.d.ts +6 -0
- package/dist/interpreter/builtins/unset.d.ts +16 -0
- package/dist/interpreter/builtins/variable-assignment.d.ts +66 -0
- package/dist/interpreter/command-resolution.d.ts +43 -0
- package/dist/interpreter/conditionals.d.ts +17 -0
- package/dist/interpreter/control-flow.d.ts +21 -0
- package/dist/interpreter/defense-aware-command-context.d.ts +6 -0
- package/dist/interpreter/errors.d.ts +158 -0
- package/dist/interpreter/expansion/analysis.d.ts +37 -0
- package/dist/interpreter/expansion/arith-text-expansion.d.ts +20 -0
- package/dist/interpreter/expansion/array-pattern-ops.d.ts +21 -0
- package/dist/interpreter/expansion/array-prefix-suffix.d.ts +46 -0
- package/dist/interpreter/expansion/array-slice-transform.d.ts +36 -0
- package/dist/interpreter/expansion/array-word-expansion.d.ts +39 -0
- package/dist/interpreter/expansion/brace-range.d.ts +20 -0
- package/dist/interpreter/expansion/command-substitution.d.ts +23 -0
- package/dist/interpreter/expansion/glob-escape.d.ts +32 -0
- package/dist/interpreter/expansion/indirect-expansion.d.ts +42 -0
- package/dist/interpreter/expansion/parameter-ops.d.ts +113 -0
- package/dist/interpreter/expansion/pattern-expansion.d.ts +23 -0
- package/dist/interpreter/expansion/pattern-removal.d.ts +18 -0
- package/dist/interpreter/expansion/pattern.d.ts +23 -0
- package/dist/interpreter/expansion/positional-params.d.ts +59 -0
- package/dist/interpreter/expansion/prompt.d.ts +39 -0
- package/dist/interpreter/expansion/quoting.d.ts +13 -0
- package/dist/interpreter/expansion/tilde.d.ts +12 -0
- package/dist/interpreter/expansion/unquoted-expansion.d.ts +76 -0
- package/dist/interpreter/expansion/variable-attrs.d.ts +19 -0
- package/dist/interpreter/expansion/variable.d.ts +36 -0
- package/dist/interpreter/expansion/word-glob-expansion.d.ts +33 -0
- package/dist/interpreter/expansion/word-split.d.ts +29 -0
- package/dist/interpreter/expansion.d.ts +53 -0
- package/dist/interpreter/functions.d.ts +12 -0
- package/dist/interpreter/helpers/array.d.ts +43 -0
- package/dist/interpreter/helpers/condition.d.ts +22 -0
- package/dist/interpreter/helpers/errors.d.ts +8 -0
- package/dist/interpreter/helpers/file-tests.d.ts +33 -0
- package/dist/interpreter/helpers/ifs.d.ts +104 -0
- package/dist/interpreter/helpers/loop.d.ts +24 -0
- package/dist/interpreter/helpers/nameref.d.ts +65 -0
- package/dist/interpreter/helpers/numeric-compare.d.ts +13 -0
- package/dist/interpreter/helpers/quoting.d.ts +24 -0
- package/dist/interpreter/helpers/readonly.d.ts +45 -0
- package/dist/interpreter/helpers/regex.d.ts +8 -0
- package/dist/interpreter/helpers/result.d.ts +60 -0
- package/dist/interpreter/helpers/shell-constants.d.ts +25 -0
- package/dist/interpreter/helpers/shellopts.d.ts +28 -0
- package/dist/interpreter/helpers/statements.d.ts +20 -0
- package/dist/interpreter/helpers/string-compare.d.ts +24 -0
- package/dist/interpreter/helpers/string-tests.d.ts +13 -0
- package/dist/interpreter/helpers/tilde.d.ts +13 -0
- package/dist/interpreter/helpers/variable-tests.d.ts +9 -0
- package/dist/interpreter/helpers/word-matching.d.ts +26 -0
- package/dist/interpreter/helpers/word-parts.d.ts +22 -0
- package/dist/interpreter/helpers/xtrace.d.ts +18 -0
- package/dist/interpreter/index.d.ts +3 -0
- package/dist/interpreter/interpreter.d.ts +79 -0
- package/dist/interpreter/pipeline-execution.d.ts +16 -0
- package/dist/interpreter/redirections.d.ts +51 -0
- package/dist/interpreter/simple-command-assignments.d.ts +29 -0
- package/dist/interpreter/subshell-group.d.ts +32 -0
- package/dist/interpreter/type-command.d.ts +37 -0
- package/dist/interpreter/types.d.ts +349 -0
- package/dist/limits.d.ts +52 -0
- package/dist/network/allow-list/shared.d.ts +57 -0
- package/dist/network/allow-list.d.ts +59 -0
- package/dist/network/dns-pin.d.ts +43 -0
- package/dist/network/fetch.d.ts +25 -0
- package/dist/network/index.d.ts +7 -0
- package/dist/network/types.d.ts +155 -0
- package/dist/parser/arithmetic-parser.d.ts +23 -0
- package/dist/parser/arithmetic-primaries.d.ts +45 -0
- package/dist/parser/command-parser.d.ts +10 -0
- package/dist/parser/compound-parser.d.ts +28 -0
- package/dist/parser/conditional-parser.d.ts +8 -0
- package/dist/parser/expansion-parser.d.ts +16 -0
- package/dist/parser/lexer.d.ts +197 -0
- package/dist/parser/parser-substitution.d.ts +62 -0
- package/dist/parser/parser.d.ts +135 -0
- package/dist/parser/types.d.ts +25 -0
- package/dist/parser/word-parser.d.ts +33 -0
- package/dist/sandbox/Command.d.ts +35 -0
- package/dist/sandbox/Sandbox.d.ts +90 -0
- package/dist/sandbox/index.d.ts +2 -0
- package/dist/shell-metadata.d.ts +25 -0
- package/dist/timers.d.ts +4 -0
- package/dist/types.d.ts +247 -0
- package/dist/utils/args.d.ts +55 -0
- package/dist/utils/constants.d.ts +15 -0
- package/dist/utils/file-reader.d.ts +74 -0
- package/dist/utils/glob.d.ts +25 -0
- package/dist/vitest-setup.d.ts +1 -0
- package/package.json +127 -0
- package/vendor/cpython-emscripten/python.cjs +2 -0
- package/vendor/cpython-emscripten/python.wasm +0 -0
- package/vendor/cpython-emscripten/python313.zip +0 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
import{createRequire} from"node:module";const require=createRequire(import.meta.url);
|
|
2
|
+
import{a as $l}from"./chunk-4I3HOE5Z.js";import{a as Be,b as er}from"./chunk-LEKBROJD.js";import{d as D}from"./chunk-4WKZNNJK.js";import{a as Qi,b as Zi}from"./chunk-L64BMZUV.js";import{a as Bs}from"./chunk-TN7HHBQW.js";import{c as Hi}from"./chunk-NRSASXYY.js";import{k as Vs}from"./chunk-SAI2SPQQ.js";import{a as js}from"./chunk-FOCWZZDE.js";import{a as Xi,b as zi,c as he}from"./chunk-QAYAQNCG.js";import{a as Ot,c as w,e as Fs}from"./chunk-BZUGFHVS.js";var xr=w((xm,_r)=>{var{hasOwnProperty:nn}=Object.prototype,rn=(s,e={})=>{typeof e=="string"&&(e={section:e}),e.align=e.align===!0,e.newline=e.newline===!0,e.sort=e.sort===!0,e.whitespace=e.whitespace===!0||e.align===!0,e.platform=e.platform||typeof process<"u"&&process.platform,e.bracketedArray=e.bracketedArray!==!1;let t=e.platform==="win32"?`\r
|
|
3
|
+
`:`
|
|
4
|
+
`,n=e.whitespace?" = ":"=",i=[],r=e.sort?Object.keys(s).sort():Object.keys(s),o=0;e.align&&(o=z(r.filter(c=>s[c]===null||Array.isArray(s[c])||typeof s[c]!="object").map(c=>Array.isArray(s[c])?`${c}[]`:c).concat([""]).reduce((c,u)=>z(c).length>=z(u).length?c:u)).length);let a="",l=e.bracketedArray?"[]":"";for(let c of r){let u=s[c];if(u&&Array.isArray(u))for(let f of u)a+=z(`${c}${l}`).padEnd(o," ")+n+z(f)+t;else u&&typeof u=="object"?i.push(c):a+=z(c).padEnd(o," ")+n+z(u)+t}e.section&&a.length&&(a="["+z(e.section)+"]"+(e.newline?t+t:t)+a);for(let c of i){let u=qr(c,".").join("\\."),f=(e.section?e.section+".":"")+u,h=rn(s[c],{...e,section:f});a.length&&h.length&&(a+=t),a+=h}return a};function qr(s,e){var t=0,n=0,i=0,r=[];do if(i=s.indexOf(e,t),i!==-1){if(t=i+e.length,i>0&&s[i-1]==="\\")continue;r.push(s.slice(n,i)),n=i+e.length}while(i!==-1);return r.push(s.slice(n)),r}var Lr=(s,e={})=>{e.bracketedArray=e.bracketedArray!==!1;let t=Object.create(null),n=t,i=null,r=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=s.split(/[\r\n]+/g),a={};for(let c of o){if(!c||c.match(/^\s*[;#]/)||c.match(/^\s*$/))continue;let u=c.match(r);if(!u)continue;if(u[1]!==void 0){if(i=Mt(u[1]),i==="__proto__"){n=Object.create(null);continue}n=t[i]=t[i]||Object.create(null);continue}let f=Mt(u[2]),h;e.bracketedArray?h=f.length>2&&f.slice(-2)==="[]":(a[f]=(a?.[f]||0)+1,h=a[f]>1);let p=h&&f.endsWith("[]")?f.slice(0,-2):f;if(p==="__proto__")continue;let g=u[3]?Mt(u[4]):!0,d=g==="true"||g==="false"||g==="null"?JSON.parse(g):g;h&&(nn.call(n,p)?Array.isArray(n[p])||(n[p]=[n[p]]):n[p]=[]),Array.isArray(n[p])?n[p].push(d):n[p]=d}let l=[];for(let c of Object.keys(t)){if(!nn.call(t,c)||typeof t[c]!="object"||Array.isArray(t[c]))continue;let u=qr(c,".");n=t;let f=u.pop(),h=f.replace(/\\\./g,".");for(let p of u)p!=="__proto__"&&((!nn.call(n,p)||typeof n[p]!="object")&&(n[p]=Object.create(null)),n=n[p]);n===t&&h===f||(n[h]=t[c],l.push(c))}for(let c of l)delete t[c];return t},Pr=s=>s.startsWith('"')&&s.endsWith('"')||s.startsWith("'")&&s.endsWith("'"),z=s=>typeof s!="string"||s.match(/[=\r\n]/)||s.match(/^\[/)||s.length>1&&Pr(s)||s!==s.trim()?JSON.stringify(s):s.split(";").join("\\;").split("#").join("\\#"),Mt=s=>{if(s=(s||"").trim(),Pr(s)){s.charAt(0)==="'"&&(s=s.slice(1,-1));try{s=JSON.parse(s)}catch{}}else{let e=!1,t="";for(let n=0,i=s.length;n<i;n++){let r=s.charAt(n);if(e)"\\;#".indexOf(r)!==-1?t+=r:t+="\\"+r,e=!1;else{if(";#".indexOf(r)!==-1)break;r==="\\"?e=!0:t+=r}}return e&&(t+="\\"),t.trim()}return s};_r.exports={parse:Lr,decode:Lr,stringify:rn,encode:rn,safe:z,unsafe:Mt}});var C=w(x=>{"use strict";var un=Symbol.for("yaml.alias"),Ur=Symbol.for("yaml.document"),jt=Symbol.for("yaml.map"),Kr=Symbol.for("yaml.pair"),fn=Symbol.for("yaml.scalar"),Ut=Symbol.for("yaml.seq"),Q=Symbol.for("yaml.node.type"),zc=s=>!!s&&typeof s=="object"&&s[Q]===un,Qc=s=>!!s&&typeof s=="object"&&s[Q]===Ur,Zc=s=>!!s&&typeof s=="object"&&s[Q]===jt,eu=s=>!!s&&typeof s=="object"&&s[Q]===Kr,Yr=s=>!!s&&typeof s=="object"&&s[Q]===fn,tu=s=>!!s&&typeof s=="object"&&s[Q]===Ut;function Dr(s){if(s&&typeof s=="object")switch(s[Q]){case jt:case Ut:return!0}return!1}function su(s){if(s&&typeof s=="object")switch(s[Q]){case un:case jt:case fn:case Ut:return!0}return!1}var nu=s=>(Yr(s)||Dr(s))&&!!s.anchor;x.ALIAS=un;x.DOC=Ur;x.MAP=jt;x.NODE_TYPE=Q;x.PAIR=Kr;x.SCALAR=fn;x.SEQ=Ut;x.hasAnchor=nu;x.isAlias=zc;x.isCollection=Dr;x.isDocument=Qc;x.isMap=Zc;x.isNode=su;x.isPair=eu;x.isScalar=Yr;x.isSeq=tu});var He=w(hn=>{"use strict";var _=C(),V=Symbol("break visit"),Jr=Symbol("skip children"),H=Symbol("remove node");function Kt(s,e){let t=Gr(e);_.isDocument(s)?ke(null,s.contents,t,Object.freeze([s]))===H&&(s.contents=null):ke(null,s,t,Object.freeze([]))}Kt.BREAK=V;Kt.SKIP=Jr;Kt.REMOVE=H;function ke(s,e,t,n){let i=Wr(s,e,t,n);if(_.isNode(i)||_.isPair(i))return Hr(s,n,i),ke(s,i,t,n);if(typeof i!="symbol"){if(_.isCollection(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=ke(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===V)return V;o===H&&(e.items.splice(r,1),r-=1)}}}else if(_.isPair(e)){n=Object.freeze(n.concat(e));let r=ke("key",e.key,t,n);if(r===V)return V;r===H&&(e.key=null);let o=ke("value",e.value,t,n);if(o===V)return V;o===H&&(e.value=null)}}return i}async function Yt(s,e){let t=Gr(e);_.isDocument(s)?await Ie(null,s.contents,t,Object.freeze([s]))===H&&(s.contents=null):await Ie(null,s,t,Object.freeze([]))}Yt.BREAK=V;Yt.SKIP=Jr;Yt.REMOVE=H;async function Ie(s,e,t,n){let i=await Wr(s,e,t,n);if(_.isNode(i)||_.isPair(i))return Hr(s,n,i),Ie(s,i,t,n);if(typeof i!="symbol"){if(_.isCollection(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=await Ie(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===V)return V;o===H&&(e.items.splice(r,1),r-=1)}}}else if(_.isPair(e)){n=Object.freeze(n.concat(e));let r=await Ie("key",e.key,t,n);if(r===V)return V;r===H&&(e.key=null);let o=await Ie("value",e.value,t,n);if(o===V)return V;o===H&&(e.value=null)}}return i}function Gr(s){return typeof s=="object"&&(s.Collection||s.Node||s.Value)?Object.assign({Alias:s.Node,Map:s.Node,Scalar:s.Node,Seq:s.Node},s.Value&&{Map:s.Value,Scalar:s.Value,Seq:s.Value},s.Collection&&{Map:s.Collection,Seq:s.Collection},s):s}function Wr(s,e,t,n){if(typeof t=="function")return t(s,e,n);if(_.isMap(e))return t.Map?.(s,e,n);if(_.isSeq(e))return t.Seq?.(s,e,n);if(_.isPair(e))return t.Pair?.(s,e,n);if(_.isScalar(e))return t.Scalar?.(s,e,n);if(_.isAlias(e))return t.Alias?.(s,e,n)}function Hr(s,e,t){let n=e[e.length-1];if(_.isCollection(n))n.items[s]=t;else if(_.isPair(n))s==="key"?n.key=t:n.value=t;else if(_.isDocument(n))n.contents=t;else{let i=_.isAlias(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}hn.visit=Kt;hn.visitAsync=Yt});var dn=w(zr=>{"use strict";var Xr=C(),iu=He(),ru={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},ou=s=>s.replace(/[!,[\]{}]/g,e=>ru[e]),Xe=class s{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},s.defaultYaml,e),this.tags=Object.assign({},s.defaultTags,t)}clone(){let e=new s(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new s(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:s.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},s.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:s.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},s.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{let o=/^\d+\.\d+$/.test(r);return t(6,`Unsupported YAML version ${r}`,o),!1}}default:return t(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}let[,n,i]=e.match(/^(.*!)([^!]*)$/s);i||t(`The ${e} tag has no suffix`);let r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return t(String(o)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+ou(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags),i;if(e&&n.length>0&&Xr.isNode(e.contents)){let r={};iu.visit(e.contents,(o,a)=>{Xr.isNode(a)&&a.tag&&(r[a.tag]=!0)}),i=Object.keys(r)}else i=[];for(let[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!e||i.some(a=>a.startsWith(o)))&&t.push(`%TAG ${r} ${o}`);return t.join(`
|
|
5
|
+
`)}};Xe.defaultYaml={explicit:!1,version:"1.2"};Xe.defaultTags={"!!":"tag:yaml.org,2002:"};zr.Directives=Xe});var Dt=w(ze=>{"use strict";var Qr=C(),au=He();function lu(s){if(/[\x00-\x19\s,[\]{}]/.test(s)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(s)}`;throw new Error(t)}return!0}function Zr(s){let e=new Set;return au.visit(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function eo(s,e){for(let t=1;;++t){let n=`${s}${t}`;if(!e.has(n))return n}}function cu(s,e){let t=[],n=new Map,i=null;return{onAnchor:r=>{t.push(r),i??(i=Zr(s));let o=eo(e,i);return i.add(o),o},setAnchors:()=>{for(let r of t){let o=n.get(r);if(typeof o=="object"&&o.anchor&&(Qr.isScalar(o.node)||Qr.isCollection(o.node)))o.node.anchor=o.anchor;else{let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=r,a}}},sourceObjects:n}}ze.anchorIsValid=lu;ze.anchorNames=Zr;ze.createNodeAnchors=cu;ze.findNewAnchor=eo});var pn=w(to=>{"use strict";function Qe(s,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){let o=n[i],a=Qe(s,n,String(i),o);a===void 0?delete n[i]:a!==o&&(n[i]=a)}else if(n instanceof Map)for(let i of Array.from(n.keys())){let r=n.get(i),o=Qe(s,n,i,r);o===void 0?n.delete(i):o!==r&&n.set(i,o)}else if(n instanceof Set)for(let i of Array.from(n)){let r=Qe(s,n,i,i);r===void 0?n.delete(i):r!==i&&(n.delete(i),n.add(r))}else for(let[i,r]of Object.entries(n)){let o=Qe(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}to.applyReviver=Qe});var se=w(no=>{"use strict";var uu=C();function so(s,e,t){if(Array.isArray(s))return s.map((n,i)=>so(n,String(i),t));if(s&&typeof s.toJSON=="function"){if(!t||!uu.hasAnchor(s))return s.toJSON(e,t);let n={aliasCount:0,count:1,res:void 0};t.anchors.set(s,n),t.onCreate=r=>{n.res=r,delete t.onCreate};let i=s.toJSON(e,t);return t.onCreate&&t.onCreate(i),i}return typeof s=="bigint"&&!t?.keep?Number(s):s}no.toJS=so});var Jt=w(ro=>{"use strict";var fu=pn(),io=C(),hu=se(),mn=class{constructor(e){Object.defineProperty(this,io.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!io.isDocument(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=hu.toJS(this,"",o);if(typeof i=="function")for(let{count:l,res:c}of o.anchors.values())i(c,l);return typeof r=="function"?fu.applyReviver(r,{"":a},"",a):a}};ro.NodeBase=mn});var Ze=w(oo=>{"use strict";var du=Dt(),pu=He(),Le=C(),mu=Jt(),gu=se(),gn=class extends mu.NodeBase{constructor(e){super(Le.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,t){let n;t?.aliasResolveCache?n=t.aliasResolveCache:(n=[],pu.visit(e,{Node:(r,o)=>{(Le.isAlias(o)||Le.hasAnchor(o))&&n.push(o)}}),t&&(t.aliasResolveCache=n));let i;for(let r of n){if(r===this)break;r.anchor===this.source&&(i=r)}return i}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:i,maxAliasCount:r}=t,o=this.resolve(i,t);if(!o){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=n.get(o);if(a||(gu.toJS(o,null,t),a=n.get(o)),a?.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Gt(i,o,n)),a.count*a.aliasCount>r)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,n){let i=`*${this.source}`;if(e){if(du.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(e.implicitKey)return`${i} `}return i}};function Gt(s,e,t){if(Le.isAlias(e)){let n=e.resolve(s),i=t&&n&&t.get(n);return i?i.count*i.aliasCount:0}else if(Le.isCollection(e)){let n=0;for(let i of e.items){let r=Gt(s,i,t);r>n&&(n=r)}return n}else if(Le.isPair(e)){let n=Gt(s,e.key,t),i=Gt(s,e.value,t);return Math.max(n,i)}return 1}oo.Alias=gn});var L=w(yn=>{"use strict";var yu=C(),bu=Jt(),wu=se(),Su=s=>!s||typeof s!="function"&&typeof s!="object",ne=class extends bu.NodeBase{constructor(e){super(yu.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:wu.toJS(this.value,e,t)}toString(){return String(this.value)}};ne.BLOCK_FOLDED="BLOCK_FOLDED";ne.BLOCK_LITERAL="BLOCK_LITERAL";ne.PLAIN="PLAIN";ne.QUOTE_DOUBLE="QUOTE_DOUBLE";ne.QUOTE_SINGLE="QUOTE_SINGLE";yn.Scalar=ne;yn.isScalarValue=Su});var et=w(lo=>{"use strict";var Nu=Ze(),me=C(),ao=L(),Au="tag:yaml.org,2002:";function Eu(s,e,t){if(e){let n=t.filter(r=>r.tag===e),i=n.find(r=>!r.format)??n[0];if(!i)throw new Error(`Tag ${e} not found`);return i}return t.find(n=>n.identify?.(s)&&!n.format)}function vu(s,e,t){if(me.isDocument(s)&&(s=s.contents),me.isNode(s))return s;if(me.isPair(s)){let f=t.schema[me.MAP].createNode?.(t.schema,null,t);return f.items.push(s),f}(s instanceof String||s instanceof Number||s instanceof Boolean||typeof BigInt<"u"&&s instanceof BigInt)&&(s=s.valueOf());let{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:a}=t,l;if(n&&s&&typeof s=="object"){if(l=a.get(s),l)return l.anchor??(l.anchor=i(s)),new Nu.Alias(l.anchor);l={anchor:null,node:null},a.set(s,l)}e?.startsWith("!!")&&(e=Au+e.slice(2));let c=Eu(s,e,o.tags);if(!c){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){let f=new ao.Scalar(s);return l&&(l.node=f),f}c=s instanceof Map?o[me.MAP]:Symbol.iterator in Object(s)?o[me.SEQ]:o[me.MAP]}r&&(r(c),delete t.onTagObj);let u=c?.createNode?c.createNode(t.schema,s,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,s,t):new ao.Scalar(s);return e?u.tag=e:c.default||(u.tag=c.tag),l&&(l.node=u),u}lo.createNode=vu});var Ht=w(Wt=>{"use strict";var Tu=et(),X=C(),Cu=Jt();function bn(s,e,t){let n=t;for(let i=e.length-1;i>=0;--i){let r=e[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){let o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return Tu.createNode(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:s,sourceObjects:new Map})}var co=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done,wn=class extends Cu.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>X.isNode(n)||X.isPair(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(co(e))this.add(t);else{let[n,...i]=e,r=this.get(n,!0);if(X.isCollection(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(n,bn(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(e){let[t,...n]=e;if(n.length===0)return this.delete(t);let i=this.get(t,!0);if(X.isCollection(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...i]=e,r=this.get(n,!0);return i.length===0?!t&&X.isScalar(r)?r.value:r:X.isCollection(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!X.isPair(t))return!1;let n=t.value;return n==null||e&&X.isScalar(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(n.length===0)return this.has(t);let i=this.get(t,!0);return X.isCollection(i)?i.hasIn(n):!1}setIn(e,t){let[n,...i]=e;if(i.length===0)this.set(n,t);else{let r=this.get(n,!0);if(X.isCollection(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(n,bn(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}};Wt.Collection=wn;Wt.collectionFromPath=bn;Wt.isEmptyPath=co});var tt=w(Xt=>{"use strict";var Ou=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function Sn(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}var ku=(s,e,t)=>s.endsWith(`
|
|
6
|
+
`)?Sn(t,e):t.includes(`
|
|
7
|
+
`)?`
|
|
8
|
+
`+Sn(t,e):(s.endsWith(" ")?"":" ")+t;Xt.indentComment=Sn;Xt.lineComment=ku;Xt.stringifyComment=Ou});var fo=w(st=>{"use strict";var Iu="flow",Nn="block",zt="quoted";function Lu(s,e,t="flow",{indentAtStart:n,lineWidth:i=80,minContentWidth:r=20,onFold:o,onOverflow:a}={}){if(!i||i<0)return s;i<r&&(r=0);let l=Math.max(1+r,1+i-e.length);if(s.length<=l)return s;let c=[],u={},f=i-e.length;typeof n=="number"&&(n>i-Math.max(2,r)?c.push(0):f=i-n);let h,p,g=!1,d=-1,m=-1,b=-1;t===Nn&&(d=uo(s,d,e.length),d!==-1&&(f=d+l));for(let A;A=s[d+=1];){if(t===zt&&A==="\\"){switch(m=d,s[d+1]){case"x":d+=3;break;case"u":d+=5;break;case"U":d+=9;break;default:d+=1}b=d}if(A===`
|
|
9
|
+
`)t===Nn&&(d=uo(s,d,e.length)),f=d+e.length+l,h=void 0;else{if(A===" "&&p&&p!==" "&&p!==`
|
|
10
|
+
`&&p!==" "){let v=s[d+1];v&&v!==" "&&v!==`
|
|
11
|
+
`&&v!==" "&&(h=d)}if(d>=f)if(h)c.push(h),f=h+l,h=void 0;else if(t===zt){for(;p===" "||p===" ";)p=A,A=s[d+=1],g=!0;let v=d>b+1?d-2:m-1;if(u[v])return s;c.push(v),u[v]=!0,f=v+l,h=void 0}else g=!0}p=A}if(g&&a&&a(),c.length===0)return s;o&&o();let y=s.slice(0,c[0]);for(let A=0;A<c.length;++A){let v=c[A],E=c[A+1]||s.length;v===0?y=`
|
|
12
|
+
${e}${s.slice(0,E)}`:(t===zt&&u[v]&&(y+=`${s[v]}\\`),y+=`
|
|
13
|
+
${e}${s.slice(v+1,E)}`)}return y}function uo(s,e,t){let n=e,i=e+1,r=s[i];for(;r===" "||r===" ";)if(e<i+t)r=s[++e];else{do r=s[++e];while(r&&r!==`
|
|
14
|
+
`);n=e,i=e+1,r=s[i]}return n}st.FOLD_BLOCK=Nn;st.FOLD_FLOW=Iu;st.FOLD_QUOTED=zt;st.foldFlowLines=Lu});var it=w(ho=>{"use strict";var J=L(),ie=fo(),Zt=(s,e)=>({indentAtStart:e?s.indent.length:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),es=s=>/^(%|---|\.\.\.)/m.test(s);function qu(s,e,t){if(!e||e<0)return!1;let n=e-t,i=s.length;if(i<=n)return!1;for(let r=0,o=0;r<i;++r)if(s[r]===`
|
|
15
|
+
`){if(r-o>n)return!0;if(o=r+1,i-o<=n)return!1}return!0}function nt(s,e){let t=JSON.stringify(s);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:n}=e,i=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(es(s)?" ":""),o="",a=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(o+=t.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{o+=t.slice(a,l);let u=t.substr(l+2,4);switch(u){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=t.substr(l,6)}l+=5,a=l+1}break;case"n":if(n||t[l+2]==='"'||t.length<i)l+=1;else{for(o+=t.slice(a,l)+`
|
|
16
|
+
|
|
17
|
+
`;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)o+=`
|
|
18
|
+
`,l+=2;o+=r,t[l+2]===" "&&(o+="\\"),l+=1,a=l+1}break;default:l+=1}return o=a?o+t.slice(a):t,n?o:ie.foldFlowLines(o,r,ie.FOLD_QUOTED,Zt(e,!1))}function An(s,e){if(e.options.singleQuote===!1||e.implicitKey&&s.includes(`
|
|
19
|
+
`)||/[ \t]\n|\n[ \t]/.test(s))return nt(s,e);let t=e.indent||(es(s)?" ":""),n="'"+s.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
20
|
+
${t}`)+"'";return e.implicitKey?n:ie.foldFlowLines(n,t,ie.FOLD_FLOW,Zt(e,!1))}function qe(s,e){let{singleQuote:t}=e.options,n;if(t===!1)n=nt;else{let i=s.includes('"'),r=s.includes("'");i&&!r?n=An:r&&!i?n=nt:n=t?An:nt}return n(s,e)}var En;try{En=new RegExp(`(^|(?<!
|
|
21
|
+
))
|
|
22
|
+
+(?!
|
|
23
|
+
|$)`,"g")}catch{En=/\n+(?!\n|$)/g}function Qt({comment:s,type:e,value:t},n,i,r){let{blockQuote:o,commentString:a,lineWidth:l}=n.options;if(!o||/\n[\t ]+$/.test(t))return qe(t,n);let c=n.indent||(n.forceBlockIndent||es(t)?" ":""),u=o==="literal"?!0:o==="folded"||e===J.Scalar.BLOCK_FOLDED?!1:e===J.Scalar.BLOCK_LITERAL?!0:!qu(t,l,c.length);if(!t)return u?`|
|
|
24
|
+
`:`>
|
|
25
|
+
`;let f,h;for(h=t.length;h>0;--h){let E=t[h-1];if(E!==`
|
|
26
|
+
`&&E!==" "&&E!==" ")break}let p=t.substring(h),g=p.indexOf(`
|
|
27
|
+
`);g===-1?f="-":t===p||g!==p.length-1?(f="+",r&&r()):f="",p&&(t=t.slice(0,-p.length),p[p.length-1]===`
|
|
28
|
+
`&&(p=p.slice(0,-1)),p=p.replace(En,`$&${c}`));let d=!1,m,b=-1;for(m=0;m<t.length;++m){let E=t[m];if(E===" ")d=!0;else if(E===`
|
|
29
|
+
`)b=m;else break}let y=t.substring(0,b<m?b+1:m);y&&(t=t.substring(y.length),y=y.replace(/\n+/g,`$&${c}`));let v=(d?c?"2":"1":"")+f;if(s&&(v+=" "+a(s.replace(/ ?[\r\n]+/g," ")),i&&i()),!u){let E=t.replace(/\n+/g,`
|
|
30
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`),N=!1,O=Zt(n,!0);o!=="folded"&&e!==J.Scalar.BLOCK_FOLDED&&(O.onOverflow=()=>{N=!0});let S=ie.foldFlowLines(`${y}${E}${p}`,c,ie.FOLD_BLOCK,O);if(!N)return`>${v}
|
|
31
|
+
${c}${S}`}return t=t.replace(/\n+/g,`$&${c}`),`|${v}
|
|
32
|
+
${c}${y}${t}${p}`}function Pu(s,e,t,n){let{type:i,value:r}=s,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=e;if(a&&r.includes(`
|
|
33
|
+
`)||u&&/[[\]{},]/.test(r))return qe(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||u||!r.includes(`
|
|
34
|
+
`)?qe(r,e):Qt(s,e,t,n);if(!a&&!u&&i!==J.Scalar.PLAIN&&r.includes(`
|
|
35
|
+
`))return Qt(s,e,t,n);if(es(r)){if(l==="")return e.forceBlockIndent=!0,Qt(s,e,t,n);if(a&&l===c)return qe(r,e)}let f=r.replace(/\n+/g,`$&
|
|
36
|
+
${l}`);if(o){let h=d=>d.default&&d.tag!=="tag:yaml.org,2002:str"&&d.test?.test(f),{compat:p,tags:g}=e.doc.schema;if(g.some(h)||p?.some(h))return qe(r,e)}return a?f:ie.foldFlowLines(f,l,ie.FOLD_FLOW,Zt(e,!1))}function _u(s,e,t,n){let{implicitKey:i,inFlow:r}=e,o=typeof s.value=="string"?s:Object.assign({},s,{value:String(s.value)}),{type:a}=s;a!==J.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=J.Scalar.QUOTE_DOUBLE);let l=u=>{switch(u){case J.Scalar.BLOCK_FOLDED:case J.Scalar.BLOCK_LITERAL:return i||r?qe(o.value,e):Qt(o,e,t,n);case J.Scalar.QUOTE_DOUBLE:return nt(o.value,e);case J.Scalar.QUOTE_SINGLE:return An(o.value,e);case J.Scalar.PLAIN:return Pu(o,e,t,n);default:return null}},c=l(a);if(c===null){let{defaultKeyType:u,defaultStringType:f}=e.options,h=i&&u||f;if(c=l(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}ho.stringifyString=_u});var rt=w(vn=>{"use strict";var xu=Dt(),re=C(),Mu=tt(),$u=it();function Ru(s,e){let t=Object.assign({blockQuote:!0,commentString:Mu.stringifyComment,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},s.schema.toStringOptions,e),n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:s,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function Fu(s,e){if(e.tag){let i=s.filter(r=>r.tag===e.tag);if(i.length>0)return i.find(r=>r.format===e.format)??i[0]}let t,n;if(re.isScalar(e)){n=e.value;let i=s.filter(r=>r.identify?.(n));if(i.length>1){let r=i.filter(o=>o.test);r.length>0&&(i=r)}t=i.find(r=>r.format===e.format)??i.find(r=>!r.format)}else n=e,t=s.find(i=>i.nodeClass&&n instanceof i.nodeClass);if(!t){let i=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${i} value`)}return t}function Bu(s,e,{anchors:t,doc:n}){if(!n.directives)return"";let i=[],r=(re.isScalar(s)||re.isCollection(s))&&s.anchor;r&&xu.anchorIsValid(r)&&(t.add(r),i.push(`&${r}`));let o=s.tag??(e.default?null:e.tag);return o&&i.push(n.directives.tagString(o)),i.join(" ")}function Vu(s,e,t,n){if(re.isPair(s))return s.toString(e,t,n);if(re.isAlias(s)){if(e.doc.directives)return s.toString(e);if(e.resolvedAliases?.has(s))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(s):e.resolvedAliases=new Set([s]),s=s.resolve(e.doc)}let i,r=re.isNode(s)?s:e.doc.createNode(s,{onTagObj:l=>i=l});i??(i=Fu(e.doc.schema.tags,r));let o=Bu(r,i,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof i.stringify=="function"?i.stringify(r,e,t,n):re.isScalar(r)?$u.stringifyString(r,e,t,n):r.toString(e,t,n);return o?re.isScalar(r)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
|
|
37
|
+
${e.indent}${a}`:a}vn.createStringifyContext=Ru;vn.stringify=Vu});var yo=w(go=>{"use strict";var Z=C(),po=L(),mo=rt(),ot=tt();function ju({key:s,value:e},t,n,i){let{allNullValues:r,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:f}}=t,h=Z.isNode(s)&&s.comment||null;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(Z.isCollection(s)||!Z.isNode(s)&&typeof s=="object"){let O="With simple keys, collection cannot be used as a key value";throw new Error(O)}}let p=!f&&(!s||h&&e==null&&!t.inFlow||Z.isCollection(s)||(Z.isScalar(s)?s.type===po.Scalar.BLOCK_FOLDED||s.type===po.Scalar.BLOCK_LITERAL:typeof s=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(f||!r),indent:a+l});let g=!1,d=!1,m=mo.stringify(s,t,()=>g=!0,()=>d=!0);if(!p&&!t.inFlow&&m.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(r||e==null)return g&&n&&n(),m===""?"?":p?`? ${m}`:m}else if(r&&!f||e==null&&p)return m=`? ${m}`,h&&!g?m+=ot.lineComment(m,t.indent,c(h)):d&&i&&i(),m;g&&(h=null),p?(h&&(m+=ot.lineComment(m,t.indent,c(h))),m=`? ${m}
|
|
38
|
+
${a}:`):(m=`${m}:`,h&&(m+=ot.lineComment(m,t.indent,c(h))));let b,y,A;Z.isNode(e)?(b=!!e.spaceBefore,y=e.commentBefore,A=e.comment):(b=!1,y=null,A=null,e&&typeof e=="object"&&(e=o.createNode(e))),t.implicitKey=!1,!p&&!h&&Z.isScalar(e)&&(t.indentAtStart=m.length+1),d=!1,!u&&l.length>=2&&!t.inFlow&&!p&&Z.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let v=!1,E=mo.stringify(e,t,()=>v=!0,()=>d=!0),N=" ";if(h||b||y){if(N=b?`
|
|
39
|
+
`:"",y){let O=c(y);N+=`
|
|
40
|
+
${ot.indentComment(O,t.indent)}`}E===""&&!t.inFlow?N===`
|
|
41
|
+
`&&A&&(N=`
|
|
42
|
+
|
|
43
|
+
`):N+=`
|
|
44
|
+
${t.indent}`}else if(!p&&Z.isCollection(e)){let O=E[0],S=E.indexOf(`
|
|
45
|
+
`),q=S!==-1,ee=t.inFlow??e.flow??e.items.length===0;if(q||!ee){let Ne=!1;if(q&&(O==="&"||O==="!")){let P=E.indexOf(" ");O==="&"&&P!==-1&&P<S&&E[P+1]==="!"&&(P=E.indexOf(" ",P+1)),(P===-1||S<P)&&(Ne=!0)}Ne||(N=`
|
|
46
|
+
${t.indent}`)}}else(E===""||E[0]===`
|
|
47
|
+
`)&&(N="");return m+=N+E,t.inFlow?v&&n&&n():A&&!v?m+=ot.lineComment(m,t.indent,c(A)):d&&i&&i(),m}go.stringifyPair=ju});var Cn=w(Tn=>{"use strict";var bo=Ot("process");function Uu(s,...e){s==="debug"&&console.log(...e)}function Ku(s,e){(s==="debug"||s==="warn")&&(typeof bo.emitWarning=="function"?bo.emitWarning(e):console.warn(e))}Tn.debug=Uu;Tn.warn=Ku});var is=w(ns=>{"use strict";var at=C(),wo=L(),ts="<<",ss={identify:s=>s===ts||typeof s=="symbol"&&s.description===ts,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new wo.Scalar(Symbol(ts)),{addToJSMap:So}),stringify:()=>ts},Yu=(s,e)=>(ss.identify(e)||at.isScalar(e)&&(!e.type||e.type===wo.Scalar.PLAIN)&&ss.identify(e.value))&&s?.doc.schema.tags.some(t=>t.tag===ss.tag&&t.default);function So(s,e,t){if(t=s&&at.isAlias(t)?t.resolve(s.doc):t,at.isSeq(t))for(let n of t.items)On(s,e,n);else if(Array.isArray(t))for(let n of t)On(s,e,n);else On(s,e,t)}function On(s,e,t){let n=s&&at.isAlias(t)?t.resolve(s.doc):t;if(!at.isMap(n))throw new Error("Merge sources must be maps or map aliases");let i=n.toJSON(null,s,Map);for(let[r,o]of i)e instanceof Map?e.has(r)||e.set(r,o):e instanceof Set?e.add(r):Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}ns.addMergeToJSMap=So;ns.isMergeKey=Yu;ns.merge=ss});var In=w(Eo=>{"use strict";var Du=Cn(),No=is(),Ju=rt(),Ao=C(),kn=se();function Gu(s,e,{key:t,value:n}){if(Ao.isNode(t)&&t.addToJSMap)t.addToJSMap(s,e,n);else if(No.isMergeKey(s,t))No.addMergeToJSMap(s,e,n);else{let i=kn.toJS(t,"",s);if(e instanceof Map)e.set(i,kn.toJS(n,i,s));else if(e instanceof Set)e.add(i);else{let r=Wu(t,i,s),o=kn.toJS(n,r,s);r in e?Object.defineProperty(e,r,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[r]=o}}return e}function Wu(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(Ao.isNode(s)&&t?.doc){let n=Ju.createStringifyContext(t.doc,{});n.anchors=new Set;for(let r of t.anchors.keys())n.anchors.add(r.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=s.toString(n);if(!t.mapKeyWarned){let r=JSON.stringify(i);r.length>40&&(r=r.substring(0,36)+'..."'),Du.warn(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${r}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return i}return JSON.stringify(e)}Eo.addPairToJSMap=Gu});var oe=w(Ln=>{"use strict";var vo=et(),Hu=yo(),Xu=In(),rs=C();function zu(s,e,t){let n=vo.createNode(s,void 0,t),i=vo.createNode(e,void 0,t);return new os(n,i)}var os=class s{constructor(e,t=null){Object.defineProperty(this,rs.NODE_TYPE,{value:rs.PAIR}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return rs.isNode(t)&&(t=t.clone(e)),rs.isNode(n)&&(n=n.clone(e)),new s(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return Xu.addPairToJSMap(t,n,this)}toString(e,t,n){return e?.doc?Hu.stringifyPair(this,e,t,n):JSON.stringify(this)}};Ln.Pair=os;Ln.createPair=zu});var qn=w(Co=>{"use strict";var ge=C(),To=rt(),as=tt();function Qu(s,e,t){return(e.inFlow??s.flow?ef:Zu)(s,e,t)}function Zu({comment:s,items:e},t,{blockItemPrefix:n,flowChars:i,itemIndent:r,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=t,u=Object.assign({},t,{indent:r,type:null}),f=!1,h=[];for(let g=0;g<e.length;++g){let d=e[g],m=null;if(ge.isNode(d))!f&&d.spaceBefore&&h.push(""),ls(t,h,d.commentBefore,f),d.comment&&(m=d.comment);else if(ge.isPair(d)){let y=ge.isNode(d.key)?d.key:null;y&&(!f&&y.spaceBefore&&h.push(""),ls(t,h,y.commentBefore,f))}f=!1;let b=To.stringify(d,u,()=>m=null,()=>f=!0);m&&(b+=as.lineComment(b,r,c(m))),f&&m&&(f=!1),h.push(n+b)}let p;if(h.length===0)p=i.start+i.end;else{p=h[0];for(let g=1;g<h.length;++g){let d=h[g];p+=d?`
|
|
48
|
+
${l}${d}`:`
|
|
49
|
+
`}}return s?(p+=`
|
|
50
|
+
`+as.indentComment(c(s),l),a&&a()):f&&o&&o(),p}function ef({items:s},e,{flowChars:t,itemIndent:n}){let{indent:i,indentStep:r,flowCollectionPadding:o,options:{commentString:a}}=e;n+=r;let l=Object.assign({},e,{indent:n,inFlow:!0,type:null}),c=!1,u=0,f=[];for(let g=0;g<s.length;++g){let d=s[g],m=null;if(ge.isNode(d))d.spaceBefore&&f.push(""),ls(e,f,d.commentBefore,!1),d.comment&&(m=d.comment);else if(ge.isPair(d)){let y=ge.isNode(d.key)?d.key:null;y&&(y.spaceBefore&&f.push(""),ls(e,f,y.commentBefore,!1),y.comment&&(c=!0));let A=ge.isNode(d.value)?d.value:null;A?(A.comment&&(m=A.comment),A.commentBefore&&(c=!0)):d.value==null&&y?.comment&&(m=y.comment)}m&&(c=!0);let b=To.stringify(d,l,()=>m=null);c||(c=f.length>u||b.includes(`
|
|
51
|
+
`)),g<s.length-1?b+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(c||(c=f.reduce((y,A)=>y+A.length+2,2)+(b.length+2)>e.options.lineWidth)),c&&(b+=",")),m&&(b+=as.lineComment(b,n,a(m))),f.push(b),u=f.length}let{start:h,end:p}=t;if(f.length===0)return h+p;if(!c){let g=f.reduce((d,m)=>d+m.length+2,2);c=e.options.lineWidth>0&&g>e.options.lineWidth}if(c){let g=h;for(let d of f)g+=d?`
|
|
52
|
+
${r}${i}${d}`:`
|
|
53
|
+
`;return`${g}
|
|
54
|
+
${i}${p}`}else return`${h}${o}${f.join(" ")}${o}${p}`}function ls({indent:s,options:{commentString:e}},t,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){let r=as.indentComment(e(n),s);t.push(r.trimStart())}}Co.stringifyCollection=Qu});var le=w(_n=>{"use strict";var tf=qn(),sf=In(),nf=Ht(),ae=C(),cs=oe(),rf=L();function lt(s,e){let t=ae.isScalar(e)?e.value:e;for(let n of s)if(ae.isPair(n)&&(n.key===e||n.key===t||ae.isScalar(n.key)&&n.key.value===t))return n}var Pn=class extends nf.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(ae.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:i,replacer:r}=n,o=new this(e),a=(l,c)=>{if(typeof r=="function")c=r.call(t,l,c);else if(Array.isArray(r)&&!r.includes(l))return;(c!==void 0||i)&&o.items.push(cs.createPair(l,c,n))};if(t instanceof Map)for(let[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(let l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;ae.isPair(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new cs.Pair(e,e?.value):n=new cs.Pair(e.key,e.value);let i=lt(this.items,n.key),r=this.schema?.sortMapEntries;if(i){if(!t)throw new Error(`Key ${n.key} already set`);ae.isScalar(i.value)&&rf.isScalarValue(n.value)?i.value.value=n.value:i.value=n.value}else if(r){let o=this.items.findIndex(a=>r(n,a)<0);o===-1?this.items.push(n):this.items.splice(o,0,n)}else this.items.push(n)}delete(e){let t=lt(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let i=lt(this.items,e)?.value;return(!t&&ae.isScalar(i)?i.value:i)??void 0}has(e){return!!lt(this.items,e)}set(e,t){this.add(new cs.Pair(e,t),!0)}toJSON(e,t,n){let i=n?new n:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let r of this.items)sf.addPairToJSMap(t,i,r);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(let i of this.items)if(!ae.isPair(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),tf.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}};_n.YAMLMap=Pn;_n.findPair=lt});var Pe=w(ko=>{"use strict";var of=C(),Oo=le(),af={collection:"map",default:!0,nodeClass:Oo.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(s,e){return of.isMap(s)||e("Expected a mapping for this tag"),s},createNode:(s,e,t)=>Oo.YAMLMap.from(s,e,t)};ko.map=af});var ce=w(Io=>{"use strict";var lf=et(),cf=qn(),uf=Ht(),fs=C(),ff=L(),hf=se(),xn=class extends uf.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(fs.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=us(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let n=us(e);if(typeof n!="number")return;let i=this.items[n];return!t&&fs.isScalar(i)?i.value:i}has(e){let t=us(e);return typeof t=="number"&&t<this.items.length}set(e,t){let n=us(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);let i=this.items[n];fs.isScalar(i)&&ff.isScalarValue(t)?i.value=t:this.items[n]=t}toJSON(e,t){let n=[];t?.onCreate&&t.onCreate(n);let i=0;for(let r of this.items)n.push(hf.toJS(r,String(i++),t));return n}toString(e,t,n){return e?cf.stringifyCollection(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){let{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let a of t){if(typeof i=="function"){let l=t instanceof Set?a:String(o++);a=i.call(t,l,a)}r.items.push(lf.createNode(a,void 0,n))}}return r}};function us(s){let e=fs.isScalar(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}Io.YAMLSeq=xn});var _e=w(qo=>{"use strict";var df=C(),Lo=ce(),pf={collection:"seq",default:!0,nodeClass:Lo.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(s,e){return df.isSeq(s)||e("Expected a sequence for this tag"),s},createNode:(s,e,t)=>Lo.YAMLSeq.from(s,e,t)};qo.seq=pf});var ct=w(Po=>{"use strict";var mf=it(),gf={identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify(s,e,t,n){return e=Object.assign({actualString:!0},e),mf.stringifyString(s,e,t,n)}};Po.string=gf});var hs=w(Mo=>{"use strict";var _o=L(),xo={identify:s=>s==null,createNode:()=>new _o.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new _o.Scalar(null),stringify:({source:s},e)=>typeof s=="string"&&xo.test.test(s)?s:e.options.nullStr};Mo.nullTag=xo});var Mn=w(Ro=>{"use strict";var yf=L(),$o={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new yf.Scalar(s[0]==="t"||s[0]==="T"),stringify({source:s,value:e},t){if(s&&$o.test.test(s)){let n=s[0]==="t"||s[0]==="T";if(e===n)return s}return e?t.options.trueStr:t.options.falseStr}};Ro.boolTag=$o});var xe=w(Fo=>{"use strict";function bf({format:s,minFractionDigits:e,tag:t,value:n}){if(typeof n=="bigint")return String(n);let i=typeof n=="number"?n:Number(n);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let r=Object.is(n,-0)?"-0":JSON.stringify(n);if(!s&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(r)){let o=r.indexOf(".");o<0&&(o=r.length,r+=".");let a=e-(r.length-o-1);for(;a-- >0;)r+="0"}return r}Fo.stringifyNumber=bf});var Rn=w(ds=>{"use strict";var wf=L(),$n=xe(),Sf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:$n.stringifyNumber},Nf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():$n.stringifyNumber(s)}},Af={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(s){let e=new wf.Scalar(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:$n.stringifyNumber};ds.float=Af;ds.floatExp=Nf;ds.floatNaN=Sf});var Bn=w(ms=>{"use strict";var Bo=xe(),ps=s=>typeof s=="bigint"||Number.isInteger(s),Fn=(s,e,t,{intAsBigInt:n})=>n?BigInt(s):parseInt(s.substring(e),t);function Vo(s,e,t){let{value:n}=s;return ps(n)&&n>=0?t+n.toString(e):Bo.stringifyNumber(s)}var Ef={identify:s=>ps(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(s,e,t)=>Fn(s,2,8,t),stringify:s=>Vo(s,8,"0o")},vf={identify:ps,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(s,e,t)=>Fn(s,0,10,t),stringify:Bo.stringifyNumber},Tf={identify:s=>ps(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(s,e,t)=>Fn(s,2,16,t),stringify:s=>Vo(s,16,"0x")};ms.int=vf;ms.intHex=Tf;ms.intOct=Ef});var Uo=w(jo=>{"use strict";var Cf=Pe(),Of=hs(),kf=_e(),If=ct(),Lf=Mn(),Vn=Rn(),jn=Bn(),qf=[Cf.map,kf.seq,If.string,Of.nullTag,Lf.boolTag,jn.intOct,jn.int,jn.intHex,Vn.floatNaN,Vn.floatExp,Vn.float];jo.schema=qf});var Do=w(Yo=>{"use strict";var Pf=L(),_f=Pe(),xf=_e();function Ko(s){return typeof s=="bigint"||Number.isInteger(s)}var gs=({value:s})=>JSON.stringify(s),Mf=[{identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify:gs},{identify:s=>s==null,createNode:()=>new Pf.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:gs},{identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:s=>s==="true",stringify:gs},{identify:Ko,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(s,e,{intAsBigInt:t})=>t?BigInt(s):parseInt(s,10),stringify:({value:s})=>Ko(s)?s.toString():JSON.stringify(s)},{identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:s=>parseFloat(s),stringify:gs}],$f={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},Rf=[_f.map,xf.seq].concat(Mf,$f);Yo.schema=Rf});var Kn=w(Jo=>{"use strict";var ut=Ot("buffer"),Un=L(),Ff=it(),Bf={identify:s=>s instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof ut.Buffer=="function")return ut.Buffer.from(s,"base64");if(typeof atob=="function"){let t=atob(s.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let i=0;i<t.length;++i)n[i]=t.charCodeAt(i);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),s},stringify({comment:s,type:e,value:t},n,i,r){if(!t)return"";let o=t,a;if(typeof ut.Buffer=="function")a=o instanceof ut.Buffer?o.toString("base64"):ut.Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=Un.Scalar.BLOCK_LITERAL),e!==Un.Scalar.QUOTE_DOUBLE){let l=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),c=Math.ceil(a.length/l),u=new Array(c);for(let f=0,h=0;f<c;++f,h+=l)u[f]=a.substr(h,l);a=u.join(e===Un.Scalar.BLOCK_LITERAL?`
|
|
55
|
+
`:" ")}return Ff.stringifyString({comment:s,type:e,value:a},n,i,r)}};Jo.binary=Bf});var ws=w(bs=>{"use strict";var ys=C(),Yn=oe(),Vf=L(),jf=ce();function Go(s,e){if(ys.isSeq(s))for(let t=0;t<s.items.length;++t){let n=s.items[t];if(!ys.isPair(n)){if(ys.isMap(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");let i=n.items[0]||new Yn.Pair(new Vf.Scalar(null));if(n.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${n.commentBefore}
|
|
56
|
+
${i.key.commentBefore}`:n.commentBefore),n.comment){let r=i.value??i.key;r.comment=r.comment?`${n.comment}
|
|
57
|
+
${r.comment}`:n.comment}n=i}s.items[t]=ys.isPair(n)?n:new Yn.Pair(n)}}else e("Expected a sequence for this tag");return s}function Wo(s,e,t){let{replacer:n}=t,i=new jf.YAMLSeq(s);i.tag="tag:yaml.org,2002:pairs";let r=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(r++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;i.items.push(Yn.createPair(a,l,t))}return i}var Uf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Go,createNode:Wo};bs.createPairs=Wo;bs.pairs=Uf;bs.resolvePairs=Go});var Gn=w(Jn=>{"use strict";var Ho=C(),Dn=se(),ft=le(),Kf=ce(),Xo=ws(),ye=class s extends Kf.YAMLSeq{constructor(){super(),this.add=ft.YAMLMap.prototype.add.bind(this),this.delete=ft.YAMLMap.prototype.delete.bind(this),this.get=ft.YAMLMap.prototype.get.bind(this),this.has=ft.YAMLMap.prototype.has.bind(this),this.set=ft.YAMLMap.prototype.set.bind(this),this.tag=s.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;t?.onCreate&&t.onCreate(n);for(let i of this.items){let r,o;if(Ho.isPair(i)?(r=Dn.toJS(i.key,"",t),o=Dn.toJS(i.value,r,t)):r=Dn.toJS(i,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}static from(e,t,n){let i=Xo.createPairs(e,t,n),r=new this;return r.items=i.items,r}};ye.tag="tag:yaml.org,2002:omap";var Yf={collection:"seq",identify:s=>s instanceof Map,nodeClass:ye,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){let t=Xo.resolvePairs(s,e),n=[];for(let{key:i}of t.items)Ho.isScalar(i)&&(n.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):n.push(i.value));return Object.assign(new ye,t)},createNode:(s,e,t)=>ye.from(s,e,t)};Jn.YAMLOMap=ye;Jn.omap=Yf});var ta=w(Wn=>{"use strict";var zo=L();function Qo({value:s,source:e},t){return e&&(s?Zo:ea).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}var Zo={identify:s=>s===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new zo.Scalar(!0),stringify:Qo},ea={identify:s=>s===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new zo.Scalar(!1),stringify:Qo};Wn.falseTag=ea;Wn.trueTag=Zo});var sa=w(Ss=>{"use strict";var Df=L(),Hn=xe(),Jf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:s=>s.slice(-3).toLowerCase()==="nan"?NaN:s[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Hn.stringifyNumber},Gf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:s=>parseFloat(s.replace(/_/g,"")),stringify(s){let e=Number(s.value);return isFinite(e)?e.toExponential():Hn.stringifyNumber(s)}},Wf={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(s){let e=new Df.Scalar(parseFloat(s.replace(/_/g,""))),t=s.indexOf(".");if(t!==-1){let n=s.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:Hn.stringifyNumber};Ss.float=Wf;Ss.floatExp=Gf;Ss.floatNaN=Jf});var ia=w(dt=>{"use strict";var na=xe(),ht=s=>typeof s=="bigint"||Number.isInteger(s);function Ns(s,e,t,{intAsBigInt:n}){let i=s[0];if((i==="-"||i==="+")&&(e+=1),s=s.substring(e).replace(/_/g,""),n){switch(t){case 2:s=`0b${s}`;break;case 8:s=`0o${s}`;break;case 16:s=`0x${s}`;break}let o=BigInt(s);return i==="-"?BigInt(-1)*o:o}let r=parseInt(s,t);return i==="-"?-1*r:r}function Xn(s,e,t){let{value:n}=s;if(ht(n)){let i=n.toString(e);return n<0?"-"+t+i.substr(1):t+i}return na.stringifyNumber(s)}var Hf={identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>Ns(s,2,2,t),stringify:s=>Xn(s,2,"0b")},Xf={identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>Ns(s,1,8,t),stringify:s=>Xn(s,8,"0")},zf={identify:ht,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>Ns(s,0,10,t),stringify:na.stringifyNumber},Qf={identify:ht,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>Ns(s,2,16,t),stringify:s=>Xn(s,16,"0x")};dt.int=zf;dt.intBin=Hf;dt.intHex=Qf;dt.intOct=Xf});var Qn=w(zn=>{"use strict";var vs=C(),As=oe(),Es=le(),be=class s extends Es.YAMLMap{constructor(e){super(e),this.tag=s.tag}add(e){let t;vs.isPair(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new As.Pair(e.key,null):t=new As.Pair(e,null),Es.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let n=Es.findPair(this.items,e);return!t&&vs.isPair(n)?vs.isScalar(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=Es.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new As.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){let{replacer:i}=n,r=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof i=="function"&&(o=i.call(t,o,o)),r.items.push(As.createPair(o,null,n));return r}};be.tag="tag:yaml.org,2002:set";var Zf={collection:"map",identify:s=>s instanceof Set,nodeClass:be,default:!1,tag:"tag:yaml.org,2002:set",createNode:(s,e,t)=>be.from(s,e,t),resolve(s,e){if(vs.isMap(s)){if(s.hasAllNullValues(!0))return Object.assign(new be,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s}};zn.YAMLSet=be;zn.set=Zf});var ei=w(Ts=>{"use strict";var eh=xe();function Zn(s,e){let t=s[0],n=t==="-"||t==="+"?s.substring(1):s,i=o=>e?BigInt(o):Number(o),r=n.replace(/_/g,"").split(":").reduce((o,a)=>o*i(60)+i(a),i(0));return t==="-"?i(-1)*r:r}function ra(s){let{value:e}=s,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return eh.stringifyNumber(s);let n="";e<0&&(n="-",e*=t(-1));let i=t(60),r=[e%i];return e<60?r.unshift(0):(e=(e-r[0])/i,r.unshift(e%i),e>=60&&(e=(e-r[0])/i,r.unshift(e))),n+r.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}var th={identify:s=>typeof s=="bigint"||Number.isInteger(s),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(s,e,{intAsBigInt:t})=>Zn(s,t),stringify:ra},sh={identify:s=>typeof s=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:s=>Zn(s,!1),stringify:ra},oa={identify:s=>s instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(s){let e=s.match(oa.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,n,i,r,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0,c=Date.UTC(t,n-1,i,r||0,o||0,a||0,l),u=e[8];if(u&&u!=="Z"){let f=Zn(u,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:s})=>s?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""};Ts.floatTime=sh;Ts.intTime=th;Ts.timestamp=oa});var ca=w(la=>{"use strict";var nh=Pe(),ih=hs(),rh=_e(),oh=ct(),ah=Kn(),aa=ta(),ti=sa(),Cs=ia(),lh=is(),ch=Gn(),uh=ws(),fh=Qn(),si=ei(),hh=[nh.map,rh.seq,oh.string,ih.nullTag,aa.trueTag,aa.falseTag,Cs.intBin,Cs.intOct,Cs.int,Cs.intHex,ti.floatNaN,ti.floatExp,ti.float,ah.binary,lh.merge,ch.omap,uh.pairs,fh.set,si.intTime,si.floatTime,si.timestamp];la.schema=hh});var wa=w(ri=>{"use strict";var da=Pe(),dh=hs(),pa=_e(),ph=ct(),mh=Mn(),ni=Rn(),ii=Bn(),gh=Uo(),yh=Do(),ma=Kn(),pt=is(),ga=Gn(),ya=ws(),ua=ca(),ba=Qn(),Os=ei(),fa=new Map([["core",gh.schema],["failsafe",[da.map,pa.seq,ph.string]],["json",yh.schema],["yaml11",ua.schema],["yaml-1.1",ua.schema]]),ha={binary:ma.binary,bool:mh.boolTag,float:ni.float,floatExp:ni.floatExp,floatNaN:ni.floatNaN,floatTime:Os.floatTime,int:ii.int,intHex:ii.intHex,intOct:ii.intOct,intTime:Os.intTime,map:da.map,merge:pt.merge,null:dh.nullTag,omap:ga.omap,pairs:ya.pairs,seq:pa.seq,set:ba.set,timestamp:Os.timestamp},bh={"tag:yaml.org,2002:binary":ma.binary,"tag:yaml.org,2002:merge":pt.merge,"tag:yaml.org,2002:omap":ga.omap,"tag:yaml.org,2002:pairs":ya.pairs,"tag:yaml.org,2002:set":ba.set,"tag:yaml.org,2002:timestamp":Os.timestamp};function wh(s,e,t){let n=fa.get(e);if(n&&!s)return t&&!n.includes(pt.merge)?n.concat(pt.merge):n.slice();let i=n;if(!i)if(Array.isArray(s))i=[];else{let r=Array.from(fa.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(s))for(let r of s)i=i.concat(r);else typeof s=="function"&&(i=s(i.slice()));return t&&(i=i.concat(pt.merge)),i.reduce((r,o)=>{let a=typeof o=="string"?ha[o]:o;if(!a){let l=JSON.stringify(o),c=Object.keys(ha).map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown custom tag ${l}; use one of ${c}`)}return r.includes(a)||r.push(a),r},[])}ri.coreKnownTags=bh;ri.getTags=wh});var li=w(Sa=>{"use strict";var oi=C(),Sh=Pe(),Nh=_e(),Ah=ct(),ks=wa(),Eh=(s,e)=>s.key<e.key?-1:s.key>e.key?1:0,ai=class s{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?ks.getTags(e,"compat"):e?ks.getTags(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=i?ks.coreKnownTags:{},this.tags=ks.getTags(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,oi.MAP,{value:Sh.map}),Object.defineProperty(this,oi.SCALAR,{value:Ah.string}),Object.defineProperty(this,oi.SEQ,{value:Nh.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?Eh:null}clone(){let e=Object.create(s.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};Sa.Schema=ai});var Aa=w(Na=>{"use strict";var vh=C(),ci=rt(),mt=tt();function Th(s,e){let t=[],n=e.directives===!0;if(e.directives!==!1&&s.directives){let l=s.directives.toString(s);l?(t.push(l),n=!0):s.directives.docStart&&(n=!0)}n&&t.push("---");let i=ci.createStringifyContext(s,e),{commentString:r}=i.options;if(s.commentBefore){t.length!==1&&t.unshift("");let l=r(s.commentBefore);t.unshift(mt.indentComment(l,""))}let o=!1,a=null;if(s.contents){if(vh.isNode(s.contents)){if(s.contents.spaceBefore&&n&&t.push(""),s.contents.commentBefore){let u=r(s.contents.commentBefore);t.push(mt.indentComment(u,""))}i.forceBlockIndent=!!s.comment,a=s.contents.comment}let l=a?void 0:()=>o=!0,c=ci.stringify(s.contents,i,()=>a=null,l);a&&(c+=mt.lineComment(c,"",r(a))),(c[0]==="|"||c[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${c}`:t.push(c)}else t.push(ci.stringify(s.contents,i));if(s.directives?.docEnd)if(s.comment){let l=r(s.comment);l.includes(`
|
|
58
|
+
`)?(t.push("..."),t.push(mt.indentComment(l,""))):t.push(`... ${l}`)}else t.push("...");else{let l=s.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||a)&&t[t.length-1]!==""&&t.push(""),t.push(mt.indentComment(r(l),"")))}return t.join(`
|
|
59
|
+
`)+`
|
|
60
|
+
`}Na.stringifyDocument=Th});var gt=w(Ea=>{"use strict";var Ch=Ze(),Me=Ht(),Y=C(),Oh=oe(),kh=se(),Ih=li(),Lh=Aa(),ui=Dt(),qh=pn(),Ph=et(),fi=dn(),hi=class s{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Y.NODE_TYPE,{value:Y.DOC});let i=null;typeof t=="function"||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let r=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=r;let{version:o}=r;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new fi.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let e=Object.create(s.prototype,{[Y.NODE_TYPE]:{value:Y.DOC}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=Y.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){$e(this.contents)&&this.contents.add(e)}addIn(e,t){$e(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=ui.anchorNames(this);e.anchor=!t||n.has(t)?ui.findNewAnchor(t||"a",n):t}return new Ch.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t=="function")e=t.call({"":e},"",e),i=t;else if(Array.isArray(t)){let m=y=>typeof y=="number"||y instanceof String||y instanceof Number,b=t.filter(m).map(String);b.length>0&&(t=t.concat(b)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:r,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:u}=n??{},{onAnchor:f,setAnchors:h,sourceObjects:p}=ui.createNodeAnchors(this,o||"a"),g={aliasDuplicateObjects:r??!0,keepUndefined:l??!1,onAnchor:f,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:p},d=Ph.createNode(e,u,g);return a&&Y.isCollection(d)&&(d.flow=!0),h(),d}createPair(e,t,n={}){let i=this.createNode(e,null,n),r=this.createNode(t,null,n);return new Oh.Pair(i,r)}delete(e){return $e(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Me.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):$e(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return Y.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Me.isEmptyPath(e)?!t&&Y.isScalar(this.contents)?this.contents.value:this.contents:Y.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return Y.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return Me.isEmptyPath(e)?this.contents!==void 0:Y.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Me.collectionFromPath(this.schema,[e],t):$e(this.contents)&&this.contents.set(e,t)}setIn(e,t){Me.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=Me.collectionFromPath(this.schema,Array.from(e),t):$e(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new fi.Directives({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new fi.Directives({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let i=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new Ih.Schema(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:i,onAnchor:r,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},l=kh.toJS(this.contents,t??"",a);if(typeof r=="function")for(let{count:c,res:u}of a.anchors.values())r(u,c);return typeof o=="function"?qh.applyReviver(o,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return Lh.stringifyDocument(this,e)}};function $e(s){if(Y.isCollection(s))return!0;throw new Error("Expected a YAML collection as document contents")}Ea.Document=hi});var wt=w(bt=>{"use strict";var yt=class extends Error{constructor(e,t,n,i){super(),this.name=e,this.code=n,this.message=i,this.pos=t}},di=class extends yt{constructor(e,t,n){super("YAMLParseError",e,t,n)}},pi=class extends yt{constructor(e,t,n){super("YAMLWarning",e,t,n)}},_h=(s,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(a=>e.linePos(a));let{line:n,col:i}=t.linePos[0];t.message+=` at line ${n}, column ${i}`;let r=i-1,o=s.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(r>=60&&o.length>80){let a=Math.min(r-39,o.length-79);o="\u2026"+o.substring(a),r-=a-1}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),n>1&&/^ *$/.test(o.substring(0,r))){let a=s.substring(e.lineStarts[n-2],e.lineStarts[n-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
|
|
61
|
+
`),o=a+o}if(/[^ ]/.test(o)){let a=1,l=t.linePos[1];l?.line===n&&l.col>i&&(a=Math.max(1,Math.min(l.col-i,80-r)));let c=" ".repeat(r)+"^".repeat(a);t.message+=`:
|
|
62
|
+
|
|
63
|
+
${o}
|
|
64
|
+
${c}
|
|
65
|
+
`}};bt.YAMLError=yt;bt.YAMLParseError=di;bt.YAMLWarning=pi;bt.prettifyError=_h});var St=w(va=>{"use strict";function xh(s,{flow:e,indicator:t,next:n,offset:i,onError:r,parentIndent:o,startOnNewline:a}){let l=!1,c=a,u=a,f="",h="",p=!1,g=!1,d=null,m=null,b=null,y=null,A=null,v=null,E=null;for(let S of s)switch(g&&(S.type!=="space"&&S.type!=="newline"&&S.type!=="comma"&&r(S.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),g=!1),d&&(c&&S.type!=="comment"&&S.type!=="newline"&&r(d,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=null),S.type){case"space":!e&&(t!=="doc-start"||n?.type!=="flow-collection")&&S.source.includes(" ")&&(d=S),u=!0;break;case"comment":{u||r(S,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let q=S.source.substring(1)||" ";f?f+=h+q:f=q,h="",c=!1;break}case"newline":c?f?f+=S.source:(!v||t!=="seq-item-ind")&&(l=!0):h+=S.source,c=!0,p=!0,(m||b)&&(y=S),u=!0;break;case"anchor":m&&r(S,"MULTIPLE_ANCHORS","A node can have at most one anchor"),S.source.endsWith(":")&&r(S.offset+S.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),m=S,E??(E=S.offset),c=!1,u=!1,g=!0;break;case"tag":{b&&r(S,"MULTIPLE_TAGS","A node can have at most one tag"),b=S,E??(E=S.offset),c=!1,u=!1,g=!0;break}case t:(m||b)&&r(S,"BAD_PROP_ORDER",`Anchors and tags must be after the ${S.source} indicator`),v&&r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.source} in ${e??"collection"}`),v=S,c=t==="seq-item-ind"||t==="explicit-key-ind",u=!1;break;case"comma":if(e){A&&r(S,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),A=S,c=!1,u=!1;break}default:r(S,"UNEXPECTED_TOKEN",`Unexpected ${S.type} token`),c=!1,u=!1}let N=s[s.length-1],O=N?N.offset+N.source.length:i;return g&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&r(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d&&(c&&d.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&r(d,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:A,found:v,spaceBefore:l,comment:f,hasNewline:p,anchor:m,tag:b,newlineAfterProp:y,end:O,start:E??O}}va.resolveProps=xh});var Is=w(Ta=>{"use strict";function mi(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(`
|
|
66
|
+
`))return!0;if(s.end){for(let e of s.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(let e of s.items){for(let t of e.start)if(t.type==="newline")return!0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return!0}if(mi(e.key)||mi(e.value))return!0}return!1;default:return!0}}Ta.containsNewline=mi});var gi=w(Ca=>{"use strict";var Mh=Is();function $h(s,e,t){if(e?.type==="flow-collection"){let n=e.end[0];n.indent===s&&(n.source==="]"||n.source==="}")&&Mh.containsNewline(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}Ca.flowIndentCheck=$h});var yi=w(ka=>{"use strict";var Oa=C();function Rh(s,e,t){let{uniqueKeys:n}=s.options;if(n===!1)return!1;let i=typeof n=="function"?n:(r,o)=>r===o||Oa.isScalar(r)&&Oa.isScalar(o)&&r.value===o.value;return e.some(r=>i(r.key,t))}ka.mapIncludes=Rh});var xa=w(_a=>{"use strict";var Ia=oe(),Fh=le(),La=St(),Bh=Is(),qa=gi(),Vh=yi(),Pa="All mapping items must start at the same column";function jh({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=r?.nodeClass??Fh.YAMLMap,a=new o(t.schema);t.atRoot&&(t.atRoot=!1);let l=n.offset,c=null;for(let u of n.items){let{start:f,key:h,sep:p,value:g}=u,d=La.resolveProps(f,{indicator:"explicit-key-ind",next:h??p?.[0],offset:l,onError:i,parentIndent:n.indent,startOnNewline:!0}),m=!d.found;if(m){if(h&&(h.type==="block-seq"?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==n.indent&&i(l,"BAD_INDENT",Pa)),!d.anchor&&!d.tag&&!p){c=d.end,d.comment&&(a.comment?a.comment+=`
|
|
67
|
+
`+d.comment:a.comment=d.comment);continue}(d.newlineAfterProp||Bh.containsNewline(h))&&i(h??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==n.indent&&i(l,"BAD_INDENT",Pa);t.atKey=!0;let b=d.end,y=h?s(t,h,d,i):e(t,b,f,null,d,i);t.schema.compat&&qa.flowIndentCheck(n.indent,h,i),t.atKey=!1,Vh.mapIncludes(t,a.items,y)&&i(b,"DUPLICATE_KEY","Map keys must be unique");let A=La.resolveProps(p??[],{indicator:"map-value-ind",next:g,offset:y.range[2],onError:i,parentIndent:n.indent,startOnNewline:!h||h.type==="block-scalar"});if(l=A.end,A.found){m&&(g?.type==="block-map"&&!A.hasNewline&&i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&d.start<A.found.offset-1024&&i(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let v=g?s(t,g,A,i):e(t,l,p,null,A,i);t.schema.compat&&qa.flowIndentCheck(n.indent,g,i),l=v.range[2];let E=new Ia.Pair(y,v);t.options.keepSourceTokens&&(E.srcToken=u),a.items.push(E)}else{m&&i(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),A.comment&&(y.comment?y.comment+=`
|
|
68
|
+
`+A.comment:y.comment=A.comment);let v=new Ia.Pair(y);t.options.keepSourceTokens&&(v.srcToken=u),a.items.push(v)}}return c&&c<l&&i(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,l,c??l],a}_a.resolveBlockMap=jh});var $a=w(Ma=>{"use strict";var Uh=ce(),Kh=St(),Yh=gi();function Dh({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=r?.nodeClass??Uh.YAMLSeq,a=new o(t.schema);t.atRoot&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let l=n.offset,c=null;for(let{start:u,value:f}of n.items){let h=Kh.resolveProps(u,{indicator:"seq-item-ind",next:f,offset:l,onError:i,parentIndent:n.indent,startOnNewline:!0});if(!h.found)if(h.anchor||h.tag||f)f?.type==="block-seq"?i(h.end,"BAD_INDENT","All sequence items must start at the same column"):i(l,"MISSING_CHAR","Sequence item without - indicator");else{c=h.end,h.comment&&(a.comment=h.comment);continue}let p=f?s(t,f,h,i):e(t,h.end,u,null,h,i);t.schema.compat&&Yh.flowIndentCheck(n.indent,f,i),l=p.range[2],a.items.push(p)}return a.range=[n.offset,l,c??l],a}Ma.resolveBlockSeq=Dh});var Re=w(Ra=>{"use strict";function Jh(s,e,t,n){let i="";if(s){let r=!1,o="";for(let a of s){let{source:l,type:c}=a;switch(c){case"space":r=!0;break;case"comment":{t&&!r&&n(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let u=l.substring(1)||" ";i?i+=o+u:i=u,o="";break}case"newline":i&&(o+=l),r=!0;break;default:n(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=l.length}}return{comment:i,offset:e}}Ra.resolveEnd=Jh});var ja=w(Va=>{"use strict";var Gh=C(),Wh=oe(),Fa=le(),Hh=ce(),Xh=Re(),Ba=St(),zh=Is(),Qh=yi(),bi="Block collections are not allowed within flow collections",wi=s=>s&&(s.type==="block-map"||s.type==="block-seq");function Zh({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=n.start.source==="{",a=o?"flow map":"flow sequence",l=r?.nodeClass??(o?Fa.YAMLMap:Hh.YAMLSeq),c=new l(t.schema);c.flow=!0;let u=t.atRoot;u&&(t.atRoot=!1),t.atKey&&(t.atKey=!1);let f=n.offset+n.start.source.length;for(let m=0;m<n.items.length;++m){let b=n.items[m],{start:y,key:A,sep:v,value:E}=b,N=Ba.resolveProps(y,{flow:a,indicator:"explicit-key-ind",next:A??v?.[0],offset:f,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!N.found){if(!N.anchor&&!N.tag&&!v&&!E){m===0&&N.comma?i(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):m<n.items.length-1&&i(N.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),N.comment&&(c.comment?c.comment+=`
|
|
69
|
+
`+N.comment:c.comment=N.comment),f=N.end;continue}!o&&t.options.strict&&zh.containsNewline(A)&&i(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(m===0)N.comma&&i(N.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(N.comma||i(N.start,"MISSING_CHAR",`Missing , between ${a} items`),N.comment){let O="";e:for(let S of y)switch(S.type){case"comma":case"space":break;case"comment":O=S.source.substring(1);break e;default:break e}if(O){let S=c.items[c.items.length-1];Gh.isPair(S)&&(S=S.value??S.key),S.comment?S.comment+=`
|
|
70
|
+
`+O:S.comment=O,N.comment=N.comment.substring(O.length+1)}}if(!o&&!v&&!N.found){let O=E?s(t,E,N,i):e(t,N.end,v,null,N,i);c.items.push(O),f=O.range[2],wi(E)&&i(O.range,"BLOCK_IN_FLOW",bi)}else{t.atKey=!0;let O=N.end,S=A?s(t,A,N,i):e(t,O,y,null,N,i);wi(A)&&i(S.range,"BLOCK_IN_FLOW",bi),t.atKey=!1;let q=Ba.resolveProps(v??[],{flow:a,indicator:"map-value-ind",next:E,offset:S.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(q.found){if(!o&&!N.found&&t.options.strict){if(v)for(let P of v){if(P===q.found)break;if(P.type==="newline"){i(P,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}N.start<q.found.offset-1024&&i(q.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source?.[0]===":"?i(E,"MISSING_CHAR",`Missing space after : in ${a}`):i(q.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let ee=E?s(t,E,q,i):q.found?e(t,q.end,v,null,q,i):null;ee?wi(E)&&i(ee.range,"BLOCK_IN_FLOW",bi):q.comment&&(S.comment?S.comment+=`
|
|
71
|
+
`+q.comment:S.comment=q.comment);let Ne=new Wh.Pair(S,ee);if(t.options.keepSourceTokens&&(Ne.srcToken=b),o){let P=c;Qh.mapIncludes(t,P.items,S)&&i(O,"DUPLICATE_KEY","Map keys must be unique"),P.items.push(Ne)}else{let P=new Fa.YAMLMap(t.schema);P.flow=!0,P.items.push(Ne);let Wi=(ee??S).range;P.range=[S.range[0],Wi[1],Wi[2]],c.items.push(P)}f=ee?ee.range[2]:q.end}}let h=o?"}":"]",[p,...g]=n.end,d=f;if(p?.source===h)d=p.offset+p.source.length;else{let m=a[0].toUpperCase()+a.substring(1),b=u?`${m} must end with a ${h}`:`${m} in block collection must be sufficiently indented and end with a ${h}`;i(f,u?"MISSING_CHAR":"BAD_INDENT",b),p&&p.source.length!==1&&g.unshift(p)}if(g.length>0){let m=Xh.resolveEnd(g,d,t.options.strict,i);m.comment&&(c.comment?c.comment+=`
|
|
72
|
+
`+m.comment:c.comment=m.comment),c.range=[n.offset,d,m.offset]}else c.range=[n.offset,d,d];return c}Va.resolveFlowCollection=Zh});var Ka=w(Ua=>{"use strict";var ed=C(),td=L(),sd=le(),nd=ce(),id=xa(),rd=$a(),od=ja();function Si(s,e,t,n,i,r){let o=t.type==="block-map"?id.resolveBlockMap(s,e,t,n,r):t.type==="block-seq"?rd.resolveBlockSeq(s,e,t,n,r):od.resolveFlowCollection(s,e,t,n,r),a=o.constructor;return i==="!"||i===a.tagName?(o.tag=a.tagName,o):(i&&(o.tag=i),o)}function ad(s,e,t,n,i){let r=n.tag,o=r?e.directives.tagName(r.source,h=>i(r,"TAG_RESOLVE_FAILED",h)):null;if(t.type==="block-seq"){let{anchor:h,newlineAfterProp:p}=n,g=h&&r?h.offset>r.offset?h:r:h??r;g&&(!p||p.offset<g.offset)&&i(g,"MISSING_CHAR","Missing newline after block sequence props")}let a=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!r||!o||o==="!"||o===sd.YAMLMap.tagName&&a==="map"||o===nd.YAMLSeq.tagName&&a==="seq")return Si(s,e,t,i,o);let l=e.schema.tags.find(h=>h.tag===o&&h.collection===a);if(!l){let h=e.schema.knownTags[o];if(h?.collection===a)e.schema.tags.push(Object.assign({},h,{default:!1})),l=h;else return h?i(r,"BAD_COLLECTION_TYPE",`${h.tag} used for ${a} collection, but expects ${h.collection??"scalar"}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),Si(s,e,t,i,o)}let c=Si(s,e,t,i,o,l),u=l.resolve?.(c,h=>i(r,"TAG_RESOLVE_FAILED",h),e.options)??c,f=ed.isNode(u)?u:new td.Scalar(u);return f.range=c.range,f.tag=o,l?.format&&(f.format=l.format),f}Ua.composeCollection=ad});var Ai=w(Ya=>{"use strict";var Ni=L();function ld(s,e,t){let n=e.offset,i=cd(e,s.options.strict,t);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};let r=i.mode===">"?Ni.Scalar.BLOCK_FOLDED:Ni.Scalar.BLOCK_LITERAL,o=e.source?ud(e.source):[],a=o.length;for(let d=o.length-1;d>=0;--d){let m=o[d][1];if(m===""||m==="\r")a=d;else break}if(a===0){let d=i.chomp==="+"&&o.length>0?`
|
|
73
|
+
`.repeat(Math.max(1,o.length-1)):"",m=n+i.length;return e.source&&(m+=e.source.length),{value:d,type:r,comment:i.comment,range:[n,m,m]}}let l=e.indent+i.indent,c=e.offset+i.length,u=0;for(let d=0;d<a;++d){let[m,b]=o[d];if(b===""||b==="\r")i.indent===0&&m.length>l&&(l=m.length);else{m.length<l&&t(c+m.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(l=m.length),u=d,l===0&&!s.atRoot&&t(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=m.length+b.length+1}for(let d=o.length-1;d>=a;--d)o[d][0].length>l&&(a=d+1);let f="",h="",p=!1;for(let d=0;d<u;++d)f+=o[d][0].slice(l)+`
|
|
74
|
+
`;for(let d=u;d<a;++d){let[m,b]=o[d];c+=m.length+b.length+1;let y=b[b.length-1]==="\r";if(y&&(b=b.slice(0,-1)),b&&m.length<l){let v=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;t(c-b.length-(y?2:1),"BAD_INDENT",v),m=""}r===Ni.Scalar.BLOCK_LITERAL?(f+=h+m.slice(l)+b,h=`
|
|
75
|
+
`):m.length>l||b[0]===" "?(h===" "?h=`
|
|
76
|
+
`:!p&&h===`
|
|
77
|
+
`&&(h=`
|
|
78
|
+
|
|
79
|
+
`),f+=h+m.slice(l)+b,h=`
|
|
80
|
+
`,p=!0):b===""?h===`
|
|
81
|
+
`?f+=`
|
|
82
|
+
`:h=`
|
|
83
|
+
`:(f+=h+b,h=" ",p=!1)}switch(i.chomp){case"-":break;case"+":for(let d=a;d<o.length;++d)f+=`
|
|
84
|
+
`+o[d][0].slice(l);f[f.length-1]!==`
|
|
85
|
+
`&&(f+=`
|
|
86
|
+
`);break;default:f+=`
|
|
87
|
+
`}let g=n+i.length+e.source.length;return{value:f,type:r,comment:i.comment,range:[n,g,g]}}function cd({offset:s,props:e},t,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=e[0],r=i[0],o=0,a="",l=-1;for(let h=1;h<i.length;++h){let p=i[h];if(!a&&(p==="-"||p==="+"))a=p;else{let g=Number(p);!o&&g?o=g:l===-1&&(l=s+h)}}l!==-1&&n(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let c=!1,u="",f=i.length;for(let h=1;h<e.length;++h){let p=e[h];switch(p.type){case"space":c=!0;case"newline":f+=p.source.length;break;case"comment":t&&!c&&n(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=p.source.length,u=p.source.substring(1);break;case"error":n(p,"UNEXPECTED_TOKEN",p.message),f+=p.source.length;break;default:{let g=`Unexpected token in block scalar header: ${p.type}`;n(p,"UNEXPECTED_TOKEN",g);let d=p.source;d&&typeof d=="string"&&(f+=d.length)}}}return{mode:r,indent:o,chomp:a,comment:u,length:f}}function ud(s){let e=s.split(/\n( *)/),t=e[0],n=t.match(/^( *)/),r=[n?.[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let o=1;o<e.length;o+=2)r.push([e[o],e[o+1]]);return r}Ya.resolveBlockScalar=ld});var vi=w(Ja=>{"use strict";var Ei=L(),fd=Re();function hd(s,e,t){let{offset:n,type:i,source:r,end:o}=s,a,l,c=(h,p,g)=>t(n+h,p,g);switch(i){case"scalar":a=Ei.Scalar.PLAIN,l=dd(r,c);break;case"single-quoted-scalar":a=Ei.Scalar.QUOTE_SINGLE,l=pd(r,c);break;case"double-quoted-scalar":a=Ei.Scalar.QUOTE_DOUBLE,l=md(r,c);break;default:return t(s,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[n,n+r.length,n+r.length]}}let u=n+r.length,f=fd.resolveEnd(o,u,e,t);return{value:l,type:a,comment:f.comment,range:[n,u,f.offset]}}function dd(s,e){let t="";switch(s[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${s[0]}`;break}case"@":case"`":{t=`reserved character ${s[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Da(s)}function pd(s,e){return(s[s.length-1]!=="'"||s.length===1)&&e(s.length,"MISSING_CHAR","Missing closing 'quote"),Da(s.slice(1,-1)).replace(/''/g,"'")}function Da(s){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
88
|
+
`,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
89
|
+
`,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(s);if(!n)return s;let i=n[1],r=" ",o=e.lastIndex;for(t.lastIndex=o;n=t.exec(s);)n[1]===""?r===`
|
|
90
|
+
`?i+=r:r=`
|
|
91
|
+
`:(i+=r+n[1],r=" "),o=t.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,n=a.exec(s),i+r+(n?.[1]??"")}function md(s,e){let t="";for(let n=1;n<s.length-1;++n){let i=s[n];if(!(i==="\r"&&s[n+1]===`
|
|
92
|
+
`))if(i===`
|
|
93
|
+
`){let{fold:r,offset:o}=gd(s,n);t+=r,n=o}else if(i==="\\"){let r=s[++n],o=yd[r];if(o)t+=o;else if(r===`
|
|
94
|
+
`)for(r=s[n+1];r===" "||r===" ";)r=s[++n+1];else if(r==="\r"&&s[n+1]===`
|
|
95
|
+
`)for(r=s[++n+1];r===" "||r===" ";)r=s[++n+1];else if(r==="x"||r==="u"||r==="U"){let a={x:2,u:4,U:8}[r];t+=bd(s,n+1,a,e),n+=a}else{let a=s.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),t+=a}}else if(i===" "||i===" "){let r=n,o=s[n+1];for(;o===" "||o===" ";)o=s[++n+1];o!==`
|
|
96
|
+
`&&!(o==="\r"&&s[n+2]===`
|
|
97
|
+
`)&&(t+=n>r?s.slice(r,n+1):i)}else t+=i}return(s[s.length-1]!=='"'||s.length===1)&&e(s.length,"MISSING_CHAR",'Missing closing "quote'),t}function gd(s,e){let t="",n=s[e+1];for(;(n===" "||n===" "||n===`
|
|
98
|
+
`||n==="\r")&&!(n==="\r"&&s[e+2]!==`
|
|
99
|
+
`);)n===`
|
|
100
|
+
`&&(t+=`
|
|
101
|
+
`),e+=1,n=s[e+1];return t||(t=" "),{fold:t,offset:e}}var yd={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
102
|
+
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function bd(s,e,t,n){let i=s.substr(e,t),o=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(o)){let a=s.substr(e-2,t+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}Ja.resolveFlowScalar=hd});var Ha=w(Wa=>{"use strict";var we=C(),Ga=L(),wd=Ai(),Sd=vi();function Nd(s,e,t,n){let{value:i,type:r,comment:o,range:a}=e.type==="block-scalar"?wd.resolveBlockScalar(s,e,n):Sd.resolveFlowScalar(e,s.options.strict,n),l=t?s.directives.tagName(t.source,f=>n(t,"TAG_RESOLVE_FAILED",f)):null,c;s.options.stringKeys&&s.atKey?c=s.schema[we.SCALAR]:l?c=Ad(s.schema,i,l,t,n):e.type==="scalar"?c=Ed(s,i,e,n):c=s.schema[we.SCALAR];let u;try{let f=c.resolve(i,h=>n(t??e,"TAG_RESOLVE_FAILED",h),s.options);u=we.isScalar(f)?f:new Ga.Scalar(f)}catch(f){let h=f instanceof Error?f.message:String(f);n(t??e,"TAG_RESOLVE_FAILED",h),u=new Ga.Scalar(i)}return u.range=a,u.source=i,r&&(u.type=r),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function Ad(s,e,t,n,i){if(t==="!")return s[we.SCALAR];let r=[];for(let a of s.tags)if(!a.collection&&a.tag===t)if(a.default&&a.test)r.push(a);else return a;for(let a of r)if(a.test?.test(e))return a;let o=s.knownTags[t];return o&&!o.collection?(s.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),s[we.SCALAR])}function Ed({atKey:s,directives:e,schema:t},n,i,r){let o=t.tags.find(a=>(a.default===!0||s&&a.default==="key")&&a.test?.test(n))||t[we.SCALAR];if(t.compat){let a=t.compat.find(l=>l.default&&l.test?.test(n))??t[we.SCALAR];if(o.tag!==a.tag){let l=e.tagString(o.tag),c=e.tagString(a.tag),u=`Value may be parsed as either ${l} or ${c}`;r(i,"TAG_RESOLVE_FAILED",u,!0)}}return o}Wa.composeScalar=Nd});var za=w(Xa=>{"use strict";function vd(s,e,t){if(e){t??(t=e.length);for(let n=t-1;n>=0;--n){let i=e[n];switch(i.type){case"space":case"comment":case"newline":s-=i.source.length;continue}for(i=e[++n];i?.type==="space";)s+=i.source.length,i=e[++n];break}}return s}Xa.emptyScalarPosition=vd});var el=w(Ci=>{"use strict";var Td=Ze(),Cd=C(),Od=Ka(),Qa=Ha(),kd=Re(),Id=za(),Ld={composeNode:Za,composeEmptyNode:Ti};function Za(s,e,t,n){let i=s.atKey,{spaceBefore:r,comment:o,anchor:a,tag:l}=t,c,u=!0;switch(e.type){case"alias":c=qd(s,e,n),(a||l)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Qa.composeScalar(s,e,l,n),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{c=Od.composeCollection(Ld,s,e,t,n),a&&(c.anchor=a.source.substring(1))}catch(f){let h=f instanceof Error?f.message:String(f);n(e,"RESOURCE_EXHAUSTION",h)}break;default:{let f=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",f),u=!1}}return c??(c=Ti(s,e.offset,void 0,null,t,n)),a&&c.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&s.options.stringKeys&&(!Cd.isScalar(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&n(l??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),r&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),s.options.keepSourceTokens&&u&&(c.srcToken=e),c}function Ti(s,e,t,n,{spaceBefore:i,comment:r,anchor:o,tag:a,end:l},c){let u={type:"scalar",offset:Id.emptyScalarPosition(e,t,n),indent:-1,source:""},f=Qa.composeScalar(s,u,a,c);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(f.spaceBefore=!0),r&&(f.comment=r,f.range[2]=l),f}function qd({options:s},{offset:e,source:t,end:n},i){let r=new Td.Alias(t.substring(1));r.source===""&&i(e,"BAD_ALIAS","Alias cannot be an empty string"),r.source.endsWith(":")&&i(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+t.length,a=kd.resolveEnd(n,o,s.strict,i);return r.range=[e,o,a.offset],a.comment&&(r.comment=a.comment),r}Ci.composeEmptyNode=Ti;Ci.composeNode=Za});var nl=w(sl=>{"use strict";var Pd=gt(),tl=el(),_d=Re(),xd=St();function Md(s,e,{offset:t,start:n,value:i,end:r},o){let a=Object.assign({_directives:e},s),l=new Pd.Document(void 0,a),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=xd.resolveProps(n,{indicator:"doc-start",next:i??r?.[0],offset:t,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?tl.composeNode(c,i,u,o):tl.composeEmptyNode(c,u.end,n,null,u,o);let f=l.contents.range[2],h=_d.resolveEnd(r,f,!1,o);return h.comment&&(l.comment=h.comment),l.range=[t,f,h.offset],l}sl.composeDoc=Md});var ki=w(ol=>{"use strict";var $d=Ot("process"),Rd=dn(),Fd=gt(),Nt=wt(),il=C(),Bd=nl(),Vd=Re();function At(s){if(typeof s=="number")return[s,s+1];if(Array.isArray(s))return s.length===2?s:[s[0],s[1]];let{offset:e,source:t}=s;return[e,e+(typeof t=="string"?t.length:1)]}function rl(s){let e="",t=!1,n=!1;for(let i=0;i<s.length;++i){let r=s[i];switch(r[0]){case"#":e+=(e===""?"":n?`
|
|
103
|
+
|
|
104
|
+
`:`
|
|
105
|
+
`)+(r.substring(1)||" "),t=!0,n=!1;break;case"%":s[i+1]?.[0]!=="#"&&(i+=1),t=!1;break;default:t||(n=!0),t=!1}}return{comment:e,afterEmptyLine:n}}var Oi=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,n,i,r)=>{let o=At(t);r?this.warnings.push(new Nt.YAMLWarning(o,n,i)):this.errors.push(new Nt.YAMLParseError(o,n,i))},this.directives=new Rd.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:i}=rl(this.prelude);if(n){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
|
|
106
|
+
${n}`:n;else if(i||e.directives.docStart||!r)e.commentBefore=n;else if(il.isCollection(r)&&!r.flow&&r.items.length>0){let o=r.items[0];il.isPair(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${n}
|
|
107
|
+
${a}`:n}else{let o=r.commentBefore;r.commentBefore=o?`${n}
|
|
108
|
+
${o}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:rl(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let i of e)yield*this.next(i);yield*this.end(t,n)}*next(e){switch($d.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,n,i)=>{let r=At(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",n,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=Bd.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new Nt.YAMLParseError(At(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){let n="Unexpected doc-end without preceding document";this.errors.push(new Nt.YAMLParseError(At(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;let t=Vd.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let n=this.doc.comment;this.doc.comment=n?`${n}
|
|
109
|
+
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new Nt.YAMLParseError(At(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let n=Object.assign({_directives:this.directives},this.options),i=new Fd.Document(void 0,n);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,t,t],this.decorate(i,!1),yield i}}};ol.Composer=Oi});var cl=w(Ls=>{"use strict";var jd=Ai(),Ud=vi(),Kd=wt(),al=it();function Yd(s,e=!0,t){if(s){let n=(i,r,o)=>{let a=typeof i=="number"?i:Array.isArray(i)?i[0]:i.offset;if(t)t(a,r,o);else throw new Kd.YAMLParseError([a,a+1],r,o)};switch(s.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Ud.resolveFlowScalar(s,e,n);case"block-scalar":return jd.resolveBlockScalar({options:{strict:e}},s,n)}}return null}function Dd(s,e){let{implicitKey:t=!1,indent:n,inFlow:i=!1,offset:r=-1,type:o="PLAIN"}=e,a=al.stringifyString({type:o,value:s},{implicitKey:t,indent:n>0?" ".repeat(n):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),l=e.end??[{type:"newline",offset:-1,indent:n,source:`
|
|
110
|
+
`}];switch(a[0]){case"|":case">":{let c=a.indexOf(`
|
|
111
|
+
`),u=a.substring(0,c),f=a.substring(c+1)+`
|
|
112
|
+
`,h=[{type:"block-scalar-header",offset:r,indent:n,source:u}];return ll(h,l)||h.push({type:"newline",offset:-1,indent:n,source:`
|
|
113
|
+
`}),{type:"block-scalar",offset:r,indent:n,props:h,source:f}}case'"':return{type:"double-quoted-scalar",offset:r,indent:n,source:a,end:l};case"'":return{type:"single-quoted-scalar",offset:r,indent:n,source:a,end:l};default:return{type:"scalar",offset:r,indent:n,source:a,end:l}}}function Jd(s,e,t={}){let{afterKey:n=!1,implicitKey:i=!1,inFlow:r=!1,type:o}=t,a="indent"in s?s.indent:null;if(n&&typeof a=="number"&&(a+=2),!o)switch(s.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let c=s.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let l=al.stringifyString({type:o,value:e},{implicitKey:i||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:r,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":Gd(s,l);break;case'"':Ii(s,l,"double-quoted-scalar");break;case"'":Ii(s,l,"single-quoted-scalar");break;default:Ii(s,l,"scalar")}}function Gd(s,e){let t=e.indexOf(`
|
|
114
|
+
`),n=e.substring(0,t),i=e.substring(t+1)+`
|
|
115
|
+
`;if(s.type==="block-scalar"){let r=s.props[0];if(r.type!=="block-scalar-header")throw new Error("Invalid block scalar header");r.source=n,s.source=i}else{let{offset:r}=s,o="indent"in s?s.indent:-1,a=[{type:"block-scalar-header",offset:r,indent:o,source:n}];ll(a,"end"in s?s.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
|
|
116
|
+
`});for(let l of Object.keys(s))l!=="type"&&l!=="offset"&&delete s[l];Object.assign(s,{type:"block-scalar",indent:o,props:a,source:i})}}function ll(s,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":s.push(t);break;case"newline":return s.push(t),!0}return!1}function Ii(s,e,t){switch(s.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":s.type=t,s.source=e;break;case"block-scalar":{let n=s.props.slice(1),i=e.length;s.props[0].type==="block-scalar-header"&&(i-=s.props[0].source.length);for(let r of n)r.offset+=i;delete s.props,Object.assign(s,{type:t,source:e,end:n});break}case"block-map":case"block-seq":{let i={type:"newline",offset:s.offset+e.length,indent:s.indent,source:`
|
|
117
|
+
`};delete s.items,Object.assign(s,{type:t,source:e,end:[i]});break}default:{let n="indent"in s?s.indent:-1,i="end"in s&&Array.isArray(s.end)?s.end.filter(r=>r.type==="space"||r.type==="comment"||r.type==="newline"):[];for(let r of Object.keys(s))r!=="type"&&r!=="offset"&&delete s[r];Object.assign(s,{type:t,indent:n,source:e,end:i})}}}Ls.createScalarToken=Dd;Ls.resolveAsScalar=Yd;Ls.setScalarValue=Jd});var fl=w(ul=>{"use strict";var Wd=s=>"type"in s?Ps(s):qs(s);function Ps(s){switch(s.type){case"block-scalar":{let e="";for(let t of s.props)e+=Ps(t);return e+s.source}case"block-map":case"block-seq":{let e="";for(let t of s.items)e+=qs(t);return e}case"flow-collection":{let e=s.start.source;for(let t of s.items)e+=qs(t);for(let t of s.end)e+=t.source;return e}case"document":{let e=qs(s);if(s.end)for(let t of s.end)e+=t.source;return e}default:{let e=s.source;if("end"in s&&s.end)for(let t of s.end)e+=t.source;return e}}}function qs({start:s,key:e,sep:t,value:n}){let i="";for(let r of s)i+=r.source;if(e&&(i+=Ps(e)),t)for(let r of t)i+=r.source;return n&&(i+=Ps(n)),i}ul.stringify=Wd});var ml=w(pl=>{"use strict";var Li=Symbol("break visit"),Hd=Symbol("skip children"),hl=Symbol("remove item");function Se(s,e){"type"in s&&s.type==="document"&&(s={start:s.start,value:s.value}),dl(Object.freeze([]),s,e)}Se.BREAK=Li;Se.SKIP=Hd;Se.REMOVE=hl;Se.itemAtPath=(s,e)=>{let t=s;for(let[n,i]of e){let r=t?.[n];if(r&&"items"in r)t=r.items[i];else return}return t};Se.parentCollection=(s,e)=>{let t=Se.itemAtPath(s,e.slice(0,-1)),n=e[e.length-1][0],i=t?.[n];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function dl(s,e,t){let n=t(e,s);if(typeof n=="symbol")return n;for(let i of["key","value"]){let r=e[i];if(r&&"items"in r){for(let o=0;o<r.items.length;++o){let a=dl(Object.freeze(s.concat([[i,o]])),r.items[o],t);if(typeof a=="number")o=a-1;else{if(a===Li)return Li;a===hl&&(r.items.splice(o,1),o-=1)}}typeof n=="function"&&i==="key"&&(n=n(e,s))}}return typeof n=="function"?n(e,s):n}pl.visit=Se});var _s=w(j=>{"use strict";var qi=cl(),Xd=fl(),zd=ml(),Pi="\uFEFF",_i="",xi="",Mi="",Qd=s=>!!s&&"items"in s,Zd=s=>!!s&&(s.type==="scalar"||s.type==="single-quoted-scalar"||s.type==="double-quoted-scalar"||s.type==="block-scalar");function ep(s){switch(s){case Pi:return"<BOM>";case _i:return"<DOC>";case xi:return"<FLOW_END>";case Mi:return"<SCALAR>";default:return JSON.stringify(s)}}function tp(s){switch(s){case Pi:return"byte-order-mark";case _i:return"doc-mode";case xi:return"flow-error-end";case Mi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
118
|
+
`:case`\r
|
|
119
|
+
`:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(s[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}j.createScalarToken=qi.createScalarToken;j.resolveAsScalar=qi.resolveAsScalar;j.setScalarValue=qi.setScalarValue;j.stringify=Xd.stringify;j.visit=zd.visit;j.BOM=Pi;j.DOCUMENT=_i;j.FLOW_END=xi;j.SCALAR=Mi;j.isCollection=Qd;j.isScalar=Zd;j.prettyToken=ep;j.tokenType=tp});var Fi=w(yl=>{"use strict";var Et=_s();function G(s){switch(s){case void 0:case" ":case`
|
|
120
|
+
`:case"\r":case" ":return!0;default:return!1}}var gl=new Set("0123456789ABCDEFabcdef"),sp=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),xs=new Set(",[]{}"),np=new Set(` ,[]{}
|
|
121
|
+
\r `),$i=s=>!s||np.has(s),Ri=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
|
|
122
|
+
`?!0:t==="\r"?this.buffer[e+1]===`
|
|
123
|
+
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===" ";)t=this.buffer[++n+e];if(t==="\r"){let i=this.buffer[n+e+1];if(i===`
|
|
124
|
+
`||!i&&!this.atEnd)return e+n+1}return t===`
|
|
125
|
+
`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t==="-"||t==="."){let n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&G(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
126
|
+
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Et.BOM&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,n=e.indexOf("#");for(;n!==-1;){let r=e[n-1];if(r===" "||r===" "){t=n-1;break}else n=e.indexOf("#",n+1)}for(;;){let r=e[t-1];if(r===" "||r===" ")t-=1;else break}let i=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield Et.DOCUMENT,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if((t==="---"||t==="...")&&G(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!G(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&G(t)){let n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil($i),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,n=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let i=this.getLine();if(i===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&i[0]!=="#"||n===0&&(i.startsWith("---")||i.startsWith("..."))&&G(i[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Et.FLOW_END,yield*this.parseLineStart();let r=0;for(;i[r]===",";)r+=yield*this.pushCount(1),r+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(r+=yield*this.pushIndicators(),i[r]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-r),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil($i),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||G(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let r=0;for(;this.buffer[t-1-r]==="\\";)r+=1;if(r%2===0)break;t=this.buffer.indexOf('"',t+1)}let n=this.buffer.substring(0,t),i=n.indexOf(`
|
|
127
|
+
`,this.pos);if(i!==-1){for(;i!==-1;){let r=this.continueScalar(i+1);if(r===-1)break;i=n.indexOf(`
|
|
128
|
+
`,r)}i!==-1&&(t=i-(n[i-1]==="\r"?2:1))}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>G(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,n;e:for(let r=this.pos;n=this.buffer[r];++r)switch(n){case" ":t+=1;break;case`
|
|
129
|
+
`:e=r,t=0;break;case"\r":{let o=this.buffer[r+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
|
|
130
|
+
`)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let r=this.continueScalar(e+1);if(r===-1)break;e=this.buffer.indexOf(`
|
|
131
|
+
`,r)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let i=e+1;for(n=this.buffer[i];n===" ";)n=this.buffer[++i];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===`
|
|
132
|
+
`;)n=this.buffer[++i];e=i-1}else if(!this.blockScalarKeep)do{let r=e-1,o=this.buffer[r];o==="\r"&&(o=this.buffer[--r]);let a=r;for(;o===" ";)o=this.buffer[--r];if(o===`
|
|
133
|
+
`&&r>=this.pos&&r+1+t>a)e=r;else break}while(!0);return yield Et.SCALAR,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,n=this.pos-1,i;for(;i=this.buffer[++n];)if(i===":"){let r=this.buffer[n+1];if(G(r)||e&&xs.has(r))break;t=n}else if(G(i)){let r=this.buffer[n+1];if(i==="\r"&&(r===`
|
|
134
|
+
`?(n+=1,i=`
|
|
135
|
+
`,r=this.buffer[n+1]):t=n),r==="#"||e&&xs.has(r))break;if(i===`
|
|
136
|
+
`){let o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&xs.has(i))break;t=n}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Et.SCALAR,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil($i))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(G(t)||e&&xs.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!G(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(sp.has(t))t=this.buffer[++e];else if(t==="%"&&gl.has(this.buffer[e+1])&&gl.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
|
|
137
|
+
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
|
|
138
|
+
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===" "||e&&n===" ");let i=t-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=t),i}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}};yl.Lexer=Ri});var Vi=w(bl=>{"use strict";var Bi=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){let r=t+n>>1;this.lineStarts[r]<e?t=r+1:n=r}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};let i=this.lineStarts[t-1];return{line:t,col:e-i+1}}}};bl.LineCounter=Bi});var Ui=w(El=>{"use strict";var ip=Ot("process"),wl=_s(),rp=Fi();function ue(s,e){for(let t=0;t<s.length;++t)if(s[t].type===e)return!0;return!1}function Sl(s){for(let e=0;e<s.length;++e)switch(s[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function Al(s){switch(s?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Ms(s){switch(s.type){case"document":return s.start;case"block-map":{let e=s.items[s.items.length-1];return e.sep??e.start}case"block-seq":return s.items[s.items.length-1].start;default:return[]}}function Fe(s){if(s.length===0)return[];let e=s.length;e:for(;--e>=0;)switch(s[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;s[++e]?.type==="space";);return s.splice(e,s.length)}function Nl(s){if(s.start.type==="flow-seq-start")for(let e of s.items)e.sep&&!e.value&&!ue(e.start,"explicit-key-ind")&&!ue(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Al(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}var ji=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new rp.Lexer,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,ip.env.LOG_TOKENS&&console.log("|",wl.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=wl.tokenType(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{let n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{let n=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in n?n.indent:0:t.type==="flow-collection"&&n.type==="document"&&(t.indent=0),t.type==="flow-collection"&&Nl(t),n.type){case"document":n.value=t;break;case"block-scalar":n.props.push(t);break;case"block-map":{let i=n.items[n.items.length-1];if(i.value){n.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=t;else{Object.assign(i,{key:t,sep:[]}),this.onKeyLine=!i.explicitKey;return}break}case"block-seq":{let i=n.items[n.items.length-1];i.value?n.items.push({start:[],value:t}):i.value=t;break}case"flow-collection":{let i=n.items[n.items.length-1];!i||i.value?n.items.push({start:[],key:t,sep:[]}):i.sep?i.value=t:Object.assign(i,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let i=t.items[t.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&Sl(i.start)===-1&&(t.indent===0||i.start.every(r=>r.type!=="comment"||r.indent<t.indent))&&(n.type==="document"?n.end=i.start:n.items.push({start:i.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{Sl(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){let t=Ms(this.peek(2)),n=Fe(t),i;e.end?(i=e.end,i.push(this.sourceToken),delete e.end):i=[this.sourceToken];let r={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=r}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
|
|
139
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
140
|
+
`,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let n="end"in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,t.start),i.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,i=n&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",r=[];if(i&&t.sep&&!t.value){let o=[];for(let a=0;a<t.sep.length;++a){let l=t.sep[a];switch(l.type){case"newline":o.push(a);break;case"space":break;case"comment":l.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(r=t.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":i||t.value?(r.push(this.sourceToken),e.items.push({start:r}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):i||t.value?(r.push(this.sourceToken),e.items.push({start:r,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(ue(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]});else if(Al(t.key)&&!ue(t.sep,"newline")){let o=Fe(t.start),a=t.key,l=t.sep;l.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:l}]})}else r.length>0?t.sep=t.sep.concat(r,this.sourceToken):t.sep.push(this.sourceToken);else if(ue(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let o=Fe(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else t.sep?t.value||i?e.items.push({start:r,key:null,sep:[this.sourceToken]}):ue(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);i||t.value?(e.items.push({start:r,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{let o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!t.explicitKey&&t.sep&&!ue(t.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&e.items.push({start:r});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let i=e.items[e.items.length-2]?.value?.end;if(Array.isArray(i)){Array.prototype.push.apply(i,t.start),i.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||ue(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let i=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:i,sep:[]}):t.sep?this.stack.push(i):Object.assign(t,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){let i=Ms(n),r=Fe(i);Nl(e);let o=e.end.splice(1,e.end.length);o.push(this.sourceToken);let a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
|
|
141
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
142
|
+
`,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=Ms(e),n=Fe(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=Ms(e),n=Fe(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};El.Parser=ji});var kl=w(Tt=>{"use strict";var vl=ki(),op=gt(),vt=wt(),ap=Cn(),lp=C(),cp=Vi(),Tl=Ui();function Cl(s){let e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new cp.LineCounter||null,prettyErrors:e}}function up(s,e={}){let{lineCounter:t,prettyErrors:n}=Cl(e),i=new Tl.Parser(t?.addNewLine),r=new vl.Composer(e),o=Array.from(r.compose(i.parse(s)));if(n&&t)for(let a of o)a.errors.forEach(vt.prettifyError(s,t)),a.warnings.forEach(vt.prettifyError(s,t));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}function Ol(s,e={}){let{lineCounter:t,prettyErrors:n}=Cl(e),i=new Tl.Parser(t?.addNewLine),r=new vl.Composer(e),o=null;for(let a of r.compose(i.parse(s),!0,s.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new vt.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(o.errors.forEach(vt.prettifyError(s,t)),o.warnings.forEach(vt.prettifyError(s,t))),o}function fp(s,e,t){let n;typeof e=="function"?n=e:t===void 0&&e&&typeof e=="object"&&(t=e);let i=Ol(s,t);if(!i)return null;if(i.warnings.forEach(r=>ap.warn(i.options.logLevel,r)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:n},t))}function hp(s,e,t){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){let i=Math.round(t);t=i<1?void 0:i>8?{indent:8}:{indent:i}}if(s===void 0){let{keepUndefined:i}=t??e??{};if(!i)return}return lp.isDocument(s)&&!n?s.toString(t):new op.Document(s,n,t).toString(t)}Tt.parse=fp;Tt.parseAllDocuments=up;Tt.parseDocument=Ol;Tt.stringify=hp});var Ll=w(k=>{"use strict";var dp=ki(),pp=gt(),mp=li(),Ki=wt(),gp=Ze(),fe=C(),yp=oe(),bp=L(),wp=le(),Sp=ce(),Np=_s(),Ap=Fi(),Ep=Vi(),vp=Ui(),$s=kl(),Il=He();k.Composer=dp.Composer;k.Document=pp.Document;k.Schema=mp.Schema;k.YAMLError=Ki.YAMLError;k.YAMLParseError=Ki.YAMLParseError;k.YAMLWarning=Ki.YAMLWarning;k.Alias=gp.Alias;k.isAlias=fe.isAlias;k.isCollection=fe.isCollection;k.isDocument=fe.isDocument;k.isMap=fe.isMap;k.isNode=fe.isNode;k.isPair=fe.isPair;k.isScalar=fe.isScalar;k.isSeq=fe.isSeq;k.Pair=yp.Pair;k.Scalar=bp.Scalar;k.YAMLMap=wp.YAMLMap;k.YAMLSeq=Sp.YAMLSeq;k.CST=Np;k.Lexer=Ap.Lexer;k.LineCounter=Ep.LineCounter;k.Parser=vp.Parser;k.parse=$s.parse;k.parseAllDocuments=$s.parseAllDocuments;k.parseDocument=$s.parseDocument;k.stringify=$s.stringify;k.visit=Il.visit;k.visitAsync=Il.visitAsync});var tr=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Rl=tr+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Fl="["+tr+"]["+Rl+"]*",Bl=new RegExp("^"+Fl+"$");function kt(s,e){let t=[],n=e.exec(s);for(;n;){let i=[];i.startIndex=e.lastIndex-n[0].length;let r=n.length;for(let o=0;o<r;o++)i.push(n[o]);t.push(i),n=e.exec(s)}return t}var Ae=function(s){let e=Bl.exec(s);return!(e===null||typeof e>"u")};function sr(s){return typeof s<"u"}var Ve=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],It=["__proto__","constructor","prototype"];var Vl={allowBooleanAttributes:!1,unpairedTags:[]};function ar(s,e){e=Object.assign({},Vl,e);let t=[],n=!1,i=!1;s[0]==="\uFEFF"&&(s=s.substr(1));for(let r=0;r<s.length;r++)if(s[r]==="<"&&s[r+1]==="?"){if(r+=2,r=ir(s,r),r.err)return r}else if(s[r]==="<"){let o=r;if(r++,s[r]==="!"){r=rr(s,r);continue}else{let a=!1;s[r]==="/"&&(a=!0,r++);let l="";for(;r<s.length&&s[r]!==">"&&s[r]!==" "&&s[r]!==" "&&s[r]!==`
|
|
143
|
+
`&&s[r]!=="\r";r++)l+=s[r];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),r--),!Wl(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",I("InvalidTag",f,M(s,r))}let c=Kl(s,r);if(c===!1)return I("InvalidAttr","Attributes for '"+l+"' have open quote.",M(s,r));let u=c.value;if(r=c.index,u[u.length-1]==="/"){let f=r-u.length;u=u.substring(0,u.length-1);let h=or(u,e);if(h===!0)n=!0;else return I(h.err.code,h.err.msg,M(s,f+h.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return I("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",M(s,o));if(t.length===0)return I("InvalidTag","Closing tag '"+l+"' has not been opened.",M(s,o));{let f=t.pop();if(l!==f.tagName){let h=M(s,f.tagStartPos);return I("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+l+"'.",M(s,o))}t.length==0&&(i=!0)}}else return I("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",M(s,r));else{let f=or(u,e);if(f!==!0)return I(f.err.code,f.err.msg,M(s,r-u.length+f.err.line));if(i===!0)return I("InvalidXml","Multiple possible root nodes found.",M(s,r));e.unpairedTags.indexOf(l)!==-1||t.push({tagName:l,tagStartPos:o}),n=!0}for(r++;r<s.length;r++)if(s[r]==="<")if(s[r+1]==="!"){r++,r=rr(s,r);continue}else if(s[r+1]==="?"){if(r=ir(s,++r),r.err)return r}else break;else if(s[r]==="&"){let f=Jl(s,r);if(f==-1)return I("InvalidChar","char '&' is not expected.",M(s,r));r=f}else if(i===!0&&!nr(s[r]))return I("InvalidXml","Extra text at the end",M(s,r));s[r]==="<"&&r--}}else{if(nr(s[r]))continue;return I("InvalidChar","char '"+s[r]+"' is not expected.",M(s,r))}if(n){if(t.length==1)return I("InvalidTag","Unclosed tag '"+t[0].tagName+"'.",M(s,t[0].tagStartPos));if(t.length>0)return I("InvalidXml","Invalid '"+JSON.stringify(t.map(r=>r.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return I("InvalidXml","Start tag expected.",1);return!0}function nr(s){return s===" "||s===" "||s===`
|
|
144
|
+
`||s==="\r"}function ir(s,e){let t=e;for(;e<s.length;e++)if(s[e]=="?"||s[e]==" "){let n=s.substr(t,e-t);if(e>5&&n==="xml")return I("InvalidXml","XML declaration allowed only at the start of the document.",M(s,e));if(s[e]=="?"&&s[e+1]==">"){e++;break}else continue}return e}function rr(s,e){if(s.length>e+5&&s[e+1]==="-"&&s[e+2]==="-"){for(e+=3;e<s.length;e++)if(s[e]==="-"&&s[e+1]==="-"&&s[e+2]===">"){e+=2;break}}else if(s.length>e+8&&s[e+1]==="D"&&s[e+2]==="O"&&s[e+3]==="C"&&s[e+4]==="T"&&s[e+5]==="Y"&&s[e+6]==="P"&&s[e+7]==="E"){let t=1;for(e+=8;e<s.length;e++)if(s[e]==="<")t++;else if(s[e]===">"&&(t--,t===0))break}else if(s.length>e+9&&s[e+1]==="["&&s[e+2]==="C"&&s[e+3]==="D"&&s[e+4]==="A"&&s[e+5]==="T"&&s[e+6]==="A"&&s[e+7]==="["){for(e+=8;e<s.length;e++)if(s[e]==="]"&&s[e+1]==="]"&&s[e+2]===">"){e+=2;break}}return e}var jl='"',Ul="'";function Kl(s,e){let t="",n="",i=!1;for(;e<s.length;e++){if(s[e]===jl||s[e]===Ul)n===""?n=s[e]:n!==s[e]||(n="");else if(s[e]===">"&&n===""){i=!0;break}t+=s[e]}return n!==""?!1:{value:t,index:e,tagClosed:i}}var Yl=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function or(s,e){let t=kt(s,Yl),n={};for(let i=0;i<t.length;i++){if(t[i][1].length===0)return I("InvalidAttr","Attribute '"+t[i][2]+"' has no space in starting.",je(t[i]));if(t[i][3]!==void 0&&t[i][4]===void 0)return I("InvalidAttr","Attribute '"+t[i][2]+"' is without value.",je(t[i]));if(t[i][3]===void 0&&!e.allowBooleanAttributes)return I("InvalidAttr","boolean attribute '"+t[i][2]+"' is not allowed.",je(t[i]));let r=t[i][2];if(!Gl(r))return I("InvalidAttr","Attribute '"+r+"' is an invalid name.",je(t[i]));if(!Object.prototype.hasOwnProperty.call(n,r))n[r]=1;else return I("InvalidAttr","Attribute '"+r+"' is repeated.",je(t[i]))}return!0}function Dl(s,e){let t=/\d/;for(s[e]==="x"&&(e++,t=/[\da-fA-F]/);e<s.length;e++){if(s[e]===";")return e;if(!s[e].match(t))break}return-1}function Jl(s,e){if(e++,s[e]===";")return-1;if(s[e]==="#")return e++,Dl(s,e);let t=0;for(;e<s.length;e++,t++)if(!(s[e].match(/\w/)&&t<20)){if(s[e]===";")break;return-1}return e}function I(s,e,t){return{err:{code:s,msg:e,line:t.line||t,col:t.col}}}function Gl(s){return Ae(s)}function Wl(s){return Ae(s)}function M(s,e){let t=s.substring(0,e).split(/\r?\n/);return{line:t.length,col:t[t.length-1].length+1}}function je(s){return s.startIndex+s[1].length}var lr={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},cr={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},ur={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013D",lcaron:"\u013E",Lmidot:"\u013F",lmidot:"\u0140",Lstrok:"\u0141",lstrok:"\u0142",Nacute:"\u0143",nacute:"\u0144",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ENG:"\u014A",eng:"\u014B",Omacr:"\u014C",omacr:"\u014D",Odblac:"\u0150",odblac:"\u0151",OElig:"\u0152",oelig:"\u0153",Racute:"\u0154",racute:"\u0155",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",Sacute:"\u015A",sacute:"\u015B",Scirc:"\u015C",scirc:"\u015D",Scedil:"\u015E",scedil:"\u015F",Scaron:"\u0160",scaron:"\u0161",Tcedil:"\u0162",tcedil:"\u0163",Tcaron:"\u0164",tcaron:"\u0165",Tstrok:"\u0166",tstrok:"\u0167",Utilde:"\u0168",utilde:"\u0169",Umacr:"\u016A",umacr:"\u016B",Ubreve:"\u016C",ubreve:"\u016D",Uring:"\u016E",uring:"\u016F",Udblac:"\u0170",udblac:"\u0171",Uogon:"\u0172",uogon:"\u0173",Wcirc:"\u0174",wcirc:"\u0175",Ycirc:"\u0176",ycirc:"\u0177",Zacute:"\u0179",zacute:"\u017A",Zdot:"\u017B",zdot:"\u017C",Zcaron:"\u017D",zcaron:"\u017E"},fr={Alpha:"\u0391",alpha:"\u03B1",Beta:"\u0392",beta:"\u03B2",Gamma:"\u0393",gamma:"\u03B3",Delta:"\u0394",delta:"\u03B4",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",varepsilon:"\u03F5",Zeta:"\u0396",zeta:"\u03B6",Eta:"\u0397",eta:"\u03B7",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",vartheta:"\u03D1",Iota:"\u0399",iota:"\u03B9",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",Lambda:"\u039B",lambda:"\u03BB",Mu:"\u039C",mu:"\u03BC",Nu:"\u039D",nu:"\u03BD",Xi:"\u039E",xi:"\u03BE",Omicron:"\u039F",omicron:"\u03BF",Pi:"\u03A0",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",Tau:"\u03A4",tau:"\u03C4",Upsilon:"\u03A5",upsilon:"\u03C5",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",varphi:"\u03D5",Chi:"\u03A7",chi:"\u03C7",Psi:"\u03A8",psi:"\u03C8",Omega:"\u03A9",omega:"\u03C9",ohm:"\u03A9",Gammad:"\u03DC",gammad:"\u03DD",digamma:"\u03DD"},hr={Afr:"\u{1D504}",afr:"\u{1D51E}",Acy:"\u0410",acy:"\u0430",Bcy:"\u0411",bcy:"\u0431",Vcy:"\u0412",vcy:"\u0432",Gcy:"\u0413",gcy:"\u0433",Dcy:"\u0414",dcy:"\u0434",IEcy:"\u0415",iecy:"\u0435",IOcy:"\u0401",iocy:"\u0451",ZHcy:"\u0416",zhcy:"\u0436",Zcy:"\u0417",zcy:"\u0437",Icy:"\u0418",icy:"\u0438",Jcy:"\u0419",jcy:"\u0439",Kcy:"\u041A",kcy:"\u043A",Lcy:"\u041B",lcy:"\u043B",Mcy:"\u041C",mcy:"\u043C",Ncy:"\u041D",ncy:"\u043D",Ocy:"\u041E",ocy:"\u043E",Pcy:"\u041F",pcy:"\u043F",Rcy:"\u0420",rcy:"\u0440",Scy:"\u0421",scy:"\u0441",Tcy:"\u0422",tcy:"\u0442",Ucy:"\u0423",ucy:"\u0443",Fcy:"\u0424",fcy:"\u0444",KHcy:"\u0425",khcy:"\u0445",TScy:"\u0426",tscy:"\u0446",CHcy:"\u0427",chcy:"\u0447",SHcy:"\u0428",shcy:"\u0448",SHCHcy:"\u0429",shchcy:"\u0449",HARDcy:"\u042A",hardcy:"\u044A",Ycy:"\u042B",ycy:"\u044B",SOFTcy:"\u042C",softcy:"\u044C",Ecy:"\u042D",ecy:"\u044D",YUcy:"\u042E",yucy:"\u044E",YAcy:"\u042F",yacy:"\u044F",DJcy:"\u0402",djcy:"\u0452",GJcy:"\u0403",gjcy:"\u0453",Jukcy:"\u0404",jukcy:"\u0454",DScy:"\u0405",dscy:"\u0455",Iukcy:"\u0406",iukcy:"\u0456",YIcy:"\u0407",yicy:"\u0457",Jsercy:"\u0408",jsercy:"\u0458",LJcy:"\u0409",ljcy:"\u0459",NJcy:"\u040A",njcy:"\u045A",TSHcy:"\u040B",tshcy:"\u045B",KJcy:"\u040C",kjcy:"\u045C",Ubrcy:"\u040E",ubrcy:"\u045E",DZcy:"\u040F",dzcy:"\u045F"},dr={plus:"+",minus:"\u2212",mnplus:"\u2213",mp:"\u2213",pm:"\xB1",times:"\xD7",div:"\xF7",divide:"\xF7",sdot:"\u22C5",star:"\u2606",starf:"\u2605",bigstar:"\u2605",lowast:"\u2217",ast:"*",midast:"*",compfn:"\u2218",smallcircle:"\u2218",bullet:"\u2022",bull:"\u2022",nbsp:"\xA0",hellip:"\u2026",mldr:"\u2026",prime:"\u2032",Prime:"\u2033",tprime:"\u2034",bprime:"\u2035",backprime:"\u2035",minus:"\u2212",minusd:"\u2238",dotminus:"\u2238",plusdo:"\u2214",dotplus:"\u2214",plusmn:"\xB1",minusplus:"\u2213",mnplus:"\u2213",mp:"\u2213",setminus:"\u2216",smallsetminus:"\u2216",Backslash:"\u2216",setmn:"\u2216",ssetmn:"\u2216",lowbar:"_",verbar:"|",vert:"|",VerticalLine:"|",colon:":",Colon:"\u2237",Proportion:"\u2237",ratio:"\u2236",equals:"=",ne:"\u2260",nequiv:"\u2262",equiv:"\u2261",Congruent:"\u2261",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",sime:"\u2243",simeq:"\u2243",TildeEqual:"\u2243",asymp:"\u2248",approx:"\u2248",thickapprox:"\u2248",thkap:"\u2248",TildeTilde:"\u2248",ncong:"\u2247",cong:"\u2245",TildeFullEqual:"\u2245",asympeq:"\u224D",CupCap:"\u224D",bump:"\u224E",Bumpeq:"\u224E",HumpDownHump:"\u224E",bumpe:"\u224F",bumpeq:"\u224F",HumpEqual:"\u224F",dotminus:"\u2238",minusd:"\u2238",plusdo:"\u2214",dotplus:"\u2214",le:"\u2264",LessEqual:"\u2264",ge:"\u2265",GreaterEqual:"\u2265",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",greater:">",less:"<"},pr={alefsym:"\u2135",aleph:"\u2135",beth:"\u2136",gimel:"\u2137",daleth:"\u2138",forall:"\u2200",ForAll:"\u2200",part:"\u2202",PartialD:"\u2202",exist:"\u2203",Exists:"\u2203",nexist:"\u2204",nexists:"\u2204",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",nabla:"\u2207",Del:"\u2207",isin:"\u2208",isinv:"\u2208",in:"\u2208",Element:"\u2208",notin:"\u2209",notinva:"\u2209",ni:"\u220B",niv:"\u220B",SuchThat:"\u220B",ReverseElement:"\u220B",notni:"\u220C",notniva:"\u220C",prod:"\u220F",Product:"\u220F",coprod:"\u2210",Coproduct:"\u2210",sum:"\u2211",Sum:"\u2211",minus:"\u2212",mp:"\u2213",plusdo:"\u2214",dotplus:"\u2214",setminus:"\u2216",lowast:"\u2217",radic:"\u221A",Sqrt:"\u221A",prop:"\u221D",propto:"\u221D",Proportional:"\u221D",varpropto:"\u221D",infin:"\u221E",infintie:"\u29DD",ang:"\u2220",angle:"\u2220",angmsd:"\u2221",measuredangle:"\u2221",angsph:"\u2222",mid:"\u2223",VerticalBar:"\u2223",nmid:"\u2224",nsmid:"\u2224",npar:"\u2226",parallel:"\u2225",spar:"\u2225",nparallel:"\u2226",nspar:"\u2226",and:"\u2227",wedge:"\u2227",or:"\u2228",vee:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",Integral:"\u222B",conint:"\u222E",ContourIntegral:"\u222E",Conint:"\u222F",DoubleContourIntegral:"\u222F",Cconint:"\u2230",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",becaus:"\u2235",because:"\u2235",Because:"\u2235",ratio:"\u2236",Proportion:"\u2237",minusd:"\u2238",dotminus:"\u2238",mDDot:"\u223A",homtht:"\u223B",sim:"\u223C",bsimg:"\u223D",backsim:"\u223D",ac:"\u223E",mstpos:"\u223E",acd:"\u223F",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",nsime:"\u2244",nsimeq:"\u2244",nsimeq:"\u2244",ncong:"\u2247",simne:"\u2246",ncongdot:"\u2A6D\u0338",ngsim:"\u2275",nsim:"\u2241",napprox:"\u2249",nap:"\u2249",ngeq:"\u2271",nge:"\u2271",nleq:"\u2270",nle:"\u2270",ngtr:"\u226F",ngt:"\u226F",nless:"\u226E",nlt:"\u226E",nprec:"\u2280",npr:"\u2280",nsucc:"\u2281",nsc:"\u2281"},mr={larr:"\u2190",leftarrow:"\u2190",LeftArrow:"\u2190",uarr:"\u2191",uparrow:"\u2191",UpArrow:"\u2191",rarr:"\u2192",rightarrow:"\u2192",RightArrow:"\u2192",darr:"\u2193",downarrow:"\u2193",DownArrow:"\u2193",harr:"\u2194",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",varr:"\u2195",updownarrow:"\u2195",UpDownArrow:"\u2195",nwarr:"\u2196",nwarrow:"\u2196",UpperLeftArrow:"\u2196",nearr:"\u2197",nearrow:"\u2197",UpperRightArrow:"\u2197",searr:"\u2198",searrow:"\u2198",LowerRightArrow:"\u2198",swarr:"\u2199",swarrow:"\u2199",LowerLeftArrow:"\u2199",lArr:"\u21D0",Leftarrow:"\u21D0",uArr:"\u21D1",Uparrow:"\u21D1",rArr:"\u21D2",Rightarrow:"\u21D2",dArr:"\u21D3",Downarrow:"\u21D3",hArr:"\u21D4",Leftrightarrow:"\u21D4",iff:"\u21D4",vArr:"\u21D5",Updownarrow:"\u21D5",lAarr:"\u21DA",Lleftarrow:"\u21DA",rAarr:"\u21DB",Rrightarrow:"\u21DB",lrarr:"\u21C6",leftrightarrows:"\u21C6",rlarr:"\u21C4",rightleftarrows:"\u21C4",lrhar:"\u21CB",leftrightharpoons:"\u21CB",ReverseEquilibrium:"\u21CB",rlhar:"\u21CC",rightleftharpoons:"\u21CC",Equilibrium:"\u21CC",udarr:"\u21C5",UpArrowDownArrow:"\u21C5",duarr:"\u21F5",DownArrowUpArrow:"\u21F5",llarr:"\u21C7",leftleftarrows:"\u21C7",rrarr:"\u21C9",rightrightarrows:"\u21C9",ddarr:"\u21CA",downdownarrows:"\u21CA",har:"\u21BD",lhard:"\u21BD",leftharpoondown:"\u21BD",lharu:"\u21BC",leftharpoonup:"\u21BC",rhard:"\u21C1",rightharpoondown:"\u21C1",rharu:"\u21C0",rightharpoonup:"\u21C0",lsh:"\u21B0",Lsh:"\u21B0",rsh:"\u21B1",Rsh:"\u21B1",ldsh:"\u21B2",rdsh:"\u21B3",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",mapstoleft:"\u21A4",mapstoup:"\u21A5",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",crarr:"\u21B5",nwarrow:"\u2196",nearrow:"\u2197",searrow:"\u2198",swarrow:"\u2199",nleftarrow:"\u219A",nleftrightarrow:"\u21AE",nrightarrow:"\u219B",nrarr:"\u219B",larrtl:"\u21A2",rarrtl:"\u21A3",leftarrowtail:"\u21A2",rightarrowtail:"\u21A3",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Larr:"\u219E",Rarr:"\u21A0",larrhk:"\u21A9",rarrhk:"\u21AA",larrlp:"\u21AB",looparrowleft:"\u21AB",rarrlp:"\u21AC",looparrowright:"\u21AC",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",nrarrw:"\u219D\u0338",rarrw:"\u219D",rightsquigarrow:"\u219D",larrbfs:"\u291F",rarrbfs:"\u2920",nvHarr:"\u2904",nvlArr:"\u2902",nvrArr:"\u2903",larrfs:"\u291D",rarrfs:"\u291E",Map:"\u2905",larrsim:"\u2973",rarrsim:"\u2974",harrcir:"\u2948",Uarrocir:"\u2949",lurdshar:"\u294A",ldrdhar:"\u2967",ldrushar:"\u294B",rdldhar:"\u2969",lrhard:"\u296D",rlhar:"\u21CC",uharr:"\u21BE",uharl:"\u21BF",dharr:"\u21C2",dharl:"\u21C3",Uarr:"\u219F",Darr:"\u21A1",zigrarr:"\u21DD",nwArr:"\u21D6",neArr:"\u21D7",seArr:"\u21D8",swArr:"\u21D9",nharr:"\u21AE",nhArr:"\u21CE",nlarr:"\u219A",nlArr:"\u21CD",nrarr:"\u219B",nrArr:"\u21CF",larrb:"\u21E4",LeftArrowBar:"\u21E4",rarrb:"\u21E5",RightArrowBar:"\u21E5"},gr={square:"\u25A1",Square:"\u25A1",squ:"\u25A1",squf:"\u25AA",squarf:"\u25AA",blacksquar:"\u25AA",blacksquare:"\u25AA",FilledVerySmallSquare:"\u25AA",blk34:"\u2593",blk12:"\u2592",blk14:"\u2591",block:"\u2588",srect:"\u25AD",rect:"\u25AD",sdot:"\u22C5",sdotb:"\u22A1",dotsquare:"\u22A1",triangle:"\u25B5",tri:"\u25B5",trine:"\u25B5",utri:"\u25B5",triangledown:"\u25BF",dtri:"\u25BF",tridown:"\u25BF",triangleleft:"\u25C3",ltri:"\u25C3",triangleright:"\u25B9",rtri:"\u25B9",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",loz:"\u25CA",lozenge:"\u25CA",blacklozenge:"\u29EB",lozf:"\u29EB",bigcirc:"\u25EF",xcirc:"\u25EF",circ:"\u02C6",Circle:"\u25CB",cir:"\u25CB",o:"\u25CB",bullet:"\u2022",bull:"\u2022",hellip:"\u2026",mldr:"\u2026",nldr:"\u2025",boxh:"\u2500",HorizontalLine:"\u2500",boxv:"\u2502",boxdr:"\u250C",boxdl:"\u2510",boxur:"\u2514",boxul:"\u2518",boxvr:"\u251C",boxvl:"\u2524",boxhd:"\u252C",boxhu:"\u2534",boxvh:"\u253C",boxH:"\u2550",boxV:"\u2551",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxDl:"\u2555",boxdL:"\u2556",boxDL:"\u2557",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxUl:"\u255C",boxuL:"\u255B",boxUL:"\u255D",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",boxVl:"\u2562",boxvL:"\u2561",boxVL:"\u2563",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C"},yr={excl:"!",iexcl:"\xA1",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",nbsp:"\xA0",comma:",",period:".",colon:":",semi:";",vert:"|",Verbar:"\u2016",verbar:"|",dblac:"\u02DD",circ:"\u02C6",caron:"\u02C7",breve:"\u02D8",dot:"\u02D9",ring:"\u02DA",ogon:"\u02DB",tilde:"\u02DC",DiacriticalGrave:"`",DiacriticalAcute:"\xB4",DiacriticalTilde:"\u02DC",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",grave:"`",acute:"\xB4"},Lt={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",euro:"\u20AC",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"},br={frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044"},wr={trade:"\u2122",TRADE:"\u2122",telrec:"\u2315",target:"\u2316",ulcorn:"\u231C",ulcorner:"\u231C",urcorn:"\u231D",urcorner:"\u231D",dlcorn:"\u231E",llcorner:"\u231E",drcorn:"\u231F",lrcorner:"\u231F",intercal:"\u22BA",intcal:"\u22BA",oplus:"\u2295",CirclePlus:"\u2295",ominus:"\u2296",CircleMinus:"\u2296",otimes:"\u2297",CircleTimes:"\u2297",osol:"\u2298",odot:"\u2299",CircleDot:"\u2299",oast:"\u229B",circledast:"\u229B",odash:"\u229D",circleddash:"\u229D",ocirc:"\u229A",circledcirc:"\u229A",boxplus:"\u229E",plusb:"\u229E",boxminus:"\u229F",minusb:"\u229F",boxtimes:"\u22A0",timesb:"\u22A0",boxdot:"\u22A1",sdotb:"\u22A1",veebar:"\u22BB",vee:"\u2228",barvee:"\u22BD",and:"\u2227",wedge:"\u2227",Cap:"\u22D2",Cup:"\u22D3",Fork:"\u22D4",pitchfork:"\u22D4",epar:"\u22D5",ltlarr:"\u2976",nvap:"\u224D\u20D2",nvsim:"\u223C\u20D2",nvge:"\u2265\u20D2",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvgt:">\u20D2",nvltrie:"\u22B4\u20D2",nvrtrie:"\u22B5\u20D2",Vdash:"\u22A9",dashv:"\u22A3",vDash:"\u22A8",Vdash:"\u22A9",Vvdash:"\u22AA",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF"},Hl={...lr,...cr,...ur,...fr,...hr,...dr,...pr,...mr,...gr,...yr,...Lt,...br,...wr},Ue={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Us={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var Xl=new Set("!?\\\\/[]$%{}^&*()<>|+");function Sr(s){if(s[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${s}"`);for(let e of s)if(Xl.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${s}"`);return s}function Ks(...s){let e=Object.create(null);for(let t of s)if(t)for(let n of Object.keys(t)){let i=t[n];if(typeof i=="string")e[n]=i;else if(i&&typeof i=="object"&&i.val!==void 0){let r=i.val;typeof r=="string"&&(e[n]=r)}}return e}var de="external",qt="base",Ys="all";function zl(s){return!s||s===de?new Set([de]):s===Ys?new Set([Ys]):s===qt?new Set([qt]):Array.isArray(s)?new Set(s):new Set([de])}var $=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Ql=new Set([9,10,13]);function Zl(s){if(!s)return{xmlVersion:1,onLevel:$.allow,nullLevel:$.remove};let e=s.xmlVersion===1.1?1.1:1,t=$[s.onNCR]??$.allow,n=$[s.nullNCR]??$.remove,i=Math.max(n,$.remove);return{xmlVersion:e,onLevel:t,nullLevel:i}}var Ee=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=zl(this._limit.applyLimitsTo??de),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Ks(Ue,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=Zl(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))Sr(t);this._externalMap=Ks(e)}addExternalEntity(e,t){Sr(e),typeof t=="string"&&t.indexOf("&")===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Ks(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!="string"||e.length===0)return e;let t=e,n=[],i=e.length,r=0,o=0,a=this._maxTotalExpansions>0,l=this._maxExpandedLength>0,c=a||l;for(;o<i;){if(e.charCodeAt(o)!==38){o++;continue}let f=o+1;for(;f<i&&e.charCodeAt(f)!==59&&f-o<=32;)f++;if(f>=i||e.charCodeAt(f)!==59){o++;continue}let h=e.slice(o+1,f);if(h.length===0){o++;continue}let p,g;if(this._removeSet.has(h))p="",g===void 0&&(g=de);else if(this._leaveSet.has(h)){o++;continue}else if(h.charCodeAt(0)===35){let d=this._resolveNCR(h);if(d===void 0){o++;continue}p=d,g=qt}else{let d=this._resolveName(h);p=d?.value,g=d?.tier}if(p===void 0){o++;continue}if(o>r&&n.push(e.slice(r,o)),n.push(p),r=f+1,o=r,c&&this._tierCounts(g)){if(a&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(l){let d=p.length-(h.length+2);if(d>0&&(this._expandedLength+=d,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}r<i&&n.push(e.slice(r));let u=n.length===0?e:n.join("");return this._postCheck(u,t)}_tierCounts(e){return this._limitTiers.has(Ys)?!0:this._limitTiers.has(e)}_resolveName(e){if(e in this._inputMap)return{value:this._inputMap[e],tier:de};if(e in this._externalMap)return{value:this._externalMap[e],tier:de};if(e in this._baseMap)return{value:this._baseMap[e],tier:qt}}_classifyNCR(e){return e===0?this._ncrNullLevel:e>=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!Ql.has(e)?$.remove:-1}_applyNCRAction(e,t,n){switch(e){case $.allow:return String.fromCodePoint(n);case $.remove:return"";case $.leave:return;case $.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(t===120||t===88?n=parseInt(e.slice(2),16):n=parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let i=this._classifyNCR(n);if(!this._numericAllowed&&i<$.remove)return;let r=i===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,i);return this._applyNCRAction(r,e,n)}};var Nr=s=>Ve.includes(s)?"__"+s:s,ec={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(s,e){return e},attributeValueProcessor:function(s,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(s,e,t){return s},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Nr};function tc(s,e){if(typeof s!="string")return;let t=s.toLowerCase();if(Ve.some(n=>t===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${s}" is a reserved JavaScript keyword that could cause prototype pollution`);if(It.some(n=>t===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${s}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Ar(s,e){return typeof s=="boolean"?{enabled:s,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof s=="object"&&s!==null?{enabled:s.enabled!==!1,maxEntitySize:Math.max(1,s.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,s.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,s.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,s.maxExpandedLength??1e5),maxEntityCount:Math.max(1,s.maxEntityCount??1e3),allowedTags:s.allowedTags??null,tagFilter:s.tagFilter??null,appliesTo:s.appliesTo??"all"}:Ar(!0)}var Er=function(s){let e=Object.assign({},ec,s),t=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:i}of t)n&&tc(n,i);return e.onDangerousProperty===null&&(e.onDangerousProperty=Nr),e.processEntities=Ar(e.processEntities,e.htmlEntities),e.unpairedTagsSet=new Set(e.unpairedTags),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var Pt;typeof Symbol!="function"?Pt="@@xmlMetadata":Pt=Symbol("XML Node Metadata");var R=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][Pt]={startIndex:t})}static getMetaDataSymbol(){return Pt}};var Ye=class{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){let n=Object.create(null),i=0;if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let r=1,o=!1,a=!1,l="";for(;t<e.length;t++)if(e[t]==="<"&&!a){if(o&&pe(e,"!ENTITY",t)){t+=7;let c,u;if([c,u,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),u.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&i>=this.options.maxEntityCount)throw new Error(`Entity count (${i+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[c]=u,i++}}else if(o&&pe(e,"!ELEMENT",t)){t+=8;let{index:c}=this.readElementExp(e,t+1);t=c}else if(o&&pe(e,"!ATTLIST",t))t+=8;else if(o&&pe(e,"!NOTATION",t)){t+=9;let{index:c}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=c}else if(pe(e,"!--",t))a=!0;else throw new Error("Invalid DOCTYPE");r++,l=""}else if(e[t]===">"){if(a?e[t-1]==="-"&&e[t-2]==="-"&&(a=!1,r--):r--,r===0)break}else e[t]==="["?o=!0:l+=e[t];if(r!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:t}}readEntityExp(e,t){t=F(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t])&&e[t]!=='"'&&e[t]!=="'";)t++;let i=e.substring(n,t);if(Ke(i),t=F(e,t),!this.suppressValidationErr){if(e.substring(t,t+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(e[t]==="%")throw new Error("Parameter entities are not supported")}let r="";if([t,r]=this.readIdentifierVal(e,t,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&r.length>this.options.maxEntitySize)throw new Error(`Entity "${i}" size (${r.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[i,r,t]}readNotationExp(e,t){t=F(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);!this.suppressValidationErr&&Ke(i),t=F(e,t);let r=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&r!=="SYSTEM"&&r!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${r}"`);t+=r.length,t=F(e,t);let o=null,a=null;if(r==="PUBLIC")[t,o]=this.readIdentifierVal(e,t,"publicIdentifier"),t=F(e,t),(e[t]==='"'||e[t]==="'")&&([t,a]=this.readIdentifierVal(e,t,"systemIdentifier"));else if(r==="SYSTEM"&&([t,a]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!a))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:o,systemIdentifier:a,index:--t}}readIdentifierVal(e,t,n){let i="",r=e[t];if(r!=='"'&&r!=="'")throw new Error(`Expected quoted string, found "${r}"`);t++;let o=t;for(;t<e.length&&e[t]!==r;)t++;if(i=e.substring(o,t),e[t]!==r)throw new Error(`Unterminated ${n} value`);return t++,[t,i]}readElementExp(e,t){t=F(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);if(!this.suppressValidationErr&&!Ae(i))throw new Error(`Invalid element name: "${i}"`);t=F(e,t);let r="";if(e[t]==="E"&&pe(e,"MPTY",t))t+=4;else if(e[t]==="A"&&pe(e,"NY",t))t+=2;else if(e[t]==="("){t++;let o=t;for(;t<e.length&&e[t]!==")";)t++;if(r=e.substring(o,t),e[t]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:i,contentModel:r.trim(),index:t}}readAttlistExp(e,t){t=F(e,t);let n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);for(Ke(i),t=F(e,t),n=t;t<e.length&&!/\s/.test(e[t]);)t++;let r=e.substring(n,t);if(!Ke(r))throw new Error(`Invalid attribute name: "${r}"`);t=F(e,t);let o="";if(e.substring(t,t+8).toUpperCase()==="NOTATION"){if(o="NOTATION",t+=8,t=F(e,t),e[t]!=="(")throw new Error(`Expected '(', found "${e[t]}"`);t++;let l=[];for(;t<e.length&&e[t]!==")";){let c=t;for(;t<e.length&&e[t]!=="|"&&e[t]!==")";)t++;let u=e.substring(c,t);if(u=u.trim(),!Ke(u))throw new Error(`Invalid notation name: "${u}"`);l.push(u),e[t]==="|"&&(t++,t=F(e,t))}if(e[t]!==")")throw new Error("Unterminated list of notations");t++,o+=" ("+l.join("|")+")"}else{let l=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;o+=e.substring(l,t);let c=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!c.includes(o.toUpperCase()))throw new Error(`Invalid attribute type: "${o}"`)}t=F(e,t);let a="";return e.substring(t,t+8).toUpperCase()==="#REQUIRED"?(a="#REQUIRED",t+=8):e.substring(t,t+7).toUpperCase()==="#IMPLIED"?(a="#IMPLIED",t+=7):[t,a]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:i,attributeName:r,attributeType:o,defaultValue:a,index:t}}},F=(s,e)=>{for(;e<s.length&&/\s/.test(s[e]);)e++;return e};function pe(s,e,t){for(let n=0;n<e.length;n++)if(e[n]!==s[t+n+1])return!1;return!0}function Ke(s){if(Ae(s))return s;throw new Error(`Invalid entity name ${s}`)}var sc=/^[-+]?0x[a-fA-F0-9]+$/,nc=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,ic={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"};function Ds(s,e={}){if(e=Object.assign({},ic,e),!s||typeof s!="string")return s;let t=s.trim();if(t.length===0)return s;if(e.skipLike!==void 0&&e.skipLike.test(t))return s;if(t==="0")return 0;if(e.hex&&sc.test(t))return lc(t,16);if(isFinite(t)){if(t.includes("e")||t.includes("E"))return oc(s,t,e);{let n=nc.exec(t);if(n){let i=n[1]||"",r=n[2],o=ac(n[3]),a=i?s[r.length+1]===".":s[r.length]===".";if(!e.leadingZeros&&(r.length>1||r.length===1&&!a))return s;{let l=Number(t),c=String(l);if(l===0)return l;if(c.search(/[eE]/)!==-1)return e.eNotation?l:s;if(t.indexOf(".")!==-1)return c==="0"||c===o||c===`${i}${o}`?l:s;let u=r?o:t;return r?u===c||i+u===c?l:s:u===c||u===i+c?l:s}}else return s}}else return cc(s,Number(t),e)}var rc=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function oc(s,e,t){if(!t.eNotation)return s;let n=e.match(rc);if(n){let i=n[1]||"",r=n[3].indexOf("e")===-1?"E":"e",o=n[2],a=i?s[o.length+1]===r:s[o.length]===r;return o.length>1&&a?s:o.length===1&&(n[3].startsWith(`.${r}`)||n[3][0]===r)?Number(e):o.length>0?t.leadingZeros&&!a?(e=(n[1]||"")+n[3],Number(e)):s:Number(e)}else return s}function ac(s){return s&&s.indexOf(".")!==-1&&(s=s.replace(/0+$/,""),s==="."?s="0":s[0]==="."?s="0"+s:s[s.length-1]==="."&&(s=s.substring(0,s.length-1))),s}function lc(s,e){if(parseInt)return parseInt(s,e);if(Number.parseInt)return Number.parseInt(s,e);if(window&&window.parseInt)return window.parseInt(s,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function cc(s,e,t){let n=e===1/0;switch(t.infinity.toLowerCase()){case"null":return null;case"infinity":return e;case"string":return n?"Infinity":"-Infinity";default:return s}}function Js(s){return typeof s=="function"?s:Array.isArray(s)?e=>{for(let t of s)if(typeof t=="string"&&e===t||t instanceof RegExp&&t.test(e))return!0}:()=>!1}var U=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(i=>i.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(i=>i.attrName!==void 0),this._hasPositionSelector=this.segments.some(i=>i.position!==void 0)}_parse(e){let t=[],n=0,i="";for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(i.trim()&&(t.push(this._parseSegment(i.trim())),i=""),t.push({type:"deep-wildcard"}),n+=2):(i.trim()&&t.push(this._parseSegment(i.trim())),i="",n++):(i+=e[n],n++);return i.trim()&&t.push(this._parseSegment(i.trim())),t}_parseSegment(e){let t={type:"tag"},n=null,i=e,r=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(r&&(i=r[1]+r[3],r[2])){let u=r[2].slice(1,-1);u&&(n=u)}let o,a=i;if(i.includes("::")){let u=i.indexOf("::");if(o=i.substring(0,u).trim(),a=i.substring(u+2).trim(),!o)throw new Error(`Invalid namespace in pattern: ${e}`)}let l,c=null;if(a.includes(":")){let u=a.lastIndexOf(":"),f=a.substring(0,u).trim(),h=a.substring(u+1).trim();["first","last","odd","even"].includes(h)||/^nth\(\d+\)$/.test(h)?(l=f,c=h):l=a}else l=a;if(!l)throw new Error(`Invalid segment pattern: ${e}`);if(t.tag=l,o&&(t.namespace=o),n)if(n.includes("=")){let u=n.indexOf("=");t.attrName=n.substring(0,u).trim(),t.attrValue=n.substring(u+1).trim()}else t.attrName=n.trim();if(c){let u=c.match(/^nth\((\d+)\)$/);u?(t.position="nth",t.positionValue=parseInt(u[1],10)):t.position=c}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}};var ve=class{constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._patterns=new Set,this._sealed=!1}add(e){if(this._sealed)throw new TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(e.pattern))return this;if(this._patterns.add(e.pattern),e.hasDeepWildcard())return this._deepWildcards.push(e),this;let t=e.length,i=e.segments[e.segments.length-1]?.tag;if(!i||i==="*")this._wildcardByDepth.has(t)||this._wildcardByDepth.set(t,[]),this._wildcardByDepth.get(t).push(e);else{let r=`${t}:${i}`;this._byDepthAndTag.has(r)||this._byDepthAndTag.set(r,[]),this._byDepthAndTag.get(r).push(e)}return this}addAll(e){for(let t of e)this.add(t);return this}has(e){return this._patterns.has(e.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(e){return this.findMatch(e)!==null}findMatch(e){let t=e.getDepth(),n=e.getCurrentTag(),i=`${t}:${n}`,r=this._byDepthAndTag.get(i);if(r){for(let a=0;a<r.length;a++)if(e.matches(r[a]))return r[a]}let o=this._wildcardByDepth.get(t);if(o){for(let a=0;a<o.length;a++)if(e.matches(o[a]))return o[a]}for(let a=0;a<this._deepWildcards.length;a++)if(e.matches(this._deepWildcards[a]))return this._deepWildcards[a];return null}};var Gs=class{constructor(e){this._matcher=e}get separator(){return this._matcher.separator}getCurrentTag(){let e=this._matcher.path;return e.length>0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},W=class{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Gs(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let i=this.path.length;this.siblingStacks[i]||(this.siblingStacks[i]=new Map);let r=this.siblingStacks[i],o=n?`${n}:${e}`:e,a=r.get(o)||0,l=0;for(let u of r.values())l+=u;r.set(o,a+1);let c={tag:e,position:l,counter:a};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let r=this.path.map(o=>o.namespace?`${o.namespace}:${o.tag}`:o.tag).join(n);return this._pathStringCache=r,r}return this.path.map(r=>t&&r.namespace?`${r.namespace}:${r.tag}`:r.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++)if(!this._matchSegment(e[t],this.path[t],t===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){let i=e[n];if(i.type==="deep-wildcard"){if(n--,n<0)return!0;let r=e[n],o=!1;for(let a=t;a>=0;a--)if(this._matchSegment(r,this.path[a],a===this.path.length-1)){t=a-1,n--,o=!0;break}if(!o)return!1}else{if(!this._matchSegment(i,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!=="*"&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!=="*"&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let i=t.counter??0;if(e.position==="first"&&i!==0)return!1;if(e.position==="odd"&&i%2!==1)return!1;if(e.position==="even"&&i%2!==0)return!1;if(e.position==="nth"&&i!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(t=>({...t})),this.siblingStacks=e.siblingStacks.map(t=>new Map(t))}readOnly(){return this._view}};function uc(s,e){if(!s)return{};let t=e.attributesGroupName?s[e.attributesGroupName]:s;if(!t)return{};let n={};for(let i in t)if(i.startsWith(e.attributeNamePrefix)){let r=i.substring(e.attributeNamePrefix.length);n[r]=t[i]}else n[i]=t[i];return n}function fc(s){if(!s||typeof s!="string")return;let e=s.indexOf(":");if(e!==-1&&e>0){let t=s.substring(0,e);if(t!=="xmlns")return t}}var De=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=gc,this.parseTextData=hc,this.resolveNameSpace=dc,this.buildAttributesMap=mc,this.isItStopNode=Sc,this.replaceEntitiesValue=bc,this.readStopNodeData=Ec,this.saveTextToParentTag=wc,this.addChild=yc,this.ignoreAttributesFn=Js(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...Ue};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Us,...Lt}),this.entityDecoder=new Ee({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new W,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new ve;let i=this.options.stopNodes;if(i&&i.length>0){for(let r=0;r<i.length;r++){let o=i[r];typeof o=="string"?this.stopNodeExpressionsSet.add(new U(o)):o instanceof U&&this.stopNodeExpressionsSet.add(o)}this.stopNodeExpressionsSet.seal()}}};function hc(s,e,t,n,i,r,o){let a=this.options;if(s!==void 0&&(a.trimValues&&!n&&(s=s.trim()),s.length>0)){o||(s=this.replaceEntitiesValue(s,e,t));let l=a.jPath?t.toString():t,c=a.tagValueProcessor(e,s,l,i,r);return c==null?s:typeof c!=typeof s||c!==s?c:a.trimValues||s.trim()===s?Xs(s,a.parseTagValue,a.numberParseOptions):s}}function dc(s){if(this.options.removeNSPrefix){let e=s.split(":"),t=s.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(s=t+e[1])}return s}var pc=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function mc(s,e,t,n=!1){let i=this.options;if(n===!0||i.ignoreAttributes!==!0&&typeof s=="string"){let r=kt(s,pc),o=r.length,a={},l=new Array(o),c=!1,u={};for(let p=0;p<o;p++){let g=this.resolveNameSpace(r[p][1]),d=r[p][4];if(g.length&&d!==void 0){let m=d;i.trimValues&&(m=m.trim()),m=this.replaceEntitiesValue(m,t,this.readonlyMatcher),l[p]=m,u[g]=m,c=!0}}c&&typeof e=="object"&&e.updateCurrent&&e.updateCurrent(u);let f=i.jPath?e.toString():this.readonlyMatcher,h=!1;for(let p=0;p<o;p++){let g=this.resolveNameSpace(r[p][1]);if(this.ignoreAttributesFn(g,f))continue;let d=i.attributeNamePrefix+g;if(g.length)if(i.transformAttributeName&&(d=i.transformAttributeName(d)),d=vr(d,i),r[p][4]!==void 0){let m=l[p],b=i.attributeValueProcessor(g,m,f);b==null?a[d]=m:typeof b!=typeof m||b!==m?a[d]=b:a[d]=Xs(m,i.parseAttributeValue,i.numberParseOptions),h=!0}else i.allowBooleanAttributes&&(a[d]=!0,h=!0)}if(!h)return;if(i.attributesGroupName&&!i.preserveOrder){let p={};return p[i.attributesGroupName]=a,p}return a}}var gc=function(s){s=s.replace(/\r\n?/g,`
|
|
145
|
+
`);let e=new R("!xml"),t=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,r=new Ye(i.processEntities),o=s.length;for(let a=0;a<o;a++)if(s[a]==="<"){let c=s.charCodeAt(a+1);if(c===47){let u=Te(s,">",a,"Closing Tag is not closed."),f=s.substring(a+2,u).trim();if(i.removeNSPrefix){let p=f.indexOf(":");p!==-1&&(f=f.substr(p+1))}f=Ws(i.transformTagName,f,"",i).tagName,t&&(n=this.saveTextToParentTag(n,t,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&i.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);h&&i.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,t=this.tagsNodeStack.pop(),n="",a=u}else if(c===63){let u=Hs(s,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,t,this.readonlyMatcher);let f=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1)}if(!(i.ignoreDeclaration&&u.tagName==="?xml"||i.ignorePiTags)){let h=new R(u.tagName);h.add(i.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&i.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(t,h,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(c===33&&s.charCodeAt(a+2)===45&&s.charCodeAt(a+3)===45){let u=Te(s,"-->",a+4,"Comment is not closed.");if(i.commentPropName){let f=s.substring(a+4,u-2);n=this.saveTextToParentTag(n,t,this.readonlyMatcher),t.add(i.commentPropName,[{[i.textNodeName]:f}])}a=u}else if(c===33&&s.charCodeAt(a+2)===68){let u=r.readDocType(s,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(c===33&&s.charCodeAt(a+2)===91){let u=Te(s,"]]>",a,"CDATA is not closed.")-2,f=s.substring(a+9,u);n=this.saveTextToParentTag(n,t,this.readonlyMatcher);let h=this.parseTextData(f,t.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),i.cdataPropName?t.add(i.cdataPropName,[{[i.textNodeName]:f}]):t.add(i.textNodeName,h),a=u+2}else{let u=Hs(s,a,i.removeNSPrefix);if(!u){let N=s.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${N}"`)}let f=u.tagName,h=u.rawTagName,p=u.tagExp,g=u.attrExpPresent,d=u.closeIndex;if({tagName:f,tagExp:p}=Ws(i.transformTagName,f,p,i),i.strictReservedNames&&(f===i.commentPropName||f===i.cdataPropName||f===i.textNodeName||f===i.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);t&&n&&t.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,t,this.readonlyMatcher,!1));let m=t;m&&i.unpairedTagsSet.has(m.tagname)&&(t=this.tagsNodeStack.pop(),this.matcher.pop());let b=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(b=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),p=f):p=p.substr(0,p.length-1),g=f!==p);let y=null,A={},v;v=fc(h),f!==e.tagname&&this.matcher.push(f,{},v),f!==p&&g&&(y=this.buildAttributesMap(p,this.matcher,f),y&&(A=uc(y,i))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let E=a;if(this.isCurrentNodeStopNode){let N="";if(b)a=u.closeIndex;else if(i.unpairedTagsSet.has(f))a=u.closeIndex;else{let S=this.readStopNodeData(s,h,d+1);if(!S)throw new Error(`Unexpected end of ${h}`);a=S.i,N=S.tagContent}let O=new R(f);y&&(O[":@"]=y),O.add(i.textNodeName,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(t,O,this.readonlyMatcher,E)}else{if(b){({tagName:f,tagExp:p}=Ws(i.transformTagName,f,p,i));let N=new R(f);y&&(N[":@"]=y),this.addChild(t,N,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(f)){let N=new R(f);y&&(N[":@"]=y),this.addChild(t,N,this.readonlyMatcher,E),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let N=new R(f);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(t),y&&(N[":@"]=y),this.addChild(t,N,this.readonlyMatcher,E),t=N}n="",a=d}}}else n+=s[a];return e.child};function yc(s,e,t,n){this.options.captureMetaData||(n=void 0);let i=this.options.jPath?t.toString():t,r=this.options.updateTag(e.tagname,i,e[":@"]);r===!1||(typeof r=="string"&&(e.tagname=r),s.addChild(e,n))}function bc(s,e,t){let n=this.options.processEntities;if(!n||!n.enabled)return s;if(n.allowedTags){let i=this.options.jPath?t.toString():t;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,i)))return s}if(n.tagFilter){let i=this.options.jPath?t.toString():t;if(!n.tagFilter(e,i))return s}return this.entityDecoder.decode(s)}function wc(s,e,t,n){return s&&(n===void 0&&(n=e.child.length===0),s=this.parseTextData(s,e.tagname,t,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),s!==void 0&&s!==""&&e.add(this.options.textNodeName,s),s=""),s}function Sc(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Nc(s,e,t=">"){let n=0,i=s.length,r=t.charCodeAt(0),o=t.length>1?t.charCodeAt(1):-1,a="",l=e;for(let c=e;c<i;c++){let u=s.charCodeAt(c);if(n)u===n&&(n=0);else if(u===34||u===39)n=u;else if(u===r)if(o!==-1){if(s.charCodeAt(c+1)===o)return a+=s.substring(l,c),{data:a,index:c}}else return a+=s.substring(l,c),{data:a,index:c};else u===9&&!n&&(a+=s.substring(l,c)+" ",l=c+1)}}function Te(s,e,t,n){let i=s.indexOf(e,t);if(i===-1)throw new Error(n);return i+e.length-1}function Ac(s,e,t,n){let i=s.indexOf(e,t);if(i===-1)throw new Error(n);return i}function Hs(s,e,t,n=">"){let i=Nc(s,e+1,n);if(!i)return;let r=i.data,o=i.index,a=r.search(/\s/),l=r,c=!0;a!==-1&&(l=r.substring(0,a),r=r.substring(a+1).trimStart());let u=l;if(t){let f=l.indexOf(":");f!==-1&&(l=l.substr(f+1),c=l!==i.data.substr(f+1))}return{tagName:l,tagExp:r,closeIndex:o,attrExpPresent:c,rawTagName:u}}function Ec(s,e,t){let n=t,i=1,r=s.length;for(;t<r;t++)if(s[t]==="<"){let o=s.charCodeAt(t+1);if(o===47){let a=Ac(s,">",t,`${e} is not closed`);if(s.substring(t+2,a).trim()===e&&(i--,i===0))return{tagContent:s.substring(n,t),i:a};t=a}else if(o===63)t=Te(s,"?>",t+1,"StopNode is not closed.");else if(o===33&&s.charCodeAt(t+2)===45&&s.charCodeAt(t+3)===45)t=Te(s,"-->",t+3,"StopNode is not closed.");else if(o===33&&s.charCodeAt(t+2)===91)t=Te(s,"]]>",t,"StopNode is not closed.")-2;else{let a=Hs(s,t,!1);a&&((a&&a.tagName)===e&&a.tagExp[a.tagExp.length-1]!=="/"&&i++,t=a.closeIndex)}}}function Xs(s,e,t){if(e&&typeof s=="string"){let n=s.trim();return n==="true"?!0:n==="false"?!1:Ds(s,t)}else return sr(s)?s:""}function Ws(s,e,t,n){if(s){let i=s(e);t===e&&(t=i),e=i}return e=vr(e,n),{tagName:e,tagExp:t}}function vr(s,e){if(It.includes(s))throw new Error(`[SECURITY] Invalid name: "${s}" is a reserved JavaScript keyword that could cause prototype pollution`);return Ve.includes(s)?e.onDangerousProperty(s):s}var zs=R.getMetaDataSymbol();function vc(s,e){if(!s||typeof s!="object")return{};if(!e)return s;let t={};for(let n in s)if(n.startsWith(e)){let i=n.substring(e.length);t[i]=s[n]}else t[n]=s[n];return t}function Qs(s,e,t,n){return Tr(s,e,t,n)}function Tr(s,e,t,n){let i,r={};for(let o=0;o<s.length;o++){let a=s[o],l=Tc(a);if(l!==void 0&&l!==e.textNodeName){let c=vc(a[":@"]||{},e.attributeNamePrefix);t.push(l,c)}if(l===e.textNodeName)i===void 0?i=a[l]:i+=""+a[l];else{if(l===void 0)continue;if(a[l]){let c=Tr(a[l],e,t,n),u=Oc(c,e);if(Object.keys(c).length===0&&e.alwaysCreateTextNode&&(c[e.textNodeName]=""),a[":@"]?Cc(c,a[":@"],n,e):Object.keys(c).length===1&&c[e.textNodeName]!==void 0&&!e.alwaysCreateTextNode?c=c[e.textNodeName]:Object.keys(c).length===0&&(e.alwaysCreateTextNode?c[e.textNodeName]="":c=""),a[zs]!==void 0&&typeof c=="object"&&c!==null&&(c[zs]=a[zs]),r[l]!==void 0&&Object.prototype.hasOwnProperty.call(r,l))Array.isArray(r[l])||(r[l]=[r[l]]),r[l].push(c);else{let f=e.jPath?n.toString():n;e.isArray(l,f,u)?r[l]=[c]:r[l]=c}l!==void 0&&l!==e.textNodeName&&t.pop()}}}return typeof i=="string"?i.length>0&&(r[e.textNodeName]=i):i!==void 0&&(r[e.textNodeName]=i),r}function Tc(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];if(n!==":@")return n}}function Cc(s,e,t,n){if(e){let i=Object.keys(e),r=i.length;for(let o=0;o<r;o++){let a=i[o],l=a.startsWith(n.attributeNamePrefix)?a.substring(n.attributeNamePrefix.length):a,c=n.jPath?t.toString()+"."+l:t;n.isArray(a,c,!0,!0)?s[a]=[e[a]]:s[a]=e[a]}}}function Oc(s,e){let{textNodeName:t}=e,n=Object.keys(s).length;return!!(n===0||n===1&&(s[t]||typeof s[t]=="boolean"||s[t]===0))}var Ce=class{constructor(e){this.externalEntities={},this.options=Er(e)}parse(e,t){if(typeof e!="string"&&e.toString)e=e.toString();else if(typeof e!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});let r=ar(e,t);if(r!==!0)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}let n=new De(this.options,this.externalEntities),i=n.parseXml(e);return this.options.preserveOrder||i===void 0?i:Qs(i,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(e.indexOf("&")!==-1||e.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return R.getMetaDataSymbol()}};function _t(s){return String(s).replace(/--/g,"- -").replace(/--/g,"- -").replace(/-$/,"- ")}function xt(s){return String(s).replace(/\]\]>/g,"]]]]><![CDATA[>")}function te(s){return String(s).replace(/"/g,""").replace(/'/g,"'")}var kc=`
|
|
146
|
+
`;function en(s,e){let t="";e.format&&(t=kc);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let r=0;r<e.stopNodes.length;r++){let o=e.stopNodes[r];typeof o=="string"?n.push(new U(o)):o instanceof U&&n.push(o)}let i=new W;return Or(s,e,t,i,n)}function Or(s,e,t,n,i){let r="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(s)){if(s!=null){let a=s.toString();return a=Zs(a,e),a}return""}for(let a=0;a<s.length;a++){let l=s[a],c=Ir(l);if(c===void 0)continue;let u=Ic(l[":@"],e);n.push(c,u);let f=qc(n,i);if(c===e.textNodeName){let m=l[c];f||(m=e.tagValueProcessor(c,m),m=Zs(m,e)),o&&(r+=t),r+=m,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(r+=t);let m=l[c][0][e.textNodeName],b=xt(m);r+=`<![CDATA[${b}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){let m=l[c][0][e.textNodeName],b=_t(m);r+=t+`<!--${b}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let m=Cr(l[":@"],e,f);r+=(c==="?xml"?"":t)+`<${c}${m}?>`,o=!0,n.pop();continue}let h=t;h!==""&&(h+=e.indentBy);let p=Cr(l[":@"],e,f),g=t+`<${c}${p}`,d;f?d=kr(l[c],e):d=Or(l[c],e,h,n,i),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?r+=g+">":r+=g+"/>":(!d||d.length===0)&&e.suppressEmptyNode?r+=g+"/>":d&&d.endsWith(">")?r+=g+`>${d}${t}</${c}>`:(r+=g+">",d&&t!==""&&(d.includes("/>")||d.includes("</"))?r+=t+e.indentBy+d+t:r+=d,r+=`</${c}>`),o=!0,n.pop()}return r}function Ic(s,e){if(!s||e.ignoreAttributes)return null;let t={},n=!1;for(let i in s){if(!Object.prototype.hasOwnProperty.call(s,i))continue;let r=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;t[r]=te(s[i]),n=!0}return n?t:null}function kr(s,e){if(!Array.isArray(s))return s!=null?s.toString():"";let t="";for(let n=0;n<s.length;n++){let i=s[n],r=Ir(i);if(r===e.textNodeName)t+=i[r];else if(r===e.cdataPropName)t+=i[r][0][e.textNodeName];else if(r===e.commentPropName)t+=i[r][0][e.textNodeName];else{if(r&&r[0]==="?")continue;if(r){let o=Lc(i[":@"],e),a=kr(i[r],e);!a||a.length===0?t+=`<${r}${o}/>`:t+=`<${r}${o}>${a}</${r}>`}}}return t}function Lc(s,e){let t="";if(s&&!e.ignoreAttributes)for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=s[n];i===!0&&e.suppressBooleanAttributes?t+=` ${n.substr(e.attributeNamePrefix.length)}`:t+=` ${n.substr(e.attributeNamePrefix.length)}="${te(i)}"`}return t}function Ir(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];if(Object.prototype.hasOwnProperty.call(s,n)&&n!==":@")return n}}function Cr(s,e,t){let n="";if(s&&!e.ignoreAttributes)for(let i in s){if(!Object.prototype.hasOwnProperty.call(s,i))continue;let r;t?r=s[i]:(r=e.attributeValueProcessor(i,s[i]),r=Zs(r,e)),r===!0&&e.suppressBooleanAttributes?n+=` ${i.substr(e.attributeNamePrefix.length)}`:n+=` ${i.substr(e.attributeNamePrefix.length)}="${te(r)}"`}return n}function qc(s,e){if(!e||e.length===0)return!1;for(let t=0;t<e.length;t++)if(s.matches(e[t]))return!0;return!1}function Zs(s,e){if(s&&s.length>0&&e.processEntities)for(let t=0;t<e.entities.length;t++){let n=e.entities[t];s=s.replace(n.regex,n.val)}return s}function tn(s){return typeof s=="function"?s:Array.isArray(s)?e=>{for(let t of s)if(typeof t=="string"&&e===t||t instanceof RegExp&&t.test(e))return!0}:()=>!1}var Pc={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(s,e){return e},attributeValueProcessor:function(s,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function B(s){if(this.options=Object.assign({},Pc,s),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let t=this.options.stopNodes[e];typeof t=="string"?this.stopNodeExpressions.push(new U(t)):t instanceof U&&this.stopNodeExpressions.push(t)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=tn(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Mc),this.processTextOrObjNode=_c,this.options.format?(this.indentate=xc,this.tagEndChar=`>
|
|
147
|
+
`,this.newLine=`
|
|
148
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}B.prototype.build=function(s){if(this.options.preserveOrder)return en(s,this.options);{Array.isArray(s)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(s={[this.options.arrayNodeName]:s});let e=new W;return this.j2x(s,0,e).val}};B.prototype.j2x=function(s,e,t){let n="",i="";if(this.options.maxNestedTags&&t.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let r=this.options.jPath?t.toString():t,o=this.checkStopNode(t);for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a))if(typeof s[a]>"u")this.isAttribute(a)&&(i+="");else if(s[a]===null)this.isAttribute(a)||a===this.options.cdataPropName||a===this.options.commentPropName?i+="":a[0]==="?"?i+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(s[a]instanceof Date)i+=this.buildTextValNode(s[a],a,"",e,t);else if(typeof s[a]!="object"){let l=this.isAttribute(a);if(l&&!this.ignoreAttributesFn(l,r))n+=this.buildAttrPairStr(l,""+s[a],o);else if(!l)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+s[a]);i+=this.replaceEntitiesValue(c)}else{t.push(a);let c=this.checkStopNode(t);if(t.pop(),c){let u=""+s[a];u===""?i+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:i+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else i+=this.buildTextValNode(s[a],a,"",e,t)}}else if(Array.isArray(s[a])){let l=s[a].length,c="",u="";for(let f=0;f<l;f++){let h=s[a][f];if(!(typeof h>"u"))if(h===null)a[0]==="?"?i+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof h=="object")if(this.options.oneListGroup){t.push(a);let p=this.j2x(h,e+1,t);t.pop(),c+=p.val,this.options.attributesGroupName&&h.hasOwnProperty(this.options.attributesGroupName)&&(u+=p.attrStr)}else c+=this.processTextOrObjNode(h,a,e,t);else if(this.options.oneListGroup){let p=this.options.tagValueProcessor(a,h);p=this.replaceEntitiesValue(p),c+=p}else{t.push(a);let p=this.checkStopNode(t);if(t.pop(),p){let g=""+h;g===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+g+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(h,a,"",e,t)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),i+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let l=Object.keys(s[a]),c=l.length;for(let u=0;u<c;u++)n+=this.buildAttrPairStr(l[u],""+s[a][l[u]],o)}else i+=this.processTextOrObjNode(s[a],a,e,t);return{attrStr:n,val:i}};B.prototype.buildAttrPairStr=function(s,e,t){return t||(e=this.options.attributeValueProcessor(s,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+s:" "+s+'="'+te(e)+'"'};function _c(s,e,t,n){let i=this.extractAttributes(s);if(n.push(e,i),this.checkStopNode(n)){let a=this.buildRawContent(s),l=this.buildAttributesForStopNode(s);return n.pop(),this.buildObjectNode(a,e,l,t)}let o=this.j2x(s,t+1,n);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,o.attrStr,t,n):s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],e,o.attrStr,t,n):this.buildObjectNode(o.val,e,o.attrStr,t)}B.prototype.extractAttributes=function(s){if(!s||typeof s!="object")return null;let e={},t=!1;if(this.options.attributesGroupName&&s[this.options.attributesGroupName]){let n=s[this.options.attributesGroupName];for(let i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let r=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):i;e[r]=te(n[i]),t=!0}}else for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=this.isAttribute(n);i&&(e[i]=te(s[n]),t=!0)}return t?e:null};B.prototype.buildRawContent=function(s){if(typeof s=="string")return s;if(typeof s!="object"||s===null)return String(s);if(s[this.options.textNodeName]!==void 0)return s[this.options.textNodeName];let e="";for(let t in s){if(!Object.prototype.hasOwnProperty.call(s,t)||this.isAttribute(t)||this.options.attributesGroupName&&t===this.options.attributesGroupName)continue;let n=s[t];if(t===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let i of n)if(typeof i=="string"||typeof i=="number")e+=`<${t}>${i}</${t}>`;else if(typeof i=="object"&&i!==null){let r=this.buildRawContent(i),o=this.buildAttributesForStopNode(i);r===""?e+=`<${t}${o}/>`:e+=`<${t}${o}>${r}</${t}>`}}else if(typeof n=="object"&&n!==null){let i=this.buildRawContent(n),r=this.buildAttributesForStopNode(n);i===""?e+=`<${t}${r}/>`:e+=`<${t}${r}>${i}</${t}>`}else e+=`<${t}>${n}</${t}>`}return e};B.prototype.buildAttributesForStopNode=function(s){if(!s||typeof s!="object")return"";let e="";if(this.options.attributesGroupName&&s[this.options.attributesGroupName]){let t=s[this.options.attributesGroupName];for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n,r=t[n];r===!0&&this.options.suppressBooleanAttributes?e+=" "+i:e+=" "+i+'="'+r+'"'}}else for(let t in s){if(!Object.prototype.hasOwnProperty.call(s,t))continue;let n=this.isAttribute(t);if(n){let i=s[t];i===!0&&this.options.suppressBooleanAttributes?e+=" "+n:e+=" "+n+'="'+i+'"'}}return e};B.prototype.buildObjectNode=function(s,e,t,n){if(s==="")return e[0]==="?"?this.indentate(n)+"<"+e+t+"?"+this.tagEndChar:this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar;if(e[0]==="?")return this.indentate(n)+"<"+e+t+"?"+this.tagEndChar;{let i="</"+e+this.tagEndChar,r="";return e[0]==="?"&&(r="?",i=""),(t||t==="")&&s.indexOf("<")===-1?this.indentate(n)+"<"+e+t+r+">"+s+i:this.options.commentPropName!==!1&&e===this.options.commentPropName&&r.length===0?this.indentate(n)+`<!--${s}-->`+this.newLine:this.indentate(n)+"<"+e+t+r+this.tagEndChar+s+this.indentate(n)+i}};B.prototype.closeTag=function(s){let e="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${s}`,e};B.prototype.checkStopNode=function(s){if(!this.stopNodeExpressions||this.stopNodeExpressions.length===0)return!1;for(let e=0;e<this.stopNodeExpressions.length;e++)if(s.matches(this.stopNodeExpressions[e]))return!0;return!1};B.prototype.buildTextValNode=function(s,e,t,n,i){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName){let r=xt(s);return this.indentate(n)+`<![CDATA[${r}]]>`+this.newLine}else if(this.options.commentPropName!==!1&&e===this.options.commentPropName){let r=_t(s);return this.indentate(n)+`<!--${r}-->`+this.newLine}else{if(e[0]==="?")return this.indentate(n)+"<"+e+t+"?"+this.tagEndChar;{let r=this.options.tagValueProcessor(e,s);return r=this.replaceEntitiesValue(r),r===""?this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+t+">"+r+"</"+e+this.tagEndChar}}};B.prototype.replaceEntitiesValue=function(s){if(s&&s.length>0&&this.options.processEntities)for(let e=0;e<this.options.entities.length;e++){let t=this.options.entities[e];s=s.replace(t.regex,t.val)}return s};function xc(s){return this.options.indentBy.repeat(s)}function Mc(s){return s.startsWith(this.options.attributeNamePrefix)&&s!==this.options.textNodeName?s.substr(this.attrPrefixLen):!1}var sn=B;var Rs=Fs(xr(),1),Yi=Fs($l(),1);function $c(s,e){let t=s.slice(0,e).split(/\r\n|\n|\r/g);return[t.length,t.pop().length+1]}function Rc(s,e,t){let n=s.split(/\r\n|\n|\r/g),i="",r=(Math.log10(e+1)|0)+1;for(let o=e-1;o<=e+1;o++){let a=n[o-1];a&&(i+=o.toString().padEnd(r," "),i+=": ",i+=a,i+=`
|
|
149
|
+
`,o===e&&(i+=" ".repeat(r+t+2),i+=`^
|
|
150
|
+
`))}return i}var T=class extends Error{line;column;codeblock;constructor(e,t){let[n,i]=$c(t.toml,t.ptr),r=Rc(t.toml,n,i);super(`Invalid TOML document: ${e}
|
|
151
|
+
|
|
152
|
+
${r}`,t),this.line=n,this.column=i,this.codeblock=r}};function Fc(s,e){let t=0;for(;s[e-++t]==="\\";);return--t&&t%2}function $t(s,e=0,t=s.length){let n=s.indexOf(`
|
|
153
|
+
`,e);return s[n-1]==="\r"&&n--,n<=t?n:-1}function Oe(s,e){for(let t=e;t<s.length;t++){let n=s[t];if(n===`
|
|
154
|
+
`)return t;if(n==="\r"&&s[t+1]===`
|
|
155
|
+
`)return t+1;if(n<" "&&n!==" "||n==="\x7F")throw new T("control characters are not allowed in comments",{toml:s,ptr:e})}return s.length}function K(s,e,t,n){let i;for(;;){for(;(i=s[e])===" "||i===" "||!t&&(i===`
|
|
156
|
+
`||i==="\r"&&s[e+1]===`
|
|
157
|
+
`);)e++;if(n||i!=="#")break;e=Oe(s,e)}return e}function Mr(s,e,t,n,i=!1){if(!n)return e=$t(s,e),e<0?s.length:e;for(let r=e;r<s.length;r++){let o=s[r];if(o==="#")r=$t(s,r);else{if(o===t)return r+1;if(o===n||i&&(o===`
|
|
158
|
+
`||o==="\r"&&s[r+1]===`
|
|
159
|
+
`))return r}}throw new T("cannot find end of structure",{toml:s,ptr:e})}function Rt(s,e){let t=s[e],n=t===s[e+1]&&s[e+1]===s[e+2]?s.slice(e,e+3):t;e+=n.length-1;do e=s.indexOf(n,++e);while(e>-1&&t!=="'"&&Fc(s,e));return e>-1&&(e+=n.length,n.length>1&&(s[e]===t&&e++,s[e]===t&&e++)),e}var Bc=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i,Je=class s extends Date{#t=!1;#s=!1;#e=null;constructor(e){let t=!0,n=!0,i="Z";if(typeof e=="string"){let r=e.match(Bc);r?(r[1]||(t=!1,e=`0000-01-01T${e}`),n=!!r[2],n&&e[10]===" "&&(e=e.replace(" ","T")),r[2]&&+r[2]>23?e="":(i=r[3]||null,e=e.toUpperCase(),!i&&n&&(e+="Z"))):e=""}super(e),isNaN(this.getTime())||(this.#t=t,this.#s=n,this.#e=i)}isDateTime(){return this.#t&&this.#s}isLocal(){return!this.#t||!this.#s||!this.#e}isDate(){return this.#t&&!this.#s}isTime(){return this.#s&&!this.#t}isValid(){return this.#t||this.#s}toISOString(){let e=super.toISOString();if(this.isDate())return e.slice(0,10);if(this.isTime())return e.slice(11,23);if(this.#e===null)return e.slice(0,-1);if(this.#e==="Z")return e;let t=+this.#e.slice(1,3)*60+ +this.#e.slice(4,6);return t=this.#e[0]==="-"?t:-t,new Date(this.getTime()-t*6e4).toISOString().slice(0,-1)+this.#e}static wrapAsOffsetDateTime(e,t="Z"){let n=new s(e);return n.#e=t,n}static wrapAsLocalDateTime(e){let t=new s(e);return t.#e=null,t}static wrapAsLocalDate(e){let t=new s(e);return t.#s=!1,t.#e=null,t}static wrapAsLocalTime(e){let t=new s(e);return t.#t=!1,t.#e=null,t}};var Vc=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,jc=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,Uc=/^[+-]?0[0-9_]/,Kc=/^[0-9a-f]{2,8}$/i,$r={b:"\b",t:" ",n:`
|
|
160
|
+
`,f:"\f",r:"\r",e:"\x1B",'"':'"',"\\":"\\"};function Ft(s,e=0,t=s.length){let n=s[e]==="'",i=s[e++]===s[e]&&s[e]===s[e+1];i&&(t-=2,s[e+=2]==="\r"&&e++,s[e]===`
|
|
161
|
+
`&&e++);let r=0,o,a="",l=e;for(;e<t-1;){let c=s[e++];if(c===`
|
|
162
|
+
`||c==="\r"&&s[e]===`
|
|
163
|
+
`){if(!i)throw new T("newlines are not allowed in strings",{toml:s,ptr:e-1})}else if(c<" "&&c!==" "||c==="\x7F")throw new T("control characters are not allowed in strings",{toml:s,ptr:e-1});if(o){if(o=!1,c==="x"||c==="u"||c==="U"){let u=s.slice(e,e+=c==="x"?2:c==="u"?4:8);if(!Kc.test(u))throw new T("invalid unicode escape",{toml:s,ptr:r});try{a+=String.fromCodePoint(parseInt(u,16))}catch{throw new T("invalid unicode escape",{toml:s,ptr:r})}}else if(i&&(c===`
|
|
164
|
+
`||c===" "||c===" "||c==="\r")){if(e=K(s,e-1,!0),s[e]!==`
|
|
165
|
+
`&&s[e]!=="\r")throw new T("invalid escape: only line-ending whitespace may be escaped",{toml:s,ptr:r});e=K(s,e)}else if(c in $r)a+=$r[c];else throw new T("unrecognized escape sequence",{toml:s,ptr:r});l=e}else!n&&c==="\\"&&(r=e-1,o=!0,a+=s.slice(l,r))}return a+s.slice(l,t-1)}function Rr(s,e,t,n){if(s==="true")return!0;if(s==="false")return!1;if(s==="-inf")return-1/0;if(s==="inf"||s==="+inf")return 1/0;if(s==="nan"||s==="+nan"||s==="-nan")return NaN;if(s==="-0")return n?0n:0;let i=Vc.test(s);if(i||jc.test(s)){if(Uc.test(s))throw new T("leading zeroes are not allowed",{toml:e,ptr:t});s=s.replace(/_/g,"");let o=+s;if(isNaN(o))throw new T("invalid number",{toml:e,ptr:t});if(i){if((i=!Number.isSafeInteger(o))&&!n)throw new T("integer value cannot be represented losslessly",{toml:e,ptr:t});(i||n===!0)&&(o=BigInt(s))}return o}let r=new Je(s);if(!r.isValid())throw new T("invalid value",{toml:e,ptr:t});return r}function Yc(s,e,t){let n=s.slice(e,t),i=n.indexOf("#");return i>-1&&(Oe(s,i),n=n.slice(0,i)),[n.trimEnd(),i]}function Ge(s,e,t,n,i){if(n===0)throw new T("document contains excessively nested structures. aborting.",{toml:s,ptr:e});let r=s[e];if(r==="["||r==="{"){let[l,c]=r==="["?Br(s,e,n,i):Fr(s,e,n,i);if(t){if(c=K(s,c),s[c]===",")c++;else if(s[c]!==t)throw new T("expected comma or end of structure",{toml:s,ptr:c})}return[l,c]}let o;if(r==='"'||r==="'"){o=Rt(s,e);let l=Ft(s,e,o);if(t){if(o=K(s,o),s[o]&&s[o]!==","&&s[o]!==t&&s[o]!==`
|
|
166
|
+
`&&s[o]!=="\r")throw new T("unexpected character encountered",{toml:s,ptr:o});o+=+(s[o]===",")}return[l,o]}o=Mr(s,e,",",t);let a=Yc(s,e,o-+(s[o-1]===","));if(!a[0])throw new T("incomplete key-value declaration: no value specified",{toml:s,ptr:e});return t&&a[1]>-1&&(o=K(s,e+a[1]),o+=+(s[o]===",")),[Rr(a[0],s,e,i),o]}var Dc=/^[a-zA-Z0-9-_]+[ \t]*$/;function Bt(s,e,t="="){let n=e-1,i=[],r=s.indexOf(t,e);if(r<0)throw new T("incomplete key-value: cannot find end of key",{toml:s,ptr:e});do{let o=s[e=++n];if(o!==" "&&o!==" ")if(o==='"'||o==="'"){if(o===s[e+1]&&o===s[e+2])throw new T("multiline strings are not allowed in keys",{toml:s,ptr:e});let a=Rt(s,e);if(a<0)throw new T("unfinished string encountered",{toml:s,ptr:e});n=s.indexOf(".",a);let l=s.slice(a,n<0||n>r?r:n),c=$t(l);if(c>-1)throw new T("newlines are not allowed in keys",{toml:s,ptr:e+n+c});if(l.trimStart())throw new T("found extra tokens after the string part",{toml:s,ptr:a});if(r<a&&(r=s.indexOf(t,a),r<0))throw new T("incomplete key-value: cannot find end of key",{toml:s,ptr:e});i.push(Ft(s,e,a))}else{n=s.indexOf(".",e);let a=s.slice(e,n<0||n>r?r:n);if(!Dc.test(a))throw new T("only letter, numbers, dashes and underscores are allowed in keys",{toml:s,ptr:e});i.push(a.trimEnd())}}while(n+1&&n<r);return[i,K(s,r+1,!0,!0)]}function Fr(s,e,t,n){let i={},r=new Set,o;for(e++;(o=s[e++])!=="}"&&o;){if(o===",")throw new T("expected value, found comma",{toml:s,ptr:e-1});if(o==="#")e=Oe(s,e);else if(o!==" "&&o!==" "&&o!==`
|
|
167
|
+
`&&o!=="\r"){let a,l=i,c=!1,[u,f]=Bt(s,e-1);for(let g=0;g<u.length;g++){if(g&&(l=c?l[a]:l[a]={}),a=u[g],(c=Object.hasOwn(l,a))&&(typeof l[a]!="object"||r.has(l[a])))throw new T("trying to redefine an already defined value",{toml:s,ptr:e});!c&&a==="__proto__"&&Object.defineProperty(l,a,{enumerable:!0,configurable:!0,writable:!0})}if(c)throw new T("trying to redefine an already defined value",{toml:s,ptr:e});let[h,p]=Ge(s,f,"}",t-1,n);r.add(h),l[a]=h,e=p}}if(!o)throw new T("unfinished table encountered",{toml:s,ptr:e});return[i,e]}function Br(s,e,t,n){let i=[],r;for(e++;(r=s[e++])!=="]"&&r;){if(r===",")throw new T("expected value, found comma",{toml:s,ptr:e-1});if(r==="#")e=Oe(s,e);else if(r!==" "&&r!==" "&&r!==`
|
|
168
|
+
`&&r!=="\r"){let o=Ge(s,e-1,"]",t-1,n);i.push(o[0]),e=o[1]}}if(!r)throw new T("unfinished array encountered",{toml:s,ptr:e});return[i,e]}function Vr(s,e,t,n){let i=e,r=t,o,a=!1,l;for(let c=0;c<s.length;c++){if(c){if(i=a?i[o]:i[o]={},r=(l=r[o]).c,n===0&&(l.t===1||l.t===2))return null;if(l.t===2){let u=i.length-1;i=i[u],r=r[u].c}}if(o=s[c],(a=Object.hasOwn(i,o))&&r[o]?.t===0&&r[o]?.d)return null;a||(o==="__proto__"&&(Object.defineProperty(i,o,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(r,o,{enumerable:!0,configurable:!0,writable:!0})),r[o]={t:c<s.length-1&&n===2?3:n,d:!1,i:0,c:{}})}if(l=r[o],l.t!==n&&!(n===1&&l.t===3)||(n===2&&(l.d||(l.d=!0,i[o]=[]),i[o].push(i={}),l.c[l.i++]=l={t:1,d:!1,i:0,c:{}}),l.d))return null;if(l.d=!0,n===1)i=a?i[o]:i[o]={};else if(n===0&&a)return null;return[o,i,l.c]}function Vt(s,{maxDepth:e=1e3,integersAsBigInt:t}={}){let n={},i={},r=n,o=i;for(let a=K(s,0);a<s.length;){if(s[a]==="["){let l=s[++a]==="[",c=Bt(s,a+=+l,"]");if(l){if(s[c[1]-1]!=="]")throw new T("expected end of table declaration",{toml:s,ptr:c[1]-1});c[1]++}let u=Vr(c[0],n,i,l?2:1);if(!u)throw new T("trying to redefine an already defined table or value",{toml:s,ptr:a});o=u[2],r=u[1],a=c[1]}else{let l=Bt(s,a),c=Vr(l[0],r,o,0);if(!c)throw new T("trying to redefine an already defined table or value",{toml:s,ptr:a});let u=Ge(s,l[1],void 0,e,t);c[1][c[0]]=u[0],a=u[1]}if(a=K(s,a,!0),s[a]&&s[a]!==`
|
|
169
|
+
`&&s[a]!=="\r")throw new T("each key-value declaration must be followed by an end-of-line",{toml:s,ptr:a});a=K(s,a)}return n}var jr=/^[a-z0-9-_]+$/i;function We(s){let e=typeof s;if(e==="object"){if(Array.isArray(s))return"array";if(s instanceof Date)return"date"}return e}function Jc(s){for(let e=0;e<s.length;e++)if(We(s[e])!=="object")return!1;return s.length!=0}function on(s){return JSON.stringify(s).replace(/\x7f/g,"\\u007f")}function an(s,e,t,n){if(t===0)throw new Error("Could not stringify the object: maximum object depth exceeded");if(e==="number")return isNaN(s)?"nan":s===1/0?"inf":s===-1/0?"-inf":n&&Number.isInteger(s)?s.toFixed(1):s.toString();if(e==="bigint"||e==="boolean")return s.toString();if(e==="string")return on(s);if(e==="date"){if(isNaN(s.getTime()))throw new TypeError("cannot serialize invalid date");return s.toISOString()}if(e==="object")return Gc(s,t,n);if(e==="array")return Wc(s,t,n)}function Gc(s,e,t){let n=Object.keys(s);if(n.length===0)return"{}";let i="{ ";for(let r=0;r<n.length;r++){let o=n[r];r&&(i+=", "),i+=jr.test(o)?o:on(o),i+=" = ",i+=an(s[o],We(s[o]),e-1,t)}return i+" }"}function Wc(s,e,t){if(s.length===0)return"[]";let n="[ ";for(let i=0;i<s.length;i++){if(i&&(n+=", "),s[i]===null||s[i]===void 0)throw new TypeError("arrays cannot contain null or undefined values");n+=an(s[i],We(s[i]),e-1,t)}return n+" ]"}function Hc(s,e,t,n){if(t===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let i="";for(let r=0;r<s.length;r++)i+=`${i&&`
|
|
170
|
+
`}[[${e}]]
|
|
171
|
+
`,i+=ln(0,s[r],e,t,n);return i}function ln(s,e,t,n,i){if(n===0)throw new Error("Could not stringify the object: maximum object depth exceeded");let r="",o="",a=Object.keys(e);for(let l=0;l<a.length;l++){let c=a[l];if(e[c]!==null&&e[c]!==void 0){let u=We(e[c]);if(u==="symbol"||u==="function")throw new TypeError(`cannot serialize values of type '${u}'`);let f=jr.test(c)?c:on(c);if(u==="array"&&Jc(e[c]))o+=(o&&`
|
|
172
|
+
`)+Hc(e[c],t?`${t}.${f}`:f,n-1,i);else if(u==="object"){let h=t?`${t}.${f}`:f;o+=(o&&`
|
|
173
|
+
`)+ln(h,e[c],h,n-1,i)}else r+=f,r+=" = ",r+=an(e[c],u,n,i),r+=`
|
|
174
|
+
`}}return s&&(r||!o)&&(r=r?`[${s}]
|
|
175
|
+
${r}`:`[${s}]`),r&&o?`${r}
|
|
176
|
+
${o}`:r||o}function cn(s,{maxDepth:e=1e3,numbersAsFloat:t=!1}={}){if(We(s)!=="object")throw new TypeError("stringify can only be called with an object");let n=ln(0,s,"",e,t);return n[n.length-1]!==`
|
|
177
|
+
`?n+`
|
|
178
|
+
`:n}var Ct=Fs(Ll(),1);var Tp=["yaml","xml","json","ini","csv","toml"],Cp=["yaml","json","xml","ini","csv","toml"];function Di(s){return typeof s=="string"&&Tp.includes(s)}function Ji(s){return typeof s=="string"&&Cp.includes(s)}var ql={inputFormat:"yaml",outputFormat:"yaml",raw:!1,compact:!1,prettyPrint:!1,indent:2,xmlAttributePrefix:"+@",xmlContentName:"+content",csvDelimiter:"",csvHeader:!0};function Op(s){let e=s.lastIndexOf("."),t=Math.max(s.lastIndexOf("/"),s.lastIndexOf("\\"));return e<=t+1?"":s.slice(e)}function Pl(s){switch(Op(s).toLowerCase()){case".yaml":case".yml":return"yaml";case".json":return"json";case".xml":return"xml";case".ini":return"ini";case".csv":case".tsv":return"csv";case".toml":return"toml";default:return null}}function kp(s,e,t){return Yi.default.parse(s,{delimiter:e||void 0,header:t,dynamicTyping:!0,skipEmptyLines:!0}).data}function Ip(s,e){return Array.isArray(s)||(s=[s]),Yi.default.unparse(s,{delimiter:e||","})}function Gi(s,e){let t=s.trim();if(!t)return null;switch(e.inputFormat){case"yaml":return D(Ct.default.parse(t,{maxAliasCount:100}));case"json":return D(JSON.parse(t));case"xml":{let n=new Ce({ignoreAttributes:!1,attributeNamePrefix:e.xmlAttributePrefix,textNodeName:e.xmlContentName,parseAttributeValue:!1,parseTagValue:!1,trimValues:!0,processEntities:!1,tagValueProcessor:(i,r)=>r===""?null:r});return D(n.parse(t))}case"ini":return D(Rs.parse(t));case"csv":return D(kp(t,e.csvDelimiter,e.csvHeader));case"toml":return D(Vt(t));default:{let n=e.inputFormat;throw new Error(`Invalid input format: ${n}`)}}}function _l(s){return Ct.default.parseAllDocuments(s).map(t=>D(t.toJS({maxAliasCount:100})))}function xl(s){let e=s.trimStart();if(e.startsWith("---")){let t=e.slice(3).match(/\n---(\n|$)/);if(t&&t.index!==void 0){let n=e.slice(3,t.index+3),i=e.slice(t.index+3+t[0].length);return{frontMatter:D(Ct.default.parse(n,{maxAliasCount:100})),content:i}}}if(e.startsWith("+++")){let t=e.slice(3).match(/\n\+\+\+(\n|$)/);if(t&&t.index!==void 0){let n=e.slice(3,t.index+3),i=e.slice(t.index+3+t[0].length);return{frontMatter:D(Vt(n)),content:i}}}if(e.startsWith("{{{")){let t=e.slice(3).match(/\n}}}(\n|$)/);if(t&&t.index!==void 0){let n=e.slice(3,t.index+3),i=e.slice(t.index+3+t[0].length);return{frontMatter:D(JSON.parse(n)),content:i}}}return null}function Ml(s,e){if(s===void 0)return"";switch(e.outputFormat){case"yaml":return Ct.default.stringify(s,{indent:e.indent}).trimEnd();case"json":return e.raw&&typeof s=="string"?s:e.compact?JSON.stringify(s):JSON.stringify(s,null,e.indent);case"xml":return new sn({ignoreAttributes:!1,attributeNamePrefix:e.xmlAttributePrefix,textNodeName:e.xmlContentName,format:e.prettyPrint||!e.compact,indentBy:" ".repeat(e.indent)}).build(s);case"ini":return!s||typeof s!="object"||Array.isArray(s)?"":Rs.stringify(s);case"csv":return Ip(s,e.csvDelimiter);case"toml":return!s||typeof s!="object"||Array.isArray(s)?"":cn(s);default:throw new Error(`Unknown output format: ${e.outputFormat}`)}}var Lp={name:"yq",summary:"command-line YAML/XML/INI/CSV/TOML processor",usage:"yq [OPTIONS] [FILTER] [FILE]",description:`yq uses jq-style expressions to query and transform data in various formats.
|
|
179
|
+
Supports YAML, JSON, XML, INI, CSV, and TOML with automatic format conversion.
|
|
180
|
+
|
|
181
|
+
EXAMPLES:
|
|
182
|
+
# Extract a value from YAML
|
|
183
|
+
yq '.name' config.yaml
|
|
184
|
+
yq '.users[0].email' data.yaml
|
|
185
|
+
|
|
186
|
+
# Filter arrays
|
|
187
|
+
yq '.items[] | select(.active == true)' data.yaml
|
|
188
|
+
yq '[.users[] | select(.age > 30)]' users.yaml
|
|
189
|
+
|
|
190
|
+
# Transform data
|
|
191
|
+
yq '.users | map({name, email})' data.yaml
|
|
192
|
+
yq '.items | sort_by(.price) | reverse' products.yaml
|
|
193
|
+
|
|
194
|
+
# Modify file in-place
|
|
195
|
+
yq -i '.version = "2.0"' config.yaml
|
|
196
|
+
|
|
197
|
+
# Read JSON, output YAML
|
|
198
|
+
yq -p json '.' config.json
|
|
199
|
+
|
|
200
|
+
# Read YAML, output JSON
|
|
201
|
+
yq -o json '.' config.yaml
|
|
202
|
+
yq -o json -c '.' config.yaml # compact JSON
|
|
203
|
+
|
|
204
|
+
# Parse TOML config files
|
|
205
|
+
yq '.package.name' Cargo.toml
|
|
206
|
+
yq -o json '.' pyproject.toml
|
|
207
|
+
|
|
208
|
+
# Parse XML (attributes use +@ prefix, text uses +content)
|
|
209
|
+
yq -p xml '.root.items.item[].name' data.xml
|
|
210
|
+
yq -p xml '.root.user["+@id"]' data.xml # XML attributes
|
|
211
|
+
|
|
212
|
+
# Parse INI config files
|
|
213
|
+
yq -p ini '.database.host' config.ini
|
|
214
|
+
yq -p ini '.server' config.ini -o json
|
|
215
|
+
|
|
216
|
+
# Parse CSV/TSV (auto-detects delimiter)
|
|
217
|
+
yq -p csv '.[0].name' data.csv
|
|
218
|
+
yq '.[0].name' data.tsv # auto-detected as CSV
|
|
219
|
+
yq -p csv '[.[] | select(.category == "A")]' data.csv
|
|
220
|
+
|
|
221
|
+
# Extract front-matter from markdown/content files
|
|
222
|
+
yq --front-matter '.title' post.md
|
|
223
|
+
|
|
224
|
+
# Convert between formats
|
|
225
|
+
yq -p json -o csv '.users' data.json # JSON to CSV
|
|
226
|
+
yq -p csv -o yaml '.' data.csv # CSV to YAML
|
|
227
|
+
yq -p ini -o json '.' config.ini # INI to JSON
|
|
228
|
+
yq -p xml -o json '.' data.xml # XML to JSON
|
|
229
|
+
yq -o toml '.' config.yaml # YAML to TOML
|
|
230
|
+
|
|
231
|
+
# Common jq functions work in yq:
|
|
232
|
+
yq 'keys' data.yaml # get object keys
|
|
233
|
+
yq 'length' data.yaml # array/string length
|
|
234
|
+
yq '.items | first' data.yaml # first element
|
|
235
|
+
yq '.items | last' data.yaml # last element
|
|
236
|
+
yq '.nums | add' data.yaml # sum numbers
|
|
237
|
+
yq '.nums | min' data.yaml # minimum
|
|
238
|
+
yq '.nums | max' data.yaml # maximum
|
|
239
|
+
yq '.items | unique' data.yaml # unique values
|
|
240
|
+
yq '.items | group_by(.type)' data.yaml`,options:["-p, --input-format=FMT input format: yaml (default), xml, json, ini, csv, toml","-o, --output-format=FMT output format: yaml (default), json, xml, ini, csv, toml","-i, --inplace modify file in-place","-r, --raw-output output strings without quotes (json only)","-c, --compact compact output (json only)","-e, --exit-status set exit status based on output","-s, --slurp read entire input into array","-n, --null-input don't read any input","-j, --join-output don't print newlines after each output","-f, --front-matter extract and process front-matter only","-P, --prettyPrint pretty print output","-I, --indent=N set indent level (default: 2)"," --xml-attribute-prefix=STR XML attribute prefix (default: +@)"," --xml-content-name=STR XML text content name (default: +content)"," --csv-delimiter=CHAR CSV delimiter (default: auto-detect)"," --csv-header CSV has header row (default: true)"," --help display this help and exit"]};function qp(s){let e={...ql,exitStatus:!1,slurp:!1,nullInput:!1,joinOutput:!1,inplace:!1,frontMatter:!1},t=!1,n=".",i=!1,r=[];for(let o=0;o<s.length;o++){let a=s[o];if(a.startsWith("--input-format=")){let l=a.slice(15);if(!Di(l))return he("yq",`--input-format=${l}`);e.inputFormat=l,t=!0}else if(a.startsWith("--output-format=")){let l=a.slice(16);if(!Ji(l))return he("yq",`--output-format=${l}`);e.outputFormat=l}else if(a.startsWith("--indent="))e.indent=Number.parseInt(a.slice(9),10);else if(a.startsWith("--xml-attribute-prefix="))e.xmlAttributePrefix=a.slice(23);else if(a.startsWith("--xml-content-name="))e.xmlContentName=a.slice(19);else if(a.startsWith("--csv-delimiter="))e.csvDelimiter=a.slice(16);else if(a==="--csv-header")e.csvHeader=!0;else if(a==="--no-csv-header")e.csvHeader=!1;else if(a==="-p"||a==="--input-format"){let l=s[++o];if(!Di(l))return he("yq",`${a} ${l}`);e.inputFormat=l,t=!0}else if(a==="-o"||a==="--output-format"){let l=s[++o];if(!Ji(l))return he("yq",`${a} ${l}`);e.outputFormat=l}else if(a==="-I"||a==="--indent")e.indent=Number.parseInt(s[++o],10);else if(a==="-r"||a==="--raw-output")e.raw=!0;else if(a==="-c"||a==="--compact")e.compact=!0;else if(a==="-e"||a==="--exit-status")e.exitStatus=!0;else if(a==="-s"||a==="--slurp")e.slurp=!0;else if(a==="-n"||a==="--null-input")e.nullInput=!0;else if(a==="-j"||a==="--join-output")e.joinOutput=!0;else if(a==="-i"||a==="--inplace")e.inplace=!0;else if(a==="-f"||a==="--front-matter")e.frontMatter=!0;else if(a==="-P"||a==="--prettyPrint")e.prettyPrint=!0;else if(a==="-")r.push("-");else{if(a.startsWith("--"))return he("yq",a);if(a.startsWith("-"))for(let l of a.slice(1))if(l==="r")e.raw=!0;else if(l==="c")e.compact=!0;else if(l==="e")e.exitStatus=!0;else if(l==="s")e.slurp=!0;else if(l==="n")e.nullInput=!0;else if(l==="j")e.joinOutput=!0;else if(l==="i")e.inplace=!0;else if(l==="f")e.frontMatter=!0;else if(l==="P")e.prettyPrint=!0;else return he("yq",`-${l}`);else i?r.push(a):(n=a,i=!0)}}return{options:e,filter:n,files:r,inputFormatExplicit:t}}var Fy={name:"yq",async execute(s,e){Qi(e.requireDefenseContext,"yq","execution entry");let t=(u,f)=>Zi(e.requireDefenseContext,"yq",u,f);if(zi(s))return Xi(Lp);let n=qp(s);if("exitCode"in n)return n;let{options:i,filter:r,files:o,inputFormatExplicit:a}=n;if(!a&&o.length>0&&o[0]!=="-"){let u=Pl(o[0]);u&&(i.inputFormat=u)}if(i.inplace&&(o.length===0||o[0]==="-"))return{stdout:"",stderr:`yq: -i/--inplace requires a file argument
|
|
241
|
+
`,exitCode:1};let l,c;if(i.nullInput)l="";else if(o.length===0||o.length===1&&o[0]==="-")l=Hi(e.stdin);else try{let u=e.fs.resolvePath(e.cwd,o[0]);c=u,l=await t("file read",()=>e.fs.readFile(u))}catch(u){if(u instanceof Bs)throw u;return{stdout:"",stderr:`yq: ${o[0]}: No such file or directory
|
|
242
|
+
`,exitCode:2}}try{let u=er(r),f,h={limits:e.limits?{maxIterations:e.limits.maxJqIterations}:void 0,env:e.env,coverage:e.coverage,requireDefenseContext:e.requireDefenseContext};if(i.nullInput)f=Be(null,u,h);else if(i.frontMatter){let y=xl(l);if(!y)return{stdout:"",stderr:`yq: no front-matter found
|
|
243
|
+
`,exitCode:1};f=Be(y.frontMatter,u,h)}else if(i.slurp){let y;i.inputFormat==="yaml"?y=_l(l):y=[Gi(l,i)],f=Be(y,u,h)}else{let y=Gi(l,i);f=Be(y,u,h)}let p=f.map(y=>Ml(y,i)),g=i.joinOutput?"":`
|
|
244
|
+
`,d=p.filter(y=>y!=="").join(g),m=d?i.joinOutput?d:`${d}
|
|
245
|
+
`:"";if(i.inplace&&c)return await t("in-place write",()=>e.fs.writeFile(c,m)),{stdout:"",stderr:"",exitCode:0};let b=i.exitStatus&&(f.length===0||f.every(y=>y==null||y===!1))?1:0;return{stdout:m,stderr:"",exitCode:b}}catch(u){if(u instanceof Bs)throw u;if(u instanceof Vs)return{stdout:"",stderr:`yq: ${js(u.message)}
|
|
246
|
+
`,exitCode:Vs.EXIT_CODE};let f=js(u.message);return f.includes("Unknown function")?{stdout:"",stderr:`yq: error: ${f}
|
|
247
|
+
`,exitCode:3}:{stdout:"",stderr:`yq: parse error: ${f}
|
|
248
|
+
`,exitCode:5}}}},By={name:"yq",flags:[{flag:"-r",type:"boolean"},{flag:"-c",type:"boolean"},{flag:"-s",type:"boolean"},{flag:"-i",type:"value",valueHint:"string"},{flag:"-o",type:"value",valueHint:"string"}],stdinType:"text",needsArgs:!0};export{Fy as a,By as b};
|
|
249
|
+
/*! Bundled license information:
|
|
250
|
+
|
|
251
|
+
smol-toml/dist/error.js:
|
|
252
|
+
smol-toml/dist/util.js:
|
|
253
|
+
smol-toml/dist/date.js:
|
|
254
|
+
smol-toml/dist/primitive.js:
|
|
255
|
+
smol-toml/dist/extract.js:
|
|
256
|
+
smol-toml/dist/struct.js:
|
|
257
|
+
smol-toml/dist/parse.js:
|
|
258
|
+
smol-toml/dist/stringify.js:
|
|
259
|
+
smol-toml/dist/index.js:
|
|
260
|
+
(*!
|
|
261
|
+
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
262
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
263
|
+
*
|
|
264
|
+
* Redistribution and use in source and binary forms, with or without
|
|
265
|
+
* modification, are permitted provided that the following conditions are met:
|
|
266
|
+
*
|
|
267
|
+
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
268
|
+
* list of conditions and the following disclaimer.
|
|
269
|
+
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
270
|
+
* this list of conditions and the following disclaimer in the
|
|
271
|
+
* documentation and/or other materials provided with the distribution.
|
|
272
|
+
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
273
|
+
* may be used to endorse or promote products derived from this software without
|
|
274
|
+
* specific prior written permission.
|
|
275
|
+
*
|
|
276
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
277
|
+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
278
|
+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
279
|
+
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
280
|
+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
281
|
+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
282
|
+
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
283
|
+
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
284
|
+
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
285
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
286
|
+
*)
|
|
287
|
+
*/
|