@shopify/cli 4.5.1 → 4.6.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 (368) hide show
  1. package/dist/analytics-6S5JVSRO.js +1 -0
  2. package/dist/analytics-E252SR3P.js +1 -0
  3. package/dist/assets/hydrogen/starter/package.json +1 -1
  4. package/dist/bootstrap.js +1 -1
  5. package/dist/{chokidar-VDIVGBZH.js → chokidar-5RWEYTNQ.js} +1 -1
  6. package/dist/{chunk-XU6CCL4P.js → chunk-2I62GKIH.js} +80 -80
  7. package/dist/{chunk-PGN5EZTI.js → chunk-2JFZ6GZC.js} +2 -2
  8. package/dist/{chunk-UQWFDL3F.js → chunk-2KD4LHRT.js} +1 -1
  9. package/dist/chunk-2MCH43SL.js +11 -0
  10. package/dist/{chunk-BEXQB4RT.js → chunk-2SNT7U7B.js} +1 -1
  11. package/dist/{chunk-U2LQBJJL.js → chunk-2VIUGNYO.js} +1 -1
  12. package/dist/chunk-2Y6CYLKF.js +1 -0
  13. package/dist/{chunk-KHXDP3SF.js → chunk-3EHRA4LA.js} +1 -1
  14. package/dist/{chunk-GQG6WELZ.js → chunk-3EPQ6UOK.js} +6 -6
  15. package/dist/{chunk-ZHPXJRHR.js → chunk-3NO6PWNL.js} +1 -1
  16. package/dist/chunk-3TFUSDHY.js +370 -0
  17. package/dist/{chunk-SFMXFH33.js → chunk-46NA23I7.js} +1 -1
  18. package/dist/{chunk-C5U4NLNU.js → chunk-47URTBZF.js} +1 -1
  19. package/dist/chunk-4FEBSLSU.js +1 -0
  20. package/dist/{chunk-DCUAVLTM.js → chunk-4HB4VZJQ.js} +1 -1
  21. package/dist/{chunk-DU5LZYQX.js → chunk-4JARSKED.js} +1 -1
  22. package/dist/{chunk-IHUCBI6L.js → chunk-4KZRP2JP.js} +141 -141
  23. package/dist/{chunk-2GDACKZF.js → chunk-4P7PWLUN.js} +1 -1
  24. package/dist/{chunk-MYQQOOGA.js → chunk-4YCMEC5R.js} +1 -1
  25. package/dist/{chunk-Q2X7IXPQ.js → chunk-53ZA2HD3.js} +1 -1
  26. package/dist/{chunk-DE3WCNP6.js → chunk-57YF2UNT.js} +1 -1
  27. package/dist/{chunk-MOCD7GFI.js → chunk-5EFQILLF.js} +1 -1
  28. package/dist/chunk-5JPV3HPJ.js +1 -0
  29. package/dist/{chunk-OCYPWE2O.js → chunk-5LJ5H4TD.js} +1 -1
  30. package/dist/{chunk-JVMYTC3J.js → chunk-5Y2VD4I3.js} +1 -1
  31. package/dist/{chunk-YBFCDINU.js → chunk-6BX62FFE.js} +1 -1
  32. package/dist/{chunk-6ZMNEURG.js → chunk-6FJBCRVK.js} +1 -1
  33. package/dist/{chunk-2WDKXDFM.js → chunk-6Q5VRSRN.js} +1 -1
  34. package/dist/{chunk-GDHD3TGC.js → chunk-6QDOCBD4.js} +1 -1
  35. package/dist/{chunk-BVFIJSD7.js → chunk-6SXB44CE.js} +1 -1
  36. package/dist/chunk-6UTUJKKC.js +16 -0
  37. package/dist/{chunk-E24W34C4.js → chunk-6YCGMS7X.js} +15 -15
  38. package/dist/chunk-72GN655L.js +1 -0
  39. package/dist/chunk-7CPECP5P.js +1 -0
  40. package/dist/{chunk-XH5FCMS5.js → chunk-7HAFBCL3.js} +1 -1
  41. package/dist/chunk-7XPFLQEM.js +1 -0
  42. package/dist/{chunk-DDVT2K7E.js → chunk-A3JE5LX3.js} +1 -1
  43. package/dist/{chunk-ASOT7VNB.js → chunk-AJ6VOBXU.js} +1 -1
  44. package/dist/{chunk-XWQ72WTQ.js → chunk-B2WK53GH.js} +1 -1
  45. package/dist/chunk-B34VYVGV.js +1 -0
  46. package/dist/chunk-B6SY4BIK.js +2 -0
  47. package/dist/{chunk-H7DDRARV.js → chunk-BBEHNPKK.js} +1 -1
  48. package/dist/{chunk-GKQ6CSJZ.js → chunk-BCTMBKAU.js} +1 -1
  49. package/dist/chunk-BGUHH7AW.js +10 -0
  50. package/dist/chunk-BOAGJ6P5.js +1 -0
  51. package/dist/chunk-C256W7D2.js +26 -0
  52. package/dist/chunk-CTNBSUVU.js +83 -0
  53. package/dist/{chunk-MQXSMZQZ.js → chunk-CXWLHQKA.js} +1 -1
  54. package/dist/chunk-DHU767C3.js +1 -0
  55. package/dist/{chunk-NGPJXONG.js → chunk-DKHMLETG.js} +1 -1
  56. package/dist/{chunk-QPJQ67GU.js → chunk-DODCPRXT.js} +144 -144
  57. package/dist/{chunk-QDYDB7DY.js → chunk-E3RDAVJT.js} +3 -3
  58. package/dist/chunk-E3RQCWSC.js +6 -0
  59. package/dist/{chunk-EDSKA6UB.js → chunk-EBZ6MDEM.js} +1 -1
  60. package/dist/chunk-ELJ7SKMH.js +1 -0
  61. package/dist/{chunk-FOPGI6GO.js → chunk-EQTULRM7.js} +1 -1
  62. package/dist/{chunk-SRAHMYWJ.js → chunk-ERCJPRN3.js} +1 -1
  63. package/dist/{chunk-M2AS5BWX.js → chunk-ESZS7L6O.js} +1 -1
  64. package/dist/{chunk-IBBFRL3Y.js → chunk-ET2O5DAS.js} +1 -1
  65. package/dist/chunk-EZ7EBYDT.js +684 -0
  66. package/dist/{chunk-AVMNXIXF.js → chunk-EZNJDFFK.js} +1 -1
  67. package/dist/chunk-F34LB7M4.js +20 -0
  68. package/dist/{chunk-QVYZZNAS.js → chunk-FE24P4UQ.js} +1 -1
  69. package/dist/chunk-FFSDGRAN.js +1 -0
  70. package/dist/{chunk-ALQKJAHP.js → chunk-FMTPUYSH.js} +1 -1
  71. package/dist/{chunk-IQYZAALJ.js → chunk-FPWLEGKZ.js} +1 -1
  72. package/dist/{chunk-APYASWBA.js → chunk-FT4HLDK7.js} +1 -1
  73. package/dist/{chunk-E7OLCSAL.js → chunk-G3YYMKWG.js} +1 -1
  74. package/dist/chunk-G7QW5OSQ.js +6 -0
  75. package/dist/{chunk-JO4ZHVOD.js → chunk-GCDEDRY7.js} +1 -1
  76. package/dist/{chunk-GAYQKMOM.js → chunk-GEE5MXHT.js} +1 -1
  77. package/dist/{chunk-IIHPONSQ.js → chunk-H4MYBJ6C.js} +1 -1
  78. package/dist/chunk-HDXBZLHH.js +8 -0
  79. package/dist/chunk-HSKB5OTM.js +1 -0
  80. package/dist/{chunk-5T3OVTF5.js → chunk-HT6MOPLW.js} +1 -1
  81. package/dist/chunk-HZXY7RWJ.js +19 -0
  82. package/dist/{chunk-WIXW233Y.js → chunk-IDAWPBJM.js} +1 -1
  83. package/dist/{chunk-UHJ65YFN.js → chunk-IDLDQ2JB.js} +1 -1
  84. package/dist/{chunk-KOB6T6NK.js → chunk-IKYZ5L3F.js} +1 -1
  85. package/dist/{chunk-O2PI2PYG.js → chunk-ILQXBASM.js} +1 -1
  86. package/dist/{chunk-O7MONSF7.js → chunk-IYU72M55.js} +1 -1
  87. package/dist/{chunk-JCNRQYRP.js → chunk-J3IHP46B.js} +2 -2
  88. package/dist/{chunk-UB5BVO76.js → chunk-J4KJQHNS.js} +1 -1
  89. package/dist/{chunk-3GMW7IEC.js → chunk-JHRZCUBE.js} +1 -1
  90. package/dist/chunk-JIBLEZ57.js +18 -0
  91. package/dist/{chunk-TXJEP4FB.js → chunk-JIKIYMCT.js} +1 -1
  92. package/dist/{chunk-MKCXLBQ4.js → chunk-JJTGHARS.js} +1 -1
  93. package/dist/chunk-JJZNUFPD.js +44 -0
  94. package/dist/{chunk-U7ZRDNZU.js → chunk-JQP3ZCAG.js} +1 -1
  95. package/dist/{chunk-5UXPTCSD.js → chunk-JS3X6BDT.js} +1 -1
  96. package/dist/{chunk-YZY4M6IH.js → chunk-K7IZMKBR.js} +1 -1
  97. package/dist/{chunk-5JCREGSD.js → chunk-KGZH4RFA.js} +1 -1
  98. package/dist/{chunk-JNEGEJH6.js → chunk-KO4FB4QU.js} +1 -1
  99. package/dist/chunk-KPRKIZ5M.js +3 -0
  100. package/dist/chunk-KUN74JD4.js +4 -0
  101. package/dist/chunk-KURWC4A5.js +16 -0
  102. package/dist/{chunk-XDEAZP2I.js → chunk-L3D2CASO.js} +1 -1
  103. package/dist/{chunk-P6S5YLOP.js → chunk-L7DZTIHJ.js} +1 -1
  104. package/dist/{chunk-QPY6WJTT.js → chunk-LBDAYBIF.js} +1 -1
  105. package/dist/{chunk-ZG7BVVT2.js → chunk-LD6ZCTZ3.js} +1 -1
  106. package/dist/{chunk-TDCY3BRI.js → chunk-LH3RIIOB.js} +1 -1
  107. package/dist/{chunk-BZAZMLII.js → chunk-LWRDNTAD.js} +1 -1
  108. package/dist/{chunk-MMKBIMMC.js → chunk-LWWBU7ET.js} +1 -1
  109. package/dist/chunk-M4BEPPA3.js +1 -0
  110. package/dist/chunk-M4YPMHIM.js +1 -0
  111. package/dist/{chunk-VSZS3FAJ.js → chunk-M5KKLAM6.js} +1 -1
  112. package/dist/{chunk-Q2UHGP2Z.js → chunk-MBLHXPGK.js} +1 -1
  113. package/dist/{chunk-3YCTWCHH.js → chunk-MDHJJVXA.js} +1 -1
  114. package/dist/{chunk-5U6MXSNY.js → chunk-MDXSLAIC.js} +1 -1
  115. package/dist/{chunk-NV5IDANV.js → chunk-NA2ERJIJ.js} +1 -1
  116. package/dist/chunk-NOKCVDYD.js +317 -0
  117. package/dist/chunk-O6XSWAP2.js +4 -0
  118. package/dist/{chunk-OVLTFTZW.js → chunk-OB62WVZ5.js} +1 -1
  119. package/dist/{chunk-UYNCJGMC.js → chunk-OT52JOML.js} +1 -1
  120. package/dist/chunk-OTT73YUA.js +5 -0
  121. package/dist/{chunk-ZVQBSXE4.js → chunk-OUUOML3D.js} +1 -1
  122. package/dist/{chunk-7ZLKT2TB.js → chunk-P7XC5HS2.js} +1 -1
  123. package/dist/{chunk-KC2TN7AR.js → chunk-PALG4SNB.js} +1 -1
  124. package/dist/{chunk-T5DF2GGD.js → chunk-PB37BTPE.js} +1 -1
  125. package/dist/{chunk-WO5YOBQ7.js → chunk-PWYRKTJ4.js} +1 -1
  126. package/dist/{chunk-H7PNMMDO.js → chunk-PXSX63RF.js} +1 -1
  127. package/dist/{chunk-QMSYJIAU.js → chunk-QDPDB5EP.js} +1 -1
  128. package/dist/{chunk-7XQDZF73.js → chunk-QG7TELFC.js} +1 -1
  129. package/dist/{chunk-OASPW2P2.js → chunk-QU5NL2QT.js} +1 -1
  130. package/dist/{chunk-DQE7XRCK.js → chunk-QV53BSQP.js} +1 -1
  131. package/dist/{chunk-CNOL26GA.js → chunk-QXXA2EQY.js} +1 -1
  132. package/dist/{chunk-T3AJL2M5.js → chunk-QZ5FMWZS.js} +1 -1
  133. package/dist/chunk-R26GJEH3.js +1 -0
  134. package/dist/{chunk-TDSR2X7X.js → chunk-RTW4RZWH.js} +2 -2
  135. package/dist/{chunk-FPCPFECH.js → chunk-SEV3S3WH.js} +1 -1
  136. package/dist/{chunk-YYHCPLBX.js → chunk-TAFOSPBW.js} +1 -1
  137. package/dist/{chunk-MCATVWHC.js → chunk-TAV2ENJY.js} +1 -1
  138. package/dist/{chunk-ZNWFTUFV.js → chunk-TQNALMQH.js} +1 -1
  139. package/dist/chunk-TR4OWSEX.js +77 -0
  140. package/dist/{chunk-RFDT525K.js → chunk-TUJNCWHZ.js} +1 -1
  141. package/dist/{chunk-2MNOWKMI.js → chunk-U564K7SX.js} +1 -1
  142. package/dist/chunk-UKQ7NE5V.js +1 -0
  143. package/dist/{chunk-ICFFBMFB.js → chunk-UM3OHLCX.js} +1 -1
  144. package/dist/{chunk-4TC4M4RC.js → chunk-V65P572N.js} +3 -3
  145. package/dist/chunk-VFIVXK53.js +2 -0
  146. package/dist/chunk-VVFPW4ZQ.js +2 -0
  147. package/dist/{chunk-TVU4YD2H.js → chunk-VYITPC34.js} +1 -1
  148. package/dist/{chunk-3QVXHF6I.js → chunk-VZKR2YFM.js} +1 -1
  149. package/dist/{chunk-WMDYHUPS.js → chunk-W2GMKXM7.js} +1 -1
  150. package/dist/{chunk-72K36DID.js → chunk-W4X3635B.js} +1 -1
  151. package/dist/chunk-W6ST525S.js +99 -0
  152. package/dist/{chunk-RIRSTGFU.js → chunk-WEEYQX3M.js} +1 -1
  153. package/dist/{chunk-KOUKBXOZ.js → chunk-WO7LKJCJ.js} +1 -1
  154. package/dist/{chunk-6XLVKD6Q.js → chunk-WPRAJ25Z.js} +1 -1
  155. package/dist/{chunk-LUG2BZJP.js → chunk-WR2ZQGUR.js} +1 -1
  156. package/dist/{chunk-5K4DONQJ.js → chunk-WWX265PC.js} +1 -1
  157. package/dist/chunk-XERJY4IG.js +103 -0
  158. package/dist/{chunk-GXUZ3V7S.js → chunk-XGCJWCC4.js} +1 -1
  159. package/dist/{chunk-PGKP7W5T.js → chunk-XGMPC7KK.js} +1 -1
  160. package/dist/chunk-XGRVAPLR.js +7 -0
  161. package/dist/{chunk-TC3JOEMA.js → chunk-Y2PC2BBJ.js} +60 -60
  162. package/dist/{chunk-ODH2U44N.js → chunk-Y4QC2YVE.js} +1 -1
  163. package/dist/chunk-YNJZ2VXV.js +5 -0
  164. package/dist/chunk-Z5DDPQ26.js +3 -0
  165. package/dist/{chunk-EXQXGSGY.js → chunk-ZK7VJZ6V.js} +1 -1
  166. package/dist/{chunk-COTYR5RC.js → chunk-ZLT4DPHN.js} +1 -1
  167. package/dist/{chunk-CGULQAB5.js → chunk-ZOBQKNGK.js} +1 -1
  168. package/dist/chunk-ZTE46E4Z.js +153 -0
  169. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  170. package/dist/cli/commands/app/build.js +1 -1
  171. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  172. package/dist/cli/commands/app/bulk/execute.js +1 -1
  173. package/dist/cli/commands/app/bulk/status.js +1 -1
  174. package/dist/cli/commands/app/config/link.js +1 -1
  175. package/dist/cli/commands/app/config/pull.js +1 -1
  176. package/dist/cli/commands/app/config/use.js +1 -1
  177. package/dist/cli/commands/app/config/validate.js +1 -1
  178. package/dist/cli/commands/app/demo/watcher.js +1 -1
  179. package/dist/cli/commands/app/deploy.js +1 -1
  180. package/dist/cli/commands/app/dev/clean.js +1 -1
  181. package/dist/cli/commands/app/dev.js +1 -1
  182. package/dist/cli/commands/app/env/pull.js +1 -1
  183. package/dist/cli/commands/app/env/show.js +1 -1
  184. package/dist/cli/commands/app/execute.js +1 -1
  185. package/dist/cli/commands/app/function/build.js +1 -1
  186. package/dist/cli/commands/app/function/info.js +1 -1
  187. package/dist/cli/commands/app/function/replay.js +1 -1
  188. package/dist/cli/commands/app/function/run.js +1 -1
  189. package/dist/cli/commands/app/function/schema.js +1 -1
  190. package/dist/cli/commands/app/function/typegen.js +1 -1
  191. package/dist/cli/commands/app/generate/extension.js +1 -1
  192. package/dist/cli/commands/app/graphiql.js +1 -1
  193. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  194. package/dist/cli/commands/app/import-extensions.js +1 -1
  195. package/dist/cli/commands/app/info.js +1 -1
  196. package/dist/cli/commands/app/init.js +1 -1
  197. package/dist/cli/commands/app/logs.js +1 -1
  198. package/dist/cli/commands/app/release.js +1 -1
  199. package/dist/cli/commands/app/versions/list.js +1 -1
  200. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  201. package/dist/cli/commands/auth/login.js +1 -1
  202. package/dist/cli/commands/auth/logout.js +1 -1
  203. package/dist/cli/commands/cache/clear.js +1 -1
  204. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  205. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  206. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  207. package/dist/cli/commands/debug/command-flags.js +1 -1
  208. package/dist/cli/commands/doc/fetch.js +1 -1
  209. package/dist/cli/commands/doc/search.js +1 -1
  210. package/dist/cli/commands/docs/generate.js +1 -1
  211. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  212. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  213. package/dist/cli/commands/help.js +1 -1
  214. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  215. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  216. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  217. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  218. package/dist/cli/commands/notifications/generate.js +1 -1
  219. package/dist/cli/commands/notifications/list.js +1 -1
  220. package/dist/cli/commands/organization/list.js +1 -1
  221. package/dist/cli/commands/search.js +1 -1
  222. package/dist/cli/commands/theme/check.js +1 -1
  223. package/dist/cli/commands/theme/console.js +1 -1
  224. package/dist/cli/commands/theme/delete.js +1 -1
  225. package/dist/cli/commands/theme/dev.js +1 -1
  226. package/dist/cli/commands/theme/duplicate.js +1 -1
  227. package/dist/cli/commands/theme/info.js +1 -1
  228. package/dist/cli/commands/theme/init.js +1 -1
  229. package/dist/cli/commands/theme/language-server.js +1 -1
  230. package/dist/cli/commands/theme/list.js +1 -1
  231. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  232. package/dist/cli/commands/theme/open.js +1 -1
  233. package/dist/cli/commands/theme/package.js +1 -1
  234. package/dist/cli/commands/theme/preview.js +1 -1
  235. package/dist/cli/commands/theme/profile.js +1 -1
  236. package/dist/cli/commands/theme/publish.js +1 -1
  237. package/dist/cli/commands/theme/pull.js +1 -1
  238. package/dist/cli/commands/theme/push.js +1 -1
  239. package/dist/cli/commands/theme/rename.js +1 -1
  240. package/dist/cli/commands/theme/share.js +1 -1
  241. package/dist/cli/commands/upgrade.js +1 -1
  242. package/dist/cli/commands/version.js +1 -1
  243. package/dist/cli/help.js +1 -1
  244. package/dist/command-registry.js +1 -1
  245. package/dist/conf-store-N5P2ZEAD.js +1 -0
  246. package/dist/configs/all.yml +3 -0
  247. package/dist/configs/recommended.yml +3 -0
  248. package/dist/custom-oclif-loader-4ZAXX5MR.js +1 -0
  249. package/dist/data/filters.json +1 -1
  250. package/dist/data/objects.json +30 -3
  251. package/dist/data/shopify_system_translations.json +48 -4
  252. package/dist/deprecations-4TY4DNME.js +1 -0
  253. package/dist/dist-6ZJS4I57.js +1 -0
  254. package/dist/dist-7W2KJOYN.js +1 -0
  255. package/dist/environments-TR5WW2MD.js +1 -0
  256. package/dist/error-VJQM4MFE.js +1 -0
  257. package/dist/error-handler-IYGE3Z72.js +1 -0
  258. package/dist/{fs-7LCRIUF3.js → fs-EOQL26C3.js} +1 -1
  259. package/dist/hooks/app-init.js +1 -1
  260. package/dist/hooks/did-you-mean.js +1 -1
  261. package/dist/hooks/hydrogen-init.js +1 -1
  262. package/dist/hooks/plugin-plugins.js +1 -1
  263. package/dist/hooks/postrun.js +1 -1
  264. package/dist/hooks/prerun.js +1 -1
  265. package/dist/hooks/public-metadata.js +1 -1
  266. package/dist/hooks/sensitive-metadata.js +1 -1
  267. package/dist/hooks/tunnel-provider.js +1 -1
  268. package/dist/hooks/tunnel-start.js +1 -1
  269. package/dist/{http-proxy-node16-X2WAMUT5.js → http-proxy-node16-A6AKKRQH.js} +1 -1
  270. package/dist/index.js +15 -15
  271. package/dist/is-global-RQCPBQA3.js +1 -0
  272. package/dist/{latest-version-32HXMWJ7.js → latest-version-LDWU5F7A.js} +7 -7
  273. package/dist/lib-2BR2WN7L.js +1 -0
  274. package/dist/lib-JKLF33A7.js +1 -0
  275. package/dist/{lib-NOROGV6N.js → lib-P3APEIHY.js} +1 -1
  276. package/dist/local-TW3HCZ2S.js +1 -0
  277. package/dist/local-storage-T6FKS53K.js +1 -0
  278. package/dist/{metadata-D5GLZOLV.js → metadata-TYZDEER5.js} +1 -1
  279. package/dist/{morph-QZGREMO2.js → morph-ABSWZEVT.js} +4 -4
  280. package/dist/node-package-manager-6SWUZILX.js +1 -0
  281. package/dist/notifications-system-SMHMV2UW.js +1 -0
  282. package/dist/out-53ABAVL7.js +1 -0
  283. package/dist/{output-FYS764MJ.js → output-JG5I2TEL.js} +1 -1
  284. package/dist/system-D4Z32GDS.js +1 -0
  285. package/dist/tsconfig.tsbuildinfo +1 -1
  286. package/dist/ui-6M3XZ6MR.js +1 -0
  287. package/dist/upgrade-EKAG4IV7.js +1 -0
  288. package/dist/version-6UBWZCNS.js +1 -0
  289. package/dist/version-XRU7TEAI.js +1 -0
  290. package/dist/{workerd-N25GY5MX.js → workerd-LXBSJULF.js} +1 -1
  291. package/oclif.manifest.json +612 -2
  292. package/package.json +11 -11
  293. package/dist/analytics-CIKTYXZ6.js +0 -1
  294. package/dist/analytics-DM7CBV2M.js +0 -1
  295. package/dist/assets/dev-console/extensions/dev-console/assets/apple-touch-icon-BXMqQaSW.png +0 -0
  296. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-16x16-B6uL8SrV.png +0 -0
  297. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-32x32-CGwlpz_y.png +0 -0
  298. package/dist/assets/dev-console/extensions/dev-console/assets/favicon-ByUl89Ab.ico +0 -0
  299. package/dist/assets/dev-console/extensions/dev-console/assets/index-Bm_GpKQW.js +0 -51
  300. package/dist/assets/dev-console/extensions/dev-console/assets/index-DISeE29z.css +0 -1
  301. package/dist/assets/dev-console/extensions/dev-console/assets/site-B9Ae890R.webmanifest +0 -19
  302. package/dist/assets/dev-console/index.html +0 -21
  303. package/dist/chunk-2FIDORHT.js +0 -5
  304. package/dist/chunk-2HZMOK4U.js +0 -836
  305. package/dist/chunk-2O22LZKV.js +0 -44
  306. package/dist/chunk-3SJHCEQR.js +0 -7
  307. package/dist/chunk-4E354M4H.js +0 -1
  308. package/dist/chunk-5C7HDTHJ.js +0 -1
  309. package/dist/chunk-5NY4HKJF.js +0 -103
  310. package/dist/chunk-5PLLJPEW.js +0 -3
  311. package/dist/chunk-6Y3QXASG.js +0 -22
  312. package/dist/chunk-6ZRHK4ON.js +0 -1
  313. package/dist/chunk-7USHLXEN.js +0 -2
  314. package/dist/chunk-AH2ZJ73H.js +0 -16
  315. package/dist/chunk-AI756VJI.js +0 -1
  316. package/dist/chunk-DA4LHFJQ.js +0 -26
  317. package/dist/chunk-DKKBJ4H5.js +0 -2
  318. package/dist/chunk-EAXEV45I.js +0 -2
  319. package/dist/chunk-ELIH6GCC.js +0 -1
  320. package/dist/chunk-EYDNSYYE.js +0 -370
  321. package/dist/chunk-FO6FNY6P.js +0 -5
  322. package/dist/chunk-G7QLHXVA.js +0 -19
  323. package/dist/chunk-H3QZN45D.js +0 -4
  324. package/dist/chunk-HHSUBF73.js +0 -1
  325. package/dist/chunk-HXYWEKMS.js +0 -2
  326. package/dist/chunk-IDKUJQIG.js +0 -11
  327. package/dist/chunk-IOU6EKTT.js +0 -1
  328. package/dist/chunk-IRH6IGFT.js +0 -567
  329. package/dist/chunk-IRTCLR3F.js +0 -10
  330. package/dist/chunk-J3KRY2SD.js +0 -1
  331. package/dist/chunk-JOYM7AEQ.js +0 -1
  332. package/dist/chunk-LKZ7ARYS.js +0 -18
  333. package/dist/chunk-N5HGT3TE.js +0 -4
  334. package/dist/chunk-NJOO5XJV.js +0 -1
  335. package/dist/chunk-NNOSZ447.js +0 -1
  336. package/dist/chunk-OHASEW7T.js +0 -1
  337. package/dist/chunk-PGODIZ64.js +0 -1
  338. package/dist/chunk-PTIJDS6I.js +0 -3
  339. package/dist/chunk-Q6LCSRIW.js +0 -1
  340. package/dist/chunk-SKM44SK5.js +0 -4
  341. package/dist/chunk-T6CC5WUU.js +0 -159
  342. package/dist/chunk-UZ7U322K.js +0 -283
  343. package/dist/chunk-VHAZBDFE.js +0 -21
  344. package/dist/chunk-VRRDIXFQ.js +0 -6
  345. package/dist/chunk-YB3SGPFF.js +0 -1
  346. package/dist/chunk-YJCJDCVP.js +0 -1
  347. package/dist/chunk-ZDQNCYRH.js +0 -5
  348. package/dist/conf-store-OC4XCP45.js +0 -1
  349. package/dist/custom-oclif-loader-3AICQCNU.js +0 -1
  350. package/dist/deprecations-M5JGGK47.js +0 -1
  351. package/dist/dist-3SP7TISC.js +0 -1
  352. package/dist/dist-Z4H2OM7V.js +0 -1
  353. package/dist/environments-ZLSO534C.js +0 -1
  354. package/dist/error-ZBG2MA5U.js +0 -1
  355. package/dist/error-handler-MCUV4RZV.js +0 -1
  356. package/dist/is-global-RURDJZDU.js +0 -1
  357. package/dist/lib-QJDPPAWN.js +0 -1
  358. package/dist/lib-UCG2DNMS.js +0 -1
  359. package/dist/local-5AKD7T5X.js +0 -1
  360. package/dist/local-storage-TJU77VRQ.js +0 -1
  361. package/dist/node-package-manager-FA3Y6DPG.js +0 -1
  362. package/dist/notifications-system-76GJJAJP.js +0 -1
  363. package/dist/out-CDCY25QC.js +0 -1
  364. package/dist/system-KDM2BB7R.js +0 -1
  365. package/dist/ui-QIHGXICT.js +0 -1
  366. package/dist/upgrade-DY4L43H4.js +0 -1
  367. package/dist/version-LULWCT5R.js +0 -1
  368. package/dist/version-WIERCO5R.js +0 -1
@@ -1 +1 @@
1
- import{b as c}from"./chunk-H7PNMMDO.js";import{h as E,ua as T,va as u,xa as s}from"./chunk-2HZMOK4U.js";import{F as w}from"./chunk-E24W34C4.js";import{d as N}from"./chunk-ELIH6GCC.js";import{Pb as V,T as _}from"./chunk-EYDNSYYE.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var j=/gid:\/\/shopify\/\w*\/(\d+)/,g="development",ne="live",ie="unpublished";function ae(e){return e.role===g}async function te(e){let n=await _("creative");return w({message:e,defaultValue:n})}function S(e){return`gid://shopify/OnlineStoreTheme/${e}`}function f(e){let n=j.exec(e);if(n&&n[1]!==void 0)return parseInt(n[1],10);throw new Error(`Invalid GID: ${e}`)}l();l();var F;(function(e){e.Delete="DELETE",e.Upload="UPLOAD"})(F||(F={}));l();function y(e){if(!e)return;e.processing??(e.processing=!1),e.createdAtRuntime??(e.createdAtRuntime=!1);let{id:n,name:a,role:i,processing:t,createdAtRuntime:d}=e;return{id:n,name:a,processing:t,createdAtRuntime:d,role:i==="main"?"live":i}}function re(e){if(!e)return;let{key:n,checksum:a,attachment:i,value:t}=e,d={size:(t||i||"").length,mtime:Date.now()};return{key:n,checksum:a,attachment:i,value:t,stats:d}}l();var A={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var x={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeId"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDuplicate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDuplicate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newTheme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themePublish"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themePublish"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var B={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"source"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"URL"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"role"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ThemeRole"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"source"},value:{kind:"Variable",name:{kind:"Name",value:"source"}}},{kind:"Argument",name:{kind:"Name",value:"role"},value:{kind:"Variable",name:{kind:"Name",value:"role"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var C={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileBodies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filenames"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"filenames"},value:{kind:"Variable",name:{kind:"Name",value:"filenames"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"body"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyBase64"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentBase64"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyUrl"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileChecksums"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesUpsert"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFilesUpsertFileInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesUpsert"},arguments:[{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}},{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upsertedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}},{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitionsByOwnerType"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getTheme"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"findDevelopmentThemeByName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"2"}},{kind:"Argument",name:{kind:"Name",value:"names"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"name"}}]}},{kind:"Argument",name:{kind:"Name",value:"roles"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"DEVELOPMENT"}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var $={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OnlineStorePasswordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStore"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"passwordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};var Q="https://cdn.shopify.com/static/online-store/theme-skeleton.zip",p={useNetworkLevelRetry:!0,useAbortSignal:!1,maxRetryTimeMs:90*1e3,recordCommandRetries:!0},z="the required theme access scope";async function rn(e,n){let a=S(e);s("theme-api:fetch-theme");try{let{theme:i}=await c({query:M,session:n,variables:{id:a},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(i)return y({id:f(i.id),processing:i.processing,role:i.role.toLowerCase(),name:i.name})}catch(i){H(i),u(i),V(`Error fetching theme with ID: ${e}`)}}async function sn(e){let n=[],a=null;for(s("theme-api:fetch-themes");;){let i=await b({query:R,session:e,variables:{after:a},responseOptions:{handleErrors:!1},preferredBehaviour:p});i.themes||r("Failed to fetch themes");let{nodes:t,pageInfo:d}=i.themes;if(t.forEach(m=>{let o=y({id:f(m.id),processing:m.processing,role:m.role.toLowerCase(),name:m.name});o&&n.push(o)}),!d.hasNextPage)return n;a=d.endCursor}}async function kn(e,n){s("theme-api:find-development-theme-by-name");let{themes:a}=await b({query:G,session:n,variables:{name:e},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(a||r("Failed to fetch themes"),a.nodes.length>1)throw u(new N(`More than one development theme is named "${e}"`));if(a.nodes.length===1){let{id:i,processing:t,role:d,name:m}=a.nodes[0];return y({id:f(i),processing:t,role:d.toLowerCase(),name:m})}}async function un(e,n){let a=e.src??Q;s("theme-api:create-theme");let{themeCreate:i}=await c({query:B,session:n,variables:{name:e.name??"",source:a,role:(e.role??g).toUpperCase()},responseOptions:{handleErrors:!1},preferredBehaviour:p});i||r("Failed to create theme");let{theme:t,userErrors:d}=i;if(d.length){let m=i.userErrors.map(o=>o.message).join(", ");throw u(new N(m))}return t||r("Failed to create theme"),y({id:f(t.id),name:t.name,role:t.role.toLowerCase()})}async function cn(e,n,a){let i=[],t=null;for(s("theme-api:fetch-assets");;){let d=await b({query:C,session:a,variables:{id:D(e),filenames:n,after:t},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(!d.theme?.files?.nodes||!d.theme?.files?.pageInfo){let k=d.theme?.files?.userErrors.map(h=>h.filename).join(", ");r(`Error fetching assets: ${k}`)}let{nodes:m,pageInfo:o}=d.theme.files;if(i.push(...await Promise.all(m.map(async k=>{let{attachment:h,value:v}=await Z(k.body);return{attachment:h,key:k.filename,checksum:k.checksumMd5,value:v}}))),!o.hasNextPage)return i;t=o.endCursor}}async function pn(e,n,a){let t=[];s("theme-api:delete-assets");for(let d=0;d<n.length;d+=50){let m=n.slice(d,d+50),{themeFilesDelete:o}=await c({query:U,session:a,variables:{themeId:S(e),files:m},preferredBehaviour:p});o||r("Failed to delete theme assets");let{deletedThemeFiles:k,userErrors:h}=o;k&&k.forEach(v=>{t.push({key:v.filename,success:!0,operation:F.Delete})}),h.length>0&&h.forEach(v=>{v.filename?(u(`Asset deletion failed for ${v.filename}: ${v.message}`),t.push({key:v.filename,success:!1,operation:F.Delete,errors:{asset:[v.message]}})):r(`Failed to delete theme assets: ${v.message}`)})}return t}async function vn(e,n,a){let i=[];s("theme-api:bulk-upload-assets");for(let t=0;t<n.length;t+=50){let d=n.slice(t,t+50),m=X(d);T("theme-api:upload-files");let o=await K(e,m,a);T("theme-api:upload-files"),i.push(...W(o))}return i}function X(e){return e.map(n=>n.attachment?{filename:n.key,body:{type:"BASE64",value:n.attachment}}:{filename:n.key,body:{type:"TEXT",value:n.value??""}})}async function K(e,n,a){return c({query:P,session:a,variables:{themeId:D(e),files:n},preferredBehaviour:p})}function W(e){let{themeFilesUpsert:n}=e;n||r("Failed to upload theme files");let{upsertedThemeFiles:a,userErrors:i}=n,t=[];return a?.forEach(d=>{t.push({key:d.filename,success:!0,operation:F.Upload})}),i.forEach(d=>{d.filename||r(`Error uploading theme files: ${d.message}`),u(`Asset upload failed for ${d.filename}: ${d.message}`),t.push({key:d.filename,success:!1,operation:F.Upload,errors:{asset:[d.message]}})}),t}async function Nn(e,n){let a=[],i=null;for(s("theme-api:fetch-checksums");;){let t=await b({query:q,session:n,variables:{id:D(e),after:i},responseOptions:{handleErrors:!1},preferredBehaviour:p});if(!t?.theme?.files?.nodes||!t?.theme?.files?.pageInfo){let o=t.theme?.files?.userErrors.map(k=>k.filename).join(", ");throw u(new N(`Failed to fetch checksums for: ${o}`))}let{nodes:d,pageInfo:m}=t.theme.files;if(a.push(...d.map(o=>({key:o.filename,checksum:o.checksumMd5}))),!m.hasNextPage)return a;i=m.endCursor}}async function hn(e,n,a){let i=n.name,t={};i&&(t.name=i),s("theme-api:update-theme");let{themeUpdate:d}=await c({query:A,session:a,variables:{id:S(e),input:t},preferredBehaviour:p});d||r("Failed to update theme");let{theme:m,userErrors:o}=d;if(o.length){let k=d.userErrors.map(h=>h.message).join(", ");throw u(new N(k))}return m||r("Failed to update theme"),y({id:f(m.id),name:m.name,role:m.role.toLowerCase()})}async function fn(e,n){s("theme-api:publish-theme");let{themePublish:a}=await c({query:O,session:n,variables:{id:S(e)},preferredBehaviour:p});a||r("Failed to update theme");let{theme:i,userErrors:t}=a;if(t.length){let d=a.userErrors.map(m=>m.message).join(", ");throw u(new N(d))}return i||r("Failed to update theme"),y({id:f(i.id),name:i.name,role:i.role.toLowerCase()})}async function yn(e,n){s("theme-api:delete-theme");let{themeDelete:a}=await c({query:x,session:n,variables:{id:S(e)},preferredBehaviour:p});a||r("Failed to update theme");let{deletedThemeId:i,userErrors:t}=a;if(t.length){let d=a.userErrors.map(m=>m.message).join(", ");throw u(new N(d))}return i||r("Failed to update theme"),!0}async function Sn(e,n,a){let i;s("theme-api:duplicate-theme");let{themeDuplicate:t}=await c({query:I,session:a,variables:{id:S(e),name:n},preferredBehaviour:p,responseOptions:{onResponse:k=>{i=k.headers.get("x-request-id")??void 0}}});if(!t)return u("Failed to duplicate theme"),{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:i};let{newTheme:d,userErrors:m}=t;return m.length>0?{theme:void 0,userErrors:m,requestId:i}:d?{theme:y({id:f(d.id),name:d.name,role:d.role.toLowerCase()}),userErrors:[],requestId:i}:{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:i}}async function Fn(e,n){s("theme-api:fetch-metafield-definitions");let{metafieldDefinitions:a}=await c({query:L,session:n,variables:{ownerType:e}});return a.nodes.map(i=>({key:i.key,namespace:i.namespace,name:i.name,description:i.description,type:{name:i.type.name,category:i.type.category}}))}async function bn(e){s("theme-api:check-password-protection");let{onlineStore:n}=await c({query:$,session:e});n||r("Unable to get details about the storefront's password protection");let{passwordProtection:a}=n;return a.enabled}function r(e){throw u(new N(e))}async function b(e){try{return await c(e)}catch(n){throw H(n),n}}function H(e){if(!(e instanceof E))return;let n=Y(e);if(!n)return;let a=[["If you authenticated with an Admin API access token, update the app or integration that issued the token to include the required theme access scopes, then reauthorize it or generate a new token."],["For",{command:"theme pull"},{char:","},{command:"theme list"},{char:","},"and",{command:"theme info"},{char:","},"add the",{command:"read_themes"},"scope",{char:"."}],["For",{command:"theme push"},"and",{command:"theme dev"},{char:","},"add both the",{command:"read_themes"},"and",{command:"write_themes"},"scopes",{char:"."}],["If you authenticated with your Shopify account, make sure your staff or collaborator account can access Online Store themes, then run",{command:"shopify auth logout"},"and try again",{char:"."}],["See",{link:{label:"Shopify access scopes",url:"https://shopify.dev/api/usage/access-scopes"}},{char:"."}]];throw u(new N(`The authenticated account or access token is missing ${n}.`,void 0,a))}function Y(e){let n=e.response.errors;if(!Array.isArray(n))return;let a=n.find(t=>t.extensions?.code==="ACCESS_DENIED");if(!a)return;let i=a.extensions?.requiredAccess;return typeof i!="string"?z:i.trim().replace(/\.$/,"")||z}function D(e){return`gid://shopify/OnlineStoreTheme/${e}`}async function Z(e){switch(e.__typename){case"OnlineStoreThemeFileBodyText":return{value:e.content};case"OnlineStoreThemeFileBodyBase64":return{attachment:e.contentBase64};case"OnlineStoreThemeFileBodyUrl":try{let a=await(await fetch(e.url)).arrayBuffer();return{attachment:Buffer.from(a).toString("base64")}}catch{throw u(new N(`Error downloading content from URL: ${e.url}`))}}}export{re as a,g as b,ne as c,ie as d,ae as e,te as f,rn as g,sn as h,kn as i,un as j,cn as k,pn as l,vn as m,Nn as n,hn as o,fn as p,yn as q,Sn as r,Fn as s,bn as t};
1
+ import{b as p}from"./chunk-PXSX63RF.js";import{ra as b,sa as k,ua as s}from"./chunk-EZ7EBYDT.js";import{F as w}from"./chunk-6YCGMS7X.js";import{f as E,m as N}from"./chunk-ZTE46E4Z.js";import{Pb as V,S as _}from"./chunk-3TFUSDHY.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var j=/gid:\/\/shopify\/\w*\/(\d+)/,g="development",ie="live",ae="unpublished";function te(e){return e.role===g}async function de(e){let n=await _("creative");return w({message:e,defaultValue:n})}function S(e){return`gid://shopify/OnlineStoreTheme/${e}`}function f(e){let n=j.exec(e);if(n&&n[1]!==void 0)return parseInt(n[1],10);throw new Error(`Invalid GID: ${e}`)}l();l();var F;(function(e){e.Delete="DELETE",e.Upload="UPLOAD"})(F||(F={}));l();function y(e){if(!e)return;e.processing??(e.processing=!1),e.createdAtRuntime??(e.createdAtRuntime=!1);let{id:n,name:a,role:i,processing:t,createdAtRuntime:d}=e;return{id:n,name:a,processing:t,createdAtRuntime:d,role:i==="main"?"live":i}}function se(e){if(!e)return;let{key:n,checksum:a,attachment:i,value:t}=e,d={size:(t||i||"").length,mtime:Date.now()};return{key:n,checksum:a,attachment:i,value:t,stats:d}}l();var A={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var x={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeId"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var I={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDuplicate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDuplicate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newTheme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var O={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themePublish"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themePublish"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var B={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"source"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"URL"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"role"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ThemeRole"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"source"},value:{kind:"Variable",name:{kind:"Name",value:"source"}}},{kind:"Argument",name:{kind:"Name",value:"role"},value:{kind:"Variable",name:{kind:"Name",value:"role"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var C={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileBodies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filenames"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"filenames"},value:{kind:"Variable",name:{kind:"Name",value:"filenames"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"body"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyBase64"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentBase64"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyUrl"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileChecksums"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var P={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesUpsert"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFilesUpsertFileInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesUpsert"},arguments:[{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}},{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upsertedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var U={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}},{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var L={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitionsByOwnerType"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var R={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var M={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getTheme"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var G={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"findDevelopmentThemeByName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"2"}},{kind:"Argument",name:{kind:"Name",value:"names"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"name"}}]}},{kind:"Argument",name:{kind:"Name",value:"roles"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"DEVELOPMENT"}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var $={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OnlineStorePasswordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStore"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"passwordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};var Q="https://cdn.shopify.com/static/online-store/theme-skeleton.zip",c={useNetworkLevelRetry:!0,useAbortSignal:!1,maxRetryTimeMs:90*1e3,recordCommandRetries:!0},z="the required theme access scope";async function sn(e,n){let a=S(e);s("theme-api:fetch-theme");try{let{theme:i}=await p({query:M,session:n,variables:{id:a},responseOptions:{handleErrors:!1},preferredBehaviour:c});if(i)return y({id:f(i.id),processing:i.processing,role:i.role.toLowerCase(),name:i.name})}catch(i){H(i),k(i),V(`Error fetching theme with ID: ${e}`)}}async function un(e){let n=[],a=null;for(s("theme-api:fetch-themes");;){let i=await T({query:R,session:e,variables:{after:a},responseOptions:{handleErrors:!1},preferredBehaviour:c});i.themes||r("Failed to fetch themes");let{nodes:t,pageInfo:d}=i.themes;if(t.forEach(m=>{let o=y({id:f(m.id),processing:m.processing,role:m.role.toLowerCase(),name:m.name});o&&n.push(o)}),!d.hasNextPage)return n;a=d.endCursor}}async function kn(e,n){s("theme-api:find-development-theme-by-name");let{themes:a}=await T({query:G,session:n,variables:{name:e},responseOptions:{handleErrors:!1},preferredBehaviour:c});if(a||r("Failed to fetch themes"),a.nodes.length>1)throw k(new N(`More than one development theme is named "${e}"`));if(a.nodes.length===1){let{id:i,processing:t,role:d,name:m}=a.nodes[0];return y({id:f(i),processing:t,role:d.toLowerCase(),name:m})}}async function cn(e,n){let a=e.src??Q;s("theme-api:create-theme");let{themeCreate:i}=await T({query:B,session:n,variables:{name:e.name??"",source:a,role:(e.role??g).toUpperCase()},responseOptions:{handleErrors:!1},preferredBehaviour:c});i||r("Failed to create theme");let{theme:t,userErrors:d}=i;if(d.length){let m=i.userErrors.map(o=>o.message).join(", ");throw k(new N(m))}return t||r("Failed to create theme"),y({id:f(t.id),name:t.name,role:t.role.toLowerCase()})}async function pn(e,n,a){let i=[],t=null;for(s("theme-api:fetch-assets");;){let d=await T({query:C,session:a,variables:{id:D(e),filenames:n,after:t},responseOptions:{handleErrors:!1},preferredBehaviour:c});if(!d.theme?.files?.nodes||!d.theme?.files?.pageInfo){let u=d.theme?.files?.userErrors.map(h=>h.filename).join(", ");r(`Error fetching assets: ${u}`)}let{nodes:m,pageInfo:o}=d.theme.files;if(i.push(...await Promise.all(m.map(async u=>{let{attachment:h,value:v}=await J(u.body);return{attachment:h,key:u.filename,checksum:u.checksumMd5,value:v}}))),!o.hasNextPage)return i;t=o.endCursor}}async function vn(e,n,a){let t=[];s("theme-api:delete-assets");for(let d=0;d<n.length;d+=50){let m=n.slice(d,d+50),{themeFilesDelete:o}=await p({query:U,session:a,variables:{themeId:S(e),files:m},preferredBehaviour:c});o||r("Failed to delete theme assets");let{deletedThemeFiles:u,userErrors:h}=o;u&&u.forEach(v=>{t.push({key:v.filename,success:!0,operation:F.Delete})}),h.length>0&&h.forEach(v=>{v.filename?(k(`Asset deletion failed for ${v.filename}: ${v.message}`),t.push({key:v.filename,success:!1,operation:F.Delete,errors:{asset:[v.message]}})):r(`Failed to delete theme assets: ${v.message}`)})}return t}async function Nn(e,n,a){let i=[];s("theme-api:bulk-upload-assets");for(let t=0;t<n.length;t+=50){let d=n.slice(t,t+50),m=X(d);b("theme-api:upload-files");let o=await K(e,m,a);b("theme-api:upload-files"),i.push(...W(o))}return i}function X(e){return e.map(n=>n.attachment?{filename:n.key,body:{type:"BASE64",value:n.attachment}}:{filename:n.key,body:{type:"TEXT",value:n.value??""}})}async function K(e,n,a){return p({query:P,session:a,variables:{themeId:D(e),files:n},preferredBehaviour:c})}function W(e){let{themeFilesUpsert:n}=e;n||r("Failed to upload theme files");let{upsertedThemeFiles:a,userErrors:i}=n,t=[];return a?.forEach(d=>{t.push({key:d.filename,success:!0,operation:F.Upload})}),i.forEach(d=>{d.filename||r(`Error uploading theme files: ${d.message}`),k(`Asset upload failed for ${d.filename}: ${d.message}`),t.push({key:d.filename,success:!1,operation:F.Upload,errors:{asset:[d.message]}})}),t}async function hn(e,n){let a=[],i=null;for(s("theme-api:fetch-checksums");;){let t=await T({query:q,session:n,variables:{id:D(e),after:i},responseOptions:{handleErrors:!1},preferredBehaviour:c});if(!t?.theme?.files?.nodes||!t?.theme?.files?.pageInfo){let o=t.theme?.files?.userErrors.map(u=>u.filename).join(", ");throw k(new N(`Failed to fetch checksums for: ${o}`))}let{nodes:d,pageInfo:m}=t.theme.files;if(a.push(...d.map(o=>({key:o.filename,checksum:o.checksumMd5}))),!m.hasNextPage)return a;i=m.endCursor}}async function fn(e,n,a){let i=n.name,t={};i&&(t.name=i),s("theme-api:update-theme");let{themeUpdate:d}=await p({query:A,session:a,variables:{id:S(e),input:t},preferredBehaviour:c});d||r("Failed to update theme");let{theme:m,userErrors:o}=d;if(o.length){let u=d.userErrors.map(h=>h.message).join(", ");throw k(new N(u))}return m||r("Failed to update theme"),y({id:f(m.id),name:m.name,role:m.role.toLowerCase()})}async function yn(e,n){s("theme-api:publish-theme");let{themePublish:a}=await p({query:O,session:n,variables:{id:S(e)},preferredBehaviour:c});a||r("Failed to update theme");let{theme:i,userErrors:t}=a;if(t.length){let d=a.userErrors.map(m=>m.message).join(", ");throw k(new N(d))}return i||r("Failed to update theme"),y({id:f(i.id),name:i.name,role:i.role.toLowerCase()})}async function Sn(e,n){s("theme-api:delete-theme");let{themeDelete:a}=await p({query:x,session:n,variables:{id:S(e)},preferredBehaviour:c});a||r("Failed to update theme");let{deletedThemeId:i,userErrors:t}=a;if(t.length){let d=a.userErrors.map(m=>m.message).join(", ");throw k(new N(d))}return i||r("Failed to update theme"),!0}async function Fn(e,n,a){let i;s("theme-api:duplicate-theme");let{themeDuplicate:t}=await p({query:I,session:a,variables:{id:S(e),name:n},preferredBehaviour:c,responseOptions:{onResponse:u=>{i=u.headers.get("x-request-id")??void 0}}});if(!t)return k("Failed to duplicate theme"),{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:i};let{newTheme:d,userErrors:m}=t;return m.length>0?{theme:void 0,userErrors:m,requestId:i}:d?{theme:y({id:f(d.id),name:d.name,role:d.role.toLowerCase()}),userErrors:[],requestId:i}:{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:i}}async function Tn(e,n){s("theme-api:fetch-metafield-definitions");let{metafieldDefinitions:a}=await p({query:L,session:n,variables:{ownerType:e}});return a.nodes.map(i=>({key:i.key,namespace:i.namespace,name:i.name,description:i.description,type:{name:i.type.name,category:i.type.category}}))}async function bn(e){s("theme-api:check-password-protection");let{onlineStore:n}=await p({query:$,session:e});n||r("Unable to get details about the storefront's password protection");let{passwordProtection:a}=n;return a.enabled}function r(e){throw k(new N(e))}async function T(e){try{return await p(e)}catch(n){throw H(n),n}}function H(e){if(!(e instanceof E))return;let n=Y(e);if(!n)return;let a=[["If you authenticated with an Admin API access token, update the app or integration that issued the token to include the required theme access scopes, then reauthorize it or generate a new token."],["For",{command:"theme pull"},{char:","},{command:"theme list"},{char:","},"and",{command:"theme info"},{char:","},"add the",{command:"read_themes"},"scope",{char:"."}],["For",{command:"theme push"},"and",{command:"theme dev"},{char:","},"add both the",{command:"read_themes"},"and",{command:"write_themes"},"scopes",{char:"."}],["If you authenticated with your Shopify account, make sure your staff or collaborator account can access Online Store themes, then run",{command:"shopify auth logout"},"and try again",{char:"."}],["See",{link:{label:"Shopify access scopes",url:"https://shopify.dev/api/usage/access-scopes"}},{char:"."}]];throw k(new N(`The authenticated account or access token is missing ${n}.`,void 0,a))}function Y(e){let n=e.response.errors;if(!Array.isArray(n))return;let a=n.find(t=>t.extensions?.code==="ACCESS_DENIED");if(!a)return;let i=a.extensions?.requiredAccess;return typeof i!="string"?z:Z(i)}function Z(e){return e.trim().replace(/\.$/,"").replace(/^The user needs\s+/i,"")||z}function D(e){return`gid://shopify/OnlineStoreTheme/${e}`}async function J(e){switch(e.__typename){case"OnlineStoreThemeFileBodyText":return{value:e.content};case"OnlineStoreThemeFileBodyBase64":return{attachment:e.contentBase64};case"OnlineStoreThemeFileBodyUrl":try{let a=await(await fetch(e.url)).arrayBuffer();return{attachment:Buffer.from(a).toString("base64")}}catch{throw k(new N(`Error downloading content from URL: ${e.url}`))}}}export{se as a,g as b,ie as c,ae as d,te as e,de as f,sn as g,un as h,kn as i,cn as j,pn as k,vn as l,Nn as m,hn as n,fn as o,yn as p,Sn as q,Fn as r,Tn as s,bn as t};
@@ -0,0 +1,19 @@
1
+ import{p as R,v as G}from"./chunk-Z5DDPQ26.js";import{$ as re,aa as j}from"./chunk-DODCPRXT.js";import{b as E}from"./chunk-2Y6CYLKF.js";import{r as T}from"./chunk-G7QW5OSQ.js";import{u as F,v as L}from"./chunk-6YCGMS7X.js";import{$a as N,Lb as l,Mb as P,N as S,Nb as C,Pb as $,Ta as A,ua as I}from"./chunk-3TFUSDHY.js";import{d as w,p as b}from"./chunk-773TIA5M.js";import{a as ne}from"./chunk-CTNBSUVU.js";import{e as O,g as k}from"./chunk-VKWPEFWQ.js";k();k();var i=O(j(),1),y=O(re(),1);function oe(t){switch(t){case"error":return i.Severity.ERROR;case"suggestion":case"warning":return i.Severity.WARNING;case"style":case"info":return i.Severity.INFO;case"crash":return}}function U(t){switch(t){case i.Severity.ERROR:return"error";case i.Severity.WARNING:return"warning";case i.Severity.INFO:return"info"}}function ie(t){return new Map(t.map(e=>[e.uri,e.source]))}function se(t,e,r){let o=t.split(`
2
+ `).slice(e,r+1),s=o.length===1;return o.map((c,a)=>{let u=e+a+1,h=s?c.trim():c;return`${u} ${h}`}).join(`
3
+ `)}function ce(t){switch(t){case i.Severity.ERROR:return{error:`
4
+ [error]:`};case i.Severity.WARNING:return{warn:`
5
+ [warning]:`};case i.Severity.INFO:return{info:`
6
+ [info]:`}}}function ae(t,e){return t.map((n,o)=>{let{message:s,uri:c,start:a,end:u,check:h,severity:p}=n,f=e.get(c),x=f===void 0?[]:[`
7
+
8
+ ${se(f,a.line,u.line)}`],_=o===t.length-1?"":`
9
+
10
+ `;return[ce(p),{bold:h},{subdued:`
11
+ ${s}`},...x,_]}).flat()}var ue=(t,e)=>t.severity-e.severity;function Y(t){let e=t.reduce((r,n)=>{let{uri:o}=n,s=i.path.fsPath(o);return r[s]??(r[s]=[]),r[s].push(n),r},{});return Object.keys(e).reduce((r,n)=>(r[n]=e[n].sort(ue),r),{})}function W(t){return t.reduce((e,r)=>(!Object.prototype.hasOwnProperty.call(e,r.severity)&&(e[r.severity]=0),e[r.severity]++,e),{})}function q(t,e,r){let n=[`${r.length} files inspected`];if(t.length===0)n.push("with no offenses found.");else{n.push(`with ${t.length} total offenses found across ${Object.keys(e).length} files.`);let o=W(t);o[i.Severity.ERROR]&&n.push(`
12
+ ${o[i.Severity.ERROR]} errors.`),o[i.Severity.WARNING]&&n.push(`
13
+ ${o[i.Severity.WARNING]} warnings.`),o[i.Severity.INFO]&&n.push(`
14
+ ${o[i.Severity.INFO]} info issues.`)}return n}function H(t,e,r,n){let o=ie(r);Object.keys(t).sort().forEach(c=>{let a=c.replace(e,"").slice(1);F({headline:n?`[${n}] ${a}`:a,body:ae(t[c],o)})})}function B(t,e){return Object.entries(t).map(([r,n])=>{let o=n.map(c=>({check:c.check,severity:U(c.severity),start_row:c.start.line,start_column:c.start.character,end_row:c.end.line,end_column:c.end.character,message:c.message})),s=W(n);return{environment:e,path:r,offenses:o,errorCount:s[i.Severity.ERROR]??0,warningCount:s[i.Severity.WARNING]??0,infoCount:s[i.Severity.INFO]??0}})}function M(t,e){e||process.exit(0);let r=oe(e),n=r!==void 0&&t.some(o=>o.severity<=r);process.exit(n?1:0)}function fe(t){return t.split(`
15
+ `).map(e=>`# ${e}`).join(`
16
+ `)}async function D(t){let e=".theme-check.yml",r=w(t,e);if(await A(r)){P(`${e} already exists at ${t}`);return}let{settings:n}=await(0,i.loadConfig)(void 0,t),o=fe(y.default.stringify(n)),s=y.default.stringify({extends:"theme-check:recommended",ignore:["node_modules/**"]});await I(r,`${s}${o}`),C(`Created ${e} at ${t}`)}var me=async(t,e)=>{let r=(0,i.applyFixToString)(t.source,e),n=i.path.fsPath(t.uri);await I(n,r)};async function J(t,e){await(0,i.autofix)(t,e,me)}async function V(t,e,r){let{ignore:n,settings:o,rootUri:s}=await(0,i.loadConfig)(e,t),c={extends:[],ignore:S(n??[]),rootUri:s,...o},a=r?{[r]:c}:c;l(y.default.stringify(a))}async function z(t,e,r){let{settings:n,ignore:o,checks:s}=await(0,i.loadConfig)(e,t),c=S(o??[]),u=Object.keys(n).reduce((p,f)=>{let{severity:x,enabled:_,...X}=n[f];if(!_)return p;let Z=U(x??i.Severity.INFO),v=s.find(te=>te.meta.code===f),ee=v&&v.meta?{description:v.meta.docs.description,doc:v.meta.docs.url}:{};return p[f]={severity:Z,...ee,ignored_patterns:`[${c.join(", ")}]`,...X},p},{}),h=r?{[r]:u}:u;l(y.default.stringify(h))}function K(t){return"_handle"in t&&typeof t._handle=="object"&&t._handle!==null&&typeof t._handle.setBlocking=="function"}var m=O(ne(),1);var g=O(j(),1);var Q,d=class extends G{async command(e,r,n){let o=e.path,s=e.environment?.[0],a=e.config?.startsWith(":")&&g.LegacyIdentifiers.has(e.config.slice(1))?g.LegacyIdentifiers.get(e.config.slice(1)):e.config;if(e.init){await D(o);return}if(e.version){let p=await N(w("node_modules","@shopify","theme-check-node","package.json"),{type:"file",cwd:b(import.meta.url)}),f="unknown";p&&(f=await T(p)??"unknown"),l(f);return}if(e.print){await V(o,a,s);return}if(e.list){await z(o,a,s);return}let{offenses:u,theme:h}=await de(o,e.output,a,s);if(e["auto-correct"]&&await J(h,u),!n)return M(u,e["fail-level"])}};Q=d;d.summary="Validate the theme.";d.descriptionWithMarkdown="Calls and runs [Theme Check](https://shopify.dev/docs/themes/tools/theme-check) to analyze your theme code for errors and to ensure that it follows theme and Liquid best practices. [Learn more about the checks that Theme Check runs.](https://shopify.dev/docs/themes/tools/theme-check/checks)";d.description=Q.descriptionWithoutMarkdown();d.flags={...E,path:R.path,"auto-correct":m.Flags.boolean({char:"a",required:!1,description:"Automatically fix offenses",env:"SHOPIFY_FLAG_AUTO_CORRECT"}),config:m.Flags.string({char:"C",required:!1,description:`Use the config provided, overriding .theme-check.yml if present
17
+ Supports all theme-check: config values, e.g., theme-check:theme-app-extension,
18
+ theme-check:recommended, theme-check:all
19
+ For backwards compatibility, :theme_app_extension is also supported `,env:"SHOPIFY_FLAG_CONFIG"}),"fail-level":m.Flags.string({required:!1,description:"Minimum severity for exit with error code",env:"SHOPIFY_FLAG_FAIL_LEVEL",options:["crash","error","suggestion","style","warning","info"],default:"error"}),init:m.Flags.boolean({required:!1,description:"Generate a .theme-check.yml file",env:"SHOPIFY_FLAG_INIT"}),list:m.Flags.boolean({required:!1,description:"List enabled checks",env:"SHOPIFY_FLAG_LIST"}),output:m.Flags.string({char:"o",required:!1,description:"The output format to use",env:"SHOPIFY_FLAG_OUTPUT",options:["text","json"],default:"text"}),print:m.Flags.boolean({required:!1,description:"Output active config to STDOUT",env:"SHOPIFY_FLAG_PRINT"}),version:m.Flags.boolean({char:"v",required:!1,description:"Print Theme Check version",env:"SHOPIFY_FLAG_VERSION"}),environment:R.environment};d.multiEnvironmentsFlags=["path"];var Ae=d;async function de(t,e,r,n){let{offenses:o,theme:s}=await(0,g.themeCheckRun)(t,r,a=>{process.env.SHOPIFY_TMP_FLAG_DEBUG&&$(a)}),c=Y(o);if(e==="text"&&(H(c,t,s,n),(o.length?F:L)({headline:n?`[${n}] Theme Check Summary.`:"Theme Check Summary.",body:q(o,c,s)})),e==="json"){let a=process.stdout;K(a)&&a._handle.setBlocking(!0),l(JSON.stringify(B(c,n)))}return{offenses:o,theme:s}}export{Ae as a,de as b};
@@ -1,4 +1,4 @@
1
- import{b as m}from"./chunk-IDKUJQIG.js";import{C as f}from"./chunk-E24W34C4.js";import{Lb as c}from"./chunk-EYDNSYYE.js";import{r as N}from"./chunk-T6CC5WUU.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static{this.description="View all the available command flags"}static{this.hidden=!0}static{this.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-2MCH43SL.js";import{C as f}from"./chunk-6YCGMS7X.js";import{Lb as c}from"./chunk-3TFUSDHY.js";import{a as N}from"./chunk-CTNBSUVU.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static{this.description="View all the available command flags"}static{this.hidden=!0}static{this.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};
@@ -1 +1 @@
1
- import{Q as r}from"./chunk-2HZMOK4U.js";import{b as c}from"./chunk-IDKUJQIG.js";import{Nb as a}from"./chunk-EYDNSYYE.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
1
+ import{b as c}from"./chunk-2MCH43SL.js";import{Q as r}from"./chunk-EZ7EBYDT.js";import{Nb as a}from"./chunk-3TFUSDHY.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
@@ -1,4 +1,4 @@
1
- import{k as P,t as F}from"./chunk-5T3OVTF5.js";import{a as N}from"./chunk-Q7BOSHWX.js";import{a as T}from"./chunk-H7PNMMDO.js";import{M as H,O as q,o as $,va as d,xa as h}from"./chunk-2HZMOK4U.js";import{a as x}from"./chunk-J3KRY2SD.js";import{P as v,x as I,y as L}from"./chunk-E24W34C4.js";import{d as l}from"./chunk-ELIH6GCC.js";import{Fb as C,Hb as U,Pb as c}from"./chunk-EYDNSYYE.js";import{u as O}from"./chunk-JCNRQYRP.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function D(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e.replaceTemplates??[]))t.append(`replace_templates[${r}]`,o);for(let[r,o]of Object.entries(e.replaceExtensionTemplates??[])){let n=r.split("/")[0];t.append(`replace_extension_templates[${n}][${r}]`,o)}return t.append("_method",e.method),t}function w(){return{"User-Agent":`Shopify CLI; v=${x}`}}function k(e){return delete e.cookie,delete e.authorization,e}p();function S(e){let t={};return e.split(";").forEach(r=>{let o=r.match(/(.*?)=(.*)$/)??[],n=o[1]?.trim(),s=o[2]?.trim()??"";n&&(t[n]=s)}),t}function E(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var y=class extends l{};async function Re(e){return F(e)}async function be(e,t,r){let o=M(t),n=new URLSearchParams;n.append("form_type","storefront_password"),n.append("utf8","\u2713"),n.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let s={"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded",...r},a=await $(`${o}/password`,{headers:s,body:n.toString(),method:"POST",redirect:"manual"});if(a.status===429)throw d(new l(`Too many incorrect password attempts. Please try again after ${a.headers.get("retry-after")} seconds.`));return B(a,o)}async function j(e,t,r,o,n={}){let s={},a=await G(e,r,n),i=M(t);if(s._shopify_essential=a,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return s;let u=await ee(a,e,i,o,n);return{...s,...u}}async function G(e,t,r,o=1){let n=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),s=`${e}?${n}`;h("theme-service:storefront-session:get-session-essential-cookie");let a={...r,...w()},i=await $(s,{method:"HEAD",redirect:"manual",headers:a}),u=i.headers.raw()["set-cookie"]??[],f=_(u,"_shopify_essential");if(!f){if(c(`Failed to obtain _shopify_essential cookie.
1
+ import{k as P,t as F}from"./chunk-HT6MOPLW.js";import{a as N}from"./chunk-Q7BOSHWX.js";import{a as T}from"./chunk-PXSX63RF.js";import{M as H,O as q,n as $,sa as d,ua as h}from"./chunk-EZ7EBYDT.js";import{P as v,x as I,y as L}from"./chunk-6YCGMS7X.js";import{a as x}from"./chunk-M4BEPPA3.js";import{m as l}from"./chunk-ZTE46E4Z.js";import{Fb as C,Hb as U,Pb as c}from"./chunk-3TFUSDHY.js";import{t as O}from"./chunk-J3IHP46B.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function D(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e.replaceTemplates??[]))t.append(`replace_templates[${r}]`,o);for(let[r,o]of Object.entries(e.replaceExtensionTemplates??[])){let n=r.split("/")[0];t.append(`replace_extension_templates[${n}][${r}]`,o)}return t.append("_method",e.method),t}function w(){return{"User-Agent":`Shopify CLI; v=${x}`}}function k(e){return delete e.cookie,delete e.authorization,e}p();function S(e){let t={};return e.split(";").forEach(r=>{let o=r.match(/(.*?)=(.*)$/)??[],n=o[1]?.trim(),s=o[2]?.trim()??"";n&&(t[n]=s)}),t}function E(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var y=class extends l{};async function Re(e){return F(e)}async function be(e,t,r){let o=M(t),n=new URLSearchParams;n.append("form_type","storefront_password"),n.append("utf8","\u2713"),n.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let s={"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded",...r},a=await $(`${o}/password`,{headers:s,body:n.toString(),method:"POST",redirect:"manual"});if(a.status===429)throw d(new l(`Too many incorrect password attempts. Please try again after ${a.headers.get("retry-after")} seconds.`));return B(a,o)}async function j(e,t,r,o,n={}){let s={},a=await G(e,r,n),i=M(t);if(s._shopify_essential=a,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return s;let u=await ee(a,e,i,o,n);return{...s,...u}}async function G(e,t,r,o=1){let n=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),s=`${e}?${n}`;h("theme-service:storefront-session:get-session-essential-cookie");let a={...r,...w()},i=await $(s,{method:"HEAD",redirect:"manual",headers:a}),u=i.headers.raw()["set-cookie"]??[],f=_(u,"_shopify_essential");if(!f){if(c(`Failed to obtain _shopify_essential cookie.
2
2
 
3
3
  -Request ID: ${i.headers.get("x-request-id")??"unknown"}
4
4
 
@@ -1 +1 @@
1
- import{c as u}from"./chunk-ASOT7VNB.js";import{w as c}from"./chunk-E24W34C4.js";import{e as s}from"./chunk-3QVXHF6I.js";import{$a as d}from"./chunk-EYDNSYYE.js";import{q as m}from"./chunk-773TIA5M.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();function o(e,n){n||c(e)}async function P(e,n,t){let r=await l(n,t);if(!r){o({body:"Environment file not found."},t?.silent);return}let a=(await u.read(r)).content.environments;if(!a){o({body:["No environments found in",{command:r},{char:"."}]},t?.silent);return}let i=a[e];if(!i){o({body:["Environment",{command:e},"not found."]},t?.silent);return}return await s(()=>({environmentFlags:JSON.stringify(i)})),i}async function l(e,n){let t=n?.from&&n.from!=="."?n.from:m();return d(e,{cwd:t,type:"file"})}export{P as a,l as b};
1
+ import{c as u}from"./chunk-AJ6VOBXU.js";import{w as c}from"./chunk-6YCGMS7X.js";import{e as s}from"./chunk-VZKR2YFM.js";import{$a as d}from"./chunk-3TFUSDHY.js";import{q as m}from"./chunk-773TIA5M.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();function o(e,n){n||c(e)}async function P(e,n,t){let r=await l(n,t);if(!r){o({body:"Environment file not found."},t?.silent);return}let a=(await u.read(r)).content.environments;if(!a){o({body:["No environments found in",{command:r},{char:"."}]},t?.silent);return}let i=a[e];if(!i){o({body:["Environment",{command:e},"not found."]},t?.silent);return}return await s(()=>({environmentFlags:JSON.stringify(i)})),i}async function l(e,n){let t=n?.from&&n.from!=="."?n.from:m();return d(e,{cwd:t,type:"file"})}export{P as a,l as b};
@@ -1,3 +1,3 @@
1
- import{a as h}from"./chunk-MYQQOOGA.js";import{p as m,v as a}from"./chunk-PTIJDS6I.js";import{ua as t}from"./chunk-2HZMOK4U.js";import{b as s}from"./chunk-Q6LCSRIW.js";import{T as n}from"./chunk-EYDNSYYE.js";import{r as f}from"./chunk-T6CC5WUU.js";import{e as w,g as i}from"./chunk-VKWPEFWQ.js";i();var o=w(f(),1);var d,e=class extends a{async command(r,p,c,y,l){let u={environment:r.environment,force:r.force,noColor:r["no-color"],password:r.password,path:r.path,store:r.store,theme:n("creative"),unpublished:!0,listing:r.listing};t("theme-command:share"),await h(u,p,c,l),t("theme-command:share")}};d=e;e.summary="Creates a shareable, unpublished, and new theme on your theme library with a randomized name.";e.descriptionWithMarkdown=`Uploads your theme as a new, unpublished theme in your theme library. The theme is given a randomized name.
1
+ import{a as h}from"./chunk-4YCMEC5R.js";import{p as m,v as a}from"./chunk-Z5DDPQ26.js";import{b as s}from"./chunk-2Y6CYLKF.js";import{ra as t}from"./chunk-EZ7EBYDT.js";import{S as n}from"./chunk-3TFUSDHY.js";import{a as f}from"./chunk-CTNBSUVU.js";import{e as w,g as i}from"./chunk-VKWPEFWQ.js";i();var o=w(f(),1);var d,e=class extends a{async command(r,p,c,y,l){let u={environment:r.environment,force:r.force,noColor:r["no-color"],password:r.password,path:r.path,store:r.store,theme:n("creative"),unpublished:!0,listing:r.listing};t("theme-command:share"),await h(u,p,c,l),t("theme-command:share")}};d=e;e.summary="Creates a shareable, unpublished, and new theme on your theme library with a randomized name.";e.descriptionWithMarkdown=`Uploads your theme as a new, unpublished theme in your theme library. The theme is given a randomized name.
2
2
 
3
3
  This command returns a [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with others.`;e.description=d.descriptionWithoutMarkdown();e.flags={...s,...m,force:o.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"}),listing:o.Flags.string({description:"The listing preset to use for multi-preset themes. Applies preset files from listings/[preset-name] directory.",env:"SHOPIFY_FLAG_LISTING"})};e.multiEnvironmentsFlags=["store","password","path"];var I=e;export{I as a};
@@ -1,3 +1,3 @@
1
- import{a as l,c as a,d as B,f as C}from"./chunk-NNOSZ447.js";import{a as I,c as d,e as Q,g as u}from"./chunk-VKWPEFWQ.js";var b=d((he,R)=>{"use strict";u();var g={},X=process.nextTick||global.setImmediate||global.setTimeout;g.nextTick=function(e){X(e)};g.parallel=function(e,r){var n=[],t=[],i=0,o=0;function c(s,f,m){f?t[s]=f:n[s]=m,o+=1,o>=i&&r((t.length>0,t),n)}Object.keys(e).forEach(function(s){i+=1;var f=e[s];g.nextTick(function(){f(c.bind(null,s),1)})})};g.promisify=function(e){return new Promise(function(r,n){e(function(t,i){if(t){t instanceof Error||(t=new Error(t)),n(t);return}r(i)})})};g.iterate=function(e,r,n){var t=[],i=function(){if(e.length===0){g.nextTick(n.bind(null,t));return}var o=e.shift();if(typeof o=="function"){o(function(c,s){if(c)t.push(c);else for(;s.length>0;)e.unshift(s.pop());i()});return}r(o,function(c,s){c?(t.push(c),i()):g.nextTick(n.bind(null,null,s))})};g.nextTick(i)};R.exports=g});var L=d((_e,y)=>{u();var Z=I("child_process").execFile,ee=/[-\/\\^$*+?.()|[\]{}]/g;function re(e){return e.replace(ee,"\\$&")}y.exports=function(e,r){Z("ipconfig",["/all"],function(n,t){if(n){r(n,null);return}var i=new RegExp(re(e)).exec(t);if(!i){r("did not find interface in `ipconfig /all`",null);return}if(t=t.substring(i.index+e.length),i=/[A-Fa-f0-9]{2}(\-[A-Fa-f0-9]{2}){5}/.exec(t),!i){r("did not find a mac address",null);return}r(null,i[0].toLowerCase().replace(/\-/g,":"))})}});var A=d((ve,w)=>{u();var te=I("child_process").execFile;w.exports=function(e,r){te("/bin/cat",["/sys/class/net/"+e+"/address"],function(n,t){if(n){r(n,null);return}r(null,t.trim().toLowerCase())})}});var U=d((Ce,M)=>{u();var ne=I("child_process").execFile;M.exports=function(e,r){ne("ifconfig",[e],function(n,t){if(n){r(n,null);return}var i=/[a-f0-9]{2}(:[a-f0-9]{2}){5}/.exec(t.toLowerCase());if(!i){r("did not find a mac address",null);return}r(null,i[0].toLowerCase())})}});var S=d((be,O)=>{u();var ie=I("os"),h,N="^[a-z0-9]+$";switch(ie.platform()){case"win32":N="^[a-z0-9 -]+$",h=L();break;case"linux":h=A();break;case"darwin":case"sunos":case"freebsd":h=U();break;default:console.warn("node-macaddress: Unknown os.platform(), defaulting to 'unix'."),h=U();break}var D=new RegExp(N,"i");O.exports=function(e,r){if(!D.test(e)){r(new Error(["invalid iface: '",e,"' (must conform to reg exp /",D,"/)"].join("")),null);return}h(e,r)}});var q=d((Le,k)=>{"use strict";u();var oe=I("child_process").execFile;k.exports=function(e){oe("wmic",["nic","get","NetConnectionID"],function(r,n){if(r){e(r,null);return}for(var t=n.trim().replace(/\s{2,}/g,`
1
+ import{a as l,c as a,d as C,f as v}from"./chunk-UKQ7NE5V.js";import{a as I,c as d,e as Q,g as u}from"./chunk-VKWPEFWQ.js";var b=d((he,R)=>{"use strict";u();var g={},X=process.nextTick||global.setImmediate||global.setTimeout;g.nextTick=function(e){X(e)};g.parallel=function(e,r){var n=[],t=[],i=0,o=0;function c(s,f,m){f?t[s]=f:n[s]=m,o+=1,o>=i&&r((t.length>0,t),n)}Object.keys(e).forEach(function(s){i+=1;var f=e[s];g.nextTick(function(){f(c.bind(null,s),1)})})};g.promisify=function(e){return new Promise(function(r,n){e(function(t,i){if(t){t instanceof Error||(t=new Error(t)),n(t);return}r(i)})})};g.iterate=function(e,r,n){var t=[],i=function(){if(e.length===0){g.nextTick(n.bind(null,t));return}var o=e.shift();if(typeof o=="function"){o(function(c,s){if(c)t.push(c);else for(;s.length>0;)e.unshift(s.pop());i()});return}r(o,function(c,s){c?(t.push(c),i()):g.nextTick(n.bind(null,null,s))})};g.nextTick(i)};R.exports=g});var y=d((_e,L)=>{u();var Z=I("child_process").execFile,ee=/[-\/\\^$*+?.()|[\]{}]/g;function re(e){return e.replace(ee,"\\$&")}L.exports=function(e,r){Z("ipconfig",["/all"],function(n,t){if(n){r(n,null);return}var i=new RegExp(re(e)).exec(t);if(!i){r("did not find interface in `ipconfig /all`",null);return}if(t=t.substring(i.index+e.length),i=/[A-Fa-f0-9]{2}(\-[A-Fa-f0-9]{2}){5}/.exec(t),!i){r("did not find a mac address",null);return}r(null,i[0].toLowerCase().replace(/\-/g,":"))})}});var A=d((Be,w)=>{u();var te=I("child_process").execFile;w.exports=function(e,r){te("/bin/cat",["/sys/class/net/"+e+"/address"],function(n,t){if(n){r(n,null);return}r(null,t.trim().toLowerCase())})}});var U=d((ve,M)=>{u();var ne=I("child_process").execFile;M.exports=function(e,r){ne("ifconfig",[e],function(n,t){if(n){r(n,null);return}var i=/[a-f0-9]{2}(:[a-f0-9]{2}){5}/.exec(t.toLowerCase());if(!i){r("did not find a mac address",null);return}r(null,i[0].toLowerCase())})}});var S=d((be,O)=>{u();var ie=I("os"),h,N="^[a-z0-9]+$";switch(ie.platform()){case"win32":N="^[a-z0-9 -]+$",h=y();break;case"linux":h=A();break;case"darwin":case"sunos":case"freebsd":h=U();break;default:console.warn("node-macaddress: Unknown os.platform(), defaulting to 'unix'."),h=U();break}var D=new RegExp(N,"i");O.exports=function(e,r){if(!D.test(e)){r(new Error(["invalid iface: '",e,"' (must conform to reg exp /",D,"/)"].join("")),null);return}h(e,r)}});var q=d((ye,k)=>{"use strict";u();var oe=I("child_process").execFile;k.exports=function(e){oe("wmic",["nic","get","NetConnectionID"],function(r,n){if(r){e(r,null);return}for(var t=n.trim().replace(/\s{2,}/g,`
2
2
  `).split(`
3
- `).slice(1),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var K=d((Ae,F)=>{u();var se=I("child_process").execFile;F.exports=function(e){se("/bin/ls",["/sys/class/net"],function(r,n){if(r){e(r,null);return}for(var t=n.split(/[ \t\n]+/),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var v=d((De,G)=>{"use strict";u();var ue=I("child_process").execFile;G.exports=function(e){ue("/sbin/ifconfig",["-l"],function(r,n){if(r){e(r,null);return}for(var t=n.split(/[ \t]+/),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var P=d((Oe,H)=>{u();var ae=I("os"),T;switch(ae.platform()){case"win32":T=q();break;case"linux":T=K();break;case"darwin":case"sunos":case"freebsd":T=v();break;default:console.warn("node-macaddress: Unknown os.platform(), defaulting to 'unix'."),T=v();break}H.exports=T});var j=d((ke,$)=>{u();var ce=I("os");$.exports=function(){var e={};try{var r=ce.networkInterfaces()}catch(n){if(n.syscall==="uv_interface_addresses")return e;throw n}return Object.keys(r).forEach(function(n){var t={},i=!1;r[n].forEach(function(o){if(!o.internal){var c=typeof o.family=="number"?"ipv"+o.family:(o.family||"").toLowerCase();t[c]=o.address,i=!0,o.mac&&o.mac!=="00:00:00:00:00:00"&&(t.mac=o.mac)}}),i&&(e[n]=t)}),e}});var V=d((Fe,z)=>{"use strict";u();var E=b(),p={};p.getMacAddress=S();p.getAllInterfaces=P();p.networkInterfaces=j();var fe=new RegExp("^((en|eth)[0-9]+|ethernet)$","i"),le=new RegExp("^(vboxnet[0-9]+)$","i");p.one=function(){var e=null,r=null;if(arguments.length>=1&&(typeof arguments[0]=="function"?r=arguments[0]:typeof arguments[0]=="string"&&(e=arguments[0]),arguments.length>=2&&typeof arguments[1]=="function"&&(r=arguments[1])),!r)return E.promisify(function(s){p.one(e,s)});if(e){p.getMacAddress(e,r);return}var n=p.networkInterfaces(),t={},i=[],o=[];if(Object.keys(n).forEach(function(s){o.push(s);var f=0,m=n[s];typeof m.mac=="string"&&m.mac!=="00:00:00:00:00:00"&&(t[s]=m.mac,m.ipv4&&(f+=1),m.ipv6&&(f+=1),fe.test(s)&&(f+=2),le.test(s)&&(f-=3),i.push({name:s,score:f,mac:m.mac}))}),i.length>0){i.sort(function(s,f){var m=f.score-s.score;return m!==0?m:s.name<f.name?-1:s.name>f.name?1:0}),E.nextTick(r.bind(null,null,i[0].mac));return}o.push(p.getAllInterfaces);var c=function(s,f){if(t[s]){f(null,t[s]);return}p.getMacAddress(s,f)};E.iterate(o,c,r)};p.all=function(e){if(typeof e!="function")return E.promisify(p.all);var r=p.networkInterfaces(),n={};return Object.keys(r).forEach(function(t){r[t].mac||(n[t]=p.getMacAddress.bind(null,t))}),Object.keys(n).length===0?(typeof e=="function"&&E.nextTick(e.bind(null,null,r)),r):(E.parallel(n,function(t,i){Object.keys(i).forEach(function(o){r[o].mac=i[o]}),typeof e=="function"&&e(null,r)}),null)};z.exports=p});u();u();function x(e){return!(e===void 0||e.trim()==="")}function _(e,r){switch(e){case"bitbucket":return{branch:r.BITBUCKET_BRANCH,build:r.BITBUCKET_BUILD_NUMBER,commitSha:r.BITBUCKET_COMMIT,run:r.BITBUCKET_BUILD_NUMBER,url:`https://bitbucket.org/${r.BITBUCKET_WORKSPACE}/${r.BITBUCKET_REPO_SLUG}/pipelines/results/${r.BITBUCKET_BUILD_NUMBER}`};case"circleci":return{actor:r.CIRCLE_USERNAME,branch:r.CIRCLE_BRANCH,build:r.CIRCLE_BUILD_NUM,commitSha:r.CIRCLE_SHA1,run:r.CIRCLE_WORKFLOW_ID,url:r.CIRCLE_BUILD_URL};case"github":return{actor:r.GITHUB_ACTOR,attempt:r.GITHUB_RUN_ATTEMPT,branch:r.GITHUB_REF_NAME,build:r.GITHUB_RUN_ID,commitSha:r.GITHUB_SHA,run:r.GITHUB_RUN_ID,runNumber:r.GITHUB_RUN_NUMBER,url:`${r.GITHUB_SERVER_URL}/${r.GITHUB_REPOSITORY}/actions/runs/${r.GITHUB_RUN_ID}`};case"gitlab":return{actor:r.GITLAB_USER_LOGIN,branch:r.CI_COMMIT_REF_NAME,build:r.CI_PIPELINE_ID,commitSha:r.CI_COMMIT_SHA,commitMessage:r.CI_COMMIT_MESSAGE,run:r.CI_RUNNER_ID,url:r.CI_PIPELINE_URL};case"buildkite":return{branch:r.BUILDKITE_BRANCH,build:r.BUILDKITE_BUILD_NUMBER,commitSha:r.BUILDKITE_COMMIT,commitMessage:r.BUILDKITE_MESSAGE,run:r.BUILDKITE_BUILD_NUMBER,url:r.BUILDKITE_BUILD_URL};default:return{}}}var J=Q(V());import{homedir as pe}from"os";async function me(e){let{fileExists:r}=await import("./fs-7LCRIUF3.js");return r(e)}async function de(e,r){let{exec:n}=await import("./system-KDM2BB7R.js");await n(e,r)}function je(){return!!(process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function ze(){return pe()}var W,Y;function Ie(e=process.env){return e[a.env]==="development"}function Ve(e=process.env){return e===process.env?W??(W=l(e[a.verbose])||process.argv.includes("--verbose")):l(e[a.verbose])||process.argv.includes("--verbose")}async function We(e=process.env){return Object.prototype.hasOwnProperty.call(e,a.runAsUser)?!l(e[a.runAsUser]):await me(C.executables.dev)}function Ye(e=process.env){return e===process.env?Y??(Y=l(e[a.unitTest])):l(e[a.unitTest])}function Je(e=process.env){return l(e[a.noAnalytics])||l(e[a.optOutInstrumentation])||Ie(e)}function Qe(e=process.env){return l(e[a.alwaysLogAnalytics])}function Xe(e=process.env){return l(e[a.alwaysLogMetrics])}function Ze(e=process.env){return l(e[a.firstPartyDev])}function er(e=process.env){return l(e[a.doctor])}function rr(e=process.env){return e[a.gitpod]}function tr(e=process.env){return e[a.codespaceName]}function nr(e=process.env){return e[a.codespacePortForwardingDomain]}function ir(e=process.env){return xe(e).platform!=="localhost"}function or(e=process.env){return e[a.themeToken]}function xe(e=process.env){return x(e[a.codespaces])?{platform:"codespaces",editor:!0}:x(e[a.gitpod])?{platform:"gitpod",editor:!0}:x(e[a.cloudShell])?{platform:"cloudShell",editor:!0}:{platform:"localhost",editor:!1}}async function sr(){try{return await de("git",["--version"]),!0}catch{return!1}}function ur(e=process.env){if(l(e.CI)){let r="unknown";return x(e.BITBUCKET_BUILD_NUMBER)?r="bitbucket":l(e.CIRCLECI)?r="circleci":x(e.GITHUB_ACTION)?r="github":l(e.GITLAB_CI)?r="gitlab":x(e.BUILDKITE)&&(r="buildkite"),{isCI:!0,name:r,metadata:_(r,e)}}else if(l(e.TF_BUILD))return{isCI:!0,name:"azure",metadata:_("azure",e)};return{isCI:!1}}function ar(){return J.default.one()}function cr(e=process.env){let r=e[a.themeKitAccessDomain];return x(r)?r:B}function fr(e=process.env){let r=e[a.otelURL];return x(r)?r:"https://otlp-http-production-cli.shopifysvc.com"}export{je as a,ze as b,Ie as c,Ve as d,We as e,Ye as f,Je as g,Qe as h,Xe as i,Ze as j,er as k,rr as l,tr as m,nr as n,ir as o,or as p,xe as q,sr as r,ur as s,ar as t,cr as u,fr as v};
3
+ `).slice(1),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var K=d((Ae,F)=>{u();var se=I("child_process").execFile;F.exports=function(e){se("/bin/ls",["/sys/class/net"],function(r,n){if(r){e(r,null);return}for(var t=n.split(/[ \t\n]+/),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var B=d((De,G)=>{"use strict";u();var ue=I("child_process").execFile;G.exports=function(e){ue("/sbin/ifconfig",["-l"],function(r,n){if(r){e(r,null);return}for(var t=n.split(/[ \t]+/),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var P=d((Oe,H)=>{u();var ae=I("os"),T;switch(ae.platform()){case"win32":T=q();break;case"linux":T=K();break;case"darwin":case"sunos":case"freebsd":T=B();break;default:console.warn("node-macaddress: Unknown os.platform(), defaulting to 'unix'."),T=B();break}H.exports=T});var j=d((ke,$)=>{u();var ce=I("os");$.exports=function(){var e={};try{var r=ce.networkInterfaces()}catch(n){if(n.syscall==="uv_interface_addresses")return e;throw n}return Object.keys(r).forEach(function(n){var t={},i=!1;r[n].forEach(function(o){if(!o.internal){var c=typeof o.family=="number"?"ipv"+o.family:(o.family||"").toLowerCase();t[c]=o.address,i=!0,o.mac&&o.mac!=="00:00:00:00:00:00"&&(t.mac=o.mac)}}),i&&(e[n]=t)}),e}});var V=d((Fe,z)=>{"use strict";u();var E=b(),p={};p.getMacAddress=S();p.getAllInterfaces=P();p.networkInterfaces=j();var fe=new RegExp("^((en|eth)[0-9]+|ethernet)$","i"),le=new RegExp("^(vboxnet[0-9]+)$","i");p.one=function(){var e=null,r=null;if(arguments.length>=1&&(typeof arguments[0]=="function"?r=arguments[0]:typeof arguments[0]=="string"&&(e=arguments[0]),arguments.length>=2&&typeof arguments[1]=="function"&&(r=arguments[1])),!r)return E.promisify(function(s){p.one(e,s)});if(e){p.getMacAddress(e,r);return}var n=p.networkInterfaces(),t={},i=[],o=[];if(Object.keys(n).forEach(function(s){o.push(s);var f=0,m=n[s];typeof m.mac=="string"&&m.mac!=="00:00:00:00:00:00"&&(t[s]=m.mac,m.ipv4&&(f+=1),m.ipv6&&(f+=1),fe.test(s)&&(f+=2),le.test(s)&&(f-=3),i.push({name:s,score:f,mac:m.mac}))}),i.length>0){i.sort(function(s,f){var m=f.score-s.score;return m!==0?m:s.name<f.name?-1:s.name>f.name?1:0}),E.nextTick(r.bind(null,null,i[0].mac));return}o.push(p.getAllInterfaces);var c=function(s,f){if(t[s]){f(null,t[s]);return}p.getMacAddress(s,f)};E.iterate(o,c,r)};p.all=function(e){if(typeof e!="function")return E.promisify(p.all);var r=p.networkInterfaces(),n={};return Object.keys(r).forEach(function(t){r[t].mac||(n[t]=p.getMacAddress.bind(null,t))}),Object.keys(n).length===0?(typeof e=="function"&&E.nextTick(e.bind(null,null,r)),r):(E.parallel(n,function(t,i){Object.keys(i).forEach(function(o){r[o].mac=i[o]}),typeof e=="function"&&e(null,r)}),null)};z.exports=p});u();u();function x(e){return!(e===void 0||e.trim()==="")}function _(e,r){switch(e){case"bitbucket":return{branch:r.BITBUCKET_BRANCH,build:r.BITBUCKET_BUILD_NUMBER,commitSha:r.BITBUCKET_COMMIT,run:r.BITBUCKET_BUILD_NUMBER,url:`https://bitbucket.org/${r.BITBUCKET_WORKSPACE}/${r.BITBUCKET_REPO_SLUG}/pipelines/results/${r.BITBUCKET_BUILD_NUMBER}`};case"circleci":return{actor:r.CIRCLE_USERNAME,branch:r.CIRCLE_BRANCH,build:r.CIRCLE_BUILD_NUM,commitSha:r.CIRCLE_SHA1,run:r.CIRCLE_WORKFLOW_ID,url:r.CIRCLE_BUILD_URL};case"github":return{actor:r.GITHUB_ACTOR,attempt:r.GITHUB_RUN_ATTEMPT,branch:r.GITHUB_REF_NAME,build:r.GITHUB_RUN_ID,commitSha:r.GITHUB_SHA,run:r.GITHUB_RUN_ID,runNumber:r.GITHUB_RUN_NUMBER,url:`${r.GITHUB_SERVER_URL}/${r.GITHUB_REPOSITORY}/actions/runs/${r.GITHUB_RUN_ID}`};case"gitlab":return{actor:r.GITLAB_USER_LOGIN,branch:r.CI_COMMIT_REF_NAME,build:r.CI_PIPELINE_ID,commitSha:r.CI_COMMIT_SHA,commitMessage:r.CI_COMMIT_MESSAGE,run:r.CI_RUNNER_ID,url:r.CI_PIPELINE_URL};case"buildkite":return{branch:r.BUILDKITE_BRANCH,build:r.BUILDKITE_BUILD_NUMBER,commitSha:r.BUILDKITE_COMMIT,commitMessage:r.BUILDKITE_MESSAGE,run:r.BUILDKITE_BUILD_NUMBER,url:r.BUILDKITE_BUILD_URL};default:return{}}}var J=Q(V());import{homedir as pe}from"os";async function me(e){let{fileExists:r}=await import("./fs-EOQL26C3.js");return r(e)}async function de(e,r){let{exec:n}=await import("./system-D4Z32GDS.js");await n(e,r)}function je(){return!!(process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function ze(){return pe()}var W,Y;function Ie(e=process.env){return e[a.env]==="development"}function Ve(e=process.env){return e===process.env?W??(W=l(e[a.verbose])||process.argv.includes("--verbose")):l(e[a.verbose])||process.argv.includes("--verbose")}async function We(e=process.env){return Object.prototype.hasOwnProperty.call(e,a.runAsUser)?!l(e[a.runAsUser]):await me(v.executables.dev)}function Ye(e=process.env){return e===process.env?Y??(Y=l(e[a.unitTest])):l(e[a.unitTest])}function Je(e=process.env){return l(e[a.noAnalytics])||l(e[a.optOutInstrumentation])||Ie(e)}function Qe(e=process.env){return l(e[a.alwaysLogAnalytics])}function Xe(e=process.env){return l(e[a.alwaysLogMetrics])}function Ze(e=process.env){return l(e[a.doctor])}function er(e=process.env){return e[a.gitpod]}function rr(e=process.env){return e[a.codespaceName]}function tr(e=process.env){return e[a.codespacePortForwardingDomain]}function nr(e=process.env){return xe(e).platform!=="localhost"}function ir(e=process.env){return e[a.themeToken]}function xe(e=process.env){return x(e[a.codespaces])?{platform:"codespaces",editor:!0}:x(e[a.gitpod])?{platform:"gitpod",editor:!0}:x(e[a.cloudShell])?{platform:"cloudShell",editor:!0}:{platform:"localhost",editor:!1}}async function or(){try{return await de("git",["--version"]),!0}catch{return!1}}function sr(e=process.env){if(l(e.CI)){let r="unknown";return x(e.BITBUCKET_BUILD_NUMBER)?r="bitbucket":l(e.CIRCLECI)?r="circleci":x(e.GITHUB_ACTION)?r="github":l(e.GITLAB_CI)?r="gitlab":x(e.BUILDKITE)&&(r="buildkite"),{isCI:!0,name:r,metadata:_(r,e)}}else if(l(e.TF_BUILD))return{isCI:!0,name:"azure",metadata:_("azure",e)};return{isCI:!1}}function ur(){return J.default.one()}function ar(e=process.env){let r=e[a.themeKitAccessDomain];return x(r)?r:C}function cr(e=process.env){let r=e[a.otelURL];return x(r)?r:"https://otlp-http-production-cli.shopifysvc.com"}export{je as a,ze as b,Ie as c,Ve as d,We as e,Ye as f,Je as g,Qe as h,Xe as i,Ze as j,er as k,rr as l,tr as m,nr as n,ir as o,xe as p,or as q,sr as r,ur as s,ar as t,cr as u};
@@ -1 +1 @@
1
- import{b as n}from"./chunk-IDKUJQIG.js";import{u as t}from"./chunk-E24W34C4.js";import{k as r}from"./chunk-JCNRQYRP.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class extends n{static{this.description="Run CLI doctor-release tests"}static{this.hidden=!0}async run(){r()&&t({headline:"Shopify CLI Doctor Release.",body:["Available doctor-release commands:",""," shopify doctor-release theme -e <environment> Run all theme command tests","","The -e/--environment flag is required to specify the store configuration.","Use --help with any command for more options."]})}};export{e as a};
1
+ import{b as n}from"./chunk-2MCH43SL.js";import{u as t}from"./chunk-6YCGMS7X.js";import{j as r}from"./chunk-J3IHP46B.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class extends n{static{this.description="Run CLI doctor-release tests"}static{this.hidden=!0}async run(){r()&&t({headline:"Shopify CLI Doctor Release.",body:["Available doctor-release commands:",""," shopify doctor-release theme -e <environment> Run all theme command tests","","The -e/--environment flag is required to specify the store configuration.","Use --help with any command for more options."]})}};export{e as a};
@@ -1,4 +1,4 @@
1
- import{Ea as cs,Fb as kt,Hb as gs,Pa as hs,Pb as ms,Qa as us,Ta as fs,Wa as ds,bb as ps,ma as wt,pa as be,ua as ls,wa as bt}from"./chunk-EYDNSYYE.js";import{d as we,g as yt,i as as}from"./chunk-773TIA5M.js";import{a as X,c as gi,e as mi,g as ye}from"./chunk-VKWPEFWQ.js";var ui=gi(l=>{"use strict";ye();Object.defineProperty(l,"__esModule",{value:!0});var yi=X("stream"),W=X("path"),G=X("fs"),Es=X("crypto"),O=class{constructor(e,s,i,r,n){this.kind=e,this.input=s,this.begin=i,this.end=r,this.file=n}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,s]=[1,1];for(let i=0;i<this.begin;i++)this.input[i]===`
1
+ import{Ea as cs,Fb as kt,Hb as gs,Pa as hs,Pb as ms,Qa as us,Ta as fs,Wa as ds,bb as ps,ma as wt,pa as be,ua as ls,wa as bt}from"./chunk-3TFUSDHY.js";import{d as we,g as yt,i as as}from"./chunk-773TIA5M.js";import{a as X,c as gi,e as mi,g as ye}from"./chunk-VKWPEFWQ.js";var ui=gi(l=>{"use strict";ye();Object.defineProperty(l,"__esModule",{value:!0});var yi=X("stream"),W=X("path"),G=X("fs"),Es=X("crypto"),O=class{constructor(e,s,i,r,n){this.kind=e,this.input=s,this.begin=i,this.end=r,this.file=n}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,s]=[1,1];for(let i=0;i<this.begin;i++)this.input[i]===`
2
2
  `?(e++,s=1):s++;return[e,s]}size(){return this.end-this.begin}},D=class{liquidMethodMissing(e,s){}},wi=Object.prototype.toString,ys=String.prototype.toLowerCase,Qt=Object.hasOwnProperty;function d(t){return typeof t=="string"}function x(t){return typeof t=="function"}function bi(t){return t&&x(t.then)}function _e(t){return t&&x(t.next)&&x(t.throw)&&x(t.return)}function Kt(t){return function(...e){return new Promise((s,i)=>{t(...e,(r,n)=>{r?i(r):s(n)})})}}function h(t){return t=m(t),d(t)?t:k(t)?"":S(t)?t.map(e=>h(e)).join(""):String(t)}function ge(t){return t=m(t),S(t)?t:d(t)&&t.length>0?[t]:Ti(t)?Array.from(t):dt(t)?Object.keys(t).map(e=>[e,t[e]]):[]}function L(t){return t=m(t),k(t)?[]:S(t)?t:[t]}function m(t){return t instanceof D&&x(t.valueOf)?t.valueOf():t}function xt(t){return+m(t)||0}function ft(t){return typeof t=="number"}function Vs(t){return t&&x(t.toLiquid)?Vs(t.toLiquid()):t}function k(t){return t==null}function ki(t){return t===void 0}function S(t){return wi.call(t)==="[object Array]"}function Ps(t){return t&&ft(t.length)}function Ti(t){return dt(t)&&Symbol.iterator in t}function ws(t,e){t=t||{};for(let s in t)if(Qt.call(t,s)&&e(t[s],s,t)===!1)break;return t}function xi(t){return t[t.length-1]}function dt(t){let e=typeof t;return t!==null&&(e==="object"||e==="function")}function Cs(t,e,s=1){let i=[];for(let r=t;r<e;r+=s)i.push(r);return i}function oe(t,e,s=" "){return $s(t,e,s,(i,r)=>r+i)}function Si(t,e,s=" "){return $s(t,e,s,(i,r)=>i+r)}function $s(t,e,s,i){t=String(t);let r=e-t.length;return r<=0?t:i(t,s.repeat(r))}function js(t){return t}function _i(t){return[...t].some(s=>s>="a"&&s<="z")?t.toUpperCase():t.toLowerCase()}function Li(t,e){return t.length>e?t.slice(0,e-3)+"...":t}function Fi(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||t<e?-1:t>e?1:0}function Oi(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||(t=ys.call(t),e=ys.call(e),t<e)?-1:t>e?1:0}function pt(t){return function(...e){return t.call(this,...e.map(m))}}function V(t){return function(...e){return t.call(this,...e.map(xt))}}function*ke(t){let e=new Set;for(let s of t){let i=JSON.stringify(s);e.has(i)||(e.add(i),yield s)}}var bs="__liquidClass__",E=class extends Error{constructor(e,s){super(typeof e=="string"?e:e.message),this.context="",typeof e!="string"&&Object.defineProperty(this,"originalError",{value:e,enumerable:!1}),Object.defineProperty(this,"token",{value:s,enumerable:!1}),Object.defineProperty(this,bs,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:vi(this.token),enumerable:!1}),this.message=zi(this.message,this.token),this.stack=this.message+`
3
3
  `+this.context+`
4
4
  `+this.stack,this.originalError&&(this.stack+=`
@@ -0,0 +1,18 @@
1
+ import{c as ne,e as te,f as oe,g as ie}from"./chunk-VVFPW4ZQ.js";import{a as Z,c as Q,d as X,e as ee}from"./chunk-MDXSLAIC.js";import{b as I}from"./chunk-HSKB5OTM.js";import{a as J}from"./chunk-DHU767C3.js";import{a as Y}from"./chunk-QG7TELFC.js";import{E as K,H as W,W as H,g as z,ta as q}from"./chunk-NOKCVDYD.js";import{a as G}from"./chunk-KGZH4RFA.js";import{b as j}from"./chunk-2Y6CYLKF.js";import{A as B,D as N,I as $,t as O,u as U,v as A}from"./chunk-6YCGMS7X.js";import{d as L}from"./chunk-VZKR2YFM.js";import{m as h,o as V}from"./chunk-ZTE46E4Z.js";import{Ca as F,Gb as S,L as R,Mb as C,Rb as k,wa as _}from"./chunk-3TFUSDHY.js";import{d as E,i as D}from"./chunk-773TIA5M.js";import{a as ue}from"./chunk-CTNBSUVU.js";import{e as ce,g}from"./chunk-VKWPEFWQ.js";g();g();g();async function ae(e){let n,t;e.bundlePath&&(n=await ee(e.developerPlatformClient,{id:e.apiKey,apiKey:e.apiKey,organizationId:e.organizationId}),await X(n,e.bundlePath));let o={appManifest:e.appManifest,appId:e.appId,apiKey:e.apiKey,name:e.name,organizationId:e.organizationId,skipPublish:!e.release,message:e.message,versionTag:e.version,commitReference:e.commitReference};n&&(o.bundleUrl=n),e.appModules.length>0&&(o.appModules=e.appModules);let s=await e.developerPlatformClient.deploy(o);if(!s.appDeploy.appVersion){let i=fe(s.appDeploy.userErrors??[],e.appModuleRegistrationIds,e.appModules,{version:e.version});throw new h({bold:"Version couldn't be created."},null,[],i)}return s.appDeploy.userErrors?.length>0&&(t=s.appDeploy.userErrors.map(i=>i.message).join(", ")),{validationErrors:s.appDeploy.appVersion.appModuleVersions.filter(i=>i.validationErrors.length>0).map(i=>({uuid:i.registrationUuid,errors:i.validationErrors})),versionTag:s.appDeploy.appVersion.versionTag,location:s.appDeploy.appVersion.location,message:s.appDeploy.appVersion.message,deployError:t}}var v=`
2
+ Validation errors`,T=`
3
+ `;function fe(e,n,t,o={}){let s=l=>l.details?.some(y=>y.extension_id)??!1,a=(l,y)=>{let x=l.details?.find(M=>typeof M.extension_id<"u")?.extension_id??"";return Object.values(y).includes(x.toString())},i=l=>{let y=l.on?l.on[0]:void 0;return t.some(x=>x.uid===y?.user_identifier)},[d,u]=I(e,l=>i(l)),[c,p]=I(u,l=>s(l)),[m,r]=I(c,l=>a(l,n));return[...me(p,{version:o.version}),...ge(m,n),...ye(r),...he(d,t)]}function me(e,n={}){return e.length>0?e.filter(t=>t.field&&t.field.includes("version_tag")&&t.message==="has already been taken").length>0&&n.version?[{body:["An app version with the name",{userInput:n.version},"already exists. Deploy again with a different version name."]}]:e.length===1?[{body:e[0]?.message??""}]:[{body:{list:{items:e.map(t=>t.message)}}}]:[]}function ge(e,n){return e.reduce((t,o)=>{let s=(o.field??["unknown"]).join(".").replace("extension_points","extensions.targeting"),a=s==="base"?o.message:`${s}: ${o.message}`,i=o.details.find(r=>typeof r.extension_title<"u")?.extension_title,d=o.details.find(r=>typeof r.specification_identifier<"u")?.specification_identifier,u=o.details.find(r=>typeof r.extension_id<"u")?.extension_id?.toString(),p=Object.keys(n).find(r=>n[r]===u)??i;d==="webhook_subscription"&&(p="Webhook Subscription");let m=t.find(r=>r.title===p);if(m){let r=m.body,f=o.category==="invalid"?r.find(l=>l.list.title===v):r.find(l=>l.list.title===T);f?f.list.items.includes(a)||f.list.items.push(a):r.push({list:{title:o.category==="invalid"?v:T,items:[a]}})}else t.push({title:p,body:[{list:{title:o.category==="invalid"?v:T,items:[a]}}]});return t.forEach(r=>{r.body.sort((f,l)=>f.list.title===v?1:l.list.title===v?-1:0)}),t},[])}function he(e,n){return e.reduce((t,o)=>{let a=(o.on?o.on[0]:void 0)?.user_identifier,i=n.find(r=>r.uid===a),d=a?`Extension with uid: ${a}`:"Unknown Extension",u=i?.handle??d,p=`${(o.field??["unknown"]).join(".")}: ${o.message}`,m=t.find(r=>r.title===u);if(m){let f=m.body.find(l=>l.list.title===v);f&&(f.list.items.includes(p)||f.list.items.push(p))}else t.push({title:u,body:[{list:{title:v,items:[p]}}]});return t},[])}function ye(e){return e.reduce((n,t)=>{let o=t.details.find(a=>typeof a.extension_title<"u")?.extension_title,s=n.find(a=>a.title===o);return s?s.errorCount+=1:n.push({title:o,errorCount:1}),n},[]).map(n=>({title:n.title,body:`
4
+ ${n.errorCount} error${n.errorCount>1?"s":""} found in your extensions. Fix these issues and try deploying again.`}))}g();async function se(e){let n=E(e.app.directory,".shopify","deploy-bundle");await F(n,{force:!0}),await _(n),await Z(e.appManifest,n),e.skipBuild||await z(e.app);let t=e.app.allExtensions.map(s=>({prefix:s.localIdentifier,action:async(a,i,d)=>{await s.buildForBundle({stderr:i,stdout:a,signal:d,app:e.app,environment:"production",skipBuild:e.skipBuild},n)}}));if(await O({processes:t,showTimestamps:!1}),e.app.allExtensions.some(s=>s.hasDeploySteps))return await Q(n,e.bundlePath),e.bundlePath}async function we(e){let{app:n,remoteApp:t,developerPlatformClient:o,noRelease:s,allowUpdates:a,allowDeletes:i,extensions:d}=e,u=[s,a,i].some(Boolean),c=[`App can't be deployed until Partner Dashboard managed extensions are added to your version or removed from your app:
5
+ `,d.map(f=>` - ${f.title}`).join(`
6
+ `)],p=[`
7
+
8
+ Run `,{command:"shopify app import-extensions"}," to add legacy extensions."];if(u||!$())throw new h(c,p);let m=[`
9
+
10
+ Run `,{command:"shopify app import-extensions"}," to add legacy extensions now?"];if(await B({message:[...c,...m],confirmationMessage:"Yes, add legacy extensions and deploy",cancellationMessage:"No, don't add legacy extensions"}))return await oe({app:n,remoteApp:t,developerPlatformClient:o,extensions:d}),K(n);throw new V}async function be(e){let{app:n,remoteApp:t,developerPlatformClient:o}=e,s=await ie({developerPlatformClient:o,apiKey:t.apiKey,organizationId:t.organizationId,extensionTypes:ne,onlyDashboardManaged:!0}),a=te(e.app,s);return a.length===0?n:we({...e,extensions:a})}async function re(e){let{remoteApp:n,developerPlatformClient:t,noRelease:o,allowUpdates:s,allowDeletes:a}=e,i=await be({app:e.app,remoteApp:n,developerPlatformClient:t,noRelease:o,allowUpdates:s,allowDeletes:a}),{deployIdentifiers:d,didMigrateExtensionsToDevDash:u}=await H({...e,app:i,developerPlatformClient:t,allowUpdates:s,allowDeletes:a}),c=!o,p=n.apiKey;k(),c?C(`Releasing a new app version as part of ${n.title}`):C(`Creating a new app version as part of ${n.title}`),k();let m,r=E(e.app.directory,".shopify",`deploy-bundle.${t.bundleFormat}`);await _(D(r));let f=await i.manifest(xe(i,d.appModuleUuids)),l=await se({app:i,appManifest:f,bundlePath:r,skipBuild:e.skipBuild}),y;return c?y="Releasing an app version":y="Creating an app version",await N([{title:"Running validation",task:async()=>{await i.preDeployValidation()}},{title:y,task:async()=>{let M=await Promise.all(i.allExtensions.flatMap(pe=>pe.bundleConfig({appModuleUuids:d.appModuleUuids,developerPlatformClient:t,apiKey:p,appConfiguration:i.configuration})));m=await ae({appManifest:f,appId:n.id,apiKey:p,name:i.name,organizationId:n.organizationId,bundlePath:l,appModules:R(M),release:c,developerPlatformClient:t,appModuleRegistrationIds:d.appModuleRegistrationIds,message:e.message,version:e.version,commitReference:e.commitReference})}}]),await ve({app:i,project:e.project,release:c,uploadExtensionsBundleResult:m,didMigrateExtensionsToDevDash:u}),{app:i}}async function ve({app:e,project:n,release:t,uploadExtensionsBundleResult:o,didMigrateExtensionsToDevDash:s}){let a=[{link:{label:o.versionTag??"version",url:o.location}},o.message?`
11
+ ${o.message}`:""],i=[];if(s){let d=await W(e.directory),u=Object.values(d).filter(p=>p!==d[e.configuration.client_id]),c=[];u.length>0&&c.push("\u2022 Map extension IDs to other copies of your app by running",{command:S(n.packageManager,"shopify app deploy")},"for: ",{list:{items:u}}),c.push("\u2022 Commit to source control to ensure your extension IDs aren't regenerated on the next deploy."),i=[{title:"Next steps",body:c},{title:"Reference",body:["\u2022 ",{link:{label:"Migrating from the Partner Dashboard",url:"https://shopify.dev/docs/apps/build/dev-dashboard/migrate-from-partners"}}]}]}return t?o.deployError?U({headline:"New version created, but not released.",body:[...a,`
12
+
13
+ ${o.deployError}`],customSections:i}):A({headline:"New version released to users.",body:a,customSections:i}):A({headline:"New version created.",body:a,customSections:i,nextSteps:[["Run",{command:S(n.packageManager,"shopify app release",`--version=${o.versionTag}`)},"to release this version to users."]]})}function xe(e,n){return Object.fromEntries(e.allExtensions.filter(t=>t.isUUIDStrategyExtension).map(t=>[t.localIdentifier,n[t.localIdentifier]]))}g();function le(e){if(typeof e>"u")return;let n=["Invalid version name:",{userInput:e}],t=100;if(e.length>t)throw new h(n,`Version name must be ${t} characters or less.`);let o=[".",".."];if(o.find(a=>e===a))throw new h(n,`Version name may not be any of: ${o.map(a=>`'${a}'`).join(" , ")}`);let s=/^[a-zA-Z0-9.\-_]+$/;if(!e.match(s))throw new h(n,["Version name can only contain alphanumeric characters, periods, hyphens, and underscores"])}g();function de(e){if(typeof e>"u")return;let n=["Invalid message:",{userInput:e}],t=200;if(e.length>t)throw new h(n,`Message name must be ${t} characters or less.`)}var w=ce(ue(),1);var P,b=class extends J{async run(){let{flags:n}=await this.parse(P);await G.addPublicMetadata(()=>({cmd_deploy_flag_message_used:!!n.message,cmd_deploy_flag_version_used:!!n.version,cmd_deploy_flag_source_url_used:!!n["source-control-url"]})),le(n.version),de(n.message);let t=n["client-id"];await L(()=>({cmd_app_reset_used:n.reset}));let o=[];n["no-release"]||n["allow-updates"]||n["allow-deletes"]||o.push("allow-updates"),this.failMissingNonTTYFlags(n,o);let{app:a,project:i,remoteApp:d,developerPlatformClient:u,organization:c}=await q({directory:n.path,clientId:t,forceRelink:n.reset,userProvidedConfigName:n.config}),p=n["no-release"]||n["allow-updates"],m=n["no-release"]||n["allow-deletes"];return{app:(await re({app:a,project:i,remoteApp:d,organization:c,developerPlatformClient:u,reset:n.reset,allowUpdates:p,allowDeletes:m,noRelease:n["no-release"],message:n.message,version:n.version,commitReference:n["source-control-url"],skipBuild:n["no-build"]})).app}}};P=b;b.summary="Deploy your Shopify app.";b.descriptionWithMarkdown=`[Builds the app](https://shopify.dev/docs/api/shopify-cli/app/app-build), then deploys your app configuration and extensions.
14
+
15
+ This command creates an app version, which is a snapshot of your app configuration and all extensions. This version is then released to users.
16
+
17
+ This command doesn't deploy your [web app](https://shopify.dev/docs/apps/tools/cli/structure#web-components). You need to [deploy your web app](https://shopify.dev/docs/apps/deployment/web) to your own hosting solution.
18
+ `;b.description=P.descriptionWithoutMarkdown();b.flags={...j,...Y,"allow-updates":w.Flags.boolean({hidden:!1,description:"Allows adding and updating extensions and configuration without requiring user confirmation. Recommended option for CI/CD environments.",env:"SHOPIFY_FLAG_ALLOW_UPDATES"}),"allow-deletes":w.Flags.boolean({hidden:!1,description:"Allows removing extensions and configuration without requiring user confirmation. For CI/CD environments, the recommended flag is --allow-updates.",env:"SHOPIFY_FLAG_ALLOW_DELETES"}),"no-release":w.Flags.boolean({hidden:!1,description:"Creates a version but doesn't release it - it's not made available to merchants. With this flag, a user confirmation is not required.",env:"SHOPIFY_FLAG_NO_RELEASE",default:!1,exclusive:["allow-updates","allow-deletes"]}),"no-build":w.Flags.boolean({description:"Use with caution: Skips building any elements of the app that require building. You should ensure your app has been prepared in advance, such as by running `shopify app build` or by caching build artifacts.",env:"SHOPIFY_FLAG_NO_BUILD",default:!1}),message:w.Flags.string({hidden:!1,description:"Optional message that will be associated with this version. This is for internal use only and won't be available externally.",env:"SHOPIFY_FLAG_MESSAGE"}),version:w.Flags.string({hidden:!1,description:"Optional version tag that will be associated with this app version. If not provided, an auto-generated identifier will be generated for this app version.",env:"SHOPIFY_FLAG_VERSION"}),"source-control-url":w.Flags.string({hidden:!1,description:"URL associated with the new app version.",env:"SHOPIFY_FLAG_SOURCE_CONTROL_URL"})};var cn=b;export{cn as a};
@@ -1 +1 @@
1
- import{a as c,b as f,c as g,d as x,g as C}from"./chunk-DKKBJ4H5.js";import{a as d}from"./chunk-6ZRHK4ON.js";import{a as l}from"./chunk-7XQDZF73.js";import{Fa as m}from"./chunk-UZ7U322K.js";import{b as p}from"./chunk-Q6LCSRIW.js";import{v as s}from"./chunk-E24W34C4.js";import{r as I}from"./chunk-T6CC5WUU.js";import{e as y,g as a}from"./chunk-VKWPEFWQ.js";a();var h=y(I(),1);var i=class u extends d{async run(){let{flags:o}=await this.parse(u),e=await m({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config}),t=await C({developerPlatformClient:e.developerPlatformClient,apiKey:e.remoteApp.apiKey,organizationId:e.remoteApp.organizationId,extensionTypes:g}),n=c(t);if(n.length===0)s({headline:["No extensions to migrate."]});else{let r=await f(n);await x({...e,extensions:t,extensionTypes:r.extensionTypes,buildExtensionConfig:r.buildExtensionConfig})}return{app:e.app}}};i.description="Import dashboard-managed extensions into your app.";i.flags={...p,...l,"client-id":h.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]})};var k=i;export{k as a};
1
+ import{a as c,b as f,c as g,d as x,g as C}from"./chunk-VVFPW4ZQ.js";import{a as d}from"./chunk-DHU767C3.js";import{a as l}from"./chunk-QG7TELFC.js";import{ta as m}from"./chunk-NOKCVDYD.js";import{b as p}from"./chunk-2Y6CYLKF.js";import{v as s}from"./chunk-6YCGMS7X.js";import{a as I}from"./chunk-CTNBSUVU.js";import{e as y,g as a}from"./chunk-VKWPEFWQ.js";a();var h=y(I(),1);var i=class u extends d{async run(){let{flags:o}=await this.parse(u),e=await m({directory:o.path,clientId:o["client-id"],forceRelink:o.reset,userProvidedConfigName:o.config}),t=await C({developerPlatformClient:e.developerPlatformClient,apiKey:e.remoteApp.apiKey,organizationId:e.remoteApp.organizationId,extensionTypes:g}),n=c(t);if(n.length===0)s({headline:["No extensions to migrate."]});else{let r=await f(n);await x({...e,extensions:t,extensionTypes:r.extensionTypes,buildExtensionConfig:r.buildExtensionConfig})}return{app:e.app}}};i.description="Import dashboard-managed extensions into your app.";i.flags={...p,...l,"client-id":h.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]})};var k=i;export{k as a};
@@ -1,3 +1,3 @@
1
- import{a as n}from"./chunk-IQYZAALJ.js";import{p as i,v as m}from"./chunk-PTIJDS6I.js";import{b as t}from"./chunk-Q6LCSRIW.js";import{r as c}from"./chunk-T6CC5WUU.js";import{e as l,g as r}from"./chunk-VKWPEFWQ.js";r();var a=l(c(),1),s,o=class extends m{async command(e){let d={path:e.path,password:e.password,store:e.store,force:e.force,verbose:e.verbose,noColor:e["no-color"]};await n(d)}};s=o;o.summary="Download metafields definitions from your shop into a local file.";o.descriptionWithMarkdown=`Retrieves metafields from Shopify Admin.
1
+ import{a as n}from"./chunk-FPWLEGKZ.js";import{p as i,v as m}from"./chunk-Z5DDPQ26.js";import{b as t}from"./chunk-2Y6CYLKF.js";import{a as c}from"./chunk-CTNBSUVU.js";import{e as l,g as r}from"./chunk-VKWPEFWQ.js";r();var a=l(c(),1),s,o=class extends m{async command(e){let d={path:e.path,password:e.password,store:e.store,force:e.force,verbose:e.verbose,noColor:e["no-color"]};await n(d)}};s=o;o.summary="Download metafields definitions from your shop into a local file.";o.descriptionWithMarkdown=`Retrieves metafields from Shopify Admin.
2
2
 
3
3
  If the metafields file already exists, it will be overwritten.`;o.description=s.descriptionWithoutMarkdown();o.flags={...t,...i,force:a.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"})};o.multiEnvironmentsFlags=null;var v=o;export{v as a};
@@ -0,0 +1,44 @@
1
+ import{a as ie,c as M,g as d}from"./chunk-VKWPEFWQ.js";var Ue=M((Ln,De)=>{d();De.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var Fe=M((Nn,Ke)=>{d();var zt=Ue(),qe={"{":"}","(":")","[":"]"},Yt=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,s=-2,i=-2,u=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(u===-1||u>n||(u=e.indexOf("\\",t),u===-1||u>n)))||s!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(s=e.indexOf("}",t),s>t&&(u=e.indexOf("\\",t),u===-1||u>s))||i!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(i=e.indexOf(")",t),i>t&&(u=e.indexOf("\\",t),u===-1||u>i))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(i=e.indexOf(")",r),i>r&&(u=e.indexOf("\\",r),u===-1||u>i))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var A=qe[a];if(A){var _=e.indexOf(A,t);_!==-1&&(t=_+1)}if(e[t]==="!")return!0}else t++}return!1},Vt=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=qe[r];if(n){var s=e.indexOf(n,t);s!==-1&&(t=s+1)}if(e[t]==="!")return!0}else t++}return!1};Ke.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(zt(t))return!0;var n=Yt;return r&&r.strict===!1&&(n=Vt),n(t)}});var ir=M((In,Xe)=>{"use strict";d();var Jt=Fe(),er=ie("path").posix.dirname,tr=ie("os").platform()==="win32",be="/",rr=/\\/g,nr=/[\{\[].*[\}\]]$/,sr=/(^|[^\\])([\{\[]|\([^\)]+$)/,ur=/\\([\!\*\?\|\[\]\(\)\{\}])/g;Xe.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&tr&&t.indexOf(be)<0&&(t=t.replace(rr,be)),nr.test(t)&&(t+=be),t+="a";do t=er(t);while(Jt(t)||sr.test(t));return t.replace(ur,"$1")}});var Re=M(W=>{"use strict";d();W.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;W.find=(e,t)=>e.nodes.find(r=>r.type===t);W.exceedsLimit=(e,t,r=1,n)=>n===!1||!W.isInteger(e)||!W.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;W.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};W.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;W.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;W.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;W.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);W.flatten=(...e)=>{let t=[],r=n=>{for(let s=0;s<n.length;s++){let i=n[s];if(Array.isArray(i)){r(i);continue}i!==void 0&&t.push(i)}return t};return r(e),t}});var _e=M((Pn,We)=>{"use strict";d();var Qe=Re();We.exports=(e,t={})=>{let r=(n,s={})=>{let i=t.escapeInvalid&&Qe.isInvalidBrace(s),u=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(i||u)&&Qe.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let A of n.nodes)a+=r(A);return a};return r(e)}});var je=M((Dn,Ze)=>{"use strict";d();Ze.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var st=M((qn,nt)=>{"use strict";d();var ze=je(),se=(e,t,r)=>{if(ze(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ze(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let s=String(n.relaxZeros),i=String(n.shorthand),u=String(n.capture),a=String(n.wrap),A=e+":"+t+"="+s+i+u+a;if(se.cache.hasOwnProperty(A))return se.cache[A].result;let _=Math.min(e,t),g=Math.max(e,t);if(Math.abs(_-g)===1){let R=e+"|"+t;return n.capture?`(${R})`:n.wrap===!1?R:`(?:${R})`}let x=rt(e)||rt(t),f={min:e,max:t,a:_,b:g},H=[],E=[];if(x&&(f.isPadded=x,f.maxLen=String(f.max).length),_<0){let R=g<0?Math.abs(g):1;E=Ye(R,Math.abs(_),f,n),_=f.a=0}return g>=0&&(H=Ye(_,g,f,n)),f.negatives=E,f.positives=H,f.result=ar(E,H,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&H.length+E.length>1&&(f.result=`(?:${f.result})`),se.cache[A]=f,f.result};function ar(e,t,r){let n=Se(e,t,"-",!1,r)||[],s=Se(t,e,"",!1,r)||[],i=Se(e,t,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function or(e,t){let r=1,n=1,s=Je(e,r),i=new Set([t]);for(;e<=s&&s<=t;)i.add(s),r+=1,s=Je(e,r);for(s=et(t+1,n)-1;e<s&&s<=t;)i.add(s),n+=1,s=et(t+1,n)-1;return i=[...i],i.sort(fr),i}function lr(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=cr(e,t),s=n.length,i="",u=0;for(let a=0;a<s;a++){let[A,_]=n[a];A===_?i+=A:A!=="0"||_!=="9"?i+=pr(A,_,r):u++}return u&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[u],digits:s}}function Ye(e,t,r,n){let s=or(e,t),i=[],u=e,a;for(let A=0;A<s.length;A++){let _=s[A],g=lr(String(u),String(_),n),x="";if(!r.isPadded&&a&&a.pattern===g.pattern){a.count.length>1&&a.count.pop(),a.count.push(g.count[0]),a.string=a.pattern+tt(a.count),u=_+1;continue}r.isPadded&&(x=hr(_,r,n)),g.string=x+g.pattern+tt(g.count),i.push(g),u=_+1,a=g}return i}function Se(e,t,r,n,s){let i=[];for(let u of e){let{string:a}=u;!n&&!Ve(t,"string",a)&&i.push(r+a),n&&Ve(t,"string",a)&&i.push(r+a)}return i}function cr(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function fr(e,t){return e>t?1:t>e?-1:0}function Ve(e,t,r){return e.some(n=>n[t]===r)}function Je(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function et(e,t){return e-e%Math.pow(10,t)}function tt(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function pr(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function rt(e){return/^-?(0+)\d/.test(e)}function hr(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}se.cache={};se.clearCache=()=>se.cache={};nt.exports=se});var $e=M((Fn,ft)=>{"use strict";d();var Ar=ie("util"),it=st(),ut=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),gr=e=>t=>e===!0?Number(t):String(t),He=e=>typeof e=="number"||typeof e=="string"&&e!=="",le=e=>Number.isInteger(+e),ve=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Rr=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,_r=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},xe=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Er=(e,t,r)=>{e.negatives.sort((a,A)=>a<A?-1:a>A?1:0),e.positives.sort((a,A)=>a<A?-1:a>A?1:0);let n=t.capture?"":"?:",s="",i="",u;return e.positives.length&&(s=e.positives.map(a=>xe(String(a),r)).join("|")),e.negatives.length&&(i=`-(${n}${e.negatives.map(a=>xe(String(a),r)).join("|")})`),s&&i?u=`${s}|${i}`:u=s||i,t.wrap?`(${n}${u})`:u},at=(e,t,r,n)=>{if(r)return it(e,t,{wrap:!1,...n});let s=String.fromCharCode(e);if(e===t)return s;let i=String.fromCharCode(t);return`[${s}-${i}]`},ot=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${e.join("|")})`:e.join("|")}return it(e,t,r)},lt=(...e)=>new RangeError("Invalid range arguments: "+Ar.inspect(...e)),ct=(e,t,r)=>{if(r.strictRanges===!0)throw lt([e,t]);return[]},xr=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Cr=(e,t,r=1,n={})=>{let s=Number(e),i=Number(t);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw lt([e,t]);return[]}s===0&&(s=0),i===0&&(i=0);let u=s>i,a=String(e),A=String(t),_=String(r);r=Math.max(Math.abs(r),1);let g=ve(a)||ve(A)||ve(_),x=g?Math.max(a.length,A.length,_.length):0,f=g===!1&&Rr(e,t,n)===!1,H=n.transform||gr(f);if(n.toRegex&&r===1)return at(xe(e,x),xe(t,x),!0,n);let E={negatives:[],positives:[]},R=K=>E[K<0?"negatives":"positives"].push(Math.abs(K)),$=[],w=0;for(;u?s>=i:s<=i;)n.toRegex===!0&&r>1?R(s):$.push(_r(H(s,w),x,f)),s=u?s-r:s+r,w++;return n.toRegex===!0?r>1?Er(E,n,x):ot($,null,{wrap:!1,...n}):$},yr=(e,t,r=1,n={})=>{if(!le(e)&&e.length>1||!le(t)&&t.length>1)return ct(e,t,n);let s=n.transform||(f=>String.fromCharCode(f)),i=`${e}`.charCodeAt(0),u=`${t}`.charCodeAt(0),a=i>u,A=Math.min(i,u),_=Math.max(i,u);if(n.toRegex&&r===1)return at(A,_,!1,n);let g=[],x=0;for(;a?i>=u:i<=u;)g.push(s(i,x)),i=a?i-r:i+r,x++;return n.toRegex===!0?ot(g,null,{wrap:!1,options:n}):g},Ee=(e,t,r,n={})=>{if(t==null&&He(e))return[e];if(!He(e)||!He(t))return ct(e,t,n);if(typeof r=="function")return Ee(e,t,1,{transform:r});if(ut(r))return Ee(e,t,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,le(r)?le(e)&&le(t)?Cr(e,t,r,s):yr(e,t,Math.max(Math.abs(r),1),s):r!=null&&!ut(r)?xr(r,s):Ee(e,t,1,r)};ft.exports=Ee});var At=M((Qn,ht)=>{"use strict";d();var dr=$e(),pt=Re(),br=(e,t={})=>{let r=(n,s={})=>{let i=pt.isInvalidBrace(s),u=n.invalid===!0&&t.escapeInvalid===!0,a=i===!0||u===!0,A=t.escapeInvalid===!0?"\\":"",_="";if(n.isOpen===!0)return A+n.value;if(n.isClose===!0)return console.log("node.isClose",A,n.value),A+n.value;if(n.type==="open")return a?A+n.value:"(";if(n.type==="close")return a?A+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let g=pt.reduce(n.nodes),x=dr(...g,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(x.length!==0)return g.length>1&&x.length>1?`(${x})`:x}if(n.nodes)for(let g of n.nodes)_+=r(g,n);return _};return r(e)};ht.exports=br});var _t=M((Zn,Rt)=>{"use strict";d();var Sr=$e(),gt=_e(),ae=Re(),ue=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ae.flatten(t).map(s=>`{${s}}`):t;for(let s of e)if(Array.isArray(s))for(let i of s)n.push(ue(i,t,r));else for(let i of t)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?ue(s,i,r):s+i);return ae.flatten(n)},Hr=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(s,i={})=>{s.queue=[];let u=i,a=i.queue;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,a=u.queue;if(s.invalid||s.dollar){a.push(ue(a.pop(),gt(s,t)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){a.push(ue(a.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let x=ae.reduce(s.nodes);if(ae.exceedsLimit(...x,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Sr(...x,t);f.length===0&&(f=gt(s,t)),a.push(ue(a.pop(),f)),s.nodes=[];return}let A=ae.encloseBrace(s),_=s.queue,g=s;for(;g.type!=="brace"&&g.type!=="root"&&g.parent;)g=g.parent,_=g.queue;for(let x=0;x<s.nodes.length;x++){let f=s.nodes[x];if(f.type==="comma"&&s.type==="brace"){x===1&&_.push(""),_.push("");continue}if(f.type==="close"){a.push(ue(a.pop(),_,A));continue}if(f.value&&f.type!=="open"){_.push(ue(_.pop(),f.value));continue}f.nodes&&n(f,s)}return _};return ae.flatten(n(e))};Rt.exports=Hr});var xt=M((zn,Et)=>{"use strict";d();Et.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var St=M((Vn,bt)=>{"use strict";d();var vr=_e(),{MAX_LENGTH:Ct,CHAR_BACKSLASH:Te,CHAR_BACKTICK:$r,CHAR_COMMA:Tr,CHAR_DOT:Or,CHAR_LEFT_PARENTHESES:Lr,CHAR_RIGHT_PARENTHESES:mr,CHAR_LEFT_CURLY_BRACE:Nr,CHAR_RIGHT_CURLY_BRACE:wr,CHAR_LEFT_SQUARE_BRACKET:yt,CHAR_RIGHT_SQUARE_BRACKET:dt,CHAR_DOUBLE_QUOTE:Ir,CHAR_SINGLE_QUOTE:Br,CHAR_NO_BREAK_SPACE:kr,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Mr}=xt(),Pr=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Ct,r.maxLength):Ct;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let s={type:"root",input:e,nodes:[]},i=[s],u=s,a=s,A=0,_=e.length,g=0,x=0,f,H=()=>e[g++],E=R=>{if(R.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&R.type==="text"){a.value+=R.value;return}return u.nodes.push(R),R.parent=u,R.prev=a,a=R,R};for(E({type:"bos"});g<_;)if(u=i[i.length-1],f=H(),!(f===Mr||f===kr)){if(f===Te){E({type:"text",value:(t.keepEscaping?f:"")+H()});continue}if(f===dt){E({type:"text",value:"\\"+f});continue}if(f===yt){A++;let R;for(;g<_&&(R=H());){if(f+=R,R===yt){A++;continue}if(R===Te){f+=H();continue}if(R===dt&&(A--,A===0))break}E({type:"text",value:f});continue}if(f===Lr){u=E({type:"paren",nodes:[]}),i.push(u),E({type:"text",value:f});continue}if(f===mr){if(u.type!=="paren"){E({type:"text",value:f});continue}u=i.pop(),E({type:"text",value:f}),u=i[i.length-1];continue}if(f===Ir||f===Br||f===$r){let R=f,$;for(t.keepQuotes!==!0&&(f="");g<_&&($=H());){if($===Te){f+=$+H();continue}if($===R){t.keepQuotes===!0&&(f+=$);break}f+=$}E({type:"text",value:f});continue}if(f===Nr){x++;let $={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||u.dollar===!0,depth:x,commas:0,ranges:0,nodes:[]};u=E($),i.push(u),E({type:"open",value:f});continue}if(f===wr){if(u.type!=="brace"){E({type:"text",value:f});continue}let R="close";u=i.pop(),u.close=!0,E({type:R,value:f}),x--,u=i[i.length-1];continue}if(f===Tr&&x>0){if(u.ranges>0){u.ranges=0;let R=u.nodes.shift();u.nodes=[R,{type:"text",value:vr(u)}]}E({type:"comma",value:f}),u.commas++;continue}if(f===Or&&x>0&&u.commas===0){let R=u.nodes;if(x===0||R.length===0){E({type:"text",value:f});continue}if(a.type==="dot"){if(u.range=[],a.value+=f,a.type="range",u.nodes.length!==3&&u.nodes.length!==5){u.invalid=!0,u.ranges=0,a.type="text";continue}u.ranges++,u.args=[];continue}if(a.type==="range"){R.pop();let $=R[R.length-1];$.value+=a.value+f,a=$,u.ranges--;continue}E({type:"dot",value:f});continue}E({type:"text",value:f})}do if(u=i.pop(),u.type!=="root"){u.nodes.forEach(w=>{w.nodes||(w.type==="open"&&(w.isOpen=!0),w.type==="close"&&(w.isClose=!0),w.nodes||(w.type="text"),w.invalid=!0)});let R=i[i.length-1],$=R.nodes.indexOf(u);R.nodes.splice($,1,...u.nodes)}while(i.length>0);return E({type:"eos"}),s};bt.exports=Pr});var qr=M((es,vt)=>{"use strict";d();var Ht=_e(),Gr=At(),Dr=_t(),Ur=St(),Q=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let s=Q.create(n,t);Array.isArray(s)?r.push(...s):r.push(s)}else r=[].concat(Q.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Q.parse=(e,t={})=>Ur(e,t);Q.stringify=(e,t={})=>Ht(typeof e=="string"?Q.parse(e,t):e,t);Q.compile=(e,t={})=>(typeof e=="string"&&(e=Q.parse(e,t)),Gr(e,t));Q.expand=(e,t={})=>{typeof e=="string"&&(e=Q.parse(e,t));let r=Dr(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Q.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Q.compile(e,t):Q.expand(e,t);vt.exports=Q});var ce=M((rs,mt)=>{"use strict";d();var Kr=ie("path"),J="\\\\/",$t=`[^${J}]`,Fr=0,ee="\\.",Xr="\\+",Qr="\\?",Ce="\\/",Wr="(?=.)",Tt="[^/]",Oe=`(?:${Ce}|$)`,Ot=`(?:^|${Ce})`,Le=`${ee}{1,2}${Oe}`,Zr=`(?!${ee})`,jr=`(?!${Ot}${Le})`,zr=`(?!${ee}{0,1}${Oe})`,Yr=`(?!${Le})`,Vr=`[^.${Ce}]`,Jr=`${Tt}*?`,Lt={DOT_LITERAL:ee,PLUS_LITERAL:Xr,QMARK_LITERAL:Qr,SLASH_LITERAL:Ce,ONE_CHAR:Wr,QMARK:Tt,END_ANCHOR:Oe,DOTS_SLASH:Le,NO_DOT:Zr,NO_DOTS:jr,NO_DOT_SLASH:zr,NO_DOTS_SLASH:Yr,QMARK_NO_DOT:Vr,STAR:Jr,START_ANCHOR:Ot},en={...Lt,SLASH_LITERAL:`[${J}]`,QMARK:$t,STAR:`${$t}*?`,DOTS_SLASH:`${ee}{1,2}(?:[${J}]|$)`,NO_DOT:`(?!${ee})`,NO_DOTS:`(?!(?:^|[${J}])${ee}{1,2}(?:[${J}]|$))`,NO_DOT_SLASH:`(?!${ee}{0,1}(?:[${J}]|$))`,NO_DOTS_SLASH:`(?!${ee}{1,2}(?:[${J}]|$))`,QMARK_NO_DOT:`[^.${J}]`,START_ANCHOR:`(?:^|[${J}])`,END_ANCHOR:`(?:[${J}]|$)`},tn={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};mt.exports={DEFAULT_MAX_EXTGLOB_RECURSION:Fr,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:tn,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:Kr.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?en:Lt}}});var ye=M(F=>{"use strict";d();var rn=ie("path"),nn=process.platform==="win32",{REGEX_BACKSLASH:sn,REGEX_REMOVE_BACKSLASH:un,REGEX_SPECIAL_CHARS:an,REGEX_SPECIAL_CHARS_GLOBAL:on}=ce();F.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);F.hasRegexChars=e=>an.test(e);F.isRegexChar=e=>e.length===1&&F.hasRegexChars(e);F.escapeRegex=e=>e.replace(on,"\\$1");F.toPosixSlashes=e=>e.replace(sn,"/");F.removeBackslashes=e=>e.replace(un,t=>t==="\\"?"":t);F.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};F.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:nn===!0||rn.sep==="\\";F.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?F.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};F.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};F.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",s=r.contains?"":"$",i=`${n}(?:${e})${s}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i}});var Gt=M((is,Pt)=>{"use strict";d();var Nt=ye(),{CHAR_ASTERISK:me,CHAR_AT:ln,CHAR_BACKWARD_SLASH:fe,CHAR_COMMA:cn,CHAR_DOT:Ne,CHAR_EXCLAMATION_MARK:we,CHAR_FORWARD_SLASH:Mt,CHAR_LEFT_CURLY_BRACE:Ie,CHAR_LEFT_PARENTHESES:Be,CHAR_LEFT_SQUARE_BRACKET:fn,CHAR_PLUS:pn,CHAR_QUESTION_MARK:wt,CHAR_RIGHT_CURLY_BRACE:hn,CHAR_RIGHT_PARENTHESES:It,CHAR_RIGHT_SQUARE_BRACKET:An}=ce(),Bt=e=>e===Mt||e===fe,kt=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},gn=(e,t)=>{let r=t||{},n=e.length-1,s=r.parts===!0||r.scanToEnd===!0,i=[],u=[],a=[],A=e,_=-1,g=0,x=0,f=!1,H=!1,E=!1,R=!1,$=!1,w=!1,K=!1,I=!1,Z=!1,G=!1,te=0,U,C,v={value:"",depth:0,isGlob:!1},P=()=>_>=n,c=()=>A.charCodeAt(_+1),m=()=>(U=C,A.charCodeAt(++_));for(;_<n;){C=m();let q;if(C===fe){K=v.backslashes=!0,C=m(),C===Ie&&(w=!0);continue}if(w===!0||C===Ie){for(te++;P()!==!0&&(C=m());){if(C===fe){K=v.backslashes=!0,m();continue}if(C===Ie){te++;continue}if(w!==!0&&C===Ne&&(C=m())===Ne){if(f=v.isBrace=!0,E=v.isGlob=!0,G=!0,s===!0)continue;break}if(w!==!0&&C===cn){if(f=v.isBrace=!0,E=v.isGlob=!0,G=!0,s===!0)continue;break}if(C===hn&&(te--,te===0)){w=!1,f=v.isBrace=!0,G=!0;break}}if(s===!0)continue;break}if(C===Mt){if(i.push(_),u.push(v),v={value:"",depth:0,isGlob:!1},G===!0)continue;if(U===Ne&&_===g+1){g+=2;continue}x=_+1;continue}if(r.noext!==!0&&(C===pn||C===ln||C===me||C===wt||C===we)===!0&&c()===Be){if(E=v.isGlob=!0,R=v.isExtglob=!0,G=!0,C===we&&_===g&&(Z=!0),s===!0){for(;P()!==!0&&(C=m());){if(C===fe){K=v.backslashes=!0,C=m();continue}if(C===It){E=v.isGlob=!0,G=!0;break}}continue}break}if(C===me){if(U===me&&($=v.isGlobstar=!0),E=v.isGlob=!0,G=!0,s===!0)continue;break}if(C===wt){if(E=v.isGlob=!0,G=!0,s===!0)continue;break}if(C===fn){for(;P()!==!0&&(q=m());){if(q===fe){K=v.backslashes=!0,m();continue}if(q===An){H=v.isBracket=!0,E=v.isGlob=!0,G=!0;break}}if(s===!0)continue;break}if(r.nonegate!==!0&&C===we&&_===g){I=v.negated=!0,g++;continue}if(r.noparen!==!0&&C===Be){if(E=v.isGlob=!0,s===!0){for(;P()!==!0&&(C=m());){if(C===Be){K=v.backslashes=!0,C=m();continue}if(C===It){G=!0;break}}continue}break}if(E===!0){if(G=!0,s===!0)continue;break}}r.noext===!0&&(R=!1,E=!1);let O=A,re="",o="";g>0&&(re=A.slice(0,g),A=A.slice(g),x-=g),O&&E===!0&&x>0?(O=A.slice(0,x),o=A.slice(x)):E===!0?(O="",o=A):O=A,O&&O!==""&&O!=="/"&&O!==A&&Bt(O.charCodeAt(O.length-1))&&(O=O.slice(0,-1)),r.unescape===!0&&(o&&(o=Nt.removeBackslashes(o)),O&&K===!0&&(O=Nt.removeBackslashes(O)));let l={prefix:re,input:e,start:g,base:O,glob:o,isBrace:f,isBracket:H,isGlob:E,isExtglob:R,isGlobstar:$,negated:I,negatedExtglob:Z};if(r.tokens===!0&&(l.maxDepth=0,Bt(C)||u.push(v),l.tokens=u),r.parts===!0||r.tokens===!0){let q;for(let S=0;S<i.length;S++){let j=q?q+1:g,z=i[S],X=e.slice(j,z);r.tokens&&(S===0&&g!==0?(u[S].isPrefix=!0,u[S].value=re):u[S].value=X,kt(u[S]),l.maxDepth+=u[S].depth),(S!==0||X!=="")&&a.push(X),q=z}if(q&&q+1<e.length){let S=e.slice(q+1);a.push(S),r.tokens&&(u[u.length-1].value=S,kt(u[u.length-1]),l.maxDepth+=u[u.length-1].depth)}l.slashes=i,l.parts=a}return l};Pt.exports=gn});var Ft=M((os,Kt)=>{"use strict";d();var pe=ce(),D=ye(),{MAX_LENGTH:de,POSIX_REGEX_SOURCE:Rn,REGEX_NON_SPECIAL_CHARS:_n,REGEX_SPECIAL_CHARS_BACKREF:En,REPLACEMENTS:Dt}=pe,xn=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(s=>D.escapeRegex(s)).join("..")}return r},oe=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Ut=e=>{let t=[],r=0,n=0,s=0,i="",u=!1;for(let a of e){if(u===!0){i+=a,u=!1;continue}if(a==="\\"){i+=a,u=!0;continue}if(a==='"'){s=s===1?0:1,i+=a;continue}if(s===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){t.push(i),i="";continue}}}i+=a}return t.push(i),t},Cn=e=>{let t=!1;for(let r of e){if(t===!0){t=!1;continue}if(r==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},qt=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(Cn(t))return t.replace(/\\(.)/g,"$1")},yn=e=>{let t=e.map(qt).filter(Boolean);for(let r=0;r<t.length;r++)for(let n=r+1;n<t.length;n++){let s=t[r],i=t[n],u=s[0];if(!(!u||s!==u.repeat(s.length)||i!==u.repeat(i.length))&&(s===i||s.startsWith(i)||i.startsWith(s)))return!0}return!1},ke=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let r=0,n=0,s=0,i=!1;for(let u=1;u<e.length;u++){let a=e[u];if(i===!0){i=!1;continue}if(a==="\\"){i=!0;continue}if(a==='"'){s=s===1?0:1;continue}if(s!==1){if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(!(r>0)){if(a==="("){n++;continue}if(a===")"&&(n--,n===0))return t===!0&&u!==e.length-1?void 0:{type:e[0],body:e.slice(2,u),end:u}}}}},dn=e=>{let t=0,r=[];for(;t<e.length;){let s=ke(e.slice(t),!1);if(!s||s.type!=="*")return;let i=Ut(s.body).map(a=>a.trim());if(i.length!==1)return;let u=qt(i[0]);if(!u||u.length!==1)return;r.push(u),t+=s.end+1}return r.length<1?void 0:`${r.length===1?D.escapeRegex(r[0]):`[${r.map(s=>D.escapeRegex(s)).join("")}]`}*`},bn=e=>{let t=0,r=e.trim(),n=ke(r);for(;n;)t++,r=n.body.trim(),n=ke(r);return t},Sn=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:pe.DEFAULT_MAX_EXTGLOB_RECURSION,n=Ut(e).map(s=>s.trim());if(n.length>1&&(n.some(s=>s==="")||n.some(s=>/^[*?]+$/.test(s))||yn(n)))return{risky:!0};for(let s of n){let i=dn(s);if(i)return{risky:!0,safeOutput:i};if(bn(s)>r)return{risky:!0}}return{risky:!1}},Me=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Dt[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(de,r.maxLength):de,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},u=[i],a=r.capture?"":"?:",A=D.isWindows(t),_=pe.globChars(A),g=pe.extglobChars(_),{DOT_LITERAL:x,PLUS_LITERAL:f,SLASH_LITERAL:H,ONE_CHAR:E,DOTS_SLASH:R,NO_DOT:$,NO_DOT_SLASH:w,NO_DOTS_SLASH:K,QMARK:I,QMARK_NO_DOT:Z,STAR:G,START_ANCHOR:te}=_,U=h=>`(${a}(?:(?!${te}${h.dot?R:x}).)*?)`,C=r.dot?"":$,v=r.dot?I:Z,P=r.bash===!0?U(r):G;r.capture&&(P=`(${P})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let c={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:u};e=D.removePrefix(e,c),s=e.length;let m=[],O=[],re=[],o=i,l,q=()=>c.index===s-1,S=c.peek=(h=1)=>e[c.index+h],j=c.advance=()=>e[++c.index]||"",z=()=>e.slice(c.index+1),X=(h="",N=0)=>{c.consumed+=h,c.index+=N},he=h=>{c.output+=h.output!=null?h.output:h.value,X(h.value)},Zt=()=>{let h=1;for(;S()==="!"&&(S(2)!=="("||S(3)==="?");)j(),c.start++,h++;return h%2===0?!1:(c.negated=!0,c.start++,!0)},Ae=h=>{c[h]++,re.push(h)},ne=h=>{c[h]--,re.pop()},b=h=>{if(o.type==="globstar"){let N=c.braces>0&&(h.type==="comma"||h.type==="brace"),p=h.extglob===!0||m.length&&(h.type==="pipe"||h.type==="paren");h.type!=="slash"&&h.type!=="paren"&&!N&&!p&&(c.output=c.output.slice(0,-o.output.length),o.type="star",o.value="*",o.output=P,c.output+=o.output)}if(m.length&&h.type!=="paren"&&(m[m.length-1].inner+=h.value),(h.value||h.output)&&he(h),o&&o.type==="text"&&h.type==="text"){o.value+=h.value,o.output=(o.output||"")+h.value;return}h.prev=o,u.push(h),o=h},ge=(h,N)=>{let p={...g[N],conditions:1,inner:""};p.prev=o,p.parens=c.parens,p.output=c.output,p.startIndex=c.index,p.tokensIndex=u.length;let y=(r.capture?"(":"")+p.open;Ae("parens"),b({type:h,value:N,output:c.output?"":E}),b({type:"paren",extglob:!0,value:j(),output:y}),m.push(p)},jt=h=>{let N=e.slice(h.startIndex,c.index+1),p=e.slice(h.startIndex+2,c.index),y=Sn(p,r);if((h.type==="plus"||h.type==="star")&&y.risky){let T=y.safeOutput?(h.output?"":E)+(r.capture?`(${y.safeOutput})`:y.safeOutput):void 0,Y=u[h.tokensIndex];Y.type="text",Y.value=N,Y.output=T||D.escapeRegex(N);for(let V=h.tokensIndex+1;V<u.length;V++)u[V].value="",u[V].output="",delete u[V].suffix;c.output=h.output+Y.output,c.backtrack=!0,b({type:"paren",extglob:!0,value:l,output:""}),ne("parens");return}let L=h.close+(r.capture?")":""),k;if(h.type==="negate"){let T=P;if(h.inner&&h.inner.length>1&&h.inner.includes("/")&&(T=U(r)),(T!==P||q()||/^\)+$/.test(z()))&&(L=h.close=`)$))${T}`),h.inner.includes("*")&&(k=z())&&/^\.[^\\/.]+$/.test(k)){let Y=Me(k,{...t,fastpaths:!1}).output;L=h.close=`)${Y})${T})`}h.prev.type==="bos"&&(c.negatedExtglob=!0)}b({type:"paren",extglob:!0,value:l,output:L}),ne("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let h=!1,N=e.replace(En,(p,y,L,k,T,Y)=>k==="\\"?(h=!0,p):k==="?"?y?y+k+(T?I.repeat(T.length):""):Y===0?v+(T?I.repeat(T.length):""):I.repeat(L.length):k==="."?x.repeat(L.length):k==="*"?y?y+k+(T?P:""):P:y?p:`\\${p}`);return h===!0&&(r.unescape===!0?N=N.replace(/\\/g,""):N=N.replace(/\\+/g,p=>p.length%2===0?"\\\\":p?"\\":"")),N===e&&r.contains===!0?(c.output=e,c):(c.output=D.wrapOutput(N,c,t),c)}for(;!q();){if(l=j(),l==="\0")continue;if(l==="\\"){let p=S();if(p==="/"&&r.bash!==!0||p==="."||p===";")continue;if(!p){l+="\\",b({type:"text",value:l});continue}let y=/^\\+/.exec(z()),L=0;if(y&&y[0].length>2&&(L=y[0].length,c.index+=L,L%2!==0&&(l+="\\")),r.unescape===!0?l=j():l+=j(),c.brackets===0){b({type:"text",value:l});continue}}if(c.brackets>0&&(l!=="]"||o.value==="["||o.value==="[^")){if(r.posix!==!1&&l===":"){let p=o.value.slice(1);if(p.includes("[")&&(o.posix=!0,p.includes(":"))){let y=o.value.lastIndexOf("["),L=o.value.slice(0,y),k=o.value.slice(y+2),T=Rn[k];if(T){o.value=L+T,c.backtrack=!0,j(),!i.output&&u.indexOf(o)===1&&(i.output=E);continue}}}(l==="["&&S()!==":"||l==="-"&&S()==="]")&&(l=`\\${l}`),l==="]"&&(o.value==="["||o.value==="[^")&&(l=`\\${l}`),r.posix===!0&&l==="!"&&o.value==="["&&(l="^"),o.value+=l,he({value:l});continue}if(c.quotes===1&&l!=='"'){l=D.escapeRegex(l),o.value+=l,he({value:l});continue}if(l==='"'){c.quotes=c.quotes===1?0:1,r.keepQuotes===!0&&b({type:"text",value:l});continue}if(l==="("){Ae("parens"),b({type:"paren",value:l});continue}if(l===")"){if(c.parens===0&&r.strictBrackets===!0)throw new SyntaxError(oe("opening","("));let p=m[m.length-1];if(p&&c.parens===p.parens+1){jt(m.pop());continue}b({type:"paren",value:l,output:c.parens?")":"\\)"}),ne("parens");continue}if(l==="["){if(r.nobracket===!0||!z().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(oe("closing","]"));l=`\\${l}`}else Ae("brackets");b({type:"bracket",value:l});continue}if(l==="]"){if(r.nobracket===!0||o&&o.type==="bracket"&&o.value.length===1){b({type:"text",value:l,output:`\\${l}`});continue}if(c.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(oe("opening","["));b({type:"text",value:l,output:`\\${l}`});continue}ne("brackets");let p=o.value.slice(1);if(o.posix!==!0&&p[0]==="^"&&!p.includes("/")&&(l=`/${l}`),o.value+=l,he({value:l}),r.literalBrackets===!1||D.hasRegexChars(p))continue;let y=D.escapeRegex(o.value);if(c.output=c.output.slice(0,-o.value.length),r.literalBrackets===!0){c.output+=y,o.value=y;continue}o.value=`(${a}${y}|${o.value})`,c.output+=o.value;continue}if(l==="{"&&r.nobrace!==!0){Ae("braces");let p={type:"brace",value:l,output:"(",outputIndex:c.output.length,tokensIndex:c.tokens.length};O.push(p),b(p);continue}if(l==="}"){let p=O[O.length-1];if(r.nobrace===!0||!p){b({type:"text",value:l,output:l});continue}let y=")";if(p.dots===!0){let L=u.slice(),k=[];for(let T=L.length-1;T>=0&&(u.pop(),L[T].type!=="brace");T--)L[T].type!=="dots"&&k.unshift(L[T].value);y=xn(k,r),c.backtrack=!0}if(p.comma!==!0&&p.dots!==!0){let L=c.output.slice(0,p.outputIndex),k=c.tokens.slice(p.tokensIndex);p.value=p.output="\\{",l=y="\\}",c.output=L;for(let T of k)c.output+=T.output||T.value}b({type:"brace",value:l,output:y}),ne("braces"),O.pop();continue}if(l==="|"){m.length>0&&m[m.length-1].conditions++,b({type:"text",value:l});continue}if(l===","){let p=l,y=O[O.length-1];y&&re[re.length-1]==="braces"&&(y.comma=!0,p="|"),b({type:"comma",value:l,output:p});continue}if(l==="/"){if(o.type==="dot"&&c.index===c.start+1){c.start=c.index+1,c.consumed="",c.output="",u.pop(),o=i;continue}b({type:"slash",value:l,output:H});continue}if(l==="."){if(c.braces>0&&o.type==="dot"){o.value==="."&&(o.output=x);let p=O[O.length-1];o.type="dots",o.output+=l,o.value+=l,p.dots=!0;continue}if(c.braces+c.parens===0&&o.type!=="bos"&&o.type!=="slash"){b({type:"text",value:l,output:x});continue}b({type:"dot",value:l,output:x});continue}if(l==="?"){if(!(o&&o.value==="(")&&r.noextglob!==!0&&S()==="("&&S(2)!=="?"){ge("qmark",l);continue}if(o&&o.type==="paren"){let y=S(),L=l;if(y==="<"&&!D.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(o.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(z()))&&(L=`\\${l}`),b({type:"text",value:l,output:L});continue}if(r.dot!==!0&&(o.type==="slash"||o.type==="bos")){b({type:"qmark",value:l,output:Z});continue}b({type:"qmark",value:l,output:I});continue}if(l==="!"){if(r.noextglob!==!0&&S()==="("&&(S(2)!=="?"||!/[!=<:]/.test(S(3)))){ge("negate",l);continue}if(r.nonegate!==!0&&c.index===0){Zt();continue}}if(l==="+"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){ge("plus",l);continue}if(o&&o.value==="("||r.regex===!1){b({type:"plus",value:l,output:f});continue}if(o&&(o.type==="bracket"||o.type==="paren"||o.type==="brace")||c.parens>0){b({type:"plus",value:l});continue}b({type:"plus",value:f});continue}if(l==="@"){if(r.noextglob!==!0&&S()==="("&&S(2)!=="?"){b({type:"at",extglob:!0,value:l,output:""});continue}b({type:"text",value:l});continue}if(l!=="*"){(l==="$"||l==="^")&&(l=`\\${l}`);let p=_n.exec(z());p&&(l+=p[0],c.index+=p[0].length),b({type:"text",value:l});continue}if(o&&(o.type==="globstar"||o.star===!0)){o.type="star",o.star=!0,o.value+=l,o.output=P,c.backtrack=!0,c.globstar=!0,X(l);continue}let h=z();if(r.noextglob!==!0&&/^\([^?]/.test(h)){ge("star",l);continue}if(o.type==="star"){if(r.noglobstar===!0){X(l);continue}let p=o.prev,y=p.prev,L=p.type==="slash"||p.type==="bos",k=y&&(y.type==="star"||y.type==="globstar");if(r.bash===!0&&(!L||h[0]&&h[0]!=="/")){b({type:"star",value:l,output:""});continue}let T=c.braces>0&&(p.type==="comma"||p.type==="brace"),Y=m.length&&(p.type==="pipe"||p.type==="paren");if(!L&&p.type!=="paren"&&!T&&!Y){b({type:"star",value:l,output:""});continue}for(;h.slice(0,3)==="/**";){let V=e[c.index+4];if(V&&V!=="/")break;h=h.slice(3),X("/**",3)}if(p.type==="bos"&&q()){o.type="globstar",o.value+=l,o.output=U(r),c.output=o.output,c.globstar=!0,X(l);continue}if(p.type==="slash"&&p.prev.type!=="bos"&&!k&&q()){c.output=c.output.slice(0,-(p.output+o.output).length),p.output=`(?:${p.output}`,o.type="globstar",o.output=U(r)+(r.strictSlashes?")":"|$)"),o.value+=l,c.globstar=!0,c.output+=p.output+o.output,X(l);continue}if(p.type==="slash"&&p.prev.type!=="bos"&&h[0]==="/"){let V=h[1]!==void 0?"|$":"";c.output=c.output.slice(0,-(p.output+o.output).length),p.output=`(?:${p.output}`,o.type="globstar",o.output=`${U(r)}${H}|${H}${V})`,o.value+=l,c.output+=p.output+o.output,c.globstar=!0,X(l+j()),b({type:"slash",value:"/",output:""});continue}if(p.type==="bos"&&h[0]==="/"){o.type="globstar",o.value+=l,o.output=`(?:^|${H}|${U(r)}${H})`,c.output=o.output,c.globstar=!0,X(l+j()),b({type:"slash",value:"/",output:""});continue}c.output=c.output.slice(0,-o.output.length),o.type="globstar",o.output=U(r),o.value+=l,c.output+=o.output,c.globstar=!0,X(l);continue}let N={type:"star",value:l,output:P};if(r.bash===!0){N.output=".*?",(o.type==="bos"||o.type==="slash")&&(N.output=C+N.output),b(N);continue}if(o&&(o.type==="bracket"||o.type==="paren")&&r.regex===!0){N.output=l,b(N);continue}(c.index===c.start||o.type==="slash"||o.type==="dot")&&(o.type==="dot"?(c.output+=w,o.output+=w):r.dot===!0?(c.output+=K,o.output+=K):(c.output+=C,o.output+=C),S()!=="*"&&(c.output+=E,o.output+=E)),b(N)}for(;c.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(oe("closing","]"));c.output=D.escapeLast(c.output,"["),ne("brackets")}for(;c.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(oe("closing",")"));c.output=D.escapeLast(c.output,"("),ne("parens")}for(;c.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(oe("closing","}"));c.output=D.escapeLast(c.output,"{"),ne("braces")}if(r.strictSlashes!==!0&&(o.type==="star"||o.type==="bracket")&&b({type:"maybe_slash",value:"",output:`${H}?`}),c.backtrack===!0){c.output="";for(let h of c.tokens)c.output+=h.output!=null?h.output:h.value,h.suffix&&(c.output+=h.suffix)}return c};Me.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(de,r.maxLength):de,s=e.length;if(s>n)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${n}`);e=Dt[e]||e;let i=D.isWindows(t),{DOT_LITERAL:u,SLASH_LITERAL:a,ONE_CHAR:A,DOTS_SLASH:_,NO_DOT:g,NO_DOTS:x,NO_DOTS_SLASH:f,STAR:H,START_ANCHOR:E}=pe.globChars(i),R=r.dot?x:g,$=r.dot?f:g,w=r.capture?"":"?:",K={negated:!1,prefix:""},I=r.bash===!0?".*?":H;r.capture&&(I=`(${I})`);let Z=C=>C.noglobstar===!0?I:`(${w}(?:(?!${E}${C.dot?_:u}).)*?)`,G=C=>{switch(C){case"*":return`${R}${A}${I}`;case".*":return`${u}${A}${I}`;case"*.*":return`${R}${I}${u}${A}${I}`;case"*/*":return`${R}${I}${a}${A}${$}${I}`;case"**":return R+Z(r);case"**/*":return`(?:${R}${Z(r)}${a})?${$}${A}${I}`;case"**/*.*":return`(?:${R}${Z(r)}${a})?${$}${I}${u}${A}${I}`;case"**/.*":return`(?:${R}${Z(r)}${a})?${u}${A}${I}`;default:{let v=/^(.*?)\.(\w+)$/.exec(C);if(!v)return;let P=G(v[1]);return P?P+u+v[2]:void 0}}},te=D.removePrefix(e,K),U=G(te);return U&&r.strictSlashes!==!0&&(U+=`${a}?`),U};Kt.exports=Me});var Qt=M((cs,Xt)=>{"use strict";d();var Hn=ie("path"),vn=Gt(),Pe=Ft(),Ge=ye(),$n=ce(),Tn=e=>e&&typeof e=="object"&&!Array.isArray(e),B=(e,t,r=!1)=>{if(Array.isArray(e)){let g=e.map(f=>B(f,t,r));return f=>{for(let H of g){let E=H(f);if(E)return E}return!1}}let n=Tn(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let s=t||{},i=Ge.isWindows(t),u=n?B.compileRe(e,t):B.makeRe(e,t,!1,!0),a=u.state;delete u.state;let A=()=>!1;if(s.ignore){let g={...t,ignore:null,onMatch:null,onResult:null};A=B(s.ignore,g,r)}let _=(g,x=!1)=>{let{isMatch:f,match:H,output:E}=B.test(g,u,t,{glob:e,posix:i}),R={glob:e,state:a,regex:u,posix:i,input:g,output:E,match:H,isMatch:f};return typeof s.onResult=="function"&&s.onResult(R),f===!1?(R.isMatch=!1,x?R:!1):A(g)?(typeof s.onIgnore=="function"&&s.onIgnore(R),R.isMatch=!1,x?R:!1):(typeof s.onMatch=="function"&&s.onMatch(R),x?R:!0)};return r&&(_.state=a),_};B.test=(e,t,r,{glob:n,posix:s}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},u=i.format||(s?Ge.toPosixSlashes:null),a=e===n,A=a&&u?u(e):e;return a===!1&&(A=u?u(e):e,a=A===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=B.matchBase(e,t,r,s):a=t.exec(A)),{isMatch:!!a,match:a,output:A}};B.matchBase=(e,t,r,n=Ge.isWindows(r))=>(t instanceof RegExp?t:B.makeRe(t,r)).test(Hn.basename(e));B.isMatch=(e,t,r)=>B(t,r)(e);B.parse=(e,t)=>Array.isArray(e)?e.map(r=>B.parse(r,t)):Pe(e,{...t,fastpaths:!1});B.scan=(e,t)=>vn(e,t);B.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let s=t||{},i=s.contains?"":"^",u=s.contains?"":"$",a=`${i}(?:${e.output})${u}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let A=B.toRegex(a,t);return n===!0&&(A.state=e),A};B.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(s.output=Pe.fastpaths(e,t)),s.output||(s=Pe(e,t)),B.compileRe(s,t,r,n)};B.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};B.constants=$n;Xt.exports=B});var On=M((ps,Wt)=>{"use strict";d();Wt.exports=Qt()});export{Fe as a,ir as b,qr as c,ye as d,On as e};
3
+ /*! Bundled license information:
4
+
5
+ is-extglob/index.js:
6
+ (*!
7
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
8
+ *
9
+ * Copyright (c) 2014-2016, Jon Schlinkert.
10
+ * Licensed under the MIT License.
11
+ *)
12
+
13
+ is-glob/index.js:
14
+ (*!
15
+ * is-glob <https://github.com/jonschlinkert/is-glob>
16
+ *
17
+ * Copyright (c) 2014-2017, Jon Schlinkert.
18
+ * Released under the MIT License.
19
+ *)
20
+
21
+ is-number/index.js:
22
+ (*!
23
+ * is-number <https://github.com/jonschlinkert/is-number>
24
+ *
25
+ * Copyright (c) 2014-present, Jon Schlinkert.
26
+ * Released under the MIT License.
27
+ *)
28
+
29
+ to-regex-range/index.js:
30
+ (*!
31
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
32
+ *
33
+ * Copyright (c) 2015-present, Jon Schlinkert.
34
+ * Released under the MIT License.
35
+ *)
36
+
37
+ fill-range/index.js:
38
+ (*!
39
+ * fill-range <https://github.com/jonschlinkert/fill-range>
40
+ *
41
+ * Copyright (c) 2014-present, Jon Schlinkert.
42
+ * Licensed under the MIT License.
43
+ *)
44
+ */
@@ -1 +1 @@
1
- import{a as i}from"./chunk-J3KRY2SD.js";import{b as e}from"./chunk-IDKUJQIG.js";import{Lb as t}from"./chunk-EYDNSYYE.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function s(){t(i)}var r=class extends e{static{this.description="Shopify CLI version currently installed."}async run(){await s()}};export{r as a};
1
+ import{b as e}from"./chunk-2MCH43SL.js";import{a as i}from"./chunk-M4BEPPA3.js";import{Lb as t}from"./chunk-3TFUSDHY.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();o();async function s(){t(i)}var r=class extends e{static{this.description="Shopify CLI version currently installed."}async run(){await s()}};export{r as a};