shopify 4.9.2 → 4.9.3

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 (327) hide show
  1. package/dist/analytics-CLYTLX2B.js +1 -0
  2. package/dist/analytics-K6IFFIPX.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/{chunk-ELJ34WWD.js → chunk-2E2NYRQH.js} +1 -1
  5. package/dist/{chunk-JUCOIXG5.js → chunk-2GYIQINP.js} +1 -1
  6. package/dist/{chunk-FNKTF2OF.js → chunk-2NRFFAV4.js} +1 -1
  7. package/dist/{chunk-4565O5TG.js → chunk-2S7WRX2J.js} +1 -1
  8. package/dist/{chunk-HKZ75UKL.js → chunk-2WQGEYBB.js} +1 -1
  9. package/dist/{chunk-N4AR2B6D.js → chunk-32HWTEOM.js} +1 -1
  10. package/dist/chunk-3B3CJS5I.js +1 -0
  11. package/dist/chunk-3FCN4NS6.js +6 -0
  12. package/dist/{chunk-CDIKRQ6M.js → chunk-3FPVTPQO.js} +1 -1
  13. package/dist/{chunk-JCKA3O5A.js → chunk-3JN6OWIO.js} +1 -1
  14. package/dist/{chunk-CNAMKKAK.js → chunk-3U2OMG7L.js} +1 -1
  15. package/dist/{chunk-3ZL4TDTH.js → chunk-3YAD263J.js} +1 -1
  16. package/dist/{chunk-OXN2DID2.js → chunk-43DSLBSX.js} +1 -1
  17. package/dist/{chunk-I55L6FOM.js → chunk-46I3BQZH.js} +1 -1
  18. package/dist/{chunk-5BO5HCN6.js → chunk-4J7HQGWI.js} +1 -1
  19. package/dist/{chunk-46U6C6C6.js → chunk-4LTQEQ4O.js} +1 -1
  20. package/dist/{chunk-TWS34WUT.js → chunk-4MUH4E2U.js} +1 -1
  21. package/dist/{chunk-EZ5F4ZFY.js → chunk-4Q5TSWQL.js} +3 -3
  22. package/dist/{chunk-IQIUFTR6.js → chunk-4Q7NZI5A.js} +1 -1
  23. package/dist/{chunk-BVVYKX4D.js → chunk-4RFKEFWW.js} +1 -1
  24. package/dist/{chunk-X6HLGOIV.js → chunk-52ZHZWF7.js} +1 -1
  25. package/dist/{chunk-SHBB5GST.js → chunk-543SYIY6.js} +1 -1
  26. package/dist/chunk-5BGUKF7L.js +1 -0
  27. package/dist/{chunk-3NRGGEGU.js → chunk-5LONOHNN.js} +1 -1
  28. package/dist/{chunk-R6IJRVVM.js → chunk-5LZ5L2FF.js} +1 -1
  29. package/dist/{chunk-AVOSD4NV.js → chunk-5RJ6KQHZ.js} +1 -1
  30. package/dist/{chunk-WZEKBD7B.js → chunk-66JMKA7C.js} +1 -1
  31. package/dist/{chunk-J7ZG6SO3.js → chunk-6BVQSX7D.js} +1 -1
  32. package/dist/{chunk-G627WGIC.js → chunk-6HWDGTSX.js} +2 -2
  33. package/dist/{chunk-RBPMV3KB.js → chunk-6JOZHD34.js} +1 -1
  34. package/dist/{chunk-WINVPFT5.js → chunk-6ZSI3C4G.js} +1 -1
  35. package/dist/{chunk-TEASB2WU.js → chunk-73LX4DOM.js} +1 -1
  36. package/dist/{chunk-KY36HSIB.js → chunk-7AP5E5CF.js} +1 -1
  37. package/dist/{chunk-OERMQ2FP.js → chunk-7IYSJGFF.js} +2 -2
  38. package/dist/{chunk-3ATOVFLZ.js → chunk-7KCHSZ6H.js} +1 -1
  39. package/dist/{chunk-NDMISEDF.js → chunk-7KVTQDRW.js} +1 -1
  40. package/dist/{chunk-YKYJOUV7.js → chunk-7NHCYOKI.js} +1 -1
  41. package/dist/{chunk-Z5SFLTH6.js → chunk-7SIY6GZD.js} +1 -1
  42. package/dist/{chunk-BLBJT7BM.js → chunk-A36J5FWZ.js} +1 -1
  43. package/dist/{chunk-UB2LAIXS.js → chunk-A6KNDSNT.js} +1 -1
  44. package/dist/{chunk-JJHJYBPQ.js → chunk-A6NAQ2Y3.js} +1 -1
  45. package/dist/{chunk-EMRUM6AA.js → chunk-A75SA57D.js} +1 -1
  46. package/dist/{chunk-65I35VBS.js → chunk-A76YYGZT.js} +1 -1
  47. package/dist/{chunk-UOKX3AME.js → chunk-ACGPDJ6Q.js} +1 -1
  48. package/dist/{chunk-PV5C6Q2P.js → chunk-ADGPOQ5M.js} +1 -1
  49. package/dist/{chunk-PQMKPXFV.js → chunk-ADL6JSX7.js} +1 -1
  50. package/dist/{chunk-J66WAKXN.js → chunk-ADVNRGOU.js} +1 -1
  51. package/dist/{chunk-D2S566HF.js → chunk-AF36J7R7.js} +1 -1
  52. package/dist/{chunk-ZJ4H3XEL.js → chunk-B32O5KET.js} +1 -1
  53. package/dist/{chunk-5TQOMAJS.js → chunk-BHOZAIHS.js} +1 -1
  54. package/dist/{chunk-KPNUSDCW.js → chunk-BWCPDFEY.js} +1 -1
  55. package/dist/{chunk-SDHDDNKM.js → chunk-BZSCRXYR.js} +3 -3
  56. package/dist/{chunk-LIQSNIB3.js → chunk-C4G7OKJD.js} +1 -1
  57. package/dist/{chunk-6H3HVSO5.js → chunk-CB6QT5K5.js} +1 -1
  58. package/dist/{chunk-7EDXMGBQ.js → chunk-CGCM5DB7.js} +1 -1
  59. package/dist/{chunk-XE5QH4D7.js → chunk-CNA5YGXA.js} +1 -1
  60. package/dist/{chunk-UYRXUGLY.js → chunk-CNHO3T4F.js} +1 -1
  61. package/dist/{chunk-4S2WKMLJ.js → chunk-CPT2VBMR.js} +1 -1
  62. package/dist/{chunk-GPJJA3FX.js → chunk-CQKZSB7Z.js} +1 -1
  63. package/dist/{chunk-7ZNR4YL4.js → chunk-CTDETNGR.js} +1 -1
  64. package/dist/{chunk-MP5NZL7C.js → chunk-CTVOXVXG.js} +1 -1
  65. package/dist/{chunk-2X3HYG4B.js → chunk-DE5BUQL5.js} +1 -1
  66. package/dist/{chunk-BVR3GF2L.js → chunk-DHWY73OS.js} +1 -1
  67. package/dist/chunk-DPGUL2TW.js +1 -0
  68. package/dist/{chunk-PYILLIGT.js → chunk-DWDR7XMI.js} +1 -1
  69. package/dist/{chunk-RY6TZDVV.js → chunk-E7PW5SVD.js} +1 -1
  70. package/dist/{chunk-Q4TZD2M6.js → chunk-EA5LKCRF.js} +1 -1
  71. package/dist/{chunk-HYC3JXR4.js → chunk-EJ46P6A3.js} +1 -1
  72. package/dist/{chunk-QN6SITWN.js → chunk-EM6KPZCM.js} +1 -1
  73. package/dist/{chunk-TUE67I2F.js → chunk-FHOBQUQT.js} +1 -1
  74. package/dist/{chunk-2R2PKQQV.js → chunk-FKGN6F3F.js} +1 -1
  75. package/dist/{chunk-KYBZ2MBA.js → chunk-FLPWT4AK.js} +1 -1
  76. package/dist/{chunk-55QTRPZ2.js → chunk-FMBC7LZB.js} +1 -1
  77. package/dist/{chunk-OMEWUFUL.js → chunk-GB4WR6DY.js} +1 -1
  78. package/dist/{chunk-EXKTQF26.js → chunk-GBG6SUK4.js} +1 -1
  79. package/dist/{chunk-JCO2SDDR.js → chunk-GIGA7EU3.js} +1 -1
  80. package/dist/{chunk-WXT5AKZV.js → chunk-GOBTF2ZH.js} +1 -1
  81. package/dist/{chunk-OIQVPTNQ.js → chunk-GPJAWTR7.js} +1 -1
  82. package/dist/{chunk-7ARGLS6W.js → chunk-GQZ3KCWJ.js} +1 -1
  83. package/dist/{chunk-C4GEP3CX.js → chunk-H3N5LKJD.js} +1 -1
  84. package/dist/{chunk-525BMYNR.js → chunk-H4PXFC7T.js} +1 -1
  85. package/dist/{chunk-ELQ5NPPB.js → chunk-H5ZPH2EC.js} +1 -1
  86. package/dist/{chunk-RAQP66LR.js → chunk-HHNMV6GX.js} +1 -1
  87. package/dist/{chunk-PQH4U2XV.js → chunk-HJPAHR2V.js} +1 -1
  88. package/dist/{chunk-XTKXBQVA.js → chunk-HQ4JWC5M.js} +1 -1
  89. package/dist/{chunk-UMSO6MOI.js → chunk-IH2CB73H.js} +1 -1
  90. package/dist/{chunk-IESHPQLC.js → chunk-IJM576XA.js} +1 -1
  91. package/dist/{chunk-3NUQGW57.js → chunk-IKN6ICJR.js} +1 -1
  92. package/dist/{chunk-RCYQPOJW.js → chunk-IN634BRF.js} +3 -3
  93. package/dist/{chunk-Q26ES5T3.js → chunk-IR6OW5R2.js} +1 -1
  94. package/dist/{chunk-JKWB7WTO.js → chunk-ISU7Q2EB.js} +1 -1
  95. package/dist/{chunk-EMKLN75K.js → chunk-J6BK6SNB.js} +1 -1
  96. package/dist/{chunk-NLKO2J7T.js → chunk-JQ3DMPI6.js} +1 -1
  97. package/dist/{chunk-6NLGZGYE.js → chunk-JTXQPPKQ.js} +1 -1
  98. package/dist/{chunk-7IRPE3M5.js → chunk-JYWFR6VL.js} +1 -1
  99. package/dist/chunk-KD5AYVA2.js +1 -0
  100. package/dist/{chunk-PG6XEOYF.js → chunk-KEI3OJVP.js} +1 -1
  101. package/dist/{chunk-EP5HIGAL.js → chunk-KFOU4WLJ.js} +1 -1
  102. package/dist/{chunk-BPVXYM6G.js → chunk-KI3VRWBP.js} +1 -1
  103. package/dist/{chunk-DTGIMRBX.js → chunk-KRL7FE6M.js} +1 -1
  104. package/dist/{chunk-BLCR7BXU.js → chunk-KWKRJYTY.js} +1 -1
  105. package/dist/{chunk-2NMICU24.js → chunk-KXZQKOKF.js} +1 -1
  106. package/dist/{chunk-LWF4EV22.js → chunk-KY4WH4ZK.js} +1 -1
  107. package/dist/{chunk-T3JUBPBU.js → chunk-KZ54OSBH.js} +1 -1
  108. package/dist/{chunk-YXKMPCFH.js → chunk-KZE6JT42.js} +1 -1
  109. package/dist/{chunk-OCQZ2ULI.js → chunk-KZWYFH7M.js} +1 -1
  110. package/dist/chunk-L4DFMMOI.js +1 -0
  111. package/dist/{chunk-5JW2EYSE.js → chunk-LGRZQTQL.js} +1 -1
  112. package/dist/{chunk-AKP4QAGL.js → chunk-LIE6QSQ2.js} +1 -1
  113. package/dist/{chunk-VXGXK66W.js → chunk-LOTMFUSV.js} +1 -1
  114. package/dist/{chunk-CHRFYG6W.js → chunk-MAQ3SRQF.js} +1 -1
  115. package/dist/{chunk-2P5DUPT7.js → chunk-MBE23GGW.js} +1 -1
  116. package/dist/{chunk-SZ2JOXTG.js → chunk-MDGF3K45.js} +1 -1
  117. package/dist/{chunk-MIP2Y34N.js → chunk-ME4EYPKZ.js} +1 -1
  118. package/dist/{chunk-7MMPQMU7.js → chunk-MMCDBR23.js} +1 -1
  119. package/dist/{chunk-R43LXE66.js → chunk-MNHZWEXI.js} +1 -1
  120. package/dist/{chunk-YIV3CWED.js → chunk-MROQ2FRU.js} +1 -1
  121. package/dist/{chunk-SWNY3RUM.js → chunk-MVFBLQ4J.js} +1 -1
  122. package/dist/{chunk-FICC6IFE.js → chunk-MWVT5HYW.js} +1 -1
  123. package/dist/{chunk-NS4FUSSK.js → chunk-MYIN4HYW.js} +1 -1
  124. package/dist/{chunk-SQIESCOJ.js → chunk-MYP6QEJW.js} +1 -1
  125. package/dist/{chunk-UVC3IXM3.js → chunk-NC64STMQ.js} +1 -1
  126. package/dist/{chunk-WNE2MZAZ.js → chunk-NL6DJQJG.js} +1 -1
  127. package/dist/{chunk-E64OFJHF.js → chunk-NO3QDX7R.js} +1 -1
  128. package/dist/{chunk-2VDCTMLY.js → chunk-NYVG34OW.js} +1 -1
  129. package/dist/{chunk-U5L2P36D.js → chunk-O36EB75H.js} +1 -1
  130. package/dist/{chunk-IJLD5UYC.js → chunk-O7YHDFOO.js} +1 -1
  131. package/dist/{chunk-3E3MCY5O.js → chunk-OSGXBBUJ.js} +3 -3
  132. package/dist/{chunk-JWDR66AS.js → chunk-OUO2T3CC.js} +1 -1
  133. package/dist/{chunk-JAX56OYG.js → chunk-OVTWO3W7.js} +1 -1
  134. package/dist/{chunk-QA2NOPXG.js → chunk-P4MNJULR.js} +1 -1
  135. package/dist/{chunk-HZJHGHLN.js → chunk-P7YDAQ53.js} +1 -1
  136. package/dist/{chunk-7GJYJ6DU.js → chunk-PE6H7U6N.js} +1 -1
  137. package/dist/{chunk-Q7PF4VKI.js → chunk-PFBESNYV.js} +62 -51
  138. package/dist/{chunk-SRDKLZ4O.js → chunk-PFPVFPHV.js} +1 -1
  139. package/dist/{chunk-RW2MONAS.js → chunk-PQEFZTEJ.js} +1 -1
  140. package/dist/chunk-Q54LU5W4.js +1 -0
  141. package/dist/{chunk-I2LILWDI.js → chunk-QKJ542VO.js} +1 -1
  142. package/dist/{chunk-DH5E6NM3.js → chunk-QKSN6ZYW.js} +1 -1
  143. package/dist/{chunk-IOS4IDZ2.js → chunk-QZGVZMB5.js} +1 -1
  144. package/dist/{chunk-ER7ZTF26.js → chunk-RJGFFGEN.js} +1 -1
  145. package/dist/{chunk-BK4VCXDD.js → chunk-S34ZYEZS.js} +1 -1
  146. package/dist/{chunk-3EEH3A27.js → chunk-SZLNUMWO.js} +1 -1
  147. package/dist/{chunk-JLGXJHPX.js → chunk-T3LZJIZN.js} +1 -1
  148. package/dist/{chunk-EGJQEKAO.js → chunk-TFB4JJFQ.js} +1 -1
  149. package/dist/{chunk-THW6UDZH.js → chunk-TWT5LVEM.js} +1 -1
  150. package/dist/{chunk-MQZPASSP.js → chunk-UGJN5Q6Y.js} +1 -1
  151. package/dist/{chunk-TPPBEVNQ.js → chunk-UKINO57E.js} +1 -1
  152. package/dist/{chunk-3F42A3XV.js → chunk-UYWRJHAJ.js} +3 -3
  153. package/dist/{chunk-QMJZFKKU.js → chunk-UZL4B7LA.js} +1 -1
  154. package/dist/{chunk-EJY4LA2S.js → chunk-V4F4LQBQ.js} +1 -1
  155. package/dist/{chunk-HVU3D3ZU.js → chunk-VCAYMY7D.js} +2 -2
  156. package/dist/{chunk-ZZ7SOJHH.js → chunk-VDE7IIYQ.js} +1 -1
  157. package/dist/{chunk-B477XHLZ.js → chunk-VOOYVTYA.js} +1 -1
  158. package/dist/{chunk-MW3HFOPD.js → chunk-VWDVWHV7.js} +1 -1
  159. package/dist/{chunk-W56I6HOT.js → chunk-WEB63XPH.js} +1 -1
  160. package/dist/{chunk-DGOBYP74.js → chunk-WS54VCDC.js} +1 -1
  161. package/dist/{chunk-FU4UVINZ.js → chunk-WUGFTI5M.js} +1 -1
  162. package/dist/{chunk-PQCALXSD.js → chunk-X5VBX2QA.js} +1 -1
  163. package/dist/{chunk-JAY7AGAG.js → chunk-XBCFYD3T.js} +1 -1
  164. package/dist/{chunk-Z57YWHOE.js → chunk-XGFY6FV4.js} +1 -1
  165. package/dist/{chunk-PFIQR7XS.js → chunk-XMPLZWXP.js} +1 -1
  166. package/dist/{chunk-XRJ2GQ24.js → chunk-XSGYQXWO.js} +1 -1
  167. package/dist/{chunk-Q555FV2X.js → chunk-XVOUKPGD.js} +1 -1
  168. package/dist/{chunk-PI6FLLDD.js → chunk-XZHUUA6U.js} +1 -1
  169. package/dist/{chunk-VZLEYZLX.js → chunk-XZOSPVMV.js} +1 -1
  170. package/dist/{chunk-3U2MYUWG.js → chunk-Y45QFHVA.js} +1 -1
  171. package/dist/{chunk-SYNCIFJ6.js → chunk-YKK4PGCQ.js} +1 -1
  172. package/dist/{chunk-6SO5GA6P.js → chunk-YMAVVMN5.js} +1 -1
  173. package/dist/{chunk-M7QFZQ23.js → chunk-YN3NT2RC.js} +1 -1
  174. package/dist/{chunk-PGE4HGLA.js → chunk-YPGZANN3.js} +1 -1
  175. package/dist/{chunk-P6TOIMMF.js → chunk-YS447QGN.js} +1 -1
  176. package/dist/{chunk-RDO5IWB5.js → chunk-YUM5XGSV.js} +1 -1
  177. package/dist/{chunk-CGH5Y6XE.js → chunk-YVX2OJ7N.js} +1 -1
  178. package/dist/{chunk-ANHSOQTZ.js → chunk-YWS2OTSC.js} +1 -1
  179. package/dist/{chunk-MHZSSRHP.js → chunk-YZXNXWDR.js} +1 -1
  180. package/dist/{chunk-P2MVR6CG.js → chunk-Z5M2VWQZ.js} +1 -1
  181. package/dist/{chunk-GS52MX5F.js → chunk-ZBMEU2CE.js} +1 -1
  182. package/dist/{chunk-4QEALPWD.js → chunk-ZIL2P7FL.js} +1 -1
  183. package/dist/{chunk-RGZCV56L.js → chunk-ZRW47MJT.js} +1 -1
  184. package/dist/{chunk-T6TYF72N.js → chunk-ZZWGNETX.js} +1 -1
  185. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  186. package/dist/cli/commands/app/build.js +1 -1
  187. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  188. package/dist/cli/commands/app/bulk/execute.js +1 -1
  189. package/dist/cli/commands/app/bulk/status.js +1 -1
  190. package/dist/cli/commands/app/config/link.js +1 -1
  191. package/dist/cli/commands/app/config/pull.js +1 -1
  192. package/dist/cli/commands/app/config/use.js +1 -1
  193. package/dist/cli/commands/app/config/validate.js +1 -1
  194. package/dist/cli/commands/app/demo/watcher.js +1 -1
  195. package/dist/cli/commands/app/deploy.js +1 -1
  196. package/dist/cli/commands/app/dev/clean.js +1 -1
  197. package/dist/cli/commands/app/dev.js +1 -1
  198. package/dist/cli/commands/app/env/pull.js +1 -1
  199. package/dist/cli/commands/app/env/show.js +1 -1
  200. package/dist/cli/commands/app/execute.js +1 -1
  201. package/dist/cli/commands/app/function/build.js +1 -1
  202. package/dist/cli/commands/app/function/info.js +1 -1
  203. package/dist/cli/commands/app/function/replay.js +1 -1
  204. package/dist/cli/commands/app/function/run.js +1 -1
  205. package/dist/cli/commands/app/function/schema.js +1 -1
  206. package/dist/cli/commands/app/function/typegen.js +1 -1
  207. package/dist/cli/commands/app/generate/extension.js +1 -1
  208. package/dist/cli/commands/app/graphiql.js +1 -1
  209. package/dist/cli/commands/app/import/channel-config.js +1 -1
  210. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  211. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  212. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  213. package/dist/cli/commands/app/import-extensions.js +1 -1
  214. package/dist/cli/commands/app/info.js +1 -1
  215. package/dist/cli/commands/app/init.js +1 -1
  216. package/dist/cli/commands/app/logs.js +1 -1
  217. package/dist/cli/commands/app/release.js +1 -1
  218. package/dist/cli/commands/app/security/check.js +1 -1
  219. package/dist/cli/commands/app/security/clean.js +1 -1
  220. package/dist/cli/commands/app/security/instructions.js +1 -1
  221. package/dist/cli/commands/app/security/record.js +1 -1
  222. package/dist/cli/commands/app/security/review.js +1 -1
  223. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  224. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  225. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  226. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  227. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  228. package/dist/cli/commands/app/versions/list.js +1 -1
  229. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  230. package/dist/cli/commands/auth/login.js +1 -1
  231. package/dist/cli/commands/auth/logout.js +1 -1
  232. package/dist/cli/commands/cache/clear.js +1 -1
  233. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  234. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  235. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  236. package/dist/cli/commands/debug/command-flags.js +1 -1
  237. package/dist/cli/commands/doc/fetch.js +1 -1
  238. package/dist/cli/commands/doc/search.js +1 -1
  239. package/dist/cli/commands/docs/generate.js +1 -1
  240. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  241. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  242. package/dist/cli/commands/help.js +1 -1
  243. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  244. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  245. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  246. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  247. package/dist/cli/commands/notifications/generate.js +1 -1
  248. package/dist/cli/commands/notifications/list.js +1 -1
  249. package/dist/cli/commands/organization/list.js +1 -1
  250. package/dist/cli/commands/search.js +1 -1
  251. package/dist/cli/commands/send-analytics.js +1 -1
  252. package/dist/cli/commands/theme/check.js +1 -1
  253. package/dist/cli/commands/theme/console.js +1 -1
  254. package/dist/cli/commands/theme/delete.js +1 -1
  255. package/dist/cli/commands/theme/dev.js +1 -1
  256. package/dist/cli/commands/theme/duplicate.js +1 -1
  257. package/dist/cli/commands/theme/info.js +1 -1
  258. package/dist/cli/commands/theme/init.js +1 -1
  259. package/dist/cli/commands/theme/language-server.js +1 -1
  260. package/dist/cli/commands/theme/list.js +1 -1
  261. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  262. package/dist/cli/commands/theme/open.js +1 -1
  263. package/dist/cli/commands/theme/package.js +1 -1
  264. package/dist/cli/commands/theme/preview.js +1 -1
  265. package/dist/cli/commands/theme/profile.js +1 -1
  266. package/dist/cli/commands/theme/publish.js +1 -1
  267. package/dist/cli/commands/theme/pull.js +1 -1
  268. package/dist/cli/commands/theme/push.js +1 -1
  269. package/dist/cli/commands/theme/rename.js +1 -1
  270. package/dist/cli/commands/theme/share.js +1 -1
  271. package/dist/cli/commands/upgrade.js +1 -1
  272. package/dist/cli/commands/version.js +1 -1
  273. package/dist/cli/help.js +1 -1
  274. package/dist/{command-json-schema-HYYJSZAH.js → command-json-schema-AWZEAYEU.js} +1 -1
  275. package/dist/command-registry.js +1 -1
  276. package/dist/{conf-store-CDZ5YSQM.js → conf-store-TBERV4YJ.js} +1 -1
  277. package/dist/{custom-oclif-loader-NVOK22CJ.js → custom-oclif-loader-RHFO4GO3.js} +1 -1
  278. package/dist/{deprecations-33DG6ZUL.js → deprecations-FNYLBULK.js} +1 -1
  279. package/dist/dist-HV5W7PYL.js +1 -0
  280. package/dist/dist-VKKGDJQ2.js +1 -0
  281. package/dist/environments-XC6OMZY2.js +1 -0
  282. package/dist/{error-V77H2UYX.js → error-SI2QH7DT.js} +1 -1
  283. package/dist/error-handler-XOEXJ4TY.js +1 -0
  284. package/dist/{fs-SKH3XZU7.js → fs-J67RRM6W.js} +1 -1
  285. package/dist/hooks/did-you-mean.js +1 -1
  286. package/dist/hooks/hydrogen-init.js +1 -1
  287. package/dist/hooks/postrun.js +1 -1
  288. package/dist/hooks/prerun.js +1 -1
  289. package/dist/hooks/public-metadata.js +1 -1
  290. package/dist/hooks/sensitive-metadata.js +1 -1
  291. package/dist/hooks/tunnel-provider.js +1 -1
  292. package/dist/hooks/tunnel-start.js +1 -1
  293. package/dist/index.js +1 -1
  294. package/dist/{is-global-2G4BLF7H.js → is-global-BSY2VR5F.js} +1 -1
  295. package/dist/{json-error-WSMAL66C.js → json-error-BVX244JK.js} +1 -1
  296. package/dist/{local-G2Z24BHM.js → local-VCJXKA4Z.js} +1 -1
  297. package/dist/{metadata-Y3RKC4P2.js → metadata-G7M7BSIE.js} +1 -1
  298. package/dist/{node-package-manager-A7HTBJKY.js → node-package-manager-PMTBCYAX.js} +1 -1
  299. package/dist/notifications-system-O2R4VN7A.js +1 -0
  300. package/dist/{os-7VQXVZWF.js → os-MMNGCSNT.js} +1 -1
  301. package/dist/{output-ZFFHJGNK.js → output-2Q6CSC33.js} +1 -1
  302. package/dist/{system-ZLITSFDC.js → system-DQ2SKK6C.js} +1 -1
  303. package/dist/tsconfig.tsbuildinfo +1 -1
  304. package/dist/{ui-YSFALYSL.js → ui-QOSX5V7Z.js} +1 -1
  305. package/dist/upgrade-7HYLPUVK.js +1 -0
  306. package/dist/version-BPEZT4N3.js +1 -0
  307. package/dist/version-VNCEYJRH.js +1 -0
  308. package/dist/{workerd-RNDPF36Q.js → workerd-2RFRLQVH.js} +1 -1
  309. package/oclif.manifest.json +4 -4
  310. package/package.json +7 -7
  311. package/dist/analytics-H2ANKZ2S.js +0 -1
  312. package/dist/analytics-Q6HJRPRX.js +0 -1
  313. package/dist/chunk-246AZCDT.js +0 -1
  314. package/dist/chunk-DV77BSKW.js +0 -1
  315. package/dist/chunk-FQKURDZR.js +0 -6
  316. package/dist/chunk-JUVJNIEA.js +0 -1
  317. package/dist/chunk-KOYBR5MV.js +0 -1
  318. package/dist/chunk-QLHPTMIH.js +0 -1
  319. package/dist/chunk-TQ7MHGY4.js +0 -1
  320. package/dist/dist-DODCXJ2A.js +0 -1
  321. package/dist/dist-YXMAKIFS.js +0 -1
  322. package/dist/environments-KBRQNE4R.js +0 -1
  323. package/dist/error-handler-JY3ZKE2G.js +0 -1
  324. package/dist/notifications-system-E64OSVXF.js +0 -1
  325. package/dist/upgrade-I4JTR4LA.js +0 -1
  326. package/dist/version-AOVO47AW.js +0 -1
  327. package/dist/version-LQV54JBC.js +0 -1
@@ -1 +1 @@
1
- import{b as m,c as u}from"./chunk-SHBB5GST.js";import{a as p}from"./chunk-246AZCDT.js";import{a as n}from"./chunk-VXGXK66W.js";import{Ia as c,q as a}from"./chunk-PG6XEOYF.js";import{b as e}from"./chunk-Q4TZD2M6.js";import{z as i}from"./chunk-RCYQPOJW.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();var s=class l extends p{static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionForHelp();static flags={...e,...n,...m};async run(){let{flags:t}=await this.parse(l),{app:o}=await c({directory:t.path,userProvidedConfigName:t.config}),d=await u(o,t.path);return await a(d,{app:o,stdout:process.stdout,stderr:process.stderr,useTasks:!0,environment:"production"}),i({headline:"Function built successfully."}),{app:o}}};export{s as a};
1
+ import{b as m,c as u}from"./chunk-543SYIY6.js";import{a as p}from"./chunk-Q54LU5W4.js";import{a as n}from"./chunk-LOTMFUSV.js";import{Ia as c,q as a}from"./chunk-KEI3OJVP.js";import{b as e}from"./chunk-EA5LKCRF.js";import{z as i}from"./chunk-IN634BRF.js";import{g as r}from"./chunk-VKWPEFWQ.js";r();var s=class l extends p{static summary="Compile a function to wasm.";static descriptionWithMarkdown="Compiles the function in your current directory to WebAssembly (Wasm) for testing purposes.";static description=this.descriptionForHelp();static flags={...e,...n,...m};async run(){let{flags:t}=await this.parse(l),{app:o}=await c({directory:t.path,userProvidedConfigName:t.config}),d=await u(o,t.path);return await a(d,{app:o,stdout:process.stdout,stderr:process.stderr,useTasks:!0,environment:"production"}),i({headline:"Function built successfully."}),{app:o}}};export{s as a};
@@ -1,4 +1,4 @@
1
- import{a as yo}from"./chunk-RJ5VF3QY.js";import{i as nn,l as _o}from"./chunk-ZZ7SOJHH.js";import{Eb as Fe,Nb as Ve,Va as tn,Wa as ur,Ya as rn,eb as mo}from"./chunk-3F42A3XV.js";import{g as go}from"./chunk-2R2PKQQV.js";import{a as cr,b as po}from"./chunk-WNO2V53C.js";import{f as ar,i as en}from"./chunk-3VYOLEQE.js";import{a as Rc}from"./chunk-CX5CC6P5.js";import{c as g,e as Qr,g as u}from"./chunk-VKWPEFWQ.js";var kt=g(q=>{"use strict";u();Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var Ot=class{};q._CodeOrName=Ot;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ke=class extends Ot{constructor(e){if(super(),!q.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};q.Name=Ke;var se=class extends Ot{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof Ke&&(r[n.str]=(r[n.str]||0)+1),r),{})}};q._Code=se;q.nil=new se("");function xo(t,...e){let r=[t[0]],n=0;for(;n<e.length;)_n(r,e[n]),r.push(t[++n]);return new se(r)}q._=xo;var yn=new se("+");function zo(t,...e){let r=[Tt(t[0])],n=0;for(;n<e.length;)r.push(yn),_n(r,e[n]),r.push(yn,Tt(t[++n]));return Lc(r),new se(r)}q.str=zo;function _n(t,e){e instanceof se?t.push(...e._items):e instanceof Ke?t.push(e):t.push(Hc(e))}q.addCodeArg=_n;function Lc(t){let e=1;for(;e<t.length-1;){if(t[e]===yn){let r=Kc(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Kc(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Ke||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Ke))return`"${t}${e.slice(1)}`}function Gc(t,e){return e.emptyStr()?t:t.emptyStr()?e:zo`${t}${e}`}q.strConcat=Gc;function Hc(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Tt(Array.isArray(t)?t.join(","):t)}function Wc(t){return new se(Tt(t))}q.stringify=Wc;function Tt(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}q.safeStringify=Tt;function Jc(t){return typeof t=="string"&&q.IDENTIFIER.test(t)?new se(`.${t}`):xo`[${t}]`}q.getProperty=Jc;function Yc(t){if(typeof t=="string"&&q.IDENTIFIER.test(t))return new se(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}q.getEsmExportName=Yc;function Bc(t){return new se(t.toString())}q.regexpCode=Bc});var vn=g(Q=>{"use strict";u();Object.defineProperty(Q,"__esModule",{value:!0});Q.ValueScope=Q.ValueScopeName=Q.Scope=Q.varKinds=Q.UsedValueState=void 0;var Z=kt(),gn=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},hr;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(hr||(Q.UsedValueState=hr={}));Q.varKinds={const:new Z.Name("const"),let:new Z.Name("let"),var:new Z.Name("var")};var pr=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Z.Name?e:this.name(e)}name(e){return new Z.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Q.Scope=pr;var mr=class extends Z.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,Z._)`.${new Z.Name(r)}[${n}]`}};Q.ValueScopeName=mr;var Xc=(0,Z._)`\n`,$n=class extends pr{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Xc:Z.nil}}get(){return this._scope}name(e){return new mr(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let s=this.toName(e),{prefix:o}=s,i=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let d=a.get(i);if(d)return d}else a=this._values[o]=new Map;a.set(i,s);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,s.setValue(r,{property:o,itemIndex:l}),s}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Z._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,s=>{if(s.value===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return s.value.code},r,n)}_reduceValues(e,r,n={},s){let o=Z.nil;for(let i in e){let a=e[i];if(!a)continue;let c=n[i]=n[i]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,hr.Started);let d=r(l);if(d){let f=this.opts.es5?Q.varKinds.var:Q.varKinds.const;o=(0,Z._)`${o}${f} ${l} = ${d};${this.opts._n}`}else if(d=s?.(l))o=(0,Z._)`${o}${d}${this.opts._n}`;else throw new gn(l);c.set(l,hr.Completed)})}return o}};Q.ValueScope=$n});var b=g(P=>{"use strict";u();Object.defineProperty(P,"__esModule",{value:!0});P.or=P.and=P.not=P.CodeGen=P.operators=P.varKinds=P.ValueScopeName=P.ValueScope=P.Scope=P.Name=P.regexpCode=P.stringify=P.getProperty=P.nil=P.strConcat=P.str=P._=void 0;var O=kt(),le=vn(),ke=kt();Object.defineProperty(P,"_",{enumerable:!0,get:function(){return ke._}});Object.defineProperty(P,"str",{enumerable:!0,get:function(){return ke.str}});Object.defineProperty(P,"strConcat",{enumerable:!0,get:function(){return ke.strConcat}});Object.defineProperty(P,"nil",{enumerable:!0,get:function(){return ke.nil}});Object.defineProperty(P,"getProperty",{enumerable:!0,get:function(){return ke.getProperty}});Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return ke.stringify}});Object.defineProperty(P,"regexpCode",{enumerable:!0,get:function(){return ke.regexpCode}});Object.defineProperty(P,"Name",{enumerable:!0,get:function(){return ke.Name}});var $r=vn();Object.defineProperty(P,"Scope",{enumerable:!0,get:function(){return $r.Scope}});Object.defineProperty(P,"ValueScope",{enumerable:!0,get:function(){return $r.ValueScope}});Object.defineProperty(P,"ValueScopeName",{enumerable:!0,get:function(){return $r.ValueScopeName}});Object.defineProperty(P,"varKinds",{enumerable:!0,get:function(){return $r.varKinds}});P.operators={GT:new O._Code(">"),GTE:new O._Code(">="),LT:new O._Code("<"),LTE:new O._Code("<="),EQ:new O._Code("==="),NEQ:new O._Code("!=="),NOT:new O._Code("!"),OR:new O._Code("||"),AND:new O._Code("&&"),ADD:new O._Code("+")};var Pe=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},wn=class extends Pe{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?le.varKinds.var:this.varKind,s=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${s};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=ot(this.rhs,e,r)),this}get names(){return this.rhs instanceof O._CodeOrName?this.rhs.names:{}}},yr=class extends Pe{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof O.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ot(this.rhs,e,r),this}get names(){let e=this.lhs instanceof O.Name?{}:{...this.lhs.names};return gr(e,this.rhs)}},En=class extends yr{constructor(e,r,n,s){super(e,n,s),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Sn=class extends Pe{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},bn=class extends Pe{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Pn=class extends Pe{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Nn=class extends Pe{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=ot(this.code,e,r),this}get names(){return this.code instanceof O._CodeOrName?this.code.names:{}}},Rt=class extends Pe{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,s=n.length;for(;s--;){let o=n[s];o.optimizeNames(e,r)||(Zc(e,o.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>We(e,r.names),{})}},Ne=class extends Rt{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},In=class extends Rt{},st=class extends Ne{};st.kind="else";var Ge=class t extends Ne{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new st(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Fo(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=ot(this.condition,e,r),this}get names(){let e=super.names;return gr(e,this.condition),this.else&&We(e,this.else.names),e}};Ge.kind="if";var He=class extends Ne{};He.kind="for";var On=class extends He{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=ot(this.iteration,e,r),this}get names(){return We(super.names,this.iteration.names)}},Tn=class extends He{constructor(e,r,n,s){super(),this.varKind=e,this.name=r,this.from=n,this.to=s}render(e){let r=e.es5?le.varKinds.var:this.varKind,{name:n,from:s,to:o}=this;return`for(${r} ${n}=${s}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){let e=gr(super.names,this.from);return gr(e,this.to)}},_r=class extends He{constructor(e,r,n,s){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=ot(this.iterable,e,r),this}get names(){return We(super.names,this.iterable.names)}},jt=class extends Ne{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};jt.kind="func";var qt=class extends Rt{render(e){return"return "+super.render(e)}};qt.kind="return";var kn=class extends Ne{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,s;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(s=this.finally)===null||s===void 0||s.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&We(e,this.catch.names),this.finally&&We(e,this.finally.names),e}},At=class extends Ne{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};At.kind="catch";var Ct=class extends Ne{render(e){return"finally"+super.render(e)}};Ct.kind="finally";var Rn=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
1
+ import{a as yo}from"./chunk-RJ5VF3QY.js";import{i as nn,l as _o}from"./chunk-VDE7IIYQ.js";import{Eb as Fe,Nb as Ve,Va as tn,Wa as ur,Ya as rn,eb as mo}from"./chunk-UYWRJHAJ.js";import{g as go}from"./chunk-FKGN6F3F.js";import{a as cr,b as po}from"./chunk-WNO2V53C.js";import{f as ar,i as en}from"./chunk-3VYOLEQE.js";import{a as Rc}from"./chunk-CX5CC6P5.js";import{c as g,e as Qr,g as u}from"./chunk-VKWPEFWQ.js";var kt=g(q=>{"use strict";u();Object.defineProperty(q,"__esModule",{value:!0});q.regexpCode=q.getEsmExportName=q.getProperty=q.safeStringify=q.stringify=q.strConcat=q.addCodeArg=q.str=q._=q.nil=q._Code=q.Name=q.IDENTIFIER=q._CodeOrName=void 0;var Ot=class{};q._CodeOrName=Ot;q.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ke=class extends Ot{constructor(e){if(super(),!q.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};q.Name=Ke;var se=class extends Ot{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof Ke&&(r[n.str]=(r[n.str]||0)+1),r),{})}};q._Code=se;q.nil=new se("");function xo(t,...e){let r=[t[0]],n=0;for(;n<e.length;)_n(r,e[n]),r.push(t[++n]);return new se(r)}q._=xo;var yn=new se("+");function zo(t,...e){let r=[Tt(t[0])],n=0;for(;n<e.length;)r.push(yn),_n(r,e[n]),r.push(yn,Tt(t[++n]));return Lc(r),new se(r)}q.str=zo;function _n(t,e){e instanceof se?t.push(...e._items):e instanceof Ke?t.push(e):t.push(Hc(e))}q.addCodeArg=_n;function Lc(t){let e=1;for(;e<t.length-1;){if(t[e]===yn){let r=Kc(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Kc(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Ke||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Ke))return`"${t}${e.slice(1)}`}function Gc(t,e){return e.emptyStr()?t:t.emptyStr()?e:zo`${t}${e}`}q.strConcat=Gc;function Hc(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Tt(Array.isArray(t)?t.join(","):t)}function Wc(t){return new se(Tt(t))}q.stringify=Wc;function Tt(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}q.safeStringify=Tt;function Jc(t){return typeof t=="string"&&q.IDENTIFIER.test(t)?new se(`.${t}`):xo`[${t}]`}q.getProperty=Jc;function Yc(t){if(typeof t=="string"&&q.IDENTIFIER.test(t))return new se(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}q.getEsmExportName=Yc;function Bc(t){return new se(t.toString())}q.regexpCode=Bc});var vn=g(Q=>{"use strict";u();Object.defineProperty(Q,"__esModule",{value:!0});Q.ValueScope=Q.ValueScopeName=Q.Scope=Q.varKinds=Q.UsedValueState=void 0;var Z=kt(),gn=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},hr;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(hr||(Q.UsedValueState=hr={}));Q.varKinds={const:new Z.Name("const"),let:new Z.Name("let"),var:new Z.Name("var")};var pr=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Z.Name?e:this.name(e)}name(e){return new Z.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Q.Scope=pr;var mr=class extends Z.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,Z._)`.${new Z.Name(r)}[${n}]`}};Q.ValueScopeName=mr;var Xc=(0,Z._)`\n`,$n=class extends pr{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Xc:Z.nil}}get(){return this._scope}name(e){return new mr(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let s=this.toName(e),{prefix:o}=s,i=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let d=a.get(i);if(d)return d}else a=this._values[o]=new Map;a.set(i,s);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,s.setValue(r,{property:o,itemIndex:l}),s}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Z._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,s=>{if(s.value===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return s.value.code},r,n)}_reduceValues(e,r,n={},s){let o=Z.nil;for(let i in e){let a=e[i];if(!a)continue;let c=n[i]=n[i]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,hr.Started);let d=r(l);if(d){let f=this.opts.es5?Q.varKinds.var:Q.varKinds.const;o=(0,Z._)`${o}${f} ${l} = ${d};${this.opts._n}`}else if(d=s?.(l))o=(0,Z._)`${o}${d}${this.opts._n}`;else throw new gn(l);c.set(l,hr.Completed)})}return o}};Q.ValueScope=$n});var b=g(P=>{"use strict";u();Object.defineProperty(P,"__esModule",{value:!0});P.or=P.and=P.not=P.CodeGen=P.operators=P.varKinds=P.ValueScopeName=P.ValueScope=P.Scope=P.Name=P.regexpCode=P.stringify=P.getProperty=P.nil=P.strConcat=P.str=P._=void 0;var O=kt(),le=vn(),ke=kt();Object.defineProperty(P,"_",{enumerable:!0,get:function(){return ke._}});Object.defineProperty(P,"str",{enumerable:!0,get:function(){return ke.str}});Object.defineProperty(P,"strConcat",{enumerable:!0,get:function(){return ke.strConcat}});Object.defineProperty(P,"nil",{enumerable:!0,get:function(){return ke.nil}});Object.defineProperty(P,"getProperty",{enumerable:!0,get:function(){return ke.getProperty}});Object.defineProperty(P,"stringify",{enumerable:!0,get:function(){return ke.stringify}});Object.defineProperty(P,"regexpCode",{enumerable:!0,get:function(){return ke.regexpCode}});Object.defineProperty(P,"Name",{enumerable:!0,get:function(){return ke.Name}});var $r=vn();Object.defineProperty(P,"Scope",{enumerable:!0,get:function(){return $r.Scope}});Object.defineProperty(P,"ValueScope",{enumerable:!0,get:function(){return $r.ValueScope}});Object.defineProperty(P,"ValueScopeName",{enumerable:!0,get:function(){return $r.ValueScopeName}});Object.defineProperty(P,"varKinds",{enumerable:!0,get:function(){return $r.varKinds}});P.operators={GT:new O._Code(">"),GTE:new O._Code(">="),LT:new O._Code("<"),LTE:new O._Code("<="),EQ:new O._Code("==="),NEQ:new O._Code("!=="),NOT:new O._Code("!"),OR:new O._Code("||"),AND:new O._Code("&&"),ADD:new O._Code("+")};var Pe=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},wn=class extends Pe{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?le.varKinds.var:this.varKind,s=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${s};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=ot(this.rhs,e,r)),this}get names(){return this.rhs instanceof O._CodeOrName?this.rhs.names:{}}},yr=class extends Pe{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof O.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=ot(this.rhs,e,r),this}get names(){let e=this.lhs instanceof O.Name?{}:{...this.lhs.names};return gr(e,this.rhs)}},En=class extends yr{constructor(e,r,n,s){super(e,n,s),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Sn=class extends Pe{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},bn=class extends Pe{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Pn=class extends Pe{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Nn=class extends Pe{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=ot(this.code,e,r),this}get names(){return this.code instanceof O._CodeOrName?this.code.names:{}}},Rt=class extends Pe{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,s=n.length;for(;s--;){let o=n[s];o.optimizeNames(e,r)||(Zc(e,o.names),n.splice(s,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>We(e,r.names),{})}},Ne=class extends Rt{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},In=class extends Rt{},st=class extends Ne{};st.kind="else";var Ge=class t extends Ne{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new st(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Fo(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=ot(this.condition,e,r),this}get names(){let e=super.names;return gr(e,this.condition),this.else&&We(e,this.else.names),e}};Ge.kind="if";var He=class extends Ne{};He.kind="for";var On=class extends He{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=ot(this.iteration,e,r),this}get names(){return We(super.names,this.iteration.names)}},Tn=class extends He{constructor(e,r,n,s){super(),this.varKind=e,this.name=r,this.from=n,this.to=s}render(e){let r=e.es5?le.varKinds.var:this.varKind,{name:n,from:s,to:o}=this;return`for(${r} ${n}=${s}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){let e=gr(super.names,this.from);return gr(e,this.to)}},_r=class extends He{constructor(e,r,n,s){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=ot(this.iterable,e,r),this}get names(){return We(super.names,this.iterable.names)}},jt=class extends Ne{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};jt.kind="func";var qt=class extends Rt{render(e){return"return "+super.render(e)}};qt.kind="return";var kn=class extends Ne{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,s;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(s=this.finally)===null||s===void 0||s.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&We(e,this.catch.names),this.finally&&We(e,this.finally.names),e}},At=class extends Ne{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};At.kind="catch";var Ct=class extends Ne{render(e){return"finally"+super.render(e)}};Ct.kind="finally";var Rn=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
2
2
  `:""},this._extScope=e,this._scope=new le.Scope({parent:e}),this._nodes=[new In]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,s){let o=this._scope.toName(r);return n!==void 0&&s&&(this._constants[o.str]=n),this._leafNode(new wn(e,o,n)),o}const(e,r,n){return this._def(le.varKinds.const,e,r,n)}let(e,r,n){return this._def(le.varKinds.let,e,r,n)}var(e,r,n){return this._def(le.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new yr(e,r,n))}add(e,r){return this._leafNode(new En(e,P.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==O.nil&&this._leafNode(new Nn(e)),this}object(...e){let r=["{"];for(let[n,s]of e)r.length>1&&r.push(","),r.push(n),(n!==s||this.opts.es5)&&(r.push(":"),(0,O.addCodeArg)(r,s));return r.push("}"),new O._Code(r)}if(e,r,n){if(this._blockNode(new Ge(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new Ge(e))}else(){return this._elseNode(new st)}endIf(){return this._endBlockNode(Ge,st)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new On(e),r)}forRange(e,r,n,s,o=this.opts.es5?le.varKinds.var:le.varKinds.let){let i=this._scope.toName(e);return this._for(new Tn(o,i,r,n),()=>s(i))}forOf(e,r,n,s=le.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let i=r instanceof O.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,O._)`${i}.length`,a=>{this.var(o,(0,O._)`${i}[${a}]`),n(o)})}return this._for(new _r("of",s,o,r),()=>n(o))}forIn(e,r,n,s=this.opts.es5?le.varKinds.var:le.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,O._)`Object.keys(${r})`,n);let o=this._scope.toName(e);return this._for(new _r("in",s,o,r),()=>n(o))}endFor(){return this._endBlockNode(He)}label(e){return this._leafNode(new Sn(e))}break(e){return this._leafNode(new bn(e))}return(e){let r=new qt;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(qt)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let s=new kn;if(this._blockNode(s),this.code(e),r){let o=this.name("e");this._currNode=s.catch=new At(o),r(o)}return n&&(this._currNode=s.finally=new Ct,this.code(n)),this._endBlockNode(At,Ct)}throw(e){return this._leafNode(new Pn(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=O.nil,n,s){return this._blockNode(new jt(e,r,n)),s&&this.code(s).endFunc(),this}endFunc(){return this._endBlockNode(jt)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof Ge))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};P.CodeGen=Rn;function We(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function gr(t,e){return e instanceof O._CodeOrName?We(t,e.names):t}function ot(t,e,r){if(t instanceof O.Name)return n(t);if(!s(t))return t;return new O._Code(t._items.reduce((o,i)=>(i instanceof O.Name&&(i=n(i)),i instanceof O._Code?o.push(...i._items):o.push(i),o),[]));function n(o){let i=r[o.str];return i===void 0||e[o.str]!==1?o:(delete e[o.str],i)}function s(o){return o instanceof O._Code&&o._items.some(i=>i instanceof O.Name&&e[i.str]===1&&r[i.str]!==void 0)}}function Zc(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function Fo(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,O._)`!${jn(t)}`}P.not=Fo;var Qc=Vo(P.operators.AND);function eu(...t){return t.reduce(Qc)}P.and=eu;var tu=Vo(P.operators.OR);function ru(...t){return t.reduce(tu)}P.or=ru;function Vo(t){return(e,r)=>e===O.nil?r:r===O.nil?e:(0,O._)`${jn(e)} ${t} ${jn(r)}`}function jn(t){return t instanceof O.Name?t:(0,O._)`(${t})`}});var k=g(N=>{"use strict";u();Object.defineProperty(N,"__esModule",{value:!0});N.checkStrictMode=N.getErrorPath=N.Type=N.useFunc=N.setEvaluated=N.evaluatedPropsToName=N.mergeEvaluated=N.eachItem=N.unescapeJsonPointer=N.escapeJsonPointer=N.escapeFragment=N.unescapeFragment=N.schemaRefOrVal=N.schemaHasRulesButRef=N.schemaHasRules=N.checkUnknownRules=N.alwaysValidSchema=N.toHash=void 0;var C=b(),nu=kt();function su(t){let e={};for(let r of t)e[r]=!0;return e}N.toHash=su;function ou(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Ko(t,e),!Go(e,t.self.RULES.all))}N.alwaysValidSchema=ou;function Ko(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let s=n.RULES.keywords;for(let o in e)s[o]||Jo(t,`unknown keyword: "${o}"`)}N.checkUnknownRules=Ko;function Go(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}N.schemaHasRules=Go;function iu(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}N.schemaHasRulesButRef=iu;function au({topSchemaRef:t,schemaPath:e},r,n,s){if(!s){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,C._)`${r}`}return(0,C._)`${t}${e}${(0,C.getProperty)(n)}`}N.schemaRefOrVal=au;function cu(t){return Ho(decodeURIComponent(t))}N.unescapeFragment=cu;function uu(t){return encodeURIComponent(An(t))}N.escapeFragment=uu;function An(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}N.escapeJsonPointer=An;function Ho(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}N.unescapeJsonPointer=Ho;function lu(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}N.eachItem=lu;function Uo({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(s,o,i,a)=>{let c=i===void 0?o:i instanceof C.Name?(o instanceof C.Name?t(s,o,i):e(s,o,i),i):o instanceof C.Name?(e(s,i,o),o):r(o,i);return a===C.Name&&!(c instanceof C.Name)?n(s,c):c}}N.mergeEvaluated={props:Uo({mergeNames:(t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,C._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,C._)`${r} || {}`).code((0,C._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,C._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,C._)`${r} || {}`),Cn(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:Wo}),items:Uo({mergeNames:(t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,C._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,C._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,C._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Wo(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,C._)`{}`);return e!==void 0&&Cn(t,r,e),r}N.evaluatedPropsToName=Wo;function Cn(t,e,r){Object.keys(r).forEach(n=>t.assign((0,C._)`${e}${(0,C.getProperty)(n)}`,!0))}N.setEvaluated=Cn;var Lo={};function du(t,e){return t.scopeValue("func",{ref:e,code:Lo[e.code]||(Lo[e.code]=new nu._Code(e.code))})}N.useFunc=du;var qn;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(qn||(N.Type=qn={}));function fu(t,e,r){if(t instanceof C.Name){let n=e===qn.Num;return r?n?(0,C._)`"[" + ${t} + "]"`:(0,C._)`"['" + ${t} + "']"`:n?(0,C._)`"/" + ${t}`:(0,C._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,C.getProperty)(t).toString():"/"+An(t)}N.getErrorPath=fu;function Jo(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}N.checkStrictMode=Jo});var Ie=g(Dn=>{"use strict";u();Object.defineProperty(Dn,"__esModule",{value:!0});var H=b(),hu={data:new H.Name("data"),valCxt:new H.Name("valCxt"),instancePath:new H.Name("instancePath"),parentData:new H.Name("parentData"),parentDataProperty:new H.Name("parentDataProperty"),rootData:new H.Name("rootData"),dynamicAnchors:new H.Name("dynamicAnchors"),vErrors:new H.Name("vErrors"),errors:new H.Name("errors"),this:new H.Name("this"),self:new H.Name("self"),scope:new H.Name("scope"),json:new H.Name("json"),jsonPos:new H.Name("jsonPos"),jsonLen:new H.Name("jsonLen"),jsonPart:new H.Name("jsonPart")};Dn.default=hu});var Dt=g(W=>{"use strict";u();Object.defineProperty(W,"__esModule",{value:!0});W.extendErrors=W.resetErrorsCount=W.reportExtraError=W.reportError=W.keyword$DataError=W.keywordError=void 0;var R=b(),vr=k(),Y=Ie();W.keywordError={message:({keyword:t})=>(0,R.str)`must pass "${t}" keyword validation`};W.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,R.str)`"${t}" keyword must be ${e} ($data)`:(0,R.str)`"${t}" keyword is invalid ($data)`};function pu(t,e=W.keywordError,r,n){let{it:s}=t,{gen:o,compositeRule:i,allErrors:a}=s,c=Xo(t,e,r);n??(i||a)?Yo(o,c):Bo(s,(0,R._)`[${c}]`)}W.reportError=pu;function mu(t,e=W.keywordError,r){let{it:n}=t,{gen:s,compositeRule:o,allErrors:i}=n,a=Xo(t,e,r);Yo(s,a),o||i||Bo(n,Y.default.vErrors)}W.reportExtraError=mu;function yu(t,e){t.assign(Y.default.errors,e),t.if((0,R._)`${Y.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,R._)`${Y.default.vErrors}.length`,e),()=>t.assign(Y.default.vErrors,null)))}W.resetErrorsCount=yu;function _u({gen:t,keyword:e,schemaValue:r,data:n,errsCount:s,it:o}){if(s===void 0)throw new Error("ajv implementation error");let i=t.name("err");t.forRange("i",s,Y.default.errors,a=>{t.const(i,(0,R._)`${Y.default.vErrors}[${a}]`),t.if((0,R._)`${i}.instancePath === undefined`,()=>t.assign((0,R._)`${i}.instancePath`,(0,R.strConcat)(Y.default.instancePath,o.errorPath))),t.assign((0,R._)`${i}.schemaPath`,(0,R.str)`${o.errSchemaPath}/${e}`),o.opts.verbose&&(t.assign((0,R._)`${i}.schema`,r),t.assign((0,R._)`${i}.data`,n))})}W.extendErrors=_u;function Yo(t,e){let r=t.const("err",e);t.if((0,R._)`${Y.default.vErrors} === null`,()=>t.assign(Y.default.vErrors,(0,R._)`[${r}]`),(0,R._)`${Y.default.vErrors}.push(${r})`),t.code((0,R._)`${Y.default.errors}++`)}function Bo(t,e){let{gen:r,validateName:n,schemaEnv:s}=t;s.$async?r.throw((0,R._)`new ${t.ValidationError}(${e})`):(r.assign((0,R._)`${n}.errors`,e),r.return(!1))}var Je={keyword:new R.Name("keyword"),schemaPath:new R.Name("schemaPath"),params:new R.Name("params"),propertyName:new R.Name("propertyName"),message:new R.Name("message"),schema:new R.Name("schema"),parentSchema:new R.Name("parentSchema")};function Xo(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,R._)`{}`:gu(t,e,r)}function gu(t,e,r={}){let{gen:n,it:s}=t,o=[$u(s,r),vu(t,r)];return wu(t,e,o),n.object(...o)}function $u({errorPath:t},{instancePath:e}){let r=e?(0,R.str)`${t}${(0,vr.getErrorPath)(e,vr.Type.Str)}`:t;return[Y.default.instancePath,(0,R.strConcat)(Y.default.instancePath,r)]}function vu({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let s=n?e:(0,R.str)`${e}/${t}`;return r&&(s=(0,R.str)`${s}${(0,vr.getErrorPath)(r,vr.Type.Str)}`),[Je.schemaPath,s]}function wu(t,{params:e,message:r},n){let{keyword:s,data:o,schemaValue:i,it:a}=t,{opts:c,propertyName:l,topSchemaRef:d,schemaPath:f}=a;n.push([Je.keyword,s],[Je.params,typeof e=="function"?e(t):e||(0,R._)`{}`]),c.messages&&n.push([Je.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([Je.schema,i],[Je.parentSchema,(0,R._)`${d}${f}`],[Y.default.data,o]),l&&n.push([Je.propertyName,l])}});var Qo=g(it=>{"use strict";u();Object.defineProperty(it,"__esModule",{value:!0});it.boolOrEmptySchema=it.topBoolOrEmptySchema=void 0;var Eu=Dt(),Su=b(),bu=Ie(),Pu={message:"boolean schema is false"};function Nu(t){let{gen:e,schema:r,validateName:n}=t;r===!1?Zo(t,!1):typeof r=="object"&&r.$async===!0?e.return(bu.default.data):(e.assign((0,Su._)`${n}.errors`,null),e.return(!0))}it.topBoolOrEmptySchema=Nu;function Iu(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),Zo(t)):r.var(e,!0)}it.boolOrEmptySchema=Iu;function Zo(t,e){let{gen:r,data:n}=t,s={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,Eu.reportError)(s,Pu,void 0,e)}});var Mn=g(at=>{"use strict";u();Object.defineProperty(at,"__esModule",{value:!0});at.getRules=at.isJSONType=void 0;var Ou=["string","number","integer","boolean","null","object","array"],Tu=new Set(Ou);function ku(t){return typeof t=="string"&&Tu.has(t)}at.isJSONType=ku;function Ru(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}at.getRules=Ru});var xn=g(Re=>{"use strict";u();Object.defineProperty(Re,"__esModule",{value:!0});Re.shouldUseRule=Re.shouldUseGroup=Re.schemaHasRulesForType=void 0;function ju({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&ei(t,n)}Re.schemaHasRulesForType=ju;function ei(t,e){return e.rules.some(r=>ti(t,r))}Re.shouldUseGroup=ei;function ti(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Re.shouldUseRule=ti});var Mt=g(J=>{"use strict";u();Object.defineProperty(J,"__esModule",{value:!0});J.reportTypeError=J.checkDataTypes=J.checkDataType=J.coerceAndCheckDataType=J.getJSONTypes=J.getSchemaTypes=J.DataType=void 0;var qu=Mn(),Au=xn(),Cu=Dt(),S=b(),ri=k(),ct;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(ct||(J.DataType=ct={}));function Du(t){let e=ni(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}J.getSchemaTypes=Du;function ni(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(qu.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}J.getJSONTypes=ni;function Mu(t,e){let{gen:r,data:n,opts:s}=t,o=xu(e,s.coerceTypes),i=e.length>0&&!(o.length===0&&e.length===1&&(0,Au.schemaHasRulesForType)(t,e[0]));if(i){let a=Fn(e,n,s.strictNumbers,ct.Wrong);r.if(a,()=>{o.length?zu(t,e,o):Vn(t)})}return i}J.coerceAndCheckDataType=Mu;var si=new Set(["string","number","integer","boolean","null"]);function xu(t,e){return e?t.filter(r=>si.has(r)||e==="array"&&r==="array"):[]}function zu(t,e,r){let{gen:n,data:s,opts:o}=t,i=n.let("dataType",(0,S._)`typeof ${s}`),a=n.let("coerced",(0,S._)`undefined`);o.coerceTypes==="array"&&n.if((0,S._)`${i} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,(0,S._)`${s}[0]`).assign(i,(0,S._)`typeof ${s}`).if(Fn(e,s,o.strictNumbers),()=>n.assign(a,s))),n.if((0,S._)`${a} !== undefined`);for(let l of r)(si.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Vn(t),n.endIf(),n.if((0,S._)`${a} !== undefined`,()=>{n.assign(s,a),Fu(t,a)});function c(l){switch(l){case"string":n.elseIf((0,S._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,S._)`"" + ${s}`).elseIf((0,S._)`${s} === null`).assign(a,(0,S._)`""`);return;case"number":n.elseIf((0,S._)`${i} == "boolean" || ${s} === null
3
3
  || (${i} == "string" && ${s} && ${s} == +${s})`).assign(a,(0,S._)`+${s}`);return;case"integer":n.elseIf((0,S._)`${i} === "boolean" || ${s} === null
4
4
  || (${i} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(a,(0,S._)`+${s}`);return;case"boolean":n.elseIf((0,S._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(a,!1).elseIf((0,S._)`${s} === "true" || ${s} === 1`).assign(a,!0);return;case"null":n.elseIf((0,S._)`${s} === "" || ${s} === 0 || ${s} === false`),n.assign(a,null);return;case"array":n.elseIf((0,S._)`${i} === "string" || ${i} === "number"
@@ -1,4 +1,4 @@
1
- import{k as P,t as F}from"./chunk-JAY7AGAG.js";import{a as N}from"./chunk-Q7BOSHWX.js";import{a as T}from"./chunk-DH5E6NM3.js";import{I as H,K as q,k as $,pa as d,ra as h}from"./chunk-3E3MCY5O.js";import{a as x}from"./chunk-TQ7MHGY4.js";import{B as I,C as L,T as v}from"./chunk-RCYQPOJW.js";import{i as l}from"./chunk-ZZ7SOJHH.js";import{Cb as C,Eb as U,Nb as c}from"./chunk-3F42A3XV.js";import{u as O}from"./chunk-2R2PKQQV.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function D(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e.replaceTemplates??[]))t.append(`replace_templates[${r}]`,o);for(let[r,o]of Object.entries(e.replaceExtensionTemplates??[])){let n=r.split("/")[0];t.append(`replace_extension_templates[${n}][${r}]`,o)}return t.append("_method",e.method),t}function w(){return{"User-Agent":`Shopify CLI; v=${x}`}}function k(e){return delete e.cookie,delete e.authorization,e}p();function S(e){let t={};return e.split(";").forEach(r=>{let o=r.match(/(.*?)=(.*)$/)??[],n=o[1]?.trim(),s=o[2]?.trim()??"";n&&(t[n]=s)}),t}function E(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var y=class extends l{};async function Re(e){return F(e)}async function be(e,t,r){let o=M(t),n=new URLSearchParams;n.append("form_type","storefront_password"),n.append("utf8","\u2713"),n.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let s={"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded",...r},a=await $(`${o}/password`,{headers:s,body:n.toString(),method:"POST",redirect:"manual"});if(a.status===429)throw d(new l(`Too many incorrect password attempts. Please try again after ${a.headers.get("retry-after")} seconds.`));return B(a,o)}async function j(e,t,r,o,n={}){let s={},a=await G(e,r,n),i=M(t);if(s._shopify_essential=a,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return s;let u=await ee(a,e,i,o,n);return{...s,...u}}async function G(e,t,r,o=1){let n=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),s=`${e}?${n}`;h("theme-service:storefront-session:get-session-essential-cookie");let a={...r,...w()},i=await $(s,{method:"HEAD",redirect:"manual",headers:a}),u=i.headers.raw()["set-cookie"]??[],f=_(u,"_shopify_essential");if(!f){if(c(`Failed to obtain _shopify_essential cookie.
1
+ import{k as P,t as F}from"./chunk-XBCFYD3T.js";import{a as N}from"./chunk-Q7BOSHWX.js";import{a as T}from"./chunk-QKSN6ZYW.js";import{I as H,K as q,k as $,pa as d,ra as h}from"./chunk-OSGXBBUJ.js";import{a as x}from"./chunk-DPGUL2TW.js";import{B as I,C as L,T as v}from"./chunk-IN634BRF.js";import{i as l}from"./chunk-VDE7IIYQ.js";import{Cb as C,Eb as U,Nb as c}from"./chunk-UYWRJHAJ.js";import{u as O}from"./chunk-FKGN6F3F.js";import{g as p}from"./chunk-VKWPEFWQ.js";p();p();function D(e){let t=new URLSearchParams;for(let[r,o]of Object.entries(e.replaceTemplates??[]))t.append(`replace_templates[${r}]`,o);for(let[r,o]of Object.entries(e.replaceExtensionTemplates??[])){let n=r.split("/")[0];t.append(`replace_extension_templates[${n}][${r}]`,o)}return t.append("_method",e.method),t}function w(){return{"User-Agent":`Shopify CLI; v=${x}`}}function k(e){return delete e.cookie,delete e.authorization,e}p();function S(e){let t={};return e.split(";").forEach(r=>{let o=r.match(/(.*?)=(.*)$/)??[],n=o[1]?.trim(),s=o[2]?.trim()??"";n&&(t[n]=s)}),t}function E(e){return Object.entries(e).map(([t,r])=>`${t}=${r}`).join("; ")}var y=class extends l{};async function Re(e){return F(e)}async function be(e,t,r){let o=M(t),n=new URLSearchParams;n.append("form_type","storefront_password"),n.append("utf8","\u2713"),n.append("password",e??""),h("theme-service:storefront-session:check-storefront-password");let s={"cache-control":"no-cache","content-type":"application/x-www-form-urlencoded",...r},a=await $(`${o}/password`,{headers:s,body:n.toString(),method:"POST",redirect:"manual"});if(a.status===429)throw d(new l(`Too many incorrect password attempts. Please try again after ${a.headers.get("retry-after")} seconds.`));return B(a,o)}async function j(e,t,r,o,n={}){let s={},a=await G(e,r,n),i=M(t);if(s._shopify_essential=a,h(`theme-service:storefront-session:is-password-protected:${!!o}`),!o)return s;let u=await ee(a,e,i,o,n);return{...s,...u}}async function G(e,t,r,o=1){let n=new URLSearchParams({preview_theme_id:t,_fd:"0",pb:"0"}),s=`${e}?${n}`;h("theme-service:storefront-session:get-session-essential-cookie");let a={...r,...w()},i=await $(s,{method:"HEAD",redirect:"manual",headers:a}),u=i.headers.raw()["set-cookie"]??[],f=_(u,"_shopify_essential");if(!f){if(c(`Failed to obtain _shopify_essential cookie.
2
2
 
3
3
  -Request ID: ${i.headers.get("x-request-id")??"unknown"}
4
4
 
@@ -1 +1 @@
1
- import{a as p}from"./chunk-3NRGGEGU.js";import{a as r,b as c}from"./chunk-FU4UVINZ.js";import{d as s}from"./chunk-UMSO6MOI.js";import{a}from"./chunk-KOYBR5MV.js";import{Ha as n}from"./chunk-PG6XEOYF.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class d extends a{static summary="Reverses app subscription migrations that are still scheduled.";static descriptionWithMarkdown="Reverses scheduled app subscription migrations that have not migrated yet.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV header: `shop_id`.\n- Example row: `123456789`.\n\nThe CSV can contain only the `shop_id` header, or it can reuse the complete CSV supplied to `schedule`; schedule-only columns are ignored.\n\nUnscheduling is not a rollback after a subscription has migrated. The command validates the entire CSV before sending any mutation. Use `--force` to skip confirmation and immediately submit every valid row.\n\nOperations are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...s};async run(){let{flags:t}=await this.parse(d),{app:m,remoteApp:u}=await n({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),h=await p({action:"unschedule",input:t.input??"-",clientId:u.apiKey,skipConfirmation:t.force,watch:t.watch,...t.watch&&!t.json?{onSubmissionAccepted:r}:{}}),i=c(h,{json:t.json,watch:t.watch});return i!==0&&(process.exitCode=i),{app:m}}};export{e as a};
1
+ import{a as p}from"./chunk-5LONOHNN.js";import{a as r,b as c}from"./chunk-WUGFTI5M.js";import{d as s}from"./chunk-IH2CB73H.js";import{a}from"./chunk-3B3CJS5I.js";import{Ha as n}from"./chunk-KEI3OJVP.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var e=class d extends a{static summary="Reverses app subscription migrations that are still scheduled.";static descriptionWithMarkdown="Reverses scheduled app subscription migrations that have not migrated yet.\n\nWhen `--input` is omitted, the command reads CSV data from stdin. Use `--input <path>` to read from a file. `--input -` is also supported as an explicit stdin path.\n\n- Required CSV header: `shop_id`.\n- Example row: `123456789`.\n\nThe CSV can contain only the `shop_id` header, or it can reuse the complete CSV supplied to `schedule`; schedule-only columns are ignored.\n\nUnscheduling is not a rollback after a subscription has migrated. The command validates the entire CSV before sending any mutation. Use `--force` to skip confirmation and immediately submit every valid row.\n\nOperations are submitted in batches of 250 shops. Preserve every operation GID printed by the command so you can check or cancel the submitted operations. With `--watch`, human-readable output shows accepted identifiers before polling begins, then displays operation progress and the final outcome. With `--json --watch`, the command outputs one structured JSON document after every operation reaches a terminal status.\n\nRun the command from an app project. By default, it uses the Client ID from the active app configuration. Use `--path` to select an app directory or `--config` to select a configuration. Pass `--client-id` to select a different app within the project. Use `--reset` to relink the app.";static description=this.descriptionWithoutMarkdown();static examples=["<%= config.bin %> <%= command.id %> --input migrations.csv --force","cat migrations.csv | <%= config.bin %> <%= command.id %> --force","<%= config.bin %> <%= command.id %> --input migrations.csv --path ../my-app --config staging --force --json","<%= config.bin %> <%= command.id %> --input migrations.csv --client-id <client-id> --force","<%= config.bin %> <%= command.id %> --input - --force --watch"];static flags={...s};async run(){let{flags:t}=await this.parse(d),{app:m,remoteApp:u}=await n({directory:t.path,clientId:t["client-id"],forceRelink:t.reset,userProvidedConfigName:t.config}),h=await p({action:"unschedule",input:t.input??"-",clientId:u.apiKey,skipConfirmation:t.force,watch:t.watch,...t.watch&&!t.json?{onSubmissionAccepted:r}:{}}),i=c(h,{json:t.json,watch:t.watch});return i!==0&&(process.exitCode=i),{app:m}}};export{e as a};
@@ -1 +1 @@
1
- import{b as a,g as c,i as p,j as f}from"./chunk-JAY7AGAG.js";import{l as h}from"./chunk-ZZ7SOJHH.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();i();function d(n){let e=/[^\p{Letter}\p{Number}\p{Mark}-]/gu;return n.replace(e,"-")}import{randomBytes as l}from"crypto";import{hostname as g}from"os";var T=50;function m(n){let e=g().split(".")[0],r=l(3).toString("hex"),t=`${n} ()`,s=T-t.length-r.length-1,o=d(`${r}-${e.substring(0,s)}`);return`${n} (${o})`}var u=class{adminSession;themeId;constructor(e){this.adminSession=e}async findOrCreate(e,r){let t=await this.fetch(e,r);return t?this.setTheme(t.id.toString()):t=await this.create(r,e),t}async fetch(e,r){if(!this.themeId&&!e)return;let t=e&&r===a?await p(e,this.adminSession):await c(parseInt(this.themeId,10),this.adminSession);return t||this.removeTheme(),t}generateThemeName(e){return m(e)}async create(e,r){let t=r??m(this.context),s=e??a,o=await f({name:t,role:s},this.adminSession);if(!o)throw new h(`Could not create theme with name "${t}" and role "${s}"`);return this.setTheme(o.id.toString()),o}};export{u as a};
1
+ import{b as a,g as c,i as p,j as f}from"./chunk-XBCFYD3T.js";import{l as h}from"./chunk-VDE7IIYQ.js";import{g as i}from"./chunk-VKWPEFWQ.js";i();i();i();function d(n){let e=/[^\p{Letter}\p{Number}\p{Mark}-]/gu;return n.replace(e,"-")}import{randomBytes as l}from"crypto";import{hostname as g}from"os";var T=50;function m(n){let e=g().split(".")[0],r=l(3).toString("hex"),t=`${n} ()`,s=T-t.length-r.length-1,o=d(`${r}-${e.substring(0,s)}`);return`${n} (${o})`}var u=class{adminSession;themeId;constructor(e){this.adminSession=e}async findOrCreate(e,r){let t=await this.fetch(e,r);return t?this.setTheme(t.id.toString()):t=await this.create(r,e),t}async fetch(e,r){if(!this.themeId&&!e)return;let t=e&&r===a?await p(e,this.adminSession):await c(parseInt(this.themeId,10),this.adminSession);return t||this.removeTheme(),t}generateThemeName(e){return m(e)}async create(e,r){let t=r??m(this.context),s=e??a,o=await f({name:t,role:s},this.adminSession);if(!o)throw new h(`Could not create theme with name "${t}" and role "${s}"`);return this.setTheme(o.id.toString()),o}};export{u as a};
@@ -1 +1 @@
1
- import{a as t}from"./chunk-525BMYNR.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function r(d){await t.addPublicMetadata(()=>d)}export{r as a};
1
+ import{a as t}from"./chunk-H4PXFC7T.js";import{g as a}from"./chunk-VKWPEFWQ.js";a();async function r(d){await t.addPublicMetadata(()=>d)}export{r as a};
@@ -1,2 +1,2 @@
1
- import{A as x,a as oe,b as ne,c as M,d as ie,e as ae,g as L,i as P,j as le,k as ce,m as ue,n as pe,o as me,r as fe,s as de,t as ge,u as Ee,v,w as he,x as ye,y as Te,z as A}from"./chunk-BLBJT7BM.js";import{a as se}from"./chunk-R43LXE66.js";import{a as re}from"./chunk-KOYBR5MV.js";import{a as K}from"./chunk-VXGXK66W.js";import{Ha as te,I as z,aa as Z,ca as ee,l as X}from"./chunk-PG6XEOYF.js";import{sa as W}from"./chunk-PQCALXSD.js";import{b as Q,c as Y}from"./chunk-Q4TZD2M6.js";import{u as $}from"./chunk-3E3MCY5O.js";import{d as N,e as m,f as o,l as H,y as G}from"./chunk-RCYQPOJW.js";import{i as C}from"./chunk-ZZ7SOJHH.js";import{Ib as F,Kb as I,ga as V}from"./chunk-3F42A3XV.js";import{b as Ce}from"./chunk-I3J63RFV.js";import{j}from"./chunk-3VYOLEQE.js";import{e as k,g}from"./chunk-VKWPEFWQ.js";g();g();g();g();g();g();var _=k(N(),1);function be(t){let s=(0,_.useRef)(t);(0,_.useEffect)(()=>{s.current=t},[t]),(0,_.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:l})=>{l&&(n=setTimeout(i,l))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}g();var U=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:a})=>{let l=await i.appLogs({jwtToken:t,cursor:s},a),{errors:f,status:u}=l;if(u!==200){if(u===401||u===429||u>=500)return{errors:f.map(y=>({status:u,message:y}))};throw new C(`${f.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=l,E=_e(c,n);return{cursor:r,appLogs:E}};function _e(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let a=s.status===void 0?!0:i.status===s.status,l=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return a&&l})),n}var R=k(N(),1);async function Ne({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:a,setErrors:l,setAppLogOutputs:f,resubscribeCallback:u,developerPlatformClient:r}){let c=t,E=L,y=s,b=await U({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:a}),p="not_attempted",w=b;if(w.errors){let h=await v({response:w,onThrottle:d=>{l(["Request throttled while polling app logs.",`Retrying in ${d/1e3}s`])},onUnknownError:d=>{l(["Error while polling app logs",`Retrying in ${d/1e3}s`])},onResubscribe:()=>u()});p=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),E=h.retryIntervalMs}else{l(d=>d.length?[]:d);let{appLogs:h}=b;if(y=b.cursor,h)for(let d of h){let T,S,q,J=i.get(d.shop_id.toString());if(J===void 0)continue;switch(d.log_type){case ce:T=fe(d.payload),S=`export "${T.export}" executed in ${(T.fuelConsumed/le).toFixed(4)}M instructions`;break;case ue:T=de(d.payload),S="network access response retrieved from cache";break;case pe:T=ge(d.payload),S="network access request executing in background";break;case me:T=Ee(d.payload),q=T.connectTimeMs&&T.writeReadTimeMs?T.connectTimeMs+T.writeReadTimeMs:null,S=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let Se={status:d.status==="success"?"Success":"Failure",source:d.source,storeName:J,description:S,logTimestamp:V(d.log_timestamp)};T&&f(ke=>[...ke,{appLog:T,prefix:Se}])}}return{nextJwtToken:c,retryIntervalMs:E,cursor:y??s,resubscribeResult:p}}function we({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l}){let[f,u]=(0,R.useState)([]),[r,c]=(0,R.useState)([]),E=(0,R.useRef)(t),y=(0,R.useRef)(0),b=(0,R.useRef)(""),p=(0,R.useRef)(0),w=(0,R.useCallback)(async()=>{let h=await Ne({jwtToken:E.current,cursor:b.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:a,organizationId:l});if(h.resubscribeResult==="failed"){if(p.current+=1,p.current>=P)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(p.current=0);return E.current=h.nextJwtToken,b.current=h.cursor,y.current=h.retryIntervalMs,{retryIntervalMs:y.current}},[]);return be(w),{appLogOutputs:r,errors:f}}var e=k(N(),1);var Fe=t=>{switch(t){case M.NoCachedResponse:return"No cached response available";case M.CacheAboutToExpire:return"Cache is about to expire";case M.Unknown:return"Unknown reason"}},Re=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l})=>{let{appLogOutputs:f,errors:u}=we({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l});return e.default.createElement(e.default.Fragment,null,f.map(({appLog:r,prefix:c},E)=>e.default.createElement(m,{flexDirection:"column",key:E},e.default.createElement(m,{flexDirection:"row",gap:1},e.default.createElement(o,null,e.default.createElement(o,{color:"green"},c.logTimestamp," "),e.default.createElement(o,{color:"blueBright"},`${c.storeName.split(".")[0]}`," "),e.default.createElement(o,{color:"blueBright"},c.source," "),e.default.createElement(o,{color:c.status==="Success"?"green":"red"},c.status," "),e.default.createElement(o,null,c.description))),e.default.createElement(m,{flexDirection:"column",marginLeft:4},r instanceof oe&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(m,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(m,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.inputQueryVariablesMetafieldValue)??e.default.createElement(o,{color:"red"},"Metafield is not set")))):null,r.input?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ne&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Cache write time: ",new Date(r.cacheEntryEpochMs).toISOString()),e.default.createElement(o,null,"Cache TTL: ",r.cacheTtlMs/1e3," s"),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))),r instanceof ie&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Fe(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof ae&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Attempt: ",r.attempt),r.connectTimeMs?e.default.createElement(o,null,"Connect time: ",r.connectTimeMs," ms"):null,r.writeReadTimeMs?e.default.createElement(o,null,"Write read time: ",r.writeReadTimeMs," ms"):null,e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),r.httpResponse?e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))):null,r.error?e.default.createElement(o,null,"Error: ",r.error):null)))),u.length>0&&e.default.createElement(m,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(m,{key:c},e.default.createElement(o,{color:"red"},r)))))};var xe=k(N(),1);async function Ie({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:a}){let l=async()=>A(n,s,a);return H(xe.default.createElement(Re,{pollOptions:t,resubscribeCallback:l,storeNameById:i,developerPlatformClient:n,organizationId:a}))}g();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:a,consecutiveResubscribeFailures:l=0}){let f=await U({pollOptions:t,developerPlatformClient:n,organizationId:a}),u=L,r=t.jwtToken,c=l,E=f;if(E.errors){let p=await v({response:E,onThrottle:w=>{I(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{I(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,a)});if(p.resubscribeResult==="failed"){if(c+=1,c>=P){I(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else p.resubscribeResult==="succeeded"&&(c=0);p.nextJwtToken&&(r=p.nextJwtToken),u=p.retryIntervalMs}else c=0;let{cursor:y,appLogs:b}=f;b&&b.forEach(p=>{let w=i.get(p.shop_id?.toString());w!==void 0&&F(ye({appLog:p,appLogPayload:Te(p.payload,p.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:y??t.cursor,filters:t.filters},storeNameById:i,organizationId:a,consecutiveResubscribeFailures:c}).catch(p=>{throw p})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,a=await Me(t),l=he(s);if(l.length===0)throw new C("This app has no log sources. Learn more about app logs at https://shopify.dev/docs/api/shopify-cli/app/app-logs");if(t.sources){let y=t.sources.filter(b=>!l.includes(b));if(y.length)throw new C(`Invalid sources: ${y.join(", ")}. Valid sources are: ${l.join(", ")}`)}let f={shopIds:a.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,f,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"&&F(JSON.stringify({subscribedToStores:t.storeFqdns})),I(`Waiting for app logs...
1
+ import{A as x,a as oe,b as ne,c as M,d as ie,e as ae,g as L,i as P,j as le,k as ce,m as ue,n as pe,o as me,r as fe,s as de,t as ge,u as Ee,v,w as he,x as ye,y as Te,z as A}from"./chunk-A36J5FWZ.js";import{a as se}from"./chunk-MNHZWEXI.js";import{a as re}from"./chunk-3B3CJS5I.js";import{a as K}from"./chunk-LOTMFUSV.js";import{Ha as te,I as z,aa as Z,ca as ee,l as X}from"./chunk-KEI3OJVP.js";import{sa as W}from"./chunk-X5VBX2QA.js";import{b as Q,c as Y}from"./chunk-EA5LKCRF.js";import{u as $}from"./chunk-OSGXBBUJ.js";import{d as N,e as m,f as o,l as H,y as G}from"./chunk-IN634BRF.js";import{i as C}from"./chunk-VDE7IIYQ.js";import{Ib as F,Kb as I,ga as V}from"./chunk-UYWRJHAJ.js";import{b as Ce}from"./chunk-I3J63RFV.js";import{j}from"./chunk-3VYOLEQE.js";import{e as k,g}from"./chunk-VKWPEFWQ.js";g();g();g();g();g();g();var _=k(N(),1);function be(t){let s=(0,_.useRef)(t);(0,_.useEffect)(()=>{s.current=t},[t]),(0,_.useEffect)(()=>{let n;function i(){s.current().then(({retryIntervalMs:l})=>{l&&(n=setTimeout(i,l))}).catch(()=>{})}return n=setTimeout(i,0),()=>n&&clearTimeout(n)},[])}g();var U=async({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:i,organizationId:a})=>{let l=await i.appLogs({jwtToken:t,cursor:s},a),{errors:f,status:u}=l;if(u!==200){if(u===401||u===429||u>=500)return{errors:f.map(y=>({status:u,message:y}))};throw new C(`${f.join(", ")} while fetching app logs`)}let{cursor:r,app_logs:c}=l,E=_e(c,n);return{cursor:r,appLogs:E}};function _e(t,s){let n=t;return(s.status!==void 0||s.sources!==void 0)&&(n=n.filter(i=>{let a=s.status===void 0?!0:i.status===s.status,l=s.sources===void 0?!0:s.sources.includes(`${i.source_namespace}.${i.source}`);return a&&l})),n}var R=k(N(),1);async function Ne({jwtToken:t,cursor:s,filters:n,storeNameById:i,organizationId:a,setErrors:l,setAppLogOutputs:f,resubscribeCallback:u,developerPlatformClient:r}){let c=t,E=L,y=s,b=await U({pollOptions:{jwtToken:t,cursor:s,filters:n},developerPlatformClient:r,organizationId:a}),p="not_attempted",w=b;if(w.errors){let h=await v({response:w,onThrottle:d=>{l(["Request throttled while polling app logs.",`Retrying in ${d/1e3}s`])},onUnknownError:d=>{l(["Error while polling app logs",`Retrying in ${d/1e3}s`])},onResubscribe:()=>u()});p=h.resubscribeResult,h.nextJwtToken&&(c=h.nextJwtToken),E=h.retryIntervalMs}else{l(d=>d.length?[]:d);let{appLogs:h}=b;if(y=b.cursor,h)for(let d of h){let T,S,q,J=i.get(d.shop_id.toString());if(J===void 0)continue;switch(d.log_type){case ce:T=fe(d.payload),S=`export "${T.export}" executed in ${(T.fuelConsumed/le).toFixed(4)}M instructions`;break;case ue:T=de(d.payload),S="network access response retrieved from cache";break;case pe:T=ge(d.payload),S="network access request executing in background";break;case me:T=Ee(d.payload),q=T.connectTimeMs&&T.writeReadTimeMs?T.connectTimeMs+T.writeReadTimeMs:null,S=`network access request executed${q?` in ${q} ms`:""}`;break;default:continue}let Se={status:d.status==="success"?"Success":"Failure",source:d.source,storeName:J,description:S,logTimestamp:V(d.log_timestamp)};T&&f(ke=>[...ke,{appLog:T,prefix:Se}])}}return{nextJwtToken:c,retryIntervalMs:E,cursor:y??s,resubscribeResult:p}}function we({initialJwt:t,filters:s,resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l}){let[f,u]=(0,R.useState)([]),[r,c]=(0,R.useState)([]),E=(0,R.useRef)(t),y=(0,R.useRef)(0),b=(0,R.useRef)(""),p=(0,R.useRef)(0),w=(0,R.useCallback)(async()=>{let h=await Ne({jwtToken:E.current,cursor:b.current,filters:s,storeNameById:i,setErrors:u,setAppLogOutputs:c,resubscribeCallback:n,developerPlatformClient:a,organizationId:l});if(h.resubscribeResult==="failed"){if(p.current+=1,p.current>=P)return u(["App log streaming session has expired. Please restart your dev session."]),{retryIntervalMs:0}}else h.resubscribeResult==="succeeded"&&(p.current=0);return E.current=h.nextJwtToken,b.current=h.cursor,y.current=h.retryIntervalMs,{retryIntervalMs:y.current}},[]);return be(w),{appLogOutputs:r,errors:f}}var e=k(N(),1);var Fe=t=>{switch(t){case M.NoCachedResponse:return"No cached response available";case M.CacheAboutToExpire:return"Cache is about to expire";case M.Unknown:return"Unknown reason"}},Re=({pollOptions:{jwtToken:t,filters:s},resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l})=>{let{appLogOutputs:f,errors:u}=we({filters:s,initialJwt:t,resubscribeCallback:n,storeNameById:i,developerPlatformClient:a,organizationId:l});return e.default.createElement(e.default.Fragment,null,f.map(({appLog:r,prefix:c},E)=>e.default.createElement(m,{flexDirection:"column",key:E},e.default.createElement(m,{flexDirection:"row",gap:1},e.default.createElement(o,null,e.default.createElement(o,{color:"green"},c.logTimestamp," "),e.default.createElement(o,{color:"blueBright"},`${c.storeName.split(".")[0]}`," "),e.default.createElement(o,{color:"blueBright"},c.source," "),e.default.createElement(o,{color:c.status==="Success"?"green":"red"},c.status," "),e.default.createElement(o,null,c.description))),e.default.createElement(m,{flexDirection:"column",marginLeft:4},r instanceof oe&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,r.logs),r.inputQueryVariablesMetafieldKey&&r.inputQueryVariablesMetafieldNamespace?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input Query Variables:"),e.default.createElement(m,{flexDirection:"row",marginLeft:1,marginTop:1},e.default.createElement(o,{dimColor:!0},"Namespace:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldNamespace)),e.default.createElement(m,{flexDirection:"row",marginLeft:1},e.default.createElement(o,{dimColor:!0},"Key:"),e.default.createElement(o,null," ",r.inputQueryVariablesMetafieldKey)),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.inputQueryVariablesMetafieldValue)??e.default.createElement(o,{color:"red"},"Metafield is not set")))):null,r.input?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Input ",e.default.createElement(o,{dimColor:!0},"(",r.inputBytes," bytes):")),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.input)))):null,r.output?e.default.createElement(m,{flexDirection:"column",marginTop:1},e.default.createElement(o,{bold:!0},"Output ",e.default.createElement(o,{dimColor:!0},"(",r.outputBytes," bytes):")),e.default.createElement(m,{marginLeft:1,marginTop:1},e.default.createElement(o,null,x(r.output)))):null),r instanceof ne&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Cache write time: ",new Date(r.cacheEntryEpochMs).toISOString()),e.default.createElement(o,null,"Cache TTL: ",r.cacheTtlMs/1e3," s"),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))),r instanceof ie&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Reason: ",Fe(r.reason)),e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest))),r instanceof ae&&e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"Attempt: ",r.attempt),r.connectTimeMs?e.default.createElement(o,null,"Connect time: ",r.connectTimeMs," ms"):null,r.writeReadTimeMs?e.default.createElement(o,null,"Write read time: ",r.writeReadTimeMs," ms"):null,e.default.createElement(o,null,"HTTP request:"),e.default.createElement(o,null,x(r.httpRequest)),r.httpResponse?e.default.createElement(m,{flexDirection:"column"},e.default.createElement(o,null,"HTTP response:"),e.default.createElement(o,null,x(r.httpResponse))):null,r.error?e.default.createElement(o,null,"Error: ",r.error):null)))),u.length>0&&e.default.createElement(m,{flexDirection:"column"},u.map((r,c)=>e.default.createElement(m,{key:c},e.default.createElement(o,{color:"red"},r)))))};var xe=k(N(),1);async function Ie({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:a}){let l=async()=>A(n,s,a);return H(xe.default.createElement(Re,{pollOptions:t,resubscribeCallback:l,storeNameById:i,developerPlatformClient:n,organizationId:a}))}g();async function D({pollOptions:t,options:{variables:s,developerPlatformClient:n},storeNameById:i,organizationId:a,consecutiveResubscribeFailures:l=0}){let f=await U({pollOptions:t,developerPlatformClient:n,organizationId:a}),u=L,r=t.jwtToken,c=l,E=f;if(E.errors){let p=await v({response:E,onThrottle:w=>{I(JSON.stringify({message:"Request throttled while polling app logs.",retry_in_ms:w}))},onUnknownError:w=>{I(JSON.stringify({message:"Error while polling app logs.",retry_in_ms:w}))},onResubscribe:()=>A(n,s,a)});if(p.resubscribeResult==="failed"){if(c+=1,c>=P){I(JSON.stringify({message:"App log streaming session has expired. Please restart your dev session."}));return}}else p.resubscribeResult==="succeeded"&&(c=0);p.nextJwtToken&&(r=p.nextJwtToken),u=p.retryIntervalMs}else c=0;let{cursor:y,appLogs:b}=f;b&&b.forEach(p=>{let w=i.get(p.shop_id?.toString());w!==void 0&&F(ye({appLog:p,appLogPayload:Te(p.payload,p.log_type),storeName:w,prettyPrint:!1}))}),setTimeout(()=>{D({options:{variables:s,developerPlatformClient:n},pollOptions:{jwtToken:r||t.jwtToken,cursor:y??t.cursor,filters:t.filters},storeNameById:i,organizationId:a,consecutiveResubscribeFailures:c}).catch(p=>{throw p})},u)}async function Ae(t){let{app:s,remoteApp:n,developerPlatformClient:i}=t,a=await Me(t),l=he(s);if(l.length===0)throw new C("This app has no log sources. Learn more about app logs at https://shopify.dev/docs/api/shopify-cli/app/app-logs");if(t.sources){let y=t.sources.filter(b=>!l.includes(b));if(y.length)throw new C(`Invalid sources: ${y.join(", ")}. Valid sources are: ${l.join(", ")}`)}let f={shopIds:a.storeIds.map(Number),apiKey:n.apiKey},u=await A(i,f,t.organization.id),r={status:t.status,sources:t.sources},c={jwtToken:u,filters:r};t.format==="json"&&F(JSON.stringify({subscribedToStores:t.storeFqdns})),I(`Waiting for app logs...
2
2
  `),await(t.format==="json"?D:Ie)({options:{variables:f,developerPlatformClient:i},pollOptions:c,storeNameById:a.storeNameById,organizationId:t.organization.id})}async function Me(t){let{app:s,remoteApp:n,developerPlatformClient:i,primaryStore:a,organization:l}=t,f=j(s.configPath);Le(n.title,a.shopDomain,t.storeFqdns,f,l.businessName);let u=new Map;return u.set(a.shopId,a.shopDomain),t.storeFqdns&&t.storeFqdns.length>1&&await Promise.all(t.storeFqdns?.slice(1).map(async c=>{let E=await W(l,c,i);u.set(E.shopId,c)})),{storeIds:Array.from(u.keys()),storeNameById:u}}function Le(t,s,n,i,a){let l=n&&n.length>0?n:[s],f=i?X(i):void 0;G({headline:i?`Using ${f} for default values:`:"Using these settings:",body:Z({appName:t,org:a,devStores:l,messages:[ee]})})}var O=k(Ce(),1);var B=class t extends re{static summary="Stream detailed logs for your Shopify app.";static descriptionWithMarkdown="\n Opens a real-time stream of detailed app logs from the selected app and store.\n Use the `--source` argument to limit output to a particular log source, such as a specific Shopify Function handle. Use the `shopify app logs sources` command to view a list of sources.\n Use the `--status` argument to filter on status, either `success` or `failure`.\n ```\n shopify app logs --status=success --source=extension.discount-function\n ```\n ";static description=this.descriptionForHelp();static flags={...Q,...K,...Y,store:O.Flags.string({char:"s",description:"Store URL. Must be an existing development or Shopify Plus sandbox store.",env:"SHOPIFY_FLAG_STORE",multiple:!0,parse:async s=>$(s)}),source:O.Flags.string({description:"Filters output to the specified log source.",env:"SHOPIFY_FLAG_SOURCE",multiple:!0}),status:O.Flags.string({description:"Filters output to the specified status (success or failure).",options:["success","failure"],env:"SHOPIFY_FLAG_STATUS"})};async run(){let{flags:s}=await this.parse(t);await z(s.path);let n=await te({directory:s.path,clientId:s["client-id"],forceRelink:s.reset,userProvidedConfigName:s.config}),i=await se({appContextResult:n,storeFqdn:s.store?.[0],forceReselectStore:s.reset}),a={...n,primaryStore:i,storeFqdns:s.store,sources:s.source,status:s.status,format:s.json?"json":"text"};return await Ae(a),{app:n.app}}};export{B as a};
@@ -1 +1 @@
1
- import{q as r}from"./chunk-PQCALXSD.js";import{d as t}from"./chunk-Q4TZD2M6.js";import{b as a}from"./chunk-EZ5F4ZFY.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var e=class extends a{static baseFlags={...a.baseFlags,...t};environmentsFilename(){return r.appEnvironments}};export{e as a};
1
+ import{q as r}from"./chunk-X5VBX2QA.js";import{d as t}from"./chunk-EA5LKCRF.js";import{b as a}from"./chunk-4Q5TSWQL.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var e=class extends a{static baseFlags={...a.baseFlags,...t};environmentsFilename(){return r.appEnvironments}};export{e as a};
@@ -1 +1 @@
1
- import{a as i}from"./chunk-4565O5TG.js";import{b as e}from"./chunk-EZ5F4ZFY.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class extends e{static description="View the UI kit components prompts";static hidden=!0;async run(){await i()}};export{t as a};
1
+ import{a as i}from"./chunk-2S7WRX2J.js";import{b as e}from"./chunk-4Q5TSWQL.js";import{g as o}from"./chunk-VKWPEFWQ.js";o();var t=class extends e{static description="View the UI kit components prompts";static hidden=!0;async run(){await i()}};export{t as a};
@@ -1 +1 @@
1
- import{n as A}from"./chunk-AKP4QAGL.js";import{a as P}from"./chunk-NDMISEDF.js";import{c as C}from"./chunk-2X3HYG4B.js";import{s as T}from"./chunk-JAY7AGAG.js";import{r as w}from"./chunk-TWS34WUT.js";import{a as D}from"./chunk-46U6C6C6.js";import{K as u}from"./chunk-3E3MCY5O.js";import{B as y,z as h}from"./chunk-RCYQPOJW.js";import{Nb as O,za as p}from"./chunk-3F42A3XV.js";import{d,q as m}from"./chunk-3VYOLEQE.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();async function q(e){P({verbose:e.verbose,noColor:e.noColor});let t=w({store:e.store}),o=await u(t,e.password);await R(o,{path:e.path??m(),force:e.force??!1,silent:e.silent??!1})}var E={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",variant:"PRODUCTVARIANT",shop:"SHOP"};async function R(e,t){let{force:o,path:i,silent:n}=t;if(!await A(i)&&(process.env.SHOPIFY_LANGUAGE_SERVER==="1"||!await C(o)))return;let f=[],r=[];for(let[a,s]of Object.entries(E))f.push(T(s,e).catch(c=>(r.push(s),[])).then(c=>({[a]:c})));let b=(await Promise.all(f)).reduce((a,s)=>({...a,...s}));if(r.length===Object.values(E).length){n||y({body:"Failed to fetch metafield definitions.",nextSteps:["Check your network connection and try again.","Ensure you have the permission to fetch metafield definitions."],reference:[{link:{label:"Metafield Definition API",url:"https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition"}}]});return}await S(i,b),r.length>0&&O(`Failed to fetch metafield definitions for the following owner types: ${r.join(", ")}`),n||h({body:"Metafield definitions have been successfully downloaded."})}async function S(e,t){let o=await D(e),i=d(o,"metafields.json"),n=JSON.stringify(t,null,2);p(i,n)}export{q as a};
1
+ import{n as A}from"./chunk-LIE6QSQ2.js";import{a as P}from"./chunk-7KVTQDRW.js";import{c as C}from"./chunk-DE5BUQL5.js";import{s as T}from"./chunk-XBCFYD3T.js";import{r as w}from"./chunk-4MUH4E2U.js";import{a as D}from"./chunk-4LTQEQ4O.js";import{K as u}from"./chunk-OSGXBBUJ.js";import{B as y,z as h}from"./chunk-IN634BRF.js";import{Nb as O,za as p}from"./chunk-UYWRJHAJ.js";import{d,q as m}from"./chunk-3VYOLEQE.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();async function q(e){P({verbose:e.verbose,noColor:e.noColor});let t=w({store:e.store}),o=await u(t,e.password);await R(o,{path:e.path??m(),force:e.force??!1,silent:e.silent??!1})}var E={article:"ARTICLE",blog:"BLOG",collection:"COLLECTION",company:"COMPANY",company_location:"COMPANY_LOCATION",location:"LOCATION",market:"MARKET",order:"ORDER",page:"PAGE",product:"PRODUCT",variant:"PRODUCTVARIANT",shop:"SHOP"};async function R(e,t){let{force:o,path:i,silent:n}=t;if(!await A(i)&&(process.env.SHOPIFY_LANGUAGE_SERVER==="1"||!await C(o)))return;let f=[],r=[];for(let[a,s]of Object.entries(E))f.push(T(s,e).catch(c=>(r.push(s),[])).then(c=>({[a]:c})));let b=(await Promise.all(f)).reduce((a,s)=>({...a,...s}));if(r.length===Object.values(E).length){n||y({body:"Failed to fetch metafield definitions.",nextSteps:["Check your network connection and try again.","Ensure you have the permission to fetch metafield definitions."],reference:[{link:{label:"Metafield Definition API",url:"https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinition"}}]});return}await S(i,b),r.length>0&&O(`Failed to fetch metafield definitions for the following owner types: ${r.join(", ")}`),n||h({body:"Metafield definitions have been successfully downloaded."})}async function S(e,t){let o=await D(e),i=d(o,"metafields.json"),n=JSON.stringify(t,null,2);p(i,n)}export{q as a};
@@ -1 +1 @@
1
- import{b as a}from"./chunk-UB2LAIXS.js";import{b as s}from"./chunk-EZ5F4ZFY.js";import{ya as i}from"./chunk-3E3MCY5O.js";import{b as m}from"./chunk-I3J63RFV.js";import{e as d,g as e}from"./chunk-VKWPEFWQ.js";e();var n=d(m(),1);var t=class c extends s{static description="List current notifications configured for the CLI.";static hidden=!0;static flags={"ignore-errors":n.Flags.boolean({hidden:!1,description:"Don't fail if an error occurs.",env:"SHOPIFY_FLAG_IGNORE_ERRORS"})};async run(){let{flags:f}=await this.parse(c);try{await a()}catch(r){let o="Error fetching notifications";if(r instanceof Error&&(o=o.concat(`: ${r.message}`)),await i(o,"expected_error"),!f["ignore-errors"])throw r}}};export{t as a};
1
+ import{b as a}from"./chunk-A6KNDSNT.js";import{b as s}from"./chunk-4Q5TSWQL.js";import{ya as i}from"./chunk-OSGXBBUJ.js";import{b as m}from"./chunk-I3J63RFV.js";import{e as d,g as e}from"./chunk-VKWPEFWQ.js";e();var n=d(m(),1);var t=class c extends s{static description="List current notifications configured for the CLI.";static hidden=!0;static flags={"ignore-errors":n.Flags.boolean({hidden:!1,description:"Don't fail if an error occurs.",env:"SHOPIFY_FLAG_IGNORE_ERRORS"})};async run(){let{flags:f}=await this.parse(c);try{await a()}catch(r){let o="Error fetching notifications";if(r instanceof Error&&(o=o.concat(`: ${r.message}`)),await i(o,"expected_error"),!f["ignore-errors"])throw r}}};export{t as a};
@@ -1,4 +1,4 @@
1
- import{b as m}from"./chunk-EZ5F4ZFY.js";import{G as f}from"./chunk-RCYQPOJW.js";import{Ib as c}from"./chunk-3F42A3XV.js";import{b as N}from"./chunk-I3J63RFV.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static description="View all the available command flags";static hidden=!0;static flags={csv:d.Flags.boolean({description:"Output as CSV",env:"SHOPIFY_FLAG_OUTPUT_CSV",default:!1})};async run(){let{flags:p}=await this.parse(h),s=[];for(let[t,a]of this.config.plugins)for(let o of a.commands){let l=await o.load(),n;a.name.startsWith("@shopify")?n=a.name.substring(9):n=a.name.startsWith("@oclif")?a.name.substring(7):a.name;let e=l.flags;if(e)for(let[u,r]of Object.entries(e))s.push({pluginName:n,command:o.id,flagName:`--${u}`,flagChar:r.char?`-${r.char}`:"",flagEnv:r.env})}if(p.csv){let t=["pluginName","command","flagName","flagChar","flagEnv"],a=`${t.join(",")}
1
+ import{b as m}from"./chunk-4Q5TSWQL.js";import{G as f}from"./chunk-IN634BRF.js";import{Ib as c}from"./chunk-UYWRJHAJ.js";import{b as N}from"./chunk-I3J63RFV.js";import{e as v,g}from"./chunk-VKWPEFWQ.js";g();var d=v(N(),1),i=class h extends m{static description="View all the available command flags";static hidden=!0;static flags={csv:d.Flags.boolean({description:"Output as CSV",env:"SHOPIFY_FLAG_OUTPUT_CSV",default:!1})};async run(){let{flags:p}=await this.parse(h),s=[];for(let[t,a]of this.config.plugins)for(let o of a.commands){let l=await o.load(),n;a.name.startsWith("@shopify")?n=a.name.substring(9):n=a.name.startsWith("@oclif")?a.name.substring(7):a.name;let e=l.flags;if(e)for(let[u,r]of Object.entries(e))s.push({pluginName:n,command:o.id,flagName:`--${u}`,flagChar:r.char?`-${r.char}`:"",flagEnv:r.env})}if(p.csv){let t=["pluginName","command","flagName","flagChar","flagEnv"],a=`${t.join(",")}
2
2
  `,o=s.map(n=>t.map(e=>n[e]).join(",")).join(`
3
3
  `),l=`${a}${o}
4
4
  `;c(l)}else f({rows:s,columns:{pluginName:{header:"plugin",color:"red"},command:{},flagName:{header:"long flag",color:"green"},flagChar:{header:"short flag",color:"green"},flagEnv:{header:"env variable",color:"blueBright"}}})}};export{i as a};
@@ -1,4 +1,4 @@
1
- import{c as J}from"./chunk-IOS4IDZ2.js";import{b as k}from"./chunk-G627WGIC.js";import{a as re}from"./chunk-TEASB2WU.js";import{a as ae}from"./chunk-KOYBR5MV.js";import{a as z}from"./chunk-VXGXK66W.js";import{Ha as ne,I as ee,K as te,d as Q,e as Z}from"./chunk-PG6XEOYF.js";import{q as F,s as X,t as K}from"./chunk-PQCALXSD.js";import{a as T}from"./chunk-525BMYNR.js";import{b as H,f as I}from"./chunk-Q4TZD2M6.js";import{C as $,p as b,x as G,y as _}from"./chunk-FQKURDZR.js";import{A as q,D as Y,F as V,H as O,J as W,z as U}from"./chunk-RCYQPOJW.js";import{e as E}from"./chunk-YTJ3EPD3.js";import{i as u}from"./chunk-ZZ7SOJHH.js";import{$ as f,Aa as w,Ca as v,Db as P,Sa as D,Xa as h,Ya as j,_a as L,ca as S,oa as g,ua as N}from"./chunk-3F42A3XV.js";import{f as B}from"./chunk-2R2PKQQV.js";import{b as ge}from"./chunk-I3J63RFV.js";import{d as p,n as R}from"./chunk-3VYOLEQE.js";import{e as xe,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();async function ie(e,t,r,n={}){let{templates:a,groupOrder:i}=await e.templateSpecifications(t,n);return{templates:a.filter(o=>r.includes(o.identifier)||r.includes(o.type)),groupOrder:i}}d();d();async function oe(e,t){let r=e?.path??"",n=p(t,r);if(!await h(n))throw new u(`
1
+ import{c as J}from"./chunk-QZGVZMB5.js";import{b as k}from"./chunk-6HWDGTSX.js";import{a as re}from"./chunk-73LX4DOM.js";import{a as ae}from"./chunk-3B3CJS5I.js";import{a as z}from"./chunk-LOTMFUSV.js";import{Ha as ne,I as ee,K as te,d as Q,e as Z}from"./chunk-KEI3OJVP.js";import{q as F,s as X,t as K}from"./chunk-X5VBX2QA.js";import{a as T}from"./chunk-H4PXFC7T.js";import{b as H,f as I}from"./chunk-EA5LKCRF.js";import{C as $,p as b,x as G,y as _}from"./chunk-3FCN4NS6.js";import{A as q,D as Y,F as V,H as O,J as W,z as U}from"./chunk-IN634BRF.js";import{e as E}from"./chunk-YTJ3EPD3.js";import{i as u}from"./chunk-VDE7IIYQ.js";import{$ as f,Aa as w,Ca as v,Db as P,Sa as D,Xa as h,Ya as j,_a as L,ca as S,oa as g,ua as N}from"./chunk-UYWRJHAJ.js";import{f as B}from"./chunk-FKGN6F3F.js";import{b as ge}from"./chunk-I3J63RFV.js";import{d as p,n as R}from"./chunk-3VYOLEQE.js";import{e as xe,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();async function ie(e,t,r,n={}){let{templates:a,groupOrder:i}=await e.templateSpecifications(t,n);return{templates:a.filter(o=>r.includes(o.identifier)||r.includes(o.type)),groupOrder:i}}d();d();async function oe(e,t){let r=e?.path??"",n=p(t,r);if(!await h(n))throw new u(`
2
2
  The extension is not available for ${e?.value}`);return n}async function se({name:e,app:t}){let r=S(e),n=p(t.directory,K.extensions.directoryName,r);if(await h(n))throw new u(`
3
3
  A directory with this name (${r}) already exists.
4
4
  Choose a new name for your extension.`);return await w(n),await N(p(n,F.lockFile)),n}function A(e){switch(e){case"vanilla-js":case"preact":case"react":case"typescript":case"typescript-react":return"javascript";case"rust":case"wasm":return e;case void 0:case"liquid":case"config-only":return}}async function ce(e){let t=e.extensionChoices.name,r=e.extensionChoices.flavor,n=e.extensionTemplate.supportedFlavors.find(o=>o.value===r),a=await se({app:e.app,name:t}),i=e.cloneUrl??e.extensionTemplate.url,s={directory:a,url:i,app:e.app,project:e.project,type:e.extensionTemplate.type,name:t,extensionFlavor:n,onGetTemplateRepository:e.onGetTemplateRepository??(async(o,c)=>{await J({repoUrl:o,destination:c,shallow:!0})})};return await we(s),{directory:R(a),extensionTemplate:e.extensionTemplate}}async function we(e){try{switch(e.type){case"theme":await Pe(e);break;case"function":await ke(e);break;default:await Fe(e);break}let t=p(e.directory,F.lockFile);await v(t)}catch(t){throw await ve(e.directory),e.project.packageManager==="pnpm"&&Ee(t)?new u("Your extension couldn't be generated because pnpm blocked the build scripts of some of its dependencies.",null,[["Run",{command:"pnpm approve-builds"},"in your app directory to approve the build scripts."],["Run",{command:P(e.project.packageManager,"shopify app generate extension")},"again."]]):t}}async function ve(e){try{await v(e,{maxRetries:10,retryDelay:100})}catch{q({headline:["Couldn't remove",{filePath:e},{char:"."}],body:"Delete this directory manually before generating an extension with the same name."})}}function Ee(e){return e instanceof Error&&e.message.includes("ERR_PNPM_IGNORED_BUILDS")}async function Pe({directory:e,url:t,type:r,name:n,extensionFlavor:a,onGetTemplateRepository:i}){return g(async s=>{let o=await M(t,a,s,i);await k(o,e,{name:n,type:r,uid:E(f(n))})})}async function ke({directory:e,url:t,app:r,project:n,name:a,extensionFlavor:i,onGetTemplateRepository:s}){let o=A(i?.value),c=[];c.push({title:"Generating function extension",task:async()=>{if(await g(async l=>{let m=await M(t,i,l,s);await k(m,e,{name:a,handle:f(a),flavor:i?.value,uid:E(f(a))})}),o==="javascript"){let l=le(i?.value??"rust");await pe(e,l,"!(*.graphql)")}}}),o==="javascript"&&c.push({title:"Installing additional dependencies",task:async()=>{n.usesWorkspaces&&await b({packageManager:n.packageManager,directory:n.directory});let l=Te(o);await _(l,{packageManager:n.packageManager,type:"prod",directory:n.usesWorkspaces?e:n.directory})}}),o==="javascript"&&c.push({title:"Building GraphQL types",task:async()=>{await Z({directory:e,isJavaScript:!0},{stdout:process.stdout,stderr:process.stderr,app:r})}}),await O(c)}async function Fe({directory:e,url:t,app:r,project:n,name:a,extensionFlavor:i,onGetTemplateRepository:s}){let o=A(i?.value),c=[{title:"Generating extension",task:async()=>{let l=le(i?.value??"vanilla-js");await g(async m=>{let y=await M(t,i,m,s);await k(y,e,{srcFileExtension:l,name:a,handle:f(a),flavor:i?.value??"",uid:E(f(a))})}),o==="javascript"&&await pe(e,l)}},{title:"Installing dependencies",task:async()=>{let l=n.packageManager;if(n.usesWorkspaces)A(i?.value)==="javascript"&&await b({packageManager:l,directory:n.directory});else{await be(n.directory,i?.value);let m=p(e,"package.json"),y=await _e(m);await _(y,{packageManager:l,type:"prod",directory:n.directory}),await v(m)}}}];c.push({title:"Update shared type definition",task:async()=>{await te(r)}}),await O(c)}function le(e){return{"vanilla-js":"js",preact:"jsx",react:"jsx",typescript:"ts","typescript-react":"tsx",rust:"rs",wasm:"wasm",liquid:"liquid","config-only":""}[e]??"js"}function Te(e){let t=[];return e==="javascript"&&t.push({name:"@shopify/shopify_function",version:`~${Q}.0.0`}),t}async function pe(e,t,r="*"){let n=await L(p(e,"src",r)),a=[];for(let i of n)a.push(D(i,`${i}.${t}`));await Promise.all(a)}async function be(e,t){t==="typescript-react"&&await $(e,{"@types/react":X.reactTypes})}async function _e(e){if(!await h(e))return[];let t=await G(e);return Object.entries(t?.dependencies??{}).map(([r,n])=>({name:r,version:n}))}async function M(e,t,r,n){let a=p(r,"download");return await w(a),await n(e,a),oe(t,a)}d();function Oe(e,t=[]){let r=[...e.map(a=>({label:a.name,value:a.identifier,group:a.group||"Other",sortPriority:a.sortPriority??Number.MAX_SAFE_INTEGER})),...t.map(a=>({label:`${a.name} (limit reached)`,value:a.identifier,group:a.group||"Other",disabled:!0,sortPriority:a.sortPriority??Number.MAX_SAFE_INTEGER}))],n=(a,i)=>a.sortPriority===i.sortPriority?a.label.localeCompare(i.label):a.sortPriority-i.sortPriority;return r.sort(n)}var Ie=async e=>{let t=e.extensionTemplates,r=e.templateType,n=e.extensionFlavor;if(!r){if(n&&(t=t.filter(c=>c.supportedFlavors.map(l=>l.value).includes(n))),t.length===0)throw new u("You have reached the limit for the number of extensions you can create.");r=await V({message:"Type of extension?",choices:Oe(t,e.unavailableExtensions),groupOrder:e.groupOrder})}let a=t.find(c=>c.identifier===r),i=e.name||await de(e.directory,a.defaultName),s=e.extensionFlavor??await Ae(a);return{extensionTemplate:a,extensionContent:{name:i,flavor:s}}};async function de(e,t,r=1){let n=t.includes(" ")?" ":"-",a=r<=1?t:`${t}${n}${r}`,i=p(e,f(a));return j(i)?de(e,t,r+1):W({message:"Name your extension:",defaultValue:a})}async function Ae(e){if(e.supportedFlavors.length!==0)return e.supportedFlavors.length===1&&e.supportedFlavors[0]?e.supportedFlavors[0].value:Y({message:"What would you like to work in?",choices:e.supportedFlavors.map(t=>({label:t.name,value:t.value})),defaultValue:"react"})}var ue=Ie;async function Me(e){let{app:t,developerPlatformClient:r,remoteApp:n,specifications:a,template:i}=e,s=a.map(he=>he.identifier),{templates:o,groupOrder:c}=await ie(r,n,s,{requestedTemplate:i}),l=await Ce(o,c,a,t,e),m=await ue(l);await Se(m,i);let y=Ne(m,t,e,r),ye=await ce(y);De(ye,e.project.packageManager)}async function Ce(e,t,r,n,a){let i=await Ge(a.template,n,e,r);je(i,a.flavor);let{validTemplates:s,templatesOverlimit:o}=Re(e,r,n);return{templateType:i?.identifier,name:a.name,extensionFlavor:a.flavor,directory:p(a.directory,"extensions"),app:n,extensionTemplates:s??[],unavailableExtensions:o??[],reset:a.reset,groupOrder:t}}function Re(e,t,r){return re(e,a=>!me(r,t,a)?"validTemplates":"templatesOverlimit")}function me(e,t,r){let n=r.type,a=t.find(s=>s.identifier===n||s.externalIdentifier===n);return e.extensionsForType({identifier:n,externalIdentifier:n}).length>=(a?.registrationLimit??1)}async function Se(e,t){let{extensionContent:r}=e;return T.addPublicMetadata(()=>({cmd_scaffold_template_flavor:r.flavor,cmd_scaffold_type:e.extensionTemplate.identifier,cmd_scaffold_used_prompts_for_type:!t}))}function Ne(e,t,r,n){return{app:t,project:r.project,cloneUrl:r.cloneUrl,extensionChoices:e.extensionContent,extensionTemplate:e.extensionTemplate,developerPlatformClient:n}}function De(e,t){let r=Le(e.extensionTemplate,e.directory,t);U(r)}function je(e,t){if(!t||!e)return;let r=e.supportedFlavors.map(n=>n.value);if(!r.includes(t))throw new u("Invalid template for extension type",`Expected template to be one of the following: ${r.join(", ")}.`)}function Le(e,t,r){let n={headline:["Your extension was created in",{filePath:t},{char:"."}],nextSteps:[],reference:[]};return e.type!=="function"&&n.nextSteps.push(["To preview this extension along with the rest of the project, run",{command:P(r,"shopify app dev")}]),e.supportLinks[0]&&n.reference.push(["For more details, see the",{link:{label:"docs",url:e.supportLinks[0]}}]),n}async function Ge(e,t,r,n){if(!e)return;let a=r.find(i=>i.identifier===e);if(!a){let i=await B(),s=r.map(c=>c.identifier),o=i?"You might need to enable some flags on your Organization or App":void 0;throw new u(`Unknown extension type: ${e}.
@@ -1,4 +1,4 @@
1
- import{a as U}from"./chunk-TEASB2WU.js";import{K as H}from"./chunk-PG6XEOYF.js";import{a as q}from"./chunk-VJEKDBGZ.js";import{q as I}from"./chunk-PQCALXSD.js";import{a as O,o as D,w as k}from"./chunk-RCYQPOJW.js";import{i as N}from"./chunk-ZZ7SOJHH.js";import{Aa as g,Ga as F,Nb as h,Xa as A,Ya as P,fb as y,ra as R}from"./chunk-3F42A3XV.js";import{g as S}from"./chunk-2R2PKQQV.js";import{d as x,e as E,g as v,i as C}from"./chunk-3VYOLEQE.js";import{e as X,g as m}from"./chunk-VKWPEFWQ.js";m();function w(){return process.hrtime()}function M(r){let t=process.hrtime(r);return(t[0]*1e3+t[1]/1e6).toFixed(2)}m();m();var $=X(q(),1),G=200,K=6e4,L=200,Q=500,_=class{currentEvents=[];extensionPaths=[];app;options;onChangeCallback;watcher;debouncedEmit;ignored={};extensionWatchedFiles=new Map;constructor(t,e,s=G){this.app=t,this.options=e,this.debouncedEmit=k(this.emitEvents.bind(this),s,{leading:!0,trailing:!0}),this.updateApp(t)}onChange(t){this.onChangeCallback=t}async start(){let e=[...this.app.configuration.extension_directories??["extensions"]].map(n=>x(this.app.directory,n));await Promise.all(e.map(async n=>{try{await g(n.replace(/\/\*+$/,""))}catch{}}));let s=[this.app.configPath,...e],i=this.getAllWatchedFiles();s.push(...i),this.close();let{default:o}=await import("./chokidar-5RWEYTNQ.js");this.watcher=o.watch(s,{ignored:["**/node_modules/**","**/.git/**"],persistent:!0,ignoreInitial:!0}),this.watcher.on("all",this.handleFileEvent),this.addAbortListener(),h(`File watcher started with ${s.length} paths`,this.options.stdout)}updateApp(t){this.app=t,this.extensionPaths=this.app.nonConfigExtensions.map(e=>E(e.directory)).filter(e=>e!==this.app.directory),this.extensionPaths.forEach(e=>{this.ignored[e]??=this.createIgnoreInstance(e)})}addAbortListener(){this.options.signal.removeEventListener("abort",this.close),this.options.signal.addEventListener("abort",this.close)}getAllWatchedFiles(){this.extensionWatchedFiles.clear();let t=this.app.realExtensions.map(s=>({extension:s,watchedFiles:s.watchedFiles()})),e=new Set;for(let{extension:s,watchedFiles:i}of t)for(let o of i){let n=E(o);e.add(n);let a=this.extensionWatchedFiles.get(n)??new Set;a.add(s.handle),this.extensionWatchedFiles.set(n,a)}return Array.from(e)}emitEvents=()=>{let t=this.currentEvents;this.currentEvents=[];let e=`\u{1F509} ${t.length} EVENTS EMITTED in files: ${t.map(s=>s.path).join(`
1
+ import{a as U}from"./chunk-73LX4DOM.js";import{K as H}from"./chunk-KEI3OJVP.js";import{a as q}from"./chunk-VJEKDBGZ.js";import{q as I}from"./chunk-X5VBX2QA.js";import{a as O,o as D,w as k}from"./chunk-IN634BRF.js";import{i as N}from"./chunk-VDE7IIYQ.js";import{Aa as g,Ga as F,Nb as h,Xa as A,Ya as P,fb as y,ra as R}from"./chunk-UYWRJHAJ.js";import{g as S}from"./chunk-FKGN6F3F.js";import{d as x,e as E,g as v,i as C}from"./chunk-3VYOLEQE.js";import{e as X,g as m}from"./chunk-VKWPEFWQ.js";m();function w(){return process.hrtime()}function M(r){let t=process.hrtime(r);return(t[0]*1e3+t[1]/1e6).toFixed(2)}m();m();var $=X(q(),1),G=200,K=6e4,L=200,Q=500,_=class{currentEvents=[];extensionPaths=[];app;options;onChangeCallback;watcher;debouncedEmit;ignored={};extensionWatchedFiles=new Map;constructor(t,e,s=G){this.app=t,this.options=e,this.debouncedEmit=k(this.emitEvents.bind(this),s,{leading:!0,trailing:!0}),this.updateApp(t)}onChange(t){this.onChangeCallback=t}async start(){let e=[...this.app.configuration.extension_directories??["extensions"]].map(n=>x(this.app.directory,n));await Promise.all(e.map(async n=>{try{await g(n.replace(/\/\*+$/,""))}catch{}}));let s=[this.app.configPath,...e],i=this.getAllWatchedFiles();s.push(...i),this.close();let{default:o}=await import("./chokidar-5RWEYTNQ.js");this.watcher=o.watch(s,{ignored:["**/node_modules/**","**/.git/**"],persistent:!0,ignoreInitial:!0}),this.watcher.on("all",this.handleFileEvent),this.addAbortListener(),h(`File watcher started with ${s.length} paths`,this.options.stdout)}updateApp(t){this.app=t,this.extensionPaths=this.app.nonConfigExtensions.map(e=>E(e.directory)).filter(e=>e!==this.app.directory),this.extensionPaths.forEach(e=>{this.ignored[e]??=this.createIgnoreInstance(e)})}addAbortListener(){this.options.signal.removeEventListener("abort",this.close),this.options.signal.addEventListener("abort",this.close)}getAllWatchedFiles(){this.extensionWatchedFiles.clear();let t=this.app.realExtensions.map(s=>({extension:s,watchedFiles:s.watchedFiles()})),e=new Set;for(let{extension:s,watchedFiles:i}of t)for(let o of i){let n=E(o);e.add(n);let a=this.extensionWatchedFiles.get(n)??new Set;a.add(s.handle),this.extensionWatchedFiles.set(n,a)}return Array.from(e)}emitEvents=()=>{let t=this.currentEvents;this.currentEvents=[];let e=`\u{1F509} ${t.length} EVENTS EMITTED in files: ${t.map(s=>s.path).join(`
2
2
  `)}`;h(e,this.options.stdout),this.onChangeCallback?.(t)};pushEvent(t){this.shouldIgnoreEvent(t)||(t.type==="extension_folder_created"&&(this.ignored[t.path]=this.createIgnoreInstance(t.path)),!this.currentEvents.some(e=>e.path===t.path&&e.type===t.type&&e.extensionHandle===t.extensionHandle)&&this.currentEvents.push(t))}shouldIgnoreEvent(t){if(t.type==="extension_folder_deleted"||t.type==="extension_folder_created"||t.extensionHandle&&this.extensionWatchedFiles.get(E(t.path))?.has(t.extensionHandle))return!1;let s=(t.extensionHandle?this.app.realExtensions.find(o=>o.handle===t.extensionHandle):void 0)?.watchedFiles(),i=this.ignored[t.extensionPath];if(s)return!s.some(n=>y(t.path,n));if(i){let o=v(t.extensionPath,t.path);return i.ignores(o)}return!1}handleFileEvent=(t,e)=>{let s=w(),i=E(e),o=e===this.app.configPath,n=e.endsWith(".extension.toml");if(h(`\u{1F300}: ${t} ${e.replace(this.app.directory,"")}
3
3
  `),o)this.handleEventForExtension(t,e,this.app.directory,s,!1);else{let a=this.extensionWatchedFiles.get(i),d=a===void 0||a.size===0;if(d&&t==="add"&&!n){let c=this.discoverFileOwners(i);c.size>0&&(this.extensionWatchedFiles.set(i,c),a=c,d=!1)}if(d&&!n&&!o){h(`\u{1F300}: File ${e} is not watched by any extension`,this.options.stdout);return}for(let c of a??[]){let l=this.app.realExtensions.find(f=>f.handle===c),u=l?E(l.directory):this.app.directory;this.handleEventForExtension(t,e,u,s,!1,c)}d&&this.handleEventForExtension(t,e,this.app.directory,s,!0)}this.debouncedEmit()};discoverFileOwners(t){let e=new Set;for(let s of this.app.realExtensions){let i=E(s.directory);i!==this.app.directory&&t.startsWith(`${i}/`)&&this.pathMatchesWatchPatterns(t,s)&&e.add(s.handle)}return e}pathMatchesWatchPatterns(t,e){let{paths:s,ignore:i}=e.watchPatterns(),o=v(E(e.directory),t);return i.some(n=>y(o,n))?!1:s.some(n=>y(o,n))}handleEventForExtension(t,e,s,i,o,n){let a=e.endsWith(".extension.toml"),d=e===this.app.configPath;switch(t){case"change":if(o)break;a||d?this.pushEvent({type:"extensions_config_updated",path:e,extensionPath:s,extensionHandle:n,startTime:i}):this.pushEvent({type:"file_updated",path:e,extensionPath:s,extensionHandle:n,startTime:i});break;case"add":if(!a){this.pushEvent({type:"file_created",path:e,extensionPath:s,extensionHandle:n,startTime:i});break}let c=0,l=C(e),u=setInterval(()=>{P(x(l,I.lockFile))?(h(`Waiting for extension to complete creation: ${e}
4
4
  `),c+=L):(clearInterval(u),this.extensionPaths.push(l),this.pushEvent({type:"extension_folder_created",path:l,extensionPath:s,startTime:i}),this.debouncedEmit()),c>=K&&(clearInterval(u),this.options.stderr.write(`Error loading new extension at path: ${e}.
@@ -1,4 +1,4 @@
1
- import{a as tx}from"./chunk-IWOTLFOY.js";import{a as b$}from"./chunk-FFSDGRAN.js";import{d as Zw,ta as v$,ua as ex}from"./chunk-3E3MCY5O.js";import{q as Xw}from"./chunk-TR4OWSEX.js";import{a as oe,b as we,c as x,d as Oy,e as Ia,f as Py,g as p}from"./chunk-VKWPEFWQ.js";var qy=x(Ny=>{"use strict";p();Object.defineProperty(Ny,"__esModule",{value:!0});Ny.deepGet=k$;function k$(e,t){return t.reduce((r,n)=>r?.[n],e)}});var rx=x(fs=>{"use strict";p();Object.defineProperty(fs,"__esModule",{value:!0});fs.first=S$;fs.last=T$;fs.findLast=w$;fs.findLastIndex=Ly;fs.findLastAndIndex=x$;function S$(e){return e[0]}function T$(e,t=0){return e[e.length-1+t]}function w$(e,t){return e[Ly(e,t)]}function Ly(e,t){for(let r=e.length-1;r>=0;r--)if(t(e[r]))return r;return-1}function x$(e,t){let r=Ly(e,t);return[e[r],r]}});var Cy=x((Ope,nx)=>{p();var E$={}.toString;nx.exports=Array.isArray||function(e){return E$.call(e)=="[object Array]"}});var sx=x((Npe,ix)=>{"use strict";p();var A$=Cy();ix.exports=function(t){return t!=null&&typeof t=="object"&&A$(t)===!1}});var Iy=x((Cpe,ax)=>{"use strict";p();var O$=Cy(),P$=sx(),Lpe=Array.prototype.slice;ax.exports=Ma;function Ma(e,t){if(!(this instanceof Ma))return typeof t=="number"?new Ma(e).fromIndex(t):new Ma(e,t);this.str=e||"",this.lineToIndex=N$(this.str),t=t||{},this.origin=typeof t.origin>"u"?1:t.origin}Ma.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e))return null;var t=q$(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};Ma.prototype.toIndex=function(e,t){if(typeof t>"u")return O$(e)&&e.length>=2?this.toIndex(e[0],e[1]):P$(e)&&"line"in e&&("col"in e||"column"in e)?this.toIndex(e.line,"col"in e?e.col:e.column):-1;if(isNaN(e)||isNaN(t))return-1;if(e-=this.origin,t-=this.origin,e>=0&&t>=0&&e<this.lineToIndex.length){var r=this.lineToIndex[e],n=e===this.lineToIndex.length-1?this.str.length:this.lineToIndex[e+1];if(t<n-r)return r+t}return-1};function N$(e){for(var t=e.split(`
1
+ import{a as tx}from"./chunk-IWOTLFOY.js";import{a as b$}from"./chunk-FFSDGRAN.js";import{d as Zw,ta as v$,ua as ex}from"./chunk-OSGXBBUJ.js";import{q as Xw}from"./chunk-TR4OWSEX.js";import{a as oe,b as we,c as x,d as Oy,e as Ia,f as Py,g as p}from"./chunk-VKWPEFWQ.js";var qy=x(Ny=>{"use strict";p();Object.defineProperty(Ny,"__esModule",{value:!0});Ny.deepGet=k$;function k$(e,t){return t.reduce((r,n)=>r?.[n],e)}});var rx=x(fs=>{"use strict";p();Object.defineProperty(fs,"__esModule",{value:!0});fs.first=S$;fs.last=T$;fs.findLast=w$;fs.findLastIndex=Ly;fs.findLastAndIndex=x$;function S$(e){return e[0]}function T$(e,t=0){return e[e.length-1+t]}function w$(e,t){return e[Ly(e,t)]}function Ly(e,t){for(let r=e.length-1;r>=0;r--)if(t(e[r]))return r;return-1}function x$(e,t){let r=Ly(e,t);return[e[r],r]}});var Cy=x((Ope,nx)=>{p();var E$={}.toString;nx.exports=Array.isArray||function(e){return E$.call(e)=="[object Array]"}});var sx=x((Npe,ix)=>{"use strict";p();var A$=Cy();ix.exports=function(t){return t!=null&&typeof t=="object"&&A$(t)===!1}});var Iy=x((Cpe,ax)=>{"use strict";p();var O$=Cy(),P$=sx(),Lpe=Array.prototype.slice;ax.exports=Ma;function Ma(e,t){if(!(this instanceof Ma))return typeof t=="number"?new Ma(e).fromIndex(t):new Ma(e,t);this.str=e||"",this.lineToIndex=N$(this.str),t=t||{},this.origin=typeof t.origin>"u"?1:t.origin}Ma.prototype.fromIndex=function(e){if(e<0||e>=this.str.length||isNaN(e))return null;var t=q$(e,this.lineToIndex);return{line:t+this.origin,col:e-this.lineToIndex[t]+this.origin}};Ma.prototype.toIndex=function(e,t){if(typeof t>"u")return O$(e)&&e.length>=2?this.toIndex(e[0],e[1]):P$(e)&&"line"in e&&("col"in e||"column"in e)?this.toIndex(e.line,"col"in e?e.col:e.column):-1;if(isNaN(e)||isNaN(t))return-1;if(e-=this.origin,t-=this.origin,e>=0&&t>=0&&e<this.lineToIndex.length){var r=this.lineToIndex[e],n=e===this.lineToIndex.length-1?this.str.length:this.lineToIndex[e+1];if(t<n-r)return r+t}return-1};function N$(e){for(var t=e.split(`
2
2
  `),r=new Array(t.length),n=0,i=0,s=t.length;i<s;i++)r[i]=n,n+=t[i].length+1;return r}function q$(e,t){if(e>=t[t.length-1])return t.length-1;for(var r=0,n=t.length-2,i;r<n;)if(i=r+(n-r>>1),e<t[i])n=i-1;else if(e>=t[i+1])r=i+1;else{r=i;break}return r}});var cx=x(Ra=>{"use strict";p();var L$=Ra&&Ra.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ra,"__esModule",{value:!0});Ra.getPosition=C$;Ra.getOffset=I$;var ox=L$(Iy());function C$(e,t){let r=(0,ox.default)(e,{origin:0}).fromIndex(Math.min(t,e.length-1));return{index:t,line:r?r.line:-1,character:r?r.col:-1}}function I$(e,t,r){return(0,ox.default)(e,{origin:1}).toIndex(t,r)}});var df=x(pf=>{"use strict";p();Object.defineProperty(pf,"__esModule",{value:!0});pf.isError=R$;pf.asError=D$;var M$={1:"Invalid symbol found in the input.",2:"Invalid number format detected.",3:"Property name expected but not found.",4:"A value was expected but not found.",5:"Colon `:` expected after the property name.",6:"Comma `,` expected between elements and properties.",7:"Closing brace `}` expected.",8:"Closing bracket `]` expected.",9:"End of file expected.",10:"Invalid comment token found.",11:"Unexpected end of comment.",12:"Unexpected end of string.",13:"Unexpected end of number.",14:"Invalid Unicode escape sequence.",15:"Invalid escape character found.",16:"Invalid character found in the input."};function R$(e){return e instanceof Error}function D$(e){return e instanceof Error?e:typeof e=="string"?new Error(e):e&&typeof e=="object"&&"error"in e?new Error(j$(e)):e&&typeof e.toString=="function"?new Error(e.toString()):new Error("An unknown error occurred")}function j$(e){return M$[e.error]||"Unknown parse error."}});var Ry=x(My=>{"use strict";p();Object.defineProperty(My,"__esModule",{value:!0});My.assertNever=F$;function F$(e){throw new Error(`We should never reach this code, you are missing a case for ${e}`)}});var jy=x(hf=>{"use strict";p();Object.defineProperty(hf,"__esModule",{value:!0});hf.memo=B$;hf.memoize=V$;var Dy=Symbol("Unset");function B$(e){let t=Dy,r=(...n)=>(t===Dy&&(t=e(...n)),t);return r.clearCache=()=>{t=Dy},r}function V$(e,t){let r={},n=(...i)=>{let s=t(...i);return r[s]||(r[s]=e(...i)),r[s]};return n.force=(...i)=>(n.invalidate(...i),n(...i)),n.invalidate=(...i)=>{let s=t(...i);delete r[s]},n.clearCache=()=>{r={}},n}});var By=x(Fy=>{"use strict";p();Object.defineProperty(Fy,"__esModule",{value:!0});Fy.indexBy=$$;function $$(e,t){let r={};for(let n of t)r[e(n)]=n;return r}});function ps(e,t=!1){let r=e.length,n=0,i="",s=0,a=16,o=0,c=0,l=0,f=0,m=0;function d(T,y){let A=0,O=0;for(;A<T||!y;){let P=e.charCodeAt(n);if(P>=48&&P<=57)O=O*16+P-48;else if(P>=65&&P<=70)O=O*16+P-65+10;else if(P>=97&&P<=102)O=O*16+P-97+10;else break;n++,A++}return A<T&&(O=-1),O}function g(T){n=T,i="",s=0,a=16,m=0}function v(){let T=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&Da(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&Da(e.charCodeAt(n)))for(n++;n<e.length&&Da(e.charCodeAt(n));)n++;else return m=3,e.substring(T,n);let y=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&Da(e.charCodeAt(n))){for(n++;n<e.length&&Da(e.charCodeAt(n));)n++;y=n}else m=3;return e.substring(T,y)}function b(){let T="",y=n;for(;;){if(n>=r){T+=e.substring(y,n),m=2;break}let A=e.charCodeAt(n);if(A===34){T+=e.substring(y,n),n++;break}if(A===92){if(T+=e.substring(y,n),n++,n>=r){m=2;break}switch(e.charCodeAt(n++)){case 34:T+='"';break;case 92:T+="\\";break;case 47:T+="/";break;case 98:T+="\b";break;case 102:T+="\f";break;case 110:T+=`
3
3
  `;break;case 114:T+="\r";break;case 116:T+=" ";break;case 117:let P=d(4,!0);P>=0?T+=String.fromCharCode(P):m=4;break;default:m=5}y=n;continue}if(A>=0&&A<=31)if(xc(A)){T+=e.substring(y,n),m=2;break}else m=6;n++}return T}function _(){if(i="",m=0,s=n,c=o,f=l,n>=r)return s=r,a=17;let T=e.charCodeAt(n);if(Vy(T)){do n++,i+=String.fromCharCode(T),T=e.charCodeAt(n);while(Vy(T));return a=15}if(xc(T))return n++,i+=String.fromCharCode(T),T===13&&e.charCodeAt(n)===10&&(n++,i+=`
4
4
  `),o++,l=n,a=14;switch(T){case 123:return n++,a=1;case 125:return n++,a=2;case 91:return n++,a=3;case 93:return n++,a=4;case 58:return n++,a=6;case 44:return n++,a=5;case 34:return n++,i=b(),a=10;case 47:let y=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!xc(e.charCodeAt(n));)n++;return i=e.substring(y,n),a=12}if(e.charCodeAt(n+1)===42){n+=2;let A=r-1,O=!1;for(;n<A;){let P=e.charCodeAt(n);if(P===42&&e.charCodeAt(n+1)===47){n+=2,O=!0;break}n++,xc(P)&&(P===13&&e.charCodeAt(n)===10&&n++,o++,l=n)}return O||(n++,m=1),i=e.substring(y,n),a=13}return i+=String.fromCharCode(T),n++,a=16;case 45:if(i+=String.fromCharCode(T),n++,n===r||!Da(e.charCodeAt(n)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=v(),a=11;default:for(;n<r&&k(T);)n++,T=e.charCodeAt(n);if(s!==n){switch(i=e.substring(s,n),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(T),n++,a=16}}function k(T){if(Vy(T)||xc(T))return!1;switch(T){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function w(){let T;do T=_();while(T>=12&&T<=15);return T}return{setPosition:g,getPosition:()=>n,scan:t?w:_,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>n-s,getTokenStartLine:()=>c,getTokenStartCharacter:()=>s-f,getTokenError:()=>m}}function Vy(e){return e===32||e===9}function xc(e){return e===10||e===13}function Da(e){return e>=48&&e<=57}var ux,mf=we(()=>{"use strict";p();(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(ux||(ux={}))});var ur,ja,$y,lx,fx=we(()=>{p();ur=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),ja=200,$y={" ":{"\n":new Array(ja).fill(0).map((e,t)=>`
@@ -1,4 +1,4 @@
1
- import{a as C}from"./chunk-OMEWUFUL.js";import{b as ne,c as re}from"./chunk-SHBB5GST.js";import{c as ee,d as te}from"./chunk-MHZSSRHP.js";import{A as M}from"./chunk-BLBJT7BM.js";import{a as Z}from"./chunk-KOYBR5MV.js";import{a as Q}from"./chunk-VXGXK66W.js";import{Ha as X}from"./chunk-PG6XEOYF.js";import{b as z,c as Y,f as V}from"./chunk-Q4TZD2M6.js";import{F as K,a as b,d as v,e as l,f as s,g as j,h as H,i as G,l as J,m as q,n as x,t as R}from"./chunk-RCYQPOJW.js";import{i as O}from"./chunk-ZZ7SOJHH.js";import{a as B}from"./chunk-J7ZG6SO3.js";import{qa as N}from"./chunk-3F42A3XV.js";import{g as U}from"./chunk-2R2PKQQV.js";import{b as ye}from"./chunk-I3J63RFV.js";import{d as I}from"./chunk-3VYOLEQE.js";import{e as S,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();c();c();var h=S(v(),1);import{Writable as oe}from"stream";function ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:i}){let a={type:"functionRun",input:e.payload.input,output:e.payload.output,logs:e.payload.logs,name:e.source,size:0,memory_usage:0,instructions:e.payload.fuelConsumed},[u,f]=(0,h.useState)([]),[p,m]=(0,h.useState)([a,a]),[y,d]=(0,h.useState)(void 0),{input:E,export:_}=e.payload,[fe,k]=(0,h.useState)(`Watching for changes to ${e.source}...`);return(0,h.useEffect)(()=>{let A=new b;t.signal.addEventListener("abort",()=>{A.abort()});let $=async()=>{let w=await Ee(r,JSON.stringify(E),_);m(g=>[w,g[0]]),k(`Watching for changes to ${e.source}...`),f(g=>[...g,w])},de=async()=>{k("Replaying log with local function..."),await $()},ge=async()=>{i.onEvent(async g=>{let F=g.extensionEvents.find(L=>L.extension.handle===r.handle);if(!(!F||F.type!==ee.Updated)){if(F.buildResult?.status==="error"){d(`Error while reloading and building extension: ${F.buildResult?.error}`);return}d(void 0),k("Re-running with latest changes..."),await $()}});let w=new oe({write(g,F,L){f(he=>[...he,{type:"systemMessage",message:g.toString()}]),L()}});await i.start({stdout:w,stderr:w,signal:A.signal},!1)};return de().then(()=>{ge()}),()=>{A.abort()}},[E,_,o,r]),R(t.signal,async()=>{setTimeout(()=>{U()||B(process.pid,"SIGINT",!1,()=>{process.exit(0)})},2e3)}),{logs:u,statusMessage:fe,recentFunctionRuns:p,error:y}}async function Ee(e,t,o){let r="",i=new oe({write(u,f,p){r+=u,p()}});return await C({functionExtension:e,input:t,export:o,stdout:i,json:!0}),{...JSON.parse(r),type:"functionRun"}}var n=S(v(),1);var ae=({selectedRun:e,abortController:t,app:o,extension:r})=>{let{isAborted:i}=R(t.signal),{isRawModeSupported:a}=H(),u=new te(o),{logs:f,statusMessage:p,recentFunctionRuns:m,error:y}=ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:u});return G((d,E)=>{q(d,E,()=>t.abort()),d==="q"&&t.abort()},{isActive:!!a}),n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{items:f},(d,E)=>n.default.createElement(l,{key:`replayOutputScrollerLog${E}`,flexDirection:"column"},n.default.createElement(Re,{log:d}))),i?null:n.default.createElement(l,{marginY:1,paddingTop:1,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},a?n.default.createElement(l,{flexDirection:"column"},n.default.createElement(l,{flexDirection:"row"},n.default.createElement(s,null,x.pointerSmall," ",p)),n.default.createElement(be,{recentFunctionRuns:m}),n.default.createElement(s,null,x.pointerSmall," Press ",n.default.createElement(s,{bold:!0},"q")," ",x.lineVertical," quit")):null,y?n.default.createElement(s,{color:"red"},y):null))};function D({title:e,backgroundColor:t}){let o=Math.max(Math.round((28-e.length)/2),0),r=" ".repeat(o);return n.default.createElement(s,{backgroundColor:t,color:"black"},`
1
+ import{a as C}from"./chunk-GB4WR6DY.js";import{b as ne,c as re}from"./chunk-543SYIY6.js";import{c as ee,d as te}from"./chunk-YZXNXWDR.js";import{A as M}from"./chunk-A36J5FWZ.js";import{a as Z}from"./chunk-3B3CJS5I.js";import{a as Q}from"./chunk-LOTMFUSV.js";import{Ha as X}from"./chunk-KEI3OJVP.js";import{b as z,c as Y,f as V}from"./chunk-EA5LKCRF.js";import{F as K,a as b,d as v,e as l,f as s,g as j,h as H,i as G,l as J,m as q,n as x,t as R}from"./chunk-IN634BRF.js";import{i as O}from"./chunk-VDE7IIYQ.js";import{a as B}from"./chunk-6BVQSX7D.js";import{qa as N}from"./chunk-UYWRJHAJ.js";import{g as U}from"./chunk-FKGN6F3F.js";import{b as ye}from"./chunk-I3J63RFV.js";import{d as I}from"./chunk-3VYOLEQE.js";import{e as S,g as c}from"./chunk-VKWPEFWQ.js";c();c();c();c();c();var h=S(v(),1);import{Writable as oe}from"stream";function ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:i}){let a={type:"functionRun",input:e.payload.input,output:e.payload.output,logs:e.payload.logs,name:e.source,size:0,memory_usage:0,instructions:e.payload.fuelConsumed},[u,f]=(0,h.useState)([]),[p,m]=(0,h.useState)([a,a]),[y,d]=(0,h.useState)(void 0),{input:E,export:_}=e.payload,[fe,k]=(0,h.useState)(`Watching for changes to ${e.source}...`);return(0,h.useEffect)(()=>{let A=new b;t.signal.addEventListener("abort",()=>{A.abort()});let $=async()=>{let w=await Ee(r,JSON.stringify(E),_);m(g=>[w,g[0]]),k(`Watching for changes to ${e.source}...`),f(g=>[...g,w])},de=async()=>{k("Replaying log with local function..."),await $()},ge=async()=>{i.onEvent(async g=>{let F=g.extensionEvents.find(L=>L.extension.handle===r.handle);if(!(!F||F.type!==ee.Updated)){if(F.buildResult?.status==="error"){d(`Error while reloading and building extension: ${F.buildResult?.error}`);return}d(void 0),k("Re-running with latest changes..."),await $()}});let w=new oe({write(g,F,L){f(he=>[...he,{type:"systemMessage",message:g.toString()}]),L()}});await i.start({stdout:w,stderr:w,signal:A.signal},!1)};return de().then(()=>{ge()}),()=>{A.abort()}},[E,_,o,r]),R(t.signal,async()=>{setTimeout(()=>{U()||B(process.pid,"SIGINT",!1,()=>{process.exit(0)})},2e3)}),{logs:u,statusMessage:fe,recentFunctionRuns:p,error:y}}async function Ee(e,t,o){let r="",i=new oe({write(u,f,p){r+=u,p()}});return await C({functionExtension:e,input:t,export:o,stdout:i,json:!0}),{...JSON.parse(r),type:"functionRun"}}var n=S(v(),1);var ae=({selectedRun:e,abortController:t,app:o,extension:r})=>{let{isAborted:i}=R(t.signal),{isRawModeSupported:a}=H(),u=new te(o),{logs:f,statusMessage:p,recentFunctionRuns:m,error:y}=ie({selectedRun:e,abortController:t,app:o,extension:r,appWatcher:u});return G((d,E)=>{q(d,E,()=>t.abort()),d==="q"&&t.abort()},{isActive:!!a}),n.default.createElement(n.default.Fragment,null,n.default.createElement(j,{items:f},(d,E)=>n.default.createElement(l,{key:`replayOutputScrollerLog${E}`,flexDirection:"column"},n.default.createElement(Re,{log:d}))),i?null:n.default.createElement(l,{marginY:1,paddingTop:1,flexDirection:"column",flexGrow:1,borderStyle:"single",borderBottom:!1,borderLeft:!1,borderRight:!1,borderTop:!0},a?n.default.createElement(l,{flexDirection:"column"},n.default.createElement(l,{flexDirection:"row"},n.default.createElement(s,null,x.pointerSmall," ",p)),n.default.createElement(be,{recentFunctionRuns:m}),n.default.createElement(s,null,x.pointerSmall," Press ",n.default.createElement(s,{bold:!0},"q")," ",x.lineVertical," quit")):null,y?n.default.createElement(s,{color:"red"},y):null))};function D({title:e,backgroundColor:t}){let o=Math.max(Math.round((28-e.length)/2),0),r=" ".repeat(o);return n.default.createElement(s,{backgroundColor:t,color:"black"},`
2
2
 
3
3
  `,r,e,r,`
4
4
  `)}function we({input:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Input",backgroundColor:"yellow"}),n.default.createElement(s,null,M(e)))}function Fe({logs:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Logs",backgroundColor:"blueBright"}),n.default.createElement(s,null,e))}function xe({output:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Output",backgroundColor:"greenBright"}),n.default.createElement(s,null,M(e)))}function Se({functionRun:e}){return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(D,{title:"Benchmark Results",backgroundColor:"green"}),n.default.createElement(s,null,"Name: ",e.name),n.default.createElement(s,null,"Linear Memory Usage: ",e.memory_usage,"KB"),n.default.createElement(s,null,"Instructions: ",e.instructions/1e3,"K"),n.default.createElement(s,null,"Size: ",e.size,"KB"))}function be({recentFunctionRuns:e}){let t=e[0].instructions-e[1].instructions;return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(s,null,x.pointerSmall," Instruction count change: ",t>0?"+":"",t))}function Re({log:e}){switch(e.type){case"functionRun":return n.default.createElement(l,{flexDirection:"column"},n.default.createElement(we,{input:e.input}),n.default.createElement(Fe,{logs:e.logs}),n.default.createElement(xe,{output:e.output}),n.default.createElement(Se,{functionRun:e}),n.default.createElement(s,null,"\xA0"));case"systemMessage":return n.default.createElement(s,null,e.message);default:return null}}var se=S(v(),1);async function ce({selectedRun:e,abortController:t,app:o,extension:r}){return J(se.default.createElement(ae,{selectedRun:e,abortController:t,app:o,extension:r}),{exitOnCtrlC:!1})}c();async function le(e){if(e.length===0)return;let t=i=>({label:`${i.logTimestamp} (${i.status}) - ${i.identifier}`,value:i}),o=e.map(t);return await K({message:"Which function run would you like to replay locally?",choices:o})}import{existsSync as Ce,readdirSync as De}from"fs";var T=100;async function ue(e){let{watch:t,extension:o,app:r}=e,i=new b;try{let a=r.getLogsDir(),u=e.log?await ke(a,o.handle,e.log):await Le(a,o.handle),{input:f,export:p}=u.payload;t?await ce({selectedRun:u,abortController:i,app:r,extension:o}):await C({functionExtension:o,json:e.json,input:JSON.stringify(f),export:p})}catch(a){throw i.abort(),a}}async function ke(e,t,o){let r=await Ae(e,t,o);if(r===void 0)throw new O(`No log found for '${o}'.
@@ -1 +1 @@
1
- import{a as v}from"./chunk-OMEWUFUL.js";import{b as y,c as P,d as b}from"./chunk-SHBB5GST.js";import{a as F}from"./chunk-246AZCDT.js";import{a as m}from"./chunk-VXGXK66W.js";import{Ia as x}from"./chunk-PG6XEOYF.js";import{b as d,c as h}from"./chunk-Q4TZD2M6.js";import{F as g,M as l}from"./chunk-RCYQPOJW.js";import{Nb as n}from"./chunk-3F42A3XV.js";import{b as _}from"./chunk-I3J63RFV.js";import{e as U,g as u}from"./chunk-VKWPEFWQ.js";u();var i=U(_(),1);var a="_start",s=class w extends F{static summary="Run a function locally for testing.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionForHelp();static flags={...d,...m,...y,...h,input:i.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:i.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"}),profile:i.Flags.boolean({description:"Generate a WebAssembly performance profile for the function run. The profile can be viewed in Speedscope.",env:"SHOPIFY_FLAG_PROFILE"})};async run(){let{flags:t}=await this.parse(w),o=a,{app:p}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await P(p,t.path);if(t.export!==void 0)n(`Using export ${t.export} from the --export flag.`),o=t.export;else if(e.configuration.targeting!==void 0&&e.configuration.targeting.length>0){let r=e.configuration.targeting;if(r.length>1&&l({})){let O=r.map(f=>({label:f.target,value:f.export||a}));o=await g({message:"Which target would you like to execute?",choices:O})}else o=r?.[0]?.export||a,n(`Using export '${o}'. Use the --export flag or an interactive terminal to select a different export.`)}else n(`No targeting information found. Using the default export '${o}'. Use the --export flag or an interactive terminal to select a different export.`);let c=e?.configuration.targeting?.[0]?.input_query,T=c&&`${e?.directory}/${c}`,A=await b(e,t.path,t["client-id"],t.reset,t.config);return await v({functionExtension:e,json:t.json,inputPath:t.input,export:o,stdin:"inherit",schemaPath:A,queryPath:T,profile:t.profile}),{app:p}}};export{s as a};
1
+ import{a as v}from"./chunk-GB4WR6DY.js";import{b as y,c as P,d as b}from"./chunk-543SYIY6.js";import{a as F}from"./chunk-Q54LU5W4.js";import{a as m}from"./chunk-LOTMFUSV.js";import{Ia as x}from"./chunk-KEI3OJVP.js";import{b as d,c as h}from"./chunk-EA5LKCRF.js";import{F as g,M as l}from"./chunk-IN634BRF.js";import{Nb as n}from"./chunk-UYWRJHAJ.js";import{b as _}from"./chunk-I3J63RFV.js";import{e as U,g as u}from"./chunk-VKWPEFWQ.js";u();var i=U(_(),1);var a="_start",s=class w extends F{static summary="Run a function locally for testing.";static descriptionWithMarkdown="Runs the function from your current directory for [testing purposes](https://shopify.dev/docs/apps/functions/testing-and-debugging). To learn how you can monitor and debug functions when errors occur, refer to [Shopify Functions error handling](https://shopify.dev/docs/api/functions/errors).";static description=this.descriptionForHelp();static flags={...d,...m,...y,...h,input:i.Flags.string({char:"i",description:"The input JSON to pass to the function. If omitted, standard input is used.",env:"SHOPIFY_FLAG_INPUT"}),export:i.Flags.string({char:"e",hidden:!1,description:"Name of the WebAssembly export to invoke.",env:"SHOPIFY_FLAG_EXPORT"}),profile:i.Flags.boolean({description:"Generate a WebAssembly performance profile for the function run. The profile can be viewed in Speedscope.",env:"SHOPIFY_FLAG_PROFILE"})};async run(){let{flags:t}=await this.parse(w),o=a,{app:p}=await x({directory:t.path,userProvidedConfigName:t.config}),e=await P(p,t.path);if(t.export!==void 0)n(`Using export ${t.export} from the --export flag.`),o=t.export;else if(e.configuration.targeting!==void 0&&e.configuration.targeting.length>0){let r=e.configuration.targeting;if(r.length>1&&l({})){let O=r.map(f=>({label:f.target,value:f.export||a}));o=await g({message:"Which target would you like to execute?",choices:O})}else o=r?.[0]?.export||a,n(`Using export '${o}'. Use the --export flag or an interactive terminal to select a different export.`)}else n(`No targeting information found. Using the default export '${o}'. Use the --export flag or an interactive terminal to select a different export.`);let c=e?.configuration.targeting?.[0]?.input_query,T=c&&`${e?.directory}/${c}`,A=await b(e,t.path,t["client-id"],t.reset,t.config);return await v({functionExtension:e,json:t.json,inputPath:t.input,export:o,stdin:"inherit",schemaPath:A,queryPath:T,profile:t.profile}),{app:p}}};export{s as a};
@@ -1,4 +1,4 @@
1
- import{a as f}from"./chunk-R43LXE66.js";import{a as h}from"./chunk-KOYBR5MV.js";import{a as c}from"./chunk-VXGXK66W.js";import{Ha as m}from"./chunk-PG6XEOYF.js";import{b as l}from"./chunk-Q4TZD2M6.js";import{u as a}from"./chunk-3E3MCY5O.js";import{z as p}from"./chunk-RCYQPOJW.js";import{i as d}from"./chunk-ZZ7SOJHH.js";import{b as C}from"./chunk-I3J63RFV.js";import{e as g,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function v(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp,r=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id});if(r.devSessionDelete?.userErrors.length){let u=r.devSessionDelete.userErrors.map(w=>w.message).join(`
1
+ import{a as f}from"./chunk-MNHZWEXI.js";import{a as h}from"./chunk-3B3CJS5I.js";import{a as c}from"./chunk-LOTMFUSV.js";import{Ha as m}from"./chunk-KEI3OJVP.js";import{b as l}from"./chunk-EA5LKCRF.js";import{u as a}from"./chunk-OSGXBBUJ.js";import{z as p}from"./chunk-IN634BRF.js";import{i as d}from"./chunk-VDE7IIYQ.js";import{b as C}from"./chunk-I3J63RFV.js";import{e as g,g as s}from"./chunk-VKWPEFWQ.js";s();s();async function v(t){let e=t.appContextResult.developerPlatformClient,o=t.appContextResult.remoteApp,r=await e.devSessionDelete({shopFqdn:t.store.shopDomain,appId:o.id});if(r.devSessionDelete?.userErrors.length){let u=r.devSessionDelete.userErrors.map(w=>w.message).join(`
2
2
  `);throw new d(`Failed to stop the dev preview: ${u}`)}p({headline:"Dev preview stopped.",body:[`The dev preview has been stopped on ${t.store.shopDomain} and the app's active version has been restored.`,"You can start it again with",{command:"shopify app dev"}]})}var i=g(C(),1);var n=class t extends h{static summary="Cleans up the dev preview from the selected store.";static descriptionWithMarkdown=`Stop the dev preview that was started with \`shopify app dev\`.
3
3
 
4
4
  It restores the app's active version to the selected development store.
@@ -1 +1 @@
1
- import{a as u}from"./chunk-J7ZG6SO3.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();var m=!1;function v(){return m}function y(){let t=0,e=!1,i=setInterval(()=>{if(!e){if(v()||t>=12e4){e=!0,clearInterval(i),u(process.pid,"SIGINT",!1,()=>{process.exit(0)});return}t+=100}},100)}var k=async({config:a,Command:o})=>{await I(o);let t=await import("./metadata-Y3RKC4P2.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-33DG6ZUL.js");i(o);let{outputDebug:n}=await import("./output-ZFFHJGNK.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&!r.includes("send-analytics")&&await M();let{reportAnalyticsEvent:c}=await import("./analytics-H2ANKZ2S.js");await c({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-I4JTR4LA.js"),t=a();if(!t){await o();return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")await l(t);else{let{runAtMinimumInterval:i}=await import("./conf-store-CDZ5YSQM.js");await i("auto-upgrade",{days:1},async()=>{await l(t)})}}async function l(a){let[{CLI_KIT_VERSION:o},{isMajorVersionChange:t},{outputWarn:e,outputDebug:i},{getOutputUpdateCLIReminder:n,runCLIUpgrade:r,hasBlockingAutoUpgradeNotification:c},s]=await Promise.all([import("./version-AOVO47AW.js"),import("./version-LQV54JBC.js"),import("./output-ZFFHJGNK.js"),import("./upgrade-I4JTR4LA.js"),import("./metadata-Y3RKC4P2.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await c()){await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"blocked_by_notification"}));return}try{await r({autoupgrade:!0}),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!0}))}catch(f){let p=`Auto-upgrade failed: ${f}`;i(p),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-JY3ZKE2G.js"),import("./is-global-2G4BLF7H.js")]),_=Object.assign(new Error(p),{packageManager:w(),platform:process.platform,cliVersion:o});await g(_,"expected_error")}}async function I(a){let o=new Date().getTime();if(a&&"analyticsStopCommand"in a&&typeof a.analyticsStopCommand=="function"){let t=a.analyticsStopCommand();if(t){let e=await import("./metadata-Y3RKC4P2.js"),{commandStartOptions:i}=e.getAllSensitiveMetadata();if(!i)return;await e.addSensitiveMetadata(()=>({commandStartOptions:{...i,startTime:o,startCommand:t}}))}}}export{y as a,k as b};
1
+ import{a as u}from"./chunk-6BVQSX7D.js";import{g as d}from"./chunk-VKWPEFWQ.js";d();var m=!1;function v(){return m}function y(){let t=0,e=!1,i=setInterval(()=>{if(!e){if(v()||t>=12e4){e=!0,clearInterval(i),u(process.pid,"SIGINT",!1,()=>{process.exit(0)});return}t+=100}},100)}var k=async({config:a,Command:o})=>{await I(o);let t=await import("./metadata-G7M7BSIE.js"),{commandStartOptions:e}=t.getAllSensitiveMetadata();e&&await t.addSensitiveMetadata(()=>({commandStartOptions:{...e,endTime:new Date().getTime()}}));let{postrun:i}=await import("./deprecations-FNYLBULK.js");i(o);let{outputDebug:n}=await import("./output-2Q6CSC33.js"),r=o.id.replace(/:/g," ");n(`Completed command ${r}`),!r.includes("notifications")&&!r.includes("upgrade")&&!r.includes("send-analytics")&&await M();let{reportAnalyticsEvent:c}=await import("./analytics-K6IFFIPX.js");await c({config:a,exitMode:"ok"}),m=!0};async function M(){let{versionToAutoUpgrade:a,warnIfUpgradeAvailable:o}=await import("./upgrade-7HYLPUVK.js"),t=a();if(!t){await o();return}if(process.env.SHOPIFY_CLI_FORCE_AUTO_UPGRADE==="1")await l(t);else{let{runAtMinimumInterval:i}=await import("./conf-store-TBERV4YJ.js");await i("auto-upgrade",{days:1},async()=>{await l(t)})}}async function l(a){let[{CLI_KIT_VERSION:o},{isMajorVersionChange:t},{outputWarn:e,outputDebug:i},{getOutputUpdateCLIReminder:n,runCLIUpgrade:r,hasBlockingAutoUpgradeNotification:c},s]=await Promise.all([import("./version-VNCEYJRH.js"),import("./version-BPEZT4N3.js"),import("./output-2Q6CSC33.js"),import("./upgrade-7HYLPUVK.js"),import("./metadata-G7M7BSIE.js")]);if(t(o,a)){e(n(a,!0)),await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"major_version"}));return}if(await c()){await s.addPublicMetadata(()=>({env_auto_upgrade_skipped_reason:"blocked_by_notification"}));return}try{await r({autoupgrade:!0}),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!0}))}catch(f){let p=`Auto-upgrade failed: ${f}`;i(p),e(n(a)),await s.addPublicMetadata(()=>({env_auto_upgrade_success:!1}));let[{sendErrorToBugsnag:g},{inferPackageManagerForGlobalCLI:w}]=await Promise.all([import("./error-handler-XOEXJ4TY.js"),import("./is-global-BSY2VR5F.js")]),_=Object.assign(new Error(p),{packageManager:w(),platform:process.platform,cliVersion:o});await g(_,"expected_error")}}async function I(a){let o=new Date().getTime();if(a&&"analyticsStopCommand"in a&&typeof a.analyticsStopCommand=="function"){let t=a.analyticsStopCommand();if(t){let e=await import("./metadata-G7M7BSIE.js"),{commandStartOptions:i}=e.getAllSensitiveMetadata();if(!i)return;await e.addSensitiveMetadata(()=>({commandStartOptions:{...i,startTime:o,startCommand:t}}))}}}export{y as a,k as b};
@@ -1 +1 @@
1
- import{a}from"../../../../chunk-RW2MONAS.js";import"../../../../chunk-KOYBR5MV.js";import"../../../../chunk-M7QFZQ23.js";import"../../../../chunk-VXGXK66W.js";import"../../../../chunk-PG6XEOYF.js";import"../../../../chunk-7IRPE3M5.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-PQCALXSD.js";import"../../../../chunk-46U6C6C6.js";import"../../../../chunk-P2MVR6CG.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-DH5E6NM3.js";import"../../../../chunk-OERMQ2FP.js";import"../../../../chunk-LWF4EV22.js";import"../../../../chunk-KY36HSIB.js";import"../../../../chunk-525BMYNR.js";import"../../../../chunk-Q4TZD2M6.js";import"../../../../chunk-EZ5F4ZFY.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-3E3MCY5O.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-FQKURDZR.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-Q555FV2X.js";import"../../../../chunk-TQ7MHGY4.js";import"../../../../chunk-LIQSNIB3.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-RCYQPOJW.js";import"../../../../chunk-7E4MJCVE.js";import"../../../../chunk-BPVXYM6G.js";import"../../../../chunk-WXT5AKZV.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-YTJ3EPD3.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-MQZPASSP.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-PQH4U2XV.js";import"../../../../chunk-ZZ7SOJHH.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-J7ZG6SO3.js";import"../../../../chunk-3F42A3XV.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-LD6ZCTZ3.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-2R2PKQQV.js";import"../../../../chunk-QLHPTMIH.js";import"../../../../chunk-WNO2V53C.js";import"../../../../chunk-I3J63RFV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-3VYOLEQE.js";import"../../../../chunk-TR4OWSEX.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
1
+ import{a}from"../../../../chunk-PQEFZTEJ.js";import"../../../../chunk-3B3CJS5I.js";import"../../../../chunk-YN3NT2RC.js";import"../../../../chunk-LOTMFUSV.js";import"../../../../chunk-KEI3OJVP.js";import"../../../../chunk-JYWFR6VL.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-X5VBX2QA.js";import"../../../../chunk-4LTQEQ4O.js";import"../../../../chunk-Z5M2VWQZ.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-QKSN6ZYW.js";import"../../../../chunk-7IYSJGFF.js";import"../../../../chunk-KY4WH4ZK.js";import"../../../../chunk-7AP5E5CF.js";import"../../../../chunk-H4PXFC7T.js";import"../../../../chunk-EA5LKCRF.js";import"../../../../chunk-4Q5TSWQL.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-OSGXBBUJ.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-3FCN4NS6.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-XVOUKPGD.js";import"../../../../chunk-DPGUL2TW.js";import"../../../../chunk-C4G7OKJD.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-IN634BRF.js";import"../../../../chunk-7E4MJCVE.js";import"../../../../chunk-KI3VRWBP.js";import"../../../../chunk-GOBTF2ZH.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-YTJ3EPD3.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-UGJN5Q6Y.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-HJPAHR2V.js";import"../../../../chunk-VDE7IIYQ.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-6BVQSX7D.js";import"../../../../chunk-UYWRJHAJ.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-LD6ZCTZ3.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-FKGN6F3F.js";import"../../../../chunk-L4DFMMOI.js";import"../../../../chunk-WNO2V53C.js";import"../../../../chunk-I3J63RFV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-3VYOLEQE.js";import"../../../../chunk-TR4OWSEX.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../../chunk-JLGXJHPX.js";import"../../../chunk-246AZCDT.js";import"../../../chunk-UOKX3AME.js";import"../../../chunk-M7QFZQ23.js";import"../../../chunk-VXGXK66W.js";import"../../../chunk-PG6XEOYF.js";import"../../../chunk-7IRPE3M5.js";import"../../../chunk-YLQ3LNNY.js";import"../../../chunk-VJEKDBGZ.js";import"../../../chunk-PQCALXSD.js";import"../../../chunk-46U6C6C6.js";import"../../../chunk-P2MVR6CG.js";import"../../../chunk-IWOTLFOY.js";import"../../../chunk-FFSDGRAN.js";import"../../../chunk-DH5E6NM3.js";import"../../../chunk-OERMQ2FP.js";import"../../../chunk-LWF4EV22.js";import"../../../chunk-KY36HSIB.js";import"../../../chunk-525BMYNR.js";import"../../../chunk-Q4TZD2M6.js";import"../../../chunk-EZ5F4ZFY.js";import"../../../chunk-LFOBYEWG.js";import"../../../chunk-3E3MCY5O.js";import"../../../chunk-ZDF5N422.js";import"../../../chunk-FQKURDZR.js";import"../../../chunk-MPW2YJWU.js";import"../../../chunk-Q555FV2X.js";import"../../../chunk-TQ7MHGY4.js";import"../../../chunk-LIQSNIB3.js";import"../../../chunk-T7KHS6RF.js";import"../../../chunk-RCYQPOJW.js";import"../../../chunk-7E4MJCVE.js";import"../../../chunk-BPVXYM6G.js";import"../../../chunk-WXT5AKZV.js";import"../../../chunk-5HBIIYSK.js";import"../../../chunk-GB3YC4TI.js";import"../../../chunk-YTJ3EPD3.js";import"../../../chunk-YRHFPXC3.js";import"../../../chunk-MQZPASSP.js";import"../../../chunk-RJ5VF3QY.js";import"../../../chunk-7UNQOKZW.js";import"../../../chunk-PQH4U2XV.js";import"../../../chunk-ZZ7SOJHH.js";import"../../../chunk-636CTEW7.js";import"../../../chunk-J7ZG6SO3.js";import"../../../chunk-3F42A3XV.js";import"../../../chunk-B4OMIONW.js";import"../../../chunk-BOAGJ6P5.js";import"../../../chunk-LD6ZCTZ3.js";import"../../../chunk-JJZNUFPD.js";import"../../../chunk-2R2PKQQV.js";import"../../../chunk-QLHPTMIH.js";import"../../../chunk-WNO2V53C.js";import"../../../chunk-I3J63RFV.js";import"../../../chunk-JD5P5RAJ.js";import"../../../chunk-3VYOLEQE.js";import"../../../chunk-TR4OWSEX.js";import"../../../chunk-ZGASBRSQ.js";import"../../../chunk-I5A6BPCP.js";import"../../../chunk-CX5CC6P5.js";import"../../../chunk-IGE4Y5SE.js";import"../../../chunk-JFBCE4HN.js";import"../../../chunk-VKWPEFWQ.js";export{a as default};
1
+ import{a}from"../../../chunk-T3LZJIZN.js";import"../../../chunk-Q54LU5W4.js";import"../../../chunk-ACGPDJ6Q.js";import"../../../chunk-YN3NT2RC.js";import"../../../chunk-LOTMFUSV.js";import"../../../chunk-KEI3OJVP.js";import"../../../chunk-JYWFR6VL.js";import"../../../chunk-YLQ3LNNY.js";import"../../../chunk-VJEKDBGZ.js";import"../../../chunk-X5VBX2QA.js";import"../../../chunk-4LTQEQ4O.js";import"../../../chunk-Z5M2VWQZ.js";import"../../../chunk-IWOTLFOY.js";import"../../../chunk-FFSDGRAN.js";import"../../../chunk-QKSN6ZYW.js";import"../../../chunk-7IYSJGFF.js";import"../../../chunk-KY4WH4ZK.js";import"../../../chunk-7AP5E5CF.js";import"../../../chunk-H4PXFC7T.js";import"../../../chunk-EA5LKCRF.js";import"../../../chunk-4Q5TSWQL.js";import"../../../chunk-LFOBYEWG.js";import"../../../chunk-OSGXBBUJ.js";import"../../../chunk-ZDF5N422.js";import"../../../chunk-3FCN4NS6.js";import"../../../chunk-MPW2YJWU.js";import"../../../chunk-XVOUKPGD.js";import"../../../chunk-DPGUL2TW.js";import"../../../chunk-C4G7OKJD.js";import"../../../chunk-T7KHS6RF.js";import"../../../chunk-IN634BRF.js";import"../../../chunk-7E4MJCVE.js";import"../../../chunk-KI3VRWBP.js";import"../../../chunk-GOBTF2ZH.js";import"../../../chunk-5HBIIYSK.js";import"../../../chunk-GB3YC4TI.js";import"../../../chunk-YTJ3EPD3.js";import"../../../chunk-YRHFPXC3.js";import"../../../chunk-UGJN5Q6Y.js";import"../../../chunk-RJ5VF3QY.js";import"../../../chunk-7UNQOKZW.js";import"../../../chunk-HJPAHR2V.js";import"../../../chunk-VDE7IIYQ.js";import"../../../chunk-636CTEW7.js";import"../../../chunk-6BVQSX7D.js";import"../../../chunk-UYWRJHAJ.js";import"../../../chunk-B4OMIONW.js";import"../../../chunk-BOAGJ6P5.js";import"../../../chunk-LD6ZCTZ3.js";import"../../../chunk-JJZNUFPD.js";import"../../../chunk-FKGN6F3F.js";import"../../../chunk-L4DFMMOI.js";import"../../../chunk-WNO2V53C.js";import"../../../chunk-I3J63RFV.js";import"../../../chunk-JD5P5RAJ.js";import"../../../chunk-3VYOLEQE.js";import"../../../chunk-TR4OWSEX.js";import"../../../chunk-ZGASBRSQ.js";import"../../../chunk-I5A6BPCP.js";import"../../../chunk-CX5CC6P5.js";import"../../../chunk-IGE4Y5SE.js";import"../../../chunk-JFBCE4HN.js";import"../../../chunk-VKWPEFWQ.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../../../chunk-N4AR2B6D.js";import"../../../../chunk-IQIUFTR6.js";import"../../../../chunk-FICC6IFE.js";import"../../../../chunk-R43LXE66.js";import"../../../../chunk-KOYBR5MV.js";import"../../../../chunk-M7QFZQ23.js";import"../../../../chunk-VXGXK66W.js";import"../../../../chunk-PG6XEOYF.js";import"../../../../chunk-7IRPE3M5.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-PQCALXSD.js";import"../../../../chunk-46U6C6C6.js";import"../../../../chunk-P2MVR6CG.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-DH5E6NM3.js";import"../../../../chunk-OERMQ2FP.js";import"../../../../chunk-LWF4EV22.js";import"../../../../chunk-KY36HSIB.js";import"../../../../chunk-525BMYNR.js";import"../../../../chunk-Q4TZD2M6.js";import"../../../../chunk-EZ5F4ZFY.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-3E3MCY5O.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-FQKURDZR.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-Q555FV2X.js";import"../../../../chunk-TQ7MHGY4.js";import"../../../../chunk-LIQSNIB3.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-RCYQPOJW.js";import"../../../../chunk-7E4MJCVE.js";import"../../../../chunk-BPVXYM6G.js";import"../../../../chunk-WXT5AKZV.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-YTJ3EPD3.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-MQZPASSP.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-PQH4U2XV.js";import"../../../../chunk-ZZ7SOJHH.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-J7ZG6SO3.js";import"../../../../chunk-3F42A3XV.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-LD6ZCTZ3.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-2R2PKQQV.js";import"../../../../chunk-QLHPTMIH.js";import"../../../../chunk-WNO2V53C.js";import"../../../../chunk-I3J63RFV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-3VYOLEQE.js";import"../../../../chunk-TR4OWSEX.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
1
+ import{a}from"../../../../chunk-32HWTEOM.js";import"../../../../chunk-4Q7NZI5A.js";import"../../../../chunk-MWVT5HYW.js";import"../../../../chunk-MNHZWEXI.js";import"../../../../chunk-3B3CJS5I.js";import"../../../../chunk-YN3NT2RC.js";import"../../../../chunk-LOTMFUSV.js";import"../../../../chunk-KEI3OJVP.js";import"../../../../chunk-JYWFR6VL.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-X5VBX2QA.js";import"../../../../chunk-4LTQEQ4O.js";import"../../../../chunk-Z5M2VWQZ.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-QKSN6ZYW.js";import"../../../../chunk-7IYSJGFF.js";import"../../../../chunk-KY4WH4ZK.js";import"../../../../chunk-7AP5E5CF.js";import"../../../../chunk-H4PXFC7T.js";import"../../../../chunk-EA5LKCRF.js";import"../../../../chunk-4Q5TSWQL.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-OSGXBBUJ.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-3FCN4NS6.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-XVOUKPGD.js";import"../../../../chunk-DPGUL2TW.js";import"../../../../chunk-C4G7OKJD.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-IN634BRF.js";import"../../../../chunk-7E4MJCVE.js";import"../../../../chunk-KI3VRWBP.js";import"../../../../chunk-GOBTF2ZH.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-YTJ3EPD3.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-UGJN5Q6Y.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-HJPAHR2V.js";import"../../../../chunk-VDE7IIYQ.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-6BVQSX7D.js";import"../../../../chunk-UYWRJHAJ.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-LD6ZCTZ3.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-FKGN6F3F.js";import"../../../../chunk-L4DFMMOI.js";import"../../../../chunk-WNO2V53C.js";import"../../../../chunk-I3J63RFV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-3VYOLEQE.js";import"../../../../chunk-TR4OWSEX.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../../../chunk-3EEH3A27.js";import"../../../../chunk-IQIUFTR6.js";import"../../../../chunk-FICC6IFE.js";import"../../../../chunk-R43LXE66.js";import"../../../../chunk-KOYBR5MV.js";import"../../../../chunk-M7QFZQ23.js";import"../../../../chunk-VXGXK66W.js";import"../../../../chunk-PG6XEOYF.js";import"../../../../chunk-7IRPE3M5.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-PQCALXSD.js";import"../../../../chunk-46U6C6C6.js";import"../../../../chunk-P2MVR6CG.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-DH5E6NM3.js";import"../../../../chunk-OERMQ2FP.js";import"../../../../chunk-LWF4EV22.js";import"../../../../chunk-KY36HSIB.js";import"../../../../chunk-525BMYNR.js";import"../../../../chunk-Q4TZD2M6.js";import"../../../../chunk-EZ5F4ZFY.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-3E3MCY5O.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-FQKURDZR.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-Q555FV2X.js";import"../../../../chunk-TQ7MHGY4.js";import"../../../../chunk-LIQSNIB3.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-RCYQPOJW.js";import"../../../../chunk-7E4MJCVE.js";import"../../../../chunk-BPVXYM6G.js";import"../../../../chunk-WXT5AKZV.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-YTJ3EPD3.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-MQZPASSP.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-PQH4U2XV.js";import"../../../../chunk-ZZ7SOJHH.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-J7ZG6SO3.js";import"../../../../chunk-3F42A3XV.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-LD6ZCTZ3.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-2R2PKQQV.js";import"../../../../chunk-QLHPTMIH.js";import"../../../../chunk-WNO2V53C.js";import"../../../../chunk-I3J63RFV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-3VYOLEQE.js";import"../../../../chunk-TR4OWSEX.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
1
+ import{a}from"../../../../chunk-SZLNUMWO.js";import"../../../../chunk-4Q7NZI5A.js";import"../../../../chunk-MWVT5HYW.js";import"../../../../chunk-MNHZWEXI.js";import"../../../../chunk-3B3CJS5I.js";import"../../../../chunk-YN3NT2RC.js";import"../../../../chunk-LOTMFUSV.js";import"../../../../chunk-KEI3OJVP.js";import"../../../../chunk-JYWFR6VL.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-X5VBX2QA.js";import"../../../../chunk-4LTQEQ4O.js";import"../../../../chunk-Z5M2VWQZ.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-QKSN6ZYW.js";import"../../../../chunk-7IYSJGFF.js";import"../../../../chunk-KY4WH4ZK.js";import"../../../../chunk-7AP5E5CF.js";import"../../../../chunk-H4PXFC7T.js";import"../../../../chunk-EA5LKCRF.js";import"../../../../chunk-4Q5TSWQL.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-OSGXBBUJ.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-3FCN4NS6.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-XVOUKPGD.js";import"../../../../chunk-DPGUL2TW.js";import"../../../../chunk-C4G7OKJD.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-IN634BRF.js";import"../../../../chunk-7E4MJCVE.js";import"../../../../chunk-KI3VRWBP.js";import"../../../../chunk-GOBTF2ZH.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-YTJ3EPD3.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-UGJN5Q6Y.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-HJPAHR2V.js";import"../../../../chunk-VDE7IIYQ.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-6BVQSX7D.js";import"../../../../chunk-UYWRJHAJ.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-LD6ZCTZ3.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-FKGN6F3F.js";import"../../../../chunk-L4DFMMOI.js";import"../../../../chunk-WNO2V53C.js";import"../../../../chunk-I3J63RFV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-3VYOLEQE.js";import"../../../../chunk-TR4OWSEX.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
@@ -1 +1 @@
1
- import{a}from"../../../../chunk-EMRUM6AA.js";import"../../../../chunk-IQIUFTR6.js";import"../../../../chunk-FICC6IFE.js";import"../../../../chunk-R43LXE66.js";import"../../../../chunk-KOYBR5MV.js";import"../../../../chunk-M7QFZQ23.js";import"../../../../chunk-VXGXK66W.js";import"../../../../chunk-PG6XEOYF.js";import"../../../../chunk-7IRPE3M5.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-PQCALXSD.js";import"../../../../chunk-46U6C6C6.js";import"../../../../chunk-P2MVR6CG.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-DH5E6NM3.js";import"../../../../chunk-OERMQ2FP.js";import"../../../../chunk-LWF4EV22.js";import"../../../../chunk-KY36HSIB.js";import"../../../../chunk-525BMYNR.js";import"../../../../chunk-Q4TZD2M6.js";import"../../../../chunk-EZ5F4ZFY.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-3E3MCY5O.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-FQKURDZR.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-Q555FV2X.js";import"../../../../chunk-TQ7MHGY4.js";import"../../../../chunk-LIQSNIB3.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-RCYQPOJW.js";import"../../../../chunk-7E4MJCVE.js";import"../../../../chunk-BPVXYM6G.js";import"../../../../chunk-WXT5AKZV.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-YTJ3EPD3.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-MQZPASSP.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-PQH4U2XV.js";import"../../../../chunk-ZZ7SOJHH.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-J7ZG6SO3.js";import"../../../../chunk-3F42A3XV.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-LD6ZCTZ3.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-2R2PKQQV.js";import"../../../../chunk-QLHPTMIH.js";import"../../../../chunk-WNO2V53C.js";import"../../../../chunk-I3J63RFV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-3VYOLEQE.js";import"../../../../chunk-TR4OWSEX.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};
1
+ import{a}from"../../../../chunk-A75SA57D.js";import"../../../../chunk-4Q7NZI5A.js";import"../../../../chunk-MWVT5HYW.js";import"../../../../chunk-MNHZWEXI.js";import"../../../../chunk-3B3CJS5I.js";import"../../../../chunk-YN3NT2RC.js";import"../../../../chunk-LOTMFUSV.js";import"../../../../chunk-KEI3OJVP.js";import"../../../../chunk-JYWFR6VL.js";import"../../../../chunk-YLQ3LNNY.js";import"../../../../chunk-VJEKDBGZ.js";import"../../../../chunk-X5VBX2QA.js";import"../../../../chunk-4LTQEQ4O.js";import"../../../../chunk-Z5M2VWQZ.js";import"../../../../chunk-IWOTLFOY.js";import"../../../../chunk-FFSDGRAN.js";import"../../../../chunk-QKSN6ZYW.js";import"../../../../chunk-7IYSJGFF.js";import"../../../../chunk-KY4WH4ZK.js";import"../../../../chunk-7AP5E5CF.js";import"../../../../chunk-H4PXFC7T.js";import"../../../../chunk-EA5LKCRF.js";import"../../../../chunk-4Q5TSWQL.js";import"../../../../chunk-LFOBYEWG.js";import"../../../../chunk-OSGXBBUJ.js";import"../../../../chunk-ZDF5N422.js";import"../../../../chunk-3FCN4NS6.js";import"../../../../chunk-MPW2YJWU.js";import"../../../../chunk-XVOUKPGD.js";import"../../../../chunk-DPGUL2TW.js";import"../../../../chunk-C4G7OKJD.js";import"../../../../chunk-T7KHS6RF.js";import"../../../../chunk-IN634BRF.js";import"../../../../chunk-7E4MJCVE.js";import"../../../../chunk-KI3VRWBP.js";import"../../../../chunk-GOBTF2ZH.js";import"../../../../chunk-5HBIIYSK.js";import"../../../../chunk-GB3YC4TI.js";import"../../../../chunk-YTJ3EPD3.js";import"../../../../chunk-YRHFPXC3.js";import"../../../../chunk-UGJN5Q6Y.js";import"../../../../chunk-RJ5VF3QY.js";import"../../../../chunk-7UNQOKZW.js";import"../../../../chunk-HJPAHR2V.js";import"../../../../chunk-VDE7IIYQ.js";import"../../../../chunk-636CTEW7.js";import"../../../../chunk-6BVQSX7D.js";import"../../../../chunk-UYWRJHAJ.js";import"../../../../chunk-B4OMIONW.js";import"../../../../chunk-BOAGJ6P5.js";import"../../../../chunk-LD6ZCTZ3.js";import"../../../../chunk-JJZNUFPD.js";import"../../../../chunk-FKGN6F3F.js";import"../../../../chunk-L4DFMMOI.js";import"../../../../chunk-WNO2V53C.js";import"../../../../chunk-I3J63RFV.js";import"../../../../chunk-JD5P5RAJ.js";import"../../../../chunk-3VYOLEQE.js";import"../../../../chunk-TR4OWSEX.js";import"../../../../chunk-ZGASBRSQ.js";import"../../../../chunk-I5A6BPCP.js";import"../../../../chunk-CX5CC6P5.js";import"../../../../chunk-IGE4Y5SE.js";import"../../../../chunk-JFBCE4HN.js";import"../../../../chunk-VKWPEFWQ.js";export{a as default};