shopify 4.9.0 → 4.9.2

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 (353) hide show
  1. package/dist/analytics-H2ANKZ2S.js +1 -0
  2. package/dist/analytics-Q6HJRPRX.js +1 -0
  3. package/dist/assets/hydrogen/starter/CHANGELOG.md +14 -0
  4. package/dist/assets/hydrogen/starter/package.json +2 -2
  5. package/dist/bootstrap.js +1 -1
  6. package/dist/chunk-246AZCDT.js +1 -0
  7. package/dist/{chunk-VZUHMW5E.js → chunk-2NMICU24.js} +1 -1
  8. package/dist/{chunk-Y5ZN62VF.js → chunk-2P5DUPT7.js} +1 -1
  9. package/dist/{chunk-SGBLCVUX.js → chunk-2R2PKQQV.js} +1 -1
  10. package/dist/{chunk-BL5JWD3Y.js → chunk-2VDCTMLY.js} +1 -1
  11. package/dist/{chunk-ECEOBSGD.js → chunk-2X3HYG4B.js} +1 -1
  12. package/dist/{chunk-23K3B23N.js → chunk-3ATOVFLZ.js} +1 -1
  13. package/dist/{chunk-L5XWYTHY.js → chunk-3E3MCY5O.js} +3 -3
  14. package/dist/{chunk-S7536EWZ.js → chunk-3EEH3A27.js} +1 -1
  15. package/dist/{chunk-YJWNM4XO.js → chunk-3F42A3XV.js} +2 -2
  16. package/dist/{chunk-ZUVAHONX.js → chunk-3NRGGEGU.js} +1 -1
  17. package/dist/{chunk-CSRNHTHO.js → chunk-3NUQGW57.js} +1 -1
  18. package/dist/{chunk-72HS7MHV.js → chunk-3U2MYUWG.js} +1 -1
  19. package/dist/{chunk-PXXTSW6I.js → chunk-3ZL4TDTH.js} +1 -1
  20. package/dist/{chunk-2W6M7YDY.js → chunk-4565O5TG.js} +1 -1
  21. package/dist/{chunk-5HONV6NQ.js → chunk-46U6C6C6.js} +1 -1
  22. package/dist/{chunk-E5ND6RBL.js → chunk-4QEALPWD.js} +1 -1
  23. package/dist/{chunk-QJST4LZX.js → chunk-4S2WKMLJ.js} +1 -1
  24. package/dist/{chunk-N56BJ3F7.js → chunk-4TF7ER72.js} +1 -1
  25. package/dist/{chunk-6RBCFXJT.js → chunk-525BMYNR.js} +1 -1
  26. package/dist/{chunk-OASB6XPV.js → chunk-55QTRPZ2.js} +1 -1
  27. package/dist/{chunk-SXPWOYLT.js → chunk-5BO5HCN6.js} +1 -1
  28. package/dist/{chunk-GDQLA5NB.js → chunk-5JW2EYSE.js} +1 -1
  29. package/dist/{chunk-PBBZNGS4.js → chunk-5TQOMAJS.js} +1 -1
  30. package/dist/{chunk-CACPRKUF.js → chunk-65I35VBS.js} +1 -1
  31. package/dist/{chunk-D3K42KBL.js → chunk-6H3HVSO5.js} +1 -1
  32. package/dist/{chunk-3DMDSAWK.js → chunk-6NLGZGYE.js} +1 -1
  33. package/dist/{chunk-DKJPE42V.js → chunk-6SO5GA6P.js} +1 -1
  34. package/dist/{chunk-VFP3PUGZ.js → chunk-7ARGLS6W.js} +3 -3
  35. package/dist/chunk-7E4MJCVE.js +10 -0
  36. package/dist/{chunk-OG7SF4FU.js → chunk-7EDXMGBQ.js} +1 -1
  37. package/dist/{chunk-YAH5WFYR.js → chunk-7GJYJ6DU.js} +1 -1
  38. package/dist/{chunk-LV2IWYGL.js → chunk-7IRPE3M5.js} +1 -1
  39. package/dist/{chunk-OETFY7FE.js → chunk-7MMPQMU7.js} +1 -1
  40. package/dist/{chunk-BOFCBTX7.js → chunk-7ZNR4YL4.js} +1 -1
  41. package/dist/{chunk-NTVEJYKI.js → chunk-AKP4QAGL.js} +1 -1
  42. package/dist/{chunk-I4FGM6UH.js → chunk-ANHSOQTZ.js} +1 -1
  43. package/dist/{chunk-77B77IGP.js → chunk-AVOSD4NV.js} +1 -1
  44. package/dist/{chunk-TJJVX7CU.js → chunk-B477XHLZ.js} +1 -1
  45. package/dist/{chunk-7DRKDQRT.js → chunk-BK4VCXDD.js} +1 -1
  46. package/dist/{chunk-55PABKRC.js → chunk-BLBJT7BM.js} +1 -1
  47. package/dist/{chunk-YBQKJHZW.js → chunk-BLCR7BXU.js} +1 -1
  48. package/dist/{chunk-53U6XS3J.js → chunk-BPVXYM6G.js} +1 -1
  49. package/dist/{chunk-WPUQTUDX.js → chunk-BVR3GF2L.js} +1 -1
  50. package/dist/{chunk-MRVQ6XRW.js → chunk-BVVYKX4D.js} +1 -1
  51. package/dist/{chunk-XTYSJIZY.js → chunk-C4GEP3CX.js} +1 -1
  52. package/dist/{chunk-RHNFWHFY.js → chunk-CDIKRQ6M.js} +1 -1
  53. package/dist/{chunk-LSWFHTJT.js → chunk-CGH5Y6XE.js} +1 -1
  54. package/dist/{chunk-44QTWXOJ.js → chunk-CHRFYG6W.js} +1 -1
  55. package/dist/{chunk-B4RPJYDH.js → chunk-CNAMKKAK.js} +1 -1
  56. package/dist/{chunk-PGTKKP2B.js → chunk-D2S566HF.js} +1 -1
  57. package/dist/{chunk-MVVHISCR.js → chunk-DGOBYP74.js} +1 -1
  58. package/dist/{chunk-NYABB6XW.js → chunk-DH5E6NM3.js} +1 -1
  59. package/dist/{chunk-LOTGSNS5.js → chunk-DTGIMRBX.js} +1 -1
  60. package/dist/chunk-DV77BSKW.js +1 -0
  61. package/dist/{chunk-YQQHBFMA.js → chunk-E64OFJHF.js} +1 -1
  62. package/dist/{chunk-N4DE5H65.js → chunk-EGJQEKAO.js} +1 -1
  63. package/dist/{chunk-7Y4X5I6N.js → chunk-EJY4LA2S.js} +1 -1
  64. package/dist/{chunk-LYPNQFWX.js → chunk-ELJ34WWD.js} +1 -1
  65. package/dist/{chunk-5BLXN5WU.js → chunk-ELQ5NPPB.js} +1 -1
  66. package/dist/{chunk-XFZDFDZV.js → chunk-EMKLN75K.js} +1 -1
  67. package/dist/{chunk-QTEWTPAQ.js → chunk-EMRUM6AA.js} +1 -1
  68. package/dist/{chunk-4XSYMLQG.js → chunk-EP5HIGAL.js} +1 -1
  69. package/dist/{chunk-IWML2HLC.js → chunk-ER7ZTF26.js} +1 -1
  70. package/dist/{chunk-VFO5OYQ4.js → chunk-EXKTQF26.js} +1 -1
  71. package/dist/{chunk-FW5HGFSZ.js → chunk-EZ5F4ZFY.js} +3 -3
  72. package/dist/{chunk-3AASYIOA.js → chunk-FICC6IFE.js} +1 -1
  73. package/dist/{chunk-QSKOR3ED.js → chunk-FNKTF2OF.js} +1 -1
  74. package/dist/{chunk-6GA56I3E.js → chunk-FQKURDZR.js} +1 -1
  75. package/dist/{chunk-SDFO7P2M.js → chunk-FU4UVINZ.js} +1 -1
  76. package/dist/{chunk-CHLSNYF7.js → chunk-G627WGIC.js} +2 -2
  77. package/dist/{chunk-FL34EOXG.js → chunk-GPJJA3FX.js} +1 -1
  78. package/dist/{chunk-PXD2WJOI.js → chunk-GS52MX5F.js} +1 -1
  79. package/dist/{chunk-ZPCCSPAE.js → chunk-HKZ75UKL.js} +1 -1
  80. package/dist/chunk-HVU3D3ZU.js +275 -0
  81. package/dist/{chunk-BPIQ4YTW.js → chunk-HYC3JXR4.js} +1 -1
  82. package/dist/{chunk-JOJRABPY.js → chunk-HZJHGHLN.js} +1 -1
  83. package/dist/{chunk-NF7MOA4K.js → chunk-I2LILWDI.js} +1 -1
  84. package/dist/{chunk-JA2QZ635.js → chunk-I3J63RFV.js} +1 -1
  85. package/dist/{chunk-GALDYSEX.js → chunk-I55L6FOM.js} +1 -1
  86. package/dist/{chunk-5HEBS5DG.js → chunk-IESHPQLC.js} +1 -1
  87. package/dist/{chunk-ET2CGROE.js → chunk-IGE4Y5SE.js} +1 -1
  88. package/dist/{chunk-QILWHHAQ.js → chunk-IJLD5UYC.js} +1 -1
  89. package/dist/{chunk-IISE7SBT.js → chunk-IOS4IDZ2.js} +1 -1
  90. package/dist/{chunk-HSZC2LBB.js → chunk-IQIUFTR6.js} +1 -1
  91. package/dist/{chunk-WU7MSL3I.js → chunk-J66WAKXN.js} +1 -1
  92. package/dist/{chunk-BJOJNAKH.js → chunk-J7ZG6SO3.js} +1 -1
  93. package/dist/{chunk-PK4ID32C.js → chunk-JAX56OYG.js} +1 -1
  94. package/dist/{chunk-R757TSQ6.js → chunk-JAY7AGAG.js} +1 -1
  95. package/dist/{chunk-SJARQZVN.js → chunk-JCKA3O5A.js} +1 -1
  96. package/dist/{chunk-YD66PU3Y.js → chunk-JCO2SDDR.js} +1 -1
  97. package/dist/{chunk-TOLPNBZK.js → chunk-JFBCE4HN.js} +1 -1
  98. package/dist/{chunk-OM243CQ6.js → chunk-JJHJYBPQ.js} +1 -1
  99. package/dist/{chunk-Z35PUKKP.js → chunk-JKWB7WTO.js} +1 -1
  100. package/dist/{chunk-ASUARYJD.js → chunk-JLGXJHPX.js} +1 -1
  101. package/dist/{chunk-TSLZNTFM.js → chunk-JUCOIXG5.js} +1 -1
  102. package/dist/{chunk-HSTNTHWM.js → chunk-JUVJNIEA.js} +1 -1
  103. package/dist/{chunk-GJJBOCKD.js → chunk-JWDR66AS.js} +1 -1
  104. package/dist/chunk-KOYBR5MV.js +1 -0
  105. package/dist/{chunk-7IGMIDKK.js → chunk-KPNUSDCW.js} +1 -1
  106. package/dist/{chunk-7ZSN2QT5.js → chunk-KY36HSIB.js} +1 -1
  107. package/dist/{chunk-2OHSGC4Q.js → chunk-KYBZ2MBA.js} +1 -1
  108. package/dist/{chunk-74HXMIDM.js → chunk-LIQSNIB3.js} +1 -1
  109. package/dist/{chunk-KLYJDAP6.js → chunk-LWF4EV22.js} +1 -1
  110. package/dist/{chunk-3T2WMZHC.js → chunk-M7QFZQ23.js} +1 -1
  111. package/dist/{chunk-KVROYIUQ.js → chunk-MHZSSRHP.js} +1 -1
  112. package/dist/{chunk-TNXZWQZU.js → chunk-MIP2Y34N.js} +1 -1
  113. package/dist/{chunk-WCAGYCT7.js → chunk-MP5NZL7C.js} +1 -1
  114. package/dist/{chunk-5RL6DKWR.js → chunk-MQZPASSP.js} +1 -1
  115. package/dist/{chunk-3ZK5JZLY.js → chunk-MW3HFOPD.js} +1 -1
  116. package/dist/{chunk-EYSZRIUL.js → chunk-N4AR2B6D.js} +1 -1
  117. package/dist/{chunk-UFU2LGFK.js → chunk-NDMISEDF.js} +1 -1
  118. package/dist/{chunk-CPFAATMO.js → chunk-NLKO2J7T.js} +1 -1
  119. package/dist/{chunk-VDDNDA5K.js → chunk-NS4FUSSK.js} +1 -1
  120. package/dist/{chunk-PZHE37Z4.js → chunk-OCQZ2ULI.js} +1 -1
  121. package/dist/{chunk-4A7FPJVT.js → chunk-OERMQ2FP.js} +1 -1
  122. package/dist/{chunk-T234RERA.js → chunk-OIQVPTNQ.js} +1 -1
  123. package/dist/{chunk-G7OIACY5.js → chunk-OMEWUFUL.js} +1 -1
  124. package/dist/{chunk-O6E7YL7N.js → chunk-OXN2DID2.js} +1 -1
  125. package/dist/{chunk-IBTQO3JD.js → chunk-P2MVR6CG.js} +107 -107
  126. package/dist/{chunk-E75DJTAF.js → chunk-P6TOIMMF.js} +1 -1
  127. package/dist/{chunk-6IL3B5Z5.js → chunk-PFIQR7XS.js} +1 -1
  128. package/dist/{chunk-2KLXRVGQ.js → chunk-PG6XEOYF.js} +38 -38
  129. package/dist/{chunk-Q34PKJRR.js → chunk-PGE4HGLA.js} +1 -1
  130. package/dist/{chunk-ZHJ6KA43.js → chunk-PI6FLLDD.js} +1 -1
  131. package/dist/{chunk-HDQXFGYG.js → chunk-PIZDYS7T.js} +60 -60
  132. package/dist/{chunk-Q45XAEG2.js → chunk-PQCALXSD.js} +1 -1
  133. package/dist/{chunk-G54BKNIX.js → chunk-PQH4U2XV.js} +1 -1
  134. package/dist/{chunk-ZSJXZCAW.js → chunk-PQMKPXFV.js} +1 -1
  135. package/dist/{chunk-LQLFMDVD.js → chunk-PV5C6Q2P.js} +1 -1
  136. package/dist/{chunk-CMICT4XI.js → chunk-PYILLIGT.js} +1 -1
  137. package/dist/{chunk-55NKAIIT.js → chunk-Q26ES5T3.js} +1 -1
  138. package/dist/{chunk-DGMRL5DQ.js → chunk-Q4TZD2M6.js} +1 -1
  139. package/dist/{chunk-QAXFCAOV.js → chunk-Q555FV2X.js} +1 -1
  140. package/dist/{chunk-YX5GRXRS.js → chunk-Q7PF4VKI.js} +23 -23
  141. package/dist/{chunk-PVOWU77O.js → chunk-QA2NOPXG.js} +1 -1
  142. package/dist/{chunk-5XO6PAMV.js → chunk-QLHPTMIH.js} +1 -1
  143. package/dist/{chunk-7QQPAT4L.js → chunk-QMJZFKKU.js} +1 -1
  144. package/dist/{chunk-3SG5EJFC.js → chunk-QN6SITWN.js} +1 -1
  145. package/dist/{chunk-JROJL6RV.js → chunk-R43LXE66.js} +1 -1
  146. package/dist/chunk-R6IJRVVM.js +70 -0
  147. package/dist/{chunk-XBSWZ6BT.js → chunk-RAQP66LR.js} +1 -1
  148. package/dist/{chunk-Z3XIZMEM.js → chunk-RBPMV3KB.js} +1 -1
  149. package/dist/{chunk-SKRUMRB4.js → chunk-RCYQPOJW.js} +88 -88
  150. package/dist/{chunk-ZSVR5NEO.js → chunk-RDO5IWB5.js} +1 -1
  151. package/dist/{chunk-A54V5UCD.js → chunk-RGZCV56L.js} +1 -1
  152. package/dist/{chunk-ZVDFCUJT.js → chunk-RW2MONAS.js} +1 -1
  153. package/dist/{chunk-2LZQM5JG.js → chunk-RY6TZDVV.js} +1 -1
  154. package/dist/{chunk-2YRVHJEY.js → chunk-SDHDDNKM.js} +1 -1
  155. package/dist/{chunk-AD4S2VEI.js → chunk-SHBB5GST.js} +1 -1
  156. package/dist/{chunk-JWDUSMCA.js → chunk-SQIESCOJ.js} +1 -1
  157. package/dist/{chunk-I7GYNNCU.js → chunk-SRDKLZ4O.js} +1 -1
  158. package/dist/{chunk-QQN4PJZD.js → chunk-SWNY3RUM.js} +1 -1
  159. package/dist/{chunk-RCIU7NHA.js → chunk-SYNCIFJ6.js} +1 -1
  160. package/dist/{chunk-C6FZII5S.js → chunk-SZ2JOXTG.js} +1 -1
  161. package/dist/{chunk-AS2O62JX.js → chunk-T3JUBPBU.js} +1 -1
  162. package/dist/{chunk-TO7TXDLU.js → chunk-T6TYF72N.js} +1 -1
  163. package/dist/{chunk-5BYVVXGD.js → chunk-TEASB2WU.js} +1 -1
  164. package/dist/{chunk-6DHY67FO.js → chunk-THW6UDZH.js} +1 -1
  165. package/dist/{chunk-22LJALHJ.js → chunk-TPPBEVNQ.js} +1 -1
  166. package/dist/chunk-TQ7MHGY4.js +1 -0
  167. package/dist/{chunk-LQ7ENG4V.js → chunk-TQ7URMGS.js} +1 -1
  168. package/dist/{chunk-ADW7ECNU.js → chunk-TUE67I2F.js} +1 -1
  169. package/dist/{chunk-P3Z5RLVV.js → chunk-TWS34WUT.js} +1 -1
  170. package/dist/{chunk-QBGSSUJP.js → chunk-U5L2P36D.js} +1 -1
  171. package/dist/{chunk-ZO4IBP4B.js → chunk-UB2LAIXS.js} +1 -1
  172. package/dist/{chunk-4Y22EM45.js → chunk-UMSO6MOI.js} +1 -1
  173. package/dist/{chunk-Q3O3AFZT.js → chunk-UOKX3AME.js} +1 -1
  174. package/dist/{chunk-2Q3WIH7S.js → chunk-UVC3IXM3.js} +1 -1
  175. package/dist/chunk-UWHAOGO4.js +4 -0
  176. package/dist/{chunk-OBYY45BX.js → chunk-UYRXUGLY.js} +1 -1
  177. package/dist/{chunk-JTPVSO6Y.js → chunk-VXGXK66W.js} +1 -1
  178. package/dist/{chunk-JQKB3D37.js → chunk-VZLEYZLX.js} +1 -1
  179. package/dist/{chunk-2YFB3PTV.js → chunk-W56I6HOT.js} +1 -1
  180. package/dist/{chunk-7HDJBEBP.js → chunk-WINVPFT5.js} +1 -1
  181. package/dist/{chunk-SDJNAUU6.js → chunk-WNE2MZAZ.js} +1 -1
  182. package/dist/{chunk-OEZATTOS.js → chunk-WXT5AKZV.js} +1 -1
  183. package/dist/{chunk-W7CBJNXD.js → chunk-WZEKBD7B.js} +1 -1
  184. package/dist/{chunk-IUZZWXJG.js → chunk-X6HLGOIV.js} +1 -1
  185. package/dist/{chunk-4WACZNFF.js → chunk-XE5QH4D7.js} +1 -1
  186. package/dist/{chunk-XCNJL7ES.js → chunk-XRJ2GQ24.js} +1 -1
  187. package/dist/{chunk-3WVEL423.js → chunk-XTKXBQVA.js} +1 -1
  188. package/dist/{chunk-6ILP6QCH.js → chunk-YIV3CWED.js} +1 -1
  189. package/dist/{chunk-GVRFO4CV.js → chunk-YKYJOUV7.js} +1 -1
  190. package/dist/{chunk-DYA5UUXL.js → chunk-YXKMPCFH.js} +1 -1
  191. package/dist/{chunk-NGN7U2UF.js → chunk-Z57YWHOE.js} +1 -1
  192. package/dist/{chunk-4TQFTZVD.js → chunk-Z5SFLTH6.js} +1 -1
  193. package/dist/{chunk-QWDJRSJJ.js → chunk-ZJ4H3XEL.js} +1 -1
  194. package/dist/{chunk-FCULF3JA.js → chunk-ZZ7SOJHH.js} +1 -1
  195. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  196. package/dist/cli/commands/app/build.js +1 -1
  197. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  198. package/dist/cli/commands/app/bulk/execute.js +1 -1
  199. package/dist/cli/commands/app/bulk/status.js +1 -1
  200. package/dist/cli/commands/app/config/link.js +1 -1
  201. package/dist/cli/commands/app/config/pull.js +1 -1
  202. package/dist/cli/commands/app/config/use.js +1 -1
  203. package/dist/cli/commands/app/config/validate.js +1 -1
  204. package/dist/cli/commands/app/demo/watcher.js +1 -1
  205. package/dist/cli/commands/app/deploy.js +1 -1
  206. package/dist/cli/commands/app/dev/clean.js +1 -1
  207. package/dist/cli/commands/app/dev.js +1 -1
  208. package/dist/cli/commands/app/env/pull.js +1 -1
  209. package/dist/cli/commands/app/env/show.js +1 -1
  210. package/dist/cli/commands/app/execute.js +1 -1
  211. package/dist/cli/commands/app/function/build.js +1 -1
  212. package/dist/cli/commands/app/function/info.js +1 -1
  213. package/dist/cli/commands/app/function/replay.js +1 -1
  214. package/dist/cli/commands/app/function/run.js +1 -1
  215. package/dist/cli/commands/app/function/schema.js +1 -1
  216. package/dist/cli/commands/app/function/typegen.js +1 -1
  217. package/dist/cli/commands/app/generate/extension.js +1 -1
  218. package/dist/cli/commands/app/graphiql.js +1 -1
  219. package/dist/cli/commands/app/import/channel-config.js +1 -1
  220. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  221. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  222. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  223. package/dist/cli/commands/app/import-extensions.js +1 -1
  224. package/dist/cli/commands/app/info.js +1 -1
  225. package/dist/cli/commands/app/init.js +1 -1
  226. package/dist/cli/commands/app/logs.js +1 -1
  227. package/dist/cli/commands/app/release.js +1 -1
  228. package/dist/cli/commands/app/security/check.js +1 -1
  229. package/dist/cli/commands/app/security/clean.js +1 -1
  230. package/dist/cli/commands/app/security/instructions.js +1 -1
  231. package/dist/cli/commands/app/security/record.js +1 -1
  232. package/dist/cli/commands/app/security/review.js +1 -1
  233. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  234. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  235. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  236. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  237. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  238. package/dist/cli/commands/app/versions/list.js +1 -1
  239. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  240. package/dist/cli/commands/auth/login.js +1 -1
  241. package/dist/cli/commands/auth/logout.js +1 -1
  242. package/dist/cli/commands/cache/clear.js +1 -1
  243. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  244. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  245. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  246. package/dist/cli/commands/debug/command-flags.js +1 -1
  247. package/dist/cli/commands/doc/fetch.js +1 -1
  248. package/dist/cli/commands/doc/search.js +1 -1
  249. package/dist/cli/commands/docs/generate.js +1 -1
  250. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  251. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  252. package/dist/cli/commands/help.js +1 -1
  253. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  254. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  255. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  256. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  257. package/dist/cli/commands/notifications/generate.js +1 -1
  258. package/dist/cli/commands/notifications/list.js +1 -1
  259. package/dist/cli/commands/organization/list.js +1 -1
  260. package/dist/cli/commands/search.js +1 -1
  261. package/dist/cli/commands/send-analytics.js +1 -1
  262. package/dist/cli/commands/theme/check.js +1 -1
  263. package/dist/cli/commands/theme/console.js +1 -1
  264. package/dist/cli/commands/theme/delete.js +1 -1
  265. package/dist/cli/commands/theme/dev.js +1 -1
  266. package/dist/cli/commands/theme/duplicate.js +1 -1
  267. package/dist/cli/commands/theme/info.js +1 -1
  268. package/dist/cli/commands/theme/init.js +1 -1
  269. package/dist/cli/commands/theme/language-server.js +1 -1
  270. package/dist/cli/commands/theme/list.js +1 -1
  271. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  272. package/dist/cli/commands/theme/open.js +1 -1
  273. package/dist/cli/commands/theme/package.js +1 -1
  274. package/dist/cli/commands/theme/preview.js +1 -1
  275. package/dist/cli/commands/theme/profile.js +1 -1
  276. package/dist/cli/commands/theme/publish.js +1 -1
  277. package/dist/cli/commands/theme/pull.js +1 -1
  278. package/dist/cli/commands/theme/push.js +1 -1
  279. package/dist/cli/commands/theme/rename.js +1 -1
  280. package/dist/cli/commands/theme/share.js +1 -1
  281. package/dist/cli/commands/upgrade.js +1 -1
  282. package/dist/cli/commands/version.js +1 -1
  283. package/dist/cli/help.js +1 -1
  284. package/dist/{command-json-schema-Y3N2NUZN.js → command-json-schema-HYYJSZAH.js} +1 -1
  285. package/dist/command-registry.js +1 -1
  286. package/dist/{conf-store-5ZA3ILWV.js → conf-store-CDZ5YSQM.js} +1 -1
  287. package/dist/{custom-oclif-loader-VQKMCXNH.js → custom-oclif-loader-NVOK22CJ.js} +1 -1
  288. package/dist/{deprecations-PFQXWNF6.js → deprecations-33DG6ZUL.js} +1 -1
  289. package/dist/dist-DODCXJ2A.js +1 -0
  290. package/dist/dist-YXMAKIFS.js +1 -0
  291. package/dist/environments-KBRQNE4R.js +1 -0
  292. package/dist/{error-FBSXLW22.js → error-V77H2UYX.js} +1 -1
  293. package/dist/error-handler-JY3ZKE2G.js +1 -0
  294. package/dist/{fs-ZLV5W4TV.js → fs-SKH3XZU7.js} +1 -1
  295. package/dist/hooks/did-you-mean.js +1 -1
  296. package/dist/hooks/hydrogen-init.js +1 -1
  297. package/dist/hooks/plugin-plugins.js +1 -1
  298. package/dist/hooks/postrun.js +1 -1
  299. package/dist/hooks/prerun.js +1 -1
  300. package/dist/hooks/public-metadata.js +1 -1
  301. package/dist/hooks/sensitive-metadata.js +1 -1
  302. package/dist/hooks/tunnel-provider.js +1 -1
  303. package/dist/hooks/tunnel-start.js +1 -1
  304. package/dist/index.js +1 -1
  305. package/dist/is-global-2G4BLF7H.js +1 -0
  306. package/dist/{json-error-2BL3UZ7H.js → json-error-WSMAL66C.js} +1 -1
  307. package/dist/lib-55QUD4AJ.js +1 -0
  308. package/dist/lib-PH52G55H.js +1 -0
  309. package/dist/lib-TYM5B75S.js +1 -0
  310. package/dist/{local-KAZJAYLX.js → local-G2Z24BHM.js} +1 -1
  311. package/dist/{metadata-M3ZE24WB.js → metadata-Y3RKC4P2.js} +1 -1
  312. package/dist/{morph-42EXMN3K.js → morph-BABFBRSW.js} +1 -1
  313. package/dist/{node-package-manager-RVPONQBY.js → node-package-manager-A7HTBJKY.js} +1 -1
  314. package/dist/notifications-system-E64OSVXF.js +1 -0
  315. package/dist/os-7VQXVZWF.js +1 -0
  316. package/dist/{output-SDE274Y5.js → output-ZFFHJGNK.js} +1 -1
  317. package/dist/system-ZLITSFDC.js +1 -0
  318. package/dist/tsconfig.tsbuildinfo +1 -1
  319. package/dist/typescript-ISACCMJN.js +1 -0
  320. package/dist/ui-YSFALYSL.js +1 -0
  321. package/dist/upgrade-I4JTR4LA.js +1 -0
  322. package/dist/version-AOVO47AW.js +1 -0
  323. package/dist/version-LQV54JBC.js +1 -0
  324. package/dist/{workerd-WRW4ZUYM.js → workerd-RNDPF36Q.js} +1 -1
  325. package/oclif.manifest.json +2 -2
  326. package/package.json +8 -8
  327. package/dist/analytics-QK4RFCB6.js +0 -1
  328. package/dist/analytics-R6I5APDB.js +0 -1
  329. package/dist/chunk-7Y7AZRL3.js +0 -10
  330. package/dist/chunk-F3TMLDLC.js +0 -1
  331. package/dist/chunk-GQZPGTG7.js +0 -278
  332. package/dist/chunk-RGIUP4FW.js +0 -1
  333. package/dist/chunk-SW5EWGBJ.js +0 -12
  334. package/dist/chunk-TMV37ENR.js +0 -64
  335. package/dist/chunk-WXV35TPE.js +0 -1
  336. package/dist/chunk-YGFEUXKQ.js +0 -1
  337. package/dist/chunk-ZOYSMJ27.js +0 -1
  338. package/dist/dist-4X53WJBQ.js +0 -1
  339. package/dist/dist-5M2V3YCM.js +0 -1
  340. package/dist/environments-3RUZ7F4Q.js +0 -1
  341. package/dist/error-handler-D5BURRJ7.js +0 -1
  342. package/dist/is-global-GZ5CIXQA.js +0 -1
  343. package/dist/lib-AD2G3QH3.js +0 -1
  344. package/dist/lib-VEVNMHDE.js +0 -1
  345. package/dist/lib-ZQW4E7QU.js +0 -1
  346. package/dist/notifications-system-MYEMV7JF.js +0 -1
  347. package/dist/os-DRUILZZR.js +0 -1
  348. package/dist/system-5FQ3L5PA.js +0 -1
  349. package/dist/typescript-5R4Y7PXE.js +0 -1
  350. package/dist/ui-TEZZM7SE.js +0 -1
  351. package/dist/upgrade-3PIVJYBL.js +0 -1
  352. package/dist/version-FMWTVLMF.js +0 -1
  353. package/dist/version-IAMVSP7U.js +0 -1
@@ -1,4 +1,4 @@
1
- import{c as Ge}from"./chunk-KLYJDAP6.js";import{D as $e,E as He,H as te,L as D,X as Be,Z as E,_ as je,a as Pe,ca as b,da as K,e as qe,ga as V,ha as Ke,ia as A,j as Oe,k as ie,q as y,r as Me,s as ae,u as U}from"./chunk-L5XWYTHY.js";import{b as We}from"./chunk-ZDF5N422.js";import{w as oe}from"./chunk-6GA56I3E.js";import{b as Le}from"./chunk-QAXFCAOV.js";import{a as Ve}from"./chunk-RGIUP4FW.js";import{D as Je,E as Ze,F as Qe,I as Xe,J as en,T as nn,z as Ye}from"./chunk-SKRUMRB4.js";import{e as Ue,g as Ee}from"./chunk-YTJ3EPD3.js";import{a as we}from"./chunk-5RL6DKWR.js";import{i as c,l as T}from"./chunk-FCULF3JA.js";import{Cb as tn,Eb as P,Ib as on,Nb as se,R as C,X as W,Xa as ze,_a as Ce,b as t,ja as xe,qa as Re}from"./chunk-YJWNM4XO.js";import{i as re}from"./chunk-B4OMIONW.js";import{g as an}from"./chunk-SGBLCVUX.js";import{d as Ie,j}from"./chunk-3VYOLEQE.js";import{e as B,g as s}from"./chunk-VKWPEFWQ.js";s();function q(e,{httpsOnly:n=!1,message:i="Invalid URL"}={}){return e.refine(a=>de(a,n),{message:i}).refine(a=>!a.includes(`
1
+ import{c as Ge}from"./chunk-LWF4EV22.js";import{D as $e,E as He,H as te,L as D,X as Be,Z as E,_ as je,a as Pe,ca as b,da as K,e as qe,ga as V,ha as Ke,ia as A,j as Oe,k as ie,q as y,r as Me,s as ae,u as U}from"./chunk-3E3MCY5O.js";import{b as We}from"./chunk-ZDF5N422.js";import{w as oe}from"./chunk-FQKURDZR.js";import{b as Le}from"./chunk-Q555FV2X.js";import{a as Ve}from"./chunk-TQ7MHGY4.js";import{D as Je,E as Ze,F as Qe,I as Xe,J as en,T as nn,z as Ye}from"./chunk-RCYQPOJW.js";import{e as Ue,g as Ee}from"./chunk-YTJ3EPD3.js";import{a as we}from"./chunk-MQZPASSP.js";import{i as c,l as T}from"./chunk-ZZ7SOJHH.js";import{Cb as tn,Eb as P,Ib as on,Nb as se,R as C,X as W,Xa as ze,_a as Ce,b as t,ja as xe,qa as Re}from"./chunk-3F42A3XV.js";import{i as re}from"./chunk-B4OMIONW.js";import{g as an}from"./chunk-2R2PKQQV.js";import{d as Ie,j}from"./chunk-3VYOLEQE.js";import{e as B,g as s}from"./chunk-VKWPEFWQ.js";s();function q(e,{httpsOnly:n=!1,message:i="Invalid URL"}={}){return e.refine(a=>de(a,n),{message:i}).refine(a=>!a.includes(`
2
2
  `),{message:i})}function it(e,{message:n="URL must be HTTPS URL or start with /"}={}){return e.refine(i=>i.startsWith("/")||de(i,!0),{message:n})}var rn=/[\r\n\t]/;function sn(e){return de(e,!0)}function de(e,n){try{let i=new URL(e);return n?i.protocol==="https:":["http:","https:"].includes(i.protocol)}catch{return!1}}function at(e){return typeof e=="string"&&!e.startsWith("/")?`/${e}`:e}var wi=30;function tt(e){return e.length<=wi}s();s();s();function dn(e){return qe`
3
3
  query OrganizationBetaFlags($organizationId: OrganizationID!) {
4
4
  organization(organizationId: $organizationId) {
@@ -1 +1 @@
1
- import{g as b}from"./chunk-SGBLCVUX.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();import{performance as u}from"node:perf_hooks";function w(){return b()?"bubble":"mute-and-report"}function h(g={}){let i={sensitive:{},public:{...g}},p=t=>{Object.assign(i.public,t)},M=t=>{Object.assign(i.sensitive,t)},l=async(t,e,n)=>{let r=n==="auto"?w():n,s=async()=>{let c=await e();t(c)};if(r==="bubble")await s();else try{await s()}catch(c){let{sendErrorToBugsnag:o}=await import("./error-handler-D5BURRJ7.js");await o(c,"unexpected_error")}},a=[];return{getAllPublicMetadata:()=>({...i.public}),getAllSensitiveMetadata:()=>({...i.sensitive}),addPublicMetadata:async(t,e="auto")=>l(p,t,e),addSensitiveMetadata:async(t,e="auto")=>l(M,t,e),runWithTimer:t=>async e=>{a.push(0);let n=u.now();try{return await e()}finally{let r=u.now();r=Math.max(n,r);let s=Math.max(r-n,0),c=a.pop(),o=Math.max(s-c,0);a.length>0&&(a[a.length-1]=(a[a.length-1]??0)+s),u.measure(`${t}#measurable`,{start:n,duration:o}),u.measure(`${t}#wall`,{start:n,end:r});let d=i.public[t]||0;d+=o,i.public[t]=d}}}}var y=h({cmd_all_timing_network_ms:0,cmd_all_timing_prompts_ms:0}),{getAllPublicMetadata:S,getAllSensitiveMetadata:f,addPublicMetadata:x,addSensitiveMetadata:A,runWithTimer:P}=y;export{h as a,S as b,f as c,x as d,A as e,P as f};
1
+ import{g as b}from"./chunk-2R2PKQQV.js";import{g as m}from"./chunk-VKWPEFWQ.js";m();import{performance as u}from"node:perf_hooks";function w(){return b()?"bubble":"mute-and-report"}function h(g={}){let i={sensitive:{},public:{...g}},p=t=>{Object.assign(i.public,t)},M=t=>{Object.assign(i.sensitive,t)},l=async(t,e,n)=>{let r=n==="auto"?w():n,s=async()=>{let c=await e();t(c)};if(r==="bubble")await s();else try{await s()}catch(c){let{sendErrorToBugsnag:o}=await import("./error-handler-JY3ZKE2G.js");await o(c,"unexpected_error")}},a=[];return{getAllPublicMetadata:()=>({...i.public}),getAllSensitiveMetadata:()=>({...i.sensitive}),addPublicMetadata:async(t,e="auto")=>l(p,t,e),addSensitiveMetadata:async(t,e="auto")=>l(M,t,e),runWithTimer:t=>async e=>{a.push(0);let n=u.now();try{return await e()}finally{let r=u.now();r=Math.max(n,r);let s=Math.max(r-n,0),c=a.pop(),o=Math.max(s-c,0);a.length>0&&(a[a.length-1]=(a[a.length-1]??0)+s),u.measure(`${t}#measurable`,{start:n,duration:o}),u.measure(`${t}#wall`,{start:n,end:r});let d=i.public[t]||0;d+=o,i.public[t]=d}}}}var y=h({cmd_all_timing_network_ms:0,cmd_all_timing_prompts_ms:0}),{getAllPublicMetadata:S,getAllSensitiveMetadata:f,addPublicMetadata:x,addSensitiveMetadata:A,runWithTimer:P}=y;export{h as a,S as b,f as c,x as d,A as e,P as f};
@@ -1,4 +1,4 @@
1
- import{a as d}from"./chunk-YGFEUXKQ.js";import{a as f}from"./chunk-JTPVSO6Y.js";import{Da as c,Ha as s}from"./chunk-2KLXRVGQ.js";import{b as r,f as a}from"./chunk-DGMRL5DQ.js";import{i as n}from"./chunk-FCULF3JA.js";import{b as u}from"./chunk-JA2QZ635.js";import{e as h,g as t}from"./chunk-VKWPEFWQ.js";t();var i=h(u(),1);var o=class l extends d{static summary="Fetch your app configuration from the Developer Dashboard.";static descriptionWithMarkdown=`Pulls app configuration from the Developer Dashboard and creates or overwrites a configuration file. You can create a new app with this command to start with a default configuration file.
1
+ import{a as d}from"./chunk-KOYBR5MV.js";import{a as f}from"./chunk-VXGXK66W.js";import{Da as c,Ha as s}from"./chunk-PG6XEOYF.js";import{b as r,f as a}from"./chunk-Q4TZD2M6.js";import{i as n}from"./chunk-ZZ7SOJHH.js";import{b as u}from"./chunk-I3J63RFV.js";import{e as h,g as t}from"./chunk-VKWPEFWQ.js";t();var i=h(u(),1);var o=class l extends d{static summary="Fetch your app configuration from the Developer Dashboard.";static descriptionWithMarkdown=`Pulls app configuration from the Developer Dashboard and creates or overwrites a configuration file. You can create a new app with this command to start with a default configuration file.
2
2
 
3
3
  For more information on the format of the created TOML configuration file, refer to the [App configuration](https://shopify.dev/docs/apps/tools/cli/configuration) page.
4
4
  `;static description=this.descriptionForHelp();static flags={...r,...f,config:i.Flags.string({hidden:!1,char:"c",description:"The name of the local app configuration to read and overwrite. Use --file-name instead when specifying --client-id.",env:"SHOPIFY_FLAG_APP_CONFIG"}),"organization-id":i.Flags.string({hidden:!0,env:"SHOPIFY_FLAG_ORGANIZATION_ID",exclusive:["client-id"]}),"client-id":a(i.Flags.string({hidden:!1,description:"The Client ID of the remote app to link. Use --file-name to specify the destination configuration file.",env:"SHOPIFY_FLAG_CLIENT_ID"})),"file-name":i.Flags.string({hidden:!1,description:"The name of the app configuration file to create or overwrite. Requires --force to overwrite an existing file.",env:"SHOPIFY_FLAG_APP_CONFIG_FILE_NAME",exclusive:["config"]}),force:i.Flags.boolean({hidden:!1,description:"Overwrite an existing configuration file without prompting.",env:"SHOPIFY_FLAG_FORCE",dependsOn:["file-name"]})};async run(){let{flags:e}=await this.parse(l);if(e.config!==void 0&&e["client-id"]!==void 0)throw new n("The --config and --client-id flags can't be used together.","Use --file-name instead of --config to choose the configuration file to create or overwrite.");let p={directory:e.path,apiKey:e["client-id"],organizationId:e["organization-id"],configName:e.config,fileName:e["file-name"],force:e.force??!1},g=await c(p),{app:m}=await s({directory:e.path,clientId:void 0,forceRelink:!1,userProvidedConfigName:g.configFileName});return{app:m}}};export{o as a};
@@ -1 +1 @@
1
- import{b}from"./chunk-I7GYNNCU.js";import{j as c,l as f,o as T}from"./chunk-ZHJ6KA43.js";import{a as F}from"./chunk-LYPNQFWX.js";import{p as y,v as O}from"./chunk-P3Z5RLVV.js";import{b as I}from"./chunk-DGMRL5DQ.js";import{k as v,oa as w}from"./chunk-L5XWYTHY.js";import{z as S}from"./chunk-SKRUMRB4.js";import{i as a}from"./chunk-FCULF3JA.js";import{Kb as _,Ya as l,qa as u}from"./chunk-YJWNM4XO.js";import{b as A}from"./chunk-JA2QZ635.js";import{e as x,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();async function P({session:e,overridesContent:r,themeId:t}){w("theme-preview:create");let m=`${f(e)}/theme_preview.json?preview_theme_id=${t}`,o=await c(e,{headers:{"Content-Type":"application/json"}}),i=await v(m,{method:"POST",body:r,headers:o});if(!i.ok)throw new a(`Theme preview request failed with status ${i.status}: ${i.statusText}`);let n=await J(i);return w("theme-preview:create"),n}async function g({session:e,overridesContent:r,themeId:t,previewIdentifier:s}){w("theme-preview:update");let o=`${f(e)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(s)}`,i=await c(e,{headers:{"Content-Type":"application/json"}}),n=await v(o,{method:"POST",body:r,headers:i});if(!n.ok)throw new a(`Theme preview request failed with status ${n.status}: ${n.statusText}`);let E=await J(n);return w("theme-preview:update"),E}async function J(e){let r=await e.json();if(r.error)throw new a(`Theme preview failed: ${r.error}`);if(!r.url||!r.preview_identifier)throw new a("Theme preview returned an unexpected response");return{url:r.url,preview_identifier:r.preview_identifier}}async function $(e){if(!l(e.overrideJson))throw new a(`Override file not found: ${e.overrideJson}`);let r=await u(e.overrideJson),t;try{t=JSON.parse(r)}catch(i){let n=i instanceof Error?i.message:String(i);throw new a(`Failed to parse override file: ${e.overrideJson}`,n)}let s=await T(e.themeId,e.adminSession,e.password),m=JSON.stringify(t),o=e.previewIdentifier?await g({session:s,overridesContent:m,themeId:e.themeId,previewIdentifier:e.previewIdentifier}):await P({session:s,overridesContent:m,themeId:e.themeId});e.json?_(JSON.stringify({url:o.url,preview_identifier:o.preview_identifier})):S({body:[{list:{title:e.previewIdentifier?"Preview updated":"Preview is ready",items:[{link:{url:o.url}},`Preview ID: ${o.preview_identifier}`]}}]}),e.open&&b(o.url,"theme preview")}var p=x(A(),1);var h=class extends O{static summary="Applies JSON overrides to a theme and returns a preview URL.";static descriptionWithMarkdown="Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.";static description=this.descriptionForHelp();static flags={...I,...y,theme:p.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID",required:!0}),overrides:p.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES",required:!0}),"preview-id":p.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:p.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:p.Flags.boolean({description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};static multiEnvironmentsFlags=null;async command(r,t){let s=await F(t,{filter:{theme:r.theme}});await $({adminSession:t,overrideJson:r.overrides,themeId:s.id.toString(),previewIdentifier:r["preview-id"],open:r.open,password:r.password,json:r.json})}};export{h as a};
1
+ import{b}from"./chunk-SRDKLZ4O.js";import{j as c,l as f,o as T}from"./chunk-PI6FLLDD.js";import{a as F}from"./chunk-ELJ34WWD.js";import{p as y,v as O}from"./chunk-TWS34WUT.js";import{b as I}from"./chunk-Q4TZD2M6.js";import{k as v,oa as w}from"./chunk-3E3MCY5O.js";import{z as S}from"./chunk-RCYQPOJW.js";import{i as a}from"./chunk-ZZ7SOJHH.js";import{Kb as _,Ya as l,qa as u}from"./chunk-3F42A3XV.js";import{b as A}from"./chunk-I3J63RFV.js";import{e as x,g as d}from"./chunk-VKWPEFWQ.js";d();d();d();async function P({session:e,overridesContent:r,themeId:t}){w("theme-preview:create");let m=`${f(e)}/theme_preview.json?preview_theme_id=${t}`,o=await c(e,{headers:{"Content-Type":"application/json"}}),i=await v(m,{method:"POST",body:r,headers:o});if(!i.ok)throw new a(`Theme preview request failed with status ${i.status}: ${i.statusText}`);let n=await J(i);return w("theme-preview:create"),n}async function g({session:e,overridesContent:r,themeId:t,previewIdentifier:s}){w("theme-preview:update");let o=`${f(e)}/theme_preview.json?preview_theme_id=${t}&preview_identifier=${encodeURIComponent(s)}`,i=await c(e,{headers:{"Content-Type":"application/json"}}),n=await v(o,{method:"POST",body:r,headers:i});if(!n.ok)throw new a(`Theme preview request failed with status ${n.status}: ${n.statusText}`);let E=await J(n);return w("theme-preview:update"),E}async function J(e){let r=await e.json();if(r.error)throw new a(`Theme preview failed: ${r.error}`);if(!r.url||!r.preview_identifier)throw new a("Theme preview returned an unexpected response");return{url:r.url,preview_identifier:r.preview_identifier}}async function $(e){if(!l(e.overrideJson))throw new a(`Override file not found: ${e.overrideJson}`);let r=await u(e.overrideJson),t;try{t=JSON.parse(r)}catch(i){let n=i instanceof Error?i.message:String(i);throw new a(`Failed to parse override file: ${e.overrideJson}`,n)}let s=await T(e.themeId,e.adminSession,e.password),m=JSON.stringify(t),o=e.previewIdentifier?await g({session:s,overridesContent:m,themeId:e.themeId,previewIdentifier:e.previewIdentifier}):await P({session:s,overridesContent:m,themeId:e.themeId});e.json?_(JSON.stringify({url:o.url,preview_identifier:o.preview_identifier})):S({body:[{list:{title:e.previewIdentifier?"Preview updated":"Preview is ready",items:[{link:{url:o.url}},`Preview ID: ${o.preview_identifier}`]}}]}),e.open&&b(o.url,"theme preview")}var p=x(A(),1);var h=class extends O{static summary="Applies JSON overrides to a theme and returns a preview URL.";static descriptionWithMarkdown="Applies a JSON overrides file to a theme and creates or updates a preview. This lets you quickly preview changes.\n\n The command returns a preview URL and a preview identifier. You can reuse the preview identifier with `--preview-id` to update an existing preview instead of creating a new one.";static description=this.descriptionForHelp();static flags={...I,...y,theme:p.Flags.string({char:"t",description:"Theme ID or name of the remote theme.",env:"SHOPIFY_FLAG_THEME_ID",required:!0}),overrides:p.Flags.string({description:"Path to a JSON overrides file.",env:"SHOPIFY_FLAG_OVERRIDES",required:!0}),"preview-id":p.Flags.string({description:"An existing preview identifier to update instead of creating a new preview.",env:"SHOPIFY_FLAG_PREVIEW_ID"}),open:p.Flags.boolean({description:"Automatically launch the theme preview in your default web browser.",env:"SHOPIFY_FLAG_OPEN",default:!1}),json:p.Flags.boolean({description:"Output the preview URL and identifier as JSON.",env:"SHOPIFY_FLAG_JSON",default:!1})};static multiEnvironmentsFlags=null;async command(r,t){let s=await F(t,{filter:{theme:r.theme}});await $({adminSession:t,overrideJson:r.overrides,themeId:s.id.toString(),previewIdentifier:r["preview-id"],open:r.open,password:r.password,json:r.json})}};export{h as a};
@@ -1 +1 @@
1
- import{b as i,c as n}from"./chunk-DGMRL5DQ.js";import{b as u}from"./chunk-FW5HGFSZ.js";import{M as a}from"./chunk-L5XWYTHY.js";import{a as e}from"./chunk-5RL6DKWR.js";import{Ib as c,Lb as r,b as t}from"./chunk-YJWNM4XO.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var m=e({name:"AuthLogoutResult",schema:t.object({status:t.literal("success")}).strict()}),o=class p extends u{static descriptionWithMarkdown="Logs you out of the Shopify account or Partner account and store.";static description=this.descriptionForHelp();static flags={...i,...n};static get jsonOutputSchema(){return m}async run(){let{flags:l}=await this.parse(p);await a(),l.json?c(m.encode({status:"success"})):r("Logged out from all the accounts")}};export{o as a};
1
+ import{b as i,c as n}from"./chunk-Q4TZD2M6.js";import{b as u}from"./chunk-EZ5F4ZFY.js";import{M as a}from"./chunk-3E3MCY5O.js";import{a as e}from"./chunk-MQZPASSP.js";import{Ib as c,Lb as r,b as t}from"./chunk-3F42A3XV.js";import{g as s}from"./chunk-VKWPEFWQ.js";s();var m=e({name:"AuthLogoutResult",schema:t.object({status:t.literal("success")}).strict()}),o=class p extends u{static descriptionWithMarkdown="Logs you out of the Shopify account or Partner account and store.";static description=this.descriptionForHelp();static flags={...i,...n};static get jsonOutputSchema(){return m}async run(){let{flags:l}=await this.parse(p);await a(),l.json?c(m.encode({status:"success"})):r("Logged out from all the accounts")}};export{o as a};
@@ -1 +1 @@
1
- import{a as g}from"./chunk-QQN4PJZD.js";import{D as m,E as h,F as w,b as u,s as d,x as y,y as f}from"./chunk-YX5GRXRS.js";import{b as p}from"./chunk-DGMRL5DQ.js";import{b as n}from"./chunk-FW5HGFSZ.js";import{y as a,z as c}from"./chunk-SKRUMRB4.js";import{b as S}from"./chunk-JA2QZ635.js";import{e as A,g as o}from"./chunk-VKWPEFWQ.js";o();o();var C={cleanResults:y,cleanAllResults:f};async function s(t,e=C){return{removed:t.all?await e.cleanAllResults(t.appDirectory):await e.cleanResults(t.selection.appDirectory,m(t.selection))}}function D(t,e){t.removed.length===0?a({headline:"No app security check results to remove.",body:["Nothing was found in",{filePath:d(e)}]}):c({headline:"App security check results removed.",body:{list:{items:t.removed.map(r=>({filePath:r}))}}})}var v=A(S(),1);var l=class t extends n{static summary="Remove local app security check results.";static descriptionWithMarkdown="Deletes the results directory, `.shopify/app-security/<results key>/`, without asking. The results key is `--client-id` when you pass it, and otherwise the name of the app configuration file without `.toml`. Other results directories are left alone. Prints each removed path.\n\nUse `--all` to delete every results directory under `.shopify/app-security/` instead. `--all` takes neither `--config` nor `--client-id`, and with `--without-app-config` it doesn't need `--client-id`.";static description=this.descriptionForHelp();static flags={...p,...u,all:v.Flags.boolean({description:"Delete every results directory under .shopify/app-security/, not only the selected one.",exclusive:["config","client-id"]})};async run(){let{flags:e}=await this.parse(t),r={path:e.path,config:e.config,clientId:e["client-id"],withoutAppConfig:e["without-app-config"]},i=e.all?{all:!0,appDirectory:await h(r)}:{all:!1,selection:await w({...r,allowPrompts:!1})};i.all||await g(i.selection,e.path);let R=await s(i),k=i.all?i.appDirectory:i.selection.appDirectory;D(R,k)}};export{l as a};
1
+ import{a as g}from"./chunk-SWNY3RUM.js";import{D as m,E as h,F as w,b as u,s as d,x as y,y as f}from"./chunk-Q7PF4VKI.js";import{b as p}from"./chunk-Q4TZD2M6.js";import{b as n}from"./chunk-EZ5F4ZFY.js";import{y as a,z as c}from"./chunk-RCYQPOJW.js";import{b as S}from"./chunk-I3J63RFV.js";import{e as A,g as o}from"./chunk-VKWPEFWQ.js";o();o();var C={cleanResults:y,cleanAllResults:f};async function s(t,e=C){return{removed:t.all?await e.cleanAllResults(t.appDirectory):await e.cleanResults(t.selection.appDirectory,m(t.selection))}}function D(t,e){t.removed.length===0?a({headline:"No app security check results to remove.",body:["Nothing was found in",{filePath:d(e)}]}):c({headline:"App security check results removed.",body:{list:{items:t.removed.map(r=>({filePath:r}))}}})}var v=A(S(),1);var l=class t extends n{static summary="Remove local app security check results.";static descriptionWithMarkdown="Deletes the results directory, `.shopify/app-security/<results key>/`, without asking. The results key is `--client-id` when you pass it, and otherwise the name of the app configuration file without `.toml`. Other results directories are left alone. Prints each removed path.\n\nUse `--all` to delete every results directory under `.shopify/app-security/` instead. `--all` takes neither `--config` nor `--client-id`, and with `--without-app-config` it doesn't need `--client-id`.";static description=this.descriptionForHelp();static flags={...p,...u,all:v.Flags.boolean({description:"Delete every results directory under .shopify/app-security/, not only the selected one.",exclusive:["config","client-id"]})};async run(){let{flags:e}=await this.parse(t),r={path:e.path,config:e.config,clientId:e["client-id"],withoutAppConfig:e["without-app-config"]},i=e.all?{all:!0,appDirectory:await h(r)}:{all:!1,selection:await w({...r,allowPrompts:!1})};i.all||await g(i.selection,e.path);let R=await s(i),k=i.all?i.appDirectory:i.selection.appDirectory;D(R,k)}};export{l as a};
@@ -1 +1 @@
1
- import{a as h}from"./chunk-5XO6PAMV.js";import{b as p}from"./chunk-WNO2V53C.js";import{b as C}from"./chunk-JA2QZ635.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{e as L,g as u}from"./chunk-VKWPEFWQ.js";u();u();import{fileURLToPath as y}from"node:url";async function g(e){let{isDevelopment:o}=await import("./local-KAZJAYLX.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-VQKMCXNH.js"),r=await import("./lib-AD2G3QH3.js"),{run:s,flush:m,Errors:l,settings:f}=r.default??r;o()&&(f.debug=!0);try{let t=new n({root:y(e.moduleURL)});await t.load(),e.lazyCommandLoader&&t.setLazyCommandLoader(e.lazyCommandLoader);let a=e.argv??process.argv.slice(2),i=a.indexOf("--");if((i===-1?a:a.slice(0,i)).includes("--json-schema")||c(process.env.SHOPIFY_FLAG_JSON_SCHEMA)){let{printCommandJsonSchema:I}=await import("./command-json-schema-Y3N2NUZN.js");await I(t,a,e.lazyCommandLoader);return}await s(a,t),await m()}catch(t){let{errorHandler:a}=await import("./error-handler-D5BURRJ7.js");await a(t);let i=t;return l.handle({...i,name:i?.name??"Error",message:i?.message??String(t),stack:i?.stack,skipOclifErrorHandling:!0})}}var d=L(C());async function O(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<22){let{renderError:s}=await import("./ui-TEZZM7SE.js");s({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function v(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[p.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function H(e,o=g,n=process.argv,r=process.env,s=process.versions){return v(e,n,r),e.runInCreateMode&&await w(e,n),b(n,r),await O(s),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function w(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-RVPONQBY.js"),{moduleDirectory:r}=await import("./path-6YMSTSWG.js"),l=(await n(r(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(t=>t.includes("init"))===-1){let t=o.findIndex(a=>a.match(new RegExp(`bin(\\/|\\\\)+(create-${l}|dev|run)`)))+1;o.splice(t,0,"init")}}var k={...h,"no-color":d.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:d.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output. May include sensitive data.",env:"SHOPIFY_FLAG_VERBOSE"})},U={json:d.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:p.json})},V={"auth-alias":d.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},P=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return d.Flags.integer({min:1,max:65535,...e,description:o})};function D(e){let o=e.description?.trimEnd(),r=[o&&!o.endsWith(".")?`${o}.`:o,"Required if non interactive."].filter(Boolean).join(" ");return{...e,description:r,requiredIfNonInteractive:!0}}async function M(){let{cacheClear:e}=await import("./conf-store-5ZA3ILWV.js");e()}export{H as a,k as b,U as c,V as d,P as e,D as f,M as g};
1
+ import{a as h}from"./chunk-QLHPTMIH.js";import{b as p}from"./chunk-WNO2V53C.js";import{b as C}from"./chunk-I3J63RFV.js";import{a as c}from"./chunk-JD5P5RAJ.js";import{e as L,g as u}from"./chunk-VKWPEFWQ.js";u();u();import{fileURLToPath as y}from"node:url";async function g(e){let{isDevelopment:o}=await import("./local-G2Z24BHM.js"),{ShopifyConfig:n}=await import("./custom-oclif-loader-NVOK22CJ.js"),r=await import("./lib-55QUD4AJ.js"),{run:s,flush:m,Errors:l,settings:f}=r.default??r;o()&&(f.debug=!0);try{let t=new n({root:y(e.moduleURL)});await t.load(),e.lazyCommandLoader&&t.setLazyCommandLoader(e.lazyCommandLoader);let a=e.argv??process.argv.slice(2),i=a.indexOf("--");if((i===-1?a:a.slice(0,i)).includes("--json-schema")||c(process.env.SHOPIFY_FLAG_JSON_SCHEMA)){let{printCommandJsonSchema:I}=await import("./command-json-schema-HYYJSZAH.js");await I(t,a,e.lazyCommandLoader);return}await s(a,t),await m()}catch(t){let{errorHandler:a}=await import("./error-handler-JY3ZKE2G.js");await a(t);let i=t;return l.handle({...i,name:i?.name??"Error",message:i?.message??String(t),stack:i?.stack,skipOclifErrorHandling:!0})}}var d=L(C());async function O(e=process.versions){let o=e.node,n=Number(o.split(".")[0]);if(n<22){let{renderError:s}=await import("./ui-YSFALYSL.js");s({headline:"Upgrade to a supported Node version now.",body:[`Node ${n} has reached end-of-life and poses security risks. When you upgrade to a`,{link:{url:"https://nodejs.dev/en/about/previous-releases",label:"supported version"}},{char:","},"you'll be able to use Shopify CLI without interruption."]}),process.exit(1)}}function v(e,o=process.argv,n=process.env){o.includes("--verbose")&&(n.DEBUG=n.DEBUG??"*"),e.development&&(n.SHOPIFY_CLI_ENV=n.SHOPIFY_CLI_ENV??"development")}function b(e=process.argv,o=process.env){(e.includes("--no-color")||e.includes("--json")||e.includes("-j")||c(o.NO_COLOR)||c(o.SHOPIFY_FLAG_NO_COLOR)||c(o[p.json])||o.TERM==="dumb")&&(o.FORCE_COLOR="0")}async function H(e,o=g,n=process.argv,r=process.env,s=process.versions){return v(e,n,r),e.runInCreateMode&&await w(e,n),b(n,r),await O(s),o({moduleURL:e.moduleURL,lazyCommandLoader:e.lazyCommandLoader})}async function w(e,o=process.argv){let{findUpAndReadPackageJson:n}=await import("./node-package-manager-A7HTBJKY.js"),{moduleDirectory:r}=await import("./path-6YMSTSWG.js"),l=(await n(r(e.moduleURL))).content.name.replace("@shopify/create-","");if(o.findIndex(t=>t.includes("init"))===-1){let t=o.findIndex(a=>a.match(new RegExp(`bin(\\/|\\\\)+(create-${l}|dev|run)`)))+1;o.splice(t,0,"init")}}var k={...h,"no-color":d.Flags.boolean({hidden:!1,description:"Disable color output.",env:"SHOPIFY_FLAG_NO_COLOR"}),verbose:d.Flags.boolean({hidden:!1,description:"Increase the verbosity of the output. May include sensitive data.",env:"SHOPIFY_FLAG_VERBOSE"})},U={json:d.Flags.boolean({char:"j",description:"Output the result as JSON. Automatically disables color output.",hidden:!1,default:!1,env:p.json})},V={"auth-alias":d.Flags.string({description:"Alias of the Shopify account to use for authentication.",env:"SHOPIFY_FLAG_AUTH_ALIAS"})},P=(e={})=>{let o=[e.description,"Must be between 1 and 65535."].filter(Boolean).join(" ");return d.Flags.integer({min:1,max:65535,...e,description:o})};function D(e){let o=e.description?.trimEnd(),r=[o&&!o.endsWith(".")?`${o}.`:o,"Required if non interactive."].filter(Boolean).join(" ");return{...e,description:r,requiredIfNonInteractive:!0}}async function M(){let{cacheClear:e}=await import("./conf-store-CDZ5YSQM.js");e()}export{H as a,k as b,U as c,V as d,P as e,D as f,M as g};
@@ -1,4 +1,4 @@
1
- import{a as yo}from"./chunk-RJ5VF3QY.js";import{i as nn,l as _o}from"./chunk-FCULF3JA.js";import{Eb as Fe,Nb as Ve,Va as tn,Wa as ur,Ya as rn,eb as mo}from"./chunk-YJWNM4XO.js";import{g as go}from"./chunk-SGBLCVUX.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-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?`
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"