just-bash 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/dist/AGENTS.md +4 -2
- package/dist/bin/chunks/{alias-ZAQAKC5X.js → alias-PCMLRCRW.js} +1 -1
- package/dist/bin/chunks/{awk2-A73ZNFXJ.js → awk2-D2US2LMM.js} +1 -1
- package/dist/bin/{shell/chunks/base64-JPITV4MD.js → chunks/base64-RJX7MYGG.js} +1 -1
- package/dist/bin/{shell/chunks/basename-IYEP3AMY.js → chunks/basename-SO5MVUEX.js} +1 -1
- package/dist/bin/chunks/{bash-WZYHIZP6.js → bash-UT3MT5UU.js} +1 -1
- package/dist/bin/{shell/chunks/cat-XILYL7NW.js → chunks/cat-7TVSOZLU.js} +1 -1
- package/dist/bin/{shell/chunks/chmod-EXWX4N7Y.js → chunks/chmod-3DIKREF7.js} +1 -1
- package/dist/bin/chunks/{chunk-WEONT2KP.js → chunk-ACRTDIBO.js} +1 -1
- package/dist/bin/chunks/chunk-KGOUQS5A.js +2 -0
- package/dist/bin/chunks/chunk-OQRRF62X.js +10 -0
- package/dist/bin/chunks/chunk-QSDVMMYI.js +21 -0
- package/dist/bin/chunks/{clear-2APRIRCF.js → clear-CI7A5IXQ.js} +1 -1
- package/dist/bin/chunks/column-TSFEMTG6.js +8 -0
- package/dist/bin/chunks/{comm-KY3COLF5.js → comm-CPIFQTKY.js} +1 -1
- package/dist/bin/{shell/chunks/cp-HES4UN7K.js → chunks/cp-XXWRVG2D.js} +1 -1
- package/dist/bin/chunks/{curl-BN5M3BUX.js → curl-LCMREE7R.js} +1 -1
- package/dist/bin/chunks/{cut-JSIPAKOX.js → cut-VCKWLT2T.js} +1 -1
- package/dist/bin/chunks/{date-CU4J7GHI.js → date-IQLPMFYI.js} +1 -1
- package/dist/bin/{shell/chunks/diff-W4JRNHXW.js → chunks/diff-GI3QVUGD.js} +1 -1
- package/dist/bin/chunks/{dirname-UTCUUILN.js → dirname-EES7TR26.js} +1 -1
- package/dist/bin/chunks/{du-2JU3PUTM.js → du-ZONJJZUK.js} +1 -1
- package/dist/bin/{shell/chunks/echo-HKLPYMNC.js → chunks/echo-WSKTON6U.js} +1 -1
- package/dist/bin/chunks/{env-2SBJNP7X.js → env-YLLSNZZN.js} +1 -1
- package/dist/bin/chunks/expand-77K5HH2M.js +11 -0
- package/dist/bin/chunks/{expr-M74QZQ6C.js → expr-RMGXYNQJ.js} +1 -1
- package/dist/bin/{shell/chunks/file-QPD3U2H7.js → chunks/file-XMPFXMUJ.js} +1 -1
- package/dist/bin/{shell/chunks/find-TRBVCSI6.js → chunks/find-P6UQXFKX.js} +1 -1
- package/dist/bin/chunks/fold-452R4I2C.js +12 -0
- package/dist/bin/{shell/chunks/grep-BEZRXAWL.js → chunks/grep-L5HBHEEQ.js} +1 -1
- package/dist/bin/chunks/{gzip-VLTXZB2V.js → gzip-MNCJB6OR.js} +1 -1
- package/dist/bin/chunks/{head-YGMY3DHE.js → head-DYK37Z24.js} +1 -1
- package/dist/bin/chunks/{help-UEF7LW7F.js → help-7C5JICNL.js} +1 -1
- package/dist/bin/{shell/chunks/history-OGBCIAR5.js → chunks/history-G5C2J2OY.js} +1 -1
- package/dist/bin/chunks/{hostname-CV7CGKRN.js → hostname-WXDKRL2Z.js} +1 -1
- package/dist/bin/chunks/{html-to-markdown-HTGML4TH.js → html-to-markdown-EPEXKI4B.js} +1 -1
- package/dist/bin/chunks/join-3IXMEGNA.js +14 -0
- package/dist/bin/chunks/{jq-DT3MD2GZ.js → jq-MTQKMJJI.js} +1 -1
- package/dist/bin/chunks/{ln-RUR4ALOJ.js → ln-EFFNQ3RY.js} +1 -1
- package/dist/bin/chunks/{ls-GU5227KE.js → ls-FSSC77F4.js} +1 -1
- package/dist/bin/chunks/{md5sum-C7WDEYN5.js → md5sum-VGXAOUBA.js} +1 -1
- package/dist/bin/chunks/{mkdir-4OYU22AA.js → mkdir-XJABRAUN.js} +1 -1
- package/dist/bin/chunks/{mv-H3S4FEWR.js → mv-3ATZ2ABL.js} +1 -1
- package/dist/bin/chunks/nl-DSM3NUGM.js +17 -0
- package/dist/bin/{shell/chunks/od-TXTSFFJY.js → chunks/od-SLM7SRWU.js} +1 -1
- package/dist/bin/chunks/{paste-HHCFASL4.js → paste-FT6WBQZG.js} +1 -1
- package/dist/bin/chunks/{printf-2JFCUFOA.js → printf-HWUQKYUM.js} +1 -1
- package/dist/bin/{shell/chunks/pwd-T5Q3JEBO.js → chunks/pwd-53KG2MCJ.js} +1 -1
- package/dist/bin/chunks/{readlink-M44TLMFS.js → readlink-VL3R4LAM.js} +1 -1
- package/dist/bin/chunks/rev-VP42N2JN.js +7 -0
- package/dist/bin/chunks/{rm-R4M647EC.js → rm-2PKAWTSQ.js} +1 -1
- package/dist/bin/{shell/chunks/sed-QLLAZYHH.js → chunks/sed-5LQMJYRJ.js} +1 -1
- package/dist/bin/chunks/{seq-GJMQM7SP.js → seq-AVK43XM2.js} +1 -1
- package/dist/bin/chunks/{sha1sum-WKCGV66X.js → sha1sum-BIUH233Z.js} +1 -1
- package/dist/bin/{shell/chunks/sha256sum-3ZDGP5WC.js → chunks/sha256sum-SUIK2MT2.js} +1 -1
- package/dist/bin/chunks/{sleep-OJPODQGM.js → sleep-O5BOTJGJ.js} +1 -1
- package/dist/bin/chunks/{sort-JL33INQB.js → sort-J5ARYV56.js} +1 -1
- package/dist/bin/chunks/split-JJFZRWRC.js +16 -0
- package/dist/bin/chunks/sqlite3-J2DBDCKT.js +36 -0
- package/dist/bin/{shell/chunks/stat-CR2INBC2.js → chunks/stat-UEQ7KMY5.js} +1 -1
- package/dist/bin/chunks/strings-ZEKN6D4Q.js +14 -0
- package/dist/bin/chunks/{tac-F4GC3MAI.js → tac-KNRFDAY7.js} +1 -1
- package/dist/bin/chunks/{tail-BYPLMYMZ.js → tail-BES27CZT.js} +1 -1
- package/dist/bin/chunks/{tee-HOMRRC3X.js → tee-ZFIT2GTM.js} +1 -1
- package/dist/bin/{shell/chunks/timeout-MYKG34DQ.js → chunks/timeout-JED4EKFH.js} +1 -1
- package/dist/bin/{shell/chunks/touch-3ZANYAXI.js → chunks/touch-TSNAXMZ2.js} +1 -1
- package/dist/bin/{shell/chunks/tr-E66N7IS2.js → chunks/tr-MBLEXZBI.js} +1 -1
- package/dist/bin/chunks/{tree-EE2PYIMV.js → tree-ESVATRDW.js} +1 -1
- package/dist/bin/chunks/{true-OWPVS7U4.js → true-OVATH2SQ.js} +1 -1
- package/dist/bin/chunks/unexpand-BFVYAPOU.js +11 -0
- package/dist/bin/chunks/{uniq-F5NP3LLU.js → uniq-7JNZWE5D.js} +1 -1
- package/dist/bin/chunks/{wc-NBMNJDZL.js → wc-OFU3HUEZ.js} +1 -1
- package/dist/bin/chunks/{which-6MRG2UCF.js → which-73KOOLC6.js} +1 -1
- package/dist/bin/chunks/xan-ASGSTJP4.js +140 -0
- package/dist/bin/chunks/xan-view-YGORUYA2.js +2 -0
- package/dist/bin/chunks/{xargs-EMY5BOJ2.js → xargs-WIJC4RTG.js} +1 -1
- package/dist/bin/chunks/yq-MF2SNFGL.js +287 -0
- package/dist/bin/just-bash.js +42 -42
- package/dist/bin/shell/chunks/{alias-ZAQAKC5X.js → alias-PCMLRCRW.js} +1 -1
- package/dist/bin/shell/chunks/{awk2-A73ZNFXJ.js → awk2-D2US2LMM.js} +1 -1
- package/dist/bin/{chunks/base64-JPITV4MD.js → shell/chunks/base64-RJX7MYGG.js} +1 -1
- package/dist/bin/{chunks/basename-IYEP3AMY.js → shell/chunks/basename-SO5MVUEX.js} +1 -1
- package/dist/bin/shell/chunks/{bash-WZYHIZP6.js → bash-UT3MT5UU.js} +1 -1
- package/dist/bin/{chunks/cat-XILYL7NW.js → shell/chunks/cat-7TVSOZLU.js} +1 -1
- package/dist/bin/{chunks/chmod-EXWX4N7Y.js → shell/chunks/chmod-3DIKREF7.js} +1 -1
- package/dist/bin/shell/chunks/{chunk-WEONT2KP.js → chunk-ACRTDIBO.js} +1 -1
- package/dist/bin/shell/chunks/chunk-KGOUQS5A.js +2 -0
- package/dist/bin/shell/chunks/chunk-OQRRF62X.js +10 -0
- package/dist/bin/shell/chunks/chunk-QSDVMMYI.js +21 -0
- package/dist/bin/shell/chunks/{clear-2APRIRCF.js → clear-CI7A5IXQ.js} +1 -1
- package/dist/bin/shell/chunks/column-TSFEMTG6.js +8 -0
- package/dist/bin/shell/chunks/{comm-KY3COLF5.js → comm-CPIFQTKY.js} +1 -1
- package/dist/bin/{chunks/cp-HES4UN7K.js → shell/chunks/cp-XXWRVG2D.js} +1 -1
- package/dist/bin/shell/chunks/{curl-BN5M3BUX.js → curl-LCMREE7R.js} +1 -1
- package/dist/bin/shell/chunks/{cut-JSIPAKOX.js → cut-VCKWLT2T.js} +1 -1
- package/dist/bin/shell/chunks/{date-CU4J7GHI.js → date-IQLPMFYI.js} +1 -1
- package/dist/bin/{chunks/diff-W4JRNHXW.js → shell/chunks/diff-GI3QVUGD.js} +1 -1
- package/dist/bin/shell/chunks/{dirname-UTCUUILN.js → dirname-EES7TR26.js} +1 -1
- package/dist/bin/shell/chunks/{du-2JU3PUTM.js → du-ZONJJZUK.js} +1 -1
- package/dist/bin/{chunks/echo-HKLPYMNC.js → shell/chunks/echo-WSKTON6U.js} +1 -1
- package/dist/bin/shell/chunks/{env-2SBJNP7X.js → env-YLLSNZZN.js} +1 -1
- package/dist/bin/shell/chunks/expand-77K5HH2M.js +11 -0
- package/dist/bin/shell/chunks/{expr-M74QZQ6C.js → expr-RMGXYNQJ.js} +1 -1
- package/dist/bin/{chunks/file-QPD3U2H7.js → shell/chunks/file-XMPFXMUJ.js} +1 -1
- package/dist/bin/{chunks/find-TRBVCSI6.js → shell/chunks/find-P6UQXFKX.js} +1 -1
- package/dist/bin/shell/chunks/fold-452R4I2C.js +12 -0
- package/dist/bin/{chunks/grep-BEZRXAWL.js → shell/chunks/grep-L5HBHEEQ.js} +1 -1
- package/dist/bin/shell/chunks/{gzip-VLTXZB2V.js → gzip-MNCJB6OR.js} +1 -1
- package/dist/bin/shell/chunks/{head-YGMY3DHE.js → head-DYK37Z24.js} +1 -1
- package/dist/bin/shell/chunks/{help-UEF7LW7F.js → help-7C5JICNL.js} +1 -1
- package/dist/bin/{chunks/history-OGBCIAR5.js → shell/chunks/history-G5C2J2OY.js} +1 -1
- package/dist/bin/shell/chunks/{hostname-CV7CGKRN.js → hostname-WXDKRL2Z.js} +1 -1
- package/dist/bin/shell/chunks/{html-to-markdown-HTGML4TH.js → html-to-markdown-EPEXKI4B.js} +1 -1
- package/dist/bin/shell/chunks/join-3IXMEGNA.js +14 -0
- package/dist/bin/shell/chunks/{jq-DT3MD2GZ.js → jq-MTQKMJJI.js} +1 -1
- package/dist/bin/shell/chunks/{ln-RUR4ALOJ.js → ln-EFFNQ3RY.js} +1 -1
- package/dist/bin/shell/chunks/{ls-GU5227KE.js → ls-FSSC77F4.js} +1 -1
- package/dist/bin/shell/chunks/{md5sum-C7WDEYN5.js → md5sum-VGXAOUBA.js} +1 -1
- package/dist/bin/shell/chunks/{mkdir-4OYU22AA.js → mkdir-XJABRAUN.js} +1 -1
- package/dist/bin/shell/chunks/{mv-H3S4FEWR.js → mv-3ATZ2ABL.js} +1 -1
- package/dist/bin/shell/chunks/nl-DSM3NUGM.js +17 -0
- package/dist/bin/{chunks/od-TXTSFFJY.js → shell/chunks/od-SLM7SRWU.js} +1 -1
- package/dist/bin/shell/chunks/{paste-HHCFASL4.js → paste-FT6WBQZG.js} +1 -1
- package/dist/bin/shell/chunks/{printf-2JFCUFOA.js → printf-HWUQKYUM.js} +1 -1
- package/dist/bin/{chunks/pwd-T5Q3JEBO.js → shell/chunks/pwd-53KG2MCJ.js} +1 -1
- package/dist/bin/shell/chunks/{readlink-M44TLMFS.js → readlink-VL3R4LAM.js} +1 -1
- package/dist/bin/shell/chunks/rev-VP42N2JN.js +7 -0
- package/dist/bin/shell/chunks/{rm-R4M647EC.js → rm-2PKAWTSQ.js} +1 -1
- package/dist/bin/{chunks/sed-QLLAZYHH.js → shell/chunks/sed-5LQMJYRJ.js} +1 -1
- package/dist/bin/shell/chunks/{seq-GJMQM7SP.js → seq-AVK43XM2.js} +1 -1
- package/dist/bin/shell/chunks/{sha1sum-WKCGV66X.js → sha1sum-BIUH233Z.js} +1 -1
- package/dist/bin/{chunks/sha256sum-3ZDGP5WC.js → shell/chunks/sha256sum-SUIK2MT2.js} +1 -1
- package/dist/bin/shell/chunks/{sleep-OJPODQGM.js → sleep-O5BOTJGJ.js} +1 -1
- package/dist/bin/shell/chunks/{sort-JL33INQB.js → sort-J5ARYV56.js} +1 -1
- package/dist/bin/shell/chunks/split-JJFZRWRC.js +16 -0
- package/dist/bin/shell/chunks/sqlite3-J2DBDCKT.js +36 -0
- package/dist/bin/{chunks/stat-CR2INBC2.js → shell/chunks/stat-UEQ7KMY5.js} +1 -1
- package/dist/bin/shell/chunks/strings-ZEKN6D4Q.js +14 -0
- package/dist/bin/shell/chunks/{tac-F4GC3MAI.js → tac-KNRFDAY7.js} +1 -1
- package/dist/bin/shell/chunks/{tail-BYPLMYMZ.js → tail-BES27CZT.js} +1 -1
- package/dist/bin/shell/chunks/{tee-HOMRRC3X.js → tee-ZFIT2GTM.js} +1 -1
- package/dist/bin/{chunks/timeout-MYKG34DQ.js → shell/chunks/timeout-JED4EKFH.js} +1 -1
- package/dist/bin/{chunks/touch-3ZANYAXI.js → shell/chunks/touch-TSNAXMZ2.js} +1 -1
- package/dist/bin/{chunks/tr-E66N7IS2.js → shell/chunks/tr-MBLEXZBI.js} +1 -1
- package/dist/bin/shell/chunks/{tree-EE2PYIMV.js → tree-ESVATRDW.js} +1 -1
- package/dist/bin/shell/chunks/{true-OWPVS7U4.js → true-OVATH2SQ.js} +1 -1
- package/dist/bin/shell/chunks/unexpand-BFVYAPOU.js +11 -0
- package/dist/bin/shell/chunks/{uniq-F5NP3LLU.js → uniq-7JNZWE5D.js} +1 -1
- package/dist/bin/shell/chunks/{wc-NBMNJDZL.js → wc-OFU3HUEZ.js} +1 -1
- package/dist/bin/shell/chunks/{which-6MRG2UCF.js → which-73KOOLC6.js} +1 -1
- package/dist/bin/shell/chunks/xan-ASGSTJP4.js +140 -0
- package/dist/bin/shell/chunks/xan-view-YGORUYA2.js +2 -0
- package/dist/bin/shell/chunks/{xargs-EMY5BOJ2.js → xargs-WIJC4RTG.js} +1 -1
- package/dist/bin/shell/chunks/yq-MF2SNFGL.js +287 -0
- package/dist/bin/shell/shell.js +66 -66
- package/dist/bundle/browser.js +486 -394
- package/dist/bundle/chunks/{alias-JFIUWFGE.js → alias-4UGRF4DM.js} +1 -1
- package/dist/bundle/chunks/{awk2-QWBT4IFJ.js → awk2-46RTIZKB.js} +1 -1
- package/dist/bundle/chunks/{base64-TUA2XORD.js → base64-F5R4G5EG.js} +1 -1
- package/dist/bundle/chunks/{basename-5UVU5RXR.js → basename-CFA5ZIGT.js} +1 -1
- package/dist/bundle/chunks/{bash-BASUPKHJ.js → bash-ZILV3VHA.js} +1 -1
- package/dist/bundle/chunks/{cat-47EP4IAV.js → cat-CE7XIAD2.js} +1 -1
- package/dist/bundle/chunks/{chmod-XJXFAD4M.js → chmod-FBHLEIY6.js} +1 -1
- package/dist/bundle/chunks/{chunk-OQ2MSNPG.js → chunk-4JO5BKO4.js} +1 -1
- package/dist/bundle/chunks/chunk-DXB73IDG.js +1 -0
- package/dist/bundle/chunks/chunk-SYMJJMQ4.js +20 -0
- package/dist/bundle/chunks/chunk-U4UYWYTO.js +9 -0
- package/dist/bundle/chunks/{clear-XD3TJRVQ.js → clear-VT2LJIDX.js} +1 -1
- package/dist/bundle/chunks/column-XPDNNO5Y.js +7 -0
- package/dist/bundle/chunks/{comm-KSJ4BBRQ.js → comm-AXQM7FFF.js} +1 -1
- package/dist/bundle/chunks/{cp-37OVLNLD.js → cp-PBJT3GBF.js} +1 -1
- package/dist/bundle/chunks/{curl-C43O5WQS.js → curl-TVZH24MD.js} +1 -1
- package/dist/bundle/chunks/{cut-FIZRELKC.js → cut-MCCSW2TZ.js} +1 -1
- package/dist/bundle/chunks/{date-NN5C354M.js → date-PN3CMG7K.js} +1 -1
- package/dist/bundle/chunks/{diff-GLRVCAKJ.js → diff-ZLJYSBRK.js} +1 -1
- package/dist/bundle/chunks/{dirname-U2KVUSQY.js → dirname-YPJLCQYA.js} +1 -1
- package/dist/bundle/chunks/{du-KRAFOIQK.js → du-3NURMGXT.js} +1 -1
- package/dist/bundle/chunks/{echo-WUKBESC7.js → echo-VUHWYV6L.js} +1 -1
- package/dist/bundle/chunks/{env-MSPSPGCD.js → env-EG5SQSAQ.js} +1 -1
- package/dist/bundle/chunks/expand-VSTNOVF5.js +10 -0
- package/dist/bundle/chunks/{expr-HYOCSWK6.js → expr-DG4E7SIS.js} +1 -1
- package/dist/bundle/chunks/{file-LQXX6P4Y.js → file-AWZ3TUFP.js} +1 -1
- package/dist/bundle/chunks/{find-GM7FJ4D3.js → find-QJDJJ5KW.js} +1 -1
- package/dist/bundle/chunks/fold-6CFXIPYZ.js +11 -0
- package/dist/bundle/chunks/{grep-ZJVDG3FA.js → grep-4K5T3MYL.js} +1 -1
- package/dist/bundle/chunks/{gzip-UQS7KRTV.js → gzip-7QAS5P2Y.js} +1 -1
- package/dist/bundle/chunks/{head-6PAUYCDP.js → head-FZ6IQHYW.js} +1 -1
- package/dist/bundle/chunks/{help-5E6PYJWQ.js → help-75YOGKM4.js} +1 -1
- package/dist/bundle/chunks/{history-SG6VRATI.js → history-MQDK2OPD.js} +1 -1
- package/dist/bundle/chunks/{hostname-K4BA3P6X.js → hostname-NWR32CGF.js} +1 -1
- package/dist/bundle/chunks/{html-to-markdown-ZSZ34PAN.js → html-to-markdown-ZK6GQVSL.js} +1 -1
- package/dist/bundle/chunks/join-X3QYPZUA.js +13 -0
- package/dist/bundle/chunks/{jq-NZZAXGBX.js → jq-QAA4WF2O.js} +1 -1
- package/dist/bundle/chunks/{ln-XFYHBIFL.js → ln-Y7YB677N.js} +1 -1
- package/dist/bundle/chunks/{ls-JGYJQA2Y.js → ls-CS3TIKWR.js} +1 -1
- package/dist/bundle/chunks/{md5sum-PIH6F3O3.js → md5sum-LJHKXLVT.js} +1 -1
- package/dist/bundle/chunks/{mkdir-HA2FJX4O.js → mkdir-7UKY4B3B.js} +1 -1
- package/dist/bundle/chunks/{mv-7I62SB3I.js → mv-FXHEKRTB.js} +1 -1
- package/dist/bundle/chunks/nl-KWQGFZH5.js +16 -0
- package/dist/bundle/chunks/{od-SOCTFI2F.js → od-ECWXNUB4.js} +1 -1
- package/dist/bundle/chunks/{paste-QBGVCQFT.js → paste-QTGVEPH5.js} +1 -1
- package/dist/bundle/chunks/{printf-HBP44PXI.js → printf-VG2POOXB.js} +1 -1
- package/dist/bundle/chunks/{pwd-CEF235GL.js → pwd-AC4P3JKI.js} +1 -1
- package/dist/bundle/chunks/{readlink-MQIMKDSA.js → readlink-EM4O3U4P.js} +1 -1
- package/dist/bundle/chunks/rev-FKUV5GH5.js +6 -0
- package/dist/bundle/chunks/{rm-NF3FNLAY.js → rm-I2SRVF7H.js} +1 -1
- package/dist/bundle/chunks/{sed-H2RWPMTM.js → sed-ZKODWZ6F.js} +1 -1
- package/dist/bundle/chunks/{seq-VKYIUOPJ.js → seq-5VRIVQYP.js} +1 -1
- package/dist/bundle/chunks/{sha1sum-HVHNZSEC.js → sha1sum-NRUZZ4Q6.js} +1 -1
- package/dist/bundle/chunks/{sha256sum-REOOJORK.js → sha256sum-5ZGJ4NJL.js} +1 -1
- package/dist/bundle/chunks/{sleep-AFN3PHJW.js → sleep-AK4QE4WR.js} +1 -1
- package/dist/bundle/chunks/{sort-XODGFZC4.js → sort-PMLMEZ4E.js} +1 -1
- package/dist/bundle/chunks/split-YBTFW7MT.js +15 -0
- package/dist/bundle/chunks/sqlite3-RCPUSN3E.js +35 -0
- package/dist/bundle/chunks/{stat-FVFLDQGP.js → stat-IVQBBOKN.js} +1 -1
- package/dist/bundle/chunks/strings-LRU5XCFP.js +13 -0
- package/dist/bundle/chunks/{tac-VIFKNLII.js → tac-2X4JLF4W.js} +1 -1
- package/dist/bundle/chunks/{tail-QXKYHAML.js → tail-PD4RZR6J.js} +1 -1
- package/dist/bundle/chunks/{tee-W5HCCBPO.js → tee-2QU4NRSJ.js} +1 -1
- package/dist/bundle/chunks/{timeout-XAA3N7CF.js → timeout-X3X3N6IE.js} +1 -1
- package/dist/bundle/chunks/{touch-FOE745V2.js → touch-MVQSKQKT.js} +1 -1
- package/dist/bundle/chunks/{tr-LMLGE4IE.js → tr-EDGW5FG6.js} +1 -1
- package/dist/bundle/chunks/{tree-WBUGLVP5.js → tree-5TYW7S7K.js} +1 -1
- package/dist/bundle/chunks/{true-6LGCG4EY.js → true-CNJ54NE6.js} +1 -1
- package/dist/bundle/chunks/unexpand-I7A2VXFD.js +10 -0
- package/dist/bundle/chunks/{uniq-7PFWPNWK.js → uniq-ONGDGSEB.js} +1 -1
- package/dist/bundle/chunks/{wc-GV5WUREX.js → wc-Y5MNUNQQ.js} +1 -1
- package/dist/bundle/chunks/{which-KHFYPBWW.js → which-M5MQ6QXQ.js} +1 -1
- package/dist/bundle/chunks/xan-B3RI2BDO.js +139 -0
- package/dist/bundle/chunks/xan-view-33AU6NPN.js +1 -0
- package/dist/bundle/chunks/{xargs-NQBNFMCT.js → xargs-2IMBHM4N.js} +1 -1
- package/dist/bundle/chunks/yq-KANM4MD2.js +286 -0
- package/dist/bundle/index.js +27 -27
- package/dist/commands/column/column.d.ts +9 -0
- package/dist/commands/expand/expand.d.ts +10 -0
- package/dist/commands/expand/unexpand.d.ts +10 -0
- package/dist/commands/fold/fold.d.ts +10 -0
- package/dist/commands/join/join.d.ts +10 -0
- package/dist/commands/nl/nl.d.ts +10 -0
- package/dist/commands/registry.d.ts +1 -1
- package/dist/commands/rev/rev.d.ts +11 -0
- package/dist/commands/split/split.d.ts +10 -0
- package/dist/commands/sqlite3/formatters.d.ts +15 -0
- package/dist/commands/sqlite3/sqlite3.d.ts +8 -0
- package/dist/commands/strings/strings.d.ts +10 -0
- package/dist/commands/xan/aggregation.d.ts +20 -0
- package/dist/commands/xan/csv.d.ts +16 -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/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-utils.d.ts +19 -0
- package/dist/commands/xan/xan-view.d.ts +12 -0
- package/dist/commands/xan/xan.d.ts +8 -0
- package/package.json +3 -1
- package/dist/bin/chunks/chunk-SJXDWN5X.js +0 -2
- package/dist/bin/chunks/yq-XRJR6BNP.js +0 -304
- package/dist/bin/shell/chunks/chunk-SJXDWN5X.js +0 -2
- package/dist/bin/shell/chunks/yq-XRJR6BNP.js +0 -304
- package/dist/bundle/chunks/chunk-2RUN43TJ.js +0 -1
- package/dist/bundle/chunks/yq-63LJU3AR.js +0 -303
|
@@ -1,303 +0,0 @@
|
|
|
1
|
-
import{a as At,b as vr}from"./chunk-OQ2MSNPG.js";import{i as wn}from"./chunk-CG2HXOFG.js";import{a as Sr,b as Nr,c as Xe}from"./chunk-74CEPOFO.js";import{a as Et,b as N,c as bn}from"./chunk-2RUN43TJ.js";var Br=N((tm,Fr)=>{var{hasOwnProperty:On}=Object.prototype,Tn=(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
|
|
2
|
-
`:`
|
|
3
|
-
`,n=e.whitespace?" = ":"=",i=[],r=e.sort?Object.keys(s).sort():Object.keys(s),o=0;e.align&&(o=Le(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)=>Le(c).length>=Le(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+=Le(`${c}${l}`).padEnd(o," ")+n+Le(f)+t;else u&&typeof u=="object"?i.push(c):a+=Le(c).padEnd(o," ")+n+Le(u)+t}e.section&&a.length&&(a="["+Le(e.section)+"]"+(e.newline?t+t:t)+a);for(let c of i){let u=xr(c,".").join("\\."),f=(e.section?e.section+".":"")+u,h=Tn(s[c],{...e,section:f});a.length&&h.length&&(a+=t),a+=h}return a};function xr(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 $r=(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=ds(u[1]),i==="__proto__"){n=Object.create(null);continue}n=t[i]=t[i]||Object.create(null);continue}let f=ds(u[2]),h;e.bracketedArray?h=f.length>2&&f.slice(-2)==="[]":(a[f]=(a?.[f]||0)+1,h=a[f]>1);let g=h&&f.endsWith("[]")?f.slice(0,-2):f;if(g==="__proto__")continue;let b=u[3]?ds(u[4]):!0,m=b==="true"||b==="false"||b==="null"?JSON.parse(b):b;h&&(On.call(n,g)?Array.isArray(n[g])||(n[g]=[n[g]]):n[g]=[]),Array.isArray(n[g])?n[g].push(m):n[g]=m}let l=[];for(let c of Object.keys(t)){if(!On.call(t,c)||typeof t[c]!="object"||Array.isArray(t[c]))continue;let u=xr(c,".");n=t;let f=u.pop(),h=f.replace(/\\\./g,".");for(let g of u)g!=="__proto__"&&((!On.call(n,g)||typeof n[g]!="object")&&(n[g]=Object.create(null)),n=n[g]);n===t&&h===f||(n[h]=t[c],l.push(c))}for(let c of l)delete t[c];return t},Rr=s=>s.startsWith('"')&&s.endsWith('"')||s.startsWith("'")&&s.endsWith("'"),Le=s=>typeof s!="string"||s.match(/[=\r\n]/)||s.match(/^\[/)||s.length>1&&Rr(s)||s!==s.trim()?JSON.stringify(s):s.split(";").join("\\;").split("#").join("\\#"),ds=s=>{if(s=(s||"").trim(),Rr(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};Fr.exports={parse:$r,decode:$r,stringify:Tn,encode:Tn,safe:Le,unsafe:ds}});var jr=N((Cn,In)=>{(function(s,e){typeof define=="function"&&define.amd?define([],e):typeof In=="object"&&typeof Cn<"u"?In.exports=e():s.Papa=e()})(Cn,function s(){"use strict";var e=(function(){return typeof self<"u"?self:typeof window<"u"?window:typeof e<"u"?e:{}})();function t(){var d=e.URL||e.webkitURL||null,p=s.toString();return a.BLOB_URL||(a.BLOB_URL=d.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",p,")();"],{type:"text/javascript"})))}var n=!e.document&&!!e.postMessage,i=e.IS_PAPA_WORKER||!1,r={},o=0,a={};if(a.parse=c,a.unparse=u,a.RECORD_SEP="",a.UNIT_SEP="",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r",`
|
|
4
|
-
`,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!n&&!!e.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=1024*1024*10,a.RemoteChunkSize=1024*1024*5,a.DefaultDelimiter=",",a.Parser=C,a.ParserHandle=S,a.NetworkStreamer=h,a.FileStreamer=g,a.StringStreamer=b,a.ReadableStreamStreamer=m,typeof PAPA_BROWSER_CONTEXT>"u"&&(a.DuplexStreamStreamer=y),e.jQuery){var l=e.jQuery;l.fn.parse=function(d){var p=d.config||{},w=[];return this.each(function(I){var k=l(this).prop("tagName").toUpperCase()==="INPUT"&&l(this).attr("type").toLowerCase()==="file"&&e.FileReader;if(!k||!this.files||this.files.length===0)return!0;for(var V=0;V<this.files.length;V++)w.push({file:this.files[V],inputElem:this,instanceConfig:l.extend({},p)})}),A(),this;function A(){if(w.length===0){K(d.complete)&&d.complete();return}var I=w[0];if(K(d.before)){var k=d.before(I.file,I.inputElem);if(typeof k=="object")if(k.action==="abort"){O("AbortError",I.file,I.inputElem,k.reason);return}else if(k.action==="skip"){F();return}else typeof k.config=="object"&&(I.instanceConfig=l.extend(I.instanceConfig,k.config));else if(k==="skip"){F();return}}var V=I.instanceConfig.complete;I.instanceConfig.complete=function(z){K(V)&&V(z,I.file,I.inputElem),F()},a.parse(I.file,I.instanceConfig)}function O(I,k,V,z){K(d.error)&&d.error({name:I},k,V,z)}function F(){w.splice(0,1),A()}}}i&&(e.onmessage=E);function c(d,p){p=p||{};var w=p.dynamicTyping||!1;if(K(w)&&(p.dynamicTypingFunction=w,w={}),p.dynamicTyping=w,p.transform=K(p.transform)?p.transform:!1,p.worker&&a.WORKERS_SUPPORTED){var A=_();A.userStep=p.step,A.userChunk=p.chunk,A.userComplete=p.complete,A.userError=p.error,p.step=K(p.step),p.chunk=K(p.chunk),p.complete=K(p.complete),p.error=K(p.error),delete p.worker,A.postMessage({input:d,config:p,workerId:A.id});return}var O=null;if(d===a.NODE_STREAM_INPUT&&typeof PAPA_BROWSER_CONTEXT>"u")return O=new y(p),O.getStream();return typeof d=="string"?(d=F(d),p.download?O=new h(p):O=new b(p)):d.readable===!0&&K(d.read)&&K(d.on)?O=new m(p):(e.File&&d instanceof File||d instanceof Object)&&(O=new g(p)),O.stream(d);function F(I){return I.charCodeAt(0)===65279?I.slice(1):I}}function u(d,p){var w=!1,A=!0,O=",",F=`\r
|
|
5
|
-
`,I='"',k=I+I,V=!1,z=null,se=!1;de();var x=new RegExp(v(I),"g");if(typeof d=="string"&&(d=JSON.parse(d)),Array.isArray(d)){if(!d.length||Array.isArray(d[0]))return L(null,d,V);if(typeof d[0]=="object")return L(z||Object.keys(d[0]),d,V)}else if(typeof d=="object")return typeof d.data=="string"&&(d.data=JSON.parse(d.data)),Array.isArray(d.data)&&(d.fields||(d.fields=d.meta&&d.meta.fields||z),d.fields||(d.fields=Array.isArray(d.data[0])?d.fields:typeof d.data[0]=="object"?Object.keys(d.data[0]):[]),!Array.isArray(d.data[0])&&typeof d.data[0]!="object"&&(d.data=[d.data])),L(d.fields||[],d.data||[],V);throw new Error("Unable to serialize unrecognized input");function de(){if(typeof p=="object"){if(typeof p.delimiter=="string"&&!a.BAD_DELIMITERS.filter(function(Y){return p.delimiter.indexOf(Y)!==-1}).length&&(O=p.delimiter),(typeof p.quotes=="boolean"||typeof p.quotes=="function"||Array.isArray(p.quotes))&&(w=p.quotes),(typeof p.skipEmptyLines=="boolean"||typeof p.skipEmptyLines=="string")&&(V=p.skipEmptyLines),typeof p.newline=="string"&&(F=p.newline),typeof p.quoteChar=="string"&&(I=p.quoteChar),typeof p.header=="boolean"&&(A=p.header),Array.isArray(p.columns)){if(p.columns.length===0)throw new Error("Option columns is empty");z=p.columns}p.escapeChar!==void 0&&(k=p.escapeChar+I),p.escapeFormulae instanceof RegExp?se=p.escapeFormulae:typeof p.escapeFormulae=="boolean"&&p.escapeFormulae&&(se=/^[=+\-@\t\r].*$/)}}function L(Y,W,ee){var te="";typeof Y=="string"&&(Y=JSON.parse(Y)),typeof W=="string"&&(W=JSON.parse(W));var we=Array.isArray(Y)&&Y.length>0,ae=!Array.isArray(W[0]);if(we&&A){for(var Ne=0;Ne<Y.length;Ne++)Ne>0&&(te+=O),te+=B(Y[Ne],Ne);W.length>0&&(te+=F)}for(var H=0;H<W.length;H++){var Me=we?Y.length:W[H].length,Ee=!1,q=we?Object.keys(W[H]).length===0:W[H].length===0;if(ee&&!we&&(Ee=ee==="greedy"?W[H].join("").trim()==="":W[H].length===1&&W[H][0].length===0),ee==="greedy"&&we){for(var P=[],j=0;j<Me;j++){var Z=ae?Y[j]:j;P.push(W[H][Z])}Ee=P.join("").trim()===""}if(!Ee){for(var T=0;T<Me;T++){T>0&&!q&&(te+=O);var G=we&&ae?Y[T]:T;te+=B(W[H][G],T)}H<W.length-1&&(!ee||Me>0&&!q)&&(te+=F)}}return te}function B(Y,W){if(typeof Y>"u"||Y===null)return"";if(Y.constructor===Date)return JSON.stringify(Y).slice(1,25);var ee=!1;se&&typeof Y=="string"&&se.test(Y)&&(Y="'"+Y,ee=!0);var te=Y.toString().replace(x,k);return ee=ee||w===!0||typeof w=="function"&&w(Y,W)||Array.isArray(w)&&w[W]||He(te,a.BAD_DELIMITERS)||te.indexOf(O)>-1||te.charAt(0)===" "||te.charAt(te.length-1)===" ",ee?I+te+I:te}function He(Y,W){for(var ee=0;ee<W.length;ee++)if(Y.indexOf(W[ee])>-1)return!0;return!1}}function f(d){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},p.call(this,d),this.parseChunk=function(w,A){let O=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&O>0){let se=this._config.newline;if(!se){let de=this._config.quoteChar||'"';se=this._handle.guessLineEndings(w,de)}w=[...w.split(se).slice(O)].join(se)}if(this.isFirstChunk&&K(this._config.beforeFirstChunk)){var F=this._config.beforeFirstChunk(w);F!==void 0&&(w=F)}this.isFirstChunk=!1,this._halted=!1;var I=this._partialLine+w;this._partialLine="";var k=this._handle.parse(I,this._baseIndex,!this._finished);if(this._handle.paused()||this._handle.aborted()){this._halted=!0;return}var V=k.meta.cursor;this._finished||(this._partialLine=I.substring(V-this._baseIndex),this._baseIndex=V),k&&k.data&&(this._rowCount+=k.data.length);var z=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)e.postMessage({results:k,workerId:a.WORKER_ID,finished:z});else if(K(this._config.chunk)&&!A){if(this._config.chunk(k,this._handle),this._handle.paused()||this._handle.aborted()){this._halted=!0;return}k=void 0,this._completeResults=void 0}return!this._config.step&&!this._config.chunk&&(this._completeResults.data=this._completeResults.data.concat(k.data),this._completeResults.errors=this._completeResults.errors.concat(k.errors),this._completeResults.meta=k.meta),!this._completed&&z&&K(this._config.complete)&&(!k||!k.meta.aborted)&&(this._config.complete(this._completeResults,this._input),this._completed=!0),!z&&(!k||!k.meta.paused)&&this._nextChunk(),k},this._sendError=function(w){K(this._config.error)?this._config.error(w):i&&this._config.error&&e.postMessage({workerId:a.WORKER_ID,error:w,finished:!1})};function p(w){var A=Q(w);A.chunkSize=parseInt(A.chunkSize),!w.step&&!w.chunk&&(A.chunkSize=null),this._handle=new S(A),this._handle.streamer=this,this._config=A}}function h(d){d=d||{},d.chunkSize||(d.chunkSize=a.RemoteChunkSize),f.call(this,d);var p;n?this._nextChunk=function(){this._readChunk(),this._chunkLoaded()}:this._nextChunk=function(){this._readChunk()},this.stream=function(A){this._input=A,this._nextChunk()},this._readChunk=function(){if(this._finished){this._chunkLoaded();return}if(p=new XMLHttpRequest,this._config.withCredentials&&(p.withCredentials=this._config.withCredentials),n||(p.onload=X(this._chunkLoaded,this),p.onerror=X(this._chunkError,this)),p.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var A=this._config.downloadRequestHeaders;for(var O in A)p.setRequestHeader(O,A[O])}if(this._config.chunkSize){var F=this._start+this._config.chunkSize-1;p.setRequestHeader("Range","bytes="+this._start+"-"+F)}try{p.send(this._config.downloadRequestBody)}catch(I){this._chunkError(I.message)}n&&p.status===0&&this._chunkError()},this._chunkLoaded=function(){if(p.readyState===4){if(p.status<200||p.status>=400){this._chunkError();return}this._start+=this._config.chunkSize?this._config.chunkSize:p.responseText.length,this._finished=!this._config.chunkSize||this._start>=w(p),this.parseChunk(p.responseText)}},this._chunkError=function(A){var O=p.statusText||A;this._sendError(new Error(O))};function w(A){var O=A.getResponseHeader("Content-Range");return O===null?-1:parseInt(O.substring(O.lastIndexOf("/")+1))}}h.prototype=Object.create(f.prototype),h.prototype.constructor=h;function g(d){d=d||{},d.chunkSize||(d.chunkSize=a.LocalChunkSize),f.call(this,d);var p,w,A=typeof FileReader<"u";this.stream=function(O){this._input=O,w=O.slice||O.webkitSlice||O.mozSlice,A?(p=new FileReader,p.onload=X(this._chunkLoaded,this),p.onerror=X(this._chunkError,this)):p=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){!this._finished&&(!this._config.preview||this._rowCount<this._config.preview)&&this._readChunk()},this._readChunk=function(){var O=this._input;if(this._config.chunkSize){var F=Math.min(this._start+this._config.chunkSize,this._input.size);O=w.call(O,this._start,F)}var I=p.readAsText(O,this._config.encoding);A||this._chunkLoaded({target:{result:I}})},this._chunkLoaded=function(O){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(O.target.result)},this._chunkError=function(){this._sendError(p.error)}}g.prototype=Object.create(f.prototype),g.prototype.constructor=g;function b(d){d=d||{},f.call(this,d);var p;this.stream=function(w){return p=w,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var w=this._config.chunkSize,A;return w?(A=p.substring(0,w),p=p.substring(w)):(A=p,p=""),this._finished=!p,this.parseChunk(A)}}}b.prototype=Object.create(b.prototype),b.prototype.constructor=b;function m(d){d=d||{},f.call(this,d);var p=[],w=!0,A=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(O){this._input=O,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){A&&p.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),p.length?this.parseChunk(p.shift()):w=!0},this._streamData=X(function(O){try{p.push(typeof O=="string"?O:O.toString(this._config.encoding)),w&&(w=!1,this._checkIsFinished(),this.parseChunk(p.shift()))}catch(F){this._streamError(F)}},this),this._streamError=X(function(O){this._streamCleanUp(),this._sendError(O)},this),this._streamEnd=X(function(){this._streamCleanUp(),A=!0,this._streamData("")},this),this._streamCleanUp=X(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}m.prototype=Object.create(f.prototype),m.prototype.constructor=m;function y(d){var p=Et("stream").Duplex,w=Q(d),A=!0,O=!1,F=[],I=null;this._onCsvData=function(k){var V=k.data;!I.push(V)&&!this._handle.paused()&&this._handle.pause()},this._onCsvComplete=function(){I.push(null)},w.step=X(this._onCsvData,this),w.complete=X(this._onCsvComplete,this),f.call(this,w),this._nextChunk=function(){O&&F.length===1&&(this._finished=!0),F.length?F.shift()():A=!0},this._addToParseQueue=function(k,V){F.push(X(function(){if(this.parseChunk(typeof k=="string"?k:k.toString(w.encoding)),K(V))return V()},this)),A&&(A=!1,this._nextChunk())},this._onRead=function(){this._handle.paused()&&this._handle.resume()},this._onWrite=function(k,V,z){this._addToParseQueue(k,z)},this._onWriteComplete=function(){O=!0,this._addToParseQueue("")},this.getStream=function(){return I},I=new p({readableObjectMode:!0,decodeStrings:!1,read:X(this._onRead,this),write:X(this._onWrite,this)}),I.once("finish",X(this._onWriteComplete,this))}typeof PAPA_BROWSER_CONTEXT>"u"&&(y.prototype=Object.create(f.prototype),y.prototype.constructor=y);function S(d){var p=Math.pow(2,53),w=-p,A=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,O=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,F=this,I=0,k=0,V,z,se=!1,x=!1,de,L=[],B={data:[],errors:[],meta:{}};if(K(d.step)){var He=d.step;d.step=function(q){if(B=q,te())ee();else{if(ee(),B.data.length===0)return;I+=q.data.length,d.preview&&I>d.preview?z.abort():(B.data=B.data[0],He(B,F))}}}this.parse=function(q,P,j){var Z=d.quoteChar||'"';if(d.newline||(d.newline=this.guessLineEndings(q,Z)),de=!1,d.delimiter)K(d.delimiter)&&(d.delimiter=d.delimiter(q),B.meta.delimiter=d.delimiter);else{var T=Me(q,d.newline,d.skipEmptyLines,d.comments,d.delimitersToGuess);T.successful?d.delimiter=T.bestDelimiter:(de=!0,d.delimiter=a.DefaultDelimiter),B.meta.delimiter=d.delimiter}var G=Q(d);return d.preview&&d.header&&G.preview++,V=q,z=new C(G),B=z.parse(V,P,j),ee(),se?{meta:{paused:!0}}:B||{meta:{paused:!1}}},this.paused=function(){return se},this.pause=function(){se=!0,z.abort(),V=K(d.chunk)?"":V.substring(z.getCharIndex())},this.resume=function(){F.streamer._halted?(se=!1,F.streamer.parseChunk(V,!0)):setTimeout(F.resume,3)},this.aborted=function(){return x},this.abort=function(){x=!0,z.abort(),B.meta.aborted=!0,K(d.complete)&&d.complete(B),V=""},this.guessLineEndings=function(q,P){q=q.substring(0,1024*1024);var j=new RegExp(v(P)+"([^]*?)"+v(P),"gm");q=q.replace(j,"");var Z=q.split("\r"),T=q.split(`
|
|
6
|
-
`),G=T.length>1&&T[0].length<Z[0].length;if(Z.length===1||G)return`
|
|
7
|
-
`;for(var le=0,ie=0;ie<Z.length;ie++)Z[ie][0]===`
|
|
8
|
-
`&&le++;return le>=Z.length/2?`\r
|
|
9
|
-
`:"\r"};function Y(q){return d.skipEmptyLines==="greedy"?q.join("").trim()==="":q.length===1&&q[0].length===0}function W(q){if(A.test(q)){var P=parseFloat(q);if(P>w&&P<p)return!0}return!1}function ee(){return B&&de&&(Ee("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),de=!1),d.skipEmptyLines&&(B.data=B.data.filter(function(q){return!Y(q)})),te()&&we(),H()}function te(){return d.header&&L.length===0}function we(){if(!B)return;function q(j,Z){K(d.transformHeader)&&(j=d.transformHeader(j,Z)),L.push(j)}if(Array.isArray(B.data[0])){for(var P=0;te()&&P<B.data.length;P++)B.data[P].forEach(q);B.data.splice(0,1)}else B.data.forEach(q)}function ae(q){return d.dynamicTypingFunction&&d.dynamicTyping[q]===void 0&&(d.dynamicTyping[q]=d.dynamicTypingFunction(q)),(d.dynamicTyping[q]||d.dynamicTyping)===!0}function Ne(q,P){return ae(q)?P==="true"||P==="TRUE"?!0:P==="false"||P==="FALSE"?!1:W(P)?parseFloat(P):O.test(P)?new Date(P):P===""?null:P:P}function H(){if(!B||!d.header&&!d.dynamicTyping&&!d.transform)return B;function q(j,Z){var T=d.header?{}:[],G;for(G=0;G<j.length;G++){var le=G,ie=j[G];d.header&&(le=G>=L.length?"__parsed_extra":L[G]),d.transform&&(ie=d.transform(ie,le)),ie=Ne(le,ie),le==="__parsed_extra"?(T[le]=T[le]||[],T[le].push(ie)):T[le]=ie}return d.header&&(G>L.length?Ee("FieldMismatch","TooManyFields","Too many fields: expected "+L.length+" fields but parsed "+G,k+Z):G<L.length&&Ee("FieldMismatch","TooFewFields","Too few fields: expected "+L.length+" fields but parsed "+G,k+Z)),T}var P=1;return!B.data.length||Array.isArray(B.data[0])?(B.data=B.data.map(q),P=B.data.length):B.data=q(B.data,0),d.header&&B.meta&&(B.meta.fields=L),k+=P,B}function Me(q,P,j,Z,T){var G,le,ie,Ge;T=T||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var $e=0;$e<T.length;$e++){var Nt=T[$e],Qe=0,xe=0,ue=0;ie=void 0;for(var Te=new C({comments:Z,delimiter:Nt,newline:P,preview:10}).parse(q),ce=0;ce<Te.data.length;ce++){if(j&&Y(Te.data[ce])){ue++;continue}var pe=Te.data[ce].length;if(xe+=pe,typeof ie>"u"){ie=pe;continue}else pe>0&&(Qe+=Math.abs(pe-ie),ie=pe)}Te.data.length>0&&(xe/=Te.data.length-ue),(typeof le>"u"||Qe<=le)&&(typeof Ge>"u"||xe>Ge)&&xe>1.99&&(le=Qe,G=Nt,Ge=xe)}return d.delimiter=G,{successful:!!G,bestDelimiter:G}}function Ee(q,P,j,Z){var T={type:q,code:P,message:j};Z!==void 0&&(T.row=Z),B.errors.push(T)}}function v(d){return d.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function C(d){d=d||{};var p=d.delimiter,w=d.newline,A=d.comments,O=d.step,F=d.preview,I=d.fastMode,k,V=null,z=!1;d.quoteChar===void 0||d.quoteChar===null?k='"':k=d.quoteChar;var se=k;if(d.escapeChar!==void 0&&(se=d.escapeChar),(typeof p!="string"||a.BAD_DELIMITERS.indexOf(p)>-1)&&(p=","),A===p)throw new Error("Comment character same as delimiter");A===!0?A="#":(typeof A!="string"||a.BAD_DELIMITERS.indexOf(A)>-1)&&(A=!1),w!==`
|
|
10
|
-
`&&w!=="\r"&&w!==`\r
|
|
11
|
-
`&&(w=`
|
|
12
|
-
`);var x=0,de=!1;this.parse=function(L,B,He){if(typeof L!="string")throw new Error("Input must be a string");var Y=L.length,W=p.length,ee=w.length,te=A.length,we=K(O);x=0;var ae=[],Ne=[],H=[],Me=0;if(!L)return ue();if(I||I!==!1&&L.indexOf(k)===-1){for(var Ee=L.split(w),q=0;q<Ee.length;q++){if(H=Ee[q],x+=H.length,q!==Ee.length-1)x+=w.length;else if(He)return ue();if(!(A&&H.substring(0,te)===A)){if(we){if(ae=[],$e(H.split(p)),Te(),de)return ue()}else $e(H.split(p));if(F&&q>=F)return ae=ae.slice(0,F),ue(!0)}}return ue()}for(var P=L.indexOf(p,x),j=L.indexOf(w,x),Z=new RegExp(v(se)+v(k),"g"),T=L.indexOf(k,x);;){if(L[x]===k){for(T=x,x++;;){if(T=L.indexOf(k,T+1),T===-1)return He||Ne.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:ae.length,index:x}),Qe();if(T===Y-1){var G=L.substring(x,T).replace(Z,k);return Qe(G)}if(k===se&&L[T+1]===se){T++;continue}if(!(k!==se&&T!==0&&L[T-1]===se)){P!==-1&&P<T+1&&(P=L.indexOf(p,T+1)),j!==-1&&j<T+1&&(j=L.indexOf(w,T+1));var le=j===-1?P:Math.min(P,j),ie=Nt(le);if(L.substr(T+1+ie,W)===p){H.push(L.substring(x,T).replace(Z,k)),x=T+1+ie+W,L[T+1+ie+W]!==k&&(T=L.indexOf(k,x)),P=L.indexOf(p,x),j=L.indexOf(w,x);break}var Ge=Nt(j);if(L.substring(T+1+Ge,T+1+Ge+ee)===w){if(H.push(L.substring(x,T).replace(Z,k)),xe(T+1+Ge+ee),P=L.indexOf(p,x),T=L.indexOf(k,x),we&&(Te(),de))return ue();if(F&&ae.length>=F)return ue(!0);break}Ne.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:ae.length,index:x}),T++}}continue}if(A&&H.length===0&&L.substring(x,x+te)===A){if(j===-1)return ue();x=j+ee,j=L.indexOf(w,x),P=L.indexOf(p,x);continue}if(P!==-1&&(P<j||j===-1)){H.push(L.substring(x,P)),x=P+W,P=L.indexOf(p,x);continue}if(j!==-1){if(H.push(L.substring(x,j)),xe(j+ee),we&&(Te(),de))return ue();if(F&&ae.length>=F)return ue(!0);continue}break}return Qe();function $e(ce){ae.push(ce),Me=x}function Nt(ce){var pe=0;if(ce!==-1){var Re=L.substring(T+1,ce);Re&&Re.trim()===""&&(pe=Re.length)}return pe}function Qe(ce){return He||(typeof ce>"u"&&(ce=L.substring(x)),H.push(ce),x=Y,$e(H),we&&Te()),ue()}function xe(ce){x=ce,$e(H),H=[],j=L.indexOf(w,x)}function ue(ce){if(d.header&&!B&&ae.length&&!z){let pe=ae[0],Re=Object.create(null),yn=new Set(pe),br=!1;for(let ot=0;ot<pe.length;ot++){let Ce=pe[ot];if(K(d.transformHeader)&&(Ce=d.transformHeader(Ce,ot)),!Re[Ce])Re[Ce]=1,pe[ot]=Ce;else{let vt,wr=Re[Ce];do vt=`${Ce}_${wr}`,wr++;while(yn.has(vt));yn.add(vt),pe[ot]=vt,Re[Ce]++,br=!0,V===null&&(V={}),V[vt]=Ce}yn.add(Ce)}br&&console.warn("Duplicate headers found and renamed."),z=!0}return{data:ae,errors:Ne,meta:{delimiter:p,linebreak:w,aborted:de,truncated:!!ce,cursor:Me+(B||0),renamedHeaders:V}}}function Te(){O(ue()),ae=[],Ne=[]}},this.abort=function(){de=!0},this.getCharIndex=function(){return x}}function _(){if(!a.WORKERS_SUPPORTED)return!1;var d=t(),p=new e.Worker(d);return p.onmessage=M,p.id=o++,r[p.id]=p,p}function M(d){var p=d.data,w=r[p.workerId],A=!1;if(p.error)w.userError(p.error,p.file);else if(p.results&&p.results.data){var O=function(){A=!0,$(p.workerId,{data:[],errors:[],meta:{aborted:!0}})},F={abort:O,pause:D,resume:D};if(K(w.userStep)){for(var I=0;I<p.results.data.length&&(w.userStep({data:p.results.data[I],errors:p.results.errors,meta:p.results.meta},F),!A);I++);delete p.results}else K(w.userChunk)&&(w.userChunk(p.results,F,p.file),delete p.results)}p.finished&&!A&&$(p.workerId,p.results)}function $(d,p){var w=r[d];K(w.userComplete)&&w.userComplete(p),w.terminate(),delete r[d]}function D(){throw new Error("Not implemented.")}function E(d){var p=d.data;if(typeof a.WORKER_ID>"u"&&p&&(a.WORKER_ID=p.workerId),typeof p.input=="string")e.postMessage({workerId:a.WORKER_ID,results:a.parse(p.input,p.config),finished:!0});else if(e.File&&p.input instanceof File||p.input instanceof Object){var w=a.parse(p.input,p.config);w&&e.postMessage({workerId:a.WORKER_ID,results:w,finished:!0})}}function Q(d){if(typeof d!="object"||d===null)return d;var p=Array.isArray(d)?[]:{};for(var w in d)p[w]=Q(d[w]);return p}function X(d,p){return function(){d.apply(p,arguments)}}function K(d){return typeof d=="function"}return a})});var U=N(fe=>{"use strict";var Mn=Symbol.for("yaml.alias"),Hr=Symbol.for("yaml.document"),ws=Symbol.for("yaml.map"),Gr=Symbol.for("yaml.pair"),$n=Symbol.for("yaml.scalar"),Ss=Symbol.for("yaml.seq"),Pe=Symbol.for("yaml.node.type"),Yc=s=>!!s&&typeof s=="object"&&s[Pe]===Mn,Jc=s=>!!s&&typeof s=="object"&&s[Pe]===Hr,Dc=s=>!!s&&typeof s=="object"&&s[Pe]===ws,Wc=s=>!!s&&typeof s=="object"&&s[Pe]===Gr,Qr=s=>!!s&&typeof s=="object"&&s[Pe]===$n,Hc=s=>!!s&&typeof s=="object"&&s[Pe]===Ss;function Xr(s){if(s&&typeof s=="object")switch(s[Pe]){case ws:case Ss:return!0}return!1}function Gc(s){if(s&&typeof s=="object")switch(s[Pe]){case Mn:case ws:case $n:case Ss:return!0}return!1}var Qc=s=>(Qr(s)||Xr(s))&&!!s.anchor;fe.ALIAS=Mn;fe.DOC=Hr;fe.MAP=ws;fe.NODE_TYPE=Pe;fe.PAIR=Gr;fe.SCALAR=$n;fe.SEQ=Ss;fe.hasAnchor=Qc;fe.isAlias=Yc;fe.isCollection=Xr;fe.isDocument=Jc;fe.isMap=Dc;fe.isNode=Gc;fe.isPair=Wc;fe.isScalar=Qr;fe.isSeq=Hc});var _t=N(xn=>{"use strict";var oe=U(),ye=Symbol("break visit"),zr=Symbol("skip children"),Ie=Symbol("remove node");function Ns(s,e){let t=Zr(e);oe.isDocument(s)?ft(null,s.contents,t,Object.freeze([s]))===Ie&&(s.contents=null):ft(null,s,t,Object.freeze([]))}Ns.BREAK=ye;Ns.SKIP=zr;Ns.REMOVE=Ie;function ft(s,e,t,n){let i=eo(s,e,t,n);if(oe.isNode(i)||oe.isPair(i))return to(s,n,i),ft(s,i,t,n);if(typeof i!="symbol"){if(oe.isCollection(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=ft(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===ye)return ye;o===Ie&&(e.items.splice(r,1),r-=1)}}}else if(oe.isPair(e)){n=Object.freeze(n.concat(e));let r=ft("key",e.key,t,n);if(r===ye)return ye;r===Ie&&(e.key=null);let o=ft("value",e.value,t,n);if(o===ye)return ye;o===Ie&&(e.value=null)}}return i}async function vs(s,e){let t=Zr(e);oe.isDocument(s)?await ut(null,s.contents,t,Object.freeze([s]))===Ie&&(s.contents=null):await ut(null,s,t,Object.freeze([]))}vs.BREAK=ye;vs.SKIP=zr;vs.REMOVE=Ie;async function ut(s,e,t,n){let i=await eo(s,e,t,n);if(oe.isNode(i)||oe.isPair(i))return to(s,n,i),ut(s,i,t,n);if(typeof i!="symbol"){if(oe.isCollection(e)){n=Object.freeze(n.concat(e));for(let r=0;r<e.items.length;++r){let o=await ut(r,e.items[r],t,n);if(typeof o=="number")r=o-1;else{if(o===ye)return ye;o===Ie&&(e.items.splice(r,1),r-=1)}}}else if(oe.isPair(e)){n=Object.freeze(n.concat(e));let r=await ut("key",e.key,t,n);if(r===ye)return ye;r===Ie&&(e.key=null);let o=await ut("value",e.value,t,n);if(o===ye)return ye;o===Ie&&(e.value=null)}}return i}function Zr(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 eo(s,e,t,n){if(typeof t=="function")return t(s,e,n);if(oe.isMap(e))return t.Map?.(s,e,n);if(oe.isSeq(e))return t.Seq?.(s,e,n);if(oe.isPair(e))return t.Pair?.(s,e,n);if(oe.isScalar(e))return t.Scalar?.(s,e,n);if(oe.isAlias(e))return t.Alias?.(s,e,n)}function to(s,e,t){let n=e[e.length-1];if(oe.isCollection(n))n.items[s]=t;else if(oe.isPair(n))s==="key"?n.key=t:n.value=t;else if(oe.isDocument(n))n.contents=t;else{let i=oe.isAlias(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}xn.visit=Ns;xn.visitAsync=vs});var Rn=N(no=>{"use strict";var so=U(),Xc=_t(),zc={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Zc=s=>s.replace(/[!,[\]{}]/g,e=>zc[e]),Mt=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+Zc(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&&so.isNode(e.contents)){let r={};Xc.visit(e.contents,(o,a)=>{so.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(`
|
|
13
|
-
`)}};Mt.defaultYaml={explicit:!1,version:"1.2"};Mt.defaultTags={"!!":"tag:yaml.org,2002:"};no.Directives=Mt});var Es=N($t=>{"use strict";var io=U(),ef=_t();function tf(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 ro(s){let e=new Set;return ef.visit(s,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function oo(s,e){for(let t=1;;++t){let n=`${s}${t}`;if(!e.has(n))return n}}function sf(s,e){let t=[],n=new Map,i=null;return{onAnchor:r=>{t.push(r),i??(i=ro(s));let o=oo(e,i);return i.add(o),o},setAnchors:()=>{for(let r of t){let o=n.get(r);if(typeof o=="object"&&o.anchor&&(io.isScalar(o.node)||io.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}}$t.anchorIsValid=tf;$t.anchorNames=ro;$t.createNodeAnchors=sf;$t.findNewAnchor=oo});var Fn=N(ao=>{"use strict";function xt(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=xt(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=xt(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=xt(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=xt(s,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return s.call(e,t,n)}ao.applyReviver=xt});var Fe=N(co=>{"use strict";var nf=U();function lo(s,e,t){if(Array.isArray(s))return s.map((n,i)=>lo(n,String(i),t));if(s&&typeof s.toJSON=="function"){if(!t||!nf.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}co.toJS=lo});var As=N(uo=>{"use strict";var rf=Fn(),fo=U(),of=Fe(),Bn=class{constructor(e){Object.defineProperty(this,fo.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(!fo.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=of.toJS(this,"",o);if(typeof i=="function")for(let{count:l,res:c}of o.anchors.values())i(c,l);return typeof r=="function"?rf.applyReviver(r,{"":a},"",a):a}};uo.NodeBase=Bn});var Rt=N(ho=>{"use strict";var af=Es(),lf=_t(),ht=U(),cf=As(),ff=Fe(),jn=class extends cf.NodeBase{constructor(e){super(ht.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=[],lf.visit(e,{Node:(r,o)=>{(ht.isAlias(o)||ht.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||(ff.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=ks(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(af.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 ks(s,e,t){if(ht.isAlias(e)){let n=e.resolve(s),i=t&&n&&t.get(n);return i?i.count*i.aliasCount:0}else if(ht.isCollection(e)){let n=0;for(let i of e.items){let r=ks(s,i,t);r>n&&(n=r)}return n}else if(ht.isPair(e)){let n=ks(s,e.key,t),i=ks(s,e.value,t);return Math.max(n,i)}return 1}ho.Alias=jn});var re=N(Kn=>{"use strict";var uf=U(),hf=As(),df=Fe(),pf=s=>!s||typeof s!="function"&&typeof s!="object",Be=class extends hf.NodeBase{constructor(e){super(uf.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:df.toJS(this.value,e,t)}toString(){return String(this.value)}};Be.BLOCK_FOLDED="BLOCK_FOLDED";Be.BLOCK_LITERAL="BLOCK_LITERAL";Be.PLAIN="PLAIN";Be.QUOTE_DOUBLE="QUOTE_DOUBLE";Be.QUOTE_SINGLE="QUOTE_SINGLE";Kn.Scalar=Be;Kn.isScalarValue=pf});var Ft=N(mo=>{"use strict";var mf=Rt(),et=U(),po=re(),gf="tag:yaml.org,2002:";function yf(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 bf(s,e,t){if(et.isDocument(s)&&(s=s.contents),et.isNode(s))return s;if(et.isPair(s)){let f=t.schema[et.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 mf.Alias(l.anchor);l={anchor:null,node:null},a.set(s,l)}e?.startsWith("!!")&&(e=gf+e.slice(2));let c=yf(s,e,o.tags);if(!c){if(s&&typeof s.toJSON=="function"&&(s=s.toJSON()),!s||typeof s!="object"){let f=new po.Scalar(s);return l&&(l.node=f),f}c=s instanceof Map?o[et.MAP]:Symbol.iterator in Object(s)?o[et.SEQ]:o[et.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 po.Scalar(s);return e?u.tag=e:c.default||(u.tag=c.tag),l&&(l.node=u),u}mo.createNode=bf});var Ts=N(Os=>{"use strict";var wf=Ft(),qe=U(),Sf=As();function Vn(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 wf.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 go=s=>s==null||typeof s=="object"&&!!s[Symbol.iterator]().next().done,Un=class extends Sf.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=>qe.isNode(n)||qe.isPair(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(go(e))this.add(t);else{let[n,...i]=e,r=this.get(n,!0);if(qe.isCollection(r))r.addIn(i,t);else if(r===void 0&&this.schema)this.set(n,Vn(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(qe.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&&qe.isScalar(r)?r.value:r:qe.isCollection(r)?r.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!qe.isPair(t))return!1;let n=t.value;return n==null||e&&qe.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 qe.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(qe.isCollection(r))r.setIn(i,t);else if(r===void 0&&this.schema)this.set(n,Vn(this.schema,i,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}};Os.Collection=Un;Os.collectionFromPath=Vn;Os.isEmptyPath=go});var Bt=N(Cs=>{"use strict";var Nf=s=>s.replace(/^(?!$)(?: $)?/gm,"#");function Yn(s,e){return/^\n+$/.test(s)?s.substring(1):e?s.replace(/^(?! *$)/gm,e):s}var vf=(s,e,t)=>s.endsWith(`
|
|
14
|
-
`)?Yn(t,e):t.includes(`
|
|
15
|
-
`)?`
|
|
16
|
-
`+Yn(t,e):(s.endsWith(" ")?"":" ")+t;Cs.indentComment=Yn;Cs.lineComment=vf;Cs.stringifyComment=Nf});var bo=N(jt=>{"use strict";var Ef="flow",Jn="block",Is="quoted";function Af(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,g,b=!1,m=-1,y=-1,S=-1;t===Jn&&(m=yo(s,m,e.length),m!==-1&&(f=m+l));for(let C;C=s[m+=1];){if(t===Is&&C==="\\"){switch(y=m,s[m+1]){case"x":m+=3;break;case"u":m+=5;break;case"U":m+=9;break;default:m+=1}S=m}if(C===`
|
|
17
|
-
`)t===Jn&&(m=yo(s,m,e.length)),f=m+e.length+l,h=void 0;else{if(C===" "&&g&&g!==" "&&g!==`
|
|
18
|
-
`&&g!==" "){let _=s[m+1];_&&_!==" "&&_!==`
|
|
19
|
-
`&&_!==" "&&(h=m)}if(m>=f)if(h)c.push(h),f=h+l,h=void 0;else if(t===Is){for(;g===" "||g===" ";)g=C,C=s[m+=1],b=!0;let _=m>S+1?m-2:y-1;if(u[_])return s;c.push(_),u[_]=!0,f=_+l,h=void 0}else b=!0}g=C}if(b&&a&&a(),c.length===0)return s;o&&o();let v=s.slice(0,c[0]);for(let C=0;C<c.length;++C){let _=c[C],M=c[C+1]||s.length;_===0?v=`
|
|
20
|
-
${e}${s.slice(0,M)}`:(t===Is&&u[_]&&(v+=`${s[_]}\\`),v+=`
|
|
21
|
-
${e}${s.slice(_+1,M)}`)}return v}function yo(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!==`
|
|
22
|
-
`);n=e,i=e+1,r=s[i]}return n}jt.FOLD_BLOCK=Jn;jt.FOLD_FLOW=Ef;jt.FOLD_QUOTED=Is;jt.foldFlowLines=Af});var Vt=N(wo=>{"use strict";var ke=re(),je=bo(),Ls=(s,e)=>({indentAtStart:e?s.indent.length:s.indentAtStart,lineWidth:s.options.lineWidth,minContentWidth:s.options.minContentWidth}),Ps=s=>/^(%|---|\.\.\.)/m.test(s);function kf(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]===`
|
|
23
|
-
`){if(r-o>n)return!0;if(o=r+1,i-o<=n)return!1}return!0}function Kt(s,e){let t=JSON.stringify(s);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:n}=e,i=e.options.doubleQuotedMinMultiLineLength,r=e.indent||(Ps(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)+`
|
|
24
|
-
|
|
25
|
-
`;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)o+=`
|
|
26
|
-
`,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:je.foldFlowLines(o,r,je.FOLD_QUOTED,Ls(e,!1))}function Dn(s,e){if(e.options.singleQuote===!1||e.implicitKey&&s.includes(`
|
|
27
|
-
`)||/[ \t]\n|\n[ \t]/.test(s))return Kt(s,e);let t=e.indent||(Ps(s)?" ":""),n="'"+s.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
28
|
-
${t}`)+"'";return e.implicitKey?n:je.foldFlowLines(n,t,je.FOLD_FLOW,Ls(e,!1))}function dt(s,e){let{singleQuote:t}=e.options,n;if(t===!1)n=Kt;else{let i=s.includes('"'),r=s.includes("'");i&&!r?n=Dn:r&&!i?n=Kt:n=t?Dn:Kt}return n(s,e)}var Wn;try{Wn=new RegExp(`(^|(?<!
|
|
29
|
-
))
|
|
30
|
-
+(?!
|
|
31
|
-
|$)`,"g")}catch{Wn=/\n+(?!\n|$)/g}function qs({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 dt(t,n);let c=n.indent||(n.forceBlockIndent||Ps(t)?" ":""),u=o==="literal"?!0:o==="folded"||e===ke.Scalar.BLOCK_FOLDED?!1:e===ke.Scalar.BLOCK_LITERAL?!0:!kf(t,l,c.length);if(!t)return u?`|
|
|
32
|
-
`:`>
|
|
33
|
-
`;let f,h;for(h=t.length;h>0;--h){let M=t[h-1];if(M!==`
|
|
34
|
-
`&&M!==" "&&M!==" ")break}let g=t.substring(h),b=g.indexOf(`
|
|
35
|
-
`);b===-1?f="-":t===g||b!==g.length-1?(f="+",r&&r()):f="",g&&(t=t.slice(0,-g.length),g[g.length-1]===`
|
|
36
|
-
`&&(g=g.slice(0,-1)),g=g.replace(Wn,`$&${c}`));let m=!1,y,S=-1;for(y=0;y<t.length;++y){let M=t[y];if(M===" ")m=!0;else if(M===`
|
|
37
|
-
`)S=y;else break}let v=t.substring(0,S<y?S+1:y);v&&(t=t.substring(v.length),v=v.replace(/\n+/g,`$&${c}`));let _=(m?c?"2":"1":"")+f;if(s&&(_+=" "+a(s.replace(/ ?[\r\n]+/g," ")),i&&i()),!u){let M=t.replace(/\n+/g,`
|
|
38
|
-
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`),$=!1,D=Ls(n,!0);o!=="folded"&&e!==ke.Scalar.BLOCK_FOLDED&&(D.onOverflow=()=>{$=!0});let E=je.foldFlowLines(`${v}${M}${g}`,c,je.FOLD_BLOCK,D);if(!$)return`>${_}
|
|
39
|
-
${c}${E}`}return t=t.replace(/\n+/g,`$&${c}`),`|${_}
|
|
40
|
-
${c}${v}${t}${g}`}function Of(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(`
|
|
41
|
-
`)||u&&/[[\]{},]/.test(r))return dt(r,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(r))return a||u||!r.includes(`
|
|
42
|
-
`)?dt(r,e):qs(s,e,t,n);if(!a&&!u&&i!==ke.Scalar.PLAIN&&r.includes(`
|
|
43
|
-
`))return qs(s,e,t,n);if(Ps(r)){if(l==="")return e.forceBlockIndent=!0,qs(s,e,t,n);if(a&&l===c)return dt(r,e)}let f=r.replace(/\n+/g,`$&
|
|
44
|
-
${l}`);if(o){let h=m=>m.default&&m.tag!=="tag:yaml.org,2002:str"&&m.test?.test(f),{compat:g,tags:b}=e.doc.schema;if(b.some(h)||g?.some(h))return dt(r,e)}return a?f:je.foldFlowLines(f,l,je.FOLD_FLOW,Ls(e,!1))}function Tf(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!==ke.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=ke.Scalar.QUOTE_DOUBLE);let l=u=>{switch(u){case ke.Scalar.BLOCK_FOLDED:case ke.Scalar.BLOCK_LITERAL:return i||r?dt(o.value,e):qs(o,e,t,n);case ke.Scalar.QUOTE_DOUBLE:return Kt(o.value,e);case ke.Scalar.QUOTE_SINGLE:return Dn(o.value,e);case ke.Scalar.PLAIN:return Of(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}wo.stringifyString=Tf});var Ut=N(Hn=>{"use strict";var Cf=Es(),Ke=U(),If=Bt(),qf=Vt();function Lf(s,e){let t=Object.assign({blockQuote:!0,commentString:If.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,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 Pf(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(Ke.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 _f(s,e,{anchors:t,doc:n}){if(!n.directives)return"";let i=[],r=(Ke.isScalar(s)||Ke.isCollection(s))&&s.anchor;r&&Cf.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 Mf(s,e,t,n){if(Ke.isPair(s))return s.toString(e,t,n);if(Ke.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=Ke.isNode(s)?s:e.doc.createNode(s,{onTagObj:l=>i=l});i??(i=Pf(e.doc.schema.tags,r));let o=_f(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):Ke.isScalar(r)?qf.stringifyString(r,e,t,n):r.toString(e,t,n);return o?Ke.isScalar(r)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
|
|
45
|
-
${e.indent}${a}`:a}Hn.createStringifyContext=Lf;Hn.stringify=Mf});var Eo=N(vo=>{"use strict";var _e=U(),So=re(),No=Ut(),Yt=Bt();function $f({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=_e.isNode(s)&&s.comment||null;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(_e.isCollection(s)||!_e.isNode(s)&&typeof s=="object"){let D="With simple keys, collection cannot be used as a key value";throw new Error(D)}}let g=!f&&(!s||h&&e==null&&!t.inFlow||_e.isCollection(s)||(_e.isScalar(s)?s.type===So.Scalar.BLOCK_FOLDED||s.type===So.Scalar.BLOCK_LITERAL:typeof s=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!g&&(f||!r),indent:a+l});let b=!1,m=!1,y=No.stringify(s,t,()=>b=!0,()=>m=!0);if(!g&&!t.inFlow&&y.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(t.inFlow){if(r||e==null)return b&&n&&n(),y===""?"?":g?`? ${y}`:y}else if(r&&!f||e==null&&g)return y=`? ${y}`,h&&!b?y+=Yt.lineComment(y,t.indent,c(h)):m&&i&&i(),y;b&&(h=null),g?(h&&(y+=Yt.lineComment(y,t.indent,c(h))),y=`? ${y}
|
|
46
|
-
${a}:`):(y=`${y}:`,h&&(y+=Yt.lineComment(y,t.indent,c(h))));let S,v,C;_e.isNode(e)?(S=!!e.spaceBefore,v=e.commentBefore,C=e.comment):(S=!1,v=null,C=null,e&&typeof e=="object"&&(e=o.createNode(e))),t.implicitKey=!1,!g&&!h&&_e.isScalar(e)&&(t.indentAtStart=y.length+1),m=!1,!u&&l.length>=2&&!t.inFlow&&!g&&_e.isSeq(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let _=!1,M=No.stringify(e,t,()=>_=!0,()=>m=!0),$=" ";if(h||S||v){if($=S?`
|
|
47
|
-
`:"",v){let D=c(v);$+=`
|
|
48
|
-
${Yt.indentComment(D,t.indent)}`}M===""&&!t.inFlow?$===`
|
|
49
|
-
`&&C&&($=`
|
|
50
|
-
|
|
51
|
-
`):$+=`
|
|
52
|
-
${t.indent}`}else if(!g&&_e.isCollection(e)){let D=M[0],E=M.indexOf(`
|
|
53
|
-
`),Q=E!==-1,X=t.inFlow??e.flow??e.items.length===0;if(Q||!X){let K=!1;if(Q&&(D==="&"||D==="!")){let d=M.indexOf(" ");D==="&"&&d!==-1&&d<E&&M[d+1]==="!"&&(d=M.indexOf(" ",d+1)),(d===-1||E<d)&&(K=!0)}K||($=`
|
|
54
|
-
${t.indent}`)}}else(M===""||M[0]===`
|
|
55
|
-
`)&&($="");return y+=$+M,t.inFlow?_&&n&&n():C&&!_?y+=Yt.lineComment(y,t.indent,c(C)):m&&i&&i(),y}vo.stringifyPair=$f});var Qn=N(Gn=>{"use strict";var Ao=Et("process");function xf(s,...e){s==="debug"&&console.log(...e)}function Rf(s,e){(s==="debug"||s==="warn")&&(typeof Ao.emitWarning=="function"?Ao.emitWarning(e):console.warn(e))}Gn.debug=xf;Gn.warn=Rf});var xs=N($s=>{"use strict";var Jt=U(),ko=re(),_s="<<",Ms={identify:s=>s===_s||typeof s=="symbol"&&s.description===_s,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new ko.Scalar(Symbol(_s)),{addToJSMap:Oo}),stringify:()=>_s},Ff=(s,e)=>(Ms.identify(e)||Jt.isScalar(e)&&(!e.type||e.type===ko.Scalar.PLAIN)&&Ms.identify(e.value))&&s?.doc.schema.tags.some(t=>t.tag===Ms.tag&&t.default);function Oo(s,e,t){if(t=s&&Jt.isAlias(t)?t.resolve(s.doc):t,Jt.isSeq(t))for(let n of t.items)Xn(s,e,n);else if(Array.isArray(t))for(let n of t)Xn(s,e,n);else Xn(s,e,t)}function Xn(s,e,t){let n=s&&Jt.isAlias(t)?t.resolve(s.doc):t;if(!Jt.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}$s.addMergeToJSMap=Oo;$s.isMergeKey=Ff;$s.merge=Ms});var Zn=N(Io=>{"use strict";var Bf=Qn(),To=xs(),jf=Ut(),Co=U(),zn=Fe();function Kf(s,e,{key:t,value:n}){if(Co.isNode(t)&&t.addToJSMap)t.addToJSMap(s,e,n);else if(To.isMergeKey(s,t))To.addMergeToJSMap(s,e,n);else{let i=zn.toJS(t,"",s);if(e instanceof Map)e.set(i,zn.toJS(n,i,s));else if(e instanceof Set)e.add(i);else{let r=Vf(t,i,s),o=zn.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 Vf(s,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(Co.isNode(s)&&t?.doc){let n=jf.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)+'..."'),Bf.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)}Io.addPairToJSMap=Kf});var Ve=N(ei=>{"use strict";var qo=Ft(),Uf=Eo(),Yf=Zn(),Rs=U();function Jf(s,e,t){let n=qo.createNode(s,void 0,t),i=qo.createNode(e,void 0,t);return new Fs(n,i)}var Fs=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 Yf.addPairToJSMap(t,n,this)}toString(e,t,n){return e?.doc?Uf.stringifyPair(this,e,t,n):JSON.stringify(this)}};ei.Pair=Fs;ei.createPair=Jf});var ti=N(Po=>{"use strict";var tt=U(),Lo=Ut(),Bs=Bt();function Df(s,e,t){return(e.inFlow??s.flow?Hf:Wf)(s,e,t)}function Wf({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 b=0;b<e.length;++b){let m=e[b],y=null;if(tt.isNode(m))!f&&m.spaceBefore&&h.push(""),js(t,h,m.commentBefore,f),m.comment&&(y=m.comment);else if(tt.isPair(m)){let v=tt.isNode(m.key)?m.key:null;v&&(!f&&v.spaceBefore&&h.push(""),js(t,h,v.commentBefore,f))}f=!1;let S=Lo.stringify(m,u,()=>y=null,()=>f=!0);y&&(S+=Bs.lineComment(S,r,c(y))),f&&y&&(f=!1),h.push(n+S)}let g;if(h.length===0)g=i.start+i.end;else{g=h[0];for(let b=1;b<h.length;++b){let m=h[b];g+=m?`
|
|
56
|
-
${l}${m}`:`
|
|
57
|
-
`}}return s?(g+=`
|
|
58
|
-
`+Bs.indentComment(c(s),l),a&&a()):f&&o&&o(),g}function Hf({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 b=0;b<s.length;++b){let m=s[b],y=null;if(tt.isNode(m))m.spaceBefore&&f.push(""),js(e,f,m.commentBefore,!1),m.comment&&(y=m.comment);else if(tt.isPair(m)){let v=tt.isNode(m.key)?m.key:null;v&&(v.spaceBefore&&f.push(""),js(e,f,v.commentBefore,!1),v.comment&&(c=!0));let C=tt.isNode(m.value)?m.value:null;C?(C.comment&&(y=C.comment),C.commentBefore&&(c=!0)):m.value==null&&v?.comment&&(y=v.comment)}y&&(c=!0);let S=Lo.stringify(m,l,()=>y=null);b<s.length-1&&(S+=","),y&&(S+=Bs.lineComment(S,n,a(y))),!c&&(f.length>u||S.includes(`
|
|
59
|
-
`))&&(c=!0),f.push(S),u=f.length}let{start:h,end:g}=t;if(f.length===0)return h+g;if(!c){let b=f.reduce((m,y)=>m+y.length+2,2);c=e.options.lineWidth>0&&b>e.options.lineWidth}if(c){let b=h;for(let m of f)b+=m?`
|
|
60
|
-
${r}${i}${m}`:`
|
|
61
|
-
`;return`${b}
|
|
62
|
-
${i}${g}`}else return`${h}${o}${f.join(" ")}${o}${g}`}function js({indent:s,options:{commentString:e}},t,n,i){if(n&&i&&(n=n.replace(/^\n+/,"")),n){let r=Bs.indentComment(e(n),s);t.push(r.trimStart())}}Po.stringifyCollection=Df});var Ye=N(ni=>{"use strict";var Gf=ti(),Qf=Zn(),Xf=Ts(),Ue=U(),Ks=Ve(),zf=re();function Dt(s,e){let t=Ue.isScalar(e)?e.value:e;for(let n of s)if(Ue.isPair(n)&&(n.key===e||n.key===t||Ue.isScalar(n.key)&&n.key.value===t))return n}var si=class extends Xf.Collection{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Ue.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(Ks.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;Ue.isPair(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new Ks.Pair(e,e?.value):n=new Ks.Pair(e.key,e.value);let i=Dt(this.items,n.key),r=this.schema?.sortMapEntries;if(i){if(!t)throw new Error(`Key ${n.key} already set`);Ue.isScalar(i.value)&&zf.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=Dt(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let i=Dt(this.items,e)?.value;return(!t&&Ue.isScalar(i)?i.value:i)??void 0}has(e){return!!Dt(this.items,e)}set(e,t){this.add(new Ks.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)Qf.addPairToJSMap(t,i,r);return i}toString(e,t,n){if(!e)return JSON.stringify(this);for(let i of this.items)if(!Ue.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})),Gf.stringifyCollection(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}};ni.YAMLMap=si;ni.findPair=Dt});var pt=N(Mo=>{"use strict";var Zf=U(),_o=Ye(),eu={collection:"map",default:!0,nodeClass:_o.YAMLMap,tag:"tag:yaml.org,2002:map",resolve(s,e){return Zf.isMap(s)||e("Expected a mapping for this tag"),s},createNode:(s,e,t)=>_o.YAMLMap.from(s,e,t)};Mo.map=eu});var Je=N($o=>{"use strict";var tu=Ft(),su=ti(),nu=Ts(),Us=U(),iu=re(),ru=Fe(),ii=class extends nu.Collection{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Us.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=Vs(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let n=Vs(e);if(typeof n!="number")return;let i=this.items[n];return!t&&Us.isScalar(i)?i.value:i}has(e){let t=Vs(e);return typeof t=="number"&&t<this.items.length}set(e,t){let n=Vs(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);let i=this.items[n];Us.isScalar(i)&&iu.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(ru.toJS(r,String(i++),t));return n}toString(e,t,n){return e?su.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(tu.createNode(a,void 0,n))}}return r}};function Vs(s){let e=Us.isScalar(s)?s.value:s;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}$o.YAMLSeq=ii});var mt=N(Ro=>{"use strict";var ou=U(),xo=Je(),au={collection:"seq",default:!0,nodeClass:xo.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve(s,e){return ou.isSeq(s)||e("Expected a sequence for this tag"),s},createNode:(s,e,t)=>xo.YAMLSeq.from(s,e,t)};Ro.seq=au});var Wt=N(Fo=>{"use strict";var lu=Vt(),cu={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),lu.stringifyString(s,e,t,n)}};Fo.string=cu});var Ys=N(Ko=>{"use strict";var Bo=re(),jo={identify:s=>s==null,createNode:()=>new Bo.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Bo.Scalar(null),stringify:({source:s},e)=>typeof s=="string"&&jo.test.test(s)?s:e.options.nullStr};Ko.nullTag=jo});var ri=N(Uo=>{"use strict";var fu=re(),Vo={identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:s=>new fu.Scalar(s[0]==="t"||s[0]==="T"),stringify({source:s,value:e},t){if(s&&Vo.test.test(s)){let n=s[0]==="t"||s[0]==="T";if(e===n)return s}return e?t.options.trueStr:t.options.falseStr}};Uo.boolTag=Vo});var gt=N(Yo=>{"use strict";function uu({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}Yo.stringifyNumber=uu});var ai=N(Js=>{"use strict";var hu=re(),oi=gt(),du={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:oi.stringifyNumber},pu={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():oi.stringifyNumber(s)}},mu={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 hu.Scalar(parseFloat(s)),t=s.indexOf(".");return t!==-1&&s[s.length-1]==="0"&&(e.minFractionDigits=s.length-t-1),e},stringify:oi.stringifyNumber};Js.float=mu;Js.floatExp=pu;Js.floatNaN=du});var ci=N(Ws=>{"use strict";var Jo=gt(),Ds=s=>typeof s=="bigint"||Number.isInteger(s),li=(s,e,t,{intAsBigInt:n})=>n?BigInt(s):parseInt(s.substring(e),t);function Do(s,e,t){let{value:n}=s;return Ds(n)&&n>=0?t+n.toString(e):Jo.stringifyNumber(s)}var gu={identify:s=>Ds(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(s,e,t)=>li(s,2,8,t),stringify:s=>Do(s,8,"0o")},yu={identify:Ds,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(s,e,t)=>li(s,0,10,t),stringify:Jo.stringifyNumber},bu={identify:s=>Ds(s)&&s>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(s,e,t)=>li(s,2,16,t),stringify:s=>Do(s,16,"0x")};Ws.int=yu;Ws.intHex=bu;Ws.intOct=gu});var Ho=N(Wo=>{"use strict";var wu=pt(),Su=Ys(),Nu=mt(),vu=Wt(),Eu=ri(),fi=ai(),ui=ci(),Au=[wu.map,Nu.seq,vu.string,Su.nullTag,Eu.boolTag,ui.intOct,ui.int,ui.intHex,fi.floatNaN,fi.floatExp,fi.float];Wo.schema=Au});var Xo=N(Qo=>{"use strict";var ku=re(),Ou=pt(),Tu=mt();function Go(s){return typeof s=="bigint"||Number.isInteger(s)}var Hs=({value:s})=>JSON.stringify(s),Cu=[{identify:s=>typeof s=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:s=>s,stringify:Hs},{identify:s=>s==null,createNode:()=>new ku.Scalar(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Hs},{identify:s=>typeof s=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:s=>s==="true",stringify:Hs},{identify:Go,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})=>Go(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:Hs}],Iu={default:!0,tag:"",test:/^/,resolve(s,e){return e(`Unresolved plain scalar ${JSON.stringify(s)}`),s}},qu=[Ou.map,Tu.seq].concat(Cu,Iu);Qo.schema=qu});var di=N(zo=>{"use strict";var Ht=Et("buffer"),hi=re(),Lu=Vt(),Pu={identify:s=>s instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(s,e){if(typeof Ht.Buffer=="function")return Ht.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 Ht.Buffer=="function")a=o instanceof Ht.Buffer?o.toString("base64"):Ht.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=hi.Scalar.BLOCK_LITERAL),e!==hi.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===hi.Scalar.BLOCK_LITERAL?`
|
|
63
|
-
`:" ")}return Lu.stringifyString({comment:s,type:e,value:a},n,i,r)}};zo.binary=Pu});var Xs=N(Qs=>{"use strict";var Gs=U(),pi=Ve(),_u=re(),Mu=Je();function Zo(s,e){if(Gs.isSeq(s))for(let t=0;t<s.items.length;++t){let n=s.items[t];if(!Gs.isPair(n)){if(Gs.isMap(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");let i=n.items[0]||new pi.Pair(new _u.Scalar(null));if(n.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${n.commentBefore}
|
|
64
|
-
${i.key.commentBefore}`:n.commentBefore),n.comment){let r=i.value??i.key;r.comment=r.comment?`${n.comment}
|
|
65
|
-
${r.comment}`:n.comment}n=i}s.items[t]=Gs.isPair(n)?n:new pi.Pair(n)}}else e("Expected a sequence for this tag");return s}function ea(s,e,t){let{replacer:n}=t,i=new Mu.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(pi.createPair(a,l,t))}return i}var $u={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Zo,createNode:ea};Qs.createPairs=ea;Qs.pairs=$u;Qs.resolvePairs=Zo});var yi=N(gi=>{"use strict";var ta=U(),mi=Fe(),Gt=Ye(),xu=Je(),sa=Xs(),st=class s extends xu.YAMLSeq{constructor(){super(),this.add=Gt.YAMLMap.prototype.add.bind(this),this.delete=Gt.YAMLMap.prototype.delete.bind(this),this.get=Gt.YAMLMap.prototype.get.bind(this),this.has=Gt.YAMLMap.prototype.has.bind(this),this.set=Gt.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(ta.isPair(i)?(r=mi.toJS(i.key,"",t),o=mi.toJS(i.value,r,t)):r=mi.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=sa.createPairs(e,t,n),r=new this;return r.items=i.items,r}};st.tag="tag:yaml.org,2002:omap";var Ru={collection:"seq",identify:s=>s instanceof Map,nodeClass:st,default:!1,tag:"tag:yaml.org,2002:omap",resolve(s,e){let t=sa.resolvePairs(s,e),n=[];for(let{key:i}of t.items)ta.isScalar(i)&&(n.includes(i.value)?e(`Ordered maps must not include duplicate keys: ${i.value}`):n.push(i.value));return Object.assign(new st,t)},createNode:(s,e,t)=>st.from(s,e,t)};gi.YAMLOMap=st;gi.omap=Ru});var aa=N(bi=>{"use strict";var na=re();function ia({value:s,source:e},t){return e&&(s?ra:oa).test.test(e)?e:s?t.options.trueStr:t.options.falseStr}var ra={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 na.Scalar(!0),stringify:ia},oa={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 na.Scalar(!1),stringify:ia};bi.falseTag=oa;bi.trueTag=ra});var la=N(zs=>{"use strict";var Fu=re(),wi=gt(),Bu={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:wi.stringifyNumber},ju={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():wi.stringifyNumber(s)}},Ku={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 Fu.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:wi.stringifyNumber};zs.float=Ku;zs.floatExp=ju;zs.floatNaN=Bu});var fa=N(Xt=>{"use strict";var ca=gt(),Qt=s=>typeof s=="bigint"||Number.isInteger(s);function Zs(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 Si(s,e,t){let{value:n}=s;if(Qt(n)){let i=n.toString(e);return n<0?"-"+t+i.substr(1):t+i}return ca.stringifyNumber(s)}var Vu={identify:Qt,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(s,e,t)=>Zs(s,2,2,t),stringify:s=>Si(s,2,"0b")},Uu={identify:Qt,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(s,e,t)=>Zs(s,1,8,t),stringify:s=>Si(s,8,"0")},Yu={identify:Qt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(s,e,t)=>Zs(s,0,10,t),stringify:ca.stringifyNumber},Ju={identify:Qt,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(s,e,t)=>Zs(s,2,16,t),stringify:s=>Si(s,16,"0x")};Xt.int=Yu;Xt.intBin=Vu;Xt.intHex=Ju;Xt.intOct=Uu});var vi=N(Ni=>{"use strict";var sn=U(),en=Ve(),tn=Ye(),nt=class s extends tn.YAMLMap{constructor(e){super(e),this.tag=s.tag}add(e){let t;sn.isPair(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new en.Pair(e.key,null):t=new en.Pair(e,null),tn.findPair(this.items,t.key)||this.items.push(t)}get(e,t){let n=tn.findPair(this.items,e);return!t&&sn.isPair(n)?sn.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=tn.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new en.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(en.createPair(o,null,n));return r}};nt.tag="tag:yaml.org,2002:set";var Du={collection:"map",identify:s=>s instanceof Set,nodeClass:nt,default:!1,tag:"tag:yaml.org,2002:set",createNode:(s,e,t)=>nt.from(s,e,t),resolve(s,e){if(sn.isMap(s)){if(s.hasAllNullValues(!0))return Object.assign(new nt,s);e("Set items must all have null values")}else e("Expected a mapping for this tag");return s}};Ni.YAMLSet=nt;Ni.set=Du});var Ai=N(nn=>{"use strict";var Wu=gt();function Ei(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 ua(s){let{value:e}=s,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return Wu.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 Hu={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})=>Ei(s,t),stringify:ua},Gu={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=>Ei(s,!1),stringify:ua},ha={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(ha.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=Ei(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$/,"")??""};nn.floatTime=Gu;nn.intTime=Hu;nn.timestamp=ha});var ma=N(pa=>{"use strict";var Qu=pt(),Xu=Ys(),zu=mt(),Zu=Wt(),eh=di(),da=aa(),ki=la(),rn=fa(),th=xs(),sh=yi(),nh=Xs(),ih=vi(),Oi=Ai(),rh=[Qu.map,zu.seq,Zu.string,Xu.nullTag,da.trueTag,da.falseTag,rn.intBin,rn.intOct,rn.int,rn.intHex,ki.floatNaN,ki.floatExp,ki.float,eh.binary,th.merge,sh.omap,nh.pairs,ih.set,Oi.intTime,Oi.floatTime,Oi.timestamp];pa.schema=rh});var ka=N(Ii=>{"use strict";var wa=pt(),oh=Ys(),Sa=mt(),ah=Wt(),lh=ri(),Ti=ai(),Ci=ci(),ch=Ho(),fh=Xo(),Na=di(),zt=xs(),va=yi(),Ea=Xs(),ga=ma(),Aa=vi(),on=Ai(),ya=new Map([["core",ch.schema],["failsafe",[wa.map,Sa.seq,ah.string]],["json",fh.schema],["yaml11",ga.schema],["yaml-1.1",ga.schema]]),ba={binary:Na.binary,bool:lh.boolTag,float:Ti.float,floatExp:Ti.floatExp,floatNaN:Ti.floatNaN,floatTime:on.floatTime,int:Ci.int,intHex:Ci.intHex,intOct:Ci.intOct,intTime:on.intTime,map:wa.map,merge:zt.merge,null:oh.nullTag,omap:va.omap,pairs:Ea.pairs,seq:Sa.seq,set:Aa.set,timestamp:on.timestamp},uh={"tag:yaml.org,2002:binary":Na.binary,"tag:yaml.org,2002:merge":zt.merge,"tag:yaml.org,2002:omap":va.omap,"tag:yaml.org,2002:pairs":Ea.pairs,"tag:yaml.org,2002:set":Aa.set,"tag:yaml.org,2002:timestamp":on.timestamp};function hh(s,e,t){let n=ya.get(e);if(n&&!s)return t&&!n.includes(zt.merge)?n.concat(zt.merge):n.slice();let i=n;if(!i)if(Array.isArray(s))i=[];else{let r=Array.from(ya.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(zt.merge)),i.reduce((r,o)=>{let a=typeof o=="string"?ba[o]:o;if(!a){let l=JSON.stringify(o),c=Object.keys(ba).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},[])}Ii.coreKnownTags=uh;Ii.getTags=hh});var Pi=N(Oa=>{"use strict";var qi=U(),dh=pt(),ph=mt(),mh=Wt(),an=ka(),gh=(s,e)=>s.key<e.key?-1:s.key>e.key?1:0,Li=class s{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:i,schema:r,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?an.getTags(e,"compat"):e?an.getTags(null,e):null,this.name=typeof r=="string"&&r||"core",this.knownTags=i?an.coreKnownTags:{},this.tags=an.getTags(t,this.name,n),this.toStringOptions=a??null,Object.defineProperty(this,qi.MAP,{value:dh.map}),Object.defineProperty(this,qi.SCALAR,{value:mh.string}),Object.defineProperty(this,qi.SEQ,{value:ph.seq}),this.sortMapEntries=typeof o=="function"?o:o===!0?gh:null}clone(){let e=Object.create(s.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};Oa.Schema=Li});var Ca=N(Ta=>{"use strict";var yh=U(),_i=Ut(),Zt=Bt();function bh(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=_i.createStringifyContext(s,e),{commentString:r}=i.options;if(s.commentBefore){t.length!==1&&t.unshift("");let l=r(s.commentBefore);t.unshift(Zt.indentComment(l,""))}let o=!1,a=null;if(s.contents){if(yh.isNode(s.contents)){if(s.contents.spaceBefore&&n&&t.push(""),s.contents.commentBefore){let u=r(s.contents.commentBefore);t.push(Zt.indentComment(u,""))}i.forceBlockIndent=!!s.comment,a=s.contents.comment}let l=a?void 0:()=>o=!0,c=_i.stringify(s.contents,i,()=>a=null,l);a&&(c+=Zt.lineComment(c,"",r(a))),(c[0]==="|"||c[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${c}`:t.push(c)}else t.push(_i.stringify(s.contents,i));if(s.directives?.docEnd)if(s.comment){let l=r(s.comment);l.includes(`
|
|
66
|
-
`)?(t.push("..."),t.push(Zt.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(Zt.indentComment(r(l),"")))}return t.join(`
|
|
67
|
-
`)+`
|
|
68
|
-
`}Ta.stringifyDocument=bh});var es=N(Ia=>{"use strict";var wh=Rt(),yt=Ts(),ve=U(),Sh=Ve(),Nh=Fe(),vh=Pi(),Eh=Ca(),Mi=Es(),Ah=Fn(),kh=Ft(),$i=Rn(),xi=class s{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ve.NODE_TYPE,{value:ve.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 $i.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,{[ve.NODE_TYPE]:{value:ve.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=ve.isNode(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){bt(this.contents)&&this.contents.add(e)}addIn(e,t){bt(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=Mi.anchorNames(this);e.anchor=!t||n.has(t)?Mi.findNewAnchor(t||"a",n):t}return new wh.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 y=v=>typeof v=="number"||v instanceof String||v instanceof Number,S=t.filter(y).map(String);S.length>0&&(t=t.concat(S)),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:g}=Mi.createNodeAnchors(this,o||"a"),b={aliasDuplicateObjects:r??!0,keepUndefined:l??!1,onAnchor:f,onTagObj:c,replacer:i,schema:this.schema,sourceObjects:g},m=kh.createNode(e,u,b);return a&&ve.isCollection(m)&&(m.flow=!0),h(),m}createPair(e,t,n={}){let i=this.createNode(e,null,n),r=this.createNode(t,null,n);return new Sh.Pair(i,r)}delete(e){return bt(this.contents)?this.contents.delete(e):!1}deleteIn(e){return yt.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):bt(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return ve.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return yt.isEmptyPath(e)?!t&&ve.isScalar(this.contents)?this.contents.value:this.contents:ve.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return ve.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return yt.isEmptyPath(e)?this.contents!==void 0:ve.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=yt.collectionFromPath(this.schema,[e],t):bt(this.contents)&&this.contents.set(e,t)}setIn(e,t){yt.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=yt.collectionFromPath(this.schema,Array.from(e),t):bt(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 $i.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 $i.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 vh.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=Nh.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"?Ah.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 Eh.stringifyDocument(this,e)}};function bt(s){if(ve.isCollection(s))return!0;throw new Error("Expected a YAML collection as document contents")}Ia.Document=xi});var ns=N(ss=>{"use strict";var ts=class extends Error{constructor(e,t,n,i){super(),this.name=e,this.code=n,this.message=i,this.pos=t}},Ri=class extends ts{constructor(e,t,n){super("YAMLParseError",e,t,n)}},Fi=class extends ts{constructor(e,t,n){super("YAMLWarning",e,t,n)}},Oh=(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
|
|
69
|
-
`),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+=`:
|
|
70
|
-
|
|
71
|
-
${o}
|
|
72
|
-
${c}
|
|
73
|
-
`}};ss.YAMLError=ts;ss.YAMLParseError=Ri;ss.YAMLWarning=Fi;ss.prettifyError=Oh});var is=N(qa=>{"use strict";function Th(s,{flow:e,indicator:t,next:n,offset:i,onError:r,parentIndent:o,startOnNewline:a}){let l=!1,c=a,u=a,f="",h="",g=!1,b=!1,m=null,y=null,S=null,v=null,C=null,_=null,M=null;for(let E of s)switch(b&&(E.type!=="space"&&E.type!=="newline"&&E.type!=="comma"&&r(E.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b=!1),m&&(c&&E.type!=="comment"&&E.type!=="newline"&&r(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),E.type){case"space":!e&&(t!=="doc-start"||n?.type!=="flow-collection")&&E.source.includes(" ")&&(m=E),u=!0;break;case"comment":{u||r(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let Q=E.source.substring(1)||" ";f?f+=h+Q:f=Q,h="",c=!1;break}case"newline":c?f?f+=E.source:(!_||t!=="seq-item-ind")&&(l=!0):h+=E.source,c=!0,g=!0,(y||S)&&(v=E),u=!0;break;case"anchor":y&&r(E,"MULTIPLE_ANCHORS","A node can have at most one anchor"),E.source.endsWith(":")&&r(E.offset+E.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),y=E,M??(M=E.offset),c=!1,u=!1,b=!0;break;case"tag":{S&&r(E,"MULTIPLE_TAGS","A node can have at most one tag"),S=E,M??(M=E.offset),c=!1,u=!1,b=!0;break}case t:(y||S)&&r(E,"BAD_PROP_ORDER",`Anchors and tags must be after the ${E.source} indicator`),_&&r(E,"UNEXPECTED_TOKEN",`Unexpected ${E.source} in ${e??"collection"}`),_=E,c=t==="seq-item-ind"||t==="explicit-key-ind",u=!1;break;case"comma":if(e){C&&r(E,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),C=E,c=!1,u=!1;break}default:r(E,"UNEXPECTED_TOKEN",`Unexpected ${E.type} token`),c=!1,u=!1}let $=s[s.length-1],D=$?$.offset+$.source.length:i;return b&&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"),m&&(c&&m.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&r(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:C,found:_,spaceBefore:l,comment:f,hasNewline:g,anchor:y,tag:S,newlineAfterProp:v,end:D,start:M??D}}qa.resolveProps=Th});var ln=N(La=>{"use strict";function Bi(s){if(!s)return null;switch(s.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(s.source.includes(`
|
|
74
|
-
`))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(Bi(e.key)||Bi(e.value))return!0}return!1;default:return!0}}La.containsNewline=Bi});var ji=N(Pa=>{"use strict";var Ch=ln();function Ih(s,e,t){if(e?.type==="flow-collection"){let n=e.end[0];n.indent===s&&(n.source==="]"||n.source==="}")&&Ch.containsNewline(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}Pa.flowIndentCheck=Ih});var Ki=N(Ma=>{"use strict";var _a=U();function qh(s,e,t){let{uniqueKeys:n}=s.options;if(n===!1)return!1;let i=typeof n=="function"?n:(r,o)=>r===o||_a.isScalar(r)&&_a.isScalar(o)&&r.value===o.value;return e.some(r=>i(r.key,t))}Ma.mapIncludes=qh});var ja=N(Ba=>{"use strict";var $a=Ve(),Lh=Ye(),xa=is(),Ph=ln(),Ra=ji(),_h=Ki(),Fa="All mapping items must start at the same column";function Mh({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=r?.nodeClass??Lh.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:g,value:b}=u,m=xa.resolveProps(f,{indicator:"explicit-key-ind",next:h??g?.[0],offset:l,onError:i,parentIndent:n.indent,startOnNewline:!0}),y=!m.found;if(y){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",Fa)),!m.anchor&&!m.tag&&!g){c=m.end,m.comment&&(a.comment?a.comment+=`
|
|
75
|
-
`+m.comment:a.comment=m.comment);continue}(m.newlineAfterProp||Ph.containsNewline(h))&&i(h??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else m.found?.indent!==n.indent&&i(l,"BAD_INDENT",Fa);t.atKey=!0;let S=m.end,v=h?s(t,h,m,i):e(t,S,f,null,m,i);t.schema.compat&&Ra.flowIndentCheck(n.indent,h,i),t.atKey=!1,_h.mapIncludes(t,a.items,v)&&i(S,"DUPLICATE_KEY","Map keys must be unique");let C=xa.resolveProps(g??[],{indicator:"map-value-ind",next:b,offset:v.range[2],onError:i,parentIndent:n.indent,startOnNewline:!h||h.type==="block-scalar"});if(l=C.end,C.found){y&&(b?.type==="block-map"&&!C.hasNewline&&i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&m.start<C.found.offset-1024&&i(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let _=b?s(t,b,C,i):e(t,l,g,null,C,i);t.schema.compat&&Ra.flowIndentCheck(n.indent,b,i),l=_.range[2];let M=new $a.Pair(v,_);t.options.keepSourceTokens&&(M.srcToken=u),a.items.push(M)}else{y&&i(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),C.comment&&(v.comment?v.comment+=`
|
|
76
|
-
`+C.comment:v.comment=C.comment);let _=new $a.Pair(v);t.options.keepSourceTokens&&(_.srcToken=u),a.items.push(_)}}return c&&c<l&&i(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[n.offset,l,c??l],a}Ba.resolveBlockMap=Mh});var Va=N(Ka=>{"use strict";var $h=Je(),xh=is(),Rh=ji();function Fh({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=r?.nodeClass??$h.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=xh.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 g=f?s(t,f,h,i):e(t,h.end,u,null,h,i);t.schema.compat&&Rh.flowIndentCheck(n.indent,f,i),l=g.range[2],a.items.push(g)}return a.range=[n.offset,l,c??l],a}Ka.resolveBlockSeq=Fh});var wt=N(Ua=>{"use strict";function Bh(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}}Ua.resolveEnd=Bh});var Wa=N(Da=>{"use strict";var jh=U(),Kh=Ve(),Ya=Ye(),Vh=Je(),Uh=wt(),Ja=is(),Yh=ln(),Jh=Ki(),Vi="Block collections are not allowed within flow collections",Ui=s=>s&&(s.type==="block-map"||s.type==="block-seq");function Dh({composeNode:s,composeEmptyNode:e},t,n,i,r){let o=n.start.source==="{",a=o?"flow map":"flow sequence",l=r?.nodeClass??(o?Ya.YAMLMap:Vh.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 y=0;y<n.items.length;++y){let S=n.items[y],{start:v,key:C,sep:_,value:M}=S,$=Ja.resolveProps(v,{flow:a,indicator:"explicit-key-ind",next:C??_?.[0],offset:f,onError:i,parentIndent:n.indent,startOnNewline:!1});if(!$.found){if(!$.anchor&&!$.tag&&!_&&!M){y===0&&$.comma?i($.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):y<n.items.length-1&&i($.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),$.comment&&(c.comment?c.comment+=`
|
|
77
|
-
`+$.comment:c.comment=$.comment),f=$.end;continue}!o&&t.options.strict&&Yh.containsNewline(C)&&i(C,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(y===0)$.comma&&i($.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if($.comma||i($.start,"MISSING_CHAR",`Missing , between ${a} items`),$.comment){let D="";e:for(let E of v)switch(E.type){case"comma":case"space":break;case"comment":D=E.source.substring(1);break e;default:break e}if(D){let E=c.items[c.items.length-1];jh.isPair(E)&&(E=E.value??E.key),E.comment?E.comment+=`
|
|
78
|
-
`+D:E.comment=D,$.comment=$.comment.substring(D.length+1)}}if(!o&&!_&&!$.found){let D=M?s(t,M,$,i):e(t,$.end,_,null,$,i);c.items.push(D),f=D.range[2],Ui(M)&&i(D.range,"BLOCK_IN_FLOW",Vi)}else{t.atKey=!0;let D=$.end,E=C?s(t,C,$,i):e(t,D,v,null,$,i);Ui(C)&&i(E.range,"BLOCK_IN_FLOW",Vi),t.atKey=!1;let Q=Ja.resolveProps(_??[],{flow:a,indicator:"map-value-ind",next:M,offset:E.range[2],onError:i,parentIndent:n.indent,startOnNewline:!1});if(Q.found){if(!o&&!$.found&&t.options.strict){if(_)for(let d of _){if(d===Q.found)break;if(d.type==="newline"){i(d,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}$.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 M&&("source"in M&&M.source?.[0]===":"?i(M,"MISSING_CHAR",`Missing space after : in ${a}`):i(Q.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let X=M?s(t,M,Q,i):Q.found?e(t,Q.end,_,null,Q,i):null;X?Ui(M)&&i(X.range,"BLOCK_IN_FLOW",Vi):Q.comment&&(E.comment?E.comment+=`
|
|
79
|
-
`+Q.comment:E.comment=Q.comment);let K=new Kh.Pair(E,X);if(t.options.keepSourceTokens&&(K.srcToken=S),o){let d=c;Jh.mapIncludes(t,d.items,E)&&i(D,"DUPLICATE_KEY","Map keys must be unique"),d.items.push(K)}else{let d=new Ya.YAMLMap(t.schema);d.flow=!0,d.items.push(K);let p=(X??E).range;d.range=[E.range[0],p[1],p[2]],c.items.push(d)}f=X?X.range[2]:Q.end}}let h=o?"}":"]",[g,...b]=n.end,m=f;if(g?.source===h)m=g.offset+g.source.length;else{let y=a[0].toUpperCase()+a.substring(1),S=u?`${y} must end with a ${h}`:`${y} in block collection must be sufficiently indented and end with a ${h}`;i(f,u?"MISSING_CHAR":"BAD_INDENT",S),g&&g.source.length!==1&&b.unshift(g)}if(b.length>0){let y=Uh.resolveEnd(b,m,t.options.strict,i);y.comment&&(c.comment?c.comment+=`
|
|
80
|
-
`+y.comment:c.comment=y.comment),c.range=[n.offset,m,y.offset]}else c.range=[n.offset,m,m];return c}Da.resolveFlowCollection=Dh});var Ga=N(Ha=>{"use strict";var Wh=U(),Hh=re(),Gh=Ye(),Qh=Je(),Xh=ja(),zh=Va(),Zh=Wa();function Yi(s,e,t,n,i,r){let o=t.type==="block-map"?Xh.resolveBlockMap(s,e,t,n,r):t.type==="block-seq"?zh.resolveBlockSeq(s,e,t,n,r):Zh.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 ed(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:g}=n,b=h&&r?h.offset>r.offset?h:r:h??r;b&&(!g||g.offset<b.offset)&&i(b,"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===Gh.YAMLMap.tagName&&a==="map"||o===Qh.YAMLSeq.tagName&&a==="seq")return Yi(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),Yi(s,e,t,i,o)}let c=Yi(s,e,t,i,o,l),u=l.resolve?.(c,h=>i(r,"TAG_RESOLVE_FAILED",h),e.options)??c,f=Wh.isNode(u)?u:new Hh.Scalar(u);return f.range=c.range,f.tag=o,l?.format&&(f.format=l.format),f}Ha.composeCollection=ed});var Di=N(Qa=>{"use strict";var Ji=re();function td(s,e,t){let n=e.offset,i=sd(e,s.options.strict,t);if(!i)return{value:"",type:null,comment:"",range:[n,n,n]};let r=i.mode===">"?Ji.Scalar.BLOCK_FOLDED:Ji.Scalar.BLOCK_LITERAL,o=e.source?nd(e.source):[],a=o.length;for(let m=o.length-1;m>=0;--m){let y=o[m][1];if(y===""||y==="\r")a=m;else break}if(a===0){let m=i.chomp==="+"&&o.length>0?`
|
|
81
|
-
`.repeat(Math.max(1,o.length-1)):"",y=n+i.length;return e.source&&(y+=e.source.length),{value:m,type:r,comment:i.comment,range:[n,y,y]}}let l=e.indent+i.indent,c=e.offset+i.length,u=0;for(let m=0;m<a;++m){let[y,S]=o[m];if(S===""||S==="\r")i.indent===0&&y.length>l&&(l=y.length);else{y.length<l&&t(c+y.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),i.indent===0&&(l=y.length),u=m,l===0&&!s.atRoot&&t(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=y.length+S.length+1}for(let m=o.length-1;m>=a;--m)o[m][0].length>l&&(a=m+1);let f="",h="",g=!1;for(let m=0;m<u;++m)f+=o[m][0].slice(l)+`
|
|
82
|
-
`;for(let m=u;m<a;++m){let[y,S]=o[m];c+=y.length+S.length+1;let v=S[S.length-1]==="\r";if(v&&(S=S.slice(0,-1)),S&&y.length<l){let _=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;t(c-S.length-(v?2:1),"BAD_INDENT",_),y=""}r===Ji.Scalar.BLOCK_LITERAL?(f+=h+y.slice(l)+S,h=`
|
|
83
|
-
`):y.length>l||S[0]===" "?(h===" "?h=`
|
|
84
|
-
`:!g&&h===`
|
|
85
|
-
`&&(h=`
|
|
86
|
-
|
|
87
|
-
`),f+=h+y.slice(l)+S,h=`
|
|
88
|
-
`,g=!0):S===""?h===`
|
|
89
|
-
`?f+=`
|
|
90
|
-
`:h=`
|
|
91
|
-
`:(f+=h+S,h=" ",g=!1)}switch(i.chomp){case"-":break;case"+":for(let m=a;m<o.length;++m)f+=`
|
|
92
|
-
`+o[m][0].slice(l);f[f.length-1]!==`
|
|
93
|
-
`&&(f+=`
|
|
94
|
-
`);break;default:f+=`
|
|
95
|
-
`}let b=n+i.length+e.source.length;return{value:f,type:r,comment:i.comment,range:[n,b,b]}}function sd({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 g=i[h];if(!a&&(g==="-"||g==="+"))a=g;else{let b=Number(g);!o&&b?o=b: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 g=e[h];switch(g.type){case"space":c=!0;case"newline":f+=g.source.length;break;case"comment":t&&!c&&n(g,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=g.source.length,u=g.source.substring(1);break;case"error":n(g,"UNEXPECTED_TOKEN",g.message),f+=g.source.length;break;default:{let b=`Unexpected token in block scalar header: ${g.type}`;n(g,"UNEXPECTED_TOKEN",b);let m=g.source;m&&typeof m=="string"&&(f+=m.length)}}}return{mode:r,indent:o,chomp:a,comment:u,length:f}}function nd(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}Qa.resolveBlockScalar=td});var Hi=N(za=>{"use strict";var Wi=re(),id=wt();function rd(s,e,t){let{offset:n,type:i,source:r,end:o}=s,a,l,c=(h,g,b)=>t(n+h,g,b);switch(i){case"scalar":a=Wi.Scalar.PLAIN,l=od(r,c);break;case"single-quoted-scalar":a=Wi.Scalar.QUOTE_SINGLE,l=ad(r,c);break;case"double-quoted-scalar":a=Wi.Scalar.QUOTE_DOUBLE,l=ld(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=id.resolveEnd(o,u,e,t);return{value:l,type:a,comment:f.comment,range:[n,u,f.offset]}}function od(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}`),Xa(s)}function ad(s,e){return(s[s.length-1]!=="'"||s.length===1)&&e(s.length,"MISSING_CHAR","Missing closing 'quote"),Xa(s.slice(1,-1)).replace(/''/g,"'")}function Xa(s){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
96
|
-
`,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
97
|
-
`,"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===`
|
|
98
|
-
`?i+=r:r=`
|
|
99
|
-
`:(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 ld(s,e){let t="";for(let n=1;n<s.length-1;++n){let i=s[n];if(!(i==="\r"&&s[n+1]===`
|
|
100
|
-
`))if(i===`
|
|
101
|
-
`){let{fold:r,offset:o}=cd(s,n);t+=r,n=o}else if(i==="\\"){let r=s[++n],o=fd[r];if(o)t+=o;else if(r===`
|
|
102
|
-
`)for(r=s[n+1];r===" "||r===" ";)r=s[++n+1];else if(r==="\r"&&s[n+1]===`
|
|
103
|
-
`)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+=ud(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!==`
|
|
104
|
-
`&&!(o==="\r"&&s[n+2]===`
|
|
105
|
-
`)&&(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 cd(s,e){let t="",n=s[e+1];for(;(n===" "||n===" "||n===`
|
|
106
|
-
`||n==="\r")&&!(n==="\r"&&s[e+2]!==`
|
|
107
|
-
`);)n===`
|
|
108
|
-
`&&(t+=`
|
|
109
|
-
`),e+=1,n=s[e+1];return t||(t=" "),{fold:t,offset:e}}var fd={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
110
|
-
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function ud(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)}za.resolveFlowScalar=rd});var tl=N(el=>{"use strict";var it=U(),Za=re(),hd=Di(),dd=Hi();function pd(s,e,t,n){let{value:i,type:r,comment:o,range:a}=e.type==="block-scalar"?hd.resolveBlockScalar(s,e,n):dd.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[it.SCALAR]:l?c=md(s.schema,i,l,t,n):e.type==="scalar"?c=gd(s,i,e,n):c=s.schema[it.SCALAR];let u;try{let f=c.resolve(i,h=>n(t??e,"TAG_RESOLVE_FAILED",h),s.options);u=it.isScalar(f)?f:new Za.Scalar(f)}catch(f){let h=f instanceof Error?f.message:String(f);n(t??e,"TAG_RESOLVE_FAILED",h),u=new Za.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 md(s,e,t,n,i){if(t==="!")return s[it.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[it.SCALAR])}function gd({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[it.SCALAR];if(t.compat){let a=t.compat.find(l=>l.default&&l.test?.test(n))??t[it.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}el.composeScalar=pd});var nl=N(sl=>{"use strict";function yd(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}sl.emptyScalarPosition=yd});var ol=N(Qi=>{"use strict";var bd=Rt(),wd=U(),Sd=Ga(),il=tl(),Nd=wt(),vd=nl(),Ed={composeNode:rl,composeEmptyNode:Gi};function rl(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=Ad(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=il.composeScalar(s,e,l,n),a&&(c.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=Sd.composeCollection(Ed,s,e,t,n),a&&(c.anchor=a.source.substring(1));break;default:{let f=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",f),c=Gi(s,e.offset,void 0,null,t,n),u=!1}}return a&&c.anchor===""&&n(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&s.options.stringKeys&&(!wd.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 Gi(s,e,t,n,{spaceBefore:i,comment:r,anchor:o,tag:a,end:l},c){let u={type:"scalar",offset:vd.emptyScalarPosition(e,t,n),indent:-1,source:""},f=il.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 Ad({options:s},{offset:e,source:t,end:n},i){let r=new bd.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=Nd.resolveEnd(n,o,s.strict,i);return r.range=[e,o,a.offset],a.comment&&(r.comment=a.comment),r}Qi.composeEmptyNode=Gi;Qi.composeNode=rl});var cl=N(ll=>{"use strict";var kd=es(),al=ol(),Od=wt(),Td=is();function Cd(s,e,{offset:t,start:n,value:i,end:r},o){let a=Object.assign({_directives:e},s),l=new kd.Document(void 0,a),c={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=Td.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?al.composeNode(c,i,u,o):al.composeEmptyNode(c,u.end,n,null,u,o);let f=l.contents.range[2],h=Od.resolveEnd(r,f,!1,o);return h.comment&&(l.comment=h.comment),l.range=[t,f,h.offset],l}ll.composeDoc=Cd});var zi=N(hl=>{"use strict";var Id=Et("process"),qd=Rn(),Ld=es(),rs=ns(),fl=U(),Pd=cl(),_d=wt();function os(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 ul(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?`
|
|
111
|
-
|
|
112
|
-
`:`
|
|
113
|
-
`)+(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 Xi=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,n,i,r)=>{let o=os(t);r?this.warnings.push(new rs.YAMLWarning(o,n,i)):this.errors.push(new rs.YAMLParseError(o,n,i))},this.directives=new qd.Directives({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:i}=ul(this.prelude);if(n){let r=e.contents;if(t)e.comment=e.comment?`${e.comment}
|
|
114
|
-
${n}`:n;else if(i||e.directives.docStart||!r)e.commentBefore=n;else if(fl.isCollection(r)&&!r.flow&&r.items.length>0){let o=r.items[0];fl.isPair(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${n}
|
|
115
|
-
${a}`:n}else{let o=r.commentBefore;r.commentBefore=o?`${n}
|
|
116
|
-
${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:ul(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(Id.env.LOG_STREAM&&console.dir(e,{depth:null}),e.type){case"directive":this.directives.add(e.source,(t,n,i)=>{let r=os(e);r[0]+=t,this.onError(r,"BAD_DIRECTIVE",n,i)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=Pd.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 rs.YAMLParseError(os(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 rs.YAMLParseError(os(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;let t=_d.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}
|
|
117
|
-
${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new rs.YAMLParseError(os(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 Ld.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}}};hl.Composer=Xi});var ml=N(cn=>{"use strict";var Md=Di(),$d=Hi(),xd=ns(),dl=Vt();function Rd(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 xd.YAMLParseError([a,a+1],r,o)};switch(s.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return $d.resolveFlowScalar(s,e,n);case"block-scalar":return Md.resolveBlockScalar({options:{strict:e}},s,n)}}return null}function Fd(s,e){let{implicitKey:t=!1,indent:n,inFlow:i=!1,offset:r=-1,type:o="PLAIN"}=e,a=dl.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:`
|
|
118
|
-
`}];switch(a[0]){case"|":case">":{let c=a.indexOf(`
|
|
119
|
-
`),u=a.substring(0,c),f=a.substring(c+1)+`
|
|
120
|
-
`,h=[{type:"block-scalar-header",offset:r,indent:n,source:u}];return pl(h,l)||h.push({type:"newline",offset:-1,indent:n,source:`
|
|
121
|
-
`}),{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 Bd(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=dl.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">":jd(s,l);break;case'"':Zi(s,l,"double-quoted-scalar");break;case"'":Zi(s,l,"single-quoted-scalar");break;default:Zi(s,l,"scalar")}}function jd(s,e){let t=e.indexOf(`
|
|
122
|
-
`),n=e.substring(0,t),i=e.substring(t+1)+`
|
|
123
|
-
`;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}];pl(a,"end"in s?s.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
|
|
124
|
-
`});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 pl(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 Zi(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:`
|
|
125
|
-
`};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})}}}cn.createScalarToken=Fd;cn.resolveAsScalar=Rd;cn.setScalarValue=Bd});var yl=N(gl=>{"use strict";var Kd=s=>"type"in s?un(s):fn(s);function un(s){switch(s.type){case"block-scalar":{let e="";for(let t of s.props)e+=un(t);return e+s.source}case"block-map":case"block-seq":{let e="";for(let t of s.items)e+=fn(t);return e}case"flow-collection":{let e=s.start.source;for(let t of s.items)e+=fn(t);for(let t of s.end)e+=t.source;return e}case"document":{let e=fn(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 fn({start:s,key:e,sep:t,value:n}){let i="";for(let r of s)i+=r.source;if(e&&(i+=un(e)),t)for(let r of t)i+=r.source;return n&&(i+=un(n)),i}gl.stringify=Kd});var Nl=N(Sl=>{"use strict";var er=Symbol("break visit"),Vd=Symbol("skip children"),bl=Symbol("remove item");function rt(s,e){"type"in s&&s.type==="document"&&(s={start:s.start,value:s.value}),wl(Object.freeze([]),s,e)}rt.BREAK=er;rt.SKIP=Vd;rt.REMOVE=bl;rt.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};rt.parentCollection=(s,e)=>{let t=rt.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 wl(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=wl(Object.freeze(s.concat([[i,o]])),r.items[o],t);if(typeof a=="number")o=a-1;else{if(a===er)return er;a===bl&&(r.items.splice(o,1),o-=1)}}typeof n=="function"&&i==="key"&&(n=n(e,s))}}return typeof n=="function"?n(e,s):n}Sl.visit=rt});var hn=N(be=>{"use strict";var tr=ml(),Ud=yl(),Yd=Nl(),sr="\uFEFF",nr="",ir="",rr="",Jd=s=>!!s&&"items"in s,Dd=s=>!!s&&(s.type==="scalar"||s.type==="single-quoted-scalar"||s.type==="double-quoted-scalar"||s.type==="block-scalar");function Wd(s){switch(s){case sr:return"<BOM>";case nr:return"<DOC>";case ir:return"<FLOW_END>";case rr:return"<SCALAR>";default:return JSON.stringify(s)}}function Hd(s){switch(s){case sr:return"byte-order-mark";case nr:return"doc-mode";case ir:return"flow-error-end";case rr:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
|
|
126
|
-
`:case`\r
|
|
127
|
-
`: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}be.createScalarToken=tr.createScalarToken;be.resolveAsScalar=tr.resolveAsScalar;be.setScalarValue=tr.setScalarValue;be.stringify=Ud.stringify;be.visit=Yd.visit;be.BOM=sr;be.DOCUMENT=nr;be.FLOW_END=ir;be.SCALAR=rr;be.isCollection=Jd;be.isScalar=Dd;be.prettyToken=Wd;be.tokenType=Hd});var lr=N(El=>{"use strict";var as=hn();function Oe(s){switch(s){case void 0:case" ":case`
|
|
128
|
-
`:case"\r":case" ":return!0;default:return!1}}var vl=new Set("0123456789ABCDEFabcdef"),Gd=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),dn=new Set(",[]{}"),Qd=new Set(` ,[]{}
|
|
129
|
-
\r `),or=s=>!s||Qd.has(s),ar=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===`
|
|
130
|
-
`?!0:t==="\r"?this.buffer[e+1]===`
|
|
131
|
-
`:!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===`
|
|
132
|
-
`||!i&&!this.atEnd)return e+n+1}return t===`
|
|
133
|
-
`||n>=this.indentNext||!t&&!this.atEnd?e+n:-1}if(t==="-"||t==="."){let n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&Oe(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(`
|
|
134
|
-
`,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]===as.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 as.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==="...")&&Oe(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&&!Oe(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===":")&&Oe(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(or),"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("..."))&&Oe(i[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield as.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(or),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||Oe(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(`
|
|
135
|
-
`,this.pos);if(i!==-1){for(;i!==-1;){let r=this.continueScalar(i+1);if(r===-1)break;i=n.indexOf(`
|
|
136
|
-
`,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=>Oe(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`
|
|
137
|
-
`:e=r,t=0;break;case"\r":{let o=this.buffer[r+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
|
|
138
|
-
`)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(`
|
|
139
|
-
`,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===`
|
|
140
|
-
`;)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===`
|
|
141
|
-
`&&r>=this.pos&&r+1+t>a)e=r;else break}while(!0);return yield as.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(Oe(r)||e&&dn.has(r))break;t=n}else if(Oe(i)){let r=this.buffer[n+1];if(i==="\r"&&(r===`
|
|
142
|
-
`?(n+=1,i=`
|
|
143
|
-
`,r=this.buffer[n+1]):t=n),r==="#"||e&&dn.has(r))break;if(i===`
|
|
144
|
-
`){let o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&dn.has(i))break;t=n}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield as.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(or))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(Oe(t)||e&&dn.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(;!Oe(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(Gd.has(t))t=this.buffer[++e];else if(t==="%"&&vl.has(this.buffer[e+1])&&vl.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===`
|
|
145
|
-
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
|
|
146
|
-
`?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)}};El.Lexer=ar});var fr=N(Al=>{"use strict";var cr=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}}}};Al.LineCounter=cr});var hr=N(Il=>{"use strict";var Xd=Et("process"),kl=hn(),zd=lr();function De(s,e){for(let t=0;t<s.length;++t)if(s[t].type===e)return!0;return!1}function Ol(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 Cl(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 pn(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 St(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 Tl(s){if(s.start.type==="flow-seq-start")for(let e of s.items)e.sep&&!e.value&&!De(e.start,"explicit-key-ind")&&!De(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,Cl(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 ur=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 zd.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,Xd.env.LOG_TOKENS&&console.log("|",kl.prettyToken(e)),this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=kl.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"&&Tl(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&&Ol(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":{Ol(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=pn(this.peek(2)),n=St(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(`
|
|
147
|
-
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
148
|
-
`,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(De(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(Cl(t.key)&&!De(t.sep,"newline")){let o=St(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(De(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let o=St(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]}):De(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&&!De(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||De(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=pn(n),r=St(i);Tl(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(`
|
|
149
|
-
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
150
|
-
`,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=pn(e),n=St(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=pn(e),n=St(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())}}};Il.Parser=ur});var Ml=N(cs=>{"use strict";var ql=zi(),Zd=es(),ls=ns(),ep=Qn(),tp=U(),sp=fr(),Ll=hr();function Pl(s){let e=s.prettyErrors!==!1;return{lineCounter:s.lineCounter||e&&new sp.LineCounter||null,prettyErrors:e}}function np(s,e={}){let{lineCounter:t,prettyErrors:n}=Pl(e),i=new Ll.Parser(t?.addNewLine),r=new ql.Composer(e),o=Array.from(r.compose(i.parse(s)));if(n&&t)for(let a of o)a.errors.forEach(ls.prettifyError(s,t)),a.warnings.forEach(ls.prettifyError(s,t));return o.length>0?o:Object.assign([],{empty:!0},r.streamInfo())}function _l(s,e={}){let{lineCounter:t,prettyErrors:n}=Pl(e),i=new Ll.Parser(t?.addNewLine),r=new ql.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 ls.YAMLParseError(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(o.errors.forEach(ls.prettifyError(s,t)),o.warnings.forEach(ls.prettifyError(s,t))),o}function ip(s,e,t){let n;typeof e=="function"?n=e:t===void 0&&e&&typeof e=="object"&&(t=e);let i=_l(s,t);if(!i)return null;if(i.warnings.forEach(r=>ep.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 rp(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 tp.isDocument(s)&&!n?s.toString(t):new Zd.Document(s,n,t).toString(t)}cs.parse=ip;cs.parseAllDocuments=np;cs.parseDocument=_l;cs.stringify=rp});var xl=N(J=>{"use strict";var op=zi(),ap=es(),lp=Pi(),dr=ns(),cp=Rt(),We=U(),fp=Ve(),up=re(),hp=Ye(),dp=Je(),pp=hn(),mp=lr(),gp=fr(),yp=hr(),mn=Ml(),$l=_t();J.Composer=op.Composer;J.Document=ap.Document;J.Schema=lp.Schema;J.YAMLError=dr.YAMLError;J.YAMLParseError=dr.YAMLParseError;J.YAMLWarning=dr.YAMLWarning;J.Alias=cp.Alias;J.isAlias=We.isAlias;J.isCollection=We.isCollection;J.isDocument=We.isDocument;J.isMap=We.isMap;J.isNode=We.isNode;J.isPair=We.isPair;J.isScalar=We.isScalar;J.isSeq=We.isSeq;J.Pair=fp.Pair;J.Scalar=up.Scalar;J.YAMLMap=hp.YAMLMap;J.YAMLSeq=dp.YAMLSeq;J.CST=pp;J.Lexer=mp.Lexer;J.LineCounter=gp.LineCounter;J.Parser=yp.Parser;J.parse=mn.parse;J.parseAllDocuments=mn.parseAllDocuments;J.parseDocument=mn.parseDocument;J.stringify=mn.stringify;J.visit=$l.visit;J.visitAsync=$l.visitAsync});var Er=":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",Vl=Er+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Ul="["+Er+"]["+Vl+"]*",Yl=new RegExp("^"+Ul+"$");function us(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 at=function(s){let e=Yl.exec(s);return!(e===null||typeof e>"u")};function Ar(s){return typeof s<"u"}var Jl={allowBooleanAttributes:!1,unpairedTags:[]};function Ir(s,e){e=Object.assign({},Jl,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=Or(s,r),r.err)return r}else if(s[r]==="<"){let o=r;if(r++,s[r]==="!"){r=Tr(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]!==`
|
|
151
|
-
`&&s[r]!=="\r";r++)l+=s[r];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),r--),!Zl(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",ne("InvalidTag",f,he(s,r))}let c=Hl(s,r);if(c===!1)return ne("InvalidAttr","Attributes for '"+l+"' have open quote.",he(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=Cr(u,e);if(h===!0)n=!0;else return ne(h.err.code,h.err.msg,he(s,f+h.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return ne("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",he(s,o));if(t.length===0)return ne("InvalidTag","Closing tag '"+l+"' has not been opened.",he(s,o));{let f=t.pop();if(l!==f.tagName){let h=he(s,f.tagStartPos);return ne("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+l+"'.",he(s,o))}t.length==0&&(i=!0)}}else return ne("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",he(s,r));else{let f=Cr(u,e);if(f!==!0)return ne(f.err.code,f.err.msg,he(s,r-u.length+f.err.line));if(i===!0)return ne("InvalidXml","Multiple possible root nodes found.",he(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=Tr(s,r);continue}else if(s[r+1]==="?"){if(r=Or(s,++r),r.err)return r}else break;else if(s[r]==="&"){let f=Xl(s,r);if(f==-1)return ne("InvalidChar","char '&' is not expected.",he(s,r));r=f}else if(i===!0&&!kr(s[r]))return ne("InvalidXml","Extra text at the end",he(s,r));s[r]==="<"&&r--}}else{if(kr(s[r]))continue;return ne("InvalidChar","char '"+s[r]+"' is not expected.",he(s,r))}if(n){if(t.length==1)return ne("InvalidTag","Unclosed tag '"+t[0].tagName+"'.",he(s,t[0].tagStartPos));if(t.length>0)return ne("InvalidXml","Invalid '"+JSON.stringify(t.map(r=>r.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return ne("InvalidXml","Start tag expected.",1);return!0}function kr(s){return s===" "||s===" "||s===`
|
|
152
|
-
`||s==="\r"}function Or(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 ne("InvalidXml","XML declaration allowed only at the start of the document.",he(s,e));if(s[e]=="?"&&s[e+1]==">"){e++;break}else continue}return e}function Tr(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 Dl='"',Wl="'";function Hl(s,e){let t="",n="",i=!1;for(;e<s.length;e++){if(s[e]===Dl||s[e]===Wl)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 Gl=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Cr(s,e){let t=us(s,Gl),n={};for(let i=0;i<t.length;i++){if(t[i][1].length===0)return ne("InvalidAttr","Attribute '"+t[i][2]+"' has no space in starting.",kt(t[i]));if(t[i][3]!==void 0&&t[i][4]===void 0)return ne("InvalidAttr","Attribute '"+t[i][2]+"' is without value.",kt(t[i]));if(t[i][3]===void 0&&!e.allowBooleanAttributes)return ne("InvalidAttr","boolean attribute '"+t[i][2]+"' is not allowed.",kt(t[i]));let r=t[i][2];if(!zl(r))return ne("InvalidAttr","Attribute '"+r+"' is an invalid name.",kt(t[i]));if(!n.hasOwnProperty(r))n[r]=1;else return ne("InvalidAttr","Attribute '"+r+"' is repeated.",kt(t[i]))}return!0}function Ql(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 Xl(s,e){if(e++,s[e]===";")return-1;if(s[e]==="#")return e++,Ql(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 ne(s,e,t){return{err:{code:s,msg:e,line:t.line||t,col:t.col}}}function zl(s){return at(s)}function Zl(s){return at(s)}function he(s,e){let t=s.substring(0,e).split(/\r?\n/);return{line:t.length,col:t[t.length-1].length+1}}function kt(s){return s.startIndex+s[1].length}var 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,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(s,e,t){return s},captureMetaData:!1},qr=function(s){return Object.assign({},ec,s)};var hs;typeof Symbol!="function"?hs="@@xmlMetadata":hs=Symbol("XML Node Metadata");var Se=class{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}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][hs]={startIndex:t})}static getMetaDataSymbol(){return hs}};var Tt=class{constructor(e){this.suppressValidationErr=!e}readDocType(e,t){let n={};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 i=1,r=!1,o=!1,a="";for(;t<e.length;t++)if(e[t]==="<"&&!o){if(r&&ze(e,"!ENTITY",t)){t+=7;let l,c;[l,c,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),c.indexOf("&")===-1&&(n[l]={regx:RegExp(`&${l};`,"g"),val:c})}else if(r&&ze(e,"!ELEMENT",t)){t+=8;let{index:l}=this.readElementExp(e,t+1);t=l}else if(r&&ze(e,"!ATTLIST",t))t+=8;else if(r&&ze(e,"!NOTATION",t)){t+=9;let{index:l}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=l}else if(ze(e,"!--",t))o=!0;else throw new Error("Invalid DOCTYPE");i++,a=""}else if(e[t]===">"){if(o?e[t-1]==="-"&&e[t-2]==="-"&&(o=!1,i--):i--,i===0)break}else e[t]==="["?r=!0:a+=e[t];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:t}}readEntityExp(e,t){t=me(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t])&&e[t]!=='"'&&e[t]!=="'";)n+=e[t],t++;if(Ot(n),t=me(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 i="";return[t,i]=this.readIdentifierVal(e,t,"entity"),t--,[n,i,t]}readNotationExp(e,t){t=me(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;!this.suppressValidationErr&&Ot(n),t=me(e,t);let i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&i!=="SYSTEM"&&i!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=me(e,t);let r=null,o=null;if(i==="PUBLIC")[t,r]=this.readIdentifierVal(e,t,"publicIdentifier"),t=me(e,t),(e[t]==='"'||e[t]==="'")&&([t,o]=this.readIdentifierVal(e,t,"systemIdentifier"));else if(i==="SYSTEM"&&([t,o]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!o))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:r,systemIdentifier:o,index:--t}}readIdentifierVal(e,t,n){let i="",r=e[t];if(r!=='"'&&r!=="'")throw new Error(`Expected quoted string, found "${r}"`);for(t++;t<e.length&&e[t]!==r;)i+=e[t],t++;if(e[t]!==r)throw new Error(`Unterminated ${n} value`);return t++,[t,i]}readElementExp(e,t){t=me(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;if(!this.suppressValidationErr&&!at(n))throw new Error(`Invalid element name: "${n}"`);t=me(e,t);let i="";if(e[t]==="E"&&ze(e,"MPTY",t))t+=4;else if(e[t]==="A"&&ze(e,"NY",t))t+=2;else if(e[t]==="("){for(t++;t<e.length&&e[t]!==")";)i+=e[t],t++;if(e[t]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:n,contentModel:i.trim(),index:t}}readAttlistExp(e,t){t=me(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;Ot(n),t=me(e,t);let i="";for(;t<e.length&&!/\s/.test(e[t]);)i+=e[t],t++;if(!Ot(i))throw new Error(`Invalid attribute name: "${i}"`);t=me(e,t);let r="";if(e.substring(t,t+8).toUpperCase()==="NOTATION"){if(r="NOTATION",t+=8,t=me(e,t),e[t]!=="(")throw new Error(`Expected '(', found "${e[t]}"`);t++;let a=[];for(;t<e.length&&e[t]!==")";){let l="";for(;t<e.length&&e[t]!=="|"&&e[t]!==")";)l+=e[t],t++;if(l=l.trim(),!Ot(l))throw new Error(`Invalid notation name: "${l}"`);a.push(l),e[t]==="|"&&(t++,t=me(e,t))}if(e[t]!==")")throw new Error("Unterminated list of notations");t++,r+=" ("+a.join("|")+")"}else{for(;t<e.length&&!/\s/.test(e[t]);)r+=e[t],t++;let a=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!a.includes(r.toUpperCase()))throw new Error(`Invalid attribute type: "${r}"`)}t=me(e,t);let o="";return e.substring(t,t+8).toUpperCase()==="#REQUIRED"?(o="#REQUIRED",t+=8):e.substring(t,t+7).toUpperCase()==="#IMPLIED"?(o="#IMPLIED",t+=7):[t,o]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:n,attributeName:i,attributeType:r,defaultValue:o,index:t}}},me=(s,e)=>{for(;e<s.length&&/\s/.test(s[e]);)e++;return e};function ze(s,e,t){for(let n=0;n<e.length;n++)if(e[n]!==s[t+n+1])return!1;return!0}function Ot(s){if(at(s))return s;throw new Error(`Invalid entity name ${s}`)}var tc=/^[-+]?0x[a-fA-F0-9]+$/,sc=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,nc={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function Sn(s,e={}){if(e=Object.assign({},nc,e),!s||typeof s!="string")return s;let t=s.trim();if(e.skipLike!==void 0&&e.skipLike.test(t))return s;if(s==="0")return 0;if(e.hex&&tc.test(t))return ac(t,16);if(t.includes("e")||t.includes("E"))return rc(s,t,e);{let n=sc.exec(t);if(n){let i=n[1]||"",r=n[2],o=oc(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}}var ic=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function rc(s,e,t){if(!t.eNotation)return s;let n=e.match(ic);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):t.leadingZeros&&!a?(e=(n[1]||"")+n[3],Number(e)):s}else return s}function oc(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 ac(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 Ct(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 It=class{constructor(e){if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,n)=>String.fromCodePoint(Number.parseInt(n,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,n)=>String.fromCodePoint(Number.parseInt(n,16))}},this.addExternalEntities=lc,this.parseXml=dc,this.parseTextData=cc,this.resolveNameSpace=fc,this.buildAttributesMap=hc,this.isItStopNode=yc,this.replaceEntitiesValue=mc,this.readStopNodeData=wc,this.saveTextToParentTag=gc,this.addChild=pc,this.ignoreAttributesFn=Ct(this.options.ignoreAttributes),this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set,this.stopNodesWildcard=new Set;for(let t=0;t<this.options.stopNodes.length;t++){let n=this.options.stopNodes[t];typeof n=="string"&&(n.startsWith("*.")?this.stopNodesWildcard.add(n.substring(2)):this.stopNodesExact.add(n))}}}};function lc(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:s[n]}}}function cc(s,e,t,n,i,r,o){if(s!==void 0&&(this.options.trimValues&&!n&&(s=s.trim()),s.length>0)){o||(s=this.replaceEntitiesValue(s));let a=this.options.tagValueProcessor(e,s,t,i,r);return a==null?s:typeof a!=typeof s||a!==s?a:this.options.trimValues?vn(s,this.options.parseTagValue,this.options.numberParseOptions):s.trim()===s?vn(s,this.options.parseTagValue,this.options.numberParseOptions):s}}function fc(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 uc=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function hc(s,e){if(this.options.ignoreAttributes!==!0&&typeof s=="string"){let t=us(s,uc),n=t.length,i={};for(let r=0;r<n;r++){let o=this.resolveNameSpace(t[r][1]);if(this.ignoreAttributesFn(o,e))continue;let a=t[r][4],l=this.options.attributeNamePrefix+o;if(o.length)if(this.options.transformAttributeName&&(l=this.options.transformAttributeName(l)),l==="__proto__"&&(l="#__proto__"),a!==void 0){this.options.trimValues&&(a=a.trim()),a=this.replaceEntitiesValue(a);let c=this.options.attributeValueProcessor(o,a,e);c==null?i[l]=a:typeof c!=typeof a||c!==a?i[l]=c:i[l]=vn(a,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[l]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){let r={};return r[this.options.attributesGroupName]=i,r}return i}}var dc=function(s){s=s.replace(/\r\n?/g,`
|
|
153
|
-
`);let e=new Se("!xml"),t=e,n="",i="",r=new Tt(this.options.processEntities);for(let o=0;o<s.length;o++)if(s[o]==="<")if(s[o+1]==="/"){let l=Ze(s,">",o,"Closing Tag is not closed."),c=s.substring(o+2,l).trim();if(this.options.removeNSPrefix){let h=c.indexOf(":");h!==-1&&(c=c.substr(h+1))}this.options.transformTagName&&(c=this.options.transformTagName(c)),t&&(n=this.saveTextToParentTag(n,t,i));let u=i.substring(i.lastIndexOf(".")+1);if(c&&this.options.unpairedTags.indexOf(c)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`);let f=0;u&&this.options.unpairedTags.indexOf(u)!==-1?(f=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):f=i.lastIndexOf("."),i=i.substring(0,f),t=this.tagsNodeStack.pop(),n="",o=l}else if(s[o+1]==="?"){let l=Nn(s,o,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,t,i),!(this.options.ignoreDeclaration&&l.tagName==="?xml"||this.options.ignorePiTags)){let c=new Se(l.tagName);c.add(this.options.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&(c[":@"]=this.buildAttributesMap(l.tagExp,i)),this.addChild(t,c,i,o)}o=l.closeIndex+1}else if(s.substr(o+1,3)==="!--"){let l=Ze(s,"-->",o+4,"Comment is not closed.");if(this.options.commentPropName){let c=s.substring(o+4,l-2);n=this.saveTextToParentTag(n,t,i),t.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}o=l}else if(s.substr(o+1,2)==="!D"){let l=r.readDocType(s,o);this.docTypeEntities=l.entities,o=l.i}else if(s.substr(o+1,2)==="!["){let l=Ze(s,"]]>",o,"CDATA is not closed.")-2,c=s.substring(o+9,l);n=this.saveTextToParentTag(n,t,i);let u=this.parseTextData(c,t.tagname,i,!0,!1,!0,!0);u==null&&(u=""),this.options.cdataPropName?t.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}]):t.add(this.options.textNodeName,u),o=l+2}else{let l=Nn(s,o,this.options.removeNSPrefix),c=l.tagName,u=l.rawTagName,f=l.tagExp,h=l.attrExpPresent,g=l.closeIndex;if(this.options.transformTagName){let y=this.options.transformTagName(c);f===c&&(f=y),c=y}t&&n&&t.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,t,i,!1));let b=t;b&&this.options.unpairedTags.indexOf(b.tagname)!==-1&&(t=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),c!==e.tagname&&(i+=i?"."+c:c);let m=o;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,i,c)){let y="";if(f.length>0&&f.lastIndexOf("/")===f.length-1)c[c.length-1]==="/"?(c=c.substr(0,c.length-1),i=i.substr(0,i.length-1),f=c):f=f.substr(0,f.length-1),o=l.closeIndex;else if(this.options.unpairedTags.indexOf(c)!==-1)o=l.closeIndex;else{let v=this.readStopNodeData(s,u,g+1);if(!v)throw new Error(`Unexpected end of ${u}`);o=v.i,y=v.tagContent}let S=new Se(c);c!==f&&h&&(S[":@"]=this.buildAttributesMap(f,i)),y&&(y=this.parseTextData(y,c,i,!0,h,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),S.add(this.options.textNodeName,y),this.addChild(t,S,i,m)}else{if(f.length>0&&f.lastIndexOf("/")===f.length-1){if(c[c.length-1]==="/"?(c=c.substr(0,c.length-1),i=i.substr(0,i.length-1),f=c):f=f.substr(0,f.length-1),this.options.transformTagName){let S=this.options.transformTagName(c);f===c&&(f=S),c=S}let y=new Se(c);c!==f&&h&&(y[":@"]=this.buildAttributesMap(f,i)),this.addChild(t,y,i,m),i=i.substr(0,i.lastIndexOf("."))}else{let y=new Se(c);this.tagsNodeStack.push(t),c!==f&&h&&(y[":@"]=this.buildAttributesMap(f,i)),this.addChild(t,y,i,m),t=y}n="",o=g}}else n+=s[o];return e.child};function pc(s,e,t,n){this.options.captureMetaData||(n=void 0);let i=this.options.updateTag(e.tagname,t,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),s.addChild(e,n))}var mc=function(s){if(this.options.processEntities){for(let e in this.docTypeEntities){let t=this.docTypeEntities[e];s=s.replace(t.regx,t.val)}for(let e in this.lastEntities){let t=this.lastEntities[e];s=s.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let e in this.htmlEntities){let t=this.htmlEntities[e];s=s.replace(t.regex,t.val)}s=s.replace(this.ampEntity.regex,this.ampEntity.val)}return s};function gc(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 yc(s,e,t,n){return!!(e&&e.has(n)||s&&s.has(t))}function bc(s,e,t=">"){let n,i="";for(let r=e;r<s.length;r++){let o=s[r];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===t[0])if(t[1]){if(s[r+1]===t[1])return{data:i,index:r}}else return{data:i,index:r};else o===" "&&(o=" ");i+=o}}function Ze(s,e,t,n){let i=s.indexOf(e,t);if(i===-1)throw new Error(n);return i+e.length-1}function Nn(s,e,t,n=">"){let i=bc(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 wc(s,e,t){let n=t,i=1;for(;t<s.length;t++)if(s[t]==="<")if(s[t+1]==="/"){let r=Ze(s,">",t,`${e} is not closed`);if(s.substring(t+2,r).trim()===e&&(i--,i===0))return{tagContent:s.substring(n,t),i:r};t=r}else if(s[t+1]==="?")t=Ze(s,"?>",t+1,"StopNode is not closed.");else if(s.substr(t+1,3)==="!--")t=Ze(s,"-->",t+3,"StopNode is not closed.");else if(s.substr(t+1,2)==="![")t=Ze(s,"]]>",t,"StopNode is not closed.")-2;else{let r=Nn(s,t,">");r&&((r&&r.tagName)===e&&r.tagExp[r.tagExp.length-1]!=="/"&&i++,t=r.closeIndex)}}function vn(s,e,t){if(e&&typeof s=="string"){let n=s.trim();return n==="true"?!0:n==="false"?!1:Sn(s,t)}else return Ar(s)?s:""}var En=Se.getMetaDataSymbol();function An(s,e){return Lr(s,e)}function Lr(s,e,t){let n,i={};for(let r=0;r<s.length;r++){let o=s[r],a=Sc(o),l="";if(t===void 0?l=a:l=t+"."+a,a===e.textNodeName)n===void 0?n=o[a]:n+=""+o[a];else{if(a===void 0)continue;if(o[a]){let c=Lr(o[a],e,l),u=vc(c,e);o[En]!==void 0&&(c[En]=o[En]),o[":@"]?Nc(c,o[":@"],l,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=""),i[a]!==void 0&&i.hasOwnProperty(a)?(Array.isArray(i[a])||(i[a]=[i[a]]),i[a].push(c)):e.isArray(a,l,u)?i[a]=[c]:i[a]=c}}}return typeof n=="string"?n.length>0&&(i[e.textNodeName]=n):n!==void 0&&(i[e.textNodeName]=n),i}function Sc(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];if(n!==":@")return n}}function Nc(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];n.isArray(a,t+"."+a,!0,!0)?s[a]=[e[a]]:s[a]=e[a]}}}function vc(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 lt=class{constructor(e){this.externalEntities={},this.options=qr(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=Ir(e,t);if(r!==!0)throw Error(`${r.err.msg}:${r.err.line}:${r.err.col}`)}let n=new It(this.options);n.addExternalEntities(this.externalEntities);let i=n.parseXml(e);return this.options.preserveOrder||i===void 0?i:An(i,this.options)}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 Se.getMetaDataSymbol()}};function kn(s,e){let t="";return e.format&&e.indentBy.length>0&&(t=`
|
|
154
|
-
`),_r(s,e,"",t)}function _r(s,e,t,n){let i="",r=!1;for(let o=0;o<s.length;o++){let a=s[o],l=Ec(a);if(l===void 0)continue;let c="";if(t.length===0?c=l:c=`${t}.${l}`,l===e.textNodeName){let b=a[l];Ac(c,e)||(b=e.tagValueProcessor(l,b),b=Mr(b,e)),r&&(i+=n),i+=b,r=!1;continue}else if(l===e.cdataPropName){r&&(i+=n),i+=`<![CDATA[${a[l][0][e.textNodeName]}]]>`,r=!1;continue}else if(l===e.commentPropName){i+=n+`<!--${a[l][0][e.textNodeName]}-->`,r=!0;continue}else if(l[0]==="?"){let b=Pr(a[":@"],e),m=l==="?xml"?"":n,y=a[l][0][e.textNodeName];y=y.length!==0?" "+y:"",i+=m+`<${l}${y}${b}?>`,r=!0;continue}let u=n;u!==""&&(u+=e.indentBy);let f=Pr(a[":@"],e),h=n+`<${l}${f}`,g=_r(a[l],e,c,u);e.unpairedTags.indexOf(l)!==-1?e.suppressUnpairedNode?i+=h+">":i+=h+"/>":(!g||g.length===0)&&e.suppressEmptyNode?i+=h+"/>":g&&g.endsWith(">")?i+=h+`>${g}${n}</${l}>`:(i+=h+">",g&&n!==""&&(g.includes("/>")||g.includes("</"))?i+=n+e.indentBy+g+n:i+=g,i+=`</${l}>`),r=!0}return i}function Ec(s){let e=Object.keys(s);for(let t=0;t<e.length;t++){let n=e[t];if(s.hasOwnProperty(n)&&n!==":@")return n}}function Pr(s,e){let t="";if(s&&!e.ignoreAttributes)for(let n in s){if(!s.hasOwnProperty(n))continue;let i=e.attributeValueProcessor(n,s[n]);i=Mr(i,e),i===!0&&e.suppressBooleanAttributes?t+=` ${n.substr(e.attributeNamePrefix.length)}`:t+=` ${n.substr(e.attributeNamePrefix.length)}="${i}"`}return t}function Ac(s,e){s=s.substr(0,s.length-e.textNodeName.length-1);let t=s.substr(s.lastIndexOf(".")+1);for(let n in e.stopNodes)if(e.stopNodes[n]===s||e.stopNodes[n]==="*."+t)return!0;return!1}function Mr(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}var kc={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};function Ae(s){this.options=Object.assign({},kc,s),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=Ct(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Cc),this.processTextOrObjNode=Oc,this.options.format?(this.indentate=Tc,this.tagEndChar=`>
|
|
155
|
-
`,this.newLine=`
|
|
156
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}Ae.prototype.build=function(s){return this.options.preserveOrder?kn(s,this.options):(Array.isArray(s)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(s={[this.options.arrayNodeName]:s}),this.j2x(s,0,[]).val)};Ae.prototype.j2x=function(s,e,t){let n="",i="",r=t.join(".");for(let o in s)if(Object.prototype.hasOwnProperty.call(s,o))if(typeof s[o]>"u")this.isAttribute(o)&&(i+="");else if(s[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?i+="":o[0]==="?"?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(s[o]instanceof Date)i+=this.buildTextValNode(s[o],o,"",e);else if(typeof s[o]!="object"){let a=this.isAttribute(o);if(a&&!this.ignoreAttributesFn(a,r))n+=this.buildAttrPairStr(a,""+s[o]);else if(!a)if(o===this.options.textNodeName){let l=this.options.tagValueProcessor(o,""+s[o]);i+=this.replaceEntitiesValue(l)}else i+=this.buildTextValNode(s[o],o,"",e)}else if(Array.isArray(s[o])){let a=s[o].length,l="",c="";for(let u=0;u<a;u++){let f=s[o][u];if(!(typeof f>"u"))if(f===null)o[0]==="?"?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(typeof f=="object")if(this.options.oneListGroup){let h=this.j2x(f,e+1,t.concat(o));l+=h.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(c+=h.attrStr)}else l+=this.processTextOrObjNode(f,o,e,t);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(o,f);h=this.replaceEntitiesValue(h),l+=h}else l+=this.buildTextValNode(f,o,"",e)}this.options.oneListGroup&&(l=this.buildObjectNode(l,o,c,e)),i+=l}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){let a=Object.keys(s[o]),l=a.length;for(let c=0;c<l;c++)n+=this.buildAttrPairStr(a[c],""+s[o][a[c]])}else i+=this.processTextOrObjNode(s[o],o,e,t);return{attrStr:n,val:i}};Ae.prototype.buildAttrPairStr=function(s,e){return e=this.options.attributeValueProcessor(s,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+s:" "+s+'="'+e+'"'};function Oc(s,e,t,n){let i=this.j2x(s,t+1,n.concat(e));return s[this.options.textNodeName]!==void 0&&Object.keys(s).length===1?this.buildTextValNode(s[this.options.textNodeName],e,i.attrStr,t):this.buildObjectNode(i.val,e,i.attrStr,t)}Ae.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;{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}};Ae.prototype.closeTag=function(s){let e="";return this.options.unpairedTags.indexOf(s)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e=`></${s}`,e};Ae.prototype.buildTextValNode=function(s,e,t,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+`<![CDATA[${s}]]>`+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+`<!--${s}-->`+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+t+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(e,s);return i=this.replaceEntitiesValue(i),i===""?this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+t+">"+i+"</"+e+this.tagEndChar}};Ae.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 Tc(s){return this.options.indentBy.repeat(s)}function Cc(s){return s.startsWith(this.options.attributeNamePrefix)&&s!==this.options.textNodeName?s.substr(this.attrPrefixLen):!1}var gn=bn(Br(),1),pr=bn(jr(),1);function Ic(s,e){let t=s.slice(0,e).split(/\r\n|\n|\r/g);return[t.length,t.pop().length+1]}function qc(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+=`
|
|
157
|
-
`,o===e&&(i+=" ".repeat(r+t+2),i+=`^
|
|
158
|
-
`))}return i}var R=class extends Error{line;column;codeblock;constructor(e,t){let[n,i]=Ic(t.toml,t.ptr),r=qc(t.toml,n,i);super(`Invalid TOML document: ${e}
|
|
159
|
-
|
|
160
|
-
${r}`,t),this.line=n,this.column=i,this.codeblock=r}};function Lc(s,e){let t=0;for(;s[e-++t]==="\\";);return--t&&t%2}function ps(s,e=0,t=s.length){let n=s.indexOf(`
|
|
161
|
-
`,e);return s[n-1]==="\r"&&n--,n<=t?n:-1}function ct(s,e){for(let t=e;t<s.length;t++){let n=s[t];if(n===`
|
|
162
|
-
`)return t;if(n==="\r"&&s[t+1]===`
|
|
163
|
-
`)return t+1;if(n<" "&&n!==" "||n==="\x7F")throw new R("control characters are not allowed in comments",{toml:s,ptr:e})}return s.length}function ge(s,e,t,n){let i;for(;(i=s[e])===" "||i===" "||!t&&(i===`
|
|
164
|
-
`||i==="\r"&&s[e+1]===`
|
|
165
|
-
`);)e++;return n||i!=="#"?e:ge(s,ct(s,e),t)}function Kr(s,e,t,n,i=!1){if(!n)return e=ps(s,e),e<0?s.length:e;for(let r=e;r<s.length;r++){let o=s[r];if(o==="#")r=ps(s,r);else{if(o===t)return r+1;if(o===n||i&&(o===`
|
|
166
|
-
`||o==="\r"&&s[r+1]===`
|
|
167
|
-
`))return r}}throw new R("cannot find end of structure",{toml:s,ptr:e})}function ms(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!=="'"&&Lc(s,e));return e>-1&&(e+=n.length,n.length>1&&(s[e]===t&&e++,s[e]===t&&e++)),e}var Pc=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i,qt=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(Pc);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 _c=/^((0x[0-9a-fA-F](_?[0-9a-fA-F])*)|(([+-]|0[ob])?\d(_?\d)*))$/,Mc=/^[+-]?\d(_?\d)*(\.\d(_?\d)*)?([eE][+-]?\d(_?\d)*)?$/,$c=/^[+-]?0[0-9_]/,xc=/^[0-9a-f]{2,8}$/i,Vr={b:"\b",t:" ",n:`
|
|
168
|
-
`,f:"\f",r:"\r",e:"\x1B",'"':'"',"\\":"\\"};function gs(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]===`
|
|
169
|
-
`&&e++);let r=0,o,a="",l=e;for(;e<t-1;){let c=s[e++];if(c===`
|
|
170
|
-
`||c==="\r"&&s[e]===`
|
|
171
|
-
`){if(!i)throw new R("newlines are not allowed in strings",{toml:s,ptr:e-1})}else if(c<" "&&c!==" "||c==="\x7F")throw new R("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(!xc.test(u))throw new R("invalid unicode escape",{toml:s,ptr:r});try{a+=String.fromCodePoint(parseInt(u,16))}catch{throw new R("invalid unicode escape",{toml:s,ptr:r})}}else if(i&&(c===`
|
|
172
|
-
`||c===" "||c===" "||c==="\r")){if(e=ge(s,e-1,!0),s[e]!==`
|
|
173
|
-
`&&s[e]!=="\r")throw new R("invalid escape: only line-ending whitespace may be escaped",{toml:s,ptr:r});e=ge(s,e)}else if(c in Vr)a+=Vr[c];else throw new R("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 Ur(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=_c.test(s);if(i||Mc.test(s)){if($c.test(s))throw new R("leading zeroes are not allowed",{toml:e,ptr:t});s=s.replace(/_/g,"");let o=+s;if(isNaN(o))throw new R("invalid number",{toml:e,ptr:t});if(i){if((i=!Number.isSafeInteger(o))&&!n)throw new R("integer value cannot be represented losslessly",{toml:e,ptr:t});(i||n===!0)&&(o=BigInt(s))}return o}let r=new qt(s);if(!r.isValid())throw new R("invalid value",{toml:e,ptr:t});return r}function Rc(s,e,t){let n=s.slice(e,t),i=n.indexOf("#");return i>-1&&(ct(s,i),n=n.slice(0,i)),[n.trimEnd(),i]}function Lt(s,e,t,n,i){if(n===0)throw new R("document contains excessively nested structures. aborting.",{toml:s,ptr:e});let r=s[e];if(r==="["||r==="{"){let[l,c]=r==="["?Jr(s,e,n,i):Yr(s,e,n,i);if(t){if(c=ge(s,c),s[c]===",")c++;else if(s[c]!==t)throw new R("expected comma or end of structure",{toml:s,ptr:c})}return[l,c]}let o;if(r==='"'||r==="'"){o=ms(s,e);let l=gs(s,e,o);if(t){if(o=ge(s,o),s[o]&&s[o]!==","&&s[o]!==t&&s[o]!==`
|
|
174
|
-
`&&s[o]!=="\r")throw new R("unexpected character encountered",{toml:s,ptr:o});o+=+(s[o]===",")}return[l,o]}o=Kr(s,e,",",t);let a=Rc(s,e,o-+(s[o-1]===","));if(!a[0])throw new R("incomplete key-value declaration: no value specified",{toml:s,ptr:e});return t&&a[1]>-1&&(o=ge(s,e+a[1]),o+=+(s[o]===",")),[Ur(a[0],s,e,i),o]}var Fc=/^[a-zA-Z0-9-_]+[ \t]*$/;function ys(s,e,t="="){let n=e-1,i=[],r=s.indexOf(t,e);if(r<0)throw new R("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 R("multiline strings are not allowed in keys",{toml:s,ptr:e});let a=ms(s,e);if(a<0)throw new R("unfinished string encountered",{toml:s,ptr:e});n=s.indexOf(".",a);let l=s.slice(a,n<0||n>r?r:n),c=ps(l);if(c>-1)throw new R("newlines are not allowed in keys",{toml:s,ptr:e+n+c});if(l.trimStart())throw new R("found extra tokens after the string part",{toml:s,ptr:a});if(r<a&&(r=s.indexOf(t,a),r<0))throw new R("incomplete key-value: cannot find end of key",{toml:s,ptr:e});i.push(gs(s,e,a))}else{n=s.indexOf(".",e);let a=s.slice(e,n<0||n>r?r:n);if(!Fc.test(a))throw new R("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,ge(s,r+1,!0,!0)]}function Yr(s,e,t,n){let i={},r=new Set,o;for(e++;(o=s[e++])!=="}"&&o;){if(o===",")throw new R("expected value, found comma",{toml:s,ptr:e-1});if(o==="#")e=ct(s,e);else if(o!==" "&&o!==" "&&o!==`
|
|
175
|
-
`&&o!=="\r"){let a,l=i,c=!1,[u,f]=ys(s,e-1);for(let b=0;b<u.length;b++){if(b&&(l=c?l[a]:l[a]={}),a=u[b],(c=Object.hasOwn(l,a))&&(typeof l[a]!="object"||r.has(l[a])))throw new R("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 R("trying to redefine an already defined value",{toml:s,ptr:e});let[h,g]=Lt(s,f,"}",t-1,n);r.add(h),l[a]=h,e=g}}if(!o)throw new R("unfinished table encountered",{toml:s,ptr:e});return[i,e]}function Jr(s,e,t,n){let i=[],r;for(e++;(r=s[e++])!=="]"&&r;){if(r===",")throw new R("expected value, found comma",{toml:s,ptr:e-1});if(r==="#")e=ct(s,e);else if(r!==" "&&r!==" "&&r!==`
|
|
176
|
-
`&&r!=="\r"){let o=Lt(s,e-1,"]",t-1,n);i.push(o[0]),e=o[1]}}if(!r)throw new R("unfinished array encountered",{toml:s,ptr:e});return[i,e]}function Dr(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 bs(s,{maxDepth:e=1e3,integersAsBigInt:t}={}){let n={},i={},r=n,o=i;for(let a=ge(s,0);a<s.length;){if(s[a]==="["){let l=s[++a]==="[",c=ys(s,a+=+l,"]");if(l){if(s[c[1]-1]!=="]")throw new R("expected end of table declaration",{toml:s,ptr:c[1]-1});c[1]++}let u=Dr(c[0],n,i,l?2:1);if(!u)throw new R("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=ys(s,a),c=Dr(l[0],r,o,0);if(!c)throw new R("trying to redefine an already defined table or value",{toml:s,ptr:a});let u=Lt(s,l[1],void 0,e,t);c[1][c[0]]=u[0],a=u[1]}if(a=ge(s,a,!0),s[a]&&s[a]!==`
|
|
177
|
-
`&&s[a]!=="\r")throw new R("each key-value declaration must be followed by an end-of-line",{toml:s,ptr:a});a=ge(s,a)}return n}var Wr=/^[a-z0-9-_]+$/i;function Pt(s){let e=typeof s;if(e==="object"){if(Array.isArray(s))return"array";if(s instanceof Date)return"date"}return e}function Bc(s){for(let e=0;e<s.length;e++)if(Pt(s[e])!=="object")return!1;return s.length!=0}function qn(s){return JSON.stringify(s).replace(/\x7f/g,"\\u007f")}function Ln(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 qn(s);if(e==="date"){if(isNaN(s.getTime()))throw new TypeError("cannot serialize invalid date");return s.toISOString()}if(e==="object")return jc(s,t,n);if(e==="array")return Kc(s,t,n)}function jc(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+=Wr.test(o)?o:qn(o),i+=" = ",i+=Ln(s[o],Pt(s[o]),e-1,t)}return i+" }"}function Kc(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+=Ln(s[i],Pt(s[i]),e-1,t)}return n+" ]"}function Vc(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&&`
|
|
178
|
-
`}[[${e}]]
|
|
179
|
-
`,i+=Pn(0,s[r],e,t,n);return i}function Pn(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=Pt(e[c]);if(u==="symbol"||u==="function")throw new TypeError(`cannot serialize values of type '${u}'`);let f=Wr.test(c)?c:qn(c);if(u==="array"&&Bc(e[c]))o+=(o&&`
|
|
180
|
-
`)+Vc(e[c],t?`${t}.${f}`:f,n-1,i);else if(u==="object"){let h=t?`${t}.${f}`:f;o+=(o&&`
|
|
181
|
-
`)+Pn(h,e[c],h,n-1,i)}else r+=f,r+=" = ",r+=Ln(e[c],u,n,i),r+=`
|
|
182
|
-
`}}return s&&(r||!o)&&(r=r?`[${s}]
|
|
183
|
-
${r}`:`[${s}]`),r&&o?`${r}
|
|
184
|
-
${o}`:r||o}function _n(s,{maxDepth:e=1e3,numbersAsFloat:t=!1}={}){if(Pt(s)!=="object")throw new TypeError("stringify can only be called with an object");let n=Pn(0,s,"",e,t);return n[n.length-1]!==`
|
|
185
|
-
`?n+`
|
|
186
|
-
`:n}var fs=bn(xl(),1),bp=["yaml","xml","json","ini","csv","toml"],wp=["yaml","json","xml","ini","csv","toml"];function mr(s){return typeof s=="string"&&bp.includes(s)}function gr(s){return typeof s=="string"&&wp.includes(s)}var Rl={inputFormat:"yaml",outputFormat:"yaml",raw:!1,compact:!1,prettyPrint:!1,indent:2,xmlAttributePrefix:"+@",xmlContentName:"+content",csvDelimiter:"",csvHeader:!0};function Sp(s){let e=s.lastIndexOf("."),t=Math.max(s.lastIndexOf("/"),s.lastIndexOf("\\"));return e<=t+1?"":s.slice(e)}function Fl(s){switch(Sp(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 Np(s,e,t){return pr.default.parse(s,{delimiter:e||void 0,header:t,dynamicTyping:!0,skipEmptyLines:!0}).data}function vp(s,e){return Array.isArray(s)||(s=[s]),pr.default.unparse(s,{delimiter:e||","})}function yr(s,e){let t=s.trim();if(!t)return null;switch(e.inputFormat){case"yaml":return fs.default.parse(t);case"json":return JSON.parse(t);case"xml":return new lt({ignoreAttributes:!1,attributeNamePrefix:e.xmlAttributePrefix,textNodeName:e.xmlContentName,parseAttributeValue:!1,parseTagValue:!1,trimValues:!0,tagValueProcessor:(i,r)=>r===""?null:r}).parse(t);case"ini":return gn.parse(t);case"csv":return Np(t,e.csvDelimiter,e.csvHeader);case"toml":return bs(t);default:{let n=e.inputFormat;throw new Error(`Invalid input format: ${n}`)}}}function Bl(s){return fs.default.parseAllDocuments(s).map(t=>t.toJSON())}function jl(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:fs.default.parse(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:bs(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:JSON.parse(n),content:i}}}return null}function Kl(s,e){if(s===void 0)return"";switch(e.outputFormat){case"yaml":return fs.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 Ae({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)?"":gn.stringify(s);case"csv":return vp(s,e.csvDelimiter);case"toml":return!s||typeof s!="object"||Array.isArray(s)?"":_n(s);default:throw new Error(`Unknown output format: ${e.outputFormat}`)}}var Ep={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.
|
|
187
|
-
Supports YAML, JSON, XML, INI, CSV, and TOML with automatic format conversion.
|
|
188
|
-
|
|
189
|
-
EXAMPLES:
|
|
190
|
-
# Extract a value from YAML
|
|
191
|
-
yq '.name' config.yaml
|
|
192
|
-
yq '.users[0].email' data.yaml
|
|
193
|
-
|
|
194
|
-
# Filter arrays
|
|
195
|
-
yq '.items[] | select(.active == true)' data.yaml
|
|
196
|
-
yq '[.users[] | select(.age > 30)]' users.yaml
|
|
197
|
-
|
|
198
|
-
# Transform data
|
|
199
|
-
yq '.users | map({name, email})' data.yaml
|
|
200
|
-
yq '.items | sort_by(.price) | reverse' products.yaml
|
|
201
|
-
|
|
202
|
-
# Modify file in-place
|
|
203
|
-
yq -i '.version = "2.0"' config.yaml
|
|
204
|
-
|
|
205
|
-
# Read JSON, output YAML
|
|
206
|
-
yq -p json '.' config.json
|
|
207
|
-
|
|
208
|
-
# Read YAML, output JSON
|
|
209
|
-
yq -o json '.' config.yaml
|
|
210
|
-
yq -o json -c '.' config.yaml # compact JSON
|
|
211
|
-
|
|
212
|
-
# Parse TOML config files
|
|
213
|
-
yq '.package.name' Cargo.toml
|
|
214
|
-
yq -o json '.' pyproject.toml
|
|
215
|
-
|
|
216
|
-
# Parse XML (attributes use +@ prefix, text uses +content)
|
|
217
|
-
yq -p xml '.root.items.item[].name' data.xml
|
|
218
|
-
yq -p xml '.root.user["+@id"]' data.xml # XML attributes
|
|
219
|
-
|
|
220
|
-
# Parse INI config files
|
|
221
|
-
yq -p ini '.database.host' config.ini
|
|
222
|
-
yq -p ini '.server' config.ini -o json
|
|
223
|
-
|
|
224
|
-
# Parse CSV/TSV (auto-detects delimiter)
|
|
225
|
-
yq -p csv '.[0].name' data.csv
|
|
226
|
-
yq '.[0].name' data.tsv # auto-detected as CSV
|
|
227
|
-
yq -p csv '[.[] | select(.category == "A")]' data.csv
|
|
228
|
-
|
|
229
|
-
# Extract front-matter from markdown/content files
|
|
230
|
-
yq --front-matter '.title' post.md
|
|
231
|
-
|
|
232
|
-
# Convert between formats
|
|
233
|
-
yq -p json -o csv '.users' data.json # JSON to CSV
|
|
234
|
-
yq -p csv -o yaml '.' data.csv # CSV to YAML
|
|
235
|
-
yq -p ini -o json '.' config.ini # INI to JSON
|
|
236
|
-
yq -p xml -o json '.' data.xml # XML to JSON
|
|
237
|
-
yq -o toml '.' config.yaml # YAML to TOML
|
|
238
|
-
|
|
239
|
-
# Common jq functions work in yq:
|
|
240
|
-
yq 'keys' data.yaml # get object keys
|
|
241
|
-
yq 'length' data.yaml # array/string length
|
|
242
|
-
yq '.items | first' data.yaml # first element
|
|
243
|
-
yq '.items | last' data.yaml # last element
|
|
244
|
-
yq '.nums | add' data.yaml # sum numbers
|
|
245
|
-
yq '.nums | min' data.yaml # minimum
|
|
246
|
-
yq '.nums | max' data.yaml # maximum
|
|
247
|
-
yq '.items | unique' data.yaml # unique values
|
|
248
|
-
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 Ap(s){let e={...Rl,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(!mr(l))return Xe("yq",`--input-format=${l}`);e.inputFormat=l,t=!0}else if(a.startsWith("--output-format=")){let l=a.slice(16);if(!gr(l))return Xe("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(!mr(l))return Xe("yq",`${a} ${l}`);e.inputFormat=l,t=!0}else if(a==="-o"||a==="--output-format"){let l=s[++o];if(!gr(l))return Xe("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 Xe("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 Xe("yq",`-${l}`);else i?r.push(a):(n=a,i=!0)}}return{options:e,filter:n,files:r,inputFormatExplicit:t}}var ey={name:"yq",async execute(s,e){if(Nr(s))return Sr(Ep);let t=Ap(s);if("exitCode"in t)return t;let{options:n,filter:i,files:r,inputFormatExplicit:o}=t;if(!o&&r.length>0&&r[0]!=="-"){let c=Fl(r[0]);c&&(n.inputFormat=c)}if(n.inplace&&(r.length===0||r[0]==="-"))return{stdout:"",stderr:`yq: -i/--inplace requires a file argument
|
|
249
|
-
`,exitCode:1};let a,l;if(n.nullInput)a="";else if(r.length===0||r.length===1&&r[0]==="-")a=e.stdin;else try{l=e.fs.resolvePath(e.cwd,r[0]),a=await e.fs.readFile(l)}catch{return{stdout:"",stderr:`yq: ${r[0]}: No such file or directory
|
|
250
|
-
`,exitCode:2}}try{let c=vr(i),u,f={limits:e.limits?{maxIterations:e.limits.maxJqIterations}:void 0,env:e.env};if(n.nullInput)u=At(null,c,f);else if(n.frontMatter){let S=jl(a);if(!S)return{stdout:"",stderr:`yq: no front-matter found
|
|
251
|
-
`,exitCode:1};u=At(S.frontMatter,c,f)}else if(n.slurp){let S;n.inputFormat==="yaml"?S=Bl(a):S=[yr(a,n)],u=At(S,c,f)}else{let S=yr(a,n);u=At(S,c,f)}let h=u.map(S=>Kl(S,n)),g=n.joinOutput?"":`
|
|
252
|
-
`,b=h.filter(S=>S!=="").join(g),m=b?n.joinOutput?b:`${b}
|
|
253
|
-
`:"";if(n.inplace&&l)return await e.fs.writeFile(l,m),{stdout:"",stderr:"",exitCode:0};let y=n.exitStatus&&(u.length===0||u.every(S=>S==null||S===!1))?1:0;return{stdout:m,stderr:"",exitCode:y}}catch(c){if(c instanceof wn)return{stdout:"",stderr:`yq: ${c.message}
|
|
254
|
-
`,exitCode:wn.EXIT_CODE};let u=c.message;return u.includes("Unknown function")?{stdout:"",stderr:`yq: error: ${u}
|
|
255
|
-
`,exitCode:3}:{stdout:"",stderr:`yq: parse error: ${u}
|
|
256
|
-
`,exitCode:5}}}};export{ey as yqCommand};
|
|
257
|
-
/*! Bundled license information:
|
|
258
|
-
|
|
259
|
-
papaparse/papaparse.js:
|
|
260
|
-
(* @license
|
|
261
|
-
Papa Parse
|
|
262
|
-
v5.5.3
|
|
263
|
-
https://github.com/mholt/PapaParse
|
|
264
|
-
License: MIT
|
|
265
|
-
*)
|
|
266
|
-
|
|
267
|
-
smol-toml/dist/error.js:
|
|
268
|
-
smol-toml/dist/util.js:
|
|
269
|
-
smol-toml/dist/date.js:
|
|
270
|
-
smol-toml/dist/primitive.js:
|
|
271
|
-
smol-toml/dist/extract.js:
|
|
272
|
-
smol-toml/dist/struct.js:
|
|
273
|
-
smol-toml/dist/parse.js:
|
|
274
|
-
smol-toml/dist/stringify.js:
|
|
275
|
-
smol-toml/dist/index.js:
|
|
276
|
-
(*!
|
|
277
|
-
* Copyright (c) Squirrel Chat et al., All rights reserved.
|
|
278
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
279
|
-
*
|
|
280
|
-
* Redistribution and use in source and binary forms, with or without
|
|
281
|
-
* modification, are permitted provided that the following conditions are met:
|
|
282
|
-
*
|
|
283
|
-
* 1. Redistributions of source code must retain the above copyright notice, this
|
|
284
|
-
* list of conditions and the following disclaimer.
|
|
285
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
286
|
-
* this list of conditions and the following disclaimer in the
|
|
287
|
-
* documentation and/or other materials provided with the distribution.
|
|
288
|
-
* 3. Neither the name of the copyright holder nor the names of its contributors
|
|
289
|
-
* may be used to endorse or promote products derived from this software without
|
|
290
|
-
* specific prior written permission.
|
|
291
|
-
*
|
|
292
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
293
|
-
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
294
|
-
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
295
|
-
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
296
|
-
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
297
|
-
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
298
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
299
|
-
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
300
|
-
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
301
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
302
|
-
*)
|
|
303
|
-
*/
|