@shopify/cli 4.8.4 → 4.9.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 (490) hide show
  1. package/dist/analytics-QK4RFCB6.js +1 -0
  2. package/dist/analytics-R6I5APDB.js +1 -0
  3. package/dist/assets/hydrogen/starter/package.json +1 -1
  4. package/dist/bootstrap.js +1 -3
  5. package/dist/chunk-22LJALHJ.js +7 -0
  6. package/dist/{chunk-APUYMORT.js → chunk-23K3B23N.js} +1 -1
  7. package/dist/chunk-2KLXRVGQ.js +317 -0
  8. package/dist/{chunk-QXR5DJC2.js → chunk-2LZQM5JG.js} +1 -1
  9. package/dist/chunk-2OHSGC4Q.js +1 -0
  10. package/dist/chunk-2Q3WIH7S.js +6 -0
  11. package/dist/{chunk-FRRA5MI2.js → chunk-2W6M7YDY.js} +1 -1
  12. package/dist/{chunk-NHOF2IN6.js → chunk-2YFB3PTV.js} +9 -9
  13. package/dist/chunk-2YRVHJEY.js +4 -0
  14. package/dist/{chunk-3CZ7DKE5.js → chunk-3AASYIOA.js} +3 -3
  15. package/dist/chunk-3DMDSAWK.js +20 -0
  16. package/dist/{chunk-KWQGJ3VC.js → chunk-3SG5EJFC.js} +1 -1
  17. package/dist/chunk-3T2WMZHC.js +1 -0
  18. package/dist/{chunk-773TIA5M.js → chunk-3VYOLEQE.js} +2 -2
  19. package/dist/chunk-3WVEL423.js +1 -0
  20. package/dist/{chunk-SVYHWGMI.js → chunk-3ZK5JZLY.js} +1 -1
  21. package/dist/chunk-44QTWXOJ.js +8 -0
  22. package/dist/{chunk-4QBJ5JBX.js → chunk-4A7FPJVT.js} +16 -15
  23. package/dist/chunk-4TQFTZVD.js +18 -0
  24. package/dist/chunk-4WACZNFF.js +1 -0
  25. package/dist/{chunk-RIM7FNP3.js → chunk-4XSYMLQG.js} +1 -1
  26. package/dist/{chunk-EJJPEWSB.js → chunk-4Y22EM45.js} +1 -1
  27. package/dist/chunk-53U6XS3J.js +1 -0
  28. package/dist/chunk-55NKAIIT.js +1 -0
  29. package/dist/chunk-55PABKRC.js +5 -0
  30. package/dist/chunk-5BLXN5WU.js +1 -0
  31. package/dist/{chunk-LAMTFOVF.js → chunk-5BYVVXGD.js} +1 -1
  32. package/dist/{chunk-Z5KYKXMH.js → chunk-5HEBS5DG.js} +3 -3
  33. package/dist/{chunk-LEW5IJK6.js → chunk-5HONV6NQ.js} +1 -1
  34. package/dist/chunk-5RL6DKWR.js +5 -0
  35. package/dist/chunk-5XO6PAMV.js +1 -0
  36. package/dist/chunk-6DHY67FO.js +6 -0
  37. package/dist/{chunk-6QADNGH4.js → chunk-6GA56I3E.js} +1 -1
  38. package/dist/chunk-6IL3B5Z5.js +4 -0
  39. package/dist/{chunk-RHBLXZGU.js → chunk-6ILP6QCH.js} +1 -1
  40. package/dist/{chunk-H7TDIRIU.js → chunk-6RBCFXJT.js} +1 -1
  41. package/dist/{chunk-WAJRWCZY.js → chunk-72HS7MHV.js} +1 -1
  42. package/dist/{chunk-SPNM3GES.js → chunk-74HXMIDM.js} +1 -1
  43. package/dist/{chunk-ZAH6QID2.js → chunk-77B77IGP.js} +1 -1
  44. package/dist/chunk-7DRKDQRT.js +1 -0
  45. package/dist/chunk-7HDJBEBP.js +3 -0
  46. package/dist/chunk-7IGMIDKK.js +15 -0
  47. package/dist/chunk-7QQPAT4L.js +1 -0
  48. package/dist/chunk-7Y4X5I6N.js +1 -0
  49. package/dist/{chunk-WGFGWDWP.js → chunk-7ZSN2QT5.js} +1 -1
  50. package/dist/chunk-A54V5UCD.js +5 -0
  51. package/dist/{chunk-VETLNJ56.js → chunk-AD4S2VEI.js} +1 -1
  52. package/dist/chunk-ADW7ECNU.js +7 -0
  53. package/dist/chunk-AS2O62JX.js +1 -0
  54. package/dist/chunk-ASUARYJD.js +1 -0
  55. package/dist/chunk-B4RPJYDH.js +1 -0
  56. package/dist/{chunk-ZCNNJCTQ.js → chunk-BJOJNAKH.js} +1 -1
  57. package/dist/chunk-BL5JWD3Y.js +16 -0
  58. package/dist/chunk-BOFCBTX7.js +1 -0
  59. package/dist/chunk-BPIQ4YTW.js +1 -0
  60. package/dist/chunk-C6FZII5S.js +1 -0
  61. package/dist/{chunk-NBXXTQWA.js → chunk-CACPRKUF.js} +1 -1
  62. package/dist/{chunk-QVO5CAJN.js → chunk-CHLSNYF7.js} +1 -1
  63. package/dist/chunk-CMICT4XI.js +1 -0
  64. package/dist/chunk-CPFAATMO.js +6 -0
  65. package/dist/{chunk-CSOCXWP6.js → chunk-CSRNHTHO.js} +2 -2
  66. package/dist/chunk-D3K42KBL.js +9 -0
  67. package/dist/chunk-DGMRL5DQ.js +1 -0
  68. package/dist/chunk-DKJPE42V.js +2 -0
  69. package/dist/{chunk-AIILEPSK.js → chunk-DYA5UUXL.js} +1 -1
  70. package/dist/chunk-E5ND6RBL.js +1 -0
  71. package/dist/{chunk-XKHKXUQY.js → chunk-E75DJTAF.js} +1 -1
  72. package/dist/chunk-ECEOBSGD.js +1 -0
  73. package/dist/{chunk-NDT3F2PR.js → chunk-EYSZRIUL.js} +1 -1
  74. package/dist/chunk-FCULF3JA.js +1 -0
  75. package/dist/chunk-FL34EOXG.js +1 -0
  76. package/dist/chunk-FW5HGFSZ.js +20 -0
  77. package/dist/{chunk-XRJCD3AO.js → chunk-G54BKNIX.js} +1 -1
  78. package/dist/{chunk-74CYT3VX.js → chunk-G7OIACY5.js} +1 -1
  79. package/dist/{chunk-IHH5XTPV.js → chunk-GALDYSEX.js} +1 -1
  80. package/dist/{chunk-A5U4KKNV.js → chunk-GDQLA5NB.js} +1 -1
  81. package/dist/{chunk-6A3TDSON.js → chunk-GJJBOCKD.js} +3 -3
  82. package/dist/{chunk-TAY7HU7X.js → chunk-GQZPGTG7.js} +20 -20
  83. package/dist/{chunk-XHXKPRF5.js → chunk-GVRFO4CV.js} +1 -1
  84. package/dist/chunk-HB3MJYBK.js +1 -0
  85. package/dist/{chunk-AEUCDGTB.js → chunk-HDQXFGYG.js} +1 -1
  86. package/dist/chunk-HSTNTHWM.js +1 -0
  87. package/dist/{chunk-A3U7JDUC.js → chunk-HSZC2LBB.js} +1 -1
  88. package/dist/chunk-I4FGM6UH.js +8 -0
  89. package/dist/chunk-I7GYNNCU.js +6 -0
  90. package/dist/{chunk-ZVA5F4QC.js → chunk-IBTQO3JD.js} +1 -1
  91. package/dist/{chunk-XWXAFJFC.js → chunk-IISE7SBT.js} +1 -1
  92. package/dist/chunk-IUZZWXJG.js +3 -0
  93. package/dist/chunk-IWML2HLC.js +5 -0
  94. package/dist/{chunk-CTNBSUVU.js → chunk-JA2QZ635.js} +2 -2
  95. package/dist/chunk-JOJRABPY.js +3 -0
  96. package/dist/chunk-JQKB3D37.js +1 -0
  97. package/dist/chunk-JROJL6RV.js +1 -0
  98. package/dist/{chunk-GINXNPAR.js → chunk-JTPVSO6Y.js} +1 -1
  99. package/dist/chunk-JWDUSMCA.js +1 -0
  100. package/dist/{chunk-CBMX6XI7.js → chunk-KLYJDAP6.js} +1 -1
  101. package/dist/{chunk-4HOJJCZ6.js → chunk-KVROYIUQ.js} +1 -1
  102. package/dist/chunk-L5XWYTHY.js +836 -0
  103. package/dist/chunk-LOTGSNS5.js +2 -0
  104. package/dist/{chunk-FGRW7GT4.js → chunk-LQLFMDVD.js} +1 -1
  105. package/dist/{chunk-7LZ34C4S.js → chunk-LSWFHTJT.js} +1 -1
  106. package/dist/{chunk-HYPY5WH6.js → chunk-LV2IWYGL.js} +1 -1
  107. package/dist/{chunk-W4SGAPPR.js → chunk-LYPNQFWX.js} +1 -1
  108. package/dist/{chunk-U6URYCC6.js → chunk-MRVQ6XRW.js} +1 -1
  109. package/dist/chunk-MVVHISCR.js +2 -0
  110. package/dist/{chunk-UJBMY5WR.js → chunk-N4DE5H65.js} +1 -1
  111. package/dist/{chunk-W6ST525S.js → chunk-N56BJ3F7.js} +1 -1
  112. package/dist/{chunk-W4SQE6NR.js → chunk-NF7MOA4K.js} +1 -1
  113. package/dist/{chunk-7KLPRSQR.js → chunk-NGN7U2UF.js} +1 -1
  114. package/dist/{chunk-TCFGEOE4.js → chunk-NTVEJYKI.js} +1 -1
  115. package/dist/chunk-NYABB6XW.js +1 -0
  116. package/dist/{chunk-DH3DMUE2.js → chunk-O6E7YL7N.js} +2 -2
  117. package/dist/chunk-OASB6XPV.js +16 -0
  118. package/dist/{chunk-WY7QF7VU.js → chunk-OBYY45BX.js} +1 -1
  119. package/dist/chunk-OETFY7FE.js +28 -0
  120. package/dist/{chunk-QZEDYQVT.js → chunk-OEZATTOS.js} +1 -1
  121. package/dist/{chunk-D6LQ56XT.js → chunk-OG7SF4FU.js} +1 -1
  122. package/dist/chunk-OM243CQ6.js +6 -0
  123. package/dist/chunk-P3Z5RLVV.js +3 -0
  124. package/dist/{chunk-HINK4QAR.js → chunk-PBBZNGS4.js} +1 -1
  125. package/dist/chunk-PGTKKP2B.js +11 -0
  126. package/dist/chunk-PK4ID32C.js +1 -0
  127. package/dist/{chunk-7FVCUY54.js → chunk-PVOWU77O.js} +1 -1
  128. package/dist/{chunk-66HW6J57.js → chunk-PXD2WJOI.js} +3 -3
  129. package/dist/chunk-PXXTSW6I.js +4 -0
  130. package/dist/{chunk-AU7GNCOK.js → chunk-PZHE37Z4.js} +1 -1
  131. package/dist/{chunk-TA2M37OB.js → chunk-Q34PKJRR.js} +1 -1
  132. package/dist/{chunk-S5H5U3PR.js → chunk-Q3O3AFZT.js} +1 -1
  133. package/dist/chunk-Q45XAEG2.js +16 -0
  134. package/dist/{chunk-QKTBYAUD.js → chunk-QAXFCAOV.js} +5 -5
  135. package/dist/{chunk-FY47X4NG.js → chunk-QBGSSUJP.js} +1 -1
  136. package/dist/chunk-QILWHHAQ.js +1 -0
  137. package/dist/chunk-QJST4LZX.js +1 -0
  138. package/dist/chunk-QQN4PJZD.js +1 -0
  139. package/dist/{chunk-6P5FGN6P.js → chunk-QSKOR3ED.js} +1 -1
  140. package/dist/{chunk-FRVRTOTF.js → chunk-QTEWTPAQ.js} +2 -2
  141. package/dist/chunk-QWDJRSJJ.js +1 -0
  142. package/dist/{chunk-GTAYTMCP.js → chunk-R757TSQ6.js} +1 -1
  143. package/dist/chunk-RCIU7NHA.js +1 -0
  144. package/dist/chunk-RGIUP4FW.js +1 -0
  145. package/dist/{chunk-RDS2WYQH.js → chunk-RHNFWHFY.js} +1 -1
  146. package/dist/{chunk-VG3YVCZW.js → chunk-S7536EWZ.js} +4 -4
  147. package/dist/{chunk-VBICZDA4.js → chunk-SDFO7P2M.js} +1 -1
  148. package/dist/{chunk-JQPPLSFT.js → chunk-SDJNAUU6.js} +1 -1
  149. package/dist/chunk-SGBLCVUX.js +1 -0
  150. package/dist/chunk-SJARQZVN.js +3 -0
  151. package/dist/chunk-SKRUMRB4.js +383 -0
  152. package/dist/{chunk-5Z6EW3FA.js → chunk-SW5EWGBJ.js} +1 -1
  153. package/dist/chunk-SXPWOYLT.js +7 -0
  154. package/dist/chunk-T234RERA.js +7 -0
  155. package/dist/chunk-TJJVX7CU.js +4 -0
  156. package/dist/{chunk-L4LDNEFK.js → chunk-TMV37ENR.js} +1 -1
  157. package/dist/{chunk-BYX7SQPM.js → chunk-TNXZWQZU.js} +1 -1
  158. package/dist/{chunk-67QK26HI.js → chunk-TO7TXDLU.js} +1 -1
  159. package/dist/chunk-TSLZNTFM.js +3 -0
  160. package/dist/{chunk-BG7QQU23.js → chunk-UFU2LGFK.js} +1 -1
  161. package/dist/chunk-VDDNDA5K.js +15 -0
  162. package/dist/{chunk-T4V7KOGJ.js → chunk-VFO5OYQ4.js} +1 -1
  163. package/dist/{chunk-HXVUDGLH.js → chunk-VFP3PUGZ.js} +24 -24
  164. package/dist/{chunk-6QDOCBD4.js → chunk-VZUHMW5E.js} +4 -3
  165. package/dist/chunk-W7CBJNXD.js +12 -0
  166. package/dist/chunk-WCAGYCT7.js +4 -0
  167. package/dist/{chunk-DPNZWBT5.js → chunk-WNO2V53C.js} +1 -1
  168. package/dist/{chunk-Y4BBTWM5.js → chunk-WPUQTUDX.js} +1 -1
  169. package/dist/chunk-WU7MSL3I.js +8 -0
  170. package/dist/chunk-WXV35TPE.js +1 -0
  171. package/dist/{chunk-2WATX3XV.js → chunk-XBSWZ6BT.js} +6 -6
  172. package/dist/chunk-XCNJL7ES.js +1 -0
  173. package/dist/{chunk-C4Y7PQDQ.js → chunk-XFZDFDZV.js} +1 -1
  174. package/dist/chunk-XTYSJIZY.js +1 -0
  175. package/dist/chunk-Y5ZN62VF.js +1 -0
  176. package/dist/{chunk-PNNW7YQG.js → chunk-YAH5WFYR.js} +3 -3
  177. package/dist/{chunk-DUNE3INK.js → chunk-YBQKJHZW.js} +1 -1
  178. package/dist/chunk-YD66PU3Y.js +1 -0
  179. package/dist/chunk-YGFEUXKQ.js +1 -0
  180. package/dist/chunk-YJWNM4XO.js +18 -0
  181. package/dist/{chunk-L3JBKCAS.js → chunk-YQQHBFMA.js} +1 -1
  182. package/dist/chunk-YRHFPXC3.js +1 -0
  183. package/dist/chunk-YTJ3EPD3.js +1 -0
  184. package/dist/chunk-YX5GRXRS.js +2368 -0
  185. package/dist/chunk-Z35PUKKP.js +7 -0
  186. package/dist/{chunk-7VQBIGJB.js → chunk-Z3XIZMEM.js} +1 -1
  187. package/dist/chunk-ZGASBRSQ.js +5 -0
  188. package/dist/{chunk-OY6L7J53.js → chunk-ZHJ6KA43.js} +1 -1
  189. package/dist/{chunk-YHTONNIZ.js → chunk-ZO4IBP4B.js} +1 -1
  190. package/dist/chunk-ZOYSMJ27.js +1 -0
  191. package/dist/chunk-ZPCCSPAE.js +3 -0
  192. package/dist/chunk-ZSJXZCAW.js +4 -0
  193. package/dist/{chunk-CP56F5UR.js → chunk-ZSVR5NEO.js} +1 -1
  194. package/dist/{chunk-JJJIRCQP.js → chunk-ZUVAHONX.js} +1 -1
  195. package/dist/chunk-ZVDFCUJT.js +2 -0
  196. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  197. package/dist/cli/commands/app/build.js +1 -1
  198. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  199. package/dist/cli/commands/app/bulk/execute.js +1 -1
  200. package/dist/cli/commands/app/bulk/status.js +1 -1
  201. package/dist/cli/commands/app/config/link.js +1 -1
  202. package/dist/cli/commands/app/config/pull.js +1 -1
  203. package/dist/cli/commands/app/config/use.js +1 -1
  204. package/dist/cli/commands/app/config/validate.js +1 -1
  205. package/dist/cli/commands/app/demo/watcher.js +1 -1
  206. package/dist/cli/commands/app/deploy.js +1 -1
  207. package/dist/cli/commands/app/dev/clean.js +1 -1
  208. package/dist/cli/commands/app/dev.js +1 -1
  209. package/dist/cli/commands/app/env/pull.js +1 -1
  210. package/dist/cli/commands/app/env/show.js +1 -1
  211. package/dist/cli/commands/app/execute.js +1 -1
  212. package/dist/cli/commands/app/function/build.js +1 -1
  213. package/dist/cli/commands/app/function/info.js +1 -1
  214. package/dist/cli/commands/app/function/replay.js +1 -1
  215. package/dist/cli/commands/app/function/run.js +1 -1
  216. package/dist/cli/commands/app/function/schema.js +1 -1
  217. package/dist/cli/commands/app/function/typegen.js +1 -1
  218. package/dist/cli/commands/app/generate/extension.js +1 -1
  219. package/dist/cli/commands/app/graphiql.js +1 -1
  220. package/dist/cli/commands/app/import/channel-config.js +1 -0
  221. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -0
  222. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -0
  223. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  224. package/dist/cli/commands/app/import-extensions.js +1 -1
  225. package/dist/cli/commands/app/info.js +1 -1
  226. package/dist/cli/commands/app/init.js +1 -1
  227. package/dist/cli/commands/app/logs.js +1 -1
  228. package/dist/cli/commands/app/release.js +1 -1
  229. package/dist/cli/commands/app/security/check.js +1 -0
  230. package/dist/cli/commands/app/security/clean.js +1 -0
  231. package/dist/cli/commands/app/security/instructions.js +1 -0
  232. package/dist/cli/commands/app/security/record.js +1 -0
  233. package/dist/cli/commands/app/security/review.js +1 -0
  234. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  235. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  236. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  237. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  238. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  239. package/dist/cli/commands/app/versions/list.js +1 -1
  240. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  241. package/dist/cli/commands/auth/login.d.ts +16 -1
  242. package/dist/cli/commands/auth/login.js +1 -1
  243. package/dist/cli/commands/auth/logout.d.ts +16 -1
  244. package/dist/cli/commands/auth/logout.js +1 -1
  245. package/dist/cli/commands/cache/clear.js +1 -1
  246. package/dist/cli/commands/config/autoupgrade/off.d.ts +13 -0
  247. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  248. package/dist/cli/commands/config/autoupgrade/on.d.ts +13 -0
  249. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  250. package/dist/cli/commands/config/autoupgrade/status.d.ts +13 -0
  251. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  252. package/dist/cli/commands/debug/command-flags.js +1 -1
  253. package/dist/cli/commands/doc/fetch.d.ts +2 -0
  254. package/dist/cli/commands/doc/fetch.js +1 -1
  255. package/dist/cli/commands/doc/search.d.ts +1 -0
  256. package/dist/cli/commands/doc/search.js +1 -1
  257. package/dist/cli/commands/docs/generate.js +1 -1
  258. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  259. package/dist/cli/commands/doctor-release/theme/index.d.ts +1 -0
  260. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  261. package/dist/cli/commands/help.d.ts +431 -1
  262. package/dist/cli/commands/help.js +1 -1
  263. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  264. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  265. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  266. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  267. package/dist/cli/commands/notifications/generate.js +1 -1
  268. package/dist/cli/commands/notifications/list.js +1 -1
  269. package/dist/cli/commands/organization/list.js +1 -1
  270. package/dist/cli/commands/search.d.ts +11 -1
  271. package/dist/cli/commands/search.js +1 -1
  272. package/dist/cli/commands/send-analytics.js +1 -1
  273. package/dist/cli/commands/theme/check.js +1 -1
  274. package/dist/cli/commands/theme/console.js +1 -1
  275. package/dist/cli/commands/theme/delete.js +1 -1
  276. package/dist/cli/commands/theme/dev.js +1 -1
  277. package/dist/cli/commands/theme/duplicate.js +1 -1
  278. package/dist/cli/commands/theme/info.js +1 -1
  279. package/dist/cli/commands/theme/init.js +1 -1
  280. package/dist/cli/commands/theme/language-server.js +1 -1
  281. package/dist/cli/commands/theme/list.js +1 -1
  282. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  283. package/dist/cli/commands/theme/open.js +1 -1
  284. package/dist/cli/commands/theme/package.js +1 -1
  285. package/dist/cli/commands/theme/preview.js +1 -1
  286. package/dist/cli/commands/theme/profile.js +1 -1
  287. package/dist/cli/commands/theme/publish.js +1 -1
  288. package/dist/cli/commands/theme/pull.js +1 -1
  289. package/dist/cli/commands/theme/push.js +1 -1
  290. package/dist/cli/commands/theme/rename.js +1 -1
  291. package/dist/cli/commands/theme/share.js +1 -1
  292. package/dist/cli/commands/upgrade.js +1 -1
  293. package/dist/cli/commands/version.d.ts +15 -1
  294. package/dist/cli/commands/version.js +1 -1
  295. package/dist/cli/help.d.ts +5 -2
  296. package/dist/cli/help.js +6 -2
  297. package/dist/cli/services/commands/auth/login/types.d.ts +11 -0
  298. package/dist/cli/services/commands/auth/login/types.js +7 -0
  299. package/dist/cli/services/commands/config/autoupgrade/index.d.ts +3 -0
  300. package/dist/cli/services/commands/config/autoupgrade/index.js +9 -0
  301. package/dist/cli/services/commands/config/autoupgrade/result.d.ts +2 -0
  302. package/dist/cli/services/commands/config/autoupgrade/result.js +15 -0
  303. package/dist/cli/services/commands/config/autoupgrade/types.d.ts +10 -0
  304. package/dist/cli/services/commands/config/autoupgrade/types.js +7 -0
  305. package/dist/cli/services/commands/doc/fetch.d.ts +1 -1
  306. package/dist/cli/services/commands/doc/fetch.js +11 -2
  307. package/dist/cli/services/commands/help/index.d.ts +3 -0
  308. package/dist/cli/services/commands/help/index.js +51 -0
  309. package/dist/cli/services/commands/help/result.d.ts +2 -0
  310. package/dist/cli/services/commands/help/result.js +6 -0
  311. package/dist/cli/services/commands/help/types.d.ts +431 -0
  312. package/dist/cli/services/commands/help/types.js +71 -0
  313. package/dist/cli/services/commands/search/index.d.ts +2 -0
  314. package/dist/cli/services/commands/search/index.js +8 -0
  315. package/dist/cli/services/commands/search/result.d.ts +2 -0
  316. package/dist/cli/services/commands/search/result.js +12 -0
  317. package/dist/cli/services/commands/search/types.d.ts +10 -0
  318. package/dist/cli/services/commands/search/types.js +7 -0
  319. package/dist/cli/services/commands/version/index.d.ts +2 -0
  320. package/dist/cli/services/commands/version/index.js +5 -0
  321. package/dist/cli/services/commands/version/result.d.ts +2 -0
  322. package/dist/cli/services/commands/version/result.js +6 -0
  323. package/dist/cli/services/commands/version/types.d.ts +10 -0
  324. package/dist/cli/services/commands/version/types.js +7 -0
  325. package/dist/command-json-schema-Y3N2NUZN.js +1 -0
  326. package/dist/command-registry.js +1 -1
  327. package/dist/{conf-store-H3UAVGN5.js → conf-store-5ZA3ILWV.js} +1 -1
  328. package/dist/custom-oclif-loader-VQKMCXNH.js +1 -0
  329. package/dist/deprecations-PFQXWNF6.js +1 -0
  330. package/dist/dist-4X53WJBQ.js +1 -0
  331. package/dist/dist-5M2V3YCM.js +1 -0
  332. package/dist/environment-ZUTBXY7U.js +1 -0
  333. package/dist/environments-3RUZ7F4Q.js +1 -0
  334. package/dist/error-FBSXLW22.js +1 -0
  335. package/dist/error-handler-D5BURRJ7.js +1 -0
  336. package/dist/fs-ZLV5W4TV.js +1 -0
  337. package/dist/hooks/did-you-mean.js +1 -1
  338. package/dist/hooks/hydrogen-init.js +1 -1
  339. package/dist/hooks/plugin-plugins.js +1 -1
  340. package/dist/hooks/postrun.js +1 -1
  341. package/dist/hooks/prerun.js +1 -1
  342. package/dist/hooks/public-metadata.js +1 -1
  343. package/dist/hooks/sensitive-metadata.js +1 -1
  344. package/dist/hooks/tunnel-provider.js +1 -1
  345. package/dist/hooks/tunnel-start.js +1 -1
  346. package/dist/http-proxy-node16-D3JUYA5D.js +38 -0
  347. package/dist/index.js +13 -14
  348. package/dist/is-global-GZ5CIXQA.js +1 -0
  349. package/dist/json-error-2BL3UZ7H.js +1 -0
  350. package/dist/lib-AD2G3QH3.js +1 -0
  351. package/dist/lib-VEVNMHDE.js +1 -0
  352. package/dist/lib-ZQW4E7QU.js +1 -0
  353. package/dist/local-KAZJAYLX.js +1 -0
  354. package/dist/metadata-M3ZE24WB.js +1 -0
  355. package/dist/{morph-BMYYMQNX.js → morph-42EXMN3K.js} +3 -3
  356. package/dist/node-package-manager-RVPONQBY.js +1 -0
  357. package/dist/notifications-system-MYEMV7JF.js +1 -0
  358. package/dist/os-DRUILZZR.js +1 -0
  359. package/dist/output-SDE274Y5.js +1 -0
  360. package/dist/{path-MBXP7ZIC.js → path-6YMSTSWG.js} +1 -1
  361. package/dist/system-5FQ3L5PA.js +1 -0
  362. package/dist/tsconfig.tsbuildinfo +1 -1
  363. package/dist/ui-TEZZM7SE.js +1 -0
  364. package/dist/uncaught-error-handler.d.ts +6 -0
  365. package/dist/uncaught-error-handler.js +33 -0
  366. package/dist/upgrade-3PIVJYBL.js +1 -0
  367. package/dist/version-FMWTVLMF.js +1 -0
  368. package/dist/version-IAMVSP7U.js +1 -0
  369. package/dist/workerd-WRW4ZUYM.js +18 -0
  370. package/oclif.manifest.json +2646 -226
  371. package/package.json +17 -8
  372. package/dist/analytics-M4OC7RPG.js +0 -1
  373. package/dist/analytics-RGIJMP4U.js +0 -1
  374. package/dist/chunk-2HW6VRJT.js +0 -2
  375. package/dist/chunk-2HYR6EUD.js +0 -1
  376. package/dist/chunk-2IRRFPEY.js +0 -1
  377. package/dist/chunk-2KD4LHRT.js +0 -5
  378. package/dist/chunk-2SL443J6.js +0 -1
  379. package/dist/chunk-2VJ6NBPV.js +0 -15
  380. package/dist/chunk-2ZROBXJX.js +0 -11
  381. package/dist/chunk-3DIRCEXA.js +0 -1
  382. package/dist/chunk-3DT4NS4S.js +0 -4
  383. package/dist/chunk-3IQ6WXDD.js +0 -3
  384. package/dist/chunk-43FRAUV6.js +0 -19
  385. package/dist/chunk-44QD4QNO.js +0 -1
  386. package/dist/chunk-4DLRS7MT.js +0 -12
  387. package/dist/chunk-4F3XYIEY.js +0 -1
  388. package/dist/chunk-4OMKKYFC.js +0 -9
  389. package/dist/chunk-4ZTRKEA2.js +0 -1
  390. package/dist/chunk-5DMFEDKY.js +0 -28
  391. package/dist/chunk-66G2HJ2A.js +0 -3
  392. package/dist/chunk-6B727IUY.js +0 -5
  393. package/dist/chunk-6C5AVMKR.js +0 -375
  394. package/dist/chunk-6CR2EEZ3.js +0 -6
  395. package/dist/chunk-6V6UNUMM.js +0 -3
  396. package/dist/chunk-6XLFFOPK.js +0 -1
  397. package/dist/chunk-A3V2A2I4.js +0 -2
  398. package/dist/chunk-AQPOPSQ7.js +0 -1
  399. package/dist/chunk-BAWBC66R.js +0 -5
  400. package/dist/chunk-BHJ3TGS7.js +0 -1
  401. package/dist/chunk-BHTHUKHU.js +0 -1
  402. package/dist/chunk-BV62ZERJ.js +0 -6
  403. package/dist/chunk-CFQ5G2QS.js +0 -1
  404. package/dist/chunk-CNK3ZO2B.js +0 -836
  405. package/dist/chunk-CRALWNNO.js +0 -1
  406. package/dist/chunk-CVW2HMQO.js +0 -317
  407. package/dist/chunk-D6QTOQEJ.js +0 -6
  408. package/dist/chunk-DDZEYA2I.js +0 -8
  409. package/dist/chunk-DO4SRE4M.js +0 -3
  410. package/dist/chunk-DZZORIWL.js +0 -4
  411. package/dist/chunk-EQ2PD2ZA.js +0 -2
  412. package/dist/chunk-ERBXXVOZ.js +0 -2
  413. package/dist/chunk-FW3RORD7.js +0 -1
  414. package/dist/chunk-G2YTINLI.js +0 -6
  415. package/dist/chunk-GCN4O7HM.js +0 -1
  416. package/dist/chunk-GGPMDCCB.js +0 -8
  417. package/dist/chunk-GJHBAOGJ.js +0 -1
  418. package/dist/chunk-H2HR2AQE.js +0 -7
  419. package/dist/chunk-HYM3HBDG.js +0 -20
  420. package/dist/chunk-IHEBV2KO.js +0 -1
  421. package/dist/chunk-JWHQPDOK.js +0 -3
  422. package/dist/chunk-JXG2T76F.js +0 -6
  423. package/dist/chunk-K2DP5Z76.js +0 -1
  424. package/dist/chunk-KUZ5Z6HM.js +0 -1
  425. package/dist/chunk-KZU727AL.js +0 -1
  426. package/dist/chunk-L2DCUVZV.js +0 -1
  427. package/dist/chunk-L3M7PTHU.js +0 -15
  428. package/dist/chunk-LBA6FGKC.js +0 -3
  429. package/dist/chunk-LX5UXWZ7.js +0 -1
  430. package/dist/chunk-M7VQLMSW.js +0 -1
  431. package/dist/chunk-MBRFIXCU.js +0 -1705
  432. package/dist/chunk-MYLMGH7Y.js +0 -1
  433. package/dist/chunk-NKC3K3XP.js +0 -1
  434. package/dist/chunk-O72SHE3Q.js +0 -7
  435. package/dist/chunk-OAG72Q2O.js +0 -1
  436. package/dist/chunk-OPOPO7DG.js +0 -7
  437. package/dist/chunk-OUA6EOLX.js +0 -11
  438. package/dist/chunk-OYCAYEQE.js +0 -7
  439. package/dist/chunk-PGWQHSDV.js +0 -1
  440. package/dist/chunk-PM3HRKPR.js +0 -1
  441. package/dist/chunk-POMWFTBD.js +0 -16
  442. package/dist/chunk-R3GLEZSE.js +0 -4
  443. package/dist/chunk-RHNZA4IL.js +0 -5
  444. package/dist/chunk-SCLGMVNB.js +0 -1
  445. package/dist/chunk-TU47HMTL.js +0 -1
  446. package/dist/chunk-UPGRXCFS.js +0 -4
  447. package/dist/chunk-V2GLAK2W.js +0 -1
  448. package/dist/chunk-V4774HTF.js +0 -1
  449. package/dist/chunk-VDGTHMIQ.js +0 -3
  450. package/dist/chunk-VJ5YOXKL.js +0 -1
  451. package/dist/chunk-WGUCRVII.js +0 -3
  452. package/dist/chunk-X4V2CD2H.js +0 -8
  453. package/dist/chunk-XOYICV6P.js +0 -1
  454. package/dist/chunk-XYUTD6IU.js +0 -1
  455. package/dist/chunk-YNFXYVYN.js +0 -2
  456. package/dist/chunk-Z2HN5L6G.js +0 -6
  457. package/dist/chunk-ZVJD6CUY.js +0 -18
  458. package/dist/cli/commands/app/doctor/instructions.js +0 -1
  459. package/dist/cli/commands/app/doctor.js +0 -1
  460. package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -4
  461. package/dist/cli/commands/config/autoupgrade/constants.js +0 -1
  462. package/dist/cli/services/commands/search.d.ts +0 -1
  463. package/dist/cli/services/commands/search.js +0 -7
  464. package/dist/cli/services/commands/version.d.ts +0 -1
  465. package/dist/cli/services/commands/version.js +0 -6
  466. package/dist/custom-oclif-loader-BWAMUFQ4.js +0 -1
  467. package/dist/deprecations-TEUM7CML.js +0 -1
  468. package/dist/dist-62I5X3FS.js +0 -1
  469. package/dist/dist-YHZ5BTYD.js +0 -1
  470. package/dist/environments-LAFWOQWO.js +0 -1
  471. package/dist/error-6ZCGAC5E.js +0 -1
  472. package/dist/error-handler-JNCW56EC.js +0 -1
  473. package/dist/fs-QEWOWUPQ.js +0 -1
  474. package/dist/http-proxy-node16-A6AKKRQH.js +0 -38
  475. package/dist/is-global-UYMEAGDR.js +0 -1
  476. package/dist/lib-2BR2WN7L.js +0 -1
  477. package/dist/lib-M72BVWQ3.js +0 -1
  478. package/dist/lib-P3APEIHY.js +0 -1
  479. package/dist/local-Z4ZEMWE4.js +0 -1
  480. package/dist/metadata-ZCQMB5AB.js +0 -1
  481. package/dist/node-package-manager-HMOTOBDS.js +0 -1
  482. package/dist/notifications-system-RT3CY6LZ.js +0 -1
  483. package/dist/os-G6KDPJMC.js +0 -1
  484. package/dist/output-BJCZYDNG.js +0 -1
  485. package/dist/system-T4H2ISV6.js +0 -1
  486. package/dist/ui-4MQSY5IN.js +0 -1
  487. package/dist/upgrade-4234MIYJ.js +0 -1
  488. package/dist/version-FRSRSCRX.js +0 -1
  489. package/dist/version-RF7QQXRX.js +0 -1
  490. package/dist/workerd-7E4H2DM3.js +0 -18
@@ -1,4 +1,4 @@
1
- import{a as hS,b as Hp}from"./chunk-LQ7ENG4V.js";import{a as wR}from"./chunk-IWOTLFOY.js";import{a as Pf,b as fS,c as dS,e as Ip,f as Au,g as Pp,i as pS,j as vS,k as OR,l as tc,m as bR,n as mS,p as AR}from"./chunk-7Y7AZRL3.js";import{a as LR}from"./chunk-5HBIIYSK.js";import{a as DR}from"./chunk-CTNBSUVU.js";import{a as yS}from"./chunk-AAK376RT.js";import{h as di,i as Zn}from"./chunk-B4OMIONW.js";import{a as NR,c as pa,e as nn,g as P}from"./chunk-VKWPEFWQ.js";var OS=pa(kt=>{"use strict";P();var Hf=Symbol.for("react.element"),UR=Symbol.for("react.portal"),MR=Symbol.for("react.fragment"),zR=Symbol.for("react.strict_mode"),FR=Symbol.for("react.profiler"),IR=Symbol.for("react.provider"),PR=Symbol.for("react.context"),HR=Symbol.for("react.forward_ref"),jR=Symbol.for("react.suspense"),kR=Symbol.for("react.memo"),BR=Symbol.for("react.lazy"),gS=Symbol.iterator;function VR(s){return s===null||typeof s!="object"?null:(s=gS&&s[gS]||s["@@iterator"],typeof s=="function"?s:null)}var TS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_S=Object.assign,xS={};function nc(s,o,p){this.props=s,this.context=o,this.refs=xS,this.updater=p||TS}nc.prototype.isReactComponent={};nc.prototype.setState=function(s,o){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,o,"setState")};nc.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function CS(){}CS.prototype=nc.prototype;function Uh(s,o,p){this.props=s,this.context=o,this.refs=xS,this.updater=p||TS}var Mh=Uh.prototype=new CS;Mh.constructor=Uh;_S(Mh,nc.prototype);Mh.isPureReactComponent=!0;var ES=Array.isArray,RS=Object.prototype.hasOwnProperty,zh={current:null},NS={key:!0,ref:!0,__self:!0,__source:!0};function DS(s,o,p){var E,h={},C=null,R=null;if(o!=null)for(E in o.ref!==void 0&&(R=o.ref),o.key!==void 0&&(C=""+o.key),o)RS.call(o,E)&&!NS.hasOwnProperty(E)&&(h[E]=o[E]);var F=arguments.length-2;if(F===1)h.children=p;else if(1<F){for(var A=Array(F),N=0;N<F;N++)A[N]=arguments[N+2];h.children=A}if(s&&s.defaultProps)for(E in F=s.defaultProps,F)h[E]===void 0&&(h[E]=F[E]);return{$$typeof:Hf,type:s,key:C,ref:R,props:h,_owner:zh.current}}function WR(s,o){return{$$typeof:Hf,type:s.type,key:o,ref:s.ref,props:s.props,_owner:s._owner}}function Fh(s){return typeof s=="object"&&s!==null&&s.$$typeof===Hf}function GR(s){var o={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(p){return o[p]})}var SS=/\/+/g;function wh(s,o){return typeof s=="object"&&s!==null&&s.key!=null?GR(""+s.key):o.toString(36)}function kp(s,o,p,E,h){var C=typeof s;(C==="undefined"||C==="boolean")&&(s=null);var R=!1;if(s===null)R=!0;else switch(C){case"string":case"number":R=!0;break;case"object":switch(s.$$typeof){case Hf:case UR:R=!0}}if(R)return R=s,h=h(R),s=E===""?"."+wh(R,0):E,ES(h)?(p="",s!=null&&(p=s.replace(SS,"$&/")+"/"),kp(h,o,p,"",function(N){return N})):h!=null&&(Fh(h)&&(h=WR(h,p+(!h.key||R&&R.key===h.key?"":(""+h.key).replace(SS,"$&/")+"/")+s)),o.push(h)),1;if(R=0,E=E===""?".":E+":",ES(s))for(var F=0;F<s.length;F++){C=s[F];var A=E+wh(C,F);R+=kp(C,o,p,A,h)}else if(A=VR(s),typeof A=="function")for(s=A.call(s),F=0;!(C=s.next()).done;)C=C.value,A=E+wh(C,F++),R+=kp(C,o,p,A,h);else if(C==="object")throw o=String(s),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return R}function jp(s,o,p){if(s==null)return s;var E=[],h=0;return kp(s,E,"","",function(C){return o.call(p,C,h++)}),E}function YR(s){if(s._status===-1){var o=s._result;o=o(),o.then(function(p){(s._status===0||s._status===-1)&&(s._status=1,s._result=p)},function(p){(s._status===0||s._status===-1)&&(s._status=2,s._result=p)}),s._status===-1&&(s._status=0,s._result=o)}if(s._status===1)return s._result.default;throw s._result}var Ia={current:null},Bp={transition:null},QR={ReactCurrentDispatcher:Ia,ReactCurrentBatchConfig:Bp,ReactCurrentOwner:zh};function LS(){throw Error("act(...) is not supported in production builds of React.")}kt.Children={map:jp,forEach:function(s,o,p){jp(s,function(){o.apply(this,arguments)},p)},count:function(s){var o=0;return jp(s,function(){o++}),o},toArray:function(s){return jp(s,function(o){return o})||[]},only:function(s){if(!Fh(s))throw Error("React.Children.only expected to receive a single React element child.");return s}};kt.Component=nc;kt.Fragment=MR;kt.Profiler=FR;kt.PureComponent=Uh;kt.StrictMode=zR;kt.Suspense=jR;kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QR;kt.act=LS;kt.cloneElement=function(s,o,p){if(s==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var E=_S({},s.props),h=s.key,C=s.ref,R=s._owner;if(o!=null){if(o.ref!==void 0&&(C=o.ref,R=zh.current),o.key!==void 0&&(h=""+o.key),s.type&&s.type.defaultProps)var F=s.type.defaultProps;for(A in o)RS.call(o,A)&&!NS.hasOwnProperty(A)&&(E[A]=o[A]===void 0&&F!==void 0?F[A]:o[A])}var A=arguments.length-2;if(A===1)E.children=p;else if(1<A){F=Array(A);for(var N=0;N<A;N++)F[N]=arguments[N+2];E.children=F}return{$$typeof:Hf,type:s.type,key:h,ref:C,props:E,_owner:R}};kt.createContext=function(s){return s={$$typeof:PR,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},s.Provider={$$typeof:IR,_context:s},s.Consumer=s};kt.createElement=DS;kt.createFactory=function(s){var o=DS.bind(null,s);return o.type=s,o};kt.createRef=function(){return{current:null}};kt.forwardRef=function(s){return{$$typeof:HR,render:s}};kt.isValidElement=Fh;kt.lazy=function(s){return{$$typeof:BR,_payload:{_status:-1,_result:s},_init:YR}};kt.memo=function(s,o){return{$$typeof:kR,type:s,compare:o===void 0?null:o}};kt.startTransition=function(s){var o=Bp.transition;Bp.transition={};try{s()}finally{Bp.transition=o}};kt.unstable_act=LS;kt.useCallback=function(s,o){return Ia.current.useCallback(s,o)};kt.useContext=function(s){return Ia.current.useContext(s)};kt.useDebugValue=function(){};kt.useDeferredValue=function(s){return Ia.current.useDeferredValue(s)};kt.useEffect=function(s,o){return Ia.current.useEffect(s,o)};kt.useId=function(){return Ia.current.useId()};kt.useImperativeHandle=function(s,o,p){return Ia.current.useImperativeHandle(s,o,p)};kt.useInsertionEffect=function(s,o){return Ia.current.useInsertionEffect(s,o)};kt.useLayoutEffect=function(s,o){return Ia.current.useLayoutEffect(s,o)};kt.useMemo=function(s,o){return Ia.current.useMemo(s,o)};kt.useReducer=function(s,o,p){return Ia.current.useReducer(s,o,p)};kt.useRef=function(s){return Ia.current.useRef(s)};kt.useState=function(s){return Ia.current.useState(s)};kt.useSyncExternalStore=function(s,o,p){return Ia.current.useSyncExternalStore(s,o,p)};kt.useTransition=function(){return Ia.current.useTransition()};kt.version="18.3.1"});var bS=pa((Bt,Vp)=>{"use strict";P();process.env.NODE_ENV!=="production"&&(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var s="18.3.1",o=Symbol.for("react.element"),p=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),F=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen"),Re=Symbol.iterator,he="@@iterator";function Ee(y){if(y===null||typeof y!="object")return null;var L=Re&&y[Re]||y[he];return typeof L=="function"?L:null}var $e={current:null},st={transition:null},et={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Xe={current:null},Xt={},qe=null;function Ve(y){qe=y}Xt.setExtraStackFrame=function(y){qe=y},Xt.getCurrentStack=null,Xt.getStackAddendum=function(){var y="";qe&&(y+=qe);var L=Xt.getCurrentStack;return L&&(y+=L()||""),y};var rn=!1,We=!1,gt=!1,Me=!1,G=!1,ce={ReactCurrentDispatcher:$e,ReactCurrentBatchConfig:st,ReactCurrentOwner:Xe};ce.ReactDebugCurrentFrame=Xt,ce.ReactCurrentActQueue=et;function Oe(y){{for(var L=arguments.length,B=new Array(L>1?L-1:0),X=1;X<L;X++)B[X-1]=arguments[X];Tt("warn",y,B)}}function oe(y){{for(var L=arguments.length,B=new Array(L>1?L-1:0),X=1;X<L;X++)B[X-1]=arguments[X];Tt("error",y,B)}}function Tt(y,L,B){{var X=ce.ReactDebugCurrentFrame,fe=X.getStackAddendum();fe!==""&&(L+="%s",B=B.concat([fe]));var nt=B.map(function(_e){return String(_e)});nt.unshift("Warning: "+L),Function.prototype.apply.call(console[y],console,nt)}}var je={};function Ct(y,L){{var B=y.constructor,X=B&&(B.displayName||B.name)||"ReactClass",fe=X+"."+L;if(je[fe])return;oe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",L,X),je[fe]=!0}}var we={isMounted:function(y){return!1},enqueueForceUpdate:function(y,L,B){Ct(y,"forceUpdate")},enqueueReplaceState:function(y,L,B,X){Ct(y,"replaceState")},enqueueSetState:function(y,L,B,X){Ct(y,"setState")}},_t=Object.assign,rt={};Object.freeze(rt);function Gt(y,L,B){this.props=y,this.context=L,this.refs=rt,this.updater=B||we}Gt.prototype.isReactComponent={},Gt.prototype.setState=function(y,L){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,L,"setState")},Gt.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};{var Je={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},bn=function(y,L){Object.defineProperty(Gt.prototype,y,{get:function(){Oe("%s(...) is deprecated in plain JavaScript React classes. %s",L[0],L[1])}})};for(var Kt in Je)Je.hasOwnProperty(Kt)&&bn(Kt,Je[Kt])}function tt(){}tt.prototype=Gt.prototype;function w(y,L,B){this.props=y,this.context=L,this.refs=rt,this.updater=B||we}var J=w.prototype=new tt;J.constructor=w,_t(J,Gt.prototype),J.isPureReactComponent=!0;function Ke(){var y={current:null};return Object.seal(y),y}var Yt=Array.isArray;function vt(y){return Yt(y)}function Dt(y){{var L=typeof Symbol=="function"&&Symbol.toStringTag,B=L&&y[Symbol.toStringTag]||y.constructor.name||"Object";return B}}function Et(y){try{return Qt(y),!1}catch{return!0}}function Qt(y){return""+y}function Nn(y){if(Et(y))return oe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Dt(y)),Qt(y)}function An(y,L,B){var X=y.displayName;if(X)return X;var fe=L.displayName||L.name||"";return fe!==""?B+"("+fe+")":B}function Bn(y){return y.displayName||"Context"}function gn(y){if(y==null)return null;if(typeof y.tag=="number"&&oe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case E:return"Fragment";case p:return"Portal";case C:return"Profiler";case h:return"StrictMode";case N:return"Suspense";case le:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case F:var L=y;return Bn(L)+".Consumer";case R:var B=y;return Bn(B._context)+".Provider";case A:return An(y,y.render,"ForwardRef");case $:var X=y.displayName||null;return X!==null?X:gn(y.type)||"Memo";case xe:{var fe=y,nt=fe._payload,_e=fe._init;try{return gn(_e(nt))}catch{return null}}}return null}var $n=Object.prototype.hasOwnProperty,br={key:!0,ref:!0,__self:!0,__source:!0},ha,on,Ar;Ar={};function ir(y){if($n.call(y,"ref")){var L=Object.getOwnPropertyDescriptor(y,"ref").get;if(L&&L.isReactWarning)return!1}return y.ref!==void 0}function Pa(y){if($n.call(y,"key")){var L=Object.getOwnPropertyDescriptor(y,"key").get;if(L&&L.isReactWarning)return!1}return y.key!==void 0}function Ka(y,L){var B=function(){ha||(ha=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",L))};B.isReactWarning=!0,Object.defineProperty(y,"key",{get:B,configurable:!0})}function ya(y,L){var B=function(){on||(on=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",L))};B.isReactWarning=!0,Object.defineProperty(y,"ref",{get:B,configurable:!0})}function ga(y){if(typeof y.ref=="string"&&Xe.current&&y.__self&&Xe.current.stateNode!==y.__self){var L=gn(Xe.current.type);Ar[L]||(oe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L,y.ref),Ar[L]=!0)}}var Ea=function(y,L,B,X,fe,nt,_e){var Ze={$$typeof:o,type:y,key:L,ref:B,props:_e,_owner:nt};return Ze._store={},Object.defineProperty(Ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.defineProperty(Ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(Ze.props),Object.freeze(Ze)),Ze};function ta(y,L,B){var X,fe={},nt=null,_e=null,Ze=null,St=null;if(L!=null){ir(L)&&(_e=L.ref,ga(L)),Pa(L)&&(Nn(L.key),nt=""+L.key),Ze=L.__self===void 0?null:L.__self,St=L.__source===void 0?null:L.__source;for(X in L)$n.call(L,X)&&!br.hasOwnProperty(X)&&(fe[X]=L[X])}var At=arguments.length-2;if(At===1)fe.children=B;else if(At>1){for(var Pt=Array(At),qt=0;qt<At;qt++)Pt[qt]=arguments[qt+2];Object.freeze&&Object.freeze(Pt),fe.children=Pt}if(y&&y.defaultProps){var mn=y.defaultProps;for(X in mn)fe[X]===void 0&&(fe[X]=mn[X])}if(nt||_e){var _n=typeof y=="function"?y.displayName||y.name||"Unknown":y;nt&&Ka(fe,_n),_e&&ya(fe,_n)}return Ea(y,nt,_e,Ze,St,Xe.current,fe)}function ye(y,L){var B=Ea(y.type,L,y.ref,y._self,y._source,y._owner,y.props);return B}function Ge(y,L,B){if(y==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+y+".");var X,fe=_t({},y.props),nt=y.key,_e=y.ref,Ze=y._self,St=y._source,At=y._owner;if(L!=null){ir(L)&&(_e=L.ref,At=Xe.current),Pa(L)&&(Nn(L.key),nt=""+L.key);var Pt;y.type&&y.type.defaultProps&&(Pt=y.type.defaultProps);for(X in L)$n.call(L,X)&&!br.hasOwnProperty(X)&&(L[X]===void 0&&Pt!==void 0?fe[X]=Pt[X]:fe[X]=L[X])}var qt=arguments.length-2;if(qt===1)fe.children=B;else if(qt>1){for(var mn=Array(qt),_n=0;_n<qt;_n++)mn[_n]=arguments[_n+2];fe.children=mn}return Ea(y.type,nt,_e,Ze,St,At,fe)}function dt(y){return typeof y=="object"&&y!==null&&y.$$typeof===o}var Ie=".",an=":";function ur(y){var L=/[=:]/g,B={"=":"=0",":":"=2"},X=y.replace(L,function(fe){return B[fe]});return"$"+X}var Pe=!1,ze=/\/+/g;function vn(y){return y.replace(ze,"$&/")}function Zt(y,L){return typeof y=="object"&&y!==null&&y.key!=null?(Nn(y.key),ur(""+y.key)):L.toString(36)}function ut(y,L,B,X,fe){var nt=typeof y;(nt==="undefined"||nt==="boolean")&&(y=null);var _e=!1;if(y===null)_e=!0;else switch(nt){case"string":case"number":_e=!0;break;case"object":switch(y.$$typeof){case o:case p:_e=!0}}if(_e){var Ze=y,St=fe(Ze),At=X===""?Ie+Zt(Ze,0):X;if(vt(St)){var Pt="";At!=null&&(Pt=vn(At)+"/"),ut(St,L,Pt,"",function(Ql){return Ql})}else St!=null&&(dt(St)&&(St.key&&(!Ze||Ze.key!==St.key)&&Nn(St.key),St=ye(St,B+(St.key&&(!Ze||Ze.key!==St.key)?vn(""+St.key)+"/":"")+At)),L.push(St));return 1}var qt,mn,_n=0,On=X===""?Ie:X+an;if(vt(y))for(var Gn=0;Gn<y.length;Gn++)qt=y[Gn],mn=On+Zt(qt,Gn),_n+=ut(qt,L,B,mn,fe);else{var zr=Ee(y);if(typeof zr=="function"){var cn=y;zr===cn.entries&&(Pe||Oe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Pe=!0);for(var Si=zr.call(cn),aa,Yo=0;!(aa=Si.next()).done;)qt=aa.value,mn=On+Zt(qt,Yo++),_n+=ut(qt,L,B,mn,fe)}else if(nt==="object"){var Yl=String(y);throw new Error("Objects are not valid as a React child (found: "+(Yl==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":Yl)+"). If you meant to render a collection of children, use an array instead.")}}return _n}function lr(y,L,B){if(y==null)return y;var X=[],fe=0;return ut(y,X,"","",function(nt){return L.call(B,nt,fe++)}),X}function pi(y){var L=0;return lr(y,function(){L++}),L}function or(y,L,B){lr(y,function(){L.apply(this,arguments)},B)}function Ot(y){return lr(y,function(L){return L})||[]}function wr(y){if(!dt(y))throw new Error("React.Children.only expected to receive a single React element child.");return y}function Ur(y){var L={$$typeof:F,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};L.Provider={$$typeof:R,_context:L};var B=!1,X=!1,fe=!1;{var nt={$$typeof:F,_context:L};Object.defineProperties(nt,{Provider:{get:function(){return X||(X=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),L.Provider},set:function(_e){L.Provider=_e}},_currentValue:{get:function(){return L._currentValue},set:function(_e){L._currentValue=_e}},_currentValue2:{get:function(){return L._currentValue2},set:function(_e){L._currentValue2=_e}},_threadCount:{get:function(){return L._threadCount},set:function(_e){L._threadCount=_e}},Consumer:{get:function(){return B||(B=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),L.Consumer}},displayName:{get:function(){return L.displayName},set:function(_e){fe||(Oe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",_e),fe=!0)}}}),L.Consumer=nt}return L._currentRenderer=null,L._currentRenderer2=null,L}var sr=-1,Vn=0,Mr=1,Za=2;function $i(y){if(y._status===sr){var L=y._result,B=L();if(B.then(function(nt){if(y._status===Vn||y._status===sr){var _e=y;_e._status=Mr,_e._result=nt}},function(nt){if(y._status===Vn||y._status===sr){var _e=y;_e._status=Za,_e._result=nt}}),y._status===sr){var X=y;X._status=Vn,X._result=B}}if(y._status===Mr){var fe=y._result;return fe===void 0&&oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ import{a as hS,b as Hp}from"./chunk-LQ7ENG4V.js";import{a as wR}from"./chunk-IWOTLFOY.js";import{a as Pf,b as fS,c as dS,e as Ip,f as Au,g as Pp,i as pS,j as vS,k as OR,l as tc,m as bR,n as mS,p as AR}from"./chunk-7Y7AZRL3.js";import{a as LR}from"./chunk-5HBIIYSK.js";import{a as yS}from"./chunk-AAK376RT.js";import{h as di,i as Zn}from"./chunk-B4OMIONW.js";import{b as DR}from"./chunk-JA2QZ635.js";import{a as NR,c as pa,e as nn,g as P}from"./chunk-VKWPEFWQ.js";var OS=pa(kt=>{"use strict";P();var Hf=Symbol.for("react.element"),UR=Symbol.for("react.portal"),MR=Symbol.for("react.fragment"),zR=Symbol.for("react.strict_mode"),FR=Symbol.for("react.profiler"),IR=Symbol.for("react.provider"),PR=Symbol.for("react.context"),HR=Symbol.for("react.forward_ref"),jR=Symbol.for("react.suspense"),kR=Symbol.for("react.memo"),BR=Symbol.for("react.lazy"),gS=Symbol.iterator;function VR(s){return s===null||typeof s!="object"?null:(s=gS&&s[gS]||s["@@iterator"],typeof s=="function"?s:null)}var TS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_S=Object.assign,xS={};function nc(s,o,p){this.props=s,this.context=o,this.refs=xS,this.updater=p||TS}nc.prototype.isReactComponent={};nc.prototype.setState=function(s,o){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,o,"setState")};nc.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};function CS(){}CS.prototype=nc.prototype;function Uh(s,o,p){this.props=s,this.context=o,this.refs=xS,this.updater=p||TS}var Mh=Uh.prototype=new CS;Mh.constructor=Uh;_S(Mh,nc.prototype);Mh.isPureReactComponent=!0;var ES=Array.isArray,RS=Object.prototype.hasOwnProperty,zh={current:null},NS={key:!0,ref:!0,__self:!0,__source:!0};function DS(s,o,p){var E,h={},C=null,R=null;if(o!=null)for(E in o.ref!==void 0&&(R=o.ref),o.key!==void 0&&(C=""+o.key),o)RS.call(o,E)&&!NS.hasOwnProperty(E)&&(h[E]=o[E]);var F=arguments.length-2;if(F===1)h.children=p;else if(1<F){for(var A=Array(F),N=0;N<F;N++)A[N]=arguments[N+2];h.children=A}if(s&&s.defaultProps)for(E in F=s.defaultProps,F)h[E]===void 0&&(h[E]=F[E]);return{$$typeof:Hf,type:s,key:C,ref:R,props:h,_owner:zh.current}}function WR(s,o){return{$$typeof:Hf,type:s.type,key:o,ref:s.ref,props:s.props,_owner:s._owner}}function Fh(s){return typeof s=="object"&&s!==null&&s.$$typeof===Hf}function GR(s){var o={"=":"=0",":":"=2"};return"$"+s.replace(/[=:]/g,function(p){return o[p]})}var SS=/\/+/g;function wh(s,o){return typeof s=="object"&&s!==null&&s.key!=null?GR(""+s.key):o.toString(36)}function kp(s,o,p,E,h){var C=typeof s;(C==="undefined"||C==="boolean")&&(s=null);var R=!1;if(s===null)R=!0;else switch(C){case"string":case"number":R=!0;break;case"object":switch(s.$$typeof){case Hf:case UR:R=!0}}if(R)return R=s,h=h(R),s=E===""?"."+wh(R,0):E,ES(h)?(p="",s!=null&&(p=s.replace(SS,"$&/")+"/"),kp(h,o,p,"",function(N){return N})):h!=null&&(Fh(h)&&(h=WR(h,p+(!h.key||R&&R.key===h.key?"":(""+h.key).replace(SS,"$&/")+"/")+s)),o.push(h)),1;if(R=0,E=E===""?".":E+":",ES(s))for(var F=0;F<s.length;F++){C=s[F];var A=E+wh(C,F);R+=kp(C,o,p,A,h)}else if(A=VR(s),typeof A=="function")for(s=A.call(s),F=0;!(C=s.next()).done;)C=C.value,A=E+wh(C,F++),R+=kp(C,o,p,A,h);else if(C==="object")throw o=String(s),Error("Objects are not valid as a React child (found: "+(o==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return R}function jp(s,o,p){if(s==null)return s;var E=[],h=0;return kp(s,E,"","",function(C){return o.call(p,C,h++)}),E}function YR(s){if(s._status===-1){var o=s._result;o=o(),o.then(function(p){(s._status===0||s._status===-1)&&(s._status=1,s._result=p)},function(p){(s._status===0||s._status===-1)&&(s._status=2,s._result=p)}),s._status===-1&&(s._status=0,s._result=o)}if(s._status===1)return s._result.default;throw s._result}var Ia={current:null},Bp={transition:null},QR={ReactCurrentDispatcher:Ia,ReactCurrentBatchConfig:Bp,ReactCurrentOwner:zh};function LS(){throw Error("act(...) is not supported in production builds of React.")}kt.Children={map:jp,forEach:function(s,o,p){jp(s,function(){o.apply(this,arguments)},p)},count:function(s){var o=0;return jp(s,function(){o++}),o},toArray:function(s){return jp(s,function(o){return o})||[]},only:function(s){if(!Fh(s))throw Error("React.Children.only expected to receive a single React element child.");return s}};kt.Component=nc;kt.Fragment=MR;kt.Profiler=FR;kt.PureComponent=Uh;kt.StrictMode=zR;kt.Suspense=jR;kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=QR;kt.act=LS;kt.cloneElement=function(s,o,p){if(s==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var E=_S({},s.props),h=s.key,C=s.ref,R=s._owner;if(o!=null){if(o.ref!==void 0&&(C=o.ref,R=zh.current),o.key!==void 0&&(h=""+o.key),s.type&&s.type.defaultProps)var F=s.type.defaultProps;for(A in o)RS.call(o,A)&&!NS.hasOwnProperty(A)&&(E[A]=o[A]===void 0&&F!==void 0?F[A]:o[A])}var A=arguments.length-2;if(A===1)E.children=p;else if(1<A){F=Array(A);for(var N=0;N<A;N++)F[N]=arguments[N+2];E.children=F}return{$$typeof:Hf,type:s.type,key:h,ref:C,props:E,_owner:R}};kt.createContext=function(s){return s={$$typeof:PR,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},s.Provider={$$typeof:IR,_context:s},s.Consumer=s};kt.createElement=DS;kt.createFactory=function(s){var o=DS.bind(null,s);return o.type=s,o};kt.createRef=function(){return{current:null}};kt.forwardRef=function(s){return{$$typeof:HR,render:s}};kt.isValidElement=Fh;kt.lazy=function(s){return{$$typeof:BR,_payload:{_status:-1,_result:s},_init:YR}};kt.memo=function(s,o){return{$$typeof:kR,type:s,compare:o===void 0?null:o}};kt.startTransition=function(s){var o=Bp.transition;Bp.transition={};try{s()}finally{Bp.transition=o}};kt.unstable_act=LS;kt.useCallback=function(s,o){return Ia.current.useCallback(s,o)};kt.useContext=function(s){return Ia.current.useContext(s)};kt.useDebugValue=function(){};kt.useDeferredValue=function(s){return Ia.current.useDeferredValue(s)};kt.useEffect=function(s,o){return Ia.current.useEffect(s,o)};kt.useId=function(){return Ia.current.useId()};kt.useImperativeHandle=function(s,o,p){return Ia.current.useImperativeHandle(s,o,p)};kt.useInsertionEffect=function(s,o){return Ia.current.useInsertionEffect(s,o)};kt.useLayoutEffect=function(s,o){return Ia.current.useLayoutEffect(s,o)};kt.useMemo=function(s,o){return Ia.current.useMemo(s,o)};kt.useReducer=function(s,o,p){return Ia.current.useReducer(s,o,p)};kt.useRef=function(s){return Ia.current.useRef(s)};kt.useState=function(s){return Ia.current.useState(s)};kt.useSyncExternalStore=function(s,o,p){return Ia.current.useSyncExternalStore(s,o,p)};kt.useTransition=function(){return Ia.current.useTransition()};kt.version="18.3.1"});var bS=pa((Bt,Vp)=>{"use strict";P();process.env.NODE_ENV!=="production"&&(function(){"use strict";typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var s="18.3.1",o=Symbol.for("react.element"),p=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),F=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),Le=Symbol.for("react.offscreen"),Re=Symbol.iterator,he="@@iterator";function Ee(y){if(y===null||typeof y!="object")return null;var L=Re&&y[Re]||y[he];return typeof L=="function"?L:null}var $e={current:null},st={transition:null},et={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Xe={current:null},Xt={},qe=null;function Ve(y){qe=y}Xt.setExtraStackFrame=function(y){qe=y},Xt.getCurrentStack=null,Xt.getStackAddendum=function(){var y="";qe&&(y+=qe);var L=Xt.getCurrentStack;return L&&(y+=L()||""),y};var rn=!1,We=!1,gt=!1,Me=!1,G=!1,ce={ReactCurrentDispatcher:$e,ReactCurrentBatchConfig:st,ReactCurrentOwner:Xe};ce.ReactDebugCurrentFrame=Xt,ce.ReactCurrentActQueue=et;function Oe(y){{for(var L=arguments.length,B=new Array(L>1?L-1:0),X=1;X<L;X++)B[X-1]=arguments[X];Tt("warn",y,B)}}function oe(y){{for(var L=arguments.length,B=new Array(L>1?L-1:0),X=1;X<L;X++)B[X-1]=arguments[X];Tt("error",y,B)}}function Tt(y,L,B){{var X=ce.ReactDebugCurrentFrame,fe=X.getStackAddendum();fe!==""&&(L+="%s",B=B.concat([fe]));var nt=B.map(function(_e){return String(_e)});nt.unshift("Warning: "+L),Function.prototype.apply.call(console[y],console,nt)}}var je={};function Ct(y,L){{var B=y.constructor,X=B&&(B.displayName||B.name)||"ReactClass",fe=X+"."+L;if(je[fe])return;oe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",L,X),je[fe]=!0}}var we={isMounted:function(y){return!1},enqueueForceUpdate:function(y,L,B){Ct(y,"forceUpdate")},enqueueReplaceState:function(y,L,B,X){Ct(y,"replaceState")},enqueueSetState:function(y,L,B,X){Ct(y,"setState")}},_t=Object.assign,rt={};Object.freeze(rt);function Gt(y,L,B){this.props=y,this.context=L,this.refs=rt,this.updater=B||we}Gt.prototype.isReactComponent={},Gt.prototype.setState=function(y,L){if(typeof y!="object"&&typeof y!="function"&&y!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,y,L,"setState")},Gt.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};{var Je={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},bn=function(y,L){Object.defineProperty(Gt.prototype,y,{get:function(){Oe("%s(...) is deprecated in plain JavaScript React classes. %s",L[0],L[1])}})};for(var Kt in Je)Je.hasOwnProperty(Kt)&&bn(Kt,Je[Kt])}function tt(){}tt.prototype=Gt.prototype;function w(y,L,B){this.props=y,this.context=L,this.refs=rt,this.updater=B||we}var J=w.prototype=new tt;J.constructor=w,_t(J,Gt.prototype),J.isPureReactComponent=!0;function Ke(){var y={current:null};return Object.seal(y),y}var Yt=Array.isArray;function vt(y){return Yt(y)}function Dt(y){{var L=typeof Symbol=="function"&&Symbol.toStringTag,B=L&&y[Symbol.toStringTag]||y.constructor.name||"Object";return B}}function Et(y){try{return Qt(y),!1}catch{return!0}}function Qt(y){return""+y}function Nn(y){if(Et(y))return oe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Dt(y)),Qt(y)}function An(y,L,B){var X=y.displayName;if(X)return X;var fe=L.displayName||L.name||"";return fe!==""?B+"("+fe+")":B}function Bn(y){return y.displayName||"Context"}function gn(y){if(y==null)return null;if(typeof y.tag=="number"&&oe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof y=="function")return y.displayName||y.name||null;if(typeof y=="string")return y;switch(y){case E:return"Fragment";case p:return"Portal";case C:return"Profiler";case h:return"StrictMode";case N:return"Suspense";case le:return"SuspenseList"}if(typeof y=="object")switch(y.$$typeof){case F:var L=y;return Bn(L)+".Consumer";case R:var B=y;return Bn(B._context)+".Provider";case A:return An(y,y.render,"ForwardRef");case $:var X=y.displayName||null;return X!==null?X:gn(y.type)||"Memo";case xe:{var fe=y,nt=fe._payload,_e=fe._init;try{return gn(_e(nt))}catch{return null}}}return null}var $n=Object.prototype.hasOwnProperty,br={key:!0,ref:!0,__self:!0,__source:!0},ha,on,Ar;Ar={};function ir(y){if($n.call(y,"ref")){var L=Object.getOwnPropertyDescriptor(y,"ref").get;if(L&&L.isReactWarning)return!1}return y.ref!==void 0}function Pa(y){if($n.call(y,"key")){var L=Object.getOwnPropertyDescriptor(y,"key").get;if(L&&L.isReactWarning)return!1}return y.key!==void 0}function Ka(y,L){var B=function(){ha||(ha=!0,oe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",L))};B.isReactWarning=!0,Object.defineProperty(y,"key",{get:B,configurable:!0})}function ya(y,L){var B=function(){on||(on=!0,oe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",L))};B.isReactWarning=!0,Object.defineProperty(y,"ref",{get:B,configurable:!0})}function ga(y){if(typeof y.ref=="string"&&Xe.current&&y.__self&&Xe.current.stateNode!==y.__self){var L=gn(Xe.current.type);Ar[L]||(oe('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',L,y.ref),Ar[L]=!0)}}var Ea=function(y,L,B,X,fe,nt,_e){var Ze={$$typeof:o,type:y,key:L,ref:B,props:_e,_owner:nt};return Ze._store={},Object.defineProperty(Ze._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ze,"_self",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.defineProperty(Ze,"_source",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.freeze&&(Object.freeze(Ze.props),Object.freeze(Ze)),Ze};function ta(y,L,B){var X,fe={},nt=null,_e=null,Ze=null,St=null;if(L!=null){ir(L)&&(_e=L.ref,ga(L)),Pa(L)&&(Nn(L.key),nt=""+L.key),Ze=L.__self===void 0?null:L.__self,St=L.__source===void 0?null:L.__source;for(X in L)$n.call(L,X)&&!br.hasOwnProperty(X)&&(fe[X]=L[X])}var At=arguments.length-2;if(At===1)fe.children=B;else if(At>1){for(var Pt=Array(At),qt=0;qt<At;qt++)Pt[qt]=arguments[qt+2];Object.freeze&&Object.freeze(Pt),fe.children=Pt}if(y&&y.defaultProps){var mn=y.defaultProps;for(X in mn)fe[X]===void 0&&(fe[X]=mn[X])}if(nt||_e){var _n=typeof y=="function"?y.displayName||y.name||"Unknown":y;nt&&Ka(fe,_n),_e&&ya(fe,_n)}return Ea(y,nt,_e,Ze,St,Xe.current,fe)}function ye(y,L){var B=Ea(y.type,L,y.ref,y._self,y._source,y._owner,y.props);return B}function Ge(y,L,B){if(y==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+y+".");var X,fe=_t({},y.props),nt=y.key,_e=y.ref,Ze=y._self,St=y._source,At=y._owner;if(L!=null){ir(L)&&(_e=L.ref,At=Xe.current),Pa(L)&&(Nn(L.key),nt=""+L.key);var Pt;y.type&&y.type.defaultProps&&(Pt=y.type.defaultProps);for(X in L)$n.call(L,X)&&!br.hasOwnProperty(X)&&(L[X]===void 0&&Pt!==void 0?fe[X]=Pt[X]:fe[X]=L[X])}var qt=arguments.length-2;if(qt===1)fe.children=B;else if(qt>1){for(var mn=Array(qt),_n=0;_n<qt;_n++)mn[_n]=arguments[_n+2];fe.children=mn}return Ea(y.type,nt,_e,Ze,St,At,fe)}function dt(y){return typeof y=="object"&&y!==null&&y.$$typeof===o}var Ie=".",an=":";function ur(y){var L=/[=:]/g,B={"=":"=0",":":"=2"},X=y.replace(L,function(fe){return B[fe]});return"$"+X}var Pe=!1,ze=/\/+/g;function vn(y){return y.replace(ze,"$&/")}function Zt(y,L){return typeof y=="object"&&y!==null&&y.key!=null?(Nn(y.key),ur(""+y.key)):L.toString(36)}function ut(y,L,B,X,fe){var nt=typeof y;(nt==="undefined"||nt==="boolean")&&(y=null);var _e=!1;if(y===null)_e=!0;else switch(nt){case"string":case"number":_e=!0;break;case"object":switch(y.$$typeof){case o:case p:_e=!0}}if(_e){var Ze=y,St=fe(Ze),At=X===""?Ie+Zt(Ze,0):X;if(vt(St)){var Pt="";At!=null&&(Pt=vn(At)+"/"),ut(St,L,Pt,"",function(Ql){return Ql})}else St!=null&&(dt(St)&&(St.key&&(!Ze||Ze.key!==St.key)&&Nn(St.key),St=ye(St,B+(St.key&&(!Ze||Ze.key!==St.key)?vn(""+St.key)+"/":"")+At)),L.push(St));return 1}var qt,mn,_n=0,On=X===""?Ie:X+an;if(vt(y))for(var Gn=0;Gn<y.length;Gn++)qt=y[Gn],mn=On+Zt(qt,Gn),_n+=ut(qt,L,B,mn,fe);else{var zr=Ee(y);if(typeof zr=="function"){var cn=y;zr===cn.entries&&(Pe||Oe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Pe=!0);for(var Si=zr.call(cn),aa,Yo=0;!(aa=Si.next()).done;)qt=aa.value,mn=On+Zt(qt,Yo++),_n+=ut(qt,L,B,mn,fe)}else if(nt==="object"){var Yl=String(y);throw new Error("Objects are not valid as a React child (found: "+(Yl==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":Yl)+"). If you meant to render a collection of children, use an array instead.")}}return _n}function lr(y,L,B){if(y==null)return y;var X=[],fe=0;return ut(y,X,"","",function(nt){return L.call(B,nt,fe++)}),X}function pi(y){var L=0;return lr(y,function(){L++}),L}function or(y,L,B){lr(y,function(){L.apply(this,arguments)},B)}function Ot(y){return lr(y,function(L){return L})||[]}function wr(y){if(!dt(y))throw new Error("React.Children.only expected to receive a single React element child.");return y}function Ur(y){var L={$$typeof:F,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};L.Provider={$$typeof:R,_context:L};var B=!1,X=!1,fe=!1;{var nt={$$typeof:F,_context:L};Object.defineProperties(nt,{Provider:{get:function(){return X||(X=!0,oe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),L.Provider},set:function(_e){L.Provider=_e}},_currentValue:{get:function(){return L._currentValue},set:function(_e){L._currentValue=_e}},_currentValue2:{get:function(){return L._currentValue2},set:function(_e){L._currentValue2=_e}},_threadCount:{get:function(){return L._threadCount},set:function(_e){L._threadCount=_e}},Consumer:{get:function(){return B||(B=!0,oe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),L.Consumer}},displayName:{get:function(){return L.displayName},set:function(_e){fe||(Oe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",_e),fe=!0)}}}),L.Consumer=nt}return L._currentRenderer=null,L._currentRenderer2=null,L}var sr=-1,Vn=0,Mr=1,Za=2;function $i(y){if(y._status===sr){var L=y._result,B=L();if(B.then(function(nt){if(y._status===Vn||y._status===sr){var _e=y;_e._status=Mr,_e._result=nt}},function(nt){if(y._status===Vn||y._status===sr){var _e=y;_e._status=Za,_e._result=nt}}),y._status===sr){var X=y;X._status=Vn,X._result=B}}if(y._status===Mr){var fe=y._result;return fe===void 0&&oe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -0,0 +1 @@
1
+ import{b as i}from"./chunk-JA2QZ635.js";import{e as n,g as o}from"./chunk-VKWPEFWQ.js";o();var e=n(i(),1),t=["high","medium","low","none"],c={blocking:e.Flags.custom({description:"The minimum finding severity that causes a non-zero exit code.",options:t,default:"none",env:"SHOPIFY_FLAG_APP_SECURITY_BLOCKING"})()};export{c as a};
@@ -1 +1 @@
1
- import{e as c}from"./chunk-3CZ7DKE5.js";import{W as s}from"./chunk-CNK3ZO2B.js";import{h as p,k as a}from"./chunk-OAG72Q2O.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function v(e,t){let o=e.apiSecretKeys[0]?.secret;if(!o)throw new a("No API secret keys found for app");return s(t,e.apiKey,o)}function y(e){let{organization:t,remoteApp:o,storeFqdn:u,version:r}=e,n=[`Organization: ${t.businessName}`,`App: ${o.title}`,`Store: ${u}`];return r&&n.push(`API version: ${r}`),n}function S(e,t){if(c(e)&&t.storeType!=="APP_DEVELOPMENT")throw new p("Mutations can only be executed on dev stores.")}export{v as a,y as b,S as c};
1
+ import{e as c}from"./chunk-3AASYIOA.js";import{N as s}from"./chunk-L5XWYTHY.js";import{i as p,l as a}from"./chunk-FCULF3JA.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();async function v(e,t){let o=e.apiSecretKeys[0]?.secret;if(!o)throw new a("No API secret keys found for app");return s(t,e.apiKey,o)}function y(e){let{organization:t,remoteApp:o,storeFqdn:u,version:r}=e,n=[`Organization: ${t.businessName}`,`App: ${o.title}`,`Store: ${u}`];return r&&n.push(`API version: ${r}`),n}function S(e,t){if(c(e)&&t.storeType!=="APP_DEVELOPMENT")throw new p("Mutations can only be executed on dev stores.")}export{v as a,y as b,S as c};
@@ -0,0 +1,8 @@
1
+ import{c as J}from"./chunk-IISE7SBT.js";import{b as k}from"./chunk-CHLSNYF7.js";import{a as re}from"./chunk-5BYVVXGD.js";import{a as ae}from"./chunk-YGFEUXKQ.js";import{a as z}from"./chunk-JTPVSO6Y.js";import{Ha as ne,I as ee,K as te,d as Q,e as Z}from"./chunk-2KLXRVGQ.js";import{q as F,s as X,t as K}from"./chunk-Q45XAEG2.js";import{a as T}from"./chunk-6RBCFXJT.js";import{b as H,f as I}from"./chunk-DGMRL5DQ.js";import{C as $,p as b,x as G,y as _}from"./chunk-6GA56I3E.js";import{A as q,D as Y,F as V,H as O,J as W,z as U}from"./chunk-SKRUMRB4.js";import{e as E}from"./chunk-YTJ3EPD3.js";import{i as u}from"./chunk-FCULF3JA.js";import{$ as f,Aa as w,Ca as v,Db as P,Sa as D,Xa as h,Ya as j,_a as L,ca as S,oa as g,ua as N}from"./chunk-YJWNM4XO.js";import{f as B}from"./chunk-SGBLCVUX.js";import{b as ge}from"./chunk-JA2QZ635.js";import{d as p,n as R}from"./chunk-3VYOLEQE.js";import{e as xe,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();async function ie(e,t,r,n={}){let{templates:a,groupOrder:i}=await e.templateSpecifications(t,n);return{templates:a.filter(o=>r.includes(o.identifier)||r.includes(o.type)),groupOrder:i}}d();d();async function oe(e,t){let r=e?.path??"",n=p(t,r);if(!await h(n))throw new u(`
2
+ The extension is not available for ${e?.value}`);return n}async function se({name:e,app:t}){let r=S(e),n=p(t.directory,K.extensions.directoryName,r);if(await h(n))throw new u(`
3
+ A directory with this name (${r}) already exists.
4
+ Choose a new name for your extension.`);return await w(n),await N(p(n,F.lockFile)),n}function A(e){switch(e){case"vanilla-js":case"preact":case"react":case"typescript":case"typescript-react":return"javascript";case"rust":case"wasm":return e;case void 0:case"liquid":case"config-only":return}}async function ce(e){let t=e.extensionChoices.name,r=e.extensionChoices.flavor,n=e.extensionTemplate.supportedFlavors.find(o=>o.value===r),a=await se({app:e.app,name:t}),i=e.cloneUrl??e.extensionTemplate.url,s={directory:a,url:i,app:e.app,project:e.project,type:e.extensionTemplate.type,name:t,extensionFlavor:n,onGetTemplateRepository:e.onGetTemplateRepository??(async(o,c)=>{await J({repoUrl:o,destination:c,shallow:!0})})};return await we(s),{directory:R(a),extensionTemplate:e.extensionTemplate}}async function we(e){try{switch(e.type){case"theme":await Pe(e);break;case"function":await ke(e);break;default:await Fe(e);break}let t=p(e.directory,F.lockFile);await v(t)}catch(t){throw await ve(e.directory),e.project.packageManager==="pnpm"&&Ee(t)?new u("Your extension couldn't be generated because pnpm blocked the build scripts of some of its dependencies.",null,[["Run",{command:"pnpm approve-builds"},"in your app directory to approve the build scripts."],["Run",{command:P(e.project.packageManager,"shopify app generate extension")},"again."]]):t}}async function ve(e){try{await v(e,{maxRetries:10,retryDelay:100})}catch{q({headline:["Couldn't remove",{filePath:e},{char:"."}],body:"Delete this directory manually before generating an extension with the same name."})}}function Ee(e){return e instanceof Error&&e.message.includes("ERR_PNPM_IGNORED_BUILDS")}async function Pe({directory:e,url:t,type:r,name:n,extensionFlavor:a,onGetTemplateRepository:i}){return g(async s=>{let o=await M(t,a,s,i);await k(o,e,{name:n,type:r,uid:E(f(n))})})}async function ke({directory:e,url:t,app:r,project:n,name:a,extensionFlavor:i,onGetTemplateRepository:s}){let o=A(i?.value),c=[];c.push({title:"Generating function extension",task:async()=>{if(await g(async l=>{let m=await M(t,i,l,s);await k(m,e,{name:a,handle:f(a),flavor:i?.value,uid:E(f(a))})}),o==="javascript"){let l=le(i?.value??"rust");await pe(e,l,"!(*.graphql)")}}}),o==="javascript"&&c.push({title:"Installing additional dependencies",task:async()=>{n.usesWorkspaces&&await b({packageManager:n.packageManager,directory:n.directory});let l=Te(o);await _(l,{packageManager:n.packageManager,type:"prod",directory:n.usesWorkspaces?e:n.directory})}}),o==="javascript"&&c.push({title:"Building GraphQL types",task:async()=>{await Z({directory:e,isJavaScript:!0},{stdout:process.stdout,stderr:process.stderr,app:r})}}),await O(c)}async function Fe({directory:e,url:t,app:r,project:n,name:a,extensionFlavor:i,onGetTemplateRepository:s}){let o=A(i?.value),c=[{title:"Generating extension",task:async()=>{let l=le(i?.value??"vanilla-js");await g(async m=>{let y=await M(t,i,m,s);await k(y,e,{srcFileExtension:l,name:a,handle:f(a),flavor:i?.value??"",uid:E(f(a))})}),o==="javascript"&&await pe(e,l)}},{title:"Installing dependencies",task:async()=>{let l=n.packageManager;if(n.usesWorkspaces)A(i?.value)==="javascript"&&await b({packageManager:l,directory:n.directory});else{await be(n.directory,i?.value);let m=p(e,"package.json"),y=await _e(m);await _(y,{packageManager:l,type:"prod",directory:n.directory}),await v(m)}}}];c.push({title:"Update shared type definition",task:async()=>{await te(r)}}),await O(c)}function le(e){return{"vanilla-js":"js",preact:"jsx",react:"jsx",typescript:"ts","typescript-react":"tsx",rust:"rs",wasm:"wasm",liquid:"liquid","config-only":""}[e]??"js"}function Te(e){let t=[];return e==="javascript"&&t.push({name:"@shopify/shopify_function",version:`~${Q}.0.0`}),t}async function pe(e,t,r="*"){let n=await L(p(e,"src",r)),a=[];for(let i of n)a.push(D(i,`${i}.${t}`));await Promise.all(a)}async function be(e,t){t==="typescript-react"&&await $(e,{"@types/react":X.reactTypes})}async function _e(e){if(!await h(e))return[];let t=await G(e);return Object.entries(t?.dependencies??{}).map(([r,n])=>({name:r,version:n}))}async function M(e,t,r,n){let a=p(r,"download");return await w(a),await n(e,a),oe(t,a)}d();function Oe(e,t=[]){let r=[...e.map(a=>({label:a.name,value:a.identifier,group:a.group||"Other",sortPriority:a.sortPriority??Number.MAX_SAFE_INTEGER})),...t.map(a=>({label:`${a.name} (limit reached)`,value:a.identifier,group:a.group||"Other",disabled:!0,sortPriority:a.sortPriority??Number.MAX_SAFE_INTEGER}))],n=(a,i)=>a.sortPriority===i.sortPriority?a.label.localeCompare(i.label):a.sortPriority-i.sortPriority;return r.sort(n)}var Ie=async e=>{let t=e.extensionTemplates,r=e.templateType,n=e.extensionFlavor;if(!r){if(n&&(t=t.filter(c=>c.supportedFlavors.map(l=>l.value).includes(n))),t.length===0)throw new u("You have reached the limit for the number of extensions you can create.");r=await V({message:"Type of extension?",choices:Oe(t,e.unavailableExtensions),groupOrder:e.groupOrder})}let a=t.find(c=>c.identifier===r),i=e.name||await de(e.directory,a.defaultName),s=e.extensionFlavor??await Ae(a);return{extensionTemplate:a,extensionContent:{name:i,flavor:s}}};async function de(e,t,r=1){let n=t.includes(" ")?" ":"-",a=r<=1?t:`${t}${n}${r}`,i=p(e,f(a));return j(i)?de(e,t,r+1):W({message:"Name your extension:",defaultValue:a})}async function Ae(e){if(e.supportedFlavors.length!==0)return e.supportedFlavors.length===1&&e.supportedFlavors[0]?e.supportedFlavors[0].value:Y({message:"What would you like to work in?",choices:e.supportedFlavors.map(t=>({label:t.name,value:t.value})),defaultValue:"react"})}var ue=Ie;async function Me(e){let{app:t,developerPlatformClient:r,remoteApp:n,specifications:a,template:i}=e,s=a.map(he=>he.identifier),{templates:o,groupOrder:c}=await ie(r,n,s,{requestedTemplate:i}),l=await Ce(o,c,a,t,e),m=await ue(l);await Se(m,i);let y=Ne(m,t,e,r),ye=await ce(y);De(ye,e.project.packageManager)}async function Ce(e,t,r,n,a){let i=await Ge(a.template,n,e,r);je(i,a.flavor);let{validTemplates:s,templatesOverlimit:o}=Re(e,r,n);return{templateType:i?.identifier,name:a.name,extensionFlavor:a.flavor,directory:p(a.directory,"extensions"),app:n,extensionTemplates:s??[],unavailableExtensions:o??[],reset:a.reset,groupOrder:t}}function Re(e,t,r){return re(e,a=>!me(r,t,a)?"validTemplates":"templatesOverlimit")}function me(e,t,r){let n=r.type,a=t.find(s=>s.identifier===n||s.externalIdentifier===n);return e.extensionsForType({identifier:n,externalIdentifier:n}).length>=(a?.registrationLimit??1)}async function Se(e,t){let{extensionContent:r}=e;return T.addPublicMetadata(()=>({cmd_scaffold_template_flavor:r.flavor,cmd_scaffold_type:e.extensionTemplate.identifier,cmd_scaffold_used_prompts_for_type:!t}))}function Ne(e,t,r,n){return{app:t,project:r.project,cloneUrl:r.cloneUrl,extensionChoices:e.extensionContent,extensionTemplate:e.extensionTemplate,developerPlatformClient:n}}function De(e,t){let r=Le(e.extensionTemplate,e.directory,t);U(r)}function je(e,t){if(!t||!e)return;let r=e.supportedFlavors.map(n=>n.value);if(!r.includes(t))throw new u("Invalid template for extension type",`Expected template to be one of the following: ${r.join(", ")}.`)}function Le(e,t,r){let n={headline:["Your extension was created in",{filePath:t},{char:"."}],nextSteps:[],reference:[]};return e.type!=="function"&&n.nextSteps.push(["To preview this extension along with the rest of the project, run",{command:P(r,"shopify app dev")}]),e.supportLinks[0]&&n.reference.push(["For more details, see the",{link:{label:"docs",url:e.supportLinks[0]}}]),n}async function Ge(e,t,r,n){if(!e)return;let a=r.find(i=>i.identifier===e);if(!a){let i=await B(),s=r.map(c=>c.identifier),o=i?"You might need to enable some flags on your Organization or App":void 0;throw new u(`Unknown extension type: ${e}.
5
+ The following extension types are supported: ${s.join(", ")}`,o)}if(me(t,n,a))throw new u(`Invalid extension type: ${e}`,`You have reached the limit of extension(s) of type ${a.type} per app`);return a}var fe=Me;var x=xe(ge(),1);var C=class e extends ae{static summary="Generate a new app Extension.";static descriptionWithMarkdown=`Generates a new [app extension](https://shopify.dev/docs/apps/build/app-extensions). For a list of app extensions that you can generate using this command, refer to [Supported extensions](https://shopify.dev/docs/apps/build/app-extensions/list-of-app-extensions).
6
+
7
+ Each new app extension is created in a folder under \`extensions/\`. To learn more about the extensions file structure, refer to [App structure](https://shopify.dev/docs/apps/build/cli-for-apps/app-structure) and the documentation for your extension.
8
+ `;static description=this.descriptionForHelp();static flags={...H,...z,template:I(x.Flags.string({char:"t",hidden:!1,description:"Extension template",env:"SHOPIFY_FLAG_EXTENSION_TEMPLATE"})),name:I(x.Flags.string({char:"n",hidden:!1,description:"name of your Extension",env:"SHOPIFY_FLAG_NAME"})),"clone-url":x.Flags.string({hidden:!0,char:"u",description:"The Git URL to clone the function extensions templates from. Defaults to: https://github.com/Shopify/function-examples",env:"SHOPIFY_FLAG_CLONE_URL"}),flavor:x.Flags.string({hidden:!1,description:"Choose a starting template for your extension, where applicable. Required if non interactive when the selected extension template supports multiple flavors.",options:["vanilla-js","react","typescript","typescript-react","wasm","rust"],env:"SHOPIFY_FLAG_FLAVOR"})};async run(){let{flags:t}=await this.parse(e);await T.addPublicMetadata(()=>({cmd_scaffold_required_auth:!0,cmd_scaffold_template_custom:t["clone-url"]!==void 0,cmd_scaffold_type_owner:"@shopify/app"})),await ee(t.path);let{app:r,project:n,specifications:a,remoteApp:i,developerPlatformClient:s}=await ne({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return await fe({directory:t.path,reset:t.reset,name:t.name,cloneUrl:t["clone-url"],template:t.template,flavor:t.flavor,app:r,project:n,specifications:a,remoteApp:i,developerPlatformClient:s}),{app:r}}};export{C as a};
@@ -0,0 +1,6 @@
1
+ import{a as v}from"./chunk-J3JPJCWP.js";import{a as ue}from"./chunk-VFO5OYQ4.js";import{b as ne,c as se,d as ie,e as ae,f as le,h as ce,i as me,k as de,l as fe,n as he}from"./chunk-NTVEJYKI.js";import{a as x}from"./chunk-QBGSSUJP.js";import{c as Z,e as b,m as ee,n as te}from"./chunk-ZHJ6KA43.js";import{c as re,e as oe}from"./chunk-ECEOBSGD.js";import{k as P,l as X,n as w}from"./chunk-R757TSQ6.js";import{s as C,u as k}from"./chunk-P3Z5RLVV.js";import{a as Y,b as Q}from"./chunk-Z3XIZMEM.js";import{o as j,s as z,t as N,u as B,w as V}from"./chunk-Q7BOSHWX.js";import{na as L,ra as _}from"./chunk-L5XWYTHY.js";import{A as R,C as G,D as U,N as J,V as K,w as W,y as M,z as q}from"./chunk-SKRUMRB4.js";import{b as $}from"./chunk-YTJ3EPD3.js";import{d as H,e as I}from"./chunk-G54BKNIX.js";import{i as y}from"./chunk-FCULF3JA.js";import{Cb as g,Eb as T,Kb as E,Nb as u}from"./chunk-YJWNM4XO.js";import{i as p}from"./chunk-B4OMIONW.js";import{g as f}from"./chunk-VKWPEFWQ.js";f();f();f();f();var pe={workPromise:Promise.resolve()};async function ye(e,t,o,r,n){if(o.length===0)return pe;u("Initiating theme asset reconciliation process");let{filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:s,filesWithConflictingChecksums:l}=Se(o,r),a=i.length===0&&s.length===0&&l.length===0;if(_(`theme-service:theme-reconciliation:manual:${a}`),a)return u("Local and remote checksums match - no need to reconcile theme assets"),pe;let m=await Fe({filesOnlyPresentLocally:i,filesOnlyPresentOnRemote:s,filesWithConflictingChecksums:l},n);return{workPromise:Oe(e,t,r,m)}}function Se(e,t){let o=new Set,r=[],n=[];for(let s of e){o.add(s.key);let l=t.files.get(s.key);l?s.checksum!==l.checksum&&n.push(s):r.push(s)}let i=Array.from(t.files.values()).filter(s=>!o.has(s.key));return{filesOnlyPresentOnRemote:S(r,t),filesOnlyPresentLocally:S(i,t),filesWithConflictingChecksums:S(n,t)}}function S(e,t){return t.applyIgnoreFilters(e).filter(r=>r.key.endsWith(".json"))}async function A(e,t,o,r){if(e.length===0)return;if(r){Ae(e,o,r);return}M({body:{list:{title:t,items:e.map(i=>i.key)}}}),await U({message:"Reconciliation Strategy",choices:[{label:o.remote.label,value:D},{label:o.local.label,value:we}]})===D?o.remote.callback(e):o.local.callback(e)}function Ae(e,t,o){switch(o){case"keep-remote":t.remote.callback(e);break;case"keep-local":t.local.callback(e);break;case"abort":break}}function De(e){let t=[{title:"The files listed below are only present locally.",files:e.filesOnlyPresentLocally},{title:"The files listed below are only present on the remote theme.",files:e.filesOnlyPresentOnRemote},{title:"The files listed below differ between the local and remote versions.",files:e.filesWithConflictingChecksums}];throw new y("Theme JSON files need reconciliation.",t.filter(o=>o.files.length>0).map(o=>`${o.title}
2
+ ${o.files.map(r=>`- ${r.key}`).join(`
3
+ `)}`).join(`
4
+
5
+ `))}async function Oe(e,t,o,r){let{localFilesToDelete:n,filesToDownload:i,remoteFilesToDelete:s}=r,l=n.map(d=>o.delete(d.key)),a=v(i,k,async d=>{let c=await P(e.id,d.map(h=>h.key),t);return Promise.all(c.map(h=>{if(h)return o.write(h)}))}),m=X(e.id,s.map(d=>d.key),t);await Promise.all([...l,...a,m])}async function Fe(e,t){let{filesOnlyPresentLocally:o,filesOnlyPresentOnRemote:r,filesWithConflictingChecksums:n}=e,{reconciliationStrategy:i}=t,s=[],l=[],a=[],m={filesOnlyPresentLocally:t.noDelete?[]:o,filesOnlyPresentOnRemote:r,filesWithConflictingChecksums:n},d=Object.values(m).some(c=>c.length>0);return i==="abort"&&d&&De(m),t.noDelete||await A(o,"The files listed below are only present locally. What would you like to do?",{remote:{label:"Delete files from the local directory",callback:c=>{s.push(...c)}},local:{label:"Upload local files to the remote theme",callback:()=>{}}},i),await A(r,"The files listed below are only present on the remote theme. What would you like to do?",{remote:{label:"Download remote files to the local directory",callback:c=>{l.push(...c)}},local:{label:"Delete files from the remote theme",callback:c=>{a.push(...c)}}},i),await A(n,"The files listed below differ between the local and remote versions. What would you like to do?",{remote:{label:"Keep the remote version",callback:c=>{l.push(...c)}},local:{label:"Keep the local version",callback:c=>{a.push(...c)}}},i),{localFilesToDelete:s,filesToDownload:l,remoteFilesToDelete:a}}f();var $e=3e3,O=class extends Error{};function ke(e,t,o,r,n,i){u("Listening for changes in the theme editor");let s=5,l=0,a="",m=o,d=async()=>{await new Promise(c=>setTimeout(c,$e)),m=await Le(e,t,m,r,n).then(c=>(l=0,a="",c)).catch(c=>{if(l++,c.message!==a&&(a=c.message,b("Error while polling for changes.",c)),l>=s){let h=new y("Too many polling errors...","Please check the errors above and ensure you have a stable internet connection.");G(h),i(h)}return m})};setTimeout(async()=>{for(;;)await d()})}async function Le(e,t,o,r,n){let i=new Set(r.unsyncedFileKeys),s=ge(o,r,i),l=await w(e.id,t).then(d=>ge(d,r,i)),a=He(s,l),m=_e(l,s);return await Me(r,a),await Ie(e,t,r,a),await We(r,m,n),l}function _e(e,t){let o=new Map(e.map(n=>[n.key,n]));return t.filter(n=>o.get(n.key)===void 0)}function He(e,t){let o=new Map(e.map(n=>[n.key,n]));return t.filter(n=>{let i=o.get(n.key);if(!i||i.checksum!==n.checksum)return!0})}async function Ie(e,t,o,r){let n=r.filter(s=>o.files.get(s.key)?.checksum!==s.checksum),i=v(n,k,async s=>P(e.id,s.map(l=>l.key),t).then(l=>Promise.all(l.map(async a=>{a&&(await o.write(a),E(T`• ${C.format(new Date)} Synced ${g.raw("\xBB")} ${g.gray(`download ${a.key} from remote theme`)}`))}))));await Promise.all(i)}async function We(e,t,o){if(!o.noDelete)return Promise.all(t.map(r=>{if(e.files.get(r.key))return e.delete(r.key).then(()=>{E(T`• ${C.format(new Date)} Synced ${g.raw("\xBB")} ${g.gray(`remove ${r.key} from local theme`)}`)})}))}async function Me(e,t){let o=new Map(e.files);await Promise.all(t.map(r=>e.read(r.key)));for(let r of t){let n=o.get(r.key)?.checksum,i=e.files.get(r.key)?.checksum;if(n!==i)throw new O(`Detected changes to the file '${r.key}' on both local and remote sources. Aborting...`)}}function ge(e,t,o){return t.applyIgnoreFilters(e).filter(n=>n.key.endsWith(".json")).filter(n=>!o.has(n.key))}var we="local",D="remote";async function Pe(e,t,o,r,n,i){u("Initiating theme asset reconciliation process"),await r.ready();let{workPromise:s}=await ye(e,t,o,r,n);return{updatedRemoteChecksumsPromise:s.then(async()=>{let a=await w(e.id,t);return ke(e,t,a,r,n,i),a}),workPromise:s}}import{createServer as qe}from"node:http";function be(e,t){let{promise:o,resolve:r,reject:n}=Promise.withResolvers(),i=ce(e,t),s=Ge(e,t,n),l=Promise.all([i,s.workPromise]).then(()=>t.localThemeFileSystem.startWatcher(e.id.toString(),t.session)),a=Je(e,t,l);return{workPromise:l,serverStart:a.start,dispatchEvent:a.dispatch,renderDevSetupProgress:s.renderProgress,backgroundJobPromise:o,resolveBackgroundJob:r}}function Ge(e,t,o){let r=a=>(b("Failed to perform the initial theme synchronization.",a),o(a),new Promise(()=>{})),i=w(e.id,t.session).then(a=>Ue(e,t,a,o)),s=i.then(async({updatedRemoteChecksumsPromise:a})=>{let m=await a;return ue(e,t.session,m,t.localThemeFileSystem,{nodelete:t.options.noDelete,deferPartialWork:!0,backgroundWorkCatch:r})});return{workPromise:s.then(a=>a.workPromise).catch(r),renderProgress:async()=>{if(t.options.themeEditorSync){let{workPromise:m}=await i;await oe([{title:"Performing file synchronization. This may take a while...",task:async()=>{await m}}])}let{renderThemeSyncProgress:a}=await s;await a()}}}function Ue(e,t,o,r){return t.options.themeEditorSync?Pe(e,t.session,o,t.localThemeFileSystem,{noDelete:t.options.noDelete,ignore:t.options.ignore,only:t.options.only,reconciliationStrategy:t.options.reconciliationStrategy},r):Promise.resolve({updatedRemoteChecksumsPromise:Promise.resolve(o),workPromise:Promise.resolve()})}function Je(e,t,o){let r=B(),n=[`http://${t.options.host}:${t.options.port}`,`https://${t.session.storeFqdn}`,"https://online-store-web.shopifyapps.com"];r.use(ae(t.options.host,t.options.port)),r.use(N(async()=>(await o,z(s=>{s.node.req.headers.origin&&j(s,{origin:a=>n.includes(a),credentials:!0,methods:["GET","POST","HEAD","OPTIONS"],preflight:{statusCode:204}})})))),t.options.liveReload!=="off"&&r.use(me(e,t)),r.use(ie(e,t)),r.use(ne(e,t)),r.use(se(e,t));let i=qe(V(r));return{dispatch:r.handler.bind(r),start:async()=>new Promise(s=>i.listen({port:t.options.port,host:t.options.host},()=>s({close:async()=>{await Promise.all([new Promise(l=>{i.closeAllConnections(),i.close(l)})])}})))}}import Ke from"readline";var je="127.0.0.1",ze=9292,ve=!1;async function er(e){if(!await he(e.directory)&&!await re(e.force))return;e.password?.startsWith("shpat_")&&R({headline:"Admin API token missing features:",body:["Directly using an Admin API token will result in some missing features.","We recommend generating a password from the Theme Access app.","Alternatively, you can authenticate normally by not passing the --password flag.",`
6
+ `,{list:{title:"Known limitations:",items:["Hot module reloading","Password protected storefronts"]}}],link:{label:"Theme Access app",url:"https://shopify.dev/docs/storefronts/themes/tools/theme-access"}}),e.listing&&await de(e.directory,e.listing);let[t,o]=await Promise.all([ee(e.adminSession),Z(e.adminSession)]),r=o?await x(e.storePassword,e.adminSession.storeFqdn,t):void 0,n=le(),i=fe(e.directory,{filters:e,listing:e.listing,noDelete:e.noDelete,notify:e.notify}),s=e.host??je,l;if(e.port){if(!await Q(e.port))throw new y(`Port ${e.port} is not available. Try a different port or remove the --port flag to use an available port.`);l=e.port}else l=await Y(ze);let a={local:`http://${s}:${l}`,giftCard:`http://${s}:${l}/gift_cards/[store_id]/preview`,themeEditor:`https://${e.store}/admin/themes/${e.theme.id}/editor?hr=${l}`,preview:`https://${e.store}/?preview_theme_id=${e.theme.id}`},d={session:await te(e.theme.id.toString(),e.adminSession,e.password,r,t),localThemeFileSystem:i,localThemeExtensionFileSystem:n,directory:e.directory,type:"theme",lastRequestedPath:"",options:{themeEditorSync:e["theme-editor-sync"],reconciliationStrategy:e.reconciliationStrategy,host:s,port:l,open:e.open,liveReload:e["live-reload"],standardEventsDevBundle:!0,standardEventsInspector:e["standard-events-inspector"],noDelete:e.noDelete,ignore:e.ignore,only:e.only,errorOverlay:e["error-overlay"]}},{serverStart:c,renderDevSetupProgress:h,backgroundJobPromise:Te,resolveBackgroundJob:Ee}=be(e.theme,d),F=K();if(F){Ke.emitKeypressEvents(process.stdin);let Ce=Be(a,d,Ee);process.stdin.on("keypress",Ce)}await Promise.all([Te,h().then(c).then(()=>{F&&process.stdin.setRawMode(!0),Ye(a),e.open&&Re(a.local,"development server")})]),await Ne(e.commandConfig,e.adminSession),process.exit(0)}async function Ne(e,t){if(!ve){ve=!0;try{await H(()=>({store_fqdn_hash:$(t.storeFqdn)})),await I(()=>({store_fqdn:t.storeFqdn})),await L({config:e,exitMode:"ok"})}catch{}}}function Be(e,t,o){let r=W(Re,100,{leading:!0,trailing:!1});return(n,i)=>{if(i.ctrl&&i.name==="c"){o();return}switch(i.name){case void 0:break;case"t":r(e.local,"localhost");break;case"p":r(e.preview,"theme preview");break;case"e":r(t.lastRequestedPath==="/"?e.themeEditor:`${e.themeEditor}&previewPath=${encodeURIComponent(t.lastRequestedPath)}`,"theme editor");break;case"g":r(e.giftCard,"gift card preview");break;default:break}}}function Re(e,t){J(e).catch(Ve(t))}function Ve(e){return t=>{R({headline:`Failed to open ${e}.`,body:t.stack??t.message})}}function Ye(e){q({body:[{list:{title:p.bold("Preview your theme ")+p.cyan("(t)"),items:[{link:{url:e.local}}]}}],nextSteps:[[{link:{label:`Share your theme preview ${p.cyan("(p)")}`,url:e.preview}},{subdued:e.preview}],[{link:{label:`Customize your theme at the theme editor ${p.cyan("(e)")}`,url:e.themeEditor}}],[{link:{label:`Preview your gift cards ${p.cyan("(g)")}`,url:e.giftCard}}]]})}export{er as a,Re as b};
@@ -1,4 +1,4 @@
1
- import{a as Xw}from"./chunk-IWOTLFOY.js";import{a as d$}from"./chunk-FFSDGRAN.js";import{a as Qw,b as p$,c as h$}from"./chunk-F3TMLDLC.js";import{Ca as f$,Da as Yw,m as Kw}from"./chunk-CNK3ZO2B.js";import{q as Jw}from"./chunk-TR4OWSEX.js";import{a as ce,b as we,c as x,d as Oy,e as Ia,f as Py,g as p}from"./chunk-VKWPEFWQ.js";var qy=x(Ny=>{"use strict";p();Object.defineProperty(Ny,"__esModule",{value:!0});Ny.deepGet=m$;function m$(e,t){return t.reduce((r,n)=>r?.[n],e)}});var Zw=x(fs=>{"use strict";p();Object.defineProperty(fs,"__esModule",{value:!0});fs.first=g$;fs.last=y$;fs.findLast=_$;fs.findLastIndex=Ly;fs.findLastAndIndex=v$;function g$(e){return e[0]}function y$(e,t=0){return e[e.length-1+t]}function _$(e,t){return e[Ly(e,t)]}function Ly(e,t){for(let r=e.length-1;r>=0;r--)if(t(e[r]))return r;return-1}function v$(e,t){let r=Ly(e,t);return[e[r],r]}});var tx=x((kpe,ex)=>{"use strict";p();var b$=Qw();ex.exports=function(t){return t!=null&&typeof t=="object"&&b$(t)===!1}});var Cy=x((wpe,rx)=>{"use strict";p();var k$=Qw(),S$=tx(),Tpe=Array.prototype.slice;rx.exports=Ma;function Ma(e,t){if(!(this instanceof Ma))return typeof t=="number"?new Ma(e).fromIndex(t):new Ma(e,t);this.str=e||"",this.lineToIndex=T$(this.str),t=t||{},this.origin=typeof t.origin>"u"?1:t.origin}Ma.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e))return null;var t=w$(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};Ma.prototype.toIndex=function(e,t){if(typeof t>"u")return k$(e)&&e.length>=2?this.toIndex(e[0],e[1]):S$(e)&&"line"in e&&("col"in e||"column"in e)?this.toIndex(e.line,"col"in e?e.col:e.column):-1;if(isNaN(e)||isNaN(t))return-1;if(e-=this.origin,t-=this.origin,e>=0&&t>=0&&e<this.lineToIndex.length){var r=this.lineToIndex[e],n=e===this.lineToIndex.length-1?this.str.length:this.lineToIndex[e+1];if(t<n-r)return r+t}return-1};function T$(e){for(var t=e.split(`
1
+ import{a as Xw}from"./chunk-IWOTLFOY.js";import{a as d$}from"./chunk-FFSDGRAN.js";import{a as Qw,b as p$,c as h$}from"./chunk-F3TMLDLC.js";import{d as Kw,ta as f$,ua as Yw}from"./chunk-L5XWYTHY.js";import{q as Jw}from"./chunk-TR4OWSEX.js";import{a as ce,b as we,c as x,d as Oy,e as Ia,f as Py,g as p}from"./chunk-VKWPEFWQ.js";var qy=x(Ny=>{"use strict";p();Object.defineProperty(Ny,"__esModule",{value:!0});Ny.deepGet=m$;function m$(e,t){return t.reduce((r,n)=>r?.[n],e)}});var Zw=x(fs=>{"use strict";p();Object.defineProperty(fs,"__esModule",{value:!0});fs.first=g$;fs.last=y$;fs.findLast=_$;fs.findLastIndex=Ly;fs.findLastAndIndex=v$;function g$(e){return e[0]}function y$(e,t=0){return e[e.length-1+t]}function _$(e,t){return e[Ly(e,t)]}function Ly(e,t){for(let r=e.length-1;r>=0;r--)if(t(e[r]))return r;return-1}function v$(e,t){let r=Ly(e,t);return[e[r],r]}});var tx=x((kpe,ex)=>{"use strict";p();var b$=Qw();ex.exports=function(t){return t!=null&&typeof t=="object"&&b$(t)===!1}});var Cy=x((wpe,rx)=>{"use strict";p();var k$=Qw(),S$=tx(),Tpe=Array.prototype.slice;rx.exports=Ma;function Ma(e,t){if(!(this instanceof Ma))return typeof t=="number"?new Ma(e).fromIndex(t):new Ma(e,t);this.str=e||"",this.lineToIndex=T$(this.str),t=t||{},this.origin=typeof t.origin>"u"?1:t.origin}Ma.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e))return null;var t=w$(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};Ma.prototype.toIndex=function(e,t){if(typeof t>"u")return k$(e)&&e.length>=2?this.toIndex(e[0],e[1]):S$(e)&&"line"in e&&("col"in e||"column"in e)?this.toIndex(e.line,"col"in e?e.col:e.column):-1;if(isNaN(e)||isNaN(t))return-1;if(e-=this.origin,t-=this.origin,e>=0&&t>=0&&e<this.lineToIndex.length){var r=this.lineToIndex[e],n=e===this.lineToIndex.length-1?this.str.length:this.lineToIndex[e+1];if(t<n-r)return r+t}return-1};function T$(e){for(var t=e.split(`
2
2
  `),r=new Array(t.length),n=0,i=0,s=t.length;i<s;i++)r[i]=n,n+=t[i].length+1;return r}function w$(e,t){if(e>=t[t.length-1])return t.length-1;for(var r=0,n=t.length-2,i;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}return r}});var ix=x(Ra=>{"use strict";p();var x$=Ra&&Ra.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ra,"__esModule",{value:!0});Ra.getPosition=E$;Ra.getOffset=A$;var nx=x$(Cy());function E$(e,t){let r=(0,nx.default)(e,{origin:0}).fromIndex(Math.min(t,e.length-1));return{index:t,line:r?r.line:-1,character:r?r.col:-1}}function A$(e,t,r){return(0,nx.default)(e,{origin:1}).toIndex(t,r)}});var df=x(pf=>{"use strict";p();Object.defineProperty(pf,"__esModule",{value:!0});pf.isError=P$;pf.asError=N$;var O$={1:"Invalid symbol found in the input.",2:"Invalid number format detected.",3:"Property name expected but not found.",4:"A value was expected but not found.",5:"Colon `:` expected after the property name.",6:"Comma `,` expected between elements and properties.",7:"Closing brace `}` expected.",8:"Closing bracket `]` expected.",9:"End of file expected.",10:"Invalid comment token found.",11:"Unexpected end of comment.",12:"Unexpected end of string.",13:"Unexpected end of number.",14:"Invalid Unicode escape sequence.",15:"Invalid escape character found.",16:"Invalid character found in the input."};function P$(e){return e instanceof Error}function N$(e){return e instanceof Error?e:typeof e=="string"?new Error(e):e&&typeof e=="object"&&"error"in e?new Error(q$(e)):e&&typeof e.toString=="function"?new Error(e.toString()):new Error("An unknown error occurred")}function q$(e){return O$[e.error]||"Unknown parse error."}});var My=x(Iy=>{"use strict";p();Object.defineProperty(Iy,"__esModule",{value:!0});Iy.assertNever=L$;function L$(e){throw new Error(`We should never reach this code, you are missing a case for ${e}`)}});var Dy=x(hf=>{"use strict";p();Object.defineProperty(hf,"__esModule",{value:!0});hf.memo=C$;hf.memoize=I$;var Ry=Symbol("Unset");function C$(e){let t=Ry,r=(...n)=>(t===Ry&&(t=e(...n)),t);return r.clearCache=()=>{t=Ry},r}function I$(e,t){let r={},n=(...i)=>{let s=t(...i);return r[s]||(r[s]=e(...i)),r[s]};return n.force=(...i)=>(n.invalidate(...i),n(...i)),n.invalidate=(...i)=>{let s=t(...i);delete r[s]},n.clearCache=()=>{r={}},n}});var Fy=x(jy=>{"use strict";p();Object.defineProperty(jy,"__esModule",{value:!0});jy.indexBy=M$;function M$(e,t){let r={};for(let n of t)r[e(n)]=n;return r}});function ps(e,t=!1){let r=e.length,n=0,i="",s=0,a=16,o=0,c=0,l=0,f=0,m=0;function d(T,y){let A=0,O=0;for(;A<T||!y;){let P=e.charCodeAt(n);if(P>=48&&P<=57)O=O*16+P-48;else if(P>=65&&P<=70)O=O*16+P-65+10;else if(P>=97&&P<=102)O=O*16+P-97+10;else break;n++,A++}return A<T&&(O=-1),O}function g(T){n=T,i="",s=0,a=16,m=0}function v(){let T=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&Da(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&Da(e.charCodeAt(n)))for(n++;n<e.length&&Da(e.charCodeAt(n));)n++;else return m=3,e.substring(T,n);let y=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&Da(e.charCodeAt(n))){for(n++;n<e.length&&Da(e.charCodeAt(n));)n++;y=n}else m=3;return e.substring(T,y)}function b(){let T="",y=n;for(;;){if(n>=r){T+=e.substring(y,n),m=2;break}let A=e.charCodeAt(n);if(A===34){T+=e.substring(y,n),n++;break}if(A===92){if(T+=e.substring(y,n),n++,n>=r){m=2;break}switch(e.charCodeAt(n++)){case 34:T+='"';break;case 92:T+="\\";break;case 47:T+="/";break;case 98:T+="\b";break;case 102:T+="\f";break;case 110:T+=`
3
3
  `;break;case 114:T+="\r";break;case 116:T+=" ";break;case 117:let P=d(4,!0);P>=0?T+=String.fromCharCode(P):m=4;break;default:m=5}y=n;continue}if(A>=0&&A<=31)if(xc(A)){T+=e.substring(y,n),m=2;break}else m=6;n++}return T}function _(){if(i="",m=0,s=n,c=o,f=l,n>=r)return s=r,a=17;let T=e.charCodeAt(n);if(By(T)){do n++,i+=String.fromCharCode(T),T=e.charCodeAt(n);while(By(T));return a=15}if(xc(T))return n++,i+=String.fromCharCode(T),T===13&&e.charCodeAt(n)===10&&(n++,i+=`
4
4
  `),o++,l=n,a=14;switch(T){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,i=b(),a=10;case 47:let y=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!xc(e.charCodeAt(n));)n++;return i=e.substring(y,n),a=12}if(e.charCodeAt(n+1)===42){n+=2;let A=r-1,O=!1;for(;n<A;){let P=e.charCodeAt(n);if(P===42&&e.charCodeAt(n+1)===47){n+=2,O=!0;break}n++,xc(P)&&(P===13&&e.charCodeAt(n)===10&&n++,o++,l=n)}return O||(n++,m=1),i=e.substring(y,n),a=13}return i+=String.fromCharCode(T),n++,a=16;case 45:if(i+=String.fromCharCode(T),n++,n===r||!Da(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=v(),a=11;default:for(;n<r&&k(T);)n++,T=e.charCodeAt(n);if(s!==n){switch(i=e.substring(s,n),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(T),n++,a=16}}function k(T){if(By(T)||xc(T))return!1;switch(T){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function w(){let T;do T=_();while(T>=12&&T<=15);return T}return{setPosition:g,getPosition:()=>n,scan:t?w:_,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>n-s,getTokenStartLine:()=>c,getTokenStartCharacter:()=>s-f,getTokenError:()=>m}}function By(e){return e===32||e===9}function xc(e){return e===10||e===13}function Da(e){return e>=48&&e<=57}var sx,mf=we(()=>{"use strict";p();(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(sx||(sx={}))});var ur,ja,Vy,ax,ox=we(()=>{p();ur=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),ja=200,Vy={" ":{"\n":new Array(ja).fill(0).map((e,t)=>`
@@ -1,3 +1,3 @@
1
- import{a as A}from"./chunk-VJEKDBGZ.js";import{b as f}from"./chunk-QZEDYQVT.js";import{f as C}from"./chunk-XRJCD3AO.js";import{h as n}from"./chunk-OAG72Q2O.js";import{Ab as u,Ea as b,Ta as I,Wa as G,qb as a,sb as s}from"./chunk-43FRAUV6.js";import{a as k,q as g}from"./chunk-XYUTD6IU.js";import{q as w}from"./chunk-773TIA5M.js";import{e as D,g as $}from"./chunk-VKWPEFWQ.js";$();var R=D(A());async function r(e,t){try{return(await f("git",e,{cwd:t})).stdout}catch(o){if(o instanceof Error){let i=new n(o.message);throw i.stack=o.stack,"exitCode"in o&&Object.assign(i,{exitCode:o.exitCode}),i}throw o}}async function K(e,t="main"){if(t.startsWith("-"))throw new n(`Invalid initial branch name: ${t}. Branch names can't start with a hyphen.`);u(s`Initializing git repository at ${a.path(e)}...`),await m(),await r(["init"],e),await r(["checkout","-b",t],e)}async function Q(e,t){try{return(await r(["check-ignore",...t],e)).split(`
1
+ import{a as A}from"./chunk-VJEKDBGZ.js";import{b as f}from"./chunk-OEZATTOS.js";import{f as C}from"./chunk-G54BKNIX.js";import{i as n}from"./chunk-FCULF3JA.js";import{Cb as a,Eb as s,Ia as b,Nb as u,Xa as I,_a as G}from"./chunk-YJWNM4XO.js";import{a as k,r as g}from"./chunk-SGBLCVUX.js";import{q as w}from"./chunk-3VYOLEQE.js";import{e as D,g as $}from"./chunk-VKWPEFWQ.js";$();var R=D(A());async function r(e,t){try{return(await f("git",e,{cwd:t})).stdout}catch(o){if(o instanceof Error){let i=new n(o.message);throw i.stack=o.stack,"exitCode"in o&&Object.assign(i,{exitCode:o.exitCode}),i}throw o}}async function K(e,t="main"){if(t.startsWith("-"))throw new n(`Invalid initial branch name: ${t}. Branch names can't start with a hyphen.`);u(s`Initializing git repository at ${a.path(e)}...`),await m(),await r(["init"],e),await r(["checkout","-b",t],e)}async function Q(e,t){try{return(await r(["check-ignore",...t],e)).split(`
2
2
  `).filter(Boolean)}catch(o){if(o instanceof n&&"exitCode"in o&&o.exitCode===1)return[];throw o}}async function V(e){return C("cmd_all_timing_network_ms")(async()=>{let{repoUrl:t,destination:o,shallow:i,latestTag:l}=e;if(u(s`Git-cloning repository ${t} into ${a.path(o)}...`),await m(),await I(o)){if(!await b(o))throw new n(s`Can't clone to ${a.path(o)}`,"The path exists but isn't a directory.");if((await G(["*",".*"],{cwd:o,deep:1,onlyFiles:!1})).length>0)throw new n(s`Directory ${a.path(o)} already exists and is not empty`,s`Choose a different name or remove the existing directory first.`)}let[E,d]=t.split("#");if(d&&l)throw new n("Error cloning the repository. Git can't clone the latest release with a 'branch'.");if(i&&l)throw new n("Error cloning the repository. Git can't clone the latest release with the 'shallow' property.");let h=["clone","--recurse-submodules"];d&&h.push("--branch",d),i&&h.push("--depth","1"),k()||h.push("-c","core.askpass=true"),h.push(E,o);try{if(await f("git",h),l){let c=await S(o,t);await r(["checkout",c],o)}}catch(c){if(c instanceof n)throw c;if(c instanceof Error){let x=new n(c.message);throw x.stack=c.stack,x}throw c}})}async function S(e,t){let o=await F(e);if(!o)throw new n(`Couldn't obtain the most recent tag of the repository ${t}`);return o}async function X(e){let o=await r(["log","-1","--format=%H%x00%ai%x00%s%x00%D%x00%b%x00%an%x00%ae"],e);if(!o.trim())throw new n("Must have at least one commit to run command",s`Run ${a.genericShellCommand("git commit -m 'Initial commit'")} to create your first commit.`);let i=o.split("\0");return{hash:i[0],date:i[1],message:i[2],refs:i[3],body:i[4],author_name:i[5],author_email:i[6]}}async function Y(e){await r(["add","--all"],e)}async function Z(e,t){let o=["commit","-m",e];if(t?.author){if(t.author.startsWith("-"))throw new n(`Invalid commit author: ${t.author}. Author name/email can't start with a hyphen.`);o.push("--author",t.author)}return await r(o,t?.directory),(await r(["rev-parse","HEAD"],t?.directory)).trim()}async function m(){if(!await g())throw new n("Git is necessary in the environment to continue",s`Install ${a.link("git","https://git-scm.com/book/en/v2/Getting-Started-Installing-Git")}`)}var p=class extends n{};async function N(e){if(await m(),!await v(e))throw new p(`${a.path(e??w())} is not a Git directory`)}async function tt(e){return await g()?v(e):!1}async function v(e){try{return await f("git",["rev-parse","--git-dir"],{cwd:e}),!0}catch(t){if(t instanceof Error&&"exitCode"in t&&t.exitCode===128)return!1;throw t}}var y=class extends n{};async function et(e){if(!await T(e))throw new y(`${a.path(e??w())} is not a clean Git directory`)}async function T(e){return(await r(["status","--porcelain"],e)).trim()===""}async function F(e){try{return(await r(["describe","--tags","--abbrev=0"],e)).trim()||void 0}catch(t){if(t instanceof n&&"exitCode"in t&&t.exitCode===128)return;throw t}}async function ot(e,t="origin"){if(u(s`Removing git remote ${t} from ${a.path(e)}...`),await m(),!(await r(["remote"],e)).split(`
3
3
  `).filter(Boolean).includes(t)){u(s`Remote ${t} does not exist, no action needed`);return}await r(["remote","remove",t],e)}export{K as a,Q as b,V as c,X as d,Y as e,Z as f,N as g,tt as h,y as i,et as j,T as k,ot as l};
@@ -0,0 +1,3 @@
1
+ import{a as L,b as g,d as P,g as w}from"./chunk-PBBZNGS4.js";import{a as A}from"./chunk-Z3XIZMEM.js";import{t as G}from"./chunk-3AASYIOA.js";import{a as F}from"./chunk-YGFEUXKQ.js";import{a as S}from"./chunk-JTPVSO6Y.js";import{b as v,e as b}from"./chunk-DGMRL5DQ.js";import{p as l,u as d}from"./chunk-L5XWYTHY.js";import{N as u,a as c}from"./chunk-SKRUMRB4.js";import{Cb as f,Eb as h,Kb as i,Ob as y}from"./chunk-YJWNM4XO.js";import{b as q}from"./chunk-JA2QZ635.js";import{e as Q,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();import{randomBytes as x}from"crypto";function K(){return x(32).toString("hex")}function C(e){let r=new URL(`http://localhost:${e.port}/graphiql`);return r.searchParams.set("key",e.key),e.query&&r.searchParams.set("query",e.query),e.variables&&r.searchParams.set("variables",e.variables),e.apiVersion&&r.searchParams.set("api_version",e.apiVersion),r.toString()}async function I(e){let r=await A(e.port),t=g({stdout:e.stdout??process.stdout,port:r,storeFqdn:e.storeFqdn,tokenProvider:e.tokenProvider,key:e.key,appContext:e.appContext,protectMutations:e.protectMutations}),a=C({port:r,key:e.key,query:e.query,variables:e.variables,apiVersion:e.apiVersion});try{i(h`GraphiQL is running at ${f.link(a)}`),e.additionalReadyMessages?.forEach(s=>i(s)),i("Press Ctrl+C to stop."),await u(a)||y("Browser did not open automatically. Open the URL above manually."),await T(e.abortSignal)}finally{t.close()}}async function T(e){let r=new c,t=()=>r.abort();process.once("SIGINT",t);try{await new Promise(a=>{if(r.signal.aborted||e?.aborted){a();return}r.signal.addEventListener("abort",()=>a(),{once:!0}),e?.addEventListener("abort",()=>r.abort(),{once:!0})})}finally{process.removeListener("SIGINT",t)}}async function k(e){let r=e.remoteApp.apiSecretKeys[0]?.secret??"",t=L(void 0,r,e.store),a=w({apiKey:e.remoteApp.apiKey,apiSecret:r,storeFqdn:e.store}),m=await l(),s=P(e.store,e.remoteApp.apiKey,m);await I({port:e.port,storeFqdn:e.store,tokenProvider:a,key:t,appContext:{appName:e.remoteApp.title,appUrl:s,apiSecret:r},variables:e.variables,apiVersion:e.apiVersion,abortSignal:e.abortSignal})}var n=Q(q(),1),p=class e extends F{static summary="Open a local GraphiQL UI for your app and store.";static descriptionWithMarkdown=`Opens an authenticated Admin API GraphiQL UI for your app and selected store.
2
+
3
+ The app must be installed on the store.`;static description=this.descriptionForHelp();static examples=["<%= config.bin %> <%= command.id %> --store shop.myshopify.com","<%= config.bin %> <%= command.id %> --store shop.myshopify.com --port 9123"];static flags={...v,...S,store:n.Flags.string({char:"s",description:"The myshopify.com domain of the store to open GraphiQL against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async r=>d(r)}),port:b({description:"Local port for the GraphiQL server.",env:"SHOPIFY_FLAG_PORT"}),variables:n.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES"}),version:n.Flags.string({description:"The API version to use in GraphiQL. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})};async run(){let{flags:r}=await this.parse(e),{appContextResult:t,store:a}=await G(r);return await k({remoteApp:t.remoteApp,store:a.shopDomain,port:r.port,variables:r.variables,apiVersion:r.version}),{app:t.app}}};export{K as a,I as b,p as c};
@@ -0,0 +1,5 @@
1
+ import{a as f}from"./chunk-YGFEUXKQ.js";import{a as m}from"./chunk-JTPVSO6Y.js";import{Ha as l,i as s,ja as d}from"./chunk-2KLXRVGQ.js";import{b as u}from"./chunk-DGMRL5DQ.js";import{Cb as n,Eb as a,Ib as c}from"./chunk-YJWNM4XO.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();async function g(e,t,o){return S(e,t,o,"text")}async function S(e,t,o,r){return await d(t,o.source),r==="json"?a`${n.json({SHOPIFY_API_KEY:t.apiKey,SHOPIFY_API_SECRET:t.apiSecretKeys[0]?.secret,SCOPES:s(e.configuration)})}`:a`
2
+ ${n.green("SHOPIFY_API_KEY")}=${t.apiKey}
3
+ ${n.green("SHOPIFY_API_SECRET")}=${t.apiSecretKeys[0]?.secret??""}
4
+ ${n.green("SCOPES")}=${s(e.configuration)}
5
+ `}var p=class e extends f{static summary="Display app and extensions environment variables.";static descriptionWithMarkdown="Displays environment variables that can be used to deploy apps and app extensions.";static description=this.descriptionForHelp();static flags={...u,...m};async run(){let{flags:t}=await this.parse(e),{app:o,remoteApp:r,organization:y}=await l({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config});return c(await g(o,r,y)),{app:o}}};export{p as a};
@@ -1,4 +1,4 @@
1
- import{a as Gi,c as Ki,d as ln,g as ao,k as un,l as qe,m as lo,n as uo,o as fo,p as po,q as ho,r as mo,s as go,t as _o,u as yo}from"./chunk-TR4OWSEX.js";import{a as ro,b as oo}from"./chunk-2KD4LHRT.js";import{b as so}from"./chunk-I5A6BPCP.js";import{a as io}from"./chunk-CX5CC6P5.js";import{a as co}from"./chunk-ET2CGROE.js";import{a as v,c as y,g as f}from"./chunk-VKWPEFWQ.js";var $=y(F=>{"use strict";f();Object.defineProperty(F,"__esModule",{value:!0});F.pickBy=bo;F.compact=vo;F.uniqBy=wo;F.last=Oo;F.sortBy=jo;F.castArray=Po;F.isProd=Co;F.maxBy=Eo;F.sumBy=$o;F.capitalize=qo;F.isTruthy=Do;F.isNotFalsy=xo;F.uniq=Fo;F.mapValues=Ao;F.mergeNestedObjects=Mo;function bo(t,e){return Object.entries(t).reduce((n,[i,s])=>(e(s)&&(n[i]=s),n),{})}function vo(t){return t.filter(e=>!!e)}function wo(t,e){return t.filter((n,i)=>{let s=e(n);return!t.some((r,o)=>o>i&&e(r)===s)})}function Oo(t){if(t)return t.at(-1)}function dn(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=dn(t[0],e[0]);return n!==0?n:dn(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function jo(t,e){return t.sort((n,i)=>dn(e(n),e(i)))}function Po(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function Co(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Eo(t,e){if(t.length!==0)return t.reduce((n,i)=>{let s=e(i),r=e(n);return s>r?i:n})}function $o(t,e){return t.reduce((n,i)=>n+e(i),0)}function qo(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function Do(t){return["1","true","y","yes"].includes(t.toLowerCase())}function xo(t){return!["0","false","n","no"].includes(t.toLowerCase())}function Fo(t){return[...new Set(t)].sort()}function Ao(t,e){return Object.entries(t).reduce((n,[i,s])=>(n[i]=e(s,i),n),{})}function So(t,e){return e.split(".").reduce((n,i)=>n?.[i],t)}function Mo(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(So(n,e)??{})).reverse())}});var X=y(ie=>{"use strict";f();Object.defineProperty(ie,"__esModule",{value:!0});ie.fileExists=ie.dirExists=void 0;ie.readJson=Ji;ie.safeReadJson=Ro;ie.existsSync=No;var Io=v("node:fs"),hn=v("node:fs/promises"),ko=$(),To=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};ie.dirExists=To;var Lo=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};ie.fileExists=Lo;var pn=class extends Map{set(e,n){return((0,ko.isProd)()??!1)&&super.set(e,n),this}},fn=new pn;async function Ji(t,e=!0){if(e&&fn.has(t))return JSON.parse(fn.get(t));let n=await(0,hn.readFile)(t,"utf8");return fn.set(t,n),JSON.parse(n)}async function Ro(t,e=!0){try{return await Ji(t,e)}catch{}}function No(t){return(0,Io.existsSync)(t)}});var Xi=y(M=>{"use strict";f();Object.defineProperty(M,"__esModule",{value:!0});M.string=M.url=M.file=M.directory=M.integer=M.boolean=void 0;M.custom=me;var Ho=v("node:url"),Yi=X(),Bo=$();function me(t){return(e={})=>({parse:async(n,i,s)=>n,...t,...e,input:[],type:"option"})}M.boolean=me({parse:async t=>!!t&&(0,Bo.isNotFalsy)(t)});M.integer=me({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let i=Number.parseInt(t,10);if(n.min!==void 0&&i<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&i>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return i}});M.directory=me({async parse(t,e,n){return n.exists?(0,Yi.dirExists)(t):t}});M.file=me({async parse(t,e,n){return n.exists?(0,Yi.fileExists)(t):t}});M.url=me({async parse(t){try{return new Ho.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Wo=me({});M.string=Wo});var Zi=y((Rf,zo)=>{zo.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.8.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.3",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^10.2.4",semver:"^7.7.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.4.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.5",nyc:"^15.1.0",prettier:"^3.8.1",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var G=y(gn=>{"use strict";f();Object.defineProperty(gn,"__esModule",{value:!0});var Uo=v("node:fs"),Vo=v("node:path"),mn=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Zi().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Uo.readFileSync)((0,Vo.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};gn.default=mn});var k=y(le=>{"use strict";f();var Go=le&&le.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(le,"__esModule",{value:!0});le.getLogger=Qi;le.makeDebug=Yo;le.setLogger=Xo;le.clearLoggers=Zo;var Ko=Go(oo()),yn="oclif";function Ct(t=yn){let e=(0,Ko.default)(t);return{child:(n,i)=>Ct(`${t}${i??":"}${n}`),debug:e,error:(n,...i)=>Ct(`${t}:error`).debug(n,...i),info:e,namespace:t,trace:e,warn:e}}var se=new Map;function Qi(t){let e=se.get("root");if(e||_n(Ct(yn)),e=se.get("root"),t){let n=se.get(t);if(n)return n;let i=e.child(t);return se.set(t,i),i}return e}function Jo(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function _n(t){se.has(t.namespace)||se.has("root")||(Jo(t)?(se.set(t.namespace,t),se.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function Yo(t){return(e,...n)=>Qi(t).debug(e,...n)}function Xo(t){t&&typeof t!="string"&&"logger"in t&&t.logger?_n(t.logger):_n(Ct(yn))}function Zo(){se.clear()}});var tt=y(xe=>{"use strict";f();Object.defineProperty(xe,"__esModule",{value:!0});xe.stderr=xe.stdout=void 0;var De=v("node:util"),Qo=(t,...e)=>{!t&&e?console.log((0,De.format)(...e)):t?console.log(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.log()};xe.stdout=Qo;var ea=(t,...e)=>{!t&&e?console.error((0,De.format)(...e)):t?console.error(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.error()};xe.stderr=ea});var re=y(Et=>{"use strict";f();Object.defineProperty(Et,"__esModule",{value:!0});Et.settings=void 0;globalThis.oclif||(globalThis.oclif={});Et.settings=globalThis.oclif});var Ae=y(Fe=>{"use strict";f();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.errtermwidth=Fe.stdtermwidth=void 0;var ta=re();function es(t){if(!t.isTTY)return 80;let e=t.getWindowSize()[0];return e<1?80:e<40?40:e}var ts=Number.parseInt(process.env.OCLIF_COLUMNS,10)||ta.settings.columns;Fe.stdtermwidth=ts||es(process.stdout);Fe.errtermwidth=ts||es(process.stderr)});var ns=y($t=>{"use strict";f();Object.defineProperty($t,"__esModule",{value:!0});$t.STANDARD_ANSI=void 0;$t.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]});var ss=y(bn=>{"use strict";f();Object.defineProperty(bn,"__esModule",{value:!0});bn.supportsColor=na;var is=ro();function na(){return!!is.stdout&&!!is.stderr}});var W=y(Se=>{"use strict";f();var ia=Se&&Se.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Se,"__esModule",{value:!0});Se.colorize=oa;Se.parseTheme=os;var vn=ia(qe()),sa=ns(),ra=ss();function rs(t){return sa.STANDARD_ANSI.includes(t)}function oa(t,e){if(!t||!(0,ra.supportsColor)())return e;if(rs(t))return vn.default[t](e);if(t.startsWith("#"))return vn.default.hex(t)(e);if(t.startsWith("rgb")){let[n,i,s]=t.slice(4,-1).split(",").map(r=>Number.parseInt(r.trim(),10));return vn.default.rgb(n,i,s)(e)}return e}function os(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?aa(n):os(n)]).filter(([e,n])=>n))}function aa(t){return t.startsWith("#")||t.startsWith("rgb")||rs(t)?t:void 0}});var ge=y(ue=>{"use strict";f();var qt=ue&&ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ue,"__esModule",{value:!0});ue.CLIError=void 0;ue.addOclifExitCode=cs;var ca=qt(Ki()),wn=qt(ln()),la=qt(un()),ua=qt(G()),da=Ae(),fa=re(),as=W();function cs(t,e){return"oclif"in t||(t.oclif={}),t.oclif.exit=e?.exit===void 0?ua.default.getInstance().get("exitCodes")?.default??2:e.exit,t}var nt=class extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,n={}){super(e instanceof Error?e.message:e),cs(this,n),this.code=n.code,this.suggestions=n.suggestions}get bang(){try{return(0,as.colorize)("red",process.platform==="win32"?"\xBB":"\u203A")}catch{}}get stack(){return(0,ca.default)(super.stack,{pretty:!0})}render(){if(fa.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,la.default)(e,da.errtermwidth-6,{hard:!0,trim:!1}),e=(0,wn.default)(e,3),e=(0,wn.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,wn.default)(e,1),e}};ue.CLIError=nt;(function(t){class e extends t{constructor(i){super(i instanceof Error?i.message:i),this.name="Warning"}get bang(){try{return(0,as.colorize)("yellow",process.platform==="win32"?"\xBB":"\u203A")}catch{}}}t.Warn=e})(nt||(ue.CLIError=nt={}))});var xt=y(Me=>{"use strict";f();var ls=Me&&Me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Me,"__esModule",{value:!0});Me.applyPrettyPrintOptions=ga;Me.default=ya;var Dt=ls(ln()),pa=ls(un()),ha=Ae(),ma=re();function ga(t,e){let n=["message","code","ref","suggestions"];for(let i of n)!(i in t)&&e[i]&&(t[i]=e[i]);return t}var _a=t=>{let e="Try this:";if(!t||t.length===0)return;if(t.length===1)return`${e} ${t[0]}`;let n=t.map(i=>`* ${i}`).join(`
1
+ import{a as Gi,c as Ki,d as ln,g as ao,k as un,l as qe,m as lo,n as uo,o as fo,p as po,q as ho,r as mo,s as go,t as _o,u as yo}from"./chunk-TR4OWSEX.js";import{b as ro,c as oo}from"./chunk-ZGASBRSQ.js";import{b as so}from"./chunk-I5A6BPCP.js";import{a as io}from"./chunk-CX5CC6P5.js";import{a as co}from"./chunk-ET2CGROE.js";import{a as v,c as y,g as f}from"./chunk-VKWPEFWQ.js";var $=y(F=>{"use strict";f();Object.defineProperty(F,"__esModule",{value:!0});F.pickBy=bo;F.compact=vo;F.uniqBy=wo;F.last=Oo;F.sortBy=jo;F.castArray=Po;F.isProd=Co;F.maxBy=Eo;F.sumBy=$o;F.capitalize=qo;F.isTruthy=Do;F.isNotFalsy=xo;F.uniq=Fo;F.mapValues=Ao;F.mergeNestedObjects=Mo;function bo(t,e){return Object.entries(t).reduce((n,[i,s])=>(e(s)&&(n[i]=s),n),{})}function vo(t){return t.filter(e=>!!e)}function wo(t,e){return t.filter((n,i)=>{let s=e(n);return!t.some((r,o)=>o>i&&e(r)===s)})}function Oo(t){if(t)return t.at(-1)}function dn(t,e){if(t=t===void 0?0:t,e=e===void 0?0:e,Array.isArray(t)&&Array.isArray(e)){if(t.length===0&&e.length===0)return 0;let n=dn(t[0],e[0]);return n!==0?n:dn(t.slice(1),e.slice(1))}return t<e?-1:t>e?1:0}function jo(t,e){return t.sort((n,i)=>dn(e(n),e(i)))}function Po(t){return t===void 0?[]:Array.isArray(t)?t:[t]}function Co(){return!["development","test"].includes(process.env.NODE_ENV??"")}function Eo(t,e){if(t.length!==0)return t.reduce((n,i)=>{let s=e(i),r=e(n);return s>r?i:n})}function $o(t,e){return t.reduce((n,i)=>n+e(i),0)}function qo(t){return t?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():""}function Do(t){return["1","true","y","yes"].includes(t.toLowerCase())}function xo(t){return!["0","false","n","no"].includes(t.toLowerCase())}function Fo(t){return[...new Set(t)].sort()}function Ao(t,e){return Object.entries(t).reduce((n,[i,s])=>(n[i]=e(s,i),n),{})}function So(t,e){return e.split(".").reduce((n,i)=>n?.[i],t)}function Mo(t,e){return Object.fromEntries(t.flatMap(n=>Object.entries(So(n,e)??{})).reverse())}});var X=y(ie=>{"use strict";f();Object.defineProperty(ie,"__esModule",{value:!0});ie.fileExists=ie.dirExists=void 0;ie.readJson=Ji;ie.safeReadJson=Ro;ie.existsSync=No;var Io=v("node:fs"),hn=v("node:fs/promises"),ko=$(),To=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No directory found at ${t}`)}if(!e.isDirectory())throw new Error(`${t} exists but is not a directory`);return t};ie.dirExists=To;var Lo=async t=>{let e;try{e=await(0,hn.stat)(t)}catch{throw new Error(`No file found at ${t}`)}if(!e.isFile())throw new Error(`${t} exists but is not a file`);return t};ie.fileExists=Lo;var pn=class extends Map{set(e,n){return((0,ko.isProd)()??!1)&&super.set(e,n),this}},fn=new pn;async function Ji(t,e=!0){if(e&&fn.has(t))return JSON.parse(fn.get(t));let n=await(0,hn.readFile)(t,"utf8");return fn.set(t,n),JSON.parse(n)}async function Ro(t,e=!0){try{return await Ji(t,e)}catch{}}function No(t){return(0,Io.existsSync)(t)}});var Xi=y(M=>{"use strict";f();Object.defineProperty(M,"__esModule",{value:!0});M.string=M.url=M.file=M.directory=M.integer=M.boolean=void 0;M.custom=me;var Ho=v("node:url"),Yi=X(),Bo=$();function me(t){return(e={})=>({parse:async(n,i,s)=>n,...t,...e,input:[],type:"option"})}M.boolean=me({parse:async t=>!!t&&(0,Bo.isNotFalsy)(t)});M.integer=me({async parse(t,e,n){if(!/^-?\d+$/.test(t))throw new Error(`Expected an integer but received: ${t}`);let i=Number.parseInt(t,10);if(n.min!==void 0&&i<n.min)throw new Error(`Expected an integer greater than or equal to ${n.min} but received: ${t}`);if(n.max!==void 0&&i>n.max)throw new Error(`Expected an integer less than or equal to ${n.max} but received: ${t}`);return i}});M.directory=me({async parse(t,e,n){return n.exists?(0,Yi.dirExists)(t):t}});M.file=me({async parse(t,e,n){return n.exists?(0,Yi.fileExists)(t):t}});M.url=me({async parse(t){try{return new Ho.URL(t)}catch{throw new Error(`Expected a valid url but received: ${t}`)}}});var Wo=me({});M.string=Wo});var Zi=y((Rf,zo)=>{zo.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"4.8.3",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"ansi-escapes":"^4.3.2",ansis:"^3.17.0","clean-stack":"^3.0.1","cli-spinners":"^2.9.2",debug:"^4.4.3",ejs:"^3.1.10","get-package-type":"^0.1.0","indent-string":"^4.0.0","is-wsl":"^2.2.0",lilconfig:"^3.1.3",minimatch:"^10.2.4",semver:"^7.7.3","string-width":"^4.2.3","supports-color":"^8",tinyglobby:"^0.2.14","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^19","@eslint/compat":"^1.4.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^5","@oclif/prettier-config":"^0.2.1","@oclif/test":"^4","@types/benchmark":"^2.1.5","@types/chai":"^4.3.16","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/mocha":"^10.0.10","@types/node":"^18","@types/pnpapi":"^0.0.5","@types/sinon":"^17.0.3","@types/supports-color":"^8.1.3","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.5.0","chai-as-promised":"^7.1.2",commitlint:"^19","cross-env":"^7.0.3",eslint:"^9","eslint-config-oclif":"^6","eslint-config-prettier":"^10",husky:"^9.1.7","lint-staged":"^15",madge:"^6.1.0",mocha:"^11.7.5",nyc:"^15.1.0",prettier:"^3.8.1",shx:"^0.4.0",sinon:"^18","ts-node":"^10.9.2",tsd:"^0.33.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",exports:{".":"./lib/index.js","./args":"./lib/args.js","./command":"./lib/command.js","./config":"./lib/config/index.js","./errors":"./lib/errors/index.js","./execute":"./lib/execute.js","./flags":"./lib/flags.js","./flush":"./lib/flush.js","./handle":"./lib/errors/handle.js","./help":"./lib/help/index.js","./hooks":"./lib/interfaces/hooks.js","./interfaces":"./lib/interfaces/index.js","./logger":"./lib/logger.js","./package.json":"./package.json","./parser":"./lib/parser/index.js","./performance":"./lib/performance.js","./run":"./lib/main.js","./settings":"./lib/settings.js","./util/ids":"./lib/util/ids.js","./ux":"./lib/ux/index.js"},repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky","test:circular-deps":"yarn build && madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts" --parallel'},types:"lib/index.d.ts"}});var G=y(gn=>{"use strict";f();Object.defineProperty(gn,"__esModule",{value:!0});var Uo=v("node:fs"),Vo=v("node:path"),mn=class t extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return t.instance||(t.instance=new t),t.instance}get(e){return super.get(e)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Zi().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,Uo.readFileSync)((0,Vo.join)(__dirname,"..","package.json"),"utf8")).version}}catch{return{name:"@oclif/core",version:"unknown"}}}}};gn.default=mn});var k=y(le=>{"use strict";f();var Go=le&&le.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(le,"__esModule",{value:!0});le.getLogger=Qi;le.makeDebug=Yo;le.setLogger=Xo;le.clearLoggers=Zo;var Ko=Go(oo()),yn="oclif";function Ct(t=yn){let e=(0,Ko.default)(t);return{child:(n,i)=>Ct(`${t}${i??":"}${n}`),debug:e,error:(n,...i)=>Ct(`${t}:error`).debug(n,...i),info:e,namespace:t,trace:e,warn:e}}var se=new Map;function Qi(t){let e=se.get("root");if(e||_n(Ct(yn)),e=se.get("root"),t){let n=se.get(t);if(n)return n;let i=e.child(t);return se.set(t,i),i}return e}function Jo(t){return typeof t.child=="function"&&typeof t.debug=="function"&&typeof t.error=="function"&&typeof t.info=="function"&&typeof t.trace=="function"&&typeof t.warn=="function"&&typeof t.namespace=="string"}function _n(t){se.has(t.namespace)||se.has("root")||(Jo(t)?(se.set(t.namespace,t),se.set("root",t)):process.emitWarning("Logger does not match the Logger interface. Using default logger."))}function Yo(t){return(e,...n)=>Qi(t).debug(e,...n)}function Xo(t){t&&typeof t!="string"&&"logger"in t&&t.logger?_n(t.logger):_n(Ct(yn))}function Zo(){se.clear()}});var tt=y(xe=>{"use strict";f();Object.defineProperty(xe,"__esModule",{value:!0});xe.stderr=xe.stdout=void 0;var De=v("node:util"),Qo=(t,...e)=>{!t&&e?console.log((0,De.format)(...e)):t?console.log(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.log()};xe.stdout=Qo;var ea=(t,...e)=>{!t&&e?console.error((0,De.format)(...e)):t?console.error(typeof t=="string"?(0,De.format)(t,...e):(0,De.format)(...t,...e)):console.error()};xe.stderr=ea});var re=y(Et=>{"use strict";f();Object.defineProperty(Et,"__esModule",{value:!0});Et.settings=void 0;globalThis.oclif||(globalThis.oclif={});Et.settings=globalThis.oclif});var Ae=y(Fe=>{"use strict";f();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.errtermwidth=Fe.stdtermwidth=void 0;var ta=re();function es(t){if(!t.isTTY)return 80;let e=t.getWindowSize()[0];return e<1?80:e<40?40:e}var ts=Number.parseInt(process.env.OCLIF_COLUMNS,10)||ta.settings.columns;Fe.stdtermwidth=ts||es(process.stdout);Fe.errtermwidth=ts||es(process.stderr)});var ns=y($t=>{"use strict";f();Object.defineProperty($t,"__esModule",{value:!0});$t.STANDARD_ANSI=void 0;$t.STANDARD_ANSI=["white","black","blue","yellow","green","red","magenta","cyan","gray","blackBright","redBright","greenBright","yellowBright","blueBright","magentaBright","cyanBright","whiteBright","bgBlack","bgRed","bgGreen","bgYellow","bgBlue","bgMagenta","bgCyan","bgWhite","bgGray","bgBlackBright","bgRedBright","bgGreenBright","bgYellowBright","bgBlueBright","bgMagentaBright","bgCyanBright","bgWhiteBright","bold","underline","dim","italic","strikethrough"]});var ss=y(bn=>{"use strict";f();Object.defineProperty(bn,"__esModule",{value:!0});bn.supportsColor=na;var is=ro();function na(){return!!is.stdout&&!!is.stderr}});var W=y(Se=>{"use strict";f();var ia=Se&&Se.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Se,"__esModule",{value:!0});Se.colorize=oa;Se.parseTheme=os;var vn=ia(qe()),sa=ns(),ra=ss();function rs(t){return sa.STANDARD_ANSI.includes(t)}function oa(t,e){if(!t||!(0,ra.supportsColor)())return e;if(rs(t))return vn.default[t](e);if(t.startsWith("#"))return vn.default.hex(t)(e);if(t.startsWith("rgb")){let[n,i,s]=t.slice(4,-1).split(",").map(r=>Number.parseInt(r.trim(),10));return vn.default.rgb(n,i,s)(e)}return e}function os(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,typeof n=="string"?aa(n):os(n)]).filter(([e,n])=>n))}function aa(t){return t.startsWith("#")||t.startsWith("rgb")||rs(t)?t:void 0}});var ge=y(ue=>{"use strict";f();var qt=ue&&ue.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ue,"__esModule",{value:!0});ue.CLIError=void 0;ue.addOclifExitCode=cs;var ca=qt(Ki()),wn=qt(ln()),la=qt(un()),ua=qt(G()),da=Ae(),fa=re(),as=W();function cs(t,e){return"oclif"in t||(t.oclif={}),t.oclif.exit=e?.exit===void 0?ua.default.getInstance().get("exitCodes")?.default??2:e.exit,t}var nt=class extends Error{code;oclif={};skipOclifErrorHandling;suggestions;constructor(e,n={}){super(e instanceof Error?e.message:e),cs(this,n),this.code=n.code,this.suggestions=n.suggestions}get bang(){try{return(0,as.colorize)("red",process.platform==="win32"?"\xBB":"\u203A")}catch{}}get stack(){return(0,ca.default)(super.stack,{pretty:!0})}render(){if(fa.settings.debug)return this.stack;let e=`${this.name}: ${this.message}`;return e=(0,la.default)(e,da.errtermwidth-6,{hard:!0,trim:!1}),e=(0,wn.default)(e,3),e=(0,wn.default)(e,1,{includeEmptyLines:!0,indent:this.bang}),e=(0,wn.default)(e,1),e}};ue.CLIError=nt;(function(t){class e extends t{constructor(i){super(i instanceof Error?i.message:i),this.name="Warning"}get bang(){try{return(0,as.colorize)("yellow",process.platform==="win32"?"\xBB":"\u203A")}catch{}}}t.Warn=e})(nt||(ue.CLIError=nt={}))});var xt=y(Me=>{"use strict";f();var ls=Me&&Me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Me,"__esModule",{value:!0});Me.applyPrettyPrintOptions=ga;Me.default=ya;var Dt=ls(ln()),pa=ls(un()),ha=Ae(),ma=re();function ga(t,e){let n=["message","code","ref","suggestions"];for(let i of n)!(i in t)&&e[i]&&(t[i]=e[i]);return t}var _a=t=>{let e="Try this:";if(!t||t.length===0)return;if(t.length===1)return`${e} ${t[0]}`;let n=t.map(i=>`* ${i}`).join(`
2
2
  `);return`${e}
3
3
  ${(0,Dt.default)(n,2)}`};function ya(t){if(ma.settings.debug)return t.stack;let{bang:e,code:n,message:i,name:s,ref:r,suggestions:o}=t,c=i?`${s||"Error"}: ${i}`:void 0,l=n?`Code: ${n}`:void 0,u=_a(o),p=r?`Reference: ${r}`:void 0,a=[c,l,u,p].filter(Boolean).join(`
4
4
  `),d=(0,pa.default)(a,ha.errtermwidth-6,{hard:!0,trim:!1});return d=(0,Dt.default)(d,3),d=(0,Dt.default)(d,1,{includeEmptyLines:!0,indent:e||""}),d=(0,Dt.default)(d,1),d}});var Ie=y(Z=>{"use strict";f();var ba=Z&&Z.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,s)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),va=Z&&Z.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wa=Z&&Z.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&ba(n,e,i[s]);return va(n,e),n}})();Object.defineProperty(Z,"__esModule",{value:!0});Z.error=fs;var Oa=k(),ja=tt(),us=ge(),ds=wa(xt());function fs(t,e={}){let n;if(typeof t=="string")n=new us.CLIError(t,e);else if(t instanceof Error)n=(0,us.addOclifExitCode)(t,e);else throw new TypeError("first argument must be a string or instance of Error");if(n=(0,ds.applyPrettyPrintOptions)(n,e),e.exit===!1){let i=(0,ds.default)(n);i&&(0,ja.stderr)(i),n?.stack&&(0,Oa.getLogger)().error(n.stack)}else throw n}Z.default=fs});var At=y(Ft=>{"use strict";f();Object.defineProperty(Ft,"__esModule",{value:!0});Ft.ExitError=void 0;var Pa=ge(),On=class extends Pa.CLIError{code="EEXIT";constructor(e=1){super(`EEXIT: ${e}`,{exit:e})}render(){return""}};Ft.ExitError=On});var Pn=y(St=>{"use strict";f();Object.defineProperty(St,"__esModule",{value:!0});St.ModuleLoadError=void 0;var Ca=ge(),jn=class extends Ca.CLIError{code="MODULE_NOT_FOUND";constructor(e){super(`[MODULE_NOT_FOUND] ${e}`,{exit:1}),this.name="ModuleLoadError"}};St.ModuleLoadError=jn});var Mt=y(Cn=>{"use strict";f();Object.defineProperty(Cn,"__esModule",{value:!0});Cn.exit=$a;var Ea=At();function $a(t=0){throw new Ea.ExitError(t)}});var ke=y(_e=>{"use strict";f();var qa=_e&&_e.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_e,"__esModule",{value:!0});_e.warn=En;_e.memoizedWarn=Aa;var Da=k(),xa=tt(),ps=ge(),Fa=qa(xt());function En(t){let e;if(typeof t=="string")e=new ps.CLIError.Warn(t);else if(t instanceof Error)e=(0,ps.addOclifExitCode)(t);else throw new TypeError("first argument must be a string or instance of Error");let n=(0,Fa.default)(e);n&&(0,xa.stderr)(n),e?.stack&&(0,Da.getLogger)().error(e.stack)}var hs=new Set;function Aa(t){hs.has(t)||En(t),hs.add(t)}_e.default=En});var vs=y($n=>{"use strict";f();Object.defineProperty($n,"__esModule",{value:!0});$n.readTSConfig=ka;var ms=v("node:fs/promises"),ys=v("node:path"),Sa=ke(),Ma=k(),gs=$(),Ia=(0,Ma.makeDebug)("read-tsconfig");function _s(t,e){try{return v.resolve(e,{paths:[t]})}catch{}}async function bs(t,e){let n;try{n=await e(t)}catch{n=!1}if(n)return t;let i=(0,ys.dirname)(t);if(i!==t)return bs(i,e)}async function ka(t,e="tsconfig.json"){let n=[],i;try{i=co()}catch{try{i=v(t+"/node_modules/typescript")}catch{}}if(!i){(0,Sa.memoizedWarn)("Could not find typescript. Please ensure that typescript is a devDependency. Falling back to compiled source.");return}let s=async r=>{let o=await bs(r,async c=>(await(0,ms.readdir)(c)).includes("package.json"));if(o)try{let c=await(0,ms.readFile)(r,"utf8"),l=i?.parseConfigFileTextToJson(r,c).config;if(n.push(l),l.extends){if(l.extends.startsWith(".")){let p=_s(o,l.extends);return p?s(p):void 0}let u=_s(o,l.extends);if(u)return s(u)}return l}catch(c){Ia(c)}};return await s((0,ys.join)(t,e)),{compilerOptions:(0,gs.mergeNestedObjects)(n,"compilerOptions"),"ts-node":(0,gs.mergeNestedObjects)(n,"ts-node")}}});var Te=y(ye=>{"use strict";f();Object.defineProperty(ye,"__esModule",{value:!0});ye.collectUsableIds=void 0;ye.makeDebug=La;ye.getPermutations=qn;ye.getCommandIdPermutations=Ra;var Ta=k();function La(...t){return(e,...n)=>(0,Ta.getLogger)(["config",...t].join(":")).debug(e,...n)}function qn(t){if(t.length===0)return[];if(t.length===1)return[t];let e=[],n=qn(t.slice(1)),i=t[0];for(let s=0,r=n.length;s<r;s++){let o=n[s];for(let c=0,l=o.length;c<=l;c++){let u=o.slice(0,c),p=o.slice(c),a=[...u,i,...p];e.push(a)}}return e}function Ra(t){return qn(t.split(":")).flatMap(e=>e.join(":"))}var Na=t=>new Set(t.flatMap(e=>e.split(":").map((n,i,s)=>s.slice(0,i+1).join(":"))));ye.collectUsableIds=Na});var Le=y(K=>{"use strict";f();var Ha=K&&K.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(K,"__esModule",{value:!0});K.TS_CONFIGS=void 0;K.tsPath=tc;var ws=v("node:fs/promises"),T=v("node:path"),Ba=v("node:url"),Wa=Ha(G()),it=ke(),Os=re(),za=X(),Ua=vs(),Dn=$(),Va=Te(),P=(0,Va.makeDebug)("ts-path");K.TS_CONFIGS={};var It=new Set;function Ga(){return process.execPath.split(T.sep).includes("bun")?"bun":process.execArgv.length===0?"node":process.execArgv[0]==="--require"&&process.execArgv[1].split(T.sep).includes("ts-node")||process.execArgv[0].split(T.sep).includes("ts-node")?"ts-node":process.execArgv[0]==="--require"&&process.execArgv[1].split(T.sep).includes("tsx")?"tsx":"node"}var xn=Ga();function Ka(t){return"code"in t&&t.code==="ENOENT"}async function Ja(t){try{if(K.TS_CONFIGS[t])return K.TS_CONFIGS[t];let e=await(0,Ua.readTSConfig)(t);return e?(P("tsconfig: %O",e),K.TS_CONFIGS[t]=e,K.TS_CONFIGS[t]):void 0}catch(e){if(Ka(e))return;P(`Could not parse tsconfig.json. Skipping typescript path lookup for ${t}.`),(0,it.memoizedWarn)(`Could not parse tsconfig.json for ${t}. Falling back to compiled source.`)}}async function Ya(t,e){if(!It.has(t))try{let n=e==="module"?"tsx/esm/api":"tsx/cjs/api",i=v.resolve(n,{paths:[t]});if(!i)return;P("registering tsx at",t),P("tsx path:",i);let{href:s}=(0,Ba.pathToFileURL)(i);P("tsx href:",s);let{register:r}=await import(s);P("Successfully imported tsx"),r(),It.add(t)}catch(n){P(`Could not find tsx. Skipping tsx registration for ${t}.`),P(n)}}async function Xa(t,e){if(It.has(t))return;P("registering ts-node at",t);let n=v.resolve("ts-node",{paths:[t,__dirname]});P("ts-node path:",n);let i;try{i=v(n),P("Successfully required ts-node")}catch(p){P(`Could not find ts-node at ${n}. Skipping ts-node registration for ${t}.`),P(p),(0,it.memoizedWarn)(`Could not find ts-node at ${n}. Please ensure that ts-node is a devDependency. Falling back to compiled source.`);return}let s=[(0,T.join)(t,"node_modules","@types")],r=[];if(e.compilerOptions.rootDirs)for(let p of e.compilerOptions.rootDirs)r.push((0,T.join)(t,p));else e.compilerOptions.rootDir?r.push((0,T.join)(t,e.compilerOptions.rootDir)):e.compilerOptions.baseUrl?r.push((0,T.join)(t,e.compilerOptions.baseUrl)):r.push((0,T.join)(t,"src"));let{baseUrl:o,rootDir:c,...l}=e.compilerOptions,u={compilerOptions:{...l,rootDirs:r,typeRoots:s},...e["ts-node"],cwd:t,esm:e["ts-node"]?.esm??!0,experimentalSpecifierResolution:e["ts-node"]?.experimentalSpecifierResolution??"explicit",scope:!0,scopeDir:t,skipProject:!0,transpileOnly:!0};P("ts-node options: %O",u),i.register(u),It.add(t)}function Za(t,e,n){return(n||t?.moduleType==="commonjs")&&e?.moduleType==="module"&&!e?.pjson.devDependencies?.tsx}function Qa(t,e,n){if(e?.moduleType!=="module"||n)return!1;let i=Number.parseInt(process.version.replace("v","").split(".")[0],10);return xn==="ts-node"&&i>=20}async function ec(t,e,n){let i=await Ja(t);if(!i)return e;P(`Determining path for ${e}`),xn==="bun"?P(`Skipping ts-node registration for ${t} because the runtime is: ${xn}`):(await Ya(t,n?.moduleType),await Xa(t,i));let{baseUrl:s,outDir:r,rootDir:o,rootDirs:c}=i.compilerOptions,l=o??(c??[])[0]??s;if(!l)return P(`no rootDir, rootDirs, or baseUrl specified in tsconfig.json. Returning default path ${e}`),e;if(!r)return P(`no outDir specified in tsconfig.json. Returning default path ${e}`),e;let u=(0,T.join)(t,r),p=(0,T.join)(t,l),a=(0,T.relative)(u,e),d=(0,T.join)(p,a).replace(/\.js$/,"");return P(`lib dir: ${u}`),P(`src dir: ${p}`),P(`src directory to find: ${d}`),(0,za.existsSync)(d)?(P(`Found source directory for ${e} at ${d}`),d):(await Promise.all([(0,ws.access)(`${d}.ts`).then(()=>`${d}.ts`).catch(()=>!1),(0,ws.access)(`${d}.tsx`).then(()=>`${d}.tsx`).catch(()=>!1)])).some(Boolean)?(P(`Found source file for ${e} at ${d}`),d):(P(`No source file found. Returning default path ${e}`),(0,Dn.isProd)()||(0,it.memoizedWarn)(`Could not find source for ${e} based on tsconfig. Defaulting to compiled source.`),e)}async function tc(t,e,n){let i=n?.options.isRoot?n:Wa.default.getInstance().get("rootPlugin");if(!e)return e;e=e.startsWith(t)?e:(0,T.join)(t,e);let s=Os.settings.enableAutoTranspile??Os.settings.tsnodeEnabled;if(s===!1)return P(`Skipping typescript path lookup for ${t} because enableAutoTranspile is explicitly set to false`),e;let r=(0,Dn.isProd)();if(s===void 0&&r&&n?.type!=="link")return P(`Skipping typescript path lookup for ${t} because NODE_ENV is NOT "test" or "development"`),e;if(Za(i,n,r)){P(`Skipping typescript path lookup for ${t} because it's an ESM module (NODE_ENV: ${process.env.NODE_ENV}, root plugin module type: ${i?.moduleType})`);let o=process.env.OCLIF_DISABLE_LINKED_ESM_WARNING&&(0,Dn.isTruthy)(process.env.OCLIF_DISABLE_LINKED_ESM_WARNING);return n?.type==="link"&&!o&&(0,it.memoizedWarn)(`${n?.name} is a linked ESM module and cannot be auto-transpiled. Existing compiled source will be used instead.`),e}if(Qa(t,n,r))return P(`Skipping typescript path lookup for ${t} because ts-node is run in node version ${process.version}"`),(0,it.memoizedWarn)("ts-node executable cannot transpile ESM in Node 20. Existing compiled source will be used instead. See https://github.com/oclif/core/issues/817."),e;try{return await ec(t,e,n)}catch(o){return P(o),e}}});var st=y(Re=>{"use strict";f();Object.defineProperty(Re,"__esModule",{value:!0});Re.load=oc;Re.loadWithData=ac;Re.loadWithDataFromManifest=cc;Re.isPathModule=An;var nc=lo(),ic=v("node:fs"),kt=v("node:path"),Sn=v("node:url"),js=Le(),Fn=Pn(),Cs=X(),sc=[".ts",".js",".mjs",".cjs",".mts",".cts",".tsx",".jsx"],rc=t=>t.type!==void 0;function Mn(t,e,n){throw t.code==="MODULE_NOT_FOUND"||t.code==="ERR_MODULE_NOT_FOUND"?new Fn.ModuleLoadError(`${e?"import()":"require"} failed to load ${n}: ${t.message}`):t}async function oc(t,e){let n,i;try{return{filePath:n,isESM:i}=await Es(t,e),i?await import((0,Sn.pathToFileURL)(n).href):v(n)}catch(s){Mn(s,i,n??e)}}async function ac(t,e){let n,i;try{({filePath:n,isESM:i}=await Es(t,e));let s=i?await import((0,Sn.pathToFileURL)(n).href):v(n);return{filePath:n,isESM:i,module:s}}catch(s){Mn(s,i,n??e)}}async function cc(t,e){let{id:n,isESM:i,relativePath:s}=t;if(!s)throw new Fn.ModuleLoadError(`Cached command ${n} does not have a relative path`);if(i===void 0)throw new Fn.ModuleLoadError(`Cached command ${n} does not have the isESM property set`);let r=(0,kt.join)(e,s.join(kt.sep));try{let o=i?await import((0,Sn.pathToFileURL)(r).href):v(r);return{filePath:r,isESM:i,module:o}}catch(o){Mn(o,i,r??e)}}function An(t){switch((0,kt.extname)(t).toLowerCase()){case".js":case".jsx":case".ts":case".tsx":return nc.sync(t)==="module";case".mjs":case".mts":return!0;default:return!1}}async function Es(t,e){let n,i;try{i=v.resolve(e),n=An(i)}catch{i=(rc(t)?await(0,js.tsPath)(t.root,e,t):await(0,js.tsPath)(t.root,e))??e;let s=!1,r=!1;if((0,Cs.existsSync)(i)){s=!0;try{(0,ic.lstatSync)(i)?.isDirectory?.()&&(s=!1,r=!0)}catch{}}if(!s){let o=Ps(i);!o&&r&&(o=Ps((0,kt.join)(i,"index"))),o&&(i=o)}n=An(i)}return{filePath:i,isESM:n}}function Ps(t){for(let e of sc){let n=`${t}${e}`;if((0,Cs.existsSync)(n))return n}return null}});var Lt=y(Tt=>{"use strict";f();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.SINGLE_COMMAND_CLI_SYMBOL=void 0;Tt.SINGLE_COMMAND_CLI_SYMBOL=Symbol("SINGLE_COMMAND_CLI").toString()});var In=y(Rt=>{"use strict";f();Object.defineProperty(Rt,"__esModule",{value:!0});Rt.cacheDefaultValue=void 0;var lc=async(t,e)=>{if(!(e&&t.noCacheDefault)){if(typeof t.defaultHelp=="function")try{return await t.defaultHelp({flags:{},options:t})}catch{return}if(typeof t.default=="function")try{return await t.default({flags:{},options:t})}catch{}else return t.default}};Rt.cacheDefaultValue=lc});var be=y(Nt=>{"use strict";f();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStandardizedId=uc;Nt.toConfiguredId=dc;function uc(t,e){return t.replaceAll(new RegExp(e.topicSeparator,"g"),":")}function dc(t,e){return t.replaceAll(new RegExp(":","g"),e.topicSeparator||":")}});var Tn=y(Ht=>{"use strict";f();Object.defineProperty(Ht,"__esModule",{value:!0});Ht.ActionBase=void 0;var $s=v("node:util"),qs=$(),kn=class{std="stderr";stdmocks;type;stdmockOrigs={stderr:process.stderr.write,stdout:process.stdout.write};get globals(){globalThis.ux=globalThis.ux||{};let e=globalThis.ux;return e.action=e.action||{},e}get output(){return this.globals.output}set output(e){this.globals.output=e}get running(){return!!this.task}get status(){return this.task?this.task.status:void 0}set status(e){let{task:n}=this;n&&n.status!==e&&(this._updateStatus(e,n.status),n.status=e)}get task(){return this.globals.action.task}set task(e){this.globals.action.task=e}_flushStdout(){try{let e="",n;for(;this.stdmocks&&this.stdmocks.length>0;){let i=this.stdmocks.shift();n=i[0],this._write(n,i[1]),e+=i[1][0].toString("utf8")}e&&n&&e.at(-1)!==`
@@ -80,4 +80,4 @@ Alternatively, you can use "--" to signify the end of the flags and the beginnin
80
80
  `))}`;super({exit:Ot.default.getInstance().get("exitCodes")?.failedFlagValidation??e,message:c,parse:i})}};E.FailedFlagValidationError=Fi});var Nr=y(ne=>{"use strict";f();var Fd=ne&&ne.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ne,"__esModule",{value:!0});ne.Parser=ne.readStdin=void 0;var Ad=v("node:os"),Sd=v("node:readline"),Rr=Fd(G()),Md=k(),he=$(),Ce=Ai(),J;try{J=process.env.CLI_FLAGS_DEBUG==="1"?(0,Md.makeDebug)("parser"):()=>{}}catch{J=()=>{}}var Id=async()=>{let{stdin:t,stdout:e}=process;return t.isTTY?null:globalThis.oclif?.stdinCache?(J("resolved stdin from global cache",globalThis.oclif.stdinCache),globalThis.oclif.stdinCache):new Promise(n=>{let i=[],s=new AbortController,{signal:r}=s,o=setTimeout(()=>s.abort(),10),c=(0,Sd.createInterface)({input:t,output:e,terminal:!1});c.on("line",l=>{i.push(l)}),c.once("close",()=>{let l=i.join(Ad.EOL);clearTimeout(o),J("resolved from stdin",l),globalThis.oclif={...globalThis.oclif,stdinCache:l},n(l)}),r.addEventListener("abort",()=>{J("stdin aborted"),clearTimeout(o),c.close(),n(null)},{once:!0})})};ne.readStdin=Id;function kd(t){return/^-\d/g.test(t)}var rn=(t,e)=>{if(t.options&&!t.options.includes(e))throw new Ce.FlagInvalidOptionError(t,e);return e},on="--no-",Si=class{input;argv;booleanFlags;context;currentFlag;flagAliases;raw=[];constructor(e){this.input=e,this.context=e.context??{},this.argv=[...e.argv],this._setNames(),this.booleanFlags=(0,he.pickBy)(e.flags,n=>n.type==="boolean"),this.flagAliases=Object.fromEntries(Object.values(e.flags).flatMap(n=>[...n.aliases??[],...n.charAliases??[]].map(i=>[i,n])))}get _argTokens(){return this.raw.filter(e=>e.type==="arg")}async parse(){this._debugInput();let e=async a=>{let{isLong:d,name:m}=this.findFlag(a);if(!m){let g=a.indexOf("=");if(g!==-1){let b=a.slice(g+1);this.argv.unshift(b);let _=await e(a.slice(0,g));return _||this.argv.shift(),_}return!1}let h=this.input.flags[m];if(h.type==="option"){if(!h.multiple&&this.raw.some(b=>b.type==="flag"&&b.flag===m))throw new Ce.CLIError(`Flag --${m} can only be specified once`);this.currentFlag=h;let g=d||a.length<3?this.argv.shift():a.slice(a[2]==="="?3:2);if(h.allowStdin==="only"&&g!=="-"&&g!==void 0&&!this.findFlag(g).name)throw new Ce.CLIError(`Flag --${m} can only be read from stdin. The value must be "-" or not provided at all.`);if(h.allowStdin&&g==="-"||h.allowStdin==="only"){let b=await(0,ne.readStdin)();b&&(g=b.trim())}if(typeof g!="string"||this.findFlag(g).name)throw h.options?new Ce.CLIError(`Flag --${m} expects one of these values: ${h.options.join(", ")}`):new Ce.CLIError(`Flag --${m} expects a value`);this.raw.push({flag:h.name,input:g,type:"flag"})}else this.raw.push({flag:h.name,input:a,type:"flag"}),!d&&a.length>2&&this.argv.unshift(`-${a.slice(2)}`);return!0},n=!0,i=[],s=!1,r=[...this.argv];for(;this.argv.length>0;){let a=this.argv.shift();if(n&&a.startsWith("-")&&a!=="-"){if(this.input["--"]!==!1&&a==="--"){n=!1;continue}if(await e(a))continue;if(a==="--"){s=!0;continue}if(this.input["--"]!==!1&&!kd(a)){i.push(a);continue}}if(n&&this.currentFlag&&this.currentFlag.multiple&&!this.currentFlag.multipleNonGreedy){this.raw.push({flag:this.currentFlag.name,input:a,type:"flag"});continue}let d=Object.keys(this.input.args)[this._argTokens.length];this.raw.push({arg:d,input:a,type:"arg"})}let[{args:o,argv:c},{flags:l,metadata:u}]=await Promise.all([this._args(),this._flags()]);this._debugOutput(c,o,l);let p=s?[...c,...i,"--"]:[...c,...i];return{args:o,argv:p.sort((a,d)=>r.indexOf(a)-r.indexOf(d)),flags:l,metadata:u,nonExistentFlags:i,raw:this.raw}}async _args(){let e=[],n={},i=this._argTokens,s=!1,r=this.context;for(let[o,c]of Object.entries(this.input.args)){let l=i.find(u=>u.arg===o);if(r.token=l,l){if(c.options&&!c.options.includes(l.input))throw new Ce.ArgInvalidOptionError(c,l.input);let u=await c.parse(l.input,r,c);e.push(u),n[l.arg]=u}else if(!c.ignoreStdin&&!s){let u=await(0,ne.readStdin)();if(u){u=u.trim();let p=await c.parse(u,r,c);e.push(p),n[o]=p}s=!0}if(!n[o]&&(c.default||c.default===!1))if(typeof c.default=="function"){let u=await c.default();e.push(u),n[o]=u}else e.push(c.default),n[o]=c.default}for(let o of i)n[o.arg]===void 0&&e.push(o.input);return{args:n,argv:e}}_debugInput(){J("input: %s",this.argv.join(" "));let e=Object.keys(this.input.args);e.length>0&&J("available args: %s",e.join(" ")),Object.keys(this.input.flags).length!==0&&J("available flags: %s",Object.keys(this.input.flags).map(n=>`--${n}`).join(" "))}_debugOutput(e,n,i){i.length>0&&J("argv: %o",i),Object.keys(e).length>0&&J("args: %o",e),Object.keys(n).length>0&&J("flags: %o",n)}async _flags(){let e=async(a,d,m,h)=>{if(!d.parse)return a;let g={...m,error:m?.error,exit:m?.exit,jsonEnabled:m?.jsonEnabled,log:m?.log,logToStderr:m?.logToStderr,token:h,warn:m?.warn};try{return d.type==="boolean"?await d.parse(a,g,d):await d.parse(a,g,d)}catch(b){throw b.message=`Parsing --${d.name}
81
81
  ${b.message}
82
82
  See more help with --help`,Rr.default.getInstance().get("exitCodes")?.failedFlagParsing&&(b.oclif={exit:Rr.default.getInstance().get("exitCodes")?.failedFlagParsing}),b}},n=a=>{if(a.tokens?.length){if(a.inputFlag.flag.type==="boolean"&&(0,he.last)(a.tokens)?.input){let m=h=>{let g=[h.inputFlag.name,...h.inputFlag.flag.aliases??[]].map(_=>`${on}${_}`),b=(0,he.last)(h.tokens)?.input;return b?!g.includes(b):!0};return{...a,valueFunction:async h=>e(m(h),h.inputFlag.flag,this.context,(0,he.last)(h.tokens))}}if(a.inputFlag.flag.type==="option"&&a.inputFlag.flag.delimiter&&a.inputFlag.flag.multiple){let m=h=>new RegExp(`(?<!\\\\)${h}`);return{...a,valueFunction:async h=>(await Promise.all((h.tokens??[]).flatMap(g=>g.input.split(m(h.inputFlag.flag.delimiter??","))).map(g=>g.trim().replaceAll(new RegExp(`\\\\${h.inputFlag.flag.delimiter}`,"g"),h.inputFlag.flag.delimiter??",").replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1")).map(async g=>e(g,h.inputFlag.flag,this.context,{...(0,he.last)(h.tokens),input:g})))).map(g=>rn(h.inputFlag.flag,g))}}if(a.inputFlag.flag.type==="option"&&a.inputFlag.flag.multiple)return{...a,valueFunction:async m=>Promise.all((a.tokens??[]).map(h=>e(rn(m.inputFlag.flag,h.input),m.inputFlag.flag,this.context,h)))};if(a.inputFlag.flag.type==="option")return{...a,valueFunction:async m=>e(rn(m.inputFlag.flag,(0,he.last)(a.tokens)?.input),m.inputFlag.flag,this.context,(0,he.last)(a.tokens))}}if(a.inputFlag.flag.env&&process.env[a.inputFlag.flag.env]){let m=process.env[a.inputFlag.flag.env];if(a.inputFlag.flag.type==="option"&&m)return{...a,valueFunction:async h=>e(rn(h.inputFlag.flag,m),h.inputFlag.flag,this.context)};if(a.inputFlag.flag.type==="boolean")return{...a,valueFunction:async h=>(0,he.isTruthy)(process.env[h.inputFlag.flag.env]??"false")}}return typeof a.inputFlag.flag.default!==void 0?{...a,metadata:{setFromDefault:!0},valueFunction:typeof a.inputFlag.flag.default=="function"?(m,h={})=>a.inputFlag.flag.default({flags:h,options:m.inputFlag.flag}):async()=>a.inputFlag.flag.default}:a},i=a=>a.inputFlag.flag.type==="option"&&a.inputFlag.flag.defaultHelp?{...a,helpFunction:typeof a.inputFlag.flag.defaultHelp=="function"?(d,m,...h)=>d.inputFlag.flag.defaultHelp({flags:m,options:d.inputFlag},...h):d=>d.inputFlag.flag.defaultHelp}:a,s=async a=>{let d=r(u.filter(m=>!m.metadata?.setFromDefault));return Promise.all(a.map(async m=>{try{if(m.helpFunction)return{...m,metadata:{...m.metadata,defaultHelp:await m.helpFunction?.(m,d,this.context)}}}catch{}return m}))},r=a=>Object.fromEntries(a.filter(d=>d.value!==void 0).map(d=>[d.inputFlag.name,d.value])),o=this.mapAndValidateFlags(),c=await Promise.all(Object.entries(this.input.flags).filter(([a,d])=>d.type==="boolean"||d.env||d.default!==void 0||"defaultHelp"in d||o.has(a)).map(([a,d])=>({inputFlag:{flag:d,name:a},tokens:o.get(a)})).map(a=>n(a)).filter(a=>a.valueFunction!==void 0).map(a=>i(a)).map(async a=>a.metadata?.setFromDefault?a:{...a,value:await a.valueFunction?.(a)})),l=r(c.filter(a=>!a.metadata?.setFromDefault)),u=await Promise.all(c.map(async a=>a.metadata?.setFromDefault?{...a,value:await a.valueFunction?.(a,l)}:a)),p=u.some(a=>typeof a.helpFunction=="function")?await s(u):u;return{flags:r(p),metadata:{flags:Object.fromEntries(p.filter(a=>a.metadata).map(a=>[a.inputFlag.name,a.metadata]))}}}_setNames(){for(let e of Object.keys(this.input.flags))this.input.flags[e].name=e;for(let e of Object.keys(this.input.args))this.input.args[e].name=e}findFlag(e){let n=e.startsWith("--"),i=n?!1:e.startsWith("-"),s=n?this.findLongFlag(e):i?this.findShortFlag(e):void 0;return{isLong:n,name:s}}findLongFlag(e){let n=e.slice(2);if(this.input.flags[n])return n;if(this.flagAliases[n])return this.flagAliases[n].name;if(e.startsWith(on)){let i=this.booleanFlags[e.slice(on.length)];if(i&&i.allowNo)return i.name;let s=this.flagAliases[e.slice(on.length)];if(s&&s.type==="boolean"&&s.allowNo)return s.name}}findShortFlag([e,n]){return this.flagAliases[n]?this.flagAliases[n].name:Object.keys(this.input.flags).find(i=>this.input.flags[i].char===n&&n!==void 0&&this.input.flags[i].char!==void 0)}mapAndValidateFlags(){let e=new Map;for(let n of this.raw.filter(i=>i.type==="flag")){if(!(n.flag in this.input.flags))throw new Ce.CLIError(`Unexpected flag ${n.flag}`);let i=e.get(n.flag)??[];e.set(n.flag,[...i,n])}return e}};ne.Parser=Si});var Ii=y(Mi=>{"use strict";f();Object.defineProperty(Mi,"__esModule",{value:!0});Mi.validate=Td;var Hr=$(),jt=Ai();async function Td(t){let e;function n(){if(t.output.nonExistentFlags?.length>0)throw new jt.NonExistentFlagsError({flags:t.output.nonExistentFlags,parse:t});let h=Object.keys(t.input.args).length;if(t.input.strict&&t.output.argv.length>h){let _=t.output.argv.slice(h);throw new jt.UnexpectedArgsError({args:_,parse:t})}let g=[],b=!1;for(let[_,O]of Object.entries(t.input.args)){if(!O.required)b=!0;else if(b)throw new jt.InvalidArgsSpecError({args:t.input.args,parse:t});O.required&&t.output.args[_]===void 0&&g.push(O)}if(g.length>0){let _=Object.entries(t.input.flags).filter(([O,j])=>j.type==="option"&&!!j.multiple).map(([O])=>O);throw new jt.RequiredArgsError({args:g,flagsWithMultiple:_,parse:t})}}async function i(){let h=Object.entries(t.input.flags).flatMap(([_,O])=>t.output.flags[_]!==void 0?[...O.relationships?m(_,O):[],...O.dependsOn?[a(_,O.dependsOn)]:[],...O.exclusive?[l(_,O.exclusive)]:[],...O.combinable?[u(_,O.combinable)]:[],...O.exactlyOne?[p(_,O.exactlyOne)]:[]]:O.required?[{name:_,reason:`Missing required flag ${_}`,status:"failed",validationFn:"required"}]:O.exactlyOne&&O.exactlyOne.length>0?[o(O)]:O.atLeastOne&&O.atLeastOne.length>0?[c(O)]:[]),b=(await Promise.all(h)).filter(_=>_.status==="failed");if(b.length>0)throw new jt.FailedFlagValidationError({failed:b,parse:t})}async function s(h){if(e)return e;let g=h.map(async _=>typeof _=="string"?[_,t.output.flags[_]]:await _.when(t.output.flags)?[_.name,t.output.flags[_.name]]:null),b=await Promise.all(g);return e=Object.fromEntries(b.filter(_=>_!==null)),e}let r=h=>Object.keys(h).filter(g=>g!==void 0);function o(h){let g={name:h.name,validationFn:"validateExactlyOneAcrossFlags"};if(Object.entries(t.input.flags).map(_=>_[0]).filter(_=>t.output.flags[_]!==void 0).filter(_=>h.exactlyOne&&h.exactlyOne.includes(_)).length===0){let O=`Exactly one of the following must be provided: ${(0,Hr.uniq)(h.exactlyOne?.map(j=>`--${j}`)??[]).join(", ")}`;return{...g,reason:O,status:"failed"}}return{...g,status:"success"}}function c(h){let g={name:h.name,validationFn:"validateAtLeastOneAcrossFlags"};if(Object.entries(t.input.flags).map(_=>_[0]).filter(_=>t.output.flags[_]!==void 0).filter(_=>h.atLeastOne&&h.atLeastOne.includes(_)).length===0){let O=`At least one of the following must be provided: ${(0,Hr.uniq)(h.atLeastOne?.map(j=>`--${j}`)??[]).join(", ")}`;return{...g,reason:O,status:"failed"}}return{...g,status:"success"}}async function l(h,g){let b={name:h,validationFn:"validateExclusive"},_=await s(g),O=r(_);for(let j of O)if(!(t.output.metadata.flags&&t.output.metadata.flags[j]?.setFromDefault)&&!(t.output.metadata.flags&&t.output.metadata.flags[h]?.setFromDefault)&&t.output.flags[j]!==void 0){let H=t.output.metadata.flags?.[j]?.defaultHelp??t.output.flags[j];return{...b,reason:`--${j}=${H} cannot also be provided when using --${h}`,status:"failed"}}return{...b,status:"success"}}async function u(h,g){let b={name:h,validationFn:"validateCombinable"},_=new Set(g.map(j=>typeof j=="string"?j:j.name)),O=await s(g);for(let j of Object.keys(t.output.flags))if(!(t.output.metadata.flags&&t.output.metadata.flags[j]?.setFromDefault)&&!(t.output.metadata.flags&&t.output.metadata.flags[h]?.setFromDefault)&&j!==h&&t.output.flags[j]!==void 0&&!_.has(j)){let H=Object.keys(O).map(V=>`--${V}`).join(", ");return{...b,reason:`Only the following can be provided when using --${h}: ${H}`,status:"failed"}}return{...b,status:"success"}}async function p(h,g){let b={name:h,validationFn:"validateExactlyOne"},_=await s(g),O=r(_);for(let j of O)if(j!==h&&t.output.flags[j]!==void 0)return{...b,reason:`--${j} cannot also be provided when using --${h}`,status:"failed"};return{...b,status:"success"}}async function a(h,g){let b={name:h,validationFn:"validateDependsOn"},_=await s(g);if(!Object.values(_).every(j=>j!==void 0)){let j=Object.keys(_).map(H=>`--${H}`).join(", ");return{...b,reason:`All of the following must be provided when using --${h}: ${j}`,status:"failed"}}return{...b,status:"success"}}async function d(h,g){let b={name:h,validationFn:"validateSome"},_=await s(g);if(!Object.values(_).some(Boolean)){let j=Object.keys(_).map(H=>`--${H}`).join(", ");return{...b,reason:`One of the following must be provided when using --${h}: ${j}`,status:"failed"}}return{...b,status:"success"}}function m(h,g){return(g.relationships??[]).map(b=>{switch(b.type){case"all":return a(h,b.flags);case"none":return l(h,b.flags);case"only":return u(h,b.flags);case"some":return d(h,b.flags);default:throw new Error(`Unknown relationship type: ${b.type}`)}})}return n(),i()}});var Wr=y(an=>{"use strict";f();Object.defineProperty(an,"__esModule",{value:!0});an.flagUsage=Br;an.flagUsages=Nd;var Ld=$(),Rd=ve();function Br(t,e={}){let n=[];t.helpLabel?n.push(t.helpLabel):(t.char&&n.push(`-${t.char}`),t.name&&n.push(` --${t.name}`));let i=t.type==="option"?` ${t.name.toUpperCase()}`:"",s=t.summary||t.description||"";return e.displayRequired&&t.required&&(s=`(required) ${s}`),s=s?(0,Rd.colorize)("dim",s):void 0,[` ${n.join(",").trim()}${i}`,s]}function Nd(t,e={}){return t.length===0?[]:(0,Ld.sortBy)(t,n=>[n.char?-1:1,n.char,n.name]).map(n=>Br(n,e))}});var ki=y(Ee=>{"use strict";f();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.validate=Ee.flagUsages=void 0;Ee.parse=Ud;var Hd=Nr(),Bd=Ii(),Wd=Wr();Object.defineProperty(Ee,"flagUsages",{enumerable:!0,get:function(){return Wd.flagUsages}});var zd=Ii();Object.defineProperty(Ee,"validate",{enumerable:!0,get:function(){return zd.validate}});async function Ud(t,e){let n={"--":e["--"],args:e.args??{},argv:t,context:e.context,flags:e.flags??{},strict:e.strict!==!1},s=await new Hd.Parser(n).parse();return await(0,Bd.validate)({input:n,output:s}),s}});var Jr=y(U=>{"use strict";f();var Vd=U&&U.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,s)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),Gd=U&&U.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kr=U&&U.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&Vd(n,e,i[s]);return Gd(n,e),n}})(),Kd=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(U,"__esModule",{value:!0});U.Command=void 0;var Jd=v("node:url"),zr=v("node:util"),Ri=Kd(G()),Yd=sn(),Ti=Kr(oe()),Pt=Ne(),Xd=k(),Zd=Kr(ki()),Ur=ai(),Li=be(),Vr=$(),$e=ve(),Gr=Ri.default.getInstance().get("@oclif/core");process.stdout.on("error",t=>{if(!(t&&t.code==="EPIPE"))throw t});var Ni=class{argv;config;static _base=`${Gr.name}@${Gr.version}`;static aliases=[];static args={};static baseFlags;static deprecateAliases;static deprecationOptions;static description;static enableJsonFlag=!1;static examples;static flags;static hasDynamicHelp=!1;static help;static hidden;static hiddenAliases=[];static id;static plugin;static pluginAlias;static pluginName;static pluginType;static state;static strict=!0;static summary;static usage;debug;id;parsed=!1;constructor(e,n){this.argv=e,this.config=n,this.id=this.ctor.id;try{this.debug=(0,Xd.makeDebug)(this.id?`${this.config.bin}:${this.id}`:this.config.bin)}catch{this.debug=()=>{}}}static async run(e,n){e||(e=process.argv.slice(2)),typeof n=="string"&&n.startsWith("file://")&&(n=(0,Jd.fileURLToPath)(n));let i=await Yd.Config.load(n||v.main?.filename||__dirname),s=Ri.default.getInstance();s.has("config")||s.set("config",i);let r=new this(e,i);if(!r.id){let o=r.constructor.name.toLowerCase();r.id=o,r.ctor.id=o}return r._run()}get ctor(){return this.constructor}async _run(){let e,n;try{this.removeEnvVar("REDIRECTED"),await this.init(),n=await this.run()}catch(i){e=i,await this.catch(i)}finally{await this.finally(e)}return n&&this.jsonEnabled()&&this.logJson(this.toSuccessJson(n)),!this.parsed&&!(0,Vr.isProd)()&&process.emitWarning(`Command ${this.id} did not parse its arguments. Did you forget to call 'this.parse'?`,{code:"UnparsedCommand"}),n}async catch(e){if(process.exitCode=process.exitCode??e.exitCode??1,this.jsonEnabled())this.logJson(this.toErrorJson(e));else{if(!e.message)throw e;try{$e.ux.action.stop($e.ux.colorize("bold",$e.ux.colorize("red","!")))}catch{}throw e}}error(e,n={}){return Ti.error(e,n)}exit(e=0){Ti.exit(e)}async finally(e){}async init(){this.debug("init version: %s argv: %o",this.ctor._base,this.argv);let e=globalThis;e["http-call"]=e["http-call"]||{},e["http-call"].userAgent=this.config.userAgent,this.warnIfCommandDeprecated()}jsonEnabled(){if(!this.ctor?.enableJsonFlag)return!1;if(this.config.scopedEnvVar?.("CONTENT_TYPE")?.toLowerCase()==="json")return!0;let e=this.argv.indexOf("--"),n=this.argv.indexOf("--json");return e===-1?n!==-1:n!==-1&&n<e}log(e="",...n){this.jsonEnabled()||(e=typeof e=="string"?e:(0,zr.inspect)(e),$e.ux.stdout(e,...n))}logJson(e){$e.ux.stdout($e.ux.colorizeJson(e,{pretty:!0,theme:this.config.theme?.json}))}logToStderr(e="",...n){this.jsonEnabled()||(e=typeof e=="string"?e:(0,zr.inspect)(e),$e.ux.stderr(e,...n))}async parse(e,n=this.argv){e||(e=this.ctor);let i={context:this,...e,flags:(0,Ur.aggregateFlags)(e.flags,e.baseFlags,e.enableJsonFlag)},s=await this.config.runHook("preparse",{argv:[...n],options:i}),r=s.successes?.length?s.successes.find(c=>c.plugin.root===Ri.default.getInstance().get("rootPlugin")?.root)?.result??n:n;this.argv=[...r];let o=await Zd.parse(r,i);return this.warnIfFlagDeprecated(o.flags??{}),this.parsed=!0,o}toErrorJson(e){return{error:e}}toSuccessJson(e){return e}warn(e){return this.jsonEnabled()||Ti.warn(e),e}warnIfCommandDeprecated(){let[e]=(0,Pt.normalizeArgv)(this.config);if(this.ctor.deprecateAliases&&this.ctor.aliases.includes(e)){let n=(0,Li.toConfiguredId)(this.ctor.id,this.config),i=(0,Li.toConfiguredId)(e,this.config);this.warn((0,Pt.formatCommandDeprecationWarning)(i,{to:n}))}if(this.ctor.state==="deprecated"){let n=(0,Li.toConfiguredId)(this.ctor.id,this.config);this.warn((0,Pt.formatCommandDeprecationWarning)(n,this.ctor.deprecationOptions))}}warnIfFlagDeprecated(e){let n=(0,Ur.aggregateFlags)(this.ctor.flags,this.ctor.baseFlags,this.ctor.enableJsonFlag);for(let i of Object.keys(e)){let s=n[i],r=s?.deprecated;if(r&&this.warn((0,Pt.formatFlagDeprecationWarning)(i,r)),s?.deprecateAliases){let c=(0,Vr.uniq)([...s?.aliases??[],...s?.charAliases??[]]).map(u=>u.length===1?`-${u}`:`--${u}`);if(c.length===0)return;let l=c.filter(u=>this.argv.includes(u));for(let u of l){let p=`--${s?.name}`;s?.char&&(p+=` | -${s?.char}`),this.warn((0,Pt.formatFlagDeprecationWarning)(u,{to:p}))}}}}removeEnvVar(e){let n=[];try{n.push(...this.config.scopedEnvVarKeys(e))}catch{n.push(this.config.scopedEnvVarKey(e))}n.map(i=>delete process.env[i])}};U.Command=Ni});var Bi=y(Hi=>{"use strict";f();Object.defineProperty(Hi,"__esModule",{value:!0});Hi.flush=nf;var Qd=Ie();function ef(t,e){function n(i,s=!1){return new Promise(r=>{let o=setTimeout(()=>r(null),i);s&&o.unref()})}return Promise.race([t,n(e,!0).then(()=>(0,Qd.error)("timed out"))])}async function tf(){let t=new Promise(n=>{process.stdout.once("drain",()=>n(null))});if(!process.stdout.write(""))return t}async function nf(t=1e4){await ef(tf(),t)}});var zi=y(Y=>{"use strict";f();var sf=Y&&Y.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Y,"__esModule",{value:!0});Y.versionAddition=Y.helpAddition=void 0;Y.run=df;var Yr=v("node:url"),rf=sf(G()),of=sn(),Wi=pt(),Xr=k(),Qe=Ue(),af=Lt(),cf=ve(),lf=(t,e)=>{if(t.length===0&&!e.isSingleCommandCLI)return!0;let n=(0,Wi.getHelpFlagAdditions)(e);for(let i of t){if(n.includes(i))return!0;if(i==="--")return!1}return!1};Y.helpAddition=lf;var uf=(t,e)=>{let n=e?.pjson.oclif.additionalVersionFlags??[];return!![...new Set(["--version",...n]).values()].includes(t[0])};Y.versionAddition=uf;async function df(t,e){let n=Qe.Performance.mark(Qe.OCLIF_MARKER_OWNER,"main.run"),i=Qe.Performance.mark(Qe.OCLIF_MARKER_OWNER,"main.run#init"),s=async d=>{let m=await(0,Wi.loadHelpClass)(o);await new m(o,o.pjson.oclif.helpOptions??o.pjson.helpOptions).showHelp(d)};(0,Xr.setLogger)(e);let{debug:r}=(0,Xr.getLogger)("main");r(`process.execPath: ${process.execPath}`),r(`process.execArgv: ${process.execArgv}`),r("process.argv: %O",process.argv),t=t??process.argv.slice(2),e&&(typeof e=="string"&&e.startsWith("file://")||e instanceof Yr.URL)&&(e=(0,Yr.fileURLToPath)(e));let o=await of.Config.load(e??v.main?.filename??__dirname);rf.default.getInstance().set("config",o),o.isSingleCommandCLI&&(t=[af.SINGLE_COMMAND_CLI_SYMBOL,...t]);let[c,...l]=(0,Wi.normalizeArgv)(o,t),u=async(d,m)=>{n?.stop(),i?.stopped||i?.stop(),await Qe.Performance.collect(),Qe.Performance.debug(),await o.runHook("finally",{argv:l,Command:d,error:m,id:c})};if(await o.runHook("init",{argv:l,id:c}),(0,Y.versionAddition)(t,o)){cf.ux.stdout(o.userAgent),await u();return}if((0,Y.helpAddition)(t,o)){await s(t),await u();return}let p=o.findCommand(c);if(!p&&(o.flexibleTaxonomy?null:o.findTopic(c))){await s([c]),await u();return}i?.stop();let a;try{return await o.runCommand(c,l,p)}catch(d){throw a=d,d}finally{await u(p,a)}}});var Zr=y(Ui=>{"use strict";f();Object.defineProperty(Ui,"__esModule",{value:!0});Ui.execute=_f;var ff=oe(),pf=Kt(),hf=Bi(),mf=zi(),gf=re();async function _f(t){if(!t.dir&&!t.loadOptions)throw new ff.CLIError("dir or loadOptions is required.");return t.development&&(process.env.NODE_ENV="development",gf.settings.debug=!0),(0,mf.run)(t.args??process.argv.slice(2),t.loadOptions??t.dir).then(async e=>((0,hf.flush)(),e)).catch(async e=>(0,pf.handle)(e))}});var eo=y(Qr=>{"use strict";f();Object.defineProperty(Qr,"__esModule",{value:!0})});var Af=y(w=>{f();var yf=w&&w.__createBinding||(Object.create?(function(t,e,n,i){i===void 0&&(i=n);var s=Object.getOwnPropertyDescriptor(e,n);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,s)}):(function(t,e,n,i){i===void 0&&(i=n),t[i]=e[n]})),bf=w&&w.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),et=w&&w.__importStar||(function(){var t=function(e){return t=Object.getOwnPropertyNames||function(n){var i=[];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[i.length]=s);return i},t(e)};return function(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var i=t(e),s=0;s<i.length;s++)i[s]!=="default"&&yf(n,e,i[s]);return bf(n,e),n}})();Object.defineProperty(w,"__esModule",{value:!0});w.ux=w.toStandardizedId=w.toConfiguredId=w.settings=w.Performance=w.Parser=w.ModuleLoader=w.getLogger=w.Interfaces=w.loadHelpClass=w.HelpBase=w.Help=w.CommandHelp=w.flush=w.Flags=w.execute=w.handle=w.Errors=w.Plugin=w.Config=w.Command=w.Args=void 0;var vf=$();function wf(){try{process.cwd()}catch(t){t.code==="ENOENT"&&process.stderr.write(`WARNING: current directory does not exist
83
- `)}}function Of(){if(!(process.env.OCLIF_DISABLE_ENGINE_WARNING&&(0,vf.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING)))try{let t=v("node:path"),e=io(),n=t.join(__dirname,".."),i=v(t.join(n,"package.json"));e.satisfies(process.versions.node,i.engines.node)||process.emitWarning(`Node version must be ${i.engines.node} to use this CLI. Current node version: ${process.versions.node}`)}catch{}}wf();Of();w.Args=et(Xi());var jf=Jr();Object.defineProperty(w,"Command",{enumerable:!0,get:function(){return jf.Command}});var to=sn();Object.defineProperty(w,"Config",{enumerable:!0,get:function(){return to.Config}});Object.defineProperty(w,"Plugin",{enumerable:!0,get:function(){return to.Plugin}});w.Errors=et(oe());var Pf=Kt();Object.defineProperty(w,"handle",{enumerable:!0,get:function(){return Pf.handle}});var Cf=Zr();Object.defineProperty(w,"execute",{enumerable:!0,get:function(){return Cf.execute}});w.Flags=et(ri());var Ef=Bi();Object.defineProperty(w,"flush",{enumerable:!0,get:function(){return Ef.flush}});var cn=pt();Object.defineProperty(w,"CommandHelp",{enumerable:!0,get:function(){return cn.CommandHelp}});Object.defineProperty(w,"Help",{enumerable:!0,get:function(){return cn.Help}});Object.defineProperty(w,"HelpBase",{enumerable:!0,get:function(){return cn.HelpBase}});Object.defineProperty(w,"loadHelpClass",{enumerable:!0,get:function(){return cn.loadHelpClass}});w.Interfaces=et(eo());var $f=k();Object.defineProperty(w,"getLogger",{enumerable:!0,get:function(){return $f.getLogger}});var qf=zi();Object.defineProperty(w,"run",{enumerable:!0,get:function(){return qf.run}});w.ModuleLoader=et(st());w.Parser=et(ki());var Df=Ue();Object.defineProperty(w,"Performance",{enumerable:!0,get:function(){return Df.Performance}});var xf=re();Object.defineProperty(w,"settings",{enumerable:!0,get:function(){return xf.settings}});var no=be();Object.defineProperty(w,"toConfiguredId",{enumerable:!0,get:function(){return no.toConfiguredId}});Object.defineProperty(w,"toStandardizedId",{enumerable:!0,get:function(){return no.toStandardizedId}});var Ff=ve();Object.defineProperty(w,"ux",{enumerable:!0,get:function(){return Ff.ux}})});export{Af as a};
83
+ `)}}function Of(){if(!(process.env.OCLIF_DISABLE_ENGINE_WARNING&&(0,vf.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING)))try{let t=v("node:path"),e=io(),n=t.join(__dirname,".."),i=v(t.join(n,"package.json"));e.satisfies(process.versions.node,i.engines.node)||process.emitWarning(`Node version must be ${i.engines.node} to use this CLI. Current node version: ${process.versions.node}`)}catch{}}wf();Of();w.Args=et(Xi());var jf=Jr();Object.defineProperty(w,"Command",{enumerable:!0,get:function(){return jf.Command}});var to=sn();Object.defineProperty(w,"Config",{enumerable:!0,get:function(){return to.Config}});Object.defineProperty(w,"Plugin",{enumerable:!0,get:function(){return to.Plugin}});w.Errors=et(oe());var Pf=Kt();Object.defineProperty(w,"handle",{enumerable:!0,get:function(){return Pf.handle}});var Cf=Zr();Object.defineProperty(w,"execute",{enumerable:!0,get:function(){return Cf.execute}});w.Flags=et(ri());var Ef=Bi();Object.defineProperty(w,"flush",{enumerable:!0,get:function(){return Ef.flush}});var cn=pt();Object.defineProperty(w,"CommandHelp",{enumerable:!0,get:function(){return cn.CommandHelp}});Object.defineProperty(w,"Help",{enumerable:!0,get:function(){return cn.Help}});Object.defineProperty(w,"HelpBase",{enumerable:!0,get:function(){return cn.HelpBase}});Object.defineProperty(w,"loadHelpClass",{enumerable:!0,get:function(){return cn.loadHelpClass}});w.Interfaces=et(eo());var $f=k();Object.defineProperty(w,"getLogger",{enumerable:!0,get:function(){return $f.getLogger}});var qf=zi();Object.defineProperty(w,"run",{enumerable:!0,get:function(){return qf.run}});w.ModuleLoader=et(st());w.Parser=et(ki());var Df=Ue();Object.defineProperty(w,"Performance",{enumerable:!0,get:function(){return Df.Performance}});var xf=re();Object.defineProperty(w,"settings",{enumerable:!0,get:function(){return xf.settings}});var no=be();Object.defineProperty(w,"toConfiguredId",{enumerable:!0,get:function(){return no.toConfiguredId}});Object.defineProperty(w,"toStandardizedId",{enumerable:!0,get:function(){return no.toStandardizedId}});var Ff=ve();Object.defineProperty(w,"ux",{enumerable:!0,get:function(){return Ff.ux}})});export{pt as a,Af as b};
@@ -0,0 +1,3 @@
1
+ import{b as R}from"./chunk-J3JPJCWP.js";import{a as x,l as M,n as Y}from"./chunk-NTVEJYKI.js";import{a as U}from"./chunk-UFU2LGFK.js";import{a as G,c as p}from"./chunk-ECEOBSGD.js";import{a as O}from"./chunk-GVRFO4CV.js";import{a as S,b as L}from"./chunk-YY6TFARF.js";import{a as H}from"./chunk-LYPNQFWX.js";import{k as A,n as I}from"./chunk-R757TSQ6.js";import{p as D,q as E,r as P,u as _,v as C}from"./chunk-P3Z5RLVV.js";import{h as $,k as V}from"./chunk-IISE7SBT.js";import{b}from"./chunk-DGMRL5DQ.js";import{K as g,oa as m}from"./chunk-L5XWYTHY.js";import{H as k,z as F}from"./chunk-SKRUMRB4.js";import{_a as T}from"./chunk-YJWNM4XO.js";import{b as Q}from"./chunk-JA2QZ635.js";import{q as f}from"./chunk-3VYOLEQE.js";import{e as z,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();async function B(e,t,o,n,r,l){let i=W(o,n,r),a=X(o,e,n,t),s=[...i,...a,{title:"Theme download complete",task:async()=>{}}];s.length>0&&await k(s,{renderOptions:{stdout:l?.stdout??process.stdout},noProgressBar:r.multiEnvironment})}function W(e,t,o){if(o.nodelete)return[];let n=new Set(e.map(i=>i.key));return t.applyIgnoreFilters([...t.files.values()]).map(({key:i})=>i).filter(i=>!n.has(i)).map(i=>({title:`Cleaning your local directory (removing ${i})`,task:async()=>t.delete(i)}))}function X(e,t,o,n){let r=o.applyIgnoreFilters(e);r=r.filter(s=>{let h=s.checksum;return o.files.get(s.key)?.checksum!==h});let l=r.map(s=>s.key),i=s=>s.total===0?"[100%]":`[${Math.round(s.current/s.total*100)}%]`;return R(l,_,(s,h)=>({title:`Downloading files from remote theme ${i({current:h,total:l.length})}`,task:async()=>J(t,o,s,n)}))}async function J(e,t,o,n){let r=await A(e.id,o,n);r&&await Promise.all(r.map(l=>t.write(l)))}async function K(e,t,o,n){m("theme-service:pull:setup"),U({verbose:e.verbose,noColor:e.noColor});let r=t??await g(P({store:e.store}),e.password),l=new O(r),i=await(e.development?l.find():l.fetch()),{path:a,nodelete:s,live:h,development:u,only:q,ignore:N,force:y,environment:w}=e;if(!await te(a??f(),y??!1,w?.[0],o))return;let j=await H(r,{header:"Select a theme to open",filter:{live:h,theme:u?`${i?.id}`:e.theme}});m("theme-service:pull:setup"),await Z(j,r,{environment:w?.[0],force:y??!1,ignore:N??[],multiEnvironment:o,nodelete:s??!1,only:q??[],path:a??f()},n)}async function Z(e,t,o,n){m("theme-service:pull:file-system");let r=M(o.path,{filters:o}),[l]=await Promise.all([I(e.id,t),r.ready()]),i=x(l);m("theme-service:pull:file-system"),await B(e,t,i,r,o,n);let a=o.environment?`Environment: ${o.environment}`:"";F({headline:a,body:["The theme",...G(e),"has been pulled."],nextSteps:[[{link:{label:"View your theme",url:S(e,t)}}],[{link:{label:"Customize your theme at the theme editor",url:L(e,t)}}]]})}async function ee(e){return(await T("*",{cwd:e,deep:1,onlyFiles:!1})).length===0}async function te(e,t,o,n){return t?!0:!(!await ee(e)&&!await Y(e)&&!await p(t,void 0,o,n)||await $(e)&&!await V(e)&&!await p(t,"The current Git directory has uncommitted changes.",o,n))}var d=z(Q(),1);var v=class extends C{static summary="Download your remote theme files locally.";static descriptionWithMarkdown=`Retrieves theme files from Shopify.
2
+
3
+ If no theme is specified, then you're prompted to select the theme to pull from the list of the themes in your store.`;static description=this.descriptionForHelp();static flags={...b,...D,...E("download"),theme:d.Flags.string({char:"t",description:"Theme ID or name of the remote theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_THEME_ID"}),development:d.Flags.boolean({char:"d",description:"Pull theme files from your remote development theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),live:d.Flags.boolean({char:"l",description:"Pull theme files from your remote live theme. Use --development, --live, or --theme in non-interactive environments.",env:"SHOPIFY_FLAG_LIVE"}),nodelete:d.Flags.boolean({char:"n",description:"Prevent deleting local files that don't exist remotely.",env:"SHOPIFY_FLAG_NODELETE"}),force:d.Flags.boolean({hidden:!0,char:"f",description:"Proceed without confirmation, if current directory does not seem to be theme directory.",env:"SHOPIFY_FLAG_FORCE"})};static multiEnvironmentsFlags=["store","password","path",["live","development","theme"]];static nonTTYFlagRequirements(){return[{flags:["theme","development","live"]}]}async command(t,o,n,r,l){m("theme-command:pull"),await K({...t,noColor:t["no-color"]},o,n,l),m("theme-command:pull")}storeAuthScopes(){return["read_themes"]}};export{K as a,v as b};
@@ -0,0 +1 @@
1
+ import{a as p}from"./chunk-ZUVAHONX.js";import{a as r,b as c}from"./chunk-SDFO7P2M.js";import{d as s}from"./chunk-4Y22EM45.js";import{a}from"./chunk-YGFEUXKQ.js";import{Ha as n}from"./chunk-2KLXRVGQ.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class d extends a{static summary="Reverses app subscription migrations that are still scheduled.";static descriptionWithMarkdown="Reverses scheduled app subscription migrations that have not migrated yet.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV header: `shop_id`.\n- Example row: `123456789`.\n\nThe CSV can contain only the `shop_id` header, or it can reuse the complete CSV supplied to `schedule`; schedule-only columns are ignored.\n\nUnscheduling is not a rollback after a subscription has migrated. The command validates the entire CSV before sending any mutation. Use `--force` to skip confirmation and immediately submit every valid row.\n\nOperations are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...s};async run(){let{flags:t}=await this.parse(d),{app:m,remoteApp:u}=await n({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),h=await p({action:"unschedule",input:t.input??"-",clientId:u.apiKey,skipConfirmation:t.force,watch:t.watch,...t.watch&&!t.json?{onSubmissionAccepted:r}:{}}),i=c(h,{json:t.json,watch:t.watch});return i!==0&&(process.exitCode=i),{app:m}}};export{e as a};
@@ -0,0 +1 @@
1
+ import{O as A,P as O,Q as z,S as P,U as x}from"./chunk-2KLXRVGQ.js";import{l as $,la as l,oa as L,sa as D}from"./chunk-Q45XAEG2.js";import{a as F}from"./chunk-6RBCFXJT.js";import{u as R}from"./chunk-L5XWYTHY.js";import{H as N,M as v,T as y,y as g,z as k}from"./chunk-SKRUMRB4.js";import{b as E}from"./chunk-YTJ3EPD3.js";import{g as _,i as d}from"./chunk-FCULF3JA.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();p();async function b(e,t){if(t.clientName!==l.AppManagement||!t.devStoreCapReached)return!1;try{return await t.devStoreCapReached(e)}catch{return!1}}async function M(e,t,o,i="disabled"){let c=o.clientName===l.AppManagement,s=async f=>o.devStoresForOrg(t.id,f),n=i!=="disabled"&&o.clientName===l.AppManagement,r=async()=>{if(await b(t.id,o))throw new d(U,W(t.id));let f=await A(),w=await O(),u=await z(),T=await $({name:f,plan:w,withDemoData:u,organization:t,json:!1,summary:!1}),S=await I(t,T,o);return k({headline:`Dev store "${S.shopName}" created successfully.`}),S},a,h;if(n&&e.stores.length===0){if(await b(t.id,o))throw new d(U,W(t.id));if(v()===!1)throw new d("No development store was specified.",H(t.id));a=async()=>(g({body:Y(t)}),r())}else if(n&&i==="selection-option"){if(v()===!1&&(e.stores.length>1||e.hasMorePages))throw new d("No development store was specified.","Run `shopify app dev --store <store-domain>` to select a development store.");v()&&!await b(t.id,o)&&(h=r)}let m=await P({onSearchForStoresByName:s,...e,showDomainOnPrompt:c,...a?{onCreateStoreWhenEmpty:a}:{},...h?{onCreateStore:h}:{}});if(!m){if(a)throw new _;if(g({body:await o.getCreateDevStoreLink(t)}),await y(5),!await x(t))throw new _;let w=await B(t.id,o);m=await M({stores:w,hasMorePages:!1},t,o,i)}return C(m),m}async function I(e,t,o){let s;if(await N([{title:"Fetching organization data",task:async()=>{for(let r=0;r<10;r++){try{let a=await D(e,t,o);if(a){s=a;return}}catch(a){if(!(a instanceof L))throw a}await y(3)}}}]),!s)throw new d(`The newly created development store (${t}) is not available yet.`,`Run \`shopify app dev --store ${t}\` to select it when it is ready.`);return s}async function B(e,t){let c=[];return await N([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){let{stores:r}=await t.devStoresForOrg(e);if(r.length>0){c=r;return}await y(3)}}}]),c}var U="Your organization has reached its development store limit.";function Y(e){return`You don't have any dev stores associated with ${e.businessName}'s Dev Dashboard. Let's create one.`}function q(e){return`shopify store create dev --organization-id ${e} --name <store-name> --plan <plan>`}function H(e){return`Create a development store with \`${q(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function W(e){return`Make a development store slot available in Dev Dashboard. Then create a development store with \`${q(e)}\`, then run \`shopify app dev --store <store-domain>\`.`}function C(e){if(!e.transferDisabled)throw!e.transferDisabled&&!e.convertableToPartnerTest?new d(`The store you specified (${e.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store."):new d(`The store you specified (${e.shopDomain}) is not transfer-disabled`,"Run dev --reset and select a transfer-disabled dev store.")}async function fe({appContextResult:e,storeFqdn:t,forceReselectStore:o,storeTypes:i=["APP_DEVELOPMENT"],storeCreationMode:c="disabled"}){let{app:s,organization:n,developerPlatformClient:r}=e,a,h=s.configuration.build?.dev_store_url,m=s.hiddenConfig.dev_store_url,f=h??m,u=t??(o?void 0:f),T=i.length===1&&i[0]==="APP_DEVELOPMENT";if(u)a=await D(n,u,r,i),T&&C(a);else{let S=await r.devStoresForOrg(n.id);a=await M(S,n,r,c)}return a.shopDomain=R(a.shopDomain),await V(a,o),(a.shopDomain!==f||!m)&&await s.updateHiddenConfig({dev_store_url:a.shopDomain}),await r.ensureUserAccessToStore(n.id,a),a}async function V(e,t){await F.addPublicMetadata(()=>({cmd_app_reset_used:t,store_fqdn_hash:E(e.shopDomain),store_domain:e.shopDomain})),await F.addSensitiveMetadata(()=>({store_fqdn:e.shopDomain}))}export{fe as a};
@@ -1 +1 @@
1
- import{D as r}from"./chunk-CNK3ZO2B.js";import{a as o}from"./chunk-CTNBSUVU.js";import{f as t,q as n}from"./chunk-773TIA5M.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
1
+ import{u as r}from"./chunk-L5XWYTHY.js";import{b as o}from"./chunk-JA2QZ635.js";import{f as t,q as n}from"./chunk-3VYOLEQE.js";import{e as s,g as a}from"./chunk-VKWPEFWQ.js";a();var e=s(o(),1);var c={path:e.Flags.string({description:"The path to your app directory.",parse:async i=>t(i),default:async()=>n(),noCacheDefault:!0,env:"SHOPIFY_FLAG_PATH"}),config:e.Flags.string({hidden:!1,char:"c",description:"The name of the app configuration.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"client-id":e.Flags.string({hidden:!1,description:"The Client ID of your app.",env:"SHOPIFY_FLAG_CLIENT_ID",exclusive:["config"]}),reset:e.Flags.boolean({hidden:!1,description:"Reset all your settings.",env:"SHOPIFY_FLAG_RESET",default:!1,exclusive:["config"]})},p={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation to run as a bulk operation.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your mutation, in JSON format. Can be specified multiple times.",env:"SHOPIFY_FLAG_VARIABLES",multiple:!0,exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSONL format (one JSON object per line). Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The store domain. Must be an existing dev store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),watch:e.Flags.boolean({description:"Wait for bulk operation results before exiting. Defaults to false.",env:"SHOPIFY_FLAG_WATCH"}),"output-file":e.Flags.string({description:"The file path where results should be written if --watch is specified. If not specified, results will be written to STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE",dependsOn:["watch"]}),version:e.Flags.string({description:"The API version to use for the bulk operation. If not specified, uses the latest stable version.",env:"SHOPIFY_FLAG_VERSION"})},h={query:e.Flags.string({char:"q",description:"The GraphQL query or mutation, as a string.",env:"SHOPIFY_FLAG_QUERY",required:!1,exactlyOne:["query","query-file"]}),"query-file":e.Flags.string({description:"Path to a file containing the GraphQL query or mutation. Can't be used with --query.",env:"SHOPIFY_FLAG_QUERY_FILE",parse:async i=>t(i),exactlyOne:["query","query-file"]}),variables:e.Flags.string({char:"v",description:"The values for any GraphQL variables in your query or mutation, in JSON format.",env:"SHOPIFY_FLAG_VARIABLES",exclusive:["variable-file"]}),"variable-file":e.Flags.string({description:"Path to a file containing GraphQL variables in JSON format. Can't be used with --variables.",env:"SHOPIFY_FLAG_VARIABLE_FILE",parse:async i=>t(i),exclusive:["variables"]}),store:e.Flags.string({char:"s",description:"The myshopify.com domain of the store to execute against. The app must be installed on the store. If not specified, you will be prompted to select a store.",env:"SHOPIFY_FLAG_STORE",parse:async i=>r(i)}),version:e.Flags.string({description:"The API version to use for the query or mutation. Defaults to the latest stable version.",env:"SHOPIFY_FLAG_VERSION"}),"output-file":e.Flags.string({description:"The file name where results should be written, instead of STDOUT.",env:"SHOPIFY_FLAG_OUTPUT_FILE"})};export{c as a,p as b,h as c};
@@ -0,0 +1 @@
1
+ import{a as c}from"./chunk-WXV35TPE.js";import{a as e}from"./chunk-JTPVSO6Y.js";import{F as n,I as p,Ia as s}from"./chunk-2KLXRVGQ.js";import{b as r}from"./chunk-DGMRL5DQ.js";import{b as d}from"./chunk-JA2QZ635.js";import{e as l,g as i}from"./chunk-VKWPEFWQ.js";i();var f=l(d(),1);var{config:b,...u}=e,o=class m extends c{static summary="Activate an app configuration.";static descriptionWithMarkdown="Sets default configuration when you run app-related CLI commands. If you omit the `config-name` parameter, then you'll be prompted to choose from the configuration files in your project.";static description=this.descriptionForHelp();static usage="app config use [config] [flags]";static flags={...r,...u};static args={config:f.Args.string({description:"The name of the app configuration. Can be 'shopify.app.staging.toml' or simply 'staging'."})};async run(){let{flags:t,args:a}=await this.parse(m),{app:g}=await s({directory:t.path,userProvidedConfigName:a.config});return await p(t.path),await n({directory:t.path,configName:a.config,reset:t.reset}),{app:g}}};export{o as a};
@@ -1 +1 @@
1
- import{O as i}from"./chunk-6C5AVMKR.js";import{a as l}from"./chunk-7UNQOKZW.js";import{a as p}from"./chunk-CX5CC6P5.js";import{e as u,g as a}from"./chunk-VKWPEFWQ.js";a();var f=u(l(),1),o=u(p(),1);async function h(t){try{return(await i("npm",["list","@shopify/cli"],{cwd:t})).match(/@shopify\/cli@([\w.-]*)/)?.[1]}catch{return}}async function d(){try{let t={...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},e=f.default.sync("shopify",{all:!0}).filter(r=>!r.includes("node_modules"));if(!e[0])return;let n=(await i(e[0],[],{env:t})).match(/@shopify\/cli\/([^\s]+)/);if(n&&n[1]){let r=n[1];if((0,o.satisfies)(r,">=3.59.0")||s(r))return r}return}catch{return}}function s(t){return t.startsWith("0.0.0")}function y(t,e){if(s(t)||s(e))return!1;let c=new o.SemVer(t),n=new o.SemVer(e);return c.major!==n.major}export{h as a,d as b,s as c,y as d};
1
+ import{O as i}from"./chunk-SKRUMRB4.js";import{a as l}from"./chunk-7UNQOKZW.js";import{a as p}from"./chunk-CX5CC6P5.js";import{e as u,g as a}from"./chunk-VKWPEFWQ.js";a();var f=u(l(),1),o=u(p(),1);async function h(t){try{return(await i("npm",["list","@shopify/cli"],{cwd:t})).match(/@shopify\/cli@([\w.-]*)/)?.[1]}catch{return}}async function d(){try{let t={...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},e=f.default.sync("shopify",{all:!0}).filter(r=>!r.includes("node_modules"));if(!e[0])return;let n=(await i(e[0],[],{env:t})).match(/@shopify\/cli\/([^\s]+)/);if(n&&n[1]){let r=n[1];if((0,o.satisfies)(r,">=3.59.0")||s(r))return r}return}catch{return}}function s(t){return t.startsWith("0.0.0")}function y(t,e){if(s(t)||s(e))return!1;let c=new o.SemVer(t),n=new o.SemVer(e);return c.major!==n.major}export{h as a,d as b,s as c,y as d};
@@ -1,4 +1,4 @@
1
- import{a as U}from"./chunk-LAMTFOVF.js";import{D as H}from"./chunk-CVW2HMQO.js";import{a as q}from"./chunk-VJEKDBGZ.js";import{b as I}from"./chunk-YNFXYVYN.js";import{a as O,o as D,w as k}from"./chunk-6C5AVMKR.js";import{h as N}from"./chunk-OAG72Q2O.js";import{Ab as h,Ca as F,Ta as A,Ua as P,bb as y,na as R,wa as g}from"./chunk-43FRAUV6.js";import{f as S}from"./chunk-XYUTD6IU.js";import{d as x,e as E,g as v,i as C}from"./chunk-773TIA5M.js";import{e as X,g as m}from"./chunk-VKWPEFWQ.js";m();function w(){return process.hrtime()}function M(r){let t=process.hrtime(r);return(t[0]*1e3+t[1]/1e6).toFixed(2)}m();m();var $=X(q(),1),G=200,K=6e4,L=200,Q=500,_=class{currentEvents=[];extensionPaths=[];app;options;onChangeCallback;watcher;debouncedEmit;ignored={};extensionWatchedFiles=new Map;constructor(t,e,s=G){this.app=t,this.options=e,this.debouncedEmit=k(this.emitEvents.bind(this),s,{leading:!0,trailing:!0}),this.updateApp(t)}onChange(t){this.onChangeCallback=t}async start(){let e=[...this.app.configuration.extension_directories??["extensions"]].map(n=>x(this.app.directory,n));await Promise.all(e.map(async n=>{try{await g(n.replace(/\/\*+$/,""))}catch{}}));let s=[this.app.configPath,...e],i=this.getAllWatchedFiles();s.push(...i),this.close();let{default:o}=await import("./chokidar-5RWEYTNQ.js");this.watcher=o.watch(s,{ignored:["**/node_modules/**","**/.git/**"],persistent:!0,ignoreInitial:!0}),this.watcher.on("all",this.handleFileEvent),this.addAbortListener(),h(`File watcher started with ${s.length} paths`,this.options.stdout)}updateApp(t){this.app=t,this.extensionPaths=this.app.nonConfigExtensions.map(e=>E(e.directory)).filter(e=>e!==this.app.directory),this.extensionPaths.forEach(e=>{this.ignored[e]??=this.createIgnoreInstance(e)})}addAbortListener(){this.options.signal.removeEventListener("abort",this.close),this.options.signal.addEventListener("abort",this.close)}getAllWatchedFiles(){this.extensionWatchedFiles.clear();let t=this.app.realExtensions.map(s=>({extension:s,watchedFiles:s.watchedFiles()})),e=new Set;for(let{extension:s,watchedFiles:i}of t)for(let o of i){let n=E(o);e.add(n);let a=this.extensionWatchedFiles.get(n)??new Set;a.add(s.handle),this.extensionWatchedFiles.set(n,a)}return Array.from(e)}emitEvents=()=>{let t=this.currentEvents;this.currentEvents=[];let e=`\u{1F509} ${t.length} EVENTS EMITTED in files: ${t.map(s=>s.path).join(`
1
+ import{a as U}from"./chunk-5BYVVXGD.js";import{K as H}from"./chunk-2KLXRVGQ.js";import{a as q}from"./chunk-VJEKDBGZ.js";import{q as I}from"./chunk-Q45XAEG2.js";import{a as O,o as D,w as k}from"./chunk-SKRUMRB4.js";import{i as N}from"./chunk-FCULF3JA.js";import{Aa as g,Ga as F,Nb as h,Xa as A,Ya as P,fb as y,ra as R}from"./chunk-YJWNM4XO.js";import{g as S}from"./chunk-SGBLCVUX.js";import{d as x,e as E,g as v,i as C}from"./chunk-3VYOLEQE.js";import{e as X,g as m}from"./chunk-VKWPEFWQ.js";m();function w(){return process.hrtime()}function M(r){let t=process.hrtime(r);return(t[0]*1e3+t[1]/1e6).toFixed(2)}m();m();var $=X(q(),1),G=200,K=6e4,L=200,Q=500,_=class{currentEvents=[];extensionPaths=[];app;options;onChangeCallback;watcher;debouncedEmit;ignored={};extensionWatchedFiles=new Map;constructor(t,e,s=G){this.app=t,this.options=e,this.debouncedEmit=k(this.emitEvents.bind(this),s,{leading:!0,trailing:!0}),this.updateApp(t)}onChange(t){this.onChangeCallback=t}async start(){let e=[...this.app.configuration.extension_directories??["extensions"]].map(n=>x(this.app.directory,n));await Promise.all(e.map(async n=>{try{await g(n.replace(/\/\*+$/,""))}catch{}}));let s=[this.app.configPath,...e],i=this.getAllWatchedFiles();s.push(...i),this.close();let{default:o}=await import("./chokidar-5RWEYTNQ.js");this.watcher=o.watch(s,{ignored:["**/node_modules/**","**/.git/**"],persistent:!0,ignoreInitial:!0}),this.watcher.on("all",this.handleFileEvent),this.addAbortListener(),h(`File watcher started with ${s.length} paths`,this.options.stdout)}updateApp(t){this.app=t,this.extensionPaths=this.app.nonConfigExtensions.map(e=>E(e.directory)).filter(e=>e!==this.app.directory),this.extensionPaths.forEach(e=>{this.ignored[e]??=this.createIgnoreInstance(e)})}addAbortListener(){this.options.signal.removeEventListener("abort",this.close),this.options.signal.addEventListener("abort",this.close)}getAllWatchedFiles(){this.extensionWatchedFiles.clear();let t=this.app.realExtensions.map(s=>({extension:s,watchedFiles:s.watchedFiles()})),e=new Set;for(let{extension:s,watchedFiles:i}of t)for(let o of i){let n=E(o);e.add(n);let a=this.extensionWatchedFiles.get(n)??new Set;a.add(s.handle),this.extensionWatchedFiles.set(n,a)}return Array.from(e)}emitEvents=()=>{let t=this.currentEvents;this.currentEvents=[];let e=`\u{1F509} ${t.length} EVENTS EMITTED in files: ${t.map(s=>s.path).join(`
2
2
  `)}`;h(e,this.options.stdout),this.onChangeCallback?.(t)};pushEvent(t){this.shouldIgnoreEvent(t)||(t.type==="extension_folder_created"&&(this.ignored[t.path]=this.createIgnoreInstance(t.path)),!this.currentEvents.some(e=>e.path===t.path&&e.type===t.type&&e.extensionHandle===t.extensionHandle)&&this.currentEvents.push(t))}shouldIgnoreEvent(t){if(t.type==="extension_folder_deleted"||t.type==="extension_folder_created"||t.extensionHandle&&this.extensionWatchedFiles.get(E(t.path))?.has(t.extensionHandle))return!1;let s=(t.extensionHandle?this.app.realExtensions.find(o=>o.handle===t.extensionHandle):void 0)?.watchedFiles(),i=this.ignored[t.extensionPath];if(s)return!s.some(n=>y(t.path,n));if(i){let o=v(t.extensionPath,t.path);return i.ignores(o)}return!1}handleFileEvent=(t,e)=>{let s=w(),i=E(e),o=e===this.app.configPath,n=e.endsWith(".extension.toml");if(h(`\u{1F300}: ${t} ${e.replace(this.app.directory,"")}
3
3
  `),o)this.handleEventForExtension(t,e,this.app.directory,s,!1);else{let a=this.extensionWatchedFiles.get(i),d=a===void 0||a.size===0;if(d&&t==="add"&&!n){let c=this.discoverFileOwners(i);c.size>0&&(this.extensionWatchedFiles.set(i,c),a=c,d=!1)}if(d&&!n&&!o){h(`\u{1F300}: File ${e} is not watched by any extension`,this.options.stdout);return}for(let c of a??[]){let l=this.app.realExtensions.find(f=>f.handle===c),u=l?E(l.directory):this.app.directory;this.handleEventForExtension(t,e,u,s,!1,c)}d&&this.handleEventForExtension(t,e,this.app.directory,s,!0)}this.debouncedEmit()};discoverFileOwners(t){let e=new Set;for(let s of this.app.realExtensions){let i=E(s.directory);i!==this.app.directory&&t.startsWith(`${i}/`)&&this.pathMatchesWatchPatterns(t,s)&&e.add(s.handle)}return e}pathMatchesWatchPatterns(t,e){let{paths:s,ignore:i}=e.watchPatterns(),o=v(E(e.directory),t);return i.some(n=>y(o,n))?!1:s.some(n=>y(o,n))}handleEventForExtension(t,e,s,i,o,n){let a=e.endsWith(".extension.toml"),d=e===this.app.configPath;switch(t){case"change":if(o)break;a||d?this.pushEvent({type:"extensions_config_updated",path:e,extensionPath:s,extensionHandle:n,startTime:i}):this.pushEvent({type:"file_updated",path:e,extensionPath:s,extensionHandle:n,startTime:i});break;case"add":if(!a){this.pushEvent({type:"file_created",path:e,extensionPath:s,extensionHandle:n,startTime:i});break}let c=0,l=C(e),u=setInterval(()=>{P(x(l,I.lockFile))?(h(`Waiting for extension to complete creation: ${e}
4
4
  `),c+=L):(clearInterval(u),this.extensionPaths.push(l),this.pushEvent({type:"extension_folder_created",path:l,extensionPath:s,startTime:i}),this.debouncedEmit()),c>=K&&(clearInterval(u),this.options.stderr.write(`Error loading new extension at path: ${e}.