shopify 3.94.2 → 4.0.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.
- package/bin/run.js +5 -1
- package/dist/analytics-6IHHYAV6.js +1 -0
- package/dist/analytics-KKVP5DT3.js +1 -0
- package/dist/bootstrap.d.ts +5 -0
- package/dist/bootstrap.js +3 -0
- package/dist/chunk-22PCRFG4.js +1 -0
- package/dist/chunk-26D72ZNV.js +1 -0
- package/dist/chunk-2APPXD5Z.js +2 -0
- package/dist/chunk-2I4PRX2I.js +1 -0
- package/dist/chunk-2VQJQ36C.js +103 -0
- package/dist/chunk-323UTVMM.js +1 -0
- package/dist/chunk-3DQIVE24.js +9 -0
- package/dist/chunk-3F6NZK7S.js +2 -0
- package/dist/chunk-3LVGAQB4.js +1 -0
- package/dist/chunk-3TNEIDOD.js +1 -0
- package/dist/chunk-3VZEETAV.js +1 -0
- package/dist/chunk-4G7J6HIV.js +1 -0
- package/dist/chunk-4HHXSMD7.js +10 -0
- package/dist/chunk-4LNCYIS3.js +1 -0
- package/dist/chunk-4ZGSSQC6.js +1 -0
- package/dist/chunk-52GC6XUT.js +1 -0
- package/dist/chunk-5CH3B62S.js +2 -0
- package/dist/chunk-5Y7GIF2W.js +1 -0
- package/dist/chunk-66RJ5T7A.js +102 -0
- package/dist/chunk-6B53BWJW.js +1 -0
- package/dist/chunk-6BMMB2UO.js +1 -0
- package/dist/chunk-6HBRBQAN.js +6 -0
- package/dist/chunk-6M3ZYNGO.js +451 -0
- package/dist/chunk-6TZAAS5H.js +1 -0
- package/dist/chunk-72F3YBNA.js +1 -0
- package/dist/chunk-74HYYXXE.js +17 -0
- package/dist/chunk-75VPUOC5.js +1 -0
- package/dist/chunk-7BGM2GAH.js +1 -0
- package/dist/chunk-7UYZQN4V.js +18 -0
- package/dist/chunk-A74GETYC.js +1 -0
- package/dist/chunk-AIV5RI3X.js +1 -0
- package/dist/chunk-ALKTLKQ6.js +5 -0
- package/dist/chunk-B2EHO7ZC.js +847 -0
- package/dist/chunk-B2IVY4V5.js +1 -0
- package/dist/chunk-BDVAE5MS.js +28 -0
- package/dist/chunk-CERXUPGC.js +14 -0
- package/dist/chunk-D3TSJA5S.js +1 -0
- package/dist/chunk-D6JARNEH.js +1 -0
- package/dist/chunk-DFMQWJQ3.js +3 -0
- package/dist/chunk-DJONKJSZ.js +1 -0
- package/dist/chunk-DJQVNH7P.js +567 -0
- package/dist/chunk-DU4WR4OP.js +1 -0
- package/dist/chunk-ELVFJ7BR.js +4 -0
- package/dist/chunk-ELYP4KFP.js +8 -0
- package/dist/chunk-FFQ5EWII.js +294 -0
- package/dist/chunk-FUOIGXI4.js +1 -0
- package/dist/chunk-GD7FWXJ5.js +2 -0
- package/dist/chunk-GFEAKSGV.js +374 -0
- package/dist/chunk-GFJ7UV74.js +1 -0
- package/dist/chunk-GNPS5SBU.js +1 -0
- package/dist/chunk-GOJ2QHSR.js +1 -0
- package/dist/chunk-HSK7YMRE.js +359 -0
- package/dist/chunk-HUZUORYM.js +19 -0
- package/dist/chunk-HZA6IAA4.js +1 -0
- package/dist/chunk-IASVAERO.js +1 -0
- package/dist/chunk-IIIVWD4R.js +1 -0
- package/dist/chunk-INEU4XKS.js +6 -0
- package/dist/chunk-IOLVEXM6.js +1 -0
- package/dist/chunk-IU2ZQ6TE.js +2 -0
- package/dist/chunk-IX5ICOBV.js +7 -0
- package/dist/chunk-J3KVONB3.js +6 -0
- package/dist/chunk-JGXWQULI.js +1 -0
- package/dist/chunk-JHPRFW5B.js +19 -0
- package/dist/chunk-JLBH7RCF.js +4 -0
- package/dist/chunk-JPGO36XP.js +1 -0
- package/dist/chunk-JUVAGMIH.js +1 -0
- package/dist/chunk-JVIKCGDY.js +1 -0
- package/dist/chunk-K2WUCOQJ.js +32 -0
- package/dist/chunk-K5YV6UVF.js +4 -0
- package/dist/chunk-KBQ4LGFB.js +1 -0
- package/dist/chunk-KGXQS7LS.js +1 -0
- package/dist/chunk-KL5Z3T6L.js +1 -0
- package/dist/chunk-KLMDWDT2.js +1 -0
- package/dist/chunk-KNVM7N3U.js +1 -0
- package/dist/chunk-KWJ562F2.js +12 -0
- package/dist/chunk-LALIKZPS.js +5 -0
- package/dist/chunk-LAZJ47DZ.js +6 -0
- package/dist/chunk-LDGAHMS7.js +159 -0
- package/dist/chunk-LNHLDRC5.js +1 -0
- package/dist/chunk-LW7U753G.js +1 -0
- package/dist/chunk-LX3ZOW52.js +12 -0
- package/dist/chunk-LXFJDCNG.js +1 -0
- package/dist/chunk-MBAFWQSZ.js +7 -0
- package/dist/chunk-MOA33ZFO.js +1 -0
- package/dist/chunk-MQNYGGAM.js +1 -0
- package/dist/chunk-N5YIPQ6J.js +1 -0
- package/dist/chunk-N7RBSKYT.js +1 -0
- package/dist/chunk-NF2ABOOU.js +1 -0
- package/dist/chunk-NRAFVIU3.js +1 -0
- package/dist/chunk-OCOY5MV2.js +1 -0
- package/dist/chunk-ODNGDO4H.js +50 -0
- package/dist/chunk-OHY4ZL3U.js +2 -0
- package/dist/chunk-OLZHWPZP.js +1 -0
- package/dist/chunk-OUOYKNMY.js +1 -0
- package/dist/chunk-OXPWCC7I.js +64 -0
- package/dist/chunk-P5VVOLGV.js +1 -0
- package/dist/chunk-P6XE4MH5.js +1 -0
- package/dist/chunk-P7R7FBY2.js +3 -0
- package/dist/chunk-PD5ZHJWI.js +1 -0
- package/dist/chunk-PIBY5DDZ.js +1 -0
- package/dist/chunk-Q7ING5F5.js +1 -0
- package/dist/chunk-QFWIDATO.js +1 -0
- package/dist/chunk-QRRNOVJ3.js +1 -0
- package/dist/chunk-QSTEVZFQ.js +1 -0
- package/dist/chunk-R466TU3N.js +2 -0
- package/dist/chunk-RF2DPBA6.js +1 -0
- package/dist/chunk-RFG5RMPL.js +1 -0
- package/dist/chunk-RM5SJJN6.js +559 -0
- package/dist/chunk-RVNMVBPM.js +1 -0
- package/dist/chunk-SBEZBZM7.js +144 -0
- package/dist/chunk-SGQ6D3LU.js +15 -0
- package/dist/chunk-SRCQVUMC.js +1 -0
- package/dist/chunk-TFSBQ4RY.js +5 -0
- package/dist/chunk-TQYMC7TH.js +1 -0
- package/dist/chunk-UGDBJTLP.js +6 -0
- package/dist/chunk-UGXYQ23Y.js +1411 -0
- package/dist/chunk-UWJ73J4B.js +1 -0
- package/dist/chunk-V2CNCPIE.js +2 -0
- package/dist/chunk-VBUZWRUL.js +1 -0
- package/dist/chunk-VS3T5YOG.js +264 -0
- package/dist/chunk-VWYM4OWK.js +1 -0
- package/dist/chunk-VY6SNDKW.js +3 -0
- package/dist/chunk-WDC3KIZT.js +2 -0
- package/dist/chunk-WFXRSKRK.js +1 -0
- package/dist/chunk-WXVZJJOR.js +16 -0
- package/dist/chunk-WZBSLU4Q.js +6 -0
- package/dist/chunk-XBXMPFXM.js +1 -0
- package/dist/chunk-XEFQQPL4.js +1 -0
- package/dist/chunk-XLELNRFF.js +3 -0
- package/dist/chunk-XNO6DZYP.js +1 -0
- package/dist/chunk-Y5JKV2AI.js +1 -0
- package/dist/chunk-YC6G4MHD.js +3 -0
- package/dist/chunk-YI232QLS.js +1 -0
- package/dist/chunk-YMWHHINU.js +1 -0
- package/dist/chunk-YOZNRLFC.js +1 -0
- package/dist/chunk-YZDDTYTU.js +11 -0
- package/dist/chunk-Z35BTAM6.js +2 -0
- package/dist/chunk-ZR76GGZ6.js +5 -0
- package/dist/chunk-ZTMSBSYD.js +1 -0
- package/dist/chunk-ZV6NCNI4.js +586 -0
- package/dist/chunk-ZVJVDCIM.js +1 -0
- package/dist/cli/commands/app/app-logs/sources.js +2 -0
- package/dist/cli/commands/app/build.js +1 -0
- package/dist/cli/commands/app/bulk/cancel.js +1 -0
- package/dist/cli/commands/app/bulk/execute.js +9 -0
- package/dist/cli/commands/app/bulk/status.js +5 -0
- package/dist/cli/commands/app/config/link.js +4 -0
- package/dist/cli/commands/app/config/pull.js +1 -0
- package/dist/cli/commands/app/config/use.js +1 -0
- package/dist/cli/commands/app/config/validate.js +3 -0
- package/dist/cli/commands/app/demo/watcher.js +1 -0
- package/dist/cli/commands/app/deploy.js +22 -0
- package/dist/cli/commands/app/dev/clean.js +5 -0
- package/dist/cli/commands/app/dev.js +320 -0
- package/dist/cli/commands/app/env/pull.js +11 -0
- package/dist/cli/commands/app/env/show.js +1 -0
- package/dist/cli/commands/app/execute.js +1 -0
- package/dist/cli/commands/app/function/build.js +1 -0
- package/dist/cli/commands/app/function/info.js +16 -0
- package/dist/cli/commands/app/function/replay.js +5 -0
- package/dist/cli/commands/app/function/run.js +1 -0
- package/dist/cli/commands/app/function/schema.js +1 -0
- package/dist/cli/commands/app/function/typegen.js +1 -0
- package/dist/cli/commands/app/generate/extension.js +5 -0
- package/dist/cli/commands/app/import-custom-data-definitions.js +4 -0
- package/dist/cli/commands/app/import-extensions.js +1 -0
- package/dist/cli/commands/app/info.js +11 -0
- package/dist/cli/commands/app/init.js +10 -0
- package/dist/cli/commands/app/logs.js +2 -0
- package/dist/cli/commands/app/release.js +4 -0
- package/dist/cli/commands/app/versions/list.js +1 -0
- package/dist/cli/commands/app/webhook/trigger.js +25 -0
- package/dist/cli/commands/auth/login.js +1 -20
- package/dist/cli/commands/auth/logout.js +1 -12
- package/dist/cli/commands/cache/clear.js +1 -11
- package/dist/cli/commands/config/autoupgrade/constants.d.ts +0 -1
- package/dist/cli/commands/config/autoupgrade/constants.js +1 -6
- package/dist/cli/commands/config/autoupgrade/off.js +1 -22
- package/dist/cli/commands/config/autoupgrade/on.js +1 -22
- package/dist/cli/commands/config/autoupgrade/status.js +1 -30
- package/dist/cli/commands/debug/command-flags.js +1 -79
- package/dist/cli/commands/docs/generate.js +1 -157
- package/dist/cli/commands/doctor-release/doctor-release.js +1 -25
- package/dist/cli/commands/doctor-release/theme/index.js +1 -56
- package/dist/cli/commands/help.js +1 -26
- package/dist/cli/commands/kitchen-sink/async.js +1 -16
- package/dist/cli/commands/kitchen-sink/index.js +1 -21
- package/dist/cli/commands/kitchen-sink/prompts.js +1 -16
- package/dist/cli/commands/kitchen-sink/static.js +1 -16
- package/dist/cli/commands/notifications/generate.js +1 -11
- package/dist/cli/commands/notifications/list.js +1 -33
- package/dist/cli/commands/organization/list.js +1 -0
- package/dist/cli/commands/search.js +1 -27
- package/dist/cli/commands/theme/check.js +1 -0
- package/dist/cli/commands/theme/console.js +15 -0
- package/dist/cli/commands/theme/delete.js +7 -0
- package/dist/cli/commands/theme/dev.js +26 -0
- package/dist/cli/commands/theme/duplicate.js +32 -0
- package/dist/cli/commands/theme/info.js +1 -0
- package/dist/cli/commands/theme/init.js +8 -0
- package/dist/cli/commands/theme/language-server.js +1 -0
- package/dist/cli/commands/theme/list.js +1 -0
- package/dist/cli/commands/theme/metafields/pull.js +3 -0
- package/dist/cli/commands/theme/open.js +8 -0
- package/dist/cli/commands/theme/package.js +7 -0
- package/dist/cli/commands/theme/preview.js +1 -0
- package/dist/cli/commands/theme/profile.js +3 -0
- package/dist/cli/commands/theme/publish.js +7 -0
- package/dist/cli/commands/theme/pull.js +3 -0
- package/dist/cli/commands/theme/push.js +28 -0
- package/dist/cli/commands/theme/rename.js +6 -0
- package/dist/cli/commands/theme/share.js +3 -0
- package/dist/cli/commands/upgrade.js +1 -17
- package/dist/cli/commands/version.js +1 -10
- package/dist/command-registry.d.ts +8 -0
- package/dist/command-registry.js +1 -0
- package/dist/conf-store-U5ZITKJN.js +1 -0
- package/dist/custom-oclif-loader-DVFFWCBV.js +1 -0
- package/dist/deprecations-TU5UQJVV.js +1 -0
- package/dist/dist-2Z5TND4U.js +1 -0
- package/dist/dist-GYHFDHKP.js +1 -0
- package/dist/environments-Z5PR7DSI.js +1 -0
- package/dist/error-IJGNYKZ3.js +1 -0
- package/dist/error-handler-WSCGNS2P.js +1 -0
- package/dist/fs-5BDEA2KD.js +1 -0
- package/dist/hooks/app-init.d.ts +9 -0
- package/dist/hooks/app-init.js +1 -0
- package/dist/hooks/did-you-mean.d.ts +1 -0
- package/dist/hooks/did-you-mean.js +1 -0
- package/dist/hooks/hydrogen-init.d.ts +7 -0
- package/dist/hooks/hydrogen-init.js +1 -0
- package/dist/hooks/plugin-plugins.d.ts +1 -0
- package/dist/hooks/plugin-plugins.js +1 -0
- package/dist/hooks/postrun.js +1 -1
- package/dist/hooks/prerun.js +1 -1
- package/dist/hooks/public-metadata.d.ts +1 -0
- package/dist/hooks/public-metadata.js +1 -0
- package/dist/hooks/sensitive-metadata.d.ts +1 -0
- package/dist/hooks/sensitive-metadata.js +1 -0
- package/dist/hooks/tunnel-provider.d.ts +1 -0
- package/dist/hooks/tunnel-provider.js +1 -0
- package/dist/hooks/tunnel-start.d.ts +1 -0
- package/dist/hooks/tunnel-start.js +1 -0
- package/dist/http-proxy-node16-Q5DZMBHC.js +38 -0
- package/dist/index.js +254 -3668
- package/dist/is-global-V4ZRHQG2.js +1 -0
- package/dist/latest-version-EFWBOTWM.js +49 -0
- package/dist/lib-5L7UKDEK.js +1 -0
- package/dist/lib-C3VO2BQW.js +1 -0
- package/dist/lib-QB6I6CTC.js +1 -0
- package/dist/local-6QPX4GCJ.js +1 -0
- package/dist/local-storage-JLXBZVWO.js +1 -0
- package/dist/metadata-UDMOTRS7.js +1 -0
- package/dist/{morph-DQREIZD2.js → morph-EMYAITFM.js} +1 -1
- package/dist/node-package-manager-HAFRYGUM.js +1 -0
- package/dist/notifications-system-MP7WDOCS.js +1 -0
- package/dist/npa-ICFSA3NL.js +1 -0
- package/dist/output-YGMHXEIS.js +1 -0
- package/dist/{path-HUAU3YBW.js → path-CWUNINMX.js} +1 -1
- package/dist/{prettier-PGDJ5B7I.js → prettier-NVRHEAFO.js} +1 -1
- package/dist/system-KLXD4FXF.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typescript-K5CWIA4V.js +1 -0
- package/dist/ui-GHG3UGB3.js +1 -0
- package/dist/upgrade-OPZGPM5J.js +1 -0
- package/dist/version-D5PJZIRW.js +1 -0
- package/dist/version-KRQBMYCH.js +1 -0
- package/dist/workerd-L2EJKIAQ.js +18 -0
- package/oclif.manifest.json +5247 -6056
- package/package.json +17 -41
- package/dist/chunk-2E6Y4J4T.js +0 -3
- package/dist/chunk-45T5XUIM.js +0 -1
- package/dist/chunk-52KHWFYF.js +0 -1
- package/dist/chunk-FU2Y2M3M.js +0 -5
- package/dist/chunk-JBSYWYIP.js +0 -2
- package/dist/chunk-KVWHPGOA.js +0 -415
- package/dist/chunk-LH4VO6EV.js +0 -63
- package/dist/chunk-PRNHS74J.js +0 -847
- package/dist/chunk-RXF32AET.js +0 -396
- package/dist/chunk-SVA22NZQ.js +0 -607
- package/dist/chunk-YPE4BWWD.js +0 -3
- package/dist/error-handler-CRWXGODM.js +0 -1
- package/dist/http-proxy-node16-TTURN6MD.js +0 -38
- package/dist/lib-3WHF5XD3.js +0 -1
- package/dist/local-7MUCLBBI.js +0 -1
- package/dist/node-package-manager-GFIGZZ24.js +0 -1
- package/dist/npa-OKDXXRCU.js +0 -1
- package/dist/ui-AOFJCTTO.js +0 -1
- package/dist/workerd-VBG5LYNX.js +0 -18
- /package/dist/{chunk-KADPE3PY.js → chunk-7MUKLZOL.js} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
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={"&":"&","<":"<",">":">",'"':""","'":"'"},pr={"&":"&","<":"<",">":">",""":'"',"'":"'"};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&>(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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as i}from"./chunk-A74GETYC.js";import{b as e}from"./chunk-YZDDTYTU.js";import{g as o}from"./chunk-VPRTJUIN.js";o();var t=class extends e{static{this.description="View the UI kit components prompts"}static{this.hidden=!0}async run(){await i()}};export{t as a};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{b as j}from"./chunk-JHPRFW5B.js";import{a as H}from"./chunk-74HYYXXE.js";import{i as U,j as W,l as q}from"./chunk-2VQJQ36C.js";import{a as J}from"./chunk-2I4PRX2I.js";import{a as g,c as D}from"./chunk-KNVM7N3U.js";import{a as F}from"./chunk-B2IVY4V5.js";import{a as N}from"./chunk-26D72ZNV.js";import{m as A}from"./chunk-DFMQWJQ3.js";import{a as f,b}from"./chunk-QFWIDATO.js";import{b as C,c as M,d as L,f as $,j as k,n as x,p as _}from"./chunk-RFG5RMPL.js";import{aa as z}from"./chunk-UGXYQ23Y.js";import{O as y,ua as h,va as E}from"./chunk-B2EHO7ZC.js";import{A as P,v as d,w as p,x as O}from"./chunk-BDVAE5MS.js";import{d as R}from"./chunk-JPGO36XP.js";import{Mb as S}from"./chunk-GFEAKSGV.js";import{f as T,q as c}from"./chunk-IU2ZQ6TE.js";import{e as Y,g as v}from"./chunk-VPRTJUIN.js";v();var I=Y(z(),1);async function Ee(e,t,r,n){let o=e.environment?.[0],s=t??await y(A({store:e.store}),e.password);if(e.strict){let m=e.json?"json":"text",{offenses:u}=await j(e.path??c(),m);if(u.length>0&&u.filter(V=>V.severity===I.Severity.ERROR).length>0)throw E(new R(o?`[${o}] Theme check failed. Please fix the errors before pushing.`:"Theme check failed. Please fix the errors before pushing."))}h("theme-service:push:setup"),J({verbose:e.verbose,noColor:e.noColor});let i=e.force??!1,a=e.path?T(e.path):c();if(!await q(a)&&!await D(i,void 0,o,r))return;e.listing&&await U(a,e.listing);let l=await Z(s,e,r);l&&(h("theme-service:push:setup"),await B(l,s,{allowLive:e.allowLive??!1,environment:o,force:i,ignore:e.ignore??[],json:e.json??!1,multiEnvironment:r,nodelete:e.nodelete??!1,only:e.only??[],path:a,publish:e.publish??!1,listing:e.listing},n))}async function B(e,t,r,n){h("theme-service:push:file-system");let o=await x(e.id,t),s=W(r.path,{filters:r,listing:r.listing});h("theme-service:push:file-system");let{uploadResults:i,renderThemeSyncProgress:a}=H(e,t,o,s,r,n);await a(),r.publish&&await _(e.id,t),await G(i,e,t,r)}function w(e){for(let[t,r]of e.entries())if(!r.success)return!0;return!1}async function G(e,t,r,n){n.json?K(t,r,e,n.environment):n.publish?Q(r,e,n.environment):X(t,r,e,n.environment)}function K(e,t,r,n){let o={environment:n,theme:{id:e.id,name:e.name,role:e.role,shop:t.storeFqdn,editor_url:b(e,t),preview_url:f(e,t)}};if(w(r)){let i=`${n?`[${n}] `:""}The theme '${e.name}' was pushed with errors`;o.theme.warning=i;let a={};for(let[l,m]of r.entries())!m.success&&m.errors?.asset&&(a[l]=m.errors.asset);Object.keys(a).length>0&&(o.theme.errors=a)}S(JSON.stringify(o))}function Q(e,t,r){let n=r?[{subdued:`Environment: ${r}
|
|
2
|
+
|
|
3
|
+
`}]:[];w(t)?p({body:[...n,`Your theme was published with errors and is now live at https://${e.storeFqdn}`]}):d({body:[...n,`Your theme is now live at https://${e.storeFqdn}`]})}function X(e,t,r,n){let o=n?[{subdued:`Environment: ${n}
|
|
4
|
+
|
|
5
|
+
`}]:[],s=w(r),i=[[{link:{label:"View your theme",url:f(e,t)}}],[{link:{label:"Customize your theme at the theme editor",url:b(e,t)}}]];s?p({body:[...o,"The theme",...g(e),"was pushed with errors"],nextSteps:i}):d({body:[...o,"The theme",...g(e),"was pushed successfully."],nextSteps:i})}async function Z(e,t,r){let{live:n,development:o,unpublished:s,theme:i,environment:a,developmentContext:l}=t;if(o)return new F(e).findOrCreate(l,C);if(s){let m=i??await $("Name of the new theme");return k({name:m,role:L},e)}else{let m=await N(e,{create:!0,header:"Select a theme to push to:",filter:{live:n,theme:i}});return await ee(m.role,t.allowLive,e.storeFqdn,a,r)?m:void 0}}async function ee(e,t,r,n,o){if(e===M){if(t)return!0;if(o)return O({headline:`Environment: ${n}`,body:[`Can't push theme files to the live theme on ${r}`,"Use the --allow-live flag to push to a live theme."]}),!1;let s={message:`Push theme files to the ${e} theme on ${r}?`,confirmationMessage:"Yes, confirm changes",cancellationMessage:"Cancel"};return P(s)}return!0}export{Ee as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{F as f,fa as v,ga as A,h as d,k as w,s as m}from"./chunk-B2EHO7ZC.js";import{b as l}from"./chunk-GOJ2QHSR.js";import{d as p,g as F}from"./chunk-JPGO36XP.js";import{Gb as g,Ib as h}from"./chunk-GFEAKSGV.js";import{j as q}from"./chunk-N7RBSKYT.js";import{g as c}from"./chunk-VPRTJUIN.js";c();c();var V={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"publicApiVersions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"handle"}},{kind:"Field",name:{kind:"Name",value:"supported"}},{kind:"Field",name:{kind:"Name",value:"__typename"}}]}}]}}]};var S=new Map;async function W(t,r,e){let o="Admin",a=await b(r),n=r.storeFqdn,s=$(r);l()==="local"&&(s["x-forwarded-host"]=n,n=new m().host("app"));let i=x(n,a,r);return v({query:t,api:o,addedHeaders:s,url:i,token:r.token,variables:e})}async function E(t){let{query:r,session:e,variables:o,version:a,responseOptions:n,preferredBehaviour:s}=t,i=a??S.get(e.storeFqdn);i??(i=await b(e,s));let u=e.storeFqdn,k=$(e);l()==="local"&&(k["x-forwarded-host"]=u,u=new m().host("app"));let D={url:x(u,i,e),api:"Admin",token:e.token,addedHeaders:k},y;return"refresh"in e&&(y={type:"token_refresh",handler:e.refresh}),A({...D,query:r,variables:o,responseOptions:n,unauthorizedHandler:y,preferredBehaviour:s})}function $(t){return f(t)?{"X-Shopify-Shop":t.storeFqdn,"X-Shopify-Access-Token":t.token}:{}}async function b(t,r){let o=(await N(t,r)).reverse()[0];return S.set(t.storeFqdn,o),o}async function N(t,r){return(await R(t,r)).filter(o=>o.supported).map(o=>o.handle).sort()}async function R(t,r){try{return(await E({query:V,session:t,variables:{},version:"unstable",responseOptions:{handleErrors:!1},preferredBehaviour:r})).publicApiVersions}catch(e){if(e instanceof d&&e.response.status===403){let o=t.storeFqdn.replace(".myshopify.com","");throw new p(h`Looks like you don't have access to this dev store: (${g.link(o,`https://${t.storeFqdn}`)})`,h`If you're not the owner, create a dev store staff account for yourself`)}throw e instanceof d&&(e.response.status===401||e.response.status===404)?new p(`Error connecting to your store ${t.storeFqdn}: ${e.message} ${e.response.status} ${e.response.data}`):w(e)?new p(`Network error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`,"Check your internet connection and try again."):new F(`Unknown error connecting to your store ${t.storeFqdn}: ${e instanceof Error?e.message:String(e)}`)}}function x(t,r,e){let o=r??"unstable";return e&&f(e)?`https://${q}/cli/admin/api/${o}/graphql.json`:`https://${t}/admin/api/${o}/graphql.json`}export{W as a,E as b,N as c,R as d,x as e};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{a as o}from"./chunk-OCOY5MV2.js";import{q as i}from"./chunk-GOJ2QHSR.js";import{b as r}from"./chunk-YZDDTYTU.js";import{u as e}from"./chunk-BDVAE5MS.js";import{g as a}from"./chunk-VPRTJUIN.js";a();var t=class extends r{static{this.summary="Check whether auto-upgrade is enabled, disabled, or not yet configured."}static{this.descriptionWithMarkdown=`Check whether auto-upgrade is enabled, disabled, or not yet configured.
|
|
2
|
+
|
|
3
|
+
When auto-upgrade is enabled, Shopify CLI automatically updates to the latest version after each command.
|
|
4
|
+
|
|
5
|
+
Run \`shopify config autoupgrade on\` or \`shopify config autoupgrade off\` to configure it.
|
|
6
|
+
`}static{this.description=this.descriptionWithoutMarkdown()}async run(){i()?e({body:o.on}):e({body:o.off})}};export{t as a};
|