shopify 5.0.1 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (528) hide show
  1. package/dist/analytics-QFDTQYPM.js +1 -0
  2. package/dist/analytics-XADBBHOH.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/chunk-24Q6X53V.js +1 -0
  5. package/dist/{chunk-F3OM2YO6.js → chunk-25MYHE4W.js} +1 -1
  6. package/dist/{chunk-HP2ZAAY7.js → chunk-27JT4NA4.js} +1 -1
  7. package/dist/chunk-2BYW3BYX.js +1 -0
  8. package/dist/chunk-2KFYIYLI.js +1 -0
  9. package/dist/{chunk-V654BMS7.js → chunk-2KUM2RU4.js} +60 -60
  10. package/dist/chunk-2PD7TNFS.js +275 -0
  11. package/dist/{chunk-3JACWBUC.js → chunk-3C72S6LO.js} +1 -1
  12. package/dist/chunk-3FZ4LE6A.js +10 -0
  13. package/dist/{chunk-ZBVHPC6W.js → chunk-3GD5ESWN.js} +1 -1
  14. package/dist/chunk-3KGN6N7E.js +1 -0
  15. package/dist/{chunk-X4A5D3PZ.js → chunk-3MZ7ELHS.js} +2 -2
  16. package/dist/{chunk-VXL5FBE7.js → chunk-3PS52ZT4.js} +1 -1
  17. package/dist/chunk-3PYDIBTX.js +1 -0
  18. package/dist/chunk-3Z75BVGJ.js +1 -0
  19. package/dist/chunk-4FWPOGPQ.js +1 -0
  20. package/dist/chunk-4IP37MBX.js +1 -0
  21. package/dist/chunk-4NFX7YCT.js +1 -0
  22. package/dist/chunk-4TCXPHKN.js +1 -0
  23. package/dist/chunk-4WBWZIN5.js +6 -0
  24. package/dist/chunk-5534MHZW.js +97 -0
  25. package/dist/{chunk-C4EKNOLY.js → chunk-5C6CXU74.js} +1 -1
  26. package/dist/{chunk-56GKTWFF.js → chunk-5HOZDOJ7.js} +1 -1
  27. package/dist/{chunk-CX3ANDPI.js → chunk-5PSQFQL6.js} +1 -1
  28. package/dist/chunk-5T3ZT6CC.js +1 -0
  29. package/dist/chunk-62NW4EPI.js +17 -0
  30. package/dist/chunk-65NCQJYR.js +1 -0
  31. package/dist/{chunk-QGWC23HQ.js → chunk-6BYHL3DS.js} +1 -1
  32. package/dist/chunk-6I7DT7QR.js +3 -0
  33. package/dist/chunk-6IMTMS2S.js +3 -0
  34. package/dist/chunk-7A77JCED.js +11 -0
  35. package/dist/chunk-7ART2IKU.js +1 -0
  36. package/dist/{chunk-TTBNFGCW.js → chunk-7BPT5V24.js} +2 -2
  37. package/dist/{chunk-V7H7ITCF.js → chunk-7CT3NIXI.js} +1 -1
  38. package/dist/chunk-7DBKSSDK.js +1 -0
  39. package/dist/chunk-7HECBXSP.js +1 -0
  40. package/dist/chunk-7KID5BIR.js +4 -0
  41. package/dist/{chunk-63UKZLPC.js → chunk-7N7KRZOM.js} +1 -1
  42. package/dist/{chunk-NJVNGEOU.js → chunk-7NRHZG5Y.js} +102 -102
  43. package/dist/chunk-7PHDEILV.js +1 -0
  44. package/dist/chunk-A2NSORBM.js +2296 -0
  45. package/dist/chunk-A54TADAZ.js +1 -0
  46. package/dist/{chunk-YTUUU33R.js → chunk-AE3IQG7S.js} +1 -1
  47. package/dist/chunk-AGTUAQHX.js +4 -0
  48. package/dist/chunk-AHYI27QL.js +11 -0
  49. package/dist/chunk-ALINJ6J2.js +1 -0
  50. package/dist/chunk-AMVWKHNY.js +1 -0
  51. package/dist/{chunk-D4LFWIFE.js → chunk-ASKBYEO7.js} +1 -1
  52. package/dist/{chunk-LENSEW2F.js → chunk-AVJJGQOP.js} +1 -1
  53. package/dist/{chunk-QVVQUJQL.js → chunk-AY3AAV77.js} +1 -1
  54. package/dist/{chunk-DSKAIC7O.js → chunk-BFAOTQGH.js} +1 -1
  55. package/dist/{chunk-KGASGUDQ.js → chunk-BPKQA2EO.js} +1 -1
  56. package/dist/{chunk-KLYGMYXV.js → chunk-C2HJEGTS.js} +1 -1
  57. package/dist/chunk-C72QNK6O.js +4 -0
  58. package/dist/chunk-CDSDQTNB.js +16 -0
  59. package/dist/chunk-CEQGOCKX.js +1 -0
  60. package/dist/{chunk-QBE6XVU3.js → chunk-CIGWIKOW.js} +1 -1
  61. package/dist/chunk-CQAD5WML.js +1 -0
  62. package/dist/chunk-CRQQCT7F.js +1 -0
  63. package/dist/chunk-CZNUBAAG.js +3 -0
  64. package/dist/{chunk-WQOPLNDH.js → chunk-D7IMC2G4.js} +1 -1
  65. package/dist/{chunk-LGXNXAQA.js → chunk-DC7ITY6T.js} +1 -1
  66. package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
  67. package/dist/{chunk-4EDE3UH7.js → chunk-DDZYIC76.js} +2 -2
  68. package/dist/chunk-DGIIUQH3.js +1 -0
  69. package/dist/{chunk-5AWELO3D.js → chunk-DMOLPSXF.js} +1 -1
  70. package/dist/{chunk-GSGCSBRN.js → chunk-DOLVBTCB.js} +1 -1
  71. package/dist/{chunk-MXXMIPUN.js → chunk-DTKGI43P.js} +2 -2
  72. package/dist/{chunk-37P5YOP2.js → chunk-DVD7I2TX.js} +2 -2
  73. package/dist/chunk-DVFVO6ZE.js +2 -0
  74. package/dist/{chunk-7U2MTK6I.js → chunk-DXEMSLI6.js} +1 -1
  75. package/dist/chunk-EDWIWZWM.js +15 -0
  76. package/dist/chunk-ELR6AZT4.js +9 -0
  77. package/dist/chunk-EVQPYZ7F.js +5 -0
  78. package/dist/chunk-F5QKMDP3.js +1 -0
  79. package/dist/{chunk-J5DUFSR4.js → chunk-F6IQWX2F.js} +1 -1
  80. package/dist/{chunk-XZLM4HLO.js → chunk-FAVPTYIR.js} +1 -1
  81. package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
  82. package/dist/{chunk-DVW7NDVD.js → chunk-FHKK3QU7.js} +1 -1
  83. package/dist/chunk-FKKJQGYX.js +7 -0
  84. package/dist/chunk-FQLXQ7WN.js +16 -0
  85. package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
  86. package/dist/{chunk-AIEVQSI3.js → chunk-FU7PYW7H.js} +1 -1
  87. package/dist/{chunk-5YUDEPEY.js → chunk-FYQE5E6U.js} +1 -1
  88. package/dist/chunk-G3EWGBXR.js +1 -0
  89. package/dist/chunk-G3RNO2TC.js +1 -0
  90. package/dist/{chunk-7NYCJG2U.js → chunk-GGCP2TIK.js} +1 -1
  91. package/dist/chunk-GSFWBFFH.js +1 -0
  92. package/dist/{chunk-NUCDRKDW.js → chunk-H2KGP2FM.js} +2 -2
  93. package/dist/{chunk-PVASYKSJ.js → chunk-H4K3F7PP.js} +1 -1
  94. package/dist/chunk-HGZ2HRPO.js +13 -0
  95. package/dist/chunk-HMPRWNGG.js +203 -0
  96. package/dist/chunk-HP4QYSBQ.js +1 -0
  97. package/dist/{chunk-LR4J4KYJ.js → chunk-HSTZV6H7.js} +2 -2
  98. package/dist/{chunk-ZHHTQRWU.js → chunk-HVUMVDUG.js} +1 -1
  99. package/dist/{chunk-IY5EI5V2.js → chunk-HYCNYUHW.js} +1 -1
  100. package/dist/{chunk-FHNJLON5.js → chunk-I3WRA2LH.js} +1 -1
  101. package/dist/{chunk-MS7DTL4U.js → chunk-IRLYC626.js} +2 -2
  102. package/dist/chunk-IWNFPBH2.js +33 -0
  103. package/dist/{chunk-EA5XVQJT.js → chunk-JALDNBTU.js} +1 -1
  104. package/dist/{chunk-ZTZGDZCE.js → chunk-JC37YZ4I.js} +1 -1
  105. package/dist/{chunk-DM7BTMFP.js → chunk-JG4FAT2T.js} +1 -1
  106. package/dist/chunk-JGLLABZR.js +8 -0
  107. package/dist/chunk-JIY6XWSC.js +1 -0
  108. package/dist/{chunk-VG2AESTZ.js → chunk-JIYCZXK5.js} +1 -1
  109. package/dist/chunk-JMSAHCBU.js +35 -0
  110. package/dist/{chunk-CWR3IFXD.js → chunk-JNSVKDBY.js} +1 -1
  111. package/dist/chunk-JQU2BJDH.js +3 -0
  112. package/dist/chunk-JVY6CCLE.js +3 -0
  113. package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
  114. package/dist/chunk-KCAWHJGF.js +1 -0
  115. package/dist/{chunk-M73IECPW.js → chunk-KFO2JNF5.js} +1 -1
  116. package/dist/chunk-KFR7HWCG.js +9 -0
  117. package/dist/{chunk-QYFU363G.js → chunk-KHZF73BL.js} +1 -1
  118. package/dist/{chunk-HT66BOEC.js → chunk-KM4LE7K4.js} +2 -2
  119. package/dist/{chunk-IILLQOUC.js → chunk-L2PUDV7Y.js} +1 -1
  120. package/dist/chunk-LFBFPK22.js +1 -0
  121. package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
  122. package/dist/chunk-LGDWE3H3.js +1 -0
  123. package/dist/chunk-LPPEAMI6.js +1 -0
  124. package/dist/chunk-LXIWMYM4.js +1 -0
  125. package/dist/chunk-MGWCXTGD.js +1 -0
  126. package/dist/chunk-MGX7UG44.js +1 -0
  127. package/dist/chunk-MKFRKNHF.js +3 -0
  128. package/dist/chunk-MTT6EAQO.js +1 -0
  129. package/dist/{chunk-75LAVRRL.js → chunk-MU7IVBGI.js} +2 -2
  130. package/dist/{chunk-36TZ447N.js → chunk-MYMBHVC4.js} +1 -1
  131. package/dist/chunk-MZDBH4XV.js +4 -0
  132. package/dist/{chunk-3G2PEYPI.js → chunk-NUBJ2HK7.js} +1 -1
  133. package/dist/{chunk-K3YALQBQ.js → chunk-NY5N4ANL.js} +1 -1
  134. package/dist/{chunk-364BVGRY.js → chunk-NYMKGE3J.js} +1 -1
  135. package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
  136. package/dist/chunk-O7HZ3EIP.js +1 -0
  137. package/dist/chunk-OJOF6IYG.js +9 -0
  138. package/dist/{chunk-EXTVC33U.js → chunk-ONZULPQH.js} +68 -66
  139. package/dist/chunk-ORMXPSJM.js +1 -0
  140. package/dist/chunk-ORYEDUKM.js +5 -0
  141. package/dist/{chunk-MZCIRMZJ.js → chunk-OTMYJWIP.js} +1 -1
  142. package/dist/chunk-OVJVFB5E.js +20 -0
  143. package/dist/chunk-OWQEFORZ.js +1 -0
  144. package/dist/{chunk-43HKFLOU.js → chunk-OXPEBT4I.js} +2 -2
  145. package/dist/chunk-OXZR2MB4.js +6 -0
  146. package/dist/chunk-OY5M52EF.js +6 -0
  147. package/dist/{chunk-FK5OFLSJ.js → chunk-PJZZZNWR.js} +1 -1
  148. package/dist/chunk-Q2LQJYRK.js +16 -0
  149. package/dist/chunk-QBRRFFMZ.js +1 -0
  150. package/dist/{chunk-KNQXCU3Y.js → chunk-QCLE5REL.js} +2 -2
  151. package/dist/chunk-QGQWVA7N.js +1 -0
  152. package/dist/chunk-QKPAB245.js +1 -0
  153. package/dist/chunk-QUPZOBTB.js +1 -0
  154. package/dist/chunk-R4E2E4NN.js +1 -0
  155. package/dist/{chunk-2M4BKFYF.js → chunk-R6US7F33.js} +1 -1
  156. package/dist/chunk-RKNVTEO3.js +5 -0
  157. package/dist/{chunk-2QQ7EBJD.js → chunk-RLOEI6VE.js} +1 -1
  158. package/dist/chunk-RSZAAN37.js +1 -0
  159. package/dist/{chunk-WBJ6ZHYH.js → chunk-S3RROJGG.js} +37 -37
  160. package/dist/chunk-S4KNPCW3.js +81 -0
  161. package/dist/{chunk-YFRI75U4.js → chunk-SBN3ILXO.js} +1 -1
  162. package/dist/chunk-SCDGLREP.js +1 -0
  163. package/dist/chunk-SHOMIS6Q.js +2 -0
  164. package/dist/chunk-SN3PMWUF.js +6 -0
  165. package/dist/chunk-SODCXZ5U.js +1 -0
  166. package/dist/chunk-SPJM7RTD.js +1 -0
  167. package/dist/chunk-SQL67BKI.js +5 -0
  168. package/dist/{chunk-MMUGP3WP.js → chunk-SURFUFAZ.js} +1 -1
  169. package/dist/{chunk-KOTZSPZA.js → chunk-SVQDMZJO.js} +1 -1
  170. package/dist/chunk-T4ZOTYOY.js +1 -0
  171. package/dist/chunk-T6C4WC3Z.js +2 -0
  172. package/dist/chunk-TD6JBHUS.js +1 -0
  173. package/dist/chunk-TIM4CIXZ.js +22 -0
  174. package/dist/{chunk-V2FCZC7U.js → chunk-TP7CTMMT.js} +1 -1
  175. package/dist/chunk-TSPJAMYB.js +1 -0
  176. package/dist/chunk-TSVEV2UD.js +26 -0
  177. package/dist/chunk-TTAT62N3.js +25 -0
  178. package/dist/{chunk-ZVEBXHEY.js → chunk-TUSS6PXB.js} +1 -1
  179. package/dist/chunk-TXP6KFWO.js +5 -0
  180. package/dist/chunk-TZHVCMZN.js +6 -0
  181. package/dist/chunk-UC4TOM36.js +3 -0
  182. package/dist/{chunk-2YGPWG3I.js → chunk-UFY4L5KQ.js} +1 -1
  183. package/dist/chunk-UU6UQ2QY.js +1 -0
  184. package/dist/chunk-V4FC72R6.js +1 -0
  185. package/dist/chunk-VA2S7W7H.js +10 -0
  186. package/dist/chunk-VE3IIC7H.js +1 -0
  187. package/dist/{chunk-EH22T4FI.js → chunk-VJG7VXFU.js} +2 -2
  188. package/dist/chunk-VQSRU5XL.js +4 -0
  189. package/dist/chunk-VRIFLMA3.js +70 -0
  190. package/dist/chunk-WBJFTCEJ.js +1 -0
  191. package/dist/chunk-WBPP6PO7.js +31 -0
  192. package/dist/chunk-WE5KY6T6.js +1 -0
  193. package/dist/chunk-WFPVT2IY.js +1 -0
  194. package/dist/{chunk-ETXBF6Q7.js → chunk-WLYXBQ2M.js} +1 -1
  195. package/dist/chunk-WNVOEE6T.js +7 -0
  196. package/dist/chunk-WPDJVUTY.js +47 -0
  197. package/dist/chunk-WWCYEZUU.js +1 -0
  198. package/dist/chunk-WWVDZ3GC.js +3 -0
  199. package/dist/{chunk-CXPYOLGM.js → chunk-WZBZ7FWP.js} +2 -2
  200. package/dist/chunk-XEZPN5TR.js +22 -0
  201. package/dist/{chunk-AQ34X5B3.js → chunk-XLMKHTJ5.js} +1 -1
  202. package/dist/chunk-XRNBCV2B.js +1 -0
  203. package/dist/{chunk-B4ISKIXN.js → chunk-XWLNCBAG.js} +1 -1
  204. package/dist/chunk-YF4AXKM4.js +1 -0
  205. package/dist/chunk-YKDRUAY3.js +857 -0
  206. package/dist/{chunk-FPOZMNT2.js → chunk-YNFQBYSL.js} +1 -1
  207. package/dist/{chunk-2CJQQQW4.js → chunk-YNZLLZU2.js} +1 -1
  208. package/dist/chunk-YOYPYB4H.js +1 -0
  209. package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
  210. package/dist/chunk-YTL45RXR.js +103 -0
  211. package/dist/chunk-YVPB7OT6.js +6 -0
  212. package/dist/chunk-YYWSHRO2.js +89 -0
  213. package/dist/{chunk-5XOEMYEQ.js → chunk-Z5QEXS6F.js} +1 -1
  214. package/dist/chunk-Z5WFRYVQ.js +6 -0
  215. package/dist/{chunk-P5W5RVE6.js → chunk-Z6ZRS256.js} +1 -1
  216. package/dist/chunk-ZMOW2YZ4.js +18 -0
  217. package/dist/chunk-ZMU4EYXT.js +1 -0
  218. package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
  219. package/dist/chunk-ZXZWMXXK.js +7 -0
  220. package/dist/cli/commands/app/build.js +1 -1
  221. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  222. package/dist/cli/commands/app/bulk/execute.js +1 -1
  223. package/dist/cli/commands/app/bulk/status.js +1 -1
  224. package/dist/cli/commands/app/config/link.js +1 -1
  225. package/dist/cli/commands/app/config/pull.js +1 -1
  226. package/dist/cli/commands/app/config/use.js +1 -1
  227. package/dist/cli/commands/app/config/validate.js +1 -1
  228. package/dist/cli/commands/app/demo/watcher.js +1 -1
  229. package/dist/cli/commands/app/deploy.js +1 -1
  230. package/dist/cli/commands/app/dev/clean.js +1 -1
  231. package/dist/cli/commands/app/dev.js +1 -1
  232. package/dist/cli/commands/app/env/pull.js +1 -1
  233. package/dist/cli/commands/app/env/show.js +1 -1
  234. package/dist/cli/commands/app/execute.js +1 -1
  235. package/dist/cli/commands/app/function/build.js +1 -1
  236. package/dist/cli/commands/app/function/info.js +1 -1
  237. package/dist/cli/commands/app/function/replay.js +1 -1
  238. package/dist/cli/commands/app/function/run.js +1 -1
  239. package/dist/cli/commands/app/function/schema.js +1 -1
  240. package/dist/cli/commands/app/function/typegen.js +1 -1
  241. package/dist/cli/commands/app/generate/extension.js +1 -1
  242. package/dist/cli/commands/app/graphiql.js +1 -1
  243. package/dist/cli/commands/app/import/channel-config.js +1 -1
  244. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  245. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  246. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  247. package/dist/cli/commands/app/import-extensions.js +1 -1
  248. package/dist/cli/commands/app/info.js +1 -1
  249. package/dist/cli/commands/app/init.js +1 -1
  250. package/dist/cli/commands/app/logs-next.js +1 -0
  251. package/dist/cli/commands/app/logs.js +1 -1
  252. package/dist/cli/commands/app/release.js +1 -1
  253. package/dist/cli/commands/app/security/check.js +1 -1
  254. package/dist/cli/commands/app/security/clean.js +1 -1
  255. package/dist/cli/commands/app/security/instructions.js +1 -1
  256. package/dist/cli/commands/app/security/record.js +1 -1
  257. package/dist/cli/commands/app/security/review.js +1 -1
  258. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  259. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  260. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  261. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  262. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  263. package/dist/cli/commands/app/versions/list.js +1 -1
  264. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  265. package/dist/cli/commands/auth/login.d.ts +10 -10
  266. package/dist/cli/commands/auth/login.js +1 -1
  267. package/dist/cli/commands/auth/logout.d.ts +7 -7
  268. package/dist/cli/commands/auth/logout.js +1 -1
  269. package/dist/cli/commands/cache/clear.js +1 -1
  270. package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -7
  271. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  272. package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
  273. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  274. package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
  275. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  276. package/dist/cli/commands/debug/command-flags.js +1 -1
  277. package/dist/cli/commands/doc/fetch.d.ts +21 -21
  278. package/dist/cli/commands/doc/fetch.js +1 -1
  279. package/dist/cli/commands/doc/search.d.ts +23 -23
  280. package/dist/cli/commands/doc/search.js +1 -1
  281. package/dist/cli/commands/docs/generate.js +1 -1
  282. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  283. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  284. package/dist/cli/commands/help.d.ts +90 -90
  285. package/dist/cli/commands/help.js +1 -1
  286. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  287. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  288. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  289. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  290. package/dist/cli/commands/notifications/generate.js +1 -1
  291. package/dist/cli/commands/notifications/list.js +1 -1
  292. package/dist/cli/commands/organization/list.js +1 -1
  293. package/dist/cli/commands/search.d.ts +7 -7
  294. package/dist/cli/commands/search.js +1 -1
  295. package/dist/cli/commands/send-analytics.js +1 -1
  296. package/dist/cli/commands/theme/check.js +1 -1
  297. package/dist/cli/commands/theme/console.js +1 -1
  298. package/dist/cli/commands/theme/delete.js +1 -1
  299. package/dist/cli/commands/theme/dev.js +1 -1
  300. package/dist/cli/commands/theme/duplicate.js +1 -1
  301. package/dist/cli/commands/theme/info.js +1 -1
  302. package/dist/cli/commands/theme/init.js +1 -1
  303. package/dist/cli/commands/theme/language-server.js +1 -1
  304. package/dist/cli/commands/theme/list.js +1 -1
  305. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  306. package/dist/cli/commands/theme/open.js +1 -1
  307. package/dist/cli/commands/theme/package.js +1 -1
  308. package/dist/cli/commands/theme/preview.js +1 -1
  309. package/dist/cli/commands/theme/profile.js +1 -1
  310. package/dist/cli/commands/theme/publish.js +1 -1
  311. package/dist/cli/commands/theme/pull.js +1 -1
  312. package/dist/cli/commands/theme/push.js +1 -1
  313. package/dist/cli/commands/theme/rename.js +1 -1
  314. package/dist/cli/commands/theme/share.js +1 -1
  315. package/dist/cli/commands/upgrade.d.ts +24 -24
  316. package/dist/cli/commands/upgrade.js +1 -1
  317. package/dist/cli/commands/version.d.ts +7 -7
  318. package/dist/cli/commands/version.js +1 -1
  319. package/dist/cli/help.js +1 -1
  320. package/dist/cli-version-check-V25AVSZ6.js +1 -0
  321. package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
  322. package/dist/command-json-schema-C5UZXP2W.js +1 -0
  323. package/dist/command-registry.js +1 -1
  324. package/dist/conf-store-OCGEEV4U.js +1 -0
  325. package/dist/custom-oclif-loader-ZVUKMRGH.js +1 -0
  326. package/dist/data/filters.json +41 -2
  327. package/dist/data/local_block_entry.json +1 -1
  328. package/dist/data/manifest_theme.json +1 -0
  329. package/dist/data/objects.json +78 -36
  330. package/dist/data/section.json +1 -1
  331. package/dist/data/shopify_system_translations.json +240 -23
  332. package/dist/data/strict_settings.json +24 -0
  333. package/dist/data/tags.json +57 -24
  334. package/dist/data/theme_block.json +1 -1
  335. package/dist/deprecations-A5AXXKIK.js +1 -0
  336. package/dist/dist-NORLLIHQ.js +1 -0
  337. package/dist/dist-XBM4XZS4.js +1 -0
  338. package/dist/environment-5P7JJ3GI.js +1 -0
  339. package/dist/environments-Y5JEI3U3.js +1 -0
  340. package/dist/error-GI4DXVDU.js +1 -0
  341. package/dist/error-handler-BS2ZENQV.js +1 -0
  342. package/dist/fs-UOOLPOHJ.js +1 -0
  343. package/dist/hooks/did-you-mean.js +1 -1
  344. package/dist/hooks/hydrogen-init.js +1 -1
  345. package/dist/hooks/plugin-plugins.js +1 -1
  346. package/dist/hooks/postrun.js +1 -1
  347. package/dist/hooks/prerun.js +2 -2
  348. package/dist/hooks/public-metadata.js +1 -1
  349. package/dist/hooks/sensitive-metadata.js +1 -1
  350. package/dist/hooks/tunnel-provider.js +1 -1
  351. package/dist/hooks/tunnel-start.js +1 -1
  352. package/dist/http-2OXOS2AW.js +1 -0
  353. package/dist/http-proxy-node16-NZZ674YW.js +38 -0
  354. package/dist/index.js +12 -12
  355. package/dist/is-global-CI77T7NE.js +1 -0
  356. package/dist/json-error-6PBUR4LQ.js +1 -0
  357. package/dist/latest-version-75YEFEMK.js +9 -0
  358. package/dist/lib-4JVADMNT.js +1 -0
  359. package/dist/lib-L4STV5B2.js +1 -0
  360. package/dist/lib-LEEN55OD.js +1 -0
  361. package/dist/{local-KA3IWOZ6.js → local-5NIWPWDS.js} +1 -1
  362. package/dist/metadata-IXPNNPNJ.js +1 -0
  363. package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
  364. package/dist/node-package-manager-ALFEGGD6.js +1 -0
  365. package/dist/notifications-system-FQW3GKH2.js +1 -0
  366. package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
  367. package/dist/os-6TNQTEUN.js +1 -0
  368. package/dist/output-LEOB5LAM.js +1 -0
  369. package/dist/{prettier-EGVCP5CY.js → prettier-VLTY4MIE.js} +1 -1
  370. package/dist/registry-auth-token-EDH77OOW.js +1 -0
  371. package/dist/registry-url-JMNV3LLX.js +1 -0
  372. package/dist/semver-HHZRKD6Y.js +1 -0
  373. package/dist/system-J4CTESP5.js +1 -0
  374. package/dist/tsconfig.tsbuildinfo +1 -1
  375. package/dist/ui-YDUI56E3.js +1 -0
  376. package/dist/upgrade-LBCZORG2.js +1 -0
  377. package/dist/version-2YL4YEQ2.js +1 -0
  378. package/dist/version-X2CPQVWQ.js +1 -0
  379. package/dist/workerd-5UPTEWNI.js +18 -0
  380. package/oclif.manifest.json +25622 -1132
  381. package/package.json +7 -7
  382. package/dist/analytics-RSUIYNLC.js +0 -1
  383. package/dist/analytics-V2SDYXQJ.js +0 -1
  384. package/dist/chunk-2AW3KBTP.js +0 -1
  385. package/dist/chunk-2M535QQJ.js +0 -6
  386. package/dist/chunk-2NZ7GDDR.js +0 -2
  387. package/dist/chunk-2RFCYZMG.js +0 -47
  388. package/dist/chunk-2S5NPJEJ.js +0 -5
  389. package/dist/chunk-2TPLPZA2.js +0 -3
  390. package/dist/chunk-32O27NE3.js +0 -1
  391. package/dist/chunk-335BUVBP.js +0 -1
  392. package/dist/chunk-46JYM3GH.js +0 -1
  393. package/dist/chunk-4GQEXVDT.js +0 -1
  394. package/dist/chunk-4IUXLUFD.js +0 -6
  395. package/dist/chunk-4QZ6OBXL.js +0 -4
  396. package/dist/chunk-4SDCXKYR.js +0 -31
  397. package/dist/chunk-5AQ5JT2V.js +0 -7
  398. package/dist/chunk-5D4FNAAD.js +0 -3
  399. package/dist/chunk-5TWYJQQO.js +0 -1
  400. package/dist/chunk-5YXYYQBX.js +0 -1
  401. package/dist/chunk-6JZC6UKY.js +0 -20
  402. package/dist/chunk-6Y6A2QGK.js +0 -3
  403. package/dist/chunk-7AWAOPLA.js +0 -1
  404. package/dist/chunk-7XAEI4XT.js +0 -3
  405. package/dist/chunk-A7LBGXWG.js +0 -1
  406. package/dist/chunk-ADVLRSSO.js +0 -1
  407. package/dist/chunk-AOBE6HN6.js +0 -31
  408. package/dist/chunk-B2VE7WOX.js +0 -1
  409. package/dist/chunk-BB7GAZP6.js +0 -1
  410. package/dist/chunk-BNTOGZLY.js +0 -1
  411. package/dist/chunk-BOAGJ6P5.js +0 -1
  412. package/dist/chunk-BU3JQM3W.js +0 -1
  413. package/dist/chunk-C3LL5CZA.js +0 -1
  414. package/dist/chunk-CFUZ6574.js +0 -15
  415. package/dist/chunk-CKVVJ4XO.js +0 -1
  416. package/dist/chunk-CNPBDSDL.js +0 -1
  417. package/dist/chunk-DTRENW4Q.js +0 -272
  418. package/dist/chunk-E3CTHNQS.js +0 -1
  419. package/dist/chunk-FFSDGRAN.js +0 -1
  420. package/dist/chunk-FNWXMCSD.js +0 -97
  421. package/dist/chunk-FS5PZCZ3.js +0 -1
  422. package/dist/chunk-FTHVOIK7.js +0 -4
  423. package/dist/chunk-FVRI7ZKE.js +0 -103
  424. package/dist/chunk-FZCGRIOM.js +0 -1
  425. package/dist/chunk-GCKGQFV7.js +0 -1
  426. package/dist/chunk-GGJUPL4W.js +0 -6
  427. package/dist/chunk-GHU6YEXH.js +0 -15
  428. package/dist/chunk-GNPIKPHB.js +0 -1
  429. package/dist/chunk-H57KYDEI.js +0 -16
  430. package/dist/chunk-HB3MJYBK.js +0 -1
  431. package/dist/chunk-HNU6R7RT.js +0 -7
  432. package/dist/chunk-HPT3UXZ5.js +0 -4
  433. package/dist/chunk-HXNGLDMU.js +0 -1
  434. package/dist/chunk-IAL6IQYW.js +0 -16
  435. package/dist/chunk-IULZYDCI.js +0 -9
  436. package/dist/chunk-IWTOC6DG.js +0 -1
  437. package/dist/chunk-J3JPJCWP.js +0 -1
  438. package/dist/chunk-J3UXIC23.js +0 -10
  439. package/dist/chunk-J7BTC45S.js +0 -1
  440. package/dist/chunk-JMVK2BIB.js +0 -3
  441. package/dist/chunk-JUTULEWW.js +0 -5
  442. package/dist/chunk-KT5QQOES.js +0 -3
  443. package/dist/chunk-KVF55INC.js +0 -5
  444. package/dist/chunk-L6VONMA2.js +0 -5
  445. package/dist/chunk-LWMKZJ4M.js +0 -1
  446. package/dist/chunk-M2KX3PXA.js +0 -1
  447. package/dist/chunk-M7NLCGCP.js +0 -6
  448. package/dist/chunk-MHWETFNT.js +0 -1
  449. package/dist/chunk-MNWT2SQO.js +0 -2265
  450. package/dist/chunk-MU2X7NGF.js +0 -11
  451. package/dist/chunk-MZWPIFAM.js +0 -70
  452. package/dist/chunk-NCPZVARH.js +0 -836
  453. package/dist/chunk-NMECLRGK.js +0 -11
  454. package/dist/chunk-NMLLRFZF.js +0 -1
  455. package/dist/chunk-NPB753M3.js +0 -1
  456. package/dist/chunk-OH7BQZQ7.js +0 -2
  457. package/dist/chunk-OLKLHVHA.js +0 -22
  458. package/dist/chunk-OPVXPDOQ.js +0 -1
  459. package/dist/chunk-OQUXGAF2.js +0 -1
  460. package/dist/chunk-OUMERKRE.js +0 -10
  461. package/dist/chunk-OYGIQDME.js +0 -1
  462. package/dist/chunk-PNZURX3S.js +0 -1
  463. package/dist/chunk-PRKJVU4Y.js +0 -1
  464. package/dist/chunk-PXFPVGWV.js +0 -1
  465. package/dist/chunk-Q2ORJEB2.js +0 -25
  466. package/dist/chunk-QFWWCZOI.js +0 -1
  467. package/dist/chunk-QFYLJVJW.js +0 -77
  468. package/dist/chunk-QX3T6G5X.js +0 -1
  469. package/dist/chunk-RDXLDCMI.js +0 -3
  470. package/dist/chunk-REDUS6EW.js +0 -1
  471. package/dist/chunk-RFZNFTVM.js +0 -1
  472. package/dist/chunk-RIG66DIQ.js +0 -18
  473. package/dist/chunk-RNUEPPVN.js +0 -1
  474. package/dist/chunk-RWTAPWLJ.js +0 -3
  475. package/dist/chunk-T5YVYVSW.js +0 -1
  476. package/dist/chunk-UDPYSL3M.js +0 -4
  477. package/dist/chunk-ULMNNGGX.js +0 -6
  478. package/dist/chunk-URCH4ITT.js +0 -1
  479. package/dist/chunk-UU2R56LN.js +0 -12
  480. package/dist/chunk-V75WUEFU.js +0 -1
  481. package/dist/chunk-VXD26GIG.js +0 -1
  482. package/dist/chunk-W7S6SYBM.js +0 -2
  483. package/dist/chunk-WAY723TL.js +0 -16
  484. package/dist/chunk-WFOU5M4H.js +0 -16
  485. package/dist/chunk-WGOSE3RL.js +0 -4
  486. package/dist/chunk-WQ6W725N.js +0 -1
  487. package/dist/chunk-X7DCL5LT.js +0 -1
  488. package/dist/chunk-XDXHSGDL.js +0 -1
  489. package/dist/chunk-XKKKMV46.js +0 -6
  490. package/dist/chunk-XRVJJG6W.js +0 -26
  491. package/dist/chunk-XV6XCOTG.js +0 -319
  492. package/dist/chunk-XYFYQWKW.js +0 -1
  493. package/dist/chunk-YCUEDZDA.js +0 -1
  494. package/dist/chunk-YQ63ZFYT.js +0 -1
  495. package/dist/chunk-YXIFSIRX.js +0 -1
  496. package/dist/chunk-ZDQO6CNY.js +0 -1
  497. package/dist/chunk-ZGASBRSQ.js +0 -5
  498. package/dist/command-json-schema-6EGXCM4B.js +0 -1
  499. package/dist/conf-store-E7ELDWBA.js +0 -1
  500. package/dist/custom-oclif-loader-FKFZJPHF.js +0 -1
  501. package/dist/deprecations-RNGBHZYB.js +0 -1
  502. package/dist/dist-VHIZZDYK.js +0 -1
  503. package/dist/dist-WXI5YQYP.js +0 -1
  504. package/dist/environment-O7ECODHU.js +0 -1
  505. package/dist/environments-WZJ6MRTH.js +0 -1
  506. package/dist/error-IFB626JA.js +0 -1
  507. package/dist/error-handler-OVJYVIOZ.js +0 -1
  508. package/dist/fs-7UOUHJDO.js +0 -1
  509. package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
  510. package/dist/is-global-XW3CVHLK.js +0 -1
  511. package/dist/json-error-C2U7ZLCG.js +0 -1
  512. package/dist/latest-version-LDWU5F7A.js +0 -49
  513. package/dist/lib-PJHT4MKY.js +0 -1
  514. package/dist/lib-VKSQ65BQ.js +0 -1
  515. package/dist/lib-YEZOHXF3.js +0 -1
  516. package/dist/metadata-6JI7HF5B.js +0 -1
  517. package/dist/node-package-manager-X3QIEMMX.js +0 -1
  518. package/dist/notifications-system-OXGLT2R4.js +0 -1
  519. package/dist/os-NORIEVMI.js +0 -1
  520. package/dist/output-K3JTLRJD.js +0 -1
  521. package/dist/system-LTHR2T7L.js +0 -1
  522. package/dist/ui-MYUBVKCK.js +0 -1
  523. package/dist/upgrade-MFTWBXL3.js +0 -1
  524. package/dist/version-BNGPPAUU.js +0 -1
  525. package/dist/version-RCGFWSB4.js +0 -1
  526. package/dist/workerd-ISSXMKIH.js +0 -18
  527. /package/dist/{chunk-YLQ3LNNY.js → chunk-2S3FHQFS.js} +0 -0
  528. /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
@@ -0,0 +1,6 @@
1
+ import{a as mt}from"./chunk-C72QNK6O.js";import{a as w,c as k,g as h}from"./chunk-VKWPEFWQ.js";var Ee=k((yr,Oe)=>{h();var C=w("constants"),vt=process.cwd,Z=null,St=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return Z||(Z=vt.call(process)),Z};try{process.cwd()}catch{}typeof process.chdir=="function"&&(le=process.chdir,process.chdir=function(e){Z=null,le.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,le));var le;Oe.exports=bt;function bt(e){C.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=f(e.chownSync),e.fchownSync=f(e.fchownSync),e.lchownSync=f(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=d(e.stat),e.fstat=d(e.fstat),e.lstat=d(e.lstat),e.statSync=B(e.statSync),e.fstatSync=B(e.fstatSync),e.lstatSync=B(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(o,p,c){c&&process.nextTick(c)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(o,p,c,a){a&&process.nextTick(a)},e.lchownSync=function(){}),St==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:(function(o){function p(c,a,u){var S=Date.now(),m=0;o(c,a,function _(T){if(T&&(T.code==="EACCES"||T.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){e.stat(a,function(q,J){q&&q.code==="ENOENT"?o(c,a,_):u(T)})},m),m<100&&(m+=10);return}u&&u(T)})}return Object.setPrototypeOf&&Object.setPrototypeOf(p,o),p})(e.rename)),e.read=typeof e.read!="function"?e.read:(function(o){function p(c,a,u,S,m,_){var T;if(_&&typeof _=="function"){var q=0;T=function(J,we,_e){if(J&&J.code==="EAGAIN"&&q<10)return q++,o.call(e,c,a,u,S,m,T);_.apply(this,arguments)}}return o.call(e,c,a,u,S,m,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(p,o),p})(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:(function(o){return function(p,c,a,u,S){for(var m=0;;)try{return o.call(e,p,c,a,u,S)}catch(_){if(_.code==="EAGAIN"&&m<10){m++;continue}throw _}}})(e.readSync);function t(o){o.lchmod=function(p,c,a){o.open(p,C.O_WRONLY|C.O_SYMLINK,c,function(u,S){if(u){a&&a(u);return}o.fchmod(S,c,function(m){o.close(S,function(_){a&&a(m||_)})})})},o.lchmodSync=function(p,c){var a=o.openSync(p,C.O_WRONLY|C.O_SYMLINK,c),u=!0,S;try{S=o.fchmodSync(a,c),u=!1}finally{if(u)try{o.closeSync(a)}catch{}else o.closeSync(a)}return S}}function r(o){C.hasOwnProperty("O_SYMLINK")&&o.futimes?(o.lutimes=function(p,c,a,u){o.open(p,C.O_SYMLINK,function(S,m){if(S){u&&u(S);return}o.futimes(m,c,a,function(_){o.close(m,function(T){u&&u(_||T)})})})},o.lutimesSync=function(p,c,a){var u=o.openSync(p,C.O_SYMLINK),S,m=!0;try{S=o.futimesSync(u,c,a),m=!1}finally{if(m)try{o.closeSync(u)}catch{}else o.closeSync(u)}return S}):o.futimes&&(o.lutimes=function(p,c,a,u){u&&process.nextTick(u)},o.lutimesSync=function(){})}function n(o){return o&&function(p,c,a){return o.call(e,p,c,function(u){F(u)&&(u=null),a&&a.apply(this,arguments)})}}function i(o){return o&&function(p,c){try{return o.call(e,p,c)}catch(a){if(!F(a))throw a}}}function s(o){return o&&function(p,c,a,u){return o.call(e,p,c,a,function(S){F(S)&&(S=null),u&&u.apply(this,arguments)})}}function f(o){return o&&function(p,c,a){try{return o.call(e,p,c,a)}catch(u){if(!F(u))throw u}}}function d(o){return o&&function(p,c,a){typeof c=="function"&&(a=c,c=null);function u(S,m){m&&(m.uid<0&&(m.uid+=4294967296),m.gid<0&&(m.gid+=4294967296)),a&&a.apply(this,arguments)}return c?o.call(e,p,c,u):o.call(e,p,u)}}function B(o){return o&&function(p,c){var a=c?o.call(e,p,c):o.call(e,p);return a&&(a.uid<0&&(a.uid+=4294967296),a.gid<0&&(a.gid+=4294967296)),a}}function F(o){if(!o||o.code==="ENOSYS")return!0;var p=!process.getuid||process.getuid()!==0;return!!(p&&(o.code==="EINVAL"||o.code==="EPERM"))}}});var Pe=k((vr,Fe)=>{h();var xe=w("stream").Stream;Fe.exports=wt;function wt(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);xe.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var f=Object.keys(i),d=0,B=f.length;d<B;d++){var F=f[d];this[F]=i[F]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){s._read()});return}e.open(this.path,this.flags,this.mode,function(o,p){if(o){s.emit("error",o),s.readable=!1;return}s.fd=p,s.emit("open",p),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);xe.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),f=0,d=s.length;f<d;f++){var B=s[f];this[B]=i[B]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Ne=k((br,Be)=>{"use strict";h();Be.exports=Ot;var _t=Object.getPrototypeOf||function(e){return e.__proto__};function Ot(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:_t(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var Ie=k((_r,he)=>{h();var E=w("fs"),Et=Ee(),xt=Pe(),Ft=Ne(),ee=w("util"),I,re;typeof Symbol=="function"&&typeof Symbol.for=="function"?(I=Symbol.for("graceful-fs.queue"),re=Symbol.for("graceful-fs.previous")):(I="___graceful-fs.queue",re="___graceful-fs.previous");function Pt(){}function ke(e,t){Object.defineProperty(e,I,{get:function(){return t}})}var $=Pt;ee.debuglog?$=ee.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&($=function(){var e=ee.format.apply(ee,arguments);e="GFS4: "+e.split(/\n/).join(`
2
+ GFS4: `),console.error(e)});E[I]||(je=global[I]||[],ke(E,je),E.close=(function(e){function t(r,n){return e.call(E,r,function(i){i||Re(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,re,{value:e}),t})(E.close),E.closeSync=(function(e){function t(r){e.apply(E,arguments),Re()}return Object.defineProperty(t,re,{value:e}),t})(E.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){$(E[I]),w("assert").equal(E[I].length,0)}));var je;global[I]||ke(global,E[I]);he.exports=fe(Ft(E));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!E.__patched&&(he.exports=fe(E),E.__patched=!0);function fe(e){Et(e),e.gracefulify=fe,e.createReadStream=we,e.createWriteStream=_e;var t=e.readFile;e.readFile=r;function r(l,y,g){return typeof y=="function"&&(g=y,y=null),N(l,y,g);function N(j,P,O,x){return t(j,P,function(v){v&&(v.code==="EMFILE"||v.code==="ENFILE")?V([N,[j,P,O],v,x||Date.now(),Date.now()]):typeof O=="function"&&O.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(l,y,g,N){return typeof g=="function"&&(N=g,g=null),j(l,y,g,N);function j(P,O,x,v,R){return n(P,O,x,function(b){b&&(b.code==="EMFILE"||b.code==="ENFILE")?V([j,[P,O,x,v],b,R||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=f);function f(l,y,g,N){return typeof g=="function"&&(N=g,g=null),j(l,y,g,N);function j(P,O,x,v,R){return s(P,O,x,function(b){b&&(b.code==="EMFILE"||b.code==="ENFILE")?V([j,[P,O,x,v],b,R||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var d=e.copyFile;d&&(e.copyFile=B);function B(l,y,g,N){return typeof g=="function"&&(N=g,g=0),j(l,y,g,N);function j(P,O,x,v,R){return d(P,O,x,function(b){b&&(b.code==="EMFILE"||b.code==="ENFILE")?V([j,[P,O,x,v],b,R||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}var F=e.readdir;e.readdir=p;var o=/^v[0-5]\./;function p(l,y,g){typeof y=="function"&&(g=y,y=null);var N=o.test(process.version)?function(O,x,v,R){return F(O,j(O,x,v,R))}:function(O,x,v,R){return F(O,x,j(O,x,v,R))};return N(l,y,g);function j(P,O,x,v){return function(R,b){R&&(R.code==="EMFILE"||R.code==="ENFILE")?V([N,[P,O,x],R,v||Date.now(),Date.now()]):(b&&b.sort&&b.sort(),typeof x=="function"&&x.call(this,R,b))}}}if(process.version.substr(0,4)==="v0.8"){var c=xt(e);_=c.ReadStream,q=c.WriteStream}var a=e.ReadStream;a&&(_.prototype=Object.create(a.prototype),_.prototype.open=T);var u=e.WriteStream;u&&(q.prototype=Object.create(u.prototype),q.prototype.open=J),Object.defineProperty(e,"ReadStream",{get:function(){return _},set:function(l){_=l},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return q},set:function(l){q=l},enumerable:!0,configurable:!0});var S=_;Object.defineProperty(e,"FileReadStream",{get:function(){return S},set:function(l){S=l},enumerable:!0,configurable:!0});var m=q;Object.defineProperty(e,"FileWriteStream",{get:function(){return m},set:function(l){m=l},enumerable:!0,configurable:!0});function _(l,y){return this instanceof _?(a.apply(this,arguments),this):_.apply(Object.create(_.prototype),arguments)}function T(){var l=this;ue(l.path,l.flags,l.mode,function(y,g){y?(l.autoClose&&l.destroy(),l.emit("error",y)):(l.fd=g,l.emit("open",g),l.read())})}function q(l,y){return this instanceof q?(u.apply(this,arguments),this):q.apply(Object.create(q.prototype),arguments)}function J(){var l=this;ue(l.path,l.flags,l.mode,function(y,g){y?(l.destroy(),l.emit("error",y)):(l.fd=g,l.emit("open",g))})}function we(l,y){return new e.ReadStream(l,y)}function _e(l,y){return new e.WriteStream(l,y)}var yt=e.open;e.open=ue;function ue(l,y,g,N){return typeof g=="function"&&(N=g,g=null),j(l,y,g,N);function j(P,O,x,v,R){return yt(P,O,x,function(b,gr){b&&(b.code==="EMFILE"||b.code==="ENFILE")?V([j,[P,O,x,v],b,R||Date.now(),Date.now()]):typeof v=="function"&&v.apply(this,arguments)})}}return e}function V(e){$("ENQUEUE",e[0].name,e[1]),E[I].push(e),pe()}var te;function Re(){for(var e=Date.now(),t=0;t<E[I].length;++t)E[I][t].length>2&&(E[I][t][3]=e,E[I][t][4]=e);pe()}function pe(){if(clearTimeout(te),te=void 0,E[I].length!==0){var e=E[I].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)$("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){$("TIMEOUT",t.name,r);var f=r.pop();typeof f=="function"&&f.call(null,n)}else{var d=Date.now()-s,B=Math.max(s-i,1),F=Math.min(B*1.2,100);d>=F?($("RETRY",t.name,r),t.apply(null,r.concat([i]))):E[I].push(e)}te===void 0&&(te=setTimeout(pe,0))}}});var Le=k(z=>{"use strict";h();var Bt=z&&z.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(z,"__esModule",{value:!0});z.readCAFileSync=void 0;var Nt=Bt(Ie());function jt(e){try{let t=Nt.default.readFileSync(e,"utf8"),r="-----END CERTIFICATE-----";return t.split(r).filter(i=>!!i.trim()).map(i=>`${i.trimLeft()}${r}`)}catch(t){if(t.code==="ENOENT")return;throw t}}z.readCAFileSync=jt});var qe=k(M=>{"use strict";h();var Rt=M&&M.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),kt=M&&M.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Rt(t,e,r)};Object.defineProperty(M,"__esModule",{value:!0});kt(Le(),M)});var Ae=k((Br,De)=>{h();De.exports=Te;function W(e,t){if(typeof Object.setPrototypeOf=="function")return Object.setPrototypeOf(e,t);e.__proto__=t}function Te(){this.list=[];var e=null;Object.defineProperty(this,"root",{get:function(){return e},set:function(t){e=t,this.list.length&&W(this.list[this.list.length-1],t)},enumerable:!0,configurable:!0})}Te.prototype={get length(){return this.list.length},get keys(){var e=[];for(var t in this.list[0])e.push(t);return e},get snapshot(){var e={};return this.keys.forEach(function(t){e[t]=this.get(t)},this),e},get store(){return this.list[0]},push:function(e){return typeof e!="object"&&(e={valueOf:e}),this.list.length>=1&&W(this.list[this.list.length-1],e),W(e,this.root),this.list.push(e)},pop:function(){return this.list.length>=2&&W(this.list[this.list.length-2],this.root),this.list.pop()},unshift:function(e){return W(e,this.list[0]||this.root),this.list.unshift(e)},shift:function(){return this.list.length===1&&W(this.list[0],this.root),this.list.shift()},get:function(e){return this.list[0][e]},set:function(e,t,r){return this.length||this.push({}),r&&this.list[0].hasOwnProperty(e)&&this.push({}),this.list[0][e]=t},forEach:function(e,t){for(var r in this.list[0])e.call(t,r,this.list[0][r])},slice:function(){return this.list.slice.apply(this.list,arguments)},splice:function(){for(var e=this.list.splice.apply(this.list,arguments),t=0,r=this.list.length;t<r;t++)W(this.list[t],this.list[t+1]||this.root);return e}}});var We=k((D,Me)=>{h();var Ce=Ae(),Q=w("path"),ne=w("fs"),de=mt(),ge=w("events").EventEmitter,It=w("url"),Lt=w("http"),D=Me.exports=function(){for(var e=[].slice.call(arguments),t=new L;e.length;){var r=e.shift();r&&t.push(typeof r=="string"?Tt(r):r)}return t},jr=D.find=function(){var e=Q.join.apply(null,[].slice.call(arguments));function t(r,n){var i=Q.join(r,n);try{return ne.statSync(i),i}catch{if(Q.dirname(r)!==r)return t(Q.dirname(r),n)}}return t(__dirname,e)},qt=D.parse=function(e,t,r){if(e=""+e,r)if(r==="json")if(this.emit)try{return JSON.parse(e)}catch(n){this.emit("error",n)}else return JSON.parse(e);else return de.parse(e);else try{return JSON.parse(e)}catch{return de.parse(e)}},Tt=D.json=function(){var e=[].slice.call(arguments).filter(function(n){return n!=null}),t=Q.join.apply(null,e),r;try{r=ne.readFileSync(t,"utf-8")}catch{return}return qt(r,t,"json")},Rr=D.env=function(e,t){t=t||process.env;var r={},n=e.length;for(var i in t)i.indexOf(e)===0&&(r[i.substring(n)]=t[i]);return r};D.ConfigChain=L;function L(){ge.apply(this),Ce.apply(this,arguments),this._awaiting=0,this._saving=0,this.sources={}}var $e={constructor:{value:L}};Object.keys(ge.prototype).forEach(function(e){$e[e]=Object.getOwnPropertyDescriptor(ge.prototype,e)});L.prototype=Object.create(Ce.prototype,$e);L.prototype.del=function(e,t){if(t){var r=this.sources[t];if(r=r&&r.data,!r)return this.emit("error",new Error("not found "+t));delete r[e]}else for(var n=0,i=this.list.length;n<i;n++)delete this.list[n][e];return this};L.prototype.set=function(e,t,r){var n;if(r){if(n=this.sources[r],n=n&&n.data,!n)return this.emit("error",new Error("not found "+r))}else if(n=this.list[0],!n)return this.emit("error",new Error("cannot set, no confs!"));return n[e]=t,this};L.prototype.get=function(e,t){return t?(t=this.sources[t],t&&(t=t.data),t&&Object.hasOwnProperty.call(t,e)?t[e]:void 0):this.list[0][e]};L.prototype.save=function(e,s,r){typeof s=="function"&&(r=s,s=null);var n=this.sources[e];if(!n||!(n.path||n.source)||!n.data)return this.emit("error",new Error("bad save target: "+e));if(n.source){var i=n.prefix||"";return Object.keys(n.data).forEach(function(d){n.source[i+d]=n.data[d]}),this}var s=s||n.type,f=n.data;return n.type==="json"?f=JSON.stringify(f):f=de.stringify(f),this._saving++,ne.writeFile(n.path,f,"utf8",function(d){if(this._saving--,d)return r?r(d):this.emit("error",d);this._saving===0&&(r&&r(),this.emit("save"))}.bind(this)),this};L.prototype.addFile=function(e,t,r){r=r||e;var n={__source__:r};return this.sources[r]={path:e,type:t},this.push(n),this._await(),ne.readFile(e,"utf8",function(i,s){i&&this.emit("error",i),this.addString(s,e,t,n)}.bind(this)),this};L.prototype.addEnv=function(e,t,r){r=r||"env";var n=D.env(e,t);return this.sources[r]={data:n,source:t,prefix:e},this.add(n,r)};L.prototype.addUrl=function(e,t,r){this._await();var n=It.format(e);r=r||n;var i={__source__:r};return this.sources[r]={href:n,type:t},this.push(i),Lt.request(e,function(s){var f=[],d=s.headers["content-type"];t||(t=d.indexOf("json")!==-1?"json":d.indexOf("ini")!==-1?"ini":n.match(/\.json$/)?"json":n.match(/\.ini$/)?"ini":null,i.type=t),s.on("data",f.push.bind(f)).on("end",function(){this.addString(Buffer.concat(f),n,t,i)}.bind(this)).on("error",this.emit.bind(this,"error"))}.bind(this)).on("error",this.emit.bind(this,"error")).end(),this};L.prototype.addString=function(e,t,r,n){return e=this.parse(e,t,r),this.add(e,n),this};L.prototype.add=function(e,t){if(t&&typeof t=="object"){var r=this.list.indexOf(t);if(r===-1)return this.emit("error",new Error("bad marker"));this.splice(r,1,e),t=t.__source__,this.sources[t]=this.sources[t]||{},this.sources[t].data=e,this._resolve()}else typeof t=="string"&&(this.sources[t]=this.sources[t]||{},this.sources[t].data=e),this._await(),this.push(e),process.nextTick(this._resolve.bind(this));return this};L.prototype.parse=D.parse;L.prototype._await=function(){this._awaiting++};L.prototype._resolve=function(){this._awaiting--,this._awaiting===0&&this.emit("load",this)}});var Ge=k((Ir,Ke)=>{h();Ke.exports=function(e){let t=e.indexOf(":");if(t===-1)return Ue(e);let r=e.substr(0,t),n=e.substr(t+1);return`${r}:${Ue(n)}`};function Ue(e){if(e=e.toLowerCase(),e==="_authtoken")return"_authToken";let t=e[0];for(let r=1;r<e.length;r++)t+=e[r]==="_"?"-":e[r];return t}});var Ye=k(ie=>{"use strict";h();Object.defineProperty(ie,"__esModule",{value:!0});ie.envReplace=void 0;var Dt=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;function At(e,t){return e.replace(Dt,Ct.bind(null,t))}ie.envReplace=At;function Ct(e,t,r,n){if(r.length%2)return t.slice((r.length+1)/2);let i=Mt(e,n);if(i===void 0)throw new Error(`Failed to replace env in config: ${t}`);return`${r.slice(r.length/2)}${i}`}var $t=/([^:-]+)(:?)-(.+)/;function Mt(e,t){let r=t.match($t);if(!r)return e[t];let[,n,i,s]=r;return Object.prototype.hasOwnProperty.call(e,n)?!e[n]&&i?s:e[n]:s}});var Ve=k(oe=>{"use strict";h();Object.defineProperty(oe,"__esModule",{value:!0});oe.envReplace=void 0;var Wt=Ye();Object.defineProperty(oe,"envReplace",{enumerable:!0,get:function(){return Wt.envReplace}})});var ze=k(X=>{"use strict";h();var Ut=w("fs"),U=w("path"),{envReplace:ye}=Ve(),Kt=e=>typeof e!="string"?e:ye(e,process.env),Gt=(e,t,r)=>{if(typeof t!="string")return t;let n=[].concat(e[r]),i=n.indexOf(U)!==-1,s=n.indexOf(Boolean)!==-1,f=n.indexOf(String)!==-1,d=n.indexOf(Number)!==-1;if(t=`${t}`.trim(),/^".*"$/.test(t))try{t=JSON.parse(t)}catch{throw new Error(`Failed parsing JSON config key ${r}: ${t}`)}if(s&&!f&&t==="")return!0;switch(t){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}let B=ye(t,process.env);if((r.endsWith(":tokenHelper")||r==="tokenHelper")&&B!==t)throw new Error(`It is not allowed to use environment variables in the value of the ${r} setting.`);return t=B,i&&((process.platform==="win32"?/^~(\/|\\)/:/^~\//).test(t)&&process.env.HOME&&(t=U.resolve(process.env.HOME,t.substr(2))),t=U.resolve(t)),d&&!isNaN(t)&&(t=Number(t)),t},Yt=e=>{e=U.resolve(e);let t=!1;for(;U.basename(e)==="node_modules";)e=U.dirname(e),t=!0;if(t)return e;let r=(n,i)=>{let s=/^[a-zA-Z]:(\\|\/)?$/;if(n==="/"||process.platform==="win32"&&s.test(n))return i;try{let f=Ut.readdirSync(n);if(f.includes("node_modules")||f.includes("package.json")||f.includes("package.json5")||f.includes("package.yaml")||f.includes("pnpm-workspace.yaml"))return n;let d=U.dirname(n);return d===n?i:r(d,i)}catch(f){if(n===i){if(f.code==="ENOENT")return i;throw f}return i}};return r(e,e)};X.envReplace=ye;X.findPrefix=Yt;X.parseField=Gt;X.parseKey=Kt});var Qe=k(Je=>{"use strict";h();var K=w("path"),Vt=w("stream").Stream,se=w("url"),zt=()=>{},Ht=()=>[],He=()=>{};Je.types={access:[null,"restricted","public"],"allow-same-version":Boolean,"always-auth":Boolean,also:[null,"dev","development"],audit:Boolean,"auth-type":["legacy","sso","saml","oauth"],"bin-links":Boolean,browser:[null,String],ca:[null,String,Array],cafile:K,cache:K,"cache-lock-stale":Number,"cache-lock-retries":Number,"cache-lock-wait":Number,"cache-max":Number,"cache-min":Number,cert:[null,String],cidr:[null,String,Array],color:["always",Boolean],depth:Number,description:Boolean,dev:Boolean,"dry-run":Boolean,editor:String,"engine-strict":Boolean,force:Boolean,"fetch-retries":Number,"fetch-retry-factor":Number,"fetch-retry-mintimeout":Number,"fetch-retry-maxtimeout":Number,git:String,"git-tag-version":Boolean,"commit-hooks":Boolean,global:Boolean,globalconfig:K,"global-style":Boolean,group:[Number,String],"https-proxy":[null,se],"user-agent":String,"ham-it-up":Boolean,heading:String,"if-present":Boolean,"ignore-prepublish":Boolean,"ignore-scripts":Boolean,"init-module":K,"init-author-name":String,"init-author-email":String,"init-author-url":["",se],"init-license":String,"init-version":He,json:Boolean,key:[null,String],"legacy-bundling":Boolean,link:Boolean,"local-address":Ht(),loglevel:["silent","error","warn","notice","http","timing","info","verbose","silly"],logstream:Vt,"logs-max":Number,long:Boolean,maxsockets:Number,message:String,"metrics-registry":[null,String],"node-options":[null,String],"node-version":[null,He],"no-proxy":[null,String,Array],offline:Boolean,"onload-script":[null,String],only:[null,"dev","development","prod","production"],optional:Boolean,"package-lock":Boolean,otp:[null,String],"package-lock-only":Boolean,parseable:Boolean,"prefer-offline":Boolean,"prefer-online":Boolean,prefix:K,production:Boolean,progress:Boolean,proxy:[null,!1,se],provenance:Boolean,"read-only":Boolean,"rebuild-bundle":Boolean,registry:[null,se],rollback:Boolean,save:Boolean,"save-bundle":Boolean,"save-dev":Boolean,"save-exact":Boolean,"save-optional":Boolean,"save-prefix":String,"save-prod":Boolean,scope:String,"script-shell":[null,String],"scripts-prepend-node-path":[!1,!0,"auto","warn-only"],searchopts:String,searchexclude:[null,String],searchlimit:Number,searchstaleness:Number,"send-metrics":Boolean,shell:String,shrinkwrap:Boolean,"sign-git-tag":Boolean,"sso-poll-frequency":Number,"sso-type":[null,"oauth","saml"],"strict-ssl":Boolean,tag:String,timing:Boolean,tmp:K,unicode:Boolean,"unsafe-perm":Boolean,usage:Boolean,user:[Number,String],userconfig:K,umask:zt,version:Boolean,"tag-version-prefix":String,versions:Boolean,viewer:String,_exit:Boolean}});var et=k((Ur,Ze)=>{"use strict";h();var{readCAFileSync:Jt}=qe(),Xe=w("fs"),me=w("path"),{ConfigChain:Qt}=We(),Xt=Ge(),ve=ze(),Se=class extends Qt{constructor(t,r){super(t),this.root=t,this._parseField=ve.parseField.bind(null,r||Qe())}add(t,r){try{for(let[n,i]of Object.entries(t)){let s=ve.parseKey(n);s!==n&&delete t[n],t[s]=this._parseField(i,s)}}catch(n){throw n}return super.add(t,r)}addFile(t,r){r=r||t;let n={__source__:r};this.sources[r]={path:t,type:"ini"},this.push(n),this._await();try{let i=Xe.readFileSync(t,"utf8");this.addString(i,t,"ini",n)}catch(i){if(i.code==="ENOENT")this.add({},n);else if(i.code!=="EISDIR")return`Issue while reading "${t}". ${i.message}`}}addEnv(t){t=t||process.env;let r={};return Object.keys(t).filter(n=>/^npm_config_/i.test(n)).forEach(n=>{if(!t[n])return;let i=Xt(n.substr(11)),s=t[n];r[i]=Zt(i,s)}),super.addEnv("",r,"env")}loadPrefix(){let t=this.list[0];Object.defineProperty(this,"prefix",{enumerable:!0,set:n=>{let i=this.get("global");this[i?"globalPrefix":"localPrefix"]=n},get:()=>this.get("global")?this.globalPrefix:this.localPrefix}),Object.defineProperty(this,"globalPrefix",{enumerable:!0,set:n=>{this.set("prefix",n)},get:()=>me.resolve(this.get("prefix"))});let r;if(Object.defineProperty(this,"localPrefix",{enumerable:!0,set:n=>{r=n},get:()=>r}),Object.prototype.hasOwnProperty.call(t,"prefix"))r=me.resolve(t.prefix);else try{r=ve.findPrefix(process.cwd())}catch(n){throw n}return r}loadCAFile(t){if(!t)return;let r=Jt(t);r&&this.set("ca",r)}loadUser(){let t=this.root;if(this.get("global"))return;if(process.env.SUDO_UID){t.user=Number(process.env.SUDO_UID);return}let r=me.resolve(this.get("prefix"));try{let n=Xe.statSync(r);t.user=n.uid}catch(n){if(n.code==="ENOENT")return;throw n}}};function Zt(e,t){function r(n){return n.indexOf(`
3
+
4
+ `)?n.split(`
5
+
6
+ `):n.split(",")}switch(e){case"hoist-pattern":case"public-hoist-pattern":return r(t)}return t}Ze.exports=Se});var st=k(ot=>{"use strict";h();var nt=w("os"),A=w("path"),it=nt.tmpdir(),er=process.getuid?process.getuid():process.pid,tr=()=>!0,tt=process.platform==="win32",rt={editor:()=>process.env.EDITOR||process.env.VISUAL||(tt?"notepad.exe":"vi"),shell:()=>tt?process.env.COMSPEC||"cmd.exe":process.env.SHELL||"/bin/bash"},rr={fromString:()=>process.umask()},H=nt.homedir();H?process.env.HOME=H:H=A.resolve(it,"npm-"+er);var nr=process.platform==="win32"?"npm-cache":".npm",ir=process.platform==="win32"&&process.env.APPDATA||H,or=A.resolve(ir,nr),ae,G;Object.defineProperty(ot,"defaults",{get:function(){return ae||(process.env.PREFIX?G=process.env.PREFIX:process.platform==="win32"?G=A.dirname(process.execPath):(G=A.dirname(A.dirname(process.execPath)),process.env.DESTDIR&&(G=A.join(process.env.DESTDIR,G))),ae={access:null,"allow-same-version":!1,"always-auth":!1,also:null,audit:!0,"auth-type":"legacy","bin-links":!0,browser:null,ca:null,cafile:null,cache:or,"cache-lock-stale":6e4,"cache-lock-retries":10,"cache-lock-wait":1e4,"cache-max":1/0,"cache-min":10,cert:null,cidr:null,color:process.env.NO_COLOR==null,depth:1/0,description:!0,dev:!1,"dry-run":!1,editor:rt.editor(),"engine-strict":!1,force:!1,"fetch-retries":2,"fetch-retry-factor":10,"fetch-retry-mintimeout":1e4,"fetch-retry-maxtimeout":6e4,git:"git","git-tag-version":!0,"commit-hooks":!0,global:!1,globalconfig:A.resolve(G,"etc","npmrc"),"global-style":!1,group:process.platform==="win32"?0:process.env.SUDO_GID||process.getgid&&process.getgid(),"ham-it-up":!1,heading:"npm","if-present":!1,"ignore-prepublish":!1,"ignore-scripts":!1,"init-module":A.resolve(H,".npm-init.js"),"init-author-name":"","init-author-email":"","init-author-url":"","init-version":"1.0.0","init-license":"ISC",json:!1,key:null,"legacy-bundling":!1,link:!1,"local-address":void 0,loglevel:"notice",logstream:process.stderr,"logs-max":10,long:!1,maxsockets:50,message:"%s","metrics-registry":null,"node-options":null,offline:!1,"onload-script":!1,only:null,optional:!0,otp:null,"package-lock":!0,"package-lock-only":!1,parseable:!1,"prefer-offline":!1,"prefer-online":!1,prefix:G,production:!1,progress:!process.env.TRAVIS&&!process.env.CI,provenance:!1,proxy:null,"https-proxy":null,"no-proxy":null,"user-agent":"npm/{npm-version} node/{node-version} {platform} {arch}","read-only":!1,"rebuild-bundle":!0,registry:"https://registry.npmjs.org/",rollback:!0,save:!0,"save-bundle":!1,"save-dev":!1,"save-exact":!1,"save-optional":!1,"save-prefix":"^","save-prod":!1,scope:"","script-shell":null,"scripts-prepend-node-path":"warn-only",searchopts:"",searchexclude:null,searchlimit:20,searchstaleness:900,"send-metrics":!1,shell:rt.shell(),shrinkwrap:!0,"sign-git-tag":!1,"sso-poll-frequency":500,"sso-type":"oauth","strict-ssl":!0,tag:"latest","tag-version-prefix":"v",timing:!1,tmp:it,unicode:tr(),"unsafe-perm":process.platform==="win32"||process.platform==="cygwin"||!(process.getuid&&process.setuid&&process.getgid&&process.setgid)||process.getuid()!==0,usage:!1,user:process.platform==="win32"?0:"nobody",userconfig:A.resolve(H,".npmrc"),umask:process.umask?process.umask():rr.fromString("022"),version:!1,versions:!1,viewer:process.platform==="win32"?"browser":"man",_exit:!0},ae)}})});var ct=k((Vr,be)=>{"use strict";h();var Y=w("path"),sr=et(),at=st();be.exports=(e,t,r)=>{let n=new sr(Object.assign({},at.defaults,r),t);n.add(Object.assign({},e),"cli");let i=[],s=!1;if(w.resolve.paths){let c=w.resolve.paths("npm"),a;try{a=w.resolve("npm",{paths:c.slice(-1)})}catch{s=!0}a&&i.push(n.addFile(Y.resolve(Y.dirname(a),"..","npmrc"),"builtin"))}n.addEnv(),n.loadPrefix();let f=n.get("userconfig"),d=n.get("prefix");if(d){let c=Y.resolve(d,"etc");n.root.globalconfig=Y.resolve(c,"npmrc"),n.root.globalignorefile=Y.resolve(c,"npmignore")}let B=n.get("globalconfig"),F=Y.resolve(n.localPrefix,".npmrc"),o=f;if(!n.get("global")&&F!==o?i.push(n.addFile(F,"project")):n.add({},"project"),n.get("workspace-prefix")&&n.get("workspace-prefix")!==F){let c=Y.resolve(n.get("workspace-prefix"),".npmrc");i.push(n.addFile(c,"workspace"))}i.push(n.addFile(f,"user")),i.push(n.addFile(B,"global")),n.loadUser();let p=n.get("cafile");return p&&n.loadCAFile(p),{config:n,warnings:i.filter(Boolean),failedToLoadBuiltInConfig:s}};Object.defineProperty(be.exports,"defaults",{get(){return at.defaults},enumerable:!0})});var dr=k((Jr,gt)=>{h();var ut=ct(),lt=":_authToken",ft=":_auth",pt=":username",ht=":_password";gt.exports=function(){let t,r;arguments.length>=2?(t=arguments[0],r=Object.assign({},arguments[1])):typeof arguments[0]=="string"?t=arguments[0]:r=Object.assign({},arguments[0]),r=r||{};let n=r.npmrc;return r.npmrc=(r.npmrc?{config:{get:i=>n[i]}}:ut()).config,t=t||r.npmrc.get("registry")||ut.defaults.registry,dt(t,r)||cr(r.npmrc)};function ar(e,t){let r=new URL(t,new URL(e.startsWith("//")?`./${e}`:e,"resolve://"));if(r.protocol==="resolve:"){let{pathname:n,search:i,hash:s}=r;return n+i+s}return r.toString()}function dt(e,t){let r=e instanceof URL?e:new URL(e.startsWith("//")?`http:${e}`:e),n;for(;n!=="/"&&r.pathname!==n;){n=r.pathname||"/";let i="//"+r.host+n.replace(/\/$/,""),s=lr(i,t.npmrc);if(s)return s;if(!t.recursive)return/\/$/.test(e)?void 0:dt(new URL("./",r),t);r.pathname=ar(ur(n),"..")||"/"}}function cr(e){return e.get("_auth")?{token:ce(e.get("_auth")),type:"Basic"}:void 0}function ur(e){return e[e.length-1]==="/"?e:e+"/"}function lr(e,t){let r=fr(t.get(e+lt)||t.get(e+"/"+lt));if(r)return r;let n=t.get(e+pt)||t.get(e+"/"+pt),i=t.get(e+ht)||t.get(e+"/"+ht),s=pr(n,i);if(s)return s;let f=hr(t.get(e+ft)||t.get(e+"/"+ft));if(f)return f}function ce(e){return e.replace(/^\$\{?([^}]*)\}?$/,function(t,r){return process.env[r]})}function fr(e){return e?{token:ce(e),type:"Bearer"}:void 0}function pr(e,t){if(!e||!t)return;let r=Buffer.from(ce(t),"base64").toString("utf8");return{token:Buffer.from(e+":"+r,"utf8").toString("base64"),type:"Basic",password:r,username:e}}function hr(e){return e?{token:ce(e),type:"Basic"}:void 0}});export{dr as a};
@@ -0,0 +1,3 @@
1
+ import{c as b,i as u,n as w,p as _}from"./chunk-5534MHZW.js";import{a as h}from"./chunk-RSZAAN37.js";import{P as g}from"./chunk-HMPRWNGG.js";import{c as d}from"./chunk-DMOLPSXF.js";import{i as m}from"./chunk-TD6JBHUS.js";import{zb as s}from"./chunk-ZMOW2YZ4.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();r();var j=250,c=class extends Error{constructor(){super("Migratable subscriptions were not found"),this.name="MigratableSubscriptionsNotFoundError"}},l=class extends Error{constructor(t){super(t),this.name="MigrationListProtocolError"}};async function*S({clientId:i,status:t,getPage:o=_}){let e=new Set,a;for(;;){let p=await o({clientId:i,first:j,after:a,status:t});if(p===null)throw new c;if(yield p.subscriptions,!p.pageInfo.hasNextPage)return;let{endCursor:n}=p.pageInfo;if(n===null||n.trim()==="")throw new l("Migratable subscription page has no cursor for its next page");if(e.has(n))throw new l(`Migratable subscription pagination repeated cursor: ${n}`);e.add(n),a=n}}r();var v="shop_id,status,manual_subscription_name,manual_subscription_price_amount,manual_subscription_price_currency_code,manual_subscription_interval,target_plan_handle,notification_kind,notification_opt_out_deadline,notification_sent_at,price_behavior,effective_date,last_failure_reason";function C(i){return u.encode({subscriptions:i.map(w)})}async function y({pages:i,json:t}){t?s(C(await x(i))):await E(i)}async function x(i){let t=[];for await(let o of i)t.push(...o);return t}async function E(i){let t=!1;for await(let o of i){let e=M(o);t?e.length>0&&s(e.join(`
2
+ `)):(s([v,...e].join(`
3
+ `)),t=!0)}t||s(v)}function M(i){return i.map(t=>[t.shopId,t.status,t.manualSubscriptionName,t.manualSubscriptionPrice?.amount,t.manualSubscriptionPrice?.currencyCode,t.manualSubscriptionInterval,t.targetPlanHandle,t.notification?.kind,t.notification?.optOutDeadline,t.notification?.sentAt,t.priceBehavior,t.effectiveDate,t.lastFailureReason].map(L).join(","))}function L(i){let t=i??"";return/[",\r\n]/.test(t)?`"${t.replaceAll('"','""')}"`:t}var f=class i extends h{static summary="Lists app subscriptions eligible for migration.";static descriptionWithMarkdown="Lists every app subscription eligible for migration.\n\nBy default, the command writes CSV to stdout, streaming each page of results as it arrives. If a later page fails, the rows already written remain valid CSV. Use `--json` to fetch all pages first and then write a single JSON envelope to stdout. Use shell redirection to save either format, for example `shopify app subscription-migrations list > subscriptions.csv` or `shopify app subscription-migrations list --json > subscriptions.json`.\n\nUse `--status` to filter subscriptions by migration status. Supported values are `UNSCHEDULED`, `SCHEDULED`, and `MIGRATED`.\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 jsonOutputSchema=u;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --status SCHEDULED > scheduled-subscriptions.csv","<%= config.bin %> <%= command.id %> --json","<%= config.bin %> <%= command.id %> --json > subscriptions.json","<%= config.bin %> <%= command.id %> --client-id <client-id> > subscriptions.csv"];static flags={...b,...d};async run(){let{flags:t}=await this.parse(i),{app:o,remoteApp:e}=await g({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});try{let a=S({clientId:e.apiKey,status:t.status});await y({pages:a,json:t.json})}catch(a){throw a instanceof c?new m("App not found"):a}return{app:o}}};export{f as a};
@@ -1,4 +1,4 @@
1
- import{b as m}from"./chunk-OLKLHVHA.js";import{H as f}from"./chunk-V654BMS7.js";import{wb as c}from"./chunk-RIG66DIQ.js";import{b as N}from"./chunk-YTUUU33R.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static description="View all the available command flags";static hidden=!0;static flags={csv:d.Flags.boolean({description:"Output as CSV",env:"SHOPIFY_FLAG_OUTPUT_CSV",default:!1})};async run(){let{flags:p}=await this.parse(h),s=[];for(let[t,a]of this.config.plugins)for(let o of a.commands){let l=await o.load(),n;a.name.startsWith("@shopify")?n=a.name.substring(9):n=a.name.startsWith("@oclif")?a.name.substring(7):a.name;let e=l.flags;if(e)for(let[u,r]of Object.entries(e))s.push({pluginName:n,command:o.id,flagName:`--${u}`,flagChar:r.char?`-${r.char}`:"",flagEnv:r.env})}if(p.csv){let t=["pluginName","command","flagName","flagChar","flagEnv"],a=`${t.join(",")}
1
+ import{b as m}from"./chunk-XEZPN5TR.js";import{F as f}from"./chunk-2KUM2RU4.js";import{zb as c}from"./chunk-ZMOW2YZ4.js";import{b as N}from"./chunk-AE3IQG7S.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static description="View all the available command flags";static hidden=!0;static flags={csv:d.Flags.boolean({description:"Output as CSV",env:"SHOPIFY_FLAG_OUTPUT_CSV",default:!1})};async run(){let{flags:p}=await this.parse(h),s=[];for(let[t,a]of this.config.plugins)for(let o of a.commands){let l=await o.load(),n;a.name.startsWith("@shopify")?n=a.name.substring(9):n=a.name.startsWith("@oclif")?a.name.substring(7):a.name;let e=l.flags;if(e)for(let[u,r]of Object.entries(e))s.push({pluginName:n,command:o.id,flagName:`--${u}`,flagChar:r.char?`-${r.char}`:"",flagEnv:r.env})}if(p.csv){let t=["pluginName","command","flagName","flagChar","flagEnv"],a=`${t.join(",")}
2
2
  `,o=s.map(n=>t.map(e=>n[e]).join(",")).join(`
3
3
  `),l=`${a}${o}
4
4
  `;c(l)}else f({rows:s,columns:{pluginName:{header:"plugin",color:"red"},command:{},flagName:{header:"long flag",color:"green"},flagChar:{header:"short flag",color:"green"},flagEnv:{header:"env variable",color:"blueBright"}}})}};export{i as a};
@@ -0,0 +1 @@
1
+ import{c as R,g as O}from"./chunk-VKWPEFWQ.js";var D=R((ar,x)=>{"use strict";O();x.exports=$;function $(r,e,n){r instanceof RegExp&&(r=w(r,n)),e instanceof RegExp&&(e=w(e,n));var t=k(r,e,n);return t&&{start:t[0],end:t[1],pre:n.slice(0,t[0]),body:n.slice(t[0]+r.length,t[1]),post:n.slice(t[1]+e.length)}}function w(r,e){var n=e.match(r);return n?n[0]:null}$.range=k;function k(r,e,n){var t,a,u,g,f,i=n.indexOf(r),o=n.indexOf(e,i+1),v=i;if(i>=0&&o>0){if(r===e)return[i,o];for(t=[],u=n.length;v>=0&&!f;)v==i?(t.push(v),i=n.indexOf(r,v+1)):t.length==1?f=[t.pop(),o]:(a=t.pop(),a<u&&(u=a,g=o),o=n.indexOf(e,v+1)),v=i<o&&i>=0?i:o;t.length&&(f=[u,g])}return f}});var tr=R((fr,z)=>{O();var H=D();z.exports=Y;var T="\0SLASH"+Math.random()+"\0",B="\0OPEN"+Math.random()+"\0",I="\0CLOSE"+Math.random()+"\0",G="\0COMMA"+Math.random()+"\0",Z="\0PERIOD"+Math.random()+"\0",W=1e5,F=4e6,J=1e3,K=1e3;function j(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function Q(r){return r.split("\\\\").join(T).split("\\{").join(B).split("\\}").join(I).split("\\,").join(G).split("\\.").join(Z)}function U(r){return r.split(T).join("\\").split(B).join("{").split(I).join("}").split(G).join(",").split(Z).join(".")}function S(r,e){for(var n=0;n<e.length;n++)r.push(e[n])}function V(r){for(var e=[],n="";;){var t=H("{","}",r);if(!t){var a=r.split(",");return a[0]=n+a[0],S(e,a),e}var u=t.pre,g=t.body,f=t.post,i=u.split(",");if(i[0]=n+i[0],i[i.length-1]+="{"+g+"}",!f.length)return S(e,i),e;n=i.pop(),S(e,i),r=f}}function Y(r,e){if(!r)return[];e=e||{};var n=e.max==null?W:e.max,t=e.maxLength==null?F:e.maxLength,a=e.maxDepth==null?J:e.maxDepth,u=e.maxRewrites==null?K:e.maxRewrites;return r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),C(Q(r),n,t,a,0,u,!0).map(U)}function q(r){return"{"+r+"}"}function L(r){return/^-?0\d/.test(r)}function rr(r,e){return r<=e}function er(r,e){return r>=e}function M(r,e,n,t,a,u){for(var g=[],f=0,i=0;i<r.length;i++)for(var o=0;o<n.length;o++){if(g.length>=t)return g;var v=r[i]+e+n[o];if(!(u&&!v)){if(f+v.length>a)return g;g.push(v),f+=v.length}}return g}function nr(r,e,n,t){var a=r.split(/\.\./),u=[];if(a[0]===void 0||a[1]===void 0)return u;var g=j(a[0]),f=j(a[1]),i=Math.max(a[0].length,a[1].length),o=a.length===3&&a[2]!==void 0?Math.max(Math.abs(j(a[2])),1):1,v=rr,E=f<g;E&&(o*=-1,v=er);for(var y=a.some(L),p=0,d=g;v(d,f)&&u.length<n;d+=o){var h;if(e)h=String.fromCharCode(d),h==="\\"&&(h="");else if(h=String(d),y){var s=i-h.length;if(s>0){var c=new Array(s+1).join("0");d<0?h="-"+c+h.slice(1):h=c+h}}if(p+h.length>t)break;u.push(h),p+=h.length}return u}function C(r,e,n,t,a,u,g){if(a>t)return[r];for(var f=[""],i=0,o=!1,v=!0;;){let l=H("{","}",r);if(!l)return M(f,r,[""],e,n,o);let b=l.pre;if(/\$$/.test(b)){if(f=M(f,b+"{"+l.body+"}",[""],e,n,o&&!l.post.length),v=!1,!l.post.length)break;r=l.post;continue}var E=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(l.body),y=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(l.body),p=E||y,d=l.body.indexOf(",")>=0;if(!p&&!d){if(i<u&&l.post.match(/,(?!,).*\}/)){i++,r=l.pre+"{"+l.body+I+l.post,g=!0;continue}return M(f,b+"{"+l.body+"}"+l.post,[""],e,n,o)}v&&(o=g&&!p,v=!1);var h;if(p)h=nr(l.body,y,e,n);else{var s=V(l.body);if(s.length===1&&s[0]!==void 0&&(s=C(s[0],e,n,t,a+1,u,!1).map(q),s.length===1)){if(f=M(f,b+s[0],[""],e,n,o&&!l.post.length),!l.post.length)break;r=l.post;continue}for(var c=o&&!l.post.length&&!b,N=0;c&&N<f.length;N++)f[N]&&(c=!1);h=[];var X=0;r:for(var m=0;m<s.length;m++)for(var _=C(s[m],e,n,t,a+1,u,!1),P=0;P<_.length;P++){var A=_[P];if(!(c&&!A)){if(h.length>=e||X+A.length>n)break r;h.push(A),X+=A.length}}}if(f=M(f,b,h,e,n,o&&!l.post.length),!l.post.length)break;r=l.post}return f}});export{D as a,tr as b};
@@ -0,0 +1 @@
1
+ import{b as y,c as S,f as C,g as B}from"./chunk-5T3ZT6CC.js";import{a as x}from"./chunk-ALINJ6J2.js";import{a as b}from"./chunk-ASKBYEO7.js";import{Q as g}from"./chunk-HMPRWNGG.js";import{t as w}from"./chunk-YYWSHRO2.js";import{b as h,c as F}from"./chunk-DMOLPSXF.js";import{w as l,y as d}from"./chunk-2KUM2RU4.js";import{d as p}from"./chunk-25MYHE4W.js";import{a}from"./chunk-LG3KEHGD.js";import{zb as f}from"./chunk-ZMOW2YZ4.js";import{b as s,i as m}from"./chunk-3PYDIBTX.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();var j=S.extend({wasmPath:y.nullable().describe("The built Wasm file, or null when the build produced no file.")}).strict(),e=a({name:"FunctionBuildResult",schema:s.object({status:s.literal("success"),function:j}).strict(),definitions:{FunctionBuild:j}});o();function A(n,t){t?f(e.encode(n)):d({headline:"Function built successfully."})}var r=class n extends x{static jsonOutputSchema=e;static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionForHelp();static flags={...h,...b,...C,...F};async run(){let{flags:t}=await this.parse(n),{app:i}=await g({directory:t.path,userProvidedConfigName:t.config}),u=await B(i,t.path),c=async(J,O)=>{let W=await w(u,{app:i,stdout:J,stderr:O,useTasks:!0,environment:"production"});A(W,t.json)};return t.json?await m({outputMode:"json",sink:p},()=>l({processes:[{prefix:u.localIdentifier,action:c}],showTimestamps:!1})):await c(process.stdout,process.stderr),{app:i}}};export{r as a};
@@ -0,0 +1,10 @@
1
+ import{c as Ae}from"./chunk-FAVPTYIR.js";import{a as Pe,c as ke}from"./chunk-VJG7VXFU.js";import{b as Ie}from"./chunk-EDWIWZWM.js";import{a as Ne}from"./chunk-RSZAAN37.js";import{K as Ge,P as ze,a as Re,h as $e,k as je}from"./chunk-HMPRWNGG.js";import{s as Se,x as _e}from"./chunk-JGLLABZR.js";import{R as xe,ba as Ce,da as Fe,fa as Le}from"./chunk-YYWSHRO2.js";import{F as Te,c as ve}from"./chunk-OJOF6IYG.js";import{I as ee}from"./chunk-YKDRUAY3.js";import{B as ne,D as se,E as pe,f as F,g as ie,i as re,p as oe}from"./chunk-4WBWZIN5.js";import{e as J}from"./chunk-3FZ4LE6A.js";import{a as E}from"./chunk-JIY6XWSC.js";import{b as ye,c as we,f as be}from"./chunk-DMOLPSXF.js";import{C as j,G as ue,x as me,y as de,z as fe}from"./chunk-2KUM2RU4.js";import{b as le}from"./chunk-H4K3F7PP.js";import{a as M}from"./chunk-LG3KEHGD.js";import{d as ce}from"./chunk-I3WRA2LH.js";import{i as f}from"./chunk-TD6JBHUS.js";import{Ba as T,Ia as W,Na as B,Sa as x,Ta as C,Ua as Z,Va as Q,_ as q,_a as X,ja as Y,la as K,lb as te,nb as ae,ra as _,ta as $,tb as y,ub as L,va as V,vb as v,zb as ge}from"./chunk-ZMOW2YZ4.js";import{b as h}from"./chunk-3PYDIBTX.js";import{f as he}from"./chunk-DOLVBTCB.js";import{b as Xe}from"./chunk-AE3IQG7S.js";import{c as p,d as R,e as O,o as U,p as H}from"./chunk-IWTNUJGY.js";import{e as Qe,g as l}from"./chunk-VKWPEFWQ.js";l();l();var g={reactRouter:{url:"https://github.com/Shopify/shopify-app-template-react-router",label:"Build a React Router app (recommended)",visible:!0,branches:{prompt:"For your React Router template, which language do you want?",options:{javascript:{branch:"javascript-cli",label:"JavaScript"},typescript:{branch:"main-cli",label:"TypeScript"}}}},remix:{url:"https://github.com/Shopify/shopify-app-template-remix",label:"Build a Remix app",visible:!1,deprecated:{replacement:"reactRouter"},branches:{prompt:"For your Remix template, which language do you want?",options:{javascript:{branch:"javascript",label:"JavaScript"},typescript:{branch:"main",label:"TypeScript"}}}},none:{url:"https://github.com/Shopify/shopify-app-template-extension-only",label:"Build an extension-only app",visible:!0},node:{url:"https://github.com/Shopify/shopify-app-template-node",visible:!1,deprecated:{replacement:"reactRouter"}},ruby:{url:"https://github.com/Shopify/shopify-app-template-ruby",visible:!1}},G=Object.keys(g),S=G.filter(e=>g[e].visible),Je=["reactRouter","none"],et=async e=>{let t=e.template,a=e.flavor,i={template:g.reactRouter.url};t??=await j({choices:Je.map(o=>({label:g[o].label||o,value:o})),message:"Get started building your app:",defaultValue:G.find(o=>g[o].url===i.template)});let r={...e,template:t,templateType:P(t)?t:"custom",globalCLIResult:{install:!1,alreadyInstalled:!1}},n,s;if(r.templateType!=="custom"){let o=g[r.templateType];n=o.url,o.branches&&(a?s=o.branches.options[a]?.branch:s=await j({message:o.branches.prompt||"Choose a flavor:",choices:Object.entries(o.branches.options).map(([d,c])=>({value:c.branch,label:c.label}))}))}return s&&(n=`${n}#${s}`),r.template=n||r.template||i.template,r.globalCLIResult=await ae(),r},De=et;function P(e){return G.includes(e)}function Ee(e){return e!==void 0&&P(e)&&g[e].branches!==void 0}l();l();import{platform as tt}from"os";async function Me({packageJSON:e,local:t,useGlobalCLI:a}){if(e.dependencies=e.dependencies??{},a?delete e.dependencies["@shopify/cli"]:e.dependencies["@shopify/cli"]=E,delete e.dependencies["@shopify/app"],t){let i=await at("cli");e.dependencies["@shopify/cli"]=i;let r={"@shopify/cli":i};e.overrides=e.overrides?{...e.overrides,...r}:r,e.resolutions=e.resolutions?{...e.resolutions,...r}:r}return e}async function at(e){return`file:${await X(`packages/${e}`,{type:"directory",cwd:U(import.meta.url)})}`}async function Oe({from:e,packageManager:t}){let a=tt()==="win32"&&t==="yarn"?["--network-concurrency","1"]:[];return oe({directory:R(e),packageManager:t,args:a})}l();async function z(e,t){let i=(await Q([p(e,"**",".git"),p(e,"**",".github"),p(e,"**",".gitmodules"),p(e,"**",".cli-liquid-bypass"),p(e,"LICENSE*"),p(e,"**","frontend/LICENSE*"),p(e,"package.json.cli2")],{dot:!0,onlyFiles:!1,onlyDirectories:!1,ignore:["**/node_modules/**"]})).map(s=>T(s,{force:!0})),r=new Set(ie[t]),n=F.filter(s=>!r.has(s)).map(s=>{let o=p(e,s);if(C(o))return W(o)});return Promise.all([...i,...n])}async function it(e){let t=e.packageManager,a=q(e.name),i=p(e.directory,a),r=Ae(e.template);await Ue(i,a),await rt(i),me({body:["Initializing project with",{command:t},`
2
+ Use the`,{command:"--package-manager"},"flag to select a different package manager."]}),await Y(async o=>{let d=p(o,"download"),c=r.filePath?p(d,r.filePath):d,u=p(o,"app"),A=r.branch?`${r.baseURL}#${r.branch}`:r.baseURL;await V(d);let b=[{title:`Downloading template from ${A}`,task:async()=>{await ke({repoUrl:A,destination:d,shallow:!0})}}];b.push({title:"Parsing liquid",task:async()=>{await Ie(c,u,{dependency_manager:t,app_name:e.name})}},{title:"Updating package.json",task:async()=>{let m=(await ne(u)).content;m.name=a,m.author=await le()??"",m.private=!0;let I=["extensions/*"].concat(ot(u));switch(t){case"npm":case"yarn":case"bun":m.workspaces=I;break;case"pnpm":{await nt(u,I),await _(p(u,".npmrc"),`auto-install-peers=true
3
+ `);break}case"homebrew":case"unknown":throw new re}await Me({packageJSON:m,local:e.local,directory:u,useGlobalCLI:e.useGlobalCLI}),await se(u,m)}}),e.postCloneActions.removeLockfilesFromGitignore&&b.push({title:"Removing lockfiles from .gitignore",task:async()=>{let m=p(u,".gitignore");if(await x(m)){let I=await K(m);F.forEach(Be=>{let Ze=new RegExp(`^${Be.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}$`,"gm");I=I.replace(Ze,"")}),await $(m,I.trim())}}}),await he()&&b.push({title:"[Shopifolks-only] Configuring the project's NPM registry",task:async()=>{let m=p(u,".npmrc");await _(m,`@shopify:registry=https://registry.npmjs.org
4
+ `)}});let D=!1;b.push({title:"Preparing project directory",task:async()=>{await Ue(i,a),D=!0,await B(u,i)}}),b.push({title:`Installing dependencies with ${t}`,task:async()=>{await Oe({from:i,packageManager:t})}},{title:"Cleaning up",task:async()=>{await z(i,t)}},{title:"Initializing a Git repository...",task:async()=>{await Pe(i)}});try{await ue(b)}catch(m){throw D&&await T(i).catch(()=>{}),m}});let n;if(e.selectedAppOrNameResult.result==="new"){let o=await xe(i,e.name),d=e.selectedAppOrNameResult.org;n=await e.developerPlatformClient.createApp(d,o)}else n=e.selectedAppOrNameResult.app;return await Ge({directory:i,apiKey:n.apiKey,appId:n.id,organizationId:n.organizationId,configName:"shopify.app.toml",developerPlatformClient:e.developerPlatformClient,isNewApp:!0},!1),{app:(await ze({directory:i,clientId:void 0,forceRelink:!1,userProvidedConfigName:void 0})).app,remoteApp:n,projectName:a,packageManager:t,template:e.template}}async function Ue(e,t){if(await x(e))throw new f(`
5
+ A directory with this name (${t}) already exists.
6
+ Choose a new name for your app.`)}async function rt(e){let t=new J({projectName:"shopify-cli-app"}),a=R(e);t.delete(a)}function ot(e){return["web","web/frontend"].filter(t=>C(p(e,t)))}async function nt(e,t){let a=p(e,"pnpm-workspace.yaml");if(await x(a))return;let i=t.map(r=>` - '${r}'`).join(`
7
+ `);await $(a,`packages:
8
+ ${i}`)}var He=it;l();var qe=h.string().regex(/^(?:\/|[A-Za-z]:[\\/]|\\\\)/),Ye=h.object({id:h.string().regex(/^\d+$/).describe("The decimal App ID, not a Shopify GID."),name:h.string().min(1).describe("The name of the linked remote app."),clientId:h.string().min(1).describe("The client ID of the linked remote app."),organizationId:h.string().regex(/^\d+$/).describe("The decimal organization ID, not a Shopify GID."),directory:qe.describe("The absolute filesystem path of the created app project."),configurationPath:qe.describe("The absolute filesystem path of the linked app configuration.")}).strict(),k=M({name:"AppInitResult",schema:h.object({status:h.literal("success"),app:Ye,packageManager:h.enum(["npm","yarn","pnpm","bun"]),template:h.string().url().describe("The selected GitHub template reference, including its branch and subpath.")}).strict(),definitions:{InitializedApp:Ye}});l();function st({app:e,remoteApp:t,packageManager:a,template:i}){return k.validate({status:"success",app:{id:t.id.startsWith("gid://shopify/App/")?ve(t.id)??t.id:t.id,name:t.title,clientId:t.apiKey,organizationId:t.organizationId,directory:e.directory,configurationPath:e.configPath},packageManager:a,template:i})}function Ke(e,t=!1){if(t){ge(k.encode(st(e)));return}let{projectName:a,packageManager:i}=e;de({headline:[{userInput:a},"is ready for you to build!"],nextSteps:[["Run",{command:`cd ${a}`}],["For extensions, run",{command:L(i,"shopify app generate extension")}],["To see your app, run",{command:L(i,"shopify app dev")}]],reference:[{link:{label:"Shopify docs",url:"https://shopify.dev"}},[{link:{label:"Shopify Dev MCP,",url:"https://shopify.dev/docs/apps/build/devmcp"}},"connect your AI assistant to development resources"],["For an overview of commands, run",{command:L(i,"shopify app","--help")}]]})}l();function Ve(e){if(!e)return;let t=ee(e);if(t&&t.origin!=="https://github.com")throw new f("Only GitHub repository references are supported, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]");if(!t&&!P(e))throw new f(v`Only ${S.map(a=>v`${y.yellow(a)}`.value).join(", ")} template aliases are supported, please provide a valid URL`)}function We(e,t){if(!e){if(t)throw new f(v`The ${y.yellow("--flavor")} flag requires the ${y.yellow("--template")} flag to be set`);return}if(!t)return;if(!P(e))throw new f(v`The ${y.yellow("--flavor")} flag is not supported for custom templates`);let a=g[e];if(!a.branches)throw new f(v`The ${y.yellow(e)} template does not support flavors`);if(!a.branches.options[t])throw new f(v`Invalid option for ${y.yellow("--flavor")}\nThe ${y.yellow("--flavor")} flag for ${y.yellow(e)} accepts only ${Object.keys(a.branches.options).map(i=>v`${y.yellow(i)}`.value).join(", ")}`)}var w=Qe(Xe(),1);var N=class e extends Ne{static get requiresSyncAnalytics(){return!0}static summary="Create a new app project";static jsonOutputSchema=k;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --name my-app --organization-id 123 --template reactRouter --flavor typescript","<%= config.bin %> <%= command.id %> --client-id 123 --template none"];static flags={...ye,...we,name:w.Flags.string({char:"n",env:"SHOPIFY_FLAG_NAME",hidden:!1,description:"The name for the new app. When provided, skips the app selection prompt and creates a new app with this name. Required in non-interactive environments unless --client-id is provided."}),path:w.Flags.string({char:"p",env:"SHOPIFY_FLAG_PATH",parse:async t=>O(t),default:async()=>H(),hidden:!1}),template:be(w.Flags.string({description:`The app template. Accepts one of the following:
9
+ - <${S.join("|")}>
10
+ - Any GitHub repo with optional branch and subpath, e.g., https://github.com/Shopify/<repository>/[subpath]#[branch]`,env:"SHOPIFY_FLAG_TEMPLATE"})),flavor:w.Flags.string({description:"Which flavor of the given template to use. Required in non-interactive environments when the selected template offers multiple flavors.",env:"SHOPIFY_FLAG_TEMPLATE_FLAVOR"}),"package-manager":w.Flags.string({char:"d",env:"SHOPIFY_FLAG_PACKAGE_MANAGER",hidden:!1,options:["npm","yarn","pnpm","bun"]}),local:w.Flags.boolean({char:"l",env:"SHOPIFY_FLAG_LOCAL",default:!1,hidden:!0}),"client-id":w.Flags.string({hidden:!1,description:"The Client ID of your app. Use this to automatically link your new project to an existing app. In non-interactive environments, provide this flag or both --name and --organization-id.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),"organization-id":w.Flags.string({hidden:!1,description:"The organization ID. Your organization ID can be found in your Dev Dashboard URL: https://dev.shopify.com/dashboard/<organization-id>. Required in non-interactive environments unless --client-id is provided.",env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]})};static nonTTYFlagRequirements(){return[{flags:["name","client-id"]},{flags:["organization-id","client-id"]},{flags:["flavor"],when:t=>Ee(t.template)}]}async run(){let{flags:t}=await this.parse(e);if(Ve(t.template),We(t.template,t.flavor),t.name!==void 0&&t.name.trim()==="")throw new f("The --name flag can't be empty","Provide a valid app name, for example: --name my-app");if(t.template&&P(t.template)){let c=g[t.template].deprecated;c&&fe({headline:["The",{userInput:t.template},"app template is deprecated."],body:"It will be removed in a future major release.",nextSteps:[["Use",{command:`--template ${c.replacement}`},"or a GitHub template URL instead."]]})}let a=pe(t["package-manager"]),i=t.name??await pt(t.path),r=Se();await r.session();let n=await De({template:t.template,flavor:t.flavor}),s,o;if(t["client-id"]){let c=await $e({apiKey:t["client-id"]});o=c.title,s={result:"existing",app:c}}else{let c;t["organization-id"]?c=await _e(t["organization-id"],r):c=await je();let{organization:u,apps:A,hasMorePages:b}=await r.orgAndApps(c.id);s=await lt(t.name!==void 0,i,A,b,u,r),o=s.result==="new"?s.name:s.app.title}n.globalCLIResult.install&&await te(a),await ce(()=>({cmd_create_app_template:n.templateType,cmd_create_app_template_url:n.template}));let d=await He({name:o,selectedAppOrNameResult:s,packageManager:a,template:n.template,local:t.local,directory:t.path,useGlobalCLI:n.globalCLIResult.alreadyInstalled||n.globalCLIResult.install,developerPlatformClient:r,postCloneActions:{removeLockfilesFromGitignore:n.templateType!=="custom"}});return Ke(d,t.json),{app:d.app}}};async function pt(e){for(let t=0;t<3;t++){let a=await Z({suffix:"app",directory:e});if(Te(a))return a}return""}async function lt(e,t,a,i,r,n){let s=a.length===0||e;if(s||(s=await Le()),s)return{result:"new",name:e?t:await Fe(t),org:r};{let o=await Ce(Re(n,r.id),a,i);if(!o)throw new f("Unable to select an app: the selection prompt was interrupted.");let d=await n.appFromIdentifiers(o.apiKey);if(!d)throw new f(`App with id ${o.id} not found`);return{result:"existing",app:d}}}export{N as a};
@@ -0,0 +1 @@
1
+ import{m as S,o as O,r as R}from"./chunk-WPDJVUTY.js";import{a as x}from"./chunk-7N7KRZOM.js";import{e as J}from"./chunk-7HECBXSP.js";import{p as E,v as j}from"./chunk-CZNUBAAG.js";import{Da as h,q as l}from"./chunk-YKDRUAY3.js";import{b as g,c as f}from"./chunk-DMOLPSXF.js";import{M as _,y as b,z as I}from"./chunk-2KUM2RU4.js";import{i as s}from"./chunk-TD6JBHUS.js";import{Ta as y,la as P,zb as w}from"./chunk-ZMOW2YZ4.js";import{b as p}from"./chunk-3PYDIBTX.js";import{b as N}from"./chunk-AE3IQG7S.js";import{e as H,g as n}from"./chunk-VKWPEFWQ.js";n();n();n();async function $({session:r,overridesContent:e,themeId:t}){h("theme-preview:create");let d=`${O(r)}/theme_preview.json?preview_theme_id=${t}`,i=await S(r,{headers:{"Content-Type":"application/json"}}),o=await l(d,{method:"POST",body:e,headers:i});if(!o.ok)throw new s(`Theme preview request failed with status ${o.status}: ${o.statusText}`);let m=await U(o);return h("theme-preview:create"),m}async function A({session:r,overridesContent:e,themeId:t,previewIdentifier:a}){h("theme-preview:update");let i=`${O(r)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(a)}`,o=await S(r,{headers:{"Content-Type":"application/json"}}),m=await l(i,{method:"POST",body:e,headers:o});if(!m.ok)throw new s(`Theme preview request failed with status ${m.status}: ${m.statusText}`);let v=await U(m);return h("theme-preview:update"),v}async function U(r){let e=await r.json();if(e.error)throw new s(`Theme preview failed: ${e.error}`);if(!e.url||!e.preview_identifier)throw new s("Theme preview returned an unexpected response");return{url:e.url,preview_identifier:e.preview_identifier}}async function L(r){if(!y(r.overrideJson))throw new s(`Override file not found: ${r.overrideJson}`);let e=await P(r.overrideJson),t;try{t=JSON.parse(e)}catch(i){let o=i instanceof Error?i.message:String(i);throw new s(`Failed to parse override file: ${r.overrideJson}`,o)}let a=await R(r.themeId,r.adminSession,r.password),d=JSON.stringify(t);return r.previewIdentifier?A({session:a,overridesContent:d,themeId:r.themeId,previewIdentifier:r.previewIdentifier}):$({session:a,overridesContent:d,themeId:r.themeId})}n();n();var C=p.object({id:p.string().min(1).describe("The opaque Storefront preview identifier, not a theme ID or Shopify GID."),url:p.string().url()}).strict(),u=J({name:"ThemePreviewResult",schema:p.object({status:p.literal("success"),preview:C}).strict(),definitions:{ThemePreview:C},project:r=>{let e=r;return{status:"success",preview:{id:e.preview_identifier,url:e.url}}}});function D(r,e,t){if(e==="json"){w(u.encode(r));return}b({body:[{list:{title:t?"Preview updated":"Preview is ready",items:[{link:{url:r.url}},`Preview ID: ${r.preview_identifier}`]}}]})}function T(r){let e="Failed to open theme preview.",t=r.stack??r.message;I({headline:e,body:t})}var c=H(N(),1);var F=class extends j{static jsonOutputSchema=u;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.descriptionForHelp();static flags={...g,...f,...E,theme:c.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"}),overrides:c.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES"}),"preview-id":c.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:c.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:c.Flags.boolean({...f.json,description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};static multiEnvironmentsFlags=["store","password","theme","overrides"];async command(e,t,a=!1){let d=await x(t,{filter:{theme:e.theme}}),i=await L({adminSession:t,overrideJson:e.overrides,themeId:d.id.toString(),previewIdentifier:e["preview-id"],password:e.password}),o=e.json?"json":"text";return e.open&&await _(i.url).catch(v=>T(v))===!1&&T(new Error(`Could not open the browser. Open this URL manually: ${i.url}`)),(!a||!e.json)&&D(i,o,!!e["preview-id"]),i}renderEnvironmentResults(e){w(u.encode({environments:e}))}validateCommandFlags(e){if(!e.theme||!e.overrides)throw new s("Specify both --theme and --overrides, either as flags or in an environment.")}requiredFlagsForSingleEnvironment(e){return super.requiredFlagsForSingleEnvironment(e).filter(t=>t!=="store")}};export{F as a};
@@ -1,3 +1,3 @@
1
- import{a as S}from"./chunk-VJEKDBGZ.js";import{a as f}from"./chunk-PVASYKSJ.js";import{f as k}from"./chunk-FHNJLON5.js";import{h as i}from"./chunk-J7BTC45S.js";import{Bb as d,Da as v,Sa as I,Va as E,ja as C,qb as o,sb as a}from"./chunk-RIG66DIQ.js";import{a as D,r as m}from"./chunk-GSGCSBRN.js";import{p}from"./chunk-IWTNUJGY.js";import{a as T}from"./chunk-CX5CC6P5.js";import{e as G,g as b}from"./chunk-VKWPEFWQ.js";b();var A=G(T()),O=G(S());async function s(t,e){try{return(await f("git",t,{cwd:e})).stdout}catch(r){if(r instanceof Error){let n=new i(r.message);throw n.stack=r.stack,"exitCode"in r&&Object.assign(n,{exitCode:r.exitCode}),n}throw r}}async function Z(t,e="main"){if(e.startsWith("-"))throw new i(`Invalid initial branch name: ${e}. Branch names can't start with a hyphen.`);d(a`Initializing git repository at ${o.path(t)}...`),await w(),await s(["init"],t),await s(["checkout","-b",e],t)}async function V(t,e){try{return(await s(["check-ignore",...e],t)).split(`
2
- `).filter(Boolean)}catch(r){if(r instanceof i&&"exitCode"in r&&r.exitCode===1)return[];throw r}}async function tt(t){return k("cmd_all_timing_network_ms")(async()=>{let{repoUrl:e,destination:r,shallow:n,latestTag:c}=t;if(d(a`Git-cloning repository ${e} into ${o.path(r)}...`),await w(),await I(r)){if(!await v(r))throw new i(a`Can't clone to ${o.path(r)}`,"The path exists but isn't a directory.");if((await E(["*",".*"],{cwd:r,deep:1,onlyFiles:!1})).length>0)throw new i(a`Directory ${o.path(r)} already exists and is not empty`,a`Choose a different name or remove the existing directory first.`)}let[h,g]=e.split("#");if(g&&c)throw new i("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(n&&c)throw new i("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");let l=["clone","--recurse-submodules"];g&&l.push("--branch",g),n&&l.push("--depth","1"),D()||l.push("-c","core.askpass=true"),l.push(h,r);try{if(await f("git",l),c){let u=await _(r,e);await s(["checkout",u],r)}}catch(u){if(u instanceof i)throw u;if(u instanceof Error){let $=new i(u.message);throw $.stack=u.stack,$}throw u}})}async function _(t,e){let r=await L(t);if(!r)throw new i(`Couldn't obtain the most recent tag of the repository ${e}`);return r}async function et(t){let r=await s(["log","-1","--format=%H%x00%ai%x00%s%x00%D%x00%b%x00%an%x00%ae"],t);if(!r.trim())throw new i("Must have at least one commit to run command",a`Run ${o.genericShellCommand("git commit -m 'Initial commit'")} to create your first commit.`);let n=r.split("\0");return{hash:n[0],date:n[1],message:n[2],refs:n[3],body:n[4],author_name:n[5],author_email:n[6]}}async function rt(t){await s(["add","--all"],t)}async function nt(t,e){let r=["commit","-m",t];if(e?.author){if(e.author.startsWith("-"))throw new i(`Invalid commit author: ${e.author}. Author name/email can't start with a hyphen.`);r.push("--author",e.author)}return await s(r,e?.directory),(await s(["rev-parse","HEAD"],e?.directory)).trim()}async function w(){if(!await m())throw new i("Git is necessary in the environment to continue",a`Install ${o.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}function F(t){let e=/^git version (?<version>\d+\.\d+\.\d+)(?<suffix>[.\s-].*)?$/.exec(t.trim()),r=e?.groups?.version;if(!r)return;let c=/^(?:\.rc|-rc\.?)(?<number>\d+)(?:[.\s-].*)?$/.exec(e.groups?.suffix??"")?.groups?.number;return c?`${r}-rc.${c}`:r}async function it(t,e={}){let r=await C(c=>H(t,{cwd:e.cwd,env:{GIT_DIR:c}})),n=F(r);if(!n)throw d(a`Unrecognized git --version output: ${o.raw(JSON.stringify(r.slice(0,200)))}`),new i("Couldn't determine the installed Git version.",`Install Git ${t} or later, then try again.`);if((0,A.lt)(n,t))throw new i(`Git ${t} or later is required, but version ${n} is installed.`,`Upgrade Git to version ${t} or later, then try again.`)}async function H(t,e){let{captureOutput:r}=await import("./system-LTHR2T7L.js");try{return await r("git",["--version"],e)}catch(n){if(n instanceof i)throw n;if(n instanceof Error&&"code"in n&&n.code==="ENOENT")throw new i(`Git ${t} or later is required, but Git isn't installed.`,`Install Git ${t} or later, then try again.`);let c=n instanceof Error?n.message:String(n);d(a`Couldn't run git --version: ${o.raw(c)}`);let h=n instanceof Error&&"stderr"in n&&typeof n.stderr=="string"?n.stderr.trim():"";throw new i(h?`Couldn't run Git to check its version: ${h}`:"Couldn't run Git to check its version.",`Check that Git ${t} or later is installed and can run, then try again.`)}}var y=class extends i{};async function ot(t){if(await w(),!await R(t))throw new y(`${o.path(t??p())} is not a Git directory`)}async function at(t){return await m()?R(t):!1}async function R(t){try{return await f("git",["rev-parse","--git-dir"],{cwd:t}),!0}catch(e){if(e instanceof Error&&"exitCode"in e&&e.exitCode===128)return!1;throw e}}var x=class extends i{};async function st(t){if(!await j(t))throw new x(`${o.path(t??p())} is not a clean Git directory`)}async function j(t){return(await s(["status","--porcelain"],t)).trim()===""}async function L(t){try{return(await s(["describe","--tags","--abbrev=0"],t)).trim()||void 0}catch(e){if(e instanceof i&&"exitCode"in e&&e.exitCode===128)return;throw e}}async function ct(t,e="origin"){if(d(a`Removing git remote ${e} from ${o.path(t)}...`),await w(),!(await s(["remote"],t)).split(`
1
+ import{a as S}from"./chunk-VJEKDBGZ.js";import{a as f}from"./chunk-H4K3F7PP.js";import{f as k}from"./chunk-I3WRA2LH.js";import{i}from"./chunk-TD6JBHUS.js";import{Da as v,Eb as d,Sa as I,Va as E,ja as C,tb as o,vb as a}from"./chunk-ZMOW2YZ4.js";import{a as D,r as m}from"./chunk-DOLVBTCB.js";import{p}from"./chunk-IWTNUJGY.js";import{a as T}from"./chunk-O472FAYX.js";import{e as G,g as b}from"./chunk-VKWPEFWQ.js";b();var A=G(T()),O=G(S());async function s(t,e){try{return(await f("git",t,{cwd:e})).stdout}catch(r){if(r instanceof Error){let n=new i(r.message);throw n.stack=r.stack,"exitCode"in r&&Object.assign(n,{exitCode:r.exitCode}),n}throw r}}async function Z(t,e="main"){if(e.startsWith("-"))throw new i(`Invalid initial branch name: ${e}. Branch names can't start with a hyphen.`);d(a`Initializing git repository at ${o.path(t)}...`),await w(),await s(["init"],t),await s(["checkout","-b",e],t)}async function V(t,e){try{return(await s(["check-ignore",...e],t)).split(`
2
+ `).filter(Boolean)}catch(r){if(r instanceof i&&"exitCode"in r&&r.exitCode===1)return[];throw r}}async function tt(t){return k("cmd_all_timing_network_ms")(async()=>{let{repoUrl:e,destination:r,shallow:n,latestTag:c}=t;if(d(a`Git-cloning repository ${e} into ${o.path(r)}...`),await w(),await I(r)){if(!await v(r))throw new i(a`Can't clone to ${o.path(r)}`,"The path exists but isn't a directory.");if((await E(["*",".*"],{cwd:r,deep:1,onlyFiles:!1})).length>0)throw new i(a`Directory ${o.path(r)} already exists and is not empty`,a`Choose a different name or remove the existing directory first.`)}let[h,g]=e.split("#");if(g&&c)throw new i("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(n&&c)throw new i("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");let l=["clone","--recurse-submodules"];g&&l.push("--branch",g),n&&l.push("--depth","1"),D()||l.push("-c","core.askpass=true"),l.push(h,r);try{if(await f("git",l),c){let u=await _(r,e);await s(["checkout",u],r)}}catch(u){if(u instanceof i)throw u;if(u instanceof Error){let $=new i(u.message);throw $.stack=u.stack,$}throw u}})}async function _(t,e){let r=await L(t);if(!r)throw new i(`Couldn't obtain the most recent tag of the repository ${e}`);return r}async function et(t){let r=await s(["log","-1","--format=%H%x00%ai%x00%s%x00%D%x00%b%x00%an%x00%ae"],t);if(!r.trim())throw new i("Must have at least one commit to run command",a`Run ${o.genericShellCommand("git commit -m 'Initial commit'")} to create your first commit.`);let n=r.split("\0");return{hash:n[0],date:n[1],message:n[2],refs:n[3],body:n[4],author_name:n[5],author_email:n[6]}}async function rt(t){await s(["add","--all"],t)}async function nt(t,e){let r=["commit","-m",t];if(e?.author){if(e.author.startsWith("-"))throw new i(`Invalid commit author: ${e.author}. Author name/email can't start with a hyphen.`);r.push("--author",e.author)}return await s(r,e?.directory),(await s(["rev-parse","HEAD"],e?.directory)).trim()}async function w(){if(!await m())throw new i("Git is necessary in the environment to continue",a`Install ${o.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}function F(t){let e=/^git version (?<version>\d+\.\d+\.\d+)(?<suffix>[.\s-].*)?$/.exec(t.trim()),r=e?.groups?.version;if(!r)return;let c=/^(?:\.rc|-rc\.?)(?<number>\d+)(?:[.\s-].*)?$/.exec(e.groups?.suffix??"")?.groups?.number;return c?`${r}-rc.${c}`:r}async function it(t,e={}){let r=await C(c=>H(t,{cwd:e.cwd,env:{GIT_DIR:c}})),n=F(r);if(!n)throw d(a`Unrecognized git --version output: ${o.raw(JSON.stringify(r.slice(0,200)))}`),new i("Couldn't determine the installed Git version.",`Install Git ${t} or later, then try again.`);if((0,A.lt)(n,t))throw new i(`Git ${t} or later is required, but version ${n} is installed.`,`Upgrade Git to version ${t} or later, then try again.`)}async function H(t,e){let{captureOutput:r}=await import("./system-J4CTESP5.js");try{return await r("git",["--version"],e)}catch(n){if(n instanceof i)throw n;if(n instanceof Error&&"code"in n&&n.code==="ENOENT")throw new i(`Git ${t} or later is required, but Git isn't installed.`,`Install Git ${t} or later, then try again.`);let c=n instanceof Error?n.message:String(n);d(a`Couldn't run git --version: ${o.raw(c)}`);let h=n instanceof Error&&"stderr"in n&&typeof n.stderr=="string"?n.stderr.trim():"";throw new i(h?`Couldn't run Git to check its version: ${h}`:"Couldn't run Git to check its version.",`Check that Git ${t} or later is installed and can run, then try again.`)}}var y=class extends i{};async function ot(t){if(await w(),!await R(t))throw new y(`${o.path(t??p())} is not a Git directory`)}async function at(t){return await m()?R(t):!1}async function R(t){try{return await f("git",["rev-parse","--git-dir"],{cwd:t}),!0}catch(e){if(e instanceof Error&&"exitCode"in e&&e.exitCode===128)return!1;throw e}}var x=class extends i{};async function st(t){if(!await j(t))throw new x(`${o.path(t??p())} is not a clean Git directory`)}async function j(t){return(await s(["status","--porcelain"],t)).trim()===""}async function L(t){try{return(await s(["describe","--tags","--abbrev=0"],t)).trim()||void 0}catch(e){if(e instanceof i&&"exitCode"in e&&e.exitCode===128)return;throw e}}async function ct(t,e="origin"){if(d(a`Removing git remote ${e} from ${o.path(t)}...`),await w(),!(await s(["remote"],t)).split(`
3
3
  `).filter(Boolean).includes(e)){d(a`Remote ${e} does not exist, no action needed`);return}await s(["remote","remove",e],t)}export{Z as a,V as b,tt as c,et as d,rt as e,nt as f,it as g,ot as h,at as i,x as j,st as k,j as l,ct as m};
@@ -0,0 +1,4 @@
1
+ import{a as m}from"./chunk-RSZAAN37.js";import{a as c}from"./chunk-ASKBYEO7.js";import{H as p,J as d,L as l,P as g}from"./chunk-HMPRWNGG.js";import{b as a,c as f,f as s}from"./chunk-DMOLPSXF.js";import{i as r}from"./chunk-TD6JBHUS.js";import{b as I}from"./chunk-AE3IQG7S.js";import{e as v,g as n}from"./chunk-VKWPEFWQ.js";n();var i=v(I(),1);var t=class h extends m{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
+
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
+ `;static jsonOutputSchema=p;static description=this.descriptionForHelp();static flags={...a,...f,...c,config:i.Flags.string({hidden:!1,char:"c",description:"The name of the local app configuration to read and overwrite. Use --file-name instead when specifying --client-id.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"organization-id":i.Flags.string({hidden:!0,env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]}),"client-id":s(i.Flags.string({hidden:!1,description:"The Client ID of the remote app to link. Use --file-name to specify the destination configuration file.",env:"SHOPIFY_FLAG_CLIENT_ID"})),"file-name":i.Flags.string({hidden:!1,description:"The name of the app configuration file to create or overwrite. Requires --force to overwrite an existing file.",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(h);if(e.config!==void 0&&e["client-id"]!==void 0)throw new r("The --config and --client-id flags can't be used together.","Use --file-name instead of --config to choose the configuration file to create or overwrite.");let u={directory:e.path,apiKey:e["client-id"],organizationId:e["organization-id"],configName:e.config,fileName:e["file-name"],force:e.force??!1},o=await l(u),{app:F}=await g({directory:e.path,clientId:void 0,forceRelink:!1,userProvidedConfigName:o.configFileName});return d(o.result,o.packageManager,e.json?"json":"text"),{app:F}}};export{t as a};