shopify 5.0.2 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (526) hide show
  1. package/dist/analytics-QFDTQYPM.js +1 -0
  2. package/dist/analytics-XADBBHOH.js +1 -0
  3. package/dist/bootstrap.js +1 -1
  4. package/dist/chunk-24Q6X53V.js +1 -0
  5. package/dist/{chunk-LEHBZKK3.js → chunk-25MYHE4W.js} +1 -1
  6. package/dist/{chunk-TODZ3TJR.js → chunk-27JT4NA4.js} +1 -1
  7. package/dist/chunk-2BYW3BYX.js +1 -0
  8. package/dist/chunk-2KFYIYLI.js +1 -0
  9. package/dist/{chunk-D2KIGKBI.js → chunk-2KUM2RU4.js} +60 -60
  10. package/dist/chunk-2PD7TNFS.js +275 -0
  11. package/dist/{chunk-64G5TGFF.js → chunk-3C72S6LO.js} +1 -1
  12. package/dist/chunk-3FZ4LE6A.js +10 -0
  13. package/dist/{chunk-3MYDSQHF.js → chunk-3GD5ESWN.js} +1 -1
  14. package/dist/chunk-3KGN6N7E.js +1 -0
  15. package/dist/{chunk-KNWT7JLL.js → chunk-3MZ7ELHS.js} +2 -2
  16. package/dist/{chunk-PF53E2DC.js → chunk-3PS52ZT4.js} +1 -1
  17. package/dist/chunk-3PYDIBTX.js +1 -0
  18. package/dist/chunk-3Z75BVGJ.js +1 -0
  19. package/dist/chunk-4FWPOGPQ.js +1 -0
  20. package/dist/chunk-4IP37MBX.js +1 -0
  21. package/dist/chunk-4NFX7YCT.js +1 -0
  22. package/dist/chunk-4TCXPHKN.js +1 -0
  23. package/dist/chunk-4WBWZIN5.js +6 -0
  24. package/dist/chunk-5534MHZW.js +97 -0
  25. package/dist/{chunk-UKWIWCOH.js → chunk-5C6CXU74.js} +1 -1
  26. package/dist/{chunk-QEKGGTMN.js → chunk-5HOZDOJ7.js} +1 -1
  27. package/dist/{chunk-ER6C5WS3.js → chunk-5PSQFQL6.js} +1 -1
  28. package/dist/chunk-5T3ZT6CC.js +1 -0
  29. package/dist/chunk-62NW4EPI.js +17 -0
  30. package/dist/chunk-65NCQJYR.js +1 -0
  31. package/dist/{chunk-IHXGZW42.js → chunk-6BYHL3DS.js} +1 -1
  32. package/dist/chunk-6I7DT7QR.js +3 -0
  33. package/dist/chunk-6IMTMS2S.js +3 -0
  34. package/dist/chunk-7A77JCED.js +11 -0
  35. package/dist/chunk-7ART2IKU.js +1 -0
  36. package/dist/{chunk-I4CEH7AK.js → chunk-7BPT5V24.js} +2 -2
  37. package/dist/{chunk-Z2WAW6MM.js → chunk-7CT3NIXI.js} +1 -1
  38. package/dist/chunk-7DBKSSDK.js +1 -0
  39. package/dist/chunk-7HECBXSP.js +1 -0
  40. package/dist/chunk-7KID5BIR.js +4 -0
  41. package/dist/{chunk-2L6AN3QA.js → chunk-7N7KRZOM.js} +1 -1
  42. package/dist/{chunk-W37IFK3P.js → chunk-7NRHZG5Y.js} +102 -102
  43. package/dist/chunk-7PHDEILV.js +1 -0
  44. package/dist/chunk-A2NSORBM.js +2296 -0
  45. package/dist/chunk-A54TADAZ.js +1 -0
  46. package/dist/{chunk-YTUUU33R.js → chunk-AE3IQG7S.js} +1 -1
  47. package/dist/chunk-AGTUAQHX.js +4 -0
  48. package/dist/chunk-AHYI27QL.js +11 -0
  49. package/dist/chunk-ALINJ6J2.js +1 -0
  50. package/dist/chunk-AMVWKHNY.js +1 -0
  51. package/dist/{chunk-NVKJ7ZLP.js → chunk-ASKBYEO7.js} +1 -1
  52. package/dist/{chunk-62EOM3Y2.js → chunk-AVJJGQOP.js} +1 -1
  53. package/dist/{chunk-NXAEBGMO.js → chunk-AY3AAV77.js} +1 -1
  54. package/dist/{chunk-F3CK3EJJ.js → chunk-BFAOTQGH.js} +1 -1
  55. package/dist/{chunk-H6GNKWYM.js → chunk-BPKQA2EO.js} +1 -1
  56. package/dist/{chunk-WESTVWWD.js → chunk-C2HJEGTS.js} +1 -1
  57. package/dist/chunk-C72QNK6O.js +4 -0
  58. package/dist/chunk-CDSDQTNB.js +16 -0
  59. package/dist/chunk-CEQGOCKX.js +1 -0
  60. package/dist/{chunk-WCC52MR2.js → chunk-CIGWIKOW.js} +1 -1
  61. package/dist/chunk-CQAD5WML.js +1 -0
  62. package/dist/chunk-CRQQCT7F.js +1 -0
  63. package/dist/chunk-CZNUBAAG.js +3 -0
  64. package/dist/{chunk-ISKQQXLZ.js → chunk-D7IMC2G4.js} +1 -1
  65. package/dist/{chunk-6ES4KRFW.js → chunk-DC7ITY6T.js} +1 -1
  66. package/dist/{chunk-7GHSE7SG.js → chunk-DDRP6QTC.js} +1 -1
  67. package/dist/{chunk-SLY27GDC.js → chunk-DDZYIC76.js} +2 -2
  68. package/dist/chunk-DGIIUQH3.js +1 -0
  69. package/dist/{chunk-3KM5ZOW2.js → chunk-DMOLPSXF.js} +1 -1
  70. package/dist/{chunk-LHXFTFFM.js → chunk-DOLVBTCB.js} +1 -1
  71. package/dist/{chunk-WBVS5NBV.js → chunk-DTKGI43P.js} +2 -2
  72. package/dist/{chunk-2WJOTJOD.js → chunk-DVD7I2TX.js} +2 -2
  73. package/dist/chunk-DVFVO6ZE.js +2 -0
  74. package/dist/{chunk-3XRI3D44.js → chunk-DXEMSLI6.js} +1 -1
  75. package/dist/chunk-EDWIWZWM.js +15 -0
  76. package/dist/chunk-ELR6AZT4.js +9 -0
  77. package/dist/chunk-EVQPYZ7F.js +5 -0
  78. package/dist/chunk-F5QKMDP3.js +1 -0
  79. package/dist/{chunk-URXM5A2K.js → chunk-F6IQWX2F.js} +1 -1
  80. package/dist/{chunk-SACNUF4I.js → chunk-FAVPTYIR.js} +1 -1
  81. package/dist/{chunk-Q7BOSHWX.js → chunk-FDSNRKGQ.js} +1 -1
  82. package/dist/{chunk-Q4JYAUVL.js → chunk-FHKK3QU7.js} +1 -1
  83. package/dist/chunk-FKKJQGYX.js +7 -0
  84. package/dist/chunk-FQLXQ7WN.js +16 -0
  85. package/dist/{chunk-6PUU6ZNQ.js → chunk-FRWQJAW2.js} +1 -1
  86. package/dist/{chunk-J5ERDFIC.js → chunk-FU7PYW7H.js} +1 -1
  87. package/dist/{chunk-ESFCYB46.js → chunk-FYQE5E6U.js} +1 -1
  88. package/dist/chunk-G3EWGBXR.js +1 -0
  89. package/dist/chunk-G3RNO2TC.js +1 -0
  90. package/dist/{chunk-35XFNKNB.js → chunk-GGCP2TIK.js} +1 -1
  91. package/dist/chunk-GSFWBFFH.js +1 -0
  92. package/dist/{chunk-ZRI3SSLG.js → chunk-H2KGP2FM.js} +2 -2
  93. package/dist/{chunk-GW7YIJPJ.js → chunk-H4K3F7PP.js} +1 -1
  94. package/dist/chunk-HGZ2HRPO.js +13 -0
  95. package/dist/chunk-HMPRWNGG.js +203 -0
  96. package/dist/chunk-HP4QYSBQ.js +1 -0
  97. package/dist/{chunk-RPCIFYCY.js → chunk-HSTZV6H7.js} +2 -2
  98. package/dist/{chunk-N57Y7THE.js → chunk-HVUMVDUG.js} +1 -1
  99. package/dist/{chunk-XWSWXQCC.js → chunk-HYCNYUHW.js} +1 -1
  100. package/dist/{chunk-CXI3RHPW.js → chunk-I3WRA2LH.js} +1 -1
  101. package/dist/{chunk-UUAKOX7E.js → chunk-IRLYC626.js} +2 -2
  102. package/dist/chunk-IWNFPBH2.js +33 -0
  103. package/dist/{chunk-C3RFAKWR.js → chunk-JALDNBTU.js} +1 -1
  104. package/dist/{chunk-QDCLL5OI.js → chunk-JC37YZ4I.js} +1 -1
  105. package/dist/{chunk-QF5WKTPD.js → chunk-JG4FAT2T.js} +1 -1
  106. package/dist/chunk-JGLLABZR.js +8 -0
  107. package/dist/chunk-JIY6XWSC.js +1 -0
  108. package/dist/{chunk-3ODQKAEA.js → chunk-JIYCZXK5.js} +1 -1
  109. package/dist/chunk-JMSAHCBU.js +35 -0
  110. package/dist/{chunk-KZRLZWOU.js → chunk-JNSVKDBY.js} +1 -1
  111. package/dist/chunk-JQU2BJDH.js +3 -0
  112. package/dist/chunk-JVY6CCLE.js +3 -0
  113. package/dist/{chunk-BAHIL37I.js → chunk-K4QJEQI4.js} +1 -1
  114. package/dist/chunk-KCAWHJGF.js +1 -0
  115. package/dist/{chunk-YV2TP44L.js → chunk-KFO2JNF5.js} +1 -1
  116. package/dist/chunk-KFR7HWCG.js +9 -0
  117. package/dist/{chunk-MEYVUHQH.js → chunk-KHZF73BL.js} +1 -1
  118. package/dist/{chunk-LGXI7EGM.js → chunk-KM4LE7K4.js} +2 -2
  119. package/dist/{chunk-IILLQOUC.js → chunk-L2PUDV7Y.js} +1 -1
  120. package/dist/chunk-LFBFPK22.js +1 -0
  121. package/dist/{chunk-BN7ZXAZJ.js → chunk-LG3KEHGD.js} +2 -2
  122. package/dist/chunk-LGDWE3H3.js +1 -0
  123. package/dist/chunk-LPPEAMI6.js +1 -0
  124. package/dist/chunk-LXIWMYM4.js +1 -0
  125. package/dist/chunk-MGWCXTGD.js +1 -0
  126. package/dist/chunk-MGX7UG44.js +1 -0
  127. package/dist/chunk-MKFRKNHF.js +3 -0
  128. package/dist/chunk-MTT6EAQO.js +1 -0
  129. package/dist/{chunk-SIL6HPMK.js → chunk-MU7IVBGI.js} +2 -2
  130. package/dist/{chunk-QEVTBD33.js → chunk-MYMBHVC4.js} +1 -1
  131. package/dist/chunk-MZDBH4XV.js +4 -0
  132. package/dist/{chunk-Q5IC3IYY.js → chunk-NUBJ2HK7.js} +1 -1
  133. package/dist/{chunk-3Z3MADXZ.js → chunk-NY5N4ANL.js} +1 -1
  134. package/dist/{chunk-WRZWHT6M.js → chunk-NYMKGE3J.js} +1 -1
  135. package/dist/{chunk-CX5CC6P5.js → chunk-O472FAYX.js} +1 -1
  136. package/dist/chunk-O7HZ3EIP.js +1 -0
  137. package/dist/chunk-OJOF6IYG.js +9 -0
  138. package/dist/{chunk-UXVXVI6O.js → chunk-ONZULPQH.js} +68 -66
  139. package/dist/chunk-ORMXPSJM.js +1 -0
  140. package/dist/chunk-ORYEDUKM.js +5 -0
  141. package/dist/{chunk-T4XJKM6B.js → chunk-OTMYJWIP.js} +1 -1
  142. package/dist/chunk-OVJVFB5E.js +20 -0
  143. package/dist/chunk-OWQEFORZ.js +1 -0
  144. package/dist/{chunk-UBP3LQFY.js → chunk-OXPEBT4I.js} +2 -2
  145. package/dist/chunk-OXZR2MB4.js +6 -0
  146. package/dist/chunk-OY5M52EF.js +6 -0
  147. package/dist/{chunk-2A2JSAAA.js → chunk-PJZZZNWR.js} +1 -1
  148. package/dist/chunk-Q2LQJYRK.js +16 -0
  149. package/dist/chunk-QBRRFFMZ.js +1 -0
  150. package/dist/{chunk-AQKWPRZE.js → chunk-QCLE5REL.js} +2 -2
  151. package/dist/{chunk-43R5VGKT.js → chunk-QGQWVA7N.js} +1 -1
  152. package/dist/chunk-QKPAB245.js +1 -0
  153. package/dist/chunk-QUPZOBTB.js +1 -0
  154. package/dist/chunk-R4E2E4NN.js +1 -0
  155. package/dist/{chunk-CGVROSPS.js → chunk-R6US7F33.js} +1 -1
  156. package/dist/chunk-RKNVTEO3.js +5 -0
  157. package/dist/{chunk-7CCTPBCT.js → chunk-RLOEI6VE.js} +1 -1
  158. package/dist/chunk-RSZAAN37.js +1 -0
  159. package/dist/{chunk-WBJ6ZHYH.js → chunk-S3RROJGG.js} +37 -37
  160. package/dist/chunk-S4KNPCW3.js +81 -0
  161. package/dist/{chunk-26PWHH3B.js → chunk-SBN3ILXO.js} +1 -1
  162. package/dist/chunk-SCDGLREP.js +1 -0
  163. package/dist/chunk-SHOMIS6Q.js +2 -0
  164. package/dist/chunk-SN3PMWUF.js +6 -0
  165. package/dist/chunk-SODCXZ5U.js +1 -0
  166. package/dist/chunk-SPJM7RTD.js +1 -0
  167. package/dist/chunk-SQL67BKI.js +5 -0
  168. package/dist/{chunk-AQ6EVL73.js → chunk-SURFUFAZ.js} +1 -1
  169. package/dist/{chunk-SNH4XZ6E.js → chunk-SVQDMZJO.js} +1 -1
  170. package/dist/chunk-T4ZOTYOY.js +1 -0
  171. package/dist/chunk-T6C4WC3Z.js +2 -0
  172. package/dist/chunk-TD6JBHUS.js +1 -0
  173. package/dist/chunk-TIM4CIXZ.js +22 -0
  174. package/dist/{chunk-B2O3ANRZ.js → chunk-TP7CTMMT.js} +1 -1
  175. package/dist/chunk-TSPJAMYB.js +1 -0
  176. package/dist/chunk-TSVEV2UD.js +26 -0
  177. package/dist/{chunk-ZBL7XMJ6.js → chunk-TTAT62N3.js} +2 -2
  178. package/dist/{chunk-S5P7KWY4.js → chunk-TUSS6PXB.js} +1 -1
  179. package/dist/chunk-TXP6KFWO.js +5 -0
  180. package/dist/chunk-TZHVCMZN.js +6 -0
  181. package/dist/chunk-UC4TOM36.js +3 -0
  182. package/dist/{chunk-RPVZ2JON.js → chunk-UFY4L5KQ.js} +1 -1
  183. package/dist/chunk-UU6UQ2QY.js +1 -0
  184. package/dist/chunk-V4FC72R6.js +1 -0
  185. package/dist/chunk-VA2S7W7H.js +10 -0
  186. package/dist/chunk-VE3IIC7H.js +1 -0
  187. package/dist/{chunk-PTSCGSQV.js → chunk-VJG7VXFU.js} +2 -2
  188. package/dist/chunk-VQSRU5XL.js +4 -0
  189. package/dist/chunk-VRIFLMA3.js +70 -0
  190. package/dist/chunk-WBJFTCEJ.js +1 -0
  191. package/dist/chunk-WBPP6PO7.js +31 -0
  192. package/dist/chunk-WE5KY6T6.js +1 -0
  193. package/dist/chunk-WFPVT2IY.js +1 -0
  194. package/dist/{chunk-PLSS456F.js → chunk-WLYXBQ2M.js} +1 -1
  195. package/dist/chunk-WNVOEE6T.js +7 -0
  196. package/dist/chunk-WPDJVUTY.js +47 -0
  197. package/dist/chunk-WWCYEZUU.js +1 -0
  198. package/dist/chunk-WWVDZ3GC.js +3 -0
  199. package/dist/{chunk-4KECSZTL.js → chunk-WZBZ7FWP.js} +2 -2
  200. package/dist/chunk-XEZPN5TR.js +22 -0
  201. package/dist/{chunk-QW52RPAU.js → chunk-XLMKHTJ5.js} +1 -1
  202. package/dist/chunk-XRNBCV2B.js +1 -0
  203. package/dist/{chunk-67L7FIB6.js → chunk-XWLNCBAG.js} +1 -1
  204. package/dist/chunk-YF4AXKM4.js +1 -0
  205. package/dist/chunk-YKDRUAY3.js +857 -0
  206. package/dist/{chunk-YSWVYPWR.js → chunk-YNFQBYSL.js} +1 -1
  207. package/dist/{chunk-TFPW2VGN.js → chunk-YNZLLZU2.js} +1 -1
  208. package/dist/chunk-YOYPYB4H.js +1 -0
  209. package/dist/{chunk-HF4NDEX3.js → chunk-YR4J46US.js} +1 -1
  210. package/dist/chunk-YTL45RXR.js +103 -0
  211. package/dist/chunk-YVPB7OT6.js +6 -0
  212. package/dist/chunk-YYWSHRO2.js +89 -0
  213. package/dist/{chunk-DZKFP6H2.js → chunk-Z5QEXS6F.js} +1 -1
  214. package/dist/chunk-Z5WFRYVQ.js +6 -0
  215. package/dist/{chunk-PWAT52M4.js → chunk-Z6ZRS256.js} +1 -1
  216. package/dist/chunk-ZMOW2YZ4.js +18 -0
  217. package/dist/chunk-ZMU4EYXT.js +1 -0
  218. package/dist/{chunk-ACA2BGAD.js → chunk-ZNEPRGFY.js} +1 -1
  219. package/dist/chunk-ZXZWMXXK.js +7 -0
  220. package/dist/cli/commands/app/build.js +1 -1
  221. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  222. package/dist/cli/commands/app/bulk/execute.js +1 -1
  223. package/dist/cli/commands/app/bulk/status.js +1 -1
  224. package/dist/cli/commands/app/config/link.js +1 -1
  225. package/dist/cli/commands/app/config/pull.js +1 -1
  226. package/dist/cli/commands/app/config/use.js +1 -1
  227. package/dist/cli/commands/app/config/validate.js +1 -1
  228. package/dist/cli/commands/app/demo/watcher.js +1 -1
  229. package/dist/cli/commands/app/deploy.js +1 -1
  230. package/dist/cli/commands/app/dev/clean.js +1 -1
  231. package/dist/cli/commands/app/dev.js +1 -1
  232. package/dist/cli/commands/app/env/pull.js +1 -1
  233. package/dist/cli/commands/app/env/show.js +1 -1
  234. package/dist/cli/commands/app/execute.js +1 -1
  235. package/dist/cli/commands/app/function/build.js +1 -1
  236. package/dist/cli/commands/app/function/info.js +1 -1
  237. package/dist/cli/commands/app/function/replay.js +1 -1
  238. package/dist/cli/commands/app/function/run.js +1 -1
  239. package/dist/cli/commands/app/function/schema.js +1 -1
  240. package/dist/cli/commands/app/function/typegen.js +1 -1
  241. package/dist/cli/commands/app/generate/extension.js +1 -1
  242. package/dist/cli/commands/app/graphiql.js +1 -1
  243. package/dist/cli/commands/app/import/channel-config.js +1 -1
  244. package/dist/cli/commands/app/import/custom-data-definitions.js +1 -1
  245. package/dist/cli/commands/app/import/dashboard-extensions.js +1 -1
  246. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  247. package/dist/cli/commands/app/import-extensions.js +1 -1
  248. package/dist/cli/commands/app/info.js +1 -1
  249. package/dist/cli/commands/app/init.js +1 -1
  250. package/dist/cli/commands/app/logs-next.js +1 -0
  251. package/dist/cli/commands/app/logs.js +1 -1
  252. package/dist/cli/commands/app/release.js +1 -1
  253. package/dist/cli/commands/app/security/check.js +1 -1
  254. package/dist/cli/commands/app/security/clean.js +1 -1
  255. package/dist/cli/commands/app/security/instructions.js +1 -1
  256. package/dist/cli/commands/app/security/record.js +1 -1
  257. package/dist/cli/commands/app/security/review.js +1 -1
  258. package/dist/cli/commands/app/subscription-migrations/cancel.js +1 -1
  259. package/dist/cli/commands/app/subscription-migrations/list.js +1 -1
  260. package/dist/cli/commands/app/subscription-migrations/schedule.js +1 -1
  261. package/dist/cli/commands/app/subscription-migrations/status.js +1 -1
  262. package/dist/cli/commands/app/subscription-migrations/unschedule.js +1 -1
  263. package/dist/cli/commands/app/versions/list.js +1 -1
  264. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  265. package/dist/cli/commands/auth/login.d.ts +10 -10
  266. package/dist/cli/commands/auth/login.js +1 -1
  267. package/dist/cli/commands/auth/logout.d.ts +7 -7
  268. package/dist/cli/commands/auth/logout.js +1 -1
  269. package/dist/cli/commands/cache/clear.js +1 -1
  270. package/dist/cli/commands/config/autoupgrade/off.d.ts +7 -7
  271. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  272. package/dist/cli/commands/config/autoupgrade/on.d.ts +7 -7
  273. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  274. package/dist/cli/commands/config/autoupgrade/status.d.ts +7 -7
  275. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  276. package/dist/cli/commands/debug/command-flags.js +1 -1
  277. package/dist/cli/commands/doc/fetch.d.ts +21 -21
  278. package/dist/cli/commands/doc/fetch.js +1 -1
  279. package/dist/cli/commands/doc/search.d.ts +23 -23
  280. package/dist/cli/commands/doc/search.js +1 -1
  281. package/dist/cli/commands/docs/generate.js +1 -1
  282. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  283. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  284. package/dist/cli/commands/help.d.ts +90 -90
  285. package/dist/cli/commands/help.js +1 -1
  286. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  287. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  288. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  289. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  290. package/dist/cli/commands/notifications/generate.js +1 -1
  291. package/dist/cli/commands/notifications/list.js +1 -1
  292. package/dist/cli/commands/organization/list.js +1 -1
  293. package/dist/cli/commands/search.d.ts +7 -7
  294. package/dist/cli/commands/search.js +1 -1
  295. package/dist/cli/commands/send-analytics.js +1 -1
  296. package/dist/cli/commands/theme/check.js +1 -1
  297. package/dist/cli/commands/theme/console.js +1 -1
  298. package/dist/cli/commands/theme/delete.js +1 -1
  299. package/dist/cli/commands/theme/dev.js +1 -1
  300. package/dist/cli/commands/theme/duplicate.js +1 -1
  301. package/dist/cli/commands/theme/info.js +1 -1
  302. package/dist/cli/commands/theme/init.js +1 -1
  303. package/dist/cli/commands/theme/language-server.js +1 -1
  304. package/dist/cli/commands/theme/list.js +1 -1
  305. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  306. package/dist/cli/commands/theme/open.js +1 -1
  307. package/dist/cli/commands/theme/package.js +1 -1
  308. package/dist/cli/commands/theme/preview.js +1 -1
  309. package/dist/cli/commands/theme/profile.js +1 -1
  310. package/dist/cli/commands/theme/publish.js +1 -1
  311. package/dist/cli/commands/theme/pull.js +1 -1
  312. package/dist/cli/commands/theme/push.js +1 -1
  313. package/dist/cli/commands/theme/rename.js +1 -1
  314. package/dist/cli/commands/theme/share.js +1 -1
  315. package/dist/cli/commands/upgrade.d.ts +24 -24
  316. package/dist/cli/commands/upgrade.js +1 -1
  317. package/dist/cli/commands/version.d.ts +7 -7
  318. package/dist/cli/commands/version.js +1 -1
  319. package/dist/cli/help.js +1 -1
  320. package/dist/cli-version-check-V25AVSZ6.js +1 -0
  321. package/dist/{command-event-context-LFUZ7UCA.js → command-event-context-ILIANB5Q.js} +1 -1
  322. package/dist/command-json-schema-C5UZXP2W.js +1 -0
  323. package/dist/command-registry.js +1 -1
  324. package/dist/conf-store-OCGEEV4U.js +1 -0
  325. package/dist/custom-oclif-loader-ZVUKMRGH.js +1 -0
  326. package/dist/data/filters.json +41 -2
  327. package/dist/data/local_block_entry.json +1 -1
  328. package/dist/data/manifest_theme.json +1 -0
  329. package/dist/data/objects.json +78 -36
  330. package/dist/data/section.json +1 -1
  331. package/dist/data/shopify_system_translations.json +240 -23
  332. package/dist/data/strict_settings.json +24 -0
  333. package/dist/data/tags.json +57 -24
  334. package/dist/data/theme_block.json +1 -1
  335. package/dist/deprecations-A5AXXKIK.js +1 -0
  336. package/dist/dist-NORLLIHQ.js +1 -0
  337. package/dist/dist-XBM4XZS4.js +1 -0
  338. package/dist/environment-5P7JJ3GI.js +1 -0
  339. package/dist/environments-Y5JEI3U3.js +1 -0
  340. package/dist/error-GI4DXVDU.js +1 -0
  341. package/dist/error-handler-BS2ZENQV.js +1 -0
  342. package/dist/fs-UOOLPOHJ.js +1 -0
  343. package/dist/hooks/did-you-mean.js +1 -1
  344. package/dist/hooks/hydrogen-init.js +1 -1
  345. package/dist/hooks/plugin-plugins.js +1 -1
  346. package/dist/hooks/postrun.js +1 -1
  347. package/dist/hooks/prerun.js +2 -2
  348. package/dist/hooks/public-metadata.js +1 -1
  349. package/dist/hooks/sensitive-metadata.js +1 -1
  350. package/dist/hooks/tunnel-provider.js +1 -1
  351. package/dist/hooks/tunnel-start.js +1 -1
  352. package/dist/http-2OXOS2AW.js +1 -0
  353. package/dist/http-proxy-node16-NZZ674YW.js +38 -0
  354. package/dist/index.js +12 -12
  355. package/dist/is-global-CI77T7NE.js +1 -0
  356. package/dist/json-error-6PBUR4LQ.js +1 -0
  357. package/dist/latest-version-75YEFEMK.js +9 -0
  358. package/dist/lib-4JVADMNT.js +1 -0
  359. package/dist/lib-L4STV5B2.js +1 -0
  360. package/dist/lib-LEEN55OD.js +1 -0
  361. package/dist/{local-OKPVB4NH.js → local-5NIWPWDS.js} +1 -1
  362. package/dist/metadata-IXPNNPNJ.js +1 -0
  363. package/dist/{morph-CRY35DIK.js → morph-H7XQP55V.js} +3 -3
  364. package/dist/node-package-manager-ALFEGGD6.js +1 -0
  365. package/dist/notifications-system-FQW3GKH2.js +1 -0
  366. package/dist/{npa-A4YSCQ5Q.js → npa-LVYMN7GE.js} +1 -1
  367. package/dist/os-6TNQTEUN.js +1 -0
  368. package/dist/output-LEOB5LAM.js +1 -0
  369. package/dist/{prettier-EGVCP5CY.js → prettier-VLTY4MIE.js} +1 -1
  370. package/dist/registry-auth-token-EDH77OOW.js +1 -0
  371. package/dist/registry-url-JMNV3LLX.js +1 -0
  372. package/dist/semver-HHZRKD6Y.js +1 -0
  373. package/dist/system-J4CTESP5.js +1 -0
  374. package/dist/tsconfig.tsbuildinfo +1 -1
  375. package/dist/ui-YDUI56E3.js +1 -0
  376. package/dist/upgrade-LBCZORG2.js +1 -0
  377. package/dist/version-2YL4YEQ2.js +1 -0
  378. package/dist/version-X2CPQVWQ.js +1 -0
  379. package/dist/workerd-5UPTEWNI.js +18 -0
  380. package/oclif.manifest.json +25622 -1132
  381. package/package.json +7 -7
  382. package/dist/analytics-NMMVOF4B.js +0 -1
  383. package/dist/analytics-UK77WNLG.js +0 -1
  384. package/dist/chunk-224UPIYS.js +0 -4
  385. package/dist/chunk-27NXPOAS.js +0 -1
  386. package/dist/chunk-2MT3LSMZ.js +0 -1
  387. package/dist/chunk-2T4HDR6R.js +0 -70
  388. package/dist/chunk-2ZBXHCQZ.js +0 -1
  389. package/dist/chunk-335BUVBP.js +0 -1
  390. package/dist/chunk-33ZE3DRQ.js +0 -16
  391. package/dist/chunk-34MOWGRL.js +0 -1
  392. package/dist/chunk-3JSKNXL7.js +0 -1
  393. package/dist/chunk-3MG4MTWQ.js +0 -1
  394. package/dist/chunk-4WYKPIN3.js +0 -1
  395. package/dist/chunk-5AEZJZNQ.js +0 -1
  396. package/dist/chunk-5ED7SOQZ.js +0 -20
  397. package/dist/chunk-5IDJALJH.js +0 -1
  398. package/dist/chunk-66TMIQMB.js +0 -1
  399. package/dist/chunk-74NRFUGQ.js +0 -1
  400. package/dist/chunk-7GUMJ5E4.js +0 -1
  401. package/dist/chunk-7NFTSBHQ.js +0 -10
  402. package/dist/chunk-ACZNWIRY.js +0 -1
  403. package/dist/chunk-AUE7LM32.js +0 -1
  404. package/dist/chunk-AXL2VIWA.js +0 -16
  405. package/dist/chunk-B3ZJGYZY.js +0 -3
  406. package/dist/chunk-BOAGJ6P5.js +0 -1
  407. package/dist/chunk-BWN2QG6D.js +0 -5
  408. package/dist/chunk-CCUQM4FX.js +0 -6
  409. package/dist/chunk-CLUUA3HX.js +0 -3
  410. package/dist/chunk-CYEEGTVZ.js +0 -11
  411. package/dist/chunk-DBDTE3EE.js +0 -5
  412. package/dist/chunk-DLVB3237.js +0 -31
  413. package/dist/chunk-DN6X7SHW.js +0 -2
  414. package/dist/chunk-E5COIKGY.js +0 -5
  415. package/dist/chunk-E6RONHMT.js +0 -1
  416. package/dist/chunk-EAZIQI2D.js +0 -1
  417. package/dist/chunk-EEY4FKAW.js +0 -1
  418. package/dist/chunk-EKFPTBXC.js +0 -1
  419. package/dist/chunk-FEBOZ2XX.js +0 -31
  420. package/dist/chunk-FFSDGRAN.js +0 -1
  421. package/dist/chunk-FZCGRIOM.js +0 -1
  422. package/dist/chunk-GNCVDN7U.js +0 -1
  423. package/dist/chunk-GQLNG537.js +0 -836
  424. package/dist/chunk-GVI3DWSB.js +0 -4
  425. package/dist/chunk-H6GYBLVQ.js +0 -2
  426. package/dist/chunk-HB3MJYBK.js +0 -1
  427. package/dist/chunk-HSKDFEXW.js +0 -1
  428. package/dist/chunk-HTRJU4R4.js +0 -1
  429. package/dist/chunk-HXZAY5OA.js +0 -1
  430. package/dist/chunk-I7PEEJVH.js +0 -1
  431. package/dist/chunk-IHMATNOR.js +0 -1
  432. package/dist/chunk-IJY3RJPJ.js +0 -47
  433. package/dist/chunk-J3JPJCWP.js +0 -1
  434. package/dist/chunk-J55GQLP4.js +0 -1
  435. package/dist/chunk-JLQRDFR5.js +0 -18
  436. package/dist/chunk-JPWRZ5SL.js +0 -16
  437. package/dist/chunk-K7ZSPQKL.js +0 -4
  438. package/dist/chunk-L5TSPCSY.js +0 -26
  439. package/dist/chunk-LUGMXSRI.js +0 -9
  440. package/dist/chunk-M2CWCOFU.js +0 -11
  441. package/dist/chunk-M5VIFG2V.js +0 -1
  442. package/dist/chunk-MADINS4Z.js +0 -1
  443. package/dist/chunk-MGHPF7HU.js +0 -6
  444. package/dist/chunk-MHR5OHT5.js +0 -10
  445. package/dist/chunk-MXEXP3HT.js +0 -15
  446. package/dist/chunk-OJULL7HT.js +0 -1
  447. package/dist/chunk-OMPQ7REW.js +0 -3
  448. package/dist/chunk-OR4IJ4BQ.js +0 -1
  449. package/dist/chunk-P2RMFHQP.js +0 -1
  450. package/dist/chunk-P4VZYOKO.js +0 -15
  451. package/dist/chunk-PDZBKVWL.js +0 -97
  452. package/dist/chunk-Q2KWXZQB.js +0 -12
  453. package/dist/chunk-QFSENE5T.js +0 -3
  454. package/dist/chunk-QFWWCZOI.js +0 -1
  455. package/dist/chunk-QFYLJVJW.js +0 -77
  456. package/dist/chunk-QQJNQNKP.js +0 -6
  457. package/dist/chunk-R4UVIYZP.js +0 -4
  458. package/dist/chunk-RLNIOJH3.js +0 -272
  459. package/dist/chunk-RW6G4ZPU.js +0 -1
  460. package/dist/chunk-S4LOWCGS.js +0 -1
  461. package/dist/chunk-SB27UOXX.js +0 -1
  462. package/dist/chunk-SHD4VV5V.js +0 -3
  463. package/dist/chunk-SK7EPN6C.js +0 -1
  464. package/dist/chunk-TAWCKJKP.js +0 -1
  465. package/dist/chunk-U2T5HPRD.js +0 -319
  466. package/dist/chunk-U6YOP562.js +0 -1
  467. package/dist/chunk-UPPO3BMT.js +0 -7
  468. package/dist/chunk-USXIXANP.js +0 -103
  469. package/dist/chunk-UV5GAGAD.js +0 -1
  470. package/dist/chunk-UY6W2EVZ.js +0 -1
  471. package/dist/chunk-UYELAINQ.js +0 -16
  472. package/dist/chunk-V75WUEFU.js +0 -1
  473. package/dist/chunk-VAVXDIUX.js +0 -6
  474. package/dist/chunk-VEUKT5EI.js +0 -6
  475. package/dist/chunk-VGSH52JM.js +0 -1
  476. package/dist/chunk-VHZ6RL67.js +0 -1
  477. package/dist/chunk-VQA3X7O3.js +0 -1
  478. package/dist/chunk-VZCMJRYV.js +0 -1
  479. package/dist/chunk-W56ZGEQQ.js +0 -2265
  480. package/dist/chunk-WSDKCQH6.js +0 -6
  481. package/dist/chunk-X2PFXSU4.js +0 -1
  482. package/dist/chunk-X5NIAZA4.js +0 -1
  483. package/dist/chunk-XBMD3FEZ.js +0 -3
  484. package/dist/chunk-XDVPIGXE.js +0 -2
  485. package/dist/chunk-XLIJYJ6Q.js +0 -1
  486. package/dist/chunk-XUHGWIWW.js +0 -4
  487. package/dist/chunk-Y55T4IIQ.js +0 -7
  488. package/dist/chunk-Y5CVX5LJ.js +0 -1
  489. package/dist/chunk-Y6J46XYF.js +0 -3
  490. package/dist/chunk-YKMINHYY.js +0 -3
  491. package/dist/chunk-ZDQO6CNY.js +0 -1
  492. package/dist/chunk-ZGASBRSQ.js +0 -5
  493. package/dist/chunk-ZGBTO46A.js +0 -1
  494. package/dist/chunk-ZJOX5HW4.js +0 -22
  495. package/dist/chunk-ZOOT3GBY.js +0 -5
  496. package/dist/command-json-schema-F5XF7XHL.js +0 -1
  497. package/dist/conf-store-5CBLWTOC.js +0 -1
  498. package/dist/custom-oclif-loader-UDVUFKMD.js +0 -1
  499. package/dist/deprecations-EOHPSTCS.js +0 -1
  500. package/dist/dist-RNV3GFZ7.js +0 -1
  501. package/dist/dist-ZFKWJVNB.js +0 -1
  502. package/dist/environment-O7ECODHU.js +0 -1
  503. package/dist/environments-4FLRZW4P.js +0 -1
  504. package/dist/error-JY2ADS6S.js +0 -1
  505. package/dist/error-handler-4GCXKC6I.js +0 -1
  506. package/dist/fs-XS5YF34R.js +0 -1
  507. package/dist/http-proxy-node16-D3JUYA5D.js +0 -38
  508. package/dist/is-global-27MUENOK.js +0 -1
  509. package/dist/json-error-S5XFS3UX.js +0 -1
  510. package/dist/latest-version-LDWU5F7A.js +0 -49
  511. package/dist/lib-PJHT4MKY.js +0 -1
  512. package/dist/lib-VKSQ65BQ.js +0 -1
  513. package/dist/lib-YEZOHXF3.js +0 -1
  514. package/dist/metadata-2YJBAKR7.js +0 -1
  515. package/dist/node-package-manager-B3OW3PFQ.js +0 -1
  516. package/dist/notifications-system-BWTDYBG2.js +0 -1
  517. package/dist/os-F6QKJCFW.js +0 -1
  518. package/dist/output-BRIPK7UC.js +0 -1
  519. package/dist/system-466QKFDI.js +0 -1
  520. package/dist/ui-VJTNGCS6.js +0 -1
  521. package/dist/upgrade-VHVJLXKX.js +0 -1
  522. package/dist/version-FETZRLZO.js +0 -1
  523. package/dist/version-T4XXTJMB.js +0 -1
  524. package/dist/workerd-32DMKLMN.js +0 -18
  525. /package/dist/{chunk-YLQ3LNNY.js → chunk-2S3FHQFS.js} +0 -0
  526. /package/dist/{chunk-YRHFPXC3.js → chunk-Z2AV4BWZ.js} +0 -0
@@ -1 +1 @@
1
- import{b as u}from"./chunk-43R5VGKT.js";import{b as r,c as I,e as p}from"./chunk-ZDQO6CNY.js";import{a as o}from"./chunk-JD5P5RAJ.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();c();function i(t){return!(t===void 0||t.trim()==="")}function s(t,e){switch(t){case"bitbucket":return{branch:e.BITBUCKET_BRANCH,build:e.BITBUCKET_BUILD_NUMBER,commitSha:e.BITBUCKET_COMMIT,run:e.BITBUCKET_BUILD_NUMBER,url:`https://bitbucket.org/${e.BITBUCKET_WORKSPACE}/${e.BITBUCKET_REPO_SLUG}/pipelines/results/${e.BITBUCKET_BUILD_NUMBER}`};case"circleci":return{actor:e.CIRCLE_USERNAME,branch:e.CIRCLE_BRANCH,build:e.CIRCLE_BUILD_NUM,commitSha:e.CIRCLE_SHA1,run:e.CIRCLE_WORKFLOW_ID,url:e.CIRCLE_BUILD_URL};case"github":return{actor:e.GITHUB_ACTOR,attempt:e.GITHUB_RUN_ATTEMPT,branch:e.GITHUB_REF_NAME,build:e.GITHUB_RUN_ID,commitSha:e.GITHUB_SHA,run:e.GITHUB_RUN_ID,runNumber:e.GITHUB_RUN_NUMBER,url:`${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`};case"gitlab":return{actor:e.GITLAB_USER_LOGIN,branch:e.CI_COMMIT_REF_NAME,build:e.CI_PIPELINE_ID,commitSha:e.CI_COMMIT_SHA,commitMessage:e.CI_COMMIT_MESSAGE,run:e.CI_RUNNER_ID,url:e.CI_PIPELINE_URL};case"buildkite":return{branch:e.BUILDKITE_BRANCH,build:e.BUILDKITE_BUILD_NUMBER,commitSha:e.BUILDKITE_COMMIT,commitMessage:e.BUILDKITE_MESSAGE,run:e.BUILDKITE_BUILD_NUMBER,url:e.BUILDKITE_BUILD_URL};default:return{}}}import{randomUUID as m}from"crypto";import{homedir as f,networkInterfaces as U}from"os";async function _(t){let{fileExists:e}=await import("./fs-XS5YF34R.js");return e(t)}async function T(t,e){let{exec:a}=await import("./system-466QKFDI.js");await a(t,e)}function N(){return!!(!u()&&process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function A(){return f()}var d,l;function y(){l=void 0}function B(t=process.env){return t[r.env]==="development"}function g(t=process.env){return t===process.env?d??=o(t[r.verbose])||process.argv.includes("--verbose"):o(t[r.verbose])||process.argv.includes("--verbose")}async function S(t=process.env){return Object.prototype.hasOwnProperty.call(t,r.runAsUser)?!o(t[r.runAsUser]):await _(p.executables.dev)}function K(t=process.env){return t===process.env?l??=o(t[r.unitTest]):o(t[r.unitTest])}function G(t=process.env){return o(t[r.noAnalytics])||o(t[r.optOutInstrumentation])||B(t)}function O(t=process.env){return o(t[r.alwaysLogAnalytics])}function H(t=process.env){return o(t[r.alwaysLogMetrics])}function w(t=process.env){return o(t[r.doctor])}function P(t=process.env){return t[r.gitpod]}function k(t=process.env){return t[r.codespaceName]}function z(t=process.env){return t[r.codespacePortForwardingDomain]}function F(t=process.env){return E(t).platform!=="localhost"}function $(t=process.env){return t[r.themeToken]}function E(t=process.env){return i(t[r.codespaces])?{platform:"codespaces",editor:!0}:i(t[r.gitpod])?{platform:"gitpod",editor:!0}:i(t[r.cloudShell])?{platform:"cloudShell",editor:!0}:{platform:"localhost",editor:!1}}async function V(){try{return await T("git",["--version"]),!0}catch{return!1}}function W(t=process.env){if(o(t.CI)){let e="unknown";return i(t.BITBUCKET_BUILD_NUMBER)?e="bitbucket":o(t.CIRCLECI)?e="circleci":i(t.GITHUB_ACTION)?e="github":o(t.GITLAB_CI)?e="gitlab":i(t.BUILDKITE)&&(e="buildkite"),{isCI:!0,name:e,metadata:s(e,t)}}else if(o(t.TF_BUILD))return{isCI:!0,name:"azure",metadata:s("azure",t)};return{isCI:!1}}async function j(){let t="00:00:00:00:00:00",e=Object.values(U()).flat().filter(n=>!!(n&&n.mac!==t));return(e.find(n=>!n.internal)??e[0])?.mac??m()}function Y(t=process.env){let e=t[r.themeKitAccessDomain];return i(e)?e:I}function q(t=process.env){let e=t[r.otelURL];return i(e)?e:"https://otlp-http-production-cli.shopifysvc.com"}export{N as a,A as b,y as c,B as d,g as e,S as f,K as g,G as h,O as i,H as j,w as k,P as l,k as m,z as n,F as o,$ as p,E as q,V as r,W as s,j as t,Y as u,q as v};
1
+ import{b as u}from"./chunk-QGQWVA7N.js";import{b as r,c as I,e as p}from"./chunk-R4E2E4NN.js";import{a as o}from"./chunk-JD5P5RAJ.js";import{g as c}from"./chunk-VKWPEFWQ.js";c();c();function i(t){return!(t===void 0||t.trim()==="")}function s(t,e){switch(t){case"bitbucket":return{branch:e.BITBUCKET_BRANCH,build:e.BITBUCKET_BUILD_NUMBER,commitSha:e.BITBUCKET_COMMIT,run:e.BITBUCKET_BUILD_NUMBER,url:`https://bitbucket.org/${e.BITBUCKET_WORKSPACE}/${e.BITBUCKET_REPO_SLUG}/pipelines/results/${e.BITBUCKET_BUILD_NUMBER}`};case"circleci":return{actor:e.CIRCLE_USERNAME,branch:e.CIRCLE_BRANCH,build:e.CIRCLE_BUILD_NUM,commitSha:e.CIRCLE_SHA1,run:e.CIRCLE_WORKFLOW_ID,url:e.CIRCLE_BUILD_URL};case"github":return{actor:e.GITHUB_ACTOR,attempt:e.GITHUB_RUN_ATTEMPT,branch:e.GITHUB_REF_NAME,build:e.GITHUB_RUN_ID,commitSha:e.GITHUB_SHA,run:e.GITHUB_RUN_ID,runNumber:e.GITHUB_RUN_NUMBER,url:`${e.GITHUB_SERVER_URL}/${e.GITHUB_REPOSITORY}/actions/runs/${e.GITHUB_RUN_ID}`};case"gitlab":return{actor:e.GITLAB_USER_LOGIN,branch:e.CI_COMMIT_REF_NAME,build:e.CI_PIPELINE_ID,commitSha:e.CI_COMMIT_SHA,commitMessage:e.CI_COMMIT_MESSAGE,run:e.CI_RUNNER_ID,url:e.CI_PIPELINE_URL};case"buildkite":return{branch:e.BUILDKITE_BRANCH,build:e.BUILDKITE_BUILD_NUMBER,commitSha:e.BUILDKITE_COMMIT,commitMessage:e.BUILDKITE_MESSAGE,run:e.BUILDKITE_BUILD_NUMBER,url:e.BUILDKITE_BUILD_URL};default:return{}}}import{randomUUID as m}from"crypto";import{homedir as f,networkInterfaces as U}from"os";async function _(t){let{fileExists:e}=await import("./fs-UOOLPOHJ.js");return e(t)}async function T(t,e){let{exec:a}=await import("./system-J4CTESP5.js");await a(t,e)}function N(){return!!(!u()&&process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function A(){return f()}var d,l;function y(){l=void 0}function B(t=process.env){return t[r.env]==="development"}function g(t=process.env){return t===process.env?d??=o(t[r.verbose])||process.argv.includes("--verbose"):o(t[r.verbose])||process.argv.includes("--verbose")}async function S(t=process.env){return Object.prototype.hasOwnProperty.call(t,r.runAsUser)?!o(t[r.runAsUser]):await _(p.executables.dev)}function K(t=process.env){return t===process.env?l??=o(t[r.unitTest]):o(t[r.unitTest])}function G(t=process.env){return o(t[r.noAnalytics])||o(t[r.optOutInstrumentation])||o(t[r.doNotTrack])||B(t)}function O(t=process.env){return o(t[r.alwaysLogAnalytics])}function H(t=process.env){return o(t[r.alwaysLogMetrics])}function w(t=process.env){return o(t[r.doctor])}function P(t=process.env){return t[r.gitpod]}function k(t=process.env){return t[r.codespaceName]}function z(t=process.env){return t[r.codespacePortForwardingDomain]}function F(t=process.env){return E(t).platform!=="localhost"}function $(t=process.env){return t[r.themeToken]}function E(t=process.env){return i(t[r.codespaces])?{platform:"codespaces",editor:!0}:i(t[r.gitpod])?{platform:"gitpod",editor:!0}:i(t[r.cloudShell])?{platform:"cloudShell",editor:!0}:{platform:"localhost",editor:!1}}async function V(){try{return await T("git",["--version"]),!0}catch{return!1}}function W(t=process.env){if(o(t.CI)){let e="unknown";return i(t.BITBUCKET_BUILD_NUMBER)?e="bitbucket":o(t.CIRCLECI)?e="circleci":i(t.GITHUB_ACTION)?e="github":o(t.GITLAB_CI)?e="gitlab":i(t.BUILDKITE)&&(e="buildkite"),{isCI:!0,name:e,metadata:s(e,t)}}else if(o(t.TF_BUILD))return{isCI:!0,name:"azure",metadata:s("azure",t)};return{isCI:!1}}async function j(){let t="00:00:00:00:00:00",e=Object.values(U()).flat().filter(n=>!!(n&&n.mac!==t));return(e.find(n=>!n.internal)??e[0])?.mac??m()}function Y(t=process.env){let e=t[r.themeKitAccessDomain];return i(e)?e:I}function q(t=process.env){let e=t[r.otelURL];return i(e)?e:"https://otlp-http-production-cli.shopifysvc.com"}export{N as a,A as b,y as c,B as d,g as e,S as f,K as g,G as h,O as i,H as j,w as k,P as l,k as m,z as n,F as o,$ as p,E as q,V as r,W as s,j as t,Y as u,q as v};
@@ -1,6 +1,6 @@
1
- import{p as K,v as Y}from"./chunk-YKMINHYY.js";import{a as B}from"./chunk-SACNUF4I.js";import{c as C,m as z}from"./chunk-PTSCGSQV.js";import{b as J,c as V}from"./chunk-3KM5ZOW2.js";import{B as H,C as $,E as b,I as T,K as M,W as w}from"./chunk-D2KIGKBI.js";import{a as P}from"./chunk-BN7ZXAZJ.js";import{f as D,h as E,j as W}from"./chunk-M5VIFG2V.js";import{Ba as _,Sa as G,Ua as j,ja as N,la as I,ta as A,wb as q,za as O}from"./chunk-JLQRDFR5.js";import{b as i,i as U}from"./chunk-FZCGRIOM.js";import{b as le}from"./chunk-YTUUU33R.js";import{c as s,g as x}from"./chunk-IWTNUJGY.js";import{e as ae,g as m}from"./chunk-VKWPEFWQ.js";m();m();var u="https://github.com/Shopify/skeleton-theme.git",ce="https://github.com/Shopify/theme-liquid-docs.git",k={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function X(t,e){return v(t,e)}async function Z(t,e){return v(t,e,!0)}async function ee(t){let e=await B("Shopify","skeleton-theme",{filter:n=>!n.draft&&!n.prerelease});if(!e)throw new E("Couldn't find a stable Skeleton theme release");return{...await v(`${u}#${e.tag_name}`,t),repoUrl:u,latest:!0}}async function v(t,e,o){return await T([{title:`Cloning ${t} into ${e}`,task:async()=>{await C({repoUrl:t,destination:e,latestTag:o,shallow:!o}),await z(e),t.split("#")[0]===u&&(await Promise.all(Object.keys(k).map(async n=>Q(s(e,`.${n}`)))),await Q(s(e,".git")))}}]),{path:e,repoUrl:t,latest:o??!1,aiInstructions:null,instructionFiles:[]}}async function Q(t){await G(t)&&await _(t)}async function te(){return await b({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(k).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function oe(t,e){let o=[],n=[s(t,"AGENTS.md")];return await T([{title:`Adding AI instructions into ${t}`,task:async()=>{await N(async p=>{await C({repoUrl:ce,destination:p,shallow:!0});let h=e==="all"?Object.keys(k).filter(r=>r!=="all"):[e];try{let r=s(p,"ai","github","copilot-instructions.md"),d=await I(r),f=s(t,"AGENTS.md"),L=`# AGENTS.md
1
+ import{p as K,v as Y}from"./chunk-CZNUBAAG.js";import{a as B}from"./chunk-FAVPTYIR.js";import{c as C,m as z}from"./chunk-VJG7VXFU.js";import{b as J,c as V}from"./chunk-DMOLPSXF.js";import{A as $,C as b,G as T,I as M,U as w,z as H}from"./chunk-2KUM2RU4.js";import{a as P}from"./chunk-LG3KEHGD.js";import{g as D,i as E,k as W}from"./chunk-TD6JBHUS.js";import{Ba as _,Sa as G,Ua as j,ja as N,la as I,ta as A,za as O,zb as q}from"./chunk-ZMOW2YZ4.js";import{b as i,j as U}from"./chunk-3PYDIBTX.js";import{b as le}from"./chunk-AE3IQG7S.js";import{c as s,g as x}from"./chunk-IWTNUJGY.js";import{e as ae,g as m}from"./chunk-VKWPEFWQ.js";m();m();var u="https://github.com/Shopify/skeleton-theme.git",ce="https://github.com/Shopify/theme-liquid-docs.git",k={all:"All",github:"VS Code (GitHub Copilot)",cursor:"Cursor",claude:"Claude"};async function X(t,e){return v(t,e)}async function Z(t,e){return v(t,e,!0)}async function ee(t){let e=await B("Shopify","skeleton-theme",{filter:n=>!n.draft&&!n.prerelease});if(!e)throw new E("Couldn't find a stable Skeleton theme release");return{...await v(`${u}#${e.tag_name}`,t),repoUrl:u,latest:!0}}async function v(t,e,o){return await T([{title:`Cloning ${t} into ${e}`,task:async()=>{await C({repoUrl:t,destination:e,latestTag:o,shallow:!o}),await z(e),t.split("#")[0]===u&&(await Promise.all(Object.keys(k).map(async n=>Q(s(e,`.${n}`)))),await Q(s(e,".git")))}}]),{path:e,repoUrl:t,latest:o??!1,aiInstructions:null,instructionFiles:[]}}async function Q(t){await G(t)&&await _(t)}async function te(){return await b({message:"Which LLM instruction file would you like to include in your theme?",choices:[...Object.entries(k).map(([e,o])=>({label:o,value:e})),{label:"Skip",value:null}]})}async function oe(t,e){let o=[],n=[s(t,"AGENTS.md")];return await T([{title:`Adding AI instructions into ${t}`,task:async()=>{await N(async p=>{await C({repoUrl:ce,destination:p,shallow:!0});let h=e==="all"?Object.keys(k).filter(r=>r!=="all"):[e];try{let r=s(p,"ai","github","copilot-instructions.md"),d=await I(r),f=s(t,"AGENTS.md"),L=`# AGENTS.md
2
2
 
3
- ${d}`;await A(f,L);let a=await Promise.all(h.map(l=>me(t,f,l)));n.push(...h.flatMap(l=>l==="cursor"?[]:[s(t,l==="github"?"copilot-instructions.md":"CLAUDE.md")])),a.forEach(l=>{l.copiedFile&&o.push(l.copiedFile)})}catch{throw new E("Failed to create AI instructions")}})}}]),{files:n,copiedFiles:o}}async function me(t,e,o){if(o==="cursor")return{};let p={github:"copilot-instructions.md",claude:"CLAUDE.md"}[o],h=s(t,p);try{return await O(e,h),{}}catch(r){if(r instanceof Error){let d=await I(e);return await A(h,d),{copiedFile:p}}else throw r}}m();import{resolve as ne}from"node:path";var ue=i.enum(["all","github","cursor","claude"]).nullable(),F=i.string().refine(x).describe("An absolute native filesystem path."),S=P({name:"ThemeInitResult",definitions:{AbsolutePath:F},schema:i.object({status:i.enum(["success","partial"]),changed:i.literal(!0),directory:F,repoUrl:i.string().min(1).describe("The source Git remote (including HTTPS, SSH, or SCP-style Git URLs)."),latest:i.boolean(),aiInstructions:ue,instructionFilePaths:i.array(F).nullable().describe("Created instruction files, or null when setup failed before their completion could be established."),reason:i.string().nullable().describe("The reason for incomplete setup, or null when setup completed.")}).strict()});function re(t){return{status:t.status??"success",changed:!0,directory:ne(t.path),repoUrl:t.repoUrl,latest:t.latest,aiInstructions:t.aiInstructions,instructionFilePaths:t.status==="partial"?null:t.instructionFiles.map(e=>ne(e)),reason:t.reason??null}}m();function ie(t,e){e==="json"&&q(S.encode(re(t)))}function se(t){if(t.length===0)return;let e="Files created instead of symlinks.",o=`Shopify CLI attempted to create symbolic links between AGENTS.md and ${t.join(", ")}, but your system doesn't have Developer Mode enabled or symlinks are disabled. Separate files were created instead.`;H({headline:e,body:o})}var y=ae(le(),1);var R=class extends Y{static get jsonOutputSchema(){return S}static summary="Clones a Git repository to use as a starting point for building a new theme.";static descriptionWithMarkdown=`Clones a Git repository to your local machine to use as the starting point for building a theme.
3
+ ${d}`;await A(f,L);let a=await Promise.all(h.map(l=>me(t,f,l)));n.push(...h.flatMap(l=>l==="cursor"?[]:[s(t,l==="github"?"copilot-instructions.md":"CLAUDE.md")])),a.forEach(l=>{l.copiedFile&&o.push(l.copiedFile)})}catch{throw new E("Failed to create AI instructions")}})}}]),{files:n,copiedFiles:o}}async function me(t,e,o){if(o==="cursor")return{};let p={github:"copilot-instructions.md",claude:"CLAUDE.md"}[o],h=s(t,p);try{return await O(e,h),{}}catch(r){if(r instanceof Error){let d=await I(e);return await A(h,d),{copiedFile:p}}else throw r}}m();import{resolve as ne}from"node:path";var ue=i.enum(["all","github","cursor","claude"]).nullable(),F=i.string().refine(x).describe("An absolute native filesystem path."),S=P({name:"ThemeInitResult",definitions:{AbsolutePath:F},schema:i.object({status:i.enum(["success","partial"]),changed:i.literal(!0),directory:F,repoUrl:i.string().min(1).describe("The source Git remote (including HTTPS, SSH, or SCP-style Git URLs)."),latest:i.boolean(),aiInstructions:ue,instructionFilePaths:i.array(F).nullable().describe("Created instruction files, or null when setup failed before their completion could be established."),reason:i.string().nullable().describe("The reason for incomplete setup, or null when setup completed.")}).strict()});function re(t){return{status:t.status??"success",changed:!0,directory:ne(t.path),repoUrl:t.repoUrl,latest:t.latest,aiInstructions:t.aiInstructions,instructionFilePaths:t.status==="partial"?null:t.instructionFiles.map(e=>ne(e)),reason:t.reason??null}}m();function ie(t,e){e==="json"&&q(S.encode(re(t)))}function se(t){if(t.length===0)return;let e="Files created instead of symlinks.",o=`Shopify CLI attempted to create symbolic links between AGENTS.md and ${t.join(", ")}, but your system doesn't have Developer Mode enabled or symlinks are disabled. Separate files were created instead.`;H({headline:e,body:o})}var y=ae(le(),1);var R=class extends Y{static jsonOutputSchema=S;static summary="Clones a Git repository to use as a starting point for building a new theme.";static descriptionWithMarkdown=`Clones a Git repository to your local machine to use as the starting point for building a theme.
4
4
 
5
5
  If no Git repository is specified, then this command creates a copy of Shopify's [Skeleton theme](${u}), with the specified name in the current folder. If no name is provided, then you're prompted to enter one.
6
6
 
@@ -1,6 +1,6 @@
1
- import{a as L,b as w,c as P}from"./chunk-HF4NDEX3.js";import{a as g,b as x}from"./chunk-QW52RPAU.js";import{a as A}from"./chunk-CGVROSPS.js";import{a as q,c as J}from"./chunk-2L6AN3QA.js";import{e as R}from"./chunk-QFWWCZOI.js";import{e as Y,q as H}from"./chunk-H6GYBLVQ.js";import{i as _,p as $,v as C}from"./chunk-YKMINHYY.js";import{b as O,c as E,f as M}from"./chunk-3KM5ZOW2.js";import{A as b,B as D,F}from"./chunk-D2KIGKBI.js";import{g as I,h as S}from"./chunk-M5VIFG2V.js";import{Cb as j,U as T,wb as u}from"./chunk-JLQRDFR5.js";import{b as o}from"./chunk-FZCGRIOM.js";import{b as U}from"./chunk-YTUUU33R.js";import{e as z,g as c}from"./chunk-VKWPEFWQ.js";c();c();var N=o.object({status:o.enum(["success","partial"]),themes:o.array(L),errors:o.array(o.object({themeId:o.number(),message:o.string()})).optional()}),p=R({name:"ThemeDeleteResult",schema:o.object({status:o.enum(["success","partial"]),changed:o.boolean(),themes:o.array(w),errors:o.array(o.object({themeId:o.string().regex(/^\d+$/),error:o.object({type:o.literal("abort"),message:o.string()}).strict()}).strict()).optional()}).strict(),definitions:{Theme:w},project(t){let e=N.parse(t);return{status:e.status,changed:e.themes.length>0,themes:e.themes.map(P),...e.errors?{errors:e.errors.map(n=>({themeId:String(n.themeId),error:{type:"abort",message:n.message}}))}:{}}}});c();function k(t,e,n){if(e==="json"){u(p.encode(t));return}let s=n.environment?[{subdued:`Environment: ${n.environment}
1
+ import{a as L,b as w,c as P}from"./chunk-YR4J46US.js";import{a as g,b as x}from"./chunk-XLMKHTJ5.js";import{a as A}from"./chunk-R6US7F33.js";import{a as q,c as J}from"./chunk-7N7KRZOM.js";import{e as Y,q as H}from"./chunk-DVFVO6ZE.js";import{e as R}from"./chunk-7HECBXSP.js";import{i as _,p as $,v as C}from"./chunk-CZNUBAAG.js";import{b as O,c as E,f as M}from"./chunk-DMOLPSXF.js";import{D as F,y as b,z as D}from"./chunk-2KUM2RU4.js";import{h as I,i as S}from"./chunk-TD6JBHUS.js";import{Fb as j,U as T,zb as u}from"./chunk-ZMOW2YZ4.js";import{b as o}from"./chunk-3PYDIBTX.js";import{b as U}from"./chunk-AE3IQG7S.js";import{e as z,g as c}from"./chunk-VKWPEFWQ.js";c();c();var N=o.object({status:o.enum(["success","partial"]),themes:o.array(L),errors:o.array(o.object({themeId:o.number(),message:o.string()})).optional()}),p=R({name:"ThemeDeleteResult",schema:o.object({status:o.enum(["success","partial"]),changed:o.boolean(),themes:o.array(w),errors:o.array(o.object({themeId:o.string().regex(/^\d+$/),error:o.object({type:o.literal("abort"),message:o.string()}).strict()}).strict()).optional()}).strict(),definitions:{Theme:w},project(t){let e=N.parse(t);return{status:e.status,changed:e.themes.length>0,themes:e.themes.map(P),...e.errors?{errors:e.errors.map(n=>({themeId:String(n.themeId),error:{type:"abort",message:n.message}}))}:{}}}});c();function k(t,e,n){if(e==="json"){u(p.encode(t));return}let s=n.environment?[{subdued:`Environment: ${n.environment}
2
2
 
3
- `}]:[];(t.status==="partial"?D:b)({body:T(t.themes,m=>[...s,`The following themes were deleted from ${n.store}:`,x(m)],m=>[...s,"The theme",...g(m),`was deleted from ${n.store}.`]),...t.errors?{nextSteps:t.errors.map(m=>[`Theme #${m.themeId}: ${m.message}`])}:{}})}c();async function G(t,e,n){let s=e.themes;e.development&&(s=[(await new A(t).find()).id.toString()]);let i=t.storeFqdn,m=await B(t,{...e,themes:s,development:!1});if(!e.force&&!n&&!await V(m,i))return;let f=await Promise.allSettled(m.map(async r=>(await H(r.id,t),{...r,shop:i}))),d=f.flatMap(r=>r.status==="fulfilled"?[r.value]:[]);for(let r of d)if(Y(r))try{_()}catch(l){let a=l instanceof Error?l.message:String(l);j(`Theme #${r.id} was deleted, but its local development theme reference could not be removed: ${a}`)}let h=f.flatMap((r,l)=>{if(r.status==="fulfilled")return[];let a=r.reason;return[{themeId:m[l].id,message:a instanceof Error?a.message:String(a)}]});if(h.length>0&&d.length===0){let r=f.find(a=>a.status==="rejected")?.reason;if(r instanceof I)throw r;let l=new S(h[0].message);throw l.details={errors:h.map(({themeId:a,message:W})=>({themeId:String(a),message:W}))},l}return{status:h.length>0?"partial":"success",themes:d,...h.length>0?{errors:h}:{}}}async function B(t,e){if(e.selectTheme||e.themes.length>0)return J(t,e);let n=t.storeFqdn;return[await q(t,{header:`Select a theme to delete from ${n}`,filter:{development:e.development}})]}async function V(t,e){let s={message:T(t,i=>[`Delete the following themes from ${e}?`],i=>["Delete",...g(i),`from ${e}?`]),confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return t.length>1&&(s.infoTable={"":t.map(g)}),F(s)}var v=z(U(),1);var y=class extends C{static get jsonOutputSchema(){return p}static summary="Delete remote themes from the connected store. This command can't be undone.";static descriptionWithMarkdown=`Deletes a theme from your store.
3
+ `}]:[];(t.status==="partial"?D:b)({body:T(t.themes,m=>[...s,`The following themes were deleted from ${n.store}:`,x(m)],m=>[...s,"The theme",...g(m),`was deleted from ${n.store}.`]),...t.errors?{nextSteps:t.errors.map(m=>[`Theme #${m.themeId}: ${m.message}`])}:{}})}c();async function G(t,e,n){let s=e.themes;e.development&&(s=[(await new A(t).find()).id.toString()]);let i=t.storeFqdn,m=await B(t,{...e,themes:s,development:!1});if(!e.force&&!n&&!await V(m,i))return;let f=await Promise.allSettled(m.map(async r=>(await H(r.id,t),{...r,shop:i}))),d=f.flatMap(r=>r.status==="fulfilled"?[r.value]:[]);for(let r of d)if(Y(r))try{_()}catch(l){let a=l instanceof Error?l.message:String(l);j(`Theme #${r.id} was deleted, but its local development theme reference could not be removed: ${a}`)}let h=f.flatMap((r,l)=>{if(r.status==="fulfilled")return[];let a=r.reason;return[{themeId:m[l].id,message:a instanceof Error?a.message:String(a)}]});if(h.length>0&&d.length===0){let r=f.find(a=>a.status==="rejected")?.reason;if(r instanceof I)throw r;let l=new S(h[0].message);throw l.details={errors:h.map(({themeId:a,message:W})=>({themeId:String(a),message:W}))},l}return{status:h.length>0?"partial":"success",themes:d,...h.length>0?{errors:h}:{}}}async function B(t,e){if(e.selectTheme||e.themes.length>0)return J(t,e);let n=t.storeFqdn;return[await q(t,{header:`Select a theme to delete from ${n}`,filter:{development:e.development}})]}async function V(t,e){let s={message:T(t,i=>[`Delete the following themes from ${e}?`],i=>["Delete",...g(i),`from ${e}?`]),confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return t.length>1&&(s.infoTable={"":t.map(g)}),F(s)}var v=z(U(),1);var y=class extends C{static jsonOutputSchema=p;static summary="Delete remote themes from the connected store. This command can't be undone.";static descriptionWithMarkdown=`Deletes a theme from your store.
4
4
 
5
5
  You can specify multiple themes by ID. If no theme is specified, then you're prompted to select the theme that you want to delete from the list of themes in your store.
6
6
 
@@ -0,0 +1,2 @@
1
+ import{b as w,d as z}from"./chunk-2BYW3BYX.js";import{Da as _,Ea as u,Ga as r,d as E,i as O,na as B,oa as U,pa as T,w as q}from"./chunk-YKDRUAY3.js";import{I as P,K as G,L as M,M as $,V as H,x as L,y as R}from"./chunk-2KUM2RU4.js";import{i as p}from"./chunk-TD6JBHUS.js";import{Eb as D,S as A}from"./chunk-ZMOW2YZ4.js";import{k as C}from"./chunk-3PYDIBTX.js";import{g as l}from"./chunk-VKWPEFWQ.js";l();var ce=/gid:\/\/shopify\/\w*\/(\d+)/,V="development",Ve="live",xe="unpublished";function Ie(e){return e.role===V}async function Ae(e){let n=await A("creative");return P({message:e,defaultValue:n})}function S(e){return`gid://shopify/OnlineStoreTheme/${e}`}function N(e){let n=ce.exec(e);if(n&&n[1]!==void 0)return parseInt(n[1],10);throw new Error(`Invalid GID: ${e}`)}l();l();var F;(function(e){e.Delete="DELETE",e.Upload="UPLOAD"})(F||(F={}));l();function y(e){if(!e)return;e.processing??=!1,e.createdAtRuntime??=!1;let{id:n,name:i,role:a,processing:t,createdAtRuntime:d}=e;return{id:n,name:i,processing:t,createdAtRuntime:d,role:a==="main"?"live":a}}function Ue(e){if(!e)return;let{key:n,checksum:i,attachment:a,value:t}=e,d={size:(t||a||"").length,mtime:Date.now()};return{key:n,checksum:i,attachment:a,value:t,stats:d}}l();var j={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var Q={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeId"}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var K={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeDuplicate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeDuplicate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"newTheme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var X={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themePublish"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themePublish"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var Y={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"source"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"URL"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"role"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ThemeRole"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}},{kind:"Argument",name:{kind:"Name",value:"source"},value:{kind:"Variable",name:{kind:"Name",value:"source"}}},{kind:"Argument",name:{kind:"Name",value:"role"},value:{kind:"Variable",name:{kind:"Name",value:"role"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var W={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileBodies"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"filenames"}},type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}},{kind:"Argument",name:{kind:"Name",value:"filenames"},value:{kind:"Variable",name:{kind:"Name",value:"filenames"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"body"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyText"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"content"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyBase64"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"contentBase64"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFileBodyUrl"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var Z={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemeFileChecksums"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"files"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"size"}},{kind:"Field",name:{kind:"Name",value:"checksumMd5"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var J={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesUpsert"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OnlineStoreThemeFilesUpsertFileInput"}}}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesUpsert"},arguments:[{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}},{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"upsertedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var ee={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"themeFilesDelete"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"themeId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"files"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themeFilesDelete"},arguments:[{kind:"Argument",name:{kind:"Name",value:"themeId"},value:{kind:"Variable",name:{kind:"Name",value:"themeId"}}},{kind:"Argument",name:{kind:"Name",value:"files"},value:{kind:"Variable",name:{kind:"Name",value:"files"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"deletedThemeFiles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"userErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"filename"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var ne={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"metafieldDefinitionsByOwnerType"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"ownerType"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"MetafieldOwnerType"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metafieldDefinitions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"ownerType"},value:{kind:"Variable",name:{kind:"Name",value:"ownerType"}}},{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"250"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"namespace"}},{kind:"Field",name:{kind:"Name",value:"description"}},{kind:"Field",name:{kind:"Name",value:"type"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"category"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var ie={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getThemes"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"after"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"50"}},{kind:"Argument",name:{kind:"Name",value:"after"},value:{kind:"Variable",name:{kind:"Name",value:"after"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasNextPage"}},{kind:"Field",name:{kind:"Name",value:"endCursor"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var ae={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"getTheme"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"theme"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var te={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"findDevelopmentThemeByName"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"themes"},arguments:[{kind:"Argument",name:{kind:"Name",value:"first"},value:{kind:"IntValue",value:"2"}},{kind:"Argument",name:{kind:"Name",value:"names"},value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"name"}}]}},{kind:"Argument",name:{kind:"Name",value:"roles"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"DEVELOPMENT"}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"nodes"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"role"}},{kind:"Field",name:{kind:"Name",value:"processing"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var de={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"OnlineStorePasswordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"onlineStore"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"passwordProtection"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"enabled"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};l();var pe="CHALLENGE_REQUIRED",he=["\r",`
2
+ `," "],b=class extends p{},g,x=0;async function me(e){g&&await g;let n=x,i=await le(e);if(!i.challenged)return i.result;let a=x>n;(g||!a)&&await Ne(i.challengeUrl);let t=await le(e);if(!t.challenged)return t.result;throw r("theme-api:trust-challenge:retry-challenged"),new b("Shopify still needs to verify your identity before it can continue.",void 0,[["Complete the verification at",{link:{url:t.challengeUrl}},"then run the command again."]])}async function le(e){try{return{challenged:!1,result:await e()}}catch(n){let i=await fe(n);if(!i)throw n;return{challenged:!0,challengeUrl:i}}}async function fe(e){let i=T(e).find(a=>a.extensions?.code===pe)?.extensions?.redirect_to;if(typeof i=="string"){if(!await ve(i)){D(`Ignoring trust challenge with an unexpected URL host: ${i}`);return}return i}}async function ve(e){try{let n=new URL(e);return n.protocol==="https:"&&n.hostname===await q()}catch{return!1}}async function Ne(e){return g??=ye(e).then(()=>{x+=1}).finally(()=>{g=void 0}),g}async function ye(e){if(r("theme-api:trust-challenge:required"),H()||!M()||C()==="json")throw r("theme-api:trust-challenge:non-interactive"),new b("Shopify needs to verify your identity before it can continue.",void 0,[["Open",{link:{url:e}},"in a browser where you're logged in to Shopify with the same account you use in Shopify CLI, complete the verification, then run the command again."]]);let n=await $(e);r(n?"theme-api:trust-challenge:browser-opened":"theme-api:trust-challenge:browser-not-opened"),L({headline:"Verify your identity to continue.",body:n?"A verification page opened in your browser.":"Shopify needs to verify your identity before it can continue.",link:n?void 0:{label:"Open the verification page",url:e},nextSteps:[["Complete the verification in your browser, logged in with the same account you use in Shopify CLI."],["Press",{userInput:"Enter"},"here once you have completed it."]],orderedNextSteps:!0}),await G(process.stdin,void 0,{keys:he}),r("theme-api:trust-challenge:acknowledged"),R({headline:"Continuing."})}var Se="https://cdn.shopify.com/static/online-store/theme-skeleton.zip",c={useNetworkLevelRetry:!0,useAbortSignal:!1,maxRetryTimeMs:90*1e3,recordCommandRetries:!0,retryTransientServerErrors:!0},re="the required theme access scope";async function Yn(e,n){let i=S(e);r("theme-api:fetch-theme");try{let{theme:a}=await w({query:ae,session:n,variables:{id:i},responseOptions:{handleErrors:!1},preferredBehaviour:c});if(a)return y({id:N(a.id),processing:a.processing,role:a.role.toLowerCase(),name:a.name})}catch(a){ke(a),se(a,n),u(a),D(`Error fetching theme with ID: ${e}`)}}async function Wn(e){let n=[],i=null;for(r("theme-api:fetch-themes");;){let a=await h({query:ie,session:e,variables:{after:i},responseOptions:{handleErrors:!1},preferredBehaviour:c});a.themes||s("Failed to fetch themes");let{nodes:t,pageInfo:d}=a.themes;if(t.forEach(m=>{let o=y({id:N(m.id),processing:m.processing,role:m.role.toLowerCase(),name:m.name});o&&n.push(o)}),!d.hasNextPage)return n;i=d.endCursor}}async function Zn(e,n){r("theme-api:find-development-theme-by-name");let{themes:i}=await h({query:te,session:n,variables:{name:e},responseOptions:{handleErrors:!1},preferredBehaviour:c});if(i||s("Failed to fetch themes"),i.nodes.length>1)throw u(new p(`More than one development theme is named "${e}"`));if(i.nodes.length===1){let{id:a,processing:t,role:d,name:m}=i.nodes[0];return y({id:N(a),processing:t,role:d.toLowerCase(),name:m})}}async function Jn(e,n){let i=e.src??Se;r("theme-api:create-theme");let{themeCreate:a}=await h({query:Y,session:n,variables:{name:e.name??"",source:i,role:(e.role??V).toUpperCase()},responseOptions:{handleErrors:!1},preferredBehaviour:c});a||s("Failed to create theme");let{theme:t,userErrors:d}=a;if(d.length){let m=a.userErrors.map(o=>o.message).join(", ");throw u(new p(m))}return t||s("Failed to create theme"),y({id:N(t.id),name:t.name,role:t.role.toLowerCase()})}async function ei(e,n,i){let a=[],t=null;for(r("theme-api:fetch-assets");;){let d=await h({query:W,session:i,variables:{id:I(e),filenames:n,after:t},responseOptions:{handleErrors:!1},preferredBehaviour:c});if(!d.theme?.files?.nodes||!d.theme?.files?.pageInfo){let k=d.theme?.files?.userErrors.map(v=>v.filename).join(", ");s(`Error fetching assets: ${k}`)}let{nodes:m,pageInfo:o}=d.theme.files;if(a.push(...await Promise.all(m.map(async k=>{let{attachment:v,value:f}=await Ee(k.body);return{attachment:v,key:k.filename,checksum:k.checksumMd5,value:f}}))),!o.hasNextPage)return a;t=o.endCursor}}async function ni(e,n,i){let t=[];r("theme-api:delete-assets");for(let d=0;d<n.length;d+=50){let m=n.slice(d,d+50),{themeFilesDelete:o}=await h({query:ee,session:i,variables:{themeId:S(e),files:m},preferredBehaviour:c});o||s("Failed to delete theme assets");let{deletedThemeFiles:k,userErrors:v}=o;k&&k.forEach(f=>{t.push({key:f.filename,success:!0,operation:F.Delete})}),v.length>0&&v.forEach(f=>{f.filename?(u(`Asset deletion failed for ${f.filename}: ${f.message}`),t.push({key:f.filename,success:!1,operation:F.Delete,errors:{asset:[f.message]}})):s(`Failed to delete theme assets: ${f.message}`)})}return t}async function ii(e,n,i){let a=[];r("theme-api:bulk-upload-assets");for(let t=0;t<n.length;t+=50){let d=n.slice(t,t+50),m=Fe(d);_("theme-api:upload-files");let o=await ge(e,m,i);_("theme-api:upload-files"),a.push(...be(o))}return a}function Fe(e){return e.map(n=>n.attachment?{filename:n.key,body:{type:"BASE64",value:n.attachment}}:{filename:n.key,body:{type:"TEXT",value:n.value??""}})}async function ge(e,n,i){return h({query:J,session:i,variables:{themeId:I(e),files:n},preferredBehaviour:c})}function be(e){let{themeFilesUpsert:n}=e;n||s("Failed to upload theme files");let{upsertedThemeFiles:i,userErrors:a}=n,t=[];return i?.forEach(d=>{t.push({key:d.filename,success:!0,operation:F.Upload})}),a.forEach(d=>{d.filename||s(`Error uploading theme files: ${d.message}`),u(`Asset upload failed for ${d.filename}: ${d.message}`),t.push({key:d.filename,success:!1,operation:F.Upload,errors:{asset:[d.message]}})}),t}async function ai(e,n){let i=[],a=null;for(r("theme-api:fetch-checksums");;){let t=await h({query:Z,session:n,variables:{id:I(e),after:a},responseOptions:{handleErrors:!1},preferredBehaviour:c});if(!t?.theme?.files?.nodes||!t?.theme?.files?.pageInfo){let o=t.theme?.files?.userErrors.map(k=>k.filename).join(", ");throw u(new p(`Failed to fetch checksums for: ${o}`))}let{nodes:d,pageInfo:m}=t.theme.files;if(i.push(...d.map(o=>({key:o.filename,checksum:o.checksumMd5}))),!m.hasNextPage)return i;a=m.endCursor}}async function ti(e,n,i){let a=n.name,t={};a&&(t.name=a),r("theme-api:update-theme");let{themeUpdate:d}=await h({query:j,session:i,variables:{id:S(e),input:t},preferredBehaviour:c});d||s("Failed to update theme");let{theme:m,userErrors:o}=d;if(o.length){let k=d.userErrors.map(v=>v.message).join(", ");throw u(new p(k))}return m||s("Failed to update theme"),y({id:N(m.id),name:m.name,role:m.role.toLowerCase()})}async function di(e,n){r("theme-api:publish-theme");let{themePublish:i}=await h({query:X,session:n,variables:{id:S(e)},preferredBehaviour:c});i||s("Failed to update theme");let{theme:a,userErrors:t}=i;if(t.length){let d=i.userErrors.map(m=>m.message).join(", ");throw u(new p(d))}return a||s("Failed to update theme"),y({id:N(a.id),name:a.name,role:a.role.toLowerCase()})}async function li(e,n){r("theme-api:delete-theme");let{themeDelete:i}=await h({query:Q,session:n,variables:{id:S(e)},preferredBehaviour:c});i||s("Failed to update theme");let{deletedThemeId:a,userErrors:t}=i;if(t.length){let d=i.userErrors.map(m=>m.message).join(", ");throw u(new p(d))}return a||s("Failed to update theme"),!0}async function mi(e,n,i){let a;r("theme-api:duplicate-theme");let{themeDuplicate:t}=await h({query:K,session:i,variables:{id:S(e),name:n},preferredBehaviour:c,responseOptions:{onResponse:k=>{a=k.headers.get("x-request-id")??void 0}}});if(!t)return u("Failed to duplicate theme"),{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:a};let{newTheme:d,userErrors:m}=t;return m.length>0?{theme:void 0,userErrors:m,requestId:a}:d?{theme:y({id:N(d.id),name:d.name,role:d.role.toLowerCase()}),userErrors:[],requestId:a}:{theme:void 0,userErrors:[{message:"Failed to duplicate theme"}],requestId:a}}async function ri(e,n){r("theme-api:fetch-metafield-definitions");let i=[],a=null;for(;;){let{metafieldDefinitions:t}=await oe({query:ne,session:n,variables:{ownerType:e,after:a}});if(i.push(...t.nodes),!t.pageInfo.hasNextPage)break;let d=t.pageInfo.endCursor;(!d||d===a)&&s("Failed to paginate metafield definitions"),a=d}return i.map(t=>({key:t.key,namespace:t.namespace,name:t.name,description:t.description,type:{name:t.type.name,category:t.type.category}}))}async function oi(e){r("theme-api:check-password-protection");let{onlineStore:n}=await oe({query:de,session:e});n||s("Unable to get details about the storefront's password protection");let{passwordProtection:i}=n;return i.enabled}function s(e){throw u(new p(e))}function si(e){return e instanceof b}async function h(e){try{return await me(()=>w(e))}catch(n){throw ke(n),se(n,e.session),n}}async function oe(e){try{return await h({...e,responseOptions:{handleErrors:!1},preferredBehaviour:c})}catch(n){throw n instanceof E?B("Admin")(n,ue(n)):n}}function se(e,n){if(!(e instanceof E))return;let{status:i}=e.response;if(!(i<500&&!O(e)))throw u(new z(n.storeFqdn,i>=500?i:void 0,ue(e)))}function ue(e){let n=e.response.errors;if(Array.isArray(n))for(let i of n){let a=i?.extensions?.requestId;if(typeof a=="string")return a}return U(e)}function ke(e){let n=Te(e);if(!n)return;let i=[["If you authenticated with an Admin API access token, update the app or integration that issued the token to include the required theme access scopes, then reauthorize it or generate a new token."],["For",{command:"theme pull"},{char:","},{command:"theme list"},{char:","},"and",{command:"theme info"},{char:","},"add the",{command:"read_themes"},"scope",{char:"."}],["For",{command:"theme push"},{char:","},{command:"theme dev"},{char:","},{command:"theme publish"},{char:","},{command:"theme delete"},{char:","},{command:"theme rename"},{char:","},"and",{command:"theme duplicate"},{char:","},"add both the",{command:"read_themes"},"and",{command:"write_themes"},"scopes",{char:"."}],["If you authenticated with your Shopify account, make sure your staff or collaborator account can access Online Store themes, then run",{command:"shopify auth logout"},"and try again",{char:"."}],["See",{link:{label:"Shopify access scopes",url:"https://shopify.dev/api/usage/access-scopes"}},{char:"."}]];throw u(new p(`The authenticated account or access token is missing ${n}.`,void 0,i))}function Te(e){let n=T(e).find(a=>a.extensions?.code==="ACCESS_DENIED");if(!n)return;let i=n.extensions?.requiredAccess;return typeof i!="string"?re:De(i)}function De(e){return e.trim().replace(/\.$/,"").replace(/^The user needs\s+/i,"")||re}function I(e){return`gid://shopify/OnlineStoreTheme/${e}`}async function Ee(e){switch(e.__typename){case"OnlineStoreThemeFileBodyText":return{value:e.content};case"OnlineStoreThemeFileBodyBase64":return{attachment:e.contentBase64};case"OnlineStoreThemeFileBodyUrl":try{let i=await(await fetch(e.url)).arrayBuffer();return{attachment:Buffer.from(i).toString("base64")}}catch{throw u(new p(`Error downloading content from URL: ${e.url}`))}}}export{Ue as a,V as b,Ve as c,xe as d,Ie as e,Ae as f,Yn as g,Wn as h,Zn as i,Jn as j,ei as k,ni as l,ii as m,ai as n,ti as o,di as p,li as q,mi as r,ri as s,oi as t,si as u};
@@ -1 +1 @@
1
- import{b as L}from"./chunk-ZJOX5HW4.js";import{I as g,t as f,w as p,x as d,y as h,z as S}from"./chunk-GQLNG537.js";import{j as r}from"./chunk-MHR5OHT5.js";import{b as O,c as b,f as F}from"./chunk-3KM5ZOW2.js";import{E as w,K as y}from"./chunk-D2KIGKBI.js";import{a as m}from"./chunk-BN7ZXAZJ.js";import{Ab as I,wb as A}from"./chunk-JLQRDFR5.js";import{b as n}from"./chunk-FZCGRIOM.js";import{b as j}from"./chunk-YTUUU33R.js";import{e as C,g as i}from"./chunk-VKWPEFWQ.js";i();i();var a=m({name:"AuthLoginResult",schema:n.object({status:n.literal("success"),alias:n.string()}).strict()});i();var c="NEW_LOGIN";function _(s,e){let t=[],o=s[e];if(o)for(let[l,x]of Object.entries(o))t.push({label:x.identity.alias??l,value:l});return t}async function q(){let s=await g({},{forceNewSession:!0}),e=await d(s.userId);if(!e){let t=await y({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await h(s.userId,t),t}return e}async function E(){let s=await p(),e=await f(),t=[];return s&&t.push(..._(s,e)),t.length>0&&t.push({label:"Log in with a different account",value:c}),t}async function N(s){if(s){let o=await S(s);if(o)return r(o),s}let e=await E(),t=c;return e.length>0&&(t=await w({message:"Which account would you like to use?",choices:e})),t===c?q():(r(t),e.find(o=>o.value===t)?.label??t)}var v=C(j(),1);var u=class s extends L{static descriptionWithMarkdown="Logs you in to your Shopify account.";static description=this.descriptionForHelp();static flags={...O,...b,alias:F(v.Flags.string({description:"Alias of an existing session you want to use.",env:"SHOPIFY_FLAG_AUTH_ALIAS"}))};static get jsonOutputSchema(){return a}async run(){let{flags:e}=await this.parse(s),t=await N(e.alias);e.json?A(a.encode({status:"success",alias:t})):I(`Current account: ${t}.`)}};export{u as a};
1
+ import{b as L}from"./chunk-XEZPN5TR.js";import{A as f,D as p,E as d,F as h,G as S,P as g}from"./chunk-YKDRUAY3.js";import{j as r}from"./chunk-3FZ4LE6A.js";import{b as O,c as b,f as F}from"./chunk-DMOLPSXF.js";import{C as w,I as y}from"./chunk-2KUM2RU4.js";import{a as m}from"./chunk-LG3KEHGD.js";import{Db as I,zb as A}from"./chunk-ZMOW2YZ4.js";import{b as n}from"./chunk-3PYDIBTX.js";import{b as j}from"./chunk-AE3IQG7S.js";import{e as C,g as i}from"./chunk-VKWPEFWQ.js";i();i();var a=m({name:"AuthLoginResult",schema:n.object({status:n.literal("success"),alias:n.string()}).strict()});i();var c="NEW_LOGIN";function _(s,e){let t=[],o=s[e];if(o)for(let[l,x]of Object.entries(o))t.push({label:x.identity.alias??l,value:l});return t}async function q(){let s=await g({},{forceNewSession:!0}),e=await d(s.userId);if(!e){let t=await y({message:"Enter an alias for this account (e.g. your email or a nickname)"});return await h(s.userId,t),t}return e}async function E(){let s=await p(),e=await f(),t=[];return s&&t.push(..._(s,e)),t.length>0&&t.push({label:"Log in with a different account",value:c}),t}async function N(s){if(s){let o=await S(s);if(o)return r(o),s}let e=await E(),t=c;return e.length>0&&(t=await w({message:"Which account would you like to use?",choices:e})),t===c?q():(r(t),e.find(o=>o.value===t)?.label??t)}var v=C(j(),1);var u=class s extends L{static descriptionWithMarkdown="Logs you in to your Shopify account.";static jsonOutputSchema=a;static description=this.descriptionForHelp();static flags={...O,...b,alias:F(v.Flags.string({description:"Alias of an existing session you want to use.",env:"SHOPIFY_FLAG_AUTH_ALIAS"}))};async run(){let{flags:e}=await this.parse(s),t=await N(e.alias);e.json?A(a.encode({status:"success",alias:t})):I(`Current account: ${t}.`)}};export{u as a};
@@ -0,0 +1,15 @@
1
+ import{Da as fs,Eb as bs,Oa as ds,Pa as ps,Sa as gs,Va as ms,ab as ys,la as kt,oa as Te,ta as us,tb as St,va as Tt,vb as ws}from"./chunk-ZMOW2YZ4.js";import{c as ke,f as bt,h as hs}from"./chunk-IWTNUJGY.js";import{a as X,c as bi,e as ki,g as be}from"./chunk-VKWPEFWQ.js";var gi=bi(l=>{"use strict";be();Object.defineProperty(l,"__esModule",{value:!0});var Ti=X("stream"),U=X("path"),G=X("fs"),js=X("crypto"),O=class{constructor(e,s,i,r,n){this.kind=e,this.input=s,this.begin=i,this.end=r,this.file=n}getText(){return this.input.slice(this.begin,this.end)}getPosition(){let[e,s]=[1,1];for(let i=0;i<this.begin;i++)this.input[i]===`
2
+ `?(e++,s=1):s++;return[e,s]}size(){return this.end-this.begin}},E=class{liquidMethodMissing(e,s){}},Si=Object.prototype.toString,ks=String.prototype.toLowerCase,pt=Object.hasOwnProperty;function p(t){return typeof t=="string"}function S(t){return typeof t=="function"}function xi(t){return t&&S(t.then)}function Fe(t){return t&&S(t.next)&&S(t.throw)&&S(t.return)}function Xt(t){return function(...e){return new Promise((s,i)=>{t(...e,(r,n)=>{r?i(r):s(n)})})}}function h(t){return t=m(t),p(t)?t:k(t)?"":x(t)?t.map(e=>h(e)).join(""):String(t)}function ge(t,e,s){if(e<0&&(e=t.length+e),!(s&&!pt.call(t,e)))return t[e]}function me(t){return t=m(t),x(t)?t:p(t)&&t.length>0?[t]:Li(t)?Array.from(t):gt(t)?Object.keys(t).map(e=>[e,t[e]]):[]}function L(t){return t=m(t),k(t)?[]:x(t)?t:[t]}function m(t){return t instanceof E&&S(t.valueOf)?t.valueOf():t}function _t(t){return+m(t)||0}function ye(t){return typeof t=="number"}function $s(t){return t&&S(t.toLiquid)?$s(t.toLiquid()):t}function k(t){return t==null}function _i(t){return t===void 0}function x(t){return Si.call(t)==="[object Array]"}function Bs(t){return t&&ye(t.length)}function Li(t){return gt(t)&&Symbol.iterator in t}function Ts(t,e){t=t||{};for(let s in t)if(pt.call(t,s)&&e(t[s],s,t)===!1)break;return t}function gt(t){let e=typeof t;return t!==null&&(e==="object"||e==="function")}function Is(t,e,s=1){let i=[];for(let r=t;r<e;r+=s)i.push(r);return i}function te(t,e,s=" "){return Ws(t,e,s,(i,r)=>r+i)}function Fi(t,e,s=" "){return Ws(t,e,s,(i,r)=>i+r)}function Ws(t,e,s,i){t=String(t);let r=e-t.length;return r<=0?t:i(t,s.repeat(r))}function Us(t){return t}function Oi(t){return[...t].some(s=>s>="a"&&s<="z")?t.toUpperCase():t.toLowerCase()}function zi(t,e){return t.length>e?t.slice(0,e-3)+"...":t}function vi(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||t<e?-1:t>e?1:0}function Ri(t,e){return k(t)&&k(e)?0:k(t)?1:k(e)||(t=ks.call(t),e=ks.call(e),t<e)?-1:t>e?1:0}function mt(t){return function(...e){return t.call(this,...e.map(m))}}function V(t){return function(...e){return t.call(this,...e.map(_t))}}function*Se(t){let e=new Set;for(let s of t){let i=JSON.stringify(s);e.has(i)||(e.add(i),yield s)}}var Ss="__liquidClass__",D=class extends Error{constructor(e,s){super(typeof e=="string"?e:e.message),this.context="",typeof e!="string"&&Object.defineProperty(this,"originalError",{value:e,enumerable:!1}),Object.defineProperty(this,"token",{value:s,enumerable:!1}),Object.defineProperty(this,Ss,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:Ai(this.token),enumerable:!1}),this.message=Ni(this.message,this.token),this.stack=this.message+`
3
+ `+this.context+`
4
+ `+this.stack,this.originalError&&(this.stack+=`
5
+ From `+this.originalError.stack)}static is(e){return e?.[Ss]==="LiquidError"}},Oe=class extends D{constructor(e,s){super(e,s),this.name="TokenizationError",super.update()}},ze=class extends D{constructor(e,s){super(e,s),this.name="ParseError",this.message=e.message,super.update()}},ve=class extends D{constructor(e,s){super(e,s.token),this.name="RenderError",this.message=e.message,super.update()}static is(e){return e.name==="RenderError"}},Re=class extends D{constructor(e){super(e[0],e[0].token),this.errors=e,this.name="LiquidErrors";let s=e.length>1?"s":"";this.message=`${e.length} error${s} found`,super.update()}static is(e){return e.name==="LiquidErrors"}},Ae=class extends D{constructor(e,s){super(e,s),this.name="UndefinedVariableError",this.message=e.message,super.update()}},Lt=class extends Error{constructor(e){super(`undefined variable: ${e}`),this.name="InternalUndefinedVariableError",this.variableName=e}},Ne=class extends Error{constructor(e){super(e),this.name="AssertionError",this.message=e+""}};function Ai(t){let[e,s]=t.getPosition(),i=t.input.split(`
6
+ `),r=Math.max(e-2,1),n=Math.min(e+3,i.length);return Is(r,n+1).map(a=>{let c=a===e?">> ":" ",f=te(String(a),String(n).length),u=`${c}${f}| `,g=a===e?`
7
+ `+te("^",s+u.length):"";return u+=i[a-1],u+=g,u}).join(`
8
+ `)}function Ni(t,e){e.file&&(t+=`, file:${e.file}`);let[s,i]=e.getPosition();return t+=`, line:${s}, col:${i}`,t}var w=[0,0,0,0,0,0,0,0,0,20,4,4,4,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,2,8,0,0,0,0,8,0,0,0,64,0,65,0,0,33,33,33,33,33,33,33,33,33,33,0,0,2,2,2,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0],qi=1,se=4,xs=8,Hs=16,Mi=32,Ei=64,Di=128;function xe(t){let e=t.charCodeAt(0);return e>=128?!w[e]:!!(w[e]&qi)}w[160]=w[5760]=w[6158]=w[8192]=w[8193]=w[8194]=w[8195]=w[8196]=w[8197]=w[8198]=w[8199]=w[8200]=w[8201]=w[8202]=w[8232]=w[8233]=w[8239]=w[8287]=w[12288]=se;w[8220]=w[8221]=Di;function _(t,e){if(!t){let s=typeof e=="function"?e():e||`expect ${t} to be true`;throw new Ne(s)}}function qe(t,e=`unexpected ${JSON.stringify(t)}`){_(!t,e)}var Ft=class extends E{equals(e){return k(m(e))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return null}},ae=class t extends E{equals(e){return e instanceof t?!1:(e=m(e),p(e)||x(e)?e.length===0:gt(e)?Object.keys(e).length===0:!1)}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return""}static is(e){return e instanceof t}},Ot=class t extends ae{equals(e){return e===!1||k(m(e))?!0:p(e)?/^\s*$/.test(e):super.equals(e)}static is(e){return e instanceof t}},le=class extends E{constructor(e,s,i){super(),this.i=0,this.length=e,this.name=`${i}-${s}`}next(){this.i++}index0(){return this.i}index(){return this.i+1}first(){return this.i===0}last(){return this.i===this.length-1}rindex(){return this.length-this.i}rindex0(){return this.length-this.i-1}valueOf(){return JSON.stringify(this)}},Me=class{constructor(){this.buffer=""}write(e){this.buffer+=h(e)}},zt=class{constructor(){this.buffer="",this.stream=new Ti.PassThrough}write(e){this.stream.write(h(e))}error(e){this.stream.emit("error",e)}end(){this.stream.end()}},vt=class{constructor(){this.buffer=""}write(e){e=m(e),typeof e!="string"&&this.buffer===""?this.buffer=e:this.buffer=h(this.buffer)+h(e)}},Ee=class extends E{constructor(e=()=>""){super(),this.superBlockRender=e}*super(){let e=new Me;return yield this.superBlockRender(e),e.buffer}};function A(t){return t&&S(t.equals)&&S(t.gt)&&S(t.geq)&&S(t.lt)&&S(t.leq)}var _s=new Ft,Ys={true:!0,false:!1,nil:_s,null:_s,empty:new ae,blank:new Ot},Ls=new WeakMap;function Rt(t){let e=Ls.get(t);if(e)return e;let s={};for(let[i,r]of Object.entries(t)){let n=s;for(let o=0;o<i.length;o++){let a=i[o];n[a]=n[a]||{},o===i.length-1&&xe(i[o])&&(n[a].needBoundary=!0),n=n[a]}n.data=r,n.end=!0}return Ls.set(t,s),s}function At(t,e){let s=e||t;return(i,...r)=>i?s(...r):t(...r)}async function q(t){if(!Fe(t))return t;let e,s=!1,i="next";do{let r=t[i](e);s=!!r.done,e=r.value,i="next";try{Fe(e)&&(e=q(e)),xi(e)&&(e=await e)}catch(n){i="throw",e=n}}while(!s);return e}function M(t){if(!Fe(t))return t;let e,s=!1,i="next";do{let r=t[i](e);if(s=!!r.done,e=r.value,i="next",Fe(e))try{e=M(e)}catch(n){i="throw",e=n}}while(!s);return e}var Vi=/%([-_0^#:]+)?(\d+)?([EO])?(.)/;function Pi(t){return[31,Ci(t)?29:28,31,30,31,30,31,31,30,31,30,31]}function Js(t){let e=0;for(let s=0;s<t.getMonth();++s)e+=Pi(t)[s];return e+t.getDate()}function Fs(t,e){let s=Js(t)+(e-t.getDay()),r=7-new Date(t.getFullYear(),0,1).getDay()+e;return String(Math.floor((s-r)/7)+1)}function Ci(t){let e=t.getFullYear();return!!((e&3)===0&&(e%100||e%400===0&&e))}function ji(t){let e=t.getDate();if([11,12,13].includes(e))return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}}function $i(t){return parseInt(t.getFullYear().toString().substring(0,2),10)}var Bi={d:2,e:2,H:2,I:2,j:3,k:2,l:2,L:3,m:2,M:2,S:2,U:2,W:2},Ii=new Set("aAbBceklpP");function Os(t,e){let s=Math.abs(t.getTimezoneOffset()),i=Math.floor(s/60),r=s%60;return(t.getTimezoneOffset()>0?"-":"+")+te(i,2,"0")+(e.flags[":"]?":":"")+te(r,2,"0")}var Nt={a:t=>t.getShortWeekdayName(),A:t=>t.getLongWeekdayName(),b:t=>t.getShortMonthName(),B:t=>t.getLongMonthName(),c:t=>t.toLocaleString(),C:t=>$i(t),d:t=>t.getDate(),e:t=>t.getDate(),H:t=>t.getHours(),I:t=>String(t.getHours()%12||12),j:t=>Js(t),k:t=>t.getHours(),l:t=>String(t.getHours()%12||12),L:t=>t.getMilliseconds(),m:t=>t.getMonth()+1,M:t=>t.getMinutes(),N:(t,e)=>{let s=Number(e.width)||9,i=te(String(t.getMilliseconds()),3,"0").slice(0,s);return e.memoryLimit?.use(s-i.length),Fi(i,s,"0")},p:t=>t.getHours()<12?"AM":"PM",P:t=>t.getHours()<12?"am":"pm",q:t=>ji(t),s:t=>Math.round(t.getTime()/1e3),S:t=>t.getSeconds(),u:t=>t.getDay()||7,U:t=>Fs(t,0),w:t=>t.getDay(),W:t=>Fs(t,1),x:t=>t.toLocaleDateString(),X:t=>t.toLocaleTimeString(),y:t=>t.getFullYear().toString().slice(2,4),Y:t=>t.getFullYear(),z:Os,Z:(t,e)=>t.getTimeZoneName()||Os(t,e),t:()=>" ",n:()=>`
9
+ `,"%":()=>"%"};Nt.h=Nt.b;function _e(t,e,s){let i="",r=e,n;for(;n=Vi.exec(r);)i+=r.slice(0,n.index),r=r.slice(n.index+n[0].length),i+=Wi(t,n,s);return i+r}function Wi(t,e,s){let[i,r="",n,o,a]=e,c=Nt[a];if(!c)return i;let f={};for(let y of r)f[y]=!0;let u=String(c(t,{flags:f,width:n,modifier:o,memoryLimit:s})),g=Ii.has(a)?" ":"0",d=Number(n)||Bi[a]||0;return f["^"]?u=u.toUpperCase():f["#"]&&(u=Oi(u)),f._?g=" ":f[0]&&(g="0"),f["-"]&&(d=0),s?.use(Number(d)-u.length),te(u,d,g)}function Zs(){return typeof Intl<"u"?Intl.DateTimeFormat:void 0}var Ui=6e4,Hi=/([zZ]|([+-])(\d{2}):?(\d{2}))$/,Qs=["January","February","March","April","May","June","July","August","September","October","November","December"],Yi=Qs.map(t=>t.slice(0,3)),Ks=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ji=Ks.map(t=>t.slice(0,3)),B=class t{constructor(e,s,i){this.locale=s,this.DateTimeFormat=Zs(),this.date=new Date(e),this.timezoneFixed=i!==void 0,i===void 0&&(i=this.date.getTimezoneOffset()),this.timezoneOffset=p(i)?t.getTimezoneOffset(i,this.date):i,this.timezoneName=p(i)?i:"";let r=(this.date.getTimezoneOffset()-this.timezoneOffset)*Ui,n=this.date.getTime()+r;this.displayDate=new Date(n)}getTime(){return this.displayDate.getTime()}getMilliseconds(){return this.displayDate.getMilliseconds()}getSeconds(){return this.displayDate.getSeconds()}getMinutes(){return this.displayDate.getMinutes()}getHours(){return this.displayDate.getHours()}getDay(){return this.displayDate.getDay()}getDate(){return this.displayDate.getDate()}getMonth(){return this.displayDate.getMonth()}getFullYear(){return this.displayDate.getFullYear()}toLocaleString(e,s){return s?.timeZone?this.date.toLocaleString(e,s):this.displayDate.toLocaleString(e,s)}toLocaleTimeString(e){return this.displayDate.toLocaleTimeString(e)}toLocaleDateString(e){return this.displayDate.toLocaleDateString(e)}getTimezoneOffset(){return this.timezoneOffset}getTimeZoneName(){if(this.timezoneFixed)return this.timezoneName;if(this.DateTimeFormat)return this.DateTimeFormat().resolvedOptions().timeZone}getLongMonthName(){return this.format({month:"long"})??Qs[this.getMonth()]}getShortMonthName(){return this.format({month:"short"})??Yi[this.getMonth()]}getLongWeekdayName(){return this.format({weekday:"long"})??Ks[this.displayDate.getDay()]}getShortWeekdayName(){return this.format({weekday:"short"})??Ji[this.displayDate.getDay()]}valid(){return!isNaN(this.getTime())}format(e){return this.DateTimeFormat&&this.DateTimeFormat(this.locale,e).format(this.displayDate)}static createDateFixedToTimezone(e,s){let i=e.match(Hi);if(i&&i[1]==="Z")return new t(+new Date(e),s,0);if(i&&i[2]&&i[3]&&i[4]){let[,,r,n,o]=i,a=(r==="+"?-1:1)*(parseInt(n,10)*60+parseInt(o,10));return new t(+new Date(e),s,a)}return new t(e,s)}static getTimezoneOffset(e,s){let i=s.toLocaleString("en-US",{timeZone:e}),r=s.toLocaleString("en-US",{timeZone:"UTC"}),n=new Date(i);return(+new Date(r)-+n)/(60*1e3)}},ce=class{constructor(e,s){this.base=0,this.message=`${e} limit exceeded`,this.limit=s}use(e){+e>0&&(_(this.base+ +e<=this.limit,this.message),this.base+=+e)}check(e){+e>0&&_(+e<=this.limit,this.message)}},he=class extends O{constructor(e,[s,i],r,n,o,a,c,f){super(e,r,n,o,f),this.trimLeft=!1,this.trimRight=!1;let u=r[s]==="-",g=r[i-1]==="-",d=u?s+1:s,y=g?i-1:i;for(;d<y&&w[r.charCodeAt(d)]&se;)d++;for(;y>d&&w[r.charCodeAt(y-1)]&se;)y--;this.contentRange=[d,y],this.trimLeft=u||a,this.trimRight=g||c}get content(){return this.input.slice(this.contentRange[0],this.contentRange[1])}},ue=class extends he{constructor(e,s,i,r,n){let{trimTagLeft:o,trimTagRight:a,tagDelimiterLeft:c,tagDelimiterRight:f}=r,[u,g]=[s+c.length,i-f.length];super(l.TokenKind.Tag,[u,g],e,s,i,o,a,n),this.tokenizer=new v(e,r.operators,n,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal tag syntax, tag name expected"),this.tokenizer.skipBlank(),this.args=this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}},qt=class extends he{constructor(e,s,i,r,n){let{trimOutputLeft:o,trimOutputRight:a,outputDelimiterLeft:c,outputDelimiterRight:f}=r,u=[s+c.length,i-f.length];super(l.TokenKind.Output,u,e,s,i,o,a,n)}},De=class extends O{constructor(e,s,i,r){super(l.TokenKind.HTML,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.trimLeft=0,this.trimRight=0}getContent(){return this.input.slice(this.begin+this.trimLeft,this.end-this.trimRight)}},Mt=class extends O{constructor(e,s,i,r){super(l.TokenKind.Number,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.content=Number(this.getText())}},re=class extends O{constructor(e,s,i,r){super(l.TokenKind.Word,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.content=this.getText()}},Et=class extends O{constructor(e,s,i,r){super(l.TokenKind.Literal,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.literal=this.getText(),this.content=Ys[this.literal]}},zs={"==":2,"!=":2,">":2,"<":2,">=":2,"<=":2,contains:2,not:1,and:0,or:0},Zi={"==":0,"!=":0,">":0,"<":0,">=":0,"<=":0,contains:0,not:1,and:0,or:0},Dt=class extends O{constructor(e,s,i,r){super(l.TokenKind.Operator,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.operator=this.getText()}getPrecedence(){return this.operator in zs?zs[this.operator]:1}},Ve=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.PropertyAccess,i,r,n,o),this.variable=e,this.props=s}},Pe=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.Filter,i,r,n,o),this.name=e,this.args=s}},Vt=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.Hash,e,s,i,o),this.input=e,this.begin=s,this.end=i,this.name=r,this.value=n,this.file=o}},Qi=/[\da-fA-F]/,vs=/[0-7]/,Rs={b:"\b",f:"\f",n:`
10
+ `,r:"\r",t:" ",v:"\v"};function As(t){let e=t.charCodeAt(0);return e>=97?e-87:e>=65?e-55:e-48}function Ki(t){let e="";for(let s=1;s<t.length-1;s++){if(t[s]!=="\\"){e+=t[s];continue}if(Rs[t[s+1]]!==void 0)e+=Rs[t[++s]];else if(t[s+1]==="u"){let i=0,r=s+2;for(;r<=s+5&&Qi.test(t[r]);)i=i*16+As(t[r++]);s=r-1,e+=String.fromCharCode(i)}else if(!vs.test(t[s+1]))e+=t[++s];else{let i=s+1,r=0;for(;i<=s+3&&vs.test(t[i]);)r=r*8+As(t[i++]);s=i-1,e+=String.fromCharCode(r)}}return e}var Pt=class extends O{constructor(e,s,i,r){super(l.TokenKind.Quoted,e,s,i,r),this.input=e,this.begin=s,this.end=i,this.file=r,this.content=Ki(this.getText())}},Ct=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.Range,e,s,i,o),this.input=e,this.begin=s,this.end=i,this.lhs=r,this.rhs=n,this.file=o}},jt=class extends he{constructor(e,s,i,r,n){super(l.TokenKind.Tag,[s,i],e,s,i,!1,!1,n),this.tokenizer=new v(e,r.operators,n,this.contentRange),this.name=this.tokenizer.readTagName(),this.tokenizer.assert(this.name,"illegal liquid tag syntax"),this.tokenizer.skipBlank()}get args(){return this.tokenizer.input.slice(this.tokenizer.p,this.contentRange[1])}},$t=class extends O{constructor(e,s,i,r,n,o){super(l.TokenKind.FilteredValue,i,r,n,o),this.initial=e,this.filters=s,this.input=i,this.begin=r,this.end=n,this.file=o}},Gi={now:()=>Date.now()};function Bt(){return typeof global=="object"&&global.performance||typeof window=="object"&&window.performance||Gi}var It=class{renderTemplatesToNodeStream(e,s){let i=new zt;return Promise.resolve().then(()=>q(this.renderTemplates(e,s,i))).then(()=>i.end(),r=>i.error(r)),i.stream}*renderTemplates(e,s,i){i||(i=s.opts.keepOutputType?new vt:new Me),s.renderLimit.check(Bt().now());let r=[];for(let n of e){s.renderLimit.check(Bt().now());try{let o=yield n.render(s,i);if(o&&i.write(o),s.breakCalled||s.continueCalled)break}catch(o){let a=D.is(o)?o:new ve(o,n);if(s.opts.catchAllErrors)r.push(a);else throw a}}if(r.length)throw new Re(r);return i.buffer}},Ce=class{constructor(e){this.postfix=[...tr(e)]}*evaluate(e,s){_(e,"unable to evaluate: context not defined");let i=[];for(let r of this.postfix)if(es(r)){let n=i.pop(),o;if(Zi[r.operator]===1)o=yield e.opts.operators[r.operator](n,e);else{let a=i.pop();o=yield e.opts.operators[r.operator](a,n,e)}i.push(o)}else i.push(yield T(r,e,s));return i[0]}valid(){return!!this.postfix.length}};function*T(t,e,s=!1){if(t){if("content"in t)return t.content;if(pe(t))return yield Xi(t,e,s);if(ts(t))return yield er(t,e)}}function*Xi(t,e,s){let i=[];for(let r of t.props)i.push(yield T(r,e,!1));try{if(t.variable){let r=yield T(t.variable,e,s);return yield e._getFromScope(r,i)}else return yield e._get(i)}catch(r){if(s&&r.name==="InternalUndefinedVariableError")return null;throw new Ae(r,t)}}function Gs(t){return t.content}function*er(t,e){let s=yield T(t.lhs,e),i=yield T(t.rhs,e);return e.memoryLimit.use(i-s+1),Is(+s,+i+1)}function*tr(t){let e=[];for(let s of t)if(es(s)){for(;e.length&&e[e.length-1].getPrecedence()>s.getPrecedence();)yield e.pop();e.push(s)}else yield s;for(;e.length;)yield e.pop()}function W(t,e){return!we(t,e)}function we(t,e){return t=m(t),e.opts.jsTruthy?!t:t===!1||t===void 0||t===null}var Xs={"==":j,"!=":(t,e)=>!j(t,e),">":(t,e)=>A(t)?t.gt(e):A(e)?e.lt(t):m(t)>m(e),"<":(t,e)=>A(t)?t.lt(e):A(e)?e.gt(t):m(t)<m(e),">=":(t,e)=>A(t)?t.geq(e):A(e)?e.leq(t):m(t)>=m(e),"<=":(t,e)=>A(t)?t.leq(e):A(e)?e.geq(t):m(t)<=m(e),contains:(t,e)=>(t=m(t),x(t)?t.some(s=>j(s,e)):S(t?.indexOf)?t.indexOf(m(e))>-1:!1),not:(t,e)=>we(m(t),e),and:(t,e,s)=>W(m(t),s)&&W(m(e),s),or:(t,e,s)=>W(m(t),s)||W(m(e),s)};function j(t,e){return A(t)?t.equals(e):A(e)?e.equals(t):(t=m(t),e=m(e),x(t)?x(e)&&sr(t,e):t===e)}function sr(t,e){return t.length!==e.length?!1:!t.some((s,i)=>!j(s,e[i]))}function ir(t,e){return t.some(s=>j(s,e))}var ne=class{constructor(e,s,i,r){this.key=e,this.value=s,this.next=i,this.prev=r}},je=class{constructor(e,s=0){this.limit=e,this.size=s,this.cache={},this.head=new ne("HEAD",null,null,null),this.tail=new ne("TAIL",null,null,null),this.head.next=this.tail,this.tail.prev=this.head}write(e,s){if(this.cache[e])this.cache[e].value=s;else{let i=new ne(e,s,this.head.next,this.head);this.head.next.prev=i,this.head.next=i,this.cache[e]=i,this.size++,this.ensureLimit()}}read(e){if(!this.cache[e])return;let{value:s}=this.cache[e];return this.remove(e),this.write(e,s),s}remove(e){let s=this.cache[e];s.prev.next=s.next,s.next.prev=s.prev,delete this.cache[e],this.size--}clear(){this.head.next=this.tail,this.tail.prev=this.head,this.size=0,this.cache={}}ensureLimit(){this.size>this.limit&&this.remove(this.tail.prev.key)}},rr=t=>X.resolve(t,{paths:["."]}),nr=Xt(G.stat),or=Xt(G.readFile);async function ar(t){try{return await nr(t),!0}catch{return!1}}function lr(t){return or(t,"utf8")}function cr(t){try{return G.statSync(t),!0}catch{return!1}}function hr(t){return G.readFileSync(t,"utf8")}function ur(t,e,s){return U.extname(e)||(e+=s),U.resolve(t,e)}function fr(t){try{return rr(t)}catch{}}function dr(t){return U.dirname(t)}var Ns=Xt(G.realpath);async function pr(t,e){try{let s=await Ns(t),i=await Ns(e),r=s.endsWith(U.sep)?s:s+U.sep;return i.startsWith(r)}catch{return!1}}function gr(t,e){try{let s=G.realpathSync(t),i=G.realpathSync(e),r=s.endsWith(U.sep)?s:s+U.sep;return i.startsWith(r)}catch{return!1}}var mr=Object.freeze({__proto__:null,exists:ar,readFile:lr,existsSync:cr,readFileSync:hr,resolve:ur,fallback:fr,dirname:dr,contains:pr,containsSync:gr,sep:U.sep});function Wt(t,e){typeof e=="string"?t.use(e.length):e===null||typeof e=="number"||typeof e=="boolean"?t.use(JSON.stringify(e).length):Array.isArray(e)?t.use(e.length+1):typeof e=="object"&&t.use(2)}function yr(t,e,...s){return t=m(t),x(t)||p(t)?t.length?t:e:t===!1&&new Map(s).get("allow_false")?!1:we(t,this.context)?e:t}function qs(t,e=0){let s=this.context.memoryLimit;return JSON.stringify(t,(i,r)=>(Wt(s,r),r),e)}function wr(t,e=0){let s=this.context.memoryLimit,i=[];return JSON.stringify(t,function(r,n){if(typeof n!="object"||n===null)return Wt(s,n),n;for(;i.length>0&&i[i.length-1]!==this;)i.pop();return i.includes(n)?(s.use(10),"[Circular]"):(i.push(n),Wt(s,n),n)},e)}function br(t){return Number(t)}var kr={raw:!0,handler:Us},ei={default:yr,raw:kr,jsonify:qs,to_integer:br,json:qs,inspect:wr},Tr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},Sr={"&amp;":"&","&lt;":"<","&gt;":">","&#34;":'"',"&#39;":"'"};function yt(t){return t=h(t),this.context.memoryLimit.use(t.length),t.replace(/&|<|>|"|'/g,e=>Tr[e])}function xr(t){return yt.call(this,t)}function _r(t){return t=h(t),this.context.memoryLimit.use(t.length),t.replace(/&(amp|lt|gt|#34|#39);/g,e=>Sr[e])}function Lr(t){return yt.call(this,_r.call(this,t))}function Fr(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,`<br />
11
+ `)}function Or(t){let e=h(t);this.context.memoryLimit.use(e.length);let s=new Map([["<script","</script>"],["<style","</style>"],["<!--","-->"],["<",">"]]),i="",r=0;for(;r<e.length;){let n=e.indexOf("<",r);if(n<0)return i+e.slice(r);i+=e.slice(r,n);for(let[o,a]of s){if(!e.startsWith(o,n))continue;let c=e.indexOf(a,n+o.length);if(c>=0){r=c+a.length;break}s.delete(o)}if(r<=n)return i+e.slice(n)}return i}var zr=Object.freeze({__proto__:null,escape:yt,xml_escape:xr,escape_once:Lr,newline_to_br:Fr,strip_html:Or}),Ut=class{constructor(e){this.mapping=e,this.sep="/"}async exists(e){return this.existsSync(e)}existsSync(e){return!k(this.mapping[e])}async readFile(e){return this.readFileSync(e)}readFileSync(e){let s=this.mapping[e];if(k(s))throw new Error(`ENOENT: ${e}`);return s}dirname(e){let s=e.split(this.sep);return s.pop(),s.join(this.sep)}resolve(e,s,i){if(s+=i,e===".")return s;let r=e.split(/\/+/);for(let n of s.split(this.sep))n==="."||n===""||(n===".."?(r.length>1||r[0]!=="")&&r.pop():r.push(n));return r.join(this.sep)}},Q={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:mr,dynamicPartials:!0,jsTruthy:!1,dateFormat:"%A, %B %-e, %Y at %-l:%M %P %z",locale:"",trimTagRight:!1,trimTagLeft:!1,trimOutputRight:!1,trimOutputLeft:!1,greedy:!0,tagDelimiterLeft:"{%",tagDelimiterRight:"%}",outputDelimiterLeft:"{{",outputDelimiterRight:"}}",preserveTimezones:!1,strictFilters:!1,strictVariables:!1,ownPropertyOnly:!0,lenientIf:!1,globals:{},keepOutputType:!1,operators:Xs,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function vr(t){if(t.hasOwnProperty("root")&&(t.hasOwnProperty("partials")||(t.partials=t.root),t.hasOwnProperty("layouts")||(t.layouts=t.root)),t.hasOwnProperty("cache")){let e;typeof t.cache=="number"?e=t.cache>0?new je(t.cache):void 0:typeof t.cache=="object"?e=t.cache:e=t.cache?new je(1024):void 0,t.cache=e}return t={...Q,...t.jekyllInclude?{dynamicPartials:!1}:{},...t},(!t.fs.dirname||!t.fs.sep)&&t.relativeReference&&(console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"),t.relativeReference=!1),t.root=Le(t.root),t.partials=Le(t.partials),t.layouts=Le(t.layouts),t.outputEscape=t.outputEscape&&Rr(t.outputEscape),t.locale||(t.locale=Zs()?.().resolvedOptions().locale??"en-US"),t.templates&&(t.fs=new Ut(t.templates),t.relativeReference=!0,t.root=t.partials=t.layouts="."),t}function Rr(t){return t==="escape"?yt:t==="json"?ei.json:(_(S(t),"`outputEscape` need to be of type string or function"),t)}function Le(t){let e=[];return x(t)&&(e=t),p(t)&&(e=[t]),e}function Ar(t,e){let s=!1;for(let i=0;i<t.length;i++){let r=t[i];ri(r)&&(!s&&r.trimLeft&&Nr(t[i-1],e.greedy),J(r)&&(r.name==="raw"?s=!0:r.name==="endraw"&&(s=!1)),!s&&r.trimRight&&qr(t[i+1],e.greedy))}}function Nr(t,e){if(!t||!wt(t))return;let s=e?se:Hs;for(;w[t.input.charCodeAt(t.end-1-t.trimRight)]&s;)t.trimRight++}function qr(t,e){if(!t||!wt(t))return;let s=e?se:Hs;for(;w[t.input.charCodeAt(t.begin+t.trimLeft)]&s;)t.trimLeft++;t.input.charAt(t.begin+t.trimLeft)===`
12
+ `&&t.trimLeft++}var v=class{constructor(e,s=Q.operators,i,r){this.input=e,this.file=i,this.rawBeginAt=-1,this.p=r?r[0]:0,this.N=r?r[1]:e.length,this.opTrie=Rt(s),this.literalTrie=Rt(Ys)}readExpression(){return new Ce(this.readExpressionTokens())}*readExpressionTokens(){for(;this.p<this.N;){let e=this.readOperator();if(e){yield e;continue}let s=this.readValue();if(s){yield s;continue}return}}readOperator(){this.skipBlank();let e=this.matchTrie(this.opTrie);if(e!==-1)return new Dt(this.input,this.p,this.p=e,this.file)}matchTrie(e){let s=e,i=this.p,r;for(;s[this.input[i]]&&i<this.N;)s=s[this.input[i++]],s.end&&(r=s);return!r||r.needBoundary&&xe(this.peek(i-this.p))?-1:i}readFilteredValue(){let e=this.p,s=this.readExpression();this.assert(s.valid(),`invalid value expression: ${this.snapshot()}`);let i=this.readFilters();return new $t(s,i,this.input,e,this.p,this.file)}readFilters(){let e=[];for(;;){let s=this.readFilter();if(!s)return e;e.push(s)}}readFilter(){if(this.skipBlank(),this.end())return null;this.assert(this.read()==="|",'expected "|" before filter');let e=this.readIdentifier();if(!e.size())return this.assert(this.end(),"expected filter name"),null;let s=[];if(this.skipBlank(),this.peek()===":")do{++this.p;let i=this.readFilterArg();i&&s.push(i),this.skipBlank(),this.assert(this.end()||this.peek()===","||this.peek()==="|",()=>`unexpected character ${this.snapshot()}`)}while(this.peek()===",");else if(!(this.peek()==="|"||this.end()))throw this.error('expected ":" after filter name');return new Pe(e.getText(),s,this.input,e.begin,this.p,this.file)}readFilterArg(){let e=this.readValue();if(!e)return;if(this.skipBlank(),this.peek()!==":")return e;++this.p;let s=this.readValue();return[e.getText(),s]}readTopLevelTokens(e=Q){let s=[];for(;this.p<this.N;){let i=this.readTopLevelToken(e);s.push(i)}return Ar(s,e),s}readTopLevelToken(e){let{tagDelimiterLeft:s,outputDelimiterLeft:i}=e;return this.rawBeginAt>-1?this.readEndrawOrRawContent(e):this.match(s)?this.readTagToken(e):this.match(i)?this.readOutputToken(e):this.readHTMLToken([s,i])}readHTMLToken(e){let s=this.p;for(;this.p<this.N&&!e.some(i=>this.match(i));)++this.p;return new De(this.input,s,this.p,this.file)}readTagToken(e){let{file:s,input:i}=this,r=this.p;if(this.readToDelimiter(e.tagDelimiterRight)===-1)throw this.error(`tag ${this.snapshot(r)} not closed`,r);let n=new ue(i,r,this.p,e,s);return n.name==="raw"&&(this.rawBeginAt=r),n}readToDelimiter(e,s=!1){for(this.skipBlank();this.p<this.N;){if(s&&this.peekType()&xs){this.readQuoted();continue}if(++this.p,this.rmatch(e))return this.p}return-1}readOutputToken(e=Q){let{file:s,input:i}=this,{outputDelimiterRight:r}=e,n=this.p;if(this.readToDelimiter(r,!0)===-1)throw this.error(`output ${this.snapshot(n)} not closed`,n);return new qt(i,n,this.p,e,s)}readEndrawOrRawContent(e){let{tagDelimiterLeft:s,tagDelimiterRight:i}=e,r=this.p,n=this.readTo(s)-s.length;for(;this.p<this.N;){if(this.readIdentifier().getText()!=="endraw"){n=this.readTo(s)-s.length;continue}for(;this.p<=this.N;){if(this.rmatch(i)){let o=this.p;return r===n?(this.rawBeginAt=-1,new ue(this.input,r,o,e,this.file)):(this.p=n,new De(this.input,r,n,this.file))}if(this.rmatch(s))break;this.p++}}throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`,r)}readLiquidTagTokens(e=Q){let s=[];for(;this.p<this.N;){let i=this.readLiquidTagToken(e);i&&s.push(i)}return s}readLiquidTagToken(e){if(this.skipBlank(),this.end())return;let s=this.p;this.readToDelimiter(`
13
+ `);let i=this.p;return new jt(this.input,s,i,e,this.file)}error(e,s=this.p){return new Oe(e,new re(this.input,s,this.N,this.file))}assert(e,s,i){if(!e)throw this.error(typeof s=="function"?s():s,i)}snapshot(e=this.p){return JSON.stringify(zi(this.input.slice(e,this.N),32))}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();let e=this.p;for(;!this.end()&&xe(this.peek());)++this.p;return new re(this.input,e,this.p,this.file)}readNonEmptyIdentifier(){let e=this.readIdentifier();return e.size()?e:void 0}readTagName(){return this.skipBlank(),this.input[this.p]==="#"?this.input.slice(this.p,++this.p):this.readIdentifier().getText()}readHashes(e){let s=[];for(;;){let i=this.readHash(e);if(!i)return s;s.push(i)}}readHash(e){this.skipBlank(),this.peek()===","&&++this.p;let s=this.p,i=this.readNonEmptyIdentifier();if(!i)return;let r;this.skipBlank();let n=p(e)?e:e?"=":":";return this.peek()===n&&(++this.p,r=this.readValue()),new Vt(this.input,s,this.p,i,r,this.file)}remaining(){return this.input.slice(this.p,this.N)}advance(e=1){this.p+=e}end(){return this.p>=this.N}read(){return this.input[this.p++]}readTo(e){for(;this.p<this.N;)if(++this.p,this.rmatch(e))return this.p;return-1}readValue(){this.skipBlank();let e=this.p,s=this.readLiteral()||this.readQuoted()||this.readRange()||this.readNumber(),i=this.readProperties(!s);return i.length?new Ve(s,i,this.input,e,this.p):s}readScopeValue(){this.skipBlank();let e=this.p,s=this.readProperties();if(s.length)return new Ve(void 0,s,this.input,e,this.p)}readProperties(e=!0){let s=[];for(;;){if(this.peek()==="["){this.p++;let i=this.readValue()||new re(this.input,this.p,this.p,this.file);this.assert(this.readTo("]")!==-1,"[ not closed"),s.push(i);continue}if(e&&!s.length){let i=this.readNonEmptyIdentifier();if(i){s.push(i);continue}}if(this.peek()==="."&&this.peek(1)!=="."){this.p++;let i=this.readNonEmptyIdentifier();if(!i)break;s.push(i);continue}break}return s}readNumber(){this.skipBlank();let e=!1,s=!1,i=0;for(this.peekType()&Ei&&i++;this.p+i<=this.N;)if(this.peekType(i)&Mi)s=!0,i++;else if(this.peek(i)==="."&&this.peek(i+1)!=="."){if(e||!s)return;e=!0,i++}else break;if(s&&!xe(this.peek(i))){let r=new Mt(this.input,this.p,this.p+i,this.file);return this.advance(i),r}}readLiteral(){this.skipBlank();let e=this.matchTrie(this.literalTrie);if(e===-1)return;let s=new Et(this.input,this.p,e,this.file);return this.p=e,s}readRange(){this.skipBlank();let e=this.p;if(this.peek()!=="(")return;++this.p;let s=this.readValueOrThrow();this.skipBlank(),this.assert(this.read()==="."&&this.read()===".","invalid range syntax");let i=this.readValueOrThrow();return this.skipBlank(),this.assert(this.read()===")","invalid range syntax"),new Ct(this.input,e,this.p,s,i,this.file)}readValueOrThrow(){let e=this.readValue();return this.assert(e,()=>`unexpected token ${this.snapshot()}, value expected`),e}readQuoted(){this.skipBlank();let e=this.p;if(!(this.peekType()&xs))return;++this.p;let s=!1;for(;this.p<this.N&&(++this.p,!(this.input[this.p-1]===this.input[e]&&!s));)s?s=!1:this.input[this.p-1]==="\\"&&(s=!0);return new Pt(this.input,e,this.p,this.file)}*readFileNameTemplate(e){let{outputDelimiterLeft:s}=e,i=[","," ","\r",`
14
+ `," ",s],r=new Set(i);for(;this.p<this.N&&!r.has(this.peek());)yield this.match(s)?this.readOutputToken(e):this.readHTMLToken(i)}match(e){for(let s=0;s<e.length;s++)if(e[s]!==this.input[this.p+s])return!1;return!0}rmatch(e){for(let s=0;s<e.length;s++)if(e[e.length-1-s]!==this.input[this.p-1-s])return!1;return!0}peekType(e=0){return this.p+e>=this.N?0:w[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?"":this.input[this.p+e]}skipBlank(){for(;this.peekType()&se;)++this.p}},$e=class{constructor(e,s){this.handlers={},this.stopRequested=!1,this.tokens=e,this.parseToken=s}on(e,s){return this.handlers[e]=s,this}trigger(e,s){let i=this.handlers[e];return i?(i.call(this,s),!0):!1}start(){this.trigger("start");let e;for(;!this.stopRequested&&(e=this.tokens.shift());){if(this.trigger("token",e)||J(e)&&this.trigger(`tag:${e.name}`,e))continue;let s=this.parseToken(e,this.tokens);this.trigger("template",s)}return this.stopRequested||this.trigger("end"),this}stop(){return this.stopRequested=!0,this}},fe=class{constructor(e){this.token=e}},b=class extends fe{constructor(e,s,i){super(e),this.name=e.name,this.liquid=i,this.tokenizer=e.tokenizer}},$=class{constructor(e,s){this.hash={};let i=e instanceof v?e:new v(e,{});for(let r of i.readHashes(s))this.hash[r.name.content]=r.value}*render(e){let s={};for(let i of Object.keys(this.hash))s[i]=this.hash[i]===void 0?!0:yield T(this.hash[i],e);return s}};function Mr(t){return class extends b{constructor(e,s,i){super(e,s,i),S(t.parse)&&t.parse.call(this,e,s)}*render(e,s){let i=yield new $(this.token.args,e.opts.keyValueSeparator).render(e);return yield t.render.call(this,e,s,i)}}}function ti(t){return x(t)}var de=class{constructor(e,s,i){this.token=e,this.name=e.name,this.handler=S(s)?s:S(s?.handler)?s.handler:Us,this.raw=!S(s)&&!!s?.raw,this.args=e.args,this.liquid=i}*render(e,s){let i=[];for(let r of this.args)ti(r)?i.push([r[0],yield T(r[1],s)]):i.push(yield T(r,s));return yield this.handler.apply({context:s,token:this.token,liquid:this.liquid},[e,...i])}},F=class{constructor(e,s){this.filters=[];let i=typeof e=="string"?new v(e,s.options.operators).readFilteredValue():e;this.initial=i.initial,this.filters=i.filters.map(r=>new de(r,this.getFilter(s,r.name),s))}*value(e,s){s=s||e.opts.lenientIf&&this.filters.length>0&&this.filters[0].name==="default";let i=yield this.initial.evaluate(e,s);for(let r of this.filters)i=yield r.render(i,e);return i}getFilter(e,s){let i=e.filters[s];return _(i||!e.options.strictFilters,()=>`undefined filter: ${s}`),i}},Be=class extends fe{constructor(e,s){super(e);let i=new v(e.input,s.options.operators,e.file,e.contentRange);this.value=new F(i.readFilteredValue(),s);let r=this.value.filters,n=s.options.outputEscape;if(!r[r.length-1]?.raw&&n){let o=new Pe(toString.call(n),[],"",0,0);r.push(new de(o,n,s))}}*render(e,s){let i=yield this.value.value(e,!1);s.write(i)}*arguments(){yield this.value}},Ht=class extends fe{constructor(e){super(e),this.str=e.getContent()}*render(e,s){s.write(this.str)}},H=class t{constructor(e,s){this.segments=e,this.location=s}toString(){return We(this.segments,!0)}toArray(){function*e(...s){for(let i of s)i instanceof t?yield Array.from(e(...i.segments)):yield i}return Array.from(e(...this.segments))}},oe=class{constructor(){this.map=new Map}get(e){let s=We([e.segments[0]]);return this.map.has(s)||this.map.set(s,[]),this.map.get(s)}has(e){return this.map.has(We([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}},si={partials:!0};function*ii(t,e,s){let i=new oe,r=new oe,n=new oe,o=new Ie(new Set),a=new Set;function c(u,g){i.push(u);let d=g.alias(u);if(d!==void 0){let y=d.segments[0];p(y)&&!o.has(y)&&r.push(d)}else{let y=u.segments[0];p(y)&&!g.has(y)&&r.push(u)}for(let y of u.segments)y instanceof H&&c(y,g)}function*f(u,g){if(u.arguments)for(let d of u.arguments())for(let y of Ms(d))c(y,g);if(u.localScope)for(let d of u.localScope()){g.add(d.content),g.deleteAlias(d.content);let[y,ie]=d.getPosition();n.push(new H([d.content],{row:y,col:ie,file:d.file}))}if(u.children)if(u.partialScope){let d=u.partialScope();if(d===void 0){for(let Z of yield u.children(e,s))yield f(Z,g);return}if(a.has(d.name))return;let y=new Set,ie=d.isolated?new Ie(y):g.push(y);for(let Z of d.scope)if(p(Z))y.add(Z);else{let[ls,wi]=Z;y.add(ls);let cs=Array.from(Ms(wi));cs.length&&ie.setAlias(ls,cs[0].segments)}for(let Z of yield u.children(e,s))yield f(Z,ie),a.add(d.name);ie.pop()}else{u.blockScope&&g.push(new Set(u.blockScope()));for(let d of yield u.children(e,s))yield f(d,g);u.blockScope&&g.pop()}}for(let u of t)yield f(u,o);return{variables:i.asObject(),globals:r.asObject(),locals:n.asObject()}}function P(t,e={}){let s={...si,...e};return q(ii(t,s.partials,!1))}function C(t,e={}){let s={...si,...e};return M(ii(t,s.partials,!0))}var Ie=class{constructor(e){this.stack=[{names:e,aliases:new Map}]}has(e){for(let s of this.stack)if(s.names.has(e))return!0;return!1}push(e){return this.stack.push({names:e,aliases:new Map}),this}pop(){return this.stack.pop()?.names}add(e){this.stack[0].names.add(e)}alias(e){let s=e.segments[0];if(!p(s))return;let i=this.getAlias(s);if(i!==void 0)return new H([...i,...e.segments.slice(1)],e.location)}setAlias(e,s){this.stack[this.stack.length-1].aliases.set(e,s)}deleteAlias(e){this.stack[this.stack.length-1].aliases.delete(e)}getAlias(e){for(let s of this.stack){if(s.aliases.has(e))return s.aliases.get(e);if(s.names.has(e))return}}};function*Ms(t){z(t)?yield*ee(t):t instanceof F&&(yield*Er(t))}function*Er(t){for(let e of t.initial.postfix)z(e)&&(yield*ee(e));for(let e of t.filters)for(let s of e.args)ti(s)&&s[1]?yield*ee(s[1]):z(s)&&(yield*ee(s))}function*ee(t){ts(t)?(yield*ee(t.lhs),yield*ee(t.rhs)):pe(t)&&(yield Yt(t))}function Yt(t){let e=[],s=t.file,i=t.props[0];s=s||i.file,Ue(i)||Zt(i)||Qt(i)?e.push(i.content):pe(i)&&e.push(...Yt(i).segments);for(let o of t.props.slice(1))s=s||o.file,Ue(o)||Zt(o)||Qt(o)?e.push(o.content):pe(o)&&e.push(Yt(o));let[r,n]=t.getPosition();return new H(e,{row:r,col:n,file:s})}var Es=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function We(t,e=!1){let s=[],i=t[0];p(i)&&(!e||i.match(Es)?s.push(`${i}`):s.push(`['${i}']`));for(let r of t.slice(1))r instanceof H?s.push(`[${We(r.segments)}]`):p(r)?r.match(Es)?s.push(`.${r}`):s.push(`['${r}']`):s.push(`[${r}]`);return s.join("")}(function(t){t.Partials="partials",t.Layouts="layouts",t.Root="root"})(l.LookupType||(l.LookupType={}));var Jt=class{constructor(e){if(this.options=e,e.relativeReference){let i=e.fs.sep;_(i,"`fs.sep` is required for relative reference");let r=["."+i,".."+i,"./","../"];this.shouldLoadRelative=n=>r.some(o=>n.startsWith(o))}else this.shouldLoadRelative=i=>!1;let s=e.fs;this.contains=At(s.contains?.bind(s)||(async()=>!0),s.containsSync?.bind(s)||(()=>!0)),this.exists=At(s.exists?.bind(s)||(async()=>!1),s.existsSync?.bind(s))}*lookup(e,s,i,r){let n=this.options[s];for(let o of this.candidates(e,n,r)){let a=!1;for(let c of n)if(yield this.contains(!!i,c,o)){a=!0;break}if(a&&(yield this.exists(!!i,o)))return o}throw this.lookupError(e,n)}*candidates(e,s,i){let{fs:r,extname:n}=this.options;this.shouldLoadRelative(e)&&i&&(yield r.resolve(this.dirname(i),e,n));for(let o of s)yield r.resolve(o,e,n);if(r.fallback!==void 0){let o=r.fallback(e);o!==void 0&&(yield o)}}dirname(e){let s=this.options.fs;return _(s.dirname,"`fs.dirname` is required for relative reference"),s.dirname(e)}lookupError(e,s){let i=new Error("ENOENT");return i.message=`ENOENT: Failed to lookup "${e}" in "${s}"`,i.code="ENOENT",i}},N=class{constructor(e){this.liquid=e,this.cache=this.liquid.options.cache,this.fs=this.liquid.options.fs,this.parseFile=this.cache?this._parseFileCached:this._parseFile,this.loader=new Jt(this.liquid.options),this.parseLimit=new ce("parse length",e.options.parseLimit),this.readFile=At(this.fs.readFile?.bind(this.fs)||(async()=>{throw new Error("readFile not implemented")}),this.fs.readFileSync?.bind(this.fs))}parse(e,s){e=String(e),this.parseLimit.use(e.length);let r=new v(e,this.liquid.options.operators,s).readTopLevelTokens(this.liquid.options);return this.parseTokens(r)}parseTokens(e){let s,i=[],r=[];for(;s=e.shift();)try{i.push(this.parseToken(s,e))}catch(n){if(this.liquid.options.catchAllErrors)r.push(n);else throw n}if(r.length)throw new Re(r);return i}parseToken(e,s){try{if(J(e)){let i=this.liquid.tags[e.name];return _(i,`tag "${e.name}" not found`),new i(e,s,this.liquid,this)}return ni(e)?new Be(e,this.liquid):new Ht(e)}catch(i){throw D.is(i)?i:new ze(i,e)}}parseStream(e){return new $e(e,(s,i)=>this.parseToken(s,i))}*_parseFileCached(e,s,i=l.LookupType.Root,r){let n=this.cache,o=this.loader.shouldLoadRelative(e)?r+","+e:i+":"+e,a=yield n.read(o);if(a)return a;let c=this._parseFile(e,s,i,r),f=s?yield c:q(c);n.write(o,f);try{return yield f}catch(u){throw n.remove(o),u}}*_parseFile(e,s,i=l.LookupType.Root,r){let n=yield this.loader.lookup(e,i,s,r);return this.parse(yield this.readFile(!!s,n),n)}};(function(t){t[t.Number=1]="Number",t[t.Literal=2]="Literal",t[t.Tag=4]="Tag",t[t.Output=8]="Output",t[t.HTML=16]="HTML",t[t.Filter=32]="Filter",t[t.Hash=64]="Hash",t[t.PropertyAccess=128]="PropertyAccess",t[t.Word=256]="Word",t[t.Range=512]="Range",t[t.Quoted=1024]="Quoted",t[t.Operator=2048]="Operator",t[t.FilteredValue=4096]="FilteredValue",t[t.Delimited=12]="Delimited"})(l.TokenKind||(l.TokenKind={}));function ri(t){return!!(R(t)&l.TokenKind.Delimited)}function es(t){return R(t)===l.TokenKind.Operator}function wt(t){return R(t)===l.TokenKind.HTML}function ni(t){return R(t)===l.TokenKind.Output}function J(t){return R(t)===l.TokenKind.Tag}function Ue(t){return R(t)===l.TokenKind.Quoted}function Dr(t){return R(t)===l.TokenKind.Literal}function Zt(t){return R(t)===l.TokenKind.Number}function pe(t){return R(t)===l.TokenKind.PropertyAccess}function Qt(t){return R(t)===l.TokenKind.Word}function ts(t){return R(t)===l.TokenKind.Range}function z(t){return(R(t)&1667)>0}function R(t){return t?t.kind:-1}var Vr=Object.freeze({__proto__:null,isDelimitedToken:ri,isOperatorToken:es,isHTMLToken:wt,isOutputToken:ni,isTagToken:J,isQuotedToken:Ue,isLiteralToken:Dr,isNumberToken:Zt,isPropertyAccessToken:pe,isWordToken:Qt,isRangeToken:ts,isValueToken:z}),He=function(){return He=Object.assign||function(e){for(var s,i=1,r=arguments.length;i<r;i++){s=arguments[i];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])}return e},He.apply(this,arguments)};function Y(t){let e=Object.create(null);return t&&Object.assign(e,t),e}var I=class t{constructor(e={},s=Q,i={},{memoryLimit:r,renderLimit:n}={}){this.scopes=[Y()],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!i.sync,this.opts=s,this.globals=i.globals??s.globals,this.environments=gt(e)?e:Object(e),this.strictVariables=i.strictVariables??this.opts.strictVariables,this.ownPropertyOnly=i.ownPropertyOnly??s.ownPropertyOnly,this.memoryLimit=r??new ce("memory alloc",i.memoryLimit??s.memoryLimit),this.renderLimit=n??new ce("template render",Bt().now()+(i.renderLimit??s.renderLimit))}getRegister(e,s=void 0){return this.registers[e]=this.registers[e]||s}setRegister(e,s){return this.registers[e]=s}saveRegister(...e){return e.map(s=>[s,this.getRegister(s)])}restoreRegister(e){return e.forEach(([s,i])=>this.setRegister(s,i))}getAll(){return[this.globals,this.environments,...this.scopes].reduce((e,s)=>He(e,s),{})}get(e){return this.getSync(e)}getSync(e){return M(this._get(e))}*_get(e){let s=this.findScope(e[0]);return yield this._getFromScope(s,e)}getFromScope(e,s){return M(this._getFromScope(e,s))}*_getFromScope(e,s,i=this.strictVariables){p(s)&&(s=s.split("."));for(let r=0;r<s.length;r++)if(e=yield this.readProperty(e,s[r]),i&&_i(e))throw new Lt(s.slice(0,r+1).join("."));return e}push(e){return this.scopes.push(e)}pop(){return this.scopes.pop()}bottom(){return this.scopes[0]}spawn(e={}){return new t(e,this.opts,{sync:this.sync,globals:this.globals,strictVariables:this.strictVariables,ownPropertyOnly:this.ownPropertyOnly},{renderLimit:this.renderLimit,memoryLimit:this.memoryLimit})}findScope(e){for(let s=this.scopes.length-1;s>=0;s--){let i=this.scopes[s];if(e in i)return i}return e in this.environments?this.environments:this.globals}readProperty(e,s){if(e=$s(e),s=m(s),k(e))return e;if(x(e)&&ye(s))return ge(e,s,this.ownPropertyOnly);let i=ss(e,s,this.ownPropertyOnly);return i===void 0&&e instanceof E?e.liquidMethodMissing(s,this):S(i)?i.call(e):s==="size"?jr(e):s==="first"?Pr(e,this.ownPropertyOnly):s==="last"?Cr(e,this.ownPropertyOnly):i}};function ss(t,e,s){if(!(s&&!pt.call(t,e)&&!(t instanceof E)))return t[e]}function Pr(t,e){return x(t)?ge(t,0,e):ss(t,"first",e)}function Cr(t,e){return x(t)?ge(t,-1,e):ss(t,"last",e)}function jr(t){if(pt.call(t,"size")||t.size!==void 0)return t.size;if(x(t)||p(t))return t.length;if(typeof t=="object")return Object.keys(t).length}var K;(function(t){t[t.OUTPUT=0]="OUTPUT",t[t.STORE=1]="STORE"})(K||(K={}));var $r=V(Math.abs),Br=V(Math.max),Ir=V(Math.min),Wr=V(Math.ceil),Ur=V((t,e,s=!1)=>s?Math.floor(t/e):t/e),Hr=V(Math.floor),Yr=V((t,e)=>t-e),Jr=V((t,e)=>t+e),Zr=V((t,e)=>(t%e+e)%e),Qr=V((t,e)=>t*e);function Kr(t,e=0){t=_t(t),e=_t(e);let s=Math.pow(10,e),i=t*s*(1+Number.EPSILON);return Math.round(i)/s}var Gr=Object.freeze({__proto__:null,abs:$r,at_least:Br,at_most:Ir,ceil:Wr,divided_by:Ur,floor:Hr,minus:Yr,plus:Jr,modulo:Zr,times:Qr,round:Kr}),Xr=t=>decodeURIComponent(h(t)).replace(/\+/g," "),en=t=>encodeURIComponent(h(t)).replace(/%20/g,"+"),tn=t=>encodeURIComponent(h(t)).replace(/%20/g,"+").replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),sn=t=>encodeURI(h(t)).replace(/%5B/g,"[").replace(/%5D/g,"]"),Ds=/[^\p{M}\p{L}\p{Nd}]+/ug,rn={raw:/\s+/g,default:Ds,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,ascii:/[^A-Za-z0-9]+/g,latin:Ds,none:null};function nn(t,e="default",s=!1){t=h(t);let i=rn[e];return i&&(e==="latin"&&(t=on(t)),t=t.replace(i,"-").replace(/^-|-$/g,"")),s?t:t.toLowerCase()}function on(t){return t.replace(/[àáâãäå]/g,"a").replace(/[æ]/g,"ae").replace(/[ç]/g,"c").replace(/[èéêë]/g,"e").replace(/[ìíîï]/g,"i").replace(/[ð]/g,"d").replace(/[ñ]/g,"n").replace(/[òóôõöø]/g,"o").replace(/[ùúûü]/g,"u").replace(/[ýÿ]/g,"y").replace(/[ß]/g,"ss").replace(/[œ]/g,"oe").replace(/[þ]/g,"th").replace(/[ẞ]/g,"SS").replace(/[Œ]/g,"OE").replace(/[Þ]/g,"TH")}var an=Object.freeze({__proto__:null,url_decode:Xr,url_encode:en,cgi_escape:tn,uri_escape:sn,slugify:nn}),ln=mt(function(t,e){let s=L(t),i=k(e)?" ":h(e),r=i.length*Math.max(s.length-1,0);for(let n=0;n<s.length;n++)r+=String(s[n]).length;return this.context.memoryLimit.use(r),Array.prototype.join.call(s,i)}),cn=mt(function(t){return Bs(t)?ge(t,-1,this.context.ownPropertyOnly):""}),hn=mt(function(t){return Bs(t)?ge(t,0,this.context.ownPropertyOnly):""}),un=mt(function(t){let e=L(t);return this.context.memoryLimit.use(e.length),[...e].reverse()});function*oi(t,e,s){let i=[],r=L(t);this.context.memoryLimit.use(r.length);for(let n of r)i.push([n,e?yield this.context._getFromScope(n,h(e).split("."),!1):n]);return i.sort((n,o)=>s(n[1],o[1])).map(n=>n[0])}function*fn(t,e){return yield*oi.call(this,t,e,vi)}function*dn(t,e){return yield*oi.call(this,t,e,Ri)}var pn=t=>t&&t.length||0;function*gn(t,e){let s=[],i=L(t);this.context.memoryLimit.use(i.length);for(let r of i)s.push(yield this.context._getFromScope(r,h(e),!1));return s}function*mn(t,e){let s=0,i=L(t);for(let r of i){let n=Number(e?yield this.context._getFromScope(r,h(e),!1):r);s+=Number.isNaN(n)?0:n}return s}function yn(t){let e=L(t);return this.context.memoryLimit.use(e.length),Array.prototype.filter.call(e,s=>!k(m(s)))}function ai(t,e=[]){let s=L(t),i=L(e);return this.context.memoryLimit.use(s.length+i.length),Array.prototype.concat.call(s,i)}function wn(t,e){return ai.call(this,t,[e])}function bn(t,e){let s=L(t);this.context.memoryLimit.use(s.length);let i=[...s];return i.unshift(e),i}function kn(t){let e=L(t);this.context.memoryLimit.use(e.length);let s=[...e];return s.pop(),s}function Tn(t){let e=L(t);this.context.memoryLimit.use(e.length);let s=[...e];return s.shift(),s}function Sn(t,e,s=1){return t=m(t),k(t)?[]:(x(t)||(t=h(t)),e=e<0?t.length+e:e,e<0||s<0?x(t)?[]:"":(this.context.memoryLimit.use(s),x(t)?Array.prototype.slice.call(t,e,e+s):String.prototype.slice.call(t,e,e+s)))}function li(t){return this.context.opts.jekyllWhere?e=>ae.is(t)?j(e,t):x(e)?ir(e,t):j(e,t):t===void 0?e=>W(e,this.context):e=>j(e,t)}function*ci(t,e,s,i){let r=[];e=L(e),this.context.memoryLimit.use(e.length);let n=new v(h(s)).readScopeValue();for(let a of e)r.push(yield T(n,this.context.spawn(a)));let o=li.call(this,i);return Array.prototype.filter.call(e,(a,c)=>o(r[c])===t)}function*hi(t,e,s,i){let r=[],n=new F(h(i),this.liquid),o=L(e);this.context.memoryLimit.use(o.length);for(let a of o){this.context.push({[s]:a});let c=yield n.value(this.context);this.context.pop(),c===t&&r.push(a)}return r}function*xn(t,e,s){return yield*ci.call(this,!0,t,e,s)}function*_n(t,e,s){return yield*ci.call(this,!1,t,e,s)}function*Ln(t,e,s){return yield*hi.call(this,!0,t,e,s)}function*Fn(t,e,s){return yield*hi.call(this,!1,t,e,s)}function*On(t,e){let s=new Map;t=me(t);let i=new v(h(e)).readScopeValue();this.context.memoryLimit.use(t.length);for(let r of t){let n=yield T(i,this.context.spawn(r));s.has(n)||s.set(n,[]),s.get(n).push(r)}return[...s.entries()].map(([r,n])=>({name:r,items:n}))}function*zn(t,e,s){let i=new Map,r=new F(h(s),this.liquid);t=me(t),this.context.memoryLimit.use(t.length);for(let n of t){this.context.push({[e]:n});let o=yield r.value(this.context);this.context.pop(),i.has(o)||i.set(o,[]),i.get(o).push(n)}return[...i.entries()].map(([n,o])=>({name:n,items:o}))}function*is(t,e,s){let i=new v(h(e)).readScopeValue(),r=L(t),n=li.call(this,s);for(let o=0;o<r.length;o++){let a=yield T(i,this.context.spawn(r[o]));if(n(a))return[o,r[o]]}}function*rs(t,e,s){let i=new F(h(s),this.liquid),r=L(t);for(let n=0;n<r.length;n++){this.context.push({[e]:r[n]});let o=yield i.value(this.context);if(this.context.pop(),o)return[n,r[n]]}}function*vn(t,e,s){return!!(yield*is.call(this,t,e,s))}function*Rn(t,e,s){return!!(yield*rs.call(this,t,e,s))}function*An(t,e,s){let i=yield*is.call(this,t,e,s);return i?i[0]:void 0}function*Nn(t,e,s){let i=yield*rs.call(this,t,e,s);return i?i[0]:void 0}function*qn(t,e,s){let i=yield*is.call(this,t,e,s);return i?i[1]:void 0}function*Mn(t,e,s){let i=yield*rs.call(this,t,e,s);return i?i[1]:void 0}function En(t){return t=L(t),this.context.memoryLimit.use(t.length),[...new Set(t)]}function Dn(t,e=1){if(t=m(t),k(t))return[];x(t)||(t=h(t)),this.context.memoryLimit.use(t.length);let s=[...t].sort(()=>Math.random()-.5);return e===1?s[0]:s.slice(0,e)}var Vn=Object.freeze({__proto__:null,join:ln,last:cn,first:hn,reverse:un,sort:fn,sort_natural:dn,size:pn,map:gn,sum:mn,compact:yn,concat:ai,push:wn,unshift:bn,pop:kn,shift:Tn,slice:Sn,where:xn,reject:_n,where_exp:Ln,reject_exp:Fn,group_by:On,group_by_exp:zn,has:vn,has_exp:Rn,find_index:An,find_index_exp:Nn,find:qn,find_exp:Mn,uniq:En,sample:Dn});function ns(t,e,s){let i=(t?.length??0)+(s?.length??0);this.context.memoryLimit.use(i);let r=fi(t,this.context.opts,s);return r?(e=m(e),e=k(e)?this.context.opts.dateFormat:h(e),this.context.memoryLimit.use(e.length),_e(r,e,this.context.memoryLimit)):t}function Pn(t){return ns.call(this,t,"%Y-%m-%dT%H:%M:%S%:z")}function Cn(t){return ns.call(this,t,"%a, %d %b %Y %H:%M:%S %z")}function jn(t,e,s){return ui.call(this,t,"%b",e,s)}function $n(t,e,s){return ui.call(this,t,"%B",e,s)}function ui(t,e,s,i){let r=fi(t,this.context.opts);if(!r)return t;let n=this.context.memoryLimit;if(s==="ordinal"){let o=r.getDate();return i==="US"?_e(r,`${e} ${o}%q, %Y`,n):_e(r,`${o}%q ${e} %Y`,n)}return _e(r,`%d ${e} %Y`,n)}function fi(t,e,s){let i,r=s??e.timezoneOffset,n=e.locale;if(t=m(t),!k(t))return t==="now"||t==="today"?i=new B(Date.now(),n,r):ye(t)?i=new B(t*1e3,n,r):p(t)?/^\d+$/.test(t)?i=new B(+t*1e3,n,r):e.preserveTimezones&&s===void 0?i=B.createDateFixedToTimezone(t,n):i=new B(t,n,r):i=new B(t,n,r),i.valid()?i:void 0}var Bn=Object.freeze({__proto__:null,date:ns,date_to_xmlschema:Pn,date_to_rfc822:Cn,date_to_string:jn,date_to_long_string:$n}),xt=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,Vs=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;function In(t,e){_(arguments.length===2,"append expect 2 arguments");let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),s+i}function Wn(t,e){_(arguments.length===2,"prepend expect 2 arguments");let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),i+s}function Un(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),e){e=h(e),this.context.memoryLimit.use(e.length);for(let i=0,r=new Set(e);i<s.length;i++)if(!r.has(s[i]))return s.slice(i);return""}return s.trimStart()}function Hn(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.toLowerCase()}function Yn(t){let e=h(t);return this.context.memoryLimit.use(e.length),h(e).toUpperCase()}function Jn(t,e){let s=h(t);return e=h(e),this.context.memoryLimit.use(s.length+e.length),s.split(e).join("")}function Zn(t,e){let s=h(t);return e=h(e),this.context.memoryLimit.use(s.length+e.length),s.replace(e,"")}function Qn(t,e){let s=h(t),i=h(e);this.context.memoryLimit.use(s.length+i.length);let r=s.lastIndexOf(i);return r===-1?s:s.substring(0,r)+s.substring(r+i.length)}function Kn(t,e){if(t=h(t),this.context.memoryLimit.use(t.length),e){e=h(e),this.context.memoryLimit.use(e.length);for(let s=t.length-1,i=new Set(e);s>=0;s--)if(!i.has(t[s]))return t.slice(0,s+1);return""}return t.trimEnd()}function Gn(t,e){let s=h(t);this.context.memoryLimit.use(s.length);let i=s.split(h(e));for(;i.length&&i[i.length-1]==="";)i.pop();return i}function Xn(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),e){let i=new Set(h(e));this.context.memoryLimit.use(i.size);let r=0,n=s.length-1;for(;i.has(s[r]);)r++;for(;n>=r&&i.has(s[n]);)n--;return s.slice(r,n+1)}return s.trim()}function eo(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,"")}function to(t){return t=h(t),this.context.memoryLimit.use(t.length),t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function so(t,e,s){let i=h(t);e=h(e),s=h(s);let r=i.split(e),n=i.length+(r.length-1)*(s.length-e.length);return this.context.memoryLimit.use(n),r.join(s)}function io(t,e,s){let i=h(t);return e=h(e),s=h(s),this.context.memoryLimit.use(i.length+e.length+s.length),i.replace(e,()=>s)}function ro(t,e,s){let i=h(t),r=h(e),n=h(s);this.context.memoryLimit.use(i.length+r.length+n.length);let o=i.lastIndexOf(r);return o===-1?i:i.substring(0,o)+n+i.substring(o+r.length)}function no(t,e=50,s="..."){let i=h(t);return s=h(s),this.context.memoryLimit.use(i.length+s.length),i.length<=e?t:i.substring(0,e-s.length)+s}function oo(t,e=15,s="..."){let i=h(t);s=h(s),this.context.memoryLimit.use(i.length+s.length);let r=i.split(/\s+/);e<=0&&(e=1);let n=r.slice(0,e).join(" ");return r.length>=e&&(n+=s),n}function ao(t){let e=h(t);return this.context.memoryLimit.use(e.length),e.replace(/\s+/g," ")}function lo(t,e){let s=h(t);if(this.context.memoryLimit.use(s.length),t=s.trim(),!t)return 0;switch(e){case"cjk":return(t.match(xt)||[]).length+(t.match(Vs)||[]).length;case"auto":return xt.test(t)?t.match(xt).length+(t.match(Vs)||[]).length:t.split(/\s+/).length;default:return t.split(/\s+/).length}}function co(t,e="and"){e=h(e);let s=e.length+t.length*2;for(let i=0;i<t.length;i++)s+=h(t[i]).length;switch(this.context.memoryLimit.use(s),t.length){case 0:return"";case 1:return t[0];case 2:return`${t[0]} ${e} ${t[1]}`;default:return`${t.slice(0,-1).join(", ")}, ${e} ${t[t.length-1]}`}}var ho=Object.freeze({__proto__:null,append:In,prepend:Wn,lstrip:Un,downcase:Hn,upcase:Yn,remove:Jn,remove_first:Zn,remove_last:Qn,rstrip:Kn,split:Gn,strip:Xn,strip_newlines:eo,capitalize:to,replace:so,replace_first:io,replace_last:ro,truncate:no,truncatewords:oo,normalize_whitespace:ao,number_of_words:lo,array_to_sentence_string:co});function uo(t){return Buffer.from(t,"utf8").toString("base64")}function fo(t){return Buffer.from(t,"base64").toString("utf8")}function po(t){if(typeof Buffer<"u"&&Buffer.isBuffer(t))return this.context.memoryLimit.use(t.byteLength),t.toString("base64");let e=h(t);return this.context.memoryLimit.use(e.length),uo(e)}function go(t){let e=h(t);return this.context.memoryLimit.use(e.length),fo(e)}var mo=Object.freeze({__proto__:null,base64_encode:po,base64_decode:go});function yo(t){return js.createHash("sha256").update(t,"utf8").digest("hex")}function wo(t,e){return js.createHmac("sha256",e).update(t,"utf8").digest("hex")}function bo(t){let e=h(t);return this.context.memoryLimit.use(e.length),yo(e)}function ko(t,e){let s=h(t),i=h(e);return this.context.memoryLimit.use(s.length+i.length),wo(s,i)}var To=Object.freeze({__proto__:null,sha256:bo,hmac_sha256:ko}),di={...zr,...Gr,...an,...Vn,...Bn,...ho,...mo,...To,...ei},Ye=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.key=this.identifier.content,this.tokenizer.assert(this.key,"expected variable name"),this.tokenizer.skipBlank(),this.tokenizer.assert(this.tokenizer.peek()==="=",'expected "="'),this.tokenizer.advance(),this.value=new F(this.tokenizer.readFilteredValue(),this.liquid)}*render(e){e.bottom()[this.key]=yield this.value.value(e,this.liquid.options.lenientIf)}*arguments(){yield this.value}*localScope(){yield this.identifier}},Ps=["offset","limit","reversed"],Je=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readIdentifier(),o=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(!n.size()||o.content!=="in"||!a)throw new Error(`illegal tag: ${e.getText()}`);this.variable=n.content,this.collection=a,this.hash=new $(this.tokenizer,i.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];let c,f=r.parseStream(s).on("start",()=>c=this.templates).on("tag:else",u=>{qe(u.args),c=this.elseTemplates}).on("tag:endfor",u=>{qe(u.args),f.stop()}).on("template",u=>c.push(u)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});f.start()}*render(e,s){let i=this.liquid.renderer,r=me(yield T(this.collection,e));if(!r.length){yield i.renderTemplates(this.elseTemplates,e,s);return}let n="continue-"+this.variable+"-"+this.collection.getText();e.push(Y({continue:e.getRegister(n,{})}));let o=yield this.hash.render(e);e.pop(),r=(this.liquid.options.orderedFilterParameters?Object.keys(o).filter(f=>Ps.includes(f)):Ps.filter(f=>o[f]!==void 0)).reduce((f,u)=>u==="offset"?xo(f,o.offset):u==="limit"?_o(f,o.limit):So(f),r),e.setRegister(n,(o.offset||0)+r.length);let c=Y({forloop:new le(r.length,this.collection.getText(),this.variable)});e.push(c);for(let f of r){if(c[this.variable]=f,e.continueCalled=e.breakCalled=!1,yield i.renderTemplates(this.templates,e,s),e.breakCalled)break;c.forloop.next()}e.continueCalled=e.breakCalled=!1,e.pop()}*children(){let e=this.templates.slice();return this.elseTemplates&&e.push(...this.elseTemplates),e}*arguments(){yield this.collection;for(let e of Object.values(this.hash.hash))z(e)&&(yield e)}blockScope(){return[this.variable,"forloop"]}};function So(t){return[...t].reverse()}function xo(t,e){return t.slice(e)}function _o(t,e){return t.slice(0,e)}var Ze=class extends b{constructor(e,s,i,r){for(super(e,s,i),this.templates=[],this.identifier=this.readVariable(),this.variable=this.identifier.content;s.length;){let n=s.shift();if(J(n)&&n.name==="endcapture")return;this.templates.push(r.parseToken(n,s))}throw new Error(`tag ${e.getText()} not closed`)}readVariable(){let e=this.tokenizer.readIdentifier();if(e.content||(e=this.tokenizer.readQuoted(),e))return e;throw this.tokenizer.error("invalid capture name")}*render(e){let i=yield this.liquid.renderer.renderTemplates(this.templates,e);e.bottom()[this.variable]=i}*children(){return this.templates}*localScope(){yield this.identifier}},Qe=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[],this.elseTemplates=[],this.value=new F(this.tokenizer.readFilteredValue(),this.liquid),this.elseTemplates=[];let n=[],o=0,a=r.parseStream(s).on("tag:when",c=>{if(o>0)return;n=[];let f=[];for(;!c.tokenizer.end();)f.push(c.tokenizer.readValueOrThrow()),c.tokenizer.skipBlank(),c.tokenizer.peek()===","?c.tokenizer.readTo(","):c.tokenizer.readTo("or");this.branches.push({values:f,templates:n})}).on("tag:else",()=>{o++,n=this.elseTemplates}).on("tag:endcase",()=>a.stop()).on("template",c=>{(n!==this.elseTemplates||o===1)&&n.push(c)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});a.start()}*render(e,s){let i=this.liquid.renderer,r=m(yield this.value.value(e,e.opts.lenientIf)),n=!1;for(let o of this.branches)for(let a of o.values){let c=yield T(a,e,e.opts.lenientIf);if(j(r,c)){yield i.renderTemplates(o.templates,e,s),n=!0;break}}n||(yield i.renderTemplates(this.elseTemplates,e,s))}*arguments(){yield this.value,yield*this.branches.flatMap(e=>e.values)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}},Ke=class extends b{constructor(e,s,i){for(super(e,s,i);s.length;){let r=s.shift();if(J(r)&&r.name==="endcomment")return}throw new Error(`tag ${e.getText()} not closed`)}render(){}},Ge=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer;for(this.file=os(n,this.liquid,r),this.currentFile=e.file;!n.end();){n.skipBlank();let o=n.p,a=n.readIdentifier();if((a.content==="with"||a.content==="for")&&(n.skipBlank(),n.peek()!==":")){let c=n.readValue();if(c){let f=n.p,u=n.readIdentifier(),g;u.content==="as"?g=n.readIdentifier():n.p=f;let d={value:c,alias:g&&g.content};a.content==="with"?this.with=d:this.forBinding=d,n.skipBlank(),n.peek()===","&&n.advance();continue}}n.p=o;break}this.hash=new $(n,i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r}=this,n=yield as(this.file,e,i);_(n,()=>`illegal file path "${n}"`);let o=e.spawn(),a=o.bottom();if(He(a,yield r.render(e)),this.with){let{value:c,alias:f}=this.with;a[f||n]=yield T(c,e)}if(this.forBinding){let{value:c,alias:f}=this.forBinding,u=me(yield T(c,e));a.forloop=new le(u.length,c.getText(),f);for(let g of u){a[f]=g;let d=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(d,o,s),a.forloop.next()}}else{let c=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(c,o,s)}}*children(e,s){return e&&p(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(p(this.file)){let e=Object.keys(this.hash.hash);if(this.with){let{value:s,alias:i}=this.with;p(i)?e.push([i,s]):p(this.file)&&e.push([this.file,s])}if(this.forBinding){let{value:s,alias:i}=this.forBinding;p(i)?e.push([i,s]):p(this.file)&&e.push([this.file,s])}return{name:this.file,isolated:!0,scope:e}}}*arguments(){for(let e of Object.values(this.hash.hash))z(e)&&(yield e);if(this.with){let{value:e}=this.with;z(e)&&(yield e)}if(this.forBinding){let{value:e}=this.forBinding;z(e)&&(yield e)}}};function os(t,e,s){if(e.options.dynamicPartials){let n=t.readValue();if(t.assert(n,"illegal file path"),n.getText()==="none")return;if(Ue(n)){let o=s.parse(Gs(n));return Cs(o)}return n}let i=[...t.readFileNameTemplate(e.options)],r=Cs(s.parseTokens(i));return r==="none"?void 0:r}function Cs(t){return t.length===1&&wt(t[0].token)?t[0].token.getContent():t}function*as(t,e,s){return typeof t=="string"?t:Array.isArray(t)?s.renderer.renderTemplates(t,e):yield T(t,e)}var Xe=class extends b{constructor(e,s,i,r){super(e,s,i);let{tokenizer:n}=e;this.file=os(n,this.liquid,r),this.currentFile=e.file;let o=n.p;n.readIdentifier().content==="with"?(n.skipBlank(),n.peek()!==":"?this.withVar=n.readValue():n.p=o):n.p=o,this.hash=new $(n,i.options.jekyllInclude||i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r,withVar:n}=this,{renderer:o}=i,a=yield as(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let c=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",K.OUTPUT);let f=Y(yield r.render(e));n&&(f[a]=yield T(n,e));let u=yield i._parsePartialFile(a,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?Y({include:f}):f),yield o.renderTemplates(u,e,s),e.pop(),e.restoreRegister(c)}*children(e,s){return e&&p(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(p(this.file)){let e;return this.liquid.options.jekyllInclude?e=["include"]:(e=Object.keys(this.hash.hash),this.withVar&&e.push([this.file,this.withVar])),{name:this.file,isolated:!1,scope:e}}}*arguments(){yield*Object.values(this.hash.hash).filter(z),z(this.file)&&(yield this.file),z(this.withVar)&&(yield this.withVar)}},et=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,s){let i=e.environments;ye(i[this.variable])||(i[this.variable]=0),s.write(h(--i[this.variable]))}*localScope(){yield this.identifier}},tt=class extends b{constructor(e,s,i){super(e,s,i),this.candidates=[];let r=this.tokenizer.readValue();for(this.tokenizer.skipBlank(),r&&(this.tokenizer.peek()===":"?(this.group=r,this.tokenizer.advance()):this.candidates.push(r));!this.tokenizer.end();){let n=this.tokenizer.readValue();n&&this.candidates.push(n),this.tokenizer.readTo(",")}this.tokenizer.assert(this.candidates.length,()=>`empty candidates: "${e.getText()}"`)}*render(e,s){let r=`cycle:${yield T(this.group,e)}:`+this.candidates.join(","),n=e.getRegister("cycle",{}),o=n[r];o===void 0&&(o=n[r]=0);let a=this.candidates[o];return o=(o+1)%this.candidates.length,n[r]=o,yield T(a,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}},st=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[];let n=[];r.parseStream(s).on("start",()=>this.branches.push({value:new F(e.tokenizer.readFilteredValue(),this.liquid),templates:n=[]})).on("tag:elsif",o=>{_(!this.elseTemplates,"unexpected elsif after else"),this.branches.push({value:new F(o.tokenizer.readFilteredValue(),this.liquid),templates:n=[]})}).on("tag:else",o=>{qe(o.args),_(!this.elseTemplates,"duplicated else"),n=this.elseTemplates=[]}).on("tag:endif",function(o){qe(o.args),this.stop()}).on("template",o=>n.push(o)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,s){let i=this.liquid.renderer;for(let{value:r,templates:n}of this.branches){let o=yield r.value(e,e.opts.lenientIf);if(W(o,e)){yield i.renderTemplates(n,e,s);return}}yield i.renderTemplates(this.elseTemplates||[],e,s)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},it=class extends b{constructor(e,s,i){super(e,s,i),this.identifier=this.tokenizer.readIdentifier(),this.variable=this.identifier.content}render(e,s){let i=e.environments;ye(i[this.variable])||(i[this.variable]=0);let r=i[this.variable];i[this.variable]++,s.write(h(r))}*localScope(){yield this.identifier}},rt=class extends b{constructor(e,s,i,r){super(e,s,i),this.file=os(this.tokenizer,this.liquid,r),this.currentFile=e.file,this.args=new $(this.tokenizer,i.options.keyValueSeparator),this.templates=r.parseTokens(s)}*render(e,s){let{liquid:i,args:r,file:n}=this,{renderer:o}=i;if(n===void 0){e.setRegister("blockMode",K.OUTPUT),yield o.renderTemplates(this.templates,e,s);return}let a=yield as(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let c=yield i._parseLayoutFile(a,e.sync,this.currentFile);e.setRegister("blockMode",K.STORE);let f=yield o.renderTemplates(this.templates,e),u=e.getRegister("blocks",{});u[""]===void 0&&(u[""]=(g,d)=>d.write(f)),e.setRegister("blockMode",K.OUTPUT),e.push(Y(yield r.render(e))),yield o.renderTemplates(c,e,s),e.pop()}*children(e){let s=this.templates.slice();return e&&p(this.file)&&s.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),s}*arguments(){for(let e of Object.values(this.args.hash))z(e)&&(yield e);z(this.file)&&(yield this.file)}partialScope(){if(p(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}},nt=class extends b{constructor(e,s,i,r){super(e,s,i),this.templates=[];let n=/\w+/.exec(e.args);for(this.block=n?n[0]:"";s.length;){let o=s.shift();if(J(o)&&o.name==="endblock")return;let a=r.parseToken(o,s);this.templates.push(a)}throw new Error(`tag ${e.getText()} not closed`)}*render(e,s){let i=this.getBlockRender(e);e.getRegister("blockMode")===K.STORE?e.getRegister("blocks",{})[this.block]=i:yield i(new Ee,s)}getBlockRender(e){let s=this,{liquid:i,templates:r}=this,n=e.getRegister("blocks",{})[this.block],o=function*(a,c){let f=e.getRegister("blockStack",[]);if(f.includes(s))throw new Error("block tag cannot be nested");f.push(s),e.push(Y({block:a})),yield i.renderer.renderTemplates(r,e,c),e.pop(),f.pop()};return n?(a,c)=>n(new Ee(f=>o(a,f)),c):o}*children(){return this.templates}blockScope(){return["block"]}},ot=class extends b{constructor(e,s,i){for(super(e,s,i),this.tokens=[];s.length;){let r=s.shift();if(J(r)&&r.name==="endraw")return;this.tokens.push(r)}throw new Error(`tag ${e.getText()} not closed`)}render(){return this.tokens.map(e=>e.getText()).join("")}},Kt=class extends le{constructor(e,s,i,r){super(e,i,r),this.length=e,this.cols=s}row(){return Math.floor(this.i/this.cols)+1}col0(){return this.i%this.cols}col(){return this.col0()+1}col_first(){return this.col0()===0}col_last(){return this.col()===this.cols}},at=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readIdentifier();this.tokenizer.skipBlank();let o=this.tokenizer.readIdentifier(),a=this.tokenizer.readValue();if(o.content!=="in"||!a)throw new Error(`illegal tag: ${e.getText()}`);this.variable=n.content,this.collection=a,this.args=new $(this.tokenizer,i.options.keyValueSeparator),this.templates=[];let c,f=r.parseStream(s).on("start",()=>c=this.templates).on("tag:endtablerow",()=>f.stop()).on("template",u=>c.push(u)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});f.start()}*render(e,s){let i=me(yield T(this.collection,e)),r=yield this.args.render(e),n=r.offset||0,o=r.limit===void 0?i.length:r.limit;i=i.slice(n,n+o);let a=r.cols||i.length,c=this.liquid.renderer,f=new Kt(i.length,a,this.collection.getText(),this.variable),u=Y({tablerowloop:f});e.push(u);for(let g=0;g<i.length;g++,f.next())u[this.variable]=i[g],f.col0()===0&&(f.row()!==1&&s.write("</tr>"),s.write(`<tr class="row${f.row()}">`)),s.write(`<td class="col${f.col()}">`),yield c.renderTemplates(this.templates,e,s),s.write("</td>");i.length&&s.write("</tr>"),e.pop()}*children(){return this.templates}*arguments(){yield this.collection;for(let e of Object.values(this.args.hash))z(e)&&(yield e)}blockScope(){return[this.variable,"tablerowloop"]}},lt=class extends b{constructor(e,s,i,r){super(e,s,i),this.branches=[],this.elseTemplates=[];let n=[],o=0;r.parseStream(s).on("start",()=>this.branches.push({value:new F(e.tokenizer.readFilteredValue(),this.liquid),test:we,templates:n=[]})).on("tag:elsif",a=>{if(o>0){n=[];return}this.branches.push({value:new F(a.tokenizer.readFilteredValue(),this.liquid),test:W,templates:n=[]})}).on("tag:else",()=>{o++,n=this.elseTemplates}).on("tag:endunless",function(){this.stop()}).on("template",a=>{(n!==this.elseTemplates||o===1)&&n.push(a)}).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)}).start()}*render(e,s){let i=this.liquid.renderer;for(let{value:r,test:n,templates:o}of this.branches){let a=yield r.value(e,e.opts.lenientIf);if(n(a,e)){yield i.renderTemplates(o,e,s);return}}yield i.renderTemplates(this.elseTemplates,e,s)}*children(){let e=this.branches.flatMap(s=>s.templates);return this.elseTemplates&&e.push(...this.elseTemplates),e}arguments(){return this.branches.map(e=>e.value)}},ct=class extends b{render(e,s){e.breakCalled=!0}},ht=class extends b{render(e,s){e.continueCalled=!0}},ut=class extends b{constructor(e,s,i){super(e,s,i),this.tokenizer.skipBlank(),this.tokenizer.end()||(this.value=new F(this.tokenizer.readFilteredValue(),this.liquid))}*render(e,s){if(!this.value)return;let i=yield this.value.value(e,!1);s.write(i)}*arguments(){this.value&&(yield this.value)}},ft=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer.readLiquidTagTokens(this.liquid.options);this.templates=r.parseTokens(n)}*render(e,s){yield this.liquid.renderer.renderTemplates(this.templates,e,s)}*children(){return this.templates}},dt=class extends b{constructor(e,s,i){if(super(e,s,i),e.args.search(/\n\s*[^#\s]/g)!==-1)throw new Error("every line of an inline comment must start with a '#' character")}render(){}},pi={assign:Ye,for:Je,capture:Ze,case:Qe,comment:Ke,include:Xe,render:Ge,decrement:et,increment:it,cycle:tt,if:st,layout:rt,block:nt,raw:ot,tablerow:at,unless:lt,break:ct,continue:ht,echo:ut,liquid:ft,"#":dt},Gt=class t{constructor(e={}){this.renderer=new It,this.filters=Object.create(null),this.tags=Object.create(null),this.options=vr(e),this.parser=new N(this),Ts(pi,(s,i)=>this.registerTag(i,s)),Ts(di,(s,i)=>this.registerFilter(i,s))}parse(e,s){return new N(this).parse(e,s)}_render(e,s,i){let r=s instanceof I?s:new I(s,this.options,i);return this.renderer.renderTemplates(e,r)}async render(e,s,i){return q(this._render(e,s,{...i,sync:!1}))}renderSync(e,s,i){return M(this._render(e,s,{...i,sync:!0}))}renderToNodeStream(e,s,i={}){let r=new I(s,this.options,i);return this.renderer.renderTemplatesToNodeStream(e,r)}_parseAndRender(e,s,i){let r=this.parse(e);return this._render(r,s,i)}async parseAndRender(e,s,i){return q(this._parseAndRender(e,s,{...i,sync:!1}))}parseAndRenderSync(e,s,i){return M(this._parseAndRender(e,s,{...i,sync:!0}))}_parsePartialFile(e,s,i){return new N(this).parseFile(e,s,l.LookupType.Partials,i)}_parseLayoutFile(e,s,i){return new N(this).parseFile(e,s,l.LookupType.Layouts,i)}_parseFile(e,s,i,r){return new N(this).parseFile(e,s,i,r)}async parseFile(e,s){return q(new N(this).parseFile(e,!1,s))}parseFileSync(e,s){return M(new N(this).parseFile(e,!0,s))}*_renderFile(e,s,i){let r=yield this._parseFile(e,i.sync,i.lookupType);return yield this._render(r,s,i)}async renderFile(e,s,i){return q(this._renderFile(e,s,{...i,sync:!1}))}renderFileSync(e,s,i){return M(this._renderFile(e,s,{...i,sync:!0}))}async renderFileToNodeStream(e,s,i){let r=await this.parseFile(e);return this.renderToNodeStream(r,s,i)}_evalValue(e,s){let i=new F(e,this),r=s instanceof I?s:new I(s,this.options);return i.value(r)}async evalValue(e,s){return q(this._evalValue(e,s))}evalValueSync(e,s){return M(this._evalValue(e,s))}registerFilter(e,s){this.filters[e]=s}registerTag(e,s){this.tags[e]=S(s)?s:Mr(s)}plugin(e){return e.call(this,t)}express(){let e=this,s=!0;return function(i,r,n){if(s){s=!1;let o=Le(this.root);e.options.root.unshift(...o),e.options.layouts.unshift(...o),e.options.partials.unshift(...o)}e.renderFile(i,r).then(o=>n(null,o),n)}}async analyze(e,s={}){return P(e,s)}analyzeSync(e,s={}){return C(e,s)}async parseAndAnalyze(e,s,i={}){return P(this.parse(e,s),i)}parseAndAnalyzeSync(e,s,i={}){return C(this.parse(e,s),i)}async variables(e,s={}){let i=await P(p(e)?this.parse(e):e,s);return Object.keys(i.variables)}variablesSync(e,s={}){let i=C(p(e)?this.parse(e):e,s);return Object.keys(i.variables)}async fullVariables(e,s={}){let i=await P(p(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.variables).flatMap(r=>r.map(n=>String(n)))))}fullVariablesSync(e,s={}){let i=C(p(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.variables).flatMap(r=>r.map(n=>String(n)))))}async variableSegments(e,s={}){let i=await P(p(e)?this.parse(e):e,s);return Array.from(Se(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}variableSegmentsSync(e,s={}){let i=C(p(e)?this.parse(e):e,s);return Array.from(Se(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}async globalVariables(e,s={}){let i=await P(p(e)?this.parse(e):e,s);return Object.keys(i.globals)}globalVariablesSync(e,s={}){let i=C(p(e)?this.parse(e):e,s);return Object.keys(i.globals)}async globalFullVariables(e,s={}){let i=await P(p(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.globals).flatMap(r=>r.map(n=>String(n)))))}globalFullVariablesSync(e,s={}){let i=C(p(e)?this.parse(e):e,s);return Array.from(new Set(Object.values(i.globals).flatMap(r=>r.map(n=>String(n)))))}async globalVariableSegments(e,s={}){let i=await P(p(e)?this.parse(e):e,s);return Array.from(Se(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}globalVariableSegmentsSync(e,s={}){let i=C(p(e)?this.parse(e):e,s);return Array.from(Se(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}},Lo="10.27.2";l.AssertionError=Ne;l.AssignTag=Ye;l.BlockTag=nt;l.BreakTag=ct;l.CaptureTag=Ze;l.CaseTag=Qe;l.CommentTag=Ke;l.Context=I;l.ContinueTag=ht;l.CycleTag=tt;l.DecrementTag=et;l.Drop=E;l.EchoTag=ut;l.Expression=Ce;l.Filter=de;l.ForTag=Je;l.Hash=$;l.IfTag=st;l.IncludeTag=Xe;l.IncrementTag=it;l.InlineCommentTag=dt;l.LayoutTag=rt;l.Liquid=Gt;l.LiquidError=D;l.LiquidTag=ft;l.Output=Be;l.ParseError=ze;l.ParseStream=$e;l.Parser=N;l.RawTag=ot;l.RenderError=ve;l.RenderTag=Ge;l.TablerowTag=at;l.Tag=b;l.TagToken=ue;l.Token=O;l.TokenizationError=Oe;l.Tokenizer=v;l.TypeGuards=Vr;l.UndefinedVariableError=Ae;l.UnlessTag=lt;l.Value=F;l.Variable=H;l.analyze=P;l.analyzeSync=C;l.assert=_;l.createTrie=Rt;l.defaultOperators=Xs;l.defaultOptions=Q;l.evalQuotedToken=Gs;l.evalToken=T;l.filters=di;l.isFalsy=we;l.isTruthy=W;l.tags=pi;l.toPromise=q;l.toValue=m;l.toValueSync=M;l.version=Lo});be();var yi=ki(gi());function mi(t,e){let s=new yi.Liquid;return s.render(s.parse(t),e)}async function qo(t,e,s){bs(ws`Copying template from directory ${St.path(t)} to ${St.path(e)}`);let i=await ms(ke(t,"**/*"),{dot:!0}),r=ke(t,".cli-liquid-bypass"),n=[];await gs(r)&&(n=(await kt(r)).split(`
15
+ `).filter(a=>a.trim().length>0));let o=i.map(a=>a.split("/")).sort((a,c)=>a.length<c.length?1:-1).map(a=>a.join("/"));await Promise.all(o.map(async a=>{let c=await mi(ke(e,bt(t,a)),s),f=n.some(u=>{let g=bt(t,a),d=u.replace(/^\.\//,"");return ys(g,d)||g.startsWith(d)});if(await fs(a))await Tt(c);else if(a.endsWith(".liquid")&&!f){await Tt(hs(c));let u=await kt(a),g=await mi(u,s),d=await ps(a),y=c.replace(".liquid","");await Te(a,y),await us(y,g),d&&await ds(y,493)}else if(a.endsWith(".raw")){let u=c.replace(".raw","");await Te(a,u)}else await Te(a,c)}))}export{mi as a,qo as b};
@@ -0,0 +1,9 @@
1
+ import{b as h}from"./chunk-XEZPN5TR.js";import{b as m,c as u}from"./chunk-DMOLPSXF.js";import{M as n}from"./chunk-2KUM2RU4.js";import{a as i}from"./chunk-LG3KEHGD.js";import{zb as p}from"./chunk-ZMOW2YZ4.js";import{b as s}from"./chunk-3PYDIBTX.js";import{b as g}from"./chunk-AE3IQG7S.js";import{e as S,g as e}from"./chunk-VKWPEFWQ.js";e();e();async function f(t){let r=new URLSearchParams;return r.append("search",t??""),{url:`https://shopify.dev/docs?${r.toString()}`}}e();e();var o=i({name:"SearchResult",schema:s.object({url:s.string().url()})});async function l(t,r){r==="json"?p(o.encode(t)):await n(t.url)}var d=S(g(),1),a=class t extends h{static descriptionWithMarkdown="Search shopify.dev for the most relevant content matching a query. Best for discovery \u2014 surfacing the relevant pieces of documentation for a topic, rather than retrieving a whole document. To download a full document verbatim, use `doc fetch`.";static jsonOutputSchema=o;static description=this.descriptionForHelp();static usage="search [query]";static examples=[`# open the search modal on Shopify.dev
2
+ shopify search
3
+
4
+ # search for a term on Shopify.dev
5
+ shopify search <query>
6
+
7
+ # search for a phrase on Shopify.dev
8
+ shopify search "<a search query separated by spaces>"
9
+ `];static args={query:d.Args.string()};static flags={...m,...u};async run(){let{args:r,flags:c}=await this.parse(t),y=await f(r.query);await l(y,c.json?"json":"text")}};export{a};
@@ -0,0 +1,5 @@
1
+ import{a as $}from"./chunk-3KGN6N7E.js";import{a as N}from"./chunk-CQAD5WML.js";import{a as j,c as b,g as d}from"./chunk-VKWPEFWQ.js";var O=b((re,k)=>{d();function J(t){e.debug=e,e.default=e,e.coerce=_,e.disable=q,e.enable=a,e.enabled=U,e.humanize=N(),e.destroy=z,Object.keys(t).forEach(n=>{e[n]=t[n]}),e.names=[],e.skips=[],e.formatters={};function r(n){let o=0;for(let s=0;s<n.length;s++)o=(o<<5)-o+n.charCodeAt(s),o|=0;return e.colors[Math.abs(o)%e.colors.length]}e.selectColor=r;function e(n){let o,s=null,l,g;function u(...f){if(!u.enabled)return;let F=u,h=Number(new Date),G=h-(o||h);F.diff=G,F.prev=o,F.curr=h,o=h,f[0]=e.coerce(f[0]),typeof f[0]!="string"&&f.unshift("%O");let m=0;f[0]=f[0].replace(/%([a-zA-Z%])/g,(x,S)=>{if(x==="%%")return"%";m++;let A=e.formatters[S];if(typeof A=="function"){let L=f[m];x=A.call(F,L),f.splice(m,1),m--}return x}),e.formatArgs.call(F,f),(F.log||e.log).apply(F,f)}return u.namespace=n,u.useColors=e.useColors(),u.color=e.selectColor(n),u.extend=i,u.destroy=e.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:()=>s!==null?s:(l!==e.namespaces&&(l=e.namespaces,g=e.enabled(n)),g),set:f=>{s=f}}),typeof e.init=="function"&&e.init(u),u}function i(n,o){let s=e(this.namespace+(typeof o>"u"?":":o)+n);return s.log=this.log,s}function a(n){e.save(n),e.namespaces=n,e.names=[],e.skips=[];let o=(typeof n=="string"?n:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let s of o)s[0]==="-"?e.skips.push(s.slice(1)):e.names.push(s)}function p(n,o){let s=0,l=0,g=-1,u=0;for(;s<n.length;)if(l<o.length&&(o[l]===n[s]||o[l]==="*"))o[l]==="*"?(g=l,u=s,l++):(s++,l++);else if(g!==-1)l=g+1,u++,s=u;else return!1;for(;l<o.length&&o[l]==="*";)l++;return l===o.length}function q(){let n=[...e.names,...e.skips.map(o=>"-"+o)].join(",");return e.enable(""),n}function U(n){for(let o of e.skips)if(p(n,o))return!1;for(let o of e.names)if(p(n,o))return!0;return!1}function _(n){return n instanceof Error?n.stack||n.message:n}function z(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return e.enable(e.load()),e}k.exports=J});var D=b((C,y)=>{d();C.formatArgs=T;C.save=W;C.load=Z;C.useColors=P;C.storage=M();C.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();C.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function P(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function T(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+y.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let e=0,i=0;t[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(e++,a==="%c"&&(i=e))}),t.splice(i,0,r)}C.log=console.debug||console.log||(()=>{});function W(t){try{t?C.storage.setItem("debug",t):C.storage.removeItem("debug")}catch{}}function Z(){let t;try{t=C.storage.getItem("debug")||C.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function M(){try{return localStorage}catch{}}y.exports=O()(C);var{formatters:H}=y.exports;H.j=function(t){try{return JSON.stringify(t)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}});var B=b((c,v)=>{d();var K=j("tty"),w=j("util");c.init=te;c.log=X;c.formatArgs=R;c.save=Y;c.load=ee;c.useColors=Q;c.destroy=w.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");c.colors=[6,2,3,4,5,1];try{let t=$();t&&(t.stderr||t).level>=2&&(c.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}c.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,r)=>{let e=r.substring(6).toLowerCase().replace(/_([a-z])/g,(a,p)=>p.toUpperCase()),i=process.env[r];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),t[e]=i,t},{});function Q(){return"colors"in c.inspectOpts?!!c.inspectOpts.colors:K.isatty(process.stderr.fd)}function R(t){let{namespace:r,useColors:e}=this;if(e){let i=this.color,a="\x1B[3"+(i<8?i:"8;5;"+i),p=` ${a};1m${r} \x1B[0m`;t[0]=p+t[0].split(`
2
+ `).join(`
3
+ `+p),t.push(a+"m+"+v.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=V()+r+" "+t[0]}function V(){return c.inspectOpts.hideDate?"":new Date().toISOString()+" "}function X(...t){return process.stderr.write(w.formatWithOptions(c.inspectOpts,...t)+`
4
+ `)}function Y(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ee(){return process.env.DEBUG}function te(t){t.inspectOpts={};let r=Object.keys(c.inspectOpts);for(let e=0;e<r.length;e++)t.inspectOpts[r[e]]=c.inspectOpts[r[e]]}v.exports=O()(c);var{formatters:E}=v.exports;E.o=function(t){return this.inspectOpts.colors=this.useColors,w.inspect(t,this.inspectOpts).split(`
5
+ `).map(r=>r.trim()).join(" ")};E.O=function(t){return this.inspectOpts.colors=this.useColors,w.inspect(t,this.inspectOpts)}});var ne=b((le,I)=>{d();typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?I.exports=D():I.exports=B()});export{ne as a};
@@ -0,0 +1 @@
1
+ import{N as s,R as m}from"./chunk-2KUM2RU4.js";import{a as h}from"./chunk-7UNQOKZW.js";import{mb as p}from"./chunk-ZMOW2YZ4.js";import{a as d}from"./chunk-O472FAYX.js";import{e as c,g as f}from"./chunk-VKWPEFWQ.js";f();var l=c(h(),1),n=c(d(),1),w=30*1e3;async function v(e){try{return(await s("npm",["list","@shopify/cli"],{cwd:e})).match(/@shopify\/cli@([\w.-]*)/)?.[1]}catch{return}}async function C(e="shopify"){try{let t={...process.env,SHOPIFY_CLI_NO_ANALYTICS:"1"},o=l.default.sync(e,{all:!0}).filter(i=>!i.includes("node_modules"));if(!o[0])return;let r=(await s(o[0],[],{env:t})).match(/@shopify\/cli\/([^\s]+)/);if(r&&r[1]){let i=r[1];if((0,n.satisfies)(i,">=3.59.0")||a(i))return i}return}catch{return}}async function I(){try{let e={env:{HOMEBREW_NO_AUTO_UPDATE:"1"}},t=AbortSignal.timeout(w);if(await m("brew",["update","--quiet"],{...e,signal:t}),t.aborted)return;let o=await s("brew",["info","--json=v2",p()],e),r=JSON.parse(o).formulae?.[0]?.versions?.stable;return(0,n.valid)(r)??void 0}catch{return}}function a(e){return e.startsWith("0.0.0")}function O(e,t){if(a(e)||a(t))return!1;let o=new n.SemVer(e),u=new n.SemVer(t);return o.major!==u.major}export{v as a,C as b,I as c,a as d,O as e};
@@ -1 +1 @@
1
- import{b as n}from"./chunk-F3CK3EJJ.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();var o=class extends Error{type;constructor(e,p){super(p),this.type=e}},i=r=>async()=>r,s=r=>async e=>e.provider!==r.provider?n(new o("invalid-provider")):r.action(e.port);var d="cloudflare",v=i({name:d});export{o as a,s as b,d as c,v as d};
1
+ import{b as n}from"./chunk-BFAOTQGH.js";import{g as t}from"./chunk-VKWPEFWQ.js";t();t();var o=class extends Error{type;constructor(e,p){super(p),this.type=e}},i=r=>async()=>r,s=r=>async e=>e.provider!==r.provider?n(new o("invalid-provider")):r.action(e.port);var d="cloudflare",v=i({name:d});export{o as a,s as b,d as c,v as d};
@@ -1 +1 @@
1
- import{j as m}from"./chunk-GQLNG537.js";import{a as k,b as G}from"./chunk-F3CK3EJJ.js";import{f as H}from"./chunk-CXI3RHPW.js";import{h as u}from"./chunk-M5VIFG2V.js";import{Bb as h,Na as R,Oa as T,ja as g,qb as p,sb as l,ta as y,va as x}from"./chunk-JLQRDFR5.js";import{c as $,h as b}from"./chunk-IWTNUJGY.js";import{g as w}from"./chunk-VKWPEFWQ.js";w();var d=class extends Error{constructor(t,e,o){super(`The request to GitHub API URL ${t} failed with status code ${e} and the following error message: ${o.message}`)}};async function A(i,t,e={filter:()=>!0}){h(l`Getting the latest release of GitHub repository ${i}/${t}...`);let o=`https://api.github.com/repos/${i}/${t}/releases`,r=await m(o);try{let s=await r.text(),n=JSON.parse(s);if(r.status!==200)throw new d(o,r.status,n);return n.find(e.filter)}catch(s){throw s instanceof SyntaxError?new u(`Received invalid response from GitHub API (HTTP ${r.status}).`,"The response could not be parsed as JSON. The service may be temporarily unavailable. Please try again."):s}}function B(i){let t=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(i);if(!t){let S=["github:user/repo","user/repo/subdirectory","git@github.com:user/repo","user/repo#dev","https://github.com/user/repo"];return G(new Error(`Parsing the url ${i} failed. Supported formats are ${S.join(", ")}.`))}let e=t[1]??t[2]??t[3]??"github.com",o=e==="github"?"github.com":e,r=t[4],s=t[5].replace(/\.git$/,""),n=t[6]?.slice(1),a=t[7],f=a?`#${a}`:"",c=`git@${o}:${r}/${s}`,P=`https://${o}/${r}/${s}`,v=["https:/",o,r,s,n].join("/").concat(f);return k({full:v,site:o,user:r,name:s,ref:a,subDirectory:n,ssh:c,http:P})}function I(i){let t=new URL(i),e=t.hash?t.hash.slice(1):void 0,[o,r,s,...n]=t.pathname.split("/"),a=n.length>0?n.join("/"):void 0;return{baseURL:`${t.origin}/${r}/${s}`,branch:e,filePath:a}}async function q(i,t,e,o){let r=`https://github.com/${i}/releases/download/${t}/${e}`;return H("cmd_all_timing_network_ms")(async()=>{h(l`Downloading ${p.link(e,r)}`),await g(async s=>{let n=$(s,e),a;try{if(a=await m(r,void 0,"slow-request"),!a.ok)throw new u(`Failed to download ${e}: ${a.statusText}`)}catch(c){throw new u(`Failed to download ${e}: ${c instanceof Error?c.message:"unknown error"}`)}let f=await a.arrayBuffer();await y(n,Buffer.from(f)),await T(n,493),await x(b(o)),await R(n,o)}),h(l`${p.successIcon()} Successfully downloaded ${p.path(o)}`)})}export{A as a,B as b,I as c,q as d};
1
+ import{p as m}from"./chunk-YKDRUAY3.js";import{a as k,b as G}from"./chunk-BFAOTQGH.js";import{f as H}from"./chunk-I3WRA2LH.js";import{i as u}from"./chunk-TD6JBHUS.js";import{Eb as h,Na as R,Oa as T,ja as g,ta as y,tb as p,va as x,vb as l}from"./chunk-ZMOW2YZ4.js";import{c as $,h as b}from"./chunk-IWTNUJGY.js";import{g as w}from"./chunk-VKWPEFWQ.js";w();var d=class extends Error{constructor(t,e,o){super(`The request to GitHub API URL ${t} failed with status code ${e} and the following error message: ${o.message}`)}};async function A(i,t,e={filter:()=>!0}){h(l`Getting the latest release of GitHub repository ${i}/${t}...`);let o=`https://api.github.com/repos/${i}/${t}/releases`,r=await m(o);try{let s=await r.text(),n=JSON.parse(s);if(r.status!==200)throw new d(o,r.status,n);return n.find(e.filter)}catch(s){throw s instanceof SyntaxError?new u(`Received invalid response from GitHub API (HTTP ${r.status}).`,"The response could not be parsed as JSON. The service may be temporarily unavailable. Please try again."):s}}function B(i){let t=/^(?:(?:https:\/\/)?([^:/]+\.[^:/]+)\/|git@([^:/]+)[:/]|([^/]+):)?([^/\s]+)\/([^/\s#]+)(?:((?:\/[^/\s#]+)+))?(?:\/)?(?:#(.+))?/.exec(i);if(!t){let S=["github:user/repo","user/repo/subdirectory","git@github.com:user/repo","user/repo#dev","https://github.com/user/repo"];return G(new Error(`Parsing the url ${i} failed. Supported formats are ${S.join(", ")}.`))}let e=t[1]??t[2]??t[3]??"github.com",o=e==="github"?"github.com":e,r=t[4],s=t[5].replace(/\.git$/,""),n=t[6]?.slice(1),a=t[7],f=a?`#${a}`:"",c=`git@${o}:${r}/${s}`,P=`https://${o}/${r}/${s}`,v=["https:/",o,r,s,n].join("/").concat(f);return k({full:v,site:o,user:r,name:s,ref:a,subDirectory:n,ssh:c,http:P})}function I(i){let t=new URL(i),e=t.hash?t.hash.slice(1):void 0,[o,r,s,...n]=t.pathname.split("/"),a=n.length>0?n.join("/"):void 0;return{baseURL:`${t.origin}/${r}/${s}`,branch:e,filePath:a}}async function q(i,t,e,o){let r=`https://github.com/${i}/releases/download/${t}/${e}`;return H("cmd_all_timing_network_ms")(async()=>{h(l`Downloading ${p.link(e,r)}`),await g(async s=>{let n=$(s,e),a;try{if(a=await m(r,void 0,"slow-request"),!a.ok)throw new u(`Failed to download ${e}: ${a.statusText}`)}catch(c){throw new u(`Failed to download ${e}: ${c instanceof Error?c.message:"unknown error"}`)}let f=await a.arrayBuffer();await y(n,Buffer.from(f)),await T(n,493),await x(b(o)),await R(n,o)}),h(l`${p.successIcon()} Successfully downloaded ${p.path(o)}`)})}export{A as a,B as b,I as c,q as d};
@@ -4,4 +4,4 @@ import{g as h}from"./chunk-VKWPEFWQ.js";h();h();var kt=String.fromCharCode;var Y
4
4
  `),typeof e.retry=="number"&&Number.isInteger(e.retry)&&(t+=`retry: ${e.retry}
5
5
  `);let r=typeof e.data=="string"?e.data:"";for(let n of r.split(/\r\n|\r|\n/))t+=`data: ${n}
6
6
  `;return t+=`
7
- `,t}function de(e){return e.replace(/[\n\r]/g,"")}function yt(e){let t="";for(let r of e)t+=P(r);return t}function gt(e){let t={"Content-Type":"text/event-stream","Cache-Control":"private, no-cache, no-store, no-transform, must-revalidate, max-age=0","X-Accel-Buffering":"no"};wt(e)||(t.Connection="keep-alive"),ot(e,t)}function wt(e){return ue(e,":path")!==void 0&&ue(e,":method")!==void 0}var W=class{_h3Event;_transformStream=new TransformStream;_writer;_encoder=new TextEncoder;_writerIsClosed=!1;_paused=!1;_unsentData;_disposed=!1;_handled=!1;constructor(t,r={}){this._h3Event=t,this._writer=this._transformStream.writable.getWriter(),this._writer.closed.then(()=>{this._writerIsClosed=!0}),r.autoclose!==!1&&this._h3Event.node.req.on("close",()=>this.close())}async push(t){if(typeof t=="string"){await this._sendEvent({data:t});return}if(Array.isArray(t)){if(t.length===0)return;if(typeof t[0]=="string"){let r=[];for(let n of t)r.push({data:n});await this._sendEvents(r);return}await this._sendEvents(t);return}await this._sendEvent(t)}async _sendEvent(t){if(!this._writerIsClosed){if(this._paused&&!this._unsentData){this._unsentData=P(t);return}if(this._paused){this._unsentData+=P(t);return}await this._writer.write(this._encoder.encode(P(t))).catch()}}async _sendEvents(t){if(this._writerIsClosed)return;let r=yt(t);if(this._paused&&!this._unsentData){this._unsentData=r;return}if(this._paused){this._unsentData+=r;return}await this._writer.write(this._encoder.encode(r)).catch()}pause(){this._paused=!0}get isPaused(){return this._paused}async resume(){this._paused=!1,await this.flush()}async flush(){this._writerIsClosed||this._unsentData?.length&&(await this._writer.write(this._encoder.encode(this._unsentData)),this._unsentData=void 0)}async close(){if(!this._disposed){if(!this._writerIsClosed)try{await this._writer.close()}catch{}this._h3Event._handled&&this._handled&&!this._h3Event.node.res.closed&&this._h3Event.node.res.end(),this._disposed=!0}}onClosed(t){this._writer.closed.then(t)}async send(){gt(this._h3Event),x(this._h3Event,200),this._h3Event._handled=!0,this._handled=!0,await T(this._h3Event,this._transformStream.readable)}};function dr(e,t){return new W(e,t)}async function lr(e,t){if(e.method!=="GET"&&e.method!=="HEAD"){if(!t.fallthrough)throw p({statusMessage:"Method Not Allowed",statusCode:405});return!1}let r=I(k(C(e.path).pathname));if(/(^|[\\/])(\.\.|%2e%2e|%2e\.|\.%2e)($|[\\/])/i.test(r)){if(!t.fallthrough)throw p({statusCode:404});return!1}let n=_t(g(e,"accept-encoding"),t.encodings);n.length>1&&R(e,"vary","accept-encoding");let o=r,s,a=Rt(r,n,t.indexNames||["/index.html"]);for(let c of a){let f=await t.getMeta(c);if(f){s=f,o=c;break}}if(!s){if(!t.fallthrough)throw p({statusCode:404});return!1}if(s.etag&&!A(e,"etag")&&R(e,"etag",s.etag),s.etag&&g(e,"if-none-match")===s.etag)return x(e,304,"Not Modified"),m(e,"");if(s.mtime){let c=new Date(s.mtime),f=g(e,"if-modified-since");if(f&&new Date(f)>=c)return x(e,304,"Not Modified"),m(e,null);A(e,"last-modified")||R(e,"last-modified",c.toUTCString())}if(s.type&&!A(e,"content-type")&&R(e,"content-type",s.type),s.encoding&&!A(e,"content-encoding")&&R(e,"content-encoding",s.encoding),s.size!==void 0&&s.size>0&&!A(e,"content-length")&&R(e,"content-length",s.size),e.method==="HEAD")return m(e,null);let i=await t.getContents(o);return we(i)?T(e,i):m(e,i)}function _t(e,t){return!t||!e?[]:String(e||"").split(",").map(r=>t[r.trim()]).filter(Boolean)}function Rt(e,t,r){let n=[];for(let o of["",...r])for(let s of[...t,""])n.push(`${e}${o}${s}`);return n}var z=class{__is_event__=!0;node;web;context={};_method;_path;_headers;_requestBody;_handled=!1;_onBeforeResponseCalled;_onAfterResponseCalled;constructor(t,r){this.node={req:t,res:r}}get method(){return this._method||(this._method=(this.node.req.method||"GET").toUpperCase()),this._method}get path(){return this._path||this.node.req.url||"/"}get headers(){return this._headers||(this._headers=Et(this.node.req.headers)),this._headers}get handled(){return this._handled||this.node.res.writableEnded||this.node.res.headersSent}respondWith(t){return Promise.resolve(t).then(r=>_e(this,r))}toString(){return`[${this.method}] ${this.path}`}toJSON(){return this.toString()}get req(){return this.node.req}get res(){return this.node.res}};function bt(e,t){return new z(e,t)}function Et(e){let t=new Headers;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let o of n)t.append(r,o);else n&&t.set(r,n);return t}function Ct(e){if(typeof e=="function")return e.__is_handler__=!0,e;let t={onRequest:le(e.onRequest),onBeforeResponse:le(e.onBeforeResponse)},r=n=>At(n,e.handler,t);return r.__is_handler__=!0,r.__resolve__=e.handler.__resolve__,r.__websocket__=e.websocket,r}function le(e){return e?Array.isArray(e)?e:[e]:void 0}async function At(e,t,r){if(r.onRequest){for(let s of r.onRequest)if(await s(e),e.handled)return}let o={body:await t(e)};if(r.onBeforeResponse)for(let s of r.onBeforeResponse)await s(e,o);return o.body}var V=Ct;function St(e){return b(e,"__is_handler__")}function G(e,t,r){return e}function xt(e){let t,r,n=()=>r?Promise.resolve(r):(t||(t=Promise.resolve(e()).then(s=>{let a=s.default||s;if(typeof a!="function")throw new TypeError("Invalid lazy handler result. It should be a function:",a);return r={handler:G(s.default||s)},r})),t),o=V(s=>r?r.handler(s):n().then(a=>a.handler(s)));return o.__resolve__=n,o}var Ht=xt,hr=globalThis.Headers,pr=globalThis.Response;function mr(e={}){let t=[],r=Pt(t,e),n=Nt(t);r.__resolve__=n;let o=Tt(()=>qt(n,e)),s={use:(a,u,i)=>J(s,a,u,i),resolve:n,handler:r,stack:t,options:e,get websocket(){return o()}};return s}function J(e,t,r,n){if(Array.isArray(t))for(let o of t)J(e,o,r,n);else if(Array.isArray(r))for(let o of r)J(e,t,o,n);else typeof t=="string"?e.stack.push(F({...n,route:t,handler:r})):typeof t=="function"?e.stack.push(F({...r,handler:t})):e.stack.push(F({...t}));return e}function Pt(e,t){let r=t.debug?2:void 0;return V(async n=>{n.node.req.originalUrl=n.node.req.originalUrl||n.node.req.url||"/";let o=n.node.req.url||"/",s=Mt(n._path||o);n._path=s;let a=s!==o,u;t.onRequest&&await t.onRequest(n);for(let i of e){if(i.route.length>1){if(!s.startsWith(i.route))continue;u=s.slice(i.route.length)||"/"}else u=s;if(i.match&&!i.match(u,n))continue;n._path=u,n.node.req.url=a?i.route.length>1?o.slice(i.route.length)||"/":o:u;let c=await i.handler(n),f=c===void 0?void 0:await c;if(f!==void 0){let d={body:f};t.onBeforeResponse&&(n._onBeforeResponseCalled=!0,await t.onBeforeResponse(n,d)),await Ot(n,d.body,r),t.onAfterResponse&&(n._onAfterResponseCalled=!0,await t.onAfterResponse(n,d));return}if(n.handled){t.onAfterResponse&&(n._onAfterResponseCalled=!0,await t.onAfterResponse(n,void 0));return}}if(!n.handled)throw p({statusCode:404,statusMessage:`Cannot find any path matching ${n.path||"/"}.`});t.onAfterResponse&&(n._onAfterResponseCalled=!0,await t.onAfterResponse(n,void 0))})}function Nt(e){return async t=>{let r;for(let n of e){if(n.route==="/"&&!n.handler.__resolve__||!t.startsWith(n.route)||(r=t.slice(n.route.length)||"/",n.match&&!n.match(r,void 0)))continue;let o={route:n.route,handler:n.handler};if(o.handler.__resolve__){let s=await o.handler.__resolve__(r);if(!s)continue;o={...o,...s,route:Z(o.route||"/",s.route||"/")}}return o}}}function F(e){let t=e.handler;return t.handler&&(t=t.handler),e.lazy?t=Ht(t):St(t)||(t=G(t,void 0,e.route)),{route:k(e.route),match:e.match,handler:t}}function Ot(e,t,r){if(t===null)return ge(e);if(t){if(it(t))return _e(e,t);if(we(t))return T(e,t);if(t.buffer)return m(e,t);if(t.arrayBuffer&&typeof t.arrayBuffer=="function")return t.arrayBuffer().then(o=>m(e,Buffer.from(o),t.type));if(t instanceof Error)throw p(t);if(typeof t.end=="function")return!0}let n=typeof t;if(n==="string")return m(e,t,S.html);if(n==="object"||n==="boolean"||n==="number")return m(e,JSON.stringify(t,void 0,r),S.json);if(n==="bigint")return m(e,t.toString(),S.json);throw p({statusCode:500,statusMessage:`[h3] Cannot send ${n} as response.`})}function Tt(e){let t;return()=>(t||(t=e()),t)}function Mt(e){let t=e.indexOf("?"),r=t===-1?e:e.slice(0,t),n=t===-1?"":e.slice(t);return(r.includes("%25")?L(r.replace(/%25/g,"%2525")):L(r))+n}function qt(e,t){return{...t.websocket,async resolve(r){let n=r.request?.url||r.url||"/",{pathname:o}=typeof n=="string"?C(n):n;return(await e(o))?.handler?.__websocket__||{}}}}var Lt=["connect","delete","get","head","options","post","put","trace","patch"];function yr(e={}){let t=re({}),r={},n,o={},s=(i,c,f)=>{let d=r[i];if(d||(r[i]=d={path:i,handlers:{}},t.insert(i,d)),Array.isArray(f))for(let l of f)s(i,c,l);else d.handlers[f]=G(c);return o};o.use=o.add=(i,c,f)=>s(i,c,f||"all");for(let i of Lt)o[i]=(c,f)=>o.add(c,f,i);let a=(i="/",c="get")=>{let f=i.indexOf("?");f!==-1&&(i=i.slice(0,Math.max(0,f)));let d=t.lookup(i);if(!d||!d.handlers)return{error:p({statusCode:404,name:"Not Found",statusMessage:`Cannot find any route matching ${i||"/"}.`})};let l=d.handlers[c]||d.handlers.all;if(!l){n||(n=oe(t));let M=n.matchAll(i).reverse();for(let H of M){if(H.handlers[c]){l=H.handlers[c],d.handlers[c]=d.handlers[c]||l;break}if(H.handlers.all){l=H.handlers.all,d.handlers.all=d.handlers.all||l;break}}}return l?{matched:d,handler:l}:{error:p({statusCode:405,name:"Method Not Allowed",statusMessage:`Method ${c} is not allowed on this route.`})}},u=e.preemptive||e.preemtive;return o.handler=V(i=>{let c=a(i.path,i.method.toLowerCase());if("error"in c){if(u)throw c.error;return}i.context.matchedRoute=c.matched;let f=c.matched.params||{};return i.context.params=f,Promise.resolve(c.handler(i)).then(d=>d===void 0&&u?null:d)}),o.handler.__resolve__=async i=>{i=I(i);let c=a(i);if("error"in c)return;let f={route:c.matched.path,handler:c.handler};if(c.handler.__resolve__){let d=await c.handler.__resolve__(i);if(!d)return;f={...f,...d}}return f},o}function gr(e){return async function(r,n){let o=bt(r,n);try{await e.handler(o)}catch(s){let a=p(s);if(Q(s)||(a.unhandled=!0),x(o,a.statusCode,a.statusMessage),e.options.onError&&await e.options.onError(a,o),o.handled)return;(a.unhandled||a.fatal)&&console.error("[h3]",a.fatal?"[fatal]":"[unhandled]",a),e.options.onBeforeResponse&&!o._onBeforeResponseCalled&&await e.options.onBeforeResponse(o,{body:a}),await Ye(o,a,!!e.options.debug),e.options.onAfterResponse&&!o._onAfterResponseCalled&&await e.options.onAfterResponse(o,{body:a})}}}export{p as a,Ye as b,rr as c,nr as d,he as e,g as f,or as g,sr as h,ar as i,ir as j,m as k,x as l,cr as m,R as n,ur as o,fr as p,dr as q,lr as r,Ct as s,xt as t,mr as u,yr as v,gr as w};
7
+ `,t}function de(e){return e.replace(/[\n\r]/g,"")}function yt(e){let t="";for(let r of e)t+=P(r);return t}function gt(e){let t={"Content-Type":"text/event-stream","Cache-Control":"private, no-cache, no-store, no-transform, must-revalidate, max-age=0","X-Accel-Buffering":"no"};wt(e)||(t.Connection="keep-alive"),ot(e,t)}function wt(e){return ue(e,":path")!==void 0&&ue(e,":method")!==void 0}var W=class{_h3Event;_transformStream=new TransformStream;_writer;_encoder=new TextEncoder;_writerIsClosed=!1;_paused=!1;_unsentData;_disposed=!1;_handled=!1;constructor(t,r={}){this._h3Event=t,this._writer=this._transformStream.writable.getWriter(),this._writer.closed.then(()=>{this._writerIsClosed=!0}),r.autoclose!==!1&&this._h3Event.node.req.on("close",()=>this.close())}async push(t){if(typeof t=="string"){await this._sendEvent({data:t});return}if(Array.isArray(t)){if(t.length===0)return;if(typeof t[0]=="string"){let r=[];for(let n of t)r.push({data:n});await this._sendEvents(r);return}await this._sendEvents(t);return}await this._sendEvent(t)}async _sendEvent(t){if(!this._writerIsClosed){if(this._paused&&!this._unsentData){this._unsentData=P(t);return}if(this._paused){this._unsentData+=P(t);return}await this._writer.write(this._encoder.encode(P(t))).catch()}}async _sendEvents(t){if(this._writerIsClosed)return;let r=yt(t);if(this._paused&&!this._unsentData){this._unsentData=r;return}if(this._paused){this._unsentData+=r;return}await this._writer.write(this._encoder.encode(r)).catch()}pause(){this._paused=!0}get isPaused(){return this._paused}async resume(){this._paused=!1,await this.flush()}async flush(){this._writerIsClosed||this._unsentData?.length&&(await this._writer.write(this._encoder.encode(this._unsentData)),this._unsentData=void 0)}async close(){if(!this._disposed){if(!this._writerIsClosed)try{await this._writer.close()}catch{}this._h3Event._handled&&this._handled&&!this._h3Event.node.res.closed&&this._h3Event.node.res.end(),this._disposed=!0}}onClosed(t){this._writer.closed.then(t)}async send(){gt(this._h3Event),x(this._h3Event,200),this._h3Event._handled=!0,this._handled=!0,await T(this._h3Event,this._transformStream.readable)}};function dr(e,t){return new W(e,t)}async function lr(e,t){if(e.method!=="GET"&&e.method!=="HEAD"){if(!t.fallthrough)throw p({statusMessage:"Method Not Allowed",statusCode:405});return!1}let r=I(k(C(e.path).pathname));if(/(^|[\\/])(\.\.|%2e%2e|%2e\.|\.%2e)($|[\\/])/i.test(r)){if(!t.fallthrough)throw p({statusCode:404});return!1}let n=_t(g(e,"accept-encoding"),t.encodings);n.length>1&&R(e,"vary","accept-encoding");let o=r,s,a=Rt(r,n,t.indexNames||["/index.html"]);for(let c of a){let f=await t.getMeta(c);if(f){s=f,o=c;break}}if(!s){if(!t.fallthrough)throw p({statusCode:404});return!1}if(s.etag&&!A(e,"etag")&&R(e,"etag",s.etag),s.etag&&g(e,"if-none-match")===s.etag)return x(e,304,"Not Modified"),m(e,"");if(s.mtime){let c=new Date(s.mtime),f=g(e,"if-modified-since");if(f&&new Date(f)>=c)return x(e,304,"Not Modified"),m(e,null);A(e,"last-modified")||R(e,"last-modified",c.toUTCString())}if(s.type&&!A(e,"content-type")&&R(e,"content-type",s.type),s.encoding&&!A(e,"content-encoding")&&R(e,"content-encoding",s.encoding),s.size!==void 0&&s.size>0&&!A(e,"content-length")&&R(e,"content-length",s.size),e.method==="HEAD")return m(e,null);let i=await t.getContents(o);return we(i)?T(e,i):m(e,i)}function _t(e,t){return!t||!e?[]:String(e||"").split(",").map(r=>t[r.trim()]).filter(Boolean)}function Rt(e,t,r){let n=[];for(let o of["",...r])for(let s of[...t,""])n.push(`${e}${o}${s}`);return n}var z=class{__is_event__=!0;node;web;context={};_method;_path;_headers;_requestBody;_handled=!1;_onBeforeResponseCalled;_onAfterResponseCalled;constructor(t,r){this.node={req:t,res:r}}get method(){return this._method||(this._method=(this.node.req.method||"GET").toUpperCase()),this._method}get path(){return this._path||this.node.req.url||"/"}get headers(){return this._headers||(this._headers=Et(this.node.req.headers)),this._headers}get handled(){return this._handled||this.node.res.writableEnded||this.node.res.headersSent}respondWith(t){return Promise.resolve(t).then(r=>_e(this,r))}toString(){return`[${this.method}] ${this.path}`}toJSON(){return this.toString()}get req(){return this.node.req}get res(){return this.node.res}};function bt(e,t){return new z(e,t)}function Et(e){let t=new Headers;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let o of n)t.append(r,o);else n&&t.set(r,n);return t}function Ct(e){if(typeof e=="function")return e.__is_handler__=!0,e;let t={onRequest:le(e.onRequest),onBeforeResponse:le(e.onBeforeResponse)},r=n=>At(n,e.handler,t);return r.__is_handler__=!0,r.__resolve__=e.handler.__resolve__,r.__websocket__=e.websocket,r}function le(e){return e?Array.isArray(e)?e:[e]:void 0}async function At(e,t,r){if(r.onRequest){for(let s of r.onRequest)if(await s(e),e.handled)return}let o={body:await t(e)};if(r.onBeforeResponse)for(let s of r.onBeforeResponse)await s(e,o);return o.body}var V=Ct;function St(e){return b(e,"__is_handler__")}function G(e,t,r){return e}function xt(e){let t,r,n=()=>r?Promise.resolve(r):(t||(t=Promise.resolve(e()).then(s=>{let a=s.default||s;if(typeof a!="function")throw new TypeError("Invalid lazy handler result. It should be a function:",a);return r={handler:G(s.default||s)},r})),t),o=V(s=>r?r.handler(s):n().then(a=>a.handler(s)));return o.__resolve__=n,o}var Ht=xt,hr=globalThis.Headers,pr=globalThis.Response;function mr(e={}){let t=[],r=Pt(t,e),n=Nt(t);r.__resolve__=n;let o=Tt(()=>qt(n,e)),s={use:(a,u,i)=>J(s,a,u,i),resolve:n,handler:r,stack:t,options:e,get websocket(){return o()}};return s}function J(e,t,r,n){if(Array.isArray(t))for(let o of t)J(e,o,r,n);else if(Array.isArray(r))for(let o of r)J(e,t,o,n);else typeof t=="string"?e.stack.push(F({...n,route:t,handler:r})):typeof t=="function"?e.stack.push(F({...r,handler:t})):e.stack.push(F({...t}));return e}function Pt(e,t){let r=t.debug?2:void 0;return V(async n=>{n.node.req.originalUrl=n.node.req.originalUrl||n.node.req.url||"/";let o=n.node.req.url||"/",s=Mt(n._path||o);n._path=s;let a=s!==o,u;t.onRequest&&await t.onRequest(n);for(let i of e){if(i.route.length>1){if(!s.startsWith(i.route))continue;u=s.slice(i.route.length)||"/"}else u=s;if(i.match&&!i.match(u,n))continue;n._path=u,n.node.req.url=a?i.route.length>1?o.slice(i.route.length)||"/":o:u;let c=await i.handler(n),f=c===void 0?void 0:await c;if(f!==void 0){let d={body:f};t.onBeforeResponse&&(n._onBeforeResponseCalled=!0,await t.onBeforeResponse(n,d)),await Ot(n,d.body,r),t.onAfterResponse&&(n._onAfterResponseCalled=!0,await t.onAfterResponse(n,d));return}if(n.handled){t.onAfterResponse&&(n._onAfterResponseCalled=!0,await t.onAfterResponse(n,void 0));return}}if(!n.handled)throw p({statusCode:404,statusMessage:`Cannot find any path matching ${n.path||"/"}.`});t.onAfterResponse&&(n._onAfterResponseCalled=!0,await t.onAfterResponse(n,void 0))})}function Nt(e){return async t=>{let r;for(let n of e){if(n.route==="/"&&!n.handler.__resolve__||!t.startsWith(n.route)||(r=t.slice(n.route.length)||"/",n.match&&!n.match(r,void 0)))continue;let o={route:n.route,handler:n.handler};if(o.handler.__resolve__){let s=await o.handler.__resolve__(r);if(!s)continue;o={...o,...s,route:Z(o.route||"/",s.route||"/")}}return o}}}function F(e){let t=e.handler;return t.handler&&(t=t.handler),e.lazy?t=Ht(t):St(t)||(t=G(t,void 0,e.route)),{route:k(e.route),match:e.match,handler:t}}function Ot(e,t,r){if(t===null)return ge(e);if(t){if(it(t))return _e(e,t);if(we(t))return T(e,t);if(t.buffer)return m(e,t);if(t.arrayBuffer&&typeof t.arrayBuffer=="function")return t.arrayBuffer().then(o=>m(e,Buffer.from(o),t.type));if(t instanceof Error)throw p(t);if(typeof t.end=="function")return!0}let n=typeof t;if(n==="string")return m(e,t,S.html);if(n==="object"||n==="boolean"||n==="number")return m(e,JSON.stringify(t,void 0,r),S.json);if(n==="bigint")return m(e,t.toString(),S.json);throw p({statusCode:500,statusMessage:`[h3] Cannot send ${n} as response.`})}function Tt(e){let t;return()=>(t||(t=e()),t)}function Mt(e){let t=e.indexOf("?"),r=t===-1?e:e.slice(0,t),n=t===-1?"":e.slice(t);return(r.includes("%25")?L(r.replace(/%25/g,"%2525")):L(r))+n}function qt(e,t){return{...t.websocket,async resolve(r){let n=r.request?.url||r.url||"/",{pathname:o}=typeof n=="string"?C(n):n;return(await e(o))?.handler?.__websocket__||{}}}}var Lt=["connect","delete","get","head","options","post","put","trace","patch"];function yr(e={}){let t=re({}),r={},n,o={},s=(i,c,f)=>{let d=r[i];if(d||(r[i]=d={path:i,handlers:{}},t.insert(i,d)),Array.isArray(f))for(let l of f)s(i,c,l);else d.handlers[f]=G(c);return o};o.use=o.add=(i,c,f)=>s(i,c,f||"all");for(let i of Lt)o[i]=(c,f)=>o.add(c,f,i);let a=(i="/",c="get")=>{let f=i.indexOf("?");f!==-1&&(i=i.slice(0,Math.max(0,f)));let d=t.lookup(i);if(!d||!d.handlers)return{error:p({statusCode:404,name:"Not Found",statusMessage:`Cannot find any route matching ${i||"/"}.`})};let l=d.handlers[c]||d.handlers.all;if(!l){n||(n=oe(t));let M=n.matchAll(i).reverse();for(let H of M){if(H.handlers[c]){l=H.handlers[c],d.handlers[c]=d.handlers[c]||l;break}if(H.handlers.all){l=H.handlers.all,d.handlers.all=d.handlers.all||l;break}}}return l?{matched:d,handler:l}:{error:p({statusCode:405,name:"Method Not Allowed",statusMessage:`Method ${c} is not allowed on this route.`})}},u=e.preemptive||e.preemtive;return o.handler=V(i=>{let c=a(i.path,i.method.toLowerCase());if("error"in c){if(u)throw c.error;return}i.context.matchedRoute=c.matched;let f=c.matched.params||{};return i.context.params=f,Promise.resolve(c.handler(i)).then(d=>d===void 0&&u?null:d)}),o.handler.__resolve__=async i=>{i=I(i);let c=a(i);if("error"in c)return;let f={route:c.matched.path,handler:c.handler};if(c.handler.__resolve__){let d=await c.handler.__resolve__(i);if(!d)return;f={...f,...d}}return f},o}function gr(e){return async function(r,n){let o=bt(r,n);try{await e.handler(o)}catch(s){let a=p(s);if(Q(s)||(a.unhandled=!0),x(o,a.statusCode,a.statusMessage),e.options.onError&&await e.options.onError(a,o),o.handled)return;(a.unhandled||a.fatal)&&console.error("[h3]",a.fatal?"[fatal]":"[unhandled]",a),e.options.onBeforeResponse&&!o._onBeforeResponseCalled&&await e.options.onBeforeResponse(o,{body:a}),await Ye(o,a,!!e.options.debug),e.options.onAfterResponse&&!o._onAfterResponseCalled&&await e.options.onAfterResponse(o,{body:a})}}}export{p as a,Ye as b,Q as c,rr as d,nr as e,he as f,g,or as h,sr as i,ar as j,ir as k,m as l,x as m,cr as n,R as o,ur as p,fr as q,dr as r,lr as s,Ct as t,xt as u,mr as v,yr as w,gr as x};
@@ -1 +1 @@
1
- import{b as s}from"./chunk-ZJOX5HW4.js";import{g as o}from"./chunk-3KM5ZOW2.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends s{static description="Clear the CLI cache, used to store some API responses and handle notifications status";static hidden=!0;async run(){await o()}};export{t as a};
1
+ import{b as s}from"./chunk-XEZPN5TR.js";import{g as o}from"./chunk-DMOLPSXF.js";import{g as e}from"./chunk-VKWPEFWQ.js";e();var t=class extends s{static description="Clear the CLI cache, used to store some API responses and handle notifications status";static hidden=!0;async run(){await o()}};export{t as a};
@@ -0,0 +1,7 @@
1
+ import{b as c}from"./chunk-4FWPOGPQ.js";import{B as a,f,k as y,m as b,u as p}from"./chunk-A2NSORBM.js";import{b as w}from"./chunk-AE3IQG7S.js";import{e as k,g as d}from"./chunk-VKWPEFWQ.js";d();var v=k(w(),1),L=["high","medium","low","none"],B={blocking:v.Flags.custom({description:"The minimum check severity that causes a non-zero exit code when the check has active findings: high, medium, or low. Suppressed and superseded findings never count. Defaults to none, which never fails on findings.",options:L,default:"none",env:"SHOPIFY_FLAG_APP_SECURITY_BLOCKING"})()};d();function U(e,n){return n==="none"?0:e.filter(t=>f[t.severity]>=f[n]&&t.findings.some(i=>i.disposition==="active")).length}async function V({includeDirs:e,excludePatterns:n,noGitIgnore:t,...i}){let s=Date.now();return{...await b(i,{includeDirs:e,excludePatterns:n,noGitIgnore:t}),elapsedMilliseconds:Date.now()-s}}function K({includeDirs:e,excludePatterns:n,noGitIgnore:t,...i}){return y(i,{includeDirs:e,excludePatterns:n,noGitIgnore:t})}d();var P={high:"High",medium:"Medium",low:"Low"},_={"false-positive":"false positive","accepted-risk":"accepted risk"};function Q(e,n){let t=e.filter(r=>m(r).length>0);if(t.length===0)return;let i=e.reduce((r,h)=>r+m(h).length,0),s=e.reduce((r,h)=>r+p(h).length,0),o=new Set(e.map(r=>r.id)),u=n.filter(r=>r.matched_finding_count>0&&o.has(r.entry.check));return{headline:`${c(i,"finding")} suppressed.`,counts:S(s,i),sections:[...t.map(I),...u.length>0?[x(u)]:[]]}}function X(e,n){let t=e.filter(u=>u.status==="stale"),i=e.filter(u=>u.status==="ambiguous"),s=e.filter(u=>u.status==="not-evaluated"),o=t.length+i.length;if(o+s.length!==0)return{headline:R(o,s.length),needsChange:o>0,sections:[...t.length>0?F(t,n):[],...i.length>0?N(i):[],...s.length>0?[{body:{subdued:Y(s)}}]:[]]}}function m(e){return e.findings.flatMap(n=>n.disposition==="suppressed"&&n.suppressed_by?[{finding:n,suppression:n.suppressed_by}]:[])}function S(e,n){return`${e} active \xB7 ${n} suppressed`}function I(e){let n=m(e),t=S(p(e).length,n.length);return{title:`${P[e.severity]} \xB7 ${e.id} \xB7 ${t}`,body:{list:{items:n.map(A)}}}}function A({finding:e,suppression:n}){return[{filePath:$(e.location)},{subdued:`\xB7 ${e.source} \xB7 ${T(n)}`},`
2
+ ${n.reason}`]}function T(e){return e.origin==="agent"?"suppressed by the agent":`${_[e.kind]} \xB7 ${g(e.entry_index)}`}function g(e){return`suppressions[${e}]`}function x(e){return{title:"Entries in shopify.app-security.json",body:{list:{items:e.map(({index:n,entry:t,matched_finding_count:i})=>[{subdued:`${g(n)}:`},`${t.source} ${t.check} in`,{filePath:t.path},{subdued:`\xB7 matches ${c(i,"finding")}`}])}}}}function R(e,n){let t=a;return e===0?`${l(n)} in ${t} not evaluated.`:`${l(e)} in ${t} ${e===1?"suppresses":"suppress"} nothing.`}function F(e,n){return[{title:`Stale entries in ${a}`,body:{list:{items:e.map(t=>C(t,n))}}},{body:e.length===1?"This entry matches no finding. Remove it, or update it to match the code.":"These entries match no finding. Remove each entry, or update it to match the code."}]}function N(e){return[{title:`Ambiguous entries in ${a}`,body:{list:{items:e.map(G)}}},{body:e.length===1?"This entry suppresses nothing. Give it a more specific code that matches one finding.":"These entries suppress nothing. Give each entry a more specific code that matches one finding."}]}function E({index:e,entry:n}){return[{subdued:`${g(e)}:`},`${n.source} ${n.check} in`,{filePath:n.path}]}function C(e,n){return[...E(e),{subdued:`\xB7 ${_[e.entry.kind]}`},`
3
+ ${e.entry.reason}`,...e.likely_path===void 0?[]:[`
4
+ Maybe moved to`,{filePath:e.likely_path}],...M(e,n)]}function M({index:e,likely_finding:n},{review:t,reattach:i}){if(n===void 0)return[];let s={filePath:$({file:n.file,line:n.line})},o=i?.findingNumbers.get(e);return i&&o!==void 0?[`
5
+ Likely now finding ${o}, at`,s,{char:"."},"To re-attach the entry to it, with its kind and reason, run",{command:i.command(o)}]:[`
6
+ Likely now the finding at`,s,{char:"."},"To re-attach the entry to it, with its kind and reason, run",{command:t},{char:","},"and pass the finding's number to --suppress."]}function G(e){let n=e.candidate_locations??[];return[...E(e),{subdued:`\xB7 matches ${c(n.length,"finding")}`},`
7
+ At`,...n.flatMap((t,i)=>[...i>0?[{char:","}]:[],{filePath:$(t)}])]}function Y(e){let n=e.filter(s=>s.not_evaluated_reason==="path-not-scanned").length,t=e.length-n;return`Not evaluated: ${[t>0?`${l(t)} (${t===1?"no executed result for its check":"no executed results for their checks"})`:void 0,n>0?`${l(n)} (this run didn't scan ${n===1?"its file":"their files"})`:void 0].filter(s=>s!==void 0).join(", ")}.`}function l(e){return`${e} ${e===1?"entry":"entries"}`}function $(e){return e.line===void 0?e.file:`${e.file}:${e.line}`}export{B as a,U as b,V as c,K as d,_ as e,Q as f,X as g};