@shopify/cli 4.1.0 → 4.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/dist/{acorn-LOOAJL3S.js → acorn-7M27BPGP.js} +1 -1
- package/dist/analytics-JH64XI2J.js +1 -0
- package/dist/analytics-MEGKKFGF.js +1 -0
- package/dist/angular-DW5TQVCM.js +4 -0
- package/dist/{babel-URCL33XX.js → babel-I2RLWM7N.js} +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/{chokidar-G4ONJSK4.js → chokidar-VDIVGBZH.js} +1 -1
- package/dist/chunk-25HJX3L2.js +5 -0
- package/dist/chunk-2EHBJWC6.js +26 -0
- package/dist/chunk-2GAFKG64.js +4 -0
- package/dist/chunk-2GU7OY3H.js +1 -0
- package/dist/{chunk-4IC626OL.js → chunk-2K7FGAT6.js} +1 -1
- package/dist/{chunk-PRVQAHWI.js → chunk-2O22LZKV.js} +1 -1
- package/dist/{chunk-NMBBTTIH.js → chunk-2RBIR3NM.js} +1 -1
- package/dist/chunk-2TMQG2UT.js +1 -0
- package/dist/chunk-2XZBQZ5R.js +7 -0
- package/dist/{chunk-Q4T2T2QE.js → chunk-33OHQUHZ.js} +1 -1
- package/dist/chunk-3AOQKI4B.js +1 -0
- package/dist/{chunk-OBEWZXOQ.js → chunk-3SPDFV5D.js} +1 -1
- package/dist/chunk-3YDYZ232.js +103 -0
- package/dist/chunk-4FFPTEKD.js +1 -0
- package/dist/chunk-4J32OHLY.js +1382 -0
- package/dist/chunk-4QTEPWEJ.js +283 -0
- package/dist/chunk-57PPQKJT.js +15 -0
- package/dist/{chunk-AGNMOFJS.js → chunk-5BKCIDMS.js} +1 -1
- package/dist/{chunk-JUVAGMIH.js → chunk-5C7HDTHJ.js} +1 -1
- package/dist/chunk-5FFHQTRC.js +4 -0
- package/dist/{chunk-2GK56X53.js → chunk-5FVB7JHP.js} +1 -1
- package/dist/{chunk-UYXEA3Y6.js → chunk-5H3VTG77.js} +1 -1
- package/dist/chunk-5O43334U.js +2 -0
- package/dist/chunk-5XDQ76DQ.js +1 -0
- package/dist/{chunk-PD5ZHJWI.js → chunk-636CTEW7.js} +1 -1
- package/dist/chunk-6JKGUQRD.js +1 -0
- package/dist/chunk-6KETAPWL.js +1 -0
- package/dist/{chunk-ULFWK45W.js → chunk-6LWOWDF4.js} +2 -2
- package/dist/chunk-7572RLUP.js +1 -0
- package/dist/chunk-762JWOWJ.js +5 -0
- package/dist/{chunk-IU2ZQ6TE.js → chunk-773TIA5M.js} +1 -1
- package/dist/{chunk-76R52ODR.js → chunk-7D45IAMQ.js} +1 -1
- package/dist/chunk-7FQFEB33.js +370 -0
- package/dist/chunk-7LV55VWE.js +1 -0
- package/dist/{chunk-QUTQDXSL.js → chunk-7UNQOKZW.js} +1 -1
- package/dist/chunk-A27NZMWB.js +1 -0
- package/dist/chunk-A4SBXDZB.js +14 -0
- package/dist/{chunk-4DCQNGUV.js → chunk-A5HKAMAC.js} +10 -10
- package/dist/{chunk-Z35BTAM6.js → chunk-AAK376RT.js} +1 -1
- package/dist/chunk-AERKD4TO.js +3 -0
- package/dist/{chunk-L2MGAEV3.js → chunk-ANBOLDON.js} +2 -2
- package/dist/{chunk-UJVH7FZS.js → chunk-AO3RFGNV.js} +1 -1
- package/dist/{chunk-KHSYW7I4.js → chunk-ATSMK66C.js} +1 -1
- package/dist/chunk-AU5EZQW7.js +5 -0
- package/dist/chunk-AVD3INWF.js +1 -0
- package/dist/chunk-AWEB5AQM.js +1 -0
- package/dist/chunk-AXNAGI32.js +1 -0
- package/dist/chunk-BL46CZ2M.js +2 -0
- package/dist/chunk-BQWK3C47.js +278 -0
- package/dist/chunk-CEHXOWA6.js +3 -0
- package/dist/{chunk-EKXY5COY.js → chunk-CFOXXOO2.js} +1 -1
- package/dist/{chunk-PIBY5DDZ.js → chunk-CRALWNNO.js} +1 -1
- package/dist/chunk-CV5EQGES.js +22 -0
- package/dist/chunk-CX5CC6P5.js +1 -0
- package/dist/chunk-DCLUZFT7.js +2 -0
- package/dist/{chunk-Q33IBIVJ.js → chunk-DNXYKGV2.js} +1 -1
- package/dist/chunk-DTIWUT2T.js +18 -0
- package/dist/{chunk-VICYNG2W.js → chunk-DYNH5SKT.js} +1 -1
- package/dist/chunk-DZQYG32N.js +2 -0
- package/dist/{chunk-FQWB2F75.js → chunk-E7DHELFH.js} +1 -1
- package/dist/chunk-EH7ZTFS4.js +613 -0
- package/dist/{chunk-P6XE4MH5.js → chunk-EJDWYASP.js} +1 -1
- package/dist/chunk-EKVTNWHM.js +1 -0
- package/dist/{chunk-6M3ZYNGO.js → chunk-ET2CGROE.js} +1 -1
- package/dist/chunk-EVZA2TCI.js +3 -0
- package/dist/{chunk-QSTEVZFQ.js → chunk-F3TMLDLC.js} +1 -1
- package/dist/chunk-FIYAECXH.js +28 -0
- package/dist/{chunk-WDC3KIZT.js → chunk-FKIVKNOV.js} +1 -1
- package/dist/chunk-FOFJBRSL.js +11 -0
- package/dist/chunk-FQ5ZZX2G.js +25 -0
- package/dist/chunk-G2LVUM7N.js +6 -0
- package/dist/chunk-G2OHWAY2.js +7 -0
- package/dist/chunk-G3JJLXPH.js +1 -0
- package/dist/chunk-G3RWLAOG.js +1 -0
- package/dist/chunk-G4OQABDT.js +836 -0
- package/dist/{chunk-KLMDWDT2.js → chunk-GB3YC4TI.js} +1 -1
- package/dist/{chunk-OCOY5MV2.js → chunk-GCN4O7HM.js} +1 -1
- package/dist/chunk-GDHD3TGC.js +6 -0
- package/dist/{chunk-JXW374CL.js → chunk-GJXINXSU.js} +11 -11
- package/dist/chunk-GWHV62YT.js +1 -0
- package/dist/chunk-HCTZN7L4.js +2 -0
- package/dist/{chunk-ZSBA6VIC.js → chunk-HDC5V7RY.js} +1 -1
- package/dist/{chunk-7NH7CHVI.js → chunk-HIQHYPLU.js} +1 -1
- package/dist/{chunk-XOTA6JTZ.js → chunk-HOSFU6UP.js} +3 -3
- package/dist/chunk-I22ZTRKK.js +3 -0
- package/dist/chunk-I4R7TML2.js +7 -0
- package/dist/{chunk-EENHXSWU.js → chunk-I5A6BPCP.js} +1 -1
- package/dist/chunk-IWOTLFOY.js +32 -0
- package/dist/{chunk-7UYZQN4V.js → chunk-J3H4LPN6.js} +3 -3
- package/dist/{chunk-XULPJ6UG.js → chunk-J3HX6ZGD.js} +1 -1
- package/dist/chunk-J3JPJCWP.js +1 -0
- package/dist/chunk-J5BRKYGE.js +294 -0
- package/dist/chunk-JAWKLBOB.js +3 -0
- package/dist/{chunk-MCVRONUY.js → chunk-JAWOP4HJ.js} +1 -1
- package/dist/{chunk-ZGK3LGCH.js → chunk-JCIN73BE.js} +1 -1
- package/dist/chunk-JEZ3PGVC.js +1 -0
- package/dist/{chunk-C7BTJ32Z.js → chunk-JJ6RM54S.js} +1 -1
- package/dist/chunk-JK3NIHTX.js +17 -0
- package/dist/chunk-JLE4NBMT.js +1 -0
- package/dist/chunk-JSOGPMWB.js +5 -0
- package/dist/chunk-JUYJZUYU.js +1 -0
- package/dist/chunk-KRQGLK2Q.js +3 -0
- package/dist/{chunk-3VZEETAV.js → chunk-KRZABRYT.js} +1 -1
- package/dist/{chunk-BS3BKORT.js → chunk-L2PC4MUV.js} +1 -1
- package/dist/chunk-LCZDC6EE.js +5 -0
- package/dist/chunk-LXVORHCQ.js +1 -0
- package/dist/chunk-M2YINBHF.js +32 -0
- package/dist/chunk-M7YFD4EV.js +10 -0
- package/dist/chunk-MEIEEENL.js +1 -0
- package/dist/chunk-MIDYZPO4.js +1 -0
- package/dist/chunk-MINZGZ4N.js +1 -0
- package/dist/chunk-MMIHHCMW.js +5 -0
- package/dist/{chunk-PRKBO42R.js → chunk-MPW2YJWU.js} +1 -1
- package/dist/chunk-MRS6LAY7.js +1 -0
- package/dist/chunk-N3CNWCC2.js +19 -0
- package/dist/{chunk-M2D7USAX.js → chunk-N3NE4MVN.js} +1 -1
- package/dist/chunk-N3YTDGFY.js +4 -0
- package/dist/{chunk-MHWV5RQV.js → chunk-N5LVGFDS.js} +2 -2
- package/dist/{chunk-QBSKKQBN.js → chunk-NILXAUUT.js} +1 -1
- package/dist/{chunk-5Y7GIF2W.js → chunk-NJOO5XJV.js} +1 -1
- package/dist/{chunk-ULQG3XQS.js → chunk-NNOSZ447.js} +1 -1
- package/dist/{chunk-6G6TMKXF.js → chunk-NTRAWIEJ.js} +21 -21
- package/dist/chunk-NWXDOCL5.js +1 -0
- package/dist/{chunk-2AJ5FI2K.js → chunk-OU3M32A2.js} +1 -1
- package/dist/chunk-OU4SKQTC.js +5 -0
- package/dist/chunk-OXJBYKMX.js +1 -0
- package/dist/chunk-OZBY45KT.js +1 -0
- package/dist/{chunk-75VPUOC5.js → chunk-P2OI2P2M.js} +1 -1
- package/dist/chunk-PCCK4YTE.js +1 -0
- package/dist/{chunk-6RE2SNCU.js → chunk-PFGYC53K.js} +1 -1
- package/dist/chunk-PMS4MNHB.js +6 -0
- package/dist/chunk-PNP5OKNZ.js +1 -0
- package/dist/{chunk-KN3WTTHZ.js → chunk-PXHY753L.js} +1 -1
- package/dist/chunk-Q73GEVSJ.js +11 -0
- package/dist/{chunk-5WVAHE5E.js → chunk-Q77MM2N2.js} +1 -1
- package/dist/chunk-Q7C44DX5.js +4 -0
- package/dist/chunk-QDVJJKLB.js +1 -0
- package/dist/{chunk-5CH3B62S.js → chunk-RJ5VF3QY.js} +1 -1
- package/dist/{chunk-E3EMHAJB.js → chunk-RKDZGK5K.js} +1 -1
- package/dist/{chunk-TYZXGSHO.js → chunk-RSRYC5ZF.js} +1 -1
- package/dist/chunk-S22NCNAJ.js +1 -0
- package/dist/chunk-S5IFJ737.js +3 -0
- package/dist/chunk-S6B2ADVR.js +8 -0
- package/dist/chunk-S7F5KFQP.js +1 -0
- package/dist/chunk-SSCYLDSX.js +3 -0
- package/dist/{chunk-QFWIDATO.js → chunk-STJ3LWFL.js} +1 -1
- package/dist/chunk-T3ERXB7F.js +8 -0
- package/dist/chunk-T4IV643Z.js +9 -0
- package/dist/chunk-T4NS63K4.js +16 -0
- package/dist/chunk-T6CC5WUU.js +159 -0
- package/dist/{chunk-3TNEIDOD.js → chunk-T7KHS6RF.js} +1 -1
- package/dist/{chunk-QYR5VPQA.js → chunk-TOLPNBZK.js} +1 -1
- package/dist/{chunk-DRFGABEB.js → chunk-TP7E54WN.js} +1 -1
- package/dist/chunk-TPCG6DCA.js +1 -0
- package/dist/{chunk-SXTMSGUE.js → chunk-TRYWVIVJ.js} +1 -1
- package/dist/chunk-TU47HMTL.js +1 -0
- package/dist/chunk-TUNUEOHO.js +3 -0
- package/dist/{chunk-MWY3A7O3.js → chunk-TY6BZTG3.js} +1 -1
- package/dist/chunk-TYMYIUIQ.js +1 -0
- package/dist/chunk-UB26DGTR.js +6 -0
- package/dist/chunk-UC7KMA6W.js +8 -0
- package/dist/chunk-UOHNRH6E.js +7 -0
- package/dist/{chunk-ZR76GGZ6.js → chunk-UQWFDL3F.js} +1 -1
- package/dist/chunk-USLYL5AC.js +1 -0
- package/dist/chunk-UTO4Z6P6.js +567 -0
- package/dist/{chunk-M2ZHFKPN.js → chunk-UU5P2IYU.js} +1 -1
- package/dist/chunk-UYSF234H.js +1 -0
- package/dist/chunk-VE35YELD.js +1 -0
- package/dist/{chunk-WSDN25F5.js → chunk-VI34CKV6.js} +1 -1
- package/dist/chunk-VJ6KDRZI.js +1 -0
- package/dist/{chunk-VBUZWRUL.js → chunk-VJEKDBGZ.js} +1 -1
- package/dist/chunk-VKWPEFWQ.js +1 -0
- package/dist/chunk-VPPWSKOY.js +1 -0
- package/dist/chunk-VRJTLVG3.js +1 -0
- package/dist/chunk-VUMUCNI7.js +1 -0
- package/dist/chunk-W7DDV2EY.js +1 -0
- package/dist/chunk-WA3YC5W4.js +15 -0
- package/dist/chunk-WHNWE7P2.js +1 -0
- package/dist/chunk-WVRGCNBZ.js +1 -0
- package/dist/{chunk-MOA33ZFO.js → chunk-WW7TENNA.js} +1 -1
- package/dist/{chunk-HZA6IAA4.js → chunk-XVUHUA36.js} +1 -1
- package/dist/{chunk-OLZHWPZP.js → chunk-XWPPBOGF.js} +1 -1
- package/dist/chunk-YIRFEW5M.js +1 -0
- package/dist/{chunk-KR6QDE7D.js → chunk-YL3TYQGT.js} +1 -1
- package/dist/{chunk-7MUKLZOL.js → chunk-YLQ3LNNY.js} +3 -3
- package/dist/chunk-YMAWEIUR.js +1 -0
- package/dist/chunk-YPBCSDFQ.js +1 -0
- package/dist/{chunk-KZOBF55B.js → chunk-YSIBRY6C.js} +1 -1
- package/dist/{chunk-KHTV6PBV.js → chunk-YVQXEPHY.js} +1 -1
- package/dist/{chunk-4LNCYIS3.js → chunk-ZDF5N422.js} +1 -1
- package/dist/{chunk-T4M5CWAO.js → chunk-ZG7BVVT2.js} +1 -1
- package/dist/chunk-ZGJ3DFTQ.js +9 -0
- package/dist/{chunk-NKQBEFPS.js → chunk-ZI7LK3LW.js} +1 -1
- package/dist/chunk-ZM75DSIW.js +1 -0
- package/dist/{chunk-URZPVSJZ.js → chunk-ZUKLGZOU.js} +66 -66
- package/dist/cli/commands/app/app-logs/sources.js +1 -2
- package/dist/cli/commands/app/build.js +1 -1
- package/dist/cli/commands/app/bulk/cancel.js +1 -1
- package/dist/cli/commands/app/bulk/execute.js +1 -9
- package/dist/cli/commands/app/bulk/status.js +1 -5
- package/dist/cli/commands/app/config/link.js +1 -4
- package/dist/cli/commands/app/config/pull.js +1 -1
- package/dist/cli/commands/app/config/use.js +1 -1
- package/dist/cli/commands/app/config/validate.js +1 -3
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -22
- package/dist/cli/commands/app/dev/clean.js +1 -5
- package/dist/cli/commands/app/dev.js +1 -320
- package/dist/cli/commands/app/env/pull.js +1 -11
- package/dist/cli/commands/app/env/show.js +1 -1
- package/dist/cli/commands/app/execute.js +1 -1
- package/dist/cli/commands/app/function/build.js +1 -1
- package/dist/cli/commands/app/function/info.js +1 -16
- package/dist/cli/commands/app/function/replay.js +1 -5
- package/dist/cli/commands/app/function/run.js +1 -1
- package/dist/cli/commands/app/function/schema.js +1 -1
- package/dist/cli/commands/app/function/typegen.js +1 -1
- package/dist/cli/commands/app/generate/extension.js +1 -5
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -4
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -11
- package/dist/cli/commands/app/init.js +1 -10
- package/dist/cli/commands/app/logs.js +1 -2
- package/dist/cli/commands/app/release.js +1 -4
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -25
- package/dist/cli/commands/auth/login.js +1 -1
- package/dist/cli/commands/auth/logout.js +1 -1
- package/dist/cli/commands/cache/clear.js +1 -1
- package/dist/cli/commands/config/autoupgrade/constants.js +1 -1
- package/dist/cli/commands/config/autoupgrade/off.js +1 -1
- package/dist/cli/commands/config/autoupgrade/on.js +1 -1
- package/dist/cli/commands/config/autoupgrade/status.js +1 -1
- package/dist/cli/commands/debug/command-flags.js +1 -1
- package/dist/cli/commands/doc/fetch.d.ts +12 -0
- package/dist/cli/commands/doc/fetch.js +1 -0
- package/dist/cli/commands/doc/search.d.ts +13 -0
- package/dist/cli/commands/doc/search.js +1 -0
- package/dist/cli/commands/docs/generate.js +1 -1
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
- package/dist/cli/commands/doctor-release/theme/index.js +1 -1
- package/dist/cli/commands/help.js +1 -1
- package/dist/cli/commands/kitchen-sink/async.js +1 -1
- package/dist/cli/commands/kitchen-sink/index.js +1 -1
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
- package/dist/cli/commands/kitchen-sink/static.js +1 -1
- package/dist/cli/commands/notifications/generate.js +1 -1
- package/dist/cli/commands/notifications/list.js +1 -1
- package/dist/cli/commands/organization/list.js +1 -1
- package/dist/cli/commands/search.d.ts +4 -0
- package/dist/cli/commands/search.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -15
- package/dist/cli/commands/theme/delete.js +1 -7
- package/dist/cli/commands/theme/dev.js +1 -26
- package/dist/cli/commands/theme/duplicate.js +1 -32
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -8
- package/dist/cli/commands/theme/language-server.js +1 -1
- package/dist/cli/commands/theme/list.js +1 -1
- package/dist/cli/commands/theme/metafields/pull.js +1 -3
- package/dist/cli/commands/theme/open.js +1 -8
- package/dist/cli/commands/theme/package.js +1 -7
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -3
- package/dist/cli/commands/theme/publish.js +1 -7
- package/dist/cli/commands/theme/pull.js +1 -3
- package/dist/cli/commands/theme/push.js +1 -28
- package/dist/cli/commands/theme/rename.js +1 -6
- package/dist/cli/commands/theme/share.js +1 -3
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/cli/services/commands/doc/fetch.d.ts +1 -0
- package/dist/cli/services/commands/doc/fetch.js +45 -0
- package/dist/cli/services/commands/doc/search.d.ts +1 -0
- package/dist/cli/services/commands/doc/search.js +47 -0
- package/dist/command-registry.js +1 -1
- package/dist/conf-store-UY3MDGGA.js +1 -0
- package/dist/configs/all.yml +3 -0
- package/dist/configs/recommended.yml +3 -0
- package/dist/{custom-oclif-loader-DVFFWCBV.js → custom-oclif-loader-3AICQCNU.js} +1 -1
- package/dist/data/filters.json +60 -0
- package/dist/data/latest.json +1 -1
- package/dist/data/setting.json +29 -9
- package/dist/data/shopify_system_translations.json +71 -19
- package/dist/data/tags.json +3 -3
- package/dist/deprecations-KNUMDRIU.js +1 -0
- package/dist/{devtools-OLOT2NY4.js → devtools-37DE4MUR.js} +1 -1
- package/dist/{devtools-UFRKBFGI.js → devtools-WAWU5KQL.js} +1 -1
- package/dist/dist-C5IV2YDQ.js +1 -0
- package/dist/dist-VL4KZWV2.js +1 -0
- package/dist/environments-YPRVO2CF.js +1 -0
- package/dist/error-XRBQTNFM.js +1 -0
- package/dist/error-handler-NI7D6GSY.js +1 -0
- package/dist/{estree-KI7NUW53.js → estree-JV5M77BA.js} +2 -2
- package/dist/{flow-MLHT7MTJ.js → flow-N4JYPYMQ.js} +1 -1
- package/dist/fs-LJWVNO4H.js +1 -0
- package/dist/{glimmer-HAJ4HQCW.js → glimmer-JEV3BXHR.js} +1 -1
- package/dist/{graphql-F7IHGXDT.js → graphql-DTF6MHYF.js} +1 -1
- package/dist/hooks/app-init.js +1 -1
- package/dist/hooks/did-you-mean.js +1 -1
- package/dist/hooks/hydrogen-init.js +1 -1
- package/dist/hooks/plugin-plugins.js +1 -1
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.js +1 -1
- package/dist/hooks/sensitive-metadata.js +1 -1
- package/dist/hooks/tunnel-provider.js +1 -1
- package/dist/hooks/tunnel-start.js +1 -1
- package/dist/html-LVOJ3RQS.js +25 -0
- package/dist/{http-proxy-node16-Q5DZMBHC.js → http-proxy-node16-X2WAMUT5.js} +1 -1
- package/dist/index.js +23 -1175
- package/dist/is-global-W6ALVC5L.js +1 -0
- package/dist/is-wsl-UEMXYJPN.js +1 -0
- package/dist/{latest-version-EFWBOTWM.js → latest-version-32HXMWJ7.js} +1 -1
- package/dist/lib-AIKYSHWL.js +1 -0
- package/dist/lib-O5EZ4NVT.js +1 -0
- package/dist/lib-Q4PWEMFD.js +1 -0
- package/dist/lib-QJDPPAWN.js +1 -0
- package/dist/{local-MTKXSZ3I.js → local-GKEWZAIV.js} +1 -1
- package/dist/local-storage-ZOZMA22B.js +1 -0
- package/dist/{markdown-PLKL4IZK.js → markdown-J6CE6POI.js} +2 -2
- package/dist/{meriyah-AYZQ3BGY.js → meriyah-PNQQZQYI.js} +1 -1
- package/dist/metadata-UEUN64TK.js +1 -0
- package/dist/{morph-EMYAITFM.js → morph-CGOZEPPZ.js} +4 -4
- package/dist/{multipart-parser-Q4QJZK3V.js → multipart-parser-5NSSTW27.js} +1 -1
- package/dist/node-package-manager-4ASQQIIF.js +1 -0
- package/dist/notifications-system-HLXJCAMG.js +1 -0
- package/dist/{npa-ICFSA3NL.js → npa-A4YSCQ5Q.js} +1 -1
- package/dist/{open-VA7TLUIL.js → open-KLSGXBIW.js} +1 -1
- package/dist/out-CDCY25QC.js +1 -0
- package/dist/output-S6E37GJQ.js +1 -0
- package/dist/{path-CWUNINMX.js → path-MBXP7ZIC.js} +1 -1
- package/dist/{postcss-3FJQPJI2.js → postcss-Q36SHOML.js} +2 -2
- package/dist/{prettier-NVRHEAFO.js → prettier-EGVCP5CY.js} +1 -1
- package/dist/{source-map-3K6Y2OMO.js → source-map-E7FCCJL7.js} +1 -1
- package/dist/system-YQZNGSWB.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-5R4Y7PXE.js +1 -0
- package/dist/{typescript-ODJ335NU.js → typescript-WYPDGPSV.js} +1 -1
- package/dist/ui-D2FFWRK7.js +1 -0
- package/dist/upgrade-TVTCFMXM.js +1 -0
- package/dist/version-J6MDN7BZ.js +1 -0
- package/dist/version-RIRW5EXQ.js +1 -0
- package/dist/workerd-QOTT6UCO.js +18 -0
- package/dist/{yaml-BIHS2GQW.js → yaml-6KWCJ64X.js} +1 -1
- package/oclif.manifest.json +442 -9
- package/package.json +18 -12
- package/dist/analytics-5TEIW43T.js +0 -1
- package/dist/analytics-GG7CYCGL.js +0 -1
- package/dist/angular-VRDO2DBE.js +0 -4
- package/dist/chunk-3D4JXJPS.js +0 -2
- package/dist/chunk-3NBK56IK.js +0 -1
- package/dist/chunk-4ZGSSQC6.js +0 -1
- package/dist/chunk-54CAKCYR.js +0 -144
- package/dist/chunk-5UHQVR2Z.js +0 -1
- package/dist/chunk-67MH4AXG.js +0 -1
- package/dist/chunk-6CYMJ76C.js +0 -9
- package/dist/chunk-6HBRBQAN.js +0 -6
- package/dist/chunk-6ITDI2SD.js +0 -1
- package/dist/chunk-6SF3ZETE.js +0 -1
- package/dist/chunk-6WL4GA2M.js +0 -15
- package/dist/chunk-7ESSIN27.js +0 -567
- package/dist/chunk-7QIOUDCX.js +0 -8
- package/dist/chunk-7ZT57XT7.js +0 -2
- package/dist/chunk-AKML26N3.js +0 -7
- package/dist/chunk-C2IK2HY3.js +0 -4
- package/dist/chunk-CBXSPL4W.js +0 -1
- package/dist/chunk-CEIQFLCN.js +0 -1
- package/dist/chunk-CERXUPGC.js +0 -14
- package/dist/chunk-DCPBRWVC.js +0 -1
- package/dist/chunk-DN2IE3VY.js +0 -1
- package/dist/chunk-EQU4MUQJ.js +0 -1
- package/dist/chunk-F2QU6WWX.js +0 -1
- package/dist/chunk-FFQ5EWII.js +0 -294
- package/dist/chunk-FKMC5OFF.js +0 -1
- package/dist/chunk-FUOIGXI4.js +0 -1
- package/dist/chunk-FYFNUDOC.js +0 -19
- package/dist/chunk-G4BPGWJC.js +0 -1
- package/dist/chunk-GVQIPEZT.js +0 -1
- package/dist/chunk-GZS44BUW.js +0 -102
- package/dist/chunk-HIBX234C.js +0 -6
- package/dist/chunk-HRUGYZZ4.js +0 -2
- package/dist/chunk-HUIJMGVJ.js +0 -586
- package/dist/chunk-IX5ICOBV.js +0 -7
- package/dist/chunk-IZ3C5J7G.js +0 -5
- package/dist/chunk-JAO53IH2.js +0 -1
- package/dist/chunk-JCL2RRU6.js +0 -1
- package/dist/chunk-JQJBBXMX.js +0 -17
- package/dist/chunk-K2WUCOQJ.js +0 -32
- package/dist/chunk-K6CTUBFC.js +0 -12
- package/dist/chunk-KKTW6ZCA.js +0 -5
- package/dist/chunk-LDGAHMS7.js +0 -159
- package/dist/chunk-M3RYUB22.js +0 -1
- package/dist/chunk-M56NDIMD.js +0 -1
- package/dist/chunk-MWGBTOO3.js +0 -1
- package/dist/chunk-N5PQPIBF.js +0 -374
- package/dist/chunk-NF2ABOOU.js +0 -1
- package/dist/chunk-NPEVESCV.js +0 -3
- package/dist/chunk-OTY24J2W.js +0 -1
- package/dist/chunk-OY3PNHPZ.js +0 -103
- package/dist/chunk-PAP22IQO.js +0 -264
- package/dist/chunk-PYVAWAUO.js +0 -5
- package/dist/chunk-QA23HIH4.js +0 -1
- package/dist/chunk-S6EJHWJL.js +0 -1
- package/dist/chunk-SIMFNECG.js +0 -1
- package/dist/chunk-T542UQBY.js +0 -1
- package/dist/chunk-TQ6HYDVC.js +0 -1
- package/dist/chunk-UHJYPEY2.js +0 -1
- package/dist/chunk-UJXUSRQK.js +0 -1
- package/dist/chunk-UWJ73J4B.js +0 -1
- package/dist/chunk-UXVZ2P63.js +0 -1411
- package/dist/chunk-VPRTJUIN.js +0 -1
- package/dist/chunk-WFXRSKRK.js +0 -1
- package/dist/chunk-XEFQQPL4.js +0 -1
- package/dist/chunk-XITQULK4.js +0 -3
- package/dist/chunk-XONFGLJQ.js +0 -847
- package/dist/chunk-XR6GMMEU.js +0 -1
- package/dist/chunk-XXVEHDVO.js +0 -1
- package/dist/chunk-Y7JGYGV7.js +0 -1
- package/dist/chunk-YOZNRLFC.js +0 -1
- package/dist/chunk-YTNDFQJT.js +0 -3
- package/dist/chunk-ZBRRJDGW.js +0 -1
- package/dist/chunk-ZTMSBSYD.js +0 -1
- package/dist/conf-store-BMZFATRQ.js +0 -1
- package/dist/deprecations-7LHRXPXU.js +0 -1
- package/dist/dist-LDXPBYSZ.js +0 -1
- package/dist/dist-V63ILV6L.js +0 -1
- package/dist/environments-5X7S2O5U.js +0 -1
- package/dist/error-ZRLNNGIQ.js +0 -1
- package/dist/error-handler-PRZFHPRG.js +0 -1
- package/dist/fs-H7V6IRSH.js +0 -1
- package/dist/html-VSSXOZOQ.js +0 -25
- package/dist/is-global-IOWPCT2U.js +0 -1
- package/dist/is-wsl-FVUIXDOK.js +0 -1
- package/dist/lib-5L7UKDEK.js +0 -1
- package/dist/lib-C3VO2BQW.js +0 -1
- package/dist/lib-QB6I6CTC.js +0 -1
- package/dist/lib-WU3FEA6I.js +0 -1
- package/dist/local-storage-CYEL4MXF.js +0 -1
- package/dist/metadata-NOVBMKLM.js +0 -1
- package/dist/node-package-manager-N5CVNHA3.js +0 -1
- package/dist/notifications-system-YX2GPLDW.js +0 -1
- package/dist/out-WLY6KV4B.js +0 -1
- package/dist/output-Q46DT46U.js +0 -1
- package/dist/system-E6Q3OBX3.js +0 -1
- package/dist/typescript-K5CWIA4V.js +0 -1
- package/dist/ui-WRS2IDPP.js +0 -1
- package/dist/upgrade-TKUN2M5P.js +0 -1
- package/dist/version-5W5RVAPA.js +0 -1
- package/dist/version-BQJ3FPXD.js +0 -1
- package/dist/workerd-GOK6GWEX.js +0 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as I,b as w}from"./chunk-STJ3LWFL.js";import{a as E}from"./chunk-AVD3INWF.js";import{a as _}from"./chunk-MIDYZPO4.js";import{a,b as u,k as S,q as b}from"./chunk-TUNUEOHO.js";import{ua as f,xa as p}from"./chunk-G4OQABDT.js";import{b as T,c as g}from"./chunk-OXJBYKMX.js";import{g as s,u as c}from"./chunk-NTRAWIEJ.js";import{d as v}from"./chunk-TPCG6DCA.js";import{r as x}from"./chunk-T6CC5WUU.js";import{Lb as l}from"./chunk-7FQFEB33.js";import{e as L,g as m}from"./chunk-VKWPEFWQ.js";m();m();function A(o,e){return{theme:{id:o.id,name:o.name,role:o.role,shop:e.storeFqdn,preview_url:I(o,e),editor_url:w(o,e)}}}function D(o){let{platform:e,arch:n}=s(),t=a(),r=null;return t&&(r=Number(u())||null),{store:t??"Not configured",development_theme_id:r,cli_version:o.cliVersion,os:`${e}-${n}`,shell:process.env.SHELL??"unknown",node_version:process.version}}async function O(o,e){let n;if(e.development)n=await new E(o).findOrCreate();else{let t={filter:{theme:e.theme}};n=await _(o,t)}return n?A(n,o):void 0}async function y(o){return[M(),await j(o)]}function M(){let o=a()??"Not configured",e=u();return p(`theme-command:info:dev-theme-loaded:${e}`),N("Theme Configuration",[["Store",o],["Development Theme ID",e?`#${e}`:{subdued:"Not set"}]])}async function j(o){let{platform:e,arch:n}=s();return N("Tooling and System",[["Shopify CLI",o.cliVersion],["OS",`${e}-${n}`],["Shell",process.env.SHELL??"unknown"],["Node version",process.version]])}function N(o,e){return{title:o,body:{tabularData:e,firstColumnSubdued:!0}}}async function F(o,e){let n=Object.entries(o.theme).map(([t,r])=>{if(t==="editor_url"||t==="preview_url"){let C=String(r),$=t==="editor_url"?"Open in Theme Editor":"Preview Theme";return[d(t),{link:{url:C,label:$}}]}else return t==="id"?[d(t),`#${r}`]:[d(t),`${r}`]});return{customSections:[...e.environment?[{title:"Theme information",body:[{subdued:`Environment name: ${e.environment}`}]}]:[],{title:"Theme Details",body:{tabularData:n,firstColumnSubdued:!0}}]}}function d(o){return o.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}var h=L(x(),1);var i=class extends b{async command(e,n){if(f("theme-command:info"),e.theme||e.development){let t=await O(n,e);if(!t)throw new v("Theme not found!");if(e.json)return l(JSON.stringify(t,null,2));let r=await F(t,e);c(r)}else{if(e.json)return l(JSON.stringify(D({cliVersion:this.config.version}),null,2));let t=await y({cliVersion:this.config.version});c({customSections:t})}f("theme-command:info")}};i.description="Displays information about your theme environment, including your current store. Can also retrieve information about a specific theme.";i.flags={...T,...g,...S,development:h.Flags.boolean({char:"d",description:"Retrieve info from your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),theme:h.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};i.multiEnvironmentsFlags=["store","password"];var k=i;export{k as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d,c as _,g as v}from"./chunk-
|
|
1
|
+
import{a as d,c as _,g as v}from"./chunk-VKWPEFWQ.js";var C=_(a=>{"use strict";v();var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),B=g(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=d("node:fs"),r=d("node:fs/promises"),n=async(c,o={})=>{let{ignoreErrors:i=!1}=o;try{return l(await(0,r.stat)(c),o)}catch(u){let p=u;if(i||p.code==="EACCES")return!1;throw p}};t.isexe=n;var s=(c,o={})=>{let{ignoreErrors:i=!1}=o;try{return l((0,e.statSync)(c),o)}catch(u){let p=u;if(i||p.code==="EACCES")return!1;throw p}};t.sync=s;var l=(c,o)=>c.isFile()&&f(c,o),f=(c,o)=>{let i=o.uid??process.getuid?.(),u=o.groups??process.getgroups?.()??[],p=o.gid??process.getgid?.()??u[0];if(i===void 0||p===void 0)throw new Error("cannot get uid or gid");let h=new Set([p,...u]),E=c.mode,x=c.uid,H=c.gid,w=parseInt("100",8),y=parseInt("010",8),N=parseInt("001",8),R=w|y;return!!(E&N||E&y&&h.has(H)||E&w&&x===i||E&R&&i===0)}}),m=g(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=d("node:fs"),r=d("node:fs/promises"),n=d("node:path"),s=async(o,i={})=>{let{ignoreErrors:u=!1}=i;try{return c(await(0,r.stat)(o),o,i)}catch(p){let h=p;if(u||h.code==="EACCES")return!1;throw h}};t.isexe=s;var l=(o,i={})=>{let{ignoreErrors:u=!1}=i;try{return c((0,e.statSync)(o),o,i)}catch(p){let h=p;if(u||h.code==="EACCES")return!1;throw h}};t.sync=l;var f=(o,i)=>{let{pathExt:u=process.env.PATHEXT||""}=i,p=u.split(n.delimiter);if(p.indexOf("")!==-1)return!0;for(let h of p){let E=h.toLowerCase(),x=o.substring(o.length-E.length).toLowerCase();if(E&&x===E)return!0}return!1},c=(o,i,u)=>o.isFile()&&f(i,u)}),D=g(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})}),O=a&&a.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),G=a&&a.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),P=a&&a.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[n.length]=s);return n},t(e)};return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),s=0;s<n.length;s++)n[s]!=="default"&&O(r,e,n[s]);return G(r,e),r}})(),W=a&&a.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&O(e,t,r)};Object.defineProperty(a,"__esModule",{value:!0});a.sync=a.isexe=a.posix=a.win32=void 0;var b=P(B());a.posix=b;var j=P(m());a.win32=j;W(D(),a);var k=process.env._ISEXE_TEST_PLATFORM_||process.platform,S=k==="win32"?j:b;a.isexe=S.isexe;a.sync=S.sync});var Y=_((et,X)=>{v();var{isexe:z,sync:J}=C(),{join:K,delimiter:Q,sep:M,posix:T}=d("path"),A=process.platform==="win32",q=new RegExp(`[${T.sep}${M===T.sep?"":M}]`.replace(/(\\)/g,"\\$1")),U=new RegExp(`^\\.${q.source}`),I=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),$=(t,{path:e=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=Q})=>{let s=t.match(q)?[""]:[...A?[process.cwd()]:[],...(e||"").split(n)];if(A){let l=r||[".EXE",".CMD",".BAT",".COM"].join(n),f=l.split(n).flatMap(c=>[c,c.toLowerCase()]);return t.includes(".")&&f[0]!==""&&f.unshift(""),{pathEnv:s,pathExt:f,pathExtExe:l}}return{pathEnv:s,pathExt:[""]}},F=(t,e)=>{let r=/^".*"$/.test(t)?t.slice(1,-1):t;return(!r&&U.test(e)?e.slice(0,2):"")+K(r,e)},L=async(t,e={})=>{let{pathEnv:r,pathExt:n,pathExtExe:s}=$(t,e),l=[];for(let f of r){let c=F(f,t);for(let o of n){let i=c+o;if(await z(i,{pathExt:s,ignoreErrors:!0})){if(!e.all)return i;l.push(i)}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw I(t)},V=(t,e={})=>{let{pathEnv:r,pathExt:n,pathExtExe:s}=$(t,e),l=[];for(let f of r){let c=F(f,t);for(let o of n){let i=c+o;if(J(i,{pathExt:s,ignoreErrors:!0})){if(!e.all)return i;l.push(i)}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw I(t)};X.exports=L;L.sync=V});export{Y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as E}from"./chunk-OZBY45KT.js";import{Fa as w}from"./chunk-4QTEPWEJ.js";import{d as v}from"./chunk-CFOXXOO2.js";import{R as y,g as O}from"./chunk-G4OQABDT.js";import{d as r,g as c}from"./chunk-TPCG6DCA.js";import{Fb as d,Hb as a,Ta as h,ma as m}from"./chunk-7FQFEB33.js";import{e as q,g as u}from"./chunk-VKWPEFWQ.js";u();u();var l=q(O(),1);async function $(e,t){let o=e.apiSecretKeys[0]?.secret;if(!o)throw new c("No API secret keys found for app");return y(t,e.apiKey,o)}function x(e){let t;try{t=(0,l.parse)(e)}catch(i){throw i instanceof Error?new r(`Invalid GraphQL syntax: ${i.message}`):i}if(t.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new r("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}async function I(e){let{adminSession:t,userSpecifiedVersion:o,minimumDefaultVersion:i}=e;if(o==="unstable")return o;let n=await v(t);if(!o){let p=n.filter(f=>f.supported).map(f=>f.handle);return i&&p.push(i),p.sort().reverse()[0]}let s=n.map(p=>p.handle);if(s.includes(o))return o;let A=a`Invalid API version: ${o}`.value,P=a`Allowed versions: ${s.join(", ")}`.value;throw new r(A,P)}function M(e){let{organization:t,remoteApp:o,storeFqdn:i,version:n}=e,s=[`Organization: ${t.businessName}`,`App: ${o.title}`,`Store: ${i}`];return n&&s.push(`API version: ${n}`),s}function S(e){return(0,l.parse)(e).definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}function N(e,t){if(S(e)&&t.storeType!=="APP_DEVELOPMENT")throw new r("Mutations can only be executed on dev stores.")}async function D(e){let t=await w({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),o=await E({appContextResult:t,storeFqdn:e.store,forceReselectStore:e.reset,storeTypes:["APP_DEVELOPMENT","DEVELOPMENT","DEVELOPMENT_SUPERSET","PRODUCTION"]});return{appContextResult:t,store:o}}async function z(e){let t;if(e.query!==void 0){if(!e.query.trim())throw new r("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");t=e.query}else if(e["query-file"]){let n=e["query-file"];if(!await h(n))throw new r(a`Query file not found at ${d.path(n)}. Please check the path and try again.`);if(t=await m(n,{encoding:"utf8"}),!t.trim())throw new r(a`Query file at ${d.path(n)} is empty. Please provide a valid GraphQL query or mutation.`)}if(!t)throw new c("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");x(t);let{appContextResult:o,store:i}=await D(e);return{query:t,appContextResult:o,store:i}}export{$ as a,x as b,I as c,M as d,S as e,N as f,D as g,z as h};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import{a as fu,c as p,d as ne,e as Eu,g as F}from"./chunk-VKWPEFWQ.js";var Ku=p((Hr,Du)=>{F();Du.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Du.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Du.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Qu=p((Jr,j)=>{F();var C=global.process,S=function(u){return u&&typeof u=="object"&&typeof u.removeListener=="function"&&typeof u.emit=="function"&&typeof u.reallyExit=="function"&&typeof u.listeners=="function"&&typeof u.kill=="function"&&typeof u.pid=="number"&&typeof u.on=="function"};S(C)?(Hu=fu("assert"),$=Ku(),zu=/^win/i.test(C.platform),q=fu("events"),typeof q!="function"&&(q=q.EventEmitter),C.__signal_exit_emitter__?d=C.__signal_exit_emitter__:(d=C.__signal_exit_emitter__=new q,d.count=0,d.emitted={}),d.infinite||(d.setMaxListeners(1/0),d.infinite=!0),j.exports=function(u,D){if(!S(global.process))return function(){};Hu.equal(typeof u,"function","a callback must be provided for exit handler"),L===!1&&mu();var e="exit";D&&D.alwaysLast&&(e="afterexit");var t=function(){d.removeListener(e,u),d.listeners("exit").length===0&&d.listeners("afterexit").length===0&&eu()};return d.on(e,u),t},eu=function(){!L||!S(global.process)||(L=!1,$.forEach(function(D){try{C.removeListener(D,tu[D])}catch{}}),C.emit=ru,C.reallyExit=bu,d.count-=1)},j.exports.unload=eu,v=function(D,e,t){d.emitted[D]||(d.emitted[D]=!0,d.emit(D,e,t))},tu={},$.forEach(function(u){tu[u]=function(){if(S(global.process)){var e=C.listeners(u);e.length===d.count&&(eu(),v("exit",null,u),v("afterexit",null,u),zu&&u==="SIGHUP"&&(u="SIGINT"),C.kill(C.pid,u))}}}),j.exports.signals=function(){return $},L=!1,mu=function(){L||!S(global.process)||(L=!0,d.count+=1,$=$.filter(function(D){try{return C.on(D,tu[D]),!0}catch{return!1}}),C.emit=Xu,C.reallyExit=Ju)},j.exports.load=mu,bu=C.reallyExit,Ju=function(D){S(global.process)&&(C.exitCode=D||0,v("exit",C.exitCode,null),v("afterexit",C.exitCode,null),bu.call(C,C.exitCode))},ru=C.emit,Xu=function(D,e){if(D==="exit"&&S(global.process)){e!==void 0&&(C.exitCode=e);var t=ru.apply(this,arguments);return v("exit",C.exitCode,null),v("afterexit",C.exitCode,null),t}else return ru.apply(this,arguments)}):j.exports=function(){return function(){}};var Hu,$,zu,q,d,eu,v,tu,L,mu,bu,Ju,ru,Xu});var tD=p((Eo,eD)=>{F();eD.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var qe=p((Ro,cD)=>{F();function Ye(u){var D=typeof u;return u!=null&&(D=="object"||D=="function")}cD.exports=Ye});var TD=p((sn,xD)=>{F();var vt=typeof global=="object"&&global&&global.Object===Object&&global;xD.exports=vt});var wD=p((an,yD)=>{F();var Ot=TD(),Rt=typeof self=="object"&&self&&self.Object===Object&&self,Nt=Ot||Rt||Function("return this")();yD.exports=Nt});var vu=p((Cn,SD)=>{F();var It=wD(),_t=It.Symbol;SD.exports=_t});var ND=p((En,RD)=>{F();var vD=vu(),OD=Object.prototype,$t=OD.hasOwnProperty,Lt=OD.toString,Q=vD?vD.toStringTag:void 0;function jt(u){var D=$t.call(u,Q),e=u[Q];try{u[Q]=void 0;var t=!0}catch{}var r=Lt.call(u);return t&&(D?u[Q]=e:delete u[Q]),r}RD.exports=jt});var _D=p((dn,ID)=>{F();var Mt=Object.prototype,kt=Mt.toString;function Gt(u){return kt.call(u)}ID.exports=Gt});var MD=p((hn,jD)=>{F();var $D=vu(),Wt=ND(),Pt=_D(),Ut="[object Null]",Vt="[object Undefined]",LD=$D?$D.toStringTag:void 0;function Yt(u){return u==null?u===void 0?Vt:Ut:LD&&LD in Object(u)?Wt(u):Pt(u)}jD.exports=Yt});var GD=p((mn,kD)=>{F();function qt(u){return u!=null&&typeof u=="object"}kD.exports=qt});var Xt=p((An,WD)=>{F();var Kt=MD(),Ht=GD(),zt="[object Symbol]";function Jt(u){return typeof u=="symbol"||Ht(u)&&Kt(u)==zt}WD.exports=Jt});var UD=p((Tn,Ou)=>{"use strict";F();var PD=(u,D)=>{for(let e of Reflect.ownKeys(D))Object.defineProperty(u,e,Object.getOwnPropertyDescriptor(D,e));return u};Ou.exports=PD;Ou.exports.default=PD});var YD=p((wn,cu)=>{"use strict";F();var Qt=UD(),au=new WeakMap,VD=(u,D={})=>{if(typeof u!="function")throw new TypeError("Expected a function");let e,t=0,r=u.displayName||u.name||"<anonymous>",o=function(...n){if(au.set(o,++t),t===1)e=u.apply(this,n),u=null;else if(D.throw===!0)throw new Error(`Function \`${r}\` can only be called once`);return e};return Qt(o,u),au.set(o,t),o};cu.exports=VD;cu.exports.default=VD;cu.exports.callCount=u=>{if(!au.has(u))throw new Error(`The given function \`${u.name}\` is not wrapped by the \`onetime\` package`);return au.get(u)}});var XD=p((qn,cr)=>{cr.exports={single:{topLeft:"\u250C",top:"\u2500",topRight:"\u2510",right:"\u2502",bottomRight:"\u2518",bottom:"\u2500",bottomLeft:"\u2514",left:"\u2502"},double:{topLeft:"\u2554",top:"\u2550",topRight:"\u2557",right:"\u2551",bottomRight:"\u255D",bottom:"\u2550",bottomLeft:"\u255A",left:"\u2551"},round:{topLeft:"\u256D",top:"\u2500",topRight:"\u256E",right:"\u2502",bottomRight:"\u256F",bottom:"\u2500",bottomLeft:"\u2570",left:"\u2502"},bold:{topLeft:"\u250F",top:"\u2501",topRight:"\u2513",right:"\u2503",bottomRight:"\u251B",bottom:"\u2501",bottomLeft:"\u2517",left:"\u2503"},singleDouble:{topLeft:"\u2553",top:"\u2500",topRight:"\u2556",right:"\u2551",bottomRight:"\u255C",bottom:"\u2500",bottomLeft:"\u2559",left:"\u2551"},doubleSingle:{topLeft:"\u2552",top:"\u2550",topRight:"\u2555",right:"\u2502",bottomRight:"\u255B",bottom:"\u2550",bottomLeft:"\u2558",left:"\u2502"},classic:{topLeft:"+",top:"-",topRight:"+",right:"|",bottomRight:"+",bottom:"-",bottomLeft:"+",left:"|"},arrow:{topLeft:"\u2198",top:"\u2193",topRight:"\u2199",right:"\u2190",bottomRight:"\u2196",bottom:"\u2191",bottomLeft:"\u2197",left:"\u2192"}}});var Cr=p((Kn,_u)=>{"use strict";F();var QD=XD();_u.exports=QD;_u.exports.default=QD});var ue=p((zn,ZD)=>{"use strict";F();var fr=/[|\\{}()[\]^$+*?.-]/g;ZD.exports=u=>{if(typeof u!="string")throw new TypeError("Expected a string");return u.replace(fr,"\\$&")}});var gr=p((Xn,te)=>{"use strict";F();var Er=ue(),pr=typeof process=="object"&&process&&typeof process.cwd=="function"?process.cwd():".",ee=[].concat(fu("module").builtinModules,"bootstrap_node","node").map(u=>new RegExp(`(?:\\((?:node:)?${u}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${u}(?:\\.js)?:\\d+:\\d+$)`));ee.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/,/\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/,/\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);var $u=class u{constructor(D){D={ignoredPackages:[],...D},"internals"in D||(D.internals=u.nodeInternals()),"cwd"in D||(D.cwd=pr),this._cwd=D.cwd.replace(/\\/g,"/"),this._internals=[].concat(D.internals,dr(D.ignoredPackages)),this._wrapCallSite=D.wrapCallSite||!1}static nodeInternals(){return[...ee]}clean(D,e=0){e=" ".repeat(e),Array.isArray(D)||(D=D.split(`
|
|
2
|
+
`)),!/^\s*at /.test(D[0])&&/^\s*at /.test(D[1])&&(D=D.slice(1));let t=!1,r=null,o=[];return D.forEach(n=>{if(n=n.replace(/\\/g,"/"),this._internals.some(l=>l.test(n)))return;let i=/^\s*at /.test(n);t?n=n.trimEnd().replace(/^(\s+)at /,"$1"):(n=n.trim(),i&&(n=n.slice(3))),n=n.replace(`${this._cwd}/`,""),n&&(i?(r&&(o.push(r),r=null),o.push(n)):(t=!0,r=n))}),o.map(n=>`${e}${n}
|
|
3
|
+
`).join("")}captureString(D,e=this.captureString){typeof D=="function"&&(e=D,D=1/0);let{stackTraceLimit:t}=Error;D&&(Error.stackTraceLimit=D);let r={};Error.captureStackTrace(r,e);let{stack:o}=r;return Error.stackTraceLimit=t,this.clean(o)}capture(D,e=this.capture){typeof D=="function"&&(e=D,D=1/0);let{prepareStackTrace:t,stackTraceLimit:r}=Error;Error.prepareStackTrace=(i,l)=>this._wrapCallSite?l.map(this._wrapCallSite):l,D&&(Error.stackTraceLimit=D);let o={};Error.captureStackTrace(o,e);let{stack:n}=o;return Object.assign(Error,{prepareStackTrace:t,stackTraceLimit:r}),n}at(D=this.at){let[e]=this.capture(1,D);if(!e)return{};let t={line:e.getLineNumber(),column:e.getColumnNumber()};De(t,e.getFileName(),this._cwd),e.isConstructor()&&Object.defineProperty(t,"constructor",{value:!0,configurable:!0}),e.isEval()&&(t.evalOrigin=e.getEvalOrigin()),e.isNative()&&(t.native=!0);let r;try{r=e.getTypeName()}catch{}r&&r!=="Object"&&r!=="[object Object]"&&(t.type=r);let o=e.getFunctionName();o&&(t.function=o);let n=e.getMethodName();return n&&o!==n&&(t.method=n),t}parseLine(D){let e=D&&D.match(Br);if(!e)return null;let t=e[1]==="new",r=e[2],o=e[3],n=e[4],i=Number(e[5]),l=Number(e[6]),E=e[7],N=e[8],g=e[9],A=e[10]==="native",h=e[11]===")",m,B={};if(N&&(B.line=Number(N)),g&&(B.column=Number(g)),h&&E){let y=0;for(let w=E.length-1;w>0;w--)if(E.charAt(w)===")")y++;else if(E.charAt(w)==="("&&E.charAt(w-1)===" "&&(y--,y===-1&&E.charAt(w-1)===" ")){let oe=E.slice(0,w-1);E=E.slice(w+1),r+=` (${oe}`;break}}if(r){let y=r.match(hr);y&&(r=y[1],m=y[2])}return De(B,E,this._cwd),t&&Object.defineProperty(B,"constructor",{value:!0,configurable:!0}),o&&(B.evalOrigin=o,B.evalLine=i,B.evalColumn=l,B.evalFile=n&&n.replace(/\\/g,"/")),A&&(B.native=!0),r&&(B.function=r),m&&r!==m&&(B.method=m),B}};function De(u,D,e){D&&(D=D.replace(/\\/g,"/"),D.startsWith(`${e}/`)&&(D=D.slice(e.length+1)),u.file=D)}function dr(u){if(u.length===0)return[];let D=u.map(e=>Er(e));return new RegExp(`[/\\\\]node_modules[/\\\\](?:${D.join("|")})[/\\\\][^:]+:\\d+:\\d+`)}var Br=new RegExp("^(?:\\s*at )?(?:(new) )?(?:(.*?) \\()?(?:eval at ([^ ]+) \\((.+?):(\\d+):(\\d+)\\), )?(?:(.+?):(\\d+):(\\d+)|(native))(\\)?)$"),hr=/^(.*?) \[as (.*?)\]$/;te.exports=$u});F();F();function pu({onlyFirst:u=!1}={}){let r="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(r,u?void 0:"g")}var Fe=pu();function U(u){if(typeof u!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof u}\``);return!u.includes("\x1B")&&!u.includes("\x9B")?u:u.replace(Fe,"")}F();F();var Lu=(u=0)=>D=>`\x1B[${D+u}m`,ju=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,Mu=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},Or=Object.keys(a.modifier),ie=Object.keys(a.color),se=Object.keys(a.bgColor),Rr=[...ie,...se];function le(){let u=new Map;for(let[D,e]of Object.entries(a)){for(let[t,r]of Object.entries(e))a[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=a[t],u.set(r[0],r[1]);Object.defineProperty(a,D,{value:e,enumerable:!1})}return Object.defineProperty(a,"codes",{value:u,enumerable:!1}),a.color.close="\x1B[39m",a.bgColor.close="\x1B[49m",a.color.ansi=Lu(),a.color.ansi256=ju(),a.color.ansi16m=Mu(),a.bgColor.ansi=Lu(10),a.bgColor.ansi256=ju(10),a.bgColor.ansi16m=Mu(10),Object.defineProperties(a,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(o=>o+o).join(""));let r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>a.rgbToAnsi256(...a.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;let i=D%36;e=Math.floor(D/36)/5,t=Math.floor(i/6)/5,r=i%6/5}let o=Math.max(e,t,r)*2;if(o===0)return 30;let n=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return o===2&&(n+=60),n},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>a.ansi256ToAnsi(a.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>a.ansi256ToAnsi(a.hexToAnsi256(D)),enumerable:!1}}),a}var ae=le(),x=ae;F();import du from"node:process";import ce from"node:os";import ku from"node:tty";function b(u,D=globalThis.Deno?globalThis.Deno.args:du.argv){let e=u.startsWith("-")?"":u.length===1?"-":"--",t=D.indexOf(e+u),r=D.indexOf("--");return t!==-1&&(r===-1||t<r)}var{env:c}=du,Z;b("no-color")||b("no-colors")||b("color=false")||b("color=never")?Z=0:(b("color")||b("colors")||b("color=true")||b("color=always"))&&(Z=1);function Ce(){if("FORCE_COLOR"in c)return c.FORCE_COLOR==="true"?1:c.FORCE_COLOR==="false"?0:c.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(c.FORCE_COLOR,10),3)}function fe(u){return u===0?!1:{level:u,hasBasic:!0,has256:u>=2,has16m:u>=3}}function Ee(u,{streamIsTTY:D,sniffFlags:e=!0}={}){let t=Ce();t!==void 0&&(Z=t);let r=e?Z:t;if(r===0)return 0;if(e){if(b("color=16m")||b("color=full")||b("color=truecolor"))return 3;if(b("color=256"))return 2}if("TF_BUILD"in c&&"AGENT_NAME"in c)return 1;if(u&&!D&&r===void 0)return 0;let o=r||0;if(c.TERM==="dumb")return o;if(du.platform==="win32"){let n=ce.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in c)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(n=>n in c)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(n=>n in c)||c.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor"||c.TERM==="xterm-kitty"||c.TERM==="xterm-ghostty"||c.TERM==="wezterm")return 3;if("TERM_PROGRAM"in c){let n=Number.parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:o}function Gu(u,D={}){let e=Ee(u,{streamIsTTY:u&&u.isTTY,...D});return fe(e)}var pe={stdout:Gu({isTTY:ku.isatty(1)}),stderr:Gu({isTTY:ku.isatty(2)})},Wu=pe;F();function Pu(u,D,e){let t=u.indexOf(D);if(t===-1)return u;let r=D.length,o=0,n="";do n+=u.slice(o,t)+D+e,o=t+r,t=u.indexOf(D,o);while(t!==-1);return n+=u.slice(o),n}function Uu(u,D,e,t){let r=0,o="";do{let n=u[t-1]==="\r";o+=u.slice(r,n?t-1:t)+D+(n?`\r
|
|
4
|
+
`:`
|
|
5
|
+
`)+e,r=t+1,t=u.indexOf(`
|
|
6
|
+
`,r)}while(t!==-1);return o+=u.slice(r),o}var{stdout:Vu,stderr:Yu}=Wu,Bu=Symbol("GENERATOR"),I=Symbol("STYLER"),V=Symbol("IS_EMPTY"),qu=["ansi","ansi","ansi256","ansi16m"],_=Object.create(null),de=(u,D={})=>{if(D.level&&!(Number.isInteger(D.level)&&D.level>=0&&D.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let e=Vu?Vu.level:0;u.level=D.level===void 0?e:D.level};var Be=u=>{let D=(...e)=>e.join(" ");return de(D,u),Object.setPrototypeOf(D,Y.prototype),D};function Y(u){return Be(u)}Object.setPrototypeOf(Y.prototype,Function.prototype);for(let[u,D]of Object.entries(x))_[u]={get(){let e=uu(this,gu(D.open,D.close,this[I]),this[V]);return Object.defineProperty(this,u,{value:e}),e}};_.visible={get(){let u=uu(this,this[I],!0);return Object.defineProperty(this,"visible",{value:u}),u}};var hu=(u,D,e,...t)=>u==="rgb"?D==="ansi16m"?x[e].ansi16m(...t):D==="ansi256"?x[e].ansi256(x.rgbToAnsi256(...t)):x[e].ansi(x.rgbToAnsi(...t)):u==="hex"?hu("rgb",D,e,...x.hexToRgb(...t)):x[e][u](...t),he=["rgb","hex","ansi256"];for(let u of he){_[u]={get(){let{level:e}=this;return function(...t){let r=gu(hu(u,qu[e],"color",...t),x.color.close,this[I]);return uu(this,r,this[V])}}};let D="bg"+u[0].toUpperCase()+u.slice(1);_[D]={get(){let{level:e}=this;return function(...t){let r=gu(hu(u,qu[e],"bgColor",...t),x.bgColor.close,this[I]);return uu(this,r,this[V])}}}}var ge=Object.defineProperties(()=>{},{..._,level:{enumerable:!0,get(){return this[Bu].level},set(u){this[Bu].level=u}}}),gu=(u,D,e)=>{let t,r;return e===void 0?(t=u,r=D):(t=e.openAll+u,r=D+e.closeAll),{open:u,close:D,openAll:t,closeAll:r,parent:e}},uu=(u,D,e)=>{let t=(...r)=>me(t,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(t,ge),t[Bu]=u,t[I]=D,t[V]=e,t},me=(u,D)=>{if(u.level<=0||!D)return u[V]?"":D;let e=u[I];if(e===void 0)return D;let{openAll:t,closeAll:r}=e;if(D.includes("\x1B"))for(;e!==void 0;)D=Pu(D,e.close,e.open),e=e.parent;let o=D.indexOf(`
|
|
7
|
+
`);return o!==-1&&(D=Uu(D,r,t,o)),t+D+r};Object.defineProperties(Y.prototype,_);var be=Y(),Vr=Y({level:Yu?Yu.level:0});var Yr=be;F();F();F();F();var ou=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],nu=[12288,12288,65281,65376,65504,65510],Au=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],xu=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],K=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141];F();var Fu=(u,D)=>{let e=0,t=Math.floor(u.length/2)-1;for(;e<=t;){let r=Math.floor((e+t)/2),o=r*2;if(D<u[o])t=r-1;else if(D>u[o+1])e=r+1;else return!0}return!1};var Ae=ou[0],xe=ou.at(-1),Te=nu[0],ye=nu.at(-1),ro=Au[0],oo=Au.at(-1),no=xu[0],Fo=xu.at(-1),we=K[0],Se=K.at(-1),Zu=19968,[ve,Oe]=Re(K);function Re(u){let D=u[0],e=u[1];for(let t=0;t<u.length;t+=2){let r=u[t],o=u[t+1];if(Zu>=r&&Zu<=o)return[r,o];o-r>e-D&&(D=r,e=o)}return[D,e]}var uD=u=>u<Ae||u>xe?!1:Fu(ou,u),H=u=>u<Te||u>ye?!1:Fu(nu,u);var z=u=>u>=ve&&u<=Oe?!0:u<we||u>Se?!1:Fu(K,u);function Ne(u){if(!Number.isSafeInteger(u))throw new TypeError(`Expected a code point, got \`${typeof u}\`.`)}function DD(u,{ambiguousAsWide:D=!1}={}){return Ne(u),H(u)||z(u)||D&&uD(u)?2:1}var rD=Eu(tD(),1),Ie=new Intl.Segmenter,_e=/^\p{Default_Ignorable_Code_Point}$/u;function O(u,D={}){if(typeof u!="string"||u.length===0)return 0;let{ambiguousIsNarrow:e=!0,countAnsiEscapeCodes:t=!1}=D;if(t||(u=U(u)),u.length===0)return 0;let r=0,o={ambiguousAsWide:!e};for(let{segment:n}of Ie.segment(u)){let i=n.codePointAt(0);if(!(i<=31||i>=127&&i<=159)&&!(i>=8203&&i<=8207||i===65279)&&!(i>=768&&i<=879||i>=6832&&i<=6911||i>=7616&&i<=7679||i>=8400&&i<=8447||i>=65056&&i<=65071)&&!(i>=55296&&i<=57343)&&!(i>=65024&&i<=65039)&&!_e.test(n)){if((0,rD.default)().test(n)){r+=2;continue}r+=DD(i,o)}}return r}F();F();var oD=(u=0)=>D=>`\x1B[${D+u}m`,nD=(u=0)=>D=>`\x1B[${38+u};5;${D}m`,FD=(u=0)=>(D,e,t)=>`\x1B[${38+u};2;${D};${e};${t}m`,f={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},bo=Object.keys(f.modifier),$e=Object.keys(f.color),Le=Object.keys(f.bgColor),Ao=[...$e,...Le];function je(){let u=new Map;for(let[D,e]of Object.entries(f)){for(let[t,r]of Object.entries(e))f[t]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},e[t]=f[t],u.set(r[0],r[1]);Object.defineProperty(f,D,{value:e,enumerable:!1})}return Object.defineProperty(f,"codes",{value:u,enumerable:!1}),f.color.close="\x1B[39m",f.bgColor.close="\x1B[49m",f.color.ansi=oD(),f.color.ansi256=nD(),f.color.ansi16m=FD(),f.bgColor.ansi=oD(10),f.bgColor.ansi256=nD(10),f.bgColor.ansi16m=FD(10),Object.defineProperties(f,{rgbToAnsi256:{value(D,e,t){return D===e&&e===t?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(e/255*5)+Math.round(t/255*5)},enumerable:!1},hexToRgb:{value(D){let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!e)return[0,0,0];let[t]=e;t.length===3&&(t=[...t].map(o=>o+o).join(""));let r=Number.parseInt(t,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:D=>f.rgbToAnsi256(...f.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value(D){if(D<8)return 30+D;if(D<16)return 90+(D-8);let e,t,r;if(D>=232)e=((D-232)*10+8)/255,t=e,r=e;else{D-=16;let i=D%36;e=Math.floor(D/36)/5,t=Math.floor(i/6)/5,r=i%6/5}let o=Math.max(e,t,r)*2;if(o===0)return 30;let n=30+(Math.round(r)<<2|Math.round(t)<<1|Math.round(e));return o===2&&(n+=60),n},enumerable:!1},rgbToAnsi:{value:(D,e,t)=>f.ansi256ToAnsi(f.rgbToAnsi256(D,e,t)),enumerable:!1},hexToAnsi:{value:D=>f.ansi256ToAnsi(f.hexToAnsi256(D)),enumerable:!1}}),f}var Me=je(),T=Me;var su=new Set(["\x1B","\x9B"]),ke=39,yu="\x07",lD="[",Ge="]",aD="m",iu=`${Ge}8;;`,iD=u=>`${su.values().next().value}${lD}${u}${aD}`,sD=u=>`${su.values().next().value}${iu}${u}${yu}`,We=u=>u.split(" ").map(D=>O(D)),Tu=(u,D,e)=>{let t=[...D],r=!1,o=!1,n=O(U(u.at(-1)));for(let[i,l]of t.entries()){let E=O(l);if(n+E<=e?u[u.length-1]+=l:(u.push(l),n=0),su.has(l)&&(r=!0,o=t.slice(i+1,i+1+iu.length).join("")===iu),r){o?l===yu&&(r=!1,o=!1):l===aD&&(r=!1);continue}n+=E,n===e&&i<t.length-1&&(u.push(""),n=0)}!n&&u.at(-1).length>0&&u.length>1&&(u[u.length-2]+=u.pop())},Pe=u=>{let D=u.split(" "),e=D.length;for(;e>0&&!(O(D[e-1])>0);)e--;return e===D.length?u:D.slice(0,e).join(" ")+D.slice(e).join("")},Ue=(u,D,e={})=>{if(e.trim!==!1&&u.trim()==="")return"";let t="",r,o,n=We(u),i=[""];for(let[g,A]of u.split(" ").entries()){e.trim!==!1&&(i[i.length-1]=i.at(-1).trimStart());let h=O(i.at(-1));if(g!==0&&(h>=D&&(e.wordWrap===!1||e.trim===!1)&&(i.push(""),h=0),(h>0||e.trim===!1)&&(i[i.length-1]+=" ",h++)),e.hard&&n[g]>D){let m=D-h,B=1+Math.floor((n[g]-m-1)/D);Math.floor((n[g]-1)/D)<B&&i.push(""),Tu(i,A,D);continue}if(h+n[g]>D&&h>0&&n[g]>0){if(e.wordWrap===!1&&h<D){Tu(i,A,D);continue}i.push("")}if(h+n[g]>D&&e.wordWrap===!1){Tu(i,A,D);continue}i[i.length-1]+=A}e.trim!==!1&&(i=i.map(g=>Pe(g)));let l=i.join(`
|
|
8
|
+
`),E=[...l],N=0;for(let[g,A]of E.entries()){if(t+=A,su.has(A)){let{groups:m}=new RegExp(`(?:\\${lD}(?<code>\\d+)m|\\${iu}(?<uri>.*)${yu})`).exec(l.slice(N))||{groups:{}};if(m.code!==void 0){let B=Number.parseFloat(m.code);r=B===ke?void 0:B}else m.uri!==void 0&&(o=m.uri.length===0?void 0:m.uri)}let h=T.codes.get(Number(r));E[g+1]===`
|
|
9
|
+
`?(o&&(t+=sD("")),r&&h&&(t+=iD(h))):A===`
|
|
10
|
+
`&&(r&&h&&(t+=iD(r)),o&&(t+=sD(o))),N+=A.length}return t};function Ve(u,D,e){return String(u).normalize().replaceAll(`\r
|
|
11
|
+
`,`
|
|
12
|
+
`).split(`
|
|
13
|
+
`).map(t=>Ue(t,D,e)).join(`
|
|
14
|
+
`)}var mD={};ne(mD,{ConEmu:()=>gD,beep:()=>bt,beginSynchronizedOutput:()=>dD,clearScreen:()=>Et,clearTerminal:()=>Bt,clearViewport:()=>pt,cursorBackward:()=>ut,cursorDown:()=>Qe,cursorForward:()=>Ze,cursorGetPosition:()=>tt,cursorHide:()=>nt,cursorLeft:()=>ED,cursorMove:()=>Xe,cursorNextLine:()=>rt,cursorPrevLine:()=>ot,cursorRestorePosition:()=>et,cursorSavePosition:()=>Dt,cursorShow:()=>Ft,cursorTo:()=>Je,cursorUp:()=>fD,endSynchronizedOutput:()=>BD,enterAlternativeScreen:()=>ht,eraseDown:()=>at,eraseEndLine:()=>st,eraseLine:()=>pD,eraseLines:()=>it,eraseScreen:()=>lu,eraseStartLine:()=>lt,eraseUp:()=>ct,exitAlternativeScreen:()=>gt,iTerm:()=>hD,image:()=>xt,link:()=>At,scrollDown:()=>ft,scrollUp:()=>Ct,setCwd:()=>Tt,synchronizedOutput:()=>mt});F();import k from"node:process";import Ke from"node:os";F();var M=globalThis.window?.document!==void 0,Io=globalThis.process?.versions?.node!==void 0,_o=globalThis.process?.versions?.bun!==void 0,$o=globalThis.Deno?.version?.deno!==void 0,Lo=globalThis.process?.versions?.electron!==void 0,jo=globalThis.navigator?.userAgent?.includes("jsdom")===!0,Mo=typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope,ko=typeof DedicatedWorkerGlobalScope<"u"&&globalThis instanceof DedicatedWorkerGlobalScope,Go=typeof SharedWorkerGlobalScope<"u"&&globalThis instanceof SharedWorkerGlobalScope,Wo=typeof ServiceWorkerGlobalScope<"u"&&globalThis instanceof ServiceWorkerGlobalScope,J=globalThis.navigator?.userAgentData?.platform,Po=J==="macOS"||globalThis.navigator?.platform==="MacIntel"||globalThis.navigator?.userAgent?.includes(" Mac ")===!0||globalThis.process?.platform==="darwin",Uo=J==="Windows"||globalThis.navigator?.platform==="Win32"||globalThis.process?.platform==="win32",Vo=J==="Linux"||globalThis.navigator?.platform?.startsWith("Linux")===!0||globalThis.navigator?.userAgent?.includes(" Linux ")===!0||globalThis.process?.platform==="linux",Yo=J==="iOS"||globalThis.navigator?.platform==="MacIntel"&&globalThis.navigator?.maxTouchPoints>1||/iPad|iPhone|iPod/.test(globalThis.navigator?.platform),qo=J==="Android"||globalThis.navigator?.platform==="Android"||globalThis.navigator?.userAgent?.includes(" Android ")===!0||globalThis.process?.platform==="android";var s="\x1B[",G="\x1B]",R="\x07",X=";",CD=!M&&k.env.TERM_PROGRAM==="Apple_Terminal",He=!M&&k.platform==="win32",ze=!M&&(k.env.TERM?.startsWith("screen")||k.env.TERM?.startsWith("tmux")||k.env.TMUX!==void 0),wu=M?()=>{throw new Error("`process.cwd()` only works in Node.js, not the browser.")}:k.cwd,W=u=>ze?"\x1BPtmux;"+u.replaceAll("\x1B","\x1B\x1B")+"\x1B\\":u,Je=(u,D)=>{if(typeof u!="number")throw new TypeError("The `x` argument is required");return typeof D!="number"?s+(u+1)+"G":s+(D+1)+X+(u+1)+"H"},Xe=(u,D)=>{if(typeof u!="number")throw new TypeError("The `x` argument is required");let e="";return u<0?e+=s+-u+"D":u>0&&(e+=s+u+"C"),D<0?e+=s+-D+"A":D>0&&(e+=s+D+"B"),e},fD=(u=1)=>s+u+"A",Qe=(u=1)=>s+u+"B",Ze=(u=1)=>s+u+"C",ut=(u=1)=>s+u+"D",ED=s+"G",Dt=CD?"\x1B7":s+"s",et=CD?"\x1B8":s+"u",tt=s+"6n",rt=s+"E",ot=s+"F",nt=s+"?25l",Ft=s+"?25h",it=u=>{let D="";for(let e=0;e<u;e++)D+=pD+(e<u-1?fD():"");return u&&(D+=ED),D},st=s+"K",lt=s+"1K",pD=s+"2K",at=s+"J",ct=s+"1J",lu=s+"2J",Ct=s+"S",ft=s+"T",Et="\x1Bc",pt=`${lu}${s}H`,dt=()=>{if(M||!He)return!1;let u=Ke.release().split("."),D=Number(u[0]),e=Number(u[2]??0);return D<10||D===10&&e<10586},Bt=dt()?`${lu}${s}0f`:`${lu}${s}3J${s}H`,ht=s+"?1049h",gt=s+"?1049l",dD=s+"?2026h",BD=s+"?2026l",mt=u=>dD+u+BD,bt=R,At=(u,D)=>{let e=W(`${G}8${X}${X}${D}${R}`),t=W(`${G}8${X}${X}${R}`);return e+u+t},xt=(u,D={})=>{let e=`${G}1337;File=inline=1`;D.width&&(e+=`;width=${D.width}`),D.height&&(e+=`;height=${D.height}`),D.preserveAspectRatio===!1&&(e+=";preserveAspectRatio=0");let t=Buffer.from(u);return W(e+`;size=${t.byteLength}:`+t.toString("base64")+R)},hD={setCwd:(u=wu())=>W(`${G}50;CurrentDir=${u}${R}`),annotation(u,D={}){let e=`${G}1337;`,t=D.x!==void 0,r=D.y!==void 0;if((t||r)&&!(t&&r&&D.length!==void 0))throw new Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");return u=u.replaceAll("|",""),e+=D.isHidden?"AddHiddenAnnotation=":"AddAnnotation=",D.length>0?e+=(t?[u,D.length,D.x,D.y]:[D.length,u]).join("|"):e+=u,W(e+R)}},gD={setCwd:(u=wu())=>W(`${G}9;9;${u}${R}`)},Tt=(u=wu())=>hD.setCwd(u)+gD.setCwd(u);F();F();var yt=u=>{let D=new Set;do for(let e of Reflect.ownKeys(u))D.add([u,e]);while((u=Reflect.getPrototypeOf(u))&&u!==Object.prototype);return D};function wt(u,{include:D,exclude:e}={}){let t=r=>{let o=n=>typeof n=="string"?r===n:n.test(r);return D?D.some(o):e?!e.some(o):!0};for(let[r,o]of yt(u.constructor.prototype)){if(o==="constructor"||!t(o))continue;let n=Reflect.getOwnPropertyDescriptor(r,o);n&&typeof n.value=="function"&&(u[o]=u[o].bind(u))}return u}F();import{PassThrough as bD}from"node:stream";var AD=["assert","count","countReset","debug","dir","dirxml","error","group","groupCollapsed","groupEnd","info","log","table","time","timeEnd","timeLog","trace","warn"],Su={},St=u=>{let D=new bD,e=new bD;D.write=r=>{u("stdout",r)},e.write=r=>{u("stderr",r)};let t=new console.Console(D,e);for(let r of AD)Su[r]=console[r],console[r]=t[r];return()=>{for(let r of AD)console[r]=Su[r];Su={}}},on=St;F();import zD from"node:process";F();var qD=Eu(YD(),1),KD=Eu(Qu(),1);import Zt from"node:process";var ur=(0,qD.default)(()=>{(0,KD.default)(()=>{Zt.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),HD=ur;var Cu=!1,P={};P.show=(u=zD.stderr)=>{u.isTTY&&(Cu=!1,u.write("\x1B[?25h"))};P.hide=(u=zD.stderr)=>{u.isTTY&&(HD(),Cu=!0,u.write("\x1B[?25l"))};P.toggle=(u,D)=>{u!==void 0&&(Cu=u),Cu?P.show(D):P.hide(D)};var _n=P;F();function Dr(u,D=1,e={}){let{indent:t=" ",includeEmptyLines:r=!1}=e;if(typeof u!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof u}\``);if(typeof D!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof D}\``);if(D<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${D}\``);if(typeof t!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof t}\``);if(D===0)return u;let o=r?/^/gm:/^(?!\s*$)/gm;return u.replace(o,t.repeat(D))}F();function Ru(u){return Number.isInteger(u)?H(u)||z(u):!1}F();var er=new Set([27,155]),tr="0".codePointAt(0),rr="9".codePointAt(0),or=19,Iu=new Set,Nu=new Map;for(let[u,D]of T.codes)Iu.add(T.color.ansi(D)),Nu.set(T.color.ansi(u),T.color.ansi(D));function nr(u){if(Iu.has(u))return u;if(Nu.has(u))return Nu.get(u);u=u.slice(2),u.includes(";")&&(u=u[0]+"0");let D=T.codes.get(Number.parseInt(u,10));return D?T.color.ansi(D):T.reset.open}function Fr(u){for(let D=0;D<u.length;D++){let e=u.codePointAt(D);if(e>=tr&&e<=rr)return D}return-1}function ir(u,D){u=u.slice(D,D+or);let e=Fr(u);if(e!==-1){let t=u.indexOf("m",e);return t===-1&&(t=u.length),u.slice(0,t+1)}}function sr(u,D=Number.POSITIVE_INFINITY){let e=[],t=0,r=0;for(;t<u.length;){let o=u.codePointAt(t);if(er.has(o)){let l=ir(u,t);if(l){e.push({type:"ansi",code:l,endCode:nr(l)}),t+=l.length;continue}}let n=Ru(o),i=String.fromCodePoint(o);if(e.push({type:"character",value:i,isFullWidth:n}),t+=i.length,r+=n?2:i.length,r>=D)break}return e}function JD(u){let D=[];for(let e of u)e.code===T.reset.open?D=[]:Iu.has(e.code)?D=D.filter(t=>t.endCode!==e.code):(D=D.filter(t=>t.endCode!==e.endCode),D.push(e));return D}function lr(u){return JD(u).map(({endCode:t})=>t).reverse().join("")}function ar(u,D,e){let t=sr(u,e),r=[],o=0,n="",i=!1;for(let l of t){if(e!==void 0&&o>=e)break;l.type==="ansi"?(r.push(l),i&&(n+=l.code)):(!i&&o>=D&&(i=!0,r=JD(r),n=r.map(({code:E})=>E).join("")),i&&(n+=l.value),o+=l.isFullWidth?2:l.value.length)}return n+=lr(r),n}F();F();var mr=(u,D=2)=>u.replace(/^\t+/gm,e=>" ".repeat(e.length*D)),re=mr;var br=(u,D)=>{let e=[],t=u-D,r=u+D;for(let o=t;o<=r;o++)e.push(o);return e},Ar=(u,D,e={})=>{var t;if(typeof u!="string")throw new TypeError("Source code is missing.");if(!D||D<1)throw new TypeError("Line number must start from `1`.");let r=re(u).split(/\r?\n/);if(!(D>r.length))return br(D,(t=e.around)!==null&&t!==void 0?t:3).filter(o=>r[o-1]!==void 0).map(o=>({line:o,value:r[o-1]}))},eF=Ar;export{TD as a,wD as b,vu as c,MD as d,qe as e,GD as f,Xt as g,mD as h,wt as i,Qu as j,on as k,U as l,DD as m,O as n,T as o,Ve as p,Ru as q,ar as r,Dr as s,Cr as t,Yr as u,_n as v,gr as w,eF as x};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import{Ta as j,ma as w,ua as R}from"./chunk-
|
|
2
|
-
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return hasOwnProperty.call(e,t)?!0:(t==="__proto__"&&defineProperty(e,"__proto__",descriptor),!1)}var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_TABLE}var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return e===null||typeof e!="object"?!1:e[_type]===TABLE}var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_LIST}var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return e===null||typeof e!="object"?!1:e[_type]===LIST}var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}var _inspect=_custom||"inspect",BoxedBigInt=class{constructor(t){try{this.value=global.BigInt.asIntN(64,t)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),global.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return e===null||typeof e!="object"?!1:e[_type]===INTEGER}var FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return e===null||typeof e!="object"?!1:e[_type]===FLOAT}function tomlType(e){let t=typeof e;if(t==="object"){if(e===null)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){class t extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(r){let i=this.ctx,h=r.key.pop();for(let n of r.key){if(hasKey(i,n)&&(!isTable(i[n])||i[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[n]=i[n]||Table()}if(hasKey(i,h))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(r.value)||isFloat(r.value)?i[h]=r.value.valueOf():i[h]=r.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(r){return this.state.resultTable?this.state.resultTable.push(r):this.state.resultTable=[r],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD)return this.next(this.parseAssignKeywordPostDot);if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(r){return this.returnNow({key:this.state.resultTable,value:r})}parseComment(){do if(this.char===e.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(r){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,r)&&(!isTable(this.ctx[r])||this.ctx[r][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[r]=this.ctx[r]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,r))this.ctx=this.ctx[r]=Table();else if(isTable(this.ctx[r]))this.ctx=this.ctx[r];else if(isList(this.ctx[r]))this.ctx=this.ctx[r][this.ctx[r].length-1];else throw this.error(new TomlError("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(r){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,r)||(this.ctx[r]=List()),isInlineList(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline array"));if(isList(this.ctx[r])){let i=Table();this.ctx[r].push(i),this.ctx=i}else throw this.error(new TomlError("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,r))this.ctx=this.ctx[r]=Table();else{if(isInlineList(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[r]))this.ctx=this.ctx[r][this.ctx[r].length-1];else if(isTable(this.ctx[r]))this.ctx=this.ctx[r];else throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(r){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(r){return this.returnNow(r)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(isAlphaNumHyphen(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(r){return this.state.buf+=r,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let r="\\u00";return this.char<16&&(r+="0"),r+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${r} instead`))}recordMultiEscapeReplacement(r){return this.state.buf+=r,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(r){try{let i=parseInt(r,16);if(i>=SURROGATE_FIRST&&i<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(i))}catch(i){throw this.error(TomlError.wrap(i))}}parseSmallUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(isDigit(this.char))this.consume();else return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}else{if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseIntegerOct(){if(isOctit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseIntegerBin(){if(isBit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===CHAR_PERIOD)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(createTime(this.state.result))}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===CHAR_t)return this.consume(),this.next(this.parseTrue_r);if(this.char===CHAR_f)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(r){if(this.state.resultArr){let i=this.state.resultArr[_contentType],h=tomlType(r);if(i!==h)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${i} and ${h}`))}else this.state.resultArr=InlineList(tomlType(r));return isFloat(r)||isInteger(r)?this.state.resultArr.push(r.valueOf()):this.state.resultArr.push(r),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(r){let i=this.state.resultTable,h=r.key.pop();for(let n of r.key){if(hasKey(i,n)&&(!isTable(i[n])||i[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[n]=i[n]||Table()}if(hasKey(i,h))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(r.value)||isFloat(r.value)?i[h]=r.value.valueOf():i[h]=r.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return t}});var L=f((St,ce)=>{"use strict";o();ce.exports=$e;function $e(e,t){if(e.pos==null||e.line==null)return e;let s=e.message;if(s+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:
|
|
1
|
+
import{d as k}from"./chunk-TPCG6DCA.js";import{Ta as j,ma as w,ua as R}from"./chunk-7FQFEB33.js";import{a as H,c as f,e as G,g as o}from"./chunk-VKWPEFWQ.js";var ee=f((Tt,X)=>{"use strict";o();var m=class e extends Error{constructor(t,s,r){super("[ParserError] "+t,s,r),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,e)}},E=class{constructor(t){this.parser=t,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}},A=class{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new E(this.parseStart)}parse(t){if(t.length===0||t.length==null)return;this._buf=String(t),this.ii=-1,this.char=-1;let s;for(;s===!1||this.nextChar();)s=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii<this._buf.length}runOne(){return this.state.parser.call(this,this.state.returned)}finish(){this.char=1114112;let t;do t=this.state.parser,this.runOne();while(this.state.parser!==t);return this.ctx=null,this.state=null,this._buf=null,this.obj}next(t){if(typeof t!="function")throw new m("Tried to set state to non-existent state: "+JSON.stringify(t));this.state.parser=t}goto(t){return this.next(t),this.runOne()}call(t,s){s&&this.next(s),this.stack.push(this.state),this.state=new E(t)}callNow(t,s){return this.call(t,s),this.runOne()}return(t){if(this.stack.length===0)throw this.error(new m("Stack underflow"));t===void 0&&(t=this.state.buf),this.state=this.stack.pop(),this.state.returned=t}returnNow(t){return this.return(t),this.runOne()}consume(){if(this.char===1114112)throw this.error(new m("Unexpected end-of-buffer"));this.state.buf+=this._buf[this.ii]}error(t){return t.line=this.line,t.col=this.col,t.pos=this.pos,t}parseStart(){throw new m("Must declare a parseStart method")}};A.END=1114112;A.Error=m;X.exports=A});var re=f((Rt,te)=>{"use strict";o();te.exports=e=>{let t=new Date(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var y=f((xt,se)=>{"use strict";o();se.exports=(e,t)=>{for(t=String(t);t.length<e;)t="0"+t;return t}});var ne=f((Ht,ie)=>{"use strict";o();var C=y(),K=class extends Date{constructor(t){super(t+"Z"),this.isFloating=!0}toISOString(){let t=`${this.getUTCFullYear()}-${C(2,this.getUTCMonth()+1)}-${C(2,this.getUTCDate())}`,s=`${C(2,this.getUTCHours())}:${C(2,this.getUTCMinutes())}:${C(2,this.getUTCSeconds())}.${C(3,this.getUTCMilliseconds())}`;return`${t}T${s}`}};ie.exports=e=>{let t=new K(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var oe=f((yt,ae)=>{"use strict";o();var he=y(),$e=global.Date,v=class extends $e{constructor(t){super(t),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${he(2,this.getUTCMonth()+1)}-${he(2,this.getUTCDate())}`}};ae.exports=e=>{let t=new v(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var ce=f((It,le)=>{"use strict";o();var N=y(),W=class extends Date{constructor(t){super(`0000-01-01T${t}Z`),this.isTime=!0}toISOString(){return`${N(2,this.getUTCHours())}:${N(2,this.getUTCMinutes())}:${N(2,this.getUTCSeconds())}.${N(3,this.getUTCMilliseconds())}`}};le.exports=e=>{let t=new W(e);if(isNaN(t))throw new TypeError("Invalid Datetime");return t}});var I=f((exports,module)=>{"use strict";o();module.exports=makeParserClass(ee());module.exports.makeParserClass=makeParserClass;var TomlError=class e extends Error{constructor(t){super(t),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,e),this.fromTOML=!0,this.wrapped=null}};TomlError.wrap=e=>{let t=new TomlError(e.message);return t.code=e.code,t.wrapped=e,t};module.exports.TomlError=TomlError;var createDateTime=re(),createDateTimeFloat=ne(),createDate=oe(),createTime=ce(),CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:`
|
|
2
|
+
`,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit(e){return e>=CHAR_0&&e<=CHAR_9}function isHexit(e){return e>=CHAR_A&&e<=CHAR_F||e>=CHAR_a&&e<=CHAR_f||e>=CHAR_0&&e<=CHAR_9}function isBit(e){return e===CHAR_1||e===CHAR_0}function isOctit(e){return e>=CHAR_0&&e<=CHAR_7}function isAlphaNumQuoteHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_APOS||e===CHAR_QUOT||e===CHAR_LOWBAR||e===CHAR_HYPHEN}function isAlphaNumHyphen(e){return e>=CHAR_A&&e<=CHAR_Z||e>=CHAR_a&&e<=CHAR_z||e>=CHAR_0&&e<=CHAR_9||e===CHAR_LOWBAR||e===CHAR_HYPHEN}var _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey(e,t){return hasOwnProperty.call(e,t)?!0:(t==="__proto__"&&defineProperty(e,"__proto__",descriptor),!1)}var INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_TABLE}var TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable(e){return e===null||typeof e!="object"?!1:e[_type]===TABLE}var _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList(e){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:e}})}function isInlineList(e){return e===null||typeof e!="object"?!1:e[_type]===INLINE_LIST}var LIST=Symbol("list");function List(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList(e){return e===null||typeof e!="object"?!1:e[_type]===LIST}var _custom;try{let utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch(e){}var _inspect=_custom||"inspect",BoxedBigInt=class{constructor(t){try{this.value=global.BigInt.asIntN(64,t)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}},INTEGER=Symbol("integer");function Integer(e){let t=Number(e);return Object.is(t,-0)&&(t=0),global.BigInt&&!Number.isSafeInteger(t)?new BoxedBigInt(e):Object.defineProperties(new Number(t),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${e}]`}})}function isInteger(e){return e===null||typeof e!="object"?!1:e[_type]===INTEGER}var FLOAT=Symbol("float");function Float(e){return Object.defineProperties(new Number(e),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${e}]`}})}function isFloat(e){return e===null||typeof e!="object"?!1:e[_type]===FLOAT}function tomlType(e){let t=typeof e;if(t==="object"){if(e===null)return"null";if(e instanceof Date)return"datetime";if(_type in e)switch(e[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return t}function makeParserClass(e){class t extends e{constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===e.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===e.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===e.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(r){let i=this.ctx,h=r.key.pop();for(let n of r.key){if(hasKey(i,n)&&(!isTable(i[n])||i[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[n]=i[n]||Table()}if(hasKey(i,h))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(r.value)||isFloat(r.value)?i[h]=r.value.valueOf():i[h]=r.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(r){return this.state.resultTable?this.state.resultTable.push(r):this.state.resultTable=[r],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD)return this.next(this.parseAssignKeywordPostDot);if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(r){return this.returnNow({key:this.state.resultTable,value:r})}parseComment(){do if(this.char===e.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(r){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,r)&&(!isTable(this.ctx[r])||this.ctx[r][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[r]=this.ctx[r]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,r))this.ctx=this.ctx[r]=Table();else if(isTable(this.ctx[r]))this.ctx=this.ctx[r];else if(isList(this.ctx[r]))this.ctx=this.ctx[r][this.ctx[r].length-1];else throw this.error(new TomlError("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(r){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,r)||(this.ctx[r]=List()),isInlineList(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline array"));if(isList(this.ctx[r])){let i=Table();this.ctx[r].push(i),this.ctx=i}else throw this.error(new TomlError("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,r))this.ctx=this.ctx[r]=Table();else{if(isInlineList(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[r]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[r]))this.ctx=this.ctx[r][this.ctx[r].length-1];else if(isTable(this.ctx[r]))this.ctx=this.ctx[r];else throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(r){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===e.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(r){return this.returnNow(r)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===e.END)throw this.error(new TomlError("Key ended without value"));if(isAlphaNumHyphen(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(r){return this.state.buf+=r,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===e.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let r="\\u00";return this.char<16&&(r+="0"),r+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${r} instead`))}recordMultiEscapeReplacement(r){return this.state.buf+=r,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(r){try{let i=parseInt(r,16);if(i>=SURROGATE_FIRST&&i<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(i))}catch(i){throw this.error(TomlError.wrap(i))}}parseSmallUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(isDigit(this.char))this.consume();else return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}else{if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseIntegerOct(){if(isOctit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseIntegerBin(){if(isBit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{let r=Integer(this.state.buf);if(r.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(r)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===CHAR_PERIOD)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(createTime(this.state.result))}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===CHAR_t)return this.consume(),this.next(this.parseTrue_r);if(this.char===CHAR_f)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===e.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(r){if(this.state.resultArr){let i=this.state.resultArr[_contentType],h=tomlType(r);if(i!==h)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${i} and ${h}`))}else this.state.resultArr=InlineList(tomlType(r));return isFloat(r)||isInteger(r)?this.state.resultArr.push(r.valueOf()):this.state.resultArr.push(r),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(r){let i=this.state.resultTable,h=r.key.pop();for(let n of r.key){if(hasKey(i,n)&&(!isTable(i[n])||i[n][_declared]))throw this.error(new TomlError("Can't redefine existing key"));i=i[n]=i[n]||Table()}if(hasKey(i,h))throw this.error(new TomlError("Can't redefine existing key"));return isInteger(r.value)||isFloat(r.value)?i[h]=r.value.valueOf():i[h]=r.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===e.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return t}});var L=f((Ot,ue)=>{"use strict";o();ue.exports=Ke;function Ke(e,t){if(e.pos==null||e.line==null)return e;let s=e.message;if(s+=` at row ${e.line+1}, col ${e.col+1}, pos ${e.pos}:
|
|
3
3
|
`,t&&t.split){let r=t.split(/\n/),i=String(Math.min(r.length,e.line+3)).length,h=" ";for(;h.length<i;)h+=" ";for(let n=Math.max(0,e.line-1);n<Math.min(r.length,e.line+2);++n){let a=String(n+1);if(a.length<i&&(a=" "+a),e.line===n){s+=a+"> "+r[n]+`
|
|
4
4
|
`,s+=h+" ";for(let l=0;l<e.col;++l)s+=" ";s+=`^
|
|
5
5
|
`}else s+=a+": "+r[n]+`
|
|
6
6
|
`}}return e.message=s+`
|
|
7
|
-
`,e}});var
|
|
8
|
-
`)}function
|
|
7
|
+
`,e}});var pe=f((Mt,fe)=>{"use strict";o();fe.exports=qe;var ve=I(),We=L();function qe(e){global.Buffer&&global.Buffer.isBuffer(e)&&(e=e.toString("utf8"));let t=new ve;try{return t.parse(e),t.finish()}catch(s){throw We(s,e)}}});var me=f((Pt,de)=>{"use strict";o();de.exports=Je;var Qe=I(),_e=L();function Je(e,t){t||(t={});let s=0,r=t.blocksize||40960,i=new Qe;return new Promise((n,a)=>{setImmediate(h,s,r,n,a)});function h(n,a,l,d){if(n>=e.length)try{return l(i.finish())}catch(_){return d(_e(_,e))}try{i.parse(e.slice(n,n+a)),setImmediate(h,n+a,a,l,d)}catch(_){d(_e(_,e))}}}});var Te=f((Ft,Ce)=>{"use strict";o();Ce.exports=Ze;var Ve=H("stream"),ge=I();function Ze(e){return e?Ye(e):ze(e)}function Ye(e){let t=new ge;return e.setEncoding("utf8"),new Promise((s,r)=>{let i,h=!1,n=!1;function a(){if(h=!0,!i)try{s(t.finish())}catch(_){r(_)}}function l(_){n=!0,r(_)}e.once("end",a),e.once("error",l),d();function d(){i=!0;let _;for(;(_=e.read())!==null;)try{t.parse(_)}catch(Fe){return l(Fe)}if(i=!1,h)return a();n||e.once("readable",d)}})}function ze(){let e=new ge;return new Ve.Transform({objectMode:!0,transform(t,s,r){try{e.parse(t.toString(s))}catch(i){this.emit("error",i)}r()},flush(t){try{this.push(e.finish())}catch(s){this.emit("error",s)}t()}})}});var we=f((Kt,x)=>{"use strict";o();x.exports=pe();x.exports.async=me();x.exports.stream=Te();x.exports.prettyError=L()});var Ne=f((Wt,J)=>{"use strict";o();J.exports=Ge;J.exports.value=Q;function Ge(e){if(e===null)throw g("null");if(e===void 0)throw g("undefined");if(typeof e!="object")throw g(typeof e);if(typeof e.toJSON=="function"&&(e=e.toJSON()),e==null)return null;let t=p(e);if(t!=="table")throw g(t);return q("","",e)}function g(e){return new Error("Can only stringify objects, not "+e)}function je(){return new Error("Array values can't have mixed types")}function Re(e){return Object.keys(e).filter(t=>Ae(e[t]))}function ke(e){return Object.keys(e).filter(t=>!Ae(e[t]))}function S(e){let t=Array.isArray(e)?[]:Object.prototype.hasOwnProperty.call(e,"__proto__")?{["__proto__"]:void 0}:{};for(let s of Object.keys(e))e[s]&&typeof e[s].toJSON=="function"&&!("toISOString"in e[s])?t[s]=e[s].toJSON():t[s]=e[s];return t}function q(e,t,s){s=S(s);var r,i;r=Re(s),i=ke(s);var h=[],n=t||"";r.forEach(l=>{var d=p(s[l]);d!=="undefined"&&d!=="null"&&h.push(n+O(l)+" = "+He(s[l],!0))}),h.length>0&&h.push("");var a=e&&r.length>0?t+" ":"";return i.forEach(l=>{h.push(lt(e,a,l,s[l]))}),h.join(`
|
|
8
|
+
`)}function Ae(e){switch(p(e)){case"undefined":case"null":case"integer":case"nan":case"float":case"boolean":case"string":case"datetime":return!0;case"array":return e.length===0||p(e[0])!=="table";case"table":return Object.keys(e).length===0;default:return!1}}function p(e){return e===void 0?"undefined":e===null?"null":typeof e=="bigint"||Number.isInteger(e)&&!Object.is(e,-0)?"integer":typeof e=="number"?"float":typeof e=="boolean"?"boolean":typeof e=="string"?"string":"toISOString"in e?isNaN(e)?"undefined":"datetime":Array.isArray(e)?"array":"table"}function O(e){var t=String(e);return/^[-A-Za-z0-9_]+$/.test(t)?t:xe(t)}function xe(e){return'"'+be(e).replace(/"/g,'\\"')+'"'}function Xe(e){return"'"+e+"'"}function et(e,t){for(;t.length<e;)t="0"+t;return t}function be(e){return e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/([\u0000-\u001f\u007f])/,t=>"\\u"+et(4,t.codePointAt(0).toString(16)))}function tt(e){let t=e.split(/\n/).map(s=>be(s).replace(/"(?="")/g,'\\"')).join(`
|
|
9
9
|
`);return t.slice(-1)==='"'&&(t+=`\\
|
|
10
10
|
`),`"""
|
|
11
|
-
`+t+'"""'}function
|
|
11
|
+
`+t+'"""'}function He(e,t){let s=p(e);return s==="string"&&(t&&/\n/.test(e)?s="string-multiline":!/[\b\t\n\f\r']/.test(e)&&/"/.test(e)&&(s="string-literal")),Q(e,s)}function Q(e,t){switch(t||(t=p(e)),t){case"string-multiline":return tt(e);case"string":return xe(e);case"string-literal":return Xe(e);case"integer":return Ee(e);case"float":return rt(e);case"boolean":return st(e);case"datetime":return it(e);case"array":return at(e.filter(s=>p(s)!=="null"&&p(s)!=="undefined"&&p(s)!=="nan"));case"table":return ot(e);default:throw g(t)}}function Ee(e){return String(e).replace(/\B(?=(\d{3})+(?!\d))/g,"_")}function rt(e){if(e===1/0)return"inf";if(e===-1/0)return"-inf";if(Object.is(e,NaN))return"nan";if(Object.is(e,-0))return"-0.0";var t=String(e).split("."),s=t[0],r=t[1]||0;return Ee(s)+"."+r}function st(e){return String(e)}function it(e){return e.toISOString()}function nt(e){return e==="float"||e==="integer"}function ht(e){var t=p(e[0]);return e.every(s=>p(s)===t)?t:e.every(s=>nt(p(s)))?"float":"mixed"}function ye(e){let t=ht(e);if(t==="mixed")throw je();return t}function at(e){e=S(e);let t=ye(e);var s="[",r=e.map(i=>Q(i,t));return r.join(", ").length>60||/\n/.test(r)?s+=`
|
|
12
12
|
`+r.join(`,
|
|
13
13
|
`)+`
|
|
14
|
-
`:s+=" "+r.join(", ")+(r.length>0?" ":""),s+"]"}function
|
|
14
|
+
`:s+=" "+r.join(", ")+(r.length>0?" ":""),s+"]"}function ot(e){e=S(e);var t=[];return Object.keys(e).forEach(s=>{t.push(O(s)+" = "+He(e[s],!1))}),"{ "+t.join(", ")+(t.length>0?" ":"")+"}"}function lt(e,t,s,r){var i=p(r);if(i==="array")return ct(e,t,s,r);if(i==="table")return ut(e,t,s,r);throw g(i)}function ct(e,t,s,r){r=S(r),ye(r);var i=p(r[0]);if(i!=="table")throw g(i);var h=e+O(s),n="";return r.forEach(a=>{n.length>0&&(n+=`
|
|
15
15
|
`),n+=t+"[["+h+`]]
|
|
16
|
-
`,n+=q(h+".",t,a)}),n}function
|
|
17
|
-
`),h+q(i+".",t,r)}});var
|
|
18
|
-
`);return D.parse(t)}function
|
|
19
|
-
`)[0]??"Invalid TOML";throw new $(this.path,`${r} at row ${s.line}, col ${s.col}`)}throw s}}};function
|
|
16
|
+
`,n+=q(h+".",t,a)}),n}function ut(e,t,s,r){var i=e+O(s),h="";return Re(r).length>0&&(h+=t+"["+i+`]
|
|
17
|
+
`),h+q(i+".",t,r)}});var Ie=f(V=>{"use strict";o();V.parse=we();V.stringify=Ne()});var Ue=f((Yt,u)=>{o();var Oe={};Oe.__wbindgen_placeholder__=u.exports;var c,{TextEncoder:ft,TextDecoder:pt}=H("util");function Z(e){return e==null}var T=null;function B(){return(T===null||T.buffer.detached===!0||T.buffer.detached===void 0&&T.buffer!==c.memory.buffer)&&(T=new DataView(c.memory.buffer)),T}var b=0,M=null;function U(){return(M===null||M.byteLength===0)&&(M=new Uint8Array(c.memory.buffer)),M}var P=new ft("utf-8"),_t=typeof P.encodeInto=="function"?function(e,t){return P.encodeInto(e,t)}:function(e,t){let s=P.encode(e);return t.set(s),{read:e.length,written:s.length}};function Y(e,t,s){if(s===void 0){let a=P.encode(e),l=t(a.length,1)>>>0;return U().subarray(l,l+a.length).set(a),b=a.length,l}let r=e.length,i=t(r,1)>>>0,h=U(),n=0;for(;n<r;n++){let a=e.charCodeAt(n);if(a>127)break;h[i+n]=a}if(n!==r){n!==0&&(e=e.slice(n)),i=s(i,r,r=n+e.length*3,1)>>>0;let a=U().subarray(i+n,i+r),l=_t(e,a);n+=l.written,i=s(i,r,n,1)>>>0}return b=n,i}var De=new pt("utf-8",{ignoreBOM:!0,fatal:!0});De.decode();function F(e,t){return e=e>>>0,De.decode(U().subarray(e,e+t))}function Me(e){let t=c.__wbindgen_export_0.get(e);return c.__externref_table_dealloc(e),t}u.exports.echoToml=function(e){let t,s;try{let h=Y(e,c.__wbindgen_malloc,c.__wbindgen_realloc),n=b,a=c.echoToml(h,n);var r=a[0],i=a[1];if(a[3])throw r=0,i=0,Me(a[2]);return t=r,s=i,F(r,i)}finally{c.__wbindgen_free(t,s,1)}};u.exports.updateTomlValues=function(e,t){let s,r;try{let n=Y(e,c.__wbindgen_malloc,c.__wbindgen_realloc),a=b,l=c.updateTomlValues(n,a,t);var i=l[0],h=l[1];if(l[3])throw i=0,h=0,Me(l[2]);return s=i,r=h,F(i,h)}finally{c.__wbindgen_free(s,r,1)}};u.exports.__wbg_from_2a5d3e218e67aa85=function(e){return Array.from(e)};u.exports.__wbg_get_b9b93047fe3cf45b=function(e,t){return e[t>>>0]};u.exports.__wbg_length_e2d2a49132c1b256=function(e){return e.length};u.exports.__wbindgen_boolean_get=function(e){let t=e;return typeof t=="boolean"?t?1:0:2};u.exports.__wbindgen_init_externref_table=function(){let e=c.__wbindgen_export_0,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)};u.exports.__wbindgen_is_array=function(e){return Array.isArray(e)};u.exports.__wbindgen_is_undefined=function(e){return e===void 0};u.exports.__wbindgen_number_get=function(e,t){let s=t,r=typeof s=="number"?s:void 0;B().setFloat64(e+8,Z(r)?0:r,!0),B().setInt32(e+0,!Z(r),!0)};u.exports.__wbindgen_string_get=function(e,t){let s=t,r=typeof s=="string"?s:void 0;var i=Z(r)?0:Y(r,c.__wbindgen_malloc,c.__wbindgen_realloc),h=b;B().setInt32(e+4,h,!0),B().setInt32(e+0,i,!0)};u.exports.__wbindgen_string_new=function(e,t){return F(e,t)};u.exports.__wbindgen_throw=function(e,t){throw new Error(F(e,t))};var dt=H("path").join(__dirname,"toml_patch_bg.wasm"),mt=H("fs").readFileSync(dt),gt=new WebAssembly.Module(mt),Ct=new WebAssembly.Instance(gt,Oe);c=Ct.exports;u.exports.__wasm=c;c.__wbindgen_start()});o();o();var D=G(Ie(),1);function Le(e){let t=e.replace(/\r\n$/g,`
|
|
18
|
+
`);return D.parse(t)}function Se(e){return D.stringify(e)}var z=G(Ue()),$=class extends k{constructor(t,s){super(s),this.name="TomlFileError",this.path=t}},Pe=class e{static async read(t){if(!await j(t))throw new $(t,`TOML file not found: ${t}`);let s=await w(t),r=new e(t,{});return r.content=r.decode(s),r}constructor(t,s){this.errors=[],this.path=t,this.content=s}async patch(t){let s=Be(t),r=await w(this.path),i=(0,z.updateTomlValues)(r,s),h=this.decode(i);await R(this.path,i),this.content=h}async remove(t){let s=t.split("."),r=await w(this.path),i=(0,z.updateTomlValues)(r,[[s,void 0]]),h=this.decode(i);await R(this.path,i),this.content=h}async replace(t){let s=Se(t);this.decode(s),await R(this.path,s),this.content=t}async transformRaw(t){let s=await w(this.path),r=t(s),i=this.decode(r);await R(this.path,r),this.content=i}decode(t){try{return Le(t)}catch(s){if(s.line!==void 0&&s.col!==void 0){let r=String(s.message).split(`
|
|
19
|
+
`)[0]??"Invalid TOML";throw new $(this.path,`${r} at row ${s.line}, col ${s.col}`)}throw s}}};function Be(e,t=[]){let s=[];for(let[r,i]of Object.entries(e)){let h=[...t,r];i!==null&&typeof i=="object"&&!Array.isArray(i)?s.push(...Be(i,h)):s.push([h,i])}return s}export{Ue as a,$ as b,Pe as c};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as h}from"./chunk-
|
|
1
|
+
import{g as h}from"./chunk-VKWPEFWQ.js";h();h();var o=(i,e)=>{if(!i)throw new Error(e)};var b=i=>{let e={joined:!0,spacerNoNeighbour:" ",spacerNeighbour:"\u2502 ",keyNoNeighbour:"\u2514\u2500 ",keyNeighbour:"\u251C\u2500 ",separator:": ",renderFn:n=>["boolean","string","number"].includes(typeof n)?n:void 0,sortFn:null,breakCircularWith:" (circular ref.)",...i};return o(Object.keys(e).length===9,"Unexpected Option(s) provided"),o(typeof e.joined=="boolean",'Option "joined" has invalid format'),o(typeof e.spacerNoNeighbour=="string",'Option "spacerNoNeighbour" has invalid format'),o(typeof e.spacerNeighbour=="string",'Option "spacerNeighbour" has invalid format'),o(typeof e.keyNoNeighbour=="string",'Option "keyNoNeighbour" has invalid format'),o(typeof e.keyNeighbour=="string",'Option "keyNeighbour" has invalid format'),o(typeof e.separator=="string",'Option "separator" has invalid format'),o(typeof e.renderFn=="function",'Option "renderFn" has invalid format'),o(typeof e.sortFn=="function"||e.sortFn===null,'Option "sortFn" has invalid format'),o(typeof e.breakCircularWith=="string"||e.breakCircularWith===null,'Option "breakCircularWith" has invalid format'),e},m=(i,e={})=>{let n=b(e),s=[],g=n.renderFn(i);g!==void 0&&s.push(String(g));let d=r=>n.sortFn===null?r.reverse():r.sort((t,l)=>n.sortFn(l,t)),u=[],a=d(Object.keys(i)).map(r=>[r]),c=[i];for(;a.length!==0;){let r=a.pop(),t=c[r.length-1][r[r.length-1]],l=n.breakCircularWith!==null&&c.includes(t);u[r.length-1]=a.length!==0&&a[a.length-1].length===r.length;let f=n.renderFn(t);s.push([u.slice(0,r.length-1).map(p=>p?n.spacerNeighbour:n.spacerNoNeighbour).join(""),u[r.length-1]?n.keyNeighbour:n.keyNoNeighbour,r[r.length-1],f===void 0?"":`${n.separator}${t}`,l?n.breakCircularWith:""].join("")),t instanceof Object&&!Array.isArray(t)&&!l&&(a.push(...d(Object.keys(t)).map(p=>r.concat(p))),c[r.length]=t)}return n.joined===!0?s.join(`
|
|
2
2
|
`):s};export{m as a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as h}from"./chunk-AU5EZQW7.js";import{k as m,q as a}from"./chunk-TUNUEOHO.js";import{ua as t}from"./chunk-G4OQABDT.js";import{b as s}from"./chunk-OXJBYKMX.js";import{r as f}from"./chunk-T6CC5WUU.js";import{T as n}from"./chunk-7FQFEB33.js";import{e as w,g as i}from"./chunk-VKWPEFWQ.js";i();var o=w(f(),1);var d,e=class extends a{async command(r,p,c,y,l){let u={environment:r.environment,force:r.force,noColor:r["no-color"],password:r.password,path:r.path,store:r.store,theme:n("creative"),unpublished:!0,listing:r.listing};t("theme-command:share"),await h(u,p,c,l),t("theme-command:share")}};d=e;e.summary="Creates a shareable, unpublished, and new theme on your theme library with a randomized name.";e.descriptionWithMarkdown=`Uploads your theme as a new, unpublished theme in your theme library. The theme is given a randomized name.
|
|
2
|
+
|
|
3
|
+
This command returns a [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with others.`;e.description=d.descriptionWithoutMarkdown();e.flags={...s,...m,force:o.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),listing:o.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"})};e.multiEnvironmentsFlags=["store","password","path"];var I=e;export{I as a};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{j as W,l as B}from"./chunk-
|
|
1
|
+
import{j as W,l as B}from"./chunk-HDC5V7RY.js";import{O as v,a as O}from"./chunk-NTRAWIEJ.js";import{f as h}from"./chunk-VI34CKV6.js";import{d as u,g as T}from"./chunk-TPCG6DCA.js";import{a as I}from"./chunk-CX5CC6P5.js";import{$a as S,Bb as L,Fb as o,Hb as s,Pb as d,Ta as w,Ua as i,Wa as D,ma as x,ua as b}from"./chunk-7FQFEB33.js";import{d as c,i as k}from"./chunk-773TIA5M.js";import{e as R,g}from"./chunk-VKWPEFWQ.js";g();g();function M(e,n){try{return JSON.parse(e)}catch(a){let r=a instanceof Error?a.message:String(a),t=n?` from ${n}`:"";throw new u(`Failed to parse JSON${t}.
|
|
2
2
|
${r}`)}}var l=R(I()),N="yarn.lock",j="package-lock.json",J="pnpm-lock.yaml",$="bun.lockb",C="bun.lock",V="pnpm-workspace.yaml",ke=[N,J,j,$,C],we={yarn:[N],npm:[j],pnpm:[J],bun:[$,C],homebrew:[],unknown:[]},E=["yarn","npm","pnpm","bun","homebrew","unknown"],_=class extends u{constructor(){super("Unknown package manager")}},y=class extends u{constructor(n){super(s`The directory ${o.path(n)} doesn't have a package.json.`)}},P=class extends T{constructor(n){super(s`Couldn't find a a package.json traversing directories from ${o.path(n)}`)}};function A(e=process.env){return e.npm_config_user_agent?.includes("yarn")?"yarn":e.npm_config_user_agent?.includes("pnpm")?"pnpm":e.npm_config_user_agent?.includes("bun")?"bun":e.npm_config_user_agent?.includes("npm")?"npm":"unknown"}function U(e){return i(c(e,$))||i(c(e,C))}function G(e){switch(e){case"yarn":case"npm":case"pnpm":case"bun":return e;case"homebrew":case"unknown":return"npm"}}function K(e,n,...a){switch(e){case"npm":return{command:"npm",args:["exec","--",n,...a]};case"pnpm":return{command:"pnpm",args:["exec",n,...a]};case"yarn":return{command:"yarn",args:["run",n,...a]};case"bun":return{command:"bun",args:["x",n,...a]}}}async function F(e){let n=e;for(d(s`Looking for a lockfile in ${o.path(n)}...`);;){if(i(c(n,N)))return"yarn";if(i(c(n,J))||i(c(n,V)))return"pnpm";if(U(n))return"bun";if(i(c(n,j)))return"npm";let r=k(n);if(r===n)break;n=r}let a=A();return a!=="unknown"?a:"npm"}async function he(e,n,...a){let r=G(await F(e));return K(r,n,...a)}async function ye(e){let n=await D(c(e.directory,"**/package.json"),{ignore:[c(e.directory,"node_modules/**/package.json")],cwd:e.directory,onlyFiles:!0,deep:e.deep}),a=new O;try{await Promise.all(n.map(async r=>{let t=k(r);await z({directory:t,packageManager:e.packageManager,stdout:void 0,stderr:void 0,signal:a.signal,args:[]})}))}catch(r){throw a.abort(),r}}async function z(e){let n={cwd:e.directory,stdin:void 0,stdout:e.stdout,stderr:e.stderr,signal:e.signal},a=["install"];e.args&&(a=a.concat(e.args)),await h("cmd_all_timing_network_ms")(async()=>{await v(e.packageManager,a,n)})}async function xe(e){return(await f(e)).name}async function be(e){return(await f(e)).version}async function H(e){let n=await f(e),a=n.dependencies??{},r=n.devDependencies??{};return{...a,...r}}async function ve(e){let n=c(e,"package.json"),a=await f(n),r=c(e,V);return!!a.workspaces||w(r)}async function Me(e,n,{cacheExpiryInHours:a=0}={}){let r=async()=>(d(s`Checking if there's a version of ${e} newer than ${n}`),ne(e)),t=`npm-package-${e}`,p;try{p=await W(t,r,a*3600*1e3)}catch{return}if(p&&new l.SemVer(n).compare(p)<0)return p}function _e(e,n){let a=`npm-package-${e}`,r=B(a)?.value;if(r&&new l.SemVer(n).compare(r)<0)return r}function Pe(e,n){return(0,l.satisfies)(e,n)}async function f(e){if(!await w(e))throw new y(k(e));return M(await x(e),e)}async function Y(e,n){d(s`Adding the following dependencies if needed:
|
|
3
3
|
${o.json(e)}
|
|
4
4
|
With options:
|
|
5
5
|
${o.json(n)}
|
|
6
|
-
`);let a=c(n.directory,"package.json");if(!await w(a))throw new y(n.directory);let r=Object.keys(await H(a)),t=e.filter(p=>!r.includes(p.name));t.length!==0&&await q(t,n)}async function q(e,n){let a=e.map(r=>r.version?`${r.name}@${r.version}`:r.name);switch(n.stdout?.write(`Installing ${a.join(" ")} with ${n.packageManager}`),n.packageManager){case"npm":for(let r of a)await m(n,Q(r,n.type));break;case"yarn":await m(n,X(a,n.type,!!n.addToRootDirectory));break;case"pnpm":await m(n,Z(a,n.type,!!n.addToRootDirectory));break;case"bun":await m(n,ee(a,n.type)),await m(n,["install"]);break;case"homebrew":throw new u("Homebrew can't be used to install project dependencies. Use npm, yarn, pnpm, or bun.");case"unknown":throw new _}}async function m(e,n){return h("cmd_all_timing_network_ms")(async()=>v(e.packageManager,n,{cwd:e.directory,stdout:e.stdout,stderr:e.stderr,signal:e.signal}))}async function Ne(e,n){await Y(e.map(a=>({name:a,version:void 0})),n)}function Q(e,n){let a=["install"];switch(a=a.concat(e),n){case"dev":a.push("--save-dev");break;case"peer":a.push("--save-peer");break;case"prod":a.push("--save-prod");break}return e.match(/@\d/g)&&a.push("--save-exact"),a}function X(e,n,a=!1){let r=["add"];switch(a&&r.push("-W"),r=r.concat(e),n){case"dev":r.push("--dev");break;case"peer":r.push("--peer");break;case"prod":r.push("--prod");break}return r}function Z(e,n,a=!1){let r=["add"];switch(a&&r.push("-w"),r=r.concat(e),n){case"dev":r.push("--save-dev");break;case"peer":r.push("--save-peer");break;case"prod":r.push("--save-prod");break}return r}function ee(e,n){let a=["add"];switch(a=a.concat(e),n){case"dev":a.push("--development");break;case"peer":a.push("--optional");break;case"prod":break}return a}async function je(e){let n=await S("package.json",{cwd:e,type:"file"});if(n){let a=M(await x(n),n);return{path:n,content:a}}else throw new P(e)}async function Je(e,n){let a=await F(e),r=c(e,"package.json"),t=await f(r);a==="yarn"&&(t.resolutions=t.resolutions?{...t.resolutions,...n}:n),(a==="npm"||a==="pnpm"||a==="bun")&&(t.overrides=t.overrides?{...t.overrides,...n}:n),await b(r,JSON.stringify(t,null,2))}async function ne(e){return d(s`Getting the latest version of NPM package: ${o.raw(e)}`),h("cmd_all_timing_network_ms")(async()=>{let{default:n}=await import("./latest-version-
|
|
6
|
+
`);let a=c(n.directory,"package.json");if(!await w(a))throw new y(n.directory);let r=Object.keys(await H(a)),t=e.filter(p=>!r.includes(p.name));t.length!==0&&await q(t,n)}async function q(e,n){let a=e.map(r=>r.version?`${r.name}@${r.version}`:r.name);switch(n.stdout?.write(`Installing ${a.join(" ")} with ${n.packageManager}`),n.packageManager){case"npm":for(let r of a)await m(n,Q(r,n.type));break;case"yarn":await m(n,X(a,n.type,!!n.addToRootDirectory));break;case"pnpm":await m(n,Z(a,n.type,!!n.addToRootDirectory));break;case"bun":await m(n,ee(a,n.type)),await m(n,["install"]);break;case"homebrew":throw new u("Homebrew can't be used to install project dependencies. Use npm, yarn, pnpm, or bun.");case"unknown":throw new _}}async function m(e,n){return h("cmd_all_timing_network_ms")(async()=>v(e.packageManager,n,{cwd:e.directory,stdout:e.stdout,stderr:e.stderr,signal:e.signal}))}async function Ne(e,n){await Y(e.map(a=>({name:a,version:void 0})),n)}function Q(e,n){let a=["install"];switch(a=a.concat(e),n){case"dev":a.push("--save-dev");break;case"peer":a.push("--save-peer");break;case"prod":a.push("--save-prod");break}return e.match(/@\d/g)&&a.push("--save-exact"),a}function X(e,n,a=!1){let r=["add"];switch(a&&r.push("-W"),r=r.concat(e),n){case"dev":r.push("--dev");break;case"peer":r.push("--peer");break;case"prod":r.push("--prod");break}return r}function Z(e,n,a=!1){let r=["add"];switch(a&&r.push("-w"),r=r.concat(e),n){case"dev":r.push("--save-dev");break;case"peer":r.push("--save-peer");break;case"prod":r.push("--save-prod");break}return r}function ee(e,n){let a=["add"];switch(a=a.concat(e),n){case"dev":a.push("--development");break;case"peer":a.push("--optional");break;case"prod":break}return a}async function je(e){let n=await S("package.json",{cwd:e,type:"file"});if(n){let a=M(await x(n),n);return{path:n,content:a}}else throw new P(e)}async function Je(e,n){let a=await F(e),r=c(e,"package.json"),t=await f(r);a==="yarn"&&(t.resolutions=t.resolutions?{...t.resolutions,...n}:n),(a==="npm"||a==="pnpm"||a==="bun")&&(t.overrides=t.overrides?{...t.overrides,...n}:n),await b(r,JSON.stringify(t,null,2))}async function ne(e){return d(s`Getting the latest version of NPM package: ${o.raw(e)}`),h("cmd_all_timing_network_ms")(async()=>{let{default:n}=await import("./latest-version-32HXMWJ7.js");return n(e)})}async function $e(e,n){d(s`JSON-encoding and writing content to package.json at ${o.path(e)}...`);let a=c(e,"package.json");await b(a,JSON.stringify(n,null,2))}function Ce(e,n=process.env){if(e&&E.includes(e))return e;let a=A(n);if(a!=="unknown")return a;let r=L();return r!=="unknown"?r:"npm"}export{N as a,j as b,J as c,$ as d,V as e,ke as f,we as g,E as h,_ as i,y as j,P as k,A as l,F as m,he as n,ye as o,z as p,xe as q,be as r,H as s,ve as t,Me as u,_e as v,Pe as w,f as x,Y as y,q as z,Ne as A,je as B,Je as C,$e as D,Ce as E};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u}from"./chunk-
|
|
1
|
+
import{c as u}from"./chunk-A5HKAMAC.js";import{w as c}from"./chunk-NTRAWIEJ.js";import{e as s}from"./chunk-VI34CKV6.js";import{$a as d}from"./chunk-7FQFEB33.js";import{q as m}from"./chunk-773TIA5M.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();function o(e,n){n||c(e)}async function P(e,n,t){let r=await l(n,t);if(!r){o({body:"Environment file not found."},t?.silent);return}let a=(await u.read(r)).content.environments;if(!a){o({body:["No environments found in",{command:r},{char:"."}]},t?.silent);return}let i=a[e];if(!i){o({body:["Environment",{command:e},"not found."]},t?.silent);return}return await s(()=>({environmentFlags:JSON.stringify(i)})),i}async function l(e,n){let t=n?.from&&n.from!=="."?n.from:m();return d(e,{cwd:t,type:"file"})}export{P as a,l as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-
|
|
1
|
+
import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-NTRAWIEJ.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{b as L}from"./chunk-N3CNWCC2.js";import{a as V}from"./chunk-JK3NIHTX.js";import{k as q,l as H,n as I}from"./chunk-3YDYZ232.js";import{a as Y}from"./chunk-W7DDV2EY.js";import{a as p,b as w}from"./chunk-STJ3LWFL.js";import{a as N}from"./chunk-AVD3INWF.js";import{a as F}from"./chunk-MIDYZPO4.js";import{a as y,c as U}from"./chunk-VJ6KDRZI.js";import{b as g,c as x,d as M,f as _,j as R,n as j,p as D}from"./chunk-5XDQ76DQ.js";import{m as k}from"./chunk-TUNUEOHO.js";import{aa as B}from"./chunk-4J32OHLY.js";import{O as b,ua as a,va as O}from"./chunk-G4OQABDT.js";import{A as P,v as f,w as d,x as C}from"./chunk-NTRAWIEJ.js";import{d as S}from"./chunk-TPCG6DCA.js";import{Lb as $}from"./chunk-7FQFEB33.js";import{f as T,q as l}from"./chunk-773TIA5M.js";import{e as z,g as v}from"./chunk-VKWPEFWQ.js";v();var A=z(B(),1);async function Te(e,t,r,o){let n=e.environment?.[0],s=t??await b(k({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:c}=await L(e.path??l(),m);if(c.length>0&&c.filter(J=>J.severity===A.Severity.ERROR).length>0)throw O(new S(n?`[${n}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}a("theme-service:push:setup"),Y({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,h=e.path?T(e.path):l();if(!await I(h)&&!await U(i,void 0,n,r))return;e.listing&&await q(h,e.listing);let u=await Z(s,e,r);u&&(a("theme-service:push:setup"),await W(u,s,{allowLive:e.allowLive??!1,environment:n,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:h,publish:e.publish??!1,listing:e.listing},o))}async function W(e,t,r,o){a("theme-service:push:file-system");let n=await j(e.id,t),s=H(r.path,{filters:r,listing:r.listing});a("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:h}=V(e,t,n,s,r,o);await h(),r.publish&&await D(e.id,t),await G(i,e,t,r)}function E(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,o){o.json?K(t,r,e,o.environment):o.publish?Q(r,e,o.environment):X(t,r,e,o.environment)}function K(e,t,r,o){let n={environment:o,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:w(e,t),preview_url:p(e,t)}};if(E(r)){let i=`${o?`[${o}] `:""}The theme '${e.name}' was pushed with errors`;n.theme.warning=i;let h={};for(let[u,m]of r.entries())!m.success&&m.errors?.asset&&(h[u]=m.errors.asset);Object.keys(h).length>0&&(n.theme.errors=h)}$(JSON.stringify(n))}function Q(e,t,r){let o=r?[{subdued:`Environment: ${r}
|
|
2
|
+
|
|
3
|
+
`}]:[];E(t)?d({body:[...o,`Your theme was published with errors and is now live at https://${e.storeFqdn}`]}):f({body:[...o,`Your theme is now live at https://${e.storeFqdn}`]})}function X(e,t,r,o){let n=o?[{subdued:`Environment: ${o}
|
|
4
|
+
|
|
5
|
+
`}]:[],s=E(r),i=[[{link:{label:"View your theme",url:p(e,t)}}],[{link:{label:"Customize your theme at the theme editor",url:w(e,t)}}]];s?d({body:[...n,"The theme",...y(e),"was pushed with errors"],nextSteps:i}):f({body:[...n,"The theme",...y(e),"was pushed successfully."],nextSteps:i})}async function Z(e,t,r){let{live:o,development:n,unpublished:s,theme:i,environment:h,developmentContext:u}=t;if(n)return new N(e).findOrCreate(u,g);if(s){let m=i??await _("Name of the new theme");return R({name:m,role:M},e)}else{let m=await F(e,{create:!0,header:"Select a theme to push to:",filter:{live:o,theme:i}});return await ee(m.role,t.allowLive,e.storeFqdn,h,r)?m:void 0}}async function ee(e,t,r,o,n){if(e===x){if(t)return!0;if(n)return C({headline:`Environment: ${o}`,body:[`Can't push theme files to the live theme on ${r}`,"Use the --allow-live flag to push to a live theme."]}),!1;let s={message:`Push theme files to the ${e} theme on ${r}?`,confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return P(s)}return!0}export{Te as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s}from"./chunk-TRYWVIVJ.js";import{b as r,c as h,d as n}from"./chunk-TUNUEOHO.js";import{d as m}from"./chunk-TPCG6DCA.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var c=t=>`Development theme #${t} could not be found. Please create a new development theme.`,i="No development theme ID has been set. Please create a development theme first.",p=class extends s{constructor(e){super(e),this.context="Development",this.themeId=r()}async find(){let e=await this.fetch();if(!e)throw new m(this.themeId?c(this.themeId):i);return e}setTheme(e){h(e)}removeTheme(){n()}};export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as o}from"./chunk-UTO4Z6P6.js";import{b as r}from"./chunk-HOSFU6UP.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();var e=class extends r{environmentsFilename(){return o.appEnvironments}};export{e as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as D,h as A,i as _}from"./chunk-I22ZTRKK.js";import{a as g,d as C,g as I}from"./chunk-A27NZMWB.js";import{a as O}from"./chunk-EKVTNWHM.js";import{a as y}from"./chunk-5BKCIDMS.js";import{b as S}from"./chunk-CFOXXOO2.js";import{z as k}from"./chunk-G4OQABDT.js";import{b as N}from"./chunk-OXJBYKMX.js";import{u as m,v as c,w as v,x as f}from"./chunk-NTRAWIEJ.js";import{r as E}from"./chunk-T6CC5WUU.js";import{Fb as b,Hb as F}from"./chunk-7FQFEB33.js";import{e as x,g as a}from"./chunk-VKWPEFWQ.js";a();a();a();var h={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BulkOperationCancel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperationCancel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"fileSize"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"query"}},{kind:"Field",name:{kind:"Name",value:"rootObjectCount"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};var T="2026-01";async function w(t){let{organization:r,storeFqdn:n,operationId:o,remoteApp:u}=t;m({headline:"Canceling bulk operation.",body:[{list:{items:[`ID: ${o}`,...C({organization:r,remoteApp:u,storeFqdn:n})]}}]});let q=await g(u,n),l=await S({query:h,session:q,variables:{id:o},version:T});if(l.bulkOperationCancel?.userErrors?.length){A(l.bulkOperationCancel.userErrors,"Failed to cancel bulk operation.");return}let p=l.bulkOperationCancel?.bulkOperation;if(p){let i=_(p),d={headline:i.headline,...i.body&&{body:i.body},...i.customSections&&{customSections:i.customSections}};switch(i.renderType){case"success":c(d);break;case"warning":v(d);break;case"info":m(d);break}}else f({headline:"Bulk operation not found or could not be canceled.",body:F`ID: ${b.yellow(o)}`.value})}var s=x(E(),1);var B,e=class extends O{async run(){let{flags:r}=await this.parse(B),{appContextResult:n,store:o}=await I(r);return await w({organization:n.organization,storeFqdn:o.shopDomain,operationId:D(r.id),remoteApp:n.remoteApp}),{app:n.app}}};B=e;e.summary="Cancel a bulk operation.";e.description="Cancels a running bulk operation by ID.";e.flags={...N,...y,id:s.Flags.string({description:"The bulk operation ID to cancel (numeric ID or full GID).",env:"SHOPIFY_FLAG_ID",required:!0}),store:s.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async t=>k(t)})};var Z=e;export{Z as a};
|