@shopify/cli 4.8.1 → 4.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/dist/analytics-3SII67XF.js +1 -0
  2. package/dist/{analytics-TQHJN5PY.js → analytics-5K4B2DE4.js} +1 -1
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-WLGEAJBU.js → chunk-26LLUNJJ.js} +1 -1
  5. package/dist/{chunk-PJTRZSH4.js → chunk-2AJKHY5T.js} +1 -1
  6. package/dist/{chunk-5CC4QYN4.js → chunk-2D46X762.js} +1 -1
  7. package/dist/{chunk-UBX3HUMH.js → chunk-2GDXU42J.js} +1 -1
  8. package/dist/{chunk-F2DO3R6R.js → chunk-2JORC3Q5.js} +1 -1
  9. package/dist/{chunk-AVX7CIDJ.js → chunk-2JXH2CQB.js} +1 -1
  10. package/dist/{chunk-3NYK63U4.js → chunk-2MMJVHYZ.js} +1 -1
  11. package/dist/{chunk-GVEJO3WM.js → chunk-2ZGU7VWR.js} +1 -1
  12. package/dist/{chunk-AICVQH4V.js → chunk-36ZTFNMR.js} +1 -1
  13. package/dist/{chunk-WIBPVYPN.js → chunk-3EO3UEPZ.js} +1 -1
  14. package/dist/{chunk-T24RA3WI.js → chunk-3NSZBIHE.js} +1 -1
  15. package/dist/{chunk-SAKMJGXL.js → chunk-3NVQTA2F.js} +1 -1
  16. package/dist/{chunk-SEGZQCXZ.js → chunk-3QF47EX2.js} +1 -1
  17. package/dist/{chunk-IPSY5EEL.js → chunk-44OAVCF6.js} +1 -1
  18. package/dist/{chunk-X4JCATEE.js → chunk-472T4YTY.js} +1 -1
  19. package/dist/{chunk-7DJNASBC.js → chunk-4Y7WHAJX.js} +1 -1
  20. package/dist/{chunk-HKSRCMQ7.js → chunk-4YMU5WAG.js} +1 -1
  21. package/dist/{chunk-TCP4OG3D.js → chunk-564CWTLZ.js} +1 -1
  22. package/dist/{chunk-LJO22Z6S.js → chunk-5AFM6CVE.js} +1 -1
  23. package/dist/{chunk-3FTP36HH.js → chunk-5EW33K5C.js} +1 -1
  24. package/dist/{chunk-T74ECTO7.js → chunk-5FHTBBDR.js} +1 -1
  25. package/dist/{chunk-ZYEGQSF5.js → chunk-5GBIXC2Y.js} +1 -1
  26. package/dist/{chunk-6U4BOZ73.js → chunk-5GK7UKIP.js} +1 -1
  27. package/dist/{chunk-32IIURQB.js → chunk-5LGEBELU.js} +1 -1
  28. package/dist/{chunk-6633X2JU.js → chunk-5NT2BNMB.js} +1 -1
  29. package/dist/{chunk-GTIBT4V6.js → chunk-65YY4727.js} +1 -1
  30. package/dist/{chunk-R4YJM7KY.js → chunk-6BNOQJHH.js} +1 -1
  31. package/dist/{chunk-YY2JHCIG.js → chunk-6F6LL5UM.js} +1 -1
  32. package/dist/{chunk-5PWJTOWK.js → chunk-6ZCPQOWW.js} +1 -1
  33. package/dist/{chunk-PSH4QKUX.js → chunk-73MCDHWW.js} +1 -1
  34. package/dist/{chunk-7JG3CKDE.js → chunk-76PGSVVM.js} +1 -1
  35. package/dist/{chunk-UBJYXNCN.js → chunk-7BYWIVUZ.js} +1 -1
  36. package/dist/{chunk-565SON6A.js → chunk-7CV75WGB.js} +1 -1
  37. package/dist/{chunk-YAA7OGRM.js → chunk-7LW23M5C.js} +1 -1
  38. package/dist/{chunk-L6OBJDYK.js → chunk-7MFISB2R.js} +1 -1
  39. package/dist/{chunk-O2X6EVXQ.js → chunk-7MZEOTFK.js} +1 -1
  40. package/dist/{chunk-GCTCRKET.js → chunk-7SHHNWHL.js} +1 -1
  41. package/dist/{chunk-4QXDDAMD.js → chunk-7VW2J53A.js} +2 -2
  42. package/dist/{chunk-562EV2EJ.js → chunk-A27WKAFQ.js} +1 -1
  43. package/dist/{chunk-J3PS4JF2.js → chunk-A6FO2ZZW.js} +2 -2
  44. package/dist/{chunk-YUNINHOR.js → chunk-AAEJL2TP.js} +1 -1
  45. package/dist/{chunk-QPT6DUMC.js → chunk-AD6BC3N6.js} +1 -1
  46. package/dist/{chunk-QMYCJ2TM.js → chunk-AEUVT7IU.js} +1 -1
  47. package/dist/{chunk-CKZOLGWI.js → chunk-AFA4NLPV.js} +1 -1
  48. package/dist/{chunk-22JJHQVU.js → chunk-AGKG5G6X.js} +1 -1
  49. package/dist/{chunk-AXMSJ46T.js → chunk-AHFOIPEK.js} +1 -1
  50. package/dist/{chunk-HZDEDEAS.js → chunk-ATFKBLMQ.js} +1 -1
  51. package/dist/{chunk-RRQYOGEA.js → chunk-ATMII5E5.js} +1 -1
  52. package/dist/{chunk-NV4SPMQS.js → chunk-AXZG7H2F.js} +1 -1
  53. package/dist/{chunk-Y6DYQWQK.js → chunk-BC42C35S.js} +1 -1
  54. package/dist/{chunk-ODFOSJU3.js → chunk-BCWKIFNX.js} +1 -1
  55. package/dist/chunk-BFL74TW2.js +1 -0
  56. package/dist/{chunk-WSJ5PUK6.js → chunk-BPI25I3Q.js} +1 -1
  57. package/dist/{chunk-KEUMU5TQ.js → chunk-BZC3KLVQ.js} +1 -1
  58. package/dist/{chunk-7USNGNVI.js → chunk-CAT3FQ6U.js} +1 -1
  59. package/dist/{chunk-4ARQFW35.js → chunk-CEDXFKIK.js} +1 -1
  60. package/dist/{chunk-UMZG254H.js → chunk-CGYVLQCZ.js} +1 -1
  61. package/dist/{chunk-HFRWZQOF.js → chunk-CLUMXUR5.js} +1 -1
  62. package/dist/{chunk-6T5AZZUI.js → chunk-D3DCP4OT.js} +1 -1
  63. package/dist/{chunk-VFQW2QL2.js → chunk-D7S4HEQE.js} +1 -1
  64. package/dist/{chunk-GYFRTLML.js → chunk-DD7FQDTB.js} +3 -3
  65. package/dist/{chunk-RNFZJQVV.js → chunk-DJGDJSXS.js} +1 -1
  66. package/dist/{chunk-TVQVZHNP.js → chunk-DLCJRY3W.js} +1 -1
  67. package/dist/chunk-DWI2BHXZ.js +1 -0
  68. package/dist/{chunk-YZKBG7UZ.js → chunk-DY64LYXB.js} +1 -1
  69. package/dist/{chunk-5THZTE44.js → chunk-EEKB5GN6.js} +1 -1
  70. package/dist/{chunk-UCJ3NHJH.js → chunk-EJCBL2W2.js} +1 -1
  71. package/dist/{chunk-LIH7CQO7.js → chunk-ESTXKKAB.js} +1 -1
  72. package/dist/{chunk-JDEOBIXA.js → chunk-EUSOP35K.js} +1 -1
  73. package/dist/{chunk-U42P3F7Y.js → chunk-EVIITVUM.js} +1 -1
  74. package/dist/{chunk-OBRMBYTG.js → chunk-EZ6VGZXC.js} +1 -1
  75. package/dist/{chunk-XSUX2XAW.js → chunk-F2X7F5QX.js} +1 -1
  76. package/dist/{chunk-XRVMKP53.js → chunk-F4HKZVXJ.js} +3 -3
  77. package/dist/{chunk-IMSPA67L.js → chunk-F6SKKCKZ.js} +1 -1
  78. package/dist/{chunk-XZUL2HVC.js → chunk-FGZNKGW5.js} +1 -1
  79. package/dist/chunk-GJ34J3XJ.js +7 -0
  80. package/dist/{chunk-WVQZOLZJ.js → chunk-GV2JI5PS.js} +1 -1
  81. package/dist/{chunk-WJEVB67Y.js → chunk-GZKEIUJT.js} +1 -1
  82. package/dist/{chunk-7DLMETRR.js → chunk-H72B4Y5L.js} +1 -1
  83. package/dist/{chunk-S5FGFQHD.js → chunk-HCTPSLRL.js} +1 -1
  84. package/dist/{chunk-2R6KOKWG.js → chunk-HGJIYWXY.js} +1 -1
  85. package/dist/{chunk-DS7OKDQN.js → chunk-HGRTQIGQ.js} +1 -1
  86. package/dist/{chunk-3A2HLI4D.js → chunk-HQHKCLIU.js} +1 -1
  87. package/dist/{chunk-RHJLAYNK.js → chunk-I2PSC3VF.js} +1 -1
  88. package/dist/chunk-ID3AR4VW.js +1 -0
  89. package/dist/{chunk-F5BTQI5W.js → chunk-IGRDJ4EC.js} +1 -1
  90. package/dist/{chunk-XNKAPGJD.js → chunk-JADBWMQS.js} +1 -1
  91. package/dist/{chunk-EDHR546O.js → chunk-JIZ3BECO.js} +1 -1
  92. package/dist/{chunk-H7IQZNKR.js → chunk-JP4O56VD.js} +1 -1
  93. package/dist/{chunk-7CPYFKFK.js → chunk-JVZ3VF4D.js} +1 -1
  94. package/dist/{chunk-B3I7OMRN.js → chunk-KANWS6HC.js} +1 -1
  95. package/dist/{chunk-KPJRLS53.js → chunk-KKUA7VMA.js} +1 -1
  96. package/dist/{chunk-33PLVLCE.js → chunk-KLXOMT3K.js} +1 -1
  97. package/dist/{chunk-OYFNB5RY.js → chunk-KQJBTX6K.js} +1 -1
  98. package/dist/{chunk-XNP7PMGC.js → chunk-KTILY5HE.js} +1 -1
  99. package/dist/{chunk-PCL4UWAE.js → chunk-LHLYEFO7.js} +1 -1
  100. package/dist/{chunk-BHDFVO2R.js → chunk-LQJMBNVQ.js} +1 -1
  101. package/dist/chunk-LX7W4GUD.js +1 -0
  102. package/dist/{chunk-3ACZB27E.js → chunk-LY7PSCG4.js} +1 -1
  103. package/dist/{chunk-2BHYBR2F.js → chunk-LZC2EJLI.js} +1 -1
  104. package/dist/{chunk-PROWADZL.js → chunk-M47E7LE5.js} +1 -1
  105. package/dist/{chunk-KAAC4VIW.js → chunk-M6KOCZVH.js} +1 -1
  106. package/dist/{chunk-E7I5YT53.js → chunk-M6Z6NXCE.js} +1 -1
  107. package/dist/{chunk-MNTJZ6JO.js → chunk-MJ3WNVMQ.js} +1 -1
  108. package/dist/{chunk-TBEG57SV.js → chunk-MWJVYQVC.js} +1 -1
  109. package/dist/{chunk-XH66VYZA.js → chunk-N4N35AQP.js} +1 -1
  110. package/dist/{chunk-TQNGFSCI.js → chunk-N4WEI6JA.js} +1 -1
  111. package/dist/{chunk-FZUPL5YO.js → chunk-N6A3ISBE.js} +1 -1
  112. package/dist/{chunk-PPC3RJDZ.js → chunk-N6SZTZNB.js} +1 -1
  113. package/dist/{chunk-36OXWMXZ.js → chunk-N7VI7OWJ.js} +1 -1
  114. package/dist/{chunk-JLR6X5NA.js → chunk-NAIXUSEF.js} +1 -1
  115. package/dist/{chunk-AXLLN6DZ.js → chunk-NEREVIKL.js} +1 -1
  116. package/dist/{chunk-WT2KJHUO.js → chunk-NL7WDQSR.js} +1 -1
  117. package/dist/{chunk-AINDVTMY.js → chunk-NYHGIWKZ.js} +4 -4
  118. package/dist/{chunk-VM6EBNGR.js → chunk-O2FGO4CJ.js} +1 -1
  119. package/dist/{chunk-SIVRBIKH.js → chunk-OCT65FRG.js} +1 -1
  120. package/dist/{chunk-UPTF2HK6.js → chunk-PEWR7SF6.js} +1 -1
  121. package/dist/chunk-PIYTMQRC.js +1 -0
  122. package/dist/{chunk-6HMTAB2V.js → chunk-PKGJTTCP.js} +1 -1
  123. package/dist/{chunk-OTVZU5AQ.js → chunk-PPWJM7KE.js} +1 -1
  124. package/dist/{chunk-RAOMLN5A.js → chunk-Q4BTAXLS.js} +1 -1
  125. package/dist/{chunk-3LBHSZSR.js → chunk-QB6J3J6O.js} +1 -1
  126. package/dist/{chunk-LH7KQZDD.js → chunk-QD2KPFUT.js} +1 -1
  127. package/dist/{chunk-LTRJWOI6.js → chunk-QJW6UIRU.js} +1 -1
  128. package/dist/{chunk-OJE7S6D4.js → chunk-QYV62H24.js} +1 -1
  129. package/dist/{chunk-BMDCOBUR.js → chunk-R5EBKVQR.js} +1 -1
  130. package/dist/{chunk-5U4UTFA4.js → chunk-R5ONMTHY.js} +1 -1
  131. package/dist/{chunk-ZLMXR2XV.js → chunk-R7XKECV5.js} +1 -1
  132. package/dist/{chunk-5AMPXLKT.js → chunk-RB7J7C3A.js} +1 -1
  133. package/dist/{chunk-PVZE65R7.js → chunk-RF54RVOL.js} +1 -1
  134. package/dist/{chunk-6USL7BKQ.js → chunk-RFYFI72S.js} +1 -1
  135. package/dist/{chunk-4QAM7ROJ.js → chunk-ROIASQF4.js} +1 -1
  136. package/dist/{chunk-LC2BDU4B.js → chunk-RR4KN46J.js} +1 -1
  137. package/dist/{chunk-HEIZ3RSD.js → chunk-S67RM4AH.js} +1 -1
  138. package/dist/{chunk-U7ELUEH2.js → chunk-SNAIF3ST.js} +1 -1
  139. package/dist/{chunk-VPRDI4TT.js → chunk-T4UZOUVM.js} +1 -1
  140. package/dist/{chunk-DQVNW6EQ.js → chunk-T6M5V6RH.js} +1 -1
  141. package/dist/{chunk-PSYQTFPK.js → chunk-T7RMEJNE.js} +1 -1
  142. package/dist/{chunk-PGBXHL2G.js → chunk-THEONODK.js} +1 -1
  143. package/dist/{chunk-YMS6RVE5.js → chunk-TQRKW6W3.js} +1 -1
  144. package/dist/{chunk-BKYTBTQ5.js → chunk-UXDW37V5.js} +1 -1
  145. package/dist/{chunk-CSAVYME2.js → chunk-UXFTZHBG.js} +1 -1
  146. package/dist/{chunk-U63A4OUA.js → chunk-VEVKY5LR.js} +1 -1
  147. package/dist/{chunk-VRO6QBVN.js → chunk-VNW2YMPM.js} +1 -1
  148. package/dist/{chunk-NQRSFMS7.js → chunk-W25XMFZJ.js} +1 -1
  149. package/dist/{chunk-ZJ6DWT36.js → chunk-WAVWKGSF.js} +1 -1
  150. package/dist/{chunk-QH7QOLZK.js → chunk-WJ6GLVIM.js} +1 -1
  151. package/dist/{chunk-JVXKDM2E.js → chunk-WKCXSP6V.js} +1 -1
  152. package/dist/{chunk-3GAN6KS6.js → chunk-WSPQWLOS.js} +1 -1
  153. package/dist/{chunk-FM6VJLE7.js → chunk-WU5HO6FZ.js} +1 -1
  154. package/dist/{chunk-EIBQRJTQ.js → chunk-X3PGH5S4.js} +1 -1
  155. package/dist/{chunk-GZEPWYMP.js → chunk-XLEGKHUM.js} +1 -1
  156. package/dist/{chunk-4ASQQTCD.js → chunk-XLSKATCP.js} +1 -1
  157. package/dist/{chunk-6JC2PM43.js → chunk-XMQJUFVE.js} +1 -1
  158. package/dist/{chunk-HEWKCSY7.js → chunk-XQIPACFV.js} +3 -3
  159. package/dist/{chunk-LQGF3RKX.js → chunk-XS6EKKTD.js} +1 -1
  160. package/dist/{chunk-ILHEVBNU.js → chunk-XTPBKTAX.js} +1 -1
  161. package/dist/{chunk-X3KYRBGE.js → chunk-XZSSBNGP.js} +1 -1
  162. package/dist/{chunk-D2R7HPCT.js → chunk-YAPH7GMC.js} +1 -1
  163. package/dist/{chunk-LEPENRGG.js → chunk-YP35VTKI.js} +1 -1
  164. package/dist/{chunk-3R7OHZ4C.js → chunk-YRRGHHTP.js} +1 -1
  165. package/dist/{chunk-5G2W7QKA.js → chunk-YXS4SFIN.js} +1 -1
  166. package/dist/{chunk-H6HILX7D.js → chunk-ZG3I4COP.js} +1 -1
  167. package/dist/{chunk-FH36PGZH.js → chunk-ZKWJX5GE.js} +12 -12
  168. package/dist/{chunk-UXL2A5UK.js → chunk-ZQ4KG6U2.js} +1 -1
  169. package/dist/{chunk-7DGVNVW3.js → chunk-ZQQDUU3T.js} +1 -1
  170. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  171. package/dist/cli/commands/app/build.js +1 -1
  172. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  173. package/dist/cli/commands/app/bulk/execute.js +1 -1
  174. package/dist/cli/commands/app/bulk/status.js +1 -1
  175. package/dist/cli/commands/app/config/link.js +1 -1
  176. package/dist/cli/commands/app/config/pull.js +1 -1
  177. package/dist/cli/commands/app/config/use.js +1 -1
  178. package/dist/cli/commands/app/config/validate.js +1 -1
  179. package/dist/cli/commands/app/demo/watcher.js +1 -1
  180. package/dist/cli/commands/app/deploy.js +1 -1
  181. package/dist/cli/commands/app/dev/clean.js +1 -1
  182. package/dist/cli/commands/app/dev.js +1 -1
  183. package/dist/cli/commands/app/doctor/instructions.js +1 -1
  184. package/dist/cli/commands/app/doctor.js +1 -1
  185. package/dist/cli/commands/app/env/pull.js +1 -1
  186. package/dist/cli/commands/app/env/show.js +1 -1
  187. package/dist/cli/commands/app/execute.js +1 -1
  188. package/dist/cli/commands/app/function/build.js +1 -1
  189. package/dist/cli/commands/app/function/info.js +1 -1
  190. package/dist/cli/commands/app/function/replay.js +1 -1
  191. package/dist/cli/commands/app/function/run.js +1 -1
  192. package/dist/cli/commands/app/function/schema.js +1 -1
  193. package/dist/cli/commands/app/function/typegen.js +1 -1
  194. package/dist/cli/commands/app/generate/extension.js +1 -1
  195. package/dist/cli/commands/app/graphiql.js +1 -1
  196. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  197. package/dist/cli/commands/app/import-extensions.js +1 -1
  198. package/dist/cli/commands/app/info.js +1 -1
  199. package/dist/cli/commands/app/init.js +1 -1
  200. package/dist/cli/commands/app/logs.js +1 -1
  201. package/dist/cli/commands/app/release.js +1 -1
  202. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  203. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  204. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  205. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  206. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  207. package/dist/cli/commands/app/versions/list.js +1 -1
  208. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  209. package/dist/cli/commands/auth/login.js +1 -1
  210. package/dist/cli/commands/auth/logout.js +1 -1
  211. package/dist/cli/commands/cache/clear.js +1 -1
  212. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  213. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  214. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  215. package/dist/cli/commands/debug/command-flags.js +1 -1
  216. package/dist/cli/commands/doc/fetch.js +1 -1
  217. package/dist/cli/commands/doc/search.js +1 -1
  218. package/dist/cli/commands/docs/generate.js +1 -1
  219. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  220. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  221. package/dist/cli/commands/help.js +1 -1
  222. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  223. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  224. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  225. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  226. package/dist/cli/commands/notifications/generate.js +1 -1
  227. package/dist/cli/commands/notifications/list.js +1 -1
  228. package/dist/cli/commands/organization/list.js +1 -1
  229. package/dist/cli/commands/search.js +1 -1
  230. package/dist/cli/commands/send-analytics.js +1 -1
  231. package/dist/cli/commands/theme/check.js +1 -1
  232. package/dist/cli/commands/theme/console.js +1 -1
  233. package/dist/cli/commands/theme/delete.js +1 -1
  234. package/dist/cli/commands/theme/dev.js +1 -1
  235. package/dist/cli/commands/theme/duplicate.js +1 -1
  236. package/dist/cli/commands/theme/info.js +1 -1
  237. package/dist/cli/commands/theme/init.js +1 -1
  238. package/dist/cli/commands/theme/language-server.js +1 -1
  239. package/dist/cli/commands/theme/list.js +1 -1
  240. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  241. package/dist/cli/commands/theme/open.js +1 -1
  242. package/dist/cli/commands/theme/package.js +1 -1
  243. package/dist/cli/commands/theme/preview.js +1 -1
  244. package/dist/cli/commands/theme/profile.js +1 -1
  245. package/dist/cli/commands/theme/publish.js +1 -1
  246. package/dist/cli/commands/theme/pull.js +1 -1
  247. package/dist/cli/commands/theme/push.js +1 -1
  248. package/dist/cli/commands/theme/rename.js +1 -1
  249. package/dist/cli/commands/theme/share.js +1 -1
  250. package/dist/cli/commands/upgrade.js +1 -1
  251. package/dist/cli/commands/version.js +1 -1
  252. package/dist/command-registry.js +1 -1
  253. package/dist/{conf-store-K65PEQF6.js → conf-store-OFRC7GO7.js} +1 -1
  254. package/dist/{deprecations-2SG4PB2W.js → deprecations-PSCEZAQH.js} +1 -1
  255. package/dist/dist-733YLWJN.js +1 -0
  256. package/dist/dist-KOFJQ4RY.js +1 -0
  257. package/dist/{environments-B4OWPMPR.js → environments-FFWXZPU5.js} +1 -1
  258. package/dist/{error-5YQYW3V2.js → error-UHLTMPVC.js} +1 -1
  259. package/dist/error-handler-PVVDX7WF.js +1 -0
  260. package/dist/{fs-FM6YDE2U.js → fs-N6AHVL6I.js} +1 -1
  261. package/dist/hooks/did-you-mean.js +1 -1
  262. package/dist/hooks/hydrogen-init.js +1 -1
  263. package/dist/hooks/postrun.js +1 -1
  264. package/dist/hooks/prerun.js +1 -1
  265. package/dist/hooks/public-metadata.js +1 -1
  266. package/dist/hooks/sensitive-metadata.js +1 -1
  267. package/dist/hooks/tunnel-provider.js +1 -1
  268. package/dist/hooks/tunnel-start.js +1 -1
  269. package/dist/index.js +1 -1
  270. package/dist/{is-global-3FFDTC2G.js → is-global-DDGO2AWZ.js} +1 -1
  271. package/dist/{local-W73VIWHZ.js → local-JZRBCKAH.js} +1 -1
  272. package/dist/{metadata-OGQEI47Y.js → metadata-KYBVCKB5.js} +1 -1
  273. package/dist/{node-package-manager-GSHLPD5X.js → node-package-manager-O3DQCYJC.js} +1 -1
  274. package/dist/notifications-system-O7JENRRD.js +1 -0
  275. package/dist/os-ZZ47F6CA.js +1 -0
  276. package/dist/{output-MG7RJ37P.js → output-VAVFLR73.js} +1 -1
  277. package/dist/{system-3HTWCGQH.js → system-3PB7N6PP.js} +1 -1
  278. package/dist/tsconfig.tsbuildinfo +1 -1
  279. package/dist/{ui-T22J7MQF.js → ui-YTGKLMHA.js} +1 -1
  280. package/dist/upgrade-XYGE5PDR.js +1 -0
  281. package/dist/{version-KWF3XRSN.js → version-5OTQ3U3D.js} +1 -1
  282. package/dist/version-P72VURM3.js +1 -0
  283. package/dist/{workerd-RB5ZS43X.js → workerd-GHAVFNOO.js} +1 -1
  284. package/oclif.manifest.json +1 -1
  285. package/package.json +7 -7
  286. package/dist/analytics-32PK45SE.js +0 -1
  287. package/dist/chunk-3NVQXPTU.js +0 -1
  288. package/dist/chunk-4IG7WG6V.js +0 -1
  289. package/dist/chunk-E3FZRPNL.js +0 -1
  290. package/dist/chunk-MA6QRENS.js +0 -1
  291. package/dist/chunk-PSUNX2YX.js +0 -1
  292. package/dist/chunk-V6UCVTJT.js +0 -7
  293. package/dist/dist-L4A3SGNF.js +0 -1
  294. package/dist/dist-XXCZFNRC.js +0 -1
  295. package/dist/error-handler-3PBXTHYY.js +0 -1
  296. package/dist/notifications-system-HQNQUKLF.js +0 -1
  297. package/dist/os-6HP4QG7V.js +0 -1
  298. package/dist/upgrade-FZ35KTBW.js +0 -1
  299. package/dist/version-LJOGYA5H.js +0 -1
@@ -1 +1 @@
1
- import{b}from"./chunk-OTVZU5AQ.js";import{j as c,l as f,o as T}from"./chunk-GCTCRKET.js";import{a as F}from"./chunk-SEGZQCXZ.js";import{p as y,v as O}from"./chunk-7DJNASBC.js";import{b as I}from"./chunk-WJEVB67Y.js";import{s as v,xa as w}from"./chunk-AINDVTMY.js";import{z as S}from"./chunk-LIH7CQO7.js";import{h as a}from"./chunk-PSUNX2YX.js";import{a as A}from"./chunk-CTNBSUVU.js";import{Ua as l,ma as u,xb as _}from"./chunk-GYFRTLML.js";import{e as x,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();async function P({session:e,overridesContent:r,themeId:t}){w("theme-preview:create");let m=`${f(e)}/theme_preview.json?preview_theme_id=${t}`,o=await c(e,{headers:{"Content-Type":"application/json"}}),i=await v(m,{method:"POST",body:r,headers:o});if(!i.ok)throw new a(`Theme preview request failed with status ${i.status}: ${i.statusText}`);let n=await J(i);return w("theme-preview:create"),n}async function g({session:e,overridesContent:r,themeId:t,previewIdentifier:s}){w("theme-preview:update");let o=`${f(e)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(s)}`,i=await c(e,{headers:{"Content-Type":"application/json"}}),n=await v(o,{method:"POST",body:r,headers:i});if(!n.ok)throw new a(`Theme preview request failed with status ${n.status}: ${n.statusText}`);let E=await J(n);return w("theme-preview:update"),E}async function J(e){let r=await e.json();if(r.error)throw new a(`Theme preview failed: ${r.error}`);if(!r.url||!r.preview_identifier)throw new a("Theme preview returned an unexpected response");return{url:r.url,preview_identifier:r.preview_identifier}}async function $(e){if(!l(e.overrideJson))throw new a(`Override file not found: ${e.overrideJson}`);let r=await u(e.overrideJson),t;try{t=JSON.parse(r)}catch(i){let n=i instanceof Error?i.message:String(i);throw new a(`Failed to parse override file: ${e.overrideJson}`,n)}let s=await T(e.themeId,e.adminSession,e.password),m=JSON.stringify(t),o=e.previewIdentifier?await g({session:s,overridesContent:m,themeId:e.themeId,previewIdentifier:e.previewIdentifier}):await P({session:s,overridesContent:m,themeId:e.themeId});e.json?_(JSON.stringify({url:o.url,preview_identifier:o.preview_identifier})):S({body:[{list:{title:e.previewIdentifier?"Preview updated":"Preview is ready",items:[{link:{url:o.url}},`Preview ID: ${o.preview_identifier}`]}}]}),e.open&&b(o.url,"theme preview")}var p=x(A(),1);var h=class extends O{static summary="Applies JSON overrides to a theme and returns a preview URL.";static descriptionWithMarkdown="Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.";static description=this.descriptionWithoutMarkdown();static flags={...I,...y,theme:p.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID",required:!0}),overrides:p.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES",required:!0}),"preview-id":p.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:p.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:p.Flags.boolean({description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};static multiEnvironmentsFlags=null;async command(r,t){let s=await F(t,{filter:{theme:r.theme}});await $({adminSession:t,overrideJson:r.overrides,themeId:s.id.toString(),previewIdentifier:r["preview-id"],open:r.open,password:r.password,json:r.json})}};export{h as a};
1
+ import{b}from"./chunk-PPWJM7KE.js";import{j as c,l as f,o as T}from"./chunk-7SHHNWHL.js";import{a as F}from"./chunk-3QF47EX2.js";import{p as y,v as O}from"./chunk-4Y7WHAJX.js";import{b as I}from"./chunk-GZKEIUJT.js";import{s as v,xa as w}from"./chunk-NYHGIWKZ.js";import{z as S}from"./chunk-ESTXKKAB.js";import{h as a}from"./chunk-BFL74TW2.js";import{a as A}from"./chunk-CTNBSUVU.js";import{Ua as l,ma as u,xb as _}from"./chunk-DD7FQDTB.js";import{e as x,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();async function P({session:e,overridesContent:r,themeId:t}){w("theme-preview:create");let m=`${f(e)}/theme_preview.json?preview_theme_id=${t}`,o=await c(e,{headers:{"Content-Type":"application/json"}}),i=await v(m,{method:"POST",body:r,headers:o});if(!i.ok)throw new a(`Theme preview request failed with status ${i.status}: ${i.statusText}`);let n=await J(i);return w("theme-preview:create"),n}async function g({session:e,overridesContent:r,themeId:t,previewIdentifier:s}){w("theme-preview:update");let o=`${f(e)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(s)}`,i=await c(e,{headers:{"Content-Type":"application/json"}}),n=await v(o,{method:"POST",body:r,headers:i});if(!n.ok)throw new a(`Theme preview request failed with status ${n.status}: ${n.statusText}`);let E=await J(n);return w("theme-preview:update"),E}async function J(e){let r=await e.json();if(r.error)throw new a(`Theme preview failed: ${r.error}`);if(!r.url||!r.preview_identifier)throw new a("Theme preview returned an unexpected response");return{url:r.url,preview_identifier:r.preview_identifier}}async function $(e){if(!l(e.overrideJson))throw new a(`Override file not found: ${e.overrideJson}`);let r=await u(e.overrideJson),t;try{t=JSON.parse(r)}catch(i){let n=i instanceof Error?i.message:String(i);throw new a(`Failed to parse override file: ${e.overrideJson}`,n)}let s=await T(e.themeId,e.adminSession,e.password),m=JSON.stringify(t),o=e.previewIdentifier?await g({session:s,overridesContent:m,themeId:e.themeId,previewIdentifier:e.previewIdentifier}):await P({session:s,overridesContent:m,themeId:e.themeId});e.json?_(JSON.stringify({url:o.url,preview_identifier:o.preview_identifier})):S({body:[{list:{title:e.previewIdentifier?"Preview updated":"Preview is ready",items:[{link:{url:o.url}},`Preview ID: ${o.preview_identifier}`]}}]}),e.open&&b(o.url,"theme preview")}var p=x(A(),1);var h=class extends O{static summary="Applies JSON overrides to a theme and returns a preview URL.";static descriptionWithMarkdown="Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.";static description=this.descriptionWithoutMarkdown();static flags={...I,...y,theme:p.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID",required:!0}),overrides:p.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES",required:!0}),"preview-id":p.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:p.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:p.Flags.boolean({description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};static multiEnvironmentsFlags=null;async command(r,t){let s=await F(t,{filter:{theme:r.theme}});await $({adminSession:t,overrideJson:r.overrides,themeId:s.id.toString(),previewIdentifier:r["preview-id"],open:r.open,password:r.password,json:r.json})}};export{h as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-A27WKAFQ.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
@@ -1,3 +1,3 @@
1
- import{a as A}from"./chunk-VJEKDBGZ.js";import{b as f}from"./chunk-QMYCJ2TM.js";import{f as C}from"./chunk-VRO6QBVN.js";import{h as n}from"./chunk-PSUNX2YX.js";import{Ab as u,Ea as b,Ta as I,Wa as G,qb as a,sb as s}from"./chunk-GYFRTLML.js";import{a as k,q as g}from"./chunk-VFQW2QL2.js";import{q as w}from"./chunk-773TIA5M.js";import{e as D,g as $}from"./chunk-VKWPEFWQ.js";$();var R=D(A());async function r(e,t){try{return(await f("git",e,{cwd:t})).stdout}catch(o){if(o instanceof Error){let i=new n(o.message);throw i.stack=o.stack,"exitCode"in o&&Object.assign(i,{exitCode:o.exitCode}),i}throw o}}async function K(e,t="main"){if(t.startsWith("-"))throw new n(`Invalid initial branch name: ${t}. Branch names can't start with a hyphen.`);u(s`Initializing git repository at ${a.path(e)}...`),await m(),await r(["init"],e),await r(["checkout","-b",t],e)}async function Q(e,t){try{return(await r(["check-ignore",...t],e)).split(`
1
+ import{a as A}from"./chunk-VJEKDBGZ.js";import{b as f}from"./chunk-AEUVT7IU.js";import{f as C}from"./chunk-VNW2YMPM.js";import{h as n}from"./chunk-BFL74TW2.js";import{Ab as u,Ea as b,Ta as I,Wa as G,qb as a,sb as s}from"./chunk-DD7FQDTB.js";import{a as k,q as g}from"./chunk-D7S4HEQE.js";import{q as w}from"./chunk-773TIA5M.js";import{e as D,g as $}from"./chunk-VKWPEFWQ.js";$();var R=D(A());async function r(e,t){try{return(await f("git",e,{cwd:t})).stdout}catch(o){if(o instanceof Error){let i=new n(o.message);throw i.stack=o.stack,"exitCode"in o&&Object.assign(i,{exitCode:o.exitCode}),i}throw o}}async function K(e,t="main"){if(t.startsWith("-"))throw new n(`Invalid initial branch name: ${t}. Branch names can't start with a hyphen.`);u(s`Initializing git repository at ${a.path(e)}...`),await m(),await r(["init"],e),await r(["checkout","-b",t],e)}async function Q(e,t){try{return(await r(["check-ignore",...t],e)).split(`
2
2
  `).filter(Boolean)}catch(o){if(o instanceof n&&"exitCode"in o&&o.exitCode===1)return[];throw o}}async function V(e){return C("cmd_all_timing_network_ms")(async()=>{let{repoUrl:t,destination:o,shallow:i,latestTag:l}=e;if(u(s`Git-cloning repository ${t} into ${a.path(o)}...`),await m(),await I(o)){if(!await b(o))throw new n(s`Can't clone to ${a.path(o)}`,"The path exists but isn't a directory.");if((await G(["*",".*"],{cwd:o,deep:1,onlyFiles:!1})).length>0)throw new n(s`Directory ${a.path(o)} already exists and is not empty`,s`Choose a different name or remove the existing directory first.`)}let[E,d]=t.split("#");if(d&&l)throw new n("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(i&&l)throw new n("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");let h=["clone","--recurse-submodules"];d&&h.push("--branch",d),i&&h.push("--depth","1"),k()||h.push("-c","core.askpass=true"),h.push(E,o);try{if(await f("git",h),l){let c=await S(o,t);await r(["checkout",c],o)}}catch(c){if(c instanceof n)throw c;if(c instanceof Error){let x=new n(c.message);throw x.stack=c.stack,x}throw c}})}async function S(e,t){let o=await F(e);if(!o)throw new n(`Couldn't obtain the most recent tag of the repository ${t}`);return o}async function X(e){let o=await r(["log","-1","--format=%H%x00%ai%x00%s%x00%D%x00%b%x00%an%x00%ae"],e);if(!o.trim())throw new n("Must have at least one commit to run command",s`Run ${a.genericShellCommand("git commit -m 'Initial commit'")} to create your first commit.`);let i=o.split("\0");return{hash:i[0],date:i[1],message:i[2],refs:i[3],body:i[4],author_name:i[5],author_email:i[6]}}async function Y(e){await r(["add","--all"],e)}async function Z(e,t){let o=["commit","-m",e];if(t?.author){if(t.author.startsWith("-"))throw new n(`Invalid commit author: ${t.author}. Author name/email can't start with a hyphen.`);o.push("--author",t.author)}return await r(o,t?.directory),(await r(["rev-parse","HEAD"],t?.directory)).trim()}async function m(){if(!await g())throw new n("Git is necessary in the environment to continue",s`Install ${a.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}var p=class extends n{};async function N(e){if(await m(),!await v(e))throw new p(`${a.path(e??w())} is not a Git directory`)}async function tt(e){return await g()?v(e):!1}async function v(e){try{return await f("git",["rev-parse","--git-dir"],{cwd:e}),!0}catch(t){if(t instanceof Error&&"exitCode"in t&&t.exitCode===128)return!1;throw t}}var y=class extends n{};async function et(e){if(!await T(e))throw new y(`${a.path(e??w())} is not a clean Git directory`)}async function T(e){return(await r(["status","--porcelain"],e)).trim()===""}async function F(e){try{return(await r(["describe","--tags","--abbrev=0"],e)).trim()||void 0}catch(t){if(t instanceof n&&"exitCode"in t&&t.exitCode===128)return;throw t}}async function ot(e,t="origin"){if(u(s`Removing git remote ${t} from ${a.path(e)}...`),await m(),!(await r(["remote"],e)).split(`
3
3
  `).filter(Boolean).includes(t)){u(s`Remote ${t} does not exist, no action needed`);return}await r(["remote","remove",t],e)}export{K as a,Q as b,V as c,X as d,Y as e,Z as f,N as g,tt as h,y as i,et as j,T as k,ot as l};
@@ -1 +1 @@
1
- import{a as w}from"./chunk-MA6QRENS.js";import{a as y}from"./chunk-HEIZ3RSD.js";import{a as h}from"./chunk-36OXWMXZ.js";import{g,xa as b}from"./chunk-YAA7OGRM.js";import{b as u}from"./chunk-WJEVB67Y.js";import{S as f,x as d,z as m}from"./chunk-LIH7CQO7.js";import{d as l}from"./chunk-VRO6QBVN.js";import{a as A}from"./chunk-CTNBSUVU.js";import{e as _,g as s}from"./chunk-VKWPEFWQ.js";s();s();s();async function p(e,{web:i,stdout:t,stderr:a,signal:n,env:o={}}){let c=i.configuration.commands[e];if(!c)return;let[I,...v]=c.split(" ");await f(I,v,{cwd:i.directory,stdout:t,stderr:a,signal:n,env:o}),t.write("Web successfully built.")}async function S(e){!e.skipDependenciesInstallation&&!e.project.usesWorkspaces&&await y(e.project);let i={};e.apiKey&&(i.SHOPIFY_API_KEY=e.apiKey),await g(e.app),await d({processes:[...e.app.webs.map(t=>({prefix:["web",...t.configuration.roles].join("-"),action:async(a,n,o)=>{await p("build",{web:t,stdout:a,stderr:n,signal:o,env:i})}})),...e.app.allExtensions.map(t=>({prefix:t.localIdentifier,action:async(a,n,o)=>{await t.build({stdout:a,stderr:n,signal:o,app:e.app,environment:"production"})}}))],showTimestamps:!1}),m({headline:[{userInput:e.app.name},"built!"]})}var k=S;var x=_(A(),1);var r=class e extends w{static summary="Build the app, including extensions.";static descriptionWithMarkdown="This command executes the build script specified in the element's TOML file. You can specify a custom script in the file. To learn about configuration files in Shopify apps, refer to [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration).\n\n If you're building a [theme app extension](https://shopify.dev/docs/apps/online-store/theme-app-extensions), then running the `build` command runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) against your extension to ensure that it's valid.";static description=this.descriptionWithoutMarkdown();static flags={...u,...h,"skip-dependencies-installation":x.Flags.boolean({hidden:!1,description:"Skips the installation of dependencies. Deprecated, use workspaces instead.",env:"SHOPIFY_FLAG_SKIP_DEPENDENCIES_INSTALLATION",default:!1})};async run(){let{flags:i}=await this.parse(e),t=i["client-id"];await l(()=>({cmd_app_dependency_installation_skipped:i["skip-dependencies-installation"]}));let{app:a,project:n}=await b({directory:i.path,userProvidedConfigName:i.config});return await k({app:a,project:n,skipDependenciesInstallation:i["skip-dependencies-installation"],apiKey:t}),{app:a}}};export{r as a};
1
+ import{a as w}from"./chunk-DWI2BHXZ.js";import{a as y}from"./chunk-S67RM4AH.js";import{a as h}from"./chunk-N7VI7OWJ.js";import{g,xa as b}from"./chunk-7LW23M5C.js";import{b as u}from"./chunk-GZKEIUJT.js";import{S as f,x as d,z as m}from"./chunk-ESTXKKAB.js";import{d as l}from"./chunk-VNW2YMPM.js";import{a as A}from"./chunk-CTNBSUVU.js";import{e as _,g as s}from"./chunk-VKWPEFWQ.js";s();s();s();async function p(e,{web:i,stdout:t,stderr:a,signal:n,env:o={}}){let c=i.configuration.commands[e];if(!c)return;let[I,...v]=c.split(" ");await f(I,v,{cwd:i.directory,stdout:t,stderr:a,signal:n,env:o}),t.write("Web successfully built.")}async function S(e){!e.skipDependenciesInstallation&&!e.project.usesWorkspaces&&await y(e.project);let i={};e.apiKey&&(i.SHOPIFY_API_KEY=e.apiKey),await g(e.app),await d({processes:[...e.app.webs.map(t=>({prefix:["web",...t.configuration.roles].join("-"),action:async(a,n,o)=>{await p("build",{web:t,stdout:a,stderr:n,signal:o,env:i})}})),...e.app.allExtensions.map(t=>({prefix:t.localIdentifier,action:async(a,n,o)=>{await t.build({stdout:a,stderr:n,signal:o,app:e.app,environment:"production"})}}))],showTimestamps:!1}),m({headline:[{userInput:e.app.name},"built!"]})}var k=S;var x=_(A(),1);var r=class e extends w{static summary="Build the app, including extensions.";static descriptionWithMarkdown="This command executes the build script specified in the element's TOML file. You can specify a custom script in the file. To learn about configuration files in Shopify apps, refer to [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration).\n\n If you're building a [theme app extension](https://shopify.dev/docs/apps/online-store/theme-app-extensions), then running the `build` command runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) against your extension to ensure that it's valid.";static description=this.descriptionWithoutMarkdown();static flags={...u,...h,"skip-dependencies-installation":x.Flags.boolean({hidden:!1,description:"Skips the installation of dependencies. Deprecated, use workspaces instead.",env:"SHOPIFY_FLAG_SKIP_DEPENDENCIES_INSTALLATION",default:!1})};async run(){let{flags:i}=await this.parse(e),t=i["client-id"];await l(()=>({cmd_app_dependency_installation_skipped:i["skip-dependencies-installation"]}));let{app:a,project:n}=await b({directory:i.path,userProvidedConfigName:i.config});return await k({app:a,project:n,skipDependenciesInstallation:i["skip-dependencies-installation"],apiKey:t}),{app:a}}};export{r as a};
@@ -1,4 +1,4 @@
1
- import{a as Mt}from"./chunk-UOHNRH6E.js";import{a as Er}from"./chunk-V6UCVTJT.js";import{a as Rr}from"./chunk-TVQVZHNP.js";import{a as br}from"./chunk-FM6VJLE7.js";import{a as Sr}from"./chunk-7DLMETRR.js";import{b as Tr}from"./chunk-3FTP36HH.js";import{a as Ar}from"./chunk-4QAM7ROJ.js";import{a as _r}from"./chunk-AICVQH4V.js";import{a as Cr}from"./chunk-5G2W7QKA.js";import{a as dr}from"./chunk-LC2BDU4B.js";import{a as mr}from"./chunk-YY2JHCIG.js";import{a as fr}from"./chunk-7CPYFKFK.js";import{a as hr}from"./chunk-TQNGFSCI.js";import{a as gr}from"./chunk-X3KYRBGE.js";import{a as wr,b as yr,c as Pr,d as vr}from"./chunk-S5FGFQHD.js";import{a as Ur}from"./chunk-UBJYXNCN.js";import{g as ur}from"./chunk-FH36PGZH.js";import{a as xr}from"./chunk-HFRWZQOF.js";import{a as lo,b as po,c as uo,d as mo}from"./chunk-PSH4QKUX.js";import{a as ar}from"./chunk-ODFOSJU3.js";import{a as lr}from"./chunk-ILHEVBNU.js";import{a as Xe}from"./chunk-SIVRBIKH.js";import{c as Je,m as Ze}from"./chunk-GCTCRKET.js";import{a as pr}from"./chunk-5AMPXLKT.js";import{a as cr}from"./chunk-YMS6RVE5.js";import{b as ir,g as _e,j as Qe}from"./chunk-ZYEGQSF5.js";import{c as kr}from"./chunk-F5BTQI5W.js";import{a as nr,b as sr,c as ao,d as io,e as rt,f as co,g as fo}from"./chunk-33PLVLCE.js";import{a as $,b as Ve}from"./chunk-PGBXHL2G.js";import{a as Xt,b as Zt,d as Te,f as er,m as Ae,n as H,s as q,u as tr,v as rr,w as or}from"./chunk-Q7BOSHWX.js";import{a as Jt}from"./chunk-4QXDDAMD.js";import{a as Zr,b as tt,c as ee,d as eo}from"./chunk-3NYK63U4.js";import{a as ho,f as go,g as wo,h as ot,i as yo,j as Po,k as vo,l as xo,m as Eo,n as bo,o as So,p as Uo,q as Ro,v as To,x as Ao,z as nt}from"./chunk-XSUX2XAW.js";import{a as to,b as ro,c as oo,d as no,e as so}from"./chunk-E7I5YT53.js";import{a as Lr}from"./chunk-HEIZ3RSD.js";import{a as Xr}from"./chunk-LJO22Z6S.js";import{a as Jr}from"./chunk-3NVQXPTU.js";import{a as Ir}from"./chunk-36OXWMXZ.js";import{$ as Vr,B as Br,D as Kr,F as Z,P as jr,Q as Yr,i as $r,j as W,k as Mr,m as Fr,p as et,q as Or,qa as ke,r as Nr,ra as Ie,s as qr,t as Wr,u as Hr,v as Gr,wa as Qr}from"./chunk-YAA7OGRM.js";import{y as zr}from"./chunk-MNTJZ6JO.js";import{c as Vt}from"./chunk-AXLLN6DZ.js";import{a as Ce,f as ie,m as Dr}from"./chunk-WT2KJHUO.js";import{a as K}from"./chunk-RHJLAYNK.js";import{b as Qt,e as Re}from"./chunk-WJEVB67Y.js";import{D as ye,S as kt,b as Ke,ca as J,d as bt,ea as It,f as St,h as Ut,l as Rt,p as Tt,r as At,u as _t,wa as Lt,x as Ct,y as we}from"./chunk-AINDVTMY.js";import{A as se,H as be,L as Bt,N as Se,S as Ue,T as ae,U as Ye,V as Kt,X as jt,a as Et,d as Pe,e as k,f as L,h as ve,i as xe,j as Dt,k as Ft,l as Ot,m as Nt,n as qt,o as D,p as Wt,q as je,r as ze,s as Ht,t as Gt,y as Ee}from"./chunk-LIH7CQO7.js";import{a as Cn}from"./chunk-7UNQOKZW.js";import{d as $t}from"./chunk-VRO6QBVN.js";import{h as T,k as X}from"./chunk-PSUNX2YX.js";import{a as _n}from"./chunk-CTNBSUVU.js";import{a as _o}from"./chunk-LQGF3RKX.js";import{$a as vt,Ab as g,Bb as C,Ea as Pt,Na as he,P as Be,Ta as F,Wa as ge,cb as xt,ma as I,qb as v,sb as b,ua as me,wa as fe,xb as B}from"./chunk-GYFRTLML.js";import{d as zt,f as Yt}from"./chunk-VFQW2QL2.js";import{a as ft}from"./chunk-JD5P5RAJ.js";import{d as S,f as Ge,g as ht,i as ue,j as gt,k as de,o as wt,p as yt}from"./chunk-773TIA5M.js";import{e as Q,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();p();p();p();var kn=300*1e3,In='The host theme could not be created to host your theme app extension. Please try again or use the "--theme" flag to use an existing theme as the host theme.';async function Co(t,e,r=Date.now()){for(;await Ln(t,e,r););}async function Ln(t,e,r){let o=await _e(t,e);if(!o||$n(o,r))throw new T(In);return await ae(3),o.processing}function $n(t,e){return t.processing&&Date.now()-e>=kn}var Mn="https://codeload.github.com/Shopify/dawn/zip/refs/tags/v15.0.0",Dn="https://cdn.shopify.com/theme-store/uhrdefhlndzaoyrgylhto59sx2i7.jpg",st=3,Le=class extends cr{context="App Ext. Host";devPreview;constructor(e,r={devPreview:!1}){super(e),this.themeId=wr(e.storeFqdn),this.devPreview=r.devPreview}async findOrCreate(){let e=await this.fetch();return e??=this.devPreview?await this.createHostTheme():await this.create(),e}setTheme(e){yr(this.adminSession.storeFqdn,e)}removeTheme(){Pr(this.adminSession.storeFqdn)}async createHostTheme(){let e={role:ir,name:this.generateThemeName(this.context),src:Mn};for(let o=0;o<st;o++){g(`Attempt ${o}/${st}: Creating theme with name "${e.name}" and role "${e.role}"`);try{let n=await Qe(e,this.adminSession);if(n)return this.setTheme(n.id.toString()),g(`Waiting for theme with id "${n.id}" to be processed`),await Co(n.id,this.adminSession),n;throw new Error}catch{g(`Failed to create theme with name "${e.name}" and role "${e.role}". Retrying...`)}}g(`Theme creation failed after ${st} retries. Creating theme using fallback theme zip`);let r=await Qe({...e,src:Dn},this.adminSession);if(!r)throw g("Theme creation failed. Exiting process."),new X(`Could not create theme with name "${e.name}" and role "${e.role}"`);return r}};p();var Fn={"theme:init":hr,"theme:check":ar,"theme:console":lr,"theme:delete":pr,"theme:dev":dr,"theme:duplicate":mr,"theme:info":fr,"theme:language-server":gr,"theme:list":vr,"theme:metafields:pull":Ur,"theme:open":xr,"theme:package":Er,"theme:profile":br,"theme:publish":Sr,"theme:preview":Rr,"theme:pull":Tr,"theme:push":Ar,"theme:rename":_r,"theme:share":Cr},ka=Fn;async function ko(t){let{remoteApp:e,localApp:r}=t,n=r.allExtensions.filter(U=>U.isThemeExtension);if(n.length===0)return;let a=n[0].directory,i=t.themeExtensionPort??9293,[c,d]=await Promise.all([kt(t.storeFqdn),qn(e)]),l=c.storeFqdn,[u,h]=await Promise.all([Ze(c),Je(c)]),w=h?await Xe(t.storePassword,l,u):void 0,m=await Nn(c,t.theme),f=m.id.toString();return Ee({headline:"The theme app extension development server is ready.",orderedNextSteps:!0,nextSteps:[[{link:{label:"Install your app in your development store",url:d}}],[{link:{label:"Setup your theme app extension in the host theme",url:`https://${l}/admin/themes/${f}/editor`}}],["Preview your theme app extension at",{link:{label:`http://127.0.0.1:${i}`,url:`http://127.0.0.1:${i}`}}]]}),{type:"theme-app-extensions",prefix:"theme-extensions",function:On,options:{theme:m,adminSession:c,storefrontPassword:w,crawlerSignatureHeaders:u,themeExtensionDirectory:a,themeExtensionPort:i}}}var On=async(t,{theme:e,adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})=>{await(await ur(e,{adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})).start()};async function Nn(t,e){let r;if(e)g(`Fetching theme with provided id ${e}`),r=await _e(parseInt(e,10),t);else{let o=new Le(t,{devPreview:!0});await be([{title:"Configuring host theme for theme app extension",task:async()=>{g("Finding or creating host theme for theme app extensions"),r=await o.findOrCreate()}}])}if(!r)throw new T("Could not find or create a host theme for theme app extensions");return r}async function qn(t){return t.developerPlatformClient?.clientName===zr.AppManagement?`https://${await we()}/?organization_id=${t.organizationId}&no_redirect=true&redirect=/oauth/redirect_from_developer_dashboard?client_id%3D${t.apiKey}`:`https://${await Ct()}/${t.organizationId}/apps/${t.id}/test`}p();p();p();p();p();p();async function Wn(t){let e=S(t.directory,"locales");return ge([S(e,"*.json")])}async function Io(t,e){let r=await Wn(t);if(!r.length)return{localization:void 0,status:""};let o=e.currentLocalizationPayload??{defaultLocale:"en",translations:{},lastUpdated:0},n="success";try{await Promise.all(r.map(async s=>{let[a,...i]=s.split("/").pop().split(".");if(a)return i[0]==="default"&&(o.defaultLocale=a),Hn(a,s,o,t,e)})),o.lastUpdated=Date.now(),g(`Parsed locales for extension ${t.handle} at ${t.directory}`,e.stdout)}catch{n="error"}return{localization:o,status:n}}async function Hn(t,e,r,o,n){let s;try{s=await I(e),r.translations[t]=JSON.parse(s)}catch(a){let i=`Error parsing ${t} locale for ${o.handle} at ${e}: ${a.message}`;throw C(i,n.stderr),new Error(i)}}p();function $e(t,e){switch(t){case"checkout_ui_extension":return{url:e.checkoutCartUrl};case"checkout_post_purchase":return{url:e.checkoutCartUrl};case"product_subscription":return{url:e.subscriptionProductUrl??""};default:return{url:""}}}var at=".js.map";async function te(t,e,r,o){return D({outputPrefix:t.outputPrefix},async()=>{o?.clear();let n=t.getOutputPathForDirectory(e),s=`${r.url}/extensions/${t.devUUID}`,{localization:a,status:i}=await Io(t,r),c=await Mr(t),d=t.outputRelativePath?ue(n):n,l=await Gn(t,s,d,o),u=null;return"metafields"in t.configuration&&Array.isArray(t.configuration.metafields)&&t.configuration.metafields.length>0&&(u=t.configuration.metafields),{assets:{main:ce(l)&&l[0]?.assets?.main?l[0].assets.main:{name:"main",url:`${s}/assets/${t.outputFileName}`,lastUpdated:await he(n)??0}},supportedFeatures:{runsOffline:t.configuration.supported_features?.runs_offline??!1},capabilities:{blockProgress:t.configuration.capabilities?.block_progress??!1,networkAccess:t.configuration.capabilities?.network_access??!1,apiAccess:t.configuration.capabilities?.api_access??!1,collectBuyerConsent:{smsMarketing:t.configuration.capabilities?.collect_buyer_consent?.sms_marketing??!1,customerPrivacy:t.configuration.capabilities?.collect_buyer_consent?.customer_privacy??!1},iframe:{sources:t.configuration.capabilities?.iframe?.sources??[]}},development:{...r.currentDevelopmentPayload,resource:$e(t.type,r),root:{url:s},hidden:r.currentDevelopmentPayload?.hidden??!1,localizationStatus:i,status:r.currentDevelopmentPayload?.status??"success",...r.currentDevelopmentPayload??{status:"success"}},extensionPoints:l,localization:a??null,metafields:u,type:t.type,externalType:t.externalType,uuid:t.devUUID,surface:t.surface,version:c?.version,title:t.name,handle:t.handle,name:t.name,description:t.configuration.description,apiVersion:t.configuration.api_version,approvalScopes:r.grantedScopes,settings:t.configuration.settings}})}async function Gn(t,e,r,o){let n=t.configuration,s=n.extension_points??n.targeting;if(t.type==="checkout_post_purchase"&&(s=[{target:"purchase.post.render"}]),ce(s)){let a=await Bn(r);return Promise.all(s.map(async i=>{let{target:c,resource:d}=i,l={...i,surface:Ie(c),root:{url:`${e}/${c}`},resource:d||{url:""}},u=a?.[c];if(!u)return l;let w=await Qn(u,{target:c,extensionPoint:i,url:e,extension:t,buildDirectory:r,resolver:o});return{...l,...w}}))}return s}async function Bn(t){try{let e=S(t,"manifest.json"),r=await I(e);return JSON.parse(r)}catch(e){if(e instanceof SyntaxError)throw new Error(`Invalid manifest.json in ${t}: ${e.message}`);return null}}async function Kn({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s,a){let i=`${t}/${s}`,c=e[s];if(typeof c=="string"){let w=await Me(s,i,typeof a=="string"?a:c,r,o,n,typeof a=="string"?c:void 0);return{assets:{[w.name]:w}}}let l=e.build_manifest?.assets?.[s];if(l?.filepath){let u=await Me(s,i,l.filepath,r,o,n,l.module);return{assets:{[u.name]:u}}}return{}}async function jn({target:t,url:e,buildDirectory:r,resolver:o},n,s){if(s.length===0)return{};for(let i of s)o?.set(`${t}/${i}`,i);let a=await Promise.all(s.map(async i=>await he(S(r,i))??0));return{assets:{[n]:{name:n,url:`${e}/assets/${t}/`,lastUpdated:Math.max(...a)}}}}async function zn({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s){return e.intents?{intents:await Promise.all(e.intents.map(async(i,c)=>{let d=i.schema,l=s[c]?.schema,u=typeof l=="string"?l:d,h=typeof l=="string"?d:void 0;return{...i,schema:await Me("schema",`${t}/intents/${c}/schema`,u,r,o,n,h)}}))}:{}}async function Yn({target:t,url:e,extension:r,resolver:o},n,s){let a=await Me(n,`${t}/${n}`,s,e,r,o);return await Vn(t,s,r,o),{assets:{[a.name]:a}}}async function Vn(t,e,r,o){if(!o)return;let n=`${e}.map`;n.endsWith(at)&&await F(S(r.directory,n))&&o.set(`${t}/${gt(n)}`,n)}async function Qn(t,e){return(await Promise.all(Object.keys(t).map(async o=>{let n=t[o];return Jn(o,n)?zn(e,n):Xn(o,n)?Yn(e,o,n):Zn(o,n)?jn(e,o,n):Kn(e,o,n)}))).reduce((o,n)=>({...o,...n,assets:{...o.assets,...n.assets}}),{})}function ce(t){return Array.isArray(t)&&t.every(e=>typeof e=="object")}async function Me(t,e,r,o,n,s,a){let i=`${e}${de(r)}`;return s?.set(i,r),{name:t,url:`${o}/assets/${i}`,lastUpdated:await he(S(n.directory,a??r))??0}}function Jn(t,e){return t==="intents"&&Array.isArray(e)}function Xn(t,e){return(t==="main"||t==="should_render")&&typeof e=="string"}function Zn(t,e){return t==="assets"&&Array.isArray(e)&&e.every(r=>typeof r=="string")}import{EventEmitter as es}from"events";var le;(function(t){t.Update="PayloadUpdatedEvent:UPDATE"})(le||(le={}));async function Lo(t,e,r){return{app:{title:t.appName,apiKey:t.apiKey,url:ao(t.storeFqdn,t.apiKey),mobileUrl:co(t.storeFqdn,t.apiKey)},appId:t.id,version:t.manifestVersion,root:{url:new URL("/extensions",t.url).toString()},socket:{url:t.websocketURL},devConsole:{url:new URL("/extensions/dev-console",t.url).toString()},store:t.storeFqdn,extensions:await Promise.all(t.extensions.filter(n=>n.isPreviewable).map(n=>te(n,e,t,r&&it(r,n.devUUID))))}}function it(t,e){let r=t.get(e);return r||(r=new Map,t.set(e,r)),r}var De=class extends es{options;rawPayload;assetResolvers;constructor(e,r,o=new Map){super(),this.rawPayload=e,this.options=r,this.assetResolvers=o}getAssetResolver(e){return this.assetResolvers.get(e)}getConnectedPayload(){let e=this.getRawPayload();return{app:e.app,appId:e.appId,store:e.store,extensions:e.extensions}}getRawPayloadFilteredByExtensionIds(e){return{...this.rawPayload,extensions:this.rawPayload.extensions.filter(r=>e.includes(r.uuid))}}getRawPayload(){return this.rawPayload}updateApp(e){this.rawPayload=J(this.rawPayload,{app:e}),this.emitUpdate([])}updateExtensions(e){let r=this.rawPayload.extensions.map(o=>{let n=e.find(s=>s.uuid===o.uuid);if(n){if(ce(n.extensionPoints)&&ce(o.extensionPoints)){let s=n.extensionPoints.reduce((c,d)=>({...c,[d.target]:d}),{});o.extensionPoints=J(o.extensionPoints,n.extensionPoints,c=>c.map(d=>{let l=s[d.target];return l?J(d,l,(u,h)=>h):d}));let{extensionPoints:a,...i}=n;return J(o,i)}return J(o,n)}return o});this.rawPayload={...this.rawPayload,extensions:r},this.emitUpdate(e.map(o=>o.uuid))}async updateExtension(e,r,o,n){let s=this.rawPayload.extensions,a=s.findIndex(i=>i.uuid===e.devUUID);if(a===-1){g(b`Could not updateExtension() for extension with uuid: ${e.devUUID}`,r.stderr);return}s[a]=await te(e,o,{...this.options,currentDevelopmentPayload:n??{status:s[a]?.development.status},currentLocalizationPayload:s[a]?.localization},it(this.assetResolvers,e.devUUID)),this.rawPayload.extensions=s,this.emitUpdate([e.devUUID])}deleteExtension(e){let r=this.rawPayload.extensions.findIndex(o=>o.uuid===e.devUUID);r!==-1&&(this.rawPayload.extensions.splice(r,1),this.assetResolvers.delete(e.devUUID),this.emitUpdate([e.devUUID]))}async addExtension(e,r){this.rawPayload.extensions.push(await te(e,r,this.options,it(this.assetResolvers,e.devUUID))),this.emitUpdate([e.devUUID])}emitUpdate(e){this.emit(le.Update,e)}};p();p();var j;(function(t){t.Update="update",t.Dispatch="dispatch",t.Log="log"})(j||(j={}));function $o(t,e){return(r,o,n)=>{r.url==="/extensions"&&(g("Upgrading HTTP request to a websocket connection",e.stdout),t.handleUpgrade(r,o,n,ts(t,e)))}}function ts(t,e){return r=>{g("Websocket connection successfully established",e.stdout);let o={event:"connected",data:e.payloadStore.getConnectedPayload(),version:e.manifestVersion};g(b`Sending connected payload: ${v.json(o)}`,e.stdout),r.send(JSON.stringify(o)),r.on("message",as(t,e))}}function rs(t){try{let e=JSON.parse(t);if(!Array.isArray(e))return t;let r=e.map(o=>typeof o=="object"&&o!==null?v.json(o).output():String(o)).join(" ");return b`${r}`.value}catch(e){if(e instanceof SyntaxError)return t;throw e}}var os={debug:t=>v.gray(t),warn:t=>v.yellow(t),error:t=>v.errorText(t)};function ns({type:t,message:e}){let r=rs(e);switch(t){case"debug":case"warn":case"error":return b`${os[t](t.toUpperCase())}: ${r}`.value;case"log":case"info":return r;default:return`${t.toUpperCase()}: ${r}`}}function ss(t,e){D({outputPrefix:t.extensionName,stripAnsi:!1},()=>{e.stdout.write(ns(t))})}function as(t,e){return r=>{let o=JSON.parse(r.toString()),{event:n,data:s}=o;if(g(b`Received websocket message with event type ${n} and data:
1
+ import{a as Mt}from"./chunk-UOHNRH6E.js";import{a as Er}from"./chunk-GJ34J3XJ.js";import{a as Rr}from"./chunk-DLCJRY3W.js";import{a as br}from"./chunk-WU5HO6FZ.js";import{a as Sr}from"./chunk-H72B4Y5L.js";import{b as Tr}from"./chunk-5EW33K5C.js";import{a as Ar}from"./chunk-ROIASQF4.js";import{a as _r}from"./chunk-36ZTFNMR.js";import{a as Cr}from"./chunk-YXS4SFIN.js";import{a as dr}from"./chunk-RR4KN46J.js";import{a as mr}from"./chunk-6F6LL5UM.js";import{a as fr}from"./chunk-JVZ3VF4D.js";import{a as hr}from"./chunk-N4WEI6JA.js";import{a as gr}from"./chunk-XZSSBNGP.js";import{a as wr,b as yr,c as Pr,d as vr}from"./chunk-HCTPSLRL.js";import{a as Ur}from"./chunk-7BYWIVUZ.js";import{g as ur}from"./chunk-ZKWJX5GE.js";import{a as xr}from"./chunk-CLUMXUR5.js";import{a as lo,b as po,c as uo,d as mo}from"./chunk-73MCDHWW.js";import{a as ar}from"./chunk-BCWKIFNX.js";import{a as lr}from"./chunk-XTPBKTAX.js";import{a as Xe}from"./chunk-OCT65FRG.js";import{c as Je,m as Ze}from"./chunk-7SHHNWHL.js";import{a as pr}from"./chunk-RB7J7C3A.js";import{a as cr}from"./chunk-TQRKW6W3.js";import{b as ir,g as _e,j as Qe}from"./chunk-5GBIXC2Y.js";import{c as kr}from"./chunk-IGRDJ4EC.js";import{a as nr,b as sr,c as ao,d as io,e as rt,f as co,g as fo}from"./chunk-KLXOMT3K.js";import{a as $,b as Ve}from"./chunk-THEONODK.js";import{a as Xt,b as Zt,d as Te,f as er,m as Ae,n as H,s as q,u as tr,v as rr,w as or}from"./chunk-Q7BOSHWX.js";import{a as Jt}from"./chunk-7VW2J53A.js";import{a as Zr,b as tt,c as ee,d as eo}from"./chunk-2MMJVHYZ.js";import{a as ho,f as go,g as wo,h as ot,i as yo,j as Po,k as vo,l as xo,m as Eo,n as bo,o as So,p as Uo,q as Ro,v as To,x as Ao,z as nt}from"./chunk-F2X7F5QX.js";import{a as to,b as ro,c as oo,d as no,e as so}from"./chunk-M6Z6NXCE.js";import{a as Lr}from"./chunk-S67RM4AH.js";import{a as Xr}from"./chunk-5AFM6CVE.js";import{a as Jr}from"./chunk-ID3AR4VW.js";import{a as Ir}from"./chunk-N7VI7OWJ.js";import{$ as Vr,B as Br,D as Kr,F as Z,P as jr,Q as Yr,i as $r,j as W,k as Mr,m as Fr,p as et,q as Or,qa as ke,r as Nr,ra as Ie,s as qr,t as Wr,u as Hr,v as Gr,wa as Qr}from"./chunk-7LW23M5C.js";import{y as zr}from"./chunk-MJ3WNVMQ.js";import{c as Vt}from"./chunk-NEREVIKL.js";import{a as Ce,f as ie,m as Dr}from"./chunk-NL7WDQSR.js";import{a as K}from"./chunk-I2PSC3VF.js";import{b as Qt,e as Re}from"./chunk-GZKEIUJT.js";import{D as ye,S as kt,b as Ke,ca as J,d as bt,ea as It,f as St,h as Ut,l as Rt,p as Tt,r as At,u as _t,wa as Lt,x as Ct,y as we}from"./chunk-NYHGIWKZ.js";import{A as se,H as be,L as Bt,N as Se,S as Ue,T as ae,U as Ye,V as Kt,X as jt,a as Et,d as Pe,e as k,f as L,h as ve,i as xe,j as Dt,k as Ft,l as Ot,m as Nt,n as qt,o as D,p as Wt,q as je,r as ze,s as Ht,t as Gt,y as Ee}from"./chunk-ESTXKKAB.js";import{a as Cn}from"./chunk-7UNQOKZW.js";import{d as $t}from"./chunk-VNW2YMPM.js";import{h as T,k as X}from"./chunk-BFL74TW2.js";import{a as _n}from"./chunk-CTNBSUVU.js";import{a as _o}from"./chunk-XS6EKKTD.js";import{$a as vt,Ab as g,Bb as C,Ea as Pt,Na as he,P as Be,Ta as F,Wa as ge,cb as xt,ma as I,qb as v,sb as b,ua as me,wa as fe,xb as B}from"./chunk-DD7FQDTB.js";import{d as zt,f as Yt}from"./chunk-D7S4HEQE.js";import{a as ft}from"./chunk-JD5P5RAJ.js";import{d as S,f as Ge,g as ht,i as ue,j as gt,k as de,o as wt,p as yt}from"./chunk-773TIA5M.js";import{e as Q,g as p}from"./chunk-VKWPEFWQ.js";p();p();p();p();p();p();var kn=300*1e3,In='The host theme could not be created to host your theme app extension. Please try again or use the "--theme" flag to use an existing theme as the host theme.';async function Co(t,e,r=Date.now()){for(;await Ln(t,e,r););}async function Ln(t,e,r){let o=await _e(t,e);if(!o||$n(o,r))throw new T(In);return await ae(3),o.processing}function $n(t,e){return t.processing&&Date.now()-e>=kn}var Mn="https://codeload.github.com/Shopify/dawn/zip/refs/tags/v15.0.0",Dn="https://cdn.shopify.com/theme-store/uhrdefhlndzaoyrgylhto59sx2i7.jpg",st=3,Le=class extends cr{context="App Ext. Host";devPreview;constructor(e,r={devPreview:!1}){super(e),this.themeId=wr(e.storeFqdn),this.devPreview=r.devPreview}async findOrCreate(){let e=await this.fetch();return e??=this.devPreview?await this.createHostTheme():await this.create(),e}setTheme(e){yr(this.adminSession.storeFqdn,e)}removeTheme(){Pr(this.adminSession.storeFqdn)}async createHostTheme(){let e={role:ir,name:this.generateThemeName(this.context),src:Mn};for(let o=0;o<st;o++){g(`Attempt ${o}/${st}: Creating theme with name "${e.name}" and role "${e.role}"`);try{let n=await Qe(e,this.adminSession);if(n)return this.setTheme(n.id.toString()),g(`Waiting for theme with id "${n.id}" to be processed`),await Co(n.id,this.adminSession),n;throw new Error}catch{g(`Failed to create theme with name "${e.name}" and role "${e.role}". Retrying...`)}}g(`Theme creation failed after ${st} retries. Creating theme using fallback theme zip`);let r=await Qe({...e,src:Dn},this.adminSession);if(!r)throw g("Theme creation failed. Exiting process."),new X(`Could not create theme with name "${e.name}" and role "${e.role}"`);return r}};p();var Fn={"theme:init":hr,"theme:check":ar,"theme:console":lr,"theme:delete":pr,"theme:dev":dr,"theme:duplicate":mr,"theme:info":fr,"theme:language-server":gr,"theme:list":vr,"theme:metafields:pull":Ur,"theme:open":xr,"theme:package":Er,"theme:profile":br,"theme:publish":Sr,"theme:preview":Rr,"theme:pull":Tr,"theme:push":Ar,"theme:rename":_r,"theme:share":Cr},ka=Fn;async function ko(t){let{remoteApp:e,localApp:r}=t,n=r.allExtensions.filter(U=>U.isThemeExtension);if(n.length===0)return;let a=n[0].directory,i=t.themeExtensionPort??9293,[c,d]=await Promise.all([kt(t.storeFqdn),qn(e)]),l=c.storeFqdn,[u,h]=await Promise.all([Ze(c),Je(c)]),w=h?await Xe(t.storePassword,l,u):void 0,m=await Nn(c,t.theme),f=m.id.toString();return Ee({headline:"The theme app extension development server is ready.",orderedNextSteps:!0,nextSteps:[[{link:{label:"Install your app in your development store",url:d}}],[{link:{label:"Setup your theme app extension in the host theme",url:`https://${l}/admin/themes/${f}/editor`}}],["Preview your theme app extension at",{link:{label:`http://127.0.0.1:${i}`,url:`http://127.0.0.1:${i}`}}]]}),{type:"theme-app-extensions",prefix:"theme-extensions",function:On,options:{theme:m,adminSession:c,storefrontPassword:w,crawlerSignatureHeaders:u,themeExtensionDirectory:a,themeExtensionPort:i}}}var On=async(t,{theme:e,adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})=>{await(await ur(e,{adminSession:r,storefrontPassword:o,crawlerSignatureHeaders:n,themeExtensionDirectory:s,themeExtensionPort:a})).start()};async function Nn(t,e){let r;if(e)g(`Fetching theme with provided id ${e}`),r=await _e(parseInt(e,10),t);else{let o=new Le(t,{devPreview:!0});await be([{title:"Configuring host theme for theme app extension",task:async()=>{g("Finding or creating host theme for theme app extensions"),r=await o.findOrCreate()}}])}if(!r)throw new T("Could not find or create a host theme for theme app extensions");return r}async function qn(t){return t.developerPlatformClient?.clientName===zr.AppManagement?`https://${await we()}/?organization_id=${t.organizationId}&no_redirect=true&redirect=/oauth/redirect_from_developer_dashboard?client_id%3D${t.apiKey}`:`https://${await Ct()}/${t.organizationId}/apps/${t.id}/test`}p();p();p();p();p();p();async function Wn(t){let e=S(t.directory,"locales");return ge([S(e,"*.json")])}async function Io(t,e){let r=await Wn(t);if(!r.length)return{localization:void 0,status:""};let o=e.currentLocalizationPayload??{defaultLocale:"en",translations:{},lastUpdated:0},n="success";try{await Promise.all(r.map(async s=>{let[a,...i]=s.split("/").pop().split(".");if(a)return i[0]==="default"&&(o.defaultLocale=a),Hn(a,s,o,t,e)})),o.lastUpdated=Date.now(),g(`Parsed locales for extension ${t.handle} at ${t.directory}`,e.stdout)}catch{n="error"}return{localization:o,status:n}}async function Hn(t,e,r,o,n){let s;try{s=await I(e),r.translations[t]=JSON.parse(s)}catch(a){let i=`Error parsing ${t} locale for ${o.handle} at ${e}: ${a.message}`;throw C(i,n.stderr),new Error(i)}}p();function $e(t,e){switch(t){case"checkout_ui_extension":return{url:e.checkoutCartUrl};case"checkout_post_purchase":return{url:e.checkoutCartUrl};case"product_subscription":return{url:e.subscriptionProductUrl??""};default:return{url:""}}}var at=".js.map";async function te(t,e,r,o){return D({outputPrefix:t.outputPrefix},async()=>{o?.clear();let n=t.getOutputPathForDirectory(e),s=`${r.url}/extensions/${t.devUUID}`,{localization:a,status:i}=await Io(t,r),c=await Mr(t),d=t.outputRelativePath?ue(n):n,l=await Gn(t,s,d,o),u=null;return"metafields"in t.configuration&&Array.isArray(t.configuration.metafields)&&t.configuration.metafields.length>0&&(u=t.configuration.metafields),{assets:{main:ce(l)&&l[0]?.assets?.main?l[0].assets.main:{name:"main",url:`${s}/assets/${t.outputFileName}`,lastUpdated:await he(n)??0}},supportedFeatures:{runsOffline:t.configuration.supported_features?.runs_offline??!1},capabilities:{blockProgress:t.configuration.capabilities?.block_progress??!1,networkAccess:t.configuration.capabilities?.network_access??!1,apiAccess:t.configuration.capabilities?.api_access??!1,collectBuyerConsent:{smsMarketing:t.configuration.capabilities?.collect_buyer_consent?.sms_marketing??!1,customerPrivacy:t.configuration.capabilities?.collect_buyer_consent?.customer_privacy??!1},iframe:{sources:t.configuration.capabilities?.iframe?.sources??[]}},development:{...r.currentDevelopmentPayload,resource:$e(t.type,r),root:{url:s},hidden:r.currentDevelopmentPayload?.hidden??!1,localizationStatus:i,status:r.currentDevelopmentPayload?.status??"success",...r.currentDevelopmentPayload??{status:"success"}},extensionPoints:l,localization:a??null,metafields:u,type:t.type,externalType:t.externalType,uuid:t.devUUID,surface:t.surface,version:c?.version,title:t.name,handle:t.handle,name:t.name,description:t.configuration.description,apiVersion:t.configuration.api_version,approvalScopes:r.grantedScopes,settings:t.configuration.settings}})}async function Gn(t,e,r,o){let n=t.configuration,s=n.extension_points??n.targeting;if(t.type==="checkout_post_purchase"&&(s=[{target:"purchase.post.render"}]),ce(s)){let a=await Bn(r);return Promise.all(s.map(async i=>{let{target:c,resource:d}=i,l={...i,surface:Ie(c),root:{url:`${e}/${c}`},resource:d||{url:""}},u=a?.[c];if(!u)return l;let w=await Qn(u,{target:c,extensionPoint:i,url:e,extension:t,buildDirectory:r,resolver:o});return{...l,...w}}))}return s}async function Bn(t){try{let e=S(t,"manifest.json"),r=await I(e);return JSON.parse(r)}catch(e){if(e instanceof SyntaxError)throw new Error(`Invalid manifest.json in ${t}: ${e.message}`);return null}}async function Kn({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s,a){let i=`${t}/${s}`,c=e[s];if(typeof c=="string"){let w=await Me(s,i,typeof a=="string"?a:c,r,o,n,typeof a=="string"?c:void 0);return{assets:{[w.name]:w}}}let l=e.build_manifest?.assets?.[s];if(l?.filepath){let u=await Me(s,i,l.filepath,r,o,n,l.module);return{assets:{[u.name]:u}}}return{}}async function jn({target:t,url:e,buildDirectory:r,resolver:o},n,s){if(s.length===0)return{};for(let i of s)o?.set(`${t}/${i}`,i);let a=await Promise.all(s.map(async i=>await he(S(r,i))??0));return{assets:{[n]:{name:n,url:`${e}/assets/${t}/`,lastUpdated:Math.max(...a)}}}}async function zn({target:t,extensionPoint:e,url:r,extension:o,resolver:n},s){return e.intents?{intents:await Promise.all(e.intents.map(async(i,c)=>{let d=i.schema,l=s[c]?.schema,u=typeof l=="string"?l:d,h=typeof l=="string"?d:void 0;return{...i,schema:await Me("schema",`${t}/intents/${c}/schema`,u,r,o,n,h)}}))}:{}}async function Yn({target:t,url:e,extension:r,resolver:o},n,s){let a=await Me(n,`${t}/${n}`,s,e,r,o);return await Vn(t,s,r,o),{assets:{[a.name]:a}}}async function Vn(t,e,r,o){if(!o)return;let n=`${e}.map`;n.endsWith(at)&&await F(S(r.directory,n))&&o.set(`${t}/${gt(n)}`,n)}async function Qn(t,e){return(await Promise.all(Object.keys(t).map(async o=>{let n=t[o];return Jn(o,n)?zn(e,n):Xn(o,n)?Yn(e,o,n):Zn(o,n)?jn(e,o,n):Kn(e,o,n)}))).reduce((o,n)=>({...o,...n,assets:{...o.assets,...n.assets}}),{})}function ce(t){return Array.isArray(t)&&t.every(e=>typeof e=="object")}async function Me(t,e,r,o,n,s,a){let i=`${e}${de(r)}`;return s?.set(i,r),{name:t,url:`${o}/assets/${i}`,lastUpdated:await he(S(n.directory,a??r))??0}}function Jn(t,e){return t==="intents"&&Array.isArray(e)}function Xn(t,e){return(t==="main"||t==="should_render")&&typeof e=="string"}function Zn(t,e){return t==="assets"&&Array.isArray(e)&&e.every(r=>typeof r=="string")}import{EventEmitter as es}from"events";var le;(function(t){t.Update="PayloadUpdatedEvent:UPDATE"})(le||(le={}));async function Lo(t,e,r){return{app:{title:t.appName,apiKey:t.apiKey,url:ao(t.storeFqdn,t.apiKey),mobileUrl:co(t.storeFqdn,t.apiKey)},appId:t.id,version:t.manifestVersion,root:{url:new URL("/extensions",t.url).toString()},socket:{url:t.websocketURL},devConsole:{url:new URL("/extensions/dev-console",t.url).toString()},store:t.storeFqdn,extensions:await Promise.all(t.extensions.filter(n=>n.isPreviewable).map(n=>te(n,e,t,r&&it(r,n.devUUID))))}}function it(t,e){let r=t.get(e);return r||(r=new Map,t.set(e,r)),r}var De=class extends es{options;rawPayload;assetResolvers;constructor(e,r,o=new Map){super(),this.rawPayload=e,this.options=r,this.assetResolvers=o}getAssetResolver(e){return this.assetResolvers.get(e)}getConnectedPayload(){let e=this.getRawPayload();return{app:e.app,appId:e.appId,store:e.store,extensions:e.extensions}}getRawPayloadFilteredByExtensionIds(e){return{...this.rawPayload,extensions:this.rawPayload.extensions.filter(r=>e.includes(r.uuid))}}getRawPayload(){return this.rawPayload}updateApp(e){this.rawPayload=J(this.rawPayload,{app:e}),this.emitUpdate([])}updateExtensions(e){let r=this.rawPayload.extensions.map(o=>{let n=e.find(s=>s.uuid===o.uuid);if(n){if(ce(n.extensionPoints)&&ce(o.extensionPoints)){let s=n.extensionPoints.reduce((c,d)=>({...c,[d.target]:d}),{});o.extensionPoints=J(o.extensionPoints,n.extensionPoints,c=>c.map(d=>{let l=s[d.target];return l?J(d,l,(u,h)=>h):d}));let{extensionPoints:a,...i}=n;return J(o,i)}return J(o,n)}return o});this.rawPayload={...this.rawPayload,extensions:r},this.emitUpdate(e.map(o=>o.uuid))}async updateExtension(e,r,o,n){let s=this.rawPayload.extensions,a=s.findIndex(i=>i.uuid===e.devUUID);if(a===-1){g(b`Could not updateExtension() for extension with uuid: ${e.devUUID}`,r.stderr);return}s[a]=await te(e,o,{...this.options,currentDevelopmentPayload:n??{status:s[a]?.development.status},currentLocalizationPayload:s[a]?.localization},it(this.assetResolvers,e.devUUID)),this.rawPayload.extensions=s,this.emitUpdate([e.devUUID])}deleteExtension(e){let r=this.rawPayload.extensions.findIndex(o=>o.uuid===e.devUUID);r!==-1&&(this.rawPayload.extensions.splice(r,1),this.assetResolvers.delete(e.devUUID),this.emitUpdate([e.devUUID]))}async addExtension(e,r){this.rawPayload.extensions.push(await te(e,r,this.options,it(this.assetResolvers,e.devUUID))),this.emitUpdate([e.devUUID])}emitUpdate(e){this.emit(le.Update,e)}};p();p();var j;(function(t){t.Update="update",t.Dispatch="dispatch",t.Log="log"})(j||(j={}));function $o(t,e){return(r,o,n)=>{r.url==="/extensions"&&(g("Upgrading HTTP request to a websocket connection",e.stdout),t.handleUpgrade(r,o,n,ts(t,e)))}}function ts(t,e){return r=>{g("Websocket connection successfully established",e.stdout);let o={event:"connected",data:e.payloadStore.getConnectedPayload(),version:e.manifestVersion};g(b`Sending connected payload: ${v.json(o)}`,e.stdout),r.send(JSON.stringify(o)),r.on("message",as(t,e))}}function rs(t){try{let e=JSON.parse(t);if(!Array.isArray(e))return t;let r=e.map(o=>typeof o=="object"&&o!==null?v.json(o).output():String(o)).join(" ");return b`${r}`.value}catch(e){if(e instanceof SyntaxError)return t;throw e}}var os={debug:t=>v.gray(t),warn:t=>v.yellow(t),error:t=>v.errorText(t)};function ns({type:t,message:e}){let r=rs(e);switch(t){case"debug":case"warn":case"error":return b`${os[t](t.toUpperCase())}: ${r}`.value;case"log":case"info":return r;default:return`${t.toUpperCase()}: ${r}`}}function ss(t,e){D({outputPrefix:t.extensionName,stripAnsi:!1},()=>{e.stdout.write(ns(t))})}function as(t,e){return r=>{let o=JSON.parse(r.toString()),{event:n,data:s}=o;if(g(b`Received websocket message with event type ${n} and data:
2
2
  ${v.json(s)}
3
3
  `,e.stdout),n===j.Update){let a=e.payloadStore.getRawPayload().app.apiKey,i=s.app?.apiKey;if(s.app){if(a!==i)return;e.payloadStore.updateApp(s.app)}s.extensions&&e.payloadStore.updateExtensions(s.extensions)}else if(n===j.Dispatch){let a=is(o,e);Do(t,a,e)}else n===j.Log&&ss(s,e)}}function Mo(t,e){return r=>{let o={event:j.Update,version:e.manifestVersion,data:{...e.payloadStore.getRawPayloadFilteredByExtensionIds(r)}};g(b`Sending websocket update event to the websocket clients:
4
4
  ${v.json(o)}
@@ -1,4 +1,4 @@
1
- import{a as yn,b as Uy,c as xy,d as ZI,f as kA,g as hd,h as zB,i as Ho,j as My,k as a2,l as Es,m as l2,n as Hy,o as i2,p as o2}from"./chunk-7Y7AZRL3.js";import{a as A2}from"./chunk-7UNQOKZW.js";import{b as Dy,d as Ry}from"./chunk-QMYCJ2TM.js";import{a as n2}from"./chunk-5HBIIYSK.js";import{f as Rg}from"./chunk-VRO6QBVN.js";import{h as Ng,i as yd,j as Gy,k as Oy,o as wy}from"./chunk-PSUNX2YX.js";import{j as t2}from"./chunk-TR4OWSEX.js";import{a as e2}from"./chunk-TOLPNBZK.js";import{a as Id}from"./chunk-RAOMLN5A.js";import{Ab as JB,C as VR,E as kR,F as WR,Gb as Ug,H as PR,Hb as _c,J as $R,T as Sy,a as LR,eb as Dg,f as YR,fb as vy,l as KR,lb as Ny,m as FR,mb as by,nb as u2,ob as Ty,qb as zy,sb as Ly,t as XI,u as qR,y as XR,z as ZR}from"./chunk-GYFRTLML.js";import{e as JR,g as jR,h as Qd,i as uA}from"./chunk-B4OMIONW.js";import{f as LB,n as _y}from"./chunk-VFQW2QL2.js";import{a as jI}from"./chunk-JD5P5RAJ.js";import{b as Qy,i as hy,q as yy}from"./chunk-773TIA5M.js";import{a as Iy,c as ze,e as Rt,g as R}from"./chunk-VKWPEFWQ.js";var aS=ze(Qe=>{"use strict";R();var PI=Symbol.for("react.transitional.element"),d2=Symbol.for("react.portal"),m2=Symbol.for("react.fragment"),I2=Symbol.for("react.strict_mode"),Q2=Symbol.for("react.profiler"),h2=Symbol.for("react.consumer"),y2=Symbol.for("react.context"),S2=Symbol.for("react.forward_ref"),v2=Symbol.for("react.suspense"),D2=Symbol.for("react.memo"),Py=Symbol.for("react.lazy"),R2=Symbol.for("react.activity"),Zy=Symbol.iterator;function N2(n){return n===null||typeof n!="object"?null:(n=Zy&&n[Zy]||n["@@iterator"],typeof n=="function"?n:null)}var $y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tS=Object.assign,eS={};function Mg(n,u,c){this.props=n,this.context=u,this.refs=eS,this.updater=c||$y}Mg.prototype.isReactComponent={};Mg.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,u,"setState")};Mg.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function AS(){}AS.prototype=Mg.prototype;function $I(n,u,c){this.props=n,this.context=u,this.refs=eS,this.updater=c||$y}var tQ=$I.prototype=new AS;tQ.constructor=$I;tS(tQ,Mg.prototype);tQ.isPureReactComponent=!0;var Vy=Array.isArray;function WI(){}var HA={H:null,A:null,T:null,S:null},nS=Object.prototype.hasOwnProperty;function eQ(n,u,c){var r=c.ref;return{$$typeof:PI,type:n,key:u,ref:r!==void 0?r:null,props:c}}function U2(n,u){return eQ(n.type,u,n.props)}function AQ(n){return typeof n=="object"&&n!==null&&n.$$typeof===PI}function x2(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(c){return u[c]})}var ky=/\/+/g;function kI(n,u){return typeof n=="object"&&n!==null&&n.key!=null?x2(""+n.key):u.toString(36)}function M2(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(WI,WI):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function xg(n,u,c,r,E){var d=typeof n;(d==="undefined"||d==="boolean")&&(n=null);var m=!1;if(n===null)m=!0;else switch(d){case"bigint":case"string":case"number":m=!0;break;case"object":switch(n.$$typeof){case PI:case d2:m=!0;break;case Py:return m=n._init,xg(m(n._payload),u,c,r,E)}}if(m)return E=E(n),m=r===""?"."+kI(n,0):r,Vy(E)?(c="",m!=null&&(c=m.replace(ky,"$&/")+"/"),xg(E,u,c,"",function(U){return U})):E!=null&&(AQ(E)&&(E=U2(E,c+(E.key==null||n&&n.key===E.key?"":(""+E.key).replace(ky,"$&/")+"/")+m)),u.push(E)),1;m=0;var S=r===""?".":r+":";if(Vy(n))for(var Q=0;Q<n.length;Q++)r=n[Q],d=S+kI(r,Q),m+=xg(r,u,c,d,E);else if(Q=N2(n),typeof Q=="function")for(n=Q.call(n),Q=0;!(r=n.next()).done;)r=r.value,d=S+kI(r,Q++),m+=xg(r,u,c,d,E);else if(d==="object"){if(typeof n.then=="function")return xg(M2(n),u,c,r,E);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return m}function vd(n,u,c){if(n==null)return n;var r=[],E=0;return xg(n,r,"","",function(d){return u.call(c,d,E++)}),r}function H2(n){if(n._status===-1){var u=n._result;u=u(),u.then(function(c){(n._status===0||n._status===-1)&&(n._status=1,n._result=c)},function(c){(n._status===0||n._status===-1)&&(n._status=2,n._result=c)}),n._status===-1&&(n._status=0,n._result=u)}if(n._status===1)return n._result.default;throw n._result}var Wy=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},b2={map:vd,forEach:function(n,u,c){vd(n,function(){u.apply(this,arguments)},c)},count:function(n){var u=0;return vd(n,function(){u++}),u},toArray:function(n){return vd(n,function(u){return u})||[]},only:function(n){if(!AQ(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Qe.Activity=R2;Qe.Children=b2;Qe.Component=Mg;Qe.Fragment=m2;Qe.Profiler=Q2;Qe.PureComponent=$I;Qe.StrictMode=I2;Qe.Suspense=v2;Qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=HA;Qe.__COMPILER_RUNTIME={__proto__:null,c:function(n){return HA.H.useMemoCache(n)}};Qe.cache=function(n){return function(){return n.apply(null,arguments)}};Qe.cacheSignal=function(){return null};Qe.cloneElement=function(n,u,c){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var r=tS({},n.props),E=n.key;if(u!=null)for(d in u.key!==void 0&&(E=""+u.key),u)!nS.call(u,d)||d==="key"||d==="__self"||d==="__source"||d==="ref"&&u.ref===void 0||(r[d]=u[d]);var d=arguments.length-2;if(d===1)r.children=c;else if(1<d){for(var m=Array(d),S=0;S<d;S++)m[S]=arguments[S+2];r.children=m}return eQ(n.type,E,r)};Qe.createContext=function(n){return n={$$typeof:y2,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:h2,_context:n},n};Qe.createElement=function(n,u,c){var r,E={},d=null;if(u!=null)for(r in u.key!==void 0&&(d=""+u.key),u)nS.call(u,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(E[r]=u[r]);var m=arguments.length-2;if(m===1)E.children=c;else if(1<m){for(var S=Array(m),Q=0;Q<m;Q++)S[Q]=arguments[Q+2];E.children=S}if(n&&n.defaultProps)for(r in m=n.defaultProps,m)E[r]===void 0&&(E[r]=m[r]);return eQ(n,d,E)};Qe.createRef=function(){return{current:null}};Qe.forwardRef=function(n){return{$$typeof:S2,render:n}};Qe.isValidElement=AQ;Qe.lazy=function(n){return{$$typeof:Py,_payload:{_status:-1,_result:n},_init:H2}};Qe.memo=function(n,u){return{$$typeof:D2,type:n,compare:u===void 0?null:u}};Qe.startTransition=function(n){var u=HA.T,c={};HA.T=c;try{var r=n(),E=HA.S;E!==null&&E(c,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(WI,Wy)}catch(d){Wy(d)}finally{u!==null&&c.types!==null&&(u.types=c.types),HA.T=u}};Qe.unstable_useCacheRefresh=function(){return HA.H.useCacheRefresh()};Qe.use=function(n){return HA.H.use(n)};Qe.useActionState=function(n,u,c){return HA.H.useActionState(n,u,c)};Qe.useCallback=function(n,u){return HA.H.useCallback(n,u)};Qe.useContext=function(n){return HA.H.useContext(n)};Qe.useDebugValue=function(){};Qe.useDeferredValue=function(n,u){return HA.H.useDeferredValue(n,u)};Qe.useEffect=function(n,u){return HA.H.useEffect(n,u)};Qe.useEffectEvent=function(n){return HA.H.useEffectEvent(n)};Qe.useId=function(){return HA.H.useId()};Qe.useImperativeHandle=function(n,u,c){return HA.H.useImperativeHandle(n,u,c)};Qe.useInsertionEffect=function(n,u){return HA.H.useInsertionEffect(n,u)};Qe.useLayoutEffect=function(n,u){return HA.H.useLayoutEffect(n,u)};Qe.useMemo=function(n,u){return HA.H.useMemo(n,u)};Qe.useOptimistic=function(n,u){return HA.H.useOptimistic(n,u)};Qe.useReducer=function(n,u,c){return HA.H.useReducer(n,u,c)};Qe.useRef=function(n){return HA.H.useRef(n)};Qe.useState=function(n){return HA.H.useState(n)};Qe.useSyncExternalStore=function(n,u,c){return HA.H.useSyncExternalStore(n,u,c)};Qe.useTransition=function(){return HA.H.useTransition()};Qe.version="19.2.4"});var lS=ze((Ce,Dd)=>{"use strict";R();process.env.NODE_ENV!=="production"&&(function(){function n(h,F){Object.defineProperty(r.prototype,h,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",F[0],F[1])}})}function u(h){return h===null||typeof h!="object"?null:(h=Et&&h[Et]||h["@@iterator"],typeof h=="function"?h:null)}function c(h,F){h=(h=h.constructor)&&(h.displayName||h.name)||"ReactClass";var st=h+"."+F;At[st]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",F,h),At[st]=!0)}function r(h,F,st){this.props=h,this.context=F,this.refs=Ht,this.updater=st||Mt}function E(){}function d(h,F,st){this.props=h,this.context=F,this.refs=Ht,this.updater=st||Mt}function m(){}function S(h){return""+h}function Q(h){try{S(h);var F=!1}catch{F=!0}if(F){F=console;var st=F.error,ht=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return st.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ht),S(h)}}function U(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===Fe?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case se:return"Fragment";case ln:return"Profiler";case DA:return"StrictMode";case oA:return"Suspense";case H:return"SuspenseList";case Z:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case _t:return"Portal";case We:return h.displayName||"Context";case Ve:return(h._context.displayName||"Context")+".Consumer";case bA:var F=h.render;return h=h.displayName,h||(h=F.displayName||F.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case T:return F=h.displayName||null,F!==null?F:U(h.type)||"Memo";case M:F=h._payload,h=h._init;try{return U(h(F))}catch{}}return null}function b(h){if(h===se)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===M)return"<...>";try{var F=U(h);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function X(){var h=Wt.A;return h===null?null:h.getOwner()}function x(){return Error("react-stack-top-frame")}function Y(h){if(gn.call(h,"key")){var F=Object.getOwnPropertyDescriptor(h,"key").get;if(F&&F.isReactWarning)return!1}return h.key!==void 0}function k(h,F){function st(){TA||(TA=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",F))}st.isReactWarning=!0,Object.defineProperty(h,"key",{get:st,configurable:!0})}function $(){var h=U(this.type);return ha[h]||(ha[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function J(h,F,st,ht,Gt,ue){var Pt=st.ref;return h={$$typeof:wt,type:h,key:F,props:st,_owner:ht},(Pt!==void 0?Pt:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:$}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Gt}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function Nt(h,F){return F=J(h.type,F,h.props,h._owner,h._debugStack,h._debugTask),h._store&&(F._store.validated=h._store.validated),F}function vt(h){Ct(h)?h._store&&(h._store.validated=1):typeof h=="object"&&h!==null&&h.$$typeof===M&&(h._payload.status==="fulfilled"?Ct(h._payload.value)&&h._payload.value._store&&(h._payload.value._store.validated=1):h._store&&(h._store.validated=1))}function Ct(h){return typeof h=="object"&&h!==null&&h.$$typeof===wt}function St(h){var F={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(st){return F[st]})}function qt(h,F){return typeof h=="object"&&h!==null&&h.key!=null?(Q(h.key),St(""+h.key)):F.toString(36)}function le(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(m,m):(h.status="pending",h.then(function(F){h.status==="pending"&&(h.status="fulfilled",h.value=F)},function(F){h.status==="pending"&&(h.status="rejected",h.reason=F)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function ee(h,F,st,ht,Gt){var ue=typeof h;(ue==="undefined"||ue==="boolean")&&(h=null);var Pt=!1;if(h===null)Pt=!0;else switch(ue){case"bigint":case"string":case"number":Pt=!0;break;case"object":switch(h.$$typeof){case wt:case _t:Pt=!0;break;case M:return Pt=h._init,ee(Pt(h._payload),F,st,ht,Gt)}}if(Pt){Pt=h,Gt=Gt(Pt);var Me=ht===""?"."+qt(Pt,0):ht;return Pe(Gt)?(st="",Me!=null&&(st=Me.replace(zl,"$&/")+"/"),ee(Gt,F,st,"",function(WA){return WA})):Gt!=null&&(Ct(Gt)&&(Gt.key!=null&&(Pt&&Pt.key===Gt.key||Q(Gt.key)),st=Nt(Gt,st+(Gt.key==null||Pt&&Pt.key===Gt.key?"":(""+Gt.key).replace(zl,"$&/")+"/")+Me),ht!==""&&Pt!=null&&Ct(Pt)&&Pt.key==null&&Pt._store&&!Pt._store.validated&&(st._store.validated=2),Gt=st),F.push(Gt)),1}if(Pt=0,Me=ht===""?".":ht+":",Pe(h))for(var Be=0;Be<h.length;Be++)ht=h[Be],ue=Me+qt(ht,Be),Pt+=ee(ht,F,st,ue,Gt);else if(Be=u(h),typeof Be=="function")for(Be===h.entries&&(ya||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ya=!0),h=Be.call(h),Be=0;!(ht=h.next()).done;)ht=ht.value,ue=Me+qt(ht,Be++),Pt+=ee(ht,F,st,ue,Gt);else if(ue==="object"){if(typeof h.then=="function")return ee(le(h),F,st,ht,Gt);throw F=String(h),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Pt}function xt(h,F,st){if(h==null)return h;var ht=[],Gt=0;return ee(h,ht,"","",function(ue){return F.call(st,ue,Gt++)}),ht}function mt(h){if(h._status===-1){var F=h._ioInfo;F!=null&&(F.start=F.end=performance.now()),F=h._result;var st=F();if(st.then(function(Gt){if(h._status===0||h._status===-1){h._status=1,h._result=Gt;var ue=h._ioInfo;ue!=null&&(ue.end=performance.now()),st.status===void 0&&(st.status="fulfilled",st.value=Gt)}},function(Gt){if(h._status===0||h._status===-1){h._status=2,h._result=Gt;var ue=h._ioInfo;ue!=null&&(ue.end=performance.now()),st.status===void 0&&(st.status="rejected",st.reason=Gt)}}),F=h._ioInfo,F!=null){F.value=st;var ht=st.displayName;typeof ht=="string"&&(F.name=ht)}h._status===-1&&(h._status=0,h._result=st)}if(h._status===1)return F=h._result,F===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ import{a as yn,b as Uy,c as xy,d as ZI,f as kA,g as hd,h as zB,i as Ho,j as My,k as a2,l as Es,m as l2,n as Hy,o as i2,p as o2}from"./chunk-7Y7AZRL3.js";import{a as A2}from"./chunk-7UNQOKZW.js";import{b as Dy,d as Ry}from"./chunk-AEUVT7IU.js";import{a as n2}from"./chunk-5HBIIYSK.js";import{f as Rg}from"./chunk-VNW2YMPM.js";import{h as Ng,i as yd,j as Gy,k as Oy,o as wy}from"./chunk-BFL74TW2.js";import{j as t2}from"./chunk-TR4OWSEX.js";import{a as e2}from"./chunk-TOLPNBZK.js";import{a as Id}from"./chunk-Q4BTAXLS.js";import{Ab as JB,C as VR,E as kR,F as WR,Gb as Ug,H as PR,Hb as _c,J as $R,T as Sy,a as LR,eb as Dg,f as YR,fb as vy,l as KR,lb as Ny,m as FR,mb as by,nb as u2,ob as Ty,qb as zy,sb as Ly,t as XI,u as qR,y as XR,z as ZR}from"./chunk-DD7FQDTB.js";import{e as JR,g as jR,h as Qd,i as uA}from"./chunk-B4OMIONW.js";import{f as LB,n as _y}from"./chunk-D7S4HEQE.js";import{a as jI}from"./chunk-JD5P5RAJ.js";import{b as Qy,i as hy,q as yy}from"./chunk-773TIA5M.js";import{a as Iy,c as ze,e as Rt,g as R}from"./chunk-VKWPEFWQ.js";var aS=ze(Qe=>{"use strict";R();var PI=Symbol.for("react.transitional.element"),d2=Symbol.for("react.portal"),m2=Symbol.for("react.fragment"),I2=Symbol.for("react.strict_mode"),Q2=Symbol.for("react.profiler"),h2=Symbol.for("react.consumer"),y2=Symbol.for("react.context"),S2=Symbol.for("react.forward_ref"),v2=Symbol.for("react.suspense"),D2=Symbol.for("react.memo"),Py=Symbol.for("react.lazy"),R2=Symbol.for("react.activity"),Zy=Symbol.iterator;function N2(n){return n===null||typeof n!="object"?null:(n=Zy&&n[Zy]||n["@@iterator"],typeof n=="function"?n:null)}var $y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tS=Object.assign,eS={};function Mg(n,u,c){this.props=n,this.context=u,this.refs=eS,this.updater=c||$y}Mg.prototype.isReactComponent={};Mg.prototype.setState=function(n,u){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,u,"setState")};Mg.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function AS(){}AS.prototype=Mg.prototype;function $I(n,u,c){this.props=n,this.context=u,this.refs=eS,this.updater=c||$y}var tQ=$I.prototype=new AS;tQ.constructor=$I;tS(tQ,Mg.prototype);tQ.isPureReactComponent=!0;var Vy=Array.isArray;function WI(){}var HA={H:null,A:null,T:null,S:null},nS=Object.prototype.hasOwnProperty;function eQ(n,u,c){var r=c.ref;return{$$typeof:PI,type:n,key:u,ref:r!==void 0?r:null,props:c}}function U2(n,u){return eQ(n.type,u,n.props)}function AQ(n){return typeof n=="object"&&n!==null&&n.$$typeof===PI}function x2(n){var u={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(c){return u[c]})}var ky=/\/+/g;function kI(n,u){return typeof n=="object"&&n!==null&&n.key!=null?x2(""+n.key):u.toString(36)}function M2(n){switch(n.status){case"fulfilled":return n.value;case"rejected":throw n.reason;default:switch(typeof n.status=="string"?n.then(WI,WI):(n.status="pending",n.then(function(u){n.status==="pending"&&(n.status="fulfilled",n.value=u)},function(u){n.status==="pending"&&(n.status="rejected",n.reason=u)})),n.status){case"fulfilled":return n.value;case"rejected":throw n.reason}}throw n}function xg(n,u,c,r,E){var d=typeof n;(d==="undefined"||d==="boolean")&&(n=null);var m=!1;if(n===null)m=!0;else switch(d){case"bigint":case"string":case"number":m=!0;break;case"object":switch(n.$$typeof){case PI:case d2:m=!0;break;case Py:return m=n._init,xg(m(n._payload),u,c,r,E)}}if(m)return E=E(n),m=r===""?"."+kI(n,0):r,Vy(E)?(c="",m!=null&&(c=m.replace(ky,"$&/")+"/"),xg(E,u,c,"",function(U){return U})):E!=null&&(AQ(E)&&(E=U2(E,c+(E.key==null||n&&n.key===E.key?"":(""+E.key).replace(ky,"$&/")+"/")+m)),u.push(E)),1;m=0;var S=r===""?".":r+":";if(Vy(n))for(var Q=0;Q<n.length;Q++)r=n[Q],d=S+kI(r,Q),m+=xg(r,u,c,d,E);else if(Q=N2(n),typeof Q=="function")for(n=Q.call(n),Q=0;!(r=n.next()).done;)r=r.value,d=S+kI(r,Q++),m+=xg(r,u,c,d,E);else if(d==="object"){if(typeof n.then=="function")return xg(M2(n),u,c,r,E);throw u=String(n),Error("Objects are not valid as a React child (found: "+(u==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":u)+"). If you meant to render a collection of children, use an array instead.")}return m}function vd(n,u,c){if(n==null)return n;var r=[],E=0;return xg(n,r,"","",function(d){return u.call(c,d,E++)}),r}function H2(n){if(n._status===-1){var u=n._result;u=u(),u.then(function(c){(n._status===0||n._status===-1)&&(n._status=1,n._result=c)},function(c){(n._status===0||n._status===-1)&&(n._status=2,n._result=c)}),n._status===-1&&(n._status=0,n._result=u)}if(n._status===1)return n._result.default;throw n._result}var Wy=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},b2={map:vd,forEach:function(n,u,c){vd(n,function(){u.apply(this,arguments)},c)},count:function(n){var u=0;return vd(n,function(){u++}),u},toArray:function(n){return vd(n,function(u){return u})||[]},only:function(n){if(!AQ(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Qe.Activity=R2;Qe.Children=b2;Qe.Component=Mg;Qe.Fragment=m2;Qe.Profiler=Q2;Qe.PureComponent=$I;Qe.StrictMode=I2;Qe.Suspense=v2;Qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=HA;Qe.__COMPILER_RUNTIME={__proto__:null,c:function(n){return HA.H.useMemoCache(n)}};Qe.cache=function(n){return function(){return n.apply(null,arguments)}};Qe.cacheSignal=function(){return null};Qe.cloneElement=function(n,u,c){if(n==null)throw Error("The argument must be a React element, but you passed "+n+".");var r=tS({},n.props),E=n.key;if(u!=null)for(d in u.key!==void 0&&(E=""+u.key),u)!nS.call(u,d)||d==="key"||d==="__self"||d==="__source"||d==="ref"&&u.ref===void 0||(r[d]=u[d]);var d=arguments.length-2;if(d===1)r.children=c;else if(1<d){for(var m=Array(d),S=0;S<d;S++)m[S]=arguments[S+2];r.children=m}return eQ(n.type,E,r)};Qe.createContext=function(n){return n={$$typeof:y2,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null},n.Provider=n,n.Consumer={$$typeof:h2,_context:n},n};Qe.createElement=function(n,u,c){var r,E={},d=null;if(u!=null)for(r in u.key!==void 0&&(d=""+u.key),u)nS.call(u,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(E[r]=u[r]);var m=arguments.length-2;if(m===1)E.children=c;else if(1<m){for(var S=Array(m),Q=0;Q<m;Q++)S[Q]=arguments[Q+2];E.children=S}if(n&&n.defaultProps)for(r in m=n.defaultProps,m)E[r]===void 0&&(E[r]=m[r]);return eQ(n,d,E)};Qe.createRef=function(){return{current:null}};Qe.forwardRef=function(n){return{$$typeof:S2,render:n}};Qe.isValidElement=AQ;Qe.lazy=function(n){return{$$typeof:Py,_payload:{_status:-1,_result:n},_init:H2}};Qe.memo=function(n,u){return{$$typeof:D2,type:n,compare:u===void 0?null:u}};Qe.startTransition=function(n){var u=HA.T,c={};HA.T=c;try{var r=n(),E=HA.S;E!==null&&E(c,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(WI,Wy)}catch(d){Wy(d)}finally{u!==null&&c.types!==null&&(u.types=c.types),HA.T=u}};Qe.unstable_useCacheRefresh=function(){return HA.H.useCacheRefresh()};Qe.use=function(n){return HA.H.use(n)};Qe.useActionState=function(n,u,c){return HA.H.useActionState(n,u,c)};Qe.useCallback=function(n,u){return HA.H.useCallback(n,u)};Qe.useContext=function(n){return HA.H.useContext(n)};Qe.useDebugValue=function(){};Qe.useDeferredValue=function(n,u){return HA.H.useDeferredValue(n,u)};Qe.useEffect=function(n,u){return HA.H.useEffect(n,u)};Qe.useEffectEvent=function(n){return HA.H.useEffectEvent(n)};Qe.useId=function(){return HA.H.useId()};Qe.useImperativeHandle=function(n,u,c){return HA.H.useImperativeHandle(n,u,c)};Qe.useInsertionEffect=function(n,u){return HA.H.useInsertionEffect(n,u)};Qe.useLayoutEffect=function(n,u){return HA.H.useLayoutEffect(n,u)};Qe.useMemo=function(n,u){return HA.H.useMemo(n,u)};Qe.useOptimistic=function(n,u){return HA.H.useOptimistic(n,u)};Qe.useReducer=function(n,u,c){return HA.H.useReducer(n,u,c)};Qe.useRef=function(n){return HA.H.useRef(n)};Qe.useState=function(n){return HA.H.useState(n)};Qe.useSyncExternalStore=function(n,u,c){return HA.H.useSyncExternalStore(n,u,c)};Qe.useTransition=function(){return HA.H.useTransition()};Qe.version="19.2.4"});var lS=ze((Ce,Dd)=>{"use strict";R();process.env.NODE_ENV!=="production"&&(function(){function n(h,F){Object.defineProperty(r.prototype,h,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",F[0],F[1])}})}function u(h){return h===null||typeof h!="object"?null:(h=Et&&h[Et]||h["@@iterator"],typeof h=="function"?h:null)}function c(h,F){h=(h=h.constructor)&&(h.displayName||h.name)||"ReactClass";var st=h+"."+F;At[st]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",F,h),At[st]=!0)}function r(h,F,st){this.props=h,this.context=F,this.refs=Ht,this.updater=st||Mt}function E(){}function d(h,F,st){this.props=h,this.context=F,this.refs=Ht,this.updater=st||Mt}function m(){}function S(h){return""+h}function Q(h){try{S(h);var F=!1}catch{F=!0}if(F){F=console;var st=F.error,ht=typeof Symbol=="function"&&Symbol.toStringTag&&h[Symbol.toStringTag]||h.constructor.name||"Object";return st.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ht),S(h)}}function U(h){if(h==null)return null;if(typeof h=="function")return h.$$typeof===Fe?null:h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case se:return"Fragment";case ln:return"Profiler";case DA:return"StrictMode";case oA:return"Suspense";case H:return"SuspenseList";case Z:return"Activity"}if(typeof h=="object")switch(typeof h.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),h.$$typeof){case _t:return"Portal";case We:return h.displayName||"Context";case Ve:return(h._context.displayName||"Context")+".Consumer";case bA:var F=h.render;return h=h.displayName,h||(h=F.displayName||F.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case T:return F=h.displayName||null,F!==null?F:U(h.type)||"Memo";case M:F=h._payload,h=h._init;try{return U(h(F))}catch{}}return null}function b(h){if(h===se)return"<>";if(typeof h=="object"&&h!==null&&h.$$typeof===M)return"<...>";try{var F=U(h);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function X(){var h=Wt.A;return h===null?null:h.getOwner()}function x(){return Error("react-stack-top-frame")}function Y(h){if(gn.call(h,"key")){var F=Object.getOwnPropertyDescriptor(h,"key").get;if(F&&F.isReactWarning)return!1}return h.key!==void 0}function k(h,F){function st(){TA||(TA=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",F))}st.isReactWarning=!0,Object.defineProperty(h,"key",{get:st,configurable:!0})}function $(){var h=U(this.type);return ha[h]||(ha[h]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),h=this.props.ref,h!==void 0?h:null}function J(h,F,st,ht,Gt,ue){var Pt=st.ref;return h={$$typeof:wt,type:h,key:F,props:st,_owner:ht},(Pt!==void 0?Pt:null)!==null?Object.defineProperty(h,"ref",{enumerable:!1,get:$}):Object.defineProperty(h,"ref",{enumerable:!1,value:null}),h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(h,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(h,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Gt}),Object.defineProperty(h,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ue}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h}function Nt(h,F){return F=J(h.type,F,h.props,h._owner,h._debugStack,h._debugTask),h._store&&(F._store.validated=h._store.validated),F}function vt(h){Ct(h)?h._store&&(h._store.validated=1):typeof h=="object"&&h!==null&&h.$$typeof===M&&(h._payload.status==="fulfilled"?Ct(h._payload.value)&&h._payload.value._store&&(h._payload.value._store.validated=1):h._store&&(h._store.validated=1))}function Ct(h){return typeof h=="object"&&h!==null&&h.$$typeof===wt}function St(h){var F={"=":"=0",":":"=2"};return"$"+h.replace(/[=:]/g,function(st){return F[st]})}function qt(h,F){return typeof h=="object"&&h!==null&&h.key!=null?(Q(h.key),St(""+h.key)):F.toString(36)}function le(h){switch(h.status){case"fulfilled":return h.value;case"rejected":throw h.reason;default:switch(typeof h.status=="string"?h.then(m,m):(h.status="pending",h.then(function(F){h.status==="pending"&&(h.status="fulfilled",h.value=F)},function(F){h.status==="pending"&&(h.status="rejected",h.reason=F)})),h.status){case"fulfilled":return h.value;case"rejected":throw h.reason}}throw h}function ee(h,F,st,ht,Gt){var ue=typeof h;(ue==="undefined"||ue==="boolean")&&(h=null);var Pt=!1;if(h===null)Pt=!0;else switch(ue){case"bigint":case"string":case"number":Pt=!0;break;case"object":switch(h.$$typeof){case wt:case _t:Pt=!0;break;case M:return Pt=h._init,ee(Pt(h._payload),F,st,ht,Gt)}}if(Pt){Pt=h,Gt=Gt(Pt);var Me=ht===""?"."+qt(Pt,0):ht;return Pe(Gt)?(st="",Me!=null&&(st=Me.replace(zl,"$&/")+"/"),ee(Gt,F,st,"",function(WA){return WA})):Gt!=null&&(Ct(Gt)&&(Gt.key!=null&&(Pt&&Pt.key===Gt.key||Q(Gt.key)),st=Nt(Gt,st+(Gt.key==null||Pt&&Pt.key===Gt.key?"":(""+Gt.key).replace(zl,"$&/")+"/")+Me),ht!==""&&Pt!=null&&Ct(Pt)&&Pt.key==null&&Pt._store&&!Pt._store.validated&&(st._store.validated=2),Gt=st),F.push(Gt)),1}if(Pt=0,Me=ht===""?".":ht+":",Pe(h))for(var Be=0;Be<h.length;Be++)ht=h[Be],ue=Me+qt(ht,Be),Pt+=ee(ht,F,st,ue,Gt);else if(Be=u(h),typeof Be=="function")for(Be===h.entries&&(ya||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ya=!0),h=Be.call(h),Be=0;!(ht=h.next()).done;)ht=ht.value,ue=Me+qt(ht,Be++),Pt+=ee(ht,F,st,ue,Gt);else if(ue==="object"){if(typeof h.then=="function")return ee(le(h),F,st,ht,Gt);throw F=String(h),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return Pt}function xt(h,F,st){if(h==null)return h;var ht=[],Gt=0;return ee(h,ht,"","",function(ue){return F.call(st,ue,Gt++)}),ht}function mt(h){if(h._status===-1){var F=h._ioInfo;F!=null&&(F.start=F.end=performance.now()),F=h._result;var st=F();if(st.then(function(Gt){if(h._status===0||h._status===-1){h._status=1,h._result=Gt;var ue=h._ioInfo;ue!=null&&(ue.end=performance.now()),st.status===void 0&&(st.status="fulfilled",st.value=Gt)}},function(Gt){if(h._status===0||h._status===-1){h._status=2,h._result=Gt;var ue=h._ioInfo;ue!=null&&(ue.end=performance.now()),st.status===void 0&&(st.status="rejected",st.reason=Gt)}}),F=h._ioInfo,F!=null){F.value=st;var ht=st.displayName;typeof ht=="string"&&(F.name=ht)}h._status===-1&&(h._status=0,h._result=st)}if(h._status===1)return F=h._result,F===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -1,4 +1,4 @@
1
- import{a as h}from"./chunk-LJO22Z6S.js";import{a as l}from"./chunk-3NVQXPTU.js";import{a as m}from"./chunk-36OXWMXZ.js";import{wa as c}from"./chunk-YAA7OGRM.js";import{b as d}from"./chunk-WJEVB67Y.js";import{D as a}from"./chunk-AINDVTMY.js";import{z as p}from"./chunk-LIH7CQO7.js";import{h as n}from"./chunk-PSUNX2YX.js";import{a as C}from"./chunk-CTNBSUVU.js";import{e as g,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function v(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp,r=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id});if(r.devSessionDelete?.userErrors.length){let u=r.devSessionDelete.userErrors.map(w=>w.message).join(`
1
+ import{a as h}from"./chunk-5AFM6CVE.js";import{a as l}from"./chunk-ID3AR4VW.js";import{a as m}from"./chunk-N7VI7OWJ.js";import{wa as c}from"./chunk-7LW23M5C.js";import{b as d}from"./chunk-GZKEIUJT.js";import{D as a}from"./chunk-NYHGIWKZ.js";import{z as p}from"./chunk-ESTXKKAB.js";import{h as n}from"./chunk-BFL74TW2.js";import{a as C}from"./chunk-CTNBSUVU.js";import{e as g,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function v(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp,r=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id});if(r.devSessionDelete?.userErrors.length){let u=r.devSessionDelete.userErrors.map(w=>w.message).join(`
2
2
  `);throw new n(`Failed to stop the dev preview: ${u}`)}p({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${t.store.shopDomain} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var f=g(C(),1);var i=class t extends l{static summary="Cleans up the dev preview from the selected store.";static descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
3
3
 
4
4
  It restores the app's active version to the selected development store.
@@ -1 +1 @@
1
- import{a as u,b as l}from"./chunk-T24RA3WI.js";import{f as d,i as m}from"./chunk-EDHR546O.js";import{a as c}from"./chunk-3NVQXPTU.js";import{wa as p}from"./chunk-YAA7OGRM.js";import{h as s}from"./chunk-PSUNX2YX.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function f({clientId:a,operationIds:t,getOperation:n=m}){return Promise.all(t.map(async i=>{let e=await n({clientId:a,operationId:i});if(!e)throw new s(`Migration operation not found: ${i}`);return e}))}var r=class a extends c{static hidden=!0;static summary="Checks the status of app subscription migration operations.";static descriptionWithMarkdown="Checks app subscription migration operation status.\n\nRepeat `--id` for every operation GID returned by a multi-batch submission. With `--watch`, the command displays the current state while polling and outputs the final state after all requested operations reach a terminal status.\n\n`RUNNING` means an operation is still processing. `COMPLETED` means processing finished, but you must inspect the per-shop results to confirm each outcome. `FAILED` means the operation failed, and `CANCELED` means cancellation stopped further processing.\n\nUse `--json` to output every operation and its per-shop results as structured JSON.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --id <operation-id>","<%= config.bin %> <%= command.id %> --path ../my-app --config staging --id <operation-id-1> --id <operation-id-2> --watch","<%= config.bin %> <%= command.id %> --client-id <client-id> --id <operation-id> --json"];static flags={...d};async run(){let{flags:t}=await this.parse(a),{app:n,remoteApp:i}=await p({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),e=t.watch?await l({clientId:i.apiKey,operationIds:t.id}):await f({clientId:i.apiKey,operationIds:t.id});return u(e,t.json),{app:n}}};export{r as a};
1
+ import{a as u,b as l}from"./chunk-3NSZBIHE.js";import{f as d,i as m}from"./chunk-JIZ3BECO.js";import{a as c}from"./chunk-ID3AR4VW.js";import{wa as p}from"./chunk-7LW23M5C.js";import{h as s}from"./chunk-BFL74TW2.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function f({clientId:a,operationIds:t,getOperation:n=m}){return Promise.all(t.map(async i=>{let e=await n({clientId:a,operationId:i});if(!e)throw new s(`Migration operation not found: ${i}`);return e}))}var r=class a extends c{static hidden=!0;static summary="Checks the status of app subscription migration operations.";static descriptionWithMarkdown="Checks app subscription migration operation status.\n\nRepeat `--id` for every operation GID returned by a multi-batch submission. With `--watch`, the command displays the current state while polling and outputs the final state after all requested operations reach a terminal status.\n\n`RUNNING` means an operation is still processing. `COMPLETED` means processing finished, but you must inspect the per-shop results to confirm each outcome. `FAILED` means the operation failed, and `CANCELED` means cancellation stopped further processing.\n\nUse `--json` to output every operation and its per-shop results as structured JSON.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --id <operation-id>","<%= config.bin %> <%= command.id %> --path ../my-app --config staging --id <operation-id-1> --id <operation-id-2> --watch","<%= config.bin %> <%= command.id %> --client-id <client-id> --id <operation-id> --json"];static flags={...d};async run(){let{flags:t}=await this.parse(a),{app:n,remoteApp:i}=await p({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),e=t.watch?await l({clientId:i.apiKey,operationIds:t.id}):await f({clientId:i.apiKey,operationIds:t.id});return u(e,t.json),{app:n}}};export{r as a};
@@ -1 +1 @@
1
- import{a as N}from"./chunk-3NVQXPTU.js";import{a as R}from"./chunk-36OXWMXZ.js";import{aa as k,wa as x}from"./chunk-YAA7OGRM.js";import{b as T,c as C}from"./chunk-WJEVB67Y.js";import{G as A}from"./chunk-LIH7CQO7.js";import{h as y}from"./chunk-PSUNX2YX.js";import{Gb as L,ba as u,qb as v,sb as w,wb as E,xb as l}from"./chunk-GYFRTLML.js";import{i as h}from"./chunk-B4OMIONW.js";import{j as g}from"./chunk-773TIA5M.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();var I=12;async function M(n,t,a){let r=await n.appVersions(t);if(!r.app)throw new y(`Invalid API Key: ${t.apiKey}`);let o=r.app.appVersions.nodes.map(e=>{let i=e.message??"";return{...e,status:e.status==="active"&&!a?h.green(`\u2605 ${e.status}`):e.status,createdBy:e.createdBy?.displayName??"",createdAt:u(new Date(e.createdAt)),message:i}});if(!a){let e=(process.stdout.columns??75)-I,i=e;o.forEach(s=>{let d=s.message.length+(s.versionTag?.length??0)+L(s.status).length+s.createdAt.length+s.createdBy.length;if(d>e){let b=d-s.message.length,f=Math.max(e-b,10);f<i&&(i=f)}}),o.forEach(s=>{s.message.length>i&&(s.message=`${s.message.slice(0,i-3)}...`)})}return{appVersions:o,totalResults:r.app.appVersions.pageInfo.totalResults,app:r.app}}async function m(n){let{remoteApp:t,developerPlatformClient:a,organization:r}=n,{appVersions:o,totalResults:e}=await M(a,t,n.json);if(n.json)return E(JSON.stringify(o,null,2));if(k({org:r.businessName,appName:t.title,configFile:g(n.app.configPath)}),o.length===0){l("No app versions found for this app");return}A({rows:o,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let i=v.link(a.webUiName,[await a.appDeepLink(t),"versions"].join("/"));l(w`\nView all ${String(e)} app versions in the ${i}`)}var c=class n extends N{static summary="List deployed versions of your app.";static descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";static description=this.descriptionWithoutMarkdown();static flags={...T,...R,...C};async run(){let{flags:t}=await this.parse(n),{app:a,remoteApp:r,developerPlatformClient:o,organization:e}=await x({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await m({app:a,remoteApp:r,organization:e,developerPlatformClient:o,json:t.json}),{app:a}}};export{c as a};
1
+ import{a as N}from"./chunk-ID3AR4VW.js";import{a as R}from"./chunk-N7VI7OWJ.js";import{aa as k,wa as x}from"./chunk-7LW23M5C.js";import{b as T,c as C}from"./chunk-GZKEIUJT.js";import{G as A}from"./chunk-ESTXKKAB.js";import{h as y}from"./chunk-BFL74TW2.js";import{Gb as L,ba as u,qb as v,sb as w,wb as E,xb as l}from"./chunk-DD7FQDTB.js";import{i as h}from"./chunk-B4OMIONW.js";import{j as g}from"./chunk-773TIA5M.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();var I=12;async function M(n,t,a){let r=await n.appVersions(t);if(!r.app)throw new y(`Invalid API Key: ${t.apiKey}`);let o=r.app.appVersions.nodes.map(e=>{let i=e.message??"";return{...e,status:e.status==="active"&&!a?h.green(`\u2605 ${e.status}`):e.status,createdBy:e.createdBy?.displayName??"",createdAt:u(new Date(e.createdAt)),message:i}});if(!a){let e=(process.stdout.columns??75)-I,i=e;o.forEach(s=>{let d=s.message.length+(s.versionTag?.length??0)+L(s.status).length+s.createdAt.length+s.createdBy.length;if(d>e){let b=d-s.message.length,f=Math.max(e-b,10);f<i&&(i=f)}}),o.forEach(s=>{s.message.length>i&&(s.message=`${s.message.slice(0,i-3)}...`)})}return{appVersions:o,totalResults:r.app.appVersions.pageInfo.totalResults,app:r.app}}async function m(n){let{remoteApp:t,developerPlatformClient:a,organization:r}=n,{appVersions:o,totalResults:e}=await M(a,t,n.json);if(n.json)return E(JSON.stringify(o,null,2));if(k({org:r.businessName,appName:t.title,configFile:g(n.app.configPath)}),o.length===0){l("No app versions found for this app");return}A({rows:o,columns:{versionTag:{header:"VERSION"},status:{header:"STATUS"},message:{header:"MESSAGE"},createdAt:{header:"DATE CREATED"},createdBy:{header:"CREATED BY"}}});let i=v.link(a.webUiName,[await a.appDeepLink(t),"versions"].join("/"));l(w`\nView all ${String(e)} app versions in the ${i}`)}var c=class n extends N{static summary="List deployed versions of your app.";static descriptionWithMarkdown="Lists the deployed app versions. An app version is a snapshot of your app extensions.";static description=this.descriptionWithoutMarkdown();static flags={...T,...R,...C};async run(){let{flags:t}=await this.parse(n),{app:a,remoteApp:r,developerPlatformClient:o,organization:e}=await x({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await m({app:a,remoteApp:r,organization:e,developerPlatformClient:o,json:t.json}),{app:a}}};export{c as a};
@@ -1,4 +1,4 @@
1
- import{o as R}from"./chunk-LIH7CQO7.js";import{h as E}from"./chunk-PSUNX2YX.js";import{Ab as i,Bb as m,Y as b,ca as N}from"./chunk-GYFRTLML.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();c();var l=class{export;input;inputBytes;output;outputBytes;logs;functionId;fuelConsumed;target;errorMessage;errorType;inputQueryVariablesMetafieldValue;inputQueryVariablesMetafieldNamespace;inputQueryVariablesMetafieldKey;constructor({export:e,input:r,inputBytes:o,output:n,outputBytes:s,logs:a,functionId:h,fuelConsumed:u,target:A,errorMessage:S,errorType:g,inputQueryVariablesMetafieldValue:w,inputQueryVariablesMetafieldNamespace:M,inputQueryVariablesMetafieldKey:I}){this.export=e,this.input=r,this.inputBytes=o,this.output=n,this.outputBytes=s,this.logs=a,this.functionId=h,this.fuelConsumed=u,this.target=A,this.errorMessage=S,this.errorType=g,this.inputQueryVariablesMetafieldValue=w,this.inputQueryVariablesMetafieldNamespace=M,this.inputQueryVariablesMetafieldKey=I}},f=class{cacheEntryEpochMs;cacheTtlMs;httpRequest;httpResponse;constructor({cacheEntryEpochMs:e,cacheTtlMs:r,httpRequest:o,httpResponse:n}){this.cacheEntryEpochMs=e,this.cacheTtlMs=r,this.httpRequest=o,this.httpResponse=n}},_;(function(t){t[t.NoCachedResponse=0]="NoCachedResponse",t[t.CacheAboutToExpire=1]="CacheAboutToExpire",t[t.Unknown=2]="Unknown"})(_||(_={}));var d=class{reason;httpRequest;constructor({reason:e,httpRequest:r}){this.reason=e,this.httpRequest=r}},y=class{attempt;connectTimeMs;writeReadTimeMs;httpRequest;httpResponse;error;constructor({attempt:e,connectTimeMs:r,writeReadTimeMs:o,httpRequest:n,httpResponse:s,error:a}){this.attempt=e,this.connectTimeMs=r,this.writeReadTimeMs=o,this.httpRequest=n,this.httpResponse=s,this.error=a}};c();function O(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function C(t,e){return e?.deep&&O(t)||e?.deep&&Array.isArray(t)?p(t,e):t}function p(t,e){if(Array.isArray(t))return t.map(r=>e?.deep?p(r,e):r);if(O(t)){let r={};for(let[o,n]of Object.entries(t))r[b(o)]=C(n,e);return r}return t}var L=450,P=5*1e3,T=60*1e3,H=5,W=1e6,V="function_run",z="function_network_access",U="function_network_access.response_from_cache",q="function_network_access.request_execution_in_background",J="function_network_access.request_execution",Z="no_cached_response",ee="cached_response_about_to_expire";function te(t){let e=JSON.parse(t),r=e.input_query_variables_metafield_value&&x(e.input_query_variables_metafield_value);return new l({export:e.export,input:e.input,inputBytes:e.input_bytes,output:e.output,outputBytes:e.output_bytes,logs:e.logs,functionId:e.function_id,fuelConsumed:e.fuel_consumed,target:e.target,errorMessage:e.error_message,errorType:e.error_type,inputQueryVariablesMetafieldValue:r,inputQueryVariablesMetafieldNamespace:e.input_query_variables_metafield_namespace,inputQueryVariablesMetafieldKey:e.input_query_variables_metafield_key})}function re(t){let e=JSON.parse(t);return new f({cacheEntryEpochMs:e.cache_entry_epoch_ms,cacheTtlMs:e.cache_ttl_ms,httpRequest:e.http_request,httpResponse:e.http_response})}var Q={no_cached_response:_.NoCachedResponse,cached_response_about_to_expire:_.CacheAboutToExpire};function se(t){let e=JSON.parse(t);return new d({reason:Q[e.reason]??_.Unknown,httpRequest:e.http_request})}function oe(t){let e=JSON.parse(t);return new y({attempt:e.attempt,connectTimeMs:e.connect_time_ms??null,writeReadTimeMs:e.write_read_time_ms??null,httpRequest:e.http_request,httpResponse:e.http_response??null,error:e.error??null})}var ne=async t=>{let{errors:e}=t.response,r=L,o=null,n="not_attempted";if(e.length>0)if(i(`Errors: ${e.map(s=>s.message).join(", ")}`),e.some(s=>s.status===401))try{o=await t.onResubscribe(),n="succeeded"}catch(s){i(`Failed to resubscribe to app logs: ${s}`),r=T,n="failed",t.onThrottle(r)}else e.some(s=>s.status===429)?(r=T,t.onThrottle(r)):(r=P,t.onUnknownError(r));return{retryIntervalMs:r,nextJwtToken:o,resubscribeResult:n}};function ae(t){return t.allExtensions.flatMap(e=>e.isFunctionExtension?[`extensions.${e.configuration.handle}`]:[])}var ie=({appLog:t,appLogPayload:e,storeName:r,prettyPrint:o=!0})=>{let{cursor:n,...s}=t,a=p({...s,payload:e,localTime:N(t.log_timestamp),storeName:r});return e instanceof l&&(a.payload.logs=e.logs.split(`
1
+ import{o as R}from"./chunk-ESTXKKAB.js";import{h as E}from"./chunk-BFL74TW2.js";import{Ab as i,Bb as m,Y as b,ca as N}from"./chunk-DD7FQDTB.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();c();var l=class{export;input;inputBytes;output;outputBytes;logs;functionId;fuelConsumed;target;errorMessage;errorType;inputQueryVariablesMetafieldValue;inputQueryVariablesMetafieldNamespace;inputQueryVariablesMetafieldKey;constructor({export:e,input:r,inputBytes:o,output:n,outputBytes:s,logs:a,functionId:h,fuelConsumed:u,target:A,errorMessage:S,errorType:g,inputQueryVariablesMetafieldValue:w,inputQueryVariablesMetafieldNamespace:M,inputQueryVariablesMetafieldKey:I}){this.export=e,this.input=r,this.inputBytes=o,this.output=n,this.outputBytes=s,this.logs=a,this.functionId=h,this.fuelConsumed=u,this.target=A,this.errorMessage=S,this.errorType=g,this.inputQueryVariablesMetafieldValue=w,this.inputQueryVariablesMetafieldNamespace=M,this.inputQueryVariablesMetafieldKey=I}},f=class{cacheEntryEpochMs;cacheTtlMs;httpRequest;httpResponse;constructor({cacheEntryEpochMs:e,cacheTtlMs:r,httpRequest:o,httpResponse:n}){this.cacheEntryEpochMs=e,this.cacheTtlMs=r,this.httpRequest=o,this.httpResponse=n}},_;(function(t){t[t.NoCachedResponse=0]="NoCachedResponse",t[t.CacheAboutToExpire=1]="CacheAboutToExpire",t[t.Unknown=2]="Unknown"})(_||(_={}));var d=class{reason;httpRequest;constructor({reason:e,httpRequest:r}){this.reason=e,this.httpRequest=r}},y=class{attempt;connectTimeMs;writeReadTimeMs;httpRequest;httpResponse;error;constructor({attempt:e,connectTimeMs:r,writeReadTimeMs:o,httpRequest:n,httpResponse:s,error:a}){this.attempt=e,this.connectTimeMs=r,this.writeReadTimeMs=o,this.httpRequest=n,this.httpResponse=s,this.error=a}};c();function O(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&Object.getPrototypeOf(t)===Object.prototype}function C(t,e){return e?.deep&&O(t)||e?.deep&&Array.isArray(t)?p(t,e):t}function p(t,e){if(Array.isArray(t))return t.map(r=>e?.deep?p(r,e):r);if(O(t)){let r={};for(let[o,n]of Object.entries(t))r[b(o)]=C(n,e);return r}return t}var L=450,P=5*1e3,T=60*1e3,H=5,W=1e6,V="function_run",z="function_network_access",U="function_network_access.response_from_cache",q="function_network_access.request_execution_in_background",J="function_network_access.request_execution",Z="no_cached_response",ee="cached_response_about_to_expire";function te(t){let e=JSON.parse(t),r=e.input_query_variables_metafield_value&&x(e.input_query_variables_metafield_value);return new l({export:e.export,input:e.input,inputBytes:e.input_bytes,output:e.output,outputBytes:e.output_bytes,logs:e.logs,functionId:e.function_id,fuelConsumed:e.fuel_consumed,target:e.target,errorMessage:e.error_message,errorType:e.error_type,inputQueryVariablesMetafieldValue:r,inputQueryVariablesMetafieldNamespace:e.input_query_variables_metafield_namespace,inputQueryVariablesMetafieldKey:e.input_query_variables_metafield_key})}function re(t){let e=JSON.parse(t);return new f({cacheEntryEpochMs:e.cache_entry_epoch_ms,cacheTtlMs:e.cache_ttl_ms,httpRequest:e.http_request,httpResponse:e.http_response})}var Q={no_cached_response:_.NoCachedResponse,cached_response_about_to_expire:_.CacheAboutToExpire};function se(t){let e=JSON.parse(t);return new d({reason:Q[e.reason]??_.Unknown,httpRequest:e.http_request})}function oe(t){let e=JSON.parse(t);return new y({attempt:e.attempt,connectTimeMs:e.connect_time_ms??null,writeReadTimeMs:e.write_read_time_ms??null,httpRequest:e.http_request,httpResponse:e.http_response??null,error:e.error??null})}var ne=async t=>{let{errors:e}=t.response,r=L,o=null,n="not_attempted";if(e.length>0)if(i(`Errors: ${e.map(s=>s.message).join(", ")}`),e.some(s=>s.status===401))try{o=await t.onResubscribe(),n="succeeded"}catch(s){i(`Failed to resubscribe to app logs: ${s}`),r=T,n="failed",t.onThrottle(r)}else e.some(s=>s.status===429)?(r=T,t.onThrottle(r)):(r=P,t.onUnknownError(r));return{retryIntervalMs:r,nextJwtToken:o,resubscribeResult:n}};function ae(t){return t.allExtensions.flatMap(e=>e.isFunctionExtension?[`extensions.${e.configuration.handle}`]:[])}var ie=({appLog:t,appLogPayload:e,storeName:r,prettyPrint:o=!0})=>{let{cursor:n,...s}=t,a=p({...s,payload:e,localTime:N(t.log_timestamp),storeName:r});return e instanceof l&&(a.payload.logs=e.logs.split(`
2
2
  `).filter(Boolean),a.payload.inputQueryVariablesMetafieldValue&&(a.payload.inputQueryVariablesMetafieldValue=x(a.payload.inputQueryVariablesMetafieldValue))),o?JSON.stringify(a,null,2):JSON.stringify(a)},pe=(t,e)=>{let r=p(JSON.parse(t));return e===V?new l(r):e===U?new f(r):e===q?new d(r):e===J?new y(r):r},ue=async(t,e,r,o)=>{let n=await t.subscribeToAppLogs(e,r);if(!n.appLogsSubscribe)throw new E("Failed to subscribe to app logs: No response received");let{jwtToken:s,success:a,errors:h}=n.appLogsSubscribe;if(i(`Token: ${s}
3
3
  `),i(`API Key: ${e.apiKey}
4
4
  `),h&&h.length>0){let u=h.join(", ");throw await R({stripAnsi:!1},()=>{m(`Errors subscribing to app logs: ${u}`,o),m("App log streaming is not available in this session.",o)}),new E(u)}else{if(!s)throw new E("Failed to subscribe to app logs: No response received");let u=Array.isArray(e.shopIds)?e.shopIds:[e.shopIds];i(`Subscribed to App Events for shop ID(s) ${u.join(", ")}`),a!==void 0&&i(`Success: ${a}
@@ -1,9 +1,9 @@
1
- import{a as B,j as C,m as P}from"./chunk-FH36PGZH.js";import{e as U,f as _}from"./chunk-GCTCRKET.js";import{e as g}from"./chunk-UXL2A5UK.js";import{l as v,m as w}from"./chunk-ZYEGQSF5.js";import{Aa as E}from"./chunk-AINDVTMY.js";import{Ab as m}from"./chunk-GYFRTLML.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
1
+ import{a as B,j as C,m as P}from"./chunk-ZKWJX5GE.js";import{e as U,f as _}from"./chunk-7SHHNWHL.js";import{e as g}from"./chunk-ZQ4KG6U2.js";import{l as v,m as w}from"./chunk-5GBIXC2Y.js";import{Aa as E}from"./chunk-NYHGIWKZ.js";import{Ab as m}from"./chunk-DD7FQDTB.js";import{g as T}from"./chunk-VKWPEFWQ.js";T();var $=20,J=1024*1024,A=2;function oe(t,e,r,s,o={},l){let n=B(r),i=new Map,c=a=>a.total===0?"[100%]":`[${Math.round(a.current/a.total*100)}%]`,u=R(t,e,n),h=Promise.all([s.ready(),u]).then(()=>q(n,s,t,e,i)),p=h.then(a=>a.promise).then(()=>j(n,s,t,e,o,i)),k=o?.deferPartialWork?u:p.then(a=>a.promise);return o?.backgroundWorkCatch&&Promise.all([u,h.then(a=>a.promise),p.then(a=>a.promise)]).catch(o.backgroundWorkCatch),{uploadResults:i,workPromise:k,renderThemeSyncProgress:async()=>{if(o?.deferPartialWork)return;let{progress:a,promise:d}=await h,f=o.multiEnvironment?4e3:1e3;await g(b({promise:d,titleGetter:()=>`Uploading files to remote theme ${c(a)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment);let{progress:y,promise:F}=await p;await g(b({promise:F,titleGetter:()=>`Cleaning your remote theme ${c(y)}`,updateInterval:f}),l?.stderr,o?.multiEnvironment),await g([{title:"Theme upload complete",task:async()=>{}}],l?.stderr,o?.multiEnvironment),H(i,o?.environment)}}}function b({promise:t,titleGetter:e,updateInterval:r}){let s=[],o=()=>{s.push({title:e(),task:async()=>{await Promise.race([t,new Promise(n=>setTimeout(()=>n("timeout"),r))])==="timeout"&&o()}})};return o(),s}function j(t,e,r,s,o,l){if(o.nodelete)return{progress:{current:0,total:0},promise:Promise.resolve()};let n=L(t,e),i=x(n),c={current:0,total:i.length};if(i.length===0)return{progress:c,promise:Promise.resolve()};let u=[];for(let p=0;p<i.length;p+=$){let k=i.slice(p,p+$),a=v(r.id,k.map(d=>d.key),s).then(d=>{d.forEach(f=>{if(l.set(f.key,f),!f.success){let y=f.errors?.asset?.map(F=>`-${F}`).join(`
2
2
  `);_(f.key,"delete")(new Error(`Failed to delete ${f.key}: ${y}`))}}),c.current+=k.length});u.push(a)}let h=Promise.all(u).then(()=>{c.current=c.total});return{progress:c,promise:h}}function L(t,e){let s=e.applyIgnoreFilters(t).filter(o=>!e.files.has(o.key));return m(`Files to be deleted:
3
3
  ${s.map(o=>`-${o.key}`).join(`
4
- `)}`),s}function x(t){let e=P(t);return[...e.contextualizedJsonFiles,...e.templateJsonFiles,...e.sectionJsonFiles,...e.otherJsonFiles,...e.sectionLiquidFiles,...e.blockLiquidFiles,...e.layoutFiles,...e.otherLiquidFiles,...e.configDataFile,...e.configStylesheetFiles,...e.documentationFiles,...e.configSchemaFile,...e.staticAssetFiles]}var D=[{key:"config/settings_schema.json",value:"[]"},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"}];async function R(t,e,r){let s=new Set(r.map(l=>l.key)),o=D.filter(({key:l})=>!s.has(l));o.length>0&&await w(t.id,o,e)}function q(t,e,r,s,o){let l=S(e,t);e.unsyncedFileKeys.clear(),l.forEach(a=>e.unsyncedFileKeys.add(a.key));let{independentFiles:n,dependentFiles:i}=I(l),c={current:0,total:l.length},u=a=>a.length===0?Promise.resolve():Promise.all(z(a).map(d=>N(d,e,s,r.id,o).then(()=>{c.current+=d.length,d.forEach(f=>e.unsyncedFileKeys.delete(f.key))}))).then(()=>{}),h=i.reduce((a,d)=>a.then(()=>u(d)),Promise.resolve()),p=Promise.resolve().then(()=>u(n.flat())),k=Promise.all([h,p]).then(()=>{c.current=c.total});return{progress:c,promise:k}}function S(t,e){let r=K(t),s=t.applyIgnoreFilters(r),o=new Map(e.map(n=>[n.key,n])),l=s.filter(n=>{let i=o.get(n.key);return!i||i.checksum!==n.checksum});return m(`Files to be uploaded:
4
+ `)}`),s}function x(t){let e=P(t);return[...e.contextualizedJsonFiles,...e.templateJsonFiles,...e.sectionJsonFiles,...e.otherJsonFiles,...e.sectionLiquidFiles,...e.blockLiquidFiles,...e.layoutFiles,...e.otherLiquidFiles,...e.configDataFile,...e.configSchemaFile,...e.staticAssetFiles]}var D=[{key:"config/settings_schema.json",value:"[]"},{key:"layout/password.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"},{key:"layout/theme.liquid",value:"{{ content_for_header }}{{ content_for_layout }}"}];async function R(t,e,r){let s=new Set(r.map(l=>l.key)),o=D.filter(({key:l})=>!s.has(l));o.length>0&&await w(t.id,o,e)}function q(t,e,r,s,o){let l=I(e,t);e.unsyncedFileKeys.clear(),l.forEach(a=>e.unsyncedFileKeys.add(a.key));let{independentFiles:n,dependentFiles:i}=z(l),c={current:0,total:l.length},u=a=>a.length===0?Promise.resolve():Promise.all(S(a).map(d=>N(d,e,s,r.id,o).then(()=>{c.current+=d.length,d.forEach(f=>e.unsyncedFileKeys.delete(f.key))}))).then(()=>{}),h=i.reduce((a,d)=>a.then(()=>u(d)),Promise.resolve()),p=Promise.resolve().then(()=>u(n.flat())),k=Promise.all([h,p]).then(()=>{c.current=c.total});return{progress:c,promise:k}}function I(t,e){let r=K(t),s=t.applyIgnoreFilters(r),o=new Map(e.map(n=>[n.key,n])),l=s.filter(n=>{let i=o.get(n.key);return!i||i.checksum!==n.checksum});return m(`Files to be uploaded:
5
5
  ${l.map(n=>`-${n.key}`).join(`
6
- `)}`),l}function I(t){let e=P(t);return{independentFiles:[e.otherLiquidFiles,e.otherJsonFiles,e.staticAssetFiles,e.configStylesheetFiles,e.documentationFiles],dependentFiles:[e.configSchemaFile,e.layoutFiles,e.blockLiquidFiles,e.sectionLiquidFiles,e.sectionJsonFiles,e.templateJsonFiles,e.contextualizedJsonFiles,e.configDataFile]}}function z(t){let e=[],r=[],s=0;for(let o of t){let l=r.length>=$,n=s>=J;(l||n)&&(e.push(r),r=[],s=0),r.push(o),s+=o.size??0}return r.length>0&&e.push(r),e}function K(t){let e=[];return t.files.forEach((r,s)=>{let o=r.value?Buffer.byteLength(r.value,"utf8"):r.attachment?.length??0;e.push({key:s,checksum:r.checksum,size:o})}),e}async function N(t,e,r,s,o){let l=t.map(i=>{let c=e.files.get(i.key)?.value,u=e.files.get(i.key)?.attachment;return{key:i.key,...c&&{value:c},...u&&{attachment:u}}});m(`Uploading the following files:
6
+ `)}`),l}function z(t){let e=P(t);return{independentFiles:[e.otherLiquidFiles,e.otherJsonFiles,e.staticAssetFiles],dependentFiles:[e.configSchemaFile,e.layoutFiles,e.blockLiquidFiles,e.sectionLiquidFiles,e.sectionJsonFiles,e.templateJsonFiles,e.contextualizedJsonFiles,e.configDataFile]}}function S(t){let e=[],r=[],s=0;for(let o of t){let l=r.length>=$,n=s>=J;(l||n)&&(e.push(r),r=[],s=0),r.push(o),s+=o.size??0}return r.length>0&&e.push(r),e}function K(t){let e=[];return t.files.forEach((r,s)=>{let o=r.value?Buffer.byteLength(r.value,"utf8"):r.attachment?.length??0;e.push({key:s,checksum:r.checksum,size:o})}),e}async function N(t,e,r,s,o){let l=t.map(i=>{let c=e.files.get(i.key)?.value,u=e.files.get(i.key)?.attachment;return{key:i.key,...c&&{value:c},...u&&{attachment:u}}});m(`Uploading the following files:
7
7
  ${t.map(i=>`-${i.key}`).join(`
8
8
  `)}`),(await M(l,s,r)).forEach(i=>{o.set(i.key,i),W(i,e,s)})}function W(t,e,r){if(t.success)e.uploadErrors.delete(t.key);else{let s=t.errors?.asset??["Response was not successful."];e.uploadErrors.set(t.key,s),C(r,t.key)}}async function M(t,e,r,s=0){if(t.length===0)return[];s>0&&m(`Retry Attempt ${s}/${A} for the following files:
9
9
  ${t.map(n=>`-${n.key}`).join(`
@@ -1,4 +1,4 @@
1
- import{ba as a,i}from"./chunk-YAA7OGRM.js";import{qb as e,sb as r}from"./chunk-GYFRTLML.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function f(n,t,o){return c(n,t,o,"text")}async function c(n,t,o,S){return await a(t,o.source),S==="json"?r`${e.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:i(n.configuration)})}`:r`
1
+ import{ba as a,i}from"./chunk-7LW23M5C.js";import{qb as e,sb as r}from"./chunk-DD7FQDTB.js";import{g as u}from"./chunk-VKWPEFWQ.js";u();async function f(n,t,o){return c(n,t,o,"text")}async function c(n,t,o,S){return await a(t,o.source),S==="json"?r`${e.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:i(n.configuration)})}`:r`
2
2
  ${e.green("SHOPIFY_API_KEY")}=${t.apiKey}
3
3
  ${e.green("SHOPIFY_API_SECRET")}=${t.apiSecretKeys[0]?.secret??""}
4
4
  ${e.green("SCOPES")}=${i(n.configuration)}
@@ -1,4 +1,4 @@
1
- import{a as f}from"./chunk-3NVQXPTU.js";import{a as o}from"./chunk-36OXWMXZ.js";import{ta as c,wa as s}from"./chunk-YAA7OGRM.js";import{b as n,f as r}from"./chunk-WJEVB67Y.js";import{a as u}from"./chunk-CTNBSUVU.js";import{e as g,g as a}from"./chunk-VKWPEFWQ.js";a();var i=g(u(),1);var t=class p extends f{static summary="Fetch your app configuration from the Developer Dashboard.";static descriptionWithMarkdown=`Pulls app configuration from the Developer Dashboard and creates or overwrites a configuration file. You can create a new app with this command to start with a default configuration file.
1
+ import{a as f}from"./chunk-ID3AR4VW.js";import{a as o}from"./chunk-N7VI7OWJ.js";import{ta as c,wa as s}from"./chunk-7LW23M5C.js";import{b as n,f as r}from"./chunk-GZKEIUJT.js";import{a as u}from"./chunk-CTNBSUVU.js";import{e as g,g as a}from"./chunk-VKWPEFWQ.js";a();var i=g(u(),1);var t=class p extends f{static summary="Fetch your app configuration from the Developer Dashboard.";static descriptionWithMarkdown=`Pulls app configuration from the Developer Dashboard and creates or overwrites a configuration file. You can create a new app with this command to start with a default configuration file.
2
2
 
3
3
  For more information on the format of the created TOML configuration file, refer to the [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration) page.
4
4
  `;static description=this.descriptionWithoutMarkdown();static flags={...n,...o,"organization-id":i.Flags.string({hidden:!0,env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]}),"client-id":r(o["client-id"]),"file-name":i.Flags.string({hidden:!1,description:"The name of the app configuration file to create or overwrite.",env:"SHOPIFY_FLAG_APP_CONFIG_FILE_NAME",exclusive:["config"]}),force:i.Flags.boolean({hidden:!1,description:"Overwrite an existing configuration file without prompting.",env:"SHOPIFY_FLAG_FORCE",dependsOn:["file-name"]})};async run(){let{flags:e}=await this.parse(p),d={directory:e.path,apiKey:e["client-id"],organizationId:e["organization-id"],configName:e.config,fileName:e["file-name"],force:e.force??!1},l=await c(d),{app:m}=await s({directory:e.path,clientId:void 0,forceRelink:!1,userProvidedConfigName:l.configFileName});return{app:m}}};export{t as a};
@@ -0,0 +1,7 @@
1
+ import{p,v as d}from"./chunk-4Y7WHAJX.js";import{a as u}from"./chunk-N4N35AQP.js";import{aa as w}from"./chunk-W25XMFZJ.js";import{b as l}from"./chunk-GZKEIUJT.js";import{z as f}from"./chunk-ESTXKKAB.js";import{h as i}from"./chunk-BFL74TW2.js";import{Ta as c,ma as h}from"./chunk-DD7FQDTB.js";import{f as r,n as m}from"./chunk-773TIA5M.js";import{e as _,g as o}from"./chunk-VKWPEFWQ.js";o();o();var g=_(w(),1),P=["assets/**","blocks/**","config/**","layout/**","listings/**/*","locales/**","sections/**","snippets/**","templates/**","templates/customers/**","release-notes.md","update_extension.json"].join("|");async function y(e){let t=await k(e),s=`${e}/${t}`,n=`${e}/(${P})`;await u({inputDirectory:e,outputZipPath:s,matchFilePattern:n}),f({body:["Your local theme was packaged in",{filePath:m(s)}]})}async function k(e){let t=r(e,"config/settings_schema.json");if(!await c(t))throw new i("Provide a config/settings_schema.json to package your theme.");let s=await v(t);if(s===void 0||s.theme_name===void 0)throw new i("Provide a theme_info.theme_name configuration in config/settings_schema.json.");return`${[s.theme_name,s.theme_version].filter(Boolean).join("-")}.zip`}async function v(e){let t=(0,g.parseJSON)(await h(e),null,!0);if(!t)throw new i("The file config/settings_schema.json contains an error. Please check if the file is valid JSON and includes the theme_info.theme_name configuration.");return t.find(s=>s.name==="theme_info")}var a=class extends d{static summary="Package your theme into a .zip file, ready to upload to the Online Store.";static descriptionWithMarkdown=`Packages your local theme files into a ZIP file that can be uploaded to Shopify.
2
+
3
+ Only folders that match the [default Shopify theme folder structure](https://shopify.dev/docs/storefronts/themes/tools/cli#directory-structure) are included in the package.
4
+
5
+ The package includes the \`listings\` directory if present (required for multi-preset themes per [Theme Store requirements](https://shopify.dev/docs/storefronts/themes/store/requirements#adding-presets-to-your-theme-zip-submission)).
6
+
7
+ The ZIP file uses the name \`theme_name-theme_version.zip\`, based on parameters in your [settings_schema.json](https://shopify.dev/docs/storefronts/themes/architecture/config/settings-schema-json) file.`;static description=this.descriptionWithoutMarkdown();static flags={...l,path:p.path};static multiEnvironmentsFlags=null;async command(t){await y(t.path)}};export{a};
@@ -1 +1 @@
1
- import{b as n}from"./chunk-PVZE65R7.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();var o=class extends Error{type;constructor(e,p){super(p),this.type=e}},i=r=>async()=>r,s=r=>async e=>e.provider!==r.provider?n(new o("invalid-provider")):r.action(e.port);var d="cloudflare",v=i({name:d});export{o as a,s as b,d as c,v as d};
1
+ import{b as n}from"./chunk-RF54RVOL.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();var o=class extends Error{type;constructor(e,p){super(p),this.type=e}},i=r=>async()=>r,s=r=>async e=>e.provider!==r.provider?n(new o("invalid-provider")):r.action(e.port);var d="cloudflare",v=i({name:d});export{o as a,s as b,d as c,v as d};
@@ -1 +1 @@
1
- import{a as I}from"./chunk-CTNBSUVU.js";import{b as l}from"./chunk-DPNZWBT5.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{e as h,g as s}from"./chunk-VKWPEFWQ.js";s();s();import{fileURLToPath as L}from"node:url";async function m(e){let{isDevelopment:o}=await import("./local-W73VIWHZ.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-BWAMUFQ4.js"),t=await import("./lib-2BR2WN7L.js"),{run:i,flush:p,Errors:d,settings:f}=t.default??t;o()&&(f.debug=!0);try{let r=new n({root:L(e.moduleURL)});await r.load(),e.lazyCommandLoader&&r.setLazyCommandLoader(e.lazyCommandLoader),await i(e.argv,r),await p()}catch(r){let{errorHandler:u}=await import("./error-handler-3PBXTHYY.js");return await u(r),d.handle(r)}}var a=h(I());async function C(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<22){let{renderError:i}=await import("./ui-T22J7MQF.js");i({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function y(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[l.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function F(e,o=m,n=process.argv,t=process.env,i=process.versions){return y(e,n,t),e.runInCreateMode&&await g(e,n),b(n,t),await C(i),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function g(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-GSHLPD5X.js"),{moduleDirectory:t}=await import("./path-MBXP7ZIC.js"),d=(await n(t(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(r=>r.includes("init"))===-1){let r=o.findIndex(u=>u.match(new RegExp(`bin(\\/|\\\\)+(create-${d}|dev|run)`)))+1;o.splice(r,0,"init")}}var R={"no-color":a.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:a.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output. May include sensitive data.",env:"SHOPIFY_FLAG_VERBOSE"})},S={json:a.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:l.json})},E={"auth-alias":a.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},A=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return a.Flags.integer({min:1,max:65535,...e,description:o})};function j(e){let o=e.description?.trimEnd(),t=[o&&!o.endsWith(".")?`${o}.`:o,"Required if non interactive."].filter(Boolean).join(" ");return{...e,description:t,requiredIfNonInteractive:!0}}async function U(){let{cacheClear:e}=await import("./conf-store-K65PEQF6.js");e()}export{F as a,R as b,S as c,E as d,A as e,j as f,U as g};
1
+ import{a as I}from"./chunk-CTNBSUVU.js";import{b as l}from"./chunk-DPNZWBT5.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{e as h,g as s}from"./chunk-VKWPEFWQ.js";s();s();import{fileURLToPath as L}from"node:url";async function m(e){let{isDevelopment:o}=await import("./local-JZRBCKAH.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-BWAMUFQ4.js"),t=await import("./lib-2BR2WN7L.js"),{run:i,flush:p,Errors:d,settings:f}=t.default??t;o()&&(f.debug=!0);try{let r=new n({root:L(e.moduleURL)});await r.load(),e.lazyCommandLoader&&r.setLazyCommandLoader(e.lazyCommandLoader),await i(e.argv,r),await p()}catch(r){let{errorHandler:u}=await import("./error-handler-PVVDX7WF.js");return await u(r),d.handle(r)}}var a=h(I());async function C(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<22){let{renderError:i}=await import("./ui-YTGKLMHA.js");i({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function y(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[l.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function F(e,o=m,n=process.argv,t=process.env,i=process.versions){return y(e,n,t),e.runInCreateMode&&await g(e,n),b(n,t),await C(i),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function g(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-O3DQCYJC.js"),{moduleDirectory:t}=await import("./path-MBXP7ZIC.js"),d=(await n(t(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(r=>r.includes("init"))===-1){let r=o.findIndex(u=>u.match(new RegExp(`bin(\\/|\\\\)+(create-${d}|dev|run)`)))+1;o.splice(r,0,"init")}}var R={"no-color":a.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:a.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output. May include sensitive data.",env:"SHOPIFY_FLAG_VERBOSE"})},S={json:a.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:l.json})},E={"auth-alias":a.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},A=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return a.Flags.integer({min:1,max:65535,...e,description:o})};function j(e){let o=e.description?.trimEnd(),t=[o&&!o.endsWith(".")?`${o}.`:o,"Required if non interactive."].filter(Boolean).join(" ");return{...e,description:t,requiredIfNonInteractive:!0}}async function U(){let{cacheClear:e}=await import("./conf-store-OFRC7GO7.js");e()}export{F as a,R as b,S as c,E as d,A as e,j as f,U as g};
@@ -1,4 +1,4 @@
1
- import{a as d}from"./chunk-YY6TFARF.js";import{a as v}from"./chunk-SEGZQCXZ.js";import{a as y}from"./chunk-UXL2A5UK.js";import{p}from"./chunk-ZYEGQSF5.js";import{p as f,v as u}from"./chunk-7DJNASBC.js";import{b as l,f as m}from"./chunk-WJEVB67Y.js";import{E as c,z as s}from"./chunk-LIH7CQO7.js";import{a as g}from"./chunk-CTNBSUVU.js";import{e as b,g as r}from"./chunk-VKWPEFWQ.js";r();r();async function w(o,t,i){let e=await v(o,{header:"Select a theme to publish",filter:{development:!1,live:!1,theme:t.theme}}),h=d({...e,role:"live"},o);!t.force&&!i&&!await c({message:`Do you want to make '${e.name}' the new live theme on ${o.storeFqdn}?`,confirmationMessage:`Yes, make '${e.name}' the new live theme`,cancellationMessage:"No, cancel publish"})||(await p(e.id,o),s({headline:t.environment?`Environment: ${t.environment}`:void 0,body:["The theme",...y(e),"is now live at",{link:{label:h,url:h}},{char:"."}]}))}var n=b(g(),1);var a=class extends u{static summary="Set a remote theme as the live theme.";static descriptionWithMarkdown=`Publishes an unpublished theme from your theme library.
1
+ import{a as d}from"./chunk-YY6TFARF.js";import{a as v}from"./chunk-3QF47EX2.js";import{a as y}from"./chunk-ZQ4KG6U2.js";import{p}from"./chunk-5GBIXC2Y.js";import{p as f,v as u}from"./chunk-4Y7WHAJX.js";import{b as l,f as m}from"./chunk-GZKEIUJT.js";import{E as c,z as s}from"./chunk-ESTXKKAB.js";import{a as g}from"./chunk-CTNBSUVU.js";import{e as b,g as r}from"./chunk-VKWPEFWQ.js";r();r();async function w(o,t,i){let e=await v(o,{header:"Select a theme to publish",filter:{development:!1,live:!1,theme:t.theme}}),h=d({...e,role:"live"},o);!t.force&&!i&&!await c({message:`Do you want to make '${e.name}' the new live theme on ${o.storeFqdn}?`,confirmationMessage:`Yes, make '${e.name}' the new live theme`,cancellationMessage:"No, cancel publish"})||(await p(e.id,o),s({headline:t.environment?`Environment: ${t.environment}`:void 0,body:["The theme",...y(e),"is now live at",{link:{label:h,url:h}},{char:"."}]}))}var n=b(g(),1);var a=class extends u{static summary="Set a remote theme as the live theme.";static descriptionWithMarkdown=`Publishes an unpublished theme from your theme library.
2
2
 
3
3
  If no theme ID is specified, then you're prompted to select the theme that you want to publish from the list of themes in your store.
4
4
 
@@ -1 +1 @@
1
- import{a as l,c as b,d as D,e as _}from"./chunk-R4YJM7KY.js";import{g as T,p as y,v as O}from"./chunk-7DJNASBC.js";import{b as L,c as S}from"./chunk-WJEVB67Y.js";import{y as v}from"./chunk-LIH7CQO7.js";import{e as d}from"./chunk-Y6DYQWQK.js";import{a as G}from"./chunk-CTNBSUVU.js";import{Ab as a,sb as s,wb as F}from"./chunk-GYFRTLML.js";import{e as $,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var w;function f(){return w??=new d({projectName:"shopify-cli-host-theme-conf"}),w}function E(t){return a(s`Getting host theme...`),f().get(t)}function Y(t,e){a(s`Setting host theme...`),f().set(t,e)}function C(t){a(s`Removing host theme...`),f().delete(t)}function j(t,e){return{title:t,body:{tabularData:e}}}async function I(t,e){let r=e.storeFqdn,p=new _({...l.reduce((n,i)=>(n[i]=t.role===i,n),{}),theme:t.id?.toString()??t.name}),m=await b(e),x=T(),H=E(r);if(p.any()&&(m=D(r,m,p)),t.json)return F(JSON.stringify(m,null,2));let A=m.map(({id:n,name:i,role:g})=>{let c="";return g&&(c=`[${g}]`,[x,H].includes(`${n}`)&&(c+=" [current]")),[i,c,`#${n}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];v({customSections:[...t.environment?[{title:`${r} theme library`,body:[{subdued:`Environment name: ${t.environment}`}]}]:[],j("",R)]})}var h=$(G(),1);var u=class extends O{static description="Lists the themes in your store, along with their IDs and statuses.";static flags={...L,...S,...y,role:h.Flags.custom({description:"Only list themes with the given role.",options:l,env:"SHOPIFY_FLAG_ROLE"})(),name:h.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:h.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};static multiEnvironmentsFlags=["store","password"];async command(e,r){await I(e,r)}};export{E as a,Y as b,C as c,u as d};
1
+ import{a as l,c as b,d as D,e as _}from"./chunk-6BNOQJHH.js";import{g as T,p as y,v as O}from"./chunk-4Y7WHAJX.js";import{b as L,c as S}from"./chunk-GZKEIUJT.js";import{y as v}from"./chunk-ESTXKKAB.js";import{e as d}from"./chunk-BC42C35S.js";import{a as G}from"./chunk-CTNBSUVU.js";import{Ab as a,sb as s,wb as F}from"./chunk-DD7FQDTB.js";import{e as $,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var w;function f(){return w??=new d({projectName:"shopify-cli-host-theme-conf"}),w}function E(t){return a(s`Getting host theme...`),f().get(t)}function Y(t,e){a(s`Setting host theme...`),f().set(t,e)}function C(t){a(s`Removing host theme...`),f().delete(t)}function j(t,e){return{title:t,body:{tabularData:e}}}async function I(t,e){let r=e.storeFqdn,p=new _({...l.reduce((n,i)=>(n[i]=t.role===i,n),{}),theme:t.id?.toString()??t.name}),m=await b(e),x=T(),H=E(r);if(p.any()&&(m=D(r,m,p)),t.json)return F(JSON.stringify(m,null,2));let A=m.map(({id:n,name:i,role:g})=>{let c="";return g&&(c=`[${g}]`,[x,H].includes(`${n}`)&&(c+=" [current]")),[i,c,`#${n}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];v({customSections:[...t.environment?[{title:`${r} theme library`,body:[{subdued:`Environment name: ${t.environment}`}]}]:[],j("",R)]})}var h=$(G(),1);var u=class extends O{static description="Lists the themes in your store, along with their IDs and statuses.";static flags={...L,...S,...y,role:h.Flags.custom({description:"Only list themes with the given role.",options:l,env:"SHOPIFY_FLAG_ROLE"})(),name:h.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:h.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};static multiEnvironmentsFlags=["store","password"];async command(e,r){await I(e,r)}};export{E as a,Y as b,C as c,u as d};
@@ -1,4 +1,4 @@
1
- import{a as Mc,e as jc,f as Bc}from"./chunk-YZKBG7UZ.js";import{a as $c}from"./chunk-32IIURQB.js";import{c as Rc,i as Lc,o as hy}from"./chunk-YLQ3LNNY.js";import{b as fn}from"./chunk-HEWKCSY7.js";import{D as cn,S as wc,U as Ec,V as bc,ka as Dc,oa as Cc,t as xc}from"./chunk-AINDVTMY.js";import{B as kc,D as Tc,l as Ac,m as _c,p as Fc,x as po}from"./chunk-JLR6X5NA.js";import{A as Xe,C as ln,D as tt,E as rt,H as Ic,J as Sr,v as Be,y as mt,z as Cr}from"./chunk-LIH7CQO7.js";import{a as ly}from"./chunk-QMYCJ2TM.js";import{h as I,k as hn}from"./chunk-PSUNX2YX.js";import{a as gc,c as yc,d as co,e as Dr,f as ry,g as lo,h as iy,i as ny,j as vc,k as ho,m as ay,n as fo,p as uy,u as cy}from"./chunk-TR4OWSEX.js";import{a as ty,b as et}from"./chunk-2KD4LHRT.js";import{b as ey}from"./chunk-I5A6BPCP.js";import{a as oy}from"./chunk-ET2CGROE.js";import{c as sy}from"./chunk-TOLPNBZK.js";import{$a as mc,Ab as me,Ca as uo,Ea as un,T as cc,Ta as U,W as lc,Wa as pc,Y as hc,_ as fc,gb as Sc,ia as Q0,ma as X,mb as Oc,ob as Pc,pa as br,qb as gt,rb as Nc,sb as Ar,ua as V,wa as on,xb as it,ya as an}from"./chunk-GYFRTLML.js";import{i as W}from"./chunk-B4OMIONW.js";import{a as Z0,b as dc}from"./chunk-LD6ZCTZ3.js";import{d as N,f as J,g as kt,i as le,j as Tt,k as sn,n as uc}from"./chunk-773TIA5M.js";import{a as F,c as E,e as nn,g as y}from"./chunk-VKWPEFWQ.js";var Ot=E(mo=>{"use strict";y();Object.defineProperty(mo,"__esModule",{value:!0});var py=e=>{process.stdout.write(e)},my=e=>{process.stderr.write(e)};mo.default={stderr:my,stdout:py}});var yt=E(Ce=>{"use strict";y();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.existsSync=Ce.safeReadJson=Ce.readJsonSync=Ce.readJson=Ce.fileExists=Ce.dirExists=void 0;var zc=F("node:fs"),go=F("node:fs/promises"),gy=async e=>{let t;try{t=await(0,go.stat)(e)}catch{throw new Error(`No directory found at ${e}`)}if(!t.isDirectory())throw new Error(`${e} exists but is not a directory`);return e};Ce.dirExists=gy;var yy=async e=>{let t;try{t=await(0,go.stat)(e)}catch{throw new Error(`No file found at ${e}`)}if(!t.isFile())throw new Error(`${e} exists but is not a file`);return e};Ce.fileExists=yy;async function Jc(e){let t=await(0,go.readFile)(e,"utf8");return JSON.parse(t)}Ce.readJson=Jc;function vy(e,t=!0){let r=(0,zc.readFileSync)(e,"utf8");return t?JSON.parse(r):r}Ce.readJsonSync=vy;async function xy(e){try{return await Jc(e)}catch{}}Ce.safeReadJson=xy;function wy(e){return(0,zc.existsSync)(e)}Ce.existsSync=wy});var oe=E(q=>{"use strict";y();Object.defineProperty(q,"__esModule",{value:!0});q.mergeNestedObjects=q.mapValues=q.uniq=q.isNotFalsy=q.isTruthy=q.capitalize=q.sumBy=q.maxBy=q.isProd=q.castArray=q.sortBy=q.last=q.uniqBy=q.compact=q.pickBy=void 0;function Ey(e,t){return Object.entries(e).reduce((r,[i,n])=>(t(n)&&(r[i]=n),r),{})}q.pickBy=Ey;function by(e){return e.filter(t=>!!t)}q.compact=by;function Dy(e,t){return e.filter((r,i)=>{let n=t(r);return!e.some((o,s)=>s>i&&t(o)===n)})}q.uniqBy=Dy;function Cy(e){if(e)return e.at(-1)}q.last=Cy;function yo(e,t){if(e=e===void 0?0:e,t=t===void 0?0:t,Array.isArray(e)&&Array.isArray(t)){if(e.length===0&&t.length===0)return 0;let r=yo(e[0],t[0]);return r!==0?r:yo(e.slice(1),t.slice(1))}return e<t?-1:e>t?1:0}function Sy(e,t){return e.sort((r,i)=>yo(t(r),t(i)))}q.sortBy=Sy;function Ay(e){return e===void 0?[]:Array.isArray(e)?e:[e]}q.castArray=Ay;function _y(){return!["development","test"].includes(process.env.NODE_ENV??"")}q.isProd=_y;function Fy(e,t){if(e.length!==0)return e.reduce((r,i)=>{let n=t(i),o=t(r);return n>o?i:r})}q.maxBy=Fy;function ky(e,t){return e.reduce((r,i)=>r+t(i),0)}q.sumBy=ky;function Ty(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():""}q.capitalize=Ty;function Oy(e){return["1","true","y","yes"].includes(e.toLowerCase())}q.isTruthy=Oy;function Py(e){return!["0","false","n","no"].includes(e.toLowerCase())}q.isNotFalsy=Py;function Iy(e){return[...new Set(e)].sort()}q.uniq=Iy;function Ny(e,t){return Object.entries(e).reduce((r,[i,n])=>(r[i]=t(n,i),r),{})}q.mapValues=Ny;function My(e,t){return t.split(".").reduce((r,i)=>r?.[i],e)}function jy(e,t){return Object.fromEntries(e.flatMap(r=>Object.entries(My(r,t)??{})).reverse())}q.mergeNestedObjects=jy});var Gc=E(ge=>{"use strict";y();Object.defineProperty(ge,"__esModule",{value:!0});ge.string=ge.url=ge.file=ge.directory=ge.integer=ge.boolean=ge.custom=void 0;var By=F("node:url"),Wc=yt(),Ry=oe();function Vt(e){return(t={})=>({parse:async(r,i,n)=>r,...e,...t,input:[],type:"option"})}ge.custom=Vt;ge.boolean=Vt({parse:async e=>!!e&&(0,Ry.isNotFalsy)(e)});ge.integer=Vt({async parse(e,t,r){if(!/^-?\d+$/.test(e))throw new Error(`Expected an integer but received: ${e}`);let i=Number.parseInt(e,10);if(r.min!==void 0&&i<r.min)throw new Error(`Expected an integer greater than or equal to ${r.min} but received: ${e}`);if(r.max!==void 0&&i>r.max)throw new Error(`Expected an integer less than or equal to ${r.max} but received: ${e}`);return i}});ge.directory=Vt({async parse(e,t,r){return r.exists?(0,Wc.dirExists)(e):e}});ge.file=Vt({async parse(e,t,r){return r.exists?(0,Wc.fileExists)(e):e}});ge.url=Vt({async parse(e){try{return new By.URL(e)}catch{throw new Error(`Expected a valid url but received: ${e}`)}}});var Ly=Vt({});ge.string=Ly});var Xc=E((sT,$y)=>{$y.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"3.26.5",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"@types/cli-progress":"^3.11.5","ansi-escapes":"^4.3.2","ansi-styles":"^4.3.0",cardinal:"^2.1.1",chalk:"^4.1.2","clean-stack":"^3.0.1","cli-progress":"^3.12.0",color:"^4.2.3",debug:"^4.3.4",ejs:"^3.1.10","get-package-type":"^0.1.0",globby:"^11.1.0",hyperlinker:"^1.0.0","indent-string":"^4.0.0","is-wsl":"^2.2.0","js-yaml":"^3.14.1",minimatch:"^9.0.4","natural-orderby":"^2.0.3","object-treeify":"^1.1.33","password-prompt":"^1.1.3","slice-ansi":"^4.0.0","string-width":"^4.2.3","strip-ansi":"^6.0.1","supports-color":"^8.1.1","supports-hyperlinks":"^2.2.0","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^17.8.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^4","@oclif/prettier-config":"^0.2.1","@oclif/test":"^3.2.11","@types/ansi-styles":"^3.2.1","@types/benchmark":"^2.1.5","@types/chai":"^4.3.11","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/color":"^3.0.6","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/js-yaml":"^3.12.7","@types/mocha":"^10.0.6","@types/node":"^18","@types/node-notifier":"^8.0.5","@types/pnpapi":"^0.0.5","@types/slice-ansi":"^4.0.0","@types/strip-ansi":"^5.2.1","@types/supports-color":"^8.1.1","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.4.1","chai-as-promised":"^7.1.1",commitlint:"^17.8.1","cross-env":"^7.0.3",eslint:"^8.57.0","eslint-config-oclif":"^5.1.3","eslint-config-oclif-typescript":"^3.1.6","eslint-config-prettier":"^9.1.0","fancy-test":"^3.0.14",globby:"^11.1.0",husky:"^8","lint-staged":"^14.0.1",madge:"^6.1.0",mocha:"^10.4.0",nyc:"^15.1.0",prettier:"^3.2.5",shx:"^0.3.4",sinon:"^16.1.3","ts-node":"^10.9.2",tsd:"^0.31.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib","/flush.js","/flush.d.ts","/handle.js"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",main:"./lib/index.js",repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",commitlint:"commitlint",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint . --ext .ts",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky install",pretest:"yarn build && tsc -p test --noEmit --skipLibCheck","test:circular-deps":"madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts"'},types:"lib/index.d.ts"}});var Ve=E(xo=>{"use strict";y();Object.defineProperty(xo,"__esModule",{value:!0});var qy=F("node:fs"),Uy=F("node:path"),vo=class e extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return e.instance||(e.instance=new e),e.instance}get(t){return super.get(t)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Xc().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,qy.readFileSync)((0,Uy.join)(__dirname,"..","package.json"),"utf8"))}}catch{return{name:"@oclif/core",version:"unknown"}}}}};xo.default=vo});var Pt=E(dn=>{"use strict";y();Object.defineProperty(dn,"__esModule",{value:!0});dn.settings=void 0;global.oclif||(global.oclif={});dn.settings=global.oclif});var Yt=E(_r=>{"use strict";y();Object.defineProperty(_r,"__esModule",{value:!0});_r.errtermwidth=_r.stdtermwidth=void 0;var Hy=Pt();function Vc(e){if(!e.isTTY)return 80;let t=e.getWindowSize()[0];return t<1?80:t<40?40:t}var Yc=Number.parseInt(process.env.OCLIF_COLUMNS,10)||Hy.settings.columns;_r.stdtermwidth=Yc||Vc(process.stdout);_r.errtermwidth=Yc||Vc(process.stderr)});var bo=E(pn=>{"use strict";y();Object.defineProperty(pn,"__esModule",{value:!0});pn.Logger=void 0;var Kc=F("node:fs/promises"),zy=F("node:path"),Jy=Dr(),Wy=()=>new Date().toISOString(),wo,Gy=e=>new Promise(t=>{wo&&wo.unref(),wo=setTimeout(()=>t(null),e)});function Xy(e){return e.endsWith(`
1
+ import{a as Mc,e as jc,f as Bc}from"./chunk-DY64LYXB.js";import{a as $c}from"./chunk-5LGEBELU.js";import{c as Rc,i as Lc,o as hy}from"./chunk-YLQ3LNNY.js";import{b as fn}from"./chunk-XQIPACFV.js";import{D as cn,S as wc,U as Ec,V as bc,ka as Dc,oa as Cc,t as xc}from"./chunk-NYHGIWKZ.js";import{B as kc,D as Tc,l as Ac,m as _c,p as Fc,x as po}from"./chunk-NAIXUSEF.js";import{A as Xe,C as ln,D as tt,E as rt,H as Ic,J as Sr,v as Be,y as mt,z as Cr}from"./chunk-ESTXKKAB.js";import{a as ly}from"./chunk-AEUVT7IU.js";import{h as I,k as hn}from"./chunk-BFL74TW2.js";import{a as gc,c as yc,d as co,e as Dr,f as ry,g as lo,h as iy,i as ny,j as vc,k as ho,m as ay,n as fo,p as uy,u as cy}from"./chunk-TR4OWSEX.js";import{a as ty,b as et}from"./chunk-2KD4LHRT.js";import{b as ey}from"./chunk-I5A6BPCP.js";import{a as oy}from"./chunk-ET2CGROE.js";import{c as sy}from"./chunk-TOLPNBZK.js";import{$a as mc,Ab as me,Ca as uo,Ea as un,T as cc,Ta as U,W as lc,Wa as pc,Y as hc,_ as fc,gb as Sc,ia as Q0,ma as X,mb as Oc,ob as Pc,pa as br,qb as gt,rb as Nc,sb as Ar,ua as V,wa as on,xb as it,ya as an}from"./chunk-DD7FQDTB.js";import{i as W}from"./chunk-B4OMIONW.js";import{a as Z0,b as dc}from"./chunk-LD6ZCTZ3.js";import{d as N,f as J,g as kt,i as le,j as Tt,k as sn,n as uc}from"./chunk-773TIA5M.js";import{a as F,c as E,e as nn,g as y}from"./chunk-VKWPEFWQ.js";var Ot=E(mo=>{"use strict";y();Object.defineProperty(mo,"__esModule",{value:!0});var py=e=>{process.stdout.write(e)},my=e=>{process.stderr.write(e)};mo.default={stderr:my,stdout:py}});var yt=E(Ce=>{"use strict";y();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.existsSync=Ce.safeReadJson=Ce.readJsonSync=Ce.readJson=Ce.fileExists=Ce.dirExists=void 0;var zc=F("node:fs"),go=F("node:fs/promises"),gy=async e=>{let t;try{t=await(0,go.stat)(e)}catch{throw new Error(`No directory found at ${e}`)}if(!t.isDirectory())throw new Error(`${e} exists but is not a directory`);return e};Ce.dirExists=gy;var yy=async e=>{let t;try{t=await(0,go.stat)(e)}catch{throw new Error(`No file found at ${e}`)}if(!t.isFile())throw new Error(`${e} exists but is not a file`);return e};Ce.fileExists=yy;async function Jc(e){let t=await(0,go.readFile)(e,"utf8");return JSON.parse(t)}Ce.readJson=Jc;function vy(e,t=!0){let r=(0,zc.readFileSync)(e,"utf8");return t?JSON.parse(r):r}Ce.readJsonSync=vy;async function xy(e){try{return await Jc(e)}catch{}}Ce.safeReadJson=xy;function wy(e){return(0,zc.existsSync)(e)}Ce.existsSync=wy});var oe=E(q=>{"use strict";y();Object.defineProperty(q,"__esModule",{value:!0});q.mergeNestedObjects=q.mapValues=q.uniq=q.isNotFalsy=q.isTruthy=q.capitalize=q.sumBy=q.maxBy=q.isProd=q.castArray=q.sortBy=q.last=q.uniqBy=q.compact=q.pickBy=void 0;function Ey(e,t){return Object.entries(e).reduce((r,[i,n])=>(t(n)&&(r[i]=n),r),{})}q.pickBy=Ey;function by(e){return e.filter(t=>!!t)}q.compact=by;function Dy(e,t){return e.filter((r,i)=>{let n=t(r);return!e.some((o,s)=>s>i&&t(o)===n)})}q.uniqBy=Dy;function Cy(e){if(e)return e.at(-1)}q.last=Cy;function yo(e,t){if(e=e===void 0?0:e,t=t===void 0?0:t,Array.isArray(e)&&Array.isArray(t)){if(e.length===0&&t.length===0)return 0;let r=yo(e[0],t[0]);return r!==0?r:yo(e.slice(1),t.slice(1))}return e<t?-1:e>t?1:0}function Sy(e,t){return e.sort((r,i)=>yo(t(r),t(i)))}q.sortBy=Sy;function Ay(e){return e===void 0?[]:Array.isArray(e)?e:[e]}q.castArray=Ay;function _y(){return!["development","test"].includes(process.env.NODE_ENV??"")}q.isProd=_y;function Fy(e,t){if(e.length!==0)return e.reduce((r,i)=>{let n=t(i),o=t(r);return n>o?i:r})}q.maxBy=Fy;function ky(e,t){return e.reduce((r,i)=>r+t(i),0)}q.sumBy=ky;function Ty(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():""}q.capitalize=Ty;function Oy(e){return["1","true","y","yes"].includes(e.toLowerCase())}q.isTruthy=Oy;function Py(e){return!["0","false","n","no"].includes(e.toLowerCase())}q.isNotFalsy=Py;function Iy(e){return[...new Set(e)].sort()}q.uniq=Iy;function Ny(e,t){return Object.entries(e).reduce((r,[i,n])=>(r[i]=t(n,i),r),{})}q.mapValues=Ny;function My(e,t){return t.split(".").reduce((r,i)=>r?.[i],e)}function jy(e,t){return Object.fromEntries(e.flatMap(r=>Object.entries(My(r,t)??{})).reverse())}q.mergeNestedObjects=jy});var Gc=E(ge=>{"use strict";y();Object.defineProperty(ge,"__esModule",{value:!0});ge.string=ge.url=ge.file=ge.directory=ge.integer=ge.boolean=ge.custom=void 0;var By=F("node:url"),Wc=yt(),Ry=oe();function Vt(e){return(t={})=>({parse:async(r,i,n)=>r,...e,...t,input:[],type:"option"})}ge.custom=Vt;ge.boolean=Vt({parse:async e=>!!e&&(0,Ry.isNotFalsy)(e)});ge.integer=Vt({async parse(e,t,r){if(!/^-?\d+$/.test(e))throw new Error(`Expected an integer but received: ${e}`);let i=Number.parseInt(e,10);if(r.min!==void 0&&i<r.min)throw new Error(`Expected an integer greater than or equal to ${r.min} but received: ${e}`);if(r.max!==void 0&&i>r.max)throw new Error(`Expected an integer less than or equal to ${r.max} but received: ${e}`);return i}});ge.directory=Vt({async parse(e,t,r){return r.exists?(0,Wc.dirExists)(e):e}});ge.file=Vt({async parse(e,t,r){return r.exists?(0,Wc.fileExists)(e):e}});ge.url=Vt({async parse(e){try{return new By.URL(e)}catch{throw new Error(`Expected a valid url but received: ${e}`)}}});var Ly=Vt({});ge.string=Ly});var Xc=E((sT,$y)=>{$y.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"3.26.5",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"@types/cli-progress":"^3.11.5","ansi-escapes":"^4.3.2","ansi-styles":"^4.3.0",cardinal:"^2.1.1",chalk:"^4.1.2","clean-stack":"^3.0.1","cli-progress":"^3.12.0",color:"^4.2.3",debug:"^4.3.4",ejs:"^3.1.10","get-package-type":"^0.1.0",globby:"^11.1.0",hyperlinker:"^1.0.0","indent-string":"^4.0.0","is-wsl":"^2.2.0","js-yaml":"^3.14.1",minimatch:"^9.0.4","natural-orderby":"^2.0.3","object-treeify":"^1.1.33","password-prompt":"^1.1.3","slice-ansi":"^4.0.0","string-width":"^4.2.3","strip-ansi":"^6.0.1","supports-color":"^8.1.1","supports-hyperlinks":"^2.2.0","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^17.8.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^4","@oclif/prettier-config":"^0.2.1","@oclif/test":"^3.2.11","@types/ansi-styles":"^3.2.1","@types/benchmark":"^2.1.5","@types/chai":"^4.3.11","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/color":"^3.0.6","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/js-yaml":"^3.12.7","@types/mocha":"^10.0.6","@types/node":"^18","@types/node-notifier":"^8.0.5","@types/pnpapi":"^0.0.5","@types/slice-ansi":"^4.0.0","@types/strip-ansi":"^5.2.1","@types/supports-color":"^8.1.1","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.4.1","chai-as-promised":"^7.1.1",commitlint:"^17.8.1","cross-env":"^7.0.3",eslint:"^8.57.0","eslint-config-oclif":"^5.1.3","eslint-config-oclif-typescript":"^3.1.6","eslint-config-prettier":"^9.1.0","fancy-test":"^3.0.14",globby:"^11.1.0",husky:"^8","lint-staged":"^14.0.1",madge:"^6.1.0",mocha:"^10.4.0",nyc:"^15.1.0",prettier:"^3.2.5",shx:"^0.3.4",sinon:"^16.1.3","ts-node":"^10.9.2",tsd:"^0.31.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib","/flush.js","/flush.d.ts","/handle.js"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",main:"./lib/index.js",repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",commitlint:"commitlint",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint . --ext .ts",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky install",pretest:"yarn build && tsc -p test --noEmit --skipLibCheck","test:circular-deps":"madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts"'},types:"lib/index.d.ts"}});var Ve=E(xo=>{"use strict";y();Object.defineProperty(xo,"__esModule",{value:!0});var qy=F("node:fs"),Uy=F("node:path"),vo=class e extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return e.instance||(e.instance=new e),e.instance}get(t){return super.get(t)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Xc().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,qy.readFileSync)((0,Uy.join)(__dirname,"..","package.json"),"utf8"))}}catch{return{name:"@oclif/core",version:"unknown"}}}}};xo.default=vo});var Pt=E(dn=>{"use strict";y();Object.defineProperty(dn,"__esModule",{value:!0});dn.settings=void 0;global.oclif||(global.oclif={});dn.settings=global.oclif});var Yt=E(_r=>{"use strict";y();Object.defineProperty(_r,"__esModule",{value:!0});_r.errtermwidth=_r.stdtermwidth=void 0;var Hy=Pt();function Vc(e){if(!e.isTTY)return 80;let t=e.getWindowSize()[0];return t<1?80:t<40?40:t}var Yc=Number.parseInt(process.env.OCLIF_COLUMNS,10)||Hy.settings.columns;_r.stdtermwidth=Yc||Vc(process.stdout);_r.errtermwidth=Yc||Vc(process.stderr)});var bo=E(pn=>{"use strict";y();Object.defineProperty(pn,"__esModule",{value:!0});pn.Logger=void 0;var Kc=F("node:fs/promises"),zy=F("node:path"),Jy=Dr(),Wy=()=>new Date().toISOString(),wo,Gy=e=>new Promise(t=>{wo&&wo.unref(),wo=setTimeout(()=>t(null),e)});function Xy(e){return e.endsWith(`
2
2
  `)?e.replace(/\n$/,""):e}var Eo=class{file;buffer=[];flushing=Promise.resolve();constructor(t){this.file=t}async flush(t=0){await Gy(t),this.flushing=this.flushing.then(async()=>{if(this.buffer.length===0)return;let r=this.buffer;this.buffer=[],await(0,Kc.mkdir)((0,zy.dirname)(this.file),{recursive:!0}),await(0,Kc.appendFile)(this.file,r.join(`
3
3
  `)+`
4
4
  `)}),await this.flushing}log(t){t=Jy(Xy(t));let r=t.split(`
@@ -1 +1 @@
1
- import{c as l}from"./chunk-H7IQZNKR.js";import{e as u,j as m}from"./chunk-EDHR546O.js";import{a as d}from"./chunk-3NVQXPTU.js";import{wa as p}from"./chunk-YAA7OGRM.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var a=class extends Error{operationId;constructor(t){super(`Migration cancellation for ${t} returned neither an operation nor user errors`),this.name="MigrationCancellationProtocolError",this.operationId=t}};async function f({clientId:i,operationIds:t,cancelOperation:n=m}){return{outcomes:await Promise.all(t.map(async o=>{let e=await n({clientId:i,operationId:o});if(e.userErrors.length>0)return{status:"failed",operationId:o,operation:e.operation,userErrors:e.userErrors};if(!e.operation)throw new a(o);return{status:"success",operationId:o,operation:e.operation}}))}}var s=class i extends d{static hidden=!0;static summary="Cancels app subscription migration operations.";static descriptionWithMarkdown="Cancels app subscription migration operations.\n\nCanceling stops additional unprocessed shops, but does not undo shops that have already been scheduled or migrated. Use `unschedule` for reversible schedules.\n\nRepeat `--id` to cancel every operation GID returned by a multi-batch submission. Use `--json` to output the resulting operation states and per-shop results as structured JSON.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --id <operation-id>","<%= config.bin %> <%= command.id %> --path ../my-app --config staging --id <operation-id-1> --id <operation-id-2>","<%= config.bin %> <%= command.id %> --client-id <client-id> --id <operation-id> --json"];static flags={...u};async run(){let{flags:t}=await this.parse(i),{app:n,remoteApp:c}=await p({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),o=await f({clientId:c.apiKey,operationIds:t.id}),e=l(o,{json:t.json});return e!==0&&(process.exitCode=e),{app:n}}};export{s as a};
1
+ import{c as l}from"./chunk-JP4O56VD.js";import{e as u,j as m}from"./chunk-JIZ3BECO.js";import{a as d}from"./chunk-ID3AR4VW.js";import{wa as p}from"./chunk-7LW23M5C.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var a=class extends Error{operationId;constructor(t){super(`Migration cancellation for ${t} returned neither an operation nor user errors`),this.name="MigrationCancellationProtocolError",this.operationId=t}};async function f({clientId:i,operationIds:t,cancelOperation:n=m}){return{outcomes:await Promise.all(t.map(async o=>{let e=await n({clientId:i,operationId:o});if(e.userErrors.length>0)return{status:"failed",operationId:o,operation:e.operation,userErrors:e.userErrors};if(!e.operation)throw new a(o);return{status:"success",operationId:o,operation:e.operation}}))}}var s=class i extends d{static hidden=!0;static summary="Cancels app subscription migration operations.";static descriptionWithMarkdown="Cancels app subscription migration operations.\n\nCanceling stops additional unprocessed shops, but does not undo shops that have already been scheduled or migrated. Use `unschedule` for reversible schedules.\n\nRepeat `--id` to cancel every operation GID returned by a multi-batch submission. Use `--json` to output the resulting operation states and per-shop results as structured JSON.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --id <operation-id>","<%= config.bin %> <%= command.id %> --path ../my-app --config staging --id <operation-id-1> --id <operation-id-2>","<%= config.bin %> <%= command.id %> --client-id <client-id> --id <operation-id> --json"];static flags={...u};async run(){let{flags:t}=await this.parse(i),{app:n,remoteApp:c}=await p({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),o=await f({clientId:c.apiKey,operationIds:t.id}),e=l(o,{json:t.json});return e!==0&&(process.exitCode=e),{app:n}}};export{s as a};
@@ -1 +1 @@
1
- import{D as h,E as e,F as r,J as o,K as s,n}from"./chunk-LIH7CQO7.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
1
+ import{D as h,E as e,F as r,J as o,K as s,n}from"./chunk-ESTXKKAB.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-VRO6QBVN.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=e({cmd_app_warning_api_key_deprecation_displayed:!1}),i=t;export{i as a};
1
+ import{a as e}from"./chunk-VNW2YMPM.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();var t=e({cmd_app_warning_api_key_deprecation_displayed:!1}),i=t;export{i as a};
@@ -0,0 +1 @@
1
+ import{a as o}from"./chunk-A27WKAFQ.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends o{};export{t as a};
@@ -1 +1 @@
1
- import{r as R}from"./chunk-AINDVTMY.js";import{f as G}from"./chunk-VRO6QBVN.js";import{a as T,b as k}from"./chunk-PVZE65R7.js";import{h as l}from"./chunk-PSUNX2YX.js";import{Ab as f,Oa as y,Pa as x,ka as $,qb as u,sb as h,ua as b,wa as g}from"./chunk-GYFRTLML.js";import{d,i as w}from"./chunk-773TIA5M.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();function U(a){let t=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(a);if(!t){let v=["github:user/repo","user/repo/subdirectory","git@github.com:user/repo","user/repo#dev","https://github.com/user/repo"];return k(new Error(`Parsing the url ${a} failed. Supported formats are ${v.join(", ")}.`))}let e=t[1]??t[2]??t[3]??"github.com",r=e==="github"?"github.com":e,s=t[4],i=t[5].replace(/\.git$/,""),n=t[6]?.slice(1),o=t[7],p=o?`#${o}`:"",c=`git@${r}:${s}/${i}`,H=`https://${r}/${s}/${i}`,P=["https:/",r,s,i,n].join("/").concat(p);return T({full:P,site:r,user:s,name:i,ref:o,subDirectory:n,ssh:c,http:H})}function A(a){let t=new URL(a),e=t.hash?t.hash.slice(1):void 0,[r,s,i,...n]=t.pathname.split("/"),o=n.length>0?n.join("/"):void 0;return{baseURL:`${t.origin}/${s}/${i}`,branch:e,filePath:o}}async function B(a,t,e,r){let s=`https://github.com/${a}/releases/download/${t}/${e}`;return G("cmd_all_timing_network_ms")(async()=>{f(h`Downloading ${u.link(e,s)}`),await $(async i=>{let n=d(i,e),o;try{if(o=await R(s,void 0,"slow-request"),!o.ok)throw new l(`Failed to download ${e}: ${o.statusText}`)}catch(c){throw new l(`Failed to download ${e}: ${c instanceof Error?c.message:"unknown error"}`)}let p=await o.arrayBuffer();await b(n,Buffer.from(p)),await x(n,493),await g(w(r)),await y(n,r)}),f(h`${u.successIcon()} Successfully downloaded ${u.path(r)}`)})}export{U as a,A as b,B as c};
1
+ import{r as R}from"./chunk-NYHGIWKZ.js";import{f as G}from"./chunk-VNW2YMPM.js";import{a as T,b as k}from"./chunk-RF54RVOL.js";import{h as l}from"./chunk-BFL74TW2.js";import{Ab as f,Oa as y,Pa as x,ka as $,qb as u,sb as h,ua as b,wa as g}from"./chunk-DD7FQDTB.js";import{d,i as w}from"./chunk-773TIA5M.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();function U(a){let t=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(a);if(!t){let v=["github:user/repo","user/repo/subdirectory","git@github.com:user/repo","user/repo#dev","https://github.com/user/repo"];return k(new Error(`Parsing the url ${a} failed. Supported formats are ${v.join(", ")}.`))}let e=t[1]??t[2]??t[3]??"github.com",r=e==="github"?"github.com":e,s=t[4],i=t[5].replace(/\.git$/,""),n=t[6]?.slice(1),o=t[7],p=o?`#${o}`:"",c=`git@${r}:${s}/${i}`,H=`https://${r}/${s}/${i}`,P=["https:/",r,s,i,n].join("/").concat(p);return T({full:P,site:r,user:s,name:i,ref:o,subDirectory:n,ssh:c,http:H})}function A(a){let t=new URL(a),e=t.hash?t.hash.slice(1):void 0,[r,s,i,...n]=t.pathname.split("/"),o=n.length>0?n.join("/"):void 0;return{baseURL:`${t.origin}/${s}/${i}`,branch:e,filePath:o}}async function B(a,t,e,r){let s=`https://github.com/${a}/releases/download/${t}/${e}`;return G("cmd_all_timing_network_ms")(async()=>{f(h`Downloading ${u.link(e,s)}`),await $(async i=>{let n=d(i,e),o;try{if(o=await R(s,void 0,"slow-request"),!o.ok)throw new l(`Failed to download ${e}: ${o.statusText}`)}catch(c){throw new l(`Failed to download ${e}: ${c instanceof Error?c.message:"unknown error"}`)}let p=await o.arrayBuffer();await b(n,Buffer.from(p)),await x(n,493),await g(w(r)),await y(n,r)}),f(h`${u.successIcon()} Successfully downloaded ${u.path(r)}`)})}export{U as a,A as b,B as c};