@shopify/cli 4.2.0 → 4.3.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/dist/{acorn-QBS5IYTX.js → acorn-7M27BPGP.js} +1 -1
  2. package/dist/analytics-JH64XI2J.js +1 -0
  3. package/dist/analytics-MEGKKFGF.js +1 -0
  4. package/dist/{angular-UTTM4Y4S.js → angular-DW5TQVCM.js} +1 -1
  5. package/dist/{babel-JS32NLHY.js → babel-I2RLWM7N.js} +1 -1
  6. package/dist/bootstrap.js +1 -1
  7. package/dist/{chokidar-G4ONJSK4.js → chokidar-VDIVGBZH.js} +1 -1
  8. package/dist/{chunk-NBYS6YQ2.js → chunk-25HJX3L2.js} +1 -1
  9. package/dist/{chunk-ZZYFG22L.js → chunk-2EHBJWC6.js} +1 -1
  10. package/dist/{chunk-INFBVFMU.js → chunk-2GAFKG64.js} +1 -1
  11. package/dist/{chunk-F6T3UBBL.js → chunk-2GU7OY3H.js} +1 -1
  12. package/dist/{chunk-MIO2CV3Q.js → chunk-2K7FGAT6.js} +1 -1
  13. package/dist/{chunk-PRVQAHWI.js → chunk-2O22LZKV.js} +1 -1
  14. package/dist/{chunk-MKE434RB.js → chunk-2RBIR3NM.js} +1 -1
  15. package/dist/{chunk-4Z2WYNTE.js → chunk-2TMQG2UT.js} +1 -1
  16. package/dist/{chunk-FTN7Y6HD.js → chunk-2XZBQZ5R.js} +1 -1
  17. package/dist/{chunk-J6VTZEE2.js → chunk-33OHQUHZ.js} +1 -1
  18. package/dist/chunk-3AOQKI4B.js +1 -0
  19. package/dist/{chunk-4EXYYBQ6.js → chunk-3SPDFV5D.js} +1 -1
  20. package/dist/{chunk-X2TC7S57.js → chunk-3YDYZ232.js} +2 -2
  21. package/dist/{chunk-FFYYJKF7.js → chunk-4FFPTEKD.js} +1 -1
  22. package/dist/{chunk-IWCPQD7X.js → chunk-4J32OHLY.js} +1 -1
  23. package/dist/chunk-4QTEPWEJ.js +283 -0
  24. package/dist/{chunk-QLQGHMVU.js → chunk-57PPQKJT.js} +1 -1
  25. package/dist/{chunk-DCK2FX6J.js → chunk-5BKCIDMS.js} +1 -1
  26. package/dist/{chunk-JUVAGMIH.js → chunk-5C7HDTHJ.js} +1 -1
  27. package/dist/{chunk-A6X2IVGT.js → chunk-5FFHQTRC.js} +1 -1
  28. package/dist/{chunk-UCLSPAVX.js → chunk-5FVB7JHP.js} +1 -1
  29. package/dist/{chunk-HD5TYIDZ.js → chunk-5H3VTG77.js} +1 -1
  30. package/dist/{chunk-6TEXPRI2.js → chunk-5O43334U.js} +1 -1
  31. package/dist/{chunk-MZJRNFAU.js → chunk-5XDQ76DQ.js} +1 -1
  32. package/dist/{chunk-PD5ZHJWI.js → chunk-636CTEW7.js} +1 -1
  33. package/dist/chunk-6JKGUQRD.js +1 -0
  34. package/dist/chunk-6KETAPWL.js +1 -0
  35. package/dist/{chunk-UOQQNAHX.js → chunk-6LWOWDF4.js} +1 -1
  36. package/dist/{chunk-CE6FKJFS.js → chunk-7572RLUP.js} +1 -1
  37. package/dist/{chunk-XFKCDWXB.js → chunk-762JWOWJ.js} +1 -1
  38. package/dist/{chunk-IU2ZQ6TE.js → chunk-773TIA5M.js} +1 -1
  39. package/dist/{chunk-23AMFHXC.js → chunk-7D45IAMQ.js} +1 -1
  40. package/dist/{chunk-VPL2NDH6.js → chunk-7FQFEB33.js} +5 -5
  41. package/dist/{chunk-BPVZ7E63.js → chunk-7LV55VWE.js} +1 -1
  42. package/dist/{chunk-QUTQDXSL.js → chunk-7UNQOKZW.js} +1 -1
  43. package/dist/{chunk-IWE4RUI7.js → chunk-A27NZMWB.js} +1 -1
  44. package/dist/{chunk-7JESXDF2.js → chunk-A4SBXDZB.js} +1 -1
  45. package/dist/{chunk-AP3RFOPL.js → chunk-A5HKAMAC.js} +1 -1
  46. package/dist/{chunk-Z35BTAM6.js → chunk-AAK376RT.js} +1 -1
  47. package/dist/{chunk-DNLOSMHL.js → chunk-AERKD4TO.js} +1 -1
  48. package/dist/{chunk-WUK5NQSX.js → chunk-ANBOLDON.js} +2 -2
  49. package/dist/{chunk-TLSAQ6FG.js → chunk-AO3RFGNV.js} +1 -1
  50. package/dist/{chunk-KU5OPV7U.js → chunk-ATSMK66C.js} +1 -1
  51. package/dist/{chunk-LTWXTDDR.js → chunk-AU5EZQW7.js} +1 -1
  52. package/dist/{chunk-2YXKZWYW.js → chunk-AVD3INWF.js} +1 -1
  53. package/dist/chunk-AWEB5AQM.js +1 -0
  54. package/dist/{chunk-X4CV6TRE.js → chunk-AXNAGI32.js} +1 -1
  55. package/dist/{chunk-FQDRVPCY.js → chunk-BL46CZ2M.js} +1 -1
  56. package/dist/{chunk-OKOYLEA7.js → chunk-BQWK3C47.js} +3 -3
  57. package/dist/{chunk-C3LZPAAH.js → chunk-CEHXOWA6.js} +1 -1
  58. package/dist/{chunk-N5ROZKPZ.js → chunk-CFOXXOO2.js} +1 -1
  59. package/dist/{chunk-PIBY5DDZ.js → chunk-CRALWNNO.js} +1 -1
  60. package/dist/{chunk-NO5KVFTV.js → chunk-CV5EQGES.js} +3 -3
  61. package/dist/{chunk-H4W4DFKK.js → chunk-CX5CC6P5.js} +1 -1
  62. package/dist/{chunk-OKNBZSGN.js → chunk-DCLUZFT7.js} +1 -1
  63. package/dist/{chunk-2EJCY4CE.js → chunk-DNXYKGV2.js} +1 -1
  64. package/dist/{chunk-IOQQUHST.js → chunk-DTIWUT2T.js} +1 -1
  65. package/dist/{chunk-6TORWTD7.js → chunk-DYNH5SKT.js} +1 -1
  66. package/dist/{chunk-D3DDLLNF.js → chunk-DZQYG32N.js} +1 -1
  67. package/dist/{chunk-QTGMS62F.js → chunk-E7DHELFH.js} +1 -1
  68. package/dist/{chunk-PUTZFF2Z.js → chunk-EH7ZTFS4.js} +3 -3
  69. package/dist/{chunk-YS6VOQ7I.js → chunk-EJDWYASP.js} +1 -1
  70. package/dist/chunk-EKVTNWHM.js +1 -0
  71. package/dist/{chunk-6M3ZYNGO.js → chunk-ET2CGROE.js} +1 -1
  72. package/dist/{chunk-6ZIOYXEF.js → chunk-EVZA2TCI.js} +1 -1
  73. package/dist/{chunk-QSTEVZFQ.js → chunk-F3TMLDLC.js} +1 -1
  74. package/dist/{chunk-CW7WJZKR.js → chunk-FIYAECXH.js} +1 -1
  75. package/dist/{chunk-WDC3KIZT.js → chunk-FKIVKNOV.js} +1 -1
  76. package/dist/{chunk-7DVOSOEP.js → chunk-FOFJBRSL.js} +1 -1
  77. package/dist/{chunk-D656BV5Z.js → chunk-FQ5ZZX2G.js} +1 -1
  78. package/dist/{chunk-6YHJ554P.js → chunk-G2LVUM7N.js} +1 -1
  79. package/dist/{chunk-NPM3MFB3.js → chunk-G2OHWAY2.js} +1 -1
  80. package/dist/chunk-G3JJLXPH.js +1 -0
  81. package/dist/{chunk-57N2DFIF.js → chunk-G3RWLAOG.js} +1 -1
  82. package/dist/{chunk-4V4DQ6W7.js → chunk-G4OQABDT.js} +30 -30
  83. package/dist/{chunk-KLMDWDT2.js → chunk-GB3YC4TI.js} +1 -1
  84. package/dist/{chunk-OCOY5MV2.js → chunk-GCN4O7HM.js} +1 -1
  85. package/dist/{chunk-2N4O33VM.js → chunk-GDHD3TGC.js} +1 -1
  86. package/dist/{chunk-N3YWHJMB.js → chunk-GJXINXSU.js} +2 -2
  87. package/dist/{chunk-RAH5NW3R.js → chunk-GWHV62YT.js} +1 -1
  88. package/dist/{chunk-VA5IUGZV.js → chunk-HCTZN7L4.js} +1 -1
  89. package/dist/{chunk-LITB5QQX.js → chunk-HDC5V7RY.js} +1 -1
  90. package/dist/{chunk-K7K6GNF6.js → chunk-HIQHYPLU.js} +1 -1
  91. package/dist/{chunk-VEDZUOVI.js → chunk-HOSFU6UP.js} +3 -3
  92. package/dist/{chunk-HSYRYSX4.js → chunk-I22ZTRKK.js} +1 -1
  93. package/dist/{chunk-KLA7AWG6.js → chunk-I4R7TML2.js} +1 -1
  94. package/dist/{chunk-EENHXSWU.js → chunk-I5A6BPCP.js} +1 -1
  95. package/dist/{chunk-TNQXTZAX.js → chunk-IWOTLFOY.js} +1 -1
  96. package/dist/{chunk-PBTXPBI6.js → chunk-J3H4LPN6.js} +3 -3
  97. package/dist/{chunk-6HZTMQD6.js → chunk-J3HX6ZGD.js} +1 -1
  98. package/dist/{chunk-OYP7DKPU.js → chunk-J3JPJCWP.js} +1 -1
  99. package/dist/{chunk-E2YBU6D3.js → chunk-J5BRKYGE.js} +2 -2
  100. package/dist/{chunk-5TIJLYZU.js → chunk-JAWKLBOB.js} +1 -1
  101. package/dist/{chunk-6AJZKIZ3.js → chunk-JAWOP4HJ.js} +1 -1
  102. package/dist/{chunk-TQGTEVSR.js → chunk-JCIN73BE.js} +1 -1
  103. package/dist/{chunk-C6ABJCRG.js → chunk-JEZ3PGVC.js} +1 -1
  104. package/dist/{chunk-TGACBJIY.js → chunk-JJ6RM54S.js} +1 -1
  105. package/dist/{chunk-TXUTT6UA.js → chunk-JK3NIHTX.js} +1 -1
  106. package/dist/{chunk-OLOBQ42K.js → chunk-JLE4NBMT.js} +1 -1
  107. package/dist/{chunk-7KJ5TBWG.js → chunk-JSOGPMWB.js} +1 -1
  108. package/dist/{chunk-L2VSSINY.js → chunk-JUYJZUYU.js} +1 -1
  109. package/dist/chunk-KRQGLK2Q.js +3 -0
  110. package/dist/{chunk-3VZEETAV.js → chunk-KRZABRYT.js} +1 -1
  111. package/dist/{chunk-FBVBO5YQ.js → chunk-L2PC4MUV.js} +1 -1
  112. package/dist/{chunk-SSM346XI.js → chunk-LCZDC6EE.js} +1 -1
  113. package/dist/{chunk-NEZEHBT2.js → chunk-LXVORHCQ.js} +1 -1
  114. package/dist/{chunk-DERA4K6A.js → chunk-M2YINBHF.js} +1 -1
  115. package/dist/{chunk-VT77EFRL.js → chunk-M7YFD4EV.js} +6 -6
  116. package/dist/{chunk-DCBYHVKW.js → chunk-MEIEEENL.js} +1 -1
  117. package/dist/{chunk-7BFDUVOG.js → chunk-MIDYZPO4.js} +1 -1
  118. package/dist/{chunk-I3LX25MB.js → chunk-MINZGZ4N.js} +1 -1
  119. package/dist/{chunk-U3ZG675O.js → chunk-MMIHHCMW.js} +1 -1
  120. package/dist/{chunk-PRKBO42R.js → chunk-MPW2YJWU.js} +1 -1
  121. package/dist/{chunk-C2FFA4O4.js → chunk-MRS6LAY7.js} +1 -1
  122. package/dist/{chunk-IVGWFPMA.js → chunk-N3CNWCC2.js} +1 -1
  123. package/dist/{chunk-NXL6LDJU.js → chunk-N3NE4MVN.js} +1 -1
  124. package/dist/{chunk-WNGV4JQS.js → chunk-N3YTDGFY.js} +1 -1
  125. package/dist/{chunk-A5SQCM63.js → chunk-N5LVGFDS.js} +1 -1
  126. package/dist/{chunk-GVITHCQJ.js → chunk-NILXAUUT.js} +1 -1
  127. package/dist/{chunk-5Y7GIF2W.js → chunk-NJOO5XJV.js} +1 -1
  128. package/dist/{chunk-ULQG3XQS.js → chunk-NNOSZ447.js} +1 -1
  129. package/dist/{chunk-MGL4YM3S.js → chunk-NTRAWIEJ.js} +4 -4
  130. package/dist/{chunk-2WNODIWJ.js → chunk-NWXDOCL5.js} +1 -1
  131. package/dist/{chunk-K77WAKOB.js → chunk-OU3M32A2.js} +1 -1
  132. package/dist/chunk-OU4SKQTC.js +5 -0
  133. package/dist/{chunk-4KRT35A2.js → chunk-OXJBYKMX.js} +1 -1
  134. package/dist/{chunk-LCCMXY6N.js → chunk-OZBY45KT.js} +1 -1
  135. package/dist/{chunk-75VPUOC5.js → chunk-P2OI2P2M.js} +1 -1
  136. package/dist/{chunk-XP6IRAZN.js → chunk-PCCK4YTE.js} +1 -1
  137. package/dist/{chunk-2VLMN5QZ.js → chunk-PFGYC53K.js} +1 -1
  138. package/dist/{chunk-YGMVL6NZ.js → chunk-PMS4MNHB.js} +2 -2
  139. package/dist/{chunk-OA4P6AKS.js → chunk-PNP5OKNZ.js} +1 -1
  140. package/dist/{chunk-XX343DDG.js → chunk-PXHY753L.js} +1 -1
  141. package/dist/{chunk-UURFVUAH.js → chunk-Q73GEVSJ.js} +1 -1
  142. package/dist/{chunk-M2TJICTB.js → chunk-Q77MM2N2.js} +1 -1
  143. package/dist/{chunk-XDAOLCPN.js → chunk-Q7C44DX5.js} +1 -1
  144. package/dist/chunk-QDVJJKLB.js +1 -0
  145. package/dist/{chunk-5CH3B62S.js → chunk-RJ5VF3QY.js} +1 -1
  146. package/dist/{chunk-LQMSF3F7.js → chunk-RKDZGK5K.js} +1 -1
  147. package/dist/{chunk-VYXVYOIJ.js → chunk-RSRYC5ZF.js} +1 -1
  148. package/dist/{chunk-HLMFVORT.js → chunk-S22NCNAJ.js} +1 -1
  149. package/dist/{chunk-UARVYVLN.js → chunk-S5IFJ737.js} +2 -2
  150. package/dist/{chunk-42RMKTCJ.js → chunk-S6B2ADVR.js} +1 -1
  151. package/dist/chunk-S7F5KFQP.js +1 -0
  152. package/dist/{chunk-UBKVCI7A.js → chunk-SSCYLDSX.js} +1 -1
  153. package/dist/{chunk-QFWIDATO.js → chunk-STJ3LWFL.js} +1 -1
  154. package/dist/{chunk-LKS47US7.js → chunk-T3ERXB7F.js} +1 -1
  155. package/dist/{chunk-PLQFX5ZP.js → chunk-T4IV643Z.js} +1 -1
  156. package/dist/{chunk-BECEP46I.js → chunk-T4NS63K4.js} +1 -1
  157. package/dist/{chunk-3YWUSKWF.js → chunk-T6CC5WUU.js} +1 -1
  158. package/dist/{chunk-3TNEIDOD.js → chunk-T7KHS6RF.js} +1 -1
  159. package/dist/{chunk-QYR5VPQA.js → chunk-TOLPNBZK.js} +1 -1
  160. package/dist/{chunk-XXE7667M.js → chunk-TP7E54WN.js} +1 -1
  161. package/dist/chunk-TPCG6DCA.js +1 -0
  162. package/dist/{chunk-2KH2S7PI.js → chunk-TRYWVIVJ.js} +1 -1
  163. package/dist/chunk-TU47HMTL.js +1 -0
  164. package/dist/{chunk-HHXHOQQP.js → chunk-TUNUEOHO.js} +1 -1
  165. package/dist/{chunk-PS25FEBF.js → chunk-TY6BZTG3.js} +1 -1
  166. package/dist/chunk-TYMYIUIQ.js +1 -0
  167. package/dist/chunk-UB26DGTR.js +6 -0
  168. package/dist/{chunk-HJSYHK4S.js → chunk-UC7KMA6W.js} +1 -1
  169. package/dist/{chunk-FD5S2O6M.js → chunk-UOHNRH6E.js} +1 -1
  170. package/dist/{chunk-ZR76GGZ6.js → chunk-UQWFDL3F.js} +1 -1
  171. package/dist/{chunk-M4LOKANA.js → chunk-USLYL5AC.js} +1 -1
  172. package/dist/{chunk-VICNWPLQ.js → chunk-UTO4Z6P6.js} +12 -12
  173. package/dist/{chunk-F47MFBKM.js → chunk-UU5P2IYU.js} +1 -1
  174. package/dist/chunk-UYSF234H.js +1 -0
  175. package/dist/chunk-VE35YELD.js +1 -0
  176. package/dist/{chunk-6YAXFS6V.js → chunk-VI34CKV6.js} +1 -1
  177. package/dist/{chunk-M4V2OQAX.js → chunk-VJ6KDRZI.js} +1 -1
  178. package/dist/{chunk-VBUZWRUL.js → chunk-VJEKDBGZ.js} +1 -1
  179. package/dist/chunk-VKWPEFWQ.js +1 -0
  180. package/dist/chunk-VPPWSKOY.js +1 -0
  181. package/dist/chunk-VRJTLVG3.js +1 -0
  182. package/dist/chunk-VUMUCNI7.js +1 -0
  183. package/dist/chunk-W7DDV2EY.js +1 -0
  184. package/dist/{chunk-RL5BWZ7D.js → chunk-WA3YC5W4.js} +1 -1
  185. package/dist/{chunk-MFLBTJO7.js → chunk-WHNWE7P2.js} +1 -1
  186. package/dist/{chunk-R6JNXEB3.js → chunk-WVRGCNBZ.js} +1 -1
  187. package/dist/{chunk-MOA33ZFO.js → chunk-WW7TENNA.js} +1 -1
  188. package/dist/{chunk-HZA6IAA4.js → chunk-XVUHUA36.js} +1 -1
  189. package/dist/{chunk-PSQFZAF3.js → chunk-XWPPBOGF.js} +1 -1
  190. package/dist/chunk-YIRFEW5M.js +1 -0
  191. package/dist/{chunk-RGNAWKD7.js → chunk-YL3TYQGT.js} +1 -1
  192. package/dist/{chunk-A3VYI4LO.js → chunk-YLQ3LNNY.js} +3 -3
  193. package/dist/{chunk-MA52QGHP.js → chunk-YMAWEIUR.js} +1 -1
  194. package/dist/{chunk-6LK6ZP3Q.js → chunk-YPBCSDFQ.js} +1 -1
  195. package/dist/{chunk-3BRUCKZ2.js → chunk-YSIBRY6C.js} +1 -1
  196. package/dist/{chunk-FGVC22EY.js → chunk-YVQXEPHY.js} +1 -1
  197. package/dist/{chunk-4LNCYIS3.js → chunk-ZDF5N422.js} +1 -1
  198. package/dist/{chunk-T4M5CWAO.js → chunk-ZG7BVVT2.js} +1 -1
  199. package/dist/chunk-ZGJ3DFTQ.js +9 -0
  200. package/dist/{chunk-NKQBEFPS.js → chunk-ZI7LK3LW.js} +1 -1
  201. package/dist/{chunk-IXUVSFW2.js → chunk-ZM75DSIW.js} +1 -1
  202. package/dist/{chunk-3V63X7WZ.js → chunk-ZUKLGZOU.js} +1 -1
  203. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  204. package/dist/cli/commands/app/build.js +1 -1
  205. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  206. package/dist/cli/commands/app/bulk/execute.js +1 -1
  207. package/dist/cli/commands/app/bulk/status.js +1 -1
  208. package/dist/cli/commands/app/config/link.js +1 -1
  209. package/dist/cli/commands/app/config/pull.js +1 -1
  210. package/dist/cli/commands/app/config/use.js +1 -1
  211. package/dist/cli/commands/app/config/validate.js +1 -1
  212. package/dist/cli/commands/app/demo/watcher.js +1 -1
  213. package/dist/cli/commands/app/deploy.js +1 -1
  214. package/dist/cli/commands/app/dev/clean.js +1 -1
  215. package/dist/cli/commands/app/dev.js +1 -1
  216. package/dist/cli/commands/app/env/pull.js +1 -1
  217. package/dist/cli/commands/app/env/show.js +1 -1
  218. package/dist/cli/commands/app/execute.js +1 -1
  219. package/dist/cli/commands/app/function/build.js +1 -1
  220. package/dist/cli/commands/app/function/info.js +1 -1
  221. package/dist/cli/commands/app/function/replay.js +1 -1
  222. package/dist/cli/commands/app/function/run.js +1 -1
  223. package/dist/cli/commands/app/function/schema.js +1 -1
  224. package/dist/cli/commands/app/function/typegen.js +1 -1
  225. package/dist/cli/commands/app/generate/extension.js +1 -1
  226. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  227. package/dist/cli/commands/app/import-extensions.js +1 -1
  228. package/dist/cli/commands/app/info.js +1 -1
  229. package/dist/cli/commands/app/init.js +1 -1
  230. package/dist/cli/commands/app/logs.js +1 -1
  231. package/dist/cli/commands/app/release.js +1 -1
  232. package/dist/cli/commands/app/versions/list.js +1 -1
  233. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  234. package/dist/cli/commands/auth/login.js +1 -1
  235. package/dist/cli/commands/auth/logout.js +1 -1
  236. package/dist/cli/commands/cache/clear.js +1 -1
  237. package/dist/cli/commands/config/autoupgrade/constants.js +1 -1
  238. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  239. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  240. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  241. package/dist/cli/commands/debug/command-flags.js +1 -1
  242. package/dist/cli/commands/doc/fetch.d.ts +12 -0
  243. package/dist/cli/commands/doc/fetch.js +1 -0
  244. package/dist/cli/commands/doc/search.d.ts +13 -0
  245. package/dist/cli/commands/doc/search.js +1 -0
  246. package/dist/cli/commands/docs/generate.js +1 -1
  247. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  248. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  249. package/dist/cli/commands/help.js +1 -1
  250. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  251. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  252. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  253. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  254. package/dist/cli/commands/notifications/generate.js +1 -1
  255. package/dist/cli/commands/notifications/list.js +1 -1
  256. package/dist/cli/commands/organization/list.js +1 -1
  257. package/dist/cli/commands/search.d.ts +4 -0
  258. package/dist/cli/commands/search.js +1 -1
  259. package/dist/cli/commands/theme/check.js +1 -1
  260. package/dist/cli/commands/theme/console.js +1 -1
  261. package/dist/cli/commands/theme/delete.js +1 -1
  262. package/dist/cli/commands/theme/dev.js +1 -1
  263. package/dist/cli/commands/theme/duplicate.js +1 -1
  264. package/dist/cli/commands/theme/info.js +1 -1
  265. package/dist/cli/commands/theme/init.js +1 -1
  266. package/dist/cli/commands/theme/language-server.js +1 -1
  267. package/dist/cli/commands/theme/list.js +1 -1
  268. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  269. package/dist/cli/commands/theme/open.js +1 -1
  270. package/dist/cli/commands/theme/package.js +1 -1
  271. package/dist/cli/commands/theme/preview.js +1 -1
  272. package/dist/cli/commands/theme/profile.js +1 -1
  273. package/dist/cli/commands/theme/publish.js +1 -1
  274. package/dist/cli/commands/theme/pull.js +1 -1
  275. package/dist/cli/commands/theme/push.js +1 -1
  276. package/dist/cli/commands/theme/rename.js +1 -1
  277. package/dist/cli/commands/theme/share.js +1 -1
  278. package/dist/cli/commands/upgrade.js +1 -1
  279. package/dist/cli/commands/version.js +1 -1
  280. package/dist/cli/services/commands/doc/fetch.d.ts +1 -0
  281. package/dist/cli/services/commands/doc/fetch.js +45 -0
  282. package/dist/cli/services/commands/doc/search.d.ts +1 -0
  283. package/dist/cli/services/commands/doc/search.js +47 -0
  284. package/dist/command-registry.js +1 -1
  285. package/dist/{conf-store-6QNH5BID.js → conf-store-UY3MDGGA.js} +1 -1
  286. package/dist/{custom-oclif-loader-TSPWW5YF.js → custom-oclif-loader-3AICQCNU.js} +1 -1
  287. package/dist/deprecations-KNUMDRIU.js +1 -0
  288. package/dist/{devtools-HCKYP7DQ.js → devtools-37DE4MUR.js} +1 -1
  289. package/dist/{devtools-VEZNCV6W.js → devtools-WAWU5KQL.js} +1 -1
  290. package/dist/dist-C5IV2YDQ.js +1 -0
  291. package/dist/dist-VL4KZWV2.js +1 -0
  292. package/dist/environments-YPRVO2CF.js +1 -0
  293. package/dist/error-XRBQTNFM.js +1 -0
  294. package/dist/error-handler-NI7D6GSY.js +1 -0
  295. package/dist/{estree-BYYJYS3A.js → estree-JV5M77BA.js} +1 -1
  296. package/dist/{flow-M3Q2HPQT.js → flow-N4JYPYMQ.js} +1 -1
  297. package/dist/{fs-YMUQ6JLE.js → fs-LJWVNO4H.js} +1 -1
  298. package/dist/{glimmer-3DEJJGOJ.js → glimmer-JEV3BXHR.js} +1 -1
  299. package/dist/{graphql-A4HHE3MB.js → graphql-DTF6MHYF.js} +1 -1
  300. package/dist/hooks/app-init.js +1 -1
  301. package/dist/hooks/did-you-mean.js +1 -1
  302. package/dist/hooks/hydrogen-init.js +1 -1
  303. package/dist/hooks/plugin-plugins.js +1 -1
  304. package/dist/hooks/postrun.js +1 -1
  305. package/dist/hooks/prerun.js +1 -1
  306. package/dist/hooks/public-metadata.js +1 -1
  307. package/dist/hooks/sensitive-metadata.js +1 -1
  308. package/dist/hooks/tunnel-provider.js +1 -1
  309. package/dist/hooks/tunnel-start.js +1 -1
  310. package/dist/{html-HETICZ2F.js → html-LVOJ3RQS.js} +1 -1
  311. package/dist/{http-proxy-node16-Q5DZMBHC.js → http-proxy-node16-X2WAMUT5.js} +1 -1
  312. package/dist/index.js +28 -7
  313. package/dist/is-global-W6ALVC5L.js +1 -0
  314. package/dist/{is-wsl-TN2CXYI7.js → is-wsl-UEMXYJPN.js} +1 -1
  315. package/dist/{latest-version-6OAYLOBL.js → latest-version-32HXMWJ7.js} +1 -1
  316. package/dist/lib-AIKYSHWL.js +1 -0
  317. package/dist/lib-O5EZ4NVT.js +1 -0
  318. package/dist/lib-Q4PWEMFD.js +1 -0
  319. package/dist/lib-QJDPPAWN.js +1 -0
  320. package/dist/{local-GPDAXHE6.js → local-GKEWZAIV.js} +1 -1
  321. package/dist/local-storage-ZOZMA22B.js +1 -0
  322. package/dist/{markdown-5TVCXM53.js → markdown-J6CE6POI.js} +1 -1
  323. package/dist/{meriyah-23OZNYWC.js → meriyah-PNQQZQYI.js} +1 -1
  324. package/dist/metadata-UEUN64TK.js +1 -0
  325. package/dist/{morph-I35VYPBH.js → morph-CGOZEPPZ.js} +1 -1
  326. package/dist/{multipart-parser-Q4QJZK3V.js → multipart-parser-5NSSTW27.js} +1 -1
  327. package/dist/{node-package-manager-GO4ZRTKQ.js → node-package-manager-4ASQQIIF.js} +1 -1
  328. package/dist/notifications-system-HLXJCAMG.js +1 -0
  329. package/dist/{npa-VNALV7XY.js → npa-A4YSCQ5Q.js} +1 -1
  330. package/dist/{open-VA7TLUIL.js → open-KLSGXBIW.js} +1 -1
  331. package/dist/out-CDCY25QC.js +1 -0
  332. package/dist/{output-7IYOMPSA.js → output-S6E37GJQ.js} +1 -1
  333. package/dist/{path-CWUNINMX.js → path-MBXP7ZIC.js} +1 -1
  334. package/dist/{postcss-IIK6CGAW.js → postcss-Q36SHOML.js} +1 -1
  335. package/dist/{prettier-ZSBNNQTK.js → prettier-EGVCP5CY.js} +1 -1
  336. package/dist/{source-map-3K6Y2OMO.js → source-map-E7FCCJL7.js} +1 -1
  337. package/dist/system-YQZNGSWB.js +1 -0
  338. package/dist/tsconfig.tsbuildinfo +1 -1
  339. package/dist/typescript-5R4Y7PXE.js +1 -0
  340. package/dist/{typescript-YKZ232QT.js → typescript-WYPDGPSV.js} +1 -1
  341. package/dist/ui-D2FFWRK7.js +1 -0
  342. package/dist/upgrade-TVTCFMXM.js +1 -0
  343. package/dist/version-J6MDN7BZ.js +1 -0
  344. package/dist/version-RIRW5EXQ.js +1 -0
  345. package/dist/{workerd-ST6XJKUN.js → workerd-QOTT6UCO.js} +1 -1
  346. package/dist/{yaml-SJKIH3VD.js → yaml-6KWCJ64X.js} +1 -1
  347. package/oclif.manifest.json +304 -6
  348. package/package.json +11 -8
  349. package/dist/analytics-CX22YIUZ.js +0 -1
  350. package/dist/analytics-UBWQIQYF.js +0 -1
  351. package/dist/chunk-4ZGSSQC6.js +0 -1
  352. package/dist/chunk-6SXOUZ7V.js +0 -1
  353. package/dist/chunk-ATPFTRCC.js +0 -1
  354. package/dist/chunk-AWQ5AR2K.js +0 -5
  355. package/dist/chunk-BHWEA4V2.js +0 -1
  356. package/dist/chunk-CCEA5CUX.js +0 -1
  357. package/dist/chunk-FP2NOZSD.js +0 -1
  358. package/dist/chunk-FSTCEWXX.js +0 -1
  359. package/dist/chunk-K3PGC6DC.js +0 -1
  360. package/dist/chunk-KFCGMT67.js +0 -1
  361. package/dist/chunk-KQU6HOJ3.js +0 -1
  362. package/dist/chunk-NP4UFPAX.js +0 -9
  363. package/dist/chunk-RVMB5LC2.js +0 -1
  364. package/dist/chunk-T5MK7ZSF.js +0 -1
  365. package/dist/chunk-UOQ75BL3.js +0 -1
  366. package/dist/chunk-UWJ73J4B.js +0 -1
  367. package/dist/chunk-VPRTJUIN.js +0 -1
  368. package/dist/chunk-WCWNI3ZV.js +0 -283
  369. package/dist/chunk-XEFQQPL4.js +0 -1
  370. package/dist/chunk-YJB7P2HC.js +0 -1
  371. package/dist/chunk-YOZNRLFC.js +0 -1
  372. package/dist/deprecations-F6JWVV2W.js +0 -1
  373. package/dist/dist-4BD6KOLR.js +0 -1
  374. package/dist/dist-AUABCVPI.js +0 -1
  375. package/dist/environments-RGLI75HN.js +0 -1
  376. package/dist/error-OZALZZ3U.js +0 -1
  377. package/dist/error-handler-V7LSEXHM.js +0 -1
  378. package/dist/is-global-BLIZ57HQ.js +0 -1
  379. package/dist/lib-AK5EOIKR.js +0 -1
  380. package/dist/lib-LVUMLZ4H.js +0 -1
  381. package/dist/lib-ME6554NA.js +0 -1
  382. package/dist/lib-WU3FEA6I.js +0 -1
  383. package/dist/local-storage-P66KJG6I.js +0 -1
  384. package/dist/metadata-TRH25EHU.js +0 -1
  385. package/dist/notifications-system-HM6JZ6WJ.js +0 -1
  386. package/dist/out-WLY6KV4B.js +0 -1
  387. package/dist/system-X5C4EQQH.js +0 -1
  388. package/dist/typescript-K5CWIA4V.js +0 -1
  389. package/dist/ui-H62CMRLG.js +0 -1
  390. package/dist/upgrade-EEOPH464.js +0 -1
  391. package/dist/version-76NBQR4K.js +0 -1
  392. package/dist/version-IGSEISUA.js +0 -1
@@ -1 +1 @@
1
- import{a as i,c as m,g as o}from"./chunk-VPRTJUIN.js";var B=m((q,h)=>{"use strict";o();var{PassThrough:x}=i("stream");h.exports=e=>{e={...e};let{array:r}=e,{encoding:s}=e,f=s==="buffer",u=!1;r?u=!(s||f):s=s||"utf8",f&&(s=null);let n=new x({objectMode:u});s&&n.setEncoding(s);let a=0,t=[];return n.on("data",l=>{t.push(l),u?a=t.length:a+=l.length}),n.getBufferedValue=()=>r?t:f?Buffer.concat(t,a):t.join(""),n.getBufferedLength=()=>a,n}});var p=m((j,c)=>{"use strict";o();var{constants:y}=i("buffer"),w=i("stream"),{promisify:b}=i("util"),E=B(),P=b(w.pipeline),d=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function g(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:s}=r,f=E(r);return await new Promise((u,n)=>{let a=t=>{t&&f.getBufferedLength()<=y.MAX_LENGTH&&(t.bufferedData=f.getBufferedValue()),n(t)};(async()=>{try{await P(e,f),u()}catch(t){a(t)}})(),f.on("data",()=>{f.getBufferedLength()>s&&a(new d)})}),f.getBufferedValue()}c.exports=g;c.exports.buffer=(e,r)=>g(e,{...r,encoding:"buffer"});c.exports.array=(e,r)=>g(e,{...r,array:!0});c.exports.MaxBufferError=d});export{p as a};
1
+ import{a as i,c as m,g as o}from"./chunk-VKWPEFWQ.js";var B=m((q,h)=>{"use strict";o();var{PassThrough:x}=i("stream");h.exports=e=>{e={...e};let{array:r}=e,{encoding:s}=e,f=s==="buffer",u=!1;r?u=!(s||f):s=s||"utf8",f&&(s=null);let n=new x({objectMode:u});s&&n.setEncoding(s);let a=0,t=[];return n.on("data",l=>{t.push(l),u?a=t.length:a+=l.length}),n.getBufferedValue=()=>r?t:f?Buffer.concat(t,a):t.join(""),n.getBufferedLength=()=>a,n}});var p=m((j,c)=>{"use strict";o();var{constants:y}=i("buffer"),w=i("stream"),{promisify:b}=i("util"),E=B(),P=b(w.pipeline),d=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function g(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:s}=r,f=E(r);return await new Promise((u,n)=>{let a=t=>{t&&f.getBufferedLength()<=y.MAX_LENGTH&&(t.bufferedData=f.getBufferedValue()),n(t)};(async()=>{try{await P(e,f),u()}catch(t){a(t)}})(),f.on("data",()=>{f.getBufferedLength()>s&&a(new d)})}),f.getBufferedValue()}c.exports=g;c.exports.buffer=(e,r)=>g(e,{...r,encoding:"buffer"});c.exports.array=(e,r)=>g(e,{...r,array:!0});c.exports.MaxBufferError=d});export{p as a};
@@ -1 +1 @@
1
- import{g as a}from"./chunk-VPRTJUIN.js";a();var o={on:"Auto-upgrade on. Shopify CLI will update automatically after each command.",off:"Auto-upgrade off. You'll need to run `shopify upgrade` to update manually."};export{o as a};
1
+ import{g as a}from"./chunk-VKWPEFWQ.js";a();var o={on:"Auto-upgrade on. Shopify CLI will update automatically after each command.",off:"Auto-upgrade off. You'll need to run `shopify upgrade` to update manually."};export{o as a};
@@ -1,4 +1,4 @@
1
- import{a as yo,b as Oo,c as Br,d as Yr}from"./chunk-3TNEIDOD.js";import{b as mo}from"./chunk-3YWUSKWF.js";import{a as N,c as f,g as i}from"./chunk-VPRTJUIN.js";var zr=f(ie=>{"use strict";i();Object.defineProperty(ie,"__esModule",{value:!0});ie.boolean=void 0;var vo=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1"].includes(r.trim().toLowerCase());case"[object Number]":return r.valueOf()===1;case"[object Boolean]":return r.valueOf();default:return!1}};ie.boolean=vo});var Wr=f(ae=>{"use strict";i();Object.defineProperty(ae,"__esModule",{value:!0});ae.isBooleanable=void 0;var bo=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(r.trim().toLowerCase());case"[object Number]":return[0,1].includes(r.valueOf());case"[object Boolean]":return!0;default:return!1}};ae.isBooleanable=bo});var ue=f(D=>{"use strict";i();Object.defineProperty(D,"__esModule",{value:!0});D.isBooleanable=D.boolean=void 0;var Ro=zr();Object.defineProperty(D,"boolean",{enumerable:!0,get:function(){return Ro.boolean}});var _o=Wr();Object.defineProperty(D,"isBooleanable",{enumerable:!0,get:function(){return _o.isBooleanable}})});var le=f((xc,Kr)=>{i();Kr.exports=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"});var Ye=f((Dc,Zr)=>{"use strict";i();var Jr=Object.prototype.toString;Zr.exports=function(e){var t=Jr.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Jr.call(e.callee)==="[object Function]"),n}});var at=f((Gc,it)=>{"use strict";i();var ot;Object.keys||(H=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,Qr=Ye(),We=Object.prototype.propertyIsEnumerable,et=!We.call({toString:null},"toString"),rt=We.call(function(){},"prototype"),V=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ce=function(r){var e=r.constructor;return e&&e.prototype===r},tt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},nt=(function(){if(typeof window>"u")return!1;for(var r in window)try{if(!tt["$"+r]&&H.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{ce(window[r])}catch{return!0}}catch{return!0}return!1})(),st=function(r){if(typeof window>"u"||!nt)return ce(r);try{return ce(r)}catch{return!1}},ot=function(e){var t=e!==null&&typeof e=="object",n=ze.call(e)==="[object Function]",s=Qr(e),o=t&&ze.call(e)==="[object String]",a=[];if(!t&&!n&&!s)throw new TypeError("Object.keys called on a non-object");var c=rt&&n;if(o&&e.length>0&&!H.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(s&&e.length>0)for(var E=0;E<e.length;++E)a.push(String(E));else for(var u in e)!(c&&u==="prototype")&&H.call(e,u)&&a.push(String(u));if(et)for(var p=st(e),m=0;m<V.length;++m)!(p&&V[m]==="constructor")&&H.call(e,V[m])&&a.push(V[m]);return a});var H,ze,Qr,We,et,rt,V,ce,tt,nt,st;it.exports=ot});var ft=f((Uc,ct)=>{"use strict";i();var wo=Array.prototype.slice,Po=Ye(),ut=Object.keys,fe=ut?function(e){return ut(e)}:at(),lt=Object.keys;fe.shim=function(){if(Object.keys){var e=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);e||(Object.keys=function(n){return Po(n)?lt(wo.call(n)):lt(n)})}else Object.keys=fe;return Object.keys||fe};ct.exports=fe});var gt=f((Xc,ht)=>{"use strict";i();var pt=Yr(),$o=yo(),j=Oo(),dt=Br();ht.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new j("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new j("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new j("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new j("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new j("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new j("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!dt&&dt(e,t);if(pt)pt(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:s===null&&l?l.enumerable:!s,value:n,writable:o===null&&l?l.writable:!o});else if(c||!s&&!o&&!a)e[t]=n;else throw new $o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var yt=f((Hc,mt)=>{"use strict";i();var Ke=Yr(),Et=function(){return!!Ke};Et.hasArrayLengthDefineBug=function(){if(!Ke)return null;try{return Ke([],"length",{value:1}).length!==1}catch{return!0}};mt.exports=Et});var Je=f((Bc,Rt)=>{"use strict";i();var Ao=ft(),No=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",To=Object.prototype.toString,Lo=Array.prototype.concat,Ot=gt(),So=function(r){return typeof r=="function"&&To.call(r)==="[object Function]"},vt=yt()(),Io=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!So(n)||!n())return}vt?Ot(r,e,t,!0):Ot(r,e,t)},bt=function(r,e){var t=arguments.length>2?arguments[2]:{},n=Ao(e);No&&(n=Lo.call(n,Object.getOwnPropertySymbols(e)));for(var s=0;s<n.length;s+=1)Io(r,n[s],e[n[s]],t[n[s]])};bt.supportsDescriptors=!!vt;Rt.exports=bt});var Ze=f((zc,_t)=>{"use strict";i();_t.exports=global});var Qe=f((Kc,wt)=>{"use strict";i();var qo=Ze();wt.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?qo:global}});var $t=f((Zc,Pt)=>{"use strict";i();var xo=Je(),Co=Br(),Do=Qe();Pt.exports=function(){var e=Do();if(xo.supportsDescriptors){var t=Co(e,"globalThis");(!t||t.configurable&&(t.enumerable||!t.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e}});var er=f((ef,Tt)=>{"use strict";i();var jo=Je(),Go=Ze(),At=Qe(),Mo=$t(),Uo=At(),Nt=function(){return Uo};jo(Nt,{getPolyfill:At,implementation:Go,shim:Mo});Tt.exports=Nt});var It=f((rr,St)=>{i();rr=St.exports=ko;rr.getSerialize=Lt;function ko(r,e,t,n){return JSON.stringify(r,Lt(e,n),t)}function Lt(r,e){var t=[],n=[];return e==null&&(e=function(s,o){return t[0]===o?"[Circular ~]":"[Circular ~."+n.slice(0,t.indexOf(o)).join(".")+"]"}),function(s,o){if(t.length>0){var a=t.indexOf(this);~a?t.splice(a+1):t.push(this),~a?n.splice(a,1/0,s):n.push(s),~t.indexOf(o)&&(o=e.call(this,s,o))}else t.push(o);return r==null?o:r.call(this,s,o)}}});var qt=f(pe=>{i();(function(){"use strict";var r={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(a){return n(o(a),arguments)}function t(a,c){return e.apply(null,[a].concat(c||[]))}function n(a,c){var l=1,E=a.length,u,p="",m,g,O,S,I,C,oe,q;for(m=0;m<E;m++)if(typeof a[m]=="string")p+=a[m];else if(typeof a[m]=="object"){if(O=a[m],O.keys)for(u=c[l],g=0;g<O.keys.length;g++){if(u==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',O.keys[g],O.keys[g-1]));u=u[O.keys[g]]}else O.param_no?u=c[O.param_no]:u=c[l++];if(r.not_type.test(O.type)&&r.not_primitive.test(O.type)&&u instanceof Function&&(u=u()),r.numeric_arg.test(O.type)&&typeof u!="number"&&isNaN(u))throw new TypeError(e("[sprintf] expecting number but found %T",u));switch(r.number.test(O.type)&&(oe=u>=0),O.type){case"b":u=parseInt(u,10).toString(2);break;case"c":u=String.fromCharCode(parseInt(u,10));break;case"d":case"i":u=parseInt(u,10);break;case"j":u=JSON.stringify(u,null,O.width?parseInt(O.width):0);break;case"e":u=O.precision?parseFloat(u).toExponential(O.precision):parseFloat(u).toExponential();break;case"f":u=O.precision?parseFloat(u).toFixed(O.precision):parseFloat(u);break;case"g":u=O.precision?String(Number(u.toPrecision(O.precision))):parseFloat(u);break;case"o":u=(parseInt(u,10)>>>0).toString(8);break;case"s":u=String(u),u=O.precision?u.substring(0,O.precision):u;break;case"t":u=String(!!u),u=O.precision?u.substring(0,O.precision):u;break;case"T":u=Object.prototype.toString.call(u).slice(8,-1).toLowerCase(),u=O.precision?u.substring(0,O.precision):u;break;case"u":u=parseInt(u,10)>>>0;break;case"v":u=u.valueOf(),u=O.precision?u.substring(0,O.precision):u;break;case"x":u=(parseInt(u,10)>>>0).toString(16);break;case"X":u=(parseInt(u,10)>>>0).toString(16).toUpperCase();break}r.json.test(O.type)?p+=u:(r.number.test(O.type)&&(!oe||O.sign)?(q=oe?"+":"-",u=u.toString().replace(r.sign,"")):q="",I=O.pad_char?O.pad_char==="0"?"0":O.pad_char.charAt(1):" ",C=O.width-(q+u).length,S=O.width&&C>0?I.repeat(C):"",p+=O.align?q+u+S:I==="0"?q+S+u:S+q+u)}return p}var s=Object.create(null);function o(a){if(s[a])return s[a];for(var c=a,l,E=[],u=0;c;){if((l=r.text.exec(c))!==null)E.push(l[0]);else if((l=r.modulo.exec(c))!==null)E.push("%");else if((l=r.placeholder.exec(c))!==null){if(l[2]){u|=1;var p=[],m=l[2],g=[];if((g=r.key.exec(m))!==null)for(p.push(g[1]);(m=m.substring(g[0].length))!=="";)if((g=r.key_access.exec(m))!==null)p.push(g[1]);else if((g=r.index_access.exec(m))!==null)p.push(g[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=p}else u|=2;if(u===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");E.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");c=c.substring(l[0].length)}return s[a]=E}typeof pe<"u"&&(pe.sprintf=e,pe.vsprintf=t),typeof window<"u"&&(window.sprintf=e,window.vsprintf=t,typeof define=="function"&&define.amd&&define(function(){return{sprintf:e,vsprintf:t}}))})()});var tr=f(de=>{"use strict";i();Object.defineProperty(de,"__esModule",{value:!0});de.logLevels=void 0;var Xo={debug:20,error:50,fatal:60,info:30,trace:10,warn:40};de.logLevels=Xo});var Dt=f(ge=>{"use strict";i();Object.defineProperty(ge,"__esModule",{value:!0});ge.default=void 0;var Fo=ir(le()),Ho=ir(er()),Vo=ir(It()),nr=qt(),xt=tr();function ir(r){return r&&r.__esModule?r:{default:r}}function sr(){return sr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},sr.apply(this,arguments)}function Ct(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function w(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ct(Object(t),!0).forEach(function(n){Bo(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ct(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Bo(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Yo=(0,Ho.default)(),B;Fo.default&&(B=N("domain"));var zo=()=>{if(!B)return{};let r=[],e=process.domain;if(!e||!e.parentDomain)return{};for(;e&&e.parentDomain;)e=e.parentDomain,e.roarr&&e.roarr.context&&r.push(e.roarr.context);let t={};for(let n of r)t=w(w({},t),n);return t},he=()=>{if(!B)return{};let r=process.domain;if(r&&r.roarr&&r.roarr.context)return r.roarr.context;if(!r||!r.parentDomain)return{};for(;r&&r.parentDomain;)if(r=r.parentDomain,r.roarr&&r.roarr.context)return r.roarr.context;return{}},or=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{let g=Date.now(),O=Yo.ROARR.sequence++,S,I;if(typeof n=="string"){S=w(w({},he()),e||{});let C=sr({},{a:n,b:s,c:o,d:a,e:c,f:l,g:E,h:u,i:p,k:m});I=Object.keys(C).map(Be=>C[Be]).reduce((Be,Eo)=>Be+=typeof Eo>"u"?0:1,0)===1?(0,nr.sprintf)("%s",n):(0,nr.sprintf)(n,s,o,a,c,l,E,u,p,m)}else{if(typeof s!="string")throw new TypeError("Message must be a string.");S=JSON.parse((0,Vo.default)(w(w(w({},he()),e||{}),n))),I=(0,nr.sprintf)(s,o,a,c,l,E,u,p,m)}r({context:S,message:I,sequence:O,time:g,version:"1.0.0"})};t.child=n=>typeof n=="function"?or(s=>{if(typeof n!="function")throw new TypeError("Unexpected state.");r(n(s))},e):or(r,w(w(w({},he()),e),n)),t.getContext=()=>w(w({},he()),e||{}),t.adopt=async(n,s)=>{if(!B)return n();let o=B.create();return o.run(()=>(o.roarr={context:w(w({},zo()),s)},n()))};for(let n of Object.keys(xt.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:xt.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Wo=or;ge.default=Wo});var Mt=f(Ee=>{"use strict";i();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.default=void 0;var jt=tr(),Gt=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{};t.adopt=async n=>n(),t.child=n=>Gt(r,e),t.getContext=()=>({});for(let n of Object.keys(jt.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:jt.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Ko=Gt;Ee.default=Ko});var kt=f((pf,Ut)=>{i();Ut.exports=function(e,t){for(var n=e.split("."),s=t.split("."),o=0;o<3;o++){var a=Number(n[o]),c=Number(s[o]);if(a>c)return 1;if(c>a)return-1;if(!isNaN(a)&&isNaN(c))return 1;if(isNaN(a)&&!isNaN(c))return-1}return 0}});var Xt=f((hf,Jo)=>{Jo.exports={author:{email:"gajus@gajus.com",name:"Gajus Kuizinas",url:"http://gajus.com"},ava:{babel:{compileAsTests:["test/helpers/**/*"]},files:["test/roarr/**/*"],require:["@babel/register"]},dependencies:{boolean:"^3.0.1","detect-node":"^2.0.4",globalthis:"^1.0.1","json-stringify-safe":"^5.0.1","semver-compare":"^1.0.0","sprintf-js":"^1.1.2"},description:"JSON logger for Node.js and browser.",devDependencies:{"@ava/babel":"^1.0.1","@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/node":"^7.10.5","@babel/plugin-transform-flow-strip-types":"^7.10.4","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5",ava:"^3.12.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-transform-export-default-name":"^2.0.4",coveralls:"^3.1.0","domain-parent":"^1.0.0",eslint:"^7.9.0","eslint-config-canonical":"^24.1.1","flow-bin":"^0.133.0","flow-copy-source":"^2.0.9",gitdown:"^3.1.3",husky:"^4.3.0",nyc:"^15.1.0","semantic-release":"^17.1.1"},engines:{node:">=8.0"},husky:{hooks:{"pre-commit":"npm run lint && npm run test && npm run build","pre-push":"gitdown ./.README/README.md --output-file ./README.md --check"}},keywords:["log","logger","json"],main:"./dist/log.js",name:"roarr",nyc:{include:["src/**/*.js"],instrument:!1,reporter:["text-lcov"],require:["@babel/register"],sourceMap:!1},license:"BSD-3-Clause",repository:{type:"git",url:"git@github.com:gajus/roarr.git"},scripts:{build:"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","create-readme":"gitdown ./.README/README.md --output-file ./README.md",dev:"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch",lint:"eslint ./src ./test && flow",test:"NODE_ENV=test ava --serial --verbose"},version:"2.15.4"}});var Ft=f(me=>{"use strict";i();Object.defineProperty(me,"__esModule",{value:!0});me.default=void 0;var Zo=r=>({write:e=>{r.write(e+`
1
+ import{a as yo,b as Oo,c as Br,d as Yr}from"./chunk-T7KHS6RF.js";import{b as mo}from"./chunk-T6CC5WUU.js";import{a as N,c as f,g as i}from"./chunk-VKWPEFWQ.js";var zr=f(ie=>{"use strict";i();Object.defineProperty(ie,"__esModule",{value:!0});ie.boolean=void 0;var vo=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1"].includes(r.trim().toLowerCase());case"[object Number]":return r.valueOf()===1;case"[object Boolean]":return r.valueOf();default:return!1}};ie.boolean=vo});var Wr=f(ae=>{"use strict";i();Object.defineProperty(ae,"__esModule",{value:!0});ae.isBooleanable=void 0;var bo=function(r){switch(Object.prototype.toString.call(r)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(r.trim().toLowerCase());case"[object Number]":return[0,1].includes(r.valueOf());case"[object Boolean]":return!0;default:return!1}};ae.isBooleanable=bo});var ue=f(D=>{"use strict";i();Object.defineProperty(D,"__esModule",{value:!0});D.isBooleanable=D.boolean=void 0;var Ro=zr();Object.defineProperty(D,"boolean",{enumerable:!0,get:function(){return Ro.boolean}});var _o=Wr();Object.defineProperty(D,"isBooleanable",{enumerable:!0,get:function(){return _o.isBooleanable}})});var le=f((xc,Kr)=>{i();Kr.exports=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"});var Ye=f((Dc,Zr)=>{"use strict";i();var Jr=Object.prototype.toString;Zr.exports=function(e){var t=Jr.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Jr.call(e.callee)==="[object Function]"),n}});var at=f((Gc,it)=>{"use strict";i();var ot;Object.keys||(H=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,Qr=Ye(),We=Object.prototype.propertyIsEnumerable,et=!We.call({toString:null},"toString"),rt=We.call(function(){},"prototype"),V=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],ce=function(r){var e=r.constructor;return e&&e.prototype===r},tt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},nt=(function(){if(typeof window>"u")return!1;for(var r in window)try{if(!tt["$"+r]&&H.call(window,r)&&window[r]!==null&&typeof window[r]=="object")try{ce(window[r])}catch{return!0}}catch{return!0}return!1})(),st=function(r){if(typeof window>"u"||!nt)return ce(r);try{return ce(r)}catch{return!1}},ot=function(e){var t=e!==null&&typeof e=="object",n=ze.call(e)==="[object Function]",s=Qr(e),o=t&&ze.call(e)==="[object String]",a=[];if(!t&&!n&&!s)throw new TypeError("Object.keys called on a non-object");var c=rt&&n;if(o&&e.length>0&&!H.call(e,0))for(var l=0;l<e.length;++l)a.push(String(l));if(s&&e.length>0)for(var E=0;E<e.length;++E)a.push(String(E));else for(var u in e)!(c&&u==="prototype")&&H.call(e,u)&&a.push(String(u));if(et)for(var p=st(e),m=0;m<V.length;++m)!(p&&V[m]==="constructor")&&H.call(e,V[m])&&a.push(V[m]);return a});var H,ze,Qr,We,et,rt,V,ce,tt,nt,st;it.exports=ot});var ft=f((Uc,ct)=>{"use strict";i();var wo=Array.prototype.slice,Po=Ye(),ut=Object.keys,fe=ut?function(e){return ut(e)}:at(),lt=Object.keys;fe.shim=function(){if(Object.keys){var e=(function(){var t=Object.keys(arguments);return t&&t.length===arguments.length})(1,2);e||(Object.keys=function(n){return Po(n)?lt(wo.call(n)):lt(n)})}else Object.keys=fe;return Object.keys||fe};ct.exports=fe});var gt=f((Xc,ht)=>{"use strict";i();var pt=Yr(),$o=yo(),j=Oo(),dt=Br();ht.exports=function(e,t,n){if(!e||typeof e!="object"&&typeof e!="function")throw new j("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new j("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new j("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new j("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new j("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new j("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,a=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!dt&&dt(e,t);if(pt)pt(e,t,{configurable:a===null&&l?l.configurable:!a,enumerable:s===null&&l?l.enumerable:!s,value:n,writable:o===null&&l?l.writable:!o});else if(c||!s&&!o&&!a)e[t]=n;else throw new $o("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var yt=f((Hc,mt)=>{"use strict";i();var Ke=Yr(),Et=function(){return!!Ke};Et.hasArrayLengthDefineBug=function(){if(!Ke)return null;try{return Ke([],"length",{value:1}).length!==1}catch{return!0}};mt.exports=Et});var Je=f((Bc,Rt)=>{"use strict";i();var Ao=ft(),No=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",To=Object.prototype.toString,Lo=Array.prototype.concat,Ot=gt(),So=function(r){return typeof r=="function"&&To.call(r)==="[object Function]"},vt=yt()(),Io=function(r,e,t,n){if(e in r){if(n===!0){if(r[e]===t)return}else if(!So(n)||!n())return}vt?Ot(r,e,t,!0):Ot(r,e,t)},bt=function(r,e){var t=arguments.length>2?arguments[2]:{},n=Ao(e);No&&(n=Lo.call(n,Object.getOwnPropertySymbols(e)));for(var s=0;s<n.length;s+=1)Io(r,n[s],e[n[s]],t[n[s]])};bt.supportsDescriptors=!!vt;Rt.exports=bt});var Ze=f((zc,_t)=>{"use strict";i();_t.exports=global});var Qe=f((Kc,wt)=>{"use strict";i();var qo=Ze();wt.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?qo:global}});var $t=f((Zc,Pt)=>{"use strict";i();var xo=Je(),Co=Br(),Do=Qe();Pt.exports=function(){var e=Do();if(xo.supportsDescriptors){var t=Co(e,"globalThis");(!t||t.configurable&&(t.enumerable||!t.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e}});var er=f((ef,Tt)=>{"use strict";i();var jo=Je(),Go=Ze(),At=Qe(),Mo=$t(),Uo=At(),Nt=function(){return Uo};jo(Nt,{getPolyfill:At,implementation:Go,shim:Mo});Tt.exports=Nt});var It=f((rr,St)=>{i();rr=St.exports=ko;rr.getSerialize=Lt;function ko(r,e,t,n){return JSON.stringify(r,Lt(e,n),t)}function Lt(r,e){var t=[],n=[];return e==null&&(e=function(s,o){return t[0]===o?"[Circular ~]":"[Circular ~."+n.slice(0,t.indexOf(o)).join(".")+"]"}),function(s,o){if(t.length>0){var a=t.indexOf(this);~a?t.splice(a+1):t.push(this),~a?n.splice(a,1/0,s):n.push(s),~t.indexOf(o)&&(o=e.call(this,s,o))}else t.push(o);return r==null?o:r.call(this,s,o)}}});var qt=f(pe=>{i();(function(){"use strict";var r={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(a){return n(o(a),arguments)}function t(a,c){return e.apply(null,[a].concat(c||[]))}function n(a,c){var l=1,E=a.length,u,p="",m,g,O,S,I,C,oe,q;for(m=0;m<E;m++)if(typeof a[m]=="string")p+=a[m];else if(typeof a[m]=="object"){if(O=a[m],O.keys)for(u=c[l],g=0;g<O.keys.length;g++){if(u==null)throw new Error(e('[sprintf] Cannot access property "%s" of undefined value "%s"',O.keys[g],O.keys[g-1]));u=u[O.keys[g]]}else O.param_no?u=c[O.param_no]:u=c[l++];if(r.not_type.test(O.type)&&r.not_primitive.test(O.type)&&u instanceof Function&&(u=u()),r.numeric_arg.test(O.type)&&typeof u!="number"&&isNaN(u))throw new TypeError(e("[sprintf] expecting number but found %T",u));switch(r.number.test(O.type)&&(oe=u>=0),O.type){case"b":u=parseInt(u,10).toString(2);break;case"c":u=String.fromCharCode(parseInt(u,10));break;case"d":case"i":u=parseInt(u,10);break;case"j":u=JSON.stringify(u,null,O.width?parseInt(O.width):0);break;case"e":u=O.precision?parseFloat(u).toExponential(O.precision):parseFloat(u).toExponential();break;case"f":u=O.precision?parseFloat(u).toFixed(O.precision):parseFloat(u);break;case"g":u=O.precision?String(Number(u.toPrecision(O.precision))):parseFloat(u);break;case"o":u=(parseInt(u,10)>>>0).toString(8);break;case"s":u=String(u),u=O.precision?u.substring(0,O.precision):u;break;case"t":u=String(!!u),u=O.precision?u.substring(0,O.precision):u;break;case"T":u=Object.prototype.toString.call(u).slice(8,-1).toLowerCase(),u=O.precision?u.substring(0,O.precision):u;break;case"u":u=parseInt(u,10)>>>0;break;case"v":u=u.valueOf(),u=O.precision?u.substring(0,O.precision):u;break;case"x":u=(parseInt(u,10)>>>0).toString(16);break;case"X":u=(parseInt(u,10)>>>0).toString(16).toUpperCase();break}r.json.test(O.type)?p+=u:(r.number.test(O.type)&&(!oe||O.sign)?(q=oe?"+":"-",u=u.toString().replace(r.sign,"")):q="",I=O.pad_char?O.pad_char==="0"?"0":O.pad_char.charAt(1):" ",C=O.width-(q+u).length,S=O.width&&C>0?I.repeat(C):"",p+=O.align?q+u+S:I==="0"?q+S+u:S+q+u)}return p}var s=Object.create(null);function o(a){if(s[a])return s[a];for(var c=a,l,E=[],u=0;c;){if((l=r.text.exec(c))!==null)E.push(l[0]);else if((l=r.modulo.exec(c))!==null)E.push("%");else if((l=r.placeholder.exec(c))!==null){if(l[2]){u|=1;var p=[],m=l[2],g=[];if((g=r.key.exec(m))!==null)for(p.push(g[1]);(m=m.substring(g[0].length))!=="";)if((g=r.key_access.exec(m))!==null)p.push(g[1]);else if((g=r.index_access.exec(m))!==null)p.push(g[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");l[2]=p}else u|=2;if(u===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");E.push({placeholder:l[0],param_no:l[1],keys:l[2],sign:l[3],pad_char:l[4],align:l[5],width:l[6],precision:l[7],type:l[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");c=c.substring(l[0].length)}return s[a]=E}typeof pe<"u"&&(pe.sprintf=e,pe.vsprintf=t),typeof window<"u"&&(window.sprintf=e,window.vsprintf=t,typeof define=="function"&&define.amd&&define(function(){return{sprintf:e,vsprintf:t}}))})()});var tr=f(de=>{"use strict";i();Object.defineProperty(de,"__esModule",{value:!0});de.logLevels=void 0;var Xo={debug:20,error:50,fatal:60,info:30,trace:10,warn:40};de.logLevels=Xo});var Dt=f(ge=>{"use strict";i();Object.defineProperty(ge,"__esModule",{value:!0});ge.default=void 0;var Fo=ir(le()),Ho=ir(er()),Vo=ir(It()),nr=qt(),xt=tr();function ir(r){return r&&r.__esModule?r:{default:r}}function sr(){return sr=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},sr.apply(this,arguments)}function Ct(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function w(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ct(Object(t),!0).forEach(function(n){Bo(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ct(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Bo(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var Yo=(0,Ho.default)(),B;Fo.default&&(B=N("domain"));var zo=()=>{if(!B)return{};let r=[],e=process.domain;if(!e||!e.parentDomain)return{};for(;e&&e.parentDomain;)e=e.parentDomain,e.roarr&&e.roarr.context&&r.push(e.roarr.context);let t={};for(let n of r)t=w(w({},t),n);return t},he=()=>{if(!B)return{};let r=process.domain;if(r&&r.roarr&&r.roarr.context)return r.roarr.context;if(!r||!r.parentDomain)return{};for(;r&&r.parentDomain;)if(r=r.parentDomain,r.roarr&&r.roarr.context)return r.roarr.context;return{}},or=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{let g=Date.now(),O=Yo.ROARR.sequence++,S,I;if(typeof n=="string"){S=w(w({},he()),e||{});let C=sr({},{a:n,b:s,c:o,d:a,e:c,f:l,g:E,h:u,i:p,k:m});I=Object.keys(C).map(Be=>C[Be]).reduce((Be,Eo)=>Be+=typeof Eo>"u"?0:1,0)===1?(0,nr.sprintf)("%s",n):(0,nr.sprintf)(n,s,o,a,c,l,E,u,p,m)}else{if(typeof s!="string")throw new TypeError("Message must be a string.");S=JSON.parse((0,Vo.default)(w(w(w({},he()),e||{}),n))),I=(0,nr.sprintf)(s,o,a,c,l,E,u,p,m)}r({context:S,message:I,sequence:O,time:g,version:"1.0.0"})};t.child=n=>typeof n=="function"?or(s=>{if(typeof n!="function")throw new TypeError("Unexpected state.");r(n(s))},e):or(r,w(w(w({},he()),e),n)),t.getContext=()=>w(w({},he()),e||{}),t.adopt=async(n,s)=>{if(!B)return n();let o=B.create();return o.run(()=>(o.roarr={context:w(w({},zo()),s)},n()))};for(let n of Object.keys(xt.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:xt.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Wo=or;ge.default=Wo});var Mt=f(Ee=>{"use strict";i();Object.defineProperty(Ee,"__esModule",{value:!0});Ee.default=void 0;var jt=tr(),Gt=(r,e)=>{let t=(n,s,o,a,c,l,E,u,p,m)=>{};t.adopt=async n=>n(),t.child=n=>Gt(r,e),t.getContext=()=>({});for(let n of Object.keys(jt.logLevels))t[n]=(s,o,a,c,l,E,u,p,m,g)=>t.child({logLevel:jt.logLevels[n]})(s,o,a,c,l,E,u,p,m,g);return t},Ko=Gt;Ee.default=Ko});var kt=f((pf,Ut)=>{i();Ut.exports=function(e,t){for(var n=e.split("."),s=t.split("."),o=0;o<3;o++){var a=Number(n[o]),c=Number(s[o]);if(a>c)return 1;if(c>a)return-1;if(!isNaN(a)&&isNaN(c))return 1;if(isNaN(a)&&!isNaN(c))return-1}return 0}});var Xt=f((hf,Jo)=>{Jo.exports={author:{email:"gajus@gajus.com",name:"Gajus Kuizinas",url:"http://gajus.com"},ava:{babel:{compileAsTests:["test/helpers/**/*"]},files:["test/roarr/**/*"],require:["@babel/register"]},dependencies:{boolean:"^3.0.1","detect-node":"^2.0.4",globalthis:"^1.0.1","json-stringify-safe":"^5.0.1","semver-compare":"^1.0.0","sprintf-js":"^1.1.2"},description:"JSON logger for Node.js and browser.",devDependencies:{"@ava/babel":"^1.0.1","@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/node":"^7.10.5","@babel/plugin-transform-flow-strip-types":"^7.10.4","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5",ava:"^3.12.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-transform-export-default-name":"^2.0.4",coveralls:"^3.1.0","domain-parent":"^1.0.0",eslint:"^7.9.0","eslint-config-canonical":"^24.1.1","flow-bin":"^0.133.0","flow-copy-source":"^2.0.9",gitdown:"^3.1.3",husky:"^4.3.0",nyc:"^15.1.0","semantic-release":"^17.1.1"},engines:{node:">=8.0"},husky:{hooks:{"pre-commit":"npm run lint && npm run test && npm run build","pre-push":"gitdown ./.README/README.md --output-file ./README.md --check"}},keywords:["log","logger","json"],main:"./dist/log.js",name:"roarr",nyc:{include:["src/**/*.js"],instrument:!1,reporter:["text-lcov"],require:["@babel/register"],sourceMap:!1},license:"BSD-3-Clause",repository:{type:"git",url:"git@github.com:gajus/roarr.git"},scripts:{build:"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","create-readme":"gitdown ./.README/README.md --output-file ./README.md",dev:"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch",lint:"eslint ./src ./test && flow",test:"NODE_ENV=test ava --serial --verbose"},version:"2.15.4"}});var Ft=f(me=>{"use strict";i();Object.defineProperty(me,"__esModule",{value:!0});me.default=void 0;var Zo=r=>({write:e=>{r.write(e+`
2
2
  `)}}),Qo=()=>{let e=(process.env.ROARR_STREAM||"STDOUT").toUpperCase().toUpperCase()==="STDOUT"?process.stdout:process.stderr;return Zo(e)},ei=Qo;me.default=ei});var Vt=f(Oe=>{"use strict";i();Object.defineProperty(Oe,"__esModule",{value:!0});Oe.default=void 0;var ri=lr(le()),ar=lr(kt()),ur=Xt(),ti=lr(Ft());function lr(r){return r&&r.__esModule?r:{default:r}}function Ht(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function ye(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Ht(Object(t),!0).forEach(function(n){ni(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ht(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function ni(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var si=r=>{let e=(r.versions||[]).concat();e.sort(ar.default);let t=!e.length||(0,ar.default)(ur.version,e[e.length-1])===1;e.includes(ur.version)||e.push(ur.version),e.sort(ar.default);let n=ye(ye({sequence:0},r),{},{versions:e});return ri.default&&(t||!n.write)&&(n=ye(ye({},n),(0,ti.default)())),n},oi=si;Oe.default=oi});var Bt=f(Y=>{"use strict";i();Object.defineProperty(Y,"__esModule",{value:!0});Object.defineProperty(Y,"createLogger",{enumerable:!0,get:function(){return ii.default}});Object.defineProperty(Y,"createMockLogger",{enumerable:!0,get:function(){return ai.default}});Object.defineProperty(Y,"createRoarrInititialGlobalState",{enumerable:!0,get:function(){return ui.default}});var ii=cr(Dt()),ai=cr(Mt()),ui=cr(Vt());function cr(r){return r&&r.__esModule?r:{default:r}}});var Kt=f(G=>{"use strict";i();Object.defineProperty(G,"__esModule",{value:!0});G.default=G.ROARR=void 0;var li=ue(),ci=zt(le()),fi=zt(er()),pr=Bt();function zt(r){return r&&r.__esModule?r:{default:r}}var Yt=(0,fi.default)(),fr=Yt.ROARR=(0,pr.createRoarrInititialGlobalState)(Yt.ROARR||{});G.ROARR=fr;var Wt=pr.createLogger;ci.default&&((0,li.boolean)(process.env.ROARR_LOG||"")||(Wt=pr.createMockLogger));var pi=Wt(r=>{if(fr.write){let e=JSON.stringify(r);fr.write(e)}});G.default=pi});var z=f(ve=>{"use strict";i();Object.defineProperty(ve,"__esModule",{value:!0});ve.default=void 0;var di=hi(Kt());function hi(r){return r&&r.__esModule?r:{default:r}}var gi=di.default.child({package:"global-agent"}),Ei=gi;ve.default=Ei});var W=f((Pf,Jt)=>{i();var mi="2.0.0",yi=Number.MAX_SAFE_INTEGER||9007199254740991,Oi=16,vi=250,bi=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Jt.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Oi,MAX_SAFE_BUILD_LENGTH:vi,MAX_SAFE_INTEGER:yi,RELEASE_TYPES:bi,SEMVER_SPEC_VERSION:mi,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var K=f((Af,Zt)=>{i();var Ri=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};Zt.exports=Ri});var M=f((L,Qt)=>{i();var{MAX_SAFE_COMPONENT_LENGTH:dr,MAX_SAFE_BUILD_LENGTH:_i,MAX_LENGTH:wi}=W(),Pi=K();L=Qt.exports={};var $i=L.re=[],Ai=L.safeRe=[],d=L.src=[],h=L.t={},Ni=0,hr="[a-zA-Z0-9-]",Ti=[["\\s",1],["\\d",wi],[hr,_i]],Li=r=>{for(let[e,t]of Ti)r=r.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return r},y=(r,e,t)=>{let n=Li(e),s=Ni++;Pi(r,s,e),h[r]=s,d[s]=e,$i[s]=new RegExp(e,t?"g":void 0),Ai[s]=new RegExp(n,t?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*");y("NUMERICIDENTIFIERLOOSE","\\d+");y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${hr}*`);y("MAINVERSION",`(${d[h.NUMERICIDENTIFIER]})\\.(${d[h.NUMERICIDENTIFIER]})\\.(${d[h.NUMERICIDENTIFIER]})`);y("MAINVERSIONLOOSE",`(${d[h.NUMERICIDENTIFIERLOOSE]})\\.(${d[h.NUMERICIDENTIFIERLOOSE]})\\.(${d[h.NUMERICIDENTIFIERLOOSE]})`);y("PRERELEASEIDENTIFIER",`(?:${d[h.NUMERICIDENTIFIER]}|${d[h.NONNUMERICIDENTIFIER]})`);y("PRERELEASEIDENTIFIERLOOSE",`(?:${d[h.NUMERICIDENTIFIERLOOSE]}|${d[h.NONNUMERICIDENTIFIER]})`);y("PRERELEASE",`(?:-(${d[h.PRERELEASEIDENTIFIER]}(?:\\.${d[h.PRERELEASEIDENTIFIER]})*))`);y("PRERELEASELOOSE",`(?:-?(${d[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[h.PRERELEASEIDENTIFIERLOOSE]})*))`);y("BUILDIDENTIFIER",`${hr}+`);y("BUILD",`(?:\\+(${d[h.BUILDIDENTIFIER]}(?:\\.${d[h.BUILDIDENTIFIER]})*))`);y("FULLPLAIN",`v?${d[h.MAINVERSION]}${d[h.PRERELEASE]}?${d[h.BUILD]}?`);y("FULL",`^${d[h.FULLPLAIN]}$`);y("LOOSEPLAIN",`[v=\\s]*${d[h.MAINVERSIONLOOSE]}${d[h.PRERELEASELOOSE]}?${d[h.BUILD]}?`);y("LOOSE",`^${d[h.LOOSEPLAIN]}$`);y("GTLT","((?:<|>)?=?)");y("XRANGEIDENTIFIERLOOSE",`${d[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);y("XRANGEIDENTIFIER",`${d[h.NUMERICIDENTIFIER]}|x|X|\\*`);y("XRANGEPLAIN",`[v=\\s]*(${d[h.XRANGEIDENTIFIER]})(?:\\.(${d[h.XRANGEIDENTIFIER]})(?:\\.(${d[h.XRANGEIDENTIFIER]})(?:${d[h.PRERELEASE]})?${d[h.BUILD]}?)?)?`);y("XRANGEPLAINLOOSE",`[v=\\s]*(${d[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${d[h.XRANGEIDENTIFIERLOOSE]})(?:${d[h.PRERELEASELOOSE]})?${d[h.BUILD]}?)?)?`);y("XRANGE",`^${d[h.GTLT]}\\s*${d[h.XRANGEPLAIN]}$`);y("XRANGELOOSE",`^${d[h.GTLT]}\\s*${d[h.XRANGEPLAINLOOSE]}$`);y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${dr}})(?:\\.(\\d{1,${dr}}))?(?:\\.(\\d{1,${dr}}))?`);y("COERCE",`${d[h.COERCEPLAIN]}(?:$|[^\\d])`);y("COERCEFULL",d[h.COERCEPLAIN]+`(?:${d[h.PRERELEASE]})?(?:${d[h.BUILD]})?(?:$|[^\\d])`);y("COERCERTL",d[h.COERCE],!0);y("COERCERTLFULL",d[h.COERCEFULL],!0);y("LONETILDE","(?:~>?)");y("TILDETRIM",`(\\s*)${d[h.LONETILDE]}\\s+`,!0);L.tildeTrimReplace="$1~";y("TILDE",`^${d[h.LONETILDE]}${d[h.XRANGEPLAIN]}$`);y("TILDELOOSE",`^${d[h.LONETILDE]}${d[h.XRANGEPLAINLOOSE]}$`);y("LONECARET","(?:\\^)");y("CARETTRIM",`(\\s*)${d[h.LONECARET]}\\s+`,!0);L.caretTrimReplace="$1^";y("CARET",`^${d[h.LONECARET]}${d[h.XRANGEPLAIN]}$`);y("CARETLOOSE",`^${d[h.LONECARET]}${d[h.XRANGEPLAINLOOSE]}$`);y("COMPARATORLOOSE",`^${d[h.GTLT]}\\s*(${d[h.LOOSEPLAIN]})$|^$`);y("COMPARATOR",`^${d[h.GTLT]}\\s*(${d[h.FULLPLAIN]})$|^$`);y("COMPARATORTRIM",`(\\s*)${d[h.GTLT]}\\s*(${d[h.LOOSEPLAIN]}|${d[h.XRANGEPLAIN]})`,!0);L.comparatorTrimReplace="$1$2$3";y("HYPHENRANGE",`^\\s*(${d[h.XRANGEPLAIN]})\\s+-\\s+(${d[h.XRANGEPLAIN]})\\s*$`);y("HYPHENRANGELOOSE",`^\\s*(${d[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${d[h.XRANGEPLAINLOOSE]})\\s*$`);y("STAR","(<|>)?=?\\s*\\*");y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var be=f((Lf,en)=>{i();var Si=Object.freeze({loose:!0}),Ii=Object.freeze({}),qi=r=>r?typeof r!="object"?Si:r:Ii;en.exports=qi});var gr=f((If,nn)=>{i();var rn=/^[0-9]+$/,tn=(r,e)=>{let t=rn.test(r),n=rn.test(e);return t&&n&&(r=+r,e=+e),r===e?0:t&&!n?-1:n&&!t?1:r<e?-1:1},xi=(r,e)=>tn(e,r);nn.exports={compareIdentifiers:tn,rcompareIdentifiers:xi}});var b=f((xf,un)=>{i();var Re=K(),{MAX_LENGTH:sn,MAX_SAFE_INTEGER:_e}=W(),{safeRe:on,t:an}=M(),Ci=be(),{compareIdentifiers:U}=gr(),Er=class r{constructor(e,t){if(t=Ci(t),e instanceof r){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>sn)throw new TypeError(`version is longer than ${sn} characters`);Re("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?on[an.LOOSE]:on[an.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>_e||this.major<0)throw new TypeError("Invalid major version");if(this.minor>_e||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>_e||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){let o=+s;if(o>=0&&o<_e)return o}return s}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Re("SemVer.compare",this.version,this.options,e),!(e instanceof r)){if(typeof e=="string"&&e===this.version)return 0;e=new r(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof r||(e=new r(e,this.options)),U(this.major,e.major)||U(this.minor,e.minor)||U(this.patch,e.patch)}comparePre(e){if(e instanceof r||(e=new r(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],s=e.prerelease[t];if(Re("prerelease compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return U(n,s)}while(++t)}compareBuild(e){e instanceof r||(e=new r(e,this.options));let t=0;do{let n=this.build[t],s=e.build[t];if(Re("build compare",t,n,s),n===void 0&&s===void 0)return 0;if(s===void 0)return 1;if(n===void 0)return-1;if(n===s)continue;return U(n,s)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let s=Number(n)?1:0;if(!t&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[s];else{let o=this.prerelease.length;for(;--o>=0;)typeof this.prerelease[o]=="number"&&(this.prerelease[o]++,o=-2);if(o===-1){if(t===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(t){let o=[t,s];n===!1&&(o=[t]),U(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=o):this.prerelease=o}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};un.exports=Er});var x=f((Df,cn)=>{i();var ln=b(),Di=(r,e,t=!1)=>{if(r instanceof ln)return r;try{return new ln(r,e)}catch(n){if(!t)return null;throw n}};cn.exports=Di});var pn=f((Gf,fn)=>{i();var ji=x(),Gi=(r,e)=>{let t=ji(r,e);return t?t.version:null};fn.exports=Gi});var hn=f((Uf,dn)=>{i();var Mi=x(),Ui=(r,e)=>{let t=Mi(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};dn.exports=Ui});var mn=f((Xf,En)=>{i();var gn=b(),ki=(r,e,t,n,s)=>{typeof t=="string"&&(s=n,n=t,t=void 0);try{return new gn(r instanceof gn?r.version:r,t).inc(e,n,s).version}catch{return null}};En.exports=ki});var vn=f((Hf,On)=>{i();var yn=x(),Xi=(r,e)=>{let t=yn(r,null,!0),n=yn(e,null,!0),s=t.compare(n);if(s===0)return null;let o=s>0,a=o?t:n,c=o?n:t,l=!!a.prerelease.length;if(!!c.prerelease.length&&!l)return!c.patch&&!c.minor?"major":a.patch?"patch":a.minor?"minor":"major";let u=l?"pre":"";return t.major!==n.major?u+"major":t.minor!==n.minor?u+"minor":t.patch!==n.patch?u+"patch":"prerelease"};On.exports=Xi});var Rn=f((Bf,bn)=>{i();var Fi=b(),Hi=(r,e)=>new Fi(r,e).major;bn.exports=Hi});var wn=f((zf,_n)=>{i();var Vi=b(),Bi=(r,e)=>new Vi(r,e).minor;_n.exports=Bi});var $n=f((Kf,Pn)=>{i();var Yi=b(),zi=(r,e)=>new Yi(r,e).patch;Pn.exports=zi});var Nn=f((Zf,An)=>{i();var Wi=x(),Ki=(r,e)=>{let t=Wi(r,e);return t&&t.prerelease.length?t.prerelease:null};An.exports=Ki});var $=f((ep,Ln)=>{i();var Tn=b(),Ji=(r,e,t)=>new Tn(r,t).compare(new Tn(e,t));Ln.exports=Ji});var In=f((tp,Sn)=>{i();var Zi=$(),Qi=(r,e,t)=>Zi(e,r,t);Sn.exports=Qi});var xn=f((sp,qn)=>{i();var ea=$(),ra=(r,e)=>ea(r,e,!0);qn.exports=ra});var we=f((ip,Dn)=>{i();var Cn=b(),ta=(r,e,t)=>{let n=new Cn(r,t),s=new Cn(e,t);return n.compare(s)||n.compareBuild(s)};Dn.exports=ta});var Gn=f((up,jn)=>{i();var na=we(),sa=(r,e)=>r.sort((t,n)=>na(t,n,e));jn.exports=sa});var Un=f((cp,Mn)=>{i();var oa=we(),ia=(r,e)=>r.sort((t,n)=>oa(n,t,e));Mn.exports=ia});var J=f((pp,kn)=>{i();var aa=$(),ua=(r,e,t)=>aa(r,e,t)>0;kn.exports=ua});var Pe=f((hp,Xn)=>{i();var la=$(),ca=(r,e,t)=>la(r,e,t)<0;Xn.exports=ca});var mr=f((Ep,Fn)=>{i();var fa=$(),pa=(r,e,t)=>fa(r,e,t)===0;Fn.exports=pa});var yr=f((yp,Hn)=>{i();var da=$(),ha=(r,e,t)=>da(r,e,t)!==0;Hn.exports=ha});var $e=f((vp,Vn)=>{i();var ga=$(),Ea=(r,e,t)=>ga(r,e,t)>=0;Vn.exports=Ea});var Ae=f((Rp,Bn)=>{i();var ma=$(),ya=(r,e,t)=>ma(r,e,t)<=0;Bn.exports=ya});var Or=f((wp,Yn)=>{i();var Oa=mr(),va=yr(),ba=J(),Ra=$e(),_a=Pe(),wa=Ae(),Pa=(r,e,t,n)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return Oa(r,t,n);case"!=":return va(r,t,n);case">":return ba(r,t,n);case">=":return Ra(r,t,n);case"<":return _a(r,t,n);case"<=":return wa(r,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};Yn.exports=Pa});var Wn=f(($p,zn)=>{i();var $a=b(),Aa=x(),{safeRe:Ne,t:Te}=M(),Na=(r,e)=>{if(r instanceof $a)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?Ne[Te.COERCEFULL]:Ne[Te.COERCE]);else{let l=e.includePrerelease?Ne[Te.COERCERTLFULL]:Ne[Te.COERCERTL],E;for(;(E=l.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||E.index+E[0].length!==t.index+t[0].length)&&(t=E),l.lastIndex=E.index+E[1].length+E[2].length;l.lastIndex=-1}if(t===null)return null;let n=t[2],s=t[3]||"0",o=t[4]||"0",a=e.includePrerelease&&t[5]?`-${t[5]}`:"",c=e.includePrerelease&&t[6]?`+${t[6]}`:"";return Aa(`${n}.${s}.${o}${a}${c}`,e)};zn.exports=Na});var Jn=f((Np,Kn)=>{i();var vr=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let s=this.map.keys().next().value;this.delete(s)}this.map.set(e,t)}return this}};Kn.exports=vr});var A=f((Lp,rs)=>{i();var Ta=/\s+/g,br=class r{constructor(e,t){if(t=Sa(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof Rr)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(Ta," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(s=>!Qn(s[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let s of this.set)if(s.length===1&&Ga(s[0])){this.set=[s];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let n=0;n<t.length;n++)n>0&&(this.formatted+=" "),this.formatted+=t[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){let n=((this.options.includePrerelease&&Da)|(this.options.loose&&ja))+":"+e,s=Zn.get(n);if(s)return s;let o=this.options.loose,a=o?P[R.HYPHENRANGELOOSE]:P[R.HYPHENRANGE];e=e.replace(a,za(this.options.includePrerelease)),v("hyphen replace",e),e=e.replace(P[R.COMPARATORTRIM],qa),v("comparator trim",e),e=e.replace(P[R.TILDETRIM],xa),v("tilde trim",e),e=e.replace(P[R.CARETTRIM],Ca),v("caret trim",e);let c=e.split(" ").map(p=>Ma(p,this.options)).join(" ").split(/\s+/).map(p=>Ya(p,this.options));o&&(c=c.filter(p=>(v("loose invalid filter",p,this.options),!!p.match(P[R.COMPARATORLOOSE])))),v("range list",c);let l=new Map,E=c.map(p=>new Rr(p,this.options));for(let p of E){if(Qn(p))return[p];l.set(p.value,p)}l.size>1&&l.has("")&&l.delete("");let u=[...l.values()];return Zn.set(n,u),u}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some(n=>es(n,t)&&e.set.some(s=>es(s,t)&&n.every(o=>s.every(a=>o.intersects(a,t)))))}test(e){if(!e)return!1;if(typeof e=="string")try{e=new Ia(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(Wa(this.set[t],e,this.options))return!0;return!1}};rs.exports=br;var La=Jn(),Zn=new La,Sa=be(),Rr=Z(),v=K(),Ia=b(),{safeRe:P,t:R,comparatorTrimReplace:qa,tildeTrimReplace:xa,caretTrimReplace:Ca}=M(),{FLAG_INCLUDE_PRERELEASE:Da,FLAG_LOOSE:ja}=W(),Qn=r=>r.value==="<0.0.0-0",Ga=r=>r.value==="",es=(r,e)=>{let t=!0,n=r.slice(),s=n.pop();for(;t&&n.length;)t=n.every(o=>s.intersects(o,e)),s=n.pop();return t},Ma=(r,e)=>(v("comp",r,e),r=Xa(r,e),v("caret",r),r=Ua(r,e),v("tildes",r),r=Ha(r,e),v("xrange",r),r=Ba(r,e),v("stars",r),r),_=r=>!r||r.toLowerCase()==="x"||r==="*",Ua=(r,e)=>r.trim().split(/\s+/).map(t=>ka(t,e)).join(" "),ka=(r,e)=>{let t=e.loose?P[R.TILDELOOSE]:P[R.TILDE];return r.replace(t,(n,s,o,a,c)=>{v("tilde",r,n,s,o,a,c);let l;return _(s)?l="":_(o)?l=`>=${s}.0.0 <${+s+1}.0.0-0`:_(a)?l=`>=${s}.${o}.0 <${s}.${+o+1}.0-0`:c?(v("replaceTilde pr",c),l=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`):l=`>=${s}.${o}.${a} <${s}.${+o+1}.0-0`,v("tilde return",l),l})},Xa=(r,e)=>r.trim().split(/\s+/).map(t=>Fa(t,e)).join(" "),Fa=(r,e)=>{v("caret",r,e);let t=e.loose?P[R.CARETLOOSE]:P[R.CARET],n=e.includePrerelease?"-0":"";return r.replace(t,(s,o,a,c,l)=>{v("caret",r,s,o,a,c,l);let E;return _(o)?E="":_(a)?E=`>=${o}.0.0${n} <${+o+1}.0.0-0`:_(c)?o==="0"?E=`>=${o}.${a}.0${n} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.0${n} <${+o+1}.0.0-0`:l?(v("replaceCaret pr",l),o==="0"?a==="0"?E=`>=${o}.${a}.${c}-${l} <${o}.${a}.${+c+1}-0`:E=`>=${o}.${a}.${c}-${l} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.${c}-${l} <${+o+1}.0.0-0`):(v("no pr"),o==="0"?a==="0"?E=`>=${o}.${a}.${c}${n} <${o}.${a}.${+c+1}-0`:E=`>=${o}.${a}.${c}${n} <${o}.${+a+1}.0-0`:E=`>=${o}.${a}.${c} <${+o+1}.0.0-0`),v("caret return",E),E})},Ha=(r,e)=>(v("replaceXRanges",r,e),r.split(/\s+/).map(t=>Va(t,e)).join(" ")),Va=(r,e)=>{r=r.trim();let t=e.loose?P[R.XRANGELOOSE]:P[R.XRANGE];return r.replace(t,(n,s,o,a,c,l)=>{v("xRange",r,n,s,o,a,c,l);let E=_(o),u=E||_(a),p=u||_(c),m=p;return s==="="&&m&&(s=""),l=e.includePrerelease?"-0":"",E?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&m?(u&&(a=0),c=0,s===">"?(s=">=",u?(o=+o+1,a=0,c=0):(a=+a+1,c=0)):s==="<="&&(s="<",u?o=+o+1:a=+a+1),s==="<"&&(l="-0"),n=`${s+o}.${a}.${c}${l}`):u?n=`>=${o}.0.0${l} <${+o+1}.0.0-0`:p&&(n=`>=${o}.${a}.0${l} <${o}.${+a+1}.0-0`),v("xRange return",n),n})},Ba=(r,e)=>(v("replaceStars",r,e),r.trim().replace(P[R.STAR],"")),Ya=(r,e)=>(v("replaceGTE0",r,e),r.trim().replace(P[e.includePrerelease?R.GTE0PRE:R.GTE0],"")),za=r=>(e,t,n,s,o,a,c,l,E,u,p,m)=>(_(n)?t="":_(s)?t=`>=${n}.0.0${r?"-0":""}`:_(o)?t=`>=${n}.${s}.0${r?"-0":""}`:a?t=`>=${t}`:t=`>=${t}${r?"-0":""}`,_(E)?l="":_(u)?l=`<${+E+1}.0.0-0`:_(p)?l=`<${E}.${+u+1}.0-0`:m?l=`<=${E}.${u}.${p}-${m}`:r?l=`<${E}.${u}.${+p+1}-0`:l=`<=${l}`,`${t} ${l}`.trim()),Wa=(r,e,t)=>{for(let n=0;n<r.length;n++)if(!r[n].test(e))return!1;if(e.prerelease.length&&!t.includePrerelease){for(let n=0;n<r.length;n++)if(v(r[n].semver),r[n].semver!==Rr.ANY&&r[n].semver.prerelease.length>0){let s=r[n].semver;if(s.major===e.major&&s.minor===e.minor&&s.patch===e.patch)return!0}return!1}return!0}});var Z=f((Ip,as)=>{i();var Q=Symbol("SemVer ANY"),Pr=class r{static get ANY(){return Q}constructor(e,t){if(t=ts(t),e instanceof r){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),wr("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Q?this.value="":this.value=this.operator+this.semver.version,wr("comp",this)}parse(e){let t=this.options.loose?ns[ss.COMPARATORLOOSE]:ns[ss.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new os(n[2],this.options.loose):this.semver=Q}toString(){return this.value}test(e){if(wr("Comparator.test",e,this.options.loose),this.semver===Q||e===Q)return!0;if(typeof e=="string")try{e=new os(e,this.options)}catch{return!1}return _r(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new is(e.value,t).test(this.value):e.operator===""?e.value===""?!0:new is(this.value,t).test(e.semver):(t=ts(t),t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||_r(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||_r(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}};as.exports=Pr;var ts=be(),{safeRe:ns,t:ss}=M(),_r=Or(),wr=K(),os=b(),is=A()});var ee=f((xp,us)=>{i();var Ka=A(),Ja=(r,e,t)=>{try{e=new Ka(e,t)}catch{return!1}return e.test(r)};us.exports=Ja});var cs=f((Dp,ls)=>{i();var Za=A(),Qa=(r,e)=>new Za(r,e).set.map(t=>t.map(n=>n.value).join(" ").trim().split(" "));ls.exports=Qa});var ps=f((Gp,fs)=>{i();var eu=b(),ru=A(),tu=(r,e,t)=>{let n=null,s=null,o=null;try{o=new ru(e,t)}catch{return null}return r.forEach(a=>{o.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new eu(n,t))}),n};fs.exports=tu});var hs=f((Up,ds)=>{i();var nu=b(),su=A(),ou=(r,e,t)=>{let n=null,s=null,o=null;try{o=new su(e,t)}catch{return null}return r.forEach(a=>{o.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new nu(n,t))}),n};ds.exports=ou});var ms=f((Xp,Es)=>{i();var $r=b(),iu=A(),gs=J(),au=(r,e)=>{r=new iu(r,e);let t=new $r("0.0.0");if(r.test(t)||(t=new $r("0.0.0-0"),r.test(t)))return t;t=null;for(let n=0;n<r.set.length;++n){let s=r.set[n],o=null;s.forEach(a=>{let c=new $r(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!o||gs(c,o))&&(o=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),o&&(!t||gs(t,o))&&(t=o)}return t&&r.test(t)?t:null};Es.exports=au});var Os=f((Hp,ys)=>{i();var uu=A(),lu=(r,e)=>{try{return new uu(r,e).range||"*"}catch{return null}};ys.exports=lu});var Le=f((Bp,_s)=>{i();var cu=b(),Rs=Z(),{ANY:fu}=Rs,pu=A(),du=ee(),vs=J(),bs=Pe(),hu=Ae(),gu=$e(),Eu=(r,e,t,n)=>{r=new cu(r,n),e=new pu(e,n);let s,o,a,c,l;switch(t){case">":s=vs,o=hu,a=bs,c=">",l=">=";break;case"<":s=bs,o=gu,a=vs,c="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(du(r,e,n))return!1;for(let E=0;E<e.set.length;++E){let u=e.set[E],p=null,m=null;if(u.forEach(g=>{g.semver===fu&&(g=new Rs(">=0.0.0")),p=p||g,m=m||g,s(g.semver,p.semver,n)?p=g:a(g.semver,m.semver,n)&&(m=g)}),p.operator===c||p.operator===l||(!m.operator||m.operator===c)&&o(r,m.semver))return!1;if(m.operator===l&&a(r,m.semver))return!1}return!0};_s.exports=Eu});var Ps=f((zp,ws)=>{i();var mu=Le(),yu=(r,e,t)=>mu(r,e,">",t);ws.exports=yu});var As=f((Kp,$s)=>{i();var Ou=Le(),vu=(r,e,t)=>Ou(r,e,"<",t);$s.exports=vu});var Ls=f((Zp,Ts)=>{i();var Ns=A(),bu=(r,e,t)=>(r=new Ns(r,t),e=new Ns(e,t),r.intersects(e,t));Ts.exports=bu});var Is=f((ed,Ss)=>{i();var Ru=ee(),_u=$();Ss.exports=(r,e,t)=>{let n=[],s=null,o=null,a=r.sort((u,p)=>_u(u,p,t));for(let u of a)Ru(u,e,t)?(o=u,s||(s=u)):(o&&n.push([s,o]),o=null,s=null);s&&n.push([s,null]);let c=[];for(let[u,p]of n)u===p?c.push(u):!p&&u===a[0]?c.push("*"):p?u===a[0]?c.push(`<=${p}`):c.push(`${u} - ${p}`):c.push(`>=${u}`);let l=c.join(" || "),E=typeof e.raw=="string"?e.raw:String(e);return l.length<E.length?l:e}});var Gs=f((td,js)=>{i();var qs=A(),Nr=Z(),{ANY:Ar}=Nr,re=ee(),Tr=$(),wu=(r,e,t={})=>{if(r===e)return!0;r=new qs(r,t),e=new qs(e,t);let n=!1;e:for(let s of r.set){for(let o of e.set){let a=$u(s,o,t);if(n=n||a!==null,a)continue e}if(n)return!1}return!0},Pu=[new Nr(">=0.0.0-0")],xs=[new Nr(">=0.0.0")],$u=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Ar){if(e.length===1&&e[0].semver===Ar)return!0;t.includePrerelease?r=Pu:r=xs}if(e.length===1&&e[0].semver===Ar){if(t.includePrerelease)return!0;e=xs}let n=new Set,s,o;for(let g of r)g.operator===">"||g.operator===">="?s=Cs(s,g,t):g.operator==="<"||g.operator==="<="?o=Ds(o,g,t):n.add(g.semver);if(n.size>1)return null;let a;if(s&&o){if(a=Tr(s.semver,o.semver,t),a>0)return null;if(a===0&&(s.operator!==">="||o.operator!=="<="))return null}for(let g of n){if(s&&!re(g,String(s),t)||o&&!re(g,String(o),t))return null;for(let O of e)if(!re(g,String(O),t))return!1;return!0}let c,l,E,u,p=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1,m=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&o.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(let g of e){if(u=u||g.operator===">"||g.operator===">=",E=E||g.operator==="<"||g.operator==="<=",s){if(m&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===m.major&&g.semver.minor===m.minor&&g.semver.patch===m.patch&&(m=!1),g.operator===">"||g.operator===">="){if(c=Cs(s,g,t),c===g&&c!==s)return!1}else if(s.operator===">="&&!re(s.semver,String(g),t))return!1}if(o){if(p&&g.semver.prerelease&&g.semver.prerelease.length&&g.semver.major===p.major&&g.semver.minor===p.minor&&g.semver.patch===p.patch&&(p=!1),g.operator==="<"||g.operator==="<="){if(l=Ds(o,g,t),l===g&&l!==o)return!1}else if(o.operator==="<="&&!re(o.semver,String(g),t))return!1}if(!g.operator&&(o||s)&&a!==0)return!1}return!(s&&E&&!o&&a!==0||o&&u&&!s&&a!==0||m||p)},Cs=(r,e,t)=>{if(!r)return e;let n=Tr(r.semver,e.semver,t);return n>0?r:n<0||e.operator===">"&&r.operator===">="?e:r},Ds=(r,e,t)=>{if(!r)return e;let n=Tr(r.semver,e.semver,t);return n<0?r:n>0||e.operator==="<"&&r.operator==="<="?e:r};js.exports=wu});var Xs=f((sd,ks)=>{i();var Lr=M(),Ms=W(),Au=b(),Us=gr(),Nu=x(),Tu=pn(),Lu=hn(),Su=mn(),Iu=vn(),qu=Rn(),xu=wn(),Cu=$n(),Du=Nn(),ju=$(),Gu=In(),Mu=xn(),Uu=we(),ku=Gn(),Xu=Un(),Fu=J(),Hu=Pe(),Vu=mr(),Bu=yr(),Yu=$e(),zu=Ae(),Wu=Or(),Ku=Wn(),Ju=Z(),Zu=A(),Qu=ee(),el=cs(),rl=ps(),tl=hs(),nl=ms(),sl=Os(),ol=Le(),il=Ps(),al=As(),ul=Ls(),ll=Is(),cl=Gs();ks.exports={parse:Nu,valid:Tu,clean:Lu,inc:Su,diff:Iu,major:qu,minor:xu,patch:Cu,prerelease:Du,compare:ju,rcompare:Gu,compareLoose:Mu,compareBuild:Uu,sort:ku,rsort:Xu,gt:Fu,lt:Hu,eq:Vu,neq:Bu,gte:Yu,lte:zu,cmp:Wu,coerce:Ku,Comparator:Ju,Range:Zu,satisfies:Qu,toComparators:el,maxSatisfying:rl,minSatisfying:tl,minVersion:nl,validRange:sl,outside:ol,gtr:il,ltr:al,intersects:ul,simplifyRange:ll,subset:cl,SemVer:Au,re:Lr.re,src:Lr.src,tokens:Lr.t,SEMVER_SPEC_VERSION:Ms.SEMVER_SPEC_VERSION,RELEASE_TYPES:Ms.RELEASE_TYPES,compareIdentifiers:Us.compareIdentifiers,rcompareIdentifiers:Us.rcompareIdentifiers}});var Hs=f((id,Fs)=>{"use strict";i();var Sr=class r extends Error{constructor(e){super(r._prepareSuperMessage(e)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,r)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}},fl=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],Ir=({from:r,seen:e,to_:t,forceEnumerable:n})=>{let s=t||(Array.isArray(r)?[]:{});e.push(r);for(let[o,a]of Object.entries(r))if(typeof a!="function"){if(!a||typeof a!="object"){s[o]=a;continue}if(!e.includes(r[o])){s[o]=Ir({from:r[o],seen:e.slice(),forceEnumerable:n});continue}s[o]="[Circular]"}for(let{property:o,enumerable:a}of fl)typeof r[o]=="string"&&Object.defineProperty(s,o,{value:r[o],enumerable:n?!0:a,configurable:!0,writable:!0});return s},pl=r=>typeof r=="object"&&r!==null?Ir({from:r,seen:[],forceEnumerable:!0}):typeof r=="function"?`[Function: ${r.name||"anonymous"}]`:r,dl=r=>{if(r instanceof Error)return r;if(typeof r=="object"&&r!==null&&!Array.isArray(r)){let e=new Error;return Ir({from:r,seen:[],to_:e}),e}return new Sr(r)};Fs.exports={serializeError:pl,deserializeError:dl}});var Ie=f(Se=>{"use strict";i();Object.defineProperty(Se,"__esModule",{value:!0});Se.default=void 0;var Vs=Hs(),hl=ue(),gl=El(z());function El(r){return r&&r.__esModule?r:{default:r}}var T=gl.default.child({namespace:"Agent"}),ml=0,qr=class{constructor(e,t,n,s,o){this.fallbackAgent=s,this.isProxyConfigured=e,this.mustUrlUseProxy=t,this.getUrlProxy=n,this.socketConnectionTimeout=o}addRequest(e,t){let n;if(e.path.startsWith("http://")||e.path.startsWith("https://")?n=e.path:n=this.protocol+"//"+(t.hostname||t.host)+(t.port===80||t.port===443?"":":"+t.port)+e.path,!this.isProxyConfigured()){T.trace({destination:n},"not proxying request; GLOBAL_AGENT.HTTP_PROXY is not configured"),this.fallbackAgent.addRequest(e,t);return}if(!this.mustUrlUseProxy(n)){T.trace({destination:n},"not proxying request; url matches GLOBAL_AGENT.NO_PROXY"),this.fallbackAgent.addRequest(e,t);return}let s=ml++,o=this.getUrlProxy(n);this.protocol==="http:"&&(e.path=n,o.authorization&&e.setHeader("proxy-authorization","Basic "+Buffer.from(o.authorization).toString("base64"))),T.trace({destination:n,proxy:"http://"+o.hostname+":"+o.port,requestId:s},"proxying request"),e.on("error",c=>{T.error({error:(0,Vs.serializeError)(c)},"request error")}),e.once("response",c=>{T.trace({headers:c.headers,requestId:s,statusCode:c.statusCode},"proxying response")}),e.shouldKeepAlive=!1;let a={host:t.hostname||t.host,port:t.port||80,proxy:o,tls:{}};this.protocol==="https:"&&(a.tls={ca:t.ca,cert:t.cert,ciphers:t.ciphers,clientCertEngine:t.clientCertEngine,crl:t.crl,dhparam:t.dhparam,ecdhCurve:t.ecdhCurve,honorCipherOrder:t.honorCipherOrder,key:t.key,passphrase:t.passphrase,pfx:t.pfx,rejectUnauthorized:t.rejectUnauthorized,secureOptions:t.secureOptions,secureProtocol:t.secureProtocol,servername:t.servername||a.host,sessionIdContext:t.sessionIdContext},typeof process.env.NODE_TLS_REJECT_UNAUTHORIZED=="string"&&(0,hl.boolean)(process.env.NODE_TLS_REJECT_UNAUTHORIZED)===!1&&(a.tls.rejectUnauthorized=!1)),this.createConnection(a,(c,l)=>{T.trace({target:a},"connecting"),l&&(l.setTimeout(this.socketConnectionTimeout,()=>{l.destroy()}),l.once("connect",()=>{T.trace({target:a},"connected"),l.setTimeout(0)}),l.once("secureConnect",()=>{T.trace({target:a},"connected (secure)"),l.setTimeout(0)})),c?e.emit("error",c):(T.debug("created socket"),l.on("error",E=>{T.error({error:(0,Vs.serializeError)(E)},"socket error")}),e.onSocket(l))})}},yl=qr;Se.default=yl});var Ys=f(qe=>{"use strict";i();Object.defineProperty(qe,"__esModule",{value:!0});qe.default=void 0;var Ol=Bs(N("net")),vl=Bs(Ie());function Bs(r){return r&&r.__esModule?r:{default:r}}var xr=class extends vl.default{constructor(...e){super(...e),this.protocol="http:",this.defaultPort=80}createConnection(e,t){let n=Ol.default.connect(e.proxy.port,e.proxy.hostname);t(null,n)}},bl=xr;qe.default=bl});var zs=f(xe=>{"use strict";i();Object.defineProperty(xe,"__esModule",{value:!0});xe.default=void 0;var Rl=Dr(N("net")),_l=Dr(N("tls")),wl=Dr(Ie());function Dr(r){return r&&r.__esModule?r:{default:r}}var Cr=class extends wl.default{constructor(...e){super(...e),this.protocol="https:",this.defaultPort=443}createConnection(e,t){let n=Rl.default.connect(e.proxy.port,e.proxy.hostname);n.on("error",o=>{t(o)}),n.once("data",()=>{let o=_l.default.connect({...e.tls,socket:n});t(null,o)});let s="";s+="CONNECT "+e.host+":"+e.port+` HTTP/1.1\r
3
3
  `,s+="Host: "+e.host+":"+e.port+`\r
4
4
  `,e.proxy.authorization&&(s+="Proxy-Authorization: Basic "+Buffer.from(e.proxy.authorization).toString("base64")+`\r
@@ -1,4 +1,4 @@
1
- import{a as Nc,e as Mc,f as jc}from"./chunk-VYXVYOIJ.js";import{a as Lc}from"./chunk-42RMKTCJ.js";import{c as Bc,i as Rc,o as ly}from"./chunk-A3VYI4LO.js";import{N as Ec,P as bc,Q as Dc,fa as Cc,ma as Oc,p as wc,z as un}from"./chunk-4V4DQ6W7.js";import{B as kc,D as Tc,l as Ac,m as _c,p as Fc,x as ho}from"./chunk-WUK5NQSX.js";import{b as hn}from"./chunk-VEDZUOVI.js";import{A as rt,D as Pc,F as Sr,d as cy,r as Be,u as mt,v as Cr,w as Xe,y as cn,z as tt}from"./chunk-MGL4YM3S.js";import{d as I,g as ln}from"./chunk-BHWEA4V2.js";import{a as yc,c as vc,d as ao,e as Dr,f as ty,g as uo,h as ry,i as iy,j as xc,k as co,m as oy,n as lo,o as ay,q as uy}from"./chunk-3YWUSKWF.js";import{b as ey,c as et}from"./chunk-ZR76GGZ6.js";import{b as Z0}from"./chunk-EENHXSWU.js";import{a as sy}from"./chunk-6M3ZYNGO.js";import{c as ny}from"./chunk-QYR5VPQA.js";import{$ as hc,$a as pc,Ca as oo,Ea as an,Fb as gt,Gb as Ic,Hb as Ar,Mb as it,Pb as me,Ta as U,U as uc,Wa as dc,X as cc,Z as lc,ma as X,pa as br,qb as mc,sb as gc,ua as V,wa as sn,ya as on,yb as Sc}from"./chunk-VPL2NDH6.js";import{u as W}from"./chunk-7JESXDF2.js";import{b as K0}from"./chunk-5Y7GIF2W.js";import{a as Q0,b as fc}from"./chunk-T4M5CWAO.js";import{d as M,f as J,g as kt,i as le,j as Tt,k as nn,n as ac}from"./chunk-IU2ZQ6TE.js";import{a as F,c as E,e as rn,g as y}from"./chunk-VPRTJUIN.js";var Ot=E(fo=>{"use strict";y();Object.defineProperty(fo,"__esModule",{value:!0});var dy=e=>{process.stdout.write(e)},py=e=>{process.stderr.write(e)};fo.default={stderr:py,stdout:dy}});var yt=E(Ce=>{"use strict";y();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.existsSync=Ce.safeReadJson=Ce.readJsonSync=Ce.readJson=Ce.fileExists=Ce.dirExists=void 0;var Hc=F("node:fs"),po=F("node:fs/promises"),my=async e=>{let t;try{t=await(0,po.stat)(e)}catch{throw new Error(`No directory found at ${e}`)}if(!t.isDirectory())throw new Error(`${e} exists but is not a directory`);return e};Ce.dirExists=my;var gy=async e=>{let t;try{t=await(0,po.stat)(e)}catch{throw new Error(`No file found at ${e}`)}if(!t.isFile())throw new Error(`${e} exists but is not a file`);return e};Ce.fileExists=gy;async function zc(e){let t=await(0,po.readFile)(e,"utf8");return JSON.parse(t)}Ce.readJson=zc;function yy(e,t=!0){let r=(0,Hc.readFileSync)(e,"utf8");return t?JSON.parse(r):r}Ce.readJsonSync=yy;async function vy(e){try{return await zc(e)}catch{}}Ce.safeReadJson=vy;function xy(e){return(0,Hc.existsSync)(e)}Ce.existsSync=xy});var oe=E(q=>{"use strict";y();Object.defineProperty(q,"__esModule",{value:!0});q.mergeNestedObjects=q.mapValues=q.uniq=q.isNotFalsy=q.isTruthy=q.capitalize=q.sumBy=q.maxBy=q.isProd=q.castArray=q.sortBy=q.last=q.uniqBy=q.compact=q.pickBy=void 0;function wy(e,t){return Object.entries(e).reduce((r,[i,n])=>(t(n)&&(r[i]=n),r),{})}q.pickBy=wy;function Ey(e){return e.filter(t=>!!t)}q.compact=Ey;function by(e,t){return e.filter((r,i)=>{let n=t(r);return!e.some((o,s)=>s>i&&t(o)===n)})}q.uniqBy=by;function Dy(e){if(e)return e.at(-1)}q.last=Dy;function mo(e,t){if(e=e===void 0?0:e,t=t===void 0?0:t,Array.isArray(e)&&Array.isArray(t)){if(e.length===0&&t.length===0)return 0;let r=mo(e[0],t[0]);return r!==0?r:mo(e.slice(1),t.slice(1))}return e<t?-1:e>t?1:0}function Cy(e,t){return e.sort((r,i)=>mo(t(r),t(i)))}q.sortBy=Cy;function Sy(e){return e===void 0?[]:Array.isArray(e)?e:[e]}q.castArray=Sy;function Ay(){return!["development","test"].includes(process.env.NODE_ENV??"")}q.isProd=Ay;function _y(e,t){if(e.length!==0)return e.reduce((r,i)=>{let n=t(i),o=t(r);return n>o?i:r})}q.maxBy=_y;function Fy(e,t){return e.reduce((r,i)=>r+t(i),0)}q.sumBy=Fy;function ky(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():""}q.capitalize=ky;function Ty(e){return["1","true","y","yes"].includes(e.toLowerCase())}q.isTruthy=Ty;function Oy(e){return!["0","false","n","no"].includes(e.toLowerCase())}q.isNotFalsy=Oy;function Py(e){return[...new Set(e)].sort()}q.uniq=Py;function Iy(e,t){return Object.entries(e).reduce((r,[i,n])=>(r[i]=t(n,i),r),{})}q.mapValues=Iy;function Ny(e,t){return t.split(".").reduce((r,i)=>r?.[i],e)}function My(e,t){return Object.fromEntries(e.flatMap(r=>Object.entries(Ny(r,t)??{})).reverse())}q.mergeNestedObjects=My});var Wc=E(ge=>{"use strict";y();Object.defineProperty(ge,"__esModule",{value:!0});ge.string=ge.url=ge.file=ge.directory=ge.integer=ge.boolean=ge.custom=void 0;var jy=F("node:url"),Jc=yt(),By=oe();function Vt(e){return(t={})=>({parse:async(r,i,n)=>r,...e,...t,input:[],type:"option"})}ge.custom=Vt;ge.boolean=Vt({parse:async e=>!!e&&(0,By.isNotFalsy)(e)});ge.integer=Vt({async parse(e,t,r){if(!/^-?\d+$/.test(e))throw new Error(`Expected an integer but received: ${e}`);let i=Number.parseInt(e,10);if(r.min!==void 0&&i<r.min)throw new Error(`Expected an integer greater than or equal to ${r.min} but received: ${e}`);if(r.max!==void 0&&i>r.max)throw new Error(`Expected an integer less than or equal to ${r.max} but received: ${e}`);return i}});ge.directory=Vt({async parse(e,t,r){return r.exists?(0,Jc.dirExists)(e):e}});ge.file=Vt({async parse(e,t,r){return r.exists?(0,Jc.fileExists)(e):e}});ge.url=Vt({async parse(e){try{return new jy.URL(e)}catch{throw new Error(`Expected a valid url but received: ${e}`)}}});var Ry=Vt({});ge.string=Ry});var Gc=E((rT,Ly)=>{Ly.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"3.26.5",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"@types/cli-progress":"^3.11.5","ansi-escapes":"^4.3.2","ansi-styles":"^4.3.0",cardinal:"^2.1.1",chalk:"^4.1.2","clean-stack":"^3.0.1","cli-progress":"^3.12.0",color:"^4.2.3",debug:"^4.3.4",ejs:"^3.1.10","get-package-type":"^0.1.0",globby:"^11.1.0",hyperlinker:"^1.0.0","indent-string":"^4.0.0","is-wsl":"^2.2.0","js-yaml":"^3.14.1",minimatch:"^9.0.4","natural-orderby":"^2.0.3","object-treeify":"^1.1.33","password-prompt":"^1.1.3","slice-ansi":"^4.0.0","string-width":"^4.2.3","strip-ansi":"^6.0.1","supports-color":"^8.1.1","supports-hyperlinks":"^2.2.0","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^17.8.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^4","@oclif/prettier-config":"^0.2.1","@oclif/test":"^3.2.11","@types/ansi-styles":"^3.2.1","@types/benchmark":"^2.1.5","@types/chai":"^4.3.11","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/color":"^3.0.6","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/js-yaml":"^3.12.7","@types/mocha":"^10.0.6","@types/node":"^18","@types/node-notifier":"^8.0.5","@types/pnpapi":"^0.0.5","@types/slice-ansi":"^4.0.0","@types/strip-ansi":"^5.2.1","@types/supports-color":"^8.1.1","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.4.1","chai-as-promised":"^7.1.1",commitlint:"^17.8.1","cross-env":"^7.0.3",eslint:"^8.57.0","eslint-config-oclif":"^5.1.3","eslint-config-oclif-typescript":"^3.1.6","eslint-config-prettier":"^9.1.0","fancy-test":"^3.0.14",globby:"^11.1.0",husky:"^8","lint-staged":"^14.0.1",madge:"^6.1.0",mocha:"^10.4.0",nyc:"^15.1.0",prettier:"^3.2.5",shx:"^0.3.4",sinon:"^16.1.3","ts-node":"^10.9.2",tsd:"^0.31.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib","/flush.js","/flush.d.ts","/handle.js"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",main:"./lib/index.js",repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",commitlint:"commitlint",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint . --ext .ts",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky install",pretest:"yarn build && tsc -p test --noEmit --skipLibCheck","test:circular-deps":"madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts"'},types:"lib/index.d.ts"}});var Ve=E(yo=>{"use strict";y();Object.defineProperty(yo,"__esModule",{value:!0});var $y=F("node:fs"),qy=F("node:path"),go=class e extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return e.instance||(e.instance=new e),e.instance}get(t){return super.get(t)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Gc().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,$y.readFileSync)((0,qy.join)(__dirname,"..","package.json"),"utf8"))}}catch{return{name:"@oclif/core",version:"unknown"}}}}};yo.default=go});var Pt=E(fn=>{"use strict";y();Object.defineProperty(fn,"__esModule",{value:!0});fn.settings=void 0;global.oclif||(global.oclif={});fn.settings=global.oclif});var Yt=E(_r=>{"use strict";y();Object.defineProperty(_r,"__esModule",{value:!0});_r.errtermwidth=_r.stdtermwidth=void 0;var Uy=Pt();function Xc(e){if(!e.isTTY)return 80;let t=e.getWindowSize()[0];return t<1?80:t<40?40:t}var Vc=Number.parseInt(process.env.OCLIF_COLUMNS,10)||Uy.settings.columns;_r.stdtermwidth=Vc||Xc(process.stdout);_r.errtermwidth=Vc||Xc(process.stderr)});var wo=E(dn=>{"use strict";y();Object.defineProperty(dn,"__esModule",{value:!0});dn.Logger=void 0;var Yc=F("node:fs/promises"),Hy=F("node:path"),zy=Dr(),Jy=()=>new Date().toISOString(),vo,Wy=e=>new Promise(t=>{vo&&vo.unref(),vo=setTimeout(()=>t(null),e)});function Gy(e){return e.endsWith(`
1
+ import{a as Nc,e as Mc,f as jc}from"./chunk-RSRYC5ZF.js";import{a as Lc}from"./chunk-S6B2ADVR.js";import{c as Bc,i as Rc,o as ly}from"./chunk-YLQ3LNNY.js";import{N as Ec,P as bc,Q as Dc,fa as Cc,ma as Oc,p as wc,z as un}from"./chunk-G4OQABDT.js";import{B as kc,D as Tc,l as Ac,m as _c,p as Fc,x as ho}from"./chunk-ANBOLDON.js";import{b as hn}from"./chunk-HOSFU6UP.js";import{A as rt,D as Pc,F as Sr,d as cy,r as Be,u as mt,v as Cr,w as Xe,y as cn,z as tt}from"./chunk-NTRAWIEJ.js";import{d as I,g as ln}from"./chunk-TPCG6DCA.js";import{a as yc,c as vc,d as ao,e as Dr,f as ty,g as uo,h as ry,i as iy,j as xc,k as co,m as oy,n as lo,o as ay,q as uy}from"./chunk-T6CC5WUU.js";import{b as ey,c as et}from"./chunk-UQWFDL3F.js";import{b as Z0}from"./chunk-I5A6BPCP.js";import{a as sy}from"./chunk-ET2CGROE.js";import{c as ny}from"./chunk-TOLPNBZK.js";import{$ as hc,$a as pc,Ca as oo,Ea as an,Fb as gt,Gb as Ic,Hb as Ar,Mb as it,Pb as me,Ta as U,U as uc,Wa as dc,X as cc,Z as lc,ma as X,pa as br,qb as mc,sb as gc,ua as V,wa as sn,ya as on,yb as Sc}from"./chunk-7FQFEB33.js";import{u as W}from"./chunk-A4SBXDZB.js";import{b as K0}from"./chunk-NJOO5XJV.js";import{a as Q0,b as fc}from"./chunk-ZG7BVVT2.js";import{d as M,f as J,g as kt,i as le,j as Tt,k as nn,n as ac}from"./chunk-773TIA5M.js";import{a as F,c as E,e as rn,g as y}from"./chunk-VKWPEFWQ.js";var Ot=E(fo=>{"use strict";y();Object.defineProperty(fo,"__esModule",{value:!0});var dy=e=>{process.stdout.write(e)},py=e=>{process.stderr.write(e)};fo.default={stderr:py,stdout:dy}});var yt=E(Ce=>{"use strict";y();Object.defineProperty(Ce,"__esModule",{value:!0});Ce.existsSync=Ce.safeReadJson=Ce.readJsonSync=Ce.readJson=Ce.fileExists=Ce.dirExists=void 0;var Hc=F("node:fs"),po=F("node:fs/promises"),my=async e=>{let t;try{t=await(0,po.stat)(e)}catch{throw new Error(`No directory found at ${e}`)}if(!t.isDirectory())throw new Error(`${e} exists but is not a directory`);return e};Ce.dirExists=my;var gy=async e=>{let t;try{t=await(0,po.stat)(e)}catch{throw new Error(`No file found at ${e}`)}if(!t.isFile())throw new Error(`${e} exists but is not a file`);return e};Ce.fileExists=gy;async function zc(e){let t=await(0,po.readFile)(e,"utf8");return JSON.parse(t)}Ce.readJson=zc;function yy(e,t=!0){let r=(0,Hc.readFileSync)(e,"utf8");return t?JSON.parse(r):r}Ce.readJsonSync=yy;async function vy(e){try{return await zc(e)}catch{}}Ce.safeReadJson=vy;function xy(e){return(0,Hc.existsSync)(e)}Ce.existsSync=xy});var oe=E(q=>{"use strict";y();Object.defineProperty(q,"__esModule",{value:!0});q.mergeNestedObjects=q.mapValues=q.uniq=q.isNotFalsy=q.isTruthy=q.capitalize=q.sumBy=q.maxBy=q.isProd=q.castArray=q.sortBy=q.last=q.uniqBy=q.compact=q.pickBy=void 0;function wy(e,t){return Object.entries(e).reduce((r,[i,n])=>(t(n)&&(r[i]=n),r),{})}q.pickBy=wy;function Ey(e){return e.filter(t=>!!t)}q.compact=Ey;function by(e,t){return e.filter((r,i)=>{let n=t(r);return!e.some((o,s)=>s>i&&t(o)===n)})}q.uniqBy=by;function Dy(e){if(e)return e.at(-1)}q.last=Dy;function mo(e,t){if(e=e===void 0?0:e,t=t===void 0?0:t,Array.isArray(e)&&Array.isArray(t)){if(e.length===0&&t.length===0)return 0;let r=mo(e[0],t[0]);return r!==0?r:mo(e.slice(1),t.slice(1))}return e<t?-1:e>t?1:0}function Cy(e,t){return e.sort((r,i)=>mo(t(r),t(i)))}q.sortBy=Cy;function Sy(e){return e===void 0?[]:Array.isArray(e)?e:[e]}q.castArray=Sy;function Ay(){return!["development","test"].includes(process.env.NODE_ENV??"")}q.isProd=Ay;function _y(e,t){if(e.length!==0)return e.reduce((r,i)=>{let n=t(i),o=t(r);return n>o?i:r})}q.maxBy=_y;function Fy(e,t){return e.reduce((r,i)=>r+t(i),0)}q.sumBy=Fy;function ky(e){return e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():""}q.capitalize=ky;function Ty(e){return["1","true","y","yes"].includes(e.toLowerCase())}q.isTruthy=Ty;function Oy(e){return!["0","false","n","no"].includes(e.toLowerCase())}q.isNotFalsy=Oy;function Py(e){return[...new Set(e)].sort()}q.uniq=Py;function Iy(e,t){return Object.entries(e).reduce((r,[i,n])=>(r[i]=t(n,i),r),{})}q.mapValues=Iy;function Ny(e,t){return t.split(".").reduce((r,i)=>r?.[i],e)}function My(e,t){return Object.fromEntries(e.flatMap(r=>Object.entries(Ny(r,t)??{})).reverse())}q.mergeNestedObjects=My});var Wc=E(ge=>{"use strict";y();Object.defineProperty(ge,"__esModule",{value:!0});ge.string=ge.url=ge.file=ge.directory=ge.integer=ge.boolean=ge.custom=void 0;var jy=F("node:url"),Jc=yt(),By=oe();function Vt(e){return(t={})=>({parse:async(r,i,n)=>r,...e,...t,input:[],type:"option"})}ge.custom=Vt;ge.boolean=Vt({parse:async e=>!!e&&(0,By.isNotFalsy)(e)});ge.integer=Vt({async parse(e,t,r){if(!/^-?\d+$/.test(e))throw new Error(`Expected an integer but received: ${e}`);let i=Number.parseInt(e,10);if(r.min!==void 0&&i<r.min)throw new Error(`Expected an integer greater than or equal to ${r.min} but received: ${e}`);if(r.max!==void 0&&i>r.max)throw new Error(`Expected an integer less than or equal to ${r.max} but received: ${e}`);return i}});ge.directory=Vt({async parse(e,t,r){return r.exists?(0,Jc.dirExists)(e):e}});ge.file=Vt({async parse(e,t,r){return r.exists?(0,Jc.fileExists)(e):e}});ge.url=Vt({async parse(e){try{return new jy.URL(e)}catch{throw new Error(`Expected a valid url but received: ${e}`)}}});var Ry=Vt({});ge.string=Ry});var Gc=E((rT,Ly)=>{Ly.exports={name:"@oclif/core",description:"base library for oclif CLIs",version:"3.26.5",author:"Salesforce",bugs:"https://github.com/oclif/core/issues",dependencies:{"@types/cli-progress":"^3.11.5","ansi-escapes":"^4.3.2","ansi-styles":"^4.3.0",cardinal:"^2.1.1",chalk:"^4.1.2","clean-stack":"^3.0.1","cli-progress":"^3.12.0",color:"^4.2.3",debug:"^4.3.4",ejs:"^3.1.10","get-package-type":"^0.1.0",globby:"^11.1.0",hyperlinker:"^1.0.0","indent-string":"^4.0.0","is-wsl":"^2.2.0","js-yaml":"^3.14.1",minimatch:"^9.0.4","natural-orderby":"^2.0.3","object-treeify":"^1.1.33","password-prompt":"^1.1.3","slice-ansi":"^4.0.0","string-width":"^4.2.3","strip-ansi":"^6.0.1","supports-color":"^8.1.1","supports-hyperlinks":"^2.2.0","widest-line":"^3.1.0",wordwrap:"^1.0.0","wrap-ansi":"^7.0.0"},devDependencies:{"@commitlint/config-conventional":"^17.8.1","@oclif/plugin-help":"^6","@oclif/plugin-plugins":"^4","@oclif/prettier-config":"^0.2.1","@oclif/test":"^3.2.11","@types/ansi-styles":"^3.2.1","@types/benchmark":"^2.1.5","@types/chai":"^4.3.11","@types/chai-as-promised":"^7.1.8","@types/clean-stack":"^2.1.1","@types/color":"^3.0.6","@types/debug":"^4.1.10","@types/ejs":"^3.1.5","@types/indent-string":"^4.0.1","@types/js-yaml":"^3.12.7","@types/mocha":"^10.0.6","@types/node":"^18","@types/node-notifier":"^8.0.5","@types/pnpapi":"^0.0.5","@types/slice-ansi":"^4.0.0","@types/strip-ansi":"^5.2.1","@types/supports-color":"^8.1.1","@types/wordwrap":"^1.0.3","@types/wrap-ansi":"^3.0.0",benchmark:"^2.1.4",chai:"^4.4.1","chai-as-promised":"^7.1.1",commitlint:"^17.8.1","cross-env":"^7.0.3",eslint:"^8.57.0","eslint-config-oclif":"^5.1.3","eslint-config-oclif-typescript":"^3.1.6","eslint-config-prettier":"^9.1.0","fancy-test":"^3.0.14",globby:"^11.1.0",husky:"^8","lint-staged":"^14.0.1",madge:"^6.1.0",mocha:"^10.4.0",nyc:"^15.1.0",prettier:"^3.2.5",shx:"^0.3.4",sinon:"^16.1.3","ts-node":"^10.9.2",tsd:"^0.31.0",typescript:"^5"},engines:{node:">=18.0.0"},files:["/lib","/flush.js","/flush.d.ts","/handle.js"],homepage:"https://github.com/oclif/core",keywords:["oclif","cli","command","command line","parser","args","argv"],license:"MIT",main:"./lib/index.js",repository:"oclif/core",oclif:{bin:"oclif",devPlugins:["@oclif/plugin-help","@oclif/plugin-plugins"]},publishConfig:{access:"public"},scripts:{build:"shx rm -rf lib && tsc",commitlint:"commitlint",compile:"tsc",format:'prettier --write "+(src|test)/**/*.+(ts|js|json)"',lint:"eslint . --ext .ts",posttest:"yarn lint && yarn test:circular-deps",prepack:"yarn run build",prepare:"husky install",pretest:"yarn build && tsc -p test --noEmit --skipLibCheck","test:circular-deps":"madge lib/ -c","test:debug":'nyc mocha --debug-brk --inspect "test/**/*.test.ts"',"test:integration":'mocha --forbid-only "test/**/*.integration.ts" --parallel --timeout 1200000',"test:interoperability":"cross-env DEBUG=integration:* ts-node test/integration/interop.ts","test:perf":"ts-node test/perf/parser.perf.ts",test:'nyc mocha --forbid-only "test/**/*.test.ts"'},types:"lib/index.d.ts"}});var Ve=E(yo=>{"use strict";y();Object.defineProperty(yo,"__esModule",{value:!0});var $y=F("node:fs"),qy=F("node:path"),go=class e extends Map{static instance;constructor(){super(),this.set("@oclif/core",this.getOclifCoreMeta())}static getInstance(){return e.instance||(e.instance=new e),e.instance}get(t){return super.get(t)}getOclifCoreMeta(){try{return{name:"@oclif/core",version:Gc().version}}catch{try{return{name:"@oclif/core",version:JSON.parse((0,$y.readFileSync)((0,qy.join)(__dirname,"..","package.json"),"utf8"))}}catch{return{name:"@oclif/core",version:"unknown"}}}}};yo.default=go});var Pt=E(fn=>{"use strict";y();Object.defineProperty(fn,"__esModule",{value:!0});fn.settings=void 0;global.oclif||(global.oclif={});fn.settings=global.oclif});var Yt=E(_r=>{"use strict";y();Object.defineProperty(_r,"__esModule",{value:!0});_r.errtermwidth=_r.stdtermwidth=void 0;var Uy=Pt();function Xc(e){if(!e.isTTY)return 80;let t=e.getWindowSize()[0];return t<1?80:t<40?40:t}var Vc=Number.parseInt(process.env.OCLIF_COLUMNS,10)||Uy.settings.columns;_r.stdtermwidth=Vc||Xc(process.stdout);_r.errtermwidth=Vc||Xc(process.stderr)});var wo=E(dn=>{"use strict";y();Object.defineProperty(dn,"__esModule",{value:!0});dn.Logger=void 0;var Yc=F("node:fs/promises"),Hy=F("node:path"),zy=Dr(),Jy=()=>new Date().toISOString(),vo,Wy=e=>new Promise(t=>{vo&&vo.unref(),vo=setTimeout(()=>t(null),e)});function Gy(e){return e.endsWith(`
2
2
  `)?e.replace(/\n$/,""):e}var xo=class{file;buffer=[];flushing=Promise.resolve();constructor(t){this.file=t}async flush(t=0){await Wy(t),this.flushing=this.flushing.then(async()=>{if(this.buffer.length===0)return;let r=this.buffer;this.buffer=[],await(0,Yc.mkdir)((0,Hy.dirname)(this.file),{recursive:!0}),await(0,Yc.appendFile)(this.file,r.join(`
3
3
  `)+`
4
4
  `)}),await this.flushing}log(t){t=zy(Gy(t));let r=t.split(`
@@ -151,7 +151,7 @@ See more help with --help`,Vm.default.getInstance().get("exitCodes")?.failedFlag
151
151
  `)}}vF();O.Args=vr(Wc());O.ux=vr(Bi());var xF=Hn();Object.defineProperty(O,"flush",{enumerable:!0,get:function(){return xF.flush}});var hg=Sp();Object.defineProperty(O,"stderr",{enumerable:!0,get:function(){return hg.stderr}});Object.defineProperty(O,"stdout",{enumerable:!0,get:function(){return hg.stdout}});var wF=og();Object.defineProperty(O,"Command",{enumerable:!0,get:function(){return wF.Command}});var fg=Ls();Object.defineProperty(O,"Config",{enumerable:!0,get:function(){return fg.Config}});Object.defineProperty(O,"Plugin",{enumerable:!0,get:function(){return fg.Plugin}});O.Errors=vr($e());var EF=jn();Object.defineProperty(O,"handle",{enumerable:!0,get:function(){return EF.handle}});var bF=ug();Object.defineProperty(O,"execute",{enumerable:!0,get:function(){return bF.execute}});O.Flags=vr(ss());var Js=Ci();Object.defineProperty(O,"CommandHelp",{enumerable:!0,get:function(){return Js.CommandHelp}});Object.defineProperty(O,"Help",{enumerable:!0,get:function(){return Js.Help}});Object.defineProperty(O,"HelpBase",{enumerable:!0,get:function(){return Js.HelpBase}});Object.defineProperty(O,"loadHelpClass",{enumerable:!0,get:function(){return Js.loadHelpClass}});O.Interfaces=vr(lg());var DF=Tu();Object.defineProperty(O,"run",{enumerable:!0,get:function(){return DF.run}});O.ModuleLoader=vr(xi());O.Parser=vr(Su());var CF=Yr();Object.defineProperty(O,"Performance",{enumerable:!0,get:function(){return CF.Performance}});var SF=Pt();Object.defineProperty(O,"settings",{enumerable:!0,get:function(){return SF.settings}});var dg=Nr();Object.defineProperty(O,"toConfiguredId",{enumerable:!0,get:function(){return dg.toConfiguredId}});Object.defineProperty(O,"toStandardizedId",{enumerable:!0,get:function(){return dg.toStandardizedId}})});y();import{createRequire as hy}from"node:module";import{pathToFileURL as $c}from"node:url";var qc=hy(import.meta.url);async function Uc(e){let t=qc.resolve("vite",process.env.SHOPIFY_UNIT_TEST?void 0:{paths:[e]}),r=await kc(t),i=r.content.exports?.["."];typeof i!="string"&&(i=i?.import),typeof i!="string"&&(i=i.default);let n=M(le(r.path),i);return import($c(n).href)}function fy(e,t){let r=qc.resolve(e,process.env.SHOPIFY_UNIT_TEST?void 0:{paths:[t]});return import($c(r).href)}y();var c0=rn(Ws(),1);y();var ee=rn(Ws(),1);y();y();y();import{fileURLToPath as pg}from"node:url";import{existsSync as FF}from"node:fs";y();import{exec as AF}from"node:child_process";import{promisify as _F}from"node:util";var Qe=_F(AF);function BN(){let e=process.listeners("warning")[0];e&&(process.removeAllListeners("warning"),process.prependListener("warning",t=>{t.name!="ExperimentalWarning"&&e(t)}))}var Pu=new URL("../../..",import.meta.url).pathname,Gi=(()=>{try{let e=M(le(Pu),"templates","skeleton");return FF(e)}catch{return!1}})(),WN=Gi?Pu:void 0,kF="assets/hydrogen",TF="starter",Ht="routes",Ou;async function OF(){if(Ou??=await pc("package.json",{cwd:pg(import.meta.url),type:"file"}),!Ou)throw new I("Could not find assets directory","Please report this error.");return Ou}async function Ze(e,...t){return M(le(await OF()),process.env.SHOPIFY_UNIT_TEST?"assets":`dist/${kF}`,e??"",...t)}async function Xi(e,t){t??=await Iu();let r=new URL(`${t}/app${e?`/${e}`:""}`,import.meta.url);return r.protocol==="file:"?pg(r):r.toString()}function Iu(e=!!process.env.SHOPIFY_UNIT_TEST){return e?Gs():Ze(TF)}function Gs(){if(!Gi)throw new I("Trying to use skeleton source dir outside of Hydrogen monorepo.","Please report this error.");return M(le(Pu),"templates","skeleton")}function PF(){return M(Gs(),"node_modules")}async function mg(){if(Gi)return PF();let{stdout:e}=await Qe("npm root");return e.trim()}var Nu=["tailwind","vanilla-extract","css-modules","postcss"];async function gg(e,t,r,i=(n,o)=>n){let n=await Ze(e);return Promise.all(Object.entries(t).map(async([o,s])=>{let c=await X(M(n,o));await V(M(r,s),i(c,o))}))}async function yg(e,t,r){let i=Object.values(e).map(o=>U(M(t,o)).then(s=>s?o:null)),n=(await Promise.all(i)).filter(Boolean);return!(n.length>0&&!r&&!await rt({message:`Some files already exist (${n.join(", ")}). Overwrite?`,defaultValue:!1}))}y();y();import{readdir as IF}from"node:fs/promises";y();ly();import*as vg from"fs/promises";import*as xg from"path";var Mu={arrowParens:"always",singleQuote:!0,bracketSpacing:!1,trailingComma:"all"};async function ft(e=process.cwd()){let t=(await vg.lstat(e)).isFile()?e:xg.resolve(e,"prettier.file");try{return await Bc(t)||Mu}catch{return Mu}}async function zt(e,t=Mu,r=""){let i=nn(r);return Rc(e,{parser:i===".tsx"||i===".ts"?"typescript":"babel",...t})}async function ui(e,t,r){let i=await r(await X(e));if(typeof i=="string")return t&&(i=await zt(i,t,e)),V(e,i)}var NF=["tsx","ts","jsx","js","mjs","cjs"];async function be(e,t,r=NF){let i=await IF(e);if(i.includes(t)){let n=J(e,t);if(!await an(n))return{filepath:n};for(let o of["ts","js"]){let s=J(e,`${t}/index.${o}`);if(await U(J(e,s)))return{filepath:s,extension:o,astType:o}}}else for(let n of r){let o=`${t}.${n}`;if(i.includes(o)){let s=n==="mjs"||n==="cjs"?"js":n;return{filepath:J(e,o),extension:n,astType:s}}}return{}}var wg=Object.freeze(["dependencies","devDependencies","peerDependencies"]);async function Xs(e,t,r){let i=await ho(M(t,"package.json")),n=await ho(M(e,"package.json")),o=new Set(["comment",...r?.ignoredKeys??[]]),s=Object.keys(n).filter(h=>!wg.includes(h));for(let h of s){if(o.has(h))continue;let g=n[h],d=i[h],f=Array.isArray(g)&&Array.isArray(d)?[...d,...g]:typeof g=="object"&&typeof d=="object"?{...d,...g}:g;i[h]=f}let c=Object.entries(i.dependencies||{}).find(([h])=>h.startsWith("@remix-run/"))?.[1];for(let h of wg)o.has(h)||n[h]&&(i[h]=[...new Set([...Object.keys(i[h]??{}),...Object.keys(n[h]??{})])].sort().reduce((g,d)=>{let f=n[h]?.[d]??i[h]?.[d];return d.startsWith("@remix-run/")&&c&&(f=c),g[d]=f,g},{}));await Tc(t,r?.onResult?.(i)??i)}y();y();async function Vi(e){let t=await import("@ast-grep/napi");if(!(e in t))throw new Error(`Wrong language for AST: ${e}`);return t[e]}async function Eg(e,t,r){let{filepath:i,astType:n}=await be(e,"root");if(!i||!n)throw new I(`Could not find root file in ${e}`);await ui(i,t,async o=>{let s=`import ${r.isDefault?r.name:`{${r.name}}`} from '${(r.isAbsolute?"":"./")+r.path}';`;if(o.includes(s.split("from")[0]))return;let h=(await Vi(n)).parse(o).root(),g=h.findAll({rule:{kind:"import_statement"}}).reverse(),d=g.find(l=>l.text().includes(".css"))||g.shift(),f=h.find({rule:{kind:"jsx_element",regex:"resetStyles",has:{kind:"jsx_opening_element",has:{kind:"identifier",pattern:"link"}}}});if(!d||!f)throw new I('Could not find a "links" export in root file. Please add one and try again.');let p=d.text(),a=f.text(),u=r.isConditional?`{${r.name} && <link rel="stylesheet" href={${r.name}}></link>}`:`<link rel="stylesheet" href={${r.name}}></link>`;return o.replace(p,p+`
152
152
  `+s).replace(a,u+`
153
153
  `+a)})}async function Vs(e,t,r,i){let{filepath:n,astType:o}=await be(e,"vite.config");if(!n||!o)throw new I(`Could not find vite.config file in ${e}`);await ui(n,t,async s=>{let c=`import ${r.isDefault?r.name:`{${r.name}}`} from '${r.path}';`;if(new RegExp(`['"]${r.path.replace("/","\\/")}['"]`).test(s))return;let g=(await Vi(o)).parse(s).root(),d=g.findAll({rule:{kind:"import_statement"}}).pop(),f=g.find(MF);if(!d||!f)throw new I('Could not find a "plugins" key in Vite config file. Please add one and try again.');let p=d.text(),a=f.text(),u=`${r.name}(${i?JSON.stringify(i):""})`;return s.replace(p,p+`
154
- `+c).replace(a,a.replace("[",`[${u},`))})}var MF={rule:{pattern:"[$$$]",inside:{kind:"pair",stopBy:"neighbor",has:{field:"key",regex:"^plugins$",stopBy:"neighbor"},inside:{kind:"object",stopBy:"neighbor",all:[{inside:{kind:"export_statement",regex:"export default",stopBy:"end"}},{not:{inside:{kind:"object",stopBy:"end"}}}]}}}};var bg="styles/tailwind.css";async function Dg({rootDirectory:e,appDirectory:t},r=!1){let i=kt(e,t),n={"tailwind.css":M(i,bg)};if(!await yg(n,t,r)){it("Skipping CSS setup as some files already exist. You may use `--force` or `-f` to override it.");return}return{workPromise:Promise.all([Xs(await Ze("tailwind"),e),gg("tailwind",n,e),ft(e).then(s=>Promise.all([Eg(t,s,{name:"tailwindCss",path:`${bg}?url`,isDefault:!0}),Vs(e,s,{name:"tailwindcss",path:"@tailwindcss/vite",isDefault:!0})]))]),generatedAssets:Object.values(n),needsInstallDeps:!0}}y();async function Cg({rootDirectory:e}){return{workPromise:Promise.all([Xs(await Ze("vanilla-extract"),e),ft(e).then(r=>Vs(e,r,{path:"@vanilla-extract/vite-plugin",name:"vanillaExtractPlugin",isDefault:!1}))]),generatedAssets:[],needsInstallDeps:!0}}var ju=[...Nu,"none"],Bu={tailwind:"Tailwind v4","vanilla-extract":"Vanilla Extract","css-modules":"CSS Modules",postcss:"PostCSS"},RM={postcss:"https://vitejs.dev/guide/features.html#postcss","css-modules":"https://vitejs.dev/guide/features.html#css-modules","vanilla-extract":"https://vanilla-extract.style/documentation/styling/",tailwind:"https://tailwindcss.com/docs/configuration"};function Sg(e,t,r){switch(e){case"tailwind":return Dg(t,r);case"vanilla-extract":return Cg(t);case"postcss":case"css-modules":return{workPromise:Promise.resolve(),generatedAssets:[],needsInstallDeps:!1};default:throw new Error("Unknown strategy")}}async function Ag(e){let t=Object.entries({...Bu,...e?.extraChoices});return tt({message:"Select a styling library",...e,choices:t.map(([r,i])=>({value:r,label:i})),defaultValue:"tailwind"})}y();y();y();y();async function Jt(e,t,r=!0){let{transpileTs:i}=await import("./morph-I35VYPBH.js");return i(e,t,r)}y();var _g={checkJs:!1,target:"ES2022",module:"ES2022",moduleResolution:"bundler",baseUrl:".",paths:{"~/*":["app/*"]}},jF=new Set(["noLib","target","module","moduleResolution","checkJs","experimentalDecorators","allowSyntheticDefaultImports","baseUrl","paths",...Object.keys(_g)]);function BF(e,t=!1){let r={compilerOptions:{..._g}};if(e.include&&(r.include=e.include.filter(i=>t||!i.endsWith(".d.ts")).map(i=>i.replace(/(?<!\.d)\.ts(x?)$/,".js$1"))),e.compilerOptions)for(let i of jF)e.compilerOptions[i]!==void 0&&(r.compilerOptions[i]=e.compilerOptions[i]);return r}async function Ru(e,t=!0){let r=M(e,"app/routes.ts");if(await U(r)){let s=(await X(r)).replace("./layout.tsx","./layout.jsx");await V(r,s)}let i=await dc("**/*.+(ts|tsx)",{absolute:!0,cwd:e,dot:!0,ignore:["**/node_modules/**"]}),n=await ft();for(let o of i){if(o.endsWith(".d.ts")){t||await on(o);continue}let s=await X(o),c=await zt(await Jt(s,o,t),n);await on(o),await V(o.replace(/\.ts(x?)$/,".js$1"),c)}try{let o=M(e,"remix.config.js"),s=await X(o);s=s.replace(/\/server\.ts/gim,"/server.js"),await V(o,s)}catch(o){me(`Could not change TS extensions in remix.config.js:
154
+ `+c).replace(a,a.replace("[",`[${u},`))})}var MF={rule:{pattern:"[$$$]",inside:{kind:"pair",stopBy:"neighbor",has:{field:"key",regex:"^plugins$",stopBy:"neighbor"},inside:{kind:"object",stopBy:"neighbor",all:[{inside:{kind:"export_statement",regex:"export default",stopBy:"end"}},{not:{inside:{kind:"object",stopBy:"end"}}}]}}}};var bg="styles/tailwind.css";async function Dg({rootDirectory:e,appDirectory:t},r=!1){let i=kt(e,t),n={"tailwind.css":M(i,bg)};if(!await yg(n,t,r)){it("Skipping CSS setup as some files already exist. You may use `--force` or `-f` to override it.");return}return{workPromise:Promise.all([Xs(await Ze("tailwind"),e),gg("tailwind",n,e),ft(e).then(s=>Promise.all([Eg(t,s,{name:"tailwindCss",path:`${bg}?url`,isDefault:!0}),Vs(e,s,{name:"tailwindcss",path:"@tailwindcss/vite",isDefault:!0})]))]),generatedAssets:Object.values(n),needsInstallDeps:!0}}y();async function Cg({rootDirectory:e}){return{workPromise:Promise.all([Xs(await Ze("vanilla-extract"),e),ft(e).then(r=>Vs(e,r,{path:"@vanilla-extract/vite-plugin",name:"vanillaExtractPlugin",isDefault:!1}))]),generatedAssets:[],needsInstallDeps:!0}}var ju=[...Nu,"none"],Bu={tailwind:"Tailwind v4","vanilla-extract":"Vanilla Extract","css-modules":"CSS Modules",postcss:"PostCSS"},RM={postcss:"https://vitejs.dev/guide/features.html#postcss","css-modules":"https://vitejs.dev/guide/features.html#css-modules","vanilla-extract":"https://vanilla-extract.style/documentation/styling/",tailwind:"https://tailwindcss.com/docs/configuration"};function Sg(e,t,r){switch(e){case"tailwind":return Dg(t,r);case"vanilla-extract":return Cg(t);case"postcss":case"css-modules":return{workPromise:Promise.resolve(),generatedAssets:[],needsInstallDeps:!1};default:throw new Error("Unknown strategy")}}async function Ag(e){let t=Object.entries({...Bu,...e?.extraChoices});return tt({message:"Select a styling library",...e,choices:t.map(([r,i])=>({value:r,label:i})),defaultValue:"tailwind"})}y();y();y();y();async function Jt(e,t,r=!0){let{transpileTs:i}=await import("./morph-CGOZEPPZ.js");return i(e,t,r)}y();var _g={checkJs:!1,target:"ES2022",module:"ES2022",moduleResolution:"bundler",baseUrl:".",paths:{"~/*":["app/*"]}},jF=new Set(["noLib","target","module","moduleResolution","checkJs","experimentalDecorators","allowSyntheticDefaultImports","baseUrl","paths",...Object.keys(_g)]);function BF(e,t=!1){let r={compilerOptions:{..._g}};if(e.include&&(r.include=e.include.filter(i=>t||!i.endsWith(".d.ts")).map(i=>i.replace(/(?<!\.d)\.ts(x?)$/,".js$1"))),e.compilerOptions)for(let i of jF)e.compilerOptions[i]!==void 0&&(r.compilerOptions[i]=e.compilerOptions[i]);return r}async function Ru(e,t=!0){let r=M(e,"app/routes.ts");if(await U(r)){let s=(await X(r)).replace("./layout.tsx","./layout.jsx");await V(r,s)}let i=await dc("**/*.+(ts|tsx)",{absolute:!0,cwd:e,dot:!0,ignore:["**/node_modules/**"]}),n=await ft();for(let o of i){if(o.endsWith(".d.ts")){t||await on(o);continue}let s=await X(o),c=await zt(await Jt(s,o,t),n);await on(o),await V(o.replace(/\.ts(x?)$/,".js$1"),c)}try{let o=M(e,"remix.config.js"),s=await X(o);s=s.replace(/\/server\.ts/gim,"/server.js"),await V(o,s)}catch(o){me(`Could not change TS extensions in remix.config.js:
155
155
  `+o.stack)}try{let o=M(e,"tsconfig.json"),s=await X(o),c=BF(JSON.parse(s.replace(/^\s*\/\/.*$/gm,"")),t);await on(o),await V(M(e,"jsconfig.json"),JSON.stringify(c,null,2))}catch(o){me(`Could not transpile tsconfig.json:
156
156
  `+o.stack)}try{let o=JSON.parse(await X(M(e,"package.json")));delete o.scripts.typecheck;let s=/react-router typegen\s*&&\s*/g;for(let[c,h]of Object.entries(o.scripts||{}))typeof h=="string"&&h.includes("react-router typegen")&&(o.scripts[c]=h.replace(s,""));if(!t){delete o.devDependencies.typescript,delete o.devDependencies["@shopify/oxygen-workers-types"];for(let h of Object.keys(o.devDependencies))h.startsWith("@types/")&&delete o.devDependencies[h];let c=/\s*--codegen/;o.scripts?.dev&&(o.scripts.dev=o.scripts.dev.replace(c,"")),o.scripts?.build&&(o.scripts.build=o.scripts.build.replace(c,""))}await V(M(e,"package.json"),JSON.stringify(o,null,2))}catch(o){me(`Could not remove TS dependencies from package.json:
157
157
  `+o.stack)}try{let{filepath:o=M(e,".eslintrc.cjs")}=await be(e,".eslintrc",["cjs","js"]),s=await X(o);t||(s=s.replace(/\/\*\*[\s*]+@type.+\s+\*\/\s?/gim,"")),s=s.replace(/\s*,?\s*['"`]plugin:hydrogen\/typescript['"`]/gim,"").replace(/\s+['"`]@typescript-eslint\/.+,/gim,""),await V(o,await zt(s,n))}catch(o){me(`Could not remove TS rules from .eslintrc:
@@ -1 +1 @@
1
- import{a as h,c as D,d as _,e as w}from"./chunk-L2VSSINY.js";import{b as y,k as O,q as b}from"./chunk-HHXHOQQP.js";import{b as S,c as T}from"./chunk-4KRT35A2.js";import{b as v}from"./chunk-A5SQCM63.js";import{u as F}from"./chunk-MGL4YM3S.js";import{r as G}from"./chunk-3YWUSKWF.js";import{Hb as a,Lb as L,Pb as l}from"./chunk-VPL2NDH6.js";import{e as $,g as o}from"./chunk-VPRTJUIN.js";o();o();o();var u;function p(){return u??(u=new v({projectName:"shopify-cli-host-theme-conf"})),u}function E(e){return l(a`Getting host theme...`),p().get(e)}function Y(e,t){l(a`Setting host theme...`),p().set(e,t)}function C(e){l(a`Removing host theme...`),p().delete(e)}function j(e,t){return{title:e,body:{tabularData:t}}}async function I(e,t){let n=t.storeFqdn,g=new w({...h.reduce((m,s)=>(m[s]=e.role===s,m),{}),theme:e.id?.toString()??e.name}),i=await D(t),x=y(),H=E(n);if(g.any()&&(i=_(n,i,g)),e.json)return L(JSON.stringify(i,null,2));let A=i.map(({id:m,name:s,role:d})=>{let f="";return d&&(f=`[${d}]`,[x,H].includes(`${m}`)&&(f+=" [current]")),[s,f,`#${m}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];F({customSections:[...e.environment?[{title:`${n} theme library`,body:[{subdued:`Environment name: ${e.environment}`}]}]:[],j("",R)]})}var c=$(G(),1);var r=class extends b{async command(t,n){await I(t,n)}};r.description="Lists the themes in your store, along with their IDs and statuses.";r.flags={...S,...T,...O,role:c.Flags.custom({description:"Only list themes with the given role.",options:h,env:"SHOPIFY_FLAG_ROLE"})(),name:c.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:c.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};r.multiEnvironmentsFlags=["store","password"];var oe=r;export{E as a,Y as b,C as c,oe as d};
1
+ import{a as h,c as D,d as _,e as w}from"./chunk-JUYJZUYU.js";import{b as y,k as O,q as b}from"./chunk-TUNUEOHO.js";import{b as S,c as T}from"./chunk-OXJBYKMX.js";import{b as v}from"./chunk-N5LVGFDS.js";import{u as F}from"./chunk-NTRAWIEJ.js";import{r as G}from"./chunk-T6CC5WUU.js";import{Hb as a,Lb as L,Pb as l}from"./chunk-7FQFEB33.js";import{e as $,g as o}from"./chunk-VKWPEFWQ.js";o();o();o();var u;function p(){return u??(u=new v({projectName:"shopify-cli-host-theme-conf"})),u}function E(e){return l(a`Getting host theme...`),p().get(e)}function Y(e,t){l(a`Setting host theme...`),p().set(e,t)}function C(e){l(a`Removing host theme...`),p().delete(e)}function j(e,t){return{title:e,body:{tabularData:t}}}async function I(e,t){let n=t.storeFqdn,g=new w({...h.reduce((m,s)=>(m[s]=e.role===s,m),{}),theme:e.id?.toString()??e.name}),i=await D(t),x=y(),H=E(n);if(g.any()&&(i=_(n,i,g)),e.json)return L(JSON.stringify(i,null,2));let A=i.map(({id:m,name:s,role:d})=>{let f="";return d&&(f=`[${d}]`,[x,H].includes(`${m}`)&&(f+=" [current]")),[s,f,`#${m}`]}),R=[["name","role","id"],["\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500","\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500"],...A];F({customSections:[...e.environment?[{title:`${n} theme library`,body:[{subdued:`Environment name: ${e.environment}`}]}]:[],j("",R)]})}var c=$(G(),1);var r=class extends b{async command(t,n){await I(t,n)}};r.description="Lists the themes in your store, along with their IDs and statuses.";r.flags={...S,...T,...O,role:c.Flags.custom({description:"Only list themes with the given role.",options:h,env:"SHOPIFY_FLAG_ROLE"})(),name:c.Flags.string({description:"Only list themes that contain the given name.",env:"SHOPIFY_FLAG_NAME"}),id:c.Flags.integer({description:"Only list theme with the given ID.",env:"SHOPIFY_FLAG_ID"})};r.multiEnvironmentsFlags=["store","password"];var oe=r;export{E as a,Y as b,C as c,oe as d};
@@ -1,2 +1,2 @@
1
- import{w as h}from"./chunk-NBYS6YQ2.js";import{a as d}from"./chunk-T5MK7ZSF.js";import{a as f}from"./chunk-DCK2FX6J.js";import{Fa as l}from"./chunk-WCWNI3ZV.js";import{b as m}from"./chunk-4KRT35A2.js";import{Lb as c,Xb as u}from"./chunk-VPL2NDH6.js";import{g as n}from"./chunk-VPRTJUIN.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
1
+ import{w as h}from"./chunk-25HJX3L2.js";import{a as d}from"./chunk-EKVTNWHM.js";import{a as f}from"./chunk-5BKCIDMS.js";import{Fa as l}from"./chunk-4QTEPWEJ.js";import{b as m}from"./chunk-OXJBYKMX.js";import{Lb as c,Xb as u}from"./chunk-7FQFEB33.js";import{g as n}from"./chunk-VKWPEFWQ.js";n();n();function g(p){let e=h(p),o=new Map;e.forEach(s=>{let r=s.split(".");if(r.length>=2){let i=r[0];o.has(i)||o.set(i,[]),o.set(i,[...o.get(i),s])}});for(let[s,r]of o)c(u(s,r.join(`
2
2
  `)))}var a,t=class extends d{async run(){let{flags:e}=await this.parse(a),{app:o}=await l({directory:e.path,clientId:e["client-id"],forceRelink:e.reset,userProvidedConfigName:e.config});return o.errors.isEmpty()?g(o):process.exit(2),{app:o}}};a=t;t.summary="Print out a list of sources that may be used with the logs command.";t.descriptionWithMarkdown="The output source names can be used with the `--source` argument of `shopify app logs` to filter log output. Currently only function extensions are supported as sources.";t.description=a.descriptionWithoutMarkdown();t.flags={...m,...f};var N=t;export{N as a};
@@ -1 +1 @@
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};
1
+ import{b as h}from"./chunk-N5LVGFDS.js";import{Hb as a,Pb as u}from"./chunk-7FQFEB33.js";import{f as I}from"./chunk-S5IFJ737.js";import{c as D}from"./chunk-NNOSZ447.js";import{g as f}from"./chunk-VKWPEFWQ.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,4 +1,4 @@
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.
1
+ import{a as o}from"./chunk-GCN4O7HM.js";import{q as i}from"./chunk-HDC5V7RY.js";import{b as r}from"./chunk-HOSFU6UP.js";import{u as e}from"./chunk-NTRAWIEJ.js";import{g as a}from"./chunk-VKWPEFWQ.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
 
@@ -1,4 +1,4 @@
1
- import{b as $}from"./chunk-MOA33ZFO.js";import{a as F}from"./chunk-JUVAGMIH.js";import{R as _}from"./chunk-MGL4YM3S.js";import{d as T}from"./chunk-6YAXFS6V.js";import{d}from"./chunk-BHWEA4V2.js";import{r as I}from"./chunk-3YWUSKWF.js";import{Fb as h,Hb as g,Lb as P,aa as E}from"./chunk-VPL2NDH6.js";import{c as O}from"./chunk-UARVYVLN.js";import{a as b}from"./chunk-ULQG3XQS.js";import{e as S,g as w}from"./chunk-VPRTJUIN.js";w();var u=S(I()),p=class extends u.Command{static descriptionWithoutMarkdown(){return(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)')}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(n){n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-V7LSEXHM.js");return await r(n,this.config),u.Errors.handle(n)}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),$(this.id??""),!O()){let{registerCleanBugsnagErrorsFromWithinPlugins:r}=await import("./error-handler-V7LSEXHM.js");await r(this.config)}await x(this.config),this.showNpmFlagWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-HM6JZ6WJ.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${E(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-H62CMRLG.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}exitWithTimestampWhenEnvVariablePresent(){b(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(P(`
1
+ import{b as $}from"./chunk-WW7TENNA.js";import{a as F}from"./chunk-5C7HDTHJ.js";import{R as _}from"./chunk-NTRAWIEJ.js";import{d as T}from"./chunk-VI34CKV6.js";import{d}from"./chunk-TPCG6DCA.js";import{r as I}from"./chunk-T6CC5WUU.js";import{Fb as h,Hb as g,Lb as P,aa as E}from"./chunk-7FQFEB33.js";import{c as O}from"./chunk-S5IFJ737.js";import{a as b}from"./chunk-NNOSZ447.js";import{e as S,g as w}from"./chunk-VKWPEFWQ.js";w();var u=S(I()),p=class extends u.Command{static descriptionWithoutMarkdown(){return(this.descriptionWithMarkdown??"").replace(/(\[)(.*?)(])(\()(.*?)(\))/gm,'"$2" ($5)')}static analyticsNameOverride(){}static analyticsStopCommand(){}async catch(n){n.skipOclifErrorHandling=!0;let{errorHandler:r}=await import("./error-handler-NI7D6GSY.js");return await r(n,this.config),u.Errors.handle(n)}async init(){if(this.exitWithTimestampWhenEnvVariablePresent(),$(this.id??""),!O()){let{registerCleanBugsnagErrorsFromWithinPlugins:r}=await import("./error-handler-NI7D6GSY.js");await r(this.config)}await x(this.config),this.showNpmFlagWarning();let{showNotificationsIfNeeded:n}=await import("./notifications-system-HLXJCAMG.js");return await n(),super.init()}showNpmFlagWarning(){let n=this.constructor;Object.keys(n.flags||{}).map(t=>`npm_config_${E(t).replace(/^no_/,"")}`).some(t=>process.env[t]!==void 0)&&import("./ui-D2FFWRK7.js").then(({renderWarning:t})=>{t({body:["NPM scripts require an extra",{command:"--"},"separator to pass the flags. Example:",{command:"npm run dev -- --reset"}]})})}exitWithTimestampWhenEnvVariablePresent(){b(process.env.SHOPIFY_CLI_ENV_STARTUP_PERFORMANCE_RUN)&&(P(`
2
2
  SHOPIFY_CLI_TIMESTAMP_START
3
3
  { "timestamp": ${Date.now()} }
4
4
  SHOPIFY_CLI_TIMESTAMP_END
@@ -6,6 +6,6 @@ import{b as $}from"./chunk-MOA33ZFO.js";import{a as F}from"./chunk-JUVAGMIH.js";
6
6
 
7
7
  ${h.cyan(e)}
8
8
 
9
- This flag is required in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")})}async resultWithEnvironment(n,r,e){let t=n.flags,i=this.environmentsFilename();if(!i)return n;let{environmentFilePath:o}=await import("./environments-RGLI75HN.js"),s=await o(i,{from:t.path}),m=[];t.environment&&(m=Array.isArray(t.environment)?t.environment:[t.environment]);let c=m.length>0;if(!s&&!c||c&&m.length>1)return n;let{environment:l,isDefaultEnvironment:f}=await this.loadEnvironmentForCommand(t.path,i,m[0]);if(!l||f&&!C(r?.flags,"environment"))return n;let v=await super.parse(N(r),e),y=await super.parse(r,[...e??this.argv,...W(l,r,v),...f?["--environment","default"]:[]]);return A(v.flags,y.flags,f?"default":m[0],l),y}async loadEnvironmentForCommand(n,r,e){let{loadEnvironment:t}=await import("./environments-RGLI75HN.js");return e?{environment:await t(e,r,{from:n}),isDefaultEnvironment:!1}:{environment:await t("default",r,{from:n,silent:!0}),isDefaultEnvironment:!0}}};p.baseFlags={};async function j(a){await T(()=>({cmd_all_verbose:a.verbose,cmd_all_path_override:a.path!==void 0,cmd_all_path_override_hash:a.path===void 0?void 0:F(a.path)}))}function A(a,n,r,e){let t={};for(let[o,s]of Object.entries(n)){let m=Object.prototype.hasOwnProperty.call(a,o),c=Object.prototype.hasOwnProperty.call(e,o);if(!m&&c){let l=o==="password"?`********${s.substr(-4)}`:s;t[o]=l}}if(Object.keys(t).length===0)return;let i=Object.entries(t).map(([o,s])=>`${o}: ${s}`);import("./ui-H62CMRLG.js").then(({renderInfo:o})=>{o({headline:["Using applicable flags from",{userInput:r},"environment:"],body:[{list:{items:i}}]})})}function N(a){return a?.flags?{...a,flags:Object.fromEntries(Object.entries(a.flags).map(([n,r])=>{let e={...r};return delete e.default,[n,e]}))}:a}function W(a,n,r){let e=[];for(let[t,i]of Object.entries(a)){let o=C(n?.flags,t),s=r.flags&&Object.prototype.hasOwnProperty.call(r.flags,t);if(o&&!s)if(typeof i=="boolean")if(i)e.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(i)?i.forEach(m=>e.push(`--${t}`,`${m}`)):e.push(`--${t}`,`${i}`)}return e}function C(a,n){return!!a&&Object.prototype.hasOwnProperty.call(a,n)}async function x(a){let n=Array.from(a.plugins.values()),r=["@shopify/app","@shopify/plugin-cloudflare"],e=n.filter(i=>r.includes(i.name));if(e.length>0){let i=e.map(s=>` - shopify plugins remove ${s.name}`).join(`
10
- `),{renderWarning:o}=await import("./ui-H62CMRLG.js");o({headline:`Unsupported plugins detected: ${e.map(s=>s.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
9
+ This flag is required in non-interactive terminal environments, such as a CI environment, or when piping input from another process.`,"To resolve this, specify the option in the command, or run the command in an interactive environment such as your local terminal.")})}async resultWithEnvironment(n,r,e){let t=n.flags,i=this.environmentsFilename();if(!i)return n;let{environmentFilePath:o}=await import("./environments-YPRVO2CF.js"),s=await o(i,{from:t.path}),m=[];t.environment&&(m=Array.isArray(t.environment)?t.environment:[t.environment]);let c=m.length>0;if(!s&&!c||c&&m.length>1)return n;let{environment:l,isDefaultEnvironment:f}=await this.loadEnvironmentForCommand(t.path,i,m[0]);if(!l||f&&!C(r?.flags,"environment"))return n;let v=await super.parse(N(r),e),y=await super.parse(r,[...e??this.argv,...W(l,r,v),...f?["--environment","default"]:[]]);return A(v.flags,y.flags,f?"default":m[0],l),y}async loadEnvironmentForCommand(n,r,e){let{loadEnvironment:t}=await import("./environments-YPRVO2CF.js");return e?{environment:await t(e,r,{from:n}),isDefaultEnvironment:!1}:{environment:await t("default",r,{from:n,silent:!0}),isDefaultEnvironment:!0}}};p.baseFlags={};async function j(a){await T(()=>({cmd_all_verbose:a.verbose,cmd_all_path_override:a.path!==void 0,cmd_all_path_override_hash:a.path===void 0?void 0:F(a.path)}))}function A(a,n,r,e){let t={};for(let[o,s]of Object.entries(n)){let m=Object.prototype.hasOwnProperty.call(a,o),c=Object.prototype.hasOwnProperty.call(e,o);if(!m&&c){let l=o==="password"?`********${s.substr(-4)}`:s;t[o]=l}}if(Object.keys(t).length===0)return;let i=Object.entries(t).map(([o,s])=>`${o}: ${s}`);import("./ui-D2FFWRK7.js").then(({renderInfo:o})=>{o({headline:["Using applicable flags from",{userInput:r},"environment:"],body:[{list:{items:i}}]})})}function N(a){return a?.flags?{...a,flags:Object.fromEntries(Object.entries(a.flags).map(([n,r])=>{let e={...r};return delete e.default,[n,e]}))}:a}function W(a,n,r){let e=[];for(let[t,i]of Object.entries(a)){let o=C(n?.flags,t),s=r.flags&&Object.prototype.hasOwnProperty.call(r.flags,t);if(o&&!s)if(typeof i=="boolean")if(i)e.push(`--${t}`);else throw new d(g`Environments can only specify true for boolean flags. Attempted to set ${h.yellow(t)} to false.`);else Array.isArray(i)?i.forEach(m=>e.push(`--${t}`,`${m}`)):e.push(`--${t}`,`${i}`)}return e}function C(a,n){return!!a&&Object.prototype.hasOwnProperty.call(a,n)}async function x(a){let n=Array.from(a.plugins.values()),r=["@shopify/app","@shopify/plugin-cloudflare"],e=n.filter(i=>r.includes(i.name));if(e.length>0){let i=e.map(s=>` - shopify plugins remove ${s.name}`).join(`
10
+ `),{renderWarning:o}=await import("./ui-D2FFWRK7.js");o({headline:`Unsupported plugins detected: ${e.map(s=>s.name).join(", ")}`,body:["They are already included in the CLI and installing them as custom plugins can cause conflicts.",`You can fix it by running:
11
11
  ${i}`]})}let t=n.filter(i=>!r.includes(i.name));a.plugins=new Map(t.map(i=>[i.name,i]))}var q=p;export{N as a,q as b};
@@ -1,3 +1,3 @@
1
- import{c as E,d as g}from"./chunk-IWE4RUI7.js";import{b as A}from"./chunk-N5ROZKPZ.js";import{R as D}from"./chunk-4V4DQ6W7.js";import{C,u as k,v as w,x as c}from"./chunk-MGL4YM3S.js";import{g as S}from"./chunk-BHWEA4V2.js";import{Fb as a,Hb as n,Rb as b,ca as N,ha as v}from"./chunk-VPL2NDH6.js";import{u as f}from"./chunk-7JESXDF2.js";import{g as d}from"./chunk-VPRTJUIN.js";d();d();function I(e){switch(e.status){case"RUNNING":return n`Bulk operation in progress${e.objectCount>0?a.gray(` (${String(e.objectCount)} objects ${e.type==="MUTATION"?"written":"read"})`):""}`;case"CREATED":return n`Starting`;case"COMPLETED":return n`Bulk operation succeeded: ${a.gray(`${String(e.objectCount)} objects`)}`;case"FAILED":return n`Bulk operation failed. ${a.errorText(`Error: ${e.errorCode??"unknown"}`)}`;case"CANCELING":return n`Bulk operation canceling...`;case"CANCELED":return n`Bulk operation canceled.`;case"EXPIRED":return n`Bulk operation expired.`;default:return n`Bulk operation status: ${e.status}`}}function P(e,i){let t=e.map(o=>n`${o.field?.join(".")??"unknown"}: ${o.message}`.value).join(`
1
+ import{c as E,d as g}from"./chunk-A27NZMWB.js";import{b as A}from"./chunk-CFOXXOO2.js";import{R as D}from"./chunk-G4OQABDT.js";import{C,u as k,v as w,x as c}from"./chunk-NTRAWIEJ.js";import{g as S}from"./chunk-TPCG6DCA.js";import{Fb as a,Hb as n,Rb as b,ca as N,ha as v}from"./chunk-7FQFEB33.js";import{u as f}from"./chunk-A4SBXDZB.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();d();function I(e){switch(e.status){case"RUNNING":return n`Bulk operation in progress${e.objectCount>0?a.gray(` (${String(e.objectCount)} objects ${e.type==="MUTATION"?"written":"read"})`):""}`;case"CREATED":return n`Starting`;case"COMPLETED":return n`Bulk operation succeeded: ${a.gray(`${String(e.objectCount)} objects`)}`;case"FAILED":return n`Bulk operation failed. ${a.errorText(`Error: ${e.errorCode??"unknown"}`)}`;case"CANCELING":return n`Bulk operation canceling...`;case"CANCELED":return n`Bulk operation canceled.`;case"EXPIRED":return n`Bulk operation expired.`;default:return n`Bulk operation status: ${e.status}`}}function P(e,i){let t=e.map(o=>n`${o.field?.join(".")??"unknown"}: ${o.message}`.value).join(`
2
2
  `);c({headline:i,body:t})}function U(e){let i=I(e).value;switch(e.status){case"CANCELING":return{headline:"Bulk operation is being cancelled.",body:[`This may take a few moments. Check the status with:
3
3
  `,{command:`shopify app bulk status --id=${h(e.id)}`}],renderType:"success"};case"CANCELED":case"COMPLETED":case"FAILED":{let t=[n`ID: ${a.cyan(e.id)}`.value,n`Status: ${a.yellow(e.status)}`.value,n`Created at: ${a.gray(String(e.createdAt))}`.value,...e.completedAt?[n`Completed at: ${a.gray(String(e.completedAt))}`.value]:[]];return{headline:n`Bulk operation is already ${e.status.toLowerCase()}.`.value,body:n`This operation has already finished and can't be canceled.`.value,customSections:[{body:[{list:{items:t}}]}],renderType:"warning"}}case"CREATED":case"EXPIRED":case"RUNNING":return{headline:i,renderType:"info"}}}d();var O="2026-01";d();var T={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetBulkOperationById"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};d();var B={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ListBulkOperations"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"query"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"first"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"sortKey"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"BulkOperationsSortKeys"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"bulkOperations"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"Variable",name:{kind:"Name",value:"first"}}},{kind:"Argument",name:{kind:"Name",value:"query"},value:{kind:"Variable",name:{kind:"Name",value:"query"}}},{kind:"Argument",name:{kind:"Name",value:"sortKey"},value:{kind:"Variable",name:{kind:"Name",value:"sortKey"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"status"}},{kind:"Field",name:{kind:"Name",value:"errorCode"}},{kind:"Field",name:{kind:"Name",value:"objectCount"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"completedAt"}},{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"partialDataUrl"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};function le(e){return e.startsWith("gid://")?e:/^\d+$/.test(e)?`gid://shopify/BulkOperation/${e}`:e}function h(e){return e.match(/^gid:\/\/shopify\/BulkOperation\/(\d+)$/)?.[1]??e}async function se(e){let{organization:i,storeFqdn:t,operationId:o,remoteApp:l}=e;k({headline:"Checking bulk operation status.",body:[{list:{items:g({organization:i,remoteApp:l,storeFqdn:t})}}]});let s=l.apiSecretKeys[0]?.secret;if(!s)throw new S("No API secret keys found for app");let u=await D(t,l.apiKey,s),m=await A({query:T,session:u,variables:{id:o},version:await E({adminSession:u,minimumDefaultVersion:O})});m.bulkOperation?F(m.bulkOperation):c({headline:"Bulk operation not found.",body:n`ID: ${a.yellow(o)}`.value})}async function ue(e){let{organization:i,storeFqdn:t,remoteApp:o}=e;k({headline:"Listing bulk operations.",body:[{list:{items:g({organization:i,remoteApp:o,storeFqdn:t})}}]});let l=o.apiSecretKeys[0]?.secret;if(!l)throw new S("No API secret keys found for app");let s=await D(t,o.apiKey,l),u=new Date(Date.now()-10080*60*1e3).toISOString().split("T")[0],p=(await A({query:B,session:s,variables:{query:`created_at:>=${u}`,first:100,sortKey:"CREATED_AT"},version:await E({adminSession:s,minimumDefaultVersion:O})})).bulkOperations.nodes.map(r=>({id:h(r.id),status:L(r.status),count:V(r.objectCount),dateCreated:N(new Date(String(r.createdAt))),dateFinished:r.completedAt?N(new Date(String(r.completedAt))):"",results:x(r.url??r.partialDataUrl)}));b(),p.length===0?k({body:"No bulk operations found in the last 7 days."}):C({rows:p,columns:{id:{header:"ID",color:"yellow"},status:{header:"STATUS"},count:{header:"COUNT"},dateCreated:{header:"DATE CREATED",color:"cyan"},dateFinished:{header:"DATE FINISHED",color:"cyan"},results:{header:"RESULTS"}}}),b()}function F(e){let{id:i,status:t,createdAt:o,completedAt:l,url:s,partialDataUrl:u}=e,m=I(e).value,p=$(o,l),r=n`ID: ${a.yellow(i)}\n${p}`.value;if(t==="COMPLETED"){let y=s?a.link("Download results",s):"";w({headline:m,body:n`${r}\n${y}`.value})}else if(t==="FAILED"){let y=u?a.link("Download partial results",u):"";c({headline:m,body:n`${r}\n${y}`.value})}else k({headline:m,body:r})}function $(e,i){let t=new Date;return i?`Finished ${v(new Date(String(i)),t)}`:`Started ${v(new Date(String(e)),t)}`}function L(e){return e==="COMPLETED"?f.green(e):e==="FAILED"?f.red(e):f.dim(e)}function V(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e)}function x(e){return e?n`${a.link("download",e)}`.value:""}export{O as a,T as b,le as c,h as d,se as e,ue as f,I as g,P as h,U as i};
@@ -1,4 +1,4 @@
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.
1
+ import{k as p,q as d}from"./chunk-TUNUEOHO.js";import{a as u}from"./chunk-6LWOWDF4.js";import{aa as P}from"./chunk-4J32OHLY.js";import{b as l}from"./chunk-OXJBYKMX.js";import{v as f}from"./chunk-NTRAWIEJ.js";import{d as i}from"./chunk-TPCG6DCA.js";import{Ta as c,ma as h}from"./chunk-7FQFEB33.js";import{f as r,n as m}from"./chunk-773TIA5M.js";import{e as w,g as n}from"./chunk-VKWPEFWQ.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
2
 
3
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
4
 
@@ -1 +1 @@
1
- import{a as r,c as o,g as e}from"./chunk-VPRTJUIN.js";var i=o((y,u)=>{"use strict";e();var n=r("fs"),s;function l(){try{return n.statSync("/.dockerenv"),!0}catch{return!1}}function p(){try{return n.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}u.exports=()=>(s===void 0&&(s=l()||p()),s)});var k=o((h,t)=>{"use strict";e();var d=r("os"),_=r("fs"),f=i(),a=()=>{if(process.platform!=="linux")return!1;if(d.release().toLowerCase().includes("microsoft"))return!f();try{return _.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!f():!1}catch{return!1}};process.env.__IS_WSL_TEST__?t.exports=a:t.exports=a()});export{i as a,k as b};
1
+ import{a as r,c as o,g as e}from"./chunk-VKWPEFWQ.js";var i=o((y,u)=>{"use strict";e();var n=r("fs"),s;function l(){try{return n.statSync("/.dockerenv"),!0}catch{return!1}}function p(){try{return n.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}u.exports=()=>(s===void 0&&(s=l()||p()),s)});var k=o((h,t)=>{"use strict";e();var d=r("os"),_=r("fs"),f=i(),a=()=>{if(process.platform!=="linux")return!1;if(d.release().toLowerCase().includes("microsoft"))return!f();try{return _.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!f():!1}catch{return!1}};process.env.__IS_WSL_TEST__?t.exports=a:t.exports=a()});export{i as a,k as b};