@shopify/cli 4.0.0 → 4.2.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 (392) hide show
  1. package/README.md +2 -2
  2. package/dist/analytics-CX22YIUZ.js +1 -0
  3. package/dist/analytics-UBWQIQYF.js +1 -0
  4. package/dist/angular-UTTM4Y4S.js +4 -0
  5. package/dist/bootstrap.js +1 -1
  6. package/dist/{chunk-DU4WR4OP.js → chunk-23AMFHXC.js} +1 -1
  7. package/dist/{chunk-LNHLDRC5.js → chunk-2EJCY4CE.js} +1 -1
  8. package/dist/{chunk-YMWHHINU.js → chunk-2KH2S7PI.js} +1 -1
  9. package/dist/chunk-2N4O33VM.js +6 -0
  10. package/dist/{chunk-WZBSLU4Q.js → chunk-2VLMN5QZ.js} +1 -1
  11. package/dist/chunk-2WNODIWJ.js +1 -0
  12. package/dist/chunk-2YXKZWYW.js +1 -0
  13. package/dist/{chunk-GFJ7UV74.js → chunk-3BRUCKZ2.js} +1 -1
  14. package/dist/{chunk-RM5SJJN6.js → chunk-3V63X7WZ.js} +66 -66
  15. package/dist/chunk-3YWUSKWF.js +159 -0
  16. package/dist/chunk-42RMKTCJ.js +8 -0
  17. package/dist/{chunk-V2CNCPIE.js → chunk-4EXYYBQ6.js} +1 -1
  18. package/dist/chunk-4KRT35A2.js +1 -0
  19. package/dist/chunk-4V4DQ6W7.js +836 -0
  20. package/dist/chunk-4Z2WYNTE.js +1 -0
  21. package/dist/chunk-57N2DFIF.js +1 -0
  22. package/dist/chunk-5TIJLYZU.js +3 -0
  23. package/dist/{chunk-GNPS5SBU.js → chunk-6AJZKIZ3.js} +1 -1
  24. package/dist/{chunk-XNO6DZYP.js → chunk-6HZTMQD6.js} +1 -1
  25. package/dist/chunk-6LK6ZP3Q.js +1 -0
  26. package/dist/chunk-6SXOUZ7V.js +1 -0
  27. package/dist/chunk-6TEXPRI2.js +2 -0
  28. package/dist/{chunk-OUOYKNMY.js → chunk-6TORWTD7.js} +1 -1
  29. package/dist/{chunk-IASVAERO.js → chunk-6YAXFS6V.js} +1 -1
  30. package/dist/chunk-6YHJ554P.js +6 -0
  31. package/dist/chunk-6ZIOYXEF.js +3 -0
  32. package/dist/chunk-7BFDUVOG.js +1 -0
  33. package/dist/chunk-7DVOSOEP.js +11 -0
  34. package/dist/chunk-7JESXDF2.js +14 -0
  35. package/dist/chunk-7KJ5TBWG.js +5 -0
  36. package/dist/{chunk-7MUKLZOL.js → chunk-A3VYI4LO.js} +2 -2
  37. package/dist/{chunk-4HHXSMD7.js → chunk-A5SQCM63.js} +2 -2
  38. package/dist/chunk-A6X2IVGT.js +4 -0
  39. package/dist/{chunk-HUZUORYM.js → chunk-AP3RFOPL.js} +10 -10
  40. package/dist/{chunk-3LVGAQB4.js → chunk-ATPFTRCC.js} +1 -1
  41. package/dist/chunk-AWQ5AR2K.js +5 -0
  42. package/dist/chunk-BECEP46I.js +16 -0
  43. package/dist/{chunk-JPGO36XP.js → chunk-BHWEA4V2.js} +1 -1
  44. package/dist/chunk-BPVZ7E63.js +1 -0
  45. package/dist/chunk-C2FFA4O4.js +1 -0
  46. package/dist/chunk-C3LZPAAH.js +3 -0
  47. package/dist/chunk-C6ABJCRG.js +1 -0
  48. package/dist/chunk-CCEA5CUX.js +1 -0
  49. package/dist/chunk-CE6FKJFS.js +1 -0
  50. package/dist/chunk-CW7WJZKR.js +28 -0
  51. package/dist/chunk-D3DDLLNF.js +2 -0
  52. package/dist/chunk-D656BV5Z.js +25 -0
  53. package/dist/chunk-DCBYHVKW.js +1 -0
  54. package/dist/{chunk-RF2DPBA6.js → chunk-DCK2FX6J.js} +1 -1
  55. package/dist/chunk-DERA4K6A.js +32 -0
  56. package/dist/chunk-DNLOSMHL.js +3 -0
  57. package/dist/chunk-E2YBU6D3.js +294 -0
  58. package/dist/{chunk-INEU4XKS.js → chunk-F47MFBKM.js} +1 -1
  59. package/dist/chunk-F6T3UBBL.js +1 -0
  60. package/dist/{chunk-WXVZJJOR.js → chunk-FBVBO5YQ.js} +1 -1
  61. package/dist/chunk-FD5S2O6M.js +7 -0
  62. package/dist/chunk-FFYYJKF7.js +1 -0
  63. package/dist/{chunk-LX3ZOW52.js → chunk-FGVC22EY.js} +1 -1
  64. package/dist/{chunk-NRAFVIU3.js → chunk-FP2NOZSD.js} +1 -1
  65. package/dist/chunk-FQDRVPCY.js +2 -0
  66. package/dist/{chunk-IOLVEXM6.js → chunk-FSTCEWXX.js} +1 -1
  67. package/dist/chunk-FTN7Y6HD.js +7 -0
  68. package/dist/{chunk-52GC6XUT.js → chunk-GVITHCQJ.js} +1 -1
  69. package/dist/chunk-H4W4DFKK.js +1 -0
  70. package/dist/{chunk-72F3YBNA.js → chunk-HD5TYIDZ.js} +1 -1
  71. package/dist/chunk-HHXHOQQP.js +3 -0
  72. package/dist/chunk-HJSYHK4S.js +8 -0
  73. package/dist/chunk-HLMFVORT.js +1 -0
  74. package/dist/chunk-HSYRYSX4.js +3 -0
  75. package/dist/chunk-I3LX25MB.js +1 -0
  76. package/dist/chunk-INFBVFMU.js +4 -0
  77. package/dist/chunk-IOQQUHST.js +18 -0
  78. package/dist/chunk-IVGWFPMA.js +19 -0
  79. package/dist/chunk-IWCPQD7X.js +1382 -0
  80. package/dist/chunk-IWE4RUI7.js +1 -0
  81. package/dist/chunk-IXUVSFW2.js +1 -0
  82. package/dist/chunk-J6VTZEE2.js +15 -0
  83. package/dist/{chunk-MQNYGGAM.js → chunk-K3PGC6DC.js} +1 -1
  84. package/dist/{chunk-MBAFWQSZ.js → chunk-K77WAKOB.js} +1 -1
  85. package/dist/{chunk-UGDBJTLP.js → chunk-K7K6GNF6.js} +1 -1
  86. package/dist/chunk-KFCGMT67.js +1 -0
  87. package/dist/chunk-KLA7AWG6.js +7 -0
  88. package/dist/{chunk-6B53BWJW.js → chunk-KQU6HOJ3.js} +1 -1
  89. package/dist/{chunk-A74GETYC.js → chunk-KU5OPV7U.js} +1 -1
  90. package/dist/chunk-L2VSSINY.js +1 -0
  91. package/dist/chunk-LCCMXY6N.js +1 -0
  92. package/dist/{chunk-GOJ2QHSR.js → chunk-LITB5QQX.js} +1 -1
  93. package/dist/chunk-LKS47US7.js +8 -0
  94. package/dist/{chunk-DJONKJSZ.js → chunk-LQMSF3F7.js} +1 -1
  95. package/dist/chunk-LTWXTDDR.js +5 -0
  96. package/dist/{chunk-D6JARNEH.js → chunk-M2TJICTB.js} +1 -1
  97. package/dist/chunk-M4LOKANA.js +1 -0
  98. package/dist/chunk-M4V2OQAX.js +1 -0
  99. package/dist/chunk-MA52QGHP.js +1 -0
  100. package/dist/chunk-MFLBTJO7.js +1 -0
  101. package/dist/chunk-MGL4YM3S.js +28 -0
  102. package/dist/{chunk-6TZAAS5H.js → chunk-MIO2CV3Q.js} +1 -1
  103. package/dist/{chunk-2APPXD5Z.js → chunk-MKE434RB.js} +1 -1
  104. package/dist/chunk-MZJRNFAU.js +1 -0
  105. package/dist/{chunk-HSK7YMRE.js → chunk-N3YWHJMB.js} +11 -11
  106. package/dist/{chunk-TQYMC7TH.js → chunk-N5ROZKPZ.js} +1 -1
  107. package/dist/chunk-NBYS6YQ2.js +5 -0
  108. package/dist/chunk-NEZEHBT2.js +1 -0
  109. package/dist/chunk-NO5KVFTV.js +22 -0
  110. package/dist/{chunk-3DQIVE24.js → chunk-NP4UFPAX.js} +1 -1
  111. package/dist/chunk-NPM3MFB3.js +7 -0
  112. package/dist/{chunk-JVIKCGDY.js → chunk-NXL6LDJU.js} +1 -1
  113. package/dist/chunk-OA4P6AKS.js +1 -0
  114. package/dist/chunk-OKNBZSGN.js +2 -0
  115. package/dist/chunk-OKOYLEA7.js +278 -0
  116. package/dist/chunk-OLOBQ42K.js +1 -0
  117. package/dist/chunk-OYP7DKPU.js +1 -0
  118. package/dist/{chunk-7UYZQN4V.js → chunk-PBTXPBI6.js} +2 -2
  119. package/dist/chunk-PLQFX5ZP.js +9 -0
  120. package/dist/{chunk-JLBH7RCF.js → chunk-PS25FEBF.js} +1 -1
  121. package/dist/{chunk-OLZHWPZP.js → chunk-PSQFZAF3.js} +1 -1
  122. package/dist/chunk-PUTZFF2Z.js +613 -0
  123. package/dist/chunk-QLQGHMVU.js +15 -0
  124. package/dist/{chunk-XLELNRFF.js → chunk-QTGMS62F.js} +1 -1
  125. package/dist/chunk-R6JNXEB3.js +1 -0
  126. package/dist/chunk-RAH5NW3R.js +1 -0
  127. package/dist/{chunk-R466TU3N.js → chunk-RGNAWKD7.js} +1 -1
  128. package/dist/chunk-RL5BWZ7D.js +15 -0
  129. package/dist/{chunk-Y5JKV2AI.js → chunk-RVMB5LC2.js} +1 -1
  130. package/dist/chunk-SSM346XI.js +5 -0
  131. package/dist/chunk-T5MK7ZSF.js +1 -0
  132. package/dist/{chunk-22PCRFG4.js → chunk-TGACBJIY.js} +1 -1
  133. package/dist/{chunk-KBQ4LGFB.js → chunk-TLSAQ6FG.js} +1 -1
  134. package/dist/chunk-TNQXTZAX.js +32 -0
  135. package/dist/{chunk-ELVFJ7BR.js → chunk-TQGTEVSR.js} +1 -1
  136. package/dist/chunk-TXUTT6UA.js +17 -0
  137. package/dist/chunk-U3ZG675O.js +5 -0
  138. package/dist/chunk-UARVYVLN.js +3 -0
  139. package/dist/chunk-UBKVCI7A.js +3 -0
  140. package/dist/{chunk-SRCQVUMC.js → chunk-UCLSPAVX.js} +1 -1
  141. package/dist/chunk-ULQG3XQS.js +1 -0
  142. package/dist/chunk-UOQ75BL3.js +1 -0
  143. package/dist/{chunk-OXPWCC7I.js → chunk-UOQQNAHX.js} +2 -2
  144. package/dist/chunk-UURFVUAH.js +11 -0
  145. package/dist/chunk-VA5IUGZV.js +2 -0
  146. package/dist/{chunk-YZDDTYTU.js → chunk-VEDZUOVI.js} +3 -3
  147. package/dist/chunk-VICNWPLQ.js +567 -0
  148. package/dist/chunk-VPL2NDH6.js +370 -0
  149. package/dist/chunk-VT77EFRL.js +10 -0
  150. package/dist/chunk-VYXVYOIJ.js +3 -0
  151. package/dist/chunk-WCWNI3ZV.js +283 -0
  152. package/dist/chunk-WNGV4JQS.js +4 -0
  153. package/dist/chunk-WUK5NQSX.js +6 -0
  154. package/dist/chunk-X2TC7S57.js +103 -0
  155. package/dist/chunk-X4CV6TRE.js +1 -0
  156. package/dist/chunk-XDAOLCPN.js +4 -0
  157. package/dist/chunk-XFKCDWXB.js +5 -0
  158. package/dist/chunk-XP6IRAZN.js +1 -0
  159. package/dist/{chunk-JGXWQULI.js → chunk-XX343DDG.js} +1 -1
  160. package/dist/{chunk-Q7ING5F5.js → chunk-XXE7667M.js} +1 -1
  161. package/dist/chunk-YGMVL6NZ.js +6 -0
  162. package/dist/chunk-YJB7P2HC.js +1 -0
  163. package/dist/{chunk-P6XE4MH5.js → chunk-YS6VOQ7I.js} +1 -1
  164. package/dist/chunk-ZZYFG22L.js +26 -0
  165. package/dist/cli/commands/app/app-logs/sources.js +1 -2
  166. package/dist/cli/commands/app/build.js +1 -1
  167. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  168. package/dist/cli/commands/app/bulk/execute.js +1 -9
  169. package/dist/cli/commands/app/bulk/status.js +1 -5
  170. package/dist/cli/commands/app/config/link.js +1 -4
  171. package/dist/cli/commands/app/config/pull.js +1 -1
  172. package/dist/cli/commands/app/config/use.js +1 -1
  173. package/dist/cli/commands/app/config/validate.js +1 -3
  174. package/dist/cli/commands/app/demo/watcher.js +1 -1
  175. package/dist/cli/commands/app/deploy.js +1 -22
  176. package/dist/cli/commands/app/dev/clean.js +1 -5
  177. package/dist/cli/commands/app/dev.js +1 -320
  178. package/dist/cli/commands/app/env/pull.js +1 -11
  179. package/dist/cli/commands/app/env/show.js +1 -1
  180. package/dist/cli/commands/app/execute.js +1 -1
  181. package/dist/cli/commands/app/function/build.js +1 -1
  182. package/dist/cli/commands/app/function/info.js +1 -16
  183. package/dist/cli/commands/app/function/replay.js +1 -5
  184. package/dist/cli/commands/app/function/run.js +1 -1
  185. package/dist/cli/commands/app/function/schema.js +1 -1
  186. package/dist/cli/commands/app/function/typegen.js +1 -1
  187. package/dist/cli/commands/app/generate/extension.js +1 -5
  188. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -4
  189. package/dist/cli/commands/app/import-extensions.js +1 -1
  190. package/dist/cli/commands/app/info.js +1 -11
  191. package/dist/cli/commands/app/init.js +1 -10
  192. package/dist/cli/commands/app/logs.js +1 -2
  193. package/dist/cli/commands/app/release.js +1 -4
  194. package/dist/cli/commands/app/versions/list.js +1 -1
  195. package/dist/cli/commands/app/webhook/trigger.js +1 -25
  196. package/dist/cli/commands/auth/login.js +1 -1
  197. package/dist/cli/commands/auth/logout.js +1 -1
  198. package/dist/cli/commands/cache/clear.js +1 -1
  199. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  200. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  201. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  202. package/dist/cli/commands/debug/command-flags.js +1 -1
  203. package/dist/cli/commands/docs/generate.d.ts +0 -8
  204. package/dist/cli/commands/docs/generate.js +1 -1
  205. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  206. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  207. package/dist/cli/commands/help.js +1 -1
  208. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  209. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  210. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  211. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  212. package/dist/cli/commands/notifications/generate.js +1 -1
  213. package/dist/cli/commands/notifications/list.js +1 -1
  214. package/dist/cli/commands/organization/list.js +1 -1
  215. package/dist/cli/commands/search.js +1 -1
  216. package/dist/cli/commands/theme/check.js +1 -1
  217. package/dist/cli/commands/theme/console.js +1 -15
  218. package/dist/cli/commands/theme/delete.js +1 -7
  219. package/dist/cli/commands/theme/dev.js +1 -26
  220. package/dist/cli/commands/theme/duplicate.js +1 -32
  221. package/dist/cli/commands/theme/info.js +1 -1
  222. package/dist/cli/commands/theme/init.js +1 -8
  223. package/dist/cli/commands/theme/language-server.js +1 -1
  224. package/dist/cli/commands/theme/list.js +1 -1
  225. package/dist/cli/commands/theme/metafields/pull.js +1 -3
  226. package/dist/cli/commands/theme/open.js +1 -8
  227. package/dist/cli/commands/theme/package.js +1 -7
  228. package/dist/cli/commands/theme/preview.js +1 -1
  229. package/dist/cli/commands/theme/profile.js +1 -3
  230. package/dist/cli/commands/theme/publish.js +1 -7
  231. package/dist/cli/commands/theme/pull.js +1 -3
  232. package/dist/cli/commands/theme/push.js +1 -28
  233. package/dist/cli/commands/theme/rename.js +1 -6
  234. package/dist/cli/commands/theme/share.js +1 -3
  235. package/dist/cli/commands/upgrade.js +1 -1
  236. package/dist/cli/commands/version.js +1 -1
  237. package/dist/command-registry.js +1 -1
  238. package/dist/conf-store-6QNH5BID.js +1 -0
  239. package/dist/configs/all.yml +3 -0
  240. package/dist/configs/recommended.yml +3 -0
  241. package/dist/{custom-oclif-loader-DVFFWCBV.js → custom-oclif-loader-TSPWW5YF.js} +1 -1
  242. package/dist/data/filters.json +60 -0
  243. package/dist/data/latest.json +1 -1
  244. package/dist/data/setting.json +29 -9
  245. package/dist/data/shopify_system_translations.json +71 -19
  246. package/dist/data/tags.json +3 -3
  247. package/dist/deprecations-F6JWVV2W.js +1 -0
  248. package/dist/{devtools-OLOT2NY4.js → devtools-HCKYP7DQ.js} +1 -1
  249. package/dist/{devtools-UFRKBFGI.js → devtools-VEZNCV6W.js} +1 -1
  250. package/dist/dist-4BD6KOLR.js +1 -0
  251. package/dist/dist-AUABCVPI.js +1 -0
  252. package/dist/environments-RGLI75HN.js +1 -0
  253. package/dist/error-OZALZZ3U.js +1 -0
  254. package/dist/error-handler-V7LSEXHM.js +1 -0
  255. package/dist/{estree-KI7NUW53.js → estree-BYYJYS3A.js} +1 -1
  256. package/dist/fs-YMUQ6JLE.js +1 -0
  257. package/dist/hooks/app-init.js +1 -1
  258. package/dist/hooks/did-you-mean.js +1 -1
  259. package/dist/hooks/hydrogen-init.js +1 -1
  260. package/dist/hooks/plugin-plugins.js +1 -1
  261. package/dist/hooks/postrun.js +1 -1
  262. package/dist/hooks/prerun.js +1 -1
  263. package/dist/hooks/public-metadata.js +1 -1
  264. package/dist/hooks/sensitive-metadata.js +1 -1
  265. package/dist/hooks/tunnel-provider.js +1 -1
  266. package/dist/hooks/tunnel-start.js +1 -1
  267. package/dist/html-HETICZ2F.js +25 -0
  268. package/dist/index.js +9 -1182
  269. package/dist/is-global-BLIZ57HQ.js +1 -0
  270. package/dist/is-wsl-TN2CXYI7.js +1 -0
  271. package/dist/{latest-version-EFWBOTWM.js → latest-version-6OAYLOBL.js} +1 -1
  272. package/dist/{lib-QB6I6CTC.js → lib-AK5EOIKR.js} +1 -1
  273. package/dist/{lib-C3VO2BQW.js → lib-LVUMLZ4H.js} +1 -1
  274. package/dist/lib-ME6554NA.js +1 -0
  275. package/dist/local-GPDAXHE6.js +1 -0
  276. package/dist/local-storage-P66KJG6I.js +1 -0
  277. package/dist/{markdown-PLKL4IZK.js → markdown-5TVCXM53.js} +1 -1
  278. package/dist/{metadata-UDMOTRS7.js → metadata-TRH25EHU.js} +1 -1
  279. package/dist/{morph-EMYAITFM.js → morph-I35VYPBH.js} +4 -4
  280. package/dist/node-package-manager-GO4ZRTKQ.js +1 -0
  281. package/dist/notifications-system-HM6JZ6WJ.js +1 -0
  282. package/dist/{npa-ICFSA3NL.js → npa-VNALV7XY.js} +1 -1
  283. package/dist/output-7IYOMPSA.js +1 -0
  284. package/dist/{postcss-3FJQPJI2.js → postcss-IIK6CGAW.js} +1 -1
  285. package/dist/{prettier-NVRHEAFO.js → prettier-ZSBNNQTK.js} +1 -1
  286. package/dist/system-X5C4EQQH.js +1 -0
  287. package/dist/tsconfig.tsbuildinfo +1 -1
  288. package/dist/ui-H62CMRLG.js +1 -0
  289. package/dist/upgrade-EEOPH464.js +1 -0
  290. package/dist/version-76NBQR4K.js +1 -0
  291. package/dist/version-IGSEISUA.js +1 -0
  292. package/dist/{workerd-L2EJKIAQ.js → workerd-ST6XJKUN.js} +1 -1
  293. package/oclif.manifest.json +142 -7
  294. package/package.json +14 -11
  295. package/dist/analytics-6IHHYAV6.js +0 -1
  296. package/dist/analytics-KKVP5DT3.js +0 -1
  297. package/dist/angular-VRDO2DBE.js +0 -4
  298. package/dist/chunk-26D72ZNV.js +0 -1
  299. package/dist/chunk-2I4PRX2I.js +0 -1
  300. package/dist/chunk-2VQJQ36C.js +0 -103
  301. package/dist/chunk-323UTVMM.js +0 -1
  302. package/dist/chunk-3F6NZK7S.js +0 -2
  303. package/dist/chunk-4G7J6HIV.js +0 -1
  304. package/dist/chunk-66RJ5T7A.js +0 -102
  305. package/dist/chunk-6BMMB2UO.js +0 -1
  306. package/dist/chunk-6HBRBQAN.js +0 -6
  307. package/dist/chunk-74HYYXXE.js +0 -17
  308. package/dist/chunk-7BGM2GAH.js +0 -1
  309. package/dist/chunk-AIV5RI3X.js +0 -1
  310. package/dist/chunk-AKML26N3.js +0 -7
  311. package/dist/chunk-ALKTLKQ6.js +0 -5
  312. package/dist/chunk-B2EHO7ZC.js +0 -847
  313. package/dist/chunk-B2IVY4V5.js +0 -1
  314. package/dist/chunk-BDVAE5MS.js +0 -28
  315. package/dist/chunk-CERXUPGC.js +0 -14
  316. package/dist/chunk-D3TSJA5S.js +0 -1
  317. package/dist/chunk-DFMQWJQ3.js +0 -3
  318. package/dist/chunk-DJQVNH7P.js +0 -567
  319. package/dist/chunk-ELYP4KFP.js +0 -8
  320. package/dist/chunk-FFQ5EWII.js +0 -294
  321. package/dist/chunk-FUOIGXI4.js +0 -1
  322. package/dist/chunk-GD7FWXJ5.js +0 -2
  323. package/dist/chunk-GFEAKSGV.js +0 -374
  324. package/dist/chunk-IIIVWD4R.js +0 -1
  325. package/dist/chunk-IX5ICOBV.js +0 -7
  326. package/dist/chunk-J3KVONB3.js +0 -6
  327. package/dist/chunk-JHPRFW5B.js +0 -19
  328. package/dist/chunk-K2WUCOQJ.js +0 -32
  329. package/dist/chunk-K5YV6UVF.js +0 -4
  330. package/dist/chunk-KGXQS7LS.js +0 -1
  331. package/dist/chunk-KL5Z3T6L.js +0 -1
  332. package/dist/chunk-KNVM7N3U.js +0 -1
  333. package/dist/chunk-KWJ562F2.js +0 -12
  334. package/dist/chunk-LALIKZPS.js +0 -5
  335. package/dist/chunk-LAZJ47DZ.js +0 -6
  336. package/dist/chunk-LDGAHMS7.js +0 -159
  337. package/dist/chunk-LW7U753G.js +0 -1
  338. package/dist/chunk-LXFJDCNG.js +0 -1
  339. package/dist/chunk-N5YIPQ6J.js +0 -1
  340. package/dist/chunk-N7RBSKYT.js +0 -1
  341. package/dist/chunk-NF2ABOOU.js +0 -1
  342. package/dist/chunk-ODNGDO4H.js +0 -50
  343. package/dist/chunk-OHY4ZL3U.js +0 -2
  344. package/dist/chunk-P5VVOLGV.js +0 -1
  345. package/dist/chunk-P7R7FBY2.js +0 -3
  346. package/dist/chunk-QRRNOVJ3.js +0 -1
  347. package/dist/chunk-RFG5RMPL.js +0 -1
  348. package/dist/chunk-RVNMVBPM.js +0 -1
  349. package/dist/chunk-SBEZBZM7.js +0 -144
  350. package/dist/chunk-SGQ6D3LU.js +0 -15
  351. package/dist/chunk-TFSBQ4RY.js +0 -5
  352. package/dist/chunk-UGXYQ23Y.js +0 -1411
  353. package/dist/chunk-VS3T5YOG.js +0 -264
  354. package/dist/chunk-VWYM4OWK.js +0 -1
  355. package/dist/chunk-VY6SNDKW.js +0 -3
  356. package/dist/chunk-WFXRSKRK.js +0 -1
  357. package/dist/chunk-XBXMPFXM.js +0 -1
  358. package/dist/chunk-YC6G4MHD.js +0 -3
  359. package/dist/chunk-YI232QLS.js +0 -1
  360. package/dist/chunk-ZTMSBSYD.js +0 -1
  361. package/dist/chunk-ZV6NCNI4.js +0 -586
  362. package/dist/chunk-ZVJVDCIM.js +0 -1
  363. package/dist/conf-store-U5ZITKJN.js +0 -1
  364. package/dist/deprecations-TU5UQJVV.js +0 -1
  365. package/dist/dist-2Z5TND4U.js +0 -1
  366. package/dist/dist-GYHFDHKP.js +0 -1
  367. package/dist/environments-Z5PR7DSI.js +0 -1
  368. package/dist/error-IJGNYKZ3.js +0 -1
  369. package/dist/error-handler-WSCGNS2P.js +0 -1
  370. package/dist/fs-5BDEA2KD.js +0 -1
  371. package/dist/html-VSSXOZOQ.js +0 -25
  372. package/dist/is-global-V4ZRHQG2.js +0 -1
  373. package/dist/is-wsl-FVUIXDOK.js +0 -1
  374. package/dist/lib-5L7UKDEK.js +0 -1
  375. package/dist/local-6QPX4GCJ.js +0 -1
  376. package/dist/local-storage-JLXBZVWO.js +0 -1
  377. package/dist/node-package-manager-HAFRYGUM.js +0 -1
  378. package/dist/notifications-system-MP7WDOCS.js +0 -1
  379. package/dist/output-YGMHXEIS.js +0 -1
  380. package/dist/system-KLXD4FXF.js +0 -1
  381. package/dist/ui-GHG3UGB3.js +0 -1
  382. package/dist/upgrade-OPZGPM5J.js +0 -1
  383. package/dist/version-D5PJZIRW.js +0 -1
  384. package/dist/version-KRQBMYCH.js +0 -1
  385. /package/dist/{acorn-LOOAJL3S.js → acorn-QBS5IYTX.js} +0 -0
  386. /package/dist/{babel-URCL33XX.js → babel-JS32NLHY.js} +0 -0
  387. /package/dist/{flow-MLHT7MTJ.js → flow-M3Q2HPQT.js} +0 -0
  388. /package/dist/{glimmer-HAJ4HQCW.js → glimmer-3DEJJGOJ.js} +0 -0
  389. /package/dist/{graphql-F7IHGXDT.js → graphql-A4HHE3MB.js} +0 -0
  390. /package/dist/{meriyah-AYZQ3BGY.js → meriyah-23OZNYWC.js} +0 -0
  391. /package/dist/{typescript-ODJ335NU.js → typescript-YKZ232QT.js} +0 -0
  392. /package/dist/{yaml-BIHS2GQW.js → yaml-SJKIH3VD.js} +0 -0
@@ -0,0 +1 @@
1
+ import{a as E}from"./chunk-LCCMXY6N.js";import{Fa as w}from"./chunk-WCWNI3ZV.js";import{d as v}from"./chunk-N5ROZKPZ.js";import{R as y,g as O}from"./chunk-4V4DQ6W7.js";import{d as r,g as c}from"./chunk-BHWEA4V2.js";import{Fb as d,Hb as a,Ta as h,ma as m}from"./chunk-VPL2NDH6.js";import{e as q,g as u}from"./chunk-VPRTJUIN.js";u();u();var l=q(O(),1);async function $(e,t){let o=e.apiSecretKeys[0]?.secret;if(!o)throw new c("No API secret keys found for app");return y(t,e.apiKey,o)}function x(e){let t;try{t=(0,l.parse)(e)}catch(i){throw i instanceof Error?new r(`Invalid GraphQL syntax: ${i.message}`):i}if(t.definitions.filter(i=>i.kind==="OperationDefinition").length!==1)throw new r("GraphQL document must contain exactly one operation definition. Multiple operations are not supported.")}async function I(e){let{adminSession:t,userSpecifiedVersion:o,minimumDefaultVersion:i}=e;if(o==="unstable")return o;let n=await v(t);if(!o){let p=n.filter(f=>f.supported).map(f=>f.handle);return i&&p.push(i),p.sort().reverse()[0]}let s=n.map(p=>p.handle);if(s.includes(o))return o;let A=a`Invalid API version: ${o}`.value,P=a`Allowed versions: ${s.join(", ")}`.value;throw new r(A,P)}function M(e){let{organization:t,remoteApp:o,storeFqdn:i,version:n}=e,s=[`Organization: ${t.businessName}`,`App: ${o.title}`,`Store: ${i}`];return n&&s.push(`API version: ${n}`),s}function S(e){return(0,l.parse)(e).definitions.find(i=>i.kind==="OperationDefinition")?.operation==="mutation"}function N(e,t){if(S(e)&&t.storeType!=="APP_DEVELOPMENT")throw new r("Mutations can only be executed on dev stores.")}async function D(e){let t=await w({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config}),o=await E({appContextResult:t,storeFqdn:e.store,forceReselectStore:e.reset,storeTypes:["APP_DEVELOPMENT","DEVELOPMENT","DEVELOPMENT_SUPERSET","PRODUCTION"]});return{appContextResult:t,store:o}}async function z(e){let t;if(e.query!==void 0){if(!e.query.trim())throw new r("The --query flag value is empty. Please provide a valid GraphQL query or mutation.");t=e.query}else if(e["query-file"]){let n=e["query-file"];if(!await h(n))throw new r(a`Query file not found at ${d.path(n)}. Please check the path and try again.`);if(t=await m(n,{encoding:"utf8"}),!t.trim())throw new r(a`Query file at ${d.path(n)} is empty. Please provide a valid GraphQL query or mutation.`)}if(!t)throw new c("Query should have been provided via --query or --query-file flags due to exactlyOne constraint. This indicates the oclif flag validation failed.");x(t);let{appContextResult:o,store:i}=await D(e);return{query:t,appContextResult:o,store:i}}export{$ as a,x as b,I as c,M as d,S as e,N as f,D as g,z as h};
@@ -0,0 +1 @@
1
+ import{a as d}from"./chunk-U3ZG675O.js";import{a as m}from"./chunk-T5MK7ZSF.js";import{a as p}from"./chunk-DCK2FX6J.js";import{Fa as s}from"./chunk-WCWNI3ZV.js";import{b as n}from"./chunk-4KRT35A2.js";import{Lb as r}from"./chunk-VPL2NDH6.js";import{g as i}from"./chunk-VPRTJUIN.js";i();var o,t=class extends m{async run(){let{flags:a}=await this.parse(o),{app:e,remoteApp:l,organization:c}=await s({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config});return r(await d(e,l,c)),{app:e}}};o=t;t.summary="Display app and extensions environment variables.";t.descriptionWithMarkdown="Displays environment variables that can be used to deploy apps and app extensions.";t.description=o.descriptionWithoutMarkdown();t.flags={...n,...p};var w=t;export{w as a};
@@ -0,0 +1,15 @@
1
+ import{b as h}from"./chunk-VEDZUOVI.js";import{Ca as g,ua as u,wa as c}from"./chunk-VPL2NDH6.js";import{d as f,q as p}from"./chunk-IU2ZQ6TE.js";import{g as l}from"./chunk-VPRTJUIN.js";l();var d=f(p(),"/docs-shopify.dev/commands"),m=class extends h{static{this.description="Generate CLI commands documentation"}static{this.hidden=!0}async run(){let a=this.config.commands;await g(d),await c(d);let o=a.sort((e,i)=>e.id.length-i.id.length).filter(e=>!b(e)).map(e=>{let i=k(e);return N(e,i)});await Promise.all(o)}},C=["commands","help","plugins"];function b(t){return t.hidden?(C.push(t.id),!0):t.pluginType==="user"?!0:C.some(a=>t.id.startsWith(`${a}:`))}function k(t){let a=t.id.replace(/[:]/g," "),s=t.id.replace(/[:]/g,"-"),o=t.id.replace(/[:-]/g,"");return{commandName:a,fileName:s,interfaceName:o}}async function N(t,{commandName:a,fileName:s,interfaceName:o}){let e=Object.keys(t.flags).map(r=>{let n=t.flags[r];if(!n||n.hidden)return;let $=n.description??"",w=n.char?`-${n.char}, `:"",y=n.type==="option"?"string":"''",v=n.type==="option"?" <value>":"",x=n.required?"":"?",D=n.env!==void 0?` @environment ${n.env}`:"";return` /**
2
+ * ${$}
3
+ *${D}
4
+ */
5
+ '${w}--${r}${v}'${x}: ${y}`}).filter(r=>r&&r?.length>0).join(`
6
+
7
+ `),i=`// This is an autogenerated file. Don't edit this file manually.
8
+ /**
9
+ * The following flags are available for the \`${a}\` command:
10
+ * @publicDocs
11
+ */
12
+ export interface ${o} {
13
+ ${e}
14
+ }
15
+ `;await c(`${d}/interfaces`),await u(`${d}/interfaces/${s}.interface.ts`,i)}export{m as a,k as b,N as c};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-A74GETYC.js";import{a as o}from"./chunk-MBAFWQSZ.js";import{a as s}from"./chunk-JVIKCGDY.js";import{b as i}from"./chunk-YZDDTYTU.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var t=class extends i{static{this.description="View all the available UI kit components"}static{this.hiddenAliases=["kitchen-sink all"]}static{this.hidden=!0}async run(){await o(),await e(),await s()}};export{t as a};
1
+ import{a as e}from"./chunk-KU5OPV7U.js";import{a as o}from"./chunk-K77WAKOB.js";import{a as s}from"./chunk-NXL6LDJU.js";import{b as i}from"./chunk-VEDZUOVI.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var t=class extends i{static{this.description="View all the available UI kit components"}static{this.hiddenAliases=["kitchen-sink all"]}static{this.hidden=!0}async run(){await o(),await e(),await s()}};export{t as a};
@@ -1,4 +1,4 @@
1
- import{C as s,u as e,v as o,w as n,x as i,y as t}from"./chunk-BDVAE5MS.js";import{d,g as l}from"./chunk-JPGO36XP.js";import{g as r}from"./chunk-VPRTJUIN.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
1
+ import{C as s,u as e,v as o,w as n,x as i,y as t}from"./chunk-MGL4YM3S.js";import{d,g as l}from"./chunk-BHWEA4V2.js";import{g as r}from"./chunk-VPRTJUIN.js";r();async function u(){e({headline:"CLI update available.",body:["Run",{command:"npm run shopify upgrade"},{char:"."}]}),e({headline:["To connect this project to your shopify store cd into:",{filePath:"/my-store/hydrogen.config.js"},{char:"."}],body:["You can also try the following steps:",{list:{items:[["Run",{command:"shopify project connect"}],["Run",{command:"hydrogen start"}]]}}]}),e({headline:"About your app.",customSections:[{body:{tabularData:[["Configuration file",{filePath:"shopify.app.scalable-transaction-app.toml"}],["App name",{userInput:"scalable-transaction-app"}],["Access scopes","read_products,write_products"]],firstColumnSubdued:!0}}]}),e({headline:[{userInput:"my-app"},"initialized and ready to build."],nextSteps:[["Run",{command:"cd verification-app"}],["To preview your project, run",{command:"npm app dev"}],["To add extensions, run",{command:"npm generate extension"}]],reference:[["Run",{command:"npm shopify help"}],{link:{label:"Dev docs",url:"https://shopify.dev"}}],customSections:[{title:"Custom section",body:{list:{items:[{link:{label:"Item 1",url:"https://shopify.com"}},"Item 2",{link:{url:"https://community.shopify.com/"}}]}}},{title:"Custom section 2",body:{list:{items:["Item 1","Item 2","Item 3"]}}}]}),o({headline:"CLI updated.",body:"You are now running version 3.47."}),o({headline:"Deployment successful.",body:"Your extensions have been uploaded to your Shopify Partners Dashboard.",nextSteps:[{link:{label:"See your deployment and set it live",url:"https://partners.shopify.com/1797046/apps/4523695/deployments"}}]}),n({headline:"You have reached your limit of checkout extensions for this app.",body:"You can free up space for a new one by deleting an existing one."}),n({headline:"Required access scope update.",body:"The deadline for re-selecting your app scopes is May 1, 2022.",reference:[{link:{label:"Dev docs",url:"https://shopify.dev/app/scopes"}}]});let a=new l("Something went wrong.");a.stack=`
2
2
  Error: Unexpected error
3
3
  at Module._compile (internal/modules/cjs/loader.js:1137:30)
4
4
  at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
@@ -1,4 +1,4 @@
1
- import{a as o}from"./chunk-OCOY5MV2.js";import{q as i}from"./chunk-GOJ2QHSR.js";import{b as r}from"./chunk-YZDDTYTU.js";import{u as e}from"./chunk-BDVAE5MS.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var t=class extends r{static{this.summary="Check whether auto-upgrade is enabled, disabled, or not yet configured."}static{this.descriptionWithMarkdown=`Check whether auto-upgrade is enabled, disabled, or not yet configured.
1
+ import{a as o}from"./chunk-OCOY5MV2.js";import{q as i}from"./chunk-LITB5QQX.js";import{b as r}from"./chunk-VEDZUOVI.js";import{u as e}from"./chunk-MGL4YM3S.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var t=class extends r{static{this.summary="Check whether auto-upgrade is enabled, disabled, or not yet configured."}static{this.descriptionWithMarkdown=`Check whether auto-upgrade is enabled, disabled, or not yet configured.
2
2
 
3
3
  When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version after each command.
4
4
 
@@ -0,0 +1 @@
1
+ import{b as n}from"./chunk-4KRT35A2.js";import{u as r}from"./chunk-7JESXDF2.js";import{g as e}from"./chunk-VPRTJUIN.js";e();function v(o){o.verbose&&(process.env[n.verbose.env]="true"),o.noColor&&(r.level=0,process.env.FORCE_COLOR="0")}export{v as a};
@@ -0,0 +1,7 @@
1
+ import{k as p,q as d}from"./chunk-HHXHOQQP.js";import{a as u}from"./chunk-UOQQNAHX.js";import{aa as P}from"./chunk-IWCPQD7X.js";import{b as l}from"./chunk-4KRT35A2.js";import{v as f}from"./chunk-MGL4YM3S.js";import{d as i}from"./chunk-BHWEA4V2.js";import{Ta as c,ma as h}from"./chunk-VPL2NDH6.js";import{f as r,n as m}from"./chunk-IU2ZQ6TE.js";import{e as w,g as n}from"./chunk-VPRTJUIN.js";n();n();var g=w(P(),1),k=["assets/**","blocks/**","config/**","layout/**","listings/**/*","locales/**","sections/**","snippets/**","templates/**","templates/customers/**","release-notes.md","update_extension.json"].join("|");async function y(e){let t=await v(e),o=`${e}/${t}`,a=`${e}/(${k})`;await u({inputDirectory:e,outputZipPath:o,matchFilePattern:a}),f({body:["Your local theme was packaged in",{filePath:m(o)}]})}async function v(e){let t=r(e,"config/settings_schema.json");if(!await c(t))throw new i("Provide a config/settings_schema.json to package your theme.");let o=await j(t);if(o===void 0||o.theme_name===void 0)throw new i("Provide a theme_info.theme_name configuration in config/settings_schema.json.");return`${[o.theme_name,o.theme_version].filter(Boolean).join("-")}.zip`}async function j(e){let t=(0,g.parseJSON)(await h(e),null,!0);if(!t)throw new i("The file config/settings_schema.json contains an error. Please check if the file is valid JSON and includes the theme_info.theme_name configuration.");return t.find(o=>o.name==="theme_info")}var _,s=class extends d{async command(t){await y(t.path)}};_=s;s.summary="Package your theme into a .zip file, ready to upload to the Online Store.";s.descriptionWithMarkdown=`Packages your local theme files into a ZIP file that can be uploaded to Shopify.
2
+
3
+ Only folders that match the [default Shopify theme folder structure](https://shopify.dev/docs/storefronts/themes/tools/cli#directory-structure) are included in the package.
4
+
5
+ The package includes the \`listings\` directory if present (required for multi-preset themes per [Theme Store requirements](https://shopify.dev/docs/storefronts/themes/store/requirements#adding-presets-to-your-theme-zip-submission)).
6
+
7
+ The ZIP file uses the name \`theme_name-theme_version.zip\`, based on parameters in your [settings_schema.json](https://shopify.dev/docs/storefronts/themes/architecture/config/settings-schema-json) file.`;s.description=_.descriptionWithoutMarkdown();s.flags={...l,path:p.path};s.multiEnvironmentsFlags=null;var E=s;export{E as a};
@@ -1 +1 @@
1
- import{Q as r}from"./chunk-B2EHO7ZC.js";import{b as c}from"./chunk-YZDDTYTU.js";import{Ob as a}from"./chunk-GFEAKSGV.js";import{g as t}from"./chunk-VPRTJUIN.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
1
+ import{Q as r}from"./chunk-4V4DQ6W7.js";import{b as c}from"./chunk-VEDZUOVI.js";import{Nb as a}from"./chunk-VPL2NDH6.js";import{g as t}from"./chunk-VPRTJUIN.js";t();var o=class extends c{static{this.description="Logs you out of the Shopify account or Partner account and store."}async run(){await r(),a("Logged out from all the accounts")}};export{o as a};
@@ -1 +1 @@
1
- import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-BDVAE5MS.js";import{g as i}from"./chunk-VPRTJUIN.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
1
+ import{A as e,B as r,F as o,G as s,k as n,z as h}from"./chunk-MGL4YM3S.js";import{g as i}from"./chunk-VPRTJUIN.js";i();async function y(){await h({message:"Associate your project with the org Castile Ventures?",choices:[{label:"first",value:"first",disabled:!0},{label:"second",value:"second"},{label:"third (limit reached)",value:"third",disabled:!0},{label:"fourth (limit reached)",value:"fourth",disabled:!0},{label:"fifth",value:"fifth",group:"Automations",disabled:!0},{label:"sixth",value:"sixth",group:"Automations"},{label:"seventh",value:"seventh"},{label:"eighth (limit reached)",value:"eighth",group:"Merchant Admin",disabled:!0},{label:"ninth",value:"ninth",group:"Merchant Admin"},{label:"tenth",value:"tenth"}],infoTable:[{header:"add",items:["new-ext"],bullet:"+"},{header:"remove",items:["integrated-demand-ext","order-discount"],bullet:"-"}]}),await o({message:"App project name (can be changed later)",defaultValue:"expansive commerce app",validate:t=>{if(t.includes("shopify"))return`Can't include "shopify" in the name`}});let l=[{label:"first",value:"first"},{label:"second",value:"second"},{label:"third",value:"third"},{label:"fourth",value:"fourth"},{label:"fifth",value:"fifth"},{label:"sixth",value:"sixth"},{label:"seventh",value:"seventh"},{label:"eighth",value:"eighth"},{label:"ninth",value:"ninth"},{label:"tenth",value:"tenth"},{label:"eleventh",value:"eleventh"},{label:"twelfth",value:"twelfth"},{label:"thirteenth",value:"thirteenth"},{label:"fourteenth",value:"fourteenth"},{label:"fifteenth",value:"fifteenth"},{label:"sixteenth",value:"sixteenth"},{label:"seventeenth",value:"seventeenth"},{label:"eighteenth",value:"eighteenth"},{label:"nineteenth",value:"nineteenth"},{label:"twentieth",value:"twentieth"},{label:"twenty-first",value:"twenty-first"},{label:"twenty-second",value:"twenty-second"},{label:"twenty-third",value:"twenty-third"},{label:"twenty-fourth",value:"twenty-fourth"},{label:"twenty-fifth",value:"twenty-fifth"},{label:"twenty-sixth",value:"twenty-sixth"},{label:"twenty-seventh",value:"twenty-seventh"},{label:"twenty-eighth",value:"twenty-eighth"},{label:"twenty-ninth",value:"twenty-ninth"},{label:"thirtieth",value:"thirtieth"},{label:"thirty-first",value:"thirty-first"},{label:"thirty-second",value:"thirty-second"},{label:"thirty-third",value:"thirty-third"},{label:"thirty-fourth",value:"thirty-fourth"},{label:"thirty-fifth",value:"thirty-fifth"},{label:"thirty-sixth",value:"thirty-sixth"},{label:"thirty-seventh",value:"thirty-seventh"},{label:"thirty-eighth",value:"thirty-eighth"},{label:"thirty-ninth",value:"thirty-ninth"},{label:"fortieth",value:"fortieth"},{label:"forty-first",value:"forty-first"},{label:"forty-second",value:"forty-second"},{label:"forty-third",value:"forty-third"},{label:"forty-fourth",value:"forty-fourth"},{label:"forty-fifth",value:"forty-fifth"},{label:"forty-sixth",value:"forty-sixth"},{label:"forty-seventh",value:"forty-seventh"},{label:"forty-eighth",value:"forty-eighth"},{label:"forty-ninth",value:"forty-ninth"},{label:"fiftieth",value:"fiftieth"}];await r({message:"Template",choices:l,search(t){return Promise.resolve({data:l.filter(f=>f.label.includes(t))})}});let a=[["first theme",{subdued:"(#1)"}],["second theme",{subdued:"(#2)"}]];await e({message:"Add the following themes to the store?",infoTable:{"":a},confirmationMessage:"Yes, add them",cancellationMessage:"Cancel"});let u={title:{color:"red",text:`${n.warning} This can't be undone.`},body:"The action you are executing should be confirmed to proceed."};await e({message:"Delete the following themes from the store?",infoTable:{"":a},infoMessage:u,confirmationMessage:"Yes, delete them",cancellationMessage:"Cancel",defaultValue:!1}),await e({message:["Make the following changes to your",{filePath:".env"},"file?"],defaultValue:!0,confirmationMessage:"Yes, confirm changes",cancellationMessage:"No, make changes later"}),await s({message:"Release this version of Mega App?",infoTable:[{header:"Includes",items:["My subscription extension","Order discount function","Subscription cancelled trigger","Add subscription action"],bullet:"+"},{header:"Removes",items:["product-discount-function","product-subscription-extension"],bullet:"-"}],confirmation:"Mega App"})}export{y as a};
@@ -0,0 +1 @@
1
+ import{h as l}from"./chunk-MZJRNFAU.js";import{O as c}from"./chunk-4V4DQ6W7.js";import{d as u}from"./chunk-BHWEA4V2.js";import{g as i}from"./chunk-VPRTJUIN.js";i();var s=["live","unpublished","development"];async function A(e,r){let t=await c(e,r);return p(t)}async function p(e){let r=e.storeFqdn,t=(await l(e)).filter(d);if(t.length===0)throw new u(`There are no themes in the ${r} store`);return t.sort(w)}function d(e){return s.includes(e.role)}function w(e,r){return s.indexOf(e.role)-s.indexOf(r.role)}i();function E(e,r,t){return y(e,r,t)??T(e,r,t)}function y(e,r,t){let o=t.role;if(!o)return;let n=`No themes on the store ${e} match the role "${o}"`;return m(r,h=>h.role===o).orThrow(n)}function T(e,r,t){return t.themeIdentifiers.flatMap(n=>{let h=`No themes on the store ${e} match the ID or name "${n}"`;return m(r,f=>`${f.id}`===n||f.name.toLowerCase()===n.toLowerCase()?!0:L(f.name.toLowerCase(),n.toLowerCase())).orThrow(h)})}function m(e,r){let t=e.filter(r);return t.length>0?{orThrow:o=>t}:{orThrow:o=>{throw new u(o)}}}var a=class{constructor(r){this.queryProps=r}get role(){for(let r of s)if(this.queryProps[r])return r}get themeIdentifiers(){return[this.queryProps.theme,this.queryProps.themes].flat().filter(t=>!!t)}any(){return Object.values(this.queryProps).some(r=>r?.length!==void 0?r.length>0:!!r)}};function L(e,r){let t=r.replace(/(^\*)|(\*$)/g,"");return r.startsWith("*")&&r.endsWith("*")?e.includes(t):r.startsWith("*")?e.endsWith(t):r.endsWith("*")?e.startsWith(t):!1}export{s as a,A as b,p as c,E as d,a as e};
@@ -0,0 +1 @@
1
+ import{M as l,N as I,P}from"./chunk-WCWNI3ZV.js";import{Y as M,da as N}from"./chunk-VICNWPLQ.js";import{a as w}from"./chunk-FP2NOZSD.js";import{z as g}from"./chunk-4V4DQ6W7.js";import{a as D}from"./chunk-JUVAGMIH.js";import{D as _,P as h,u as b}from"./chunk-MGL4YM3S.js";import{b as m,d as p,g as y}from"./chunk-BHWEA4V2.js";import{Nb as F}from"./chunk-VPL2NDH6.js";import{j as E}from"./chunk-UARVYVLN.js";import{g as d}from"./chunk-VPRTJUIN.js";d();d();async function u(t,e,r){let i=r.clientName===M.AppManagement,s;r.supportsStoreSearch&&(s=async a=>r.devStoresForOrg(e.id,a));let o=await l({onSearchForStoresByName:s,...t,showDomainOnPrompt:i});if(!o){if(b({body:await r.getCreateDevStoreLink(e)}),await h(5),!await P(e))throw new m;let f=await k(e.id,r);o=await u({stores:f,hasMorePages:!1},e,r)}let n=await c(o,e.id,r,"prompt-first");for(;!n;){if(o=await l({stores:[o],hasMorePages:!1,showDomainOnPrompt:i}),!o)throw new m;n=await c(o,e.id,r,"prompt-first")}return o}async function k(t,e){let s=[];return await _([{title:"Fetching organization data",task:async()=>{for(let n=0;n<10;n++){let{stores:a}=await e.devStoresForOrg(t);if(a.length>0){s=a;return}await h(3)}}}]),s}async function c(t,e,r,i){if(t.transferDisabled||E())return!0;if(!t.transferDisabled&&!t.convertableToPartnerTest)throw new p(`The store you specified (${t.shopDomain}) is not a dev store`,"Run dev --reset and select an eligible dev store.");switch(i){case"prompt-first":return await I()?(await x(t,e,r),!0):!1;case"never":throw new p("The store you specified is not transfer-disabled","Try running 'dev --reset' and selecting a different store, or choosing to convert this one.")}}async function x(t,e,r){let i={input:{organizationID:parseInt(e,10),shopId:t.shopId}},s=await r.convertToTransferDisabledStore(i);if(!s.convertDevToTestStore.convertedToTestStore){let o=s.convertDevToTestStore.userErrors.map(n=>n.message).join(", ");throw new y(`Error converting store ${t.shopDomain} to a transfer-disabled store: ${o}`,"This store might not be compatible with draft apps, please try a different store")}F(`Converted ${t.shopDomain} to a transfer-disabled store`)}async function X({appContextResult:t,storeFqdn:e,forceReselectStore:r,storeTypes:i=["APP_DEVELOPMENT"]}){let{app:s,organization:o,developerPlatformClient:n}=t,a,f=s.configuration.build?.dev_store_url,S=s.hiddenConfig.dev_store_url,T=f??S,v=e??(r?void 0:T),O=i.length===1&&i[0]==="APP_DEVELOPMENT";if(v)a=await N(o,v,n,i),O&&await c(a,o.id,n,"never");else{let A=await n.devStoresForOrg(o.id);a=await u(A,o,n)}return a.shopDomain=g(a.shopDomain),await C(a,r),(a.shopDomain!==T||!S)&&await s.updateHiddenConfig({dev_store_url:a.shopDomain}),await n.ensureUserAccessToStore(o.id,a),a}async function C(t,e){await w.addPublicMetadata(()=>({cmd_app_reset_used:e,store_fqdn_hash:D(t.shopDomain),store_domain:t.shopDomain})),await w.addSensitiveMetadata(()=>({store_fqdn:t.shopDomain}))}export{X as a};
@@ -1 +1 @@
1
- import{b as h}from"./chunk-4HHXSMD7.js";import{Ib as a,Qb as u}from"./chunk-GFEAKSGV.js";import{f as I}from"./chunk-YC6G4MHD.js";import{c as D}from"./chunk-N7RBSKYT.js";import{g as f}from"./chunk-VPRTJUIN.js";f();f();var p;(function(e){e.Local="local",e.Production="production"})(p||(p={}));function L(e=process.env){return e[D.serviceEnv]==="local"?p.Local:p.Production}function v(e=process.env){return L(e)===p.Local}var S;function n(){return S??(S=new h({projectName:`shopify-cli-kit${I()?"-test":""}`})),S}function g(){return v()?"devSessionStore":"sessionStore"}function x(){return v()?"currentDevSessionId":"currentSessionId"}function M(e=n()){return u(a`Getting session store...`),e.get(g())}function N(e,t=n()){u(a`Setting session store...`),t.set(g(),e)}function O(e=n()){u(a`Removing session store...`),e.delete(g())}function F(e=n()){return u(a`Getting current session ID...`),e.get(x())}function T(e,t=n()){u(a`Setting current session ID...`),t.set(x(),e)}function V(e=n()){u(a`Removing current session ID...`),e.delete(x())}async function W(e,t,r,o=n()){let c=b(e,o);if(c?.value!==void 0&&(r===void 0||Date.now()-c.timestamp<r))return c.value;let i=await t();return P(e,i,o),i}function P(e,t,r=n()){let o=r.get("cache")??{};o[e]={value:t,timestamp:Date.now()},r.set("cache",o)}function b(e,t=n()){return(t.get("cache")??{})[e]}function _(e=n()){e.delete("cache")}function y({days:e=0,hours:t=0,minutes:r=0,seconds:o=0}){return(e*24*60*60+t*60*60+r*60+o)*1e3}async function q(e,t,r,o=n()){let c=o.get("cache")??{},i=`most-recent-occurrence-${e}`,s=c[i];return s?.value!==void 0&&Date.now()-s.timestamp<y(t)?!1:(await r(),c[i]={value:!0,timestamp:Date.now()},o.set("cache",c),!0)}async function z(e,t=n()){let{key:r,limit:o,timeout:c,task:i}=e,s=t.get("cache")??{},m=`rate-limited-occurrences-${r}`,w=s[m],l=Date.now();if(w?.value){let C=l-y(c),d=w.value.filter(E=>E>=C);if(d.length>=o)return s[m]={value:d,timestamp:Date.now()},t.set("cache",s),!1;await i(),s[m]={value:[...d,l],timestamp:l}}else await i(),s[m]={value:[l],timestamp:l};return t.set("cache",s),!0}function B(e=n()){return e.get("autoUpgradeEnabled")??!0}function H(e,t=n()){t.set("autoUpgradeEnabled",e)}function A(){return new h({projectName:"shopify-cli-kit-partner-status"})}function J(e){return e&&A().get(e)?!0:null}function Q(e){A().set(e,{status:!0,checkedAt:new Date().toISOString()})}export{p as a,L as b,v as c,M as d,N as e,O as f,F as g,T as h,V as i,W as j,P as k,b as l,_ as m,y as n,q as o,z as p,B as q,H as r,A as s,J as t,Q as u};
1
+ import{b as h}from"./chunk-A5SQCM63.js";import{Hb as a,Pb as u}from"./chunk-VPL2NDH6.js";import{f as I}from"./chunk-UARVYVLN.js";import{c as D}from"./chunk-ULQG3XQS.js";import{g as f}from"./chunk-VPRTJUIN.js";f();f();var p;(function(e){e.Local="local",e.Production="production"})(p||(p={}));function L(e=process.env){return e[D.serviceEnv]==="local"?p.Local:p.Production}function v(e=process.env){return L(e)===p.Local}var S;function n(){return S??(S=new h({projectName:`shopify-cli-kit${I()?"-test":""}`})),S}function g(){return v()?"devSessionStore":"sessionStore"}function x(){return v()?"currentDevSessionId":"currentSessionId"}function M(e=n()){return u(a`Getting session store...`),e.get(g())}function N(e,t=n()){u(a`Setting session store...`),t.set(g(),e)}function O(e=n()){u(a`Removing session store...`),e.delete(g())}function F(e=n()){return u(a`Getting current session ID...`),e.get(x())}function T(e,t=n()){u(a`Setting current session ID...`),t.set(x(),e)}function V(e=n()){u(a`Removing current session ID...`),e.delete(x())}async function W(e,t,r,o=n()){let c=b(e,o);if(c?.value!==void 0&&(r===void 0||Date.now()-c.timestamp<r))return c.value;let i=await t();return P(e,i,o),i}function P(e,t,r=n()){let o=r.get("cache")??{};o[e]={value:t,timestamp:Date.now()},r.set("cache",o)}function b(e,t=n()){return(t.get("cache")??{})[e]}function _(e=n()){e.delete("cache")}function y({days:e=0,hours:t=0,minutes:r=0,seconds:o=0}){return(e*24*60*60+t*60*60+r*60+o)*1e3}async function q(e,t,r,o=n()){let c=o.get("cache")??{},i=`most-recent-occurrence-${e}`,s=c[i];return s?.value!==void 0&&Date.now()-s.timestamp<y(t)?!1:(await r(),c[i]={value:!0,timestamp:Date.now()},o.set("cache",c),!0)}async function z(e,t=n()){let{key:r,limit:o,timeout:c,task:i}=e,s=t.get("cache")??{},m=`rate-limited-occurrences-${r}`,w=s[m],l=Date.now();if(w?.value){let C=l-y(c),d=w.value.filter(E=>E>=C);if(d.length>=o)return s[m]={value:d,timestamp:Date.now()},t.set("cache",s),!1;await i(),s[m]={value:[...d,l],timestamp:l}}else await i(),s[m]={value:[l],timestamp:l};return t.set("cache",s),!0}function B(e=n()){return e.get("autoUpgradeEnabled")??!0}function H(e,t=n()){t.set("autoUpgradeEnabled",e)}function A(){return new h({projectName:"shopify-cli-kit-partner-status"})}function J(e){return e&&A().get(e)?!0:null}function Q(e){A().set(e,{status:!0,checkedAt:new Date().toISOString()})}export{p as a,L as b,v as c,M as d,N as e,O as f,F as g,T as h,V as i,W as j,P as k,b as l,_ as m,y as n,q as o,z as p,B as q,H as r,A as s,J as t,Q as u};
@@ -0,0 +1,8 @@
1
+ import{a as w}from"./chunk-M4V2OQAX.js";import{a as u}from"./chunk-2YXKZWYW.js";import{a as c,b as v}from"./chunk-QFWIDATO.js";import{a as y}from"./chunk-7BFDUVOG.js";import{k as d,q as f}from"./chunk-HHXHOQQP.js";import{b as s}from"./chunk-4KRT35A2.js";import{J as h,u as p}from"./chunk-MGL4YM3S.js";import{r as O}from"./chunk-3YWUSKWF.js";import{e as I,g as m}from"./chunk-VPRTJUIN.js";m();m();async function F(o,t){let i=new u(o),E=(await(t.development?i.find():i.fetch()))?.id,n=await y(o,{header:"Select a theme to open",filter:{live:t.live,theme:t.development?`${E}`:t.theme}}),l=c(n,o),a=v(n,o);p({body:["Preview information for theme",...w(n),`
2
+
3
+ `,{list:{items:[{link:{label:"Preview your theme",url:l}},{link:{label:"Customize your theme at the theme editor",url:a}}]}}]}),t.editor?await h(a):await h(l)}var r=I(O(),1);var g,e=class extends f{async command(t,i){await F(i,t)}};g=e;e.summary="Opens the preview of your remote theme.";e.descriptionWithMarkdown=`Returns links that let you preview the specified theme. The following links are returned:
4
+
5
+ - A link to the [editor](https://shopify.dev/docs/themes/tools/online-editor) for the theme in the Shopify admin.
6
+ - A [preview link](https://help.shopify.com/manual/online-store/themes/adding-themes#share-a-theme-preview-with-others) that you can share with other developers.
7
+
8
+ If you don't specify a theme, then you're prompted to select the theme to open from the list of the themes in your store.`;e.description=g.descriptionWithoutMarkdown();e.flags={...s,...d,development:r.Flags.boolean({char:"d",description:"Open your development theme.",env:"SHOPIFY_FLAG_DEVELOPMENT"}),editor:r.Flags.boolean({char:"E",description:"Open the theme editor for the specified theme in the browser.",env:"SHOPIFY_FLAG_EDITOR"}),live:r.Flags.boolean({char:"l",description:"Open your live (published) theme.",env:"SHOPIFY_FLAG_LIVE"}),theme:r.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID"})};e.multiEnvironmentsFlags=null;var S=e;export{S as a};
@@ -1 +1 @@
1
- import{n as R}from"./chunk-B2EHO7ZC.js";import{a as T,b as k}from"./chunk-XNO6DZYP.js";import{f as G}from"./chunk-IASVAERO.js";import{d as l}from"./chunk-JPGO36XP.js";import{Gb as u,Ib as h,Oa as y,Pa as x,Qb as f,ka as $,ua as b,wa as g}from"./chunk-GFEAKSGV.js";import{d,i as w}from"./chunk-IU2ZQ6TE.js";import{g as m}from"./chunk-VPRTJUIN.js";m();function U(a){let t=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(a);if(!t){let v=["github:user/repo","user/repo/subdirectory","git@github.com:user/repo","user/repo#dev","https://github.com/user/repo"];return k(new Error(`Parsing the url ${a} failed. Supported formats are ${v.join(", ")}.`))}let e=t[1]??t[2]??t[3]??"github.com",r=e==="github"?"github.com":e,s=t[4],i=t[5].replace(/\.git$/,""),n=t[6]?.slice(1),o=t[7],p=o?`#${o}`:"",c=`git@${r}:${s}/${i}`,H=`https://${r}/${s}/${i}`,P=["https:/",r,s,i,n].join("/").concat(p);return T({full:P,site:r,user:s,name:i,ref:o,subDirectory:n,ssh:c,http:H})}function A(a){let t=new URL(a),e=t.hash?t.hash.slice(1):void 0,[r,s,i,...n]=t.pathname.split("/"),o=n.length>0?n.join("/"):void 0;return{baseURL:`${t.origin}/${s}/${i}`,branch:e,filePath:o}}async function B(a,t,e,r){let s=`https://github.com/${a}/releases/download/${t}/${e}`;return G("cmd_all_timing_network_ms")(async()=>{f(h`Downloading ${u.link(e,s)}`),await $(async i=>{let n=d(i,e),o;try{if(o=await R(s,void 0,"slow-request"),!o.ok)throw new l(`Failed to download ${e}: ${o.statusText}`)}catch(c){throw new l(`Failed to download ${e}: ${c instanceof Error?c.message:"unknown error"}`)}let p=await o.arrayBuffer();await b(n,Buffer.from(p)),await x(n,493),await g(w(r)),await y(n,r)}),f(h`${u.successIcon()} Successfully downloaded ${u.path(r)}`)})}export{U as a,A as b,B as c};
1
+ import{n as R}from"./chunk-4V4DQ6W7.js";import{a as T,b as k}from"./chunk-6HZTMQD6.js";import{f as G}from"./chunk-6YAXFS6V.js";import{d as l}from"./chunk-BHWEA4V2.js";import{Fb as u,Hb as h,Oa as y,Pa as x,Pb as f,ka as $,ua as b,wa as g}from"./chunk-VPL2NDH6.js";import{d,i as w}from"./chunk-IU2ZQ6TE.js";import{g as m}from"./chunk-VPRTJUIN.js";m();function U(a){let t=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(a);if(!t){let v=["github:user/repo","user/repo/subdirectory","git@github.com:user/repo","user/repo#dev","https://github.com/user/repo"];return k(new Error(`Parsing the url ${a} failed. Supported formats are ${v.join(", ")}.`))}let e=t[1]??t[2]??t[3]??"github.com",r=e==="github"?"github.com":e,s=t[4],i=t[5].replace(/\.git$/,""),n=t[6]?.slice(1),o=t[7],p=o?`#${o}`:"",c=`git@${r}:${s}/${i}`,H=`https://${r}/${s}/${i}`,P=["https:/",r,s,i,n].join("/").concat(p);return T({full:P,site:r,user:s,name:i,ref:o,subDirectory:n,ssh:c,http:H})}function A(a){let t=new URL(a),e=t.hash?t.hash.slice(1):void 0,[r,s,i,...n]=t.pathname.split("/"),o=n.length>0?n.join("/"):void 0;return{baseURL:`${t.origin}/${s}/${i}`,branch:e,filePath:o}}async function B(a,t,e,r){let s=`https://github.com/${a}/releases/download/${t}/${e}`;return G("cmd_all_timing_network_ms")(async()=>{f(h`Downloading ${u.link(e,s)}`),await $(async i=>{let n=d(i,e),o;try{if(o=await R(s,void 0,"slow-request"),!o.ok)throw new l(`Failed to download ${e}: ${o.statusText}`)}catch(c){throw new l(`Failed to download ${e}: ${c instanceof Error?c.message:"unknown error"}`)}let p=await o.arrayBuffer();await b(n,Buffer.from(p)),await x(n,493),await g(w(r)),await y(n,r)}),f(h`${u.successIcon()} Successfully downloaded ${u.path(r)}`)})}export{U as a,A as b,B as c};
@@ -0,0 +1,5 @@
1
+ import{b as L}from"./chunk-IVGWFPMA.js";import{a as V}from"./chunk-TXUTT6UA.js";import{k as q,l as H,n as I}from"./chunk-X2TC7S57.js";import{a as Y}from"./chunk-KFCGMT67.js";import{a as y,c as U}from"./chunk-M4V2OQAX.js";import{a as N}from"./chunk-2YXKZWYW.js";import{a as p,b as w}from"./chunk-QFWIDATO.js";import{a as F}from"./chunk-7BFDUVOG.js";import{b as g,c as x,d as M,f as _,j as R,n as j,p as D}from"./chunk-MZJRNFAU.js";import{m as k}from"./chunk-HHXHOQQP.js";import{aa as B}from"./chunk-IWCPQD7X.js";import{O as b,ua as a,va as O}from"./chunk-4V4DQ6W7.js";import{A as P,v as f,w as d,x as C}from"./chunk-MGL4YM3S.js";import{d as S}from"./chunk-BHWEA4V2.js";import{Lb as $}from"./chunk-VPL2NDH6.js";import{f as T,q as l}from"./chunk-IU2ZQ6TE.js";import{e as z,g as v}from"./chunk-VPRTJUIN.js";v();var A=z(B(),1);async function Te(e,t,r,o){let n=e.environment?.[0],s=t??await b(k({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:c}=await L(e.path??l(),m);if(c.length>0&&c.filter(J=>J.severity===A.Severity.ERROR).length>0)throw O(new S(n?`[${n}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}a("theme-service:push:setup"),Y({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,h=e.path?T(e.path):l();if(!await I(h)&&!await U(i,void 0,n,r))return;e.listing&&await q(h,e.listing);let u=await Z(s,e,r);u&&(a("theme-service:push:setup"),await W(u,s,{allowLive:e.allowLive??!1,environment:n,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:h,publish:e.publish??!1,listing:e.listing},o))}async function W(e,t,r,o){a("theme-service:push:file-system");let n=await j(e.id,t),s=H(r.path,{filters:r,listing:r.listing});a("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:h}=V(e,t,n,s,r,o);await h(),r.publish&&await D(e.id,t),await G(i,e,t,r)}function E(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,o){o.json?K(t,r,e,o.environment):o.publish?Q(r,e,o.environment):X(t,r,e,o.environment)}function K(e,t,r,o){let n={environment:o,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:w(e,t),preview_url:p(e,t)}};if(E(r)){let i=`${o?`[${o}] `:""}The theme '${e.name}' was pushed with errors`;n.theme.warning=i;let h={};for(let[u,m]of r.entries())!m.success&&m.errors?.asset&&(h[u]=m.errors.asset);Object.keys(h).length>0&&(n.theme.errors=h)}$(JSON.stringify(n))}function Q(e,t,r){let o=r?[{subdued:`Environment: ${r}
2
+
3
+ `}]:[];E(t)?d({body:[...o,`Your theme was published with errors and is now live at https://${e.storeFqdn}`]}):f({body:[...o,`Your theme is now live at https://${e.storeFqdn}`]})}function X(e,t,r,o){let n=o?[{subdued:`Environment: ${o}
4
+
5
+ `}]:[],s=E(r),i=[[{link:{label:"View your theme",url:p(e,t)}}],[{link:{label:"Customize your theme at the theme editor",url:w(e,t)}}]];s?d({body:[...n,"The theme",...y(e),"was pushed with errors"],nextSteps:i}):f({body:[...n,"The theme",...y(e),"was pushed successfully."],nextSteps:i})}async function Z(e,t,r){let{live:o,development:n,unpublished:s,theme:i,environment:h,developmentContext:u}=t;if(n)return new N(e).findOrCreate(u,g);if(s){let m=i??await _("Name of the new theme");return R({name:m,role:M},e)}else{let m=await F(e,{create:!0,header:"Select a theme to push to:",filter:{live:o,theme:i}});return await ee(m.role,t.allowLive,e.storeFqdn,h,r)?m:void 0}}async function ee(e,t,r,o,n){if(e===x){if(t)return!0;if(n)return C({headline:`Environment: ${o}`,body:[`Can't push theme files to the live theme on ${r}`,"Use the --allow-live flag to push to a live theme."]}),!1;let s={message:`Push theme files to the ${e} theme on ${r}?`,confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return P(s)}return!0}export{Te as a};
@@ -1 +1 @@
1
- import{b as e}from"./chunk-YZDDTYTU.js";import{r}from"./chunk-LDGAHMS7.js";import{e as c,g as t}from"./chunk-VPRTJUIN.js";t();var s=c(r(),1);var a=class o extends e{static{this.args={command:s.Args.string({description:"Command to show help for.",required:!1})}}static{this.description="Display help for Shopify CLI"}static{this.usage="help [command] [flags]"}static{this.flags={"nested-commands":s.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})}}static{this.strict=!1}async run(){let{argv:i,flags:n}=await this.parse(o),l=await(0,s.loadHelpClass)(this.config);await new l(this.config,{all:n["nested-commands"]}).showHelp(i)}};export{a};
1
+ import{b as e}from"./chunk-VEDZUOVI.js";import{r}from"./chunk-3YWUSKWF.js";import{e as c,g as t}from"./chunk-VPRTJUIN.js";t();var s=c(r(),1);var a=class o extends e{static{this.args={command:s.Args.string({description:"Command to show help for.",required:!1})}}static{this.description="Display help for Shopify CLI"}static{this.usage="help [command] [flags]"}static{this.flags={"nested-commands":s.Flags.boolean({char:"n",description:"Include all nested commands in the output.",env:"SHOPIFY_FLAG_CLI_NESTED_COMMANDS",default:!1})}}static{this.strict=!1}async run(){let{argv:i,flags:n}=await this.parse(o),l=await(0,s.loadHelpClass)(this.config);await new l(this.config,{all:n["nested-commands"]}).showHelp(i)}};export{a};
@@ -0,0 +1 @@
1
+ import{b as f,c as o,d as h}from"./chunk-YGMVL6NZ.js";import{a as l}from"./chunk-T5MK7ZSF.js";import{a as c}from"./chunk-DCK2FX6J.js";import{Fa as m}from"./chunk-WCWNI3ZV.js";import{b as d}from"./chunk-4KRT35A2.js";import{Mb as e}from"./chunk-VPL2NDH6.js";import{u as r}from"./chunk-7JESXDF2.js";import{g as p}from"./chunk-VPRTJUIN.js";p();var t=class g extends l{async run(){let{flags:a}=await this.parse(g),{app:s}=await m({directory:a.path,clientId:a["client-id"],forceRelink:a.reset,userProvidedConfigName:a.config}),i=new h(s);return await i.start(),e(`Watching for changes in ${s.name}...`),i.onEvent(async({app:y,extensionEvents:u,startTime:w,path:x})=>{e(`\u{1F195} Event [${f(w)}ms]`),e(` \u{1F4C2} ${x}`),u.forEach(n=>{switch(n.type){case o.Created:e(` \u2705 Extension created - ${r.green(n.extension.handle)}`);break;case o.Deleted:e(` \u274C Extension deleted: ${r.red(n.extension.handle)}`);break;case o.Updated:e(` \u{1F504} Updated: ${r.yellow(n.extension.handle)}`);break}})}),setInterval(()=>{},1<<30),{app:s}}};t.summary="Watch and prints out changes to an app.";t.hidden=!0;t.flags={...d,...c};var F=t;export{F as a};
@@ -0,0 +1 @@
1
+ import{c as d}from"./chunk-MZJRNFAU.js";import{xa as i}from"./chunk-4V4DQ6W7.js";import{A as s,D as a,w as m,x as u}from"./chunk-MGL4YM3S.js";import{g as c}from"./chunk-VPRTJUIN.js";c();function f(e){return[`'${e.name}'`,{subdued:`(#${e.id})`}]}function y(e){return{list:{items:e.map(f)}}}async function T(e,r="It doesn't seem like you're running this command in a theme directory.",o,n){if(e)return!0;if(n)return u({headline:o?`Environment: ${o}`:"",body:r}),!1;if(m({body:r}),!process.stdout.isTTY)return!0;let t=await s({message:"Do you want to proceed?"});return i(`theme-service:confirm-directory:${t}`),t}async function v(e,r,o){if(e.role!==d||!process.stdout.isTTY||o)return!0;let n=`You're about to ${r} on your live theme "${e.name}". This will make changes visible to customers. Are you sure you want to proceed?`,t=await s({message:n,confirmationMessage:"Yes, proceed with live theme",cancellationMessage:"No, cancel"});return i(`theme-service:confirm-live-theme:${t}`),t}async function E(e,r,o=!1){e.length>0&&await a(e,{renderOptions:{stdout:r??process.stderr},noProgressBar:o})}export{f as a,y as b,T as c,v as d,E as e};
@@ -0,0 +1 @@
1
+ import{d as l}from"./chunk-IOQQUHST.js";import{c as t}from"./chunk-QFWIDATO.js";import{a as i,h as m,i as w,j as d,m as f}from"./chunk-HHXHOQQP.js";import{F as n}from"./chunk-MGL4YM3S.js";import{g as a}from"./chunk-VPRTJUIN.js";a();async function h(o,r){i()||f({store:r});let e=o??m()??await p(["Enter your",{link:{label:"store password",url:t(r)}}]),s=!1;for(;!await l(e,r);)s||(d(),s=!0),e=await p(["Incorrect",{link:{label:"store password",url:t(r)}},{char:"."},"Please try again"]);return w(e),e}async function p(o){return n({message:o,password:!0})}export{h as a};
@@ -0,0 +1 @@
1
+ import{n as A}from"./chunk-X2TC7S57.js";import{a as P}from"./chunk-KFCGMT67.js";import{c as C}from"./chunk-M4V2OQAX.js";import{s as T}from"./chunk-MZJRNFAU.js";import{m as w}from"./chunk-HHXHOQQP.js";import{a as D}from"./chunk-RGNAWKD7.js";import{O as u}from"./chunk-4V4DQ6W7.js";import{v as h,x as y}from"./chunk-MGL4YM3S.js";import{Pb as O,va as p}from"./chunk-VPL2NDH6.js";import{d,q as m}from"./chunk-IU2ZQ6TE.js";import{g as l}from"./chunk-VPRTJUIN.js";l();async function q(e){P({verbose:e.verbose,noColor:e.noColor});let t=w({store:e.store}),o=await u(t,e.password);await R(o,{path:e.path??m(),force:e.force??!1,silent:e.silent??!1})}var E={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",variant:"PRODUCTVARIANT",shop:"SHOP"};async function R(e,t){let{force:o,path:i,silent:n}=t;if(!await A(i)&&(process.env.SHOPIFY_LANGUAGE_SERVER==="1"||!await C(o)))return;let f=[],r=[];for(let[a,s]of Object.entries(E))f.push(T(s,e).catch(c=>(r.push(s),[])).then(c=>({[a]:c})));let b=(await Promise.all(f)).reduce((a,s)=>({...a,...s}));if(r.length===Object.values(E).length){n||y({body:"Failed to fetch metafield definitions.",nextSteps:["Check your network connection and try again.","Ensure you have the permission to fetch metafield definitions."],reference:[{link:{label:"Metafield Definition API",url:"https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition"}}]});return}await S(i,b),r.length>0&&O(`Failed to fetch metafield definitions for the following owner types: ${r.join(", ")}`),n||h({body:"Metafield definitions have been successfully downloaded."})}async function S(e,t){let o=await D(e),i=d(o,"metafields.json"),n=JSON.stringify(t,null,2);p(i,n)}export{q as a};
@@ -0,0 +1,28 @@
1
+ import{a as Ea,b as Sa}from"./chunk-YS6VOQ7I.js";import{a as wa}from"./chunk-KLMDWDT2.js";import{a as bn}from"./chunk-5CH3B62S.js";import{a as ya}from"./chunk-QUTQDXSL.js";import{f as Ne}from"./chunk-6YAXFS6V.js";import{d as qe,e as Et,f as wn,g as En,k as Sn}from"./chunk-BHWEA4V2.js";import{a as xn}from"./chunk-PD5ZHJWI.js";import{j as ba}from"./chunk-3YWUSKWF.js";import{a as xa}from"./chunk-QYR5VPQA.js";import{a as wt}from"./chunk-4EXYYBQ6.js";import{C as ca,Db as yn,E as ua,F as fa,Fb as Tn,H as ma,Hb as St,J as da,Pb as Ie,U as un,Vb as Ge,Wb as ke,a as ea,eb as N,f as ra,fb as g,gb as y,hb as sr,ib as mn,jb as xt,kb as fe,l as na,lb as dn,m as oa,mb as De,nb as yt,ob as pn,pb as ar,rb as ha,sb as ga,t as ir,tb as hn,u as ia,ub as Be,vb as $e,wb as gn,xb as V,y as aa,z as la}from"./chunk-VPL2NDH6.js";import{e as ta,g as sa,j as pa,l as fn,u as Ue}from"./chunk-7JESXDF2.js";import{f as nt,o as vn}from"./chunk-UARVYVLN.js";import{a as or}from"./chunk-ULQG3XQS.js";import{b as an,i as ln,q as cn}from"./chunk-IU2ZQ6TE.js";import{a as ue,c as k,e as D,g as u}from"./chunk-VPRTJUIN.js";var Dn=k((Gu,Ln)=>{u();Ln.exports=Rn;Rn.sync=Ta;var Cn=ue("fs");function va(e,t){var r=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!r||(r=r.split(";"),r.indexOf("")!==-1))return!0;for(var n=0;n<r.length;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function An(e,t,r){return!e.isSymbolicLink()&&!e.isFile()?!1:va(t,r)}function Rn(e,t,r){Cn.stat(e,function(n,o){r(n,n?!1:An(o,e,t))})}function Ta(e,t){return An(Cn.statSync(e),e,t)}});var In=k((ju,Bn)=>{u();Bn.exports=Mn;Mn.sync=Ca;var kn=ue("fs");function Mn(e,t,r){kn.stat(e,function(n,o){r(n,n?!1:_n(o,t))})}function Ca(e,t){return _n(kn.statSync(e),t)}function _n(e,t){return e.isFile()&&Aa(e,t)}function Aa(e,t){var r=e.mode,n=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),f=parseInt("100",8),m=parseInt("010",8),d=parseInt("001",8),p=f|m,b=r&d||r&m&&o===s||r&f&&n===i||r&p&&i===0;return b}});var On=k((Vu,Pn)=>{u();var zu=ue("fs"),vt;process.platform==="win32"||global.TESTING_WINDOWS?vt=Dn():vt=In();Pn.exports=lr;lr.sync=Ra;function lr(e,t,r){if(typeof t=="function"&&(r=t,t={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,o){lr(e,t||{},function(i,s){i?o(i):n(s)})})}vt(e,t||{},function(n,o){n&&(n.code==="EACCES"||t&&t.ignoreErrors)&&(n=null,o=!1),r(n,o)})}function Ra(e,t){try{return vt.sync(e,t||{})}catch(r){if(t&&t.ignoreErrors||r.code==="EACCES")return!1;throw r}}});var Hn=k((Ku,Gn)=>{u();var He=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Fn=ue("path"),La=He?";":":",Un=On(),$n=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),Nn=(e,t)=>{let r=t.colon||La,n=e.match(/\//)||He&&e.match(/\\/)?[""]:[...He?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=He?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=He?o.split(r):[""];return He&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:n,pathExt:i,pathExtExe:o}},qn=(e,t,r)=>{typeof t=="function"&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:o,pathExtExe:i}=Nn(e,t),s=[],f=d=>new Promise((p,b)=>{if(d===n.length)return t.all&&s.length?p(s):b($n(e));let S=n[d],v=/^".*"$/.test(S)?S.slice(1,-1):S,w=Fn.join(v,e),A=!v&&/^\.[\\\/]/.test(e)?e.slice(0,2)+w:w;p(m(A,d,0))}),m=(d,p,b)=>new Promise((S,v)=>{if(b===o.length)return S(f(p+1));let w=o[b];Un(d+w,{pathExt:i},(A,C)=>{if(!A&&C)if(t.all)s.push(d+w);else return S(d+w);return S(m(d,p,b+1))})});return r?f(0).then(d=>r(null,d),r):f(0)},Da=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:o}=Nn(e,t),i=[];for(let s=0;s<r.length;s++){let f=r[s],m=/^".*"$/.test(f)?f.slice(1,-1):f,d=Fn.join(m,e),p=!m&&/^\.[\\\/]/.test(e)?e.slice(0,2)+d:d;for(let b=0;b<n.length;b++){let S=p+n[b];try{if(Un.sync(S,{pathExt:o}))if(t.all)i.push(S);else return S}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw $n(e)};Gn.exports=qn;qn.sync=Da});var Wn=k((Zu,cr)=>{"use strict";u();var jn=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};cr.exports=jn;cr.exports.default=jn});var Kn=k((Ju,Xn)=>{"use strict";u();var zn=ue("path"),ka=Hn(),Ma=Wn();function Vn(e,t){let r=e.options.env||process.env,n=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let s;try{s=ka.sync(e.command,{path:r[Ma({env:r})],pathExt:t?zn.delimiter:void 0})}catch{}finally{i&&process.chdir(n)}return s&&(s=zn.resolve(o?e.options.cwd:"",s)),s}function _a(e){return Vn(e)||Vn(e,!0)}Xn.exports=_a});var Yn=k((tf,fr)=>{"use strict";u();var ur=/([()\][%!^"`<>&|;, *?])/g;function Ba(e){return e=e.replace(ur,"^$1"),e}function Ia(e,t){return e=`${e}`,e=e.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),e=e.replace(/(?=(\\+?)?)\1$/,"$1$1"),e=`"${e}"`,e=e.replace(ur,"^$1"),t&&(e=e.replace(ur,"^$1")),e}fr.exports.command=Ba;fr.exports.argument=Ia});var Qn=k((nf,Zn)=>{"use strict";u();Zn.exports=/^#!(.*)/});var eo=k((sf,Jn)=>{"use strict";u();var Pa=Qn();Jn.exports=(e="")=>{let t=e.match(Pa);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return o==="env"?n:n?`${o} ${n}`:o}});var ro=k((lf,to)=>{"use strict";u();var mr=ue("fs"),Oa=eo();function Fa(e){let r=Buffer.alloc(150),n;try{n=mr.openSync(e,"r"),mr.readSync(n,r,0,150,0),mr.closeSync(n)}catch{}return Oa(r.toString())}to.exports=Fa});var so=k((uf,io)=>{"use strict";u();var Ua=ue("path"),no=Kn(),oo=Yn(),$a=ro(),Na=process.platform==="win32",qa=/\.(?:com|exe)$/i,Ga=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ha(e){e.file=no(e);let t=e.file&&$a(e.file);return t?(e.args.unshift(e.file),e.command=t,no(e)):e.file}function ja(e){if(!Na)return e;let t=Ha(e),r=!qa.test(t);if(e.options.forceShell||r){let n=Ga.test(t);e.command=Ua.normalize(e.command),e.command=oo.command(e.command),e.args=e.args.map(i=>oo.argument(i,n));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Wa(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:ja(n)}io.exports=Wa});var co=k((mf,lo)=>{"use strict";u();var dr=process.platform==="win32";function pr(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function za(e,t){if(!dr)return;let r=e.emit;e.emit=function(n,o){if(n==="exit"){let i=ao(o,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}}function ao(e,t){return dr&&e===1&&!t.file?pr(t.original,"spawn"):null}function Va(e,t){return dr&&e===1&&!t.file?pr(t.original,"spawnSync"):null}lo.exports={hookChildProcess:za,verifyENOENT:ao,verifyENOENTSync:Va,notFoundError:pr}});var mo=k((pf,je)=>{"use strict";u();var uo=ue("child_process"),hr=so(),gr=co();function fo(e,t,r){let n=hr(e,t,r),o=uo.spawn(n.command,n.args,n.options);return gr.hookChildProcess(o,n),o}function Xa(e,t,r){let n=hr(e,t,r),o=uo.spawnSync(n.command,n.args,n.options);return o.error=o.error||gr.verifyENOENTSync(o.status,n),o}je.exports=fo;je.exports.spawn=fo;je.exports.sync=Xa;je.exports._parse=hr;je.exports._enoent=gr});var ko=k((Zf,Do)=>{"use strict";u();var{PassThrough:bl}=ue("stream");Do.exports=function(){var e=[],t=new bl({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=n,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(r),t;function r(i){return Array.isArray(i)?(i.forEach(r),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function n(){return e.length==0}function o(i){e=e.filter(function(s){return s!==i}),!e.length&&t.readable&&t.end()}}});var Jo=k((ad,Qo)=>{u();var{EventEmitter:Zl}=ue("events"),Dt=class{constructor(){this.eventEmitter=new Zl,this.onabort=null,this.aborted=!1,this.reason=void 0}toString(){return"[object AbortSignal]"}get[Symbol.toStringTag](){return"AbortSignal"}removeEventListener(t,r){this.eventEmitter.removeListener(t,r)}addEventListener(t,r){this.eventEmitter.on(t,r)}dispatchEvent(t){let r={type:t,target:this},n=`on${t}`;typeof this[n]=="function"&&this[n](r),this.eventEmitter.emit(t,r)}throwIfAborted(){if(this.aborted)throw this.reason}static abort(t){let r=new st;return r.abort(),r.signal}static timeout(t){let r=new st;return setTimeout(()=>r.abort(new Error("TimeoutError")),t),r.signal}},st=class{constructor(){this.signal=new Dt}abort(t){this.signal.aborted||(this.signal.aborted=!0,t?this.signal.reason=t:this.signal.reason=new Error("AbortError"),this.signal.dispatchEvent("abort"))}toString(){return"[object AbortController]"}get[Symbol.toStringTag](){return"AbortController"}};Qo.exports={AbortController:st,AbortSignal:Dt}});var ui=k((cp,ci)=>{"use strict";u();ci.exports=class ye{constructor(t){try{t(r=>{this.setValue(r,!1)},r=>{this.setValue(r,!0)})}catch(r){this.setValue(r,!0)}}setValue(t,r){this.val=t instanceof ye?t.val:t,this.rejected=r||(t instanceof ye?t.rejected:!1)}static valueFrom(t){if(t instanceof ye){if(t.rejected)throw t.val;return t.val}else return t}then(t){try{if(!this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}catch(t){try{if(this.rejected)return ye.resolve(t(this.val))}catch(r){return ye.reject(r)}return this}static resolve(t){return new ye(r=>{r(t)})}static reject(t){return new ye((r,n)=>{n(t)})}}});var di=k((fp,mi)=>{"use strict";u();var fi=typeof window<"u"&&window.window===window&&window.navigator,pc=fi?window.location.href:process.cwd(),hc=new RegExp("^((https|http)://)?[a-z0-9A-Z]{3}.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z].com|net|cn|cc (:s[0-9]{1-4})?/$"),Ce=mi.exports={concat(e,t){let r=e[e.length-1]==="/",n=t[0]==="/";return e+(r||n?"":"/")+(r&&n?t.substring(1):t)},resolve(e){return Ce.isAbsolute(e)?Ce.normalize(e):Ce.normalize(Ce.concat(pc,e))},normalize(e){let t=[],r=0;e.split("/").reverse().filter(o=>o!==".").forEach(o=>{o===".."?r++:r===0?t.push(o):r--});let n=t.reverse().join("/");return(fi&&n[0]==="/"?n[1]==="/"?window.location.protocol:window.location.origin:"")+n},isData:e=>e.indexOf("data:")===0,isURL:e=>hc.test(e),isAbsolute:e=>e[0]==="/"||/^[^\/]*:/.test(e),relativeToFile(e,t){return Ce.isData(e)||Ce.isAbsolute(t)?Ce.normalize(t):Ce.normalize(Ce.concat(e.split("/").slice(0,-1).join("/"),t))}}});var hi=k((dp,pi)=>{"use strict";u();pi.exports=gc;function gc(e){if(!/^data\:/i.test(e))throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")');e=e.replace(/\r?\n/g,"");var t=e.indexOf(",");if(t===-1||t<=4)throw new TypeError("malformed data: URI");for(var r=e.substring(5,t).split(";"),n=r[0]||"text/plain",o=n,i=!1,s="",f=1;f<r.length;f++)r[f]=="base64"?i=!0:(o+=";"+r[f],r[f].indexOf("charset=")==0&&(s=r[f].substring(8)));!r[0]&&!s.length&&(o+=";charset=US-ASCII",s="US-ASCII");var m=unescape(e.substring(t+1)),d=i?"base64":"ascii",p=Buffer.from?Buffer.from(m,d):new Buffer(m,d);return p.type=n,p.typeFull=o,p.charset=s,p}});var yi=k((hp,$t)=>{"use strict";u();var{assign:We}=Object,Pr=typeof window<"u"&&window.window===window&&window.navigator,bc=xa().SourceMapConsumer,Ut=ui(),Ir=di(),xc=hi(),bi=Pr?null:$t.require,gi=e=>{let t=r=>r in t.cache?t.cache[r]:t.cache[r]=e(r);return t.forgetEverything=()=>{t.cache=Object.create(null)},t.cache=Object.create(null),t};function xi(e,t){let r=t?Ut:Promise,n=gi(f=>o(f,e(f)));function o(f,m){return m===void 0?n(Ir.resolve(f)):r.resolve(m).then(d=>{let p,b,S,v=w=>(S=S||i(p))(w);return p={path:f,text:d,get lines(){return b=b||d.split(`
2
+ `)},resolve(w){let A=v(w);if(t)try{return Ut.valueFrom(A)}catch(C){return We({},w,{error:C})}else return Promise.resolve(A)},_resolve:v}})}function i(f){let m=/\u0023 sourceMappingURL=(.+)\n?/g,d;for(;;){let S=m.exec(f.text);if(S)d=S;else break}let p=d&&d[1],b=S=>We({},S,{sourceFile:f,sourceLine:f.lines[S.line-1]||""});return p?s(f.path,p,b):b}function s(f,m,d){let p=m.startsWith("data:")?o(f,xc(m).toString()):o(Ir.relativeToFile(f,m)),b=p.then(v=>bc(JSON.parse(v.text))),S=gi(function(w){return p.then(A=>{let C=Ir.relativeToFile(A.path,w);return b.then(I=>o(C,I.sourceContentFor(w,!0)||void 0))})});return v=>b.then(w=>{let A=w.originalPositionFor(v);return A.source?S(A.source).then(C=>C._resolve(We({},v,{line:A.line,column:A.column+1,name:A.name}))):d(v)}).catch(w=>We(d(v),{sourceMapError:w}))}return We(function(m){let d=o(m);if(t)try{return Ut.valueFrom(d)}catch(p){let b={path:m,text:"",lines:[],error:p,resolve(S){return We({},S,{error:p,sourceLine:"",sourceFile:b})}};return b}return d},{resetCache:()=>n.forgetEverything(),getCache:()=>n.cache})}$t.exports=xi(function(t){return new Ut(r=>{if(Pr){let n=new XMLHttpRequest;n.open("GET",t,!1),n.send(null),r(n.responseText)}else r(bi("fs").readFileSync(t,{encoding:"utf8"}))})},!0);$t.exports.async=xi(function(t){return new Promise((r,n)=>{if(Pr){let o=new XMLHttpRequest;o.open("GET",t),o.onreadystatechange=i=>{o.readyState===4&&(o.status===200?r(o.responseText):n(new Error(o.statusText)))},o.send(null)}else bi("fs").readFile(t,{encoding:"utf8"},(o,i)=>{o?n(o):r(i)})})})});var Ei=k((bp,wi)=>{"use strict";u();wi.exports=(e,t)=>{let r=e||[],n=[],o={label:void 0,items:[r.first]};return r.forEach(i=>{let s=t(i);o.label!==s&&o.items.length?n.push(o={label:s,items:[i]}):o.items.push(i)}),n}});var vi=k((yp,$r)=>{"use strict";u();var yc=(function(){function e(t,r){var n=[],o=!0,i=!1,s=void 0;try{for(var f=t[Symbol.iterator](),m;!(o=(m=f.next()).done)&&(n.push(m.value),!(r&&n.length===r));o=!0);}catch(d){i=!0,s=d}finally{try{!o&&f.return&&f.return()}finally{if(i)throw s}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),Nt="[\x1B\x9B][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]",Si="\0-\b\v-\x1B\x9B\xAD\u200B\u2028\u2029\uFEFF\uFE00-\uFE0F",Ur=`
3
+ `+Si,wc=new RegExp("(?:"+Nt+")|["+Si+"]","g"),Or=new RegExp("(?:"+Nt+")|["+Ur+"]","g"),Fr=new RegExp("((?:"+Nt+")|[ "+Ur+"])?([^ "+Ur+"]*)","g");$r.exports={zeroWidthCharacters:Or,ansiEscapeCodes:new RegExp(Nt,"g"),strlen:e=>Array.from(e.replace(Or,"")).length,isBlank:e=>e.replace(Or,"").replace(/\s/g,"").length===0,blank:e=>Array.from(e.replace(wc,"")).map(t=>t===" "||t===`
4
+ `?t:" ").join(""),partition(e){for(var t,r=[];Fr.lastIndex!==e.length&&(t=Fr.exec(e));)r.push([t[1]||"",t[2]]);return Fr.lastIndex=0,r},first(e,t){let r="",n=0;for(let i of $r.exports.partition(e)){var o=yc(i,2);let s=o[0],f=o[1],m=Array.from(f).slice(0,t-n);r+=s+m.join(""),n+=m.length}return r}}});var Li=k((Ep,Ri)=>{"use strict";u();function ze(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}else return Array.from(e)}var qt=Object,Ci=vi(),Ec=Ci.first,Gt=Ci.strlen,Sc=(e,t)=>Ec(e,t-1)+"\u2026",Ti=(e,t)=>{let r=(w,A)=>w.reduce((C,I)=>I.map((R,T)=>[].concat(ze(C[T]||[]),[R])),[]).map(C=>A.apply(void 0,ze(C))),n=e.map(w=>w.map(A=>A.replace(/\n/g,"\\n"))),o=n.map(w=>w.map(Gt)),i=r(o,Math.max),s=qt.assign({delimiter:" ",minColumnWidths:i.map(w=>0),maxTotalWidth:0},t),f=Gt(s.delimiter),m=i.reduce((w,A)=>w+A,0),d=i.map(w=>w/m),p=s.maxTotalWidth-f*(i.length-1),b=Math.max(0,m-p),S=r([s.minColumnWidths,i,d],(w,A,C)=>Math.max(w,Math.floor(A-b*C))),v=o.map(w=>r([S,w],(A,C)=>A-C));return r([n,v],(w,A)=>r([w,A],(C,I)=>I>=0?s.right?" ".repeat(I)+C:C+" ".repeat(I):Sc(C,Gt(C)+I)).join(s.delimiter))},Ai=e=>qt.assign(t=>{var r;if(t[0]&&Array.isArray(t[0]))return Ti(t.map(s=>s.map((f,m)=>f===void 0?"":e.print(f,m))),e).join(`
5
+ `);let n=[].concat(ze(new Set((r=[]).concat.apply(r,ze(t.map(qt.keys)))))),o=[n.map(e.title)].concat(ze(t.map(s=>n.map(f=>s[f]===void 0?"":e.print(s[f],f))))),i=Ti(o,e);return(e.dash?[i[0],e.dash.repeat(Gt(i[0]))].concat(ze(i.slice(1))):i).join(`
6
+ `)},e,{configure:t=>Ai(qt.assign({},e,t))});Ri.exports=Ai({maxTotalWidth:Number.MAX_SAFE_INTEGER,print:String,title:String,dash:"-",right:!1})});var Mi=k((Tp,Nr)=>{"use strict";u();var Ht=Object,Ve=typeof window<"u"&&window.window===window&&window.navigator,vp=Ve?null:Nr.require,Di=e=>e[e.length-1],jt=yi(),vc=Ei(),Tc=Li(),ut=e=>e.replace(/\\/g,"/"),ki=Ve?window.location.href:ut(process.cwd())+"/",ft=class e{constructor(t,r){let n=t,o=t&&t instanceof SyntaxError&&!Ve;if(t||(t=new Error,r=r===void 0?1:r),t instanceof Error&&(t=t.stack||""),typeof t=="string"&&(t=this.rawParse(t).slice(r).map(i=>this.extractEntryMetadata(i))),Array.isArray(t)){if(o){let i=ue("util").inspect(n).split(`
7
+ `),s=i[0].split(":"),f=s.pop(),m=s.join(":");m&&t.unshift({file:ut(m),line:f,column:(i[2]||"").indexOf("^")+1,sourceLine:i[1],callee:"(syntax error)",syntaxError:!0})}this.items=t}else this.items=[]}extractEntryMetadata(t){let r=this.decomposePath(t.file||""),n=r[0],o=r[1];return Ht.assign(t,{calleeShort:t.calleeShort||Di((t.callee||"").split(".")),fileRelative:n,fileShort:this.shortenPath(n),fileName:Di((t.file||"").split("/")),thirdParty:this.isThirdParty(n,o)&&!t.index,externalDomain:o})}shortenPath(t){return t.replace(/^node_modules\//,"").replace(/^webpack\/bootstrap\//,"").replace(/^__parcel_source_root\//,"")}decomposePath(t){let r=t;Ve&&(r=r.replace(ki,""));let n=r.match(/^(http|https)\:\/\/?([^\/]+)\/(.*)/),o=n?n[2]:void 0;return r=n?n[3]:r,Ve||(r=ue("path").relative(ki,r)),[ut(r).replace(/^.*\:\/\/?\/?/,""),o]}isThirdParty(t,r){return r||t[0]==="~"||t[0]==="/"||t.indexOf("node_modules")===0||t.indexOf("webpack/bootstrap")===0}rawParse(t){return(t||"").split(`
8
+ `).map(o=>{o=o.trim();let i,s=[],f,m,d;if((m=o.match(/at (.+) \(eval at .+ \((.+)\), .+\)/))||(m=o.match(/at (.+) \((.+)\)/))||(m=o.match(/at (.+) ([^ ]+)/))||o.slice(0,3)!=="at "&&(m=o.match(/(.*)@(.*)/)))i=m[1],f=m[2]==="native",s=(m[2].match(/(.*):(\d+):(\d+)/)||m[2].match(/(.*):(\d+)/)||[]).slice(1);else if(d=o.match(/^(at\s+)*(.+):(\d+):(\d+)/))s=d.slice(2);else return;return i&&!s[0]&&i.split(".")[0]==="Array"&&(f=!0),{beforeParse:o,callee:i||"",index:Ve&&s[0]===window.location.href,native:f||!1,file:ut(s[0]||""),line:parseInt(s[1]||"",10)||void 0,column:parseInt(s[2]||"",10)||void 0}}).filter(o=>o!==void 0)}withSourceAt(t){return this.items[t]&&this.withSource(this.items[t])}withSourceAsyncAt(t){return this.items[t]&&this.withSourceAsync(this.items[t])}withSource(t){if(this.shouldSkipResolving(t))return t;{let r=jt(t.file||"").resolve(t);return r.sourceFile?this.withSourceResolved(t,r):t}}withSourceAsync(t){return this.shouldSkipResolving(t)?Promise.resolve(t):jt.async(t.file||"").then(r=>r.resolve(t)).then(r=>this.withSourceResolved(t,r)).catch(r=>this.withSourceResolved(t,{error:r,sourceLine:""}))}shouldSkipResolving(t){return t.sourceFile||t.error||t.file&&t.file.indexOf("<")>=0}withSourceResolved(t,r){return r.sourceFile&&!r.sourceFile.error&&(r.file=ut(r.sourceFile.path),r=this.extractEntryMetadata(r)),r.sourceLine.includes("// @hide")&&(r.sourceLine=r.sourceLine.replace("// @hide",""),r.hide=!0),(r.sourceLine.includes("__webpack_require__")||r.sourceLine.includes("/******/ ({"))&&(r.thirdParty=!0),Ht.assign({sourceLine:""},t,r)}withSources(){return this.map(t=>this.withSource(t))}withSourcesAsync(){return Promise.all(this.items.map(t=>this.withSourceAsync(t))).then(t=>new e(t))}mergeRepeatedLines(){return new e(vc(this.items,t=>t.file+t.line).map(t=>t.items.slice(1).reduce((r,n)=>(r.callee=(r.callee||"<anonymous>")+" \u2192 "+(n.callee||"<anonymous>"),r.calleeShort=(r.calleeShort||"<anonymous>")+" \u2192 "+(n.calleeShort||"<anonymous>"),r),Ht.assign({},t.items[0]))))}clean(){let t=this.withSources().mergeRepeatedLines();return t.filter(t.isClean.bind(t))}cleanAsync(){return this.withSourcesAsync().then(t=>(t=t.mergeRepeatedLines(),t.filter(t.isClean.bind(t))))}isClean(t,r){return r===0||!(t.thirdParty||t.hide||t.native)}at(t){return Ht.assign({beforeParse:"",callee:"<???>",index:!1,native:!1,file:"<???>",line:0,column:0},this.items[t])}asTable(t){let r=t&&t.maxColumnWidths||this.maxColumnWidths(),n=(s,f)=>s&&(s.length>f?s.slice(0,f-1)+"\u2026":s),o=(s,f)=>s&&(s.length>f?"\u2026"+s.slice(-(f-1)):s),i=this.map(s=>["at "+n(s.calleeShort,r.callee),o(s.fileShort&&s.fileShort+":"+s.line||"",r.file),n((s.sourceLine||"").trim()||"",r.sourceLine)]);return Tc(i.items)}maxColumnWidths(){return{callee:30,file:60,sourceLine:80}}static resetCache(){jt.resetCache(),jt.async.resetCache()}static locationsEqual(t,r){return t.file===r.file&&t.line===r.line&&t.column===r.column}};["map","filter","slice","concat"].forEach(e=>{ft.prototype[e]=function(){return new ft(this.items[e].apply(this.items,arguments))}});Nr.exports=ft});var $i=k((Dh,Ui)=>{u();function _c(e){return function(t,r,n){for(var o=-1,i=Object(t),s=n(t),f=s.length;f--;){var m=s[e?f:++o];if(r(i[m],m,i)===!1)break}return t}}Ui.exports=_c});var qi=k((Mh,Ni)=>{u();var Bc=$i(),Ic=Bc();Ni.exports=Ic});var Hi=k((Bh,Gi)=>{u();var Pc=qi(),Oc=ia();function Fc(e,t){return e&&Pc(e,t,Oc)}Gi.exports=Fc});var Wi=k((Ph,ji)=>{u();var Uc=ir();function $c(e,t){return function(r,n){if(r==null)return r;if(!Uc(r))return e(r,n);for(var o=r.length,i=t?o:-1,s=Object(r);(t?i--:++i<o)&&n(s[i],i,s)!==!1;);return r}}ji.exports=$c});var Vi=k((Fh,zi)=>{u();var Nc=Hi(),qc=Wi(),Gc=qc(Nc);zi.exports=Gc});var Ki=k(($h,Xi)=>{u();var Hc=Vi(),jc=ir();function Wc(e,t){var r=-1,n=jc(e)?Array(e.length):[];return Hc(e,function(o,i,s){n[++r]=t(o,i,s)}),n}Xi.exports=Wc});var Zi=k((qh,Yi)=>{u();function zc(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}Yi.exports=zc});var es=k((Hh,Ji)=>{u();var Qi=sa();function Vc(e,t){if(e!==t){var r=e!==void 0,n=e===null,o=e===e,i=Qi(e),s=t!==void 0,f=t===null,m=t===t,d=Qi(t);if(!f&&!d&&!i&&e>t||i&&s&&m&&!f&&!d||n&&s&&m||!r&&m||!o)return 1;if(!n&&!i&&!d&&e<t||d&&r&&o&&!n&&!i||f&&r&&o||!s&&o||!m)return-1}return 0}Ji.exports=Vc});var rs=k((Wh,ts)=>{u();var Xc=es();function Kc(e,t,r){for(var n=-1,o=e.criteria,i=t.criteria,s=o.length,f=r.length;++n<s;){var m=Xc(o[n],i[n]);if(m){if(n>=f)return m;var d=r[n];return m*(d=="desc"?-1:1)}}return e.index-t.index}ts.exports=Kc});var os=k((Vh,ns)=>{u();var Hr=la(),Yc=ca(),Zc=fa(),Qc=Ki(),Jc=Zi(),eu=oa(),tu=rs(),ru=ua(),nu=ra();function ou(e,t,r){t.length?t=Hr(t,function(i){return nu(i)?function(s){return Yc(s,i.length===1?i[0]:i)}:i}):t=[ru];var n=-1;t=Hr(t,eu(Zc));var o=Qc(e,function(i,s,f){var m=Hr(t,function(d){return d(i)});return{criteria:m,index:++n,value:i}});return Jc(o,function(i,s){return tu(i,s,r)})}ns.exports=ou});var ss=k((Kh,is)=>{u();var iu=ea(),su=ir(),au=na(),lu=ta();function cu(e,t,r){if(!lu(r))return!1;var n=typeof t;return(n=="number"?su(r)&&au(t,r.length):n=="string"&&t in r)?iu(r[t],e):!1}is.exports=cu});var cs=k((Zh,ls)=>{u();var uu=ma(),fu=os(),mu=da(),as=ss(),du=mu(function(e,t){if(e==null)return[];var r=t.length;return r>1&&as(e,t[0],t[1])?t=[]:r>2&&as(t[0],t[1],t[2])&&(t=[t[0]]),fu(e,uu(t,1),[])});ls.exports=du});var hs=k((Lg,ps)=>{"use strict";u();var bu=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let o=t.length,i=0,s="";do s+=e.substr(i,n-i)+t+r,i=n+o,n=e.indexOf(t,i);while(n!==-1);return s+=e.substr(i),s},xu=(e,t,r,n)=>{let o=0,i="";do{let s=e[n-1]==="\r";i+=e.substr(o,(s?n-1:n)-o)+t+(s?`\r
9
+ `:`
10
+ `)+r,o=n+1,n=e.indexOf(`
11
+ `,o)}while(n!==-1);return i+=e.substr(o),i};ps.exports={stringReplaceAll:bu,stringEncaseCRLFWithFirstIndex:xu}});var ws=k((kg,ys)=>{"use strict";u();var yu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,gs=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,wu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Eu=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Su=new Map([["n",`
12
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function xs(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Su.get(e)||e}function vu(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),o;for(let i of n){let s=Number(i);if(!Number.isNaN(s))r.push(s);else if(o=i.match(wu))r.push(o[2].replace(Eu,(f,m,d)=>m?xs(m):d));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`)}return r}function Tu(e){gs.lastIndex=0;let t=[],r;for(;(r=gs.exec(e))!==null;){let n=r[1];if(r[2]){let o=vu(n,r[2]);t.push([n].concat(o))}else t.push([n])}return t}function bs(e,t){let r={};for(let o of t)for(let i of o.styles)r[i[0]]=o.inverse?null:i.slice(1);let n=e;for(let[o,i]of Object.entries(r))if(Array.isArray(i)){if(!(o in n))throw new Error(`Unknown Chalk style: ${o}`);n=i.length>0?n[o](...i):n[o]}return n}ys.exports=(e,t)=>{let r=[],n=[],o=[];if(t.replace(yu,(i,s,f,m,d,p)=>{if(s)o.push(xs(s));else if(m){let b=o.join("");o=[],n.push(r.length===0?b:bs(e,r)(b)),r.push({inverse:f,styles:Tu(m)})}else if(d){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(bs(e,r)(o.join(""))),o=[],r.pop()}else o.push(p)}),n.push(o.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")}});var Rs=k((_g,As)=>{"use strict";u();var dt=ba(),{stdout:Wr,stderr:zr}=ha(),{stringReplaceAll:Cu,stringEncaseCRLFWithFirstIndex:Au}=hs(),{isArray:Zt}=Array,Ss=["ansi","ansi","ansi256","ansi16m"],Qe=Object.create(null),Ru=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Wr?Wr.level:0;e.level=t.level===void 0?r:t.level},Vr=class{constructor(t){return vs(t)}},vs=e=>{let t={};return Ru(t,e),t.template=(...r)=>Cs(t.template,...r),Object.setPrototypeOf(t,Qt.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Vr,t.template};function Qt(e){return vs(e)}for(let[e,t]of Object.entries(dt))Qe[e]={get(){let r=Jt(this,Xr(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};Qe.visible={get(){let e=Jt(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Ts=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Ts)Qe[e]={get(){let{level:t}=this;return function(...r){let n=Xr(dt.color[Ss[t]][e](...r),dt.color.close,this._styler);return Jt(this,n,this._isEmpty)}}};for(let e of Ts){let t="bg"+e[0].toUpperCase()+e.slice(1);Qe[t]={get(){let{level:r}=this;return function(...n){let o=Xr(dt.bgColor[Ss[r]][e](...n),dt.bgColor.close,this._styler);return Jt(this,o,this._isEmpty)}}}}var Lu=Object.defineProperties(()=>{},{...Qe,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Xr=(e,t,r)=>{let n,o;return r===void 0?(n=e,o=t):(n=r.openAll+e,o=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:o,parent:r}},Jt=(e,t,r)=>{let n=(...o)=>Zt(o[0])&&Zt(o[0].raw)?Es(n,Cs(n,...o)):Es(n,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(n,Lu),n._generator=e,n._styler=t,n._isEmpty=r,n},Es=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:o}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=Cu(t,r.close,r.open),r=r.parent;let i=t.indexOf(`
13
+ `);return i!==-1&&(t=Au(t,o,n,i)),n+t+o},jr,Cs=(e,...t)=>{let[r]=t;if(!Zt(r)||!Zt(r.raw))return t.join(" ");let n=t.slice(1),o=[r.raw[0]];for(let i=1;i<r.length;i++)o.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return jr===void 0&&(jr=ws()),jr(e,o.join(""))};Object.defineProperties(Qt.prototype,Qe);var er=Qt();er.supportsColor=Wr;er.stderr=Qt({level:zr?zr.level:0});er.stderr.supportsColor=zr;As.exports=er});var Ls=k((Kr,Yr)=>{u();(function(e,t){typeof Kr=="object"&&typeof Yr<"u"?Yr.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.tinycolor=t())})(Kr,(function(){"use strict";function e(a){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},e(a)}var t=/^\s+/,r=/\s+$/;function n(a,c){if(a=a||"",c=c||{},a instanceof n)return a;if(!(this instanceof n))return new n(a,c);var l=o(a);this._originalInput=a,this._r=l.r,this._g=l.g,this._b=l.b,this._a=l.a,this._roundA=Math.round(100*this._a)/100,this._format=c.format||l.format,this._gradientType=c.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=l.ok}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var c=this.toRgb();return(c.r*299+c.g*587+c.b*114)/1e3},getLuminance:function(){var c=this.toRgb(),l,h,E,x,U,W;return l=c.r/255,h=c.g/255,E=c.b/255,l<=.03928?x=l/12.92:x=Math.pow((l+.055)/1.055,2.4),h<=.03928?U=h/12.92:U=Math.pow((h+.055)/1.055,2.4),E<=.03928?W=E/12.92:W=Math.pow((E+.055)/1.055,2.4),.2126*x+.7152*U+.0722*W},setAlpha:function(c){return this._a=ve(c),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var c=m(this._r,this._g,this._b);return{h:c.h*360,s:c.s,v:c.v,a:this._a}},toHsvString:function(){var c=m(this._r,this._g,this._b),l=Math.round(c.h*360),h=Math.round(c.s*100),E=Math.round(c.v*100);return this._a==1?"hsv("+l+", "+h+"%, "+E+"%)":"hsva("+l+", "+h+"%, "+E+"%, "+this._roundA+")"},toHsl:function(){var c=s(this._r,this._g,this._b);return{h:c.h*360,s:c.s,l:c.l,a:this._a}},toHslString:function(){var c=s(this._r,this._g,this._b),l=Math.round(c.h*360),h=Math.round(c.s*100),E=Math.round(c.l*100);return this._a==1?"hsl("+l+", "+h+"%, "+E+"%)":"hsla("+l+", "+h+"%, "+E+"%, "+this._roundA+")"},toHex:function(c){return p(this._r,this._g,this._b,c)},toHexString:function(c){return"#"+this.toHex(c)},toHex8:function(c){return b(this._r,this._g,this._b,this._a,c)},toHex8String:function(c){return"#"+this.toHex8(c)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(B(this._r,255)*100)+"%",g:Math.round(B(this._g,255)*100)+"%",b:Math.round(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(B(this._r,255)*100)+"%, "+Math.round(B(this._g,255)*100)+"%, "+Math.round(B(this._b,255)*100)+"%)":"rgba("+Math.round(B(this._r,255)*100)+"%, "+Math.round(B(this._g,255)*100)+"%, "+Math.round(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:$[p(this._r,this._g,this._b,!0)]||!1},toFilter:function(c){var l="#"+S(this._r,this._g,this._b,this._a),h=l,E=this._gradientType?"GradientType = 1, ":"";if(c){var x=n(c);h="#"+S(x._r,x._g,x._b,x._a)}return"progid:DXImageTransform.Microsoft.gradient("+E+"startColorstr="+l+",endColorstr="+h+")"},toString:function(c){var l=!!c;c=c||this._format;var h=!1,E=this._a<1&&this._a>=0,x=!l&&E&&(c==="hex"||c==="hex6"||c==="hex3"||c==="hex4"||c==="hex8"||c==="name");return x?c==="name"&&this._a===0?this.toName():this.toRgbString():(c==="rgb"&&(h=this.toRgbString()),c==="prgb"&&(h=this.toPercentageRgbString()),(c==="hex"||c==="hex6")&&(h=this.toHexString()),c==="hex3"&&(h=this.toHexString(!0)),c==="hex4"&&(h=this.toHex8String(!0)),c==="hex8"&&(h=this.toHex8String()),c==="name"&&(h=this.toName()),c==="hsl"&&(h=this.toHslString()),c==="hsv"&&(h=this.toHsvString()),h||this.toHexString())},clone:function(){return n(this.toString())},_applyModification:function(c,l){var h=c.apply(null,[this].concat([].slice.call(l)));return this._r=h._r,this._g=h._g,this._b=h._b,this.setAlpha(h._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(I,arguments)},darken:function(){return this._applyModification(R,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(w,arguments)},greyscale:function(){return this._applyModification(A,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(c,l){return c.apply(null,[this].concat([].slice.call(l)))},analogous:function(){return this._applyCombination(ee,arguments)},complement:function(){return this._applyCombination(L,arguments)},monochromatic:function(){return this._applyCombination(z,arguments)},splitcomplement:function(){return this._applyCombination(X,arguments)},triad:function(){return this._applyCombination(P,[3])},tetrad:function(){return this._applyCombination(P,[4])}},n.fromRatio=function(a,c){if(e(a)=="object"){var l={};for(var h in a)a.hasOwnProperty(h)&&(h==="a"?l[h]=a[h]:l[h]=tt(a[h]));a=l}return n(a,c)};function o(a){var c={r:0,g:0,b:0},l=1,h=null,E=null,x=null,U=!1,W=!1;return typeof a=="string"&&(a=Qs(a)),e(a)=="object"&&(Te(a.r)&&Te(a.g)&&Te(a.b)?(c=i(a.r,a.g,a.b),U=!0,W=String(a.r).substr(-1)==="%"?"prgb":"rgb"):Te(a.h)&&Te(a.s)&&Te(a.v)?(h=tt(a.s),E=tt(a.v),c=d(a.h,h,E),U=!0,W="hsv"):Te(a.h)&&Te(a.s)&&Te(a.l)&&(h=tt(a.s),x=tt(a.l),c=f(a.h,h,x),U=!0,W="hsl"),a.hasOwnProperty("a")&&(l=a.a)),l=ve(l),{ok:U,format:a.format||W,r:Math.min(255,Math.max(c.r,0)),g:Math.min(255,Math.max(c.g,0)),b:Math.min(255,Math.max(c.b,0)),a:l}}function i(a,c,l){return{r:B(a,255)*255,g:B(c,255)*255,b:B(l,255)*255}}function s(a,c,l){a=B(a,255),c=B(c,255),l=B(l,255);var h=Math.max(a,c,l),E=Math.min(a,c,l),x,U,W=(h+E)/2;if(h==E)x=U=0;else{var K=h-E;switch(U=W>.5?K/(2-h-E):K/(h+E),h){case a:x=(c-l)/K+(c<l?6:0);break;case c:x=(l-a)/K+2;break;case l:x=(a-c)/K+4;break}x/=6}return{h:x,s:U,l:W}}function f(a,c,l){var h,E,x;a=B(a,360),c=B(c,100),l=B(l,100);function U(ce,rt,ge){return ge<0&&(ge+=1),ge>1&&(ge-=1),ge<1/6?ce+(rt-ce)*6*ge:ge<1/2?rt:ge<2/3?ce+(rt-ce)*(2/3-ge)*6:ce}if(c===0)h=E=x=l;else{var W=l<.5?l*(1+c):l+c-l*c,K=2*l-W;h=U(K,W,a+1/3),E=U(K,W,a),x=U(K,W,a-1/3)}return{r:h*255,g:E*255,b:x*255}}function m(a,c,l){a=B(a,255),c=B(c,255),l=B(l,255);var h=Math.max(a,c,l),E=Math.min(a,c,l),x,U,W=h,K=h-E;if(U=h===0?0:K/h,h==E)x=0;else{switch(h){case a:x=(c-l)/K+(c<l?6:0);break;case c:x=(l-a)/K+2;break;case l:x=(a-c)/K+4;break}x/=6}return{h:x,s:U,v:W}}function d(a,c,l){a=B(a,360)*6,c=B(c,100),l=B(l,100);var h=Math.floor(a),E=a-h,x=l*(1-c),U=l*(1-E*c),W=l*(1-(1-E)*c),K=h%6,ce=[l,U,x,x,W,l][K],rt=[W,l,l,U,x,x][K],ge=[x,x,W,l,l,U][K];return{r:ce*255,g:rt*255,b:ge*255}}function p(a,c,l,h){var E=[re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16))];return h&&E[0].charAt(0)==E[0].charAt(1)&&E[1].charAt(0)==E[1].charAt(1)&&E[2].charAt(0)==E[2].charAt(1)?E[0].charAt(0)+E[1].charAt(0)+E[2].charAt(0):E.join("")}function b(a,c,l,h,E){var x=[re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16)),re(on(h))];return E&&x[0].charAt(0)==x[0].charAt(1)&&x[1].charAt(0)==x[1].charAt(1)&&x[2].charAt(0)==x[2].charAt(1)&&x[3].charAt(0)==x[3].charAt(1)?x[0].charAt(0)+x[1].charAt(0)+x[2].charAt(0)+x[3].charAt(0):x.join("")}function S(a,c,l,h){var E=[re(on(h)),re(Math.round(a).toString(16)),re(Math.round(c).toString(16)),re(Math.round(l).toString(16))];return E.join("")}n.equals=function(a,c){return!a||!c?!1:n(a).toRgbString()==n(c).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function v(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.s-=c/100,l.s=O(l.s),n(l)}function w(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.s+=c/100,l.s=O(l.s),n(l)}function A(a){return n(a).desaturate(100)}function C(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.l+=c/100,l.l=O(l.l),n(l)}function I(a,c){c=c===0?0:c||10;var l=n(a).toRgb();return l.r=Math.max(0,Math.min(255,l.r-Math.round(255*-(c/100)))),l.g=Math.max(0,Math.min(255,l.g-Math.round(255*-(c/100)))),l.b=Math.max(0,Math.min(255,l.b-Math.round(255*-(c/100)))),n(l)}function R(a,c){c=c===0?0:c||10;var l=n(a).toHsl();return l.l-=c/100,l.l=O(l.l),n(l)}function T(a,c){var l=n(a).toHsl(),h=(l.h+c)%360;return l.h=h<0?360+h:h,n(l)}function L(a){var c=n(a).toHsl();return c.h=(c.h+180)%360,n(c)}function P(a,c){if(isNaN(c)||c<=0)throw new Error("Argument to polyad must be a positive number");for(var l=n(a).toHsl(),h=[n(a)],E=360/c,x=1;x<c;x++)h.push(n({h:(l.h+x*E)%360,s:l.s,l:l.l}));return h}function X(a){var c=n(a).toHsl(),l=c.h;return[n(a),n({h:(l+72)%360,s:c.s,l:c.l}),n({h:(l+216)%360,s:c.s,l:c.l})]}function ee(a,c,l){c=c||6,l=l||30;var h=n(a).toHsl(),E=360/l,x=[n(a)];for(h.h=(h.h-(E*c>>1)+720)%360;--c;)h.h=(h.h+E)%360,x.push(n(h));return x}function z(a,c){c=c||6;for(var l=n(a).toHsv(),h=l.h,E=l.s,x=l.v,U=[],W=1/c;c--;)U.push(n({h,s:E,v:x})),x=(x+W)%1;return U}n.mix=function(a,c,l){l=l===0?0:l||50;var h=n(a).toRgb(),E=n(c).toRgb(),x=l/100,U={r:(E.r-h.r)*x+h.r,g:(E.g-h.g)*x+h.g,b:(E.b-h.b)*x+h.b,a:(E.a-h.a)*x+h.a};return n(U)},n.readability=function(a,c){var l=n(a),h=n(c);return(Math.max(l.getLuminance(),h.getLuminance())+.05)/(Math.min(l.getLuminance(),h.getLuminance())+.05)},n.isReadable=function(a,c,l){var h=n.readability(a,c),E,x;switch(x=!1,E=Js(l),E.level+E.size){case"AAsmall":case"AAAlarge":x=h>=4.5;break;case"AAlarge":x=h>=3;break;case"AAAsmall":x=h>=7;break}return x},n.mostReadable=function(a,c,l){var h=null,E=0,x,U,W,K;l=l||{},U=l.includeFallbackColors,W=l.level,K=l.size;for(var ce=0;ce<c.length;ce++)x=n.readability(a,c[ce]),x>E&&(E=x,h=n(c[ce]));return n.isReadable(a,h,{level:W,size:K})||!U?h:(l.includeFallbackColors=!1,n.mostReadable(a,["#fff","#000"],l))};var H=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=n.hexNames=pe(H);function pe(a){var c={};for(var l in a)a.hasOwnProperty(l)&&(c[a[l]]=l);return c}function ve(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function B(a,c){ie(a)&&(a="100%");var l=se(a);return a=Math.min(c,Math.max(0,parseFloat(a))),l&&(a=parseInt(a*c,10)/100),Math.abs(a-c)<1e-6?1:a%c/parseFloat(c)}function O(a){return Math.min(1,Math.max(0,a))}function F(a){return parseInt(a,16)}function ie(a){return typeof a=="string"&&a.indexOf(".")!=-1&&parseFloat(a)===1}function se(a){return typeof a=="string"&&a.indexOf("%")!=-1}function re(a){return a.length==1?"0"+a:""+a}function tt(a){return a<=1&&(a=a*100+"%"),a}function on(a){return Math.round(parseFloat(a)*255).toString(16)}function sn(a){return F(a)/255}var he=(function(){var a="[-\\+]?\\d+%?",c="[-\\+]?\\d*\\.\\d+%?",l="(?:"+c+")|(?:"+a+")",h="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?",E="[\\s|\\(]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")[,|\\s]+("+l+")\\s*\\)?";return{CSS_UNIT:new RegExp(l),rgb:new RegExp("rgb"+h),rgba:new RegExp("rgba"+E),hsl:new RegExp("hsl"+h),hsla:new RegExp("hsla"+E),hsv:new RegExp("hsv"+h),hsva:new RegExp("hsva"+E),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}})();function Te(a){return!!he.CSS_UNIT.exec(a)}function Qs(a){a=a.replace(t,"").replace(r,"").toLowerCase();var c=!1;if(H[a])a=H[a],c=!0;else if(a=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var l;return(l=he.rgb.exec(a))?{r:l[1],g:l[2],b:l[3]}:(l=he.rgba.exec(a))?{r:l[1],g:l[2],b:l[3],a:l[4]}:(l=he.hsl.exec(a))?{h:l[1],s:l[2],l:l[3]}:(l=he.hsla.exec(a))?{h:l[1],s:l[2],l:l[3],a:l[4]}:(l=he.hsv.exec(a))?{h:l[1],s:l[2],v:l[3]}:(l=he.hsva.exec(a))?{h:l[1],s:l[2],v:l[3],a:l[4]}:(l=he.hex8.exec(a))?{r:F(l[1]),g:F(l[2]),b:F(l[3]),a:sn(l[4]),format:c?"name":"hex8"}:(l=he.hex6.exec(a))?{r:F(l[1]),g:F(l[2]),b:F(l[3]),format:c?"name":"hex"}:(l=he.hex4.exec(a))?{r:F(l[1]+""+l[1]),g:F(l[2]+""+l[2]),b:F(l[3]+""+l[3]),a:sn(l[4]+""+l[4]),format:c?"name":"hex8"}:(l=he.hex3.exec(a))?{r:F(l[1]+""+l[1]),g:F(l[2]+""+l[2]),b:F(l[3]+""+l[3]),format:c?"name":"hex"}:!1}function Js(a){var c,l;return a=a||{level:"AA",size:"small"},c=(a.level||"AA").toUpperCase(),l=(a.size||"small").toLowerCase(),c!=="AA"&&c!=="AAA"&&(c="AA"),l!=="small"&&l!=="large"&&(l="small"),{level:c,size:l}}return n}))});var Ps=k((Pg,Is)=>{u();var pt=Ls(),_s={r:256,g:256,b:256,a:1},Bs={h:360,s:1,v:1,a:1};function Jr(e,t,r){let n={};for(let o in e)e.hasOwnProperty(o)&&(n[o]=r===0?0:(t[o]-e[o])/r);return n}function en(e,t,r,n){let o={};for(let i in t)t.hasOwnProperty(i)&&(o[i]=e[i]*r+t[i],o[i]=o[i]<0?o[i]+n[i]:n[i]!==1?o[i]%n[i]:o[i]);return o}function Zr(e,t,r){let n=e.color.toRgb(),o=t.color.toRgb(),i=Jr(n,o,r),s=[e.color];for(let f=1;f<r;f++){let m=en(i,n,f,_s);s.push(pt(m))}return s}function Ds(e,t,r,n){let o=e.color.toHsv(),i=t.color.toHsv();if(o.s===0||i.s===0)return Zr(e,t,r);let s;if(typeof n=="boolean")s=n;else{let p=o.h<i.h&&i.h-o.h<180||o.h>i.h&&o.h-i.h>180;s=n==="long"&&p||n==="short"&&!p}let f=Jr(o,i,r),m=[e.color],d;o.h<=i.h&&!s||o.h>=i.h&&s?d=i.h-o.h:s?d=360-i.h+o.h:d=360-o.h+i.h,f.h=Math.pow(-1,s?1:0)*Math.abs(d)/r;for(let p=1;p<r;p++){let b=en(f,o,p,Bs);m.push(pt(b))}return m}function ks(e,t){let r=e.length;if(t=parseInt(t,10),isNaN(t)||t<2)throw new Error("Invalid number of steps (< 2)");if(t<r)throw new Error("Number of steps cannot be inferior to number of stops");let n=[];for(let i=1;i<r;i++){let s=(t-1)*(e[i].pos-e[i-1].pos);n.push(Math.max(1,Math.round(s)))}let o=1;for(let i=r-1;i--;)o+=n[i];for(;o!==t;)if(o<t){let i=Math.min.apply(null,n);n[n.indexOf(i)]++,o++}else{let i=Math.max.apply(null,n);n[n.indexOf(i)]--,o--}return n}function Ms(e,t,r,n){if(t<0||t>1)throw new Error("Position must be between 0 and 1");let o,i;for(let m=0,d=e.length;m<d-1;m++)if(t>=e[m].pos&&t<e[m+1].pos){o=e[m],i=e[m+1];break}o||(o=i=e[e.length-1]);let s=Jr(o.color[r](),i.color[r](),(i.pos-o.pos)*100),f=en(s,o.color[r](),(t-o.pos)*100,n);return pt(f)}var Qr=class e{constructor(t){if(t.length<2)throw new Error("Invalid number of stops (< 2)");let r=t[0].pos!==void 0,n=t.length,o=-1,i=!1;this.stops=t.map((s,f)=>{let m=s.pos!==void 0;if(r^m)throw new Error("Cannot mix positionned and not posionned color stops");if(m){let d=s.color!==void 0;if(!d&&(i||f===0||f===n-1))throw new Error("Cannot define two consecutive position-only stops");if(i=!d,s={color:d?pt(s.color):null,colorLess:!d,pos:s.pos},s.pos<0||s.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(s.pos<o)throw new Error("Color stops positions are not ordered");o=s.pos}else s={color:pt(s.color!==void 0?s.color:s),pos:f/(n-1)};return s}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),n++),this.stops[n-1].pos!==1&&this.stops.push({color:this.stops[n-1].color,pos:1})}reverse(){let t=[];return this.stops.forEach(function(r){t.push({color:r.color,pos:1-r.pos})}),new e(t.reverse())}loop(){let t=[],r=[];return this.stops.forEach(n=>{t.push({color:n.color,pos:n.pos/2})}),this.stops.slice(0,-1).forEach(n=>{r.push({color:n.color,pos:1-n.pos/2})}),new e(t.concat(r.reverse()))}rgb(t){let r=ks(this.stops,t),n=[];this.stops.forEach((o,i)=>{o.colorLess&&(o.color=Zr(this.stops[i-1],this.stops[i+1],2)[1])});for(let o=0,i=this.stops.length;o<i-1;o++){let s=Zr(this.stops[o],this.stops[o+1],r[o]);n.splice(n.length,0,...s)}return n.push(this.stops[this.stops.length-1].color),n}hsv(t,r){let n=ks(this.stops,t),o=[];this.stops.forEach((i,s)=>{i.colorLess&&(i.color=Ds(this.stops[s-1],this.stops[s+1],2,r)[1])});for(let i=0,s=this.stops.length;i<s-1;i++){let f=Ds(this.stops[i],this.stops[i+1],n[i],r);o.splice(o.length,0,...f)}return o.push(this.stops[this.stops.length-1].color),o}css(t,r){t=t||"linear",r=r||(t==="linear"?"to right":"ellipse at center");let n=t+"-gradient("+r;return this.stops.forEach(function(o){n+=", "+(o.colorLess?"":o.color.toRgbString()+" ")+o.pos*100+"%"}),n+=")",n}rgbAt(t){return Ms(this.stops,t,"toRgb",_s)}hsvAt(t){return Ms(this.stops,t,"toHsv",Bs)}};Is.exports=function(e){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');e=arguments[0]}else e=Array.prototype.slice.call(arguments);return new Qr(e)}});var Ns=k((Fg,tr)=>{"use strict";u();var Fs=Rs(),Du=Ps(),Os=/\s/g;function tn(...e){let t=Du.apply(this,e),r=(n,o)=>ku(n?n.toString():"",t,o);return r.multiline=(n,o)=>Mu(n?n.toString():"",t,o),r}var Us=(e,t,r)=>t.interpolation.toLowerCase()==="hsv"?e.hsv(r,t.hsvSpin.toLowerCase()):e.rgb(r);function ku(e,t,r){let n=$s(r),o=Math.max(e.replace(Os,"").length,t.stops.length),i=Us(t,n,o),s="";for(let f of e)s+=f.match(Os)?f:Fs.hex(i.shift().toHex())(f);return s}function Mu(e,t,r){let n=$s(r),o=e.split(`
14
+ `),i=Math.max.apply(null,o.map(m=>m.length).concat([t.stops.length])),s=Us(t,n,i),f=[];for(let m of o){let d=s.slice(0),p="";for(let b of m)p+=Fs.hex(d.shift().toHex())(b);f.push(p)}return f.join(`
15
+ `)}function $s(e){let t={interpolation:"rgb",hsvSpin:"short",...e};if(e!==void 0&&typeof e!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof e}\``);if(typeof t.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof t.interpolation}\``);if(t.interpolation.toLowerCase()==="hsv"&&typeof t.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof t.hsvSpin}\``);return t}var ht={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};tr.exports=tn;for(let e in ht)tr.exports[e]=t=>new tn(ht[e].colors)(t,ht[e].options),tr.exports[e].multiline=t=>new tn(ht[e].colors).multiline(t,ht[e].options)});u();u();u();u();var Ho=D(mo(),1);import{Buffer as Il}from"node:buffer";import Pl from"node:path";import Dr from"node:child_process";import Lt from"node:process";u();function br(e){let t=typeof e=="string"?`
16
+ `:10,r=typeof e=="string"?"\r":13;return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e}u();var Tt=new WeakMap,po=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(Tt.set(i,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return r};return bn(i,e),Tt.set(i,n),i};po.callCount=e=>{if(!Tt.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Tt.get(e)};var ho=po;u();import ol from"node:process";u();import{constants as Qa}from"node:os";u();var go=()=>{let e=xo-bo+1;return Array.from({length:e},Ka)},Ka=(e,t)=>({name:`SIGRT${t+1}`,number:bo+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),bo=34,xo=64;u();import{constants as Ya}from"node:os";u();var yo=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var xr=()=>{let e=go();return[...yo,...e].map(Za)},Za=({name:e,number:t,description:r,action:n,forced:o=!1,standard:i})=>{let{signals:{[e]:s}}=Ya,f=s!==void 0;return{name:e,number:f?s:t,description:r,supported:f,action:n,forced:o,standard:i}};var Ja=()=>{let e=xr();return Object.fromEntries(e.map(el))},el=({name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:o,forced:i,standard:s}],wo=Ja(),tl=()=>{let e=xr(),t=65,r=Array.from({length:t},(n,o)=>rl(o,e));return Object.assign({},...r)},rl=(e,t)=>{let r=nl(e,t);if(r===void 0)return{};let{name:n,description:o,supported:i,action:s,forced:f,standard:m}=r;return{[e]:{name:n,number:e,description:o,supported:i,action:s,forced:f,standard:m}}},nl=(e,t)=>{let r=t.find(({name:n})=>Qa.signals[n]===e);return r!==void 0?r:t.find(n=>n.number===e)},_f=tl();var il=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":r!==void 0?`failed with ${r}`:n!==void 0?`was killed with ${n} (${o})`:i!==void 0?`failed with exit code ${i}`:"failed",ot=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:i,command:s,escapedCommand:f,timedOut:m,isCanceled:d,killed:p,parsed:{options:{timeout:b,cwd:S=ol.cwd()}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let v=o===void 0?void 0:wo[o].description,w=n&&n.code,C=`Command ${il({timedOut:m,timeout:b,errorCode:w,signal:o,signalDescription:v,exitCode:i,isCanceled:d})}: ${s}`,I=Object.prototype.toString.call(n)==="[object Error]",R=I?`${C}
17
+ ${n.message}`:C,T=[R,t,e].filter(Boolean).join(`
18
+ `);return I?(n.originalMessage=n.message,n.message=T):n=new Error(T),n.shortMessage=R,n.command=s,n.escapedCommand=f,n.exitCode=i,n.signal=o,n.signalDescription=v,n.stdout=e,n.stderr=t,n.cwd=S,r!==void 0&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!m,n.isCanceled=d,n.killed=p&&!m,n};u();var Ct=["stdin","stdout","stderr"],sl=e=>Ct.some(t=>e[t]!==void 0),Eo=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return Ct.map(n=>e[n]);if(sl(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ct.map(n=>`\`${n}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,Ct.length);return Array.from({length:r},(n,o)=>t[o])};u();var So=D(pa(),1);import al from"node:os";var ll=1e3*5,vo=(e,t="SIGTERM",r={})=>{let n=e(t);return cl(e,t,r,n),n},cl=(e,t,r,n)=>{if(!ul(t,r,n))return;let o=ml(r),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},ul=(e,{forceKillAfterTimeout:t},r)=>fl(e)&&t!==!1&&r,fl=e=>e===al.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",ml=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return ll;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},To=(e,t)=>{e.kill()&&(t.isCanceled=!0)},dl=(e,t,r)=>{e.kill(t),r(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},Co=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{if(t===0||t===void 0)return n;let o,i=new Promise((f,m)=>{o=setTimeout(()=>{dl(e,r,m)},t)}),s=n.finally(()=>{clearTimeout(o)});return Promise.race([i,s])},Ao=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Ro=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let o=(0,So.default)(()=>{e.kill()});return n.finally(()=>{o()})};u();import{createWriteStream as pl}from"node:fs";import{ChildProcess as hl}from"node:child_process";u();function At(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function yr(e){return At(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"}var gl=e=>e instanceof hl&&typeof e.then=="function",wr=(e,t,r)=>{if(typeof r=="string")return e[t].pipe(pl(r)),e;if(yr(r))return e[t].pipe(r),e;if(!gl(r))throw new TypeError("The second argument must be a string, a stream or an Execa child process.");if(!yr(r.stdin))throw new TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},Lo=e=>{e.stdout!==null&&(e.pipeStdout=wr.bind(void 0,e,"stdout")),e.stderr!==null&&(e.pipeStderr=wr.bind(void 0,e,"stderr")),e.all!==void 0&&(e.pipeAll=wr.bind(void 0,e,"all"))};u();import{createReadStream as xl,readFileSync as yl}from"node:fs";var vr=D(wa(),1),Mo=D(ko(),1),_o=e=>{if(e!==void 0)throw new TypeError("The `input` and `inputFile` options cannot be both set.")},wl=({input:e,inputFile:t})=>typeof t!="string"?e:(_o(e),yl(t)),Bo=e=>{let t=wl(e);if(At(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t},El=({input:e,inputFile:t})=>typeof t!="string"?e:(_o(e),xl(t)),Io=(e,t)=>{let r=El(t);r!==void 0&&(At(r)?r.pipe(e.stdin):e.stdin.end(r))},Po=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=(0,Mo.default)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},Er=async(e,t)=>{if(!(!e||t===void 0)){e.destroy();try{return await t}catch(r){return r.bufferedData}}},Sr=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(!(!e||!r))return t?(0,vr.default)(e,{encoding:t,maxBuffer:n}):vr.default.buffer(e,{maxBuffer:n})},Oo=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:i},s)=>{let f=Sr(e,{encoding:n,buffer:o,maxBuffer:i}),m=Sr(t,{encoding:n,buffer:o,maxBuffer:i}),d=Sr(r,{encoding:n,buffer:o,maxBuffer:i*2});try{return await Promise.all([s,f,m,d])}catch(p){return Promise.all([{error:p,signal:p.signal,timedOut:p.timedOut},Er(e,f),Er(t,m),Er(r,d)])}};u();var Sl=(async()=>{})().constructor.prototype,vl=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Sl,e)]),Tr=(e,t)=>{for(let[r,n]of vl){let o=typeof t=="function"?(...i)=>Reflect.apply(n.value,t(),i):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}},Fo=e=>new Promise((t,r)=>{e.on("exit",(n,o)=>{t({exitCode:n,signal:o})}),e.on("error",n=>{r(n)}),e.stdin&&e.stdin.on("error",n=>{r(n)})});u();import{Buffer as Tl}from"node:buffer";import{ChildProcess as Cl}from"node:child_process";var No=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Al=/^[\w.-]+$/,Rl=/"/g,Ll=e=>typeof e!="string"||Al.test(e)?e:`"${e.replace(Rl,'\\"')}"`,Cr=(e,t)=>No(e,t).join(" "),Ar=(e,t)=>No(e,t).map(r=>Ll(r)).join(" "),Dl=/ +/g;var Uo=e=>{let t=typeof e;if(t==="string")return e;if(t==="number")return String(e);if(t==="object"&&e!==null&&!(e instanceof Cl)&&"stdout"in e){let r=typeof e.stdout;if(r==="string")return e.stdout;if(Tl.isBuffer(e.stdout))return e.stdout.toString();throw new TypeError(`Unexpected "${r}" stdout in template expression`)}throw new TypeError(`Unexpected "${t}" in template expression`)},$o=(e,t,r)=>r||e.length===0||t.length===0?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],kl=({templates:e,expressions:t,tokens:r,index:n,template:o})=>{let i=o??e.raw[n],s=i.split(Dl).filter(Boolean),f=$o(r,s,i.startsWith(" "));if(n===t.length)return f;let m=t[n],d=Array.isArray(m)?m.map(p=>Uo(p)):[Uo(m)];return $o(f,d,i.endsWith(" "))},Rr=(e,t)=>{let r=[];for(let[n,o]of e.entries())r=kl({templates:e,expressions:t,tokens:r,index:n,template:o});return r};u();import{debuglog as Ml}from"node:util";import _l from"node:process";var qo=Ml("execa").enabled,Rt=(e,t)=>String(e).padStart(t,"0"),Bl=()=>{let e=new Date;return`${Rt(e.getHours(),2)}:${Rt(e.getMinutes(),2)}:${Rt(e.getSeconds(),2)}.${Rt(e.getMilliseconds(),3)}`},Lr=(e,{verbose:t})=>{t&&_l.stderr.write(`[${Bl()}] ${e}
19
+ `)};var Ol=1e3*1e3*100,Fl=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{let i=t?{...Lt.env,...e}:e;return r?xn({env:i,cwd:n,execPath:o}):i},jo=(e,t,r={})=>{let n=Ho.default._parse(e,t,r);return e=n.command,t=n.args,r=n.options,r={maxBuffer:Ol,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:r.cwd||Lt.cwd(),execPath:Lt.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:qo,...r},r.env=Fl(r),r.stdio=Eo(r),Lt.platform==="win32"&&Pl.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},it=(e,t,r)=>typeof t!="string"&&!Il.isBuffer(t)?r===void 0?void 0:"":e.stripFinalNewline?br(t):t;function Pe(e,t,r){let n=jo(e,t,r),o=Cr(e,t),i=Ar(e,t);Lr(i,n.options),Ao(n.options);let s;try{s=Dr.spawn(n.file,n.args,n.options)}catch(v){let w=new Dr.ChildProcess,A=Promise.reject(ot({error:v,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Tr(w,A),w}let f=Fo(s),m=Co(s,n.options,f),d=Ro(s,n.options,m),p={isCanceled:!1};s.kill=vo.bind(null,s.kill.bind(s)),s.cancel=To.bind(null,s,p);let S=ho(async()=>{let[{error:v,exitCode:w,signal:A,timedOut:C},I,R,T]=await Oo(s,n.options,d),L=it(n.options,I),P=it(n.options,R),X=it(n.options,T);if(v||w!==0||A!==null){let ee=ot({error:v,exitCode:w,signal:A,stdout:L,stderr:P,all:X,command:o,escapedCommand:i,parsed:n,timedOut:C,isCanceled:p.isCanceled||(n.options.signal?n.options.signal.aborted:!1),killed:s.killed});if(!n.options.reject)return ee;throw ee}return{command:o,escapedCommand:i,exitCode:0,stdout:L,stderr:P,all:X,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Io(s,n.options),s.all=Po(s,n.options),Lo(s),Tr(s,S),s}function Ul(e,t,r){let n=jo(e,t,r),o=Cr(e,t),i=Ar(e,t);Lr(i,n.options);let s=Bo(n.options),f;try{f=Dr.spawnSync(n.file,n.args,{...n.options,input:s})}catch(p){throw ot({error:p,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let m=it(n.options,f.stdout,f.error),d=it(n.options,f.stderr,f.error);if(f.error||f.status!==0||f.signal!==null){let p=ot({stdout:m,stderr:d,error:f.error,signal:f.signal,exitCode:f.status,command:o,escapedCommand:i,parsed:n,timedOut:f.error&&f.error.code==="ETIMEDOUT",isCanceled:!1,killed:f.signal!==null});if(!n.options.reject)return p;throw p}return{command:o,escapedCommand:i,exitCode:0,stdout:m,stderr:d,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}var $l=({input:e,inputFile:t,stdio:r})=>e===void 0&&t===void 0&&r===void 0?{stdin:"inherit"}:{},Go=(e={})=>({preferLocal:!0,...$l(e),...e});function Wo(e){function t(r,...n){if(!Array.isArray(r))return Wo({...e,...r});let[o,...i]=Rr(r,n);return Pe(o,i,Go(e))}return t.sync=(r,...n)=>{if(!Array.isArray(r))throw new TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[o,...i]=Rr(r,n);return Ul(o,i,Go(e))},t}var km=Wo();import{userInfo as Nl}from"os";async function Om(e=process.platform){Ie(St`Obtaining user name...`);let t=ql();if(t)return t;let r=Gl();if(r)return r;try{if(e==="win32"){let{stdout:o}=await Pe("whoami");return Hl(o)}let{stdout:n}=await Pe("id",["-u"]);try{let{stdout:o}=await Pe("id",["-un",n]);return o}catch{}return jl(n)}catch{return null}}function zo(e=process.platform,t=process.arch){let r;return t==="x64"?r="amd64":t==="ia32"?r="386":r=t,{platform:e.match(/^win.+/)?"windows":e,arch:r}}function ql(){let{env:e}=process;return e.SUDO_USER||e.C9_USER||e.LOGNAME||e.USER||e.LNAME||e.USERNAME}function Gl(){try{return Nl().username}catch{return null}}function Hl(e){return e.replace(/^.*\\/,"")}function jl(e){return`no-username-${e}`}var Xo=D(ga()),Ko=D(ya());import{fstatSync as Wl}from"fs";var zl=10*1024*1024;async function Ym(e){if(vn())return!1;let t=await import("./open-VA7TLUIL.js");try{return await t.default(e),!0}catch{return!1}}async function Zm(e,t,r){return(await kr(e,t,r)).stdout}async function Vl(e,t,r){let n=await kr(e,t,r,{reject:!1});return{stdout:n.stdout,stderr:n.stderr,exitCode:n.exitCode??0}}function Yo(e){let t=[],r="",n=null;for(let o of e)n?o===n?n=null:r+=o:o==='"'||o==="'"?n=o:o===" "||o===" "?r&&(t.push(r),r=""):r+=o;return r&&t.push(r),t}async function Qm(e,t){let[r,...n]=Yo(e);return r?Vl(r,n,t):{stdout:"",stderr:"Empty command",exitCode:1}}async function Jm(e,t){let[r,...n]=Yo(e);if(!r)throw new qe("Empty command");await Xl(r,n,t)}async function Xl(e,t,r){if(r){let i=zo().platform==="windows";r.background=i?!1:r.background}let n=kr(e,t,r);r?.background&&n.unref(),r?.stderr&&r.stderr!=="inherit"&&n.stderr?.pipe(r.stderr,{end:!1}),r?.stdout&&r.stdout!=="inherit"&&n.stdout?.pipe(r.stdout,{end:!1});let o=!1;r?.signal?.addEventListener("abort",()=>{let i=n.pid;i&&(Ie(`Killing process ${i}: ${e} ${t.join(" ")}`),o=!0,wt(i,"SIGTERM"))});try{await n}catch(i){if(o)return;if(r?.externalErrorHandler)await r.externalErrorHandler(i);else{let s=new Et(i.message,e,t);throw s.stack=i.stack,s}}}function kr(e,t,r,n){let o=r?.env??process.env;ke()&&(o.FORCE_COLOR="1");let i=r?.cwd??cn();Kl(e,{cwd:i});let s=Pe(e,t,{env:o,cwd:i,input:r?.input,stdio:r?.background?"ignore":r?.stdio,stdin:r?.stdin,stdout:r?.stdout==="inherit"?"inherit":void 0,stderr:r?.stderr==="inherit"?"inherit":void 0,windowsHide:!1,detached:r?.background,cleanup:!r?.background,...n});return Ie(`Running system process${r?.background?" in background":""}:
20
+ \xB7 Command: ${e} ${t.join(" ")}
21
+ \xB7 Working directory: ${i}
22
+ `),s}function Kl(e,t){let r=`${t.cwd}${an}${process.env.PATH}`,n=Ko.default.sync(e,{nothrow:!0,path:r});if(n&&ln(n)===t.cwd){let o=["Skipped run of unsecure binary",{command:e},"found in the current directory."],i="Please remove that file or review your current PATH.";throw Vo({headline:o,body:i}),new qe(o,i)}}async function ed(e){return new Promise(t=>{setTimeout(t,1e3*e)})}function td(){return Xo.default.stdout}function Zo(){return or(process.env.CI)?!1:!!(process.stdin.isTTY&&process.stdout.isTTY)}function rd(){return or(process.env.CI)}async function nd(){return(await import("./is-wsl-TN2CXYI7.js")).default}function Yl(){try{let e=Wl(0);return e.isFIFO()||e.isFile()}catch{return!1}}async function od(){if(!Yl())return;let e="",t=0;process.stdin.setEncoding("utf8");for await(let r of process.stdin){let n=String(r);if(t+=Buffer.byteLength(n,"utf8"),t>zl)throw new qe("Stdin input exceeded the maximum allowed size.");e+=n}return e.trim()}u();var Mt=D(Jo(),1),kt=class extends Mt.AbortController{},ei=class extends Mt.AbortSignal{};u();u();var ae=D(N(),1);import{EventEmitter as Ql}from"events";var ti=(0,ae.createContext)(null);function te(){let e=(0,ae.useContext)(ti);if(!e)throw new Error("useComplete() called outside InkLifecycleRoot");return e}function Jl({children:e}){let{exit:t}=dn(),[r,n]=(0,ae.useState)(null),o=(0,ae.useCallback)(i=>{n({error:i})},[]);return(0,ae.useEffect)(()=>{r!==null&&t(r.error)},[r,t]),ae.default.createElement(ti.Provider,{value:o},e)}function at(e,{logLevel:t="info",renderOptions:r}){let{output:n,unmount:o}=ec(e,r);return n&&yn(n,t),o(),n}async function Me(e,t){let{waitUntilExit:r}=sr(ae.default.createElement(Jl,null,e),{patchConsole:!nt(),...t});await r()}var Mr=class extends Ql{constructor(t){super(),this.frames=[],this.write=r=>{this.frames.push(r),r!==`
23
+ `&&(this._lastFrame=r)},this.lastFrame=()=>this._lastFrame,this.columns=t.columns??80,this.rows=t.rows??80}},ec=(e,t)=>{let r=nt()?80:process.stdout.columns,n=t?.stdout??new Mr({columns:r}),o=sr(e,{stdout:n,debug:!0,exitOnCtrlC:!1,patchConsole:!1});return{output:n.lastFrame(),unmount:o.unmount}};function me(e,t,r=()=>{wt(process.pid,"SIGINT")}){e==="c"&&t.ctrl&&r()}var Z=D(N(),1);u();import tc from"node:process";u();u();import be from"node:process";function _r(){return be.platform!=="win32"?be.env.TERM!=="linux":!!be.env.CI||!!be.env.WT_SESSION||!!be.env.TERMINUS_SUBLIME||be.env.ConEmuTask==="{cmd::Cmder}"||be.env.TERM_PROGRAM==="Terminus-Sublime"||be.env.TERM_PROGRAM==="vscode"||be.env.TERM==="xterm-256color"||be.env.TERM==="alacritty"||be.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var{platform:rc}=tc,ri={square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},nc={...ri,...rc==="linux"?{circleQuestionMark:"?\u20DD",questionMarkPrefix:"?\u20DD"}:{circleQuestionMark:"?",questionMarkPrefix:"?"},tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},oc={...ri,tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},ic=_r(),sc=ic?nc:oc,ne=sc;import{Writable as ac}from"stream";import{AsyncLocalStorage as lc}from"node:async_hooks";function Br(e){return e<10?`0${e}`:e.toString()}function cc(){let e=new Date,t=Br(e.getHours()),r=Br(e.getMinutes()),n=Br(e.getSeconds());return`${t}:${r}:${n}`}var ni=new lc;function Pd(e,t){return ni.run(e,t)}var oi=({processes:e,prefixColumnSize:t,abortSignal:r,showTimestamps:n=!0,keepRunningAfterProcessesResolve:o=!1,useAlternativeColorPalette:i=!1})=>{let[s,f]=(0,Z.useState)([]),[m,d]=(0,Z.useState)(null),p=te(),b=(0,Z.useMemo)(()=>i?["#b994c3","#e69e19","#d17a73","cyan","magenta","blue"]:["yellow","cyan","magenta","green","blue"],[i]),S=(0,Z.useMemo)(()=>{let T=t??e.reduce((L,P)=>Math.max(L,P.prefix.length),0);return Math.min(T,25)},[e,t]),v=(R,T)=>{let L=T.indexOf(R);return L!==-1?L:(T.push(R),T.length-1)},w=(0,Z.useCallback)(R=>{let T=R%b.length;return b[T]},[b]),A=(0,Z.useCallback)((R,T)=>new ac({write(L,P,X){let ee=ni.getStore(),z=ee?.outputPrefix??R.prefix,H=ee?.stripAnsi??!0,$=L.toString("utf8").replace(/(\n)$/,""),pe=v(z,T),ve=H?fn($).split(/\n/):$.split(/\n/);f(B=>[...B,{color:w(pe),prefix:z,lines:ve}]),X()}}),[w]),C=R=>R.length>S?R.substring(0,S):`${" ".repeat(S-R.length)}${R}`;(0,Z.useEffect)(()=>{(async()=>{let T=[];try{await Promise.all(e.map(async L=>{let P=A(L,T),X=A(L,T);await L.action(P,X,r)})),o||d({})}catch(L){o||d({error:L})}})()},[r,e,A,o]),(0,Z.useEffect)(()=>{m!==null&&p(m.error)},[m,p]);let{lineVertical:I}=ne;return Z.default.createElement(mn,{items:s},(R,T)=>Z.default.createElement(g,{flexDirection:"column",key:T},R.lines.map((L,P)=>Z.default.createElement(g,{key:P,flexDirection:"row"},Z.default.createElement(y,null,n?Z.default.createElement(y,null,cc()," ",I," "):null,Z.default.createElement(y,{color:R.color},C(R.prefix)),Z.default.createElement(y,null," ",I," ",L))))))};u();u();u();u();var It=D(N(),1),_t=20,Bt=80;function de(){let{stdout:e}=De(),[t,r]=(0,It.useState)(ii(e));return(0,It.useLayoutEffect)(()=>{if(!e)return;function n(){r(ii(e))}return e.on("resize",n),()=>{e.off("resize",n)}},[]),t}function ii(e){let t=e?.columns??Bt,r=t,n=t;return t<=_t?(t=_t,r=_t,n=_t):t>Bt&&(r=si({fullWidth:t,fraction:[1,3],minWidth:Bt}),n=si({fullWidth:t,fraction:[2,3],minWidth:Bt})),{fullWidth:t,oneThird:r,twoThirds:n}}function si({fullWidth:e,fraction:t,minWidth:r}){let n=Math.floor(e/t[1]*t[0]);return n<r?r:n}var Y=D(N(),1);function Pt(e){return{success:"green",error:"red",warning:"yellow",info:"dim",external_error:"red"}[e]}var uc=()=>{let e=(0,Y.useContext)(ar);if(e===null||e.links.current===null)return null;let t=e.links.current,r=Object.keys(t);return r.length>0?Y.default.createElement(g,{marginBottom:1,marginTop:-1,flexDirection:"column"},r.map(n=>Y.default.createElement(y,{key:n},`[${n}] ${t[n]?.url}`))):null},fc=({type:e,children:t})=>{let{twoThirds:r}=de(),n=(0,Y.useRef)({});return Y.default.createElement(ar.Provider,{value:{links:n,addLink:(o,i)=>{let s=Object.keys(n.current).find(m=>n.current[m].url===i);if(s)return s;let f=(Object.keys(n.current).length+1).toString();return n.current={...n.current,[f]:{label:o,url:i}},f}}},Y.default.createElement(g,{width:r,marginBottom:1,borderStyle:"round",flexDirection:"column",borderColor:Pt(e)},Y.default.createElement(g,{marginTop:-1,marginLeft:1},Y.default.createElement(y,null,` ${e.replace(/_/g," ")} `)),Y.default.createElement(g,{flexDirection:"column",paddingY:1,paddingX:2,gap:1},t)),Y.default.createElement(uc,null))},mc=({type:e,children:t})=>{let{twoThirds:r}=de(),n=r-2-e.length-2;return n<0&&(n=0),Y.default.createElement(g,{flexDirection:"column",marginBottom:1,gap:1},Y.default.createElement(y,null,Y.default.createElement(y,{color:Pt(e)},"\u2500".repeat(2)),Y.default.createElement(y,null,` ${e.replace(/_/g," ")} `),Y.default.createElement(y,{color:Pt(e)},"\u2500".repeat(n))),t,Y.default.createElement(y,{color:Pt(e)},"\u2500".repeat(r)))},Ot=({children:e,...t})=>t.type==="external_error"?Y.default.createElement(mc,t,e):Y.default.createElement(fc,t,e);u();var lt=D(N(),1),Ft=({tabularData:e,firstColumnSubdued:t})=>{let r=e.reduce((n,o)=>(o.forEach((i,s)=>{n[s]=Math.max(n[s]??0,Ge($e(i)).length)}),n),[]);return lt.default.createElement(g,{flexDirection:"column"},e.map((n,o)=>lt.default.createElement(g,{key:o,flexDirection:"row",gap:2},n.map((i,s)=>lt.default.createElement(g,{key:s,width:r[s]??0,flexShrink:s===0?0:1},lt.default.createElement(V,{item:s===0&&t&&typeof i=="string"?{subdued:i}:i}))))))};var le=D(N(),1),ai=({type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,customSections:s,orderedNextSteps:f=!1})=>le.default.createElement(Ot,{type:e},t?le.default.createElement(y,{bold:!0},le.default.createElement(V,{item:t})):null,r?le.default.createElement(V,{item:r}):null,n&&n.length>0?le.default.createElement(Be,{title:"Next steps",items:n,ordered:f}):null,o&&o.length>0?le.default.createElement(Be,{title:"Reference",items:o}):null,i?le.default.createElement(hn,{url:i.url,label:i.label}):null,s&&s.length>0?le.default.createElement(g,{flexDirection:"column",gap:1},s.map((m,d)=>le.default.createElement(g,{key:d,flexDirection:"column"},m.title?le.default.createElement(y,{bold:!0},m.title):null,typeof m.body=="object"&&"tabularData"in m.body?le.default.createElement(Ft,{...m.body}):le.default.createElement(V,{item:m.body})))):null);var li=D(N(),1),dc={info:"info",warning:"warn",success:"info",error:"error"};function ct({type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,customSections:s,orderedNextSteps:f=!1,renderOptions:m}){let{type:d,...p}=arguments[0];return at(li.default.createElement(ai,{type:e,headline:t,body:r,nextSteps:n,reference:o,link:i,orderedNextSteps:f,customSections:s}),{logLevel:dc[e],renderOptions:m})}u();var Q=D(N(),1),_i=D(Mi(),1),Bi=({error:e})=>{let t,r;return e instanceof En&&(t=new _i.default(e),t.items.forEach(n=>{n.file=Sn(n.file)}),t=t.withSources(),t=t.filter(n=>!n.file.includes("@oclif/core")).map(n=>{let o=n.fileShort.split("packages/");return n.fileShort=o.length===2?o[1]:o[0],n})),e instanceof Et&&(r=`${e.command} ${e.args.join(" ")}`),Q.default.createElement(Ot,{type:r?"external_error":"error"},r?Q.default.createElement(y,null,"Error coming from ",Q.default.createElement(pn,{command:r})):null,e.formattedMessage?Q.default.createElement(V,{item:e.formattedMessage}):Q.default.createElement(V,{item:e.message}),e.tryMessage?Q.default.createElement(V,{item:e.tryMessage}):null,e.nextSteps&&e.nextSteps.length>0?Q.default.createElement(Be,{title:"Next steps",items:e.nextSteps}):null,e.customSections&&e.customSections.length>0?Q.default.createElement(g,{flexDirection:"column",gap:1},e.customSections.map((n,o)=>Q.default.createElement(g,{key:o,flexDirection:"column"},n.title?Q.default.createElement(y,{bold:!0},n.title):null,typeof n.body=="object"&&"tabularData"in n.body?Q.default.createElement(Ft,{...n.body}):Q.default.createElement(V,{item:n.body})))):null,t&&t.items.length!==0?Q.default.createElement(g,{flexDirection:"column"},Q.default.createElement(y,null,"To investigate the issue, examine this stack trace:"),t.items.map((n,o)=>Q.default.createElement(g,{flexDirection:"column",key:o,paddingLeft:2},Q.default.createElement(y,null,"at",n.calleeShort?Q.default.createElement(y,{color:"yellow"},` ${n.calleeShort}`):null,n.fileShort?` (${n.fileShort}:${n.line})`:null),Q.default.createElement(g,{paddingLeft:2},Q.default.createElement(y,{dimColor:!0},n.sourceLine?.trim()))))):null)};u();u();var Wt=D(N(),1);function Cc(e,t){return e.reduce((r,n,o)=>r.length===0?[n]:[...r,t(o),n],[])}var zt=({rowKey:e,columns:t,data:r,fillerChar:n,ignoreColumnColor:o})=>Wt.default.createElement(g,{flexDirection:"row"},...Cc(t.map(i=>{let s=r[i.name],f=`${e}-cell-${i.name.toString()}`,m=i.width-Ge(String(s??"")).length;return Wt.default.createElement(y,{key:f,color:o?void 0:i.color},s,n.repeat(m))}),i=>{let s=`${e}-horizontal-separator-${i}`;return Wt.default.createElement(y,{key:s}," ")}));var Xe=D(N(),1);function Ii({rows:e,columns:t}){let r=Object.entries(t).map(([o,{header:i,color:s}])=>{let f=String(i??o).length,m=e.map(d=>{let p=d[o];return p==null?0:Ge(String(p)).length});return{name:o,width:Math.max(...m,f),color:s}}),n=Object.entries(t).reduce((o,[i,{header:s}])=>({...o,[i]:s??i}),{});return Xe.default.createElement(g,{flexDirection:"column"},Xe.default.createElement(zt,{rowKey:"heading",fillerChar:" ",columns:r,data:n,ignoreColumnColor:!0}),Xe.default.createElement(zt,{rowKey:"separator",fillerChar:"\u2500",columns:r,data:{},ignoreColumnColor:!0}),e.map((o,i)=>{let s=`row-${i}`;return Xe.default.createElement(g,{flexDirection:"column",key:s},Xe.default.createElement(zt,{rowKey:`data-${s}`,fillerChar:" ",columns:r,data:o}))}))}u();u();var _e=D(N(),1);var Ke=({value:e,defaultValue:t="",onChange:r,placeholder:n="",noColor:o=!ke(),color:i=o?void 0:"cyan",password:s=!1,focus:f=!0})=>{let[m,d]=(0,_e.useState)((e||"").length),p=Math.min(m,(e||"").length);(0,_e.useLayoutEffect)(()=>{p!==m&&d(p)},[p,m]);let b=s?"*".repeat(e.length):e,S,v=R=>Ue.inverse(R[0])+Ue.dim(R.slice(1)),w=ne.square,A=_e.default.createElement(y,{backgroundColor:i},w),C=t.length>0?t:n.length>0?n:"",I=C.length>0?v(C):A;return S=b.split("").map((R,T)=>T===p?o?w:Ue.inverse(R):R).join(""),p===b.length&&(S=_e.default.createElement(y,null,S,A)),fe((R,T)=>{if(T.upArrow||T.downArrow||T.ctrl&&R==="c"||T.shift&&T.tab||T.return)return;if(T.tab&&e.length===0&&C){r(C),d(C.length);return}let L=p,P=e;T.leftArrow?p>0&&L--:T.rightArrow?p<e.length&&L++:T.backspace||T.delete?p>0&&(P=e.slice(0,p-1)+e.slice(p,e.length),L--):(P=e.slice(0,p)+R+e.slice(p,e.length),L+=R.length),d(L),P!==e&&r(P)},{isActive:f}),_e.default.createElement(y,{color:i},b.length>0?S:I)};u();var we=D(N(),1),Vt=({table:e})=>{let t=Array.isArray(e)?e:Object.keys(e).map(n=>({header:n,items:e[n],color:void 0,helperText:void 0,bullet:void 0,emptyItemsText:void 0})),r=Math.max(...t.map(n=>Math.max(...n.header.split(`
24
+ `).map(o=>o.length))));return we.default.createElement(g,{flexDirection:"column"},t.map((n,o)=>we.default.createElement(g,{key:o,marginBottom:o===t.length-1?0:1,flexDirection:"column"},n.header.length>0&&we.default.createElement(g,{width:r+1},we.default.createElement(y,{color:n.color,bold:!0},un(n.header))),we.default.createElement(g,{flexGrow:1,flexDirection:"column",gap:1},n.emptyItemsText&&n.items.length===0?we.default.createElement(y,{color:n.color},we.default.createElement(V,{item:{subdued:n.emptyItemsText}})):we.default.createElement(Be,{margin:!1,items:n.items,color:n.color,bullet:n.bullet}),n.helperText?we.default.createElement(y,{color:n.color},n.helperText):null))))};u();function Ye(e){let t=$e(e);return t.endsWith("?")||t.endsWith(":")||t.endsWith(".")?e:gn(e,":")}u();var Ze=D(N(),1),Ac=()=>Promise.resolve();function Ae(e,t=Ac){let r=te(),[n,o]=(0,Ze.useState)(!1);return(0,Ze.useLayoutEffect)(()=>{e?.addEventListener("abort",()=>{let i=e.reason.message==="AbortError"?void 0:e.reason;t(i).then(()=>o(!0)).catch(()=>{})})},[]),(0,Ze.useEffect)(()=>{if(n){let i=e?.reason?.message==="AbortError"?void 0:e?.reason;r(i)}},[n]),{isAborted:n}}u();var qr=D(N(),1),M;(function(e){e.Idle="idle",e.Loading="loading",e.Submitted="submitted",e.Error="error",e.Cancelled="cancelled"})(M||(M={}));function Re({initialAnswer:e}){let[t,r]=(0,qr.useState)(M.Idle),[n,o]=(0,qr.useState)(e);return{promptState:t,setPromptState:r,answer:n,setAnswer:o}}var _=D(N(),1);var Pi=({message:e,confirmation:t,infoTable:r,warningItem:n,onSubmit:o,abortSignal:i})=>{let s=(0,_.useCallback)(L=>L===t?void 0:["Value must be exactly",{userInput:t}],[t]),{oneThird:f,twoThirds:m}=de(),{promptState:d,setPromptState:p,answer:b,setAnswer:S}=Re({initialAnswer:""}),v=te(),[w,A]=(0,_.useState)(void 0),C=d===M.Error?"red":"cyan",I=new Array(f-3).fill("\u2594"),{isAborted:R}=Ae(i);fe((L,P)=>{if(me(L,P),P.escape&&(p(M.Cancelled),A(void 0)),P.return){let X=s(b);X?(p(M.Error),A(X)):p(M.Submitted)}}),(0,_.useEffect)(()=>{d===M.Submitted?(o(!0),v()):d===M.Cancelled&&(o(!1),v())},[o,d,v]);let T=d===M.Submitted||d===M.Cancelled;return R?null:_.default.createElement(g,{flexDirection:"column",marginBottom:1,width:m},_.default.createElement(g,null,_.default.createElement(g,{marginRight:2},_.default.createElement(y,null,"?")),_.default.createElement(V,{item:Ye(e)})),T?_.default.createElement(Rc,{cancelled:d===M.Cancelled}):_.default.createElement(_.default.Fragment,null,_.default.createElement(g,{flexDirection:"column",gap:1,marginTop:1,marginLeft:3},r?_.default.createElement(g,{paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},_.default.createElement(Vt,{table:r})):null,n?_.default.createElement(g,{flexDirection:"column"},_.default.createElement(y,{color:"red"},ne.warning," WARNING"),_.default.createElement(V,{item:n})):null,_.default.createElement(g,null,_.default.createElement(V,{item:["Type",{userInput:t},"to confirm, or press Escape to cancel."]}))),_.default.createElement(g,{flexDirection:"column",width:f},_.default.createElement(g,null,_.default.createElement(g,{marginRight:2},_.default.createElement(y,{color:C},">")),_.default.createElement(g,{flexGrow:1},_.default.createElement(Ke,{value:b,onChange:L=>{S(L),p(M.Idle)},defaultValue:"",color:C}))),_.default.createElement(g,{marginLeft:3},_.default.createElement(y,{color:C},I)),d===M.Error&&w?_.default.createElement(g,{marginLeft:3},_.default.createElement(y,{color:C},_.default.createElement(V,{item:w}))):null)))},Rc=({cancelled:e})=>_.default.createElement(g,null,_.default.createElement(g,{width:3},e?_.default.createElement(y,{color:"red"},ne.cross):_.default.createElement(y,{color:"cyan"},ne.tick)),_.default.createElement(g,{flexGrow:1},e?_.default.createElement(y,{color:"red"},"Cancelled"):_.default.createElement(y,{color:"cyan"},"Confirmed")));u();u();u();var Ee=D(N(),1),Lc="\u2502",Dc="\u2551",Oi=({containerHeight:e,visibleListSectionLength:t,fullListLength:r,visibleFromIndex:n,noColor:o=!ke()})=>{let i=e>=4&&o,s=n+t-1,f=i?e-2:e,m=Math.min(f-1,Math.ceil(Math.min(1,t/r)*f)),d;if(s>=r-1)d=f-m;else{let A=f-m,C=r-t;d=Math.max(0,Math.min(f-m,Math.round(n/C*A)))}let p=f-m-d,b=o?Lc:" ",S=o?Dc:" ",v=o?void 0:"gray",w=o?void 0:"cyan";return Ee.default.createElement(g,{flexDirection:"column"},i?Ee.default.createElement(y,null,"\u25B3"):null,Ee.default.createElement(g,{width:1},Ee.default.createElement(y,{backgroundColor:v},b.repeat(d))),Ee.default.createElement(g,{width:1},Ee.default.createElement(y,{backgroundColor:w},S.repeat(m))),Ee.default.createElement(g,{width:1},Ee.default.createElement(y,{backgroundColor:v},b.repeat(p))),i?Ee.default.createElement(y,null,"\u25BD"):null)};u();var xe=D(N(),1);import{isDeepStrictEqual as kc}from"node:util";var Xt=class extends Map{constructor(t){let r=[],n,o,i=0;for(let s of t){let f={...s,previous:o,next:void 0,index:i};o&&(o.next=f),n??(n=f),r.push([s.value,f]),i++,o=f}super(r),this.first=n}},Mc=(e,t)=>{switch(t.type){case"select-next-option":{if(typeof e.value>"u")return e;let r=e.optionMap.get(e.value);if(!r)return e;let n=r.next;for(;n&&n.disabled;)n=n.next;if(!n)return e;if(!(n.index>e.visibleToIndex))return{...e,value:n.value};let i=n.index,s=i-e.visibleOptionCount+1;return{...e,value:n.value,visibleFromIndex:s,visibleToIndex:i,previousValue:e.value}}case"select-previous-option":{if(typeof e.value>"u")return e;let r=e.optionMap.get(e.value);if(!r)return e;let n=r.previous;for(;n&&n.disabled;)n=n.previous;if(!n)return e;if(!(n.index<e.visibleFromIndex))return{...e,value:n.value};let i=n.index,s=i+e.visibleOptionCount-1;return{...e,value:n.value,visibleFromIndex:i,visibleToIndex:s,previousValue:e.value}}case"select-option":{let r=e.optionMap.get(t.option.value);return r?{...e,value:r.value,previousValue:e.value}:e}case"reset":return t.state;default:return e}},Gr=({visibleOptionCount:e,defaultValue:t,options:r})=>{let n=typeof e=="number"?Math.min(e,r.length):r.length,o=new Xt(r),i=typeof t>"u"?void 0:o.get(t),s=i&&!i.disabled?i:o.first;for(;s&&s.disabled;)s=s.next;return{optionMap:o,visibleOptionCount:n,visibleFromIndex:0,visibleToIndex:n-1,value:s?.value,previousValue:s?.value}},Fi=({visibleOptionCount:e,options:t,defaultValue:r})=>{let[n,o]=(0,xe.useReducer)(Mc,{visibleOptionCount:e,defaultValue:r,options:t},Gr),[i,s]=(0,xe.useState)(t),[f,m]=(0,xe.useState)(e);t!==i&&!kc(t,i)&&(o({type:"reset",state:Gr({visibleOptionCount:e,defaultValue:r,options:t})}),s(t)),e!==f&&(o({type:"reset",state:Gr({visibleOptionCount:e,defaultValue:r,options:t})}),m(e));let d=(0,xe.useCallback)(()=>{o({type:"select-next-option"})},[]),p=(0,xe.useCallback)(()=>{o({type:"select-previous-option"})},[]),b=(0,xe.useCallback)(({option:v})=>{o({type:"select-option",option:v})},[]),S=(0,xe.useMemo)(()=>t.slice(n.visibleFromIndex),[t,n.visibleFromIndex]);return{visibleFromIndex:n.visibleFromIndex,visibleToIndex:n.visibleToIndex,value:n.value,visibleOptions:S,selectNextOption:d,selectPreviousOption:p,selectOption:b,previousValue:n.previousValue}};var q=D(N(),1);var fs=D(cs(),1);function pu(e,t){if(!t)return e;let r;try{r=new RegExp(t,"i")}catch{return e}return e.replace(r,n=>Ue.bold(n))}function hu(e){if(e.some(t=>(t.key?.length??0)>1))throw new Error("SelectInput: Keys must be a single character");if(!e.every(t=>typeof t.key<"u"&&t.key.length>0))throw new Error("SelectInput: All items must have keys if one does")}function gu({item:e,previousItem:t,isSelected:r,highlightedTerm:n,enableShortcuts:o,items:i,hasAnyGroup:s,index:f}){let m=pu(e.label,n),d,p;r?p="cyan":e.disabled&&(p="dim"),(typeof t>"u"||e.group!==t.group)&&(d=e.group??(s?"Other":void 0));let b=o&&e.key&&e.key.length>0;return q.default.createElement(g,{key:f,flexDirection:"column",marginTop:i.indexOf(e)!==0&&d?1:0,minHeight:d?2:1},d?q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{bold:!0},d)):null,q.default.createElement(g,{key:f,marginLeft:s?3:0},q.default.createElement(g,{marginRight:2},r?q.default.createElement(y,{color:"cyan"},">"):q.default.createElement(y,null," ")),q.default.createElement(y,{wrap:"end",color:p},b?`(${e.key}) ${m}`:m)))}var us=25;function Kt({items:e,initialItems:t=e,onChange:r,enableShortcuts:n=!0,focus:o=!0,emptyMessage:i="No items to select.",defaultValue:s,highlightedTerm:f,loading:m=!1,errorMessage:d,hasMorePages:p=!1,morePagesMessage:b,availableLines:S=us,onSubmit:v,inputFixedAreaRef:w,ref:A,groupOrder:C}){let I=!1;e.length===0&&(e=[{label:i,value:null,disabled:!0}],I=!0);let R=e.some(O=>typeof O.group<"u"),T=(0,fs.default)(e,O=>{if(!O.group)return Number.MAX_SAFE_INTEGER+1;if(!C)return Number.MAX_SAFE_INTEGER;let F=C.indexOf(O.group);return F===-1?Number.MAX_SAFE_INTEGER:F}),L=T.some(O=>typeof O.key<"u"&&O.key.length>0);L&&hu(T);let P=Math.min(S,us);function X(O){let F=new Set(O.map(se=>se.group).filter(se=>se)).size,ie=Math.ceil(Math.min((P+1)/3,F+1));return F>0?(ie-1)*2+1:0}let ee=X(T),z=Math.max(2,P-ee),H=T.length>z,$=Fi({visibleOptionCount:z,options:T,defaultValue:s});(0,q.useEffect)(()=>{typeof $.value<"u"&&$.previousValue!==$.value&&r?.(T.find(O=>O.value===$.value))},[$.previousValue,$.value,T,r]);let pe=O=>{O.upArrow?$.selectPreviousOption():O.downArrow&&$.selectNextOption()},ve=(0,q.useCallback)(O=>{if($.visibleOptions.map(F=>F.key).includes(O)){let F=$.visibleOptions.find(se=>se.key===O),ie=T.find(se=>se.value===F?.value);F&&!F.disabled&&(v&&ie&&v(ie),$.selectOption({option:F}))}},[T,v,$]);fe((O,F)=>{if(me(O,F),typeof $.value<"u"&&F.return){let ie=T.find(se=>se.value===$.value);ie&&v&&v(ie)}n&&O.length>0&&Object.values(F).every(ie=>!ie)?ve(O):pe(F)},{isActive:o});let{twoThirds:B}=de();if(m)return q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{dimColor:!0},"Loading..."));if(d&&d.length>0)return q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{color:"red"},d));{let O=t.length+X(t),ie=Math.max(R?5:2,Math.min(P,O));return q.default.createElement(g,{flexDirection:"column",ref:A,gap:1,width:B},q.default.createElement(g,{flexDirection:"row",height:ie,width:"100%"},q.default.createElement(g,{flexDirection:"column",overflowY:"hidden",flexGrow:1},$.visibleOptions.map((se,re)=>q.default.createElement(gu,{key:re,item:se,previousItem:$.visibleOptions[re-1],highlightedTerm:f,isSelected:se.value===$.value,items:$.visibleOptions,enableShortcuts:n,hasAnyGroup:R,index:re}))),H?q.default.createElement(Oi,{containerHeight:ie,visibleListSectionLength:z,fullListLength:T.length,visibleFromIndex:$.visibleFromIndex}):null),q.default.createElement(g,{ref:w},I?q.default.createElement(g,{marginLeft:3},q.default.createElement(y,{dimColor:!0},"Try again with a different keyword.")):q.default.createElement(g,{marginLeft:3,flexDirection:"column"},q.default.createElement(y,{dimColor:!0},`Press ${ne.arrowUp}${ne.arrowDown} arrows to select, enter ${L?"or a shortcut ":""}to confirm.`),p?q.default.createElement(y,null,q.default.createElement(y,{bold:!0},"1-",T.length," of many"),b?` ${b}`:null):null)))}}u();u();var mt=D(N(),1),ms=({message:{title:{color:e,text:t},body:r}})=>mt.default.createElement(g,{flexDirection:"column",gap:1},mt.default.createElement(y,{color:e},mt.default.createElement(V,{item:t})),mt.default.createElement(V,{item:r}));var j=D(N(),1);var Yt=({message:e,infoTable:t,abortSignal:r,infoMessage:n,header:o,state:i,input:s,submittedAnswerLabel:f})=>{let{stdout:m}=De(),[d,p]=(0,j.useState)(0),[b,S]=(0,j.useState)(0),[v,w]=(0,j.useState)(0),A=m.rows-b-v,[C,I]=(0,j.useState)(A),R=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);d!==H&&p(H)}},[d]),T=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);S(H)}},[]),L=(0,j.useCallback)(z=>{if(z!==null){let{height:H}=yt(z);w(H+3)}},[]),P=(0,j.cloneElement)(s,{availableLines:C,inputFixedAreaRef:L});(0,j.useLayoutEffect)(()=>{function z(){let H=m.rows-b-v;H!==C&&I(H)}return z(),m.on("resize",z),()=>{m.off("resize",z)}},[d,b,m,C,v]);let{isAborted:X}=Ae(r),ee=t&&Object.keys(t).length>0;return X?null:j.default.createElement(g,{flexDirection:"column",marginBottom:1,ref:R},j.default.createElement(g,{ref:T,flexDirection:"column"},j.default.createElement(g,null,j.default.createElement(g,{marginRight:2},j.default.createElement(y,null,"?")),j.default.createElement(V,{item:Ye(e)}),o),(ee||n)&&i!==M.Submitted?j.default.createElement(g,{marginTop:1,marginLeft:3,paddingLeft:2,borderStyle:"bold",borderLeft:!0,borderRight:!1,borderTop:!1,borderBottom:!1,flexDirection:"column",gap:1},n?j.default.createElement(ms,{message:n}):null,ee?j.default.createElement(Vt,{table:t}):null):null),i===M.Submitted&&f?j.default.createElement(g,null,j.default.createElement(g,{width:3},j.default.createElement(y,{color:"cyan"},ne.tick)),j.default.createElement(y,{color:"cyan"},f)):j.default.createElement(g,{marginTop:1},P))};var Oe=D(N(),1);function ds({message:e,choices:t,infoTable:r,infoMessage:n,onSubmit:o,defaultValue:i,abortSignal:s,groupOrder:f}){if(t.length===0)throw new Error("SelectPrompt requires at least one choice");let m=te(),{promptState:d,setPromptState:p,answer:b,setAnswer:S}=Re({initialAnswer:void 0}),v=(0,Oe.useCallback)(w=>{S(w),p(M.Submitted)},[S,p]);return(0,Oe.useEffect)(()=>{d===M.Submitted&&b&&(o(b.value),m())},[b,o,d,m]),Oe.default.createElement(Yt,{message:e,state:d,submittedAnswerLabel:b?.label,infoTable:r,infoMessage:n,abortSignal:s,input:Oe.default.createElement(Kt,{defaultValue:i,items:t,onSubmit:v,groupOrder:f})})}u();u();u();var oe=D(N(),1),qs=D(Ns(),1);function _u(e,t){let r=5*t,n={h:r%360,s:.8,v:1},o={h:(r+1)%360,s:.8,v:1};return(0,qs.default)(n,o)(e,{interpolation:"hsv",hsvSpin:"long"})}function Bu(e,t){let r=t%e.length,n=e.slice(-r),o=e.slice(0,-r);return n+o}function Iu(e,t){return t?e.slice(0,t):e}var rn=(0,oe.memo)(({text:e,maxWidth:t})=>{let r=(0,oe.useRef)(0),[n,o]=(0,oe.useState)(e),i=(0,oe.useRef)(),{stdout:s}=De(),[f,m]=(0,oe.useState)(t??Math.floor(s.columns*.66));(0,oe.useLayoutEffect)(()=>{let p=()=>{m(Math.floor(s.columns*.66))};return s.on("resize",p),()=>{s.off("resize",p)}},[s]);let d=(0,oe.useCallback)(()=>{let p=r.current+1;r.current=p,o(_u(Iu(Bu(e,r.current),f),r.current)),i.current=setTimeout(()=>{d()},35)},[e,f]);return(0,oe.useLayoutEffect)(()=>(d(),()=>{clearTimeout(i.current)}),[d]),oe.default.createElement(y,null,n)});rn.displayName="TextAnimation";var rr=D(N(),1);var Pu="\u2580",Gs="\u2581\u2581\u2582\u2582\u2583\u2583\u2584\u2584\u2585\u2585\u2586\u2586\u2587\u2587\u2588\u2588\u2587\u2587\u2586\u2586\u2585\u2585\u2584\u2584\u2583\u2583\u2582\u2582\u2581\u2581",nr=({title:e,noColor:t,noProgressBar:r})=>{let{twoThirds:n}=de(),{stdout:o}=De(),i=!!o.isTTY,s=new Array(n).fill(Pu).join("");return(t??!ke())&&(s=Gs.repeat(Math.ceil(n/Gs.length))),rr.default.createElement(g,{flexDirection:"column"},i&&!r&&rr.default.createElement(rn,{text:s,maxWidth:n}),rr.default.createElement(y,null,e," ..."))};u();var gt=D(N(),1);function nn(e,{onFulfilled:t=()=>{},onRejected:r=()=>{}}={}){let n=te(),[o,i]=(0,gt.useState)(null);(0,gt.useEffect)(()=>{e().then(()=>{t(),i({})}).catch(s=>{r(s),i({error:s})})},[]),(0,gt.useEffect)(()=>{o!==null&&n(o.error)},[o])}u();function Hs(){let{isRawModeSupported:e}=xt();fe((t,r)=>{if(me(t,r),r.return)return null},{isActive:!!e})}var Fe=D(N(),1),Je;(function(e){e.Loading="loading",e.Success="success",e.Failure="failure"})(Je||(Je={}));async function js(e,t){e.retryCount=0,e.errors=[];let r=e.retry&&e.retry>0?e.retry+1:1;for(let n=1;n<=r;n++)try{return e.skip?.(t)?void 0:await e.task(t,e)}catch(o){if(n===r)throw o;e.errors.push(o),e.retryCount=n}}var Ou=()=>{};function Ws({tasks:e,silent:t=nt(),onComplete:r=Ou,abortSignal:n,noColor:o,noProgressBar:i=!1}){let[s,f]=(0,Fe.useState)(e[0]),[m,d]=(0,Fe.useState)(Je.Loading),p=(0,Fe.useRef)({});nn(async()=>{for(let w of e){f(w);let A=await js(w,p.current);if(Array.isArray(A)&&A.length>0&&A.every(C=>"task"in C))for(let C of A)f(C),await js(C,p.current)}},{onFulfilled:()=>{d(Je.Success),r(p.current)},onRejected:()=>{d(Je.Failure)}}),Hs();let{isAborted:S}=Ae(n);if(t)return null;let v=typeof s.title=="string"?s.title:s.title.value;return m===Je.Loading&&!S?Fe.default.createElement(nr,{title:v,noColor:o,noProgressBar:i}):null}u();var G=D(N(),1);var zs=({message:e,onSubmit:t,validate:r,defaultValue:n="",password:o=!1,allowEmpty:i=!1,emptyDisplayedValue:s="(empty)",abortSignal:f,preview:m,initialAnswer:d=""})=>{if(o&&n)throw new Error("Can't use defaultValue with password");let p=(0,G.useCallback)(H=>{if(r)return r(H);if(H.length===0&&!i)return"Type an answer to the prompt."},[i,r]),{oneThird:b}=de(),{promptState:S,setPromptState:v,answer:w,setAnswer:A}=Re({initialAnswer:d}),C=w.length>0?w:n,I=C==="",R=I?s:C,T=te(),[L,P]=(0,G.useState)(void 0),X=S===M.Error?"red":"cyan",ee=new Array(b-3).fill("\u2594"),{isAborted:z}=Ae(f);return fe((H,$)=>{if(me(H,$),$.return){let pe=p(C);pe?(v(M.Error),P(pe)):v(M.Submitted)}}),(0,G.useEffect)(()=>{S===M.Submitted&&(t(C),T())},[C,t,S,T]),z?null:G.default.createElement(g,{flexDirection:"column",marginBottom:1,width:b},G.default.createElement(g,null,G.default.createElement(g,{marginRight:2},G.default.createElement(y,null,"?")),G.default.createElement(V,{item:Ye(e)})),S===M.Submitted?G.default.createElement(g,null,G.default.createElement(g,{width:3},G.default.createElement(y,{color:"cyan"},ne.tick)),G.default.createElement(g,{flexGrow:1},G.default.createElement(y,{color:"cyan",dimColor:I},o?"*".repeat(w.length):R))):G.default.createElement(g,{flexDirection:"column"},G.default.createElement(g,null,G.default.createElement(g,{marginRight:2},G.default.createElement(y,{color:X},">")),G.default.createElement(g,{flexGrow:1},G.default.createElement(Ke,{value:w,onChange:H=>{A(H),v(M.Idle)},defaultValue:n,color:X,password:o}))),G.default.createElement(g,{marginLeft:3},G.default.createElement(y,{color:X},ee)),S===M.Error?G.default.createElement(g,{marginLeft:3},G.default.createElement(y,{color:X},L)):null,S!==M.Error&&m?G.default.createElement(g,{marginLeft:3},G.default.createElement(V,{item:m(C)})):null))};u();u();var Fu=D(aa(),1),Vs=D(Ea(),1),Xs=D(Sa(),1);function yb(e,t,r){return(0,Vs.default)(e,t,r)}function Ks(e,t,r){return(0,Xs.default)(e,t,r)}var J=D(N(),1);var Uu=5,$u=400;function Ys({message:e,choices:t,infoTable:r,onSubmit:n,search:o,hasMorePages:i=!1,abortSignal:s,infoMessage:f,groupOrder:m,searchDebounceMs:d=$u}){let p=te(),[b,S]=(0,J.useState)(""),[v,w]=(0,J.useState)(t),A=t.length>Uu,[C,I]=(0,J.useState)(i),{promptState:R,setPromptState:T,answer:L,setAnswer:P}=Re({initialAnswer:void 0}),X=(0,J.useCallback)(async B=>await o(B),[o]),ee=(0,J.useCallback)(B=>{R===M.Idle&&(P(B),T(M.Submitted))},[R,P,T]);(0,J.useEffect)(()=>{R===M.Submitted&&L&&(S(""),n(L.value),p())},[L,n,R,p]);let z=(0,J.useRef)(),H=(0,J.useRef)("");H.current=b;let $=(0,J.useRef)(t);$.current=t;let pe=(0,J.useRef)(i);pe.current=i;let ve=J.default.useMemo(()=>Ks(B=>{z.current=setTimeout(()=>{T(M.Loading)},100),X(B).then(O=>{H.current.length===0?(w($.current),I(pe.current)):(w(O.data),I(O.meta?.hasNextPage??!1)),T(M.Idle)}).catch(()=>{T(M.Error)}).finally(()=>{clearTimeout(z.current)})},d,{leading:!0,trailing:!0}),[X,T,d]);return J.default.createElement(Yt,{message:e,state:R,infoTable:r,infoMessage:f,abortSignal:s,header:R!==M.Submitted&&A?J.default.createElement(g,{marginLeft:3},J.default.createElement(Ke,{value:b,onChange:B=>{S(B),H.current=B,B.length>0?ve(B):(ve.cancel(),T(M.Idle),w(t))},placeholder:"Type to search..."})):null,submittedAnswerLabel:L?.label,input:J.default.createElement(Kt,{items:v,initialItems:t,enableShortcuts:!1,emptyMessage:"No results found.",highlightedTerm:b,loading:R===M.Loading,errorMessage:R===M.Error?"There has been an error while searching. Please try again later.":void 0,hasMorePages:C,morePagesMessage:"Find what you're looking for by typing its name.",onSubmit:ee,groupOrder:m})})}u();var Le=D(N(),1);var Zs=({task:e,title:t,onComplete:r,onAbort:n,noColor:o})=>{let[i,s]=(0,Le.useState)(t),[f,m]=(0,Le.useState)(!1),[d,p]=(0,Le.useState)(null),b=te(),{isRawModeSupported:S}=xt();return fe((v,w)=>{n?me(v,w,n):me(v,w)},{isActive:!!S}),(0,Le.useEffect)(()=>{e(s).then(v=>{m(!0),r?.(v),p({})}).catch(v=>{m(!0),p({error:v})})},[e,r]),(0,Le.useEffect)(()=>{d!==null&&b(d.error)},[d,b]),f?null:Le.default.createElement(nr,{title:i.value,noColor:o})};var Se=D(N()),et={skipTTYCheck:!1};async function Jb({renderOptions:e,...t}){let r=t.abortSignal??new kt().signal;return Me(Se.default.createElement(oi,{...t,abortSignal:r}),e)}function e0(e){return ct({...e,type:"info"})}function t0(e){return ct({...e,type:"success"})}function Vo(e){return ct({...e,type:"warning"})}function r0(e){return ct({...e,type:"error"})}function n0(e,{renderOptions:t}={}){return at(Se.default.createElement(Bi,{error:e}),{logLevel:"error",renderOptions:t})}async function Nu({renderOptions:e,isConfirmationPrompt:t,...r},n=et){return bt({message:r.message,stdin:e?.stdin},n),Ne("cmd_all_timing_prompts_ms")(async()=>{let o;return await Me(Se.default.createElement(ds,{...r,onSubmit:i=>{o=i}}),{...e,exitOnCtrlC:!1}),o})}async function o0({message:e,infoTable:t,confirmationMessage:r="Yes, confirm",cancellationMessage:n="No, cancel",renderOptions:o,defaultValue:i=!0,abortSignal:s,infoMessage:f}){return Nu({choices:[{label:r,value:!0,key:"y"},{label:n,value:!1,key:"n"}],message:e,infoTable:t,renderOptions:o,defaultValue:i,isConfirmationPrompt:!0,abortSignal:s,infoMessage:f})}async function i0({renderOptions:e,...t},r=et){bt({message:t.message,stdin:e?.stdin},r);let n=t.search===void 0,o={search(i){let s=i.toLowerCase();return Promise.resolve({data:t.choices.filter(f=>f.label.toLowerCase().includes(s)||f.group?.toLowerCase().includes(s))})},...n?{searchDebounceMs:0}:{},...t};return Ne("cmd_all_timing_prompts_ms")(async()=>{let i;if(await Me(Se.default.createElement(Ys,{...o,onSubmit:s=>{i=s}}),{...e,exitOnCtrlC:!1}),i===void 0)throw new Error("Prompt was interrupted before a selection was made. This can happen if the process received a signal, was terminated, or the prompt was aborted.");return i})}function s0({renderOptions:e,...t}){return at(Se.default.createElement(Ii,{...t}),{renderOptions:e})}async function a0(e,{renderOptions:t,noProgressBar:r}={}){let n;return await Me(Se.default.createElement(Ws,{tasks:e,onComplete:o=>{n=o},noProgressBar:r}),{stdout:process.stderr,...t,exitOnCtrlC:!1}),n}async function l0({title:e,task:t,onAbort:r,renderOptions:n}){let o;return await Me(Se.default.createElement(Zs,{title:e,task:t,onComplete:i=>{o=i},onAbort:r}),{stdout:process.stderr,...n,exitOnCtrlC:!1}),o}async function c0({renderOptions:e,...t},r=et){return bt({message:t.message,stdin:e?.stdin},r),Ne("cmd_all_timing_prompts_ms")(async()=>{let n="";return await Me(Se.default.createElement(zs,{...t,onSubmit:o=>{n=o}}),{...e,exitOnCtrlC:!1}),n})}async function u0({renderOptions:e,...t},r=et){return bt({message:t.message,stdin:e?.stdin},r),Ne("cmd_all_timing_prompts_ms")(async()=>{let n;return await Me(Se.default.createElement(Pi,{...t,onSubmit:o=>{n=o}}),{...e,exitOnCtrlC:!1}),n})}var f0=async(e=process.stdin,t=et)=>(bt({message:"Press any key"},t),Ne("cmd_all_timing_prompts_ms")(()=>new Promise((r,n)=>{let o=i=>{e.setRawMode(!1);let s=Array.from(i);s.length&&s[0]===3&&(Ie("Canceled keypress, User pressed CTRL+C"),n(new wn)),e.unref(),process.nextTick(r)};e.setRawMode(!0),e.once("data",o),e.ref()})));function qu({stdin:e=void 0,uiDebugOptions:t=et}={}){return!!(t.skipTTYCheck||e||Zo())}function bt({message:e,stdin:t=void 0},r){if(qu({stdin:t,uiDebugOptions:r}))return;let n=$e(e),o=`Failed to prompt:
25
+
26
+ ${St`${Tn.cyan(n)}`.value}
27
+
28
+ This usually happens when running a command non-interactively, for example in a CI environment, or when piping to or from another process.`;throw new qe(o,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")}export{kt as a,ei as b,Hi as c,mo as d,Pe as e,Om as f,zo as g,Mi as h,Me as i,me as j,ne as k,Pd as l,oi as m,Ft as n,ai as o,Ae as p,Vi as q,Rs as r,yb as s,Jb as t,e0 as u,t0 as v,Vo as w,r0 as x,n0 as y,Nu as z,o0 as A,i0 as B,s0 as C,a0 as D,l0 as E,c0 as F,u0 as G,f0 as H,qu as I,Ym as J,Zm as K,Vl as L,Qm as M,Jm as N,Xl as O,ed as P,td as Q,Zo as R,rd as S,nd as T,Yl as U,od as V};
@@ -1 +1 @@
1
- import{B as l,C as f,D as m,E as d,J as p,y as u}from"./chunk-B2EHO7ZC.js";import{h as n}from"./chunk-GOJ2QHSR.js";import{b as g}from"./chunk-YZDDTYTU.js";import{F as S,z as h}from"./chunk-BDVAE5MS.js";import{r as C}from"./chunk-LDGAHMS7.js";import{Pb as w}from"./chunk-GFEAKSGV.js";import{e as L,g as i}from"./chunk-VPRTJUIN.js";i();i();var r="NEW_LOGIN";function N(e,t){let s=[],o=e[t];if(o)for(let[c,I]of Object.entries(o))s.push({label:I.identity.alias??c,value:c});return s}async function b(){let e=await p({},{forceNewSession:!0}),t=await f(e.userId);if(!t){let s=await S({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await m(e.userId,s),s}return t}async function v(){let e=await l(),t=await u(),s=[];return e&&s.push(...N(e,t)),s.length>0&&s.push({label:"Log in with a different account",value:r}),s}async function y(e){if(e){let o=await d(e);if(o)return n(o),e}let t=await v(),s=r;return t.length>0&&(s=await h({message:"Which account would you like to use?",choices:t})),s===r?b():(n(s),t.find(o=>o.value===s)?.label??s)}var A=L(C(),1);var a=class e extends g{static{this.description="Logs you in to your Shopify account."}static{this.flags={alias:A.Flags.string({description:"Alias of the session you want to login to.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})}}async run(){let{flags:t}=await this.parse(e),s=await y(t.alias);w(`Current account: ${s}.`)}};export{a};
1
+ import{B as l,C as f,D as m,E as d,J as p,y as u}from"./chunk-4V4DQ6W7.js";import{h as n}from"./chunk-LITB5QQX.js";import{b as g}from"./chunk-VEDZUOVI.js";import{F as S,z as h}from"./chunk-MGL4YM3S.js";import{r as C}from"./chunk-3YWUSKWF.js";import{Ob as w}from"./chunk-VPL2NDH6.js";import{e as L,g as i}from"./chunk-VPRTJUIN.js";i();i();var r="NEW_LOGIN";function N(e,t){let s=[],o=e[t];if(o)for(let[c,I]of Object.entries(o))s.push({label:I.identity.alias??c,value:c});return s}async function b(){let e=await p({},{forceNewSession:!0}),t=await f(e.userId);if(!t){let s=await S({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await m(e.userId,s),s}return t}async function v(){let e=await l(),t=await u(),s=[];return e&&s.push(...N(e,t)),s.length>0&&s.push({label:"Log in with a different account",value:r}),s}async function y(e){if(e){let o=await d(e);if(o)return n(o),e}let t=await v(),s=r;return t.length>0&&(s=await h({message:"Which account would you like to use?",choices:t})),s===r?b():(n(s),t.find(o=>o.value===s)?.label??s)}var A=L(C(),1);var a=class e extends g{static{this.description="Logs you in to your Shopify account."}static{this.flags={alias:A.Flags.string({description:"Alias of the session you want to login to.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})}}async run(){let{flags:t}=await this.parse(e),s=await y(t.alias);w(`Current account: ${s}.`)}};export{a};
@@ -1,2 +1,2 @@
1
- import{b as x,c as D,f as M}from"./chunk-XLELNRFF.js";import{a as o}from"./chunk-7BGM2GAH.js";import{c as w}from"./chunk-JUVAGMIH.js";import{C as h,F as e,v as y,z as s}from"./chunk-BDVAE5MS.js";import{Nb as _,ua as u}from"./chunk-GFEAKSGV.js";import{g as p}from"./chunk-VPRTJUIN.js";p();async function $(){let a=new Date,n=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")}`,i=w(),t=await s({message:"Type of message?",choices:[{label:"Info",value:"info"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}]}),b=await e({message:"Title"}),E=await e({message:"Message"}),S=await s({message:"Frequency",choices:[{label:"Only once",value:"once"},{label:"Once a week",value:"once_a_week"},{label:"Once a day",value:"once_a_day"},{label:"Always",value:"always"}]}),r=await e({message:"Minimum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),l=await e({message:"Maximum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),m=await e({message:"Minimum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),c=await e({message:"Maximum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),f=await e({message:"Surface. E.g.: app, theme, hydrogen, theme_app_extension... (optional)",allowEmpty:!0}),g=await e({message:"Comma separated list of commands. E.g.: app:generate:extension (optional)",allowEmpty:!0}),T=await e({message:"Slack channel of the team who will own this notification"}),d=await x(),v={id:i,type:t,title:b,frequency:S,message:E,minVersion:r.length===0?void 0:r,maxVersion:l.length===0?void 0:l,minDate:m.length===0?void 0:m,maxDate:c.length===0?void 0:c,surface:f.length===0?void 0:f,commands:g.length===0?void 0:g.split(",").map(N=>N.trim()),ownerChannel:T};d.notifications.push(v),await u("./notifications.json",JSON.stringify(d)),y({headline:"notifications.json file updated successfully."})}async function j(){let a=await D(),n={type:{header:"Type",color:"dim"},title:{header:"Title",color:"dim"},message:{header:"Message",color:"dim"},filters:{header:"Filters",color:"dim"}},i=a.notifications.map(t=>({type:t.type,title:t.title??"",message:t.message,filters:M(t)}));h({rows:i,columns:n}),_(`
1
+ import{b as x,c as D,f as M}from"./chunk-QTGMS62F.js";import{a as o}from"./chunk-YJB7P2HC.js";import{c as w}from"./chunk-JUVAGMIH.js";import{C as h,F as e,v as y,z as s}from"./chunk-MGL4YM3S.js";import{Mb as _,ua as u}from"./chunk-VPL2NDH6.js";import{g as p}from"./chunk-VPRTJUIN.js";p();async function $(){let a=new Date,n=`${a.getFullYear()}-${(a.getMonth()+1).toString().padStart(2,"0")}-${a.getDate().toString().padStart(2,"0")}`,i=w(),t=await s({message:"Type of message?",choices:[{label:"Info",value:"info"},{label:"Warning",value:"warning"},{label:"Error",value:"error"}]}),b=await e({message:"Title"}),E=await e({message:"Message"}),S=await s({message:"Frequency",choices:[{label:"Only once",value:"once"},{label:"Once a week",value:"once_a_week"},{label:"Once a day",value:"once_a_day"},{label:"Always",value:"always"}]}),r=await e({message:"Minimum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),l=await e({message:"Maximum CLI version (optional)",initialAnswer:o,allowEmpty:!0}),m=await e({message:"Minimum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),c=await e({message:"Maximum date in YYYY-MM-DD format (optional)",initialAnswer:n,allowEmpty:!0}),f=await e({message:"Surface. E.g.: app, theme, hydrogen, theme_app_extension... (optional)",allowEmpty:!0}),g=await e({message:"Comma separated list of commands. E.g.: app:generate:extension (optional)",allowEmpty:!0}),T=await e({message:"Slack channel of the team who will own this notification"}),d=await x(),v={id:i,type:t,title:b,frequency:S,message:E,minVersion:r.length===0?void 0:r,maxVersion:l.length===0?void 0:l,minDate:m.length===0?void 0:m,maxDate:c.length===0?void 0:c,surface:f.length===0?void 0:f,commands:g.length===0?void 0:g.split(",").map(N=>N.trim()),ownerChannel:T};d.notifications.push(v),await u("./notifications.json",JSON.stringify(d)),y({headline:"notifications.json file updated successfully."})}async function j(){let a=await D(),n={type:{header:"Type",color:"dim"},title:{header:"Title",color:"dim"},message:{header:"Message",color:"dim"},filters:{header:"Filters",color:"dim"}},i=a.notifications.map(t=>({type:t.type,title:t.title??"",message:t.message,filters:M(t)}));h({rows:i,columns:n}),_(`
2
2
  `)}export{$ as a,j as b};