@shopify/cli 0.0.0-snapshot-20260529095708 → 0.0.0-snapshot-20260529134635
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/analytics-P3RHTMS6.js +1 -0
- package/dist/analytics-P7HLTUUC.js +1 -0
- package/dist/bootstrap.js +1 -1
- package/dist/{chunk-KYGZEC24.js → chunk-24CBGP4I.js} +1 -1
- package/dist/{chunk-ON43SEWP.js → chunk-2CH6J7DU.js} +1 -1
- package/dist/{chunk-LOMYSS6G.js → chunk-32VSRKW6.js} +1 -1
- package/dist/{chunk-6SRPU3UN.js → chunk-3ETPVNO4.js} +1 -1
- package/dist/{chunk-UT3FNKCK.js → chunk-3LRBA2P7.js} +1 -1
- package/dist/{chunk-YJOJVJWD.js → chunk-3XTVBQTA.js} +1 -1
- package/dist/{chunk-357OIAHW.js → chunk-4IKHLRZL.js} +1 -1
- package/dist/{chunk-RMRXWIAS.js → chunk-4MPUUIBH.js} +1 -1
- package/dist/{chunk-JCLUYCTC.js → chunk-4PVZC6ZA.js} +2 -2
- package/dist/{chunk-DVF6GXVZ.js → chunk-4SKBJORU.js} +1 -1
- package/dist/{chunk-VGD3F3EE.js → chunk-54XCZDJR.js} +1 -1
- package/dist/{chunk-QRAC43MG.js → chunk-5ELT7DPJ.js} +1 -1
- package/dist/{chunk-XYWTCN22.js → chunk-5YI3LOKJ.js} +1 -1
- package/dist/{chunk-2RS7UGXD.js → chunk-67AFHB5Z.js} +1 -1
- package/dist/{chunk-RWGTJX3G.js → chunk-6GW7T3O7.js} +1 -1
- package/dist/{chunk-3ODFSKK3.js → chunk-6PAOR3TW.js} +3 -3
- package/dist/{chunk-56ENJ2TL.js → chunk-6RBPNXHX.js} +1 -1
- package/dist/{chunk-UW7RMASB.js → chunk-6UGHSVRE.js} +1 -1
- package/dist/{chunk-BYGJDFER.js → chunk-6UUEQ37L.js} +1 -1
- package/dist/{chunk-G22UVXJ5.js → chunk-6V7RKHUL.js} +1 -1
- package/dist/{chunk-Y64BSWVY.js → chunk-7BNELDYL.js} +1 -1
- package/dist/{chunk-HEIIOJUQ.js → chunk-7MZW3UQH.js} +1 -1
- package/dist/{chunk-ZB4OMMAT.js → chunk-AK3MADND.js} +1 -1
- package/dist/{chunk-GXD2LYKB.js → chunk-B3UUQOFB.js} +1 -1
- package/dist/{chunk-T5R4SVTZ.js → chunk-BBAZPHWS.js} +1 -1
- package/dist/{chunk-7REHYS4F.js → chunk-CFUHTMUD.js} +1 -1
- package/dist/{chunk-DKHNBNIX.js → chunk-CW3LRQBF.js} +1 -1
- package/dist/{chunk-IBR5TZRE.js → chunk-DLUBJJQT.js} +1 -1
- package/dist/{chunk-J42Z353K.js → chunk-DQBMNPXQ.js} +1 -1
- package/dist/{chunk-ER2GJ4AJ.js → chunk-DUWQVDIM.js} +1 -1
- package/dist/{chunk-HQK6R5ZQ.js → chunk-EQJQVBSZ.js} +1 -1
- package/dist/{chunk-A22XAO2H.js → chunk-EWVREPJ5.js} +1 -1
- package/dist/{chunk-AEFER5WA.js → chunk-F2KA77GF.js} +1 -1
- package/dist/{chunk-GSIOSXMR.js → chunk-F3CAXZRZ.js} +1 -1
- package/dist/{chunk-V2WSINE6.js → chunk-FHKWZK2R.js} +1 -1
- package/dist/{chunk-I55NI3AJ.js → chunk-GN2T6DLA.js} +1 -1
- package/dist/{chunk-DNL2VGCU.js → chunk-I3LKNWVA.js} +2 -2
- package/dist/{chunk-N4Q6DDUM.js → chunk-IALII2RY.js} +1 -1
- package/dist/{chunk-X6J563KT.js → chunk-IFVG4DVO.js} +1 -1
- package/dist/{chunk-SGNMFRKQ.js → chunk-IO4AZDF4.js} +1 -1
- package/dist/{chunk-LJJ2RSOM.js → chunk-IPVRLDJA.js} +1 -1
- package/dist/{chunk-BQLCWFYL.js → chunk-IZ4QDMLE.js} +1 -1
- package/dist/{chunk-HOG5CMPZ.js → chunk-IZBRNIXW.js} +1 -1
- package/dist/{chunk-NJZCMSN5.js → chunk-J2VLO4EY.js} +1 -1
- package/dist/{chunk-Q7PTJGXU.js → chunk-J6OZYQGF.js} +1 -1
- package/dist/{chunk-KKHFNKFV.js → chunk-JO4IFVYW.js} +1 -1
- package/dist/{chunk-EVN2PDJV.js → chunk-JODFPUAQ.js} +1 -1
- package/dist/chunk-JOUSXVRS.js +1 -0
- package/dist/{chunk-52FDPSF4.js → chunk-JVSOZDAO.js} +1 -1
- package/dist/{chunk-WOR3LSFH.js → chunk-JYZTW7B4.js} +1 -1
- package/dist/{chunk-FVYNHDU5.js → chunk-K3BLYTSS.js} +1 -1
- package/dist/{chunk-J3TLZU6G.js → chunk-KDA6FVYX.js} +1 -1
- package/dist/{chunk-F7TF5C6G.js → chunk-KOXDHFRA.js} +1 -1
- package/dist/{chunk-5G5FRMXA.js → chunk-L3TN6KGR.js} +1 -1
- package/dist/{chunk-KAE66QYE.js → chunk-LMTHK4AC.js} +1 -1
- package/dist/{chunk-5LCVA56T.js → chunk-LZX6V2H4.js} +1 -1
- package/dist/{chunk-NWJC4BVM.js → chunk-N2N2L3WD.js} +1 -1
- package/dist/{chunk-EOPSJXYR.js → chunk-NEXOH4MR.js} +1 -1
- package/dist/chunk-NREZ2RJ7.js +1 -0
- package/dist/{chunk-IARGV6W5.js → chunk-OMLJTLTL.js} +1 -1
- package/dist/{chunk-MG5UL2VK.js → chunk-OUH45V4N.js} +1 -1
- package/dist/{chunk-CDKYACQA.js → chunk-P5NZBPPD.js} +1 -1
- package/dist/{chunk-T7LIZZZ5.js → chunk-PA6H2JVD.js} +1 -1
- package/dist/{chunk-UWN2OXJT.js → chunk-PGUKHYQ5.js} +1 -1
- package/dist/{chunk-KYNQTAD3.js → chunk-PPJHKRNT.js} +1 -1
- package/dist/{chunk-3ZKOGKTA.js → chunk-PWZRNKZZ.js} +1 -1
- package/dist/{chunk-2SUYQJVJ.js → chunk-PX2OPQLC.js} +1 -1
- package/dist/{chunk-W676PHBV.js → chunk-QFAPNM3W.js} +1 -1
- package/dist/{chunk-HVSFJSZ2.js → chunk-QGFLYDT3.js} +1 -1
- package/dist/{chunk-756YM6XK.js → chunk-QHEXGZSS.js} +1 -1
- package/dist/{chunk-BIOKOORM.js → chunk-QHQQKSPO.js} +1 -1
- package/dist/{chunk-P6KIY2J3.js → chunk-QSXJMUIM.js} +1 -1
- package/dist/{chunk-SPDYVDFS.js → chunk-QVLBI5WV.js} +1 -1
- package/dist/{chunk-HFI6U4AS.js → chunk-QYAUDXDT.js} +1 -1
- package/dist/{chunk-LRN2FMSM.js → chunk-QZ4NI35U.js} +1 -1
- package/dist/{chunk-P5COLGHM.js → chunk-R3AZXNAF.js} +1 -1
- package/dist/{chunk-GRXYWD7O.js → chunk-R6JZJGXV.js} +1 -1
- package/dist/{chunk-FKH4ALOW.js → chunk-RCENTP43.js} +1 -1
- package/dist/{chunk-7BHZ77B4.js → chunk-RG5LO23H.js} +1 -1
- package/dist/{chunk-BTOVDGDV.js → chunk-SKFGRW6V.js} +1 -1
- package/dist/{chunk-AKVPUKAT.js → chunk-SLAAB5WQ.js} +1 -1
- package/dist/{chunk-KK2HZ2OV.js → chunk-TP4UI7Q5.js} +1 -1
- package/dist/{chunk-5CSQNFG3.js → chunk-U3WI3SBU.js} +1 -1
- package/dist/{chunk-PL5GITKB.js → chunk-UJ5557QD.js} +1 -1
- package/dist/{chunk-MF3ETRJP.js → chunk-URLRH3UT.js} +1 -1
- package/dist/{chunk-Y6ZRAKMR.js → chunk-UTZXAPAJ.js} +1 -1
- package/dist/{chunk-RNJVITH3.js → chunk-UUXOJLE5.js} +1 -1
- package/dist/{chunk-6UXHCQIP.js → chunk-VFN47EM4.js} +1 -1
- package/dist/chunk-VOYTYSXJ.js +1 -0
- package/dist/{chunk-YQ7LYBNF.js → chunk-VSARY23A.js} +1 -1
- package/dist/{chunk-HEH53EDZ.js → chunk-WCLD47VK.js} +1 -1
- package/dist/{chunk-VXM7ARRW.js → chunk-WG4ZAGCX.js} +1 -1
- package/dist/{chunk-UDNS3XF3.js → chunk-WMO777NI.js} +1 -1
- package/dist/{chunk-NHO3LLWK.js → chunk-WQ3LY4W5.js} +3 -3
- package/dist/{chunk-BTQNZGDM.js → chunk-WRM2O7V6.js} +1 -1
- package/dist/{chunk-YWQ6NKSS.js → chunk-WT7TXPIF.js} +1 -1
- package/dist/{chunk-PS3SGPSH.js → chunk-X2PRSP2J.js} +1 -1
- package/dist/{chunk-53YAQOZI.js → chunk-XOH74NUM.js} +1 -1
- package/dist/{chunk-U5DLHKFU.js → chunk-YCX775XO.js} +3 -3
- package/dist/{chunk-WJQ6EJKD.js → chunk-YJQQ6WNE.js} +1 -1
- package/dist/{chunk-JZZMGMFK.js → chunk-Z6XZ5ZVE.js} +1 -1
- package/dist/{chunk-G67MKPRC.js → chunk-ZDXNK3IC.js} +1 -1
- package/dist/cli/commands/app/app-logs/sources.js +1 -1
- 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 -1
- package/dist/cli/commands/app/bulk/status.js +1 -1
- package/dist/cli/commands/app/config/link.js +1 -1
- 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 -1
- package/dist/cli/commands/app/demo/watcher.js +1 -1
- package/dist/cli/commands/app/deploy.js +1 -1
- package/dist/cli/commands/app/dev/clean.js +1 -1
- package/dist/cli/commands/app/dev.js +6 -2
- package/dist/cli/commands/app/env/pull.js +1 -1
- 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 -1
- package/dist/cli/commands/app/function/replay.js +1 -1
- 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 -1
- package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
- package/dist/cli/commands/app/import-extensions.js +1 -1
- package/dist/cli/commands/app/info.js +1 -1
- package/dist/cli/commands/app/init.js +1 -1
- package/dist/cli/commands/app/logs.js +1 -1
- package/dist/cli/commands/app/release.js +1 -1
- package/dist/cli/commands/app/versions/list.js +1 -1
- package/dist/cli/commands/app/webhook/trigger.js +1 -1
- 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/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/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.js +1 -1
- package/dist/cli/commands/theme/check.js +1 -1
- package/dist/cli/commands/theme/console.js +1 -1
- package/dist/cli/commands/theme/delete.js +1 -1
- package/dist/cli/commands/theme/dev.js +1 -1
- package/dist/cli/commands/theme/duplicate.js +1 -1
- package/dist/cli/commands/theme/info.js +1 -1
- package/dist/cli/commands/theme/init.js +1 -1
- 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 -1
- package/dist/cli/commands/theme/open.js +1 -1
- package/dist/cli/commands/theme/package.js +1 -1
- package/dist/cli/commands/theme/preview.js +1 -1
- package/dist/cli/commands/theme/profile.js +1 -1
- package/dist/cli/commands/theme/publish.js +1 -1
- package/dist/cli/commands/theme/pull.js +1 -1
- package/dist/cli/commands/theme/push.js +1 -1
- package/dist/cli/commands/theme/rename.js +1 -1
- package/dist/cli/commands/theme/share.js +1 -1
- package/dist/cli/commands/upgrade.js +1 -1
- package/dist/cli/commands/version.js +1 -1
- package/dist/command-registry.js +1 -1
- package/dist/{conf-store-T37CFZUN.js → conf-store-P6J5AF2O.js} +1 -1
- package/dist/{deprecations-Z3EJ6DLR.js → deprecations-SHRRJWOP.js} +1 -1
- package/dist/dist-R66CGG2A.js +1 -0
- package/dist/dist-RDF3EBYV.js +1 -0
- package/dist/{environments-FSHYT6FI.js → environments-W36TN5UG.js} +1 -1
- package/dist/{error-5I23PQ4Y.js → error-L5FPI2RR.js} +1 -1
- package/dist/error-handler-476A56HQ.js +1 -0
- package/dist/{fs-MIMD3BBN.js → fs-QI3FHUTA.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/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/index.js +6 -2
- package/dist/{is-global-ARDA4CSZ.js → is-global-F5VRY52F.js} +1 -1
- package/dist/{local-3ZQI22FG.js → local-PKE3GCEX.js} +1 -1
- package/dist/{local-storage-EZWBC67M.js → local-storage-MQVWNB72.js} +1 -1
- package/dist/{metadata-2ZGSR7V6.js → metadata-QOPVRQXV.js} +1 -1
- package/dist/{node-package-manager-543RDDQF.js → node-package-manager-MVUAI7EE.js} +1 -1
- package/dist/notifications-system-FKLQECEE.js +1 -0
- package/dist/{output-72FRMGSA.js → output-YAHUCEVR.js} +1 -1
- package/dist/{system-6WHERTOZ.js → system-WXTFQSRZ.js} +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-Q6HHKE5A.js → ui-3LK7X2QG.js} +1 -1
- package/dist/upgrade-GIYAOSMY.js +1 -0
- package/dist/version-6IWCPJOP.js +1 -0
- package/dist/{version-HZDBZ4OS.js → version-UH3O5QLS.js} +1 -1
- package/dist/{workerd-MK4OU6DZ.js → workerd-U3HJ5AMT.js} +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +7 -7
- package/dist/analytics-4MDMXBYF.js +0 -1
- package/dist/analytics-IVVKLIEG.js +0 -1
- package/dist/chunk-46QACZOG.js +0 -1
- package/dist/chunk-FUKB5JWH.js +0 -1
- package/dist/chunk-HXST6PKJ.js +0 -1
- package/dist/dist-GBGQIPF4.js +0 -1
- package/dist/dist-UQVMYG24.js +0 -1
- package/dist/error-handler-HU5Y6I3H.js +0 -1
- package/dist/notifications-system-5XNKI3BF.js +0 -1
- package/dist/upgrade-4LKQ77U7.js +0 -1
- package/dist/version-HZU5UTS6.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{qa as a,ra as b,sa as c}from"./chunk-6PAOR3TW.js";import"./chunk-4LNCYIS3.js";import"./chunk-54XCZDJR.js";import"./chunk-PRKBO42R.js";import"./chunk-SLAAB5WQ.js";import"./chunk-URLRH3UT.js";import"./chunk-PA6H2JVD.js";import"./chunk-3TNEIDOD.js";import"./chunk-5ELT7DPJ.js";import"./chunk-JUVAGMIH.js";import"./chunk-QVLBI5WV.js";import"./chunk-P6XE4MH5.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-6RBPNXHX.js";import"./chunk-U3WI3SBU.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-QSXJMUIM.js";import"./chunk-YCX775XO.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-PGUKHYQ5.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{b as getEnvironmentData,c as getSensitiveEnvironmentData,a as startAnalytics};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ta as a,ua as b,va as c,wa as d,xa as e,ya as f}from"./chunk-6PAOR3TW.js";import"./chunk-4LNCYIS3.js";import"./chunk-54XCZDJR.js";import"./chunk-PRKBO42R.js";import"./chunk-SLAAB5WQ.js";import"./chunk-URLRH3UT.js";import"./chunk-PA6H2JVD.js";import"./chunk-3TNEIDOD.js";import"./chunk-5ELT7DPJ.js";import"./chunk-JUVAGMIH.js";import"./chunk-QVLBI5WV.js";import"./chunk-P6XE4MH5.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-6RBPNXHX.js";import"./chunk-U3WI3SBU.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-QSXJMUIM.js";import"./chunk-YCX775XO.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-PGUKHYQ5.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{f as compileData,c as recordError,e as recordEvent,d as recordRetry,b as recordTiming,a as reportAnalyticsEvent};
|
package/dist/bootstrap.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as p}from"./chunk-6HBRBQAN.js";import{a as e}from"./chunk-
|
|
1
|
+
import{a as p}from"./chunk-6HBRBQAN.js";import{a as e}from"./chunk-AK3MADND.js";import"./chunk-3TNEIDOD.js";import{a as s}from"./chunk-R6JZJGXV.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-ULQG3XQS.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import{e as m,g as t}from"./chunk-VPRTJUIN.js";t();var r=m(p(),1);import n from"fs";(0,r.createGlobalProxyAgent)({environmentVariableNamespace:"SHOPIFY_",forceGlobalAgent:!0,socketConnectionTimeout:6e4});process.on("uncaughtException",async o=>{try{let{FatalError:c}=await import("./error-L5FPI2RR.js");if(o instanceof c){let{renderFatalError:i}=await import("./ui-3LK7X2QG.js");i(o)}else n.writeSync(process.stderr.fd,`${o.stack??o.message??o}
|
|
2
2
|
`)}catch{n.writeSync(process.stderr.fd,`${o.stack??o.message??o}
|
|
3
3
|
`)}process.exit(1)});var f=["SIGINT","SIGTERM","SIGQUIT"];f.forEach(o=>{process.on(o,()=>{process.exit(1)})});var a=Number(process.env.SHOPIFY_CLI_COLUMNS);isNaN(a)||(process.stdout.columns=a);async function l({development:o}){await e({moduleURL:import.meta.url,development:o,lazyCommandLoader:s})}var S=l;export{S as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
1
|
+
import{a as i}from"./chunk-URLRH3UT.js";import{b as e}from"./chunk-WQ3LY4W5.js";import{Mb as t}from"./chunk-YCX775XO.js";import{g as o}from"./chunk-VPRTJUIN.js";o();o();async function s(){t(i)}var r=class extends e{static{this.description="Shopify CLI version currently installed."}async run(){await s()}};export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as l}from"./chunk-
|
|
1
|
+
import{d as l}from"./chunk-5YI3LOKJ.js";import{a as i,h as m,i as d,j as f,m as w}from"./chunk-R3AZXNAF.js";import{c as t}from"./chunk-QFWIDATO.js";import{F as n}from"./chunk-QVLBI5WV.js";import{g as a}from"./chunk-VPRTJUIN.js";a();async function h(o,r){i()||w({store:r});let e=o??m()??await P(["Enter your",{link:{label:"store password",url:t(r)}}]),s=!1;for(;!await l(e,r);)s||(f(),s=!0),e=await P(["Incorrect",{link:{label:"store password",url:t(r)}},{char:"."},"Please try again"]);return d(e),e}async function P(o){return n({message:o,password:!0})}export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as m}from"./chunk-
|
|
1
|
+
import{h as m}from"./chunk-IO4AZDF4.js";import{d as h}from"./chunk-U3WI3SBU.js";import{g as i}from"./chunk-VPRTJUIN.js";i();var s=["live","unpublished","development"];async function A(r){let e=r.storeFqdn,t=(await m(r)).filter(c);if(t.length===0)throw new h(`There are no themes in the ${e} store`);return t.sort(p)}function c(r){return s.includes(r.role)}function p(r,e){return s.indexOf(r.role)-s.indexOf(e.role)}i();function R(r,e,t){return T(r,e,t)??d(r,e,t)}function T(r,e,t){let o=t.role;if(!o)return;let n=`No themes on the store ${r} match the role "${o}"`;return a(e,l=>l.role===o).orThrow(n)}function d(r,e,t){return t.themeIdentifiers.flatMap(n=>{let l=`No themes on the store ${r} match the ID or name "${n}"`;return a(e,u=>`${u.id}`===n||u.name.toLowerCase()===n.toLowerCase()?!0:g(u.name.toLowerCase(),n.toLowerCase())).orThrow(l)})}function a(r,e){let t=r.filter(e);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new h(o)}}}var f=class{constructor(e){this.queryProps=e}get role(){for(let e of s)if(this.queryProps[e])return e}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(e=>e?.length!==void 0?e.length>0:!!e)}};function g(r,e){let t=e.replace(/(^\*)|(\*$)/g,"");return e.startsWith("*")&&e.endsWith("*")?r.includes(t):e.startsWith("*")?r.endsWith(t):e.endsWith("*")?r.startsWith(t):!1}export{s as a,A as b,R as c,f as d};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as C}from"./chunk-NF2ABOOU.js";import{a as ce}from"./chunk-
|
|
1
|
+
import{a as C}from"./chunk-NF2ABOOU.js";import{a as ce}from"./chunk-RG5LO23H.js";import{b as te,c as oe,d as re,e as se,f as ie,g as ne,i as ae,j as le,l as me}from"./chunk-RCENTP43.js";import{a as Q}from"./chunk-2CH6J7DU.js";import{c as V,e as P,m as X}from"./chunk-5YI3LOKJ.js";import{c as Z,e as ee}from"./chunk-OUH45V4N.js";import{n as R,p as w}from"./chunk-R3AZXNAF.js";import{a as z,b as B}from"./chunk-BBAZPHWS.js";import{o as K,s as J,t as Y,u as j,w as N}from"./chunk-IX5ICOBV.js";import{k as v,l as x,n as y}from"./chunk-IO4AZDF4.js";import{ta as L,xa as $}from"./chunk-6PAOR3TW.js";import{a as O}from"./chunk-JUVAGMIH.js";import{J as U,s as M,u as I,v as H,w as T,y as q,z as G}from"./chunk-QVLBI5WV.js";import{d as _,e as W}from"./chunk-6RBPNXHX.js";import{d as g}from"./chunk-U3WI3SBU.js";import{Gb as k,Ib as b,Nb as S,Qb as f,tb as p}from"./chunk-YCX775XO.js";import{g as d}from"./chunk-VPRTJUIN.js";d();d();d();d();var de={workPromise:Promise.resolve()};async function he(e,t,r,o,s){if(r.length===0)return de;f("Initiating theme asset reconciliation process");let{filesOnlyPresentLocally:a,filesOnlyPresentOnRemote:i,filesWithConflictingChecksums:l}=be(r,o),n=a.length===0&&i.length===0&&l.length===0;if($(`theme-service:theme-reconciliation:manual:${n}`),n)return f("Local and remote checksums match - no need to reconcile theme assets"),de;let m=await Re({filesOnlyPresentLocally:a,filesOnlyPresentOnRemote:i,filesWithConflictingChecksums:l},s);return{workPromise:Se(e,t,o,m)}}function be(e,t){let r=new Set,o=[],s=[];for(let i of e){r.add(i.key);let l=t.files.get(i.key);l?i.checksum!==l.checksum&&s.push(i):o.push(i)}let a=Array.from(t.files.values()).filter(i=>!r.has(i.key));return{filesOnlyPresentOnRemote:A(o,t),filesOnlyPresentLocally:A(a,t),filesWithConflictingChecksums:A(s,t)}}function A(e,t){return t.applyIgnoreFilters(e).filter(o=>o.key.endsWith(".json"))}async function E(e,t,r){if(e.length===0)return;I({body:{list:{title:t,items:e.map(s=>s.key)}}}),await G({message:"Reconciliation Strategy",choices:[{label:r.remote.label,value:D},{label:r.local.label,value:ue}]})===D?r.remote.callback(e):r.local.callback(e)}async function Se(e,t,r,o){let{localFilesToDelete:s,filesToDownload:a,remoteFilesToDelete:i}=o,l=s.map(c=>r.delete(c.key)),n=C(a,w,async c=>{let h=await v(e.id,c.map(u=>u.key),t);return Promise.all(h.map(u=>{if(u)return r.write(u)}))}),m=x(e.id,i.map(c=>c.key),t);await Promise.all([...l,...n,m])}async function Re(e,t){let{filesOnlyPresentLocally:r,filesOnlyPresentOnRemote:o,filesWithConflictingChecksums:s}=e,a=[],i=[],l=[];return t.noDelete||await E(r,"The files listed below are only present locally. What would you like to do?",{remote:{label:"Delete files from the local directory",callback:n=>{a.push(...n)}},local:{label:"Upload local files to the remote theme",callback:()=>{}}}),await E(o,"The files listed below are only present on the remote theme. What would you like to do?",{remote:{label:"Download remote files to the local directory",callback:n=>{i.push(...n)}},local:{label:"Delete files from the remote theme",callback:n=>{l.push(...n)}}}),await E(s,"The files listed below differ between the local and remote versions. What would you like to do?",{remote:{label:"Keep the remote version",callback:n=>{i.push(...n)}},local:{label:"Keep the local version",callback:()=>{}}}),{localFilesToDelete:a,filesToDownload:i,remoteFilesToDelete:l}}d();var Ae=3e3,F=class extends Error{};function pe(e,t,r,o,s,a){f("Listening for changes in the theme editor");let i=5,l=0,n="",m=r,c=async()=>{await new Promise(h=>setTimeout(h,Ae)),m=await Ee(e,t,m,o,s).then(h=>(l=0,n="",h)).catch(h=>{if(l++,h.message!==n&&(n=h.message,P("Error while polling for changes.",h)),l>=i){let u=new g("Too many polling errors...","Please check the errors above and ensure you have a stable internet connection.");q(u),a(u)}return m})};setTimeout(async()=>{for(;;)await c()})}async function Ee(e,t,r,o,s){let a=new Set(o.unsyncedFileKeys),i=fe(r,o,a),l=await y(e.id,t).then(c=>fe(c,o,a)),n=Fe(i,l),m=De(l,i);return await $e(o,n),await Oe(e,t,o,n),await Le(o,m,s),l}function De(e,t){let r=new Map(e.map(s=>[s.key,s]));return t.filter(s=>r.get(s.key)===void 0)}function Fe(e,t){let r=new Map(e.map(s=>[s.key,s]));return t.filter(s=>{let a=r.get(s.key);if(!a||a.checksum!==s.checksum)return!0})}async function Oe(e,t,r,o){let s=o.filter(i=>r.files.get(i.key)?.checksum!==i.checksum),a=C(s,w,async i=>v(e.id,i.map(l=>l.key),t).then(l=>Promise.all(l.map(async n=>{n&&(await r.write(n),S(b`• ${R.format(new Date)} Synced ${k.raw("\xBB")} ${k.gray(`download ${n.key} from remote theme`)}`))}))));await Promise.all(a)}async function Le(e,t,r){if(!r.noDelete)return Promise.all(t.map(o=>{if(e.files.get(o.key))return e.delete(o.key).then(()=>{S(b`• ${R.format(new Date)} Synced ${k.raw("\xBB")} ${k.gray(`remove ${o.key} from local theme`)}`)})}))}async function $e(e,t){let r=new Map(e.files);await Promise.all(t.map(o=>e.read(o.key)));for(let o of t){let s=r.get(o.key)?.checksum,a=e.files.get(o.key)?.checksum;if(s!==a)throw new F(`Detected changes to the file '${o.key}' on both local and remote sources. Aborting...`)}}function fe(e,t,r){return t.applyIgnoreFilters(e).filter(s=>s.key.endsWith(".json")).filter(s=>!r.has(s.key))}var ue="local",D="remote";async function ye(e,t,r,o,s,a){f("Initiating theme asset reconciliation process"),await o.ready();let{workPromise:i}=await he(e,t,r,o,s);return{updatedRemoteChecksumsPromise:i.then(async()=>{let n=await y(e.id,t);return pe(e,t,n,o,s,a),n}),workPromise:i}}d();function ke(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise((o,s)=>{e=o,t=s}),resolve:e,reject:t}}import{createServer as _e}from"node:http";function ge(e,t){let{promise:r,resolve:o,reject:s}=ke(),a=ie(e,t),i=We(e,t,s),l=Promise.all([a,i.workPromise]).then(()=>t.localThemeFileSystem.startWatcher(e.id.toString(),t.session)),n=Ie(e,t,l);return{workPromise:l,serverStart:n.start,dispatchEvent:n.dispatch,renderDevSetupProgress:i.renderProgress,backgroundJobPromise:r,resolveBackgroundJob:o}}function We(e,t,r){let o=n=>(P("Failed to perform the initial theme synchronization.",n),r(n),new Promise(()=>{})),a=y(e.id,t.session).then(n=>Me(e,t,n,r)),i=a.then(async({updatedRemoteChecksumsPromise:n})=>{let m=await n;return ce(e,t.session,m,t.localThemeFileSystem,{nodelete:t.options.noDelete,deferPartialWork:!0,backgroundWorkCatch:o})});return{workPromise:i.then(n=>n.workPromise).catch(o),renderProgress:async()=>{if(t.options.themeEditorSync){let{workPromise:m}=await a;await ee([{title:"Performing file synchronization. This may take a while...",task:async()=>{await m}}])}let{renderThemeSyncProgress:n}=await i;await n()}}}function Me(e,t,r,o){return t.options.themeEditorSync?ye(e,t.session,r,t.localThemeFileSystem,{noDelete:t.options.noDelete,ignore:t.options.ignore,only:t.options.only},o):Promise.resolve({updatedRemoteChecksumsPromise:Promise.resolve(r),workPromise:Promise.resolve()})}function Ie(e,t,r){let o=j(),s=[`http://${t.options.host}:${t.options.port}`,`https://${t.session.storeFqdn}`];o.use(Y(async()=>(await r,J(i=>{i.node.req.headers.origin&&K(i,{origin:n=>s.includes(n),credentials:!0,methods:["GET","POST","HEAD","OPTIONS"],preflight:{statusCode:204}})})))),t.options.liveReload!=="off"&&o.use(ne(e,t)),o.use(re(e,t)),o.use(te(e,t)),o.use(oe(e,t));let a=_e(N(o));return{dispatch:o.handler.bind(o),start:async()=>new Promise(i=>a.listen({port:t.options.port,host:t.options.host},()=>i({close:async()=>{await Promise.all([new Promise(l=>{a.closeAllConnections(),a.close(l)})])}})))}}import He from"readline";var qe="127.0.0.1",Ge="9292",ve=!1;async function Bt(e){if(!await me(e.directory)&&!await Z(e.force))return;e.password?.startsWith("shpat_")&&T({headline:"Admin API token missing features:",body:["Directly using an Admin API token will result in some missing features.","We recommend generating a password from the Theme Access app.","Alternatively, you can authenticate normally by not passing the --password flag.",`
|
|
2
2
|
`,{list:{title:"Known limitations:",items:["Hot module reloading","Password protected storefronts"]}}],link:{label:"Theme Access app",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-access"}}),e.listing&&await ae(e.directory,e.listing);let t=await V(e.adminSession).then(Te=>Te?Q(e.storePassword,e.adminSession.storeFqdn):void 0),r=se(),o=le(e.directory,{filters:e,listing:e.listing,noDelete:e.noDelete,notify:e.notify}),s=e.host??qe;if(e.port&&!await B(Number(e.port)))throw new g(`Port ${e.port} is not available. Try a different port or remove the --port flag to use an available port.`);let a=e.port??String(await z(Number(Ge))),i={local:`http://${s}:${a}`,giftCard:`http://${s}:${a}/gift_cards/[store_id]/preview`,themeEditor:`https://${e.store}/admin/themes/${e.theme.id}/editor?hr=${a}`,preview:`https://${e.store}/?preview_theme_id=${e.theme.id}`},l=await t,m={session:await X(e.theme.id.toString(),e.adminSession,e.password,l),localThemeFileSystem:o,localThemeExtensionFileSystem:r,directory:e.directory,type:"theme",lastRequestedPath:"",options:{themeEditorSync:e["theme-editor-sync"],host:s,port:a,open:e.open,liveReload:e["live-reload"],noDelete:e.noDelete,ignore:e.ignore,only:e.only,errorOverlay:e["error-overlay"]}},{serverStart:c,renderDevSetupProgress:h,backgroundJobPromise:u,resolveBackgroundJob:Pe}=ge(e.theme,m);He.emitKeypressEvents(process.stdin);let Ce=xe(i,m,Pe);process.stdin.on("keypress",Ce),await Promise.all([u,h().then(c).then(()=>{process.stdin.isTTY&&process.stdin.setRawMode(!0),Je(i),e.open&&we(i.local,"development server")})]),await Ue(e.commandConfig,e.adminSession),process.exit(0)}async function Ue(e,t){if(!ve){ve=!0;try{await _(()=>({store_fqdn_hash:O(t.storeFqdn)})),await W(()=>({store_fqdn:t.storeFqdn})),await L({config:e,exitMode:"ok"})}catch{}}}function xe(e,t,r){let o=M(we,100,{leading:!0,trailing:!1});return(s,a)=>{if(a.ctrl&&a.name==="c"){r();return}switch(a.name){case void 0:break;case"t":o(e.local,"localhost");break;case"p":o(e.preview,"theme preview");break;case"e":o(t.lastRequestedPath==="/"?e.themeEditor:`${e.themeEditor}&previewPath=${encodeURIComponent(t.lastRequestedPath)}`,"theme editor");break;case"g":o(e.giftCard,"gift card preview");break;default:break}}}function we(e,t){U(e).catch(Ke(t))}function Ke(e){return t=>{T({headline:`Failed to open ${e}.`,body:t.stack??t.message})}}function Je(e){H({body:[{list:{title:p.bold("Preview your theme ")+p.cyan("(t)"),items:[{link:{url:e.local}}]}}],nextSteps:[[{link:{label:`Share your theme preview ${p.cyan("(p)")}`,url:e.preview}},{subdued:e.preview}],[{link:{label:`Customize your theme at the theme editor ${p.cyan("(e)")}`,url:e.themeEditor}}],[{link:{label:`Preview your gift cards ${p.cyan("(g)")}`,url:e.giftCard}}]]})}export{Bt as a,we as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-6UGHSVRE.js";import{b as e}from"./chunk-WQ3LY4W5.js";import{g as i}from"./chunk-VPRTJUIN.js";i();var t=class extends e{static{this.description="View the UI kit components that display static output"}static{this.hidden=!0}async run(){await o()}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-7MZW3UQH.js";import{g as t}from"./chunk-VPRTJUIN.js";t();var e=async()=>a.getAllSensitiveMetadata(),i=e;export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as c,b as d}from"./chunk-
|
|
1
|
+
import{a as c,b as d}from"./chunk-JVSOZDAO.js";import{m as p,n as f}from"./chunk-6PAOR3TW.js";import{d as n}from"./chunk-U3WI3SBU.js";import{Ga as l,na as m}from"./chunk-YCX775XO.js";import{d as a}from"./chunk-IU2ZQ6TE.js";import{g as s}from"./chunk-VPRTJUIN.js";s();import{writeFile as E}from"fs/promises";var u=1024*1024,h=100,w=h*u;async function _(r,t){let e=a(t,"manifest.json");await E(e,JSON.stringify(r,null,2))}var S=["!**/*.js.map","!**/*.metafile.json"];async function b(r,t,e){let o=e??["**/*",...S];t.endsWith(".br")?await d({inputDirectory:r,outputPath:t,matchFilePattern:o}):await c({inputDirectory:r,outputZipPath:t,matchFilePattern:o})}async function C(r,t){let e=await l(t);if(e>w){let g=`${(Math.ceil(e/u*100)/100).toFixed(2)} MB`;throw new n(`Your app bundle exceeds the ${h} MB upload limit (it is ${g}).`,"Check the asset paths in your extension configuration \u2014 a misconfigured source can pull in much more than intended. Exclude large files or directories from your bundle, then try again.")}let o=p(),i=m(t);o.append("my_upload",i),await f(r,{method:"put",body:i,headers:o.getHeaders()},"slow-request")}async function N(r,t){let e=await r.generateSignedUploadUrl(t);if(!e.assetUrl||e.userErrors?.length>0){let o=e.userErrors.map(i=>i.message).join(", ");throw new n(o)}return e.assetUrl}export{_ as a,S as b,b as c,C as d,N as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as m}from"./chunk-
|
|
1
|
+
import{b as m}from"./chunk-5ELT7DPJ.js";import{Ib as t,Qb as o}from"./chunk-YCX775XO.js";import{g as h}from"./chunk-VPRTJUIN.js";h();var n;function r(){return n??(n=new m({projectName:"shopify-cli-host-theme-conf"})),n}function u(e){return o(t`Getting host theme...`),r().get(e)}function p(e,s){o(t`Setting host theme...`),r().set(e,s)}function g(e){o(t`Removing host theme...`),r().delete(e)}export{u as a,p as b,g as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{b as mi}from"./chunk-OLZHWPZP.js";import{$ as Xn,A as Un,Aa as ci,B as b,Ba as di,C as U,Ca as ui,D as Bn,E as ye,F as er,G as qe,H as rt,I as Se,Ia as Io,J as Vn,Ja as fi,K as Ne,Ka as pr,L as xe,La as ze,M as Gn,Ma as at,N as tr,Na as It,O as pe,Oa as hr,P as Co,Pa as lt,Q as qn,Qa as gr,R as ot,Ra as pi,S as nt,Sa as hi,T as Wn,Ta as gi,U as rr,Ua as yr,V as Yn,Va as yi,W as zn,Wa as wi,X as Jn,Xa as vi,Y as Qn,Z as Kn,_ as We,a as me,aa as W,b as xt,ba as it,c as Rn,ca as Zn,d as De,da as ei,e as Ee,ea as or,f as Ge,fa as nr,g as An,ga as ti,h as Fn,ha as he,i as jn,ia as ri,j as ko,ja as oi,k as tt,ka as To,l as Pt,la as ni,m as je,ma as ii,n as Nn,na as si,o as Kt,oa as ir,p as Eo,pa as sr,q as Ct,qa as ar,r as So,ra as ai,s as Ln,sa as lr,t as Mn,ta as cr,u as xo,ua as li,v as Hn,va as dr,w as Po,wa as ur,x as Xt,xa as Ye,y as Zt,ya as st,z as Tt,za as fr}from"./chunk-BTQNZGDM.js";import{a as Pn}from"./chunk-3VZEETAV.js";import{a as bi}from"./chunk-Q7PTJGXU.js";import{b as Cn,c as Tn,d as Qt,g as In,i as Dn,j as On,k as _n}from"./chunk-WOR3LSFH.js";import{a as rl,b as $n,d as ol}from"./chunk-UDNS3XF3.js";import{a as wr}from"./chunk-WDC3KIZT.js";import{a as mr,b as Do,c as Oo}from"./chunk-53YAQOZI.js";import{c as xn}from"./chunk-QSTEVZFQ.js";import{Aa as Za,Ba as bn,Ca as el,Da as tl,fa as fe,m as mn,n as ie}from"./chunk-3ODFSKK3.js";import{B as vn,l as hn,m as be,p as et,s as gn,u as yn,x as wn}from"./chunk-VGD3F3EE.js";import{b as D}from"./chunk-NHO3LLWK.js";import{b as fn}from"./chunk-JUVAGMIH.js";import{A as Ie,D as ee,O as kn,a as Yt,u as V,v as N,w as q,y as $e,z as Re}from"./chunk-SPDYVDFS.js";import{d as E,g as zt}from"./chunk-5CSQNFG3.js";import{a as nl}from"./chunk-HZA6IAA4.js";import{b as Xa}from"./chunk-QYR5VPQA.js";import{$ as ln,Ca as wo,Cb as pn,Ea as qt,Ga as dn,Gb as ke,Ha as un,Ib as Y,Ka as vo,Kb as Ae,Nb as $,Oa as bo,Ob as En,Pb as Fe,Qb as Sn,Rb as B,Sb as se,Ta as G,V as Vt,Wa as St,ma as de,na as cn,pa as Gt,qa as yo,qb as Wt,tb as L,ua as J,wa as Et,ya as ve}from"./chunk-U5DLHKFU.js";import{s as Jt}from"./chunk-UWN2OXJT.js";import{d as x,f as C,g as ne,i as go,j as Ze,k as sn,q as an}from"./chunk-IU2ZQ6TE.js";import{a as we,c as ce,e as Q,g as l}from"./chunk-VPRTJUIN.js";var Ls=ce((Mw,Ns)=>{l();Ns.exports=Fc;function Fc(e){var t=e._readableState;return t?t.objectMode||typeof e._duplexState=="number"?e.read():e.read(jc(t)):null}function jc(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}});var Vo=ce((Uw,Bs)=>{l();var Wr=$n(),Ms=bn(),Nc=xn(),Lc=Ls(),Hs=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),Bo=function(e,t){e._corked?e.once("uncork",t):t()},Mc=function(e,t){e._autoDestroy&&e.destroy(t)},Us=function(e,t){return function(r){r?Mc(e,r.message==="premature close"?null:r):t&&!e._ended&&e.end()}},Hc=function(e,t){if(!e||e._writableState&&e._writableState.finished)return t();if(e._writableState)return e.end(t);e.end(),t()},Uc=function(e){return new Wr.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},K=function(e,t,r){if(!(this instanceof K))return new K(e,t,r);Wr.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||r.autoDestroy!==!1,this._forwardDestroy=!r||r.destroy!==!1,this._forwardEnd=!r||r.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};Nc(K,Wr.Duplex);K.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new K(e,t,r)};K.prototype.cork=function(){++this._corked===1&&this.emit("cork")};K.prototype.uncork=function(){this._corked&&--this._corked===0&&this.emit("uncork")};K.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.end();return}var t=this,r=Ms(e,{writable:!0,readable:!1},Us(this,this._forwardEnd)),o=function(){var i=t._ondrain;t._ondrain=null,i&&i()},n=function(){t._writable.removeListener("drain",o),r()};this._unwrite&&process.nextTick(o),this._writable=e,this._writable.on("drain",o),this._unwrite=n,this.uncork()};K.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.push(null),this.resume();return}var t=this,r=Ms(e,{writable:!1,readable:!0},Us(this)),o=function(){t._forward()},n=function(){t.push(null)},i=function(){t._readable2.removeListener("readable",o),t._readable2.removeListener("end",n),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:Uc(e),this._readable2.on("readable",o),this._readable2.on("end",n),this._unread=i,this._forward()};K.prototype._read=function(){this._drained=!0,this._forward()};K.prototype._forward=function(){if(!(this._forwarding||!this._readable2||!this._drained)){this._forwarding=!0;for(var e;this._drained&&(e=Lc(this._readable2))!==null;)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}};K.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;process.nextTick(function(){t._destroy(e)})}};K.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")};K.prototype._write=function(e,t,r){if(this.destroyed)return r();if(this._corked)return Bo(this,this._write.bind(this,e,t,r));if(e===Hs)return this._finish(r);if(!this._writable)return r();this._writable.write(e)===!1?this._ondrain=r:r()};K.prototype._finish=function(e){var t=this;this.emit("preend"),Bo(this,function(){Hc(t._forwardEnd&&t._writable,function(){t._writableState.prefinished===!1&&(t._writableState.prefinished=!0),t.emit("prefinish"),Bo(t,e)})})};K.prototype.end=function(e,t,r){return typeof e=="function"?this.end(null,null,e):typeof t=="function"?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(Hs),Wr.Writable.prototype.end.call(this,r))};Bs.exports=K});var Gs=ce((Vw,Vs)=>{l();Vs.exports=Vc;var Bc=Object.prototype.hasOwnProperty;function Vc(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)Bc.call(r,o)&&(e[o]=r[o])}return e}});var qo=ce((qw,Yr)=>{l();var qs=$n().Transform,Ws=we("util").inherits,Ys=Gs();function ht(e){qs.call(this,e),this._destroyed=!1}Ws(ht,qs);ht.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;process.nextTick(function(){e&&t.emit("error",e),t.emit("close")})}};function Gc(e,t,r){r(null,e)}function Go(e){return function(t,r,o){return typeof t=="function"&&(o=r,r=t,t={}),typeof r!="function"&&(r=Gc),typeof o!="function"&&(o=null),e(t,r,o)}}Yr.exports=Go(function(e,t,r){var o=new ht(e);return o._transform=t,r&&(o._flush=r),o});Yr.exports.ctor=Go(function(e,t,r){function o(n){if(!(this instanceof o))return new o(n);this.options=Ys(e,n),ht.call(this,this.options)}return Ws(o,ht),o.prototype._transform=t,r&&(o.prototype._flush=r),o});Yr.exports.obj=Go(function(e,t,r){var o=new ht(Ys({objectMode:!0,highWaterMark:16},e));return o._transform=t,r&&(o._flush=r),o})});var Qs=ce((Yw,Js)=>{l();var qc=Vo(),Wc=qo(),Yc=Xa(),zc=function(e){return!Buffer.isBuffer(e)&&typeof e!="string"},zs=function(e,t){if(typeof e=="number"&&(e={maxBuffer:e}),typeof e=="function")return zs(null,e);e||(e={});var r=typeof e.maxBuffer=="number"?e.maxBuffer:65535,o=e.strict,n=e.newline!==!1,i=[],s=0,a=qc.obj(),c=Wc.obj({highWaterMark:1},function(m,f,p){if(zc(m))return d(m,null,p);if(Buffer.isBuffer(m)||(m=Yc(m)),n){var g=Array.prototype.indexOf.call(m,10);if(g>0&&m[g-1]===13&&g--,g>-1)return i.push(m.slice(0,g)),d(Buffer.concat(i),m.slice(g),p)}if(i.push(m),s+=m.length,s<r)return p();if(o)return p(new Error("No newline found"));d(Buffer.concat(i),null,p)}),u=function(){if(o)return a.destroy(new Error("No newline found"));a.cork(),d(Buffer.concat(i),null,function(m){if(m)return a.destroy(m);a.uncork()})},d=function(m,f,p){a.removeListener("preend",u),t(m,function(g,w){if(g)return p(g);a.setWritable(w),a.setReadable(w),m&&w.write(m),f&&w.write(f),f=i=c=null,p()})};return a.on("preend",u),a.setWritable(c),a};Js.exports=zs});var Zs=ce((Jw,Xs)=>{l();var Jc=Za(),Qc=bn(),Wo=we("fs"),Mt=function(){},Kc=/^v?\.0/.test(process.version),zr=function(e){return typeof e=="function"},Xc=function(e){return!Kc||!Wo?!1:(e instanceof(Wo.ReadStream||Mt)||e instanceof(Wo.WriteStream||Mt))&&zr(e.close)},Zc=function(e){return e.setHeader&&zr(e.abort)},ed=function(e,t,r,o){o=Jc(o);var n=!1;e.on("close",function(){n=!0}),Qc(e,{readable:t,writable:r},function(s){if(s)return o(s);n=!0,o()});var i=!1;return function(s){if(!n&&!i){if(i=!0,Xc(e))return e.close(Mt);if(Zc(e))return e.abort();if(zr(e.destroy))return e.destroy();o(s||new Error("stream was destroyed"))}}},Ks=function(e){e()},td=function(e,t){return e.pipe(t)},rd=function(){var e=Array.prototype.slice.call(arguments),t=zr(e[e.length-1]||Mt)&&e.pop()||Mt;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,o=e.map(function(n,i){var s=i<e.length-1,a=i>0;return ed(n,s,a,function(c){r||(r=c),c&&o.forEach(Ks),!s&&(o.forEach(Ks),t(r))})});e.reduce(td)};Xs.exports=rd});var ra=ce((Kw,Jr)=>{l();var od=Zs(),nd=xn(),ea=Vo(),ta=function(e){return e.length?Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e):[]},Yo=function(e){var t=function(){var r=ta(arguments);if(!(this instanceof t))return new t(r);ea.call(this,null,null,e),r.length&&this.setPipeline(r)};return nd(t,ea),t.prototype.setPipeline=function(){var r=ta(arguments),o=this,n=!1,i=r[0],s=r[r.length-1];s=s.readable?s:null,i=i.writable?i:null;var a=function(){r[0].emit("error",new Error("stream was destroyed"))};if(this.on("close",a),this.on("prefinish",function(){n||o.cork()}),od(r,function(c){if(o.removeListener("close",a),c)return o.destroy(c.message==="premature close"?null:c);n=!0,o._autoDestroy===!1&&(o._autoDestroy=!0),o.uncork()}),this.destroyed)return a();this.setWritable(i),this.setReadable(s)},t};Jr.exports=Yo({autoDestroy:!1,destroy:!1});Jr.exports.obj=Yo({autoDestroy:!1,destroy:!1,objectMode:!0,highWaterMark:16});Jr.exports.ctor=Yo});var na=ce((Zw,oa)=>{"use strict";l();oa.exports=function(e){return!e||e.length<3?!1:e[0]===31&&e[1]===139&&e[2]===8}});var sa=ce((tv,ia)=>{"use strict";l();ia.exports=function(e){return!e||e.length<2?!1:e[0]===120&&(e[1]===1||e[1]===156||e[1]===218)}});var da=ce((ov,ca)=>{l();var aa=we("zlib"),id=Qs(),sd=qo(),la=ra(),ad=na(),ld=sa(),cd=function(e){return ad(e)?1:ld(e)?2:0},zo=function(e){return e===void 0&&(e=3),id({newline:!1,maxBuffer:10},function(t,r){if(e<0)return r(new Error("Maximum recursion reached"));switch(cd(t)){case 1:r(null,la(aa.createGunzip(),zo(e-1)));break;case 2:r(null,la(aa.createInflate(),zo(e-1)));break;default:r(null,sd())}})};ca.exports=zo});var ya=ce((iv,ga)=>{"use strict";l();var ge=we("fs"),Ke=we("path"),dd=ge.lchown?"lchown":"chown",ud=ge.lchownSync?"lchownSync":"chownSync",fa=ge.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),ua=(e,t,r)=>{try{return ge[ud](e,t,r)}catch(o){if(o.code!=="ENOENT")throw o}},fd=(e,t,r)=>{try{return ge.chownSync(e,t,r)}catch(o){if(o.code!=="ENOENT")throw o}},md=fa?(e,t,r,o)=>n=>{!n||n.code!=="EISDIR"?o(n):ge.chown(e,t,r,o)}:(e,t,r,o)=>o,Jo=fa?(e,t,r)=>{try{return ua(e,t,r)}catch(o){if(o.code!=="EISDIR")throw o;fd(e,t,r)}}:(e,t,r)=>ua(e,t,r),pd=process.version,ma=(e,t,r)=>ge.readdir(e,t,r),hd=(e,t)=>ge.readdirSync(e,t);/^v4\./.test(pd)&&(ma=(e,t,r)=>ge.readdir(e,r));var Qr=(e,t,r,o)=>{ge[dd](e,t,r,md(e,t,r,n=>{o(n&&n.code!=="ENOENT"?n:null)}))},pa=(e,t,r,o,n)=>{if(typeof t=="string")return ge.lstat(Ke.resolve(e,t),(i,s)=>{if(i)return n(i.code!=="ENOENT"?i:null);s.name=t,pa(e,s,r,o,n)});if(t.isDirectory())Qo(Ke.resolve(e,t.name),r,o,i=>{if(i)return n(i);let s=Ke.resolve(e,t.name);Qr(s,r,o,n)});else{let i=Ke.resolve(e,t.name);Qr(i,r,o,n)}},Qo=(e,t,r,o)=>{ma(e,{withFileTypes:!0},(n,i)=>{if(n){if(n.code==="ENOENT")return o();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return o(n)}if(n||!i.length)return Qr(e,t,r,o);let s=i.length,a=null,c=u=>{if(!a){if(u)return o(a=u);if(--s===0)return Qr(e,t,r,o)}};i.forEach(u=>pa(e,u,t,r,c))})},gd=(e,t,r,o)=>{if(typeof t=="string")try{let n=ge.lstatSync(Ke.resolve(e,t));n.name=t,t=n}catch(n){if(n.code==="ENOENT")return;throw n}t.isDirectory()&&ha(Ke.resolve(e,t.name),r,o),Jo(Ke.resolve(e,t.name),r,o)},ha=(e,t,r)=>{let o;try{o=hd(e,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Jo(e,t,r);throw n}return o&&o.length&&o.forEach(n=>gd(e,n,t,r)),Jo(e,t,r)};ga.exports=Qo;Qo.sync=ha});var ka=ce((av,ba)=>{l();var Kr=we("path"),wa=we("fs"),va=parseInt("0777",8);ba.exports=gt.mkdirp=gt.mkdirP=gt;function gt(e,t,r,o){typeof t=="function"?(r=t,t={}):(!t||typeof t!="object")&&(t={mode:t});var n=t.mode,i=t.fs||wa;n===void 0&&(n=va&~process.umask()),o||(o=null);var s=r||function(){};e=Kr.resolve(e),i.mkdir(e,n,function(a){if(!a)return o=o||e,s(null,o);a.code==="ENOENT"?gt(Kr.dirname(e),t,function(c,u){c?s(c,u):gt(e,t,s,u)}):i.stat(e,function(c,u){c||!u.isDirectory()?s(a,o):s(null,o)})})}gt.sync=function e(t,r,o){(!r||typeof r!="object")&&(r={mode:r});var n=r.mode,i=r.fs||wa;n===void 0&&(n=va&~process.umask()),o||(o=null),t=Kr.resolve(t);try{i.mkdirSync(t,n),o=o||t}catch(a){switch(a.code){case"ENOENT":o=e(Kr.dirname(t),r,o),e(t,r,o);break;default:var s;try{s=i.statSync(t)}catch{throw a}if(!s.isDirectory())throw a;break}}return o}});var Oa=ce(Zo=>{l();var yd=ya(),xa=ol(),Pa=el(),wd=ka(),Ca=we("fs"),X=we("path"),vd=we("os"),Ht=vd.platform()==="win32",Ut=function(){},Xo=function(e){return e},Ko=Ht?function(e){return e.replace(/\\/g,"/").replace(/[:?<>|]/g,"_")}:Xo,bd=function(e,t,r,o,n,i){var s=n||["."];return function(c){if(!s.length)return c();var u=s.shift(),d=X.join(r,u);t.call(e,d,function(m,f){if(m)return c(m);if(!f.isDirectory())return c(null,u,f);e.readdir(d,function(p,g){if(p)return c(p);i&&g.sort();for(var w=0;w<g.length;w++)o(X.join(r,u,g[w]))||s.push(X.join(u,g[w]));c(null,u,f)})})}},Ta=function(e,t){return function(r){r.name=r.name.split("/").slice(t).join("/");var o=r.linkname;return o&&(r.type==="link"||X.isAbsolute(o))&&(r.linkname=o.split("/").slice(t).join("/")),e(r)}};Zo.pack=function(e,t){e||(e="."),t||(t={});var r=t.fs||Ca,o=t.ignore||t.filter||Ut,n=t.map||Ut,i=t.mapStream||Xo,s=bd(r,t.dereference?r.stat:r.lstat,e,o,t.entries,t.sort),a=t.strict!==!1,c=typeof t.umask=="number"?~t.umask:~Ia(),u=typeof t.dmode=="number"?t.dmode:0,d=typeof t.fmode=="number"?t.fmode:0,m=t.pack||xa.pack(),f=t.finish||Ut;t.strip&&(n=Ta(n,t.strip)),t.readable&&(u|=parseInt(555,8),d|=parseInt(444,8)),t.writable&&(u|=parseInt(333,8),d|=parseInt(222,8));var p=function(k,y){r.readlink(X.join(e,k),function(v,h){if(v)return m.destroy(v);y.linkname=Ko(h),m.entry(y,w)})},g=function(k,y,v){if(k)return m.destroy(k);if(!y)return t.finalize!==!1&&m.finalize(),f(m);if(v.isSocket())return w();var h={name:Ko(y),mode:(v.mode|(v.isDirectory()?u:d))&c,mtime:v.mtime,size:v.size,type:"file",uid:v.uid,gid:v.gid};if(v.isDirectory())return h.size=0,h.type="directory",h=n(h)||h,m.entry(h,w);if(v.isSymbolicLink())return h.size=0,h.type="symlink",h=n(h)||h,p(y,h);if(h=n(h)||h,!v.isFile())return a?m.destroy(new Error("unsupported type for "+y)):w();var S=m.entry(h,w);if(S){var P=i(r.createReadStream(X.join(e,y),{start:0,end:h.size>0?h.size-1:h.size}),h);P.on("error",function(_){S.destroy(_)}),Pa(P,S)}},w=function(k){if(k)return m.destroy(k);s(g)};return w(),m};var kd=function(e){return e.length?e[e.length-1]:null},Ed=function(){return process.getuid?process.getuid():-1},Ia=function(){return process.umask?process.umask():0};Zo.extract=function(e,t){e||(e="."),t||(t={});var r=t.fs||Ca,o=t.ignore||t.filter||Ut,n=t.map||Ut,i=t.mapStream||Xo,s=t.chown!==!1&&!Ht&&Ed()===0,a=t.extract||xa.extract(),c=[],u=new Date,d=typeof t.umask=="number"?~t.umask:~Ia(),m=typeof t.dmode=="number"?t.dmode:0,f=typeof t.fmode=="number"?t.fmode:0,p=t.strict!==!1;t.strip&&(n=Ta(n,t.strip)),t.readable&&(m|=parseInt(555,8),f|=parseInt(444,8)),t.writable&&(m|=parseInt(333,8),f|=parseInt(222,8));var g=function(y,v){for(var h;(h=kd(c))&&y.slice(0,h[0].length)!==h[0];)c.pop();if(!h)return v();r.utimes(h[0],u,h[1],v)},w=function(y,v,h){if(t.utimes===!1)return h();if(v.type==="directory")return r.utimes(y,u,v.mtime,h);if(v.type==="symlink")return g(y,h);r.utimes(y,u,v.mtime,function(S){if(S)return h(S);g(y,h)})},k=function(y,v,h){var S=v.type==="symlink",P=S?r.lchmod:r.chmod,_=S?r.lchown:r.chown;if(!P)return h();var I=(v.mode|(v.type==="directory"?m:f))&d;_&&s?_.call(r,y,v.uid,v.gid,F):F(null);function F(R){if(R)return h(R);if(!P)return h();P.call(r,y,I,h)}};return a.on("entry",function(y,v,h){y=n(y)||y,y.name=Ko(y.name);var S=X.join(e,X.join("/",y.name));if(o(S,y))return v.resume(),h();var P=function(T){if(T)return h(T);w(S,y,function(j){if(j)return h(j);if(Ht)return h();k(S,y,h)})},_=function(){if(Ht)return h();r.unlink(S,function(){var T=X.resolve(X.dirname(S),y.linkname);if(!Sa(T,e))return h(new Error(S+" is not a valid symlink"));r.symlink(y.linkname,S,P)})},I=function(){if(Ht)return h();r.unlink(S,function(){var T=X.join(e,X.join("/",y.linkname));r.realpath(T,function(j,H){if(j||!Sa(H,e))return h(new Error(S+" is not a valid hardlink"));r.link(H,S,function(A){if(A&&A.code==="EPERM"&&t.hardlinkAsFilesFallback)return v=r.createReadStream(T),F();P(A)})})})},F=function(){var T=r.createWriteStream(S),j=i(v,y);T.on("error",function(H){j.destroy(H)}),Pa(j,T,function(H){if(H)return h(H);T.on("close",P)})};if(y.type==="directory")return c.push([S,y.mtime]),Ea(S,{fs:r,own:s,uid:y.uid,gid:y.gid},P);var R=X.dirname(S);Da(r,R,X.join(e,"."),function(T,j){if(T)return h(T);if(!j)return h(new Error(R+" is not a valid path"));Ea(R,{fs:r,own:s,uid:y.uid,gid:y.gid},function(H){if(H)return h(H);switch(y.type){case"file":return F();case"link":return I();case"symlink":return _()}if(p)return h(new Error("unsupported type for "+S+" ("+y.type+")"));v.resume(),h()})})}),t.finish&&a.on("finish",t.finish),a};function Da(e,t,r,o){if(t===r)return o(null,!0);e.lstat(t,function(n,i){if(n&&n.code!=="ENOENT")return o(n);if(n||i.isDirectory())return Da(e,X.join(t,".."),r,o);o(null,!1)})}function Ea(e,t,r){wd(e,{fs:t.fs},function(o,n){!o&&n&&t.own?yd(n,t.uid,t.gid,r):r(o)})}function Sa(e,t){return t=X.resolve(t),t===e||e.startsWith(t+X.sep)}});l();l();var xr=Q(me(),1);l();l();var vr=[{name:"npm",lockfile:"package-lock.json",alternativeLockfiles:["npm-shrinkwrap.json"],installCommand:"npm ci"},{name:"yarn",lockfile:"yarn.lock",installCommand:"yarn install --frozen-lockfile"},{name:"pnpm",lockfile:"pnpm-lock.yaml",installCommand:"pnpm install --frozen-lockfile"},{name:"bun",lockfile:"bun.lockb",alternativeLockfiles:["bun.lock"],installCommand:"bun install --frozen-lockfile"}];function il(e){let t="No lockfile found",r="If you don\u2019t commit a lockfile, then your app might install the wrong package versions when deploying. To avoid versioning issues, generate a new lockfile and commit it to your repository.",o=[["Generate a lockfile. Run",{command:"npm|yarn|pnpm install"}],"Commit the new file to your repository"];if(e)throw new E(t,r,o);q({headline:t,body:r,nextSteps:o})}function sl(e,t){let r=e.map(({packageManager:s,foundLockfile:a})=>`${a} (created by ${s.name})`),o="Multiple lockfiles found",n=[`Your project contains more than one lockfile. This can cause version conflicts when installing and deploying your app. The following lockfiles were detected:
|
|
1
|
+
import{b as mi}from"./chunk-OLZHWPZP.js";import{$ as Xn,A as Un,Aa as ci,B as b,Ba as di,C as U,Ca as ui,D as Bn,E as ye,F as er,G as qe,H as rt,I as Se,Ia as Io,J as Vn,Ja as fi,K as Ne,Ka as pr,L as xe,La as ze,M as Gn,Ma as at,N as tr,Na as It,O as pe,Oa as hr,P as Co,Pa as lt,Q as qn,Qa as gr,R as ot,Ra as pi,S as nt,Sa as hi,T as Wn,Ta as gi,U as rr,Ua as yr,V as Yn,Va as yi,W as zn,Wa as wi,X as Jn,Xa as vi,Y as Qn,Z as Kn,_ as We,a as me,aa as W,b as xt,ba as it,c as Rn,ca as Zn,d as De,da as ei,e as Ee,ea as or,f as Ge,fa as nr,g as An,ga as ti,h as Fn,ha as he,i as jn,ia as ri,j as ko,ja as oi,k as tt,ka as To,l as Pt,la as ni,m as je,ma as ii,n as Nn,na as si,o as Kt,oa as ir,p as Eo,pa as sr,q as Ct,qa as ar,r as So,ra as ai,s as Ln,sa as lr,t as Mn,ta as cr,u as xo,ua as li,v as Hn,va as dr,w as Po,wa as ur,x as Xt,xa as Ye,y as Zt,ya as st,z as Tt,za as fr}from"./chunk-WRM2O7V6.js";import{a as Pn}from"./chunk-3VZEETAV.js";import{a as bi}from"./chunk-J6OZYQGF.js";import{b as Cn,c as Tn,d as Qt,g as In,i as Dn,j as On,k as _n}from"./chunk-JYZTW7B4.js";import{a as rl,b as $n,d as ol}from"./chunk-WMO777NI.js";import{a as wr}from"./chunk-WDC3KIZT.js";import{a as mr,b as Do,c as Oo}from"./chunk-XOH74NUM.js";import{c as xn}from"./chunk-QSTEVZFQ.js";import{Aa as Za,Ba as bn,Ca as el,Da as tl,fa as fe,m as mn,n as ie}from"./chunk-6PAOR3TW.js";import{B as vn,l as hn,m as be,p as et,s as gn,u as yn,x as wn}from"./chunk-54XCZDJR.js";import{b as D}from"./chunk-WQ3LY4W5.js";import{b as fn}from"./chunk-JUVAGMIH.js";import{A as Ie,D as ee,O as kn,a as Yt,u as V,v as N,w as q,y as $e,z as Re}from"./chunk-QVLBI5WV.js";import{d as E,g as zt}from"./chunk-U3WI3SBU.js";import{a as nl}from"./chunk-HZA6IAA4.js";import{b as Xa}from"./chunk-QYR5VPQA.js";import{$ as ln,Ca as wo,Cb as pn,Ea as qt,Ga as dn,Gb as ke,Ha as un,Ib as Y,Ka as vo,Kb as Ae,Nb as $,Oa as bo,Ob as En,Pb as Fe,Qb as Sn,Rb as B,Sb as se,Ta as G,V as Vt,Wa as St,ma as de,na as cn,pa as Gt,qa as yo,qb as Wt,tb as L,ua as J,wa as Et,ya as ve}from"./chunk-YCX775XO.js";import{s as Jt}from"./chunk-PGUKHYQ5.js";import{d as x,f as C,g as ne,i as go,j as Ze,k as sn,q as an}from"./chunk-IU2ZQ6TE.js";import{a as we,c as ce,e as Q,g as l}from"./chunk-VPRTJUIN.js";var Ls=ce((Mw,Ns)=>{l();Ns.exports=Fc;function Fc(e){var t=e._readableState;return t?t.objectMode||typeof e._duplexState=="number"?e.read():e.read(jc(t)):null}function jc(e){if(e.buffer.length){var t=e.bufferIndex||0;if(e.buffer.head)return e.buffer.head.data.length;if(e.buffer.length-t>0&&e.buffer[t])return e.buffer[t].length}return e.length}});var Vo=ce((Uw,Bs)=>{l();var Wr=$n(),Ms=bn(),Nc=xn(),Lc=Ls(),Hs=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from([0]):new Buffer([0]),Bo=function(e,t){e._corked?e.once("uncork",t):t()},Mc=function(e,t){e._autoDestroy&&e.destroy(t)},Us=function(e,t){return function(r){r?Mc(e,r.message==="premature close"?null:r):t&&!e._ended&&e.end()}},Hc=function(e,t){if(!e||e._writableState&&e._writableState.finished)return t();if(e._writableState)return e.end(t);e.end(),t()},Uc=function(e){return new Wr.Readable({objectMode:!0,highWaterMark:16}).wrap(e)},K=function(e,t,r){if(!(this instanceof K))return new K(e,t,r);Wr.Duplex.call(this,r),this._writable=null,this._readable=null,this._readable2=null,this._autoDestroy=!r||r.autoDestroy!==!1,this._forwardDestroy=!r||r.destroy!==!1,this._forwardEnd=!r||r.end!==!1,this._corked=1,this._ondrain=null,this._drained=!1,this._forwarding=!1,this._unwrite=null,this._unread=null,this._ended=!1,this.destroyed=!1,e&&this.setWritable(e),t&&this.setReadable(t)};Nc(K,Wr.Duplex);K.obj=function(e,t,r){return r||(r={}),r.objectMode=!0,r.highWaterMark=16,new K(e,t,r)};K.prototype.cork=function(){++this._corked===1&&this.emit("cork")};K.prototype.uncork=function(){this._corked&&--this._corked===0&&this.emit("uncork")};K.prototype.setWritable=function(e){if(this._unwrite&&this._unwrite(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.end();return}var t=this,r=Ms(e,{writable:!0,readable:!1},Us(this,this._forwardEnd)),o=function(){var i=t._ondrain;t._ondrain=null,i&&i()},n=function(){t._writable.removeListener("drain",o),r()};this._unwrite&&process.nextTick(o),this._writable=e,this._writable.on("drain",o),this._unwrite=n,this.uncork()};K.prototype.setReadable=function(e){if(this._unread&&this._unread(),this.destroyed){e&&e.destroy&&e.destroy();return}if(e===null||e===!1){this.push(null),this.resume();return}var t=this,r=Ms(e,{writable:!1,readable:!0},Us(this)),o=function(){t._forward()},n=function(){t.push(null)},i=function(){t._readable2.removeListener("readable",o),t._readable2.removeListener("end",n),r()};this._drained=!0,this._readable=e,this._readable2=e._readableState?e:Uc(e),this._readable2.on("readable",o),this._readable2.on("end",n),this._unread=i,this._forward()};K.prototype._read=function(){this._drained=!0,this._forward()};K.prototype._forward=function(){if(!(this._forwarding||!this._readable2||!this._drained)){this._forwarding=!0;for(var e;this._drained&&(e=Lc(this._readable2))!==null;)this.destroyed||(this._drained=this.push(e));this._forwarding=!1}};K.prototype.destroy=function(e){if(!this.destroyed){this.destroyed=!0;var t=this;process.nextTick(function(){t._destroy(e)})}};K.prototype._destroy=function(e){if(e){var t=this._ondrain;this._ondrain=null,t?t(e):this.emit("error",e)}this._forwardDestroy&&(this._readable&&this._readable.destroy&&this._readable.destroy(),this._writable&&this._writable.destroy&&this._writable.destroy()),this.emit("close")};K.prototype._write=function(e,t,r){if(this.destroyed)return r();if(this._corked)return Bo(this,this._write.bind(this,e,t,r));if(e===Hs)return this._finish(r);if(!this._writable)return r();this._writable.write(e)===!1?this._ondrain=r:r()};K.prototype._finish=function(e){var t=this;this.emit("preend"),Bo(this,function(){Hc(t._forwardEnd&&t._writable,function(){t._writableState.prefinished===!1&&(t._writableState.prefinished=!0),t.emit("prefinish"),Bo(t,e)})})};K.prototype.end=function(e,t,r){return typeof e=="function"?this.end(null,null,e):typeof t=="function"?this.end(e,null,t):(this._ended=!0,e&&this.write(e),this._writableState.ending||this.write(Hs),Wr.Writable.prototype.end.call(this,r))};Bs.exports=K});var Gs=ce((Vw,Vs)=>{l();Vs.exports=Vc;var Bc=Object.prototype.hasOwnProperty;function Vc(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)Bc.call(r,o)&&(e[o]=r[o])}return e}});var qo=ce((qw,Yr)=>{l();var qs=$n().Transform,Ws=we("util").inherits,Ys=Gs();function ht(e){qs.call(this,e),this._destroyed=!1}Ws(ht,qs);ht.prototype.destroy=function(e){if(!this._destroyed){this._destroyed=!0;var t=this;process.nextTick(function(){e&&t.emit("error",e),t.emit("close")})}};function Gc(e,t,r){r(null,e)}function Go(e){return function(t,r,o){return typeof t=="function"&&(o=r,r=t,t={}),typeof r!="function"&&(r=Gc),typeof o!="function"&&(o=null),e(t,r,o)}}Yr.exports=Go(function(e,t,r){var o=new ht(e);return o._transform=t,r&&(o._flush=r),o});Yr.exports.ctor=Go(function(e,t,r){function o(n){if(!(this instanceof o))return new o(n);this.options=Ys(e,n),ht.call(this,this.options)}return Ws(o,ht),o.prototype._transform=t,r&&(o.prototype._flush=r),o});Yr.exports.obj=Go(function(e,t,r){var o=new ht(Ys({objectMode:!0,highWaterMark:16},e));return o._transform=t,r&&(o._flush=r),o})});var Qs=ce((Yw,Js)=>{l();var qc=Vo(),Wc=qo(),Yc=Xa(),zc=function(e){return!Buffer.isBuffer(e)&&typeof e!="string"},zs=function(e,t){if(typeof e=="number"&&(e={maxBuffer:e}),typeof e=="function")return zs(null,e);e||(e={});var r=typeof e.maxBuffer=="number"?e.maxBuffer:65535,o=e.strict,n=e.newline!==!1,i=[],s=0,a=qc.obj(),c=Wc.obj({highWaterMark:1},function(m,f,p){if(zc(m))return d(m,null,p);if(Buffer.isBuffer(m)||(m=Yc(m)),n){var g=Array.prototype.indexOf.call(m,10);if(g>0&&m[g-1]===13&&g--,g>-1)return i.push(m.slice(0,g)),d(Buffer.concat(i),m.slice(g),p)}if(i.push(m),s+=m.length,s<r)return p();if(o)return p(new Error("No newline found"));d(Buffer.concat(i),null,p)}),u=function(){if(o)return a.destroy(new Error("No newline found"));a.cork(),d(Buffer.concat(i),null,function(m){if(m)return a.destroy(m);a.uncork()})},d=function(m,f,p){a.removeListener("preend",u),t(m,function(g,w){if(g)return p(g);a.setWritable(w),a.setReadable(w),m&&w.write(m),f&&w.write(f),f=i=c=null,p()})};return a.on("preend",u),a.setWritable(c),a};Js.exports=zs});var Zs=ce((Jw,Xs)=>{l();var Jc=Za(),Qc=bn(),Wo=we("fs"),Mt=function(){},Kc=/^v?\.0/.test(process.version),zr=function(e){return typeof e=="function"},Xc=function(e){return!Kc||!Wo?!1:(e instanceof(Wo.ReadStream||Mt)||e instanceof(Wo.WriteStream||Mt))&&zr(e.close)},Zc=function(e){return e.setHeader&&zr(e.abort)},ed=function(e,t,r,o){o=Jc(o);var n=!1;e.on("close",function(){n=!0}),Qc(e,{readable:t,writable:r},function(s){if(s)return o(s);n=!0,o()});var i=!1;return function(s){if(!n&&!i){if(i=!0,Xc(e))return e.close(Mt);if(Zc(e))return e.abort();if(zr(e.destroy))return e.destroy();o(s||new Error("stream was destroyed"))}}},Ks=function(e){e()},td=function(e,t){return e.pipe(t)},rd=function(){var e=Array.prototype.slice.call(arguments),t=zr(e[e.length-1]||Mt)&&e.pop()||Mt;if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new Error("pump requires two streams per minimum");var r,o=e.map(function(n,i){var s=i<e.length-1,a=i>0;return ed(n,s,a,function(c){r||(r=c),c&&o.forEach(Ks),!s&&(o.forEach(Ks),t(r))})});e.reduce(td)};Xs.exports=rd});var ra=ce((Kw,Jr)=>{l();var od=Zs(),nd=xn(),ea=Vo(),ta=function(e){return e.length?Array.isArray(e[0])?e[0]:Array.prototype.slice.call(e):[]},Yo=function(e){var t=function(){var r=ta(arguments);if(!(this instanceof t))return new t(r);ea.call(this,null,null,e),r.length&&this.setPipeline(r)};return nd(t,ea),t.prototype.setPipeline=function(){var r=ta(arguments),o=this,n=!1,i=r[0],s=r[r.length-1];s=s.readable?s:null,i=i.writable?i:null;var a=function(){r[0].emit("error",new Error("stream was destroyed"))};if(this.on("close",a),this.on("prefinish",function(){n||o.cork()}),od(r,function(c){if(o.removeListener("close",a),c)return o.destroy(c.message==="premature close"?null:c);n=!0,o._autoDestroy===!1&&(o._autoDestroy=!0),o.uncork()}),this.destroyed)return a();this.setWritable(i),this.setReadable(s)},t};Jr.exports=Yo({autoDestroy:!1,destroy:!1});Jr.exports.obj=Yo({autoDestroy:!1,destroy:!1,objectMode:!0,highWaterMark:16});Jr.exports.ctor=Yo});var na=ce((Zw,oa)=>{"use strict";l();oa.exports=function(e){return!e||e.length<3?!1:e[0]===31&&e[1]===139&&e[2]===8}});var sa=ce((tv,ia)=>{"use strict";l();ia.exports=function(e){return!e||e.length<2?!1:e[0]===120&&(e[1]===1||e[1]===156||e[1]===218)}});var da=ce((ov,ca)=>{l();var aa=we("zlib"),id=Qs(),sd=qo(),la=ra(),ad=na(),ld=sa(),cd=function(e){return ad(e)?1:ld(e)?2:0},zo=function(e){return e===void 0&&(e=3),id({newline:!1,maxBuffer:10},function(t,r){if(e<0)return r(new Error("Maximum recursion reached"));switch(cd(t)){case 1:r(null,la(aa.createGunzip(),zo(e-1)));break;case 2:r(null,la(aa.createInflate(),zo(e-1)));break;default:r(null,sd())}})};ca.exports=zo});var ya=ce((iv,ga)=>{"use strict";l();var ge=we("fs"),Ke=we("path"),dd=ge.lchown?"lchown":"chown",ud=ge.lchownSync?"lchownSync":"chownSync",fa=ge.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),ua=(e,t,r)=>{try{return ge[ud](e,t,r)}catch(o){if(o.code!=="ENOENT")throw o}},fd=(e,t,r)=>{try{return ge.chownSync(e,t,r)}catch(o){if(o.code!=="ENOENT")throw o}},md=fa?(e,t,r,o)=>n=>{!n||n.code!=="EISDIR"?o(n):ge.chown(e,t,r,o)}:(e,t,r,o)=>o,Jo=fa?(e,t,r)=>{try{return ua(e,t,r)}catch(o){if(o.code!=="EISDIR")throw o;fd(e,t,r)}}:(e,t,r)=>ua(e,t,r),pd=process.version,ma=(e,t,r)=>ge.readdir(e,t,r),hd=(e,t)=>ge.readdirSync(e,t);/^v4\./.test(pd)&&(ma=(e,t,r)=>ge.readdir(e,r));var Qr=(e,t,r,o)=>{ge[dd](e,t,r,md(e,t,r,n=>{o(n&&n.code!=="ENOENT"?n:null)}))},pa=(e,t,r,o,n)=>{if(typeof t=="string")return ge.lstat(Ke.resolve(e,t),(i,s)=>{if(i)return n(i.code!=="ENOENT"?i:null);s.name=t,pa(e,s,r,o,n)});if(t.isDirectory())Qo(Ke.resolve(e,t.name),r,o,i=>{if(i)return n(i);let s=Ke.resolve(e,t.name);Qr(s,r,o,n)});else{let i=Ke.resolve(e,t.name);Qr(i,r,o,n)}},Qo=(e,t,r,o)=>{ma(e,{withFileTypes:!0},(n,i)=>{if(n){if(n.code==="ENOENT")return o();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return o(n)}if(n||!i.length)return Qr(e,t,r,o);let s=i.length,a=null,c=u=>{if(!a){if(u)return o(a=u);if(--s===0)return Qr(e,t,r,o)}};i.forEach(u=>pa(e,u,t,r,c))})},gd=(e,t,r,o)=>{if(typeof t=="string")try{let n=ge.lstatSync(Ke.resolve(e,t));n.name=t,t=n}catch(n){if(n.code==="ENOENT")return;throw n}t.isDirectory()&&ha(Ke.resolve(e,t.name),r,o),Jo(Ke.resolve(e,t.name),r,o)},ha=(e,t,r)=>{let o;try{o=hd(e,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return Jo(e,t,r);throw n}return o&&o.length&&o.forEach(n=>gd(e,n,t,r)),Jo(e,t,r)};ga.exports=Qo;Qo.sync=ha});var ka=ce((av,ba)=>{l();var Kr=we("path"),wa=we("fs"),va=parseInt("0777",8);ba.exports=gt.mkdirp=gt.mkdirP=gt;function gt(e,t,r,o){typeof t=="function"?(r=t,t={}):(!t||typeof t!="object")&&(t={mode:t});var n=t.mode,i=t.fs||wa;n===void 0&&(n=va&~process.umask()),o||(o=null);var s=r||function(){};e=Kr.resolve(e),i.mkdir(e,n,function(a){if(!a)return o=o||e,s(null,o);a.code==="ENOENT"?gt(Kr.dirname(e),t,function(c,u){c?s(c,u):gt(e,t,s,u)}):i.stat(e,function(c,u){c||!u.isDirectory()?s(a,o):s(null,o)})})}gt.sync=function e(t,r,o){(!r||typeof r!="object")&&(r={mode:r});var n=r.mode,i=r.fs||wa;n===void 0&&(n=va&~process.umask()),o||(o=null),t=Kr.resolve(t);try{i.mkdirSync(t,n),o=o||t}catch(a){switch(a.code){case"ENOENT":o=e(Kr.dirname(t),r,o),e(t,r,o);break;default:var s;try{s=i.statSync(t)}catch{throw a}if(!s.isDirectory())throw a;break}}return o}});var Oa=ce(Zo=>{l();var yd=ya(),xa=ol(),Pa=el(),wd=ka(),Ca=we("fs"),X=we("path"),vd=we("os"),Ht=vd.platform()==="win32",Ut=function(){},Xo=function(e){return e},Ko=Ht?function(e){return e.replace(/\\/g,"/").replace(/[:?<>|]/g,"_")}:Xo,bd=function(e,t,r,o,n,i){var s=n||["."];return function(c){if(!s.length)return c();var u=s.shift(),d=X.join(r,u);t.call(e,d,function(m,f){if(m)return c(m);if(!f.isDirectory())return c(null,u,f);e.readdir(d,function(p,g){if(p)return c(p);i&&g.sort();for(var w=0;w<g.length;w++)o(X.join(r,u,g[w]))||s.push(X.join(u,g[w]));c(null,u,f)})})}},Ta=function(e,t){return function(r){r.name=r.name.split("/").slice(t).join("/");var o=r.linkname;return o&&(r.type==="link"||X.isAbsolute(o))&&(r.linkname=o.split("/").slice(t).join("/")),e(r)}};Zo.pack=function(e,t){e||(e="."),t||(t={});var r=t.fs||Ca,o=t.ignore||t.filter||Ut,n=t.map||Ut,i=t.mapStream||Xo,s=bd(r,t.dereference?r.stat:r.lstat,e,o,t.entries,t.sort),a=t.strict!==!1,c=typeof t.umask=="number"?~t.umask:~Ia(),u=typeof t.dmode=="number"?t.dmode:0,d=typeof t.fmode=="number"?t.fmode:0,m=t.pack||xa.pack(),f=t.finish||Ut;t.strip&&(n=Ta(n,t.strip)),t.readable&&(u|=parseInt(555,8),d|=parseInt(444,8)),t.writable&&(u|=parseInt(333,8),d|=parseInt(222,8));var p=function(k,y){r.readlink(X.join(e,k),function(v,h){if(v)return m.destroy(v);y.linkname=Ko(h),m.entry(y,w)})},g=function(k,y,v){if(k)return m.destroy(k);if(!y)return t.finalize!==!1&&m.finalize(),f(m);if(v.isSocket())return w();var h={name:Ko(y),mode:(v.mode|(v.isDirectory()?u:d))&c,mtime:v.mtime,size:v.size,type:"file",uid:v.uid,gid:v.gid};if(v.isDirectory())return h.size=0,h.type="directory",h=n(h)||h,m.entry(h,w);if(v.isSymbolicLink())return h.size=0,h.type="symlink",h=n(h)||h,p(y,h);if(h=n(h)||h,!v.isFile())return a?m.destroy(new Error("unsupported type for "+y)):w();var S=m.entry(h,w);if(S){var P=i(r.createReadStream(X.join(e,y),{start:0,end:h.size>0?h.size-1:h.size}),h);P.on("error",function(_){S.destroy(_)}),Pa(P,S)}},w=function(k){if(k)return m.destroy(k);s(g)};return w(),m};var kd=function(e){return e.length?e[e.length-1]:null},Ed=function(){return process.getuid?process.getuid():-1},Ia=function(){return process.umask?process.umask():0};Zo.extract=function(e,t){e||(e="."),t||(t={});var r=t.fs||Ca,o=t.ignore||t.filter||Ut,n=t.map||Ut,i=t.mapStream||Xo,s=t.chown!==!1&&!Ht&&Ed()===0,a=t.extract||xa.extract(),c=[],u=new Date,d=typeof t.umask=="number"?~t.umask:~Ia(),m=typeof t.dmode=="number"?t.dmode:0,f=typeof t.fmode=="number"?t.fmode:0,p=t.strict!==!1;t.strip&&(n=Ta(n,t.strip)),t.readable&&(m|=parseInt(555,8),f|=parseInt(444,8)),t.writable&&(m|=parseInt(333,8),f|=parseInt(222,8));var g=function(y,v){for(var h;(h=kd(c))&&y.slice(0,h[0].length)!==h[0];)c.pop();if(!h)return v();r.utimes(h[0],u,h[1],v)},w=function(y,v,h){if(t.utimes===!1)return h();if(v.type==="directory")return r.utimes(y,u,v.mtime,h);if(v.type==="symlink")return g(y,h);r.utimes(y,u,v.mtime,function(S){if(S)return h(S);g(y,h)})},k=function(y,v,h){var S=v.type==="symlink",P=S?r.lchmod:r.chmod,_=S?r.lchown:r.chown;if(!P)return h();var I=(v.mode|(v.type==="directory"?m:f))&d;_&&s?_.call(r,y,v.uid,v.gid,F):F(null);function F(R){if(R)return h(R);if(!P)return h();P.call(r,y,I,h)}};return a.on("entry",function(y,v,h){y=n(y)||y,y.name=Ko(y.name);var S=X.join(e,X.join("/",y.name));if(o(S,y))return v.resume(),h();var P=function(T){if(T)return h(T);w(S,y,function(j){if(j)return h(j);if(Ht)return h();k(S,y,h)})},_=function(){if(Ht)return h();r.unlink(S,function(){var T=X.resolve(X.dirname(S),y.linkname);if(!Sa(T,e))return h(new Error(S+" is not a valid symlink"));r.symlink(y.linkname,S,P)})},I=function(){if(Ht)return h();r.unlink(S,function(){var T=X.join(e,X.join("/",y.linkname));r.realpath(T,function(j,H){if(j||!Sa(H,e))return h(new Error(S+" is not a valid hardlink"));r.link(H,S,function(A){if(A&&A.code==="EPERM"&&t.hardlinkAsFilesFallback)return v=r.createReadStream(T),F();P(A)})})})},F=function(){var T=r.createWriteStream(S),j=i(v,y);T.on("error",function(H){j.destroy(H)}),Pa(j,T,function(H){if(H)return h(H);T.on("close",P)})};if(y.type==="directory")return c.push([S,y.mtime]),Ea(S,{fs:r,own:s,uid:y.uid,gid:y.gid},P);var R=X.dirname(S);Da(r,R,X.join(e,"."),function(T,j){if(T)return h(T);if(!j)return h(new Error(R+" is not a valid path"));Ea(R,{fs:r,own:s,uid:y.uid,gid:y.gid},function(H){if(H)return h(H);switch(y.type){case"file":return F();case"link":return I();case"symlink":return _()}if(p)return h(new Error("unsupported type for "+S+" ("+y.type+")"));v.resume(),h()})})}),t.finish&&a.on("finish",t.finish),a};function Da(e,t,r,o){if(t===r)return o(null,!0);e.lstat(t,function(n,i){if(n&&n.code!=="ENOENT")return o(n);if(n||i.isDirectory())return Da(e,X.join(t,".."),r,o);o(null,!1)})}function Ea(e,t,r){wd(e,{fs:t.fs},function(o,n){!o&&n&&t.own?yd(n,t.uid,t.gid,r):r(o)})}function Sa(e,t){return t=X.resolve(t),t===e||e.startsWith(t+X.sep)}});l();l();var xr=Q(me(),1);l();l();var vr=[{name:"npm",lockfile:"package-lock.json",alternativeLockfiles:["npm-shrinkwrap.json"],installCommand:"npm ci"},{name:"yarn",lockfile:"yarn.lock",installCommand:"yarn install --frozen-lockfile"},{name:"pnpm",lockfile:"pnpm-lock.yaml",installCommand:"pnpm install --frozen-lockfile"},{name:"bun",lockfile:"bun.lockb",alternativeLockfiles:["bun.lock"],installCommand:"bun install --frozen-lockfile"}];function il(e){let t="No lockfile found",r="If you don\u2019t commit a lockfile, then your app might install the wrong package versions when deploying. To avoid versioning issues, generate a new lockfile and commit it to your repository.",o=[["Generate a lockfile. Run",{command:"npm|yarn|pnpm install"}],"Commit the new file to your repository"];if(e)throw new E(t,r,o);q({headline:t,body:r,nextSteps:o})}function sl(e,t){let r=e.map(({packageManager:s,foundLockfile:a})=>`${a} (created by ${s.name})`),o="Multiple lockfiles found",n=[`Your project contains more than one lockfile. This can cause version conflicts when installing and deploying your app. The following lockfiles were detected:
|
|
2
2
|
`,{list:{items:r}}],i=["Delete any unneeded lockfiles","Commit the change to your repository"];if(t)throw new E(o,n,i);q({headline:o,body:n,nextSteps:i})}function al(e){let t="Lockfile ignored by Git",r="Your project\u2019s lockfile isn\u2019t being tracked by Git. If you don\u2019t commit a lockfile, then your app might install the wrong package versions when deploying.",o=[`In your project\u2019s .gitignore file, delete any references to ${e}`,"Commit the change to your repository"];q({headline:t,body:r,nextSteps:o})}async function ki(e,t=!1){if(De&&!process.env.SHOPIFY_UNIT_TEST)return;let r=[];for(let i of vr){let s=[i.lockfile,...i.alternativeLockfiles||[]];for(let a of s)if(await G(C(e,a))){r.push({packageManager:i,foundLockfile:a});break}}if(r.length===0)return il(t);if(r.length>1)return sl(r,t);let o=r[0].foundLockfile;(await Cn(e,[o]).catch(()=>[])).length>0&&al(o)}l();var ll=["^cdn/","^_t/"];function br(e){let t=new Set;return Object.values(e.routes).filter(r=>ll.some(o=>new RegExp(o).test(r.path??""))).forEach(r=>{r.path&&t.add(r.path)}),[...t]}var cl=["","cart","products/:productHandle","collections","collections/:collectionHandle","sitemap.xml","robots.txt","pages/:pageHandle","policies/:policyHandle","search","account","account/login","account/orders/:orderId","account/authorize"];function kr(e,t=cl){let r=Object.values(e.routes),o=new Set(t);for(let n of t)for(let i of r)if(!n&&!i.path)o.delete(n);else if(n&&i.path){let s={path:i.path,parentId:i.parentId};for(;s.parentId&&s.parentId!=="root";){let u=r.find(d=>d.id===s.parentId);if(!u)break;s.path=u.path==null?s.path:`${u.path}/${s.path}`,s.parentId=u.parentId}let a=":?[^\\/\\?]+\\?",c=`^(${a}\\/)?`+n.replaceAll(".","\\.").replace(/\//g,`\\/(${a}\\/)?`).replace(/:[^/)?]+/g,"(:[^\\/]+|\\*)")+`(\\/${a})?$`;new RegExp(c).test(s.path)&&o.delete(n)}return[...o]}var Le=100;function Ei(e){e.length?q({headline:"Standard Shopify routes missing",body:`Your Hydrogen project is missing ${e.length} standard Shopify route${e.length>1?"s":""}.
|
|
3
3
|
Including these routes improves compatibility with Shopify\u2019s platform:
|
|
4
4
|
|
|
@@ -235,7 +235,7 @@ Skip the flag or provide the name of a template or example in the Hydrogen repos
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
`;async function Ha(e){let{hydrogenStorefronts:t}=await ot(_d,e);return t.map(r=>({...r,parsedId:nt(r.id)}))}var Zr=class e extends D{static descriptionWithMarkdown="Lists all remote Hydrogen storefronts available to link to your local development environment.";static description="Returns a list of Hydrogen storefronts available on a given shop.";static flags={...b.path};async run(){let{flags:t}=await this.parse(e);await $d(t)}};async function $d({path:e=process.cwd()}){let{session:t}=await he(e),r=await Ha(t);r.length>0?(se(),$(Fd({storefronts:r,shop:t.storeFqdn}).toString()),r.forEach(({currentProductionDeployment:o,id:n,productionUrl:i,title:s})=>{se(),$(Y`${L.whiteBright(s)} ${L.dim(`(id: ${nt(n)})`)}`.value),i&&$(Y` ${L.whiteBright(i)}`.value),o&&$(Y` ${L.dim(Ad(o))}`.value)})):V({headline:"Hydrogen storefronts",body:"There are no Hydrogen storefronts on your Shop.",nextSteps:[`Ensure you are logged in to the correct shop (currently: ${t.storeFqdn})`,`Create a new Hydrogen storefront: Run \`${await W(e)} link\` or visit ${ps(t)}`]})}var Rd=new Intl.DateTimeFormat("default",{year:"numeric",month:"numeric",day:"numeric"});function Ad(e){let t="";if(!e)return t;if(t+=Rd.format(new Date(e.createdAt)),e.commitMessage){let r=e.commitMessage.split(/\n/)[0];t+=`, ${r}`}return t}var Fd=({storefronts:e,shop:t})=>Vt(e,r=>`Showing ${r.length} Hydrogen storefronts for the store ${t}`,r=>`Showing 1 Hydrogen storefront for the store ${t}`);l();var eo=class e extends D{static descriptionWithMarkdown="Logs in to the specified shop and saves the shop domain to the project.";static description="Login to your Shopify account.";static flags={...b.path,...b.shop};async run(){let{flags:t}=await this.parse(e);await jd(t)}};async function jd({path:e=process.cwd(),shop:t}){se(),Zn(!0);let{config:r}=await he(e,t??!0);ri(r)}l();var to=class e extends D{static descriptionWithMarkdown="Log out from the current shop.";static description="Logout of your local session.";static flags={...b.path};async run(){let{flags:t}=await this.parse(e);await Nd(t)}};async function Nd({path:e=process.cwd()}){se(),await ti(e),N({body:"You are logged out from Shopify."})}l();var en=Q(me(),1);l();async function Ua(e){let{startWorkerdServer:t}=await import("./workerd-
|
|
238
|
+
`;async function Ha(e){let{hydrogenStorefronts:t}=await ot(_d,e);return t.map(r=>({...r,parsedId:nt(r.id)}))}var Zr=class e extends D{static descriptionWithMarkdown="Lists all remote Hydrogen storefronts available to link to your local development environment.";static description="Returns a list of Hydrogen storefronts available on a given shop.";static flags={...b.path};async run(){let{flags:t}=await this.parse(e);await $d(t)}};async function $d({path:e=process.cwd()}){let{session:t}=await he(e),r=await Ha(t);r.length>0?(se(),$(Fd({storefronts:r,shop:t.storeFqdn}).toString()),r.forEach(({currentProductionDeployment:o,id:n,productionUrl:i,title:s})=>{se(),$(Y`${L.whiteBright(s)} ${L.dim(`(id: ${nt(n)})`)}`.value),i&&$(Y` ${L.whiteBright(i)}`.value),o&&$(Y` ${L.dim(Ad(o))}`.value)})):V({headline:"Hydrogen storefronts",body:"There are no Hydrogen storefronts on your Shop.",nextSteps:[`Ensure you are logged in to the correct shop (currently: ${t.storeFqdn})`,`Create a new Hydrogen storefront: Run \`${await W(e)} link\` or visit ${ps(t)}`]})}var Rd=new Intl.DateTimeFormat("default",{year:"numeric",month:"numeric",day:"numeric"});function Ad(e){let t="";if(!e)return t;if(t+=Rd.format(new Date(e.createdAt)),e.commitMessage){let r=e.commitMessage.split(/\n/)[0];t+=`, ${r}`}return t}var Fd=({storefronts:e,shop:t})=>Vt(e,r=>`Showing ${r.length} Hydrogen storefronts for the store ${t}`,r=>`Showing 1 Hydrogen storefront for the store ${t}`);l();var eo=class e extends D{static descriptionWithMarkdown="Logs in to the specified shop and saves the shop domain to the project.";static description="Login to your Shopify account.";static flags={...b.path,...b.shop};async run(){let{flags:t}=await this.parse(e);await jd(t)}};async function jd({path:e=process.cwd(),shop:t}){se(),Zn(!0);let{config:r}=await he(e,t??!0);ri(r)}l();var to=class e extends D{static descriptionWithMarkdown="Log out from the current shop.";static description="Logout of your local session.";static flags={...b.path};async run(){let{flags:t}=await this.parse(e);await Nd(t)}};async function Nd({path:e=process.cwd()}){se(),await ti(e),N({body:"You are logged out from Shopify."})}l();var en=Q(me(),1);l();async function Ua(e){let{startWorkerdServer:t}=await import("./workerd-U3HJ5AMT.js");return t(e)}var ro=class e extends D{static descriptionWithMarkdown="Runs a server in your local development environment that serves your Hydrogen app's production build. Requires running the [build](https://shopify.dev/docs/api/shopify-cli/hydrogen/hydrogen-build) command first.";static description="Runs a Hydrogen storefront in an Oxygen worker for production.";static flags={...b.path,...b.port,...b.env,...b.envBranch,...b.envFile,...b.inspectorPort,...b.debug,...b.verbose,build:en.Flags.boolean({description:"Builds the app before starting the preview server."}),watch:en.Flags.boolean({description:"Watches for changes and rebuilds the project.",dependsOn:["build"]}),...ye(b.entry,{entry:{dependsOn:["build"]}}),...ye(b.codegen,{codegen:{dependsOn:["build"]}})};async run(){let{flags:t}=await this.parse(e),r=t.path?C(t.path):process.cwd(),{close:o}=await Ld({...U(t),directory:r});He(async()=>{await o()})}};async function Ld({port:e,directory:t,env:r,envBranch:o,inspectorPort:n,debug:i,verbose:s,build:a=!1,watch:c=!1,codegen:u=!1,codegenConfigPath:d,entry:m,envFile:f}){process.env.NODE_ENV||(process.env.NODE_ENV=c?"development":"production"),s&&or(),nr()||it();let{root:p,buildPath:g,buildPathWorkerFile:w,buildPathClient:k}=Se(t),y=await rt(p);if(y)throw new E(xe);let v,h=_t(),P=a?await Je({...{directory:p,entry:m,disableRouteWarning:!1,lockfileCheck:!1,sourcemap:!0,bundleStats:!1,useCodegen:u,codegenConfigPath:d},watch:c,async onServerBuildFinish(){h.state==="pending"?h.resolve():$("\u{1F3D7}\uFE0F Project rebuilt. Reloading server..."),await v?.reload()}}):h.resolve();y||(w=(await pe(p).catch(()=>null))?.serverOutFile??x(g,"server","index.js"));let{shop:_,storefront:I}=await rr(p),F=!!_&&!!I?.id,{allVariables:R,logInjectedVariables:T}=await gr({root:p,fetchRemote:F,envBranch:o,envHandle:r,envFile:f});e||(e=await jt(Tt));let j=await jt(e+100);return await h.promise,T(),v=await Ua({root:p,appPort:e,assetsPort:j,env:R,buildPathClient:k,buildPathWorkerFile:w,inspectorPort:n,debug:i,watch:c}),v.showBanner({mode:"preview",headlinePrefix:c?"Watching for changes. ":""}),{async close(){await Promise.allSettled([v.close(),P?.close()])}}}l();var oo=class e extends D{static description="Scaffold routes and core functionality.";static flags={...b.path,...b.force,...b.markets,...b.shortcut,...ye(b.installDeps,{"install-deps":{default:!0}})};async run(){let{flags:t}=await this.parse(e),r=t.path?C(t.path):process.cwd();await Md({...U(t),directory:r})}};async function Md(e){let t=new Yt,{rootDirectory:r,appDirectory:o}=await Ne(e.directory),n=Ze(r),i=W(),s=Promise.resolve(),a=[{title:"Setting up project",task:async()=>{await s}}],c=e.markets?e.markets:await Zt({abortSignal:t.signal,extraChoices:{none:"Set up later"}}),u=c==="none"?void 0:c,{setupRoutes:d}=ir(t),m,f=await An(".."),[p,g]=await Promise.all([G(x(r,"tsconfig.json")),St("*.d.ts",{cwd:f})]);s=s.then(()=>Promise.all([...g.map(v=>Gt(x(f,v),C(r,v))),sr({rootDirectory:r,appDirectory:o,typescript:p})])).then(async()=>{m=await d(r,p?"ts":"js",{i18nStrategy:u,overwriteFileDeps:!0})}),u&&(s=s.then(()=>Xt(u,{rootDirectory:r})));let w=await Promise.resolve(i),{createShortcut:k,showShortcutBanner:y}=await ar(t,w,e.shortcut);!u&&!k||(k&&(s=s.then(async()=>{await k()&&(w=We)}),y()),await ee(a),await st({location:n,name:n,directory:r},{cliCommand:w,depsInstalled:!0,packageManager:"npm",i18n:u,routes:m}))}l();var Ba=Q(me(),1);var no=class e extends D{static descriptionWithMarkdown="Adds support for certain CSS strategies to your project.";static description="Setup CSS strategies for your project.";static flags={...b.path,...b.force,...ye(b.installDeps,{"install-deps":{default:!0}})};static args={strategy:Ba.Args.string({name:"strategy",description:`The CSS strategy to setup. One of ${ko.join()}`,options:ko})};async run(){let{flags:t,args:r}=await this.parse(e),o=t.path?C(t.path):process.cwd();await Hd({...U(t),strategy:r.strategy,directory:o})}};async function Hd({strategy:e,directory:t,force:r=!1,installDeps:o=!0}){let n=await pe(t).catch(()=>null);if(!n)throw new E("No Vite config found. This command is only supported in Vite projects.");let{remixConfig:i}=n,s=e||await Mn();if(s==="css-modules"||s==="postcss"){N({headline:`Vite works out of the box with ${Ct[s]}.`,body:`See the Vite documentation for more information:
|
|
239
239
|
${So[s]}`});return}let a=await Ln(s,i,r);if(!a)return;let{workPromise:c,generatedAssets:u,needsInstallDeps:d}=a,m=[{title:"Updating files",task:async()=>{await c}}],f=!1;if(o&&d){let p=be(i.rootDirectory);m.push({title:"Installing new dependencies",task:async()=>{let g=await p;f=g==="npm"||g==="unknown",await et({directory:i.rootDirectory,packageManager:g,args:[]})}})}await ee(m),N({headline:`${Ct[s]} setup complete.`,body:(u.length>0?`You can now modify CSS configuration in the following files:
|
|
240
240
|
`+u.map(p=>` - ${p}`).join(`
|
|
241
241
|
`)+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"./chunk-
|
|
1
|
+
import{b as e}from"./chunk-WQ3LY4W5.js";import{r}from"./chunk-LDGAHMS7.js";import{e as c,g as t}from"./chunk-VPRTJUIN.js";t();var s=c(r(),1);var a=class o extends e{static{this.args={command:s.Args.string({description:"Command to show help for.",required:!1})}}static{this.description="Display help for Shopify CLI"}static{this.usage="help [command] [flags]"}static{this.flags={"nested-commands":s.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})}}static{this.strict=!1}async run(){let{argv:i,flags:n}=await this.parse(o),l=await(0,s.loadHelpClass)(this.config);await new l(this.config,{all:n["nested-commands"]}).showHelp(i)}};export{a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as W,l as B}from"./chunk-
|
|
1
|
+
import{j as W,l as B}from"./chunk-SLAAB5WQ.js";import{O as v,a as O}from"./chunk-QVLBI5WV.js";import{f as h}from"./chunk-6RBPNXHX.js";import{d as u,g as T}from"./chunk-U3WI3SBU.js";import{a as I}from"./chunk-FUOIGXI4.js";import{$a as S,Cb as L,Gb as o,Ib as s,Qb as d,Ta as w,Ua as i,Wa as D,ma as x,ua as b}from"./chunk-YCX775XO.js";import{d as c,i as k}from"./chunk-IU2ZQ6TE.js";import{e as R,g}from"./chunk-VPRTJUIN.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(),1),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:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ri}from"./chunk-5CH3B62S.js";import{d as si,g as ni}from"./chunk-5CSQNFG3.js";import{a as mc}from"./chunk-FUOIGXI4.js";import{Ra as Jr,Sa as sr}from"./chunk-U5DLHKFU.js";import{b as ti}from"./chunk-ULQG3XQS.js";import{i as rr}from"./chunk-IU2ZQ6TE.js";import{c as g,e as Wr,g as u}from"./chunk-VPRTJUIN.js";var Nt=g(q=>{"use strict";u();Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var bt=class{};q._CodeOrName=bt;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ve=class extends bt{constructor(e){if(super(),!q.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};q.Name=Ve;var se=class extends bt{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,s)=>`${r}${s}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,s)=>(s instanceof Ve&&(r[s.str]=(r[s.str]||0)+1),r),{})}};q._Code=se;q.nil=new se("");function bi(t,...e){let r=[t[0]],s=0;for(;s<e.length;)os(r,e[s]),r.push(t[++s]);return new se(r)}q._=bi;var is=new se("+");function Pi(t,...e){let r=[Pt(t[0])],s=0;for(;s<e.length;)r.push(is),os(r,e[s]),r.push(is,Pt(t[++s]));return Nc(r),new se(r)}q.str=Pi;function os(t,e){e instanceof se?t.push(...e._items):e instanceof Ve?t.push(e):t.push(Ic(e))}q.addCodeArg=os;function Nc(t){let e=1;for(;e<t.length-1;){if(t[e]===is){let r=Oc(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Oc(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Ve||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Ve))return`"${t}${e.slice(1)}`}function Tc(t,e){return e.emptyStr()?t:t.emptyStr()?e:Pi`${t}${e}`}q.strConcat=Tc;function Ic(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Pt(Array.isArray(t)?t.join(","):t)}function kc(t){return new se(Pt(t))}q.stringify=kc;function Pt(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}q.safeStringify=Pt;function Rc(t){return typeof t=="string"&&q.IDENTIFIER.test(t)?new se(`.${t}`):bi`[${t}]`}q.getProperty=Rc;function jc(t){if(typeof t=="string"&&q.IDENTIFIER.test(t))return new se(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}q.getEsmExportName=jc;function qc(t){return new se(t.toString())}q.regexpCode=qc});var us=g(Q=>{"use strict";u();Object.defineProperty(Q,"__esModule",{value:!0});Q.ValueScope=Q.ValueScopeName=Q.Scope=Q.varKinds=Q.UsedValueState=void 0;var Z=Nt(),as=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},ar;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(ar||(Q.UsedValueState=ar={}));Q.varKinds={const:new Z.Name("const"),let:new Z.Name("let"),var:new Z.Name("var")};var cr=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Z.Name?e:this.name(e)}name(e){return new Z.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,s;if(!((s=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||s===void 0)&&s.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Q.Scope=cr;var ur=class extends Z.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:s}){this.value=e,this.scopePath=(0,Z._)`.${new Z.Name(r)}[${s}]`}};Q.ValueScopeName=ur;var Ac=(0,Z._)`\n`,cs=class extends cr{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Ac:Z.nil}}get(){return this._scope}name(e){return new ur(e,this._newName(e))}value(e,r){var s;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:i}=n,o=(s=r.key)!==null&&s!==void 0?s:r.ref,a=this._values[i];if(a){let d=a.get(o);if(d)return d}else a=this._values[i]=new Map;a.set(o,n);let c=this._scope[i]||(this._scope[i]=[]),l=c.length;return c[l]=r.ref,n.setValue(r,{property:i,itemIndex:l}),n}getValue(e,r){let s=this._values[e];if(s)return s.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Z._)`${e}${s.scopePath}`})}scopeCode(e=this._values,r,s){return this._reduceValues(e,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,s)}_reduceValues(e,r,s={},n){let i=Z.nil;for(let o in e){let a=e[o];if(!a)continue;let c=s[o]=s[o]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,ar.Started);let d=r(l);if(d){let f=this.opts.es5?Q.varKinds.var:Q.varKinds.const;i=(0,Z._)`${i}${f} ${l} = ${d};${this.opts._n}`}else if(d=n?.(l))i=(0,Z._)`${i}${d}${this.opts._n}`;else throw new as(l);c.set(l,ar.Completed)})}return i}};Q.ValueScope=cs});var b=g(P=>{"use strict";u();Object.defineProperty(P,"__esModule",{value:!0});P.or=P.and=P.not=P.CodeGen=P.operators=P.varKinds=P.ValueScopeName=P.ValueScope=P.Scope=P.Name=P.regexpCode=P.stringify=P.getProperty=P.nil=P.strConcat=P.str=P._=void 0;var T=Nt(),ue=us(),Ie=Nt();Object.defineProperty(P,"_",{enumerable:!0,get:function(){return Ie._}});Object.defineProperty(P,"str",{enumerable:!0,get:function(){return Ie.str}});Object.defineProperty(P,"strConcat",{enumerable:!0,get:function(){return Ie.strConcat}});Object.defineProperty(P,"nil",{enumerable:!0,get:function(){return Ie.nil}});Object.defineProperty(P,"getProperty",{enumerable:!0,get:function(){return Ie.getProperty}});Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return Ie.stringify}});Object.defineProperty(P,"regexpCode",{enumerable:!0,get:function(){return Ie.regexpCode}});Object.defineProperty(P,"Name",{enumerable:!0,get:function(){return Ie.Name}});var hr=us();Object.defineProperty(P,"Scope",{enumerable:!0,get:function(){return hr.Scope}});Object.defineProperty(P,"ValueScope",{enumerable:!0,get:function(){return hr.ValueScope}});Object.defineProperty(P,"ValueScopeName",{enumerable:!0,get:function(){return hr.ValueScopeName}});Object.defineProperty(P,"varKinds",{enumerable:!0,get:function(){return hr.varKinds}});P.operators={GT:new T._Code(">"),GTE:new T._Code(">="),LT:new T._Code("<"),LTE:new T._Code("<="),EQ:new T._Code("==="),NEQ:new T._Code("!=="),NOT:new T._Code("!"),OR:new T._Code("||"),AND:new T._Code("&&"),ADD:new T._Code("+")};var be=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},ls=class extends be{constructor(e,r,s){super(),this.varKind=e,this.name=r,this.rhs=s}render({es5:e,_n:r}){let s=e?ue.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${n};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,e,r)),this}get names(){return this.rhs instanceof T._CodeOrName?this.rhs.names:{}}},lr=class extends be{constructor(e,r,s){super(),this.lhs=e,this.rhs=r,this.sideEffects=s}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof T.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=rt(this.rhs,e,r),this}get names(){let e=this.lhs instanceof T.Name?{}:{...this.lhs.names};return fr(e,this.rhs)}},ds=class extends lr{constructor(e,r,s,n){super(e,s,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},fs=class extends be{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},hs=class extends be{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},ps=class extends be{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},ms=class extends be{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=rt(this.code,e,r),this}get names(){return this.code instanceof T._CodeOrName?this.code.names:{}}},Ot=class extends be{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,s)=>r+s.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let s=e[r].optimizeNodes();Array.isArray(s)?e.splice(r,1,...s):s?e[r]=s:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:s}=this,n=s.length;for(;n--;){let i=s[n];i.optimizeNames(e,r)||(Cc(e,i.names),s.splice(n,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>Ke(e,r.names),{})}},Pe=class extends Ot{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},ys=class extends Ot{},tt=class extends Pe{};tt.kind="else";var Ue=class t extends Pe{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let s=r.optimizeNodes();r=this.else=Array.isArray(s)?new tt(s):s}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Ni(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var s;if(this.else=(s=this.else)===null||s===void 0?void 0:s.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=rt(this.condition,e,r),this}get names(){let e=super.names;return fr(e,this.condition),this.else&&Ke(e,this.else.names),e}};Ue.kind="if";var Le=class extends Pe{};Le.kind="for";var _s=class extends Le{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=rt(this.iteration,e,r),this}get names(){return Ke(super.names,this.iteration.names)}},gs=class extends Le{constructor(e,r,s,n){super(),this.varKind=e,this.name=r,this.from=s,this.to=n}render(e){let r=e.es5?ue.varKinds.var:this.varKind,{name:s,from:n,to:i}=this;return`for(${r} ${s}=${n}; ${s}<${i}; ${s}++)`+super.render(e)}get names(){let e=fr(super.names,this.from);return fr(e,this.to)}},dr=class extends Le{constructor(e,r,s,n){super(),this.loop=e,this.varKind=r,this.name=s,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=rt(this.iterable,e,r),this}get names(){return Ke(super.names,this.iterable.names)}},Tt=class extends Pe{constructor(e,r,s){super(),this.name=e,this.args=r,this.async=s}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Tt.kind="func";var It=class extends Ot{render(e){return"return "+super.render(e)}};It.kind="return";var $s=class extends Pe{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var s,n;return super.optimizeNames(e,r),(s=this.catch)===null||s===void 0||s.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&Ke(e,this.catch.names),this.finally&&Ke(e,this.finally.names),e}},kt=class extends Pe{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};kt.kind="catch";var Rt=class extends Pe{render(e){return"finally"+super.render(e)}};Rt.kind="finally";var vs=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
1
|
+
import{a as ri}from"./chunk-5CH3B62S.js";import{d as si,g as ni}from"./chunk-U3WI3SBU.js";import{a as mc}from"./chunk-FUOIGXI4.js";import{Ra as Jr,Sa as sr}from"./chunk-YCX775XO.js";import{b as ti}from"./chunk-ULQG3XQS.js";import{i as rr}from"./chunk-IU2ZQ6TE.js";import{c as g,e as Wr,g as u}from"./chunk-VPRTJUIN.js";var Nt=g(q=>{"use strict";u();Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var bt=class{};q._CodeOrName=bt;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ve=class extends bt{constructor(e){if(super(),!q.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};q.Name=Ve;var se=class extends bt{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,s)=>`${r}${s}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,s)=>(s instanceof Ve&&(r[s.str]=(r[s.str]||0)+1),r),{})}};q._Code=se;q.nil=new se("");function bi(t,...e){let r=[t[0]],s=0;for(;s<e.length;)os(r,e[s]),r.push(t[++s]);return new se(r)}q._=bi;var is=new se("+");function Pi(t,...e){let r=[Pt(t[0])],s=0;for(;s<e.length;)r.push(is),os(r,e[s]),r.push(is,Pt(t[++s]));return Nc(r),new se(r)}q.str=Pi;function os(t,e){e instanceof se?t.push(...e._items):e instanceof Ve?t.push(e):t.push(Ic(e))}q.addCodeArg=os;function Nc(t){let e=1;for(;e<t.length-1;){if(t[e]===is){let r=Oc(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Oc(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Ve||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Ve))return`"${t}${e.slice(1)}`}function Tc(t,e){return e.emptyStr()?t:t.emptyStr()?e:Pi`${t}${e}`}q.strConcat=Tc;function Ic(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Pt(Array.isArray(t)?t.join(","):t)}function kc(t){return new se(Pt(t))}q.stringify=kc;function Pt(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}q.safeStringify=Pt;function Rc(t){return typeof t=="string"&&q.IDENTIFIER.test(t)?new se(`.${t}`):bi`[${t}]`}q.getProperty=Rc;function jc(t){if(typeof t=="string"&&q.IDENTIFIER.test(t))return new se(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}q.getEsmExportName=jc;function qc(t){return new se(t.toString())}q.regexpCode=qc});var us=g(Q=>{"use strict";u();Object.defineProperty(Q,"__esModule",{value:!0});Q.ValueScope=Q.ValueScopeName=Q.Scope=Q.varKinds=Q.UsedValueState=void 0;var Z=Nt(),as=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},ar;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(ar||(Q.UsedValueState=ar={}));Q.varKinds={const:new Z.Name("const"),let:new Z.Name("let"),var:new Z.Name("var")};var cr=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Z.Name?e:this.name(e)}name(e){return new Z.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,s;if(!((s=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||s===void 0)&&s.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Q.Scope=cr;var ur=class extends Z.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:s}){this.value=e,this.scopePath=(0,Z._)`.${new Z.Name(r)}[${s}]`}};Q.ValueScopeName=ur;var Ac=(0,Z._)`\n`,cs=class extends cr{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Ac:Z.nil}}get(){return this._scope}name(e){return new ur(e,this._newName(e))}value(e,r){var s;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:i}=n,o=(s=r.key)!==null&&s!==void 0?s:r.ref,a=this._values[i];if(a){let d=a.get(o);if(d)return d}else a=this._values[i]=new Map;a.set(o,n);let c=this._scope[i]||(this._scope[i]=[]),l=c.length;return c[l]=r.ref,n.setValue(r,{property:i,itemIndex:l}),n}getValue(e,r){let s=this._values[e];if(s)return s.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,Z._)`${e}${s.scopePath}`})}scopeCode(e=this._values,r,s){return this._reduceValues(e,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,s)}_reduceValues(e,r,s={},n){let i=Z.nil;for(let o in e){let a=e[o];if(!a)continue;let c=s[o]=s[o]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,ar.Started);let d=r(l);if(d){let f=this.opts.es5?Q.varKinds.var:Q.varKinds.const;i=(0,Z._)`${i}${f} ${l} = ${d};${this.opts._n}`}else if(d=n?.(l))i=(0,Z._)`${i}${d}${this.opts._n}`;else throw new as(l);c.set(l,ar.Completed)})}return i}};Q.ValueScope=cs});var b=g(P=>{"use strict";u();Object.defineProperty(P,"__esModule",{value:!0});P.or=P.and=P.not=P.CodeGen=P.operators=P.varKinds=P.ValueScopeName=P.ValueScope=P.Scope=P.Name=P.regexpCode=P.stringify=P.getProperty=P.nil=P.strConcat=P.str=P._=void 0;var T=Nt(),ue=us(),Ie=Nt();Object.defineProperty(P,"_",{enumerable:!0,get:function(){return Ie._}});Object.defineProperty(P,"str",{enumerable:!0,get:function(){return Ie.str}});Object.defineProperty(P,"strConcat",{enumerable:!0,get:function(){return Ie.strConcat}});Object.defineProperty(P,"nil",{enumerable:!0,get:function(){return Ie.nil}});Object.defineProperty(P,"getProperty",{enumerable:!0,get:function(){return Ie.getProperty}});Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return Ie.stringify}});Object.defineProperty(P,"regexpCode",{enumerable:!0,get:function(){return Ie.regexpCode}});Object.defineProperty(P,"Name",{enumerable:!0,get:function(){return Ie.Name}});var hr=us();Object.defineProperty(P,"Scope",{enumerable:!0,get:function(){return hr.Scope}});Object.defineProperty(P,"ValueScope",{enumerable:!0,get:function(){return hr.ValueScope}});Object.defineProperty(P,"ValueScopeName",{enumerable:!0,get:function(){return hr.ValueScopeName}});Object.defineProperty(P,"varKinds",{enumerable:!0,get:function(){return hr.varKinds}});P.operators={GT:new T._Code(">"),GTE:new T._Code(">="),LT:new T._Code("<"),LTE:new T._Code("<="),EQ:new T._Code("==="),NEQ:new T._Code("!=="),NOT:new T._Code("!"),OR:new T._Code("||"),AND:new T._Code("&&"),ADD:new T._Code("+")};var be=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},ls=class extends be{constructor(e,r,s){super(),this.varKind=e,this.name=r,this.rhs=s}render({es5:e,_n:r}){let s=e?ue.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${n};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=rt(this.rhs,e,r)),this}get names(){return this.rhs instanceof T._CodeOrName?this.rhs.names:{}}},lr=class extends be{constructor(e,r,s){super(),this.lhs=e,this.rhs=r,this.sideEffects=s}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof T.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=rt(this.rhs,e,r),this}get names(){let e=this.lhs instanceof T.Name?{}:{...this.lhs.names};return fr(e,this.rhs)}},ds=class extends lr{constructor(e,r,s,n){super(e,s,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},fs=class extends be{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},hs=class extends be{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},ps=class extends be{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},ms=class extends be{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=rt(this.code,e,r),this}get names(){return this.code instanceof T._CodeOrName?this.code.names:{}}},Ot=class extends be{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,s)=>r+s.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let s=e[r].optimizeNodes();Array.isArray(s)?e.splice(r,1,...s):s?e[r]=s:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:s}=this,n=s.length;for(;n--;){let i=s[n];i.optimizeNames(e,r)||(Cc(e,i.names),s.splice(n,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>Ke(e,r.names),{})}},Pe=class extends Ot{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},ys=class extends Ot{},tt=class extends Pe{};tt.kind="else";var Ue=class t extends Pe{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let s=r.optimizeNodes();r=this.else=Array.isArray(s)?new tt(s):s}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Ni(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var s;if(this.else=(s=this.else)===null||s===void 0?void 0:s.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=rt(this.condition,e,r),this}get names(){let e=super.names;return fr(e,this.condition),this.else&&Ke(e,this.else.names),e}};Ue.kind="if";var Le=class extends Pe{};Le.kind="for";var _s=class extends Le{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=rt(this.iteration,e,r),this}get names(){return Ke(super.names,this.iteration.names)}},gs=class extends Le{constructor(e,r,s,n){super(),this.varKind=e,this.name=r,this.from=s,this.to=n}render(e){let r=e.es5?ue.varKinds.var:this.varKind,{name:s,from:n,to:i}=this;return`for(${r} ${s}=${n}; ${s}<${i}; ${s}++)`+super.render(e)}get names(){let e=fr(super.names,this.from);return fr(e,this.to)}},dr=class extends Le{constructor(e,r,s,n){super(),this.loop=e,this.varKind=r,this.name=s,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=rt(this.iterable,e,r),this}get names(){return Ke(super.names,this.iterable.names)}},Tt=class extends Pe{constructor(e,r,s){super(),this.name=e,this.args=r,this.async=s}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Tt.kind="func";var It=class extends Ot{render(e){return"return "+super.render(e)}};It.kind="return";var $s=class extends Pe{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var s,n;return super.optimizeNames(e,r),(s=this.catch)===null||s===void 0||s.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&Ke(e,this.catch.names),this.finally&&Ke(e,this.finally.names),e}},kt=class extends Pe{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};kt.kind="catch";var Rt=class extends Pe{render(e){return"finally"+super.render(e)}};Rt.kind="finally";var vs=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
2
2
|
`:""},this._extScope=e,this._scope=new ue.Scope({parent:e}),this._nodes=[new ys]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let s=this._extScope.value(e,r);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,s,n){let i=this._scope.toName(r);return s!==void 0&&n&&(this._constants[i.str]=s),this._leafNode(new ls(e,i,s)),i}const(e,r,s){return this._def(ue.varKinds.const,e,r,s)}let(e,r,s){return this._def(ue.varKinds.let,e,r,s)}var(e,r,s){return this._def(ue.varKinds.var,e,r,s)}assign(e,r,s){return this._leafNode(new lr(e,r,s))}add(e,r){return this._leafNode(new ds(e,P.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==T.nil&&this._leafNode(new ms(e)),this}object(...e){let r=["{"];for(let[s,n]of e)r.length>1&&r.push(","),r.push(s),(s!==n||this.opts.es5)&&(r.push(":"),(0,T.addCodeArg)(r,n));return r.push("}"),new T._Code(r)}if(e,r,s){if(this._blockNode(new Ue(e)),r&&s)this.code(r).else().code(s).endIf();else if(r)this.code(r).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ue(e))}else(){return this._elseNode(new tt)}endIf(){return this._endBlockNode(Ue,tt)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new _s(e),r)}forRange(e,r,s,n,i=this.opts.es5?ue.varKinds.var:ue.varKinds.let){let o=this._scope.toName(e);return this._for(new gs(i,o,r,s),()=>n(o))}forOf(e,r,s,n=ue.varKinds.const){let i=this._scope.toName(e);if(this.opts.es5){let o=r instanceof T.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,T._)`${o}.length`,a=>{this.var(i,(0,T._)`${o}[${a}]`),s(i)})}return this._for(new dr("of",n,i,r),()=>s(i))}forIn(e,r,s,n=this.opts.es5?ue.varKinds.var:ue.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,T._)`Object.keys(${r})`,s);let i=this._scope.toName(e);return this._for(new dr("in",n,i,r),()=>s(i))}endFor(){return this._endBlockNode(Le)}label(e){return this._leafNode(new fs(e))}break(e){return this._leafNode(new hs(e))}return(e){let r=new It;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(It)}try(e,r,s){if(!r&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new $s;if(this._blockNode(n),this.code(e),r){let i=this.name("e");this._currNode=n.catch=new kt(i),r(i)}return s&&(this._currNode=n.finally=new Rt,this.code(s)),this._endBlockNode(kt,Rt)}throw(e){return this._leafNode(new ps(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-r;if(s<0||e!==void 0&&s!==e)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=T.nil,s,n){return this._blockNode(new Tt(e,r,s)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(Tt)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let s=this._currNode;if(s instanceof e||r&&s instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof Ue))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};P.CodeGen=vs;function Ke(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function fr(t,e){return e instanceof T._CodeOrName?Ke(t,e.names):t}function rt(t,e,r){if(t instanceof T.Name)return s(t);if(!n(t))return t;return new T._Code(t._items.reduce((i,o)=>(o instanceof T.Name&&(o=s(o)),o instanceof T._Code?i.push(...o._items):i.push(o),i),[]));function s(i){let o=r[i.str];return o===void 0||e[i.str]!==1?i:(delete e[i.str],o)}function n(i){return i instanceof T._Code&&i._items.some(o=>o instanceof T.Name&&e[o.str]===1&&r[o.str]!==void 0)}}function Cc(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function Ni(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,T._)`!${ws(t)}`}P.not=Ni;var Mc=Oi(P.operators.AND);function Dc(...t){return t.reduce(Mc)}P.and=Dc;var xc=Oi(P.operators.OR);function zc(...t){return t.reduce(xc)}P.or=zc;function Oi(t){return(e,r)=>e===T.nil?r:r===T.nil?e:(0,T._)`${ws(e)} ${t} ${ws(r)}`}function ws(t){return t instanceof T.Name?t:(0,T._)`(${t})`}});var k=g(N=>{"use strict";u();Object.defineProperty(N,"__esModule",{value:!0});N.checkStrictMode=N.getErrorPath=N.Type=N.useFunc=N.setEvaluated=N.evaluatedPropsToName=N.mergeEvaluated=N.eachItem=N.unescapeJsonPointer=N.escapeJsonPointer=N.escapeFragment=N.unescapeFragment=N.schemaRefOrVal=N.schemaHasRulesButRef=N.schemaHasRules=N.checkUnknownRules=N.alwaysValidSchema=N.toHash=void 0;var C=b(),Fc=Nt();function Vc(t){let e={};for(let r of t)e[r]=!0;return e}N.toHash=Vc;function Uc(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(ki(t,e),!Ri(e,t.self.RULES.all))}N.alwaysValidSchema=Uc;function ki(t,e=t.schema){let{opts:r,self:s}=t;if(!r.strictSchema||typeof e=="boolean")return;let n=s.RULES.keywords;for(let i in e)n[i]||Ai(t,`unknown keyword: "${i}"`)}N.checkUnknownRules=ki;function Ri(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}N.schemaHasRules=Ri;function Lc(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}N.schemaHasRulesButRef=Lc;function Kc({topSchemaRef:t,schemaPath:e},r,s,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,C._)`${r}`}return(0,C._)`${t}${e}${(0,C.getProperty)(s)}`}N.schemaRefOrVal=Kc;function Gc(t){return ji(decodeURIComponent(t))}N.unescapeFragment=Gc;function Hc(t){return encodeURIComponent(Ss(t))}N.escapeFragment=Hc;function Ss(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}N.escapeJsonPointer=Ss;function ji(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}N.unescapeJsonPointer=ji;function Wc(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}N.eachItem=Wc;function Ti({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:s}){return(n,i,o,a)=>{let c=o===void 0?i:o instanceof C.Name?(i instanceof C.Name?t(n,i,o):e(n,i,o),o):i instanceof C.Name?(e(n,o,i),i):r(i,o);return a===C.Name&&!(c instanceof C.Name)?s(n,c):c}}N.mergeEvaluated={props:Ti({mergeNames:(t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,C._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,C._)`${r} || {}`).code((0,C._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,C._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,C._)`${r} || {}`),bs(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:qi}),items:Ti({mergeNames:(t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,C._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,C._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,C._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function qi(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,C._)`{}`);return e!==void 0&&bs(t,r,e),r}N.evaluatedPropsToName=qi;function bs(t,e,r){Object.keys(r).forEach(s=>t.assign((0,C._)`${e}${(0,C.getProperty)(s)}`,!0))}N.setEvaluated=bs;var Ii={};function Jc(t,e){return t.scopeValue("func",{ref:e,code:Ii[e.code]||(Ii[e.code]=new Fc._Code(e.code))})}N.useFunc=Jc;var Es;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Es||(N.Type=Es={}));function Yc(t,e,r){if(t instanceof C.Name){let s=e===Es.Num;return r?s?(0,C._)`"[" + ${t} + "]"`:(0,C._)`"['" + ${t} + "']"`:s?(0,C._)`"/" + ${t}`:(0,C._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,C.getProperty)(t).toString():"/"+Ss(t)}N.getErrorPath=Yc;function Ai(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}N.checkStrictMode=Ai});var Ne=g(Ps=>{"use strict";u();Object.defineProperty(Ps,"__esModule",{value:!0});var H=b(),Bc={data:new H.Name("data"),valCxt:new H.Name("valCxt"),instancePath:new H.Name("instancePath"),parentData:new H.Name("parentData"),parentDataProperty:new H.Name("parentDataProperty"),rootData:new H.Name("rootData"),dynamicAnchors:new H.Name("dynamicAnchors"),vErrors:new H.Name("vErrors"),errors:new H.Name("errors"),this:new H.Name("this"),self:new H.Name("self"),scope:new H.Name("scope"),json:new H.Name("json"),jsonPos:new H.Name("jsonPos"),jsonLen:new H.Name("jsonLen"),jsonPart:new H.Name("jsonPart")};Ps.default=Bc});var jt=g(W=>{"use strict";u();Object.defineProperty(W,"__esModule",{value:!0});W.extendErrors=W.resetErrorsCount=W.reportExtraError=W.reportError=W.keyword$DataError=W.keywordError=void 0;var R=b(),pr=k(),Y=Ne();W.keywordError={message:({keyword:t})=>(0,R.str)`must pass "${t}" keyword validation`};W.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,R.str)`"${t}" keyword must be ${e} ($data)`:(0,R.str)`"${t}" keyword is invalid ($data)`};function Xc(t,e=W.keywordError,r,s){let{it:n}=t,{gen:i,compositeRule:o,allErrors:a}=n,c=Di(t,e,r);s??(o||a)?Ci(i,c):Mi(n,(0,R._)`[${c}]`)}W.reportError=Xc;function Zc(t,e=W.keywordError,r){let{it:s}=t,{gen:n,compositeRule:i,allErrors:o}=s,a=Di(t,e,r);Ci(n,a),i||o||Mi(s,Y.default.vErrors)}W.reportExtraError=Zc;function Qc(t,e){t.assign(Y.default.errors,e),t.if((0,R._)`${Y.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,R._)`${Y.default.vErrors}.length`,e),()=>t.assign(Y.default.vErrors,null)))}W.resetErrorsCount=Qc;function eu({gen:t,keyword:e,schemaValue:r,data:s,errsCount:n,it:i}){if(n===void 0)throw new Error("ajv implementation error");let o=t.name("err");t.forRange("i",n,Y.default.errors,a=>{t.const(o,(0,R._)`${Y.default.vErrors}[${a}]`),t.if((0,R._)`${o}.instancePath === undefined`,()=>t.assign((0,R._)`${o}.instancePath`,(0,R.strConcat)(Y.default.instancePath,i.errorPath))),t.assign((0,R._)`${o}.schemaPath`,(0,R.str)`${i.errSchemaPath}/${e}`),i.opts.verbose&&(t.assign((0,R._)`${o}.schema`,r),t.assign((0,R._)`${o}.data`,s))})}W.extendErrors=eu;function Ci(t,e){let r=t.const("err",e);t.if((0,R._)`${Y.default.vErrors} === null`,()=>t.assign(Y.default.vErrors,(0,R._)`[${r}]`),(0,R._)`${Y.default.vErrors}.push(${r})`),t.code((0,R._)`${Y.default.errors}++`)}function Mi(t,e){let{gen:r,validateName:s,schemaEnv:n}=t;n.$async?r.throw((0,R._)`new ${t.ValidationError}(${e})`):(r.assign((0,R._)`${s}.errors`,e),r.return(!1))}var Ge={keyword:new R.Name("keyword"),schemaPath:new R.Name("schemaPath"),params:new R.Name("params"),propertyName:new R.Name("propertyName"),message:new R.Name("message"),schema:new R.Name("schema"),parentSchema:new R.Name("parentSchema")};function Di(t,e,r){let{createErrors:s}=t.it;return s===!1?(0,R._)`{}`:tu(t,e,r)}function tu(t,e,r={}){let{gen:s,it:n}=t,i=[ru(n,r),su(t,r)];return nu(t,e,i),s.object(...i)}function ru({errorPath:t},{instancePath:e}){let r=e?(0,R.str)`${t}${(0,pr.getErrorPath)(e,pr.Type.Str)}`:t;return[Y.default.instancePath,(0,R.strConcat)(Y.default.instancePath,r)]}function su({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:s}){let n=s?e:(0,R.str)`${e}/${t}`;return r&&(n=(0,R.str)`${n}${(0,pr.getErrorPath)(r,pr.Type.Str)}`),[Ge.schemaPath,n]}function nu(t,{params:e,message:r},s){let{keyword:n,data:i,schemaValue:o,it:a}=t,{opts:c,propertyName:l,topSchemaRef:d,schemaPath:f}=a;s.push([Ge.keyword,n],[Ge.params,typeof e=="function"?e(t):e||(0,R._)`{}`]),c.messages&&s.push([Ge.message,typeof r=="function"?r(t):r]),c.verbose&&s.push([Ge.schema,o],[Ge.parentSchema,(0,R._)`${d}${f}`],[Y.default.data,i]),l&&s.push([Ge.propertyName,l])}});var zi=g(st=>{"use strict";u();Object.defineProperty(st,"__esModule",{value:!0});st.boolOrEmptySchema=st.topBoolOrEmptySchema=void 0;var iu=jt(),ou=b(),au=Ne(),cu={message:"boolean schema is false"};function uu(t){let{gen:e,schema:r,validateName:s}=t;r===!1?xi(t,!1):typeof r=="object"&&r.$async===!0?e.return(au.default.data):(e.assign((0,ou._)`${s}.errors`,null),e.return(!0))}st.topBoolOrEmptySchema=uu;function lu(t,e){let{gen:r,schema:s}=t;s===!1?(r.var(e,!1),xi(t)):r.var(e,!0)}st.boolOrEmptySchema=lu;function xi(t,e){let{gen:r,data:s}=t,n={gen:r,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,iu.reportError)(n,cu,void 0,e)}});var Ns=g(nt=>{"use strict";u();Object.defineProperty(nt,"__esModule",{value:!0});nt.getRules=nt.isJSONType=void 0;var du=["string","number","integer","boolean","null","object","array"],fu=new Set(du);function hu(t){return typeof t=="string"&&fu.has(t)}nt.isJSONType=hu;function pu(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}nt.getRules=pu});var Os=g(ke=>{"use strict";u();Object.defineProperty(ke,"__esModule",{value:!0});ke.shouldUseRule=ke.shouldUseGroup=ke.schemaHasRulesForType=void 0;function mu({schema:t,self:e},r){let s=e.RULES.types[r];return s&&s!==!0&&Fi(t,s)}ke.schemaHasRulesForType=mu;function Fi(t,e){return e.rules.some(r=>Vi(t,r))}ke.shouldUseGroup=Fi;function Vi(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(s=>t[s]!==void 0))}ke.shouldUseRule=Vi});var qt=g(J=>{"use strict";u();Object.defineProperty(J,"__esModule",{value:!0});J.reportTypeError=J.checkDataTypes=J.checkDataType=J.coerceAndCheckDataType=J.getJSONTypes=J.getSchemaTypes=J.DataType=void 0;var yu=Ns(),_u=Os(),gu=jt(),S=b(),Ui=k(),it;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(it||(J.DataType=it={}));function $u(t){let e=Li(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}J.getSchemaTypes=$u;function Li(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(yu.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}J.getJSONTypes=Li;function vu(t,e){let{gen:r,data:s,opts:n}=t,i=wu(e,n.coerceTypes),o=e.length>0&&!(i.length===0&&e.length===1&&(0,_u.schemaHasRulesForType)(t,e[0]));if(o){let a=Is(e,s,n.strictNumbers,it.Wrong);r.if(a,()=>{i.length?Eu(t,e,i):ks(t)})}return o}J.coerceAndCheckDataType=vu;var Ki=new Set(["string","number","integer","boolean","null"]);function wu(t,e){return e?t.filter(r=>Ki.has(r)||e==="array"&&r==="array"):[]}function Eu(t,e,r){let{gen:s,data:n,opts:i}=t,o=s.let("dataType",(0,S._)`typeof ${n}`),a=s.let("coerced",(0,S._)`undefined`);i.coerceTypes==="array"&&s.if((0,S._)`${o} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>s.assign(n,(0,S._)`${n}[0]`).assign(o,(0,S._)`typeof ${n}`).if(Is(e,n,i.strictNumbers),()=>s.assign(a,n))),s.if((0,S._)`${a} !== undefined`);for(let l of r)(Ki.has(l)||l==="array"&&i.coerceTypes==="array")&&c(l);s.else(),ks(t),s.endIf(),s.if((0,S._)`${a} !== undefined`,()=>{s.assign(n,a),Su(t,a)});function c(l){switch(l){case"string":s.elseIf((0,S._)`${o} == "number" || ${o} == "boolean"`).assign(a,(0,S._)`"" + ${n}`).elseIf((0,S._)`${n} === null`).assign(a,(0,S._)`""`);return;case"number":s.elseIf((0,S._)`${o} == "boolean" || ${n} === null
|
|
3
3
|
|| (${o} == "string" && ${n} && ${n} == +${n})`).assign(a,(0,S._)`+${n}`);return;case"integer":s.elseIf((0,S._)`${o} === "boolean" || ${n} === null
|
|
4
4
|
|| (${o} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(a,(0,S._)`+${n}`);return;case"boolean":s.elseIf((0,S._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(a,!1).elseIf((0,S._)`${n} === "true" || ${n} === 1`).assign(a,!0);return;case"null":s.elseIf((0,S._)`${n} === "" || ${n} === 0 || ${n} === false`),s.assign(a,null);return;case"array":s.elseIf((0,S._)`${o} === "string" || ${o} === "number"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as H}from"./chunk-IX5ICOBV.js";import{k as U,t as F}from"./chunk-
|
|
1
|
+
import{a as H}from"./chunk-IX5ICOBV.js";import{k as U,t as F}from"./chunk-IO4AZDF4.js";import{M as T,O as _,o as w,va as p,xa as h}from"./chunk-6PAOR3TW.js";import{a as C}from"./chunk-URLRH3UT.js";import{P,x,y as A}from"./chunk-QVLBI5WV.js";import{d as m}from"./chunk-U3WI3SBU.js";import{Gb as v,Ib as q,Qb as c}from"./chunk-YCX775XO.js";import{u as D}from"./chunk-PGUKHYQ5.js";import{g as d}from"./chunk-VPRTJUIN.js";d();d();function O(e){let r=new URLSearchParams;for(let[t,o]of Object.entries(e.replaceTemplates??[]))r.append(`replace_templates[${t}]`,o);for(let[t,o]of Object.entries(e.replaceExtensionTemplates??[])){let s=t.split("/")[0];r.append(`replace_extension_templates[${s}][${t}]`,o)}return r.append("_method",e.method),r}function l(){return{"User-Agent":`Shopify CLI; v=${C}`}}function R(e){return delete e.cookie,delete e.authorization,e}d();function S(e){let r={};return e.split(";").forEach(t=>{let o=t.match(/(.*?)=(.*)$/)??[],s=o[1]?.trim(),n=o[2]?.trim()??"";s&&(r[s]=n)}),r}function k(e){return Object.entries(e).map(([r,t])=>`${r}=${t}`).join("; ")}var y=class extends m{};async function ge(e){return F(e)}async function Se(e,r){let t=z(r),o=new URLSearchParams;o.append("form_type","storefront_password"),o.append("utf8","\u2713"),o.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let s=await w(`${t}/password`,{headers:{"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded"},body:o.toString(),method:"POST",redirect:"manual"});if(s.status===429)throw p(new m(`Too many incorrect password attempts. Please try again after ${s.headers.get("retry-after")} seconds.`));return j(s,t)}async function L(e,r,t,o,s={}){let n={},i=await I(e,t,s),a=z(r);if(n._shopify_essential=i,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return n;let f=await G(i,e,a,o,s);return{...n,...f}}async function I(e,r,t,o=1){let s=new URLSearchParams({preview_theme_id:r,_fd:"0",pb:"0"}),n=`${e}?${s}`;h("theme-service:storefront-session:get-session-essential-cookie");let i=await w(n,{method:"HEAD",redirect:"manual",headers:{...t,...l()}}),a=i.headers.raw()["set-cookie"]??[],f=E(a,"_shopify_essential");if(!f){if(c(`Failed to obtain _shopify_essential cookie.
|
|
2
2
|
|
|
3
3
|
-Request ID: ${i.headers.get("x-request-id")??"unknown"}
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-7MZW3UQH.js";import{g as t}from"./chunk-VPRTJUIN.js";t();var e=async()=>a.getAllPublicMetadata(),l=e;export{l as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,b as c,e as s}from"./chunk-
|
|
1
|
+
import{a as r,b as c,e as s}from"./chunk-KDA6FVYX.js";import{O as o}from"./chunk-QVLBI5WV.js";import{d as a}from"./chunk-IU2ZQ6TE.js";import{g as u}from"./chunk-VPRTJUIN.js";u();async function h(n){if(n.features.includes("function")&&n.isJavaScript){let i=await s(n);return r(i.functionRunner)}return r()}function p(n){return n.configuration.build?.path?a(n.directory,n.configuration.build.path):n.outputPath}async function P(n){let i=n.functionExtension,e=await h(i);await c(e);let t=[];n.inputPath&&t.push("--input",n.inputPath),n.export&&t.push("--export",n.export),n.json&&t.push("--json"),n.schemaPath&&n.queryPath&&(t.push("--schema-path",n.schemaPath),t.push("--query-path",n.queryPath));let f=p(i);return o(e.path,["-f",f,...t],{cwd:n.functionExtension.directory,stdin:n.stdin,stdout:n.stdout??"inherit",stderr:n.stderr??"inherit",input:n.input})}export{P as a};
|