@shopify/cli 4.0.0 → 4.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 (234) hide show
  1. package/README.md +2 -2
  2. package/dist/analytics-5TEIW43T.js +1 -0
  3. package/dist/analytics-GG7CYCGL.js +1 -0
  4. package/dist/bootstrap.js +1 -1
  5. package/dist/{chunk-MBAFWQSZ.js → chunk-2AJ5FI2K.js} +1 -1
  6. package/dist/{chunk-SRCQVUMC.js → chunk-2GK56X53.js} +1 -1
  7. package/dist/{chunk-3F6NZK7S.js → chunk-3D4JXJPS.js} +1 -1
  8. package/dist/{chunk-YI232QLS.js → chunk-3NBK56IK.js} +1 -1
  9. package/dist/{chunk-HUZUORYM.js → chunk-4DCQNGUV.js} +1 -1
  10. package/dist/{chunk-6TZAAS5H.js → chunk-4IC626OL.js} +1 -1
  11. package/dist/{chunk-SBEZBZM7.js → chunk-54CAKCYR.js} +2 -2
  12. package/dist/{chunk-VWYM4OWK.js → chunk-5UHQVR2Z.js} +1 -1
  13. package/dist/{chunk-D6JARNEH.js → chunk-5WVAHE5E.js} +1 -1
  14. package/dist/{chunk-Y5JKV2AI.js → chunk-67MH4AXG.js} +1 -1
  15. package/dist/{chunk-3DQIVE24.js → chunk-6CYMJ76C.js} +1 -1
  16. package/dist/chunk-6G6TMKXF.js +28 -0
  17. package/dist/{chunk-MQNYGGAM.js → chunk-6ITDI2SD.js} +1 -1
  18. package/dist/{chunk-WZBSLU4Q.js → chunk-6RE2SNCU.js} +1 -1
  19. package/dist/{chunk-KL5Z3T6L.js → chunk-6SF3ZETE.js} +1 -1
  20. package/dist/chunk-6WL4GA2M.js +15 -0
  21. package/dist/{chunk-DU4WR4OP.js → chunk-76R52ODR.js} +1 -1
  22. package/dist/{chunk-DJQVNH7P.js → chunk-7ESSIN27.js} +1 -1
  23. package/dist/{chunk-UGDBJTLP.js → chunk-7NH7CHVI.js} +1 -1
  24. package/dist/{chunk-ELYP4KFP.js → chunk-7QIOUDCX.js} +1 -1
  25. package/dist/{chunk-GD7FWXJ5.js → chunk-7ZT57XT7.js} +1 -1
  26. package/dist/{chunk-RF2DPBA6.js → chunk-AGNMOFJS.js} +1 -1
  27. package/dist/{chunk-WXVZJJOR.js → chunk-BS3BKORT.js} +1 -1
  28. package/dist/{chunk-K5YV6UVF.js → chunk-C2IK2HY3.js} +1 -1
  29. package/dist/{chunk-22PCRFG4.js → chunk-C7BTJ32Z.js} +1 -1
  30. package/dist/{chunk-RFG5RMPL.js → chunk-CBXSPL4W.js} +1 -1
  31. package/dist/{chunk-B2IVY4V5.js → chunk-CEIQFLCN.js} +1 -1
  32. package/dist/{chunk-XBXMPFXM.js → chunk-DCPBRWVC.js} +1 -1
  33. package/dist/{chunk-26D72ZNV.js → chunk-DN2IE3VY.js} +1 -1
  34. package/dist/{chunk-Q7ING5F5.js → chunk-DRFGABEB.js} +1 -1
  35. package/dist/{chunk-DJONKJSZ.js → chunk-E3EMHAJB.js} +1 -1
  36. package/dist/{chunk-TQYMC7TH.js → chunk-EKXY5COY.js} +1 -1
  37. package/dist/{chunk-4G7J6HIV.js → chunk-EQU4MUQJ.js} +1 -1
  38. package/dist/chunk-F2QU6WWX.js +1 -0
  39. package/dist/{chunk-AIV5RI3X.js → chunk-FKMC5OFF.js} +1 -1
  40. package/dist/{chunk-XLELNRFF.js → chunk-FQWB2F75.js} +1 -1
  41. package/dist/{chunk-JHPRFW5B.js → chunk-FYFNUDOC.js} +1 -1
  42. package/dist/chunk-G4BPGWJC.js +1 -0
  43. package/dist/{chunk-KNVM7N3U.js → chunk-GVQIPEZT.js} +1 -1
  44. package/dist/{chunk-66RJ5T7A.js → chunk-GZS44BUW.js} +61 -61
  45. package/dist/{chunk-J3KVONB3.js → chunk-HIBX234C.js} +1 -1
  46. package/dist/{chunk-OHY4ZL3U.js → chunk-HRUGYZZ4.js} +1 -1
  47. package/dist/{chunk-ZV6NCNI4.js → chunk-HUIJMGVJ.js} +1 -1
  48. package/dist/{chunk-ALKTLKQ6.js → chunk-IZ3C5J7G.js} +1 -1
  49. package/dist/{chunk-RVNMVBPM.js → chunk-JAO53IH2.js} +1 -1
  50. package/dist/chunk-JCL2RRU6.js +1 -0
  51. package/dist/{chunk-74HYYXXE.js → chunk-JQJBBXMX.js} +1 -1
  52. package/dist/{chunk-HSK7YMRE.js → chunk-JXW374CL.js} +1 -1
  53. package/dist/{chunk-KWJ562F2.js → chunk-K6CTUBFC.js} +1 -1
  54. package/dist/{chunk-A74GETYC.js → chunk-KHSYW7I4.js} +1 -1
  55. package/dist/{chunk-LX3ZOW52.js → chunk-KHTV6PBV.js} +1 -1
  56. package/dist/{chunk-TFSBQ4RY.js → chunk-KKTW6ZCA.js} +1 -1
  57. package/dist/{chunk-JGXWQULI.js → chunk-KN3WTTHZ.js} +1 -1
  58. package/dist/{chunk-R466TU3N.js → chunk-KR6QDE7D.js} +1 -1
  59. package/dist/{chunk-GFJ7UV74.js → chunk-KZOBF55B.js} +1 -1
  60. package/dist/{chunk-LAZJ47DZ.js → chunk-L2MGAEV3.js} +2 -2
  61. package/dist/{chunk-JVIKCGDY.js → chunk-M2D7USAX.js} +1 -1
  62. package/dist/{chunk-INEU4XKS.js → chunk-M2ZHFKPN.js} +1 -1
  63. package/dist/{chunk-LXFJDCNG.js → chunk-M3RYUB22.js} +1 -1
  64. package/dist/{chunk-JPGO36XP.js → chunk-M56NDIMD.js} +1 -1
  65. package/dist/{chunk-GNPS5SBU.js → chunk-MCVRONUY.js} +1 -1
  66. package/dist/{chunk-4HHXSMD7.js → chunk-MHWV5RQV.js} +1 -1
  67. package/dist/{chunk-LW7U753G.js → chunk-MWGBTOO3.js} +1 -1
  68. package/dist/{chunk-JLBH7RCF.js → chunk-MWY3A7O3.js} +1 -1
  69. package/dist/{chunk-GFEAKSGV.js → chunk-N5PQPIBF.js} +40 -40
  70. package/dist/{chunk-2APPXD5Z.js → chunk-NMBBTTIH.js} +1 -1
  71. package/dist/{chunk-VY6SNDKW.js → chunk-NPEVESCV.js} +1 -1
  72. package/dist/{chunk-V2CNCPIE.js → chunk-OBEWZXOQ.js} +1 -1
  73. package/dist/{chunk-6BMMB2UO.js → chunk-OTY24J2W.js} +1 -1
  74. package/dist/{chunk-2VQJQ36C.js → chunk-OY3PNHPZ.js} +1 -1
  75. package/dist/{chunk-VS3T5YOG.js → chunk-PAP22IQO.js} +2 -2
  76. package/dist/{chunk-LALIKZPS.js → chunk-PYVAWAUO.js} +1 -1
  77. package/dist/{chunk-LNHLDRC5.js → chunk-Q33IBIVJ.js} +1 -1
  78. package/dist/chunk-Q4T2T2QE.js +15 -0
  79. package/dist/{chunk-NRAFVIU3.js → chunk-QA23HIH4.js} +1 -1
  80. package/dist/{chunk-52GC6XUT.js → chunk-QBSKKQBN.js} +1 -1
  81. package/dist/{chunk-KGXQS7LS.js → chunk-S6EJHWJL.js} +1 -1
  82. package/dist/{chunk-P5VVOLGV.js → chunk-SIMFNECG.js} +1 -1
  83. package/dist/{chunk-YMWHHINU.js → chunk-SXTMSGUE.js} +1 -1
  84. package/dist/{chunk-IOLVEXM6.js → chunk-T542UQBY.js} +1 -1
  85. package/dist/{chunk-QRRNOVJ3.js → chunk-TQ6HYDVC.js} +1 -1
  86. package/dist/chunk-TYZXGSHO.js +3 -0
  87. package/dist/{chunk-IIIVWD4R.js → chunk-UHJYPEY2.js} +1 -1
  88. package/dist/{chunk-KBQ4LGFB.js → chunk-UJVH7FZS.js} +1 -1
  89. package/dist/{chunk-6B53BWJW.js → chunk-UJXUSRQK.js} +1 -1
  90. package/dist/{chunk-OXPWCC7I.js → chunk-ULFWK45W.js} +1 -1
  91. package/dist/chunk-ULQG3XQS.js +1 -0
  92. package/dist/{chunk-RM5SJJN6.js → chunk-URZPVSJZ.js} +1 -1
  93. package/dist/{chunk-UGXYQ23Y.js → chunk-UXVZ2P63.js} +1 -1
  94. package/dist/{chunk-72F3YBNA.js → chunk-UYXEA3Y6.js} +1 -1
  95. package/dist/{chunk-OUOYKNMY.js → chunk-VICYNG2W.js} +1 -1
  96. package/dist/{chunk-IASVAERO.js → chunk-WSDN25F5.js} +1 -1
  97. package/dist/{chunk-DFMQWJQ3.js → chunk-XITQULK4.js} +1 -1
  98. package/dist/{chunk-B2EHO7ZC.js → chunk-XONFGLJQ.js} +4 -4
  99. package/dist/{chunk-YZDDTYTU.js → chunk-XOTA6JTZ.js} +3 -3
  100. package/dist/{chunk-323UTVMM.js → chunk-XR6GMMEU.js} +1 -1
  101. package/dist/{chunk-XNO6DZYP.js → chunk-XULPJ6UG.js} +1 -1
  102. package/dist/{chunk-3LVGAQB4.js → chunk-XXVEHDVO.js} +1 -1
  103. package/dist/chunk-Y7JGYGV7.js +1 -0
  104. package/dist/chunk-YTNDFQJT.js +3 -0
  105. package/dist/{chunk-N5YIPQ6J.js → chunk-ZBRRJDGW.js} +1 -1
  106. package/dist/{chunk-ELVFJ7BR.js → chunk-ZGK3LGCH.js} +1 -1
  107. package/dist/{chunk-GOJ2QHSR.js → chunk-ZSBA6VIC.js} +1 -1
  108. package/dist/cli/commands/app/app-logs/sources.js +1 -1
  109. package/dist/cli/commands/app/build.js +1 -1
  110. package/dist/cli/commands/app/bulk/cancel.js +1 -1
  111. package/dist/cli/commands/app/bulk/execute.js +1 -1
  112. package/dist/cli/commands/app/bulk/status.js +1 -1
  113. package/dist/cli/commands/app/config/link.js +1 -1
  114. package/dist/cli/commands/app/config/pull.js +1 -1
  115. package/dist/cli/commands/app/config/use.js +1 -1
  116. package/dist/cli/commands/app/config/validate.js +1 -1
  117. package/dist/cli/commands/app/demo/watcher.js +1 -1
  118. package/dist/cli/commands/app/deploy.js +1 -1
  119. package/dist/cli/commands/app/dev/clean.js +1 -1
  120. package/dist/cli/commands/app/dev.js +1 -1
  121. package/dist/cli/commands/app/env/pull.js +1 -1
  122. package/dist/cli/commands/app/env/show.js +1 -1
  123. package/dist/cli/commands/app/execute.js +1 -1
  124. package/dist/cli/commands/app/function/build.js +1 -1
  125. package/dist/cli/commands/app/function/info.js +1 -1
  126. package/dist/cli/commands/app/function/replay.js +1 -1
  127. package/dist/cli/commands/app/function/run.js +1 -1
  128. package/dist/cli/commands/app/function/schema.js +1 -1
  129. package/dist/cli/commands/app/function/typegen.js +1 -1
  130. package/dist/cli/commands/app/generate/extension.js +1 -1
  131. package/dist/cli/commands/app/import-custom-data-definitions.js +1 -1
  132. package/dist/cli/commands/app/import-extensions.js +1 -1
  133. package/dist/cli/commands/app/info.js +1 -1
  134. package/dist/cli/commands/app/init.js +9 -9
  135. package/dist/cli/commands/app/logs.js +1 -1
  136. package/dist/cli/commands/app/release.js +1 -1
  137. package/dist/cli/commands/app/versions/list.js +1 -1
  138. package/dist/cli/commands/app/webhook/trigger.js +1 -1
  139. package/dist/cli/commands/auth/login.js +1 -1
  140. package/dist/cli/commands/auth/logout.js +1 -1
  141. package/dist/cli/commands/cache/clear.js +1 -1
  142. package/dist/cli/commands/config/autoupgrade/off.js +1 -1
  143. package/dist/cli/commands/config/autoupgrade/on.js +1 -1
  144. package/dist/cli/commands/config/autoupgrade/status.js +1 -1
  145. package/dist/cli/commands/debug/command-flags.js +1 -1
  146. package/dist/cli/commands/docs/generate.d.ts +0 -8
  147. package/dist/cli/commands/docs/generate.js +1 -1
  148. package/dist/cli/commands/doctor-release/doctor-release.js +1 -1
  149. package/dist/cli/commands/doctor-release/theme/index.js +1 -1
  150. package/dist/cli/commands/help.js +1 -1
  151. package/dist/cli/commands/kitchen-sink/async.js +1 -1
  152. package/dist/cli/commands/kitchen-sink/index.js +1 -1
  153. package/dist/cli/commands/kitchen-sink/prompts.js +1 -1
  154. package/dist/cli/commands/kitchen-sink/static.js +1 -1
  155. package/dist/cli/commands/notifications/generate.js +1 -1
  156. package/dist/cli/commands/notifications/list.js +1 -1
  157. package/dist/cli/commands/organization/list.js +1 -1
  158. package/dist/cli/commands/search.js +1 -1
  159. package/dist/cli/commands/theme/check.js +1 -1
  160. package/dist/cli/commands/theme/console.js +1 -1
  161. package/dist/cli/commands/theme/delete.js +1 -1
  162. package/dist/cli/commands/theme/dev.js +1 -1
  163. package/dist/cli/commands/theme/duplicate.js +1 -1
  164. package/dist/cli/commands/theme/info.js +1 -1
  165. package/dist/cli/commands/theme/init.js +1 -1
  166. package/dist/cli/commands/theme/language-server.js +1 -1
  167. package/dist/cli/commands/theme/list.js +1 -1
  168. package/dist/cli/commands/theme/metafields/pull.js +1 -1
  169. package/dist/cli/commands/theme/open.js +1 -1
  170. package/dist/cli/commands/theme/package.js +1 -1
  171. package/dist/cli/commands/theme/preview.js +1 -1
  172. package/dist/cli/commands/theme/profile.js +1 -1
  173. package/dist/cli/commands/theme/publish.js +1 -1
  174. package/dist/cli/commands/theme/pull.js +1 -1
  175. package/dist/cli/commands/theme/push.js +1 -1
  176. package/dist/cli/commands/theme/rename.js +1 -1
  177. package/dist/cli/commands/theme/share.js +1 -1
  178. package/dist/cli/commands/upgrade.js +1 -1
  179. package/dist/cli/commands/version.js +1 -1
  180. package/dist/command-registry.js +1 -1
  181. package/dist/{conf-store-U5ZITKJN.js → conf-store-BMZFATRQ.js} +1 -1
  182. package/dist/{deprecations-TU5UQJVV.js → deprecations-7LHRXPXU.js} +1 -1
  183. package/dist/dist-LDXPBYSZ.js +1 -0
  184. package/dist/dist-V63ILV6L.js +1 -0
  185. package/dist/{environments-Z5PR7DSI.js → environments-5X7S2O5U.js} +1 -1
  186. package/dist/{error-IJGNYKZ3.js → error-ZRLNNGIQ.js} +1 -1
  187. package/dist/error-handler-PRZFHPRG.js +1 -0
  188. package/dist/{fs-5BDEA2KD.js → fs-H7V6IRSH.js} +1 -1
  189. package/dist/hooks/app-init.js +1 -1
  190. package/dist/hooks/did-you-mean.js +1 -1
  191. package/dist/hooks/hydrogen-init.js +1 -1
  192. package/dist/hooks/postrun.js +1 -1
  193. package/dist/hooks/prerun.js +1 -1
  194. package/dist/hooks/public-metadata.js +1 -1
  195. package/dist/hooks/sensitive-metadata.js +1 -1
  196. package/dist/hooks/tunnel-provider.js +1 -1
  197. package/dist/hooks/tunnel-start.js +1 -1
  198. package/dist/index.js +165 -165
  199. package/dist/is-global-IOWPCT2U.js +1 -0
  200. package/dist/local-MTKXSZ3I.js +1 -0
  201. package/dist/{local-storage-JLXBZVWO.js → local-storage-CYEL4MXF.js} +1 -1
  202. package/dist/{metadata-UDMOTRS7.js → metadata-NOVBMKLM.js} +1 -1
  203. package/dist/{node-package-manager-HAFRYGUM.js → node-package-manager-N5CVNHA3.js} +1 -1
  204. package/dist/notifications-system-YX2GPLDW.js +1 -0
  205. package/dist/{output-YGMHXEIS.js → output-Q46DT46U.js} +1 -1
  206. package/dist/{system-KLXD4FXF.js → system-E6Q3OBX3.js} +1 -1
  207. package/dist/tsconfig.tsbuildinfo +1 -1
  208. package/dist/{ui-GHG3UGB3.js → ui-WRS2IDPP.js} +1 -1
  209. package/dist/upgrade-TKUN2M5P.js +1 -0
  210. package/dist/{version-D5PJZIRW.js → version-5W5RVAPA.js} +1 -1
  211. package/dist/version-BQJ3FPXD.js +1 -0
  212. package/dist/{workerd-L2EJKIAQ.js → workerd-GOK6GWEX.js} +1 -1
  213. package/oclif.manifest.json +1 -1
  214. package/package.json +7 -7
  215. package/dist/analytics-6IHHYAV6.js +0 -1
  216. package/dist/analytics-KKVP5DT3.js +0 -1
  217. package/dist/chunk-2I4PRX2I.js +0 -1
  218. package/dist/chunk-7BGM2GAH.js +0 -1
  219. package/dist/chunk-BDVAE5MS.js +0 -28
  220. package/dist/chunk-D3TSJA5S.js +0 -1
  221. package/dist/chunk-N7RBSKYT.js +0 -1
  222. package/dist/chunk-ODNGDO4H.js +0 -50
  223. package/dist/chunk-P7R7FBY2.js +0 -3
  224. package/dist/chunk-SGQ6D3LU.js +0 -15
  225. package/dist/chunk-YC6G4MHD.js +0 -3
  226. package/dist/chunk-ZVJVDCIM.js +0 -1
  227. package/dist/dist-2Z5TND4U.js +0 -1
  228. package/dist/dist-GYHFDHKP.js +0 -1
  229. package/dist/error-handler-WSCGNS2P.js +0 -1
  230. package/dist/is-global-V4ZRHQG2.js +0 -1
  231. package/dist/local-6QPX4GCJ.js +0 -1
  232. package/dist/notifications-system-MP7WDOCS.js +0 -1
  233. package/dist/upgrade-OPZGPM5J.js +0 -1
  234. package/dist/version-KRQBMYCH.js +0 -1
@@ -1,15 +0,0 @@
1
- import{Ea as os,Gb as bt,Ib as fs,Pa as as,Qa as ls,Qb as ds,Ta as cs,Wa as hs,bb as us,ma as yt,pa as ye,ua as ns,wa as wt}from"./chunk-GFEAKSGV.js";import{d as me,g as mt,i as rs}from"./chunk-IU2ZQ6TE.js";import{a as ee,c as fi,e as di,g as ge}from"./chunk-VPRTJUIN.js";var li=fi(l=>{"use strict";ge();Object.defineProperty(l,"__esModule",{value:!0});var pi=ee("stream"),Z=ee("path"),ht=ee("fs"),L=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}},D=class{liquidMethodMissing(e,s){}},gi=Object.prototype.toString,ps=String.prototype.toLowerCase,Yt=Object.hasOwnProperty;function d(t){return typeof t=="string"}function T(t){return typeof t=="function"}function mi(t){return t&&T(t.then)}function xe(t){return t&&T(t.next)&&T(t.throw)&&T(t.return)}function yi(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function qs(t){return function(...e){return new Promise((s,i)=>{t(...e,(r,n)=>{r?i(r):s(n)})})}}function f(t){return t=m(t),d(t)?t:z(t)?"":S(t)?t.map(e=>f(e)).join(""):String(t)}function de(t){return t=m(t),S(t)?t:d(t)&&t.length>0?[t]:bi(t)?Array.from(t):ft(t)?Object.keys(t).map(e=>[e,t[e]]):[]}function x(t){return t=m(t),z(t)?[]:S(t)?t:[t]}function m(t){return t instanceof D&&T(t.valueOf)?t.valueOf():t}function Tt(t){return+m(t)||0}function ut(t){return typeof t=="number"}function Es(t){return t&&T(t.toLiquid)?Es(t.toLiquid()):t}function z(t){return t==null}function wi(t){return t===void 0}function S(t){return gi.call(t)==="[object Array]"}function Ds(t){return t&&ut(t.length)}function bi(t){return ft(t)&&Symbol.iterator in t}function gs(t,e){t=t||{};for(let s in t)if(Yt.call(t,s)&&e(t[s],s,t)===!1)break;return t}function ki(t){return t[t.length-1]}function ft(t){let e=typeof t;return t!==null&&(e==="object"||e==="function")}function Ms(t,e,s=1){let i=[];for(let r=t;r<e;r+=s)i.push(r);return i}function re(t,e,s=" "){return Vs(t,e,s,(i,r)=>r+i)}function Ti(t,e,s=" "){return Vs(t,e,s,(i,r)=>i+r)}function Vs(t,e,s,i){t=String(t);let r=e-t.length;for(;r-- >0;)t=i(t,s);return t}function $s(t){return t}function xi(t){return[...t].some(s=>s>="a"&&s<="z")?t.toUpperCase():t.toLowerCase()}function Si(t,e){return t.length>e?t.slice(0,e-3)+"...":t}function ms(t,e){return t==null&&e==null?0:t==null?1:e==null||(t=ps.call(t),e=ps.call(e),t<e)?-1:t>e?1:0}function dt(t){return function(...e){return t.call(this,...e.map(m))}}function V(t){return function(...e){return t.call(this,...e.map(Tt))}}function Jt(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function*we(t){let e=new Set;for(let s of t){let i=JSON.stringify(s);e.has(i)||(e.add(i),yield s)}}var ys="__liquidClass__",M=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,ys,{value:"LiquidError",enumerable:!1})}update(){Object.defineProperty(this,"context",{value:_i(this.token),enumerable:!1}),this.message=Fi(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?.[ys]==="LiquidError"}},Se=class extends M{constructor(e,s){super(e,s),this.name="TokenizationError",super.update()}},_e=class extends M{constructor(e,s){super(e,s),this.name="ParseError",this.message=e.message,super.update()}},Fe=class extends M{constructor(e,s){super(e,s.token),this.name="RenderError",this.message=e.message,super.update()}static is(e){return e.name==="RenderError"}},Le=class extends M{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"}},ve=class extends M{constructor(e,s){super(e,s),this.name="UndefinedVariableError",this.message=e.message,super.update()}},xt=class extends Error{constructor(e){super(`undefined variable: ${e}`),this.name="InternalUndefinedVariableError",this.variableName=e}},Oe=class extends Error{constructor(e){super(e),this.name="AssertionError",this.message=e+""}};function _i(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 Ms(r,n+1).map(a=>{let c=a===e?">> ":" ",u=re(String(a),String(n).length),h=`${c}${u}| `,p=a===e?`
7
- `+re("^",s+h.length):"";return h+=i[a-1],h+=p,h}).join(`
8
- `)}function Fi(t,e){e.file&&(t+=`, file:${e.file}`);let[s,i]=e.getPosition();return t+=`, line:${s}, col:${i}`,t}var y=[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],Li=1,G=4,ws=8,Ps=16,vi=32,Oi=64,zi=128;function be(t){let e=t.charCodeAt(0);return e>=128?!y[e]:!!(y[e]&Li)}y[160]=y[5760]=y[6158]=y[8192]=y[8193]=y[8194]=y[8195]=y[8196]=y[8197]=y[8198]=y[8199]=y[8200]=y[8201]=y[8202]=y[8232]=y[8233]=y[8239]=y[8287]=y[12288]=G;y[8220]=y[8221]=zi;function _(t,e){if(!t){let s=typeof e=="function"?e():e||`expect ${t} to be true`;throw new Oe(s)}}function ze(t,e=`unexpected ${JSON.stringify(t)}`){_(!t,e)}var St=class extends D{equals(e){return z(m(e))}gt(){return!1}geq(){return!1}lt(){return!1}leq(){return!1}valueOf(){return null}},ne=class t extends D{equals(e){return e instanceof t?!1:(e=m(e),d(e)||S(e)?e.length===0:ft(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}},_t=class t extends ne{equals(e){return e===!1||z(m(e))?!0:d(e)?/^\s*$/.test(e):super.equals(e)}static is(e){return e instanceof t}},oe=class extends D{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)}},Re=class{constructor(){this.buffer=""}write(e){this.buffer+=f(e)}},Ft=class{constructor(){this.buffer="",this.stream=new pi.PassThrough}write(e){this.stream.write(f(e))}error(e){this.stream.emit("error",e)}end(){this.stream.end()}},Lt=class{constructor(){this.buffer=""}write(e){e=m(e),typeof e!="string"&&this.buffer===""?this.buffer=e:this.buffer=f(this.buffer)+f(e)}},Ae=class extends D{constructor(e=()=>""){super(),this.superBlockRender=e}*super(){let e=new Re;return yield this.superBlockRender(e),e.buffer}};function A(t){return t&&T(t.equals)&&T(t.gt)&&T(t.geq)&&T(t.lt)&&T(t.leq)}var bs=new St,Cs={true:!0,false:!1,nil:bs,null:bs,empty:new ne,blank:new _t};function vt(t){let e={};for(let[s,i]of Object.entries(t)){let r=e;for(let n=0;n<s.length;n++){let o=s[n];r[o]=r[o]||{},n===s.length-1&&be(s[n])&&(r[o].needBoundary=!0),r=r[o]}r.data=i,r.end=!0}return e}async function q(t){if(!xe(t))return t;let e,s=!1,i="next";do{let r=t[i](e);s=r.done,e=r.value,i="next";try{xe(e)&&(e=q(e)),mi(e)&&(e=await e)}catch(n){i="throw",e=n}}while(!s);return e}function E(t){if(!xe(t))return t;let e,s=!1,i="next";do{let r=t[i](e);if(s=r.done,e=r.value,i="next",xe(e))try{e=E(e)}catch(n){i="throw",e=n}}while(!s);return e}var Ri=/%([-_0^#:]+)?(\d+)?([EO])?(.)/;function Ai(t){return[31,Ni(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+=Ai(t)[s];return e+t.getDate()}function ks(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 Ni(t){let e=t.getFullYear();return!!((e&3)===0&&(e%100||e%400===0&&e))}function qi(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 Ei(t){return parseInt(t.getFullYear().toString().substring(0,2),10)}var Di={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},Mi=new Set("aAbBceklpP");function Ts(t,e){let s=Math.abs(t.getTimezoneOffset()),i=Math.floor(s/60),r=s%60;return(t.getTimezoneOffset()>0?"-":"+")+re(i,2,"0")+(e.flags[":"]?":":"")+re(r,2,"0")}var Ot={a:t=>t.getShortWeekdayName(),A:t=>t.getLongWeekdayName(),b:t=>t.getShortMonthName(),B:t=>t.getLongMonthName(),c:t=>t.toLocaleString(),C:t=>Ei(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=String(t.getMilliseconds()).slice(0,s);return Ti(i,s,"0")},p:t=>t.getHours()<12?"AM":"PM",P:t=>t.getHours()<12?"am":"pm",q:t=>qi(t),s:t=>Math.round(t.getTime()/1e3),S:t=>t.getSeconds(),u:t=>t.getDay()||7,U:t=>ks(t,0),w:t=>t.getDay(),W:t=>ks(t,1),x:t=>t.toLocaleDateString(),X:t=>t.toLocaleTimeString(),y:t=>t.getFullYear().toString().slice(2,4),Y:t=>t.getFullYear(),z:Ts,Z:(t,e)=>t.getTimeZoneName()||Ts(t,e),t:()=>" ",n:()=>`
9
- `,"%":()=>"%"};Ot.h=Ot.b;function ke(t,e){let s="",i=e,r;for(;r=Ri.exec(i);)s+=i.slice(0,r.index),i=i.slice(r.index+r[0].length),s+=Vi(t,r);return s+i}function Vi(t,e){let[s,i="",r,n,o]=e,a=Ot[o];if(!a)return s;let c={};for(let g of i)c[g]=!0;let u=String(a(t,{flags:c,width:r,modifier:n})),h=Mi.has(o)?" ":"0",p=r||Di[o]||0;return c["^"]?u=u.toUpperCase():c["#"]&&(u=xi(u)),c._?h=" ":c[0]&&(h="0"),c["-"]&&(p=0),re(u,p,h)}function Is(){return typeof Intl<"u"?Intl.DateTimeFormat:void 0}var $i=6e4,Pi=/([zZ]|([+-])(\d{2}):?(\d{2}))$/,Bs=["January","February","March","April","May","June","July","August","September","October","November","December"],Ci=Bs.map(t=>t.slice(0,3)),Us=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ji=Us.map(t=>t.slice(0,3)),I=class t{constructor(e,s,i){this.locale=s,this.DateTimeFormat=Is(),this.date=new Date(e),this.timezoneFixed=i!==void 0,i===void 0&&(i=this.date.getTimezoneOffset()),this.timezoneOffset=d(i)?t.getTimezoneOffset(i,this.date):i,this.timezoneName=d(i)?i:"";let r=(this.date.getTimezoneOffset()-this.timezoneOffset)*$i,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"})??Bs[this.getMonth()]}getShortMonthName(){return this.format({month:"short"})??Ci[this.getMonth()]}getLongWeekdayName(){return this.format({weekday:"long"})??Us[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(Pi);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)}},ae=class{constructor(e,s){this.base=0,this.message=`${e} limit exceeded`,this.limit=s}use(e){e=+e||0,_(this.base+e<=this.limit,this.message),this.base+=e}check(e){e=+e||0,_(e<=this.limit,this.message)}},le=class extends L{constructor(e,[s,i],r,n,o,a,c,u){super(e,r,n,o,u),this.trimLeft=!1,this.trimRight=!1;let h=r[s]==="-",p=r[i-1]==="-",g=h?s+1:s,w=p?i-1:i;for(;g<w&&y[r.charCodeAt(g)]&G;)g++;for(;w>g&&y[r.charCodeAt(w-1)]&G;)w--;this.contentRange=[g,w],this.trimLeft=h||a,this.trimRight=p||c}get content(){return this.input.slice(this.contentRange[0],this.contentRange[1])}},ce=class extends le{constructor(e,s,i,r,n){let{trimTagLeft:o,trimTagRight:a,tagDelimiterLeft:c,tagDelimiterRight:u}=r,[h,p]=[s+c.length,i-u.length];super(l.TokenKind.Tag,[h,p],e,s,i,o,a,n),this.tokenizer=new O(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])}},zt=class extends le{constructor(e,s,i,r,n){let{trimOutputLeft:o,trimOutputRight:a,outputDelimiterLeft:c,outputDelimiterRight:u}=r,h=[s+c.length,i-u.length];super(l.TokenKind.Output,h,e,s,i,o,a,n)}},Ne=class extends L{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)}},Rt=class extends L{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())}},te=class extends L{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()}},At=class extends L{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=Cs[this.literal]}},xs={"==":2,"!=":2,">":2,"<":2,">=":2,"<=":2,contains:2,not:1,and:0,or:0},Ii={"==":0,"!=":0,">":0,"<":0,">=":0,"<=":0,contains:0,not:1,and:0,or:0},Nt=class extends L{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(){let e=this.getText();return e in xs?xs[e]:1}},qe=class extends L{constructor(e,s,i,r,n,o){super(l.TokenKind.PropertyAccess,i,r,n,o),this.variable=e,this.props=s}},Ee=class extends L{constructor(e,s,i,r,n,o){super(l.TokenKind.Filter,i,r,n,o),this.name=e,this.args=s}},qt=class extends L{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}},Bi=/[\da-fA-F]/,Ss=/[0-7]/,_s={b:"\b",f:"\f",n:`
10
- `,r:"\r",t:" ",v:"\v"};function Fs(t){let e=t.charCodeAt(0);return e>=97?e-87:e>=65?e-55:e-48}function Ui(t){let e="";for(let s=1;s<t.length-1;s++){if(t[s]!=="\\"){e+=t[s];continue}if(_s[t[s+1]]!==void 0)e+=_s[t[++s]];else if(t[s+1]==="u"){let i=0,r=s+2;for(;r<=s+5&&Bi.test(t[r]);)i=i*16+Fs(t[r++]);s=r-1,e+=String.fromCharCode(i)}else if(!Ss.test(t[s+1]))e+=t[++s];else{let i=s+1,r=0;for(;i<=s+3&&Ss.test(t[i]);)r=r*8+Fs(t[i++]);s=i-1,e+=String.fromCharCode(r)}}return e}var Et=class extends L{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=Ui(this.getText())}},Dt=class extends L{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}},Mt=class extends le{constructor(e,s,i,r,n){super(l.TokenKind.Tag,[s,i],e,s,i,!1,!1,n),this.tokenizer=new O(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])}},Vt=class extends L{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}},Hi={now:()=>Date.now()};function Hs(){return typeof global=="object"&&global.performance||typeof window=="object"&&window.performance||Hi}var $t=class{renderTemplatesToNodeStream(e,s){let i=new Ft;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 Lt:new Re);let r=[];for(let n of e){s.renderLimit.check(Hs().now());try{let o=yield n.render(s,i);if(o&&i.write(o),s.breakCalled||s.continueCalled)break}catch(o){let a=M.is(o)?o:new Fe(o,n);if(s.opts.catchAllErrors)r.push(a);else throw a}}if(r.length)throw new Le(r);return i.buffer}},De=class{constructor(e){this.postfix=[...Ji(e)]}*evaluate(e,s){_(e,"unable to evaluate: context not defined");let i=[];for(let r of this.postfix)if(Zt(r)){let n=i.pop(),o;if(Ii[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 k(r,e,s));return i[0]}valid(){return!!this.postfix.length}};function*k(t,e,s=!1){if(t){if("content"in t)return t.content;if(fe(t))return yield Wi(t,e,s);if(Qt(t))return yield Yi(t,e)}}function*Wi(t,e,s){let i=[];for(let r of t.props)i.push(yield k(r,e,!1));try{if(t.variable){let r=yield k(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 ve(r,t)}}function Ws(t){return t.content}function*Yi(t,e){let s=yield k(t.lhs,e),i=yield k(t.rhs,e);return e.memoryLimit.use(i-s+1),Ms(+s,+i+1)}function*Ji(t){let e=[];for(let s of t)if(Zt(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 U(t,e){return!pe(t,e)}function pe(t,e){return t=m(t),e.opts.jsTruthy?!t:t===!1||t===void 0||t===null}var Ys={"==":C,"!=":(t,e)=>!C(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),S(t)?t.some(s=>C(s,e)):T(t?.indexOf)?t.indexOf(m(e))>-1:!1),not:(t,e)=>pe(m(t),e),and:(t,e,s)=>U(m(t),s)&&U(m(e),s),or:(t,e,s)=>U(m(t),s)||U(m(e),s)};function C(t,e){return A(t)?t.equals(e):A(e)?e.equals(t):(t=m(t),e=m(e),S(t)?S(e)&&Zi(t,e):t===e)}function Zi(t,e){return t.length!==e.length?!1:!t.some((s,i)=>!C(s,e[i]))}function Qi(t,e){return t.some(s=>C(s,e))}var se=class{constructor(e,s,i,r){this.key=e,this.value=s,this.next=i,this.prev=r}},Me=class{constructor(e,s=0){this.limit=e,this.size=s,this.cache={},this.head=new se("HEAD",null,null,null),this.tail=new se("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 se(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)}},Ki=t=>ee.resolve(t,{paths:["."]}),Gi=qs(ht.stat),Xi=qs(ht.readFile);async function er(t){try{return await Gi(t),!0}catch{return!1}}function tr(t){return Xi(t,"utf8")}function sr(t){try{return ht.statSync(t),!0}catch{return!1}}function ir(t){return ht.readFileSync(t,"utf8")}function rr(t,e,s){return Z.extname(e)||(e+=s),Z.resolve(t,e)}function nr(t){try{return Ki(t)}catch{}}function or(t){return Z.dirname(t)}function ar(t,e){return t=Z.resolve(t),t=t.endsWith(Z.sep)?t:t+Z.sep,e.startsWith(t)}var lr=Object.freeze({__proto__:null,exists:er,readFile:tr,existsSync:sr,readFileSync:ir,resolve:rr,fallback:nr,dirname:or,contains:ar,sep:Z.sep});function cr(t,e,...s){return t=m(t),S(t)||d(t)?t.length?t:e:t===!1&&new Map(s).get("allow_false")?!1:pe(t,this.context)?e:t}function Ls(t,e=0){return JSON.stringify(t,null,e)}function hr(t,e=0){let s=[];return JSON.stringify(t,function(i,r){if(typeof r!="object"||r===null)return r;for(;s.length>0&&s[s.length-1]!==this;)s.pop();return s.includes(r)?"[Circular]":(s.push(r),r)},e)}function ur(t){return Number(t)}var fr={raw:!0,handler:$s},Js={default:cr,raw:fr,jsonify:Ls,to_integer:ur,json:Ls,inspect:hr},dr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},pr={"&amp;":"&","&lt;":"<","&gt;":">","&#34;":'"',"&#39;":"'"};function pt(t){return t=f(t),this.context.memoryLimit.use(t.length),t.replace(/&|<|>|"|'/g,e=>dr[e])}function gr(t){return pt.call(this,t)}function mr(t){return t=f(t),this.context.memoryLimit.use(t.length),t.replace(/&(amp|lt|gt|#34|#39);/g,e=>pr[e])}function yr(t){return pt.call(this,mr.call(this,t))}function wr(t){let e=f(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,`<br />
11
- `)}function br(t){let e=f(t);return this.context.memoryLimit.use(e.length),e.replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g,"")}var kr=Object.freeze({__proto__:null,escape:pt,xml_escape:gr,escape_once:yr,newline_to_br:wr,strip_html:br}),Pt=class{constructor(e){this.mapping=e,this.sep="/"}async exists(e){return this.existsSync(e)}existsSync(e){return!z(this.mapping[e])}async readFile(e){return this.readFileSync(e)}readFileSync(e){let s=this.mapping[e];if(z(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)}},J={root:["."],layouts:["."],partials:["."],relativeReference:!0,jekyllInclude:!1,keyValueSeparator:":",cache:void 0,extname:"",fs:lr,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:Ys,memoryLimit:1/0,parseLimit:1/0,renderLimit:1/0};function Tr(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 Me(t.cache):void 0:typeof t.cache=="object"?e=t.cache:e=t.cache?new Me(1024):void 0,t.cache=e}return t={...J,...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=Te(t.root),t.partials=Te(t.partials),t.layouts=Te(t.layouts),t.outputEscape=t.outputEscape&&xr(t.outputEscape),t.locale||(t.locale=Is()?.().resolvedOptions().locale??"en-US"),t.templates&&(t.fs=new Pt(t.templates),t.relativeReference=!0,t.root=t.partials=t.layouts="."),t}function xr(t){return t==="escape"?pt:t==="json"?Js.json:(_(T(t),"`outputEscape` need to be of type string or function"),t)}function Te(t){let e=[];return S(t)&&(e=t),d(t)&&(e=[t]),e}function Sr(t,e){let s=!1;for(let i=0;i<t.length;i++){let r=t[i];Gs(r)&&(!s&&r.trimLeft&&_r(t[i-1],e.greedy),W(r)&&(r.name==="raw"?s=!0:r.name==="endraw"&&(s=!1)),!s&&r.trimRight&&Fr(t[i+1],e.greedy))}}function _r(t,e){if(!t||!gt(t))return;let s=e?G:Ps;for(;y[t.input.charCodeAt(t.end-1-t.trimRight)]&s;)t.trimRight++}function Fr(t,e){if(!t||!gt(t))return;let s=e?G:Ps;for(;y[t.input.charCodeAt(t.begin+t.trimLeft)]&s;)t.trimLeft++;t.input.charAt(t.begin+t.trimLeft)===`
12
- `&&t.trimLeft++}var O=class{constructor(e,s=J.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=vt(s),this.literalTrie=vt(Cs)}readExpression(){return new De(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 Nt(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&&be(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 Vt(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 Ee(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=J){let s=[];for(;this.p<this.N;){let i=this.readTopLevelToken(e);s.push(i)}return Sr(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 Ne(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 ce(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()&ws){this.readQuoted();continue}if(++this.p,this.rmatch(e))return this.p}return-1}readOutputToken(e=J){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 zt(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 ce(this.input,r,o,e,this.file)):(this.p=n,new Ne(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=J){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 Mt(this.input,s,i,e,this.file)}error(e,s=this.p){return new Se(e,new te(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(Si(this.input.slice(e,this.N),32))}readWord(){return this.readIdentifier()}readIdentifier(){this.skipBlank();let e=this.p;for(;!this.end()&&be(this.peek());)++this.p;return new te(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=d(e)?e:e?"=":":";return this.peek()===n&&(++this.p,r=this.readValue()),new qt(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 qe(s,i,this.input,e,this.p):s}readScopeValue(){this.skipBlank();let e=this.p,s=this.readProperties();if(s.length)return new qe(void 0,s,this.input,e,this.p)}readProperties(e=!0){let s=[];for(;;){if(this.peek()==="["){this.p++;let i=this.readValue()||new te(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()&Oi&&i++;this.p+i<=this.N;)if(this.peekType(i)&vi)s=!0,i++;else if(this.peek(i)==="."&&this.peek(i+1)!=="."){if(e||!s)return;e=!0,i++}else break;if(s&&!be(this.peek(i))){let r=new Rt(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 At(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 Dt(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()&ws))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 Et(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:y[this.input.charCodeAt(this.p+e)]}peek(e=0){return this.p+e>=this.N?"":this.input[this.p+e]}skipBlank(){for(;this.peekType()&G;)++this.p}},Ve=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)||W(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}},he=class{constructor(e){this.token=e}},b=class extends he{constructor(e,s,i){super(e),this.name=e.name,this.liquid=i,this.tokenizer=e.tokenizer}},j=class{constructor(e,s){this.hash={};let i=e instanceof O?e:new O(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 k(this.hash[i],e);return s}};function Lr(t){return class extends b{constructor(e,s,i){super(e,s,i),T(t.parse)&&t.parse.call(this,e,s)}*render(e,s){let i=yield new j(this.token.args,e.opts.keyValueSeparator).render(e);return yield t.render.call(this,e,s,i)}}}function Zs(t){return S(t)}var ue=class{constructor(e,s,i){this.token=e,this.name=e.name,this.handler=T(s)?s:T(s?.handler)?s.handler:$s,this.raw=!T(s)&&!!s?.raw,this.args=e.args,this.liquid=i}*render(e,s){let i=[];for(let r of this.args)Zs(r)?i.push([r[0],yield k(r[1],s)]):i.push(yield k(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 O(e,s.options.operators).readFilteredValue():e;this.initial=i.initial,this.filters=i.filters.map(r=>new ue(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}},$e=class extends he{constructor(e,s){super(e);let i=new O(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 Ee(toString.call(n),[],"",0,0);r.push(new ue(o,n,s))}}*render(e,s){let i=yield this.value.value(e,!1);s.write(i)}*arguments(){yield this.value}},Ct=class extends he{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 Ce(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))}},ie=class{constructor(){this.map=new Map}get(e){let s=Ce([e.segments[0]]);return this.map.has(s)||this.map.set(s,[]),this.map.get(s)}has(e){return this.map.has(Ce([e.segments[0]]))}push(e){this.get(e).push(e)}asObject(){return Object.fromEntries(this.map)}},Qs={partials:!0};function*Ks(t,e,s){let i=new ie,r=new ie,n=new ie,o=new Pe(new Set),a=new Set;function c(h,p){i.push(h);let g=p.alias(h);if(g!==void 0){let w=g.segments[0];d(w)&&!o.has(w)&&r.push(g)}else{let w=h.segments[0];d(w)&&!p.has(w)&&r.push(h)}for(let w of h.segments)w instanceof H&&c(w,p)}function*u(h,p){if(h.arguments)for(let g of h.arguments())for(let w of vs(g))c(w,p);if(h.localScope)for(let g of h.localScope()){p.add(g.content),p.deleteAlias(g.content);let[w,X]=g.getPosition();n.push(new H([g.content],{row:w,col:X,file:g.file}))}if(h.children)if(h.partialScope){let g=h.partialScope();if(g===void 0){for(let Y of yield h.children(e,s))yield u(Y,p);return}if(a.has(g.name))return;let w=new Set,X=g.isolated?new Pe(w):p.push(w);for(let Y of g.scope)if(d(Y))w.add(Y);else{let[ss,ui]=Y;w.add(ss);let is=Array.from(vs(ui));is.length&&X.setAlias(ss,is[0].segments)}for(let Y of yield h.children(e,s))yield u(Y,X),a.add(g.name);X.pop()}else{h.blockScope&&p.push(new Set(h.blockScope()));for(let g of yield h.children(e,s))yield u(g,p);h.blockScope&&p.pop()}}for(let h of t)yield u(h,o);return{variables:i.asObject(),globals:r.asObject(),locals:n.asObject()}}function $(t,e={}){let s={...Qs,...e};return q(Ks(t,s.partials,!1))}function P(t,e={}){let s={...Qs,...e};return E(Ks(t,s.partials,!0))}var Pe=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(!d(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*vs(t){v(t)?yield*K(t):t instanceof F&&(yield*vr(t))}function*vr(t){for(let e of t.initial.postfix)v(e)&&(yield*K(e));for(let e of t.filters)for(let s of e.args)Zs(s)&&s[1]?yield*K(s[1]):v(s)&&(yield*K(s))}function*K(t){Qt(t)?(yield*K(t.lhs),yield*K(t.rhs)):fe(t)&&(yield jt(t))}function jt(t){let e=[],s=t.file,i=t.props[0];s=s||i.file,je(i)||Bt(i)||Ut(i)?e.push(i.content):fe(i)&&e.push(...jt(i).segments);for(let o of t.props.slice(1))s=s||o.file,je(o)||Bt(o)||Ut(o)?e.push(o.content):fe(o)&&e.push(jt(o));let[r,n]=t.getPosition();return new H(e,{row:r,col:n,file:s})}var Os=/^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;function Ce(t,e=!1){let s=[],i=t[0];d(i)&&(!e||i.match(Os)?s.push(`${i}`):s.push(`['${i}']`));for(let r of t.slice(1))r instanceof H?s.push(`[${Ce(r.segments)}]`):d(r)?r.match(Os)?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 It=class{constructor(e){if(this.options=e,e.relativeReference){let s=e.fs.sep;_(s,"`fs.sep` is required for relative reference");let i=new RegExp(["."+s,".."+s,"./","../"].map(r=>yi(r)).join("|"));this.shouldLoadRelative=r=>i.test(r)}else this.shouldLoadRelative=s=>!1;this.contains=this.options.fs.contains||(()=>!0)}*lookup(e,s,i,r){let{fs:n}=this.options,o=this.options[s];for(let a of this.candidates(e,o,r,s!==l.LookupType.Root))if(i?n.existsSync(a):yield n.exists(a))return a;throw this.lookupError(e,o)}*candidates(e,s,i,r){let{fs:n,extname:o}=this.options,a=c=>{if(!r)return!0;for(let u of s)if(this.contains(u,c))return!0;return!1};if(this.shouldLoadRelative(e)&&i){let c=n.resolve(this.dirname(i),e,o);a(c)&&(yield c)}for(let c of s){let u=n.resolve(c,e,o);a(u)&&(yield u)}if(n.fallback!==void 0){let c=n.fallback(e);c!==void 0&&a(c)&&(yield c)}}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 It(this.liquid.options),this.parseLimit=new ae("parse length",e.options.parseLimit)}parse(e,s){e=String(e),this.parseLimit.use(e.length);let r=new O(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 Le(r);return i}parseToken(e,s){try{if(W(e)){let i=this.liquid.tags[e.name];return _(i,`tag "${e.name}" not found`),new i(e,s,this.liquid,this)}return Xs(e)?new $e(e,this.liquid):new Ct(e)}catch(i){throw M.is(i)?i:new _e(i,e)}}parseStream(e){return new Ve(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),u=s?yield c:q(c);n.write(o,u);try{return yield u}catch(h){throw n.remove(o),h}}*_parseFile(e,s,i=l.LookupType.Root,r){let n=yield this.loader.lookup(e,i,s,r);return this.parse(s?this.fs.readFileSync(n):yield this.fs.readFile(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 Gs(t){return!!(R(t)&l.TokenKind.Delimited)}function Zt(t){return R(t)===l.TokenKind.Operator}function gt(t){return R(t)===l.TokenKind.HTML}function Xs(t){return R(t)===l.TokenKind.Output}function W(t){return R(t)===l.TokenKind.Tag}function je(t){return R(t)===l.TokenKind.Quoted}function Or(t){return R(t)===l.TokenKind.Literal}function Bt(t){return R(t)===l.TokenKind.Number}function fe(t){return R(t)===l.TokenKind.PropertyAccess}function Ut(t){return R(t)===l.TokenKind.Word}function Qt(t){return R(t)===l.TokenKind.Range}function v(t){return(R(t)&1667)>0}function R(t){return t?t.kind:-1}var zr=Object.freeze({__proto__:null,isDelimitedToken:Gs,isOperatorToken:Zt,isHTMLToken:gt,isOutputToken:Xs,isTagToken:W,isQuotedToken:je,isLiteralToken:Or,isNumberToken:Bt,isPropertyAccessToken:fe,isWordToken:Ut,isRangeToken:Qt,isValueToken:v}),Ie=function(){return Ie=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},Ie.apply(this,arguments)},B=class t{constructor(e={},s=J,i={},{memoryLimit:r,renderLimit:n}={}){this.scopes=[{}],this.registers={},this.breakCalled=!1,this.continueCalled=!1,this.sync=!!i.sync,this.opts=s,this.globals=i.globals??s.globals,this.environments=ft(e)?e:Object(e),this.strictVariables=i.strictVariables??this.opts.strictVariables,this.ownPropertyOnly=i.ownPropertyOnly??s.ownPropertyOnly,this.memoryLimit=r??new ae("memory alloc",i.memoryLimit??s.memoryLimit),this.renderLimit=n??new ae("template render",Hs().now()+(i.renderLimit??s.renderLimit))}getRegister(e){return this.registers[e]=this.registers[e]||{}}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)=>Ie(e,s),{})}get(e){return this.getSync(e)}getSync(e){return E(this._get(e))}*_get(e){let s=this.findScope(e[0]);return yield this._getFromScope(s,e)}getFromScope(e,s){return E(this._getFromScope(e,s))}*_getFromScope(e,s,i=this.strictVariables){d(s)&&(s=s.split("."));for(let r=0;r<s.length;r++)if(e=yield this.readProperty(e,s[r]),i&&wi(e))throw new xt(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},{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=Es(e),s=m(s),z(e))return e;if(S(e)&&s<0)return e[e.length+ +s];let i=Rr(e,s,this.ownPropertyOnly);return i===void 0&&e instanceof D?e.liquidMethodMissing(s,this):T(i)?i.call(e):s==="size"?qr(e):s==="first"?Ar(e):s==="last"?Nr(e):i}};function Rr(t,e,s){if(!(s&&!Yt.call(t,e)&&!(t instanceof D)))return t[e]}function Ar(t){return S(t)?t[0]:t.first}function Nr(t){return S(t)?t[t.length-1]:t.last}function qr(t){if(Yt.call(t,"size")||t.size!==void 0)return t.size;if(S(t)||d(t))return t.length;if(typeof t=="object")return Object.keys(t).length}var Q;(function(t){t[t.OUTPUT=0]="OUTPUT",t[t.STORE=1]="STORE"})(Q||(Q={}));var Er=V(Math.abs),Dr=V(Math.max),Mr=V(Math.min),Vr=V(Math.ceil),$r=V((t,e,s=!1)=>s?Math.floor(t/e):t/e),Pr=V(Math.floor),Cr=V((t,e)=>t-e),jr=V((t,e)=>t+e),Ir=V((t,e)=>t%e),Br=V((t,e)=>t*e);function Ur(t,e=0){t=Tt(t),e=Tt(e);let s=Math.pow(10,e);return Math.round(t*s)/s}var Hr=Object.freeze({__proto__:null,abs:Er,at_least:Dr,at_most:Mr,ceil:Vr,divided_by:$r,floor:Pr,minus:Cr,plus:jr,modulo:Ir,times:Br,round:Ur}),Wr=t=>decodeURIComponent(f(t)).replace(/\+/g," "),Yr=t=>encodeURIComponent(f(t)).replace(/%20/g,"+"),Jr=t=>encodeURIComponent(f(t)).replace(/%20/g,"+").replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase()),Zr=t=>encodeURI(f(t)).replace(/%5B/g,"[").replace(/%5D/g,"]"),zs=/[^\p{M}\p{L}\p{Nd}]+/ug,Qr={raw:/\s+/g,default:zs,pretty:/[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,ascii:/[^A-Za-z0-9]+/g,latin:zs,none:null};function Kr(t,e="default",s=!1){t=f(t);let i=Qr[e];return i&&(e==="latin"&&(t=Gr(t)),t=t.replace(i,"-").replace(/^-|-$/g,"")),s?t:t.toLowerCase()}function Gr(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 Xr=Object.freeze({__proto__:null,url_decode:Wr,url_encode:Yr,cgi_escape:Jr,uri_escape:Zr,slugify:Kr}),en=dt(function(t,e){let s=x(t),i=z(e)?" ":f(e),r=s.length*(1+i.length);return this.context.memoryLimit.use(r),s.join(i)}),tn=dt(t=>Ds(t)?ki(t):""),sn=dt(t=>Ds(t)?t[0]:""),rn=dt(function(t){let e=x(t);return this.context.memoryLimit.use(e.length),[...e].reverse()});function*nn(t,e){let s=[],i=x(t);this.context.memoryLimit.use(i.length);for(let r of i)s.push([r,e?yield this.context._getFromScope(r,f(e).split("."),!1):r]);return s.sort((r,n)=>{let o=r[1],a=n[1];return o<a?-1:o>a?1:0}).map(r=>r[0])}function on(t,e){let s=f(e),i=e===void 0?ms:(n,o)=>ms(n[s],o[s]),r=x(t);return this.context.memoryLimit.use(r.length),[...r].sort(i)}var an=t=>t&&t.length||0;function*ln(t,e){let s=[],i=x(t);this.context.memoryLimit.use(i.length);for(let r of i)s.push(yield this.context._getFromScope(r,f(e),!1));return s}function*cn(t,e){let s=0,i=x(t);for(let r of i){let n=Number(e?yield this.context._getFromScope(r,f(e),!1):r);s+=Number.isNaN(n)?0:n}return s}function hn(t){let e=x(t);return this.context.memoryLimit.use(e.length),e.filter(s=>!z(m(s)))}function ei(t,e=[]){let s=x(t),i=x(e);return this.context.memoryLimit.use(s.length+i.length),s.concat(i)}function un(t,e){return ei.call(this,t,[e])}function fn(t,e){let s=x(t);this.context.memoryLimit.use(s.length);let i=[...s];return i.unshift(e),i}function dn(t){let e=[...x(t)];return e.pop(),e}function pn(t){let e=x(t);this.context.memoryLimit.use(e.length);let s=[...e];return s.shift(),s}function gn(t,e,s=1){return t=m(t),z(t)?[]:(S(t)||(t=f(t)),e=e<0?t.length+e:e,this.context.memoryLimit.use(s),t.slice(e,e+s))}function ti(t){return this.context.opts.jekyllWhere?e=>ne.is(t)?C(e,t):S(e)?Qi(e,t):C(e,t):t===void 0?e=>U(e,this.context):e=>C(e,t)}function*si(t,e,s,i){let r=[];e=x(e),this.context.memoryLimit.use(e.length);let n=new O(f(s)).readScopeValue();for(let a of e)r.push(yield k(n,this.context.spawn(a)));let o=ti.call(this,i);return e.filter((a,c)=>o(r[c])===t)}function*ii(t,e,s,i){let r=[],n=new F(f(i),this.liquid),o=x(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*mn(t,e,s){return yield*si.call(this,!0,t,e,s)}function*yn(t,e,s){return yield*si.call(this,!1,t,e,s)}function*wn(t,e,s){return yield*ii.call(this,!0,t,e,s)}function*bn(t,e,s){return yield*ii.call(this,!1,t,e,s)}function*kn(t,e){let s=new Map;t=de(t);let i=new O(f(e)).readScopeValue();this.context.memoryLimit.use(t.length);for(let r of t){let n=yield k(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*Tn(t,e,s){let i=new Map,r=new F(f(s),this.liquid);t=de(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*Kt(t,e,s){let i=new O(f(e)).readScopeValue(),r=x(t),n=ti.call(this,s);for(let o=0;o<r.length;o++){let a=yield k(i,this.context.spawn(r[o]));if(n(a))return[o,r[o]]}}function*Gt(t,e,s){let i=new F(f(s),this.liquid),r=x(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*xn(t,e,s){return!!(yield*Kt.call(this,t,e,s))}function*Sn(t,e,s){return!!(yield*Gt.call(this,t,e,s))}function*_n(t,e,s){let i=yield*Kt.call(this,t,e,s);return i?i[0]:void 0}function*Fn(t,e,s){let i=yield*Gt.call(this,t,e,s);return i?i[0]:void 0}function*Ln(t,e,s){let i=yield*Kt.call(this,t,e,s);return i?i[1]:void 0}function*vn(t,e,s){let i=yield*Gt.call(this,t,e,s);return i?i[1]:void 0}function On(t){return t=x(t),this.context.memoryLimit.use(t.length),[...new Set(t)]}function zn(t,e=1){if(t=m(t),z(t))return[];S(t)||(t=f(t)),this.context.memoryLimit.use(e);let s=[...t].sort(()=>Math.random()-.5);return e===1?s[0]:s.slice(0,e)}var Rn=Object.freeze({__proto__:null,join:en,last:tn,first:sn,reverse:rn,sort:nn,sort_natural:on,size:an,map:ln,sum:cn,compact:hn,concat:ei,push:un,unshift:fn,pop:dn,shift:pn,slice:gn,where:mn,reject:yn,where_exp:wn,reject_exp:bn,group_by:kn,group_by_exp:Tn,has:xn,has_exp:Sn,find_index:_n,find_index_exp:Fn,find:Ln,find_exp:vn,uniq:On,sample:zn});function Xt(t,e,s){let i=(t?.length??0)+(e?.length??0)+(s?.length??0);this.context.memoryLimit.use(i);let r=ni(t,this.context.opts,s);return r?(e=m(e),e=z(e)?this.context.opts.dateFormat:f(e),ke(r,e)):t}function An(t){return Xt.call(this,t,"%Y-%m-%dT%H:%M:%S%:z")}function Nn(t){return Xt.call(this,t,"%a, %d %b %Y %H:%M:%S %z")}function qn(t,e,s){return ri.call(this,t,"%b",e,s)}function En(t,e,s){return ri.call(this,t,"%B",e,s)}function ri(t,e,s,i){let r=ni(t,this.context.opts);if(!r)return t;if(s==="ordinal"){let n=r.getDate();return i==="US"?ke(r,`${e} ${n}%q, %Y`):ke(r,`${n}%q ${e} %Y`)}return ke(r,`%d ${e} %Y`)}function ni(t,e,s){let i,r=s??e.timezoneOffset,n=e.locale;return t=m(t),t==="now"||t==="today"?i=new I(Date.now(),n,r):ut(t)?i=new I(t*1e3,n,r):d(t)?/^\d+$/.test(t)?i=new I(+t*1e3,n,r):e.preserveTimezones&&s===void 0?i=I.createDateFixedToTimezone(t,n):i=new I(t,n,r):i=new I(t,n,r),i.valid()?i:void 0}var Dn=Object.freeze({__proto__:null,date:Xt,date_to_xmlschema:An,date_to_rfc822:Nn,date_to_string:qn,date_to_long_string:En}),kt=/[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu,Rs=/[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;function Mn(t,e){_(arguments.length===2,"append expect 2 arguments");let s=f(t),i=f(e);return this.context.memoryLimit.use(s.length+i.length),s+i}function Vn(t,e){_(arguments.length===2,"prepend expect 2 arguments");let s=f(t),i=f(e);return this.context.memoryLimit.use(s.length+i.length),i+s}function $n(t,e){let s=f(t);return this.context.memoryLimit.use(s.length),e?(e=Jt(f(e)),s.replace(new RegExp(`^[${e}]+`,"g"),"")):s.replace(/^\s+/,"")}function Pn(t){let e=f(t);return this.context.memoryLimit.use(e.length),e.toLowerCase()}function Cn(t){let e=f(t);return this.context.memoryLimit.use(e.length),f(e).toUpperCase()}function jn(t,e){let s=f(t);return this.context.memoryLimit.use(s.length),s.split(f(e)).join("")}function In(t,e){let s=f(t);return this.context.memoryLimit.use(s.length),s.replace(f(e),"")}function Bn(t,e){let s=f(t);this.context.memoryLimit.use(s.length);let i=f(e),r=s.lastIndexOf(i);return r===-1?s:s.substring(0,r)+s.substring(r+i.length)}function Un(t,e){return t=f(t),this.context.memoryLimit.use(t.length),e?(e=Jt(f(e)),t.replace(new RegExp(`[${e}]+$`,"g"),"")):t.replace(/\s+$/,"")}function Hn(t,e){let s=f(t);this.context.memoryLimit.use(s.length);let i=s.split(f(e));for(;i.length&&i[i.length-1]==="";)i.pop();return i}function Wn(t,e){let s=f(t);return this.context.memoryLimit.use(s.length),e?(e=Jt(f(e)),s.replace(new RegExp(`^[${e}]+`,"g"),"").replace(new RegExp(`[${e}]+$`,"g"),"")):s.trim()}function Yn(t){let e=f(t);return this.context.memoryLimit.use(e.length),e.replace(/\r?\n/gm,"")}function Jn(t){return t=f(t),this.context.memoryLimit.use(t.length),t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}function Zn(t,e,s){let i=f(t);return this.context.memoryLimit.use(i.length),i.split(f(e)).join(s)}function Qn(t,e,s){let i=f(t);return this.context.memoryLimit.use(i.length),i.replace(f(e),s)}function Kn(t,e,s){let i=f(t);this.context.memoryLimit.use(i.length);let r=f(e),n=i.lastIndexOf(r);if(n===-1)return i;let o=f(s);return i.substring(0,n)+o+i.substring(n+r.length)}function Gn(t,e=50,s="..."){let i=f(t);return this.context.memoryLimit.use(i.length),i.length<=e?t:i.substring(0,e-s.length)+s}function Xn(t,e=15,s="..."){let i=f(t);this.context.memoryLimit.use(i.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 eo(t){let e=f(t);return this.context.memoryLimit.use(e.length),e.replace(/\s+/g," ")}function to(t,e){let s=f(t);if(this.context.memoryLimit.use(s.length),t=s.trim(),!t)return 0;switch(e){case"cjk":return(t.match(kt)||[]).length+(t.match(Rs)||[]).length;case"auto":return kt.test(t)?t.match(kt).length+(t.match(Rs)||[]).length:t.split(/\s+/).length;default:return t.split(/\s+/).length}}function so(t,e="and"){switch(this.context.memoryLimit.use(t.length),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 io=Object.freeze({__proto__:null,append:Mn,prepend:Vn,lstrip:$n,downcase:Pn,upcase:Cn,remove:jn,remove_first:In,remove_last:Bn,rstrip:Un,split:Hn,strip:Wn,strip_newlines:Yn,capitalize:Jn,replace:Zn,replace_first:Qn,replace_last:Kn,truncate:Gn,truncatewords:Xn,normalize_whitespace:eo,number_of_words:to,array_to_sentence_string:so});function ro(t){return Buffer.from(t,"utf8").toString("base64")}function no(t){return Buffer.from(t,"base64").toString("utf8")}function oo(t){let e=f(t);return this.context.memoryLimit.use(e.length),ro(e)}function ao(t){let e=f(t);return this.context.memoryLimit.use(e.length),no(e)}var lo=Object.freeze({__proto__:null,base64_encode:oo,base64_decode:ao}),oi={...kr,...Hr,...Xr,...Rn,...Dn,...io,...lo,...Js},Be=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}},As=["offset","limit","reversed"],Ue=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 j(this.tokenizer,i.options.keyValueSeparator),this.templates=[],this.elseTemplates=[];let c,u=r.parseStream(s).on("start",()=>c=this.templates).on("tag:else",h=>{ze(h.args),c=this.elseTemplates}).on("tag:endfor",h=>{ze(h.args),u.stop()}).on("template",h=>c.push(h)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});u.start()}*render(e,s){let i=this.liquid.renderer,r=de(yield k(this.collection,e));if(!r.length){yield i.renderTemplates(this.elseTemplates,e,s);return}let n="continue-"+this.variable+"-"+this.collection.getText();e.push({continue:e.getRegister(n)});let o=yield this.hash.render(e);e.pop(),r=(this.liquid.options.orderedFilterParameters?Object.keys(o).filter(u=>As.includes(u)):As.filter(u=>o[u]!==void 0)).reduce((u,h)=>h==="offset"?ho(u,o.offset):h==="limit"?uo(u,o.limit):co(u),r),e.setRegister(n,(o.offset||0)+r.length);let c={forloop:new oe(r.length,this.collection.getText(),this.variable)};e.push(c);for(let u of r){if(c[this.variable]=u,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))v(e)&&(yield e)}blockScope(){return[this.variable,"forloop"]}};function co(t){return[...t].reverse()}function ho(t,e){return t.slice(e)}function uo(t,e){return t.slice(0,e)}var He=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(W(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}},We=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 u=[];for(;!c.tokenizer.end();)u.push(c.tokenizer.readValueOrThrow()),c.tokenizer.skipBlank(),c.tokenizer.peek()===","?c.tokenizer.readTo(","):c.tokenizer.readTo("or");this.branches.push({values:u,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 k(a,e,e.opts.lenientIf);if(C(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}},Ye=class extends b{constructor(e,s,i){for(super(e,s,i);s.length;){let r=s.shift();if(W(r)&&r.name==="endcomment")return}throw new Error(`tag ${e.getText()} not closed`)}render(){}},Je=class extends b{constructor(e,s,i,r){super(e,s,i);let n=this.tokenizer;for(this.file=es(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 u=n.p,h=n.readIdentifier(),p;h.content==="as"?p=n.readIdentifier():n.p=u,this[a.content]={value:c,alias:p&&p.content},n.skipBlank(),n.peek()===","&&n.advance();continue}}n.p=o;break}this.hash=new j(n,i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r}=this,n=yield ts(this.file,e,i);_(n,()=>`illegal file path "${n}"`);let o=e.spawn(),a=o.bottom();if(Ie(a,yield r.render(e)),this.with){let{value:c,alias:u}=this.with;a[u||n]=yield k(c,e)}if(this.for){let{value:c,alias:u}=this.for,h=de(yield k(c,e));a.forloop=new oe(h.length,c.getText(),u);for(let p of h){a[u]=p;let g=yield i._parsePartialFile(n,o.sync,this.currentFile);yield i.renderer.renderTemplates(g,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&&d(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(d(this.file)){let e=Object.keys(this.hash.hash);if(this.with){let{value:s,alias:i}=this.with;d(i)?e.push([i,s]):d(this.file)&&e.push([this.file,s])}if(this.for){let{value:s,alias:i}=this.for;d(i)?e.push([i,s]):d(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))v(e)&&(yield e);if(this.with){let{value:e}=this.with;v(e)&&(yield e)}if(this.for){let{value:e}=this.for;v(e)&&(yield e)}}};function es(t,e,s){if(e.options.dynamicPartials){let n=t.readValue();if(t.assert(n,"illegal file path"),n.getText()==="none")return;if(je(n)){let o=s.parse(Ws(n));return Ns(o)}return n}let i=[...t.readFileNameTemplate(e.options)],r=Ns(s.parseTokens(i));return r==="none"?void 0:r}function Ns(t){return t.length===1&&gt(t[0].token)?t[0].token.getContent():t}function*ts(t,e,s){return typeof t=="string"?t:Array.isArray(t)?s.renderer.renderTemplates(t,e):yield k(t,e)}var Ze=class extends b{constructor(e,s,i,r){super(e,s,i);let{tokenizer:n}=e;this.file=es(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 j(n,i.options.jekyllInclude||i.options.keyValueSeparator)}*render(e,s){let{liquid:i,hash:r,withVar:n}=this,{renderer:o}=i,a=yield ts(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let c=e.saveRegister("blocks","blockMode");e.setRegister("blocks",{}),e.setRegister("blockMode",Q.OUTPUT);let u=yield r.render(e);n&&(u[a]=yield k(n,e));let h=yield i._parsePartialFile(a,e.sync,this.currentFile);e.push(e.opts.jekyllInclude?{include:u}:u),yield o.renderTemplates(h,e,s),e.pop(),e.restoreRegister(c)}*children(e,s){return e&&d(this.file)?yield this.liquid._parsePartialFile(this.file,s,this.currentFile):[]}partialScope(){if(d(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(v),v(this.file)&&(yield this.file),v(this.withVar)&&(yield this.withVar)}},Qe=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;ut(i[this.variable])||(i[this.variable]=0),s.write(f(--i[this.variable]))}*localScope(){yield this.identifier}},Ke=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 k(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 k(a,e)}*arguments(){yield*this.candidates,this.group&&(yield this.group)}},Ge=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=>{ze(o.args),_(!this.elseTemplates,"duplicated else"),n=this.elseTemplates=[]}).on("tag:endif",function(o){ze(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(U(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)}},Xe=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;ut(i[this.variable])||(i[this.variable]=0);let r=i[this.variable];i[this.variable]++,s.write(f(r))}*localScope(){yield this.identifier}},et=class extends b{constructor(e,s,i,r){super(e,s,i),this.file=es(this.tokenizer,this.liquid,r),this.currentFile=e.file,this.args=new j(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",Q.OUTPUT),yield o.renderTemplates(this.templates,e,s);return}let a=yield ts(this.file,e,i);_(a,()=>`illegal file path "${a}"`);let c=yield i._parseLayoutFile(a,e.sync,this.currentFile);e.setRegister("blockMode",Q.STORE);let u=yield o.renderTemplates(this.templates,e),h=e.getRegister("blocks");h[""]===void 0&&(h[""]=(p,g)=>g.write(u)),e.setRegister("blockMode",Q.OUTPUT),e.push(yield r.render(e)),yield o.renderTemplates(c,e,s),e.pop()}*children(e){let s=this.templates.slice();return e&&d(this.file)&&s.push(...yield this.liquid._parsePartialFile(this.file,!0,this.currentFile)),s}*arguments(){for(let e of Object.values(this.args.hash))v(e)&&(yield e);v(this.file)&&(yield this.file)}partialScope(){if(d(this.file))return{name:this.file,isolated:!1,scope:Object.keys(this.args.hash)}}},tt=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(W(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")===Q.STORE?e.getRegister("blocks")[this.block]=i:yield i(new Ae,s)}getBlockRender(e){let{liquid:s,templates:i}=this,r=e.getRegister("blocks")[this.block],n=function*(o,a){e.push({block:o}),yield s.renderer.renderTemplates(i,e,a),e.pop()};return r?(o,a)=>r(new Ae(c=>n(o,c)),a):n}*children(){return this.templates}blockScope(){return["block"]}},st=class extends b{constructor(e,s,i){for(super(e,s,i),this.tokens=[];s.length;){let r=s.shift();if(W(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("")}},Ht=class extends oe{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}},it=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 j(this.tokenizer,i.options.keyValueSeparator),this.templates=[];let c,u=r.parseStream(s).on("start",()=>c=this.templates).on("tag:endtablerow",()=>u.stop()).on("template",h=>c.push(h)).on("end",()=>{throw new Error(`tag ${e.getText()} not closed`)});u.start()}*render(e,s){let i=de(yield k(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,u=new Ht(i.length,a,this.collection.getText(),this.variable),h={tablerowloop:u};e.push(h);for(let p=0;p<i.length;p++,u.next())h[this.variable]=i[p],u.col0()===0&&(u.row()!==1&&s.write("</tr>"),s.write(`<tr class="row${u.row()}">`)),s.write(`<td class="col${u.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))v(e)&&(yield e)}blockScope(){return[this.variable,"tablerowloop"]}},rt=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:pe,templates:n=[]})).on("tag:elsif",a=>{if(o>0){n=[];return}this.branches.push({value:new F(a.tokenizer.readFilteredValue(),this.liquid),test:U,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)}},nt=class extends b{render(e,s){e.breakCalled=!0}},ot=class extends b{render(e,s){e.continueCalled=!0}},at=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)}},lt=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}},ct=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(){}},ai={assign:Be,for:Ue,capture:He,case:We,comment:Ye,include:Ze,render:Je,decrement:Qe,increment:Xe,cycle:Ke,if:Ge,layout:et,block:tt,raw:st,tablerow:it,unless:rt,break:nt,continue:ot,echo:at,liquid:lt,"#":ct},Wt=class t{constructor(e={}){this.renderer=new $t,this.filters={},this.tags={},this.options=Tr(e),this.parser=new N(this),gs(ai,(s,i)=>this.registerTag(i,s)),gs(oi,(s,i)=>this.registerFilter(i,s))}parse(e,s){return new N(this).parse(e,s)}_render(e,s,i){let r=s instanceof B?s:new B(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 E(this._render(e,s,{...i,sync:!0}))}renderToNodeStream(e,s,i={}){let r=new B(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 E(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 E(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 E(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 B?s:new B(s,this.options);return i.value(r)}async evalValue(e,s){return q(this._evalValue(e,s))}evalValueSync(e,s){return E(this._evalValue(e,s))}registerFilter(e,s){this.filters[e]=s}registerTag(e,s){this.tags[e]=T(s)?s:Lr(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=Te(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 $(e,s)}analyzeSync(e,s={}){return P(e,s)}async parseAndAnalyze(e,s,i={}){return $(this.parse(e,s),i)}parseAndAnalyzeSync(e,s,i={}){return P(this.parse(e,s),i)}async variables(e,s={}){let i=await $(d(e)?this.parse(e):e,s);return Object.keys(i.variables)}variablesSync(e,s={}){let i=P(d(e)?this.parse(e):e,s);return Object.keys(i.variables)}async fullVariables(e,s={}){let i=await $(d(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=P(d(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 $(d(e)?this.parse(e):e,s);return Array.from(we(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}variableSegmentsSync(e,s={}){let i=P(d(e)?this.parse(e):e,s);return Array.from(we(Object.values(i.variables).flatMap(r=>r.map(n=>n.toArray()))))}async globalVariables(e,s={}){let i=await $(d(e)?this.parse(e):e,s);return Object.keys(i.globals)}globalVariablesSync(e,s={}){let i=P(d(e)?this.parse(e):e,s);return Object.keys(i.globals)}async globalFullVariables(e,s={}){let i=await $(d(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=P(d(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 $(d(e)?this.parse(e):e,s);return Array.from(we(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}globalVariableSegmentsSync(e,s={}){let i=P(d(e)?this.parse(e):e,s);return Array.from(we(Object.values(i.globals).flatMap(r=>r.map(n=>n.toArray()))))}},fo="10.25.0";l.AssertionError=Oe;l.AssignTag=Be;l.BlockTag=tt;l.BreakTag=nt;l.CaptureTag=He;l.CaseTag=We;l.CommentTag=Ye;l.Context=B;l.ContinueTag=ot;l.CycleTag=Ke;l.DecrementTag=Qe;l.Drop=D;l.EchoTag=at;l.Expression=De;l.Filter=ue;l.ForTag=Ue;l.Hash=j;l.IfTag=Ge;l.IncludeTag=Ze;l.IncrementTag=Xe;l.InlineCommentTag=ct;l.LayoutTag=et;l.Liquid=Wt;l.LiquidError=M;l.LiquidTag=lt;l.Output=$e;l.ParseError=_e;l.ParseStream=Ve;l.Parser=N;l.RawTag=st;l.RenderError=Fe;l.RenderTag=Je;l.TablerowTag=it;l.Tag=b;l.TagToken=ce;l.Token=L;l.TokenizationError=Se;l.Tokenizer=O;l.TypeGuards=zr;l.UndefinedVariableError=ve;l.UnlessTag=rt;l.Value=F;l.Variable=H;l.analyze=$;l.analyzeSync=P;l.assert=_;l.createTrie=vt;l.defaultOperators=Ys;l.defaultOptions=J;l.evalQuotedToken=Ws;l.evalToken=k;l.filters=oi;l.isFalsy=pe;l.isTruthy=U;l.tags=ai;l.toPromise=q;l.toValue=m;l.toValueSync=E;l.version=fo});ge();var hi=di(li());function ci(t,e){let s=new hi.Liquid;return s.render(s.parse(t),e)}async function To(t,e,s){ds(fs`Copying template from directory ${bt.path(t)} to ${bt.path(e)}`);let i=await hs(me(t,"**/*"),{dot:!0}),r=me(t,".cli-liquid-bypass"),n=[];await cs(r)&&(n=(await yt(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 ci(me(e,mt(t,a)),s),u=n.some(h=>{let p=mt(t,a),g=h.replace(/^\.\//,"");return us(p,g)||p.startsWith(g)});if(await os(a))await wt(c);else if(a.endsWith(".liquid")&&!u){await wt(rs(c));let h=await yt(a),p=await ci(h,s),g=await ls(a),w=c.replace(".liquid","");await ye(a,w),await ns(w,p),g&&await as(w,493)}else if(a.endsWith(".raw")){let h=c.replace(".raw","");await ye(a,h)}else await ye(a,c)}))}export{ci as a,To as b};
@@ -1,3 +0,0 @@
1
- import{a as l,c as a,d as B,f as C}from"./chunk-N7RBSKYT.js";import{a as I,c as d,e as Y,g as u}from"./chunk-VPRTJUIN.js";var b=d((ge,R)=>{"use strict";u();var g={},J=process.nextTick||global.setImmediate||global.setTimeout;g.nextTick=function(e){J(e)};g.parallel=function(e,r){var n=[],t=[],i=0,o=0;function c(s,f,m){f?t[s]=f:n[s]=m,o+=1,o>=i&&r((t.length>0,t),n)}Object.keys(e).forEach(function(s){i+=1;var f=e[s];g.nextTick(function(){f(c.bind(null,s),1)})})};g.promisify=function(e){return new Promise(function(r,n){e(function(t,i){if(t){!t instanceof Error&&(t=new Error(t)),n(t);return}r(i)})})};g.iterate=function(e,r,n){var t=[],i=function(){if(e.length===0){g.nextTick(n.bind(null,t));return}var o=e.shift();if(typeof o=="function"){o(function(c,s){if(c)t.push(c);else for(;s.length>0;)e.unshift(s.pop());i()});return}r(o,function(c,s){c?(t.push(c),i()):g.nextTick(n.bind(null,null,s))})};g.nextTick(i)};R.exports=g});var L=d((Ee,y)=>{u();var Q=I("child_process").execFile,X=/[-\/\\^$*+?.()|[\]{}]/g;function Z(e){return e.replace(X,"\\$&")}y.exports=function(e,r){Q("ipconfig",["/all"],function(n,t){if(n){r(n,null);return}var i=new RegExp(Z(e)).exec(t);if(!i){r("did not find interface in `ipconfig /all`",null);return}if(t=t.substring(i.index+e.length),i=/[A-Fa-f0-9]{2}(\-[A-Fa-f0-9]{2}){5}/.exec(t),!i){r("did not find a mac address",null);return}r(null,i[0].toLowerCase().replace(/\-/g,":"))})}});var A=d((Te,w)=>{u();var ee=I("child_process").execFile;w.exports=function(e,r){ee("/bin/cat",["/sys/class/net/"+e+"/address"],function(n,t){if(n){r(n,null);return}r(null,t.trim().toLowerCase())})}});var U=d((ve,M)=>{u();var re=I("child_process").execFile;M.exports=function(e,r){re("ifconfig",[e],function(n,t){if(n){r(n,null);return}var i=/[a-f0-9]{2}(:[a-f0-9]{2}){5}/.exec(t.toLowerCase());if(!i){r("did not find a mac address",null);return}r(null,i[0].toLowerCase())})}});var S=d((Ce,O)=>{u();var te=I("os"),E,N="^[a-z0-9]+$";switch(te.platform()){case"win32":N="^[a-z0-9 -]+$",E=L();break;case"linux":E=A();break;case"darwin":case"sunos":case"freebsd":E=U();break;default:console.warn("node-macaddress: Unknown os.platform(), defaulting to 'unix'."),E=U();break}var D=new RegExp(N,"i");O.exports=function(e,r){if(!D.test(e)){r(new Error(["invalid iface: '",e,"' (must conform to reg exp /",D,"/)"].join("")),null);return}E(e,r)}});var q=d((be,k)=>{"use strict";u();var ne=I("child_process").execFile;k.exports=function(e){ne("wmic",["nic","get","NetConnectionID"],function(r,n){if(r){e(r,null);return}for(var t=n.trim().replace(/\s{2,}/g,`
2
- `).split(`
3
- `).slice(1),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var K=d((Le,F)=>{u();var ie=I("child_process").execFile;F.exports=function(e){ie("/bin/ls",["/sys/class/net"],function(r,n){if(r){e(r,null);return}for(var t=n.split(/[ \t\n]+/),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var v=d((Ae,G)=>{"use strict";u();var oe=I("child_process").execFile;G.exports=function(e){oe("/sbin/ifconfig",["-l"],function(r,n){if(r){e(r,null);return}for(var t=n.split(/[ \t]+/),i=[],o=0;o<t.length;o+=1){var c=t[o].trim();c!==""&&i.push(c)}e(null,i)})}});var P=d((De,H)=>{u();var se=I("os"),_;switch(se.platform()){case"win32":_=q();break;case"linux":_=K();break;case"darwin":case"sunos":case"freebsd":_=v();break;default:console.warn("node-macaddress: Unknown os.platform(), defaulting to 'unix'."),_=v();break}H.exports=_});var j=d((Oe,$)=>{u();var ue=I("os");$.exports=function(){var e={};try{var r=ue.networkInterfaces()}catch(n){if(n.syscall==="uv_interface_addresses")return e;throw n}return Object.keys(r).forEach(function(n){var t={},i=!1;r[n].forEach(function(o){if(!o.internal){var c=typeof o.family=="number"?"ipv"+o.family:(o.family||"").toLowerCase();t[c]=o.address,i=!0,o.mac&&o.mac!=="00:00:00:00:00:00"&&(t.mac=o.mac)}}),i&&(e[n]=t)}),e}});var V=d((ke,z)=>{"use strict";u();var h=b(),p={};p.getMacAddress=S();p.getAllInterfaces=P();p.networkInterfaces=j();var ae=new RegExp("^((en|eth)[0-9]+|ethernet)$","i"),ce=new RegExp("^(vboxnet[0-9]+)$","i");p.one=function(){var e=null,r=null;if(arguments.length>=1&&(typeof arguments[0]=="function"?r=arguments[0]:typeof arguments[0]=="string"&&(e=arguments[0]),arguments.length>=2&&typeof arguments[1]=="function"&&(r=arguments[1])),!r)return h.promisify(function(s){p.one(e,s)});if(e){p.getMacAddress(e,r);return}var n=p.networkInterfaces(),t={},i=[],o=[];if(Object.keys(n).forEach(function(s){o.push(s);var f=0,m=n[s];typeof m.mac=="string"&&m.mac!=="00:00:00:00:00:00"&&(t[s]=m.mac,m.ipv4&&(f+=1),m.ipv6&&(f+=1),ae.test(s)&&(f+=2),ce.test(s)&&(f-=3),i.push({name:s,score:f,mac:m.mac}))}),i.length>0){i.sort(function(s,f){var m=f.score-s.score;return m!==0?m:s.name<f.name?-1:s.name>f.name?1:0}),h.nextTick(r.bind(null,null,i[0].mac));return}o.push(p.getAllInterfaces);var c=function(s,f){if(t[s]){f(null,t[s]);return}p.getMacAddress(s,f)};h.iterate(o,c,r)};p.all=function(e){if(typeof e!="function")return h.promisify(p.all);var r=p.networkInterfaces(),n={};return Object.keys(r).forEach(function(t){r[t].mac||(n[t]=p.getMacAddress.bind(null,t))}),Object.keys(n).length===0?(typeof e=="function"&&h.nextTick(e.bind(null,null,r)),r):(h.parallel(n,function(t,i){Object.keys(i).forEach(function(o){r[o].mac=i[o]}),typeof e=="function"&&e(null,r)}),null)};z.exports=p});u();u();function x(e){return!(e===void 0||e.trim()==="")}function T(e,r){switch(e){case"bitbucket":return{branch:r.BITBUCKET_BRANCH,build:r.BITBUCKET_BUILD_NUMBER,commitSha:r.BITBUCKET_COMMIT,run:r.BITBUCKET_BUILD_NUMBER,url:`https://bitbucket.org/${r.BITBUCKET_WORKSPACE}/${r.BITBUCKET_REPO_SLUG}/pipelines/results/${r.BITBUCKET_BUILD_NUMBER}`};case"circleci":return{actor:r.CIRCLE_USERNAME,branch:r.CIRCLE_BRANCH,build:r.CIRCLE_BUILD_NUM,commitSha:r.CIRCLE_SHA1,run:r.CIRCLE_WORKFLOW_ID,url:r.CIRCLE_BUILD_URL};case"github":return{actor:r.GITHUB_ACTOR,attempt:r.GITHUB_RUN_ATTEMPT,branch:r.GITHUB_REF_NAME,build:r.GITHUB_RUN_ID,commitSha:r.GITHUB_SHA,run:r.GITHUB_RUN_ID,runNumber:r.GITHUB_RUN_NUMBER,url:`${r.GITHUB_SERVER_URL}/${r.GITHUB_REPOSITORY}/actions/runs/${r.GITHUB_RUN_ID}`};case"gitlab":return{actor:r.GITLAB_USER_LOGIN,branch:r.CI_COMMIT_REF_NAME,build:r.CI_PIPELINE_ID,commitSha:r.CI_COMMIT_SHA,commitMessage:r.CI_COMMIT_MESSAGE,run:r.CI_RUNNER_ID,url:r.CI_PIPELINE_URL};case"buildkite":return{branch:r.BUILDKITE_BRANCH,build:r.BUILDKITE_BUILD_NUMBER,commitSha:r.BUILDKITE_COMMIT,commitMessage:r.BUILDKITE_MESSAGE,run:r.BUILDKITE_BUILD_NUMBER,url:r.BUILDKITE_BUILD_URL};default:return{}}}var W=Y(V());import{homedir as fe}from"os";async function le(e){let{fileExists:r}=await import("./fs-5BDEA2KD.js");return r(e)}async function pe(e,r){let{exec:n}=await import("./system-KLXD4FXF.js");await n(e,r)}function Pe(){return!!(process.stdout.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function $e(){return fe()}function me(e=process.env){return e[a.env]==="development"}function je(e=process.env){return l(e[a.verbose])||process.argv.includes("--verbose")}async function ze(e=process.env){return Object.prototype.hasOwnProperty.call(e,a.runAsUser)?!l(e[a.runAsUser]):await le(C.executables.dev)}function Ve(e=process.env){return l(e[a.unitTest])}function We(e=process.env){return l(e[a.hostedApps])}function Ye(e=process.env){return l(e[a.noAnalytics])||l(e[a.optOutInstrumentation])||me(e)}function Je(e=process.env){return l(e[a.alwaysLogAnalytics])}function Qe(e=process.env){return l(e[a.alwaysLogMetrics])}function Xe(e=process.env){return l(e[a.firstPartyDev])}function Ze(e=process.env){return l(e[a.doctor])}function er(e=process.env){return e[a.gitpod]}function rr(e=process.env){return e[a.codespaceName]}function tr(e=process.env){return e[a.codespacePortForwardingDomain]}function nr(e=process.env){return de(e).platform!=="localhost"}function ir(e=process.env){return e[a.themeToken]}function de(e=process.env){return x(e[a.codespaces])?{platform:"codespaces",editor:!0}:x(e[a.gitpod])?{platform:"gitpod",editor:!0}:x(e[a.cloudShell])?{platform:"cloudShell",editor:!0}:{platform:"localhost",editor:!1}}async function or(){try{return await pe("git",["--version"]),!0}catch{return!1}}function sr(e=process.env){if(l(e.CI)){let r="unknown";return x(e.BITBUCKET_BUILD_NUMBER)?r="bitbucket":l(e.CIRCLECI)?r="circleci":x(e.GITHUB_ACTION)?r="github":l(e.GITLAB_CI)?r="gitlab":x(e.BUILDKITE)&&(r="buildkite"),{isCI:!0,name:r,metadata:T(r,e)}}else if(l(e.TF_BUILD))return{isCI:!0,name:"azure",metadata:T("azure",e)};return{isCI:!1}}function ur(){return W.default.one()}function ar(e=process.env){let r=e[a.themeKitAccessDomain];return x(r)?r:B}function cr(e=process.env){let r=e[a.otelURL];return x(r)?r:"https://otlp-http-production-cli.shopifysvc.com"}export{Pe as a,$e as b,me as c,je as d,ze as e,Ve as f,We as g,Ye as h,Je as i,Qe as j,Xe as k,Ze as l,er as m,rr as n,tr as o,nr as p,ir as q,de as r,or as s,sr as t,ur as u,ar as v,cr as w};
@@ -1 +0,0 @@
1
- import{Da as e}from"./chunk-SBEZBZM7.js";import{g as t}from"./chunk-VPRTJUIN.js";t();var p=class extends e{};export{p as a};
@@ -1 +0,0 @@
1
- import{a,b,c,d}from"./chunk-WXVZJJOR.js";import"./chunk-4HHXSMD7.js";import"./chunk-YZDDTYTU.js";import"./chunk-MOA33ZFO.js";import"./chunk-JUVAGMIH.js";import"./chunk-BDVAE5MS.js";import"./chunk-P6XE4MH5.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-IASVAERO.js";import"./chunk-JPGO36XP.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-V2CNCPIE.js";import"./chunk-GFEAKSGV.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{c as DidYouMeanCommands,d as DidYouMeanHook,a as findAlternativeCommand,b as shouldRunCommand};
@@ -1 +0,0 @@
1
- import{a,b}from"./chunk-VS3T5YOG.js";import"./chunk-OLZHWPZP.js";import"./chunk-HSK7YMRE.js";import"./chunk-3VZEETAV.js";import"./chunk-DJONKJSZ.js";import"./chunk-P7R7FBY2.js";import"./chunk-LX3ZOW52.js";import"./chunk-WDC3KIZT.js";import"./chunk-ELYP4KFP.js";import"./chunk-7MUKLZOL.js";import"./chunk-VBUZWRUL.js";import"./chunk-QSTEVZFQ.js";import"./chunk-5Y7GIF2W.js";import"./chunk-B2EHO7ZC.js";import"./chunk-4LNCYIS3.js";import"./chunk-LAZJ47DZ.js";import"./chunk-PRKBO42R.js";import"./chunk-GOJ2QHSR.js";import"./chunk-7BGM2GAH.js";import"./chunk-XNO6DZYP.js";import"./chunk-3TNEIDOD.js";import"./chunk-4HHXSMD7.js";import"./chunk-YZDDTYTU.js";import"./chunk-MOA33ZFO.js";import"./chunk-JUVAGMIH.js";import"./chunk-BDVAE5MS.js";import"./chunk-P6XE4MH5.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-IASVAERO.js";import"./chunk-JPGO36XP.js";import"./chunk-HZA6IAA4.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-V2CNCPIE.js";import"./chunk-GFEAKSGV.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{a as COMMANDS,b as HOOKS};
@@ -1 +0,0 @@
1
- import{Ea as a,Fa as b,Ga as c,Ha as d,Ia as e}from"./chunk-B2EHO7ZC.js";import"./chunk-4LNCYIS3.js";import"./chunk-LAZJ47DZ.js";import"./chunk-PRKBO42R.js";import"./chunk-GOJ2QHSR.js";import"./chunk-7BGM2GAH.js";import"./chunk-XNO6DZYP.js";import"./chunk-3TNEIDOD.js";import"./chunk-4HHXSMD7.js";import"./chunk-JUVAGMIH.js";import"./chunk-BDVAE5MS.js";import"./chunk-P6XE4MH5.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-IASVAERO.js";import"./chunk-JPGO36XP.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-V2CNCPIE.js";import"./chunk-GFEAKSGV.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{e as addBugsnagMetadata,c as cleanStackFrameFilePath,a as errorHandler,d as registerCleanBugsnagErrorsFromWithinPlugins,b as sendErrorToBugsnag};
@@ -1 +0,0 @@
1
- import{Ab as b,Bb as c,Cb as d,Db as e,zb as a}from"./chunk-GFEAKSGV.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{a as currentProcessIsGlobal,e as getProjectDir,d as inferPackageManagerForGlobalCLI,c as installGlobalCLIPrompt,b as installGlobalShopifyCLI};
@@ -1 +0,0 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w}from"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-VPRTJUIN.js";export{i as alwaysLogAnalytics,j as alwaysLogMetrics,h as analyticsDisabled,l as canRunDoctorRelease,t as ciPlatform,r as cloudEnvironment,o as codespacePortForwardingDomain,n as codespaceURL,k as firstPartyDev,v as getThemeKitAccessDomain,m as gitpodURL,s as hasGit,b as homeDirectory,p as isCloudEnvironment,c as isDevelopment,g as isHostedAppsMode,e as isShopify,a as isTerminalInteractive,f as isUnitTest,d as isVerbose,u as macAddress,w as opentelemetryDomain,q as themeToken};
@@ -1 +0,0 @@
1
- import{a,b,c,d,e,f}from"./chunk-XLELNRFF.js";import"./chunk-B2EHO7ZC.js";import"./chunk-4LNCYIS3.js";import"./chunk-LAZJ47DZ.js";import"./chunk-PRKBO42R.js";import"./chunk-GOJ2QHSR.js";import"./chunk-7BGM2GAH.js";import"./chunk-XNO6DZYP.js";import"./chunk-3TNEIDOD.js";import"./chunk-4HHXSMD7.js";import"./chunk-MOA33ZFO.js";import"./chunk-JUVAGMIH.js";import"./chunk-BDVAE5MS.js";import"./chunk-P6XE4MH5.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-IASVAERO.js";import"./chunk-JPGO36XP.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-V2CNCPIE.js";import"./chunk-GFEAKSGV.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{c as fetchNotifications,d as fetchNotificationsInBackground,e as filterNotifications,b as getNotifications,a as showNotificationsIfNeeded,f as stringifyFilters};
@@ -1 +0,0 @@
1
- import{a as c,b as d,c as e,d as f,e as g,f as h}from"./chunk-ELVFJ7BR.js";import"./chunk-52GC6XUT.js";import"./chunk-XLELNRFF.js";import"./chunk-B2EHO7ZC.js";import"./chunk-4LNCYIS3.js";import"./chunk-LAZJ47DZ.js";import"./chunk-PRKBO42R.js";import{q as a,r as b}from"./chunk-GOJ2QHSR.js";import"./chunk-7BGM2GAH.js";import"./chunk-XNO6DZYP.js";import"./chunk-3TNEIDOD.js";import"./chunk-4HHXSMD7.js";import"./chunk-MOA33ZFO.js";import"./chunk-JUVAGMIH.js";import"./chunk-BDVAE5MS.js";import"./chunk-P6XE4MH5.js";import"./chunk-KLMDWDT2.js";import"./chunk-5CH3B62S.js";import"./chunk-QUTQDXSL.js";import"./chunk-IASVAERO.js";import"./chunk-JPGO36XP.js";import"./chunk-PD5ZHJWI.js";import"./chunk-LDGAHMS7.js";import"./chunk-ZR76GGZ6.js";import"./chunk-EENHXSWU.js";import"./chunk-FUOIGXI4.js";import"./chunk-6M3ZYNGO.js";import"./chunk-QYR5VPQA.js";import"./chunk-V2CNCPIE.js";import"./chunk-GFEAKSGV.js";import"./chunk-CERXUPGC.js";import"./chunk-T4M5CWAO.js";import"./chunk-PRVQAHWI.js";import"./chunk-YC6G4MHD.js";import"./chunk-N7RBSKYT.js";import"./chunk-IU2ZQ6TE.js";import"./chunk-PIBY5DDZ.js";import"./chunk-VPRTJUIN.js";export{c as cliInstallCommand,a as getAutoUpgradeEnabled,h as getOutputUpdateCLIReminder,f as hasBlockingAutoUpgradeNotification,d as runCLIUpgrade,b as setAutoUpgradeEnabled,e as versionToAutoUpgrade,g as warnIfUpgradeAvailable};
@@ -1 +0,0 @@
1
- import{a}from"./chunk-7BGM2GAH.js";import"./chunk-VPRTJUIN.js";export{a as CLI_KIT_VERSION};