@templatical/editor 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/dist/{AiChatSidebar-B0-U5-sb.js → AiChatSidebar-BIKvYREk.js} +57 -56
  2. package/dist/{AiFeatureMenu-DxDwLS8B.js → AiFeatureMenu-QbD82crt.js} +23 -23
  3. package/dist/{BlockIssueBadge-C-EPqWsh.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
  4. package/dist/CloudEditor-DptuSf7A.js +1234 -0
  5. package/dist/{CollaboratorBar-DgwjisX2.js → CollaboratorBar-DrA_K69w.js} +20 -20
  6. package/dist/{CommentsSidebar-CpRLN40c.js → CommentsSidebar-D_tSGvTX.js} +158 -157
  7. package/dist/CountdownBlock-apiYUhkQ.js +92 -0
  8. package/dist/CountdownToolbar-CS0axcjz.js +210 -0
  9. package/dist/{DesignReferenceSidebar-BgPDbOsl.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
  10. package/dist/{IssuesPanel-I0z6k6-H.js → IssuesPanel-CR1MPaDE.js} +40 -40
  11. package/dist/{LoadingTrack-C7mGWPHS.js → LoadingTrack-DsecR8Rw.js} +1 -1
  12. package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
  13. package/dist/ModuleBrowserModal-D45rBj5C.js +202 -0
  14. package/dist/{ModulePreviewCanvas-Dni9kK4j.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
  15. package/dist/{NumberWithSuffix-D3fdj0iO.js → NumberWithSuffix-CrA6quxx.js} +143 -142
  16. package/dist/ParagraphEditor-1NaUJpZO.js +721 -0
  17. package/dist/{RichTextEditorContent-Q5altsx1.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
  18. package/dist/{SaveModuleDialog-C38VqN2T.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
  19. package/dist/{SnapshotHistory-ByloTpwh.js → SnapshotHistory-DslVzmSb.js} +34 -33
  20. package/dist/{TemplateScoringPanel-CUxiPtEf.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
  21. package/dist/{TestEmailModal-BvZBMBad.js → TestEmailModal-DWGniJVu.js} +22 -21
  22. package/dist/TitleEditor-D4t_gZZJ.js +193 -0
  23. package/dist/{TplModal-BYb-X5Bj.js → TplModal-Br2VG6cn.js} +14 -13
  24. package/dist/{blockTypeIcons-CyAom3iI.js → blockTypeIcons-CXhCS5WV.js} +5 -5
  25. package/dist/bundle-stats.json +8 -8
  26. package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js → AiFeatureMenu-3Slo_LGA.js} +8 -8
  27. package/dist/cdn/chunks/{AiFeatureMenu-BSoy-SoF.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
  28. package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js → BlockIssueBadge-BxwEiiF3.js} +5 -5
  29. package/dist/cdn/chunks/{BlockIssueBadge-BQDUuJxy.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
  30. package/dist/cdn/chunks/{CloudEditor-BZuzsQOZ.js → CloudEditor-DFIFWD9G.js} +163 -161
  31. package/dist/cdn/chunks/CloudEditor-DFIFWD9G.js.map +1 -0
  32. package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js → CollaboratorBar-Cu3vuN66.js} +4 -4
  33. package/dist/cdn/chunks/{CollaboratorBar-DUpSrtDr.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
  34. package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js → CountdownBlock-BEVAJQtQ.js} +3 -3
  35. package/dist/cdn/chunks/{CountdownBlock-DChGTAsH.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
  36. package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js → CountdownToolbar-CI2sQZv5.js} +4 -4
  37. package/dist/cdn/chunks/{CountdownToolbar-C6gX2SJr.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
  38. package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js → IssuesPanel-BdeDoTcn.js} +11 -11
  39. package/dist/cdn/chunks/{IssuesPanel-Bo1uhdSe.js.map → IssuesPanel-BdeDoTcn.js.map} +1 -1
  40. package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
  41. package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
  42. package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js → ModuleBrowserModal-Dz-I5zfj.js} +11 -8
  43. package/dist/cdn/chunks/{ModuleBrowserModal-a-tZRCcD.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
  44. package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js → ModulePreviewCanvas-BfinyuAN.js} +21 -21
  45. package/dist/cdn/chunks/{ModulePreviewCanvas-Bm6k0Op0.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
  46. package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js → NumberWithSuffix-CDjEa08X.js} +4 -4
  47. package/dist/cdn/chunks/{NumberWithSuffix-HTbuD3VJ.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
  48. package/dist/cdn/chunks/{ParagraphEditor-pGrfSccu.js → ParagraphEditor-B3fG0vge.js} +130 -110
  49. package/dist/cdn/chunks/ParagraphEditor-B3fG0vge.js.map +1 -0
  50. package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
  51. package/dist/cdn/chunks/{RichTextEditorContent-D7XZix_1.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
  52. package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js → SaveModuleDialog-C6UIIVAM.js} +6 -6
  53. package/dist/cdn/chunks/{SaveModuleDialog-C9PQ9x6j.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
  54. package/dist/cdn/chunks/{TitleEditor-BvFbL16O.js → TitleEditor-BiZbLYF1.js} +62 -46
  55. package/dist/cdn/chunks/TitleEditor-BiZbLYF1.js.map +1 -0
  56. package/dist/cdn/chunks/blockTypeIcons-BernVG06.js +22 -0
  57. package/dist/cdn/chunks/{blockTypeIcons-Kd1MT0u8.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
  58. package/dist/{de-C2wOXoxs.js → cdn/chunks/de-LsV0u1tP.js} +19 -1
  59. package/dist/cdn/chunks/de-LsV0u1tP.js.map +1 -0
  60. package/dist/cdn/chunks/{draggable-Bci-fq8y.js → draggable-kG-D5Xsm.js} +19 -10
  61. package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
  62. package/dist/cdn/chunks/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +18 -2
  63. package/dist/cdn/chunks/en-Bb8X1bOs.js.map +1 -0
  64. package/dist/cdn/chunks/extensions-Drp8UDc6.js +421 -0
  65. package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
  66. package/dist/cdn/chunks/{features-DU6lA8l1.js → features-Dpczf9Su.js} +1171 -994
  67. package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
  68. package/dist/cdn/chunks/{icons-BjHUZZyJ.js → icons-CuxnJiGQ.js} +170 -164
  69. package/dist/cdn/chunks/icons-CuxnJiGQ.js.map +1 -0
  70. package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
  71. package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
  72. package/dist/cdn/chunks/{media-library-Byelliig.js → media-library-CiYl_BO7.js} +556 -554
  73. package/dist/cdn/chunks/{media-library-Byelliig.js.map → media-library-CiYl_BO7.js.map} +1 -1
  74. package/dist/cdn/chunks/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +18 -2
  75. package/dist/cdn/chunks/pt-BR-BwJY_cvb.js.map +1 -0
  76. package/dist/cdn/chunks/{pusher-BICWUP2j.js → pusher-CIwiKF8H.js} +9 -6
  77. package/dist/cdn/chunks/{pusher-BICWUP2j.js.map → pusher-CIwiKF8H.js.map} +1 -1
  78. package/dist/cdn/chunks/quality-CNjGxBG0.js +2176 -0
  79. package/dist/cdn/chunks/{quality-DNnYAntR.js.map → quality-CNjGxBG0.js.map} +1 -1
  80. package/dist/cdn/chunks/{renderer-CZKO-Tav.js → renderer-CFkg8h-K.js} +40 -31
  81. package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
  82. package/dist/cdn/chunks/{src-DsqSXXjk.js → src-DRpKu4Dy.js} +11 -11
  83. package/dist/cdn/chunks/{src-DsqSXXjk.js.map → src-DRpKu4Dy.js.map} +1 -1
  84. package/dist/cdn/chunks/styles-B7wryV0l.js +3943 -0
  85. package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
  86. package/dist/cdn/chunks/{tiptap-CwScfbsM.js → tiptap-DF9PEiqH.js} +5429 -5373
  87. package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
  88. package/dist/cdn/editor.css +1 -1
  89. package/dist/cdn/editor.js +117 -115
  90. package/dist/cdn/editor.js.map +1 -1
  91. package/dist/{check-BRzXxFHr.js → check-rl7ok6uJ.js} +1 -1
  92. package/dist/{chevron-down-DmEgzmYT.js → chevron-down-BKe__NOD.js} +1 -1
  93. package/dist/{circle-alert-BStvZr3O.js → circle-alert-C8xmpMsK.js} +1 -1
  94. package/dist/{clock-Blwp_1R6.js → clock-BW4JuDCN.js} +1 -1
  95. package/dist/{cloud-_olro76D.js → cloud-BQusL53H.js} +208 -208
  96. package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
  97. package/dist/{cdn/chunks/de-C2wOXoxs.js → de-LsV0u1tP.js} +17 -3
  98. package/dist/{dist-BlG7k25W.js → dist-B5Sov3sS.js} +7 -7
  99. package/dist/dist-BEWiuOMi.js +251 -0
  100. package/dist/{dist-b7Ak-CuM.js → dist-BFmE-7hB.js} +2 -2
  101. package/dist/{dist-o73iaGqy.js → dist-BMoa33wT.js} +2 -2
  102. package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
  103. package/dist/{dist-D6x1cQeh.js → dist-BsCGIDSt.js} +103 -102
  104. package/dist/dist-CNLKj9wa.js +5 -0
  105. package/dist/{dist-DULfKmTh.js → dist-CNXDNYQn.js} +729 -695
  106. package/dist/{dist-412xXefB.js → dist-COG3IdPK.js} +3 -3
  107. package/dist/{dist-Cz79qrLL.js → dist-CQZxDvFw.js} +3 -3
  108. package/dist/{dist-BwgjpLfr.js → dist-CRsjOQM-.js} +2 -2
  109. package/dist/dist-CTT6WYJ6.js +134 -0
  110. package/dist/dist-Cqa6aeAJ.js +5 -0
  111. package/dist/{dist-BCQZZUE9.js → dist-SXJJ2v41.js} +2 -2
  112. package/dist/{dist-DhKTdU52.js → dist-itdjZraK.js} +1445 -1420
  113. package/dist/{en-dR7zfNC3.js → en-Bb8X1bOs.js} +17 -1
  114. package/dist/extensions-DwaZAqm6.js +423 -0
  115. package/dist/{image-up-BFPbw_Zq.js → image-up-BwBCmQ4P.js} +1 -1
  116. package/dist/index.d.ts +17 -0
  117. package/dist/{info-B_qLEBN2.js → info-TCn7uWR5.js} +1 -1
  118. package/dist/keys-Cv8-8GsD.js +10 -0
  119. package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
  120. package/dist/{list-checks-CGg7JxPm.js → list-checks-CSrOWNgq.js} +1 -1
  121. package/dist/{loader-circle-CDF8eR_Q.js → loader-circle-BLmicnPG.js} +1 -1
  122. package/dist/{message-circle-C3cHsCJl.js → message-circle-C9hHMQCI.js} +1 -1
  123. package/dist/{pt-BR-BZ86xqK6.js → pt-BR-BwJY_cvb.js} +17 -1
  124. package/dist/{refresh-cw-Butml7Q4.js → refresh-cw-D1JQ1LNa.js} +1 -1
  125. package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
  126. package/dist/scan-line-DgijVq9y.js +31 -0
  127. package/dist/{send-k7npFJNO.js → send-DjPdq69F.js} +1 -1
  128. package/dist/{shield-check-CV6GbmCu.js → shield-check-Bqluu8FS.js} +1 -1
  129. package/dist/{sparkles-C965Xop4.js → sparkles-M4azPVSP.js} +1 -1
  130. package/dist/style.css +1 -1
  131. package/dist/styles-D7fQ7f_1.js +4164 -0
  132. package/dist/templatical-editor.js +155 -152
  133. package/dist/{text-align-start-Bxnps8fH.js → text-align-start-CMya5pCQ.js} +11 -11
  134. package/dist/{trash-2-DpGb7fIt.js → trash-2-C-81rkLS.js} +1 -1
  135. package/dist/{triangle-alert-BKYElAwz.js → triangle-alert-BuRWnynk.js} +1 -1
  136. package/dist/{upload-BF7sxd1_.js → upload-CWBIoLd4.js} +1 -1
  137. package/dist/{useAliveFlag-BinvbqQR.js → useAliveFlag-CECL_OUb.js} +1 -1
  138. package/dist/{useCloudI18n-L3H2XvdW.js → useCloudI18n-AKCy98qD.js} +2 -2
  139. package/dist/{useEditorCore-DKYZ7aKk.js → useEditorCore-vcWLdnjN.js} +1480 -1310
  140. package/dist/{useI18n-CTs_bP9d.js → useI18n-C-TDeJBt.js} +2 -2
  141. package/dist/{useMergeTag-e3RSY-s3.js → useMergeTag-DSrBY0-2.js} +6 -6
  142. package/dist/usePopoverRoot-DKUDnr55.js +8 -0
  143. package/dist/{vue.runtime.esm-bundler-B2k01iQh.js → vue.runtime.esm-bundler-l0XAqiyv.js} +639 -1151
  144. package/dist/{x-CGjkjdKK.js → x-CQSvXnGR.js} +1 -1
  145. package/package.json +27 -27
  146. package/dist/CloudEditor-DaEfipBn.js +0 -1230
  147. package/dist/CountdownBlock-DO9fziwf.js +0 -92
  148. package/dist/CountdownToolbar-BeII06yJ.js +0 -210
  149. package/dist/ModuleBrowserModal-DsZRr87F.js +0 -198
  150. package/dist/ParagraphEditor-CZ-cmhX3.js +0 -700
  151. package/dist/TitleEditor-DbNOcvhR.js +0 -177
  152. package/dist/cdn/chunks/CloudEditor-BZuzsQOZ.js.map +0 -1
  153. package/dist/cdn/chunks/ParagraphEditor-pGrfSccu.js.map +0 -1
  154. package/dist/cdn/chunks/TitleEditor-BvFbL16O.js.map +0 -1
  155. package/dist/cdn/chunks/blockTypeIcons-Kd1MT0u8.js +0 -22
  156. package/dist/cdn/chunks/de-C2wOXoxs.js.map +0 -1
  157. package/dist/cdn/chunks/draggable-Bci-fq8y.js.map +0 -1
  158. package/dist/cdn/chunks/en-dR7zfNC3.js.map +0 -1
  159. package/dist/cdn/chunks/extensions-CuUjSmuA.js +0 -605
  160. package/dist/cdn/chunks/extensions-CuUjSmuA.js.map +0 -1
  161. package/dist/cdn/chunks/features-DU6lA8l1.js.map +0 -1
  162. package/dist/cdn/chunks/icons-BjHUZZyJ.js.map +0 -1
  163. package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
  164. package/dist/cdn/chunks/pt-BR-BZ86xqK6.js.map +0 -1
  165. package/dist/cdn/chunks/quality-DNnYAntR.js +0 -2176
  166. package/dist/cdn/chunks/renderer-CZKO-Tav.js.map +0 -1
  167. package/dist/cdn/chunks/styles-DiAdtiz9.js +0 -3428
  168. package/dist/cdn/chunks/styles-DiAdtiz9.js.map +0 -1
  169. package/dist/cdn/chunks/tiptap-CwScfbsM.js.map +0 -1
  170. package/dist/createLucideIcon-CmPAC-gt.js +0 -43
  171. package/dist/dist-BNEdeWub.js +0 -5
  172. package/dist/dist-Cgry6fNv.js +0 -382
  173. package/dist/dist-u0iIJH3V.js +0 -5
  174. package/dist/extensions-XPlNAKIL.js +0 -1720
  175. package/dist/keys-mFiJ5N0_.js +0 -10
  176. package/dist/scan-line-XYEqim_E.js +0 -25
  177. package/dist/styles-D0RCAWhB.js +0 -3647
  178. package/dist/usePopoverRoot-DVh7NY1q.js +0 -8
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/liquidjs@10.27.1/node_modules/liquidjs/dist/liquid.browser.mjs
1
+ //#region ../../node_modules/.pnpm/liquidjs@10.27.2/node_modules/liquidjs/dist/liquid.browser.mjs
2
2
  var e = class {
3
3
  constructor(e, t, n, r, i) {
4
4
  this.kind = e, this.input = t, this.begin = n, this.end = r, this.file = i;
@@ -30,102 +30,105 @@ function c(e) {
30
30
  return e && o(e.next) && o(e.throw) && o(e.return);
31
31
  }
32
32
  function l(e) {
33
- return e = f(e), a(e) ? e : p(e) ? "" : m(e) ? e.map((e) => l(e)).join("") : String(e);
33
+ return e = p(e), a(e) ? e : h(e) ? "" : g(e) ? e.map((e) => l(e)).join("") : String(e);
34
34
  }
35
- function u(e) {
36
- return e = f(e), m(e) ? e : a(e) && e.length > 0 ? [e] : ae(e) ? Array.from(e) : h(e) ? Object.keys(e).map((t) => [t, e[t]]) : [];
35
+ function u(e, t, n) {
36
+ if (t < 0 && (t = e.length + t), !(n && !i.call(e, t))) return e[t];
37
37
  }
38
38
  function d(e) {
39
- return e = f(e), p(e) ? [] : m(e) ? e : [e];
39
+ return e = p(e), g(e) ? e : a(e) && e.length > 0 ? [e] : ie(e) ? Array.from(e) : _(e) ? Object.keys(e).map((t) => [t, e[t]]) : [];
40
40
  }
41
41
  function f(e) {
42
+ return e = p(e), h(e) ? [] : g(e) ? e : [e];
43
+ }
44
+ function p(e) {
42
45
  return e instanceof t && o(e.valueOf) ? e.valueOf() : e;
43
46
  }
44
47
  function ee(e) {
45
- return +f(e) || 0;
48
+ return +p(e) || 0;
46
49
  }
47
- function te(e) {
50
+ function m(e) {
48
51
  return typeof e == "number";
49
52
  }
50
- function ne(e) {
51
- return e && o(e.toLiquid) ? ne(e.toLiquid()) : e;
53
+ function te(e) {
54
+ return e && o(e.toLiquid) ? te(e.toLiquid()) : e;
52
55
  }
53
- function p(e) {
56
+ function h(e) {
54
57
  return e == null;
55
58
  }
56
- function re(e) {
59
+ function ne(e) {
57
60
  return e === void 0;
58
61
  }
59
- function m(e) {
62
+ function g(e) {
60
63
  return n.call(e) === "[object Array]";
61
64
  }
62
- function ie(e) {
63
- return e && te(e.length);
65
+ function re(e) {
66
+ return e && m(e.length);
64
67
  }
65
- function ae(e) {
66
- return h(e) && Symbol.iterator in e;
68
+ function ie(e) {
69
+ return _(e) && Symbol.iterator in e;
67
70
  }
68
- function oe(e, t) {
71
+ function ae(e, t) {
69
72
  e ||= {};
70
73
  for (let n in e) if (i.call(e, n) && t(e[n], n, e) === !1) break;
71
74
  return e;
72
75
  }
73
- function se(e) {
76
+ function oe(e) {
74
77
  return e[e.length - 1];
75
78
  }
76
- function h(e) {
79
+ function _(e) {
77
80
  let t = typeof e;
78
81
  return e !== null && (t === "object" || t === "function");
79
82
  }
80
- function ce(e, t, n = 1) {
83
+ function se(e, t, n = 1) {
81
84
  let r = [];
82
85
  for (let i = e; i < t; i += n) r.push(i);
83
86
  return r;
84
87
  }
85
- function g(e, t, n = " ") {
86
- return ue(e, t, n, (e, t) => t + e);
88
+ function v(e, t, n = " ") {
89
+ return le(e, t, n, (e, t) => t + e);
87
90
  }
88
- function le(e, t, n = " ") {
89
- return ue(e, t, n, (e, t) => e + t);
91
+ function ce(e, t, n = " ") {
92
+ return le(e, t, n, (e, t) => e + t);
90
93
  }
91
- function ue(e, t, n, r) {
94
+ function le(e, t, n, r) {
92
95
  e = String(e);
93
96
  let i = t - e.length;
94
97
  return i <= 0 ? e : r(e, n.repeat(i));
95
98
  }
96
- function de(e) {
99
+ function ue(e) {
97
100
  return e;
98
101
  }
99
- function fe(e) {
102
+ function de(e) {
100
103
  return [...e].some((e) => e >= "a" && e <= "z") ? e.toUpperCase() : e.toLowerCase();
101
104
  }
102
- function pe(e, t) {
105
+ function fe(e, t) {
103
106
  return e.length > t ? e.slice(0, t - 3) + "..." : e;
104
107
  }
105
- function me(e, t) {
106
- return p(e) && p(t) ? 0 : p(e) ? 1 : p(t) || e < t ? -1 : +(e > t);
108
+ function pe(e, t) {
109
+ return h(e) && h(t) ? 0 : h(e) ? 1 : h(t) || e < t ? -1 : +(e > t);
107
110
  }
108
- function he(e, t) {
109
- return p(e) && p(t) ? 0 : p(e) ? 1 : p(t) || (e = r.call(e), t = r.call(t), e < t) ? -1 : +(e > t);
111
+ function me(e, t) {
112
+ return h(e) && h(t) ? 0 : h(e) ? 1 : h(t) || (e = r.call(e), t = r.call(t), e < t) ? -1 : +(e > t);
110
113
  }
111
- function _(e) {
114
+ function he(e) {
112
115
  return function(...t) {
113
- return e.call(this, ...t.map(f));
116
+ return e.call(this, ...t.map(p));
114
117
  };
115
118
  }
116
- function v(e) {
119
+ function y(e) {
117
120
  return function(...t) {
118
121
  return e.call(this, ...t.map(ee));
119
122
  };
120
123
  }
121
- function* ge(e) {
124
+ function* b(e) {
122
125
  let t = /* @__PURE__ */ new Set();
123
126
  for (let n of e) {
124
127
  let e = JSON.stringify(n);
125
128
  t.has(e) || (t.add(e), yield n);
126
129
  }
127
130
  }
128
- var _e = "__liquidClass__", y = class extends Error {
131
+ var ge = "__liquidClass__", x = class extends Error {
129
132
  constructor(e, t) {
130
133
  super(typeof e == "string" ? e : e.message), this.context = "", typeof e != "string" && Object.defineProperty(this, "originalError", {
131
134
  value: e,
@@ -133,36 +136,36 @@ var _e = "__liquidClass__", y = class extends Error {
133
136
  }), Object.defineProperty(this, "token", {
134
137
  value: t,
135
138
  enumerable: !1
136
- }), Object.defineProperty(this, _e, {
139
+ }), Object.defineProperty(this, ge, {
137
140
  value: "LiquidError",
138
141
  enumerable: !1
139
142
  });
140
143
  }
141
144
  update() {
142
145
  Object.defineProperty(this, "context", {
143
- value: Te(this.token),
146
+ value: we(this.token),
144
147
  enumerable: !1
145
- }), this.message = Ee(this.message, this.token), this.stack = this.message + "\n" + this.context + "\n" + this.stack, this.originalError && (this.stack += "\nFrom " + this.originalError.stack);
148
+ }), this.message = Te(this.message, this.token), this.stack = this.message + "\n" + this.context + "\n" + this.stack, this.originalError && (this.stack += "\nFrom " + this.originalError.stack);
146
149
  }
147
150
  static is(e) {
148
- return e?.[_e] === "LiquidError";
151
+ return e?.[ge] === "LiquidError";
149
152
  }
150
- }, ve = class extends y {
153
+ }, _e = class extends x {
151
154
  constructor(e, t) {
152
155
  super(e, t), this.name = "TokenizationError", super.update();
153
156
  }
154
- }, ye = class extends y {
157
+ }, ve = class extends x {
155
158
  constructor(e, t) {
156
159
  super(e, t), this.name = "ParseError", this.message = e.message, super.update();
157
160
  }
158
- }, be = class extends y {
161
+ }, ye = class extends x {
159
162
  constructor(e, t) {
160
163
  super(e, t.token), this.name = "RenderError", this.message = e.message, super.update();
161
164
  }
162
165
  static is(e) {
163
166
  return e.name === "RenderError";
164
167
  }
165
- }, xe = class extends y {
168
+ }, be = class extends x {
166
169
  constructor(e) {
167
170
  super(e[0], e[0].token), this.errors = e, this.name = "LiquidErrors";
168
171
  let t = e.length > 1 ? "s" : "";
@@ -171,32 +174,32 @@ var _e = "__liquidClass__", y = class extends Error {
171
174
  static is(e) {
172
175
  return e.name === "LiquidErrors";
173
176
  }
174
- }, Se = class extends y {
177
+ }, xe = class extends x {
175
178
  constructor(e, t) {
176
179
  super(e, t), this.name = "UndefinedVariableError", this.message = e.message, super.update();
177
180
  }
178
- }, Ce = class extends Error {
181
+ }, Se = class extends Error {
179
182
  constructor(e) {
180
183
  super(`undefined variable: ${e}`), this.name = "InternalUndefinedVariableError", this.variableName = e;
181
184
  }
182
- }, we = class extends Error {
185
+ }, Ce = class extends Error {
183
186
  constructor(e) {
184
187
  super(e), this.name = "AssertionError", this.message = e + "";
185
188
  }
186
189
  };
187
- function Te(e) {
190
+ function we(e) {
188
191
  let [t, n] = e.getPosition(), r = e.input.split("\n"), i = Math.max(t - 2, 1), a = Math.min(t + 3, r.length);
189
- return ce(i, a + 1).map((e) => {
190
- let i = `${e === t ? ">> " : " "}${g(String(e), String(a).length)}| `, o = e === t ? "\n" + g("^", n + i.length) : "";
192
+ return se(i, a + 1).map((e) => {
193
+ let i = `${e === t ? ">> " : " "}${v(String(e), String(a).length)}| `, o = e === t ? "\n" + v("^", n + i.length) : "";
191
194
  return i += r[e - 1], i += o, i;
192
195
  }).join("\n");
193
196
  }
194
- function Ee(e, t) {
197
+ function Te(e, t) {
195
198
  t.file && (e += `, file:${t.file}`);
196
199
  let [n, r] = t.getPosition();
197
200
  return e += `, line:${n}, col:${r}`, e;
198
201
  }
199
- var b = [
202
+ var S = [
200
203
  0,
201
204
  0,
202
205
  0,
@@ -325,21 +328,21 @@ var b = [
325
328
  0,
326
329
  0,
327
330
  0
328
- ], De = 1, x = 4, Oe = 8, ke = 16, Ae = 32, je = 64, Me = 128;
329
- function S(e) {
331
+ ], Ee = 1, C = 4, De = 8, Oe = 16, ke = 32, Ae = 64, je = 128;
332
+ function Me(e) {
330
333
  let t = e.charCodeAt(0);
331
- return t >= 128 ? !b[t] : !!(b[t] & De);
334
+ return t >= 128 ? !S[t] : !!(S[t] & Ee);
332
335
  }
333
- b[160] = b[5760] = b[6158] = b[8192] = b[8193] = b[8194] = b[8195] = b[8196] = b[8197] = b[8198] = b[8199] = b[8200] = b[8201] = b[8202] = b[8232] = b[8233] = b[8239] = b[8287] = b[12288] = x, b[8220] = b[8221] = Me;
334
- function C(e, t) {
335
- if (!e) throw new we(typeof t == "function" ? t() : t || `expect ${e} to be true`);
336
+ S[160] = S[5760] = S[6158] = S[8192] = S[8193] = S[8194] = S[8195] = S[8196] = S[8197] = S[8198] = S[8199] = S[8200] = S[8201] = S[8202] = S[8232] = S[8233] = S[8239] = S[8287] = S[12288] = C, S[8220] = S[8221] = je;
337
+ function w(e, t) {
338
+ if (!e) throw new Ce(typeof t == "function" ? t() : t || `expect ${e} to be true`);
336
339
  }
337
- function w(e, t = `unexpected ${JSON.stringify(e)}`) {
338
- C(!e, t);
340
+ function T(e, t = `unexpected ${JSON.stringify(e)}`) {
341
+ w(!e, t);
339
342
  }
340
343
  var Ne = class extends t {
341
344
  equals(e) {
342
- return p(f(e));
345
+ return h(p(e));
343
346
  }
344
347
  gt() {
345
348
  return !1;
@@ -358,7 +361,7 @@ var Ne = class extends t {
358
361
  }
359
362
  }, Pe = class e extends t {
360
363
  equals(t) {
361
- return t instanceof e ? !1 : (t = f(t), a(t) || m(t) ? t.length === 0 : h(t) ? Object.keys(t).length === 0 : !1);
364
+ return t instanceof e ? !1 : (t = p(t), a(t) || g(t) ? t.length === 0 : _(t) ? Object.keys(t).length === 0 : !1);
362
365
  }
363
366
  gt() {
364
367
  return !1;
@@ -380,7 +383,7 @@ var Ne = class extends t {
380
383
  }
381
384
  }, Fe = class e extends Pe {
382
385
  equals(e) {
383
- return e === !1 || p(f(e)) ? !0 : a(e) ? /^\s*$/.test(e) : super.equals(e);
386
+ return e === !1 || h(p(e)) ? !0 : a(e) ? /^\s*$/.test(e) : super.equals(e);
384
387
  }
385
388
  static is(t) {
386
389
  return t instanceof e;
@@ -429,7 +432,7 @@ var Ne = class extends t {
429
432
  this.buffer = "";
430
433
  }
431
434
  write(e) {
432
- e = f(e), typeof e != "string" && this.buffer === "" ? this.buffer = e : this.buffer = l(this.buffer) + l(e);
435
+ e = p(e), typeof e != "string" && this.buffer === "" ? this.buffer = e : this.buffer = l(this.buffer) + l(e);
433
436
  }
434
437
  }, Be = class extends t {
435
438
  constructor(e = () => "") {
@@ -440,7 +443,7 @@ var Ne = class extends t {
440
443
  return yield this.superBlockRender(e), e.buffer;
441
444
  }
442
445
  };
443
- function T(e) {
446
+ function E(e) {
444
447
  return e && o(e.equals) && o(e.gt) && o(e.geq) && o(e.lt) && o(e.leq);
445
448
  }
446
449
  var Ve = new Ne(), He = {
@@ -459,7 +462,7 @@ function We(e) {
459
462
  let e = n;
460
463
  for (let n = 0; n < t.length; n++) {
461
464
  let r = t[n];
462
- e[r] = e[r] || {}, n === t.length - 1 && S(t[n]) && (e[r].needBoundary = !0), e = e[r];
465
+ e[r] = e[r] || {}, n === t.length - 1 && Me(t[n]) && (e[r].needBoundary = !0), e = e[r];
463
466
  }
464
467
  e.data = r, e.end = !0;
465
468
  }
@@ -471,7 +474,7 @@ var Ge = function() {
471
474
  return e;
472
475
  }, Ge.apply(this, arguments);
473
476
  };
474
- function E(e, t, n, r) {
477
+ function D(e, t, n, r) {
475
478
  function i(e) {
476
479
  return e instanceof n ? e : new n(function(t) {
477
480
  t(e);
@@ -502,15 +505,15 @@ function Ke(e, t) {
502
505
  let n = t || e;
503
506
  return (t, ...r) => t ? n(...r) : e(...r);
504
507
  }
505
- function D(e) {
506
- return E(this, void 0, void 0, function* () {
508
+ function O(e) {
509
+ return D(this, void 0, void 0, function* () {
507
510
  if (!c(e)) return e;
508
511
  let t, n = !1, r = "next";
509
512
  do {
510
513
  let i = e[r](t);
511
514
  n = !!i.done, t = i.value, r = "next";
512
515
  try {
513
- c(t) && (t = D(t)), s(t) && (t = yield t);
516
+ c(t) && (t = O(t)), s(t) && (t = yield t);
514
517
  } catch (e) {
515
518
  r = "throw", t = e;
516
519
  }
@@ -518,13 +521,13 @@ function D(e) {
518
521
  return t;
519
522
  });
520
523
  }
521
- function O(e) {
524
+ function k(e) {
522
525
  if (!c(e)) return e;
523
526
  let t, n = !1, r = "next";
524
527
  do {
525
528
  let i = e[r](t);
526
529
  if (n = !!i.done, t = i.value, r = "next", c(t)) try {
527
- t = O(t);
530
+ t = k(t);
528
531
  } catch (e) {
529
532
  r = "throw", t = e;
530
533
  }
@@ -595,7 +598,7 @@ var et = {
595
598
  }, tt = /* @__PURE__ */ new Set("aAbBceklpP");
596
599
  function nt(e, t) {
597
600
  let n = Math.abs(e.getTimezoneOffset()), r = Math.floor(n / 60), i = n % 60;
598
- return (e.getTimezoneOffset() > 0 ? "-" : "+") + g(r, 2, "0") + (t.flags[":"] ? ":" : "") + g(i, 2, "0");
601
+ return (e.getTimezoneOffset() > 0 ? "-" : "+") + v(r, 2, "0") + (t.flags[":"] ? ":" : "") + v(i, 2, "0");
599
602
  }
600
603
  var rt = {
601
604
  a: (e) => e.getShortWeekdayName(),
@@ -616,8 +619,8 @@ var rt = {
616
619
  M: (e) => e.getMinutes(),
617
620
  N: (e, t) => {
618
621
  var n;
619
- let r = Number(t.width) || 9, i = String(e.getMilliseconds()).slice(0, r);
620
- return (n = t.memoryLimit) == null || n.use(r - i.length), le(i, r, "0");
622
+ let r = Number(t.width) || 9, i = v(String(e.getMilliseconds()), 3, "0").slice(0, r);
623
+ return (n = t.memoryLimit) == null || n.use(r - i.length), ce(i, r, "0");
621
624
  },
622
625
  p: (e) => e.getHours() < 12 ? "AM" : "PM",
623
626
  P: (e) => e.getHours() < 12 ? "am" : "pm",
@@ -655,7 +658,7 @@ function at(e, t, n) {
655
658
  modifier: o,
656
659
  memoryLimit: n
657
660
  })), d = tt.has(s) ? " " : "0", f = Number(a) || et[s] || 0;
658
- return l["^"] ? u = u.toUpperCase() : l["#"] && (u = fe(u)), l._ ? d = " " : l[0] && (d = "0"), l["-"] && (f = 0), n?.use(Number(f) - u.length), g(u, f, d);
661
+ return l["^"] ? u = u.toUpperCase() : l["#"] && (u = de(u)), l._ ? d = " " : l[0] && (d = "0"), l["-"] && (f = 0), n?.use(Number(f) - u.length), v(u, f, d);
659
662
  }
660
663
  function ot() {
661
664
  return typeof Intl < "u" ? Intl.DateTimeFormat : void 0;
@@ -681,7 +684,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
681
684
  "Thursday",
682
685
  "Friday",
683
686
  "Saturday"
684
- ], ft = dt.map((e) => e.slice(0, 3)), k = class e {
687
+ ], ft = dt.map((e) => e.slice(0, 3)), A = class e {
685
688
  constructor(t, n, r) {
686
689
  this.locale = n, this.DateTimeFormat = ot(), this.date = new Date(t), this.timezoneFixed = r !== void 0, r === void 0 && (r = this.date.getTimezoneOffset()), this.timezoneOffset = a(r) ? e.getTimezoneOffset(r, this.date) : r, this.timezoneName = a(r) ? r : "";
687
690
  let i = (this.date.getTimezoneOffset() - this.timezoneOffset) * st, o = this.date.getTime() + i;
@@ -766,17 +769,17 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
766
769
  this.base = 0, this.message = `${e} limit exceeded`, this.limit = t;
767
770
  }
768
771
  use(e) {
769
- +e > 0 && (C(this.base + +e <= this.limit, this.message), this.base += +e);
772
+ +e > 0 && (w(this.base + +e <= this.limit, this.message), this.base += +e);
770
773
  }
771
774
  check(e) {
772
- +e > 0 && C(+e <= this.limit, this.message);
775
+ +e > 0 && w(+e <= this.limit, this.message);
773
776
  }
774
777
  }, mt = class extends e {
775
778
  constructor(e, [t, n], r, i, a, o, s, c) {
776
779
  super(e, r, i, a, c), this.trimLeft = !1, this.trimRight = !1;
777
780
  let l = r[t] === "-", u = r[n - 1] === "-", d = l ? t + 1 : t, f = u ? n - 1 : n;
778
- for (; d < f && b[r.charCodeAt(d)] & x;) d++;
779
- for (; f > d && b[r.charCodeAt(f - 1)] & x;) f--;
781
+ for (; d < f && S[r.charCodeAt(d)] & C;) d++;
782
+ for (; f > d && S[r.charCodeAt(f - 1)] & C;) f--;
780
783
  this.contentRange = [d, f], this.trimLeft = l || o, this.trimRight = u || s;
781
784
  }
782
785
  get content() {
@@ -785,7 +788,7 @@ var st = 6e4, ct = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, lt = [
785
788
  }, ht = class extends mt {
786
789
  constructor(e, t, n, r, i) {
787
790
  let { trimTagLeft: a, trimTagRight: o, tagDelimiterLeft: s, tagDelimiterRight: c } = r, [l, u] = [t + s.length, n - c.length];
788
- super(q.Tag, [l, u], e, t, n, a, o, i), this.tokenizer = new I(e, r.operators, i, 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]);
791
+ super(q.Tag, [l, u], e, t, n, a, o, i), this.tokenizer = new L(e, r.operators, i, 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]);
789
792
  }
790
793
  }, gt = class extends mt {
791
794
  constructor(e, t, n, r, i) {
@@ -895,7 +898,7 @@ var Mt = class extends e {
895
898
  }
896
899
  }, Pt = class extends mt {
897
900
  constructor(e, t, n, r, i) {
898
- super(q.Tag, [t, n], e, t, n, !1, !1, i), this.tokenizer = new I(e, r.operators, i, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank();
901
+ super(q.Tag, [t, n], e, t, n, !1, !1, i), this.tokenizer = new L(e, r.operators, i, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank();
899
902
  }
900
903
  get args() {
901
904
  return this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
@@ -911,7 +914,7 @@ function Lt() {
911
914
  var Rt = class {
912
915
  renderTemplatesToNodeStream(e, t) {
913
916
  let n = new Re();
914
- return Promise.resolve().then(() => D(this.renderTemplates(e, t, n))).then(() => n.end(), (e) => n.error(e)), n.stream;
917
+ return Promise.resolve().then(() => O(this.renderTemplates(e, t, n))).then(() => n.end(), (e) => n.error(e)), n.stream;
915
918
  }
916
919
  *renderTemplates(e, t, n) {
917
920
  n ||= t.opts.keepOutputType ? new ze() : new Le(), t.renderLimit.check(Lt().now());
@@ -922,12 +925,12 @@ var Rt = class {
922
925
  let e = yield i.render(t, n);
923
926
  if (e && n.write(e), t.breakCalled || t.continueCalled) break;
924
927
  } catch (e) {
925
- let n = y.is(e) ? e : new be(e, i);
928
+ let n = x.is(e) ? e : new ye(e, i);
926
929
  if (t.opts.catchAllErrors) r.push(n);
927
930
  else throw n;
928
931
  }
929
932
  }
930
- if (r.length) throw new xe(r);
933
+ if (r.length) throw new be(r);
931
934
  return n.buffer;
932
935
  }
933
936
  }, zt = class {
@@ -935,9 +938,9 @@ var Rt = class {
935
938
  this.postfix = [...Ut(e)];
936
939
  }
937
940
  *evaluate(e, t) {
938
- C(e, "unable to evaluate: context not defined");
941
+ w(e, "unable to evaluate: context not defined");
939
942
  let n = [];
940
- for (let r of this.postfix) if (Vn(r)) {
943
+ for (let r of this.postfix) if (Un(r)) {
941
944
  let t = n.pop(), i;
942
945
  if (St[r.operator] === 1) i = yield e.opts.operators[r.operator](t, e);
943
946
  else {
@@ -945,87 +948,87 @@ var Rt = class {
945
948
  i = yield e.opts.operators[r.operator](a, t, e);
946
949
  }
947
950
  n.push(i);
948
- } else n.push(yield A(r, e, t));
951
+ } else n.push(yield j(r, e, t));
949
952
  return n[0];
950
953
  }
951
954
  valid() {
952
955
  return !!this.postfix.length;
953
956
  }
954
957
  };
955
- function* A(e, t, n = !1) {
958
+ function* j(e, t, n = !1) {
956
959
  if (e) {
957
960
  if ("content" in e) return e.content;
958
- if (Kn(e)) return yield Bt(e, t, n);
959
- if (Jn(e)) return yield Ht(e, t);
961
+ if (Jn(e)) return yield Bt(e, t, n);
962
+ if (Xn(e)) return yield Ht(e, t);
960
963
  }
961
964
  }
962
965
  function* Bt(e, t, n) {
963
966
  let r = [];
964
- for (let n of e.props) r.push(yield A(n, t, !1));
967
+ for (let n of e.props) r.push(yield j(n, t, !1));
965
968
  try {
966
969
  if (e.variable) {
967
- let i = yield A(e.variable, t, n);
970
+ let i = yield j(e.variable, t, n);
968
971
  return yield t._getFromScope(i, r);
969
972
  } else return yield t._get(r);
970
973
  } catch (t) {
971
974
  if (n && t.name === "InternalUndefinedVariableError") return null;
972
- throw new Se(t, e);
975
+ throw new xe(t, e);
973
976
  }
974
977
  }
975
978
  function Vt(e) {
976
979
  return e.content;
977
980
  }
978
981
  function* Ht(e, t) {
979
- let n = yield A(e.lhs, t), r = yield A(e.rhs, t);
980
- return t.memoryLimit.use(r - n + 1), ce(+n, +r + 1);
982
+ let n = yield j(e.lhs, t), r = yield j(e.rhs, t);
983
+ return t.memoryLimit.use(r - n + 1), se(+n, +r + 1);
981
984
  }
982
985
  function* Ut(e) {
983
986
  let t = [];
984
- for (let n of e) if (Vn(n)) {
987
+ for (let n of e) if (Un(n)) {
985
988
  for (; t.length && t[t.length - 1].getPrecedence() > n.getPrecedence();) yield t.pop();
986
989
  t.push(n);
987
990
  } else yield n;
988
991
  for (; t.length;) yield t.pop();
989
992
  }
990
- function j(e, t) {
991
- return !M(e, t);
992
- }
993
993
  function M(e, t) {
994
- return e = f(e), t.opts.jsTruthy ? !e : e === !1 || e == null;
994
+ return !Wt(e, t);
995
995
  }
996
- var Wt = {
996
+ function Wt(e, t) {
997
+ return e = p(e), t.opts.jsTruthy ? !e : e === !1 || e == null;
998
+ }
999
+ var Gt = {
997
1000
  "==": N,
998
1001
  "!=": (e, t) => !N(e, t),
999
- ">": (e, t) => T(e) ? e.gt(t) : T(t) ? t.lt(e) : f(e) > f(t),
1000
- "<": (e, t) => T(e) ? e.lt(t) : T(t) ? t.gt(e) : f(e) < f(t),
1001
- ">=": (e, t) => T(e) ? e.geq(t) : T(t) ? t.leq(e) : f(e) >= f(t),
1002
- "<=": (e, t) => T(e) ? e.leq(t) : T(t) ? t.geq(e) : f(e) <= f(t),
1003
- contains: (e, t) => (e = f(e), m(e) ? e.some((e) => N(e, t)) : o(e?.indexOf) ? e.indexOf(f(t)) > -1 : !1),
1004
- not: (e, t) => M(f(e), t),
1005
- and: (e, t, n) => j(f(e), n) && j(f(t), n),
1006
- or: (e, t, n) => j(f(e), n) || j(f(t), n)
1002
+ ">": (e, t) => E(e) ? e.gt(t) : E(t) ? t.lt(e) : p(e) > p(t),
1003
+ "<": (e, t) => E(e) ? e.lt(t) : E(t) ? t.gt(e) : p(e) < p(t),
1004
+ ">=": (e, t) => E(e) ? e.geq(t) : E(t) ? t.leq(e) : p(e) >= p(t),
1005
+ "<=": (e, t) => E(e) ? e.leq(t) : E(t) ? t.geq(e) : p(e) <= p(t),
1006
+ contains: (e, t) => (e = p(e), g(e) ? e.some((e) => N(e, t)) : o(e?.indexOf) ? e.indexOf(p(t)) > -1 : !1),
1007
+ not: (e, t) => Wt(p(e), t),
1008
+ and: (e, t, n) => M(p(e), n) && M(p(t), n),
1009
+ or: (e, t, n) => M(p(e), n) || M(p(t), n)
1007
1010
  };
1008
1011
  function N(e, t) {
1009
- return T(e) ? e.equals(t) : T(t) ? t.equals(e) : (e = f(e), t = f(t), m(e) ? m(t) && Gt(e, t) : e === t);
1010
- }
1011
- function Gt(e, t) {
1012
- return e.length === t.length ? !e.some((e, n) => !N(e, t[n])) : !1;
1012
+ return E(e) ? e.equals(t) : E(t) ? t.equals(e) : (e = p(e), t = p(t), g(e) ? g(t) && Kt(e, t) : e === t);
1013
1013
  }
1014
1014
  function Kt(e, t) {
1015
+ return e.length === t.length && !e.some((e, n) => !N(e, t[n]));
1016
+ }
1017
+ function qt(e, t) {
1015
1018
  return e.some((e) => N(e, t));
1016
1019
  }
1017
- var qt = class {
1020
+ var Jt = class {
1018
1021
  constructor(e, t, n, r) {
1019
1022
  this.key = e, this.value = t, this.next = n, this.prev = r;
1020
1023
  }
1021
- }, Jt = class {
1024
+ }, Yt = class {
1022
1025
  constructor(e, t = 0) {
1023
- this.limit = e, this.size = t, this.cache = {}, this.head = new qt("HEAD", null, null, null), this.tail = new qt("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
1026
+ this.limit = e, this.size = t, this.cache = {}, this.head = new Jt("HEAD", null, null, null), this.tail = new Jt("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
1024
1027
  }
1025
1028
  write(e, t) {
1026
1029
  if (this.cache[e]) this.cache[e].value = t;
1027
1030
  else {
1028
- let n = new qt(e, t, this.head.next, this.head);
1031
+ let n = new Jt(e, t, this.head.next, this.head);
1029
1032
  this.head.next.prev = n, this.head.next = n, this.cache[e] = n, this.size++, this.ensureLimit();
1030
1033
  }
1031
1034
  }
@@ -1045,7 +1048,7 @@ var qt = class {
1045
1048
  this.size > this.limit && this.remove(this.tail.prev.key);
1046
1049
  }
1047
1050
  };
1048
- function Yt(e, t) {
1051
+ function Xt(e, t) {
1049
1052
  let n = document.createElement("base");
1050
1053
  n.href = e;
1051
1054
  let r = document.getElementsByTagName("head")[0];
@@ -1055,14 +1058,14 @@ function Yt(e, t) {
1055
1058
  let a = i.href;
1056
1059
  return r.removeChild(n), a;
1057
1060
  }
1058
- function Xt(e, t, n) {
1059
- return e.length && se(e) !== "/" && (e += "/"), Yt(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (e, t, r) => {
1061
+ function Zt(e, t, n) {
1062
+ return e.length && oe(e) !== "/" && (e += "/"), Xt(e, t).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (e, t, r) => {
1060
1063
  let i = r.split("/").pop();
1061
1064
  return /\.\w+$/.test(i) ? e : t + r + n;
1062
1065
  });
1063
1066
  }
1064
- function Zt(e) {
1065
- return E(this, void 0, void 0, function* () {
1067
+ function Qt(e) {
1068
+ return D(this, void 0, void 0, function* () {
1066
1069
  return new Promise((t, n) => {
1067
1070
  let r = new XMLHttpRequest();
1068
1071
  r.onload = () => {
@@ -1073,89 +1076,93 @@ function Zt(e) {
1073
1076
  });
1074
1077
  });
1075
1078
  }
1076
- function Qt(e) {
1079
+ function $t(e) {
1077
1080
  let t = new XMLHttpRequest();
1078
1081
  if (t.open("GET", e, !1), t.send(), t.status < 200 || t.status >= 300) throw Error(t.statusText);
1079
1082
  return t.responseText;
1080
1083
  }
1081
- function $t(e) {
1082
- return E(this, void 0, void 0, function* () {
1084
+ function en(e) {
1085
+ return D(this, void 0, void 0, function* () {
1083
1086
  return !0;
1084
1087
  });
1085
1088
  }
1086
- function en(e) {
1089
+ function tn(e) {
1087
1090
  return !0;
1088
1091
  }
1089
- function tn(e) {
1090
- return Yt(e, ".");
1092
+ function nn(e) {
1093
+ return Xt(e, ".");
1091
1094
  }
1092
- var nn = /*#__PURE__*/ Object.freeze({
1095
+ var rn = /*#__PURE__*/ Object.freeze({
1093
1096
  __proto__: null,
1094
- resolve: Xt,
1095
- readFile: Zt,
1096
- readFileSync: Qt,
1097
- exists: $t,
1098
- existsSync: en,
1099
- dirname: tn,
1097
+ resolve: Zt,
1098
+ readFile: Qt,
1099
+ readFileSync: $t,
1100
+ exists: en,
1101
+ existsSync: tn,
1102
+ dirname: nn,
1100
1103
  sep: "/"
1101
1104
  });
1102
- function rn(e, t, ...n) {
1103
- return e = f(e), m(e) || a(e) ? e.length ? e : t : e === !1 && new Map(n).get("allow_false") ? !1 : M(e, this.context) ? t : e;
1105
+ function an(e, t) {
1106
+ typeof t == "string" ? e.use(t.length) : t === null || typeof t == "number" || typeof t == "boolean" ? e.use(JSON.stringify(t).length) : Array.isArray(t) ? e.use(t.length + 1) : typeof t == "object" && e.use(2);
1104
1107
  }
1105
- function an(e, t = 0) {
1106
- return JSON.stringify(e, null, t);
1108
+ function on(e, t, ...n) {
1109
+ return e = p(e), g(e) || a(e) ? e.length ? e : t : e === !1 && new Map(n).get("allow_false") ? !1 : Wt(e, this.context) ? t : e;
1107
1110
  }
1108
- function on(e, t = 0) {
1109
- let n = [];
1111
+ function sn(e, t = 0) {
1112
+ let n = this.context.memoryLimit;
1113
+ return JSON.stringify(e, (e, t) => (an(n, t), t), t);
1114
+ }
1115
+ function cn(e, t = 0) {
1116
+ let n = this.context.memoryLimit, r = [];
1110
1117
  return JSON.stringify(e, function(e, t) {
1111
- if (typeof t != "object" || !t) return t;
1112
- for (; n.length > 0 && n[n.length - 1] !== this;) n.pop();
1113
- return n.includes(t) ? "[Circular]" : (n.push(t), t);
1118
+ if (typeof t != "object" || !t) return an(n, t), t;
1119
+ for (; r.length > 0 && r[r.length - 1] !== this;) r.pop();
1120
+ return r.includes(t) ? (n.use(10), "[Circular]") : (r.push(t), an(n, t), t);
1114
1121
  }, t);
1115
1122
  }
1116
- function sn(e) {
1123
+ function ln(e) {
1117
1124
  return Number(e);
1118
1125
  }
1119
- var cn = {
1120
- default: rn,
1126
+ var un = {
1127
+ default: on,
1121
1128
  raw: {
1122
1129
  raw: !0,
1123
- handler: de
1130
+ handler: ue
1124
1131
  },
1125
- jsonify: an,
1126
- to_integer: sn,
1127
- json: an,
1128
- inspect: on
1129
- }, ln = {
1132
+ jsonify: sn,
1133
+ to_integer: ln,
1134
+ json: sn,
1135
+ inspect: cn
1136
+ }, dn = {
1130
1137
  "&": "&amp;",
1131
1138
  "<": "&lt;",
1132
1139
  ">": "&gt;",
1133
1140
  "\"": "&#34;",
1134
1141
  "'": "&#39;"
1135
- }, un = {
1142
+ }, fn = {
1136
1143
  "&amp;": "&",
1137
1144
  "&lt;": "<",
1138
1145
  "&gt;": ">",
1139
1146
  "&#34;": "\"",
1140
1147
  "&#39;": "'"
1141
1148
  };
1142
- function dn(e) {
1143
- return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => ln[e]);
1144
- }
1145
- function fn(e) {
1146
- return dn.call(this, e);
1149
+ function P(e) {
1150
+ return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&|<|>|"|'/g, (e) => dn[e]);
1147
1151
  }
1148
1152
  function pn(e) {
1149
- return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) => un[e]);
1153
+ return P.call(this, e);
1150
1154
  }
1151
1155
  function mn(e) {
1152
- return dn.call(this, pn.call(this, e));
1156
+ return e = l(e), this.context.memoryLimit.use(e.length), e.replace(/&(amp|lt|gt|#34|#39);/g, (e) => fn[e]);
1153
1157
  }
1154
1158
  function hn(e) {
1159
+ return P.call(this, mn.call(this, e));
1160
+ }
1161
+ function gn(e) {
1155
1162
  let t = l(e);
1156
1163
  return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "<br />\n");
1157
1164
  }
1158
- function gn(e) {
1165
+ function _n(e) {
1159
1166
  let t = l(e);
1160
1167
  this.context.memoryLimit.use(t.length);
1161
1168
  let n = /* @__PURE__ */ new Map([
@@ -1181,33 +1188,33 @@ function gn(e) {
1181
1188
  }
1182
1189
  return r;
1183
1190
  }
1184
- var _n = /*#__PURE__*/ Object.freeze({
1191
+ var vn = /*#__PURE__*/ Object.freeze({
1185
1192
  __proto__: null,
1186
- escape: dn,
1187
- xml_escape: fn,
1188
- escape_once: mn,
1189
- newline_to_br: hn,
1190
- strip_html: gn
1191
- }), vn = class {
1193
+ escape: P,
1194
+ xml_escape: pn,
1195
+ escape_once: hn,
1196
+ newline_to_br: gn,
1197
+ strip_html: _n
1198
+ }), yn = class {
1192
1199
  constructor(e) {
1193
1200
  this.mapping = e, this.sep = "/";
1194
1201
  }
1195
1202
  exists(e) {
1196
- return E(this, void 0, void 0, function* () {
1203
+ return D(this, void 0, void 0, function* () {
1197
1204
  return this.existsSync(e);
1198
1205
  });
1199
1206
  }
1200
1207
  existsSync(e) {
1201
- return !p(this.mapping[e]);
1208
+ return !h(this.mapping[e]);
1202
1209
  }
1203
1210
  readFile(e) {
1204
- return E(this, void 0, void 0, function* () {
1211
+ return D(this, void 0, void 0, function* () {
1205
1212
  return this.readFileSync(e);
1206
1213
  });
1207
1214
  }
1208
1215
  readFileSync(e) {
1209
1216
  let t = this.mapping[e];
1210
- if (p(t)) throw Error(`ENOENT: ${e}`);
1217
+ if (h(t)) throw Error(`ENOENT: ${e}`);
1211
1218
  return t;
1212
1219
  }
1213
1220
  dirname(e) {
@@ -1221,7 +1228,7 @@ var _n = /*#__PURE__*/ Object.freeze({
1221
1228
  else e === ".." ? (r.length > 1 || r[0] !== "") && r.pop() : r.push(e);
1222
1229
  return r.join(this.sep);
1223
1230
  }
1224
- }, P = {
1231
+ }, F = {
1225
1232
  root: ["."],
1226
1233
  layouts: ["."],
1227
1234
  partials: ["."],
@@ -1230,7 +1237,7 @@ var _n = /*#__PURE__*/ Object.freeze({
1230
1237
  keyValueSeparator: ":",
1231
1238
  cache: void 0,
1232
1239
  extname: "",
1233
- fs: nn,
1240
+ fs: rn,
1234
1241
  dynamicPartials: !0,
1235
1242
  jsTruthy: !1,
1236
1243
  dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
@@ -1251,45 +1258,45 @@ var _n = /*#__PURE__*/ Object.freeze({
1251
1258
  lenientIf: !1,
1252
1259
  globals: {},
1253
1260
  keepOutputType: !1,
1254
- operators: Wt,
1261
+ operators: Gt,
1255
1262
  memoryLimit: Infinity,
1256
1263
  parseLimit: Infinity,
1257
1264
  renderLimit: Infinity
1258
1265
  };
1259
- function yn(e) {
1266
+ function bn(e) {
1260
1267
  if (e.hasOwnProperty("root") && (e.hasOwnProperty("partials") || (e.partials = e.root), e.hasOwnProperty("layouts") || (e.layouts = e.root)), e.hasOwnProperty("cache")) {
1261
1268
  let t;
1262
- t = typeof e.cache == "number" ? e.cache > 0 ? new Jt(e.cache) : void 0 : typeof e.cache == "object" ? e.cache : e.cache ? new Jt(1024) : void 0, e.cache = t;
1269
+ t = typeof e.cache == "number" ? e.cache > 0 ? new Yt(e.cache) : void 0 : typeof e.cache == "object" ? e.cache : e.cache ? new Yt(1024) : void 0, e.cache = t;
1263
1270
  }
1264
- return e = Object.assign(Object.assign(Object.assign({}, P), e.jekyllInclude ? { dynamicPartials: !1 } : {}), e), (!e.fs.dirname || !e.fs.sep) && e.relativeReference && (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), e.relativeReference = !1), e.root = F(e.root), e.partials = F(e.partials), e.layouts = F(e.layouts), e.outputEscape = e.outputEscape && bn(e.outputEscape), e.locale ||= ot()?.().resolvedOptions().locale ?? "en-US", e.templates && (e.fs = new vn(e.templates), e.relativeReference = !0, e.root = e.partials = e.layouts = "."), e;
1271
+ return e = Object.assign(Object.assign(Object.assign({}, F), e.jekyllInclude ? { dynamicPartials: !1 } : {}), e), (!e.fs.dirname || !e.fs.sep) && e.relativeReference && (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), e.relativeReference = !1), e.root = I(e.root), e.partials = I(e.partials), e.layouts = I(e.layouts), e.outputEscape = e.outputEscape && xn(e.outputEscape), e.locale ||= ot()?.().resolvedOptions().locale ?? "en-US", e.templates && (e.fs = new yn(e.templates), e.relativeReference = !0, e.root = e.partials = e.layouts = "."), e;
1265
1272
  }
1266
- function bn(e) {
1267
- return e === "escape" ? dn : e === "json" ? cn.json : (C(o(e), "`outputEscape` need to be of type string or function"), e);
1273
+ function xn(e) {
1274
+ return e === "escape" ? P : e === "json" ? un.json : (w(o(e), "`outputEscape` need to be of type string or function"), e);
1268
1275
  }
1269
- function F(e) {
1276
+ function I(e) {
1270
1277
  let t = [];
1271
- return m(e) && (t = e), a(e) && (t = [e]), t;
1278
+ return g(e) && (t = e), a(e) && (t = [e]), t;
1272
1279
  }
1273
- function xn(e, t) {
1280
+ function Sn(e, t) {
1274
1281
  let n = !1;
1275
1282
  for (let r = 0; r < e.length; r++) {
1276
1283
  let i = e[r];
1277
- Bn(i) && (!n && i.trimLeft && Sn(e[r - 1], t.greedy), J(i) && (i.name === "raw" ? n = !0 : i.name === "endraw" && (n = !1)), !n && i.trimRight && Cn(e[r + 1], t.greedy));
1284
+ Hn(i) && (!n && i.trimLeft && Cn(e[r - 1], t.greedy), J(i) && (i.name === "raw" ? n = !0 : i.name === "endraw" && (n = !1)), !n && i.trimRight && wn(e[r + 1], t.greedy));
1278
1285
  }
1279
1286
  }
1280
- function Sn(e, t) {
1281
- if (!e || !Hn(e)) return;
1282
- let n = t ? x : ke;
1283
- for (; b[e.input.charCodeAt(e.end - 1 - e.trimRight)] & n;) e.trimRight++;
1284
- }
1285
1287
  function Cn(e, t) {
1286
- if (!e || !Hn(e)) return;
1287
- let n = t ? x : ke;
1288
- for (; b[e.input.charCodeAt(e.begin + e.trimLeft)] & n;) e.trimLeft++;
1288
+ if (!e || !Wn(e)) return;
1289
+ let n = t ? C : Oe;
1290
+ for (; S[e.input.charCodeAt(e.end - 1 - e.trimRight)] & n;) e.trimRight++;
1291
+ }
1292
+ function wn(e, t) {
1293
+ if (!e || !Wn(e)) return;
1294
+ let n = t ? C : Oe;
1295
+ for (; S[e.input.charCodeAt(e.begin + e.trimLeft)] & n;) e.trimLeft++;
1289
1296
  e.input.charAt(e.begin + e.trimLeft) === "\n" && e.trimLeft++;
1290
1297
  }
1291
- var I = class {
1292
- constructor(e, t = P.operators, n, r) {
1298
+ var L = class {
1299
+ constructor(e, t = F.operators, n, r) {
1293
1300
  this.input = e, this.file = n, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie = We(t), this.literalTrie = We(He);
1294
1301
  }
1295
1302
  readExpression() {
@@ -1318,7 +1325,7 @@ var I = class {
1318
1325
  matchTrie(e) {
1319
1326
  let t = e, n = this.p, r;
1320
1327
  for (; t[this.input[n]] && n < this.N;) t = t[this.input[n++]], t.end && (r = t);
1321
- return !r || r.needBoundary && S(this.peek(n - this.p)) ? -1 : n;
1328
+ return !r || r.needBoundary && Me(this.peek(n - this.p)) ? -1 : n;
1322
1329
  }
1323
1330
  readFilteredValue() {
1324
1331
  let e = this.p, t = this.readExpression();
@@ -1354,13 +1361,13 @@ var I = class {
1354
1361
  let t = this.readValue();
1355
1362
  return [e.getText(), t];
1356
1363
  }
1357
- readTopLevelTokens(e = P) {
1364
+ readTopLevelTokens(e = F) {
1358
1365
  let t = [];
1359
1366
  for (; this.p < this.N;) {
1360
1367
  let n = this.readTopLevelToken(e);
1361
1368
  t.push(n);
1362
1369
  }
1363
- return xn(t, e), t;
1370
+ return Sn(t, e), t;
1364
1371
  }
1365
1372
  readTopLevelToken(e) {
1366
1373
  let { tagDelimiterLeft: t, outputDelimiterLeft: n } = e;
@@ -1379,7 +1386,7 @@ var I = class {
1379
1386
  }
1380
1387
  readToDelimiter(e, t = !1) {
1381
1388
  for (this.skipBlank(); this.p < this.N;) {
1382
- if (t && this.peekType() & Oe) {
1389
+ if (t && this.peekType() & De) {
1383
1390
  this.readQuoted();
1384
1391
  continue;
1385
1392
  }
@@ -1387,7 +1394,7 @@ var I = class {
1387
1394
  }
1388
1395
  return -1;
1389
1396
  }
1390
- readOutputToken(e = P) {
1397
+ readOutputToken(e = F) {
1391
1398
  let { file: t, input: n } = this, { outputDelimiterRight: r } = e, i = this.p;
1392
1399
  if (this.readToDelimiter(r, !0) === -1) throw this.error(`output ${this.snapshot(i)} not closed`, i);
1393
1400
  return new gt(n, i, this.p, e, t);
@@ -1410,7 +1417,7 @@ var I = class {
1410
1417
  }
1411
1418
  throw this.error(`raw ${this.snapshot(this.rawBeginAt)} not closed`, r);
1412
1419
  }
1413
- readLiquidTagTokens(e = P) {
1420
+ readLiquidTagTokens(e = F) {
1414
1421
  let t = [];
1415
1422
  for (; this.p < this.N;) {
1416
1423
  let n = this.readLiquidTagToken(e);
@@ -1426,13 +1433,13 @@ var I = class {
1426
1433
  return new Pt(this.input, t, n, e, this.file);
1427
1434
  }
1428
1435
  error(e, t = this.p) {
1429
- return new ve(e, new yt(this.input, t, this.N, this.file));
1436
+ return new _e(e, new yt(this.input, t, this.N, this.file));
1430
1437
  }
1431
1438
  assert(e, t, n) {
1432
1439
  if (!e) throw this.error(typeof t == "function" ? t() : t, n);
1433
1440
  }
1434
1441
  snapshot(e = this.p) {
1435
- return JSON.stringify(pe(this.input.slice(e, this.N), 32));
1442
+ return JSON.stringify(fe(this.input.slice(e, this.N), 32));
1436
1443
  }
1437
1444
  readWord() {
1438
1445
  return this.readIdentifier();
@@ -1440,7 +1447,7 @@ var I = class {
1440
1447
  readIdentifier() {
1441
1448
  this.skipBlank();
1442
1449
  let e = this.p;
1443
- for (; !this.end() && S(this.peek());) ++this.p;
1450
+ for (; !this.end() && Me(this.peek());) ++this.p;
1444
1451
  return new yt(this.input, e, this.p, this.file);
1445
1452
  }
1446
1453
  readNonEmptyIdentifier() {
@@ -1523,12 +1530,12 @@ var I = class {
1523
1530
  readNumber() {
1524
1531
  this.skipBlank();
1525
1532
  let e = !1, t = !1, n = 0;
1526
- for (this.peekType() & je && n++; this.p + n <= this.N;) if (this.peekType(n) & Ae) t = !0, n++;
1533
+ for (this.peekType() & Ae && n++; this.p + n <= this.N;) if (this.peekType(n) & ke) t = !0, n++;
1527
1534
  else if (this.peek(n) === "." && this.peek(n + 1) !== ".") {
1528
1535
  if (e || !t) return;
1529
1536
  e = !0, n++;
1530
1537
  } else break;
1531
- if (t && !S(this.peek(n))) {
1538
+ if (t && !Me(this.peek(n))) {
1532
1539
  let e = new vt(this.input, this.p, this.p + n, this.file);
1533
1540
  return this.advance(n), e;
1534
1541
  }
@@ -1557,7 +1564,7 @@ var I = class {
1557
1564
  readQuoted() {
1558
1565
  this.skipBlank();
1559
1566
  let e = this.p;
1560
- if (!(this.peekType() & Oe)) return;
1567
+ if (!(this.peekType() & De)) return;
1561
1568
  ++this.p;
1562
1569
  let t = !1;
1563
1570
  for (; this.p < this.N && (++this.p, !(this.input[this.p - 1] === this.input[e] && !t));) t ? t = !1 : this.input[this.p - 1] === "\\" && (t = !0);
@@ -1583,15 +1590,15 @@ var I = class {
1583
1590
  return !0;
1584
1591
  }
1585
1592
  peekType(e = 0) {
1586
- return this.p + e >= this.N ? 0 : b[this.input.charCodeAt(this.p + e)];
1593
+ return this.p + e >= this.N ? 0 : S[this.input.charCodeAt(this.p + e)];
1587
1594
  }
1588
1595
  peek(e = 0) {
1589
1596
  return this.p + e >= this.N ? "" : this.input[this.p + e];
1590
1597
  }
1591
1598
  skipBlank() {
1592
- for (; this.peekType() & x;) ++this.p;
1599
+ for (; this.peekType() & C;) ++this.p;
1593
1600
  }
1594
- }, wn = class {
1601
+ }, Tn = class {
1595
1602
  constructor(e, t) {
1596
1603
  this.handlers = {}, this.stopRequested = !1, this.tokens = e, this.parseToken = t;
1597
1604
  }
@@ -1615,58 +1622,58 @@ var I = class {
1615
1622
  stop() {
1616
1623
  return this.stopRequested = !0, this;
1617
1624
  }
1618
- }, Tn = class {
1625
+ }, En = class {
1619
1626
  constructor(e) {
1620
1627
  this.token = e;
1621
1628
  }
1622
- }, L = class extends Tn {
1629
+ }, R = class extends En {
1623
1630
  constructor(e, t, n) {
1624
1631
  super(e), this.name = e.name, this.liquid = n, this.tokenizer = e.tokenizer;
1625
1632
  }
1626
- }, R = class {
1633
+ }, z = class {
1627
1634
  constructor(e, t) {
1628
1635
  this.hash = {};
1629
- let n = e instanceof I ? e : new I(e, {});
1636
+ let n = e instanceof L ? e : new L(e, {});
1630
1637
  for (let e of n.readHashes(t)) this.hash[e.name.content] = e.value;
1631
1638
  }
1632
1639
  *render(e) {
1633
1640
  let t = {};
1634
- for (let n of Object.keys(this.hash)) t[n] = this.hash[n] === void 0 ? !0 : yield A(this.hash[n], e);
1641
+ for (let n of Object.keys(this.hash)) t[n] = this.hash[n] === void 0 ? !0 : yield j(this.hash[n], e);
1635
1642
  return t;
1636
1643
  }
1637
1644
  };
1638
- function En(e) {
1639
- return class extends L {
1645
+ function Dn(e) {
1646
+ return class extends R {
1640
1647
  constructor(t, n, r) {
1641
1648
  super(t, n, r), o(e.parse) && e.parse.call(this, t, n);
1642
1649
  }
1643
1650
  *render(t, n) {
1644
- let r = yield new R(this.token.args, t.opts.keyValueSeparator).render(t);
1651
+ let r = yield new z(this.token.args, t.opts.keyValueSeparator).render(t);
1645
1652
  return yield e.render.call(this, t, n, r);
1646
1653
  }
1647
1654
  };
1648
1655
  }
1649
- function Dn(e) {
1650
- return m(e);
1656
+ function On(e) {
1657
+ return g(e);
1651
1658
  }
1652
- var On = class {
1659
+ var kn = class {
1653
1660
  constructor(e, t, n) {
1654
- this.token = e, this.name = e.name, this.handler = o(t) ? t : o(t?.handler) ? t.handler : de, this.raw = !o(t) && !!t?.raw, this.args = e.args, this.liquid = n;
1661
+ this.token = e, this.name = e.name, this.handler = o(t) ? t : o(t?.handler) ? t.handler : ue, this.raw = !o(t) && !!t?.raw, this.args = e.args, this.liquid = n;
1655
1662
  }
1656
1663
  *render(e, t) {
1657
1664
  let n = [];
1658
- for (let e of this.args) Dn(e) ? n.push([e[0], yield A(e[1], t)]) : n.push(yield A(e, t));
1665
+ for (let e of this.args) On(e) ? n.push([e[0], yield j(e[1], t)]) : n.push(yield j(e, t));
1659
1666
  return yield this.handler.apply({
1660
1667
  context: t,
1661
1668
  token: this.token,
1662
1669
  liquid: this.liquid
1663
1670
  }, [e, ...n]);
1664
1671
  }
1665
- }, z = class {
1672
+ }, B = class {
1666
1673
  constructor(e, t) {
1667
1674
  this.filters = [];
1668
- let n = typeof e == "string" ? new I(e, t.options.operators).readFilteredValue() : e;
1669
- this.initial = n.initial, this.filters = n.filters.map((e) => new On(e, this.getFilter(t, e.name), t));
1675
+ let n = typeof e == "string" ? new L(e, t.options.operators).readFilteredValue() : e;
1676
+ this.initial = n.initial, this.filters = n.filters.map((e) => new kn(e, this.getFilter(t, e.name), t));
1670
1677
  }
1671
1678
  *value(e, t) {
1672
1679
  t ||= e.opts.lenientIf && this.filters.length > 0 && this.filters[0].name === "default";
@@ -1676,17 +1683,17 @@ var On = class {
1676
1683
  }
1677
1684
  getFilter(e, t) {
1678
1685
  let n = e.filters[t];
1679
- return C(n || !e.options.strictFilters, () => `undefined filter: ${t}`), n;
1686
+ return w(n || !e.options.strictFilters, () => `undefined filter: ${t}`), n;
1680
1687
  }
1681
- }, kn = class extends Tn {
1688
+ }, An = class extends En {
1682
1689
  constructor(e, t) {
1683
1690
  super(e);
1684
- let n = new I(e.input, t.options.operators, e.file, e.contentRange);
1685
- this.value = new z(n.readFilteredValue(), t);
1691
+ let n = new L(e.input, t.options.operators, e.file, e.contentRange);
1692
+ this.value = new B(n.readFilteredValue(), t);
1686
1693
  let r = this.value.filters, i = t.options.outputEscape;
1687
1694
  if (!r[r.length - 1]?.raw && i) {
1688
1695
  let e = new Tt(toString.call(i), [], "", 0, 0);
1689
- r.push(new On(e, i, t));
1696
+ r.push(new kn(e, i, t));
1690
1697
  }
1691
1698
  }
1692
1699
  *render(e, t) {
@@ -1696,19 +1703,19 @@ var On = class {
1696
1703
  *arguments() {
1697
1704
  yield this.value;
1698
1705
  }
1699
- }, An = class extends Tn {
1706
+ }, jn = class extends En {
1700
1707
  constructor(e) {
1701
1708
  super(e), this.str = e.getContent();
1702
1709
  }
1703
1710
  *render(e, t) {
1704
1711
  t.write(this.str);
1705
1712
  }
1706
- }, B = class e {
1713
+ }, V = class e {
1707
1714
  constructor(e, t) {
1708
1715
  this.segments = e, this.location = t;
1709
1716
  }
1710
1717
  toString() {
1711
- return W(this.segments, !0);
1718
+ return Bn(this.segments, !0);
1712
1719
  }
1713
1720
  toArray() {
1714
1721
  function* t(...n) {
@@ -1716,16 +1723,16 @@ var On = class {
1716
1723
  }
1717
1724
  return Array.from(t(...this.segments));
1718
1725
  }
1719
- }, jn = class {
1726
+ }, Mn = class {
1720
1727
  constructor() {
1721
1728
  this.map = /* @__PURE__ */ new Map();
1722
1729
  }
1723
1730
  get(e) {
1724
- let t = W([e.segments[0]]);
1731
+ let t = Bn([e.segments[0]]);
1725
1732
  return this.map.has(t) || this.map.set(t, []), this.map.get(t);
1726
1733
  }
1727
1734
  has(e) {
1728
- return this.map.has(W([e.segments[0]]));
1735
+ return this.map.has(Bn([e.segments[0]]));
1729
1736
  }
1730
1737
  push(e) {
1731
1738
  this.get(e).push(e);
@@ -1733,9 +1740,9 @@ var On = class {
1733
1740
  asObject() {
1734
1741
  return Object.fromEntries(this.map);
1735
1742
  }
1736
- }, Mn = { partials: !0 };
1737
- function* Nn(e, t, n) {
1738
- let r = new jn(), i = new jn(), o = new jn(), s = new Pn(/* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set();
1743
+ }, Nn = { partials: !0 };
1744
+ function* Pn(e, t, n) {
1745
+ let r = new Mn(), i = new Mn(), o = new Mn(), s = new Fn(/* @__PURE__ */ new Set()), c = /* @__PURE__ */ new Set();
1739
1746
  function l(e, t) {
1740
1747
  r.push(e);
1741
1748
  let n = t.alias(e);
@@ -1746,14 +1753,14 @@ function* Nn(e, t, n) {
1746
1753
  let n = e.segments[0];
1747
1754
  a(n) && !t.has(n) && i.push(e);
1748
1755
  }
1749
- for (let n of e.segments) n instanceof B && l(n, t);
1756
+ for (let n of e.segments) n instanceof V && l(n, t);
1750
1757
  }
1751
1758
  function* u(e, r) {
1752
- if (e.arguments) for (let t of e.arguments()) for (let e of Fn(t)) l(e, r);
1759
+ if (e.arguments) for (let t of e.arguments()) for (let e of In(t)) l(e, r);
1753
1760
  if (e.localScope) for (let t of e.localScope()) {
1754
1761
  r.add(t.content), r.deleteAlias(t.content);
1755
1762
  let [e, n] = t.getPosition();
1756
- o.push(new B([t.content], {
1763
+ o.push(new V([t.content], {
1757
1764
  row: e,
1758
1765
  col: n,
1759
1766
  file: t.file
@@ -1766,12 +1773,12 @@ function* Nn(e, t, n) {
1766
1773
  return;
1767
1774
  }
1768
1775
  if (c.has(i.name)) return;
1769
- let o = /* @__PURE__ */ new Set(), s = i.isolated ? new Pn(o) : r.push(o);
1776
+ let o = /* @__PURE__ */ new Set(), s = i.isolated ? new Fn(o) : r.push(o);
1770
1777
  for (let e of i.scope) if (a(e)) o.add(e);
1771
1778
  else {
1772
1779
  let [t, n] = e;
1773
1780
  o.add(t);
1774
- let r = Array.from(Fn(n));
1781
+ let r = Array.from(In(n));
1775
1782
  r.length && s.setAlias(t, r[0].segments);
1776
1783
  }
1777
1784
  for (let r of yield e.children(t, n)) yield u(r, s), c.add(i.name);
@@ -1789,13 +1796,13 @@ function* Nn(e, t, n) {
1789
1796
  locals: o.asObject()
1790
1797
  };
1791
1798
  }
1792
- function V(e, t = {}) {
1793
- return D(Nn(e, Object.assign(Object.assign({}, Mn), t).partials, !1));
1794
- }
1795
1799
  function H(e, t = {}) {
1796
- return O(Nn(e, Object.assign(Object.assign({}, Mn), t).partials, !0));
1800
+ return O(Pn(e, Object.assign(Object.assign({}, Nn), t).partials, !1));
1801
+ }
1802
+ function U(e, t = {}) {
1803
+ return k(Pn(e, Object.assign(Object.assign({}, Nn), t).partials, !0));
1797
1804
  }
1798
- var Pn = class {
1805
+ var Fn = class {
1799
1806
  constructor(e) {
1800
1807
  this.stack = [{
1801
1808
  names: e,
@@ -1822,7 +1829,7 @@ var Pn = class {
1822
1829
  let t = e.segments[0];
1823
1830
  if (!a(t)) return;
1824
1831
  let n = this.getAlias(t);
1825
- if (n !== void 0) return new B([...n, ...e.segments.slice(1)], e.location);
1832
+ if (n !== void 0) return new V([...n, ...e.segments.slice(1)], e.location);
1826
1833
  }
1827
1834
  setAlias(e, t) {
1828
1835
  this.stack[this.stack.length - 1].aliases.set(e, t);
@@ -1837,43 +1844,43 @@ var Pn = class {
1837
1844
  }
1838
1845
  }
1839
1846
  };
1840
- function* Fn(e) {
1841
- Y(e) ? yield* U(e) : e instanceof z && (yield* In(e));
1842
- }
1843
1847
  function* In(e) {
1844
- for (let t of e.initial.postfix) Y(t) && (yield* U(t));
1845
- for (let t of e.filters) for (let e of t.args) Dn(e) && e[1] ? yield* U(e[1]) : Y(e) && (yield* U(e));
1848
+ Y(e) ? yield* W(e) : e instanceof B && (yield* Ln(e));
1849
+ }
1850
+ function* Ln(e) {
1851
+ for (let t of e.initial.postfix) Y(t) && (yield* W(t));
1852
+ for (let t of e.filters) for (let e of t.args) On(e) && e[1] ? yield* W(e[1]) : Y(e) && (yield* W(e));
1846
1853
  }
1847
- function* U(e) {
1848
- Jn(e) ? (yield* U(e.lhs), yield* U(e.rhs)) : Kn(e) && (yield Ln(e));
1854
+ function* W(e) {
1855
+ Xn(e) ? (yield* W(e.lhs), yield* W(e.rhs)) : Jn(e) && (yield Rn(e));
1849
1856
  }
1850
- function Ln(e) {
1857
+ function Rn(e) {
1851
1858
  let t = [], n = e.file, r = e.props[0];
1852
- n ||= r.file, Wn(r) || Gn(r) || qn(r) ? t.push(r.content) : Kn(r) && t.push(...Ln(r).segments);
1853
- for (let r of e.props.slice(1)) n ||= r.file, Wn(r) || Gn(r) || qn(r) ? t.push(r.content) : Kn(r) && t.push(Ln(r));
1859
+ n ||= r.file, Kn(r) || qn(r) || Yn(r) ? t.push(r.content) : Jn(r) && t.push(...Rn(r).segments);
1860
+ for (let r of e.props.slice(1)) n ||= r.file, Kn(r) || qn(r) || Yn(r) ? t.push(r.content) : Jn(r) && t.push(Rn(r));
1854
1861
  let [i, a] = e.getPosition();
1855
- return new B(t, {
1862
+ return new V(t, {
1856
1863
  row: i,
1857
1864
  col: a,
1858
1865
  file: n
1859
1866
  });
1860
1867
  }
1861
- var Rn = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
1862
- function W(e, t = !1) {
1868
+ var zn = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
1869
+ function Bn(e, t = !1) {
1863
1870
  let n = [], r = e[0];
1864
- a(r) && (!t || r.match(Rn) ? n.push(`${r}`) : n.push(`['${r}']`));
1865
- for (let t of e.slice(1)) t instanceof B ? n.push(`[${W(t.segments)}]`) : a(t) ? t.match(Rn) ? n.push(`.${t}`) : n.push(`['${t}']`) : n.push(`[${t}]`);
1871
+ a(r) && (!t || r.match(zn) ? n.push(`${r}`) : n.push(`['${r}']`));
1872
+ for (let t of e.slice(1)) t instanceof V ? n.push(`[${Bn(t.segments)}]`) : a(t) ? t.match(zn) ? n.push(`.${t}`) : n.push(`['${t}']`) : n.push(`[${t}]`);
1866
1873
  return n.join("");
1867
1874
  }
1868
1875
  var G;
1869
1876
  (function(e) {
1870
1877
  e.Partials = "partials", e.Layouts = "layouts", e.Root = "root";
1871
1878
  })(G ||= {});
1872
- var zn = class {
1879
+ var Vn = class {
1873
1880
  constructor(e) {
1874
1881
  if (this.options = e, e.relativeReference) {
1875
1882
  let t = e.fs.sep;
1876
- C(t, "`fs.sep` is required for relative reference");
1883
+ w(t, "`fs.sep` is required for relative reference");
1877
1884
  let n = [
1878
1885
  "." + t,
1879
1886
  ".." + t,
@@ -1883,9 +1890,9 @@ var zn = class {
1883
1890
  this.shouldLoadRelative = (e) => n.some((t) => e.startsWith(t));
1884
1891
  } else this.shouldLoadRelative = (e) => !1;
1885
1892
  let t = e.fs;
1886
- this.contains = Ke(t.contains?.bind(t) || (() => E(this, void 0, void 0, function* () {
1893
+ this.contains = Ke(t.contains?.bind(t) || (() => D(this, void 0, void 0, function* () {
1887
1894
  return !0;
1888
- })), t.containsSync?.bind(t) || (() => !0)), this.exists = Ke(t.exists?.bind(t) || (() => E(this, void 0, void 0, function* () {
1895
+ })), t.containsSync?.bind(t) || (() => !0)), this.exists = Ke(t.exists?.bind(t) || (() => D(this, void 0, void 0, function* () {
1889
1896
  return !1;
1890
1897
  })), t.existsSync?.bind(t));
1891
1898
  }
@@ -1912,7 +1919,7 @@ var zn = class {
1912
1919
  }
1913
1920
  dirname(e) {
1914
1921
  let t = this.options.fs;
1915
- return C(t.dirname, "`fs.dirname` is required for relative reference"), t.dirname(e);
1922
+ return w(t.dirname, "`fs.dirname` is required for relative reference"), t.dirname(e);
1916
1923
  }
1917
1924
  lookupError(e, t) {
1918
1925
  let n = /* @__PURE__ */ Error("ENOENT");
@@ -1920,13 +1927,13 @@ var zn = class {
1920
1927
  }
1921
1928
  }, K = class {
1922
1929
  constructor(e) {
1923
- 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 zn(this.liquid.options), this.parseLimit = new pt("parse length", e.options.parseLimit), this.readFile = Ke(this.fs.readFile?.bind(this.fs) || (() => E(this, void 0, void 0, function* () {
1930
+ 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 Vn(this.liquid.options), this.parseLimit = new pt("parse length", e.options.parseLimit), this.readFile = Ke(this.fs.readFile?.bind(this.fs) || (() => D(this, void 0, void 0, function* () {
1924
1931
  throw Error("readFile not implemented");
1925
1932
  })), this.fs.readFileSync?.bind(this.fs));
1926
1933
  }
1927
1934
  parse(e, t) {
1928
1935
  e = String(e), this.parseLimit.use(e.length);
1929
- let n = new I(e, this.liquid.options.operators, t).readTopLevelTokens(this.liquid.options);
1936
+ let n = new L(e, this.liquid.options.operators, t).readTopLevelTokens(this.liquid.options);
1930
1937
  return this.parseTokens(n);
1931
1938
  }
1932
1939
  parseTokens(e) {
@@ -1937,27 +1944,27 @@ var zn = class {
1937
1944
  if (this.liquid.options.catchAllErrors) r.push(e);
1938
1945
  else throw e;
1939
1946
  }
1940
- if (r.length) throw new xe(r);
1947
+ if (r.length) throw new be(r);
1941
1948
  return n;
1942
1949
  }
1943
1950
  parseToken(e, t) {
1944
1951
  try {
1945
1952
  if (J(e)) {
1946
1953
  let n = this.liquid.tags[e.name];
1947
- return C(n, `tag "${e.name}" not found`), new n(e, t, this.liquid, this);
1954
+ return w(n, `tag "${e.name}" not found`), new n(e, t, this.liquid, this);
1948
1955
  }
1949
- return Un(e) ? new kn(e, this.liquid) : new An(e);
1956
+ return Gn(e) ? new An(e, this.liquid) : new jn(e);
1950
1957
  } catch (t) {
1951
- throw y.is(t) ? t : new ye(t, e);
1958
+ throw x.is(t) ? t : new ve(t, e);
1952
1959
  }
1953
1960
  }
1954
1961
  parseStream(e) {
1955
- return new wn(e, (e, t) => this.parseToken(e, t));
1962
+ return new Tn(e, (e, t) => this.parseToken(e, t));
1956
1963
  }
1957
1964
  *_parseFileCached(e, t, n = G.Root, r) {
1958
1965
  let i = this.cache, a = this.loader.shouldLoadRelative(e) ? r + "," + e : n + ":" + e, o = yield i.read(a);
1959
1966
  if (o) return o;
1960
- let s = this._parseFile(e, t, n, r), c = t ? yield s : D(s);
1967
+ let s = this._parseFile(e, t, n, r), c = t ? yield s : O(s);
1961
1968
  i.write(a, c);
1962
1969
  try {
1963
1970
  return yield c;
@@ -1973,34 +1980,34 @@ var zn = class {
1973
1980
  (function(e) {
1974
1981
  e[e.Number = 1] = "Number", e[e.Literal = 2] = "Literal", e[e.Tag = 4] = "Tag", e[e.Output = 8] = "Output", e[e.HTML = 16] = "HTML", e[e.Filter = 32] = "Filter", e[e.Hash = 64] = "Hash", e[e.PropertyAccess = 128] = "PropertyAccess", e[e.Word = 256] = "Word", e[e.Range = 512] = "Range", e[e.Quoted = 1024] = "Quoted", e[e.Operator = 2048] = "Operator", e[e.FilteredValue = 4096] = "FilteredValue", e[e.Delimited = 12] = "Delimited";
1975
1982
  })(q ||= {});
1976
- function Bn(e) {
1983
+ function Hn(e) {
1977
1984
  return !!(X(e) & q.Delimited);
1978
1985
  }
1979
- function Vn(e) {
1986
+ function Un(e) {
1980
1987
  return X(e) === q.Operator;
1981
1988
  }
1982
- function Hn(e) {
1989
+ function Wn(e) {
1983
1990
  return X(e) === q.HTML;
1984
1991
  }
1985
- function Un(e) {
1992
+ function Gn(e) {
1986
1993
  return X(e) === q.Output;
1987
1994
  }
1988
1995
  function J(e) {
1989
1996
  return X(e) === q.Tag;
1990
1997
  }
1991
- function Wn(e) {
1998
+ function Kn(e) {
1992
1999
  return X(e) === q.Quoted;
1993
2000
  }
1994
- function Gn(e) {
2001
+ function qn(e) {
1995
2002
  return X(e) === q.Number;
1996
2003
  }
1997
- function Kn(e) {
2004
+ function Jn(e) {
1998
2005
  return X(e) === q.PropertyAccess;
1999
2006
  }
2000
- function qn(e) {
2007
+ function Yn(e) {
2001
2008
  return X(e) === q.Word;
2002
2009
  }
2003
- function Jn(e) {
2010
+ function Xn(e) {
2004
2011
  return X(e) === q.Range;
2005
2012
  }
2006
2013
  function Y(e) {
@@ -2014,8 +2021,8 @@ function Z(e) {
2014
2021
  return e && Object.assign(t, e), t;
2015
2022
  }
2016
2023
  var Q = class e {
2017
- constructor(e = {}, t = P, n = {}, { memoryLimit: r, renderLimit: i } = {}) {
2018
- this.scopes = [Z()], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!n.sync, this.opts = t, this.globals = n.globals ?? t.globals, this.environments = h(e) ? e : Object(e), this.strictVariables = n.strictVariables ?? this.opts.strictVariables, this.ownPropertyOnly = n.ownPropertyOnly ?? t.ownPropertyOnly, this.memoryLimit = r ?? new pt("memory alloc", n.memoryLimit ?? t.memoryLimit), this.renderLimit = i ?? new pt("template render", Lt().now() + (n.renderLimit ?? t.renderLimit));
2024
+ constructor(e = {}, t = F, n = {}, { memoryLimit: r, renderLimit: i } = {}) {
2025
+ this.scopes = [Z()], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!n.sync, this.opts = t, this.globals = n.globals ?? t.globals, this.environments = _(e) ? e : Object(e), this.strictVariables = n.strictVariables ?? this.opts.strictVariables, this.ownPropertyOnly = n.ownPropertyOnly ?? t.ownPropertyOnly, this.memoryLimit = r ?? new pt("memory alloc", n.memoryLimit ?? t.memoryLimit), this.renderLimit = i ?? new pt("template render", Lt().now() + (n.renderLimit ?? t.renderLimit));
2019
2026
  }
2020
2027
  getRegister(e, t = void 0) {
2021
2028
  return this.registers[e] = this.registers[e] || t;
@@ -2040,18 +2047,18 @@ var Q = class e {
2040
2047
  return this.getSync(e);
2041
2048
  }
2042
2049
  getSync(e) {
2043
- return O(this._get(e));
2050
+ return k(this._get(e));
2044
2051
  }
2045
2052
  *_get(e) {
2046
2053
  let t = this.findScope(e[0]);
2047
2054
  return yield this._getFromScope(t, e);
2048
2055
  }
2049
2056
  getFromScope(e, t) {
2050
- return O(this._getFromScope(e, t));
2057
+ return k(this._getFromScope(e, t));
2051
2058
  }
2052
2059
  *_getFromScope(e, t, n = this.strictVariables) {
2053
2060
  a(t) && (t = t.split("."));
2054
- for (let r = 0; r < t.length; r++) if (e = yield this.readProperty(e, t[r]), n && re(e)) throw new Ce(t.slice(0, r + 1).join("."));
2061
+ for (let r = 0; r < t.length; r++) if (e = yield this.readProperty(e, t[r]), n && ne(e)) throw new Se(t.slice(0, r + 1).join("."));
2055
2062
  return e;
2056
2063
  }
2057
2064
  push(e) {
@@ -2082,151 +2089,156 @@ var Q = class e {
2082
2089
  return e in this.environments ? this.environments : this.globals;
2083
2090
  }
2084
2091
  readProperty(e, n) {
2085
- if (e = ne(e), n = f(n), p(e)) return e;
2086
- if (m(e) && n < 0) return e[e.length + +n];
2087
- let r = Yn(e, n, this.ownPropertyOnly);
2088
- return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ? Qn(e) : n === "first" ? Xn(e) : n === "last" ? Zn(e) : r;
2092
+ if (e = te(e), n = p(n), h(e)) return e;
2093
+ if (g(e) && m(n)) return u(e, n, this.ownPropertyOnly);
2094
+ let r = Zn(e, n, this.ownPropertyOnly);
2095
+ return r === void 0 && e instanceof t ? e.liquidMethodMissing(n, this) : o(r) ? r.call(e) : n === "size" ? er(e) : n === "first" ? Qn(e, this.ownPropertyOnly) : n === "last" ? $n(e, this.ownPropertyOnly) : r;
2089
2096
  }
2090
2097
  };
2091
- function Yn(e, n, r) {
2098
+ function Zn(e, n, r) {
2092
2099
  if (!(r && !i.call(e, n) && !(e instanceof t))) return e[n];
2093
2100
  }
2094
- function Xn(e) {
2095
- return m(e) ? e[0] : e.first;
2101
+ function Qn(e, t) {
2102
+ return g(e) ? u(e, 0, t) : Zn(e, "first", t);
2096
2103
  }
2097
- function Zn(e) {
2098
- return m(e) ? e[e.length - 1] : e.last;
2104
+ function $n(e, t) {
2105
+ return g(e) ? u(e, -1, t) : Zn(e, "last", t);
2099
2106
  }
2100
- function Qn(e) {
2107
+ function er(e) {
2101
2108
  if (i.call(e, "size") || e.size !== void 0) return e.size;
2102
- if (m(e) || a(e)) return e.length;
2109
+ if (g(e) || a(e)) return e.length;
2103
2110
  if (typeof e == "object") return Object.keys(e).length;
2104
2111
  }
2105
2112
  var $;
2106
2113
  (function(e) {
2107
2114
  e[e.OUTPUT = 0] = "OUTPUT", e[e.STORE = 1] = "STORE";
2108
2115
  })($ ||= {});
2109
- var $n = v(Math.abs), er = v(Math.max), tr = v(Math.min), nr = v(Math.ceil), rr = v((e, t, n = !1) => n ? Math.floor(e / t) : e / t), ir = v(Math.floor), ar = v((e, t) => e - t), or = v((e, t) => e + t), sr = v((e, t) => e % t), cr = v((e, t) => e * t);
2110
- function lr(e, t = 0) {
2116
+ var tr = y(Math.abs), nr = y(Math.max), rr = y(Math.min), ir = y(Math.ceil), ar = y((e, t, n = !1) => n ? Math.floor(e / t) : e / t), or = y(Math.floor), sr = y((e, t) => e - t), cr = y((e, t) => e + t), lr = y((e, t) => (e % t + t) % t), ur = y((e, t) => e * t);
2117
+ function dr(e, t = 0) {
2111
2118
  e = ee(e), t = ee(t);
2112
2119
  let n = 10 ** t, r = e * n * (1 + 2 ** -52);
2113
2120
  return Math.round(r) / n;
2114
2121
  }
2115
- var ur = /*#__PURE__*/ Object.freeze({
2122
+ var fr = /*#__PURE__*/ Object.freeze({
2116
2123
  __proto__: null,
2117
- abs: $n,
2118
- at_least: er,
2119
- at_most: tr,
2120
- ceil: nr,
2121
- divided_by: rr,
2122
- floor: ir,
2123
- minus: ar,
2124
- plus: or,
2125
- modulo: sr,
2126
- times: cr,
2127
- round: lr
2128
- }), dr = (e) => decodeURIComponent(l(e)).replace(/\+/g, " "), fr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+"), pr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), mr = (e) => encodeURI(l(e)).replace(/%5B/g, "[").replace(/%5D/g, "]"), hr = /[^\p{M}\p{L}\p{Nd}]+/gu, gr = {
2124
+ abs: tr,
2125
+ at_least: nr,
2126
+ at_most: rr,
2127
+ ceil: ir,
2128
+ divided_by: ar,
2129
+ floor: or,
2130
+ minus: sr,
2131
+ plus: cr,
2132
+ modulo: lr,
2133
+ times: ur,
2134
+ round: dr
2135
+ }), pr = (e) => decodeURIComponent(l(e)).replace(/\+/g, " "), mr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+"), hr = (e) => encodeURIComponent(l(e)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), gr = (e) => encodeURI(l(e)).replace(/%5B/g, "[").replace(/%5D/g, "]"), _r = /[^\p{M}\p{L}\p{Nd}]+/gu, vr = {
2129
2136
  raw: /\s+/g,
2130
- default: hr,
2137
+ default: _r,
2131
2138
  pretty: /[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/gu,
2132
2139
  ascii: /[^A-Za-z0-9]+/g,
2133
- latin: hr,
2140
+ latin: _r,
2134
2141
  none: null
2135
2142
  };
2136
- function _r(e, t = "default", n = !1) {
2143
+ function yr(e, t = "default", n = !1) {
2137
2144
  e = l(e);
2138
- let r = gr[t];
2139
- return r && (t === "latin" && (e = vr(e)), e = e.replace(r, "-").replace(/^-|-$/g, "")), n ? e : e.toLowerCase();
2145
+ let r = vr[t];
2146
+ return r && (t === "latin" && (e = br(e)), e = e.replace(r, "-").replace(/^-|-$/g, "")), n ? e : e.toLowerCase();
2140
2147
  }
2141
- function vr(e) {
2148
+ function br(e) {
2142
2149
  return e.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");
2143
2150
  }
2144
- var yr = /*#__PURE__*/ Object.freeze({
2151
+ var xr = /*#__PURE__*/ Object.freeze({
2145
2152
  __proto__: null,
2146
- url_decode: dr,
2147
- url_encode: fr,
2148
- cgi_escape: pr,
2149
- uri_escape: mr,
2150
- slugify: _r
2151
- }), br = _(function(e, t) {
2152
- let n = d(e), r = p(t) ? " " : l(t), i = n.length * (1 + r.length);
2153
- return this.context.memoryLimit.use(i), n.join(r);
2154
- }), xr = _((e) => ie(e) ? se(e) : ""), Sr = _((e) => ie(e) ? e[0] : ""), Cr = _(function(e) {
2155
- let t = d(e);
2153
+ url_decode: pr,
2154
+ url_encode: mr,
2155
+ cgi_escape: hr,
2156
+ uri_escape: gr,
2157
+ slugify: yr
2158
+ }), Sr = he(function(e, t) {
2159
+ let n = f(e), r = h(t) ? " " : l(t), i = r.length * Math.max(n.length - 1, 0);
2160
+ for (let e = 0; e < n.length; e++) i += String(n[e]).length;
2161
+ return this.context.memoryLimit.use(i), Array.prototype.join.call(n, r);
2162
+ }), Cr = he(function(e) {
2163
+ return re(e) ? u(e, -1, this.context.ownPropertyOnly) : "";
2164
+ }), wr = he(function(e) {
2165
+ return re(e) ? u(e, 0, this.context.ownPropertyOnly) : "";
2166
+ }), Tr = he(function(e) {
2167
+ let t = f(e);
2156
2168
  return this.context.memoryLimit.use(t.length), [...t].reverse();
2157
2169
  });
2158
- function* wr(e, t, n) {
2159
- let r = [], i = d(e);
2170
+ function* Er(e, t, n) {
2171
+ let r = [], i = f(e);
2160
2172
  this.context.memoryLimit.use(i.length);
2161
2173
  for (let e of i) r.push([e, t ? yield this.context._getFromScope(e, l(t).split("."), !1) : e]);
2162
2174
  return r.sort((e, t) => n(e[1], t[1])).map((e) => e[0]);
2163
2175
  }
2164
- function* Tr(e, t) {
2165
- return yield* wr.call(this, e, t, me);
2166
- }
2167
- function* Er(e, t) {
2168
- return yield* wr.call(this, e, t, he);
2176
+ function* Dr(e, t) {
2177
+ return yield* Er.call(this, e, t, pe);
2169
2178
  }
2170
- var Dr = (e) => e && e.length || 0;
2171
2179
  function* Or(e, t) {
2172
- let n = [], r = d(e);
2180
+ return yield* Er.call(this, e, t, me);
2181
+ }
2182
+ var kr = (e) => e && e.length || 0;
2183
+ function* Ar(e, t) {
2184
+ let n = [], r = f(e);
2173
2185
  this.context.memoryLimit.use(r.length);
2174
2186
  for (let e of r) n.push(yield this.context._getFromScope(e, l(t), !1));
2175
2187
  return n;
2176
2188
  }
2177
- function* kr(e, t) {
2178
- let n = 0, r = d(e);
2189
+ function* jr(e, t) {
2190
+ let n = 0, r = f(e);
2179
2191
  for (let e of r) {
2180
2192
  let r = Number(t ? yield this.context._getFromScope(e, l(t), !1) : e);
2181
2193
  n += Number.isNaN(r) ? 0 : r;
2182
2194
  }
2183
2195
  return n;
2184
2196
  }
2185
- function Ar(e) {
2186
- let t = d(e);
2187
- return this.context.memoryLimit.use(t.length), t.filter((e) => !p(f(e)));
2197
+ function Mr(e) {
2198
+ let t = f(e);
2199
+ return this.context.memoryLimit.use(t.length), Array.prototype.filter.call(t, (e) => !h(p(e)));
2188
2200
  }
2189
- function jr(e, t = []) {
2190
- let n = d(e), r = d(t);
2191
- return this.context.memoryLimit.use(n.length + r.length), n.concat(r);
2201
+ function Nr(e, t = []) {
2202
+ let n = f(e), r = f(t);
2203
+ return this.context.memoryLimit.use(n.length + r.length), Array.prototype.concat.call(n, r);
2192
2204
  }
2193
- function Mr(e, t) {
2194
- return jr.call(this, e, [t]);
2205
+ function Pr(e, t) {
2206
+ return Nr.call(this, e, [t]);
2195
2207
  }
2196
- function Nr(e, t) {
2197
- let n = d(e);
2208
+ function Fr(e, t) {
2209
+ let n = f(e);
2198
2210
  this.context.memoryLimit.use(n.length);
2199
2211
  let r = [...n];
2200
2212
  return r.unshift(t), r;
2201
2213
  }
2202
- function Pr(e) {
2203
- let t = d(e);
2214
+ function Ir(e) {
2215
+ let t = f(e);
2204
2216
  this.context.memoryLimit.use(t.length);
2205
2217
  let n = [...t];
2206
2218
  return n.pop(), n;
2207
2219
  }
2208
- function Fr(e) {
2209
- let t = d(e);
2220
+ function Lr(e) {
2221
+ let t = f(e);
2210
2222
  this.context.memoryLimit.use(t.length);
2211
2223
  let n = [...t];
2212
2224
  return n.shift(), n;
2213
2225
  }
2214
- function Ir(e, t, n = 1) {
2215
- return e = f(e), p(e) ? [] : (m(e) || (e = l(e)), t = t < 0 ? e.length + t : t, this.context.memoryLimit.use(n), e.slice(t, t + n));
2226
+ function Rr(e, t, n = 1) {
2227
+ return e = p(e), h(e) ? [] : (g(e) || (e = l(e)), t = t < 0 ? e.length + t : t, t < 0 || n < 0 ? g(e) ? [] : "" : (this.context.memoryLimit.use(n), g(e) ? Array.prototype.slice.call(e, t, t + n) : String.prototype.slice.call(e, t, t + n)));
2216
2228
  }
2217
- function Lr(e) {
2218
- return this.context.opts.jekyllWhere ? (t) => Pe.is(e) ? N(t, e) : m(t) ? Kt(t, e) : N(t, e) : e === void 0 ? (e) => j(e, this.context) : (t) => N(t, e);
2229
+ function zr(e) {
2230
+ return this.context.opts.jekyllWhere ? (t) => Pe.is(e) ? N(t, e) : g(t) ? qt(t, e) : N(t, e) : e === void 0 ? (e) => M(e, this.context) : (t) => N(t, e);
2219
2231
  }
2220
- function* Rr(e, t, n, r) {
2232
+ function* Br(e, t, n, r) {
2221
2233
  let i = [];
2222
- t = d(t), this.context.memoryLimit.use(t.length);
2223
- let a = new I(l(n)).readScopeValue();
2224
- for (let e of t) i.push(yield A(a, this.context.spawn(e)));
2225
- let o = Lr.call(this, r);
2226
- return t.filter((t, n) => o(i[n]) === e);
2227
- }
2228
- function* zr(e, t, n, r) {
2229
- let i = [], a = new z(l(r), this.liquid), o = d(t);
2234
+ t = f(t), this.context.memoryLimit.use(t.length);
2235
+ let a = new L(l(n)).readScopeValue();
2236
+ for (let e of t) i.push(yield j(a, this.context.spawn(e)));
2237
+ let o = zr.call(this, r);
2238
+ return Array.prototype.filter.call(t, (t, n) => o(i[n]) === e);
2239
+ }
2240
+ function* Vr(e, t, n, r) {
2241
+ let i = [], a = new B(l(r), this.liquid), o = f(t);
2230
2242
  this.context.memoryLimit.use(o.length);
2231
2243
  for (let t of o) {
2232
2244
  this.context.push({ [n]: t });
@@ -2235,25 +2247,25 @@ function* zr(e, t, n, r) {
2235
2247
  }
2236
2248
  return i;
2237
2249
  }
2238
- function* Br(e, t, n) {
2239
- return yield* Rr.call(this, !0, e, t, n);
2240
- }
2241
- function* Vr(e, t, n) {
2242
- return yield* Rr.call(this, !1, e, t, n);
2243
- }
2244
2250
  function* Hr(e, t, n) {
2245
- return yield* zr.call(this, !0, e, t, n);
2251
+ return yield* Br.call(this, !0, e, t, n);
2246
2252
  }
2247
2253
  function* Ur(e, t, n) {
2248
- return yield* zr.call(this, !1, e, t, n);
2254
+ return yield* Br.call(this, !1, e, t, n);
2255
+ }
2256
+ function* Wr(e, t, n) {
2257
+ return yield* Vr.call(this, !0, e, t, n);
2249
2258
  }
2250
- function* Wr(e, t) {
2259
+ function* Gr(e, t, n) {
2260
+ return yield* Vr.call(this, !1, e, t, n);
2261
+ }
2262
+ function* Kr(e, t) {
2251
2263
  let n = /* @__PURE__ */ new Map();
2252
- e = u(e);
2253
- let r = new I(l(t)).readScopeValue();
2264
+ e = d(e);
2265
+ let r = new L(l(t)).readScopeValue();
2254
2266
  this.context.memoryLimit.use(e.length);
2255
2267
  for (let t of e) {
2256
- let e = yield A(r, this.context.spawn(t));
2268
+ let e = yield j(r, this.context.spawn(t));
2257
2269
  n.has(e) || n.set(e, []), n.get(e).push(t);
2258
2270
  }
2259
2271
  return [...n.entries()].map(([e, t]) => ({
@@ -2261,9 +2273,9 @@ function* Wr(e, t) {
2261
2273
  items: t
2262
2274
  }));
2263
2275
  }
2264
- function* Gr(e, t, n) {
2265
- let r = /* @__PURE__ */ new Map(), i = new z(l(n), this.liquid);
2266
- e = u(e), this.context.memoryLimit.use(e.length);
2276
+ function* qr(e, t, n) {
2277
+ let r = /* @__PURE__ */ new Map(), i = new B(l(n), this.liquid);
2278
+ e = d(e), this.context.memoryLimit.use(e.length);
2267
2279
  for (let n of e) {
2268
2280
  this.context.push({ [t]: n });
2269
2281
  let e = yield i.value(this.context);
@@ -2274,102 +2286,102 @@ function* Gr(e, t, n) {
2274
2286
  items: t
2275
2287
  }));
2276
2288
  }
2277
- function* Kr(e, t, n) {
2278
- let r = new I(l(t)).readScopeValue(), i = d(e), a = Lr.call(this, n);
2279
- for (let e = 0; e < i.length; e++) if (a(yield A(r, this.context.spawn(i[e])))) return [e, i[e]];
2289
+ function* Jr(e, t, n) {
2290
+ let r = new L(l(t)).readScopeValue(), i = f(e), a = zr.call(this, n);
2291
+ for (let e = 0; e < i.length; e++) if (a(yield j(r, this.context.spawn(i[e])))) return [e, i[e]];
2280
2292
  }
2281
- function* qr(e, t, n) {
2282
- let r = new z(l(n), this.liquid), i = d(e);
2293
+ function* Yr(e, t, n) {
2294
+ let r = new B(l(n), this.liquid), i = f(e);
2283
2295
  for (let e = 0; e < i.length; e++) {
2284
2296
  this.context.push({ [t]: i[e] });
2285
2297
  let n = yield r.value(this.context);
2286
2298
  if (this.context.pop(), n) return [e, i[e]];
2287
2299
  }
2288
2300
  }
2289
- function* Jr(e, t, n) {
2290
- return !!(yield* Kr.call(this, e, t, n));
2301
+ function* Xr(e, t, n) {
2302
+ return !!(yield* Jr.call(this, e, t, n));
2291
2303
  }
2292
- function* Yr(e, t, n) {
2293
- return !!(yield* qr.call(this, e, t, n));
2304
+ function* Zr(e, t, n) {
2305
+ return !!(yield* Yr.call(this, e, t, n));
2294
2306
  }
2295
- function* Xr(e, t, n) {
2296
- let r = yield* Kr.call(this, e, t, n);
2307
+ function* Qr(e, t, n) {
2308
+ let r = yield* Jr.call(this, e, t, n);
2297
2309
  return r ? r[0] : void 0;
2298
2310
  }
2299
- function* Zr(e, t, n) {
2300
- let r = yield* qr.call(this, e, t, n);
2311
+ function* $r(e, t, n) {
2312
+ let r = yield* Yr.call(this, e, t, n);
2301
2313
  return r ? r[0] : void 0;
2302
2314
  }
2303
- function* Qr(e, t, n) {
2304
- let r = yield* Kr.call(this, e, t, n);
2315
+ function* ei(e, t, n) {
2316
+ let r = yield* Jr.call(this, e, t, n);
2305
2317
  return r ? r[1] : void 0;
2306
2318
  }
2307
- function* $r(e, t, n) {
2308
- let r = yield* qr.call(this, e, t, n);
2319
+ function* ti(e, t, n) {
2320
+ let r = yield* Yr.call(this, e, t, n);
2309
2321
  return r ? r[1] : void 0;
2310
2322
  }
2311
- function ei(e) {
2312
- return e = d(e), this.context.memoryLimit.use(e.length), [...new Set(e)];
2323
+ function ni(e) {
2324
+ return e = f(e), this.context.memoryLimit.use(e.length), [...new Set(e)];
2313
2325
  }
2314
- function ti(e, t = 1) {
2315
- if (e = f(e), p(e)) return [];
2316
- m(e) || (e = l(e)), this.context.memoryLimit.use(e.length);
2326
+ function ri(e, t = 1) {
2327
+ if (e = p(e), h(e)) return [];
2328
+ g(e) || (e = l(e)), this.context.memoryLimit.use(e.length);
2317
2329
  let n = [...e].sort(() => Math.random() - .5);
2318
2330
  return t === 1 ? n[0] : n.slice(0, t);
2319
2331
  }
2320
- var ni = /*#__PURE__*/ Object.freeze({
2332
+ var ii = /*#__PURE__*/ Object.freeze({
2321
2333
  __proto__: null,
2322
- join: br,
2323
- last: xr,
2324
- first: Sr,
2325
- reverse: Cr,
2326
- sort: Tr,
2327
- sort_natural: Er,
2328
- size: Dr,
2329
- map: Or,
2330
- sum: kr,
2331
- compact: Ar,
2332
- concat: jr,
2333
- push: Mr,
2334
- unshift: Nr,
2335
- pop: Pr,
2336
- shift: Fr,
2337
- slice: Ir,
2338
- where: Br,
2339
- reject: Vr,
2340
- where_exp: Hr,
2341
- reject_exp: Ur,
2342
- group_by: Wr,
2343
- group_by_exp: Gr,
2344
- has: Jr,
2345
- has_exp: Yr,
2346
- find_index: Xr,
2347
- find_index_exp: Zr,
2348
- find: Qr,
2349
- find_exp: $r,
2350
- uniq: ei,
2351
- sample: ti
2334
+ join: Sr,
2335
+ last: Cr,
2336
+ first: wr,
2337
+ reverse: Tr,
2338
+ sort: Dr,
2339
+ sort_natural: Or,
2340
+ size: kr,
2341
+ map: Ar,
2342
+ sum: jr,
2343
+ compact: Mr,
2344
+ concat: Nr,
2345
+ push: Pr,
2346
+ unshift: Fr,
2347
+ pop: Ir,
2348
+ shift: Lr,
2349
+ slice: Rr,
2350
+ where: Hr,
2351
+ reject: Ur,
2352
+ where_exp: Wr,
2353
+ reject_exp: Gr,
2354
+ group_by: Kr,
2355
+ group_by_exp: qr,
2356
+ has: Xr,
2357
+ has_exp: Zr,
2358
+ find_index: Qr,
2359
+ find_index_exp: $r,
2360
+ find: ei,
2361
+ find_exp: ti,
2362
+ uniq: ni,
2363
+ sample: ri
2352
2364
  });
2353
- function ri(e, t, n) {
2365
+ function ai(e, t, n) {
2354
2366
  let r = (e?.length ?? 0) + (n?.length ?? 0);
2355
2367
  this.context.memoryLimit.use(r);
2356
- let i = li(e, this.context.opts, n);
2357
- return i ? (t = f(t), t = p(t) ? this.context.opts.dateFormat : l(t), this.context.memoryLimit.use(t.length), it(i, t, this.context.memoryLimit)) : e;
2368
+ let i = di(e, this.context.opts, n);
2369
+ return i ? (t = p(t), t = h(t) ? this.context.opts.dateFormat : l(t), this.context.memoryLimit.use(t.length), it(i, t, this.context.memoryLimit)) : e;
2358
2370
  }
2359
- function ii(e) {
2360
- return ri.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
2371
+ function oi(e) {
2372
+ return ai.call(this, e, "%Y-%m-%dT%H:%M:%S%:z");
2361
2373
  }
2362
- function ai(e) {
2363
- return ri.call(this, e, "%a, %d %b %Y %H:%M:%S %z");
2374
+ function si(e) {
2375
+ return ai.call(this, e, "%a, %d %b %Y %H:%M:%S %z");
2364
2376
  }
2365
- function oi(e, t, n) {
2366
- return ci.call(this, e, "%b", t, n);
2377
+ function ci(e, t, n) {
2378
+ return ui.call(this, e, "%b", t, n);
2367
2379
  }
2368
- function si(e, t, n) {
2369
- return ci.call(this, e, "%B", t, n);
2380
+ function li(e, t, n) {
2381
+ return ui.call(this, e, "%B", t, n);
2370
2382
  }
2371
- function ci(e, t, n, r) {
2372
- let i = li(e, this.context.opts);
2383
+ function ui(e, t, n, r) {
2384
+ let i = di(e, this.context.opts);
2373
2385
  if (!i) return e;
2374
2386
  let a = this.context.memoryLimit;
2375
2387
  if (n === "ordinal") {
@@ -2378,29 +2390,29 @@ function ci(e, t, n, r) {
2378
2390
  }
2379
2391
  return it(i, `%d ${t} %Y`, a);
2380
2392
  }
2381
- function li(e, t, n) {
2393
+ function di(e, t, n) {
2382
2394
  let r, i = n ?? t.timezoneOffset, o = t.locale;
2383
- if (e = f(e), !p(e)) return r = e === "now" || e === "today" ? new k(Date.now(), o, i) : te(e) ? new k(e * 1e3, o, i) : a(e) ? /^\d+$/.test(e) ? new k(e * 1e3, o, i) : t.preserveTimezones && n === void 0 ? k.createDateFixedToTimezone(e, o) : new k(e, o, i) : new k(e, o, i), r.valid() ? r : void 0;
2395
+ if (e = p(e), !h(e)) return r = e === "now" || e === "today" ? new A(Date.now(), o, i) : m(e) ? new A(e * 1e3, o, i) : a(e) ? /^\d+$/.test(e) ? new A(e * 1e3, o, i) : t.preserveTimezones && n === void 0 ? A.createDateFixedToTimezone(e, o) : new A(e, o, i) : new A(e, o, i), r.valid() ? r : void 0;
2384
2396
  }
2385
- var ui = /*#__PURE__*/ Object.freeze({
2397
+ var fi = /*#__PURE__*/ Object.freeze({
2386
2398
  __proto__: null,
2387
- date: ri,
2388
- date_to_xmlschema: ii,
2389
- date_to_rfc822: ai,
2390
- date_to_string: oi,
2391
- date_to_long_string: si
2392
- }), di = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, fi = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
2393
- function pi(e, t) {
2394
- C(arguments.length === 2, "append expect 2 arguments");
2399
+ date: ai,
2400
+ date_to_xmlschema: oi,
2401
+ date_to_rfc822: si,
2402
+ date_to_string: ci,
2403
+ date_to_long_string: li
2404
+ }), pi = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, mi = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
2405
+ function hi(e, t) {
2406
+ w(arguments.length === 2, "append expect 2 arguments");
2395
2407
  let n = l(e), r = l(t);
2396
2408
  return this.context.memoryLimit.use(n.length + r.length), n + r;
2397
2409
  }
2398
- function mi(e, t) {
2399
- C(arguments.length === 2, "prepend expect 2 arguments");
2410
+ function gi(e, t) {
2411
+ w(arguments.length === 2, "prepend expect 2 arguments");
2400
2412
  let n = l(e), r = l(t);
2401
2413
  return this.context.memoryLimit.use(n.length + r.length), r + n;
2402
2414
  }
2403
- function hi(e, t) {
2415
+ function _i(e, t) {
2404
2416
  let n = l(e);
2405
2417
  if (this.context.memoryLimit.use(n.length), t) {
2406
2418
  t = l(t), this.context.memoryLimit.use(t.length);
@@ -2409,29 +2421,29 @@ function hi(e, t) {
2409
2421
  }
2410
2422
  return n.trimStart();
2411
2423
  }
2412
- function gi(e) {
2424
+ function vi(e) {
2413
2425
  let t = l(e);
2414
2426
  return this.context.memoryLimit.use(t.length), t.toLowerCase();
2415
2427
  }
2416
- function _i(e) {
2428
+ function yi(e) {
2417
2429
  let t = l(e);
2418
2430
  return this.context.memoryLimit.use(t.length), l(t).toUpperCase();
2419
2431
  }
2420
- function vi(e, t) {
2432
+ function bi(e, t) {
2421
2433
  let n = l(e);
2422
2434
  return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.split(t).join("");
2423
2435
  }
2424
- function yi(e, t) {
2436
+ function xi(e, t) {
2425
2437
  let n = l(e);
2426
2438
  return t = l(t), this.context.memoryLimit.use(n.length + t.length), n.replace(t, "");
2427
2439
  }
2428
- function bi(e, t) {
2440
+ function Si(e, t) {
2429
2441
  let n = l(e), r = l(t);
2430
2442
  this.context.memoryLimit.use(n.length + r.length);
2431
2443
  let i = n.lastIndexOf(r);
2432
2444
  return i === -1 ? n : n.substring(0, i) + n.substring(i + r.length);
2433
2445
  }
2434
- function xi(e, t) {
2446
+ function Ci(e, t) {
2435
2447
  if (e = l(e), this.context.memoryLimit.use(e.length), t) {
2436
2448
  t = l(t), this.context.memoryLimit.use(t.length);
2437
2449
  for (let n = e.length - 1, r = new Set(t); n >= 0; n--) if (!r.has(e[n])) return e.slice(0, n + 1);
@@ -2439,14 +2451,14 @@ function xi(e, t) {
2439
2451
  }
2440
2452
  return e.trimEnd();
2441
2453
  }
2442
- function Si(e, t) {
2454
+ function wi(e, t) {
2443
2455
  let n = l(e);
2444
2456
  this.context.memoryLimit.use(n.length);
2445
2457
  let r = n.split(l(t));
2446
2458
  for (; r.length && r[r.length - 1] === "";) r.pop();
2447
2459
  return r;
2448
2460
  }
2449
- function Ci(e, t) {
2461
+ function Ti(e, t) {
2450
2462
  let n = l(e);
2451
2463
  if (this.context.memoryLimit.use(n.length), t) {
2452
2464
  let e = new Set(l(t));
@@ -2458,34 +2470,34 @@ function Ci(e, t) {
2458
2470
  }
2459
2471
  return n.trim();
2460
2472
  }
2461
- function wi(e) {
2473
+ function Ei(e) {
2462
2474
  let t = l(e);
2463
2475
  return this.context.memoryLimit.use(t.length), t.replace(/\r?\n/gm, "");
2464
2476
  }
2465
- function Ti(e) {
2477
+ function Di(e) {
2466
2478
  return e = l(e), this.context.memoryLimit.use(e.length), e.charAt(0).toUpperCase() + e.slice(1).toLowerCase();
2467
2479
  }
2468
- function Ei(e, t, n) {
2480
+ function Oi(e, t, n) {
2469
2481
  let r = l(e);
2470
2482
  t = l(t), n = l(n);
2471
2483
  let i = r.split(t), a = r.length + (i.length - 1) * (n.length - t.length);
2472
2484
  return this.context.memoryLimit.use(a), i.join(n);
2473
2485
  }
2474
- function Di(e, t, n) {
2486
+ function ki(e, t, n) {
2475
2487
  let r = l(e);
2476
2488
  return t = l(t), n = l(n), this.context.memoryLimit.use(r.length + t.length + n.length), r.replace(t, () => n);
2477
2489
  }
2478
- function Oi(e, t, n) {
2490
+ function Ai(e, t, n) {
2479
2491
  let r = l(e), i = l(t), a = l(n);
2480
2492
  this.context.memoryLimit.use(r.length + i.length + a.length);
2481
2493
  let o = r.lastIndexOf(i);
2482
2494
  return o === -1 ? r : r.substring(0, o) + a + r.substring(o + i.length);
2483
2495
  }
2484
- function ki(e, t = 50, n = "...") {
2496
+ function ji(e, t = 50, n = "...") {
2485
2497
  let r = l(e);
2486
2498
  return n = l(n), this.context.memoryLimit.use(r.length + n.length), r.length <= t ? e : r.substring(0, t - n.length) + n;
2487
2499
  }
2488
- function Ai(e, t = 15, n = "...") {
2500
+ function Mi(e, t = 15, n = "...") {
2489
2501
  let r = l(e);
2490
2502
  n = l(n), this.context.memoryLimit.use(r.length + n.length);
2491
2503
  let i = r.split(/\s+/);
@@ -2493,106 +2505,109 @@ function Ai(e, t = 15, n = "...") {
2493
2505
  let a = i.slice(0, t).join(" ");
2494
2506
  return i.length >= t && (a += n), a;
2495
2507
  }
2496
- function ji(e) {
2508
+ function Ni(e) {
2497
2509
  let t = l(e);
2498
2510
  return this.context.memoryLimit.use(t.length), t.replace(/\s+/g, " ");
2499
2511
  }
2500
- function Mi(e, t) {
2512
+ function Pi(e, t) {
2501
2513
  let n = l(e);
2502
2514
  if (this.context.memoryLimit.use(n.length), e = n.trim(), !e) return 0;
2503
2515
  switch (t) {
2504
- case "cjk": return (e.match(di) || []).length + (e.match(fi) || []).length;
2505
- case "auto": return di.test(e) ? e.match(di).length + (e.match(fi) || []).length : e.split(/\s+/).length;
2516
+ case "cjk": return (e.match(pi) || []).length + (e.match(mi) || []).length;
2517
+ case "auto": return pi.test(e) ? e.match(pi).length + (e.match(mi) || []).length : e.split(/\s+/).length;
2506
2518
  default: return e.split(/\s+/).length;
2507
2519
  }
2508
2520
  }
2509
- function Ni(e, t = "and") {
2510
- switch (t = l(t), this.context.memoryLimit.use(e.length + t.length), e.length) {
2521
+ function Fi(e, t = "and") {
2522
+ t = l(t);
2523
+ let n = t.length + e.length * 2;
2524
+ for (let t = 0; t < e.length; t++) n += l(e[t]).length;
2525
+ switch (this.context.memoryLimit.use(n), e.length) {
2511
2526
  case 0: return "";
2512
2527
  case 1: return e[0];
2513
2528
  case 2: return `${e[0]} ${t} ${e[1]}`;
2514
2529
  default: return `${e.slice(0, -1).join(", ")}, ${t} ${e[e.length - 1]}`;
2515
2530
  }
2516
2531
  }
2517
- var Pi = /*#__PURE__*/ Object.freeze({
2532
+ var Ii = /*#__PURE__*/ Object.freeze({
2518
2533
  __proto__: null,
2519
- append: pi,
2520
- prepend: mi,
2521
- lstrip: hi,
2522
- downcase: gi,
2523
- upcase: _i,
2524
- remove: vi,
2525
- remove_first: yi,
2526
- remove_last: bi,
2527
- rstrip: xi,
2528
- split: Si,
2529
- strip: Ci,
2530
- strip_newlines: wi,
2531
- capitalize: Ti,
2532
- replace: Ei,
2533
- replace_first: Di,
2534
- replace_last: Oi,
2535
- truncate: ki,
2536
- truncatewords: Ai,
2537
- normalize_whitespace: ji,
2538
- number_of_words: Mi,
2539
- array_to_sentence_string: Ni
2534
+ append: hi,
2535
+ prepend: gi,
2536
+ lstrip: _i,
2537
+ downcase: vi,
2538
+ upcase: yi,
2539
+ remove: bi,
2540
+ remove_first: xi,
2541
+ remove_last: Si,
2542
+ rstrip: Ci,
2543
+ split: wi,
2544
+ strip: Ti,
2545
+ strip_newlines: Ei,
2546
+ capitalize: Di,
2547
+ replace: Oi,
2548
+ replace_first: ki,
2549
+ replace_last: Ai,
2550
+ truncate: ji,
2551
+ truncatewords: Mi,
2552
+ normalize_whitespace: Ni,
2553
+ number_of_words: Pi,
2554
+ array_to_sentence_string: Fi
2540
2555
  });
2541
- function Fi(e) {
2556
+ function Li(e) {
2542
2557
  return btoa(String.fromCharCode(...new TextEncoder().encode(e)));
2543
2558
  }
2544
- function Ii(e) {
2559
+ function Ri(e) {
2545
2560
  return new TextDecoder().decode(Uint8Array.from(atob(e), (e) => e.charCodeAt(0)));
2546
2561
  }
2547
- function Li(e) {
2562
+ function zi(e) {
2548
2563
  if (typeof Buffer < "u" && Buffer.isBuffer(e)) return this.context.memoryLimit.use(e.byteLength), e.toString("base64");
2549
2564
  let t = l(e);
2550
- return this.context.memoryLimit.use(t.length), Fi(t);
2565
+ return this.context.memoryLimit.use(t.length), Li(t);
2551
2566
  }
2552
- function Ri(e) {
2567
+ function Bi(e) {
2553
2568
  let t = l(e);
2554
- return this.context.memoryLimit.use(t.length), Ii(t);
2569
+ return this.context.memoryLimit.use(t.length), Ri(t);
2555
2570
  }
2556
- var zi = /*#__PURE__*/ Object.freeze({
2571
+ var Vi = /*#__PURE__*/ Object.freeze({
2557
2572
  __proto__: null,
2558
- base64_encode: Li,
2559
- base64_decode: Ri
2573
+ base64_encode: zi,
2574
+ base64_decode: Bi
2560
2575
  });
2561
- function Bi(e) {
2576
+ function Hi(e) {
2562
2577
  let t = new Uint8Array(e), n = "";
2563
2578
  for (let e = 0; e < t.length; e++) n += t[e].toString(16).padStart(2, "0");
2564
2579
  return n;
2565
2580
  }
2566
- function Vi(e) {
2567
- return E(this, void 0, void 0, function* () {
2581
+ function Ui(e) {
2582
+ return D(this, void 0, void 0, function* () {
2568
2583
  let t = new TextEncoder().encode(e);
2569
- return Bi(yield crypto.subtle.digest("SHA-256", t));
2584
+ return Hi(yield crypto.subtle.digest("SHA-256", t));
2570
2585
  });
2571
2586
  }
2572
- function Hi(e, t) {
2573
- return E(this, void 0, void 0, function* () {
2587
+ function Wi(e, t) {
2588
+ return D(this, void 0, void 0, function* () {
2574
2589
  let n = new TextEncoder(), r = yield crypto.subtle.importKey("raw", n.encode(t), {
2575
2590
  name: "HMAC",
2576
2591
  hash: "SHA-256"
2577
2592
  }, !1, ["sign"]);
2578
- return Bi(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
2593
+ return Hi(yield crypto.subtle.sign("HMAC", r, n.encode(e)));
2579
2594
  });
2580
2595
  }
2581
- function Ui(e) {
2596
+ function Gi(e) {
2582
2597
  let t = l(e);
2583
- return this.context.memoryLimit.use(t.length), Vi(t);
2598
+ return this.context.memoryLimit.use(t.length), Ui(t);
2584
2599
  }
2585
- function Wi(e, t) {
2600
+ function Ki(e, t) {
2586
2601
  let n = l(e), r = l(t);
2587
- return this.context.memoryLimit.use(n.length + r.length), Hi(n, r);
2602
+ return this.context.memoryLimit.use(n.length + r.length), Wi(n, r);
2588
2603
  }
2589
- var Gi = /*#__PURE__*/ Object.freeze({
2604
+ var qi = /*#__PURE__*/ Object.freeze({
2590
2605
  __proto__: null,
2591
- sha256: Ui,
2592
- hmac_sha256: Wi
2593
- }), Ki = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, _n), ur), yr), ni), ui), Pi), zi), Gi), cn), qi = class extends L {
2606
+ sha256: Gi,
2607
+ hmac_sha256: Ki
2608
+ }), Ji = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, vn), fr), xr), ii), fi), Ii), Vi), qi), un), Yi = class extends R {
2594
2609
  constructor(e, t, n) {
2595
- super(e, t, n), 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 z(this.tokenizer.readFilteredValue(), this.liquid);
2610
+ super(e, t, n), 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 B(this.tokenizer.readFilteredValue(), this.liquid);
2596
2611
  }
2597
2612
  *render(e) {
2598
2613
  e.bottom()[this.key] = yield this.value.value(e, this.liquid.options.lenientIf);
@@ -2603,27 +2618,27 @@ var Gi = /*#__PURE__*/ Object.freeze({
2603
2618
  *localScope() {
2604
2619
  yield this.identifier;
2605
2620
  }
2606
- }, Ji = [
2621
+ }, Xi = [
2607
2622
  "offset",
2608
2623
  "limit",
2609
2624
  "reversed"
2610
- ], Yi = class extends L {
2625
+ ], Zi = class extends R {
2611
2626
  constructor(e, t, n, r) {
2612
2627
  super(e, t, n);
2613
2628
  let i = this.tokenizer.readIdentifier(), a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
2614
2629
  if (!i.size() || a.content !== "in" || !o) throw Error(`illegal tag: ${e.getText()}`);
2615
- this.variable = i.content, this.collection = o, this.hash = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
2630
+ this.variable = i.content, this.collection = o, this.hash = new z(this.tokenizer, n.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
2616
2631
  let s, c = r.parseStream(t).on("start", () => s = this.templates).on("tag:else", (e) => {
2617
- w(e.args), s = this.elseTemplates;
2632
+ T(e.args), s = this.elseTemplates;
2618
2633
  }).on("tag:endfor", (e) => {
2619
- w(e.args), c.stop();
2634
+ T(e.args), c.stop();
2620
2635
  }).on("template", (e) => s.push(e)).on("end", () => {
2621
2636
  throw Error(`tag ${e.getText()} not closed`);
2622
2637
  });
2623
2638
  c.start();
2624
2639
  }
2625
2640
  *render(e, t) {
2626
- let n = this.liquid.renderer, r = u(yield A(this.collection, e));
2641
+ let n = this.liquid.renderer, r = d(yield j(this.collection, e));
2627
2642
  if (!r.length) {
2628
2643
  yield n.renderTemplates(this.elseTemplates, e, t);
2629
2644
  return;
@@ -2631,7 +2646,7 @@ var Gi = /*#__PURE__*/ Object.freeze({
2631
2646
  let i = "continue-" + this.variable + "-" + this.collection.getText();
2632
2647
  e.push(Z({ continue: e.getRegister(i, {}) }));
2633
2648
  let a = yield this.hash.render(e);
2634
- e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) => Ji.includes(e)) : Ji.filter((e) => a[e] !== void 0)).reduce((e, t) => t === "offset" ? Zi(e, a.offset) : t === "limit" ? Qi(e, a.limit) : Xi(e), r), e.setRegister(i, (a.offset || 0) + r.length);
2649
+ e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(a).filter((e) => Xi.includes(e)) : Xi.filter((e) => a[e] !== void 0)).reduce((e, t) => t === "offset" ? $i(e, a.offset) : t === "limit" ? ea(e, a.limit) : Qi(e), r), e.setRegister(i, (a.offset || 0) + r.length);
2635
2650
  let o = Z({ forloop: new Ie(r.length, this.collection.getText(), this.variable) });
2636
2651
  e.push(o);
2637
2652
  for (let i of r) {
@@ -2652,16 +2667,16 @@ var Gi = /*#__PURE__*/ Object.freeze({
2652
2667
  return [this.variable, "forloop"];
2653
2668
  }
2654
2669
  };
2655
- function Xi(e) {
2670
+ function Qi(e) {
2656
2671
  return [...e].reverse();
2657
2672
  }
2658
- function Zi(e, t) {
2673
+ function $i(e, t) {
2659
2674
  return e.slice(t);
2660
2675
  }
2661
- function Qi(e, t) {
2676
+ function ea(e, t) {
2662
2677
  return e.slice(0, t);
2663
2678
  }
2664
- var $i = class extends L {
2679
+ var ta = class extends R {
2665
2680
  constructor(e, t, n, r) {
2666
2681
  for (super(e, t, n), this.templates = [], this.identifier = this.readVariable(), this.variable = this.identifier.content; t.length;) {
2667
2682
  let e = t.shift();
@@ -2685,9 +2700,9 @@ var $i = class extends L {
2685
2700
  *localScope() {
2686
2701
  yield this.identifier;
2687
2702
  }
2688
- }, ea = class extends L {
2703
+ }, na = class extends R {
2689
2704
  constructor(e, t, n, r) {
2690
- super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new z(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
2705
+ super(e, t, n), this.branches = [], this.elseTemplates = [], this.value = new B(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
2691
2706
  let i = [], a = 0, o = r.parseStream(t).on("tag:when", (e) => {
2692
2707
  if (a > 0) return;
2693
2708
  i = [];
@@ -2707,8 +2722,8 @@ var $i = class extends L {
2707
2722
  o.start();
2708
2723
  }
2709
2724
  *render(e, t) {
2710
- let n = this.liquid.renderer, r = f(yield this.value.value(e, e.opts.lenientIf)), i = !1;
2711
- for (let a of this.branches) for (let o of a.values) if (N(r, yield A(o, e, e.opts.lenientIf))) {
2725
+ let n = this.liquid.renderer, r = p(yield this.value.value(e, e.opts.lenientIf)), i = !1;
2726
+ for (let a of this.branches) for (let o of a.values) if (N(r, yield j(o, e, e.opts.lenientIf))) {
2712
2727
  yield n.renderTemplates(a.templates, e, t), i = !0;
2713
2728
  break;
2714
2729
  }
@@ -2721,7 +2736,7 @@ var $i = class extends L {
2721
2736
  let e = this.branches.flatMap((e) => e.templates);
2722
2737
  return this.elseTemplates && e.push(...this.elseTemplates), e;
2723
2738
  }
2724
- }, ta = class extends L {
2739
+ }, ra = class extends R {
2725
2740
  constructor(e, t, n) {
2726
2741
  for (super(e, t, n); t.length;) {
2727
2742
  let e = t.shift();
@@ -2730,11 +2745,11 @@ var $i = class extends L {
2730
2745
  throw Error(`tag ${e.getText()} not closed`);
2731
2746
  }
2732
2747
  render() {}
2733
- }, na = class extends L {
2748
+ }, ia = class extends R {
2734
2749
  constructor(e, t, n, r) {
2735
2750
  super(e, t, n);
2736
2751
  let i = this.tokenizer;
2737
- for (this.file = ra(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
2752
+ for (this.file = aa(i, this.liquid, r), this.currentFile = e.file; !i.end();) {
2738
2753
  i.skipBlank();
2739
2754
  let e = i.p, t = i.readIdentifier();
2740
2755
  if ((t.content === "with" || t.content === "for") && (i.skipBlank(), i.peek() !== ":")) {
@@ -2753,18 +2768,18 @@ var $i = class extends L {
2753
2768
  i.p = e;
2754
2769
  break;
2755
2770
  }
2756
- this.hash = new R(i, n.options.keyValueSeparator);
2771
+ this.hash = new z(i, n.options.keyValueSeparator);
2757
2772
  }
2758
2773
  *render(e, t) {
2759
- let { liquid: n, hash: r } = this, i = yield aa(this.file, e, n);
2760
- C(i, () => `illegal file path "${i}"`);
2774
+ let { liquid: n, hash: r } = this, i = yield sa(this.file, e, n);
2775
+ w(i, () => `illegal file path "${i}"`);
2761
2776
  let a = e.spawn(), o = a.bottom();
2762
2777
  if (Ge(o, yield r.render(e)), this.with) {
2763
2778
  let { value: t, alias: n } = this.with;
2764
- o[n || i] = yield A(t, e);
2779
+ o[n || i] = yield j(t, e);
2765
2780
  }
2766
2781
  if (this.forBinding) {
2767
- let { value: r, alias: s } = this.forBinding, c = u(yield A(r, e));
2782
+ let { value: r, alias: s } = this.forBinding, c = d(yield j(r, e));
2768
2783
  o.forloop = new Ie(c.length, r.getText(), s);
2769
2784
  for (let e of c) {
2770
2785
  o[s] = e;
@@ -2809,35 +2824,35 @@ var $i = class extends L {
2809
2824
  }
2810
2825
  }
2811
2826
  };
2812
- function ra(e, t, n) {
2827
+ function aa(e, t, n) {
2813
2828
  if (t.options.dynamicPartials) {
2814
2829
  let t = e.readValue();
2815
- return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Wn(t) ? ia(n.parse(Vt(t))) : t;
2830
+ return e.assert(t, "illegal file path"), t.getText() === "none" ? void 0 : Kn(t) ? oa(n.parse(Vt(t))) : t;
2816
2831
  }
2817
- let r = [...e.readFileNameTemplate(t.options)], i = ia(n.parseTokens(r));
2832
+ let r = [...e.readFileNameTemplate(t.options)], i = oa(n.parseTokens(r));
2818
2833
  return i === "none" ? void 0 : i;
2819
2834
  }
2820
- function ia(e) {
2821
- return e.length === 1 && Hn(e[0].token) ? e[0].token.getContent() : e;
2835
+ function oa(e) {
2836
+ return e.length === 1 && Wn(e[0].token) ? e[0].token.getContent() : e;
2822
2837
  }
2823
- function* aa(e, t, n) {
2824
- return typeof e == "string" ? e : Array.isArray(e) ? n.renderer.renderTemplates(e, t) : yield A(e, t);
2838
+ function* sa(e, t, n) {
2839
+ return typeof e == "string" ? e : Array.isArray(e) ? n.renderer.renderTemplates(e, t) : yield j(e, t);
2825
2840
  }
2826
- var oa = class extends L {
2841
+ var ca = class extends R {
2827
2842
  constructor(e, t, n, r) {
2828
2843
  super(e, t, n);
2829
2844
  let { tokenizer: i } = e;
2830
- this.file = ra(i, this.liquid, r), this.currentFile = e.file;
2845
+ this.file = aa(i, this.liquid, r), this.currentFile = e.file;
2831
2846
  let a = i.p;
2832
- i.readIdentifier().content === "with" ? (i.skipBlank(), i.peek() === ":" ? i.p = a : this.withVar = i.readValue()) : i.p = a, this.hash = new R(i, n.options.jekyllInclude || n.options.keyValueSeparator);
2847
+ i.readIdentifier().content === "with" ? (i.skipBlank(), i.peek() === ":" ? i.p = a : this.withVar = i.readValue()) : i.p = a, this.hash = new z(i, n.options.jekyllInclude || n.options.keyValueSeparator);
2833
2848
  }
2834
2849
  *render(e, t) {
2835
- let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield aa(this.file, e, n);
2836
- C(o, () => `illegal file path "${o}"`);
2850
+ let { liquid: n, hash: r, withVar: i } = this, { renderer: a } = n, o = yield sa(this.file, e, n);
2851
+ w(o, () => `illegal file path "${o}"`);
2837
2852
  let s = e.saveRegister("blocks", "blockMode");
2838
2853
  e.setRegister("blocks", {}), e.setRegister("blockMode", $.OUTPUT);
2839
2854
  let c = Z(yield r.render(e));
2840
- i && (c[o] = yield A(i, e));
2855
+ i && (c[o] = yield j(i, e));
2841
2856
  let l = yield n._parsePartialFile(o, e.sync, this.currentFile);
2842
2857
  e.push(e.opts.jekyllInclude ? Z({ include: c }) : c), yield a.renderTemplates(l, e, t), e.pop(), e.restoreRegister(s);
2843
2858
  }
@@ -2857,18 +2872,18 @@ var oa = class extends L {
2857
2872
  *arguments() {
2858
2873
  yield* Object.values(this.hash.hash).filter(Y), Y(this.file) && (yield this.file), Y(this.withVar) && (yield this.withVar);
2859
2874
  }
2860
- }, sa = class extends L {
2875
+ }, la = class extends R {
2861
2876
  constructor(e, t, n) {
2862
2877
  super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
2863
2878
  }
2864
2879
  render(e, t) {
2865
2880
  let n = e.environments;
2866
- te(n[this.variable]) || (n[this.variable] = 0), t.write(l(--n[this.variable]));
2881
+ m(n[this.variable]) || (n[this.variable] = 0), t.write(l(--n[this.variable]));
2867
2882
  }
2868
2883
  *localScope() {
2869
2884
  yield this.identifier;
2870
2885
  }
2871
- }, ca = class extends L {
2886
+ }, ua = class extends R {
2872
2887
  constructor(e, t, n) {
2873
2888
  super(e, t, n), this.candidates = [];
2874
2889
  let r = this.tokenizer.readValue();
@@ -2879,37 +2894,37 @@ var oa = class extends L {
2879
2894
  this.tokenizer.assert(this.candidates.length, () => `empty candidates: "${e.getText()}"`);
2880
2895
  }
2881
2896
  *render(e, t) {
2882
- let n = `cycle:${yield A(this.group, e)}:` + this.candidates.join(","), r = e.getRegister("cycle", {}), i = r[n];
2897
+ let n = `cycle:${yield j(this.group, e)}:` + this.candidates.join(","), r = e.getRegister("cycle", {}), i = r[n];
2883
2898
  i === void 0 && (i = r[n] = 0);
2884
2899
  let a = this.candidates[i];
2885
- return i = (i + 1) % this.candidates.length, r[n] = i, yield A(a, e);
2900
+ return i = (i + 1) % this.candidates.length, r[n] = i, yield j(a, e);
2886
2901
  }
2887
2902
  *arguments() {
2888
2903
  yield* this.candidates, this.group && (yield this.group);
2889
2904
  }
2890
- }, la = class extends L {
2905
+ }, da = class extends R {
2891
2906
  constructor(e, t, n, r) {
2892
2907
  super(e, t, n), this.branches = [];
2893
2908
  let i = [];
2894
2909
  r.parseStream(t).on("start", () => this.branches.push({
2895
- value: new z(e.tokenizer.readFilteredValue(), this.liquid),
2910
+ value: new B(e.tokenizer.readFilteredValue(), this.liquid),
2896
2911
  templates: i = []
2897
2912
  })).on("tag:elsif", (e) => {
2898
- C(!this.elseTemplates, "unexpected elsif after else"), this.branches.push({
2899
- value: new z(e.tokenizer.readFilteredValue(), this.liquid),
2913
+ w(!this.elseTemplates, "unexpected elsif after else"), this.branches.push({
2914
+ value: new B(e.tokenizer.readFilteredValue(), this.liquid),
2900
2915
  templates: i = []
2901
2916
  });
2902
2917
  }).on("tag:else", (e) => {
2903
- w(e.args), C(!this.elseTemplates, "duplicated else"), i = this.elseTemplates = [];
2918
+ T(e.args), w(!this.elseTemplates, "duplicated else"), i = this.elseTemplates = [];
2904
2919
  }).on("tag:endif", function(e) {
2905
- w(e.args), this.stop();
2920
+ T(e.args), this.stop();
2906
2921
  }).on("template", (e) => i.push(e)).on("end", () => {
2907
2922
  throw Error(`tag ${e.getText()} not closed`);
2908
2923
  }).start();
2909
2924
  }
2910
2925
  *render(e, t) {
2911
2926
  let n = this.liquid.renderer;
2912
- for (let { value: r, templates: i } of this.branches) if (j(yield r.value(e, e.opts.lenientIf), e)) {
2927
+ for (let { value: r, templates: i } of this.branches) if (M(yield r.value(e, e.opts.lenientIf), e)) {
2913
2928
  yield n.renderTemplates(i, e, t);
2914
2929
  return;
2915
2930
  }
@@ -2922,22 +2937,22 @@ var oa = class extends L {
2922
2937
  arguments() {
2923
2938
  return this.branches.map((e) => e.value);
2924
2939
  }
2925
- }, ua = class extends L {
2940
+ }, fa = class extends R {
2926
2941
  constructor(e, t, n) {
2927
2942
  super(e, t, n), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
2928
2943
  }
2929
2944
  render(e, t) {
2930
2945
  let n = e.environments;
2931
- te(n[this.variable]) || (n[this.variable] = 0);
2946
+ m(n[this.variable]) || (n[this.variable] = 0);
2932
2947
  let r = n[this.variable];
2933
2948
  n[this.variable]++, t.write(l(r));
2934
2949
  }
2935
2950
  *localScope() {
2936
2951
  yield this.identifier;
2937
2952
  }
2938
- }, da = class extends L {
2953
+ }, pa = class extends R {
2939
2954
  constructor(e, t, n, r) {
2940
- super(e, t, n), this.file = ra(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = r.parseTokens(t);
2955
+ super(e, t, n), this.file = aa(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new z(this.tokenizer, n.options.keyValueSeparator), this.templates = r.parseTokens(t);
2941
2956
  }
2942
2957
  *render(e, t) {
2943
2958
  let { liquid: n, args: r, file: i } = this, { renderer: a } = n;
@@ -2945,8 +2960,8 @@ var oa = class extends L {
2945
2960
  e.setRegister("blockMode", $.OUTPUT), yield a.renderTemplates(this.templates, e, t);
2946
2961
  return;
2947
2962
  }
2948
- let o = yield aa(this.file, e, n);
2949
- C(o, () => `illegal file path "${o}"`);
2963
+ let o = yield sa(this.file, e, n);
2964
+ w(o, () => `illegal file path "${o}"`);
2950
2965
  let s = yield n._parseLayoutFile(o, e.sync, this.currentFile);
2951
2966
  e.setRegister("blockMode", $.STORE);
2952
2967
  let c = yield a.renderTemplates(this.templates, e), l = e.getRegister("blocks", {});
@@ -2967,7 +2982,7 @@ var oa = class extends L {
2967
2982
  scope: Object.keys(this.args.hash)
2968
2983
  };
2969
2984
  }
2970
- }, fa = class extends L {
2985
+ }, ma = class extends R {
2971
2986
  constructor(e, t, n, r) {
2972
2987
  super(e, t, n), this.templates = [];
2973
2988
  let i = /\w+/.exec(e.args);
@@ -2997,7 +3012,7 @@ var oa = class extends L {
2997
3012
  blockScope() {
2998
3013
  return ["block"];
2999
3014
  }
3000
- }, pa = class extends L {
3015
+ }, ha = class extends R {
3001
3016
  constructor(e, t, n) {
3002
3017
  for (super(e, t, n), this.tokens = []; t.length;) {
3003
3018
  let e = t.shift();
@@ -3009,7 +3024,7 @@ var oa = class extends L {
3009
3024
  render() {
3010
3025
  return this.tokens.map((e) => e.getText()).join("");
3011
3026
  }
3012
- }, ma = class extends Ie {
3027
+ }, ga = class extends Ie {
3013
3028
  constructor(e, t, n, r) {
3014
3029
  super(e, n, r), this.length = e, this.cols = t;
3015
3030
  }
@@ -3028,38 +3043,38 @@ var oa = class extends L {
3028
3043
  col_last() {
3029
3044
  return this.col() === this.cols;
3030
3045
  }
3031
- }, ha = {
3032
- assign: qi,
3033
- for: Yi,
3034
- capture: $i,
3035
- case: ea,
3036
- comment: ta,
3037
- include: oa,
3038
- render: na,
3039
- decrement: sa,
3040
- increment: ua,
3041
- cycle: ca,
3042
- if: la,
3043
- layout: da,
3044
- block: fa,
3045
- raw: pa,
3046
- tablerow: class extends L {
3046
+ }, _a = {
3047
+ assign: Yi,
3048
+ for: Zi,
3049
+ capture: ta,
3050
+ case: na,
3051
+ comment: ra,
3052
+ include: ca,
3053
+ render: ia,
3054
+ decrement: la,
3055
+ increment: fa,
3056
+ cycle: ua,
3057
+ if: da,
3058
+ layout: pa,
3059
+ block: ma,
3060
+ raw: ha,
3061
+ tablerow: class extends R {
3047
3062
  constructor(e, t, n, r) {
3048
3063
  super(e, t, n);
3049
3064
  let i = this.tokenizer.readIdentifier();
3050
3065
  this.tokenizer.skipBlank();
3051
3066
  let a = this.tokenizer.readIdentifier(), o = this.tokenizer.readValue();
3052
3067
  if (a.content !== "in" || !o) throw Error(`illegal tag: ${e.getText()}`);
3053
- this.variable = i.content, this.collection = o, this.args = new R(this.tokenizer, n.options.keyValueSeparator), this.templates = [];
3068
+ this.variable = i.content, this.collection = o, this.args = new z(this.tokenizer, n.options.keyValueSeparator), this.templates = [];
3054
3069
  let s, c = r.parseStream(t).on("start", () => s = this.templates).on("tag:endtablerow", () => c.stop()).on("template", (e) => s.push(e)).on("end", () => {
3055
3070
  throw Error(`tag ${e.getText()} not closed`);
3056
3071
  });
3057
3072
  c.start();
3058
3073
  }
3059
3074
  *render(e, t) {
3060
- let n = u(yield A(this.collection, e)), r = yield this.args.render(e), i = r.offset || 0;
3075
+ let n = d(yield j(this.collection, e)), r = yield this.args.render(e), i = r.offset || 0;
3061
3076
  n = n.slice(i, i + (r.limit === void 0 ? n.length : r.limit));
3062
- let a = r.cols || n.length, o = this.liquid.renderer, s = new ma(n.length, a, this.collection.getText(), this.variable), c = Z({ tablerowloop: s });
3077
+ let a = r.cols || n.length, o = this.liquid.renderer, s = new ga(n.length, a, this.collection.getText(), this.variable), c = Z({ tablerowloop: s });
3063
3078
  e.push(c);
3064
3079
  for (let r = 0; r < n.length; r++, s.next()) c[this.variable] = n[r], s.col0() === 0 && (s.row() !== 1 && t.write("</tr>"), t.write(`<tr class="row${s.row()}">`)), t.write(`<td class="col${s.col()}">`), yield o.renderTemplates(this.templates, e, t), t.write("</td>");
3065
3080
  n.length && t.write("</tr>"), e.pop();
@@ -3075,13 +3090,13 @@ var oa = class extends L {
3075
3090
  return [this.variable, "tablerowloop"];
3076
3091
  }
3077
3092
  },
3078
- unless: class extends L {
3093
+ unless: class extends R {
3079
3094
  constructor(e, t, n, r) {
3080
3095
  super(e, t, n), this.branches = [], this.elseTemplates = [];
3081
3096
  let i = [], a = 0;
3082
3097
  r.parseStream(t).on("start", () => this.branches.push({
3083
- value: new z(e.tokenizer.readFilteredValue(), this.liquid),
3084
- test: M,
3098
+ value: new B(e.tokenizer.readFilteredValue(), this.liquid),
3099
+ test: Wt,
3085
3100
  templates: i = []
3086
3101
  })).on("tag:elsif", (e) => {
3087
3102
  if (a > 0) {
@@ -3089,8 +3104,8 @@ var oa = class extends L {
3089
3104
  return;
3090
3105
  }
3091
3106
  this.branches.push({
3092
- value: new z(e.tokenizer.readFilteredValue(), this.liquid),
3093
- test: j,
3107
+ value: new B(e.tokenizer.readFilteredValue(), this.liquid),
3108
+ test: M,
3094
3109
  templates: i = []
3095
3110
  });
3096
3111
  }).on("tag:else", () => {
@@ -3119,19 +3134,19 @@ var oa = class extends L {
3119
3134
  return this.branches.map((e) => e.value);
3120
3135
  }
3121
3136
  },
3122
- break: class extends L {
3137
+ break: class extends R {
3123
3138
  render(e, t) {
3124
3139
  e.breakCalled = !0;
3125
3140
  }
3126
3141
  },
3127
- continue: class extends L {
3142
+ continue: class extends R {
3128
3143
  render(e, t) {
3129
3144
  e.continueCalled = !0;
3130
3145
  }
3131
3146
  },
3132
- echo: class extends L {
3147
+ echo: class extends R {
3133
3148
  constructor(e, t, n) {
3134
- super(e, t, n), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new z(this.tokenizer.readFilteredValue(), this.liquid));
3149
+ super(e, t, n), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new B(this.tokenizer.readFilteredValue(), this.liquid));
3135
3150
  }
3136
3151
  *render(e, t) {
3137
3152
  if (!this.value) return;
@@ -3142,7 +3157,7 @@ var oa = class extends L {
3142
3157
  this.value && (yield this.value);
3143
3158
  }
3144
3159
  },
3145
- liquid: class extends L {
3160
+ liquid: class extends R {
3146
3161
  constructor(e, t, n, r) {
3147
3162
  super(e, t, n);
3148
3163
  let i = this.tokenizer.readLiquidTagTokens(this.liquid.options);
@@ -3155,15 +3170,15 @@ var oa = class extends L {
3155
3170
  return this.templates;
3156
3171
  }
3157
3172
  },
3158
- "#": class extends L {
3173
+ "#": class extends R {
3159
3174
  constructor(e, t, n) {
3160
3175
  if (super(e, t, n), e.args.search(/\n\s*[^#\s]/g) !== -1) throw Error("every line of an inline comment must start with a '#' character");
3161
3176
  }
3162
3177
  render() {}
3163
3178
  }
3164
- }, ga = class e {
3179
+ }, va = class e {
3165
3180
  constructor(e = {}) {
3166
- this.renderer = new Rt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = yn(e), this.parser = new K(this), oe(ha, (e, t) => this.registerTag(t, e)), oe(Ki, (e, t) => this.registerFilter(t, e));
3181
+ this.renderer = new Rt(), this.filters = Object.create(null), this.tags = Object.create(null), this.options = bn(e), this.parser = new K(this), ae(_a, (e, t) => this.registerTag(t, e)), ae(Ji, (e, t) => this.registerFilter(t, e));
3167
3182
  }
3168
3183
  parse(e, t) {
3169
3184
  return new K(this).parse(e, t);
@@ -3173,12 +3188,12 @@ var oa = class extends L {
3173
3188
  return this.renderer.renderTemplates(e, r);
3174
3189
  }
3175
3190
  render(e, t, n) {
3176
- return E(this, void 0, void 0, function* () {
3177
- return D(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3191
+ return D(this, void 0, void 0, function* () {
3192
+ return O(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3178
3193
  });
3179
3194
  }
3180
3195
  renderSync(e, t, n) {
3181
- return O(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3196
+ return k(this._render(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3182
3197
  }
3183
3198
  renderToNodeStream(e, t, n = {}) {
3184
3199
  let r = new Q(t, this.options, n);
@@ -3189,12 +3204,12 @@ var oa = class extends L {
3189
3204
  return this._render(r, t, n);
3190
3205
  }
3191
3206
  parseAndRender(e, t, n) {
3192
- return E(this, void 0, void 0, function* () {
3193
- return D(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3207
+ return D(this, void 0, void 0, function* () {
3208
+ return O(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3194
3209
  });
3195
3210
  }
3196
3211
  parseAndRenderSync(e, t, n) {
3197
- return O(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3212
+ return k(this._parseAndRender(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3198
3213
  }
3199
3214
  _parsePartialFile(e, t, n) {
3200
3215
  return new K(this).parseFile(e, t, G.Partials, n);
@@ -3206,48 +3221,48 @@ var oa = class extends L {
3206
3221
  return new K(this).parseFile(e, t, n, r);
3207
3222
  }
3208
3223
  parseFile(e, t) {
3209
- return E(this, void 0, void 0, function* () {
3210
- return D(new K(this).parseFile(e, !1, t));
3224
+ return D(this, void 0, void 0, function* () {
3225
+ return O(new K(this).parseFile(e, !1, t));
3211
3226
  });
3212
3227
  }
3213
3228
  parseFileSync(e, t) {
3214
- return O(new K(this).parseFile(e, !0, t));
3229
+ return k(new K(this).parseFile(e, !0, t));
3215
3230
  }
3216
3231
  *_renderFile(e, t, n) {
3217
3232
  let r = yield this._parseFile(e, n.sync, n.lookupType);
3218
3233
  return yield this._render(r, t, n);
3219
3234
  }
3220
3235
  renderFile(e, t, n) {
3221
- return E(this, void 0, void 0, function* () {
3222
- return D(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3236
+ return D(this, void 0, void 0, function* () {
3237
+ return O(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !1 })));
3223
3238
  });
3224
3239
  }
3225
3240
  renderFileSync(e, t, n) {
3226
- return O(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3241
+ return k(this._renderFile(e, t, Object.assign(Object.assign({}, n), { sync: !0 })));
3227
3242
  }
3228
3243
  renderFileToNodeStream(e, t, n) {
3229
- return E(this, void 0, void 0, function* () {
3244
+ return D(this, void 0, void 0, function* () {
3230
3245
  let r = yield this.parseFile(e);
3231
3246
  return this.renderToNodeStream(r, t, n);
3232
3247
  });
3233
3248
  }
3234
3249
  _evalValue(e, t) {
3235
- let n = new z(e, this), r = t instanceof Q ? t : new Q(t, this.options);
3250
+ let n = new B(e, this), r = t instanceof Q ? t : new Q(t, this.options);
3236
3251
  return n.value(r);
3237
3252
  }
3238
3253
  evalValue(e, t) {
3239
- return E(this, void 0, void 0, function* () {
3240
- return D(this._evalValue(e, t));
3254
+ return D(this, void 0, void 0, function* () {
3255
+ return O(this._evalValue(e, t));
3241
3256
  });
3242
3257
  }
3243
3258
  evalValueSync(e, t) {
3244
- return O(this._evalValue(e, t));
3259
+ return k(this._evalValue(e, t));
3245
3260
  }
3246
3261
  registerFilter(e, t) {
3247
3262
  this.filters[e] = t;
3248
3263
  }
3249
3264
  registerTag(e, t) {
3250
- this.tags[e] = o(t) ? t : En(t);
3265
+ this.tags[e] = o(t) ? t : Dn(t);
3251
3266
  }
3252
3267
  plugin(t) {
3253
3268
  return t.call(this, e);
@@ -3257,90 +3272,90 @@ var oa = class extends L {
3257
3272
  return function(n, r, i) {
3258
3273
  if (t) {
3259
3274
  t = !1;
3260
- let n = F(this.root);
3275
+ let n = I(this.root);
3261
3276
  e.options.root.unshift(...n), e.options.layouts.unshift(...n), e.options.partials.unshift(...n);
3262
3277
  }
3263
3278
  e.renderFile(n, r).then((e) => i(null, e), i);
3264
3279
  };
3265
3280
  }
3266
3281
  analyze(e, t = {}) {
3267
- return E(this, void 0, void 0, function* () {
3268
- return V(e, t);
3282
+ return D(this, void 0, void 0, function* () {
3283
+ return H(e, t);
3269
3284
  });
3270
3285
  }
3271
3286
  analyzeSync(e, t = {}) {
3272
- return H(e, t);
3287
+ return U(e, t);
3273
3288
  }
3274
3289
  parseAndAnalyze(e, t, n = {}) {
3275
- return E(this, void 0, void 0, function* () {
3276
- return V(this.parse(e, t), n);
3290
+ return D(this, void 0, void 0, function* () {
3291
+ return H(this.parse(e, t), n);
3277
3292
  });
3278
3293
  }
3279
3294
  parseAndAnalyzeSync(e, t, n = {}) {
3280
- return H(this.parse(e, t), n);
3295
+ return U(this.parse(e, t), n);
3281
3296
  }
3282
3297
  variables(e, t = {}) {
3283
- return E(this, void 0, void 0, function* () {
3284
- let n = yield V(a(e) ? this.parse(e) : e, t);
3298
+ return D(this, void 0, void 0, function* () {
3299
+ let n = yield H(a(e) ? this.parse(e) : e, t);
3285
3300
  return Object.keys(n.variables);
3286
3301
  });
3287
3302
  }
3288
3303
  variablesSync(e, t = {}) {
3289
- let n = H(a(e) ? this.parse(e) : e, t);
3304
+ let n = U(a(e) ? this.parse(e) : e, t);
3290
3305
  return Object.keys(n.variables);
3291
3306
  }
3292
3307
  fullVariables(e, t = {}) {
3293
- return E(this, void 0, void 0, function* () {
3294
- let n = yield V(a(e) ? this.parse(e) : e, t);
3308
+ return D(this, void 0, void 0, function* () {
3309
+ let n = yield H(a(e) ? this.parse(e) : e, t);
3295
3310
  return Array.from(new Set(Object.values(n.variables).flatMap((e) => e.map((e) => String(e)))));
3296
3311
  });
3297
3312
  }
3298
3313
  fullVariablesSync(e, t = {}) {
3299
- let n = H(a(e) ? this.parse(e) : e, t);
3314
+ let n = U(a(e) ? this.parse(e) : e, t);
3300
3315
  return Array.from(new Set(Object.values(n.variables).flatMap((e) => e.map((e) => String(e)))));
3301
3316
  }
3302
3317
  variableSegments(e, t = {}) {
3303
- return E(this, void 0, void 0, function* () {
3304
- let n = yield V(a(e) ? this.parse(e) : e, t);
3305
- return Array.from(ge(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3318
+ return D(this, void 0, void 0, function* () {
3319
+ let n = yield H(a(e) ? this.parse(e) : e, t);
3320
+ return Array.from(b(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3306
3321
  });
3307
3322
  }
3308
3323
  variableSegmentsSync(e, t = {}) {
3309
- let n = H(a(e) ? this.parse(e) : e, t);
3310
- return Array.from(ge(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3324
+ let n = U(a(e) ? this.parse(e) : e, t);
3325
+ return Array.from(b(Object.values(n.variables).flatMap((e) => e.map((e) => e.toArray()))));
3311
3326
  }
3312
3327
  globalVariables(e, t = {}) {
3313
- return E(this, void 0, void 0, function* () {
3314
- let n = yield V(a(e) ? this.parse(e) : e, t);
3328
+ return D(this, void 0, void 0, function* () {
3329
+ let n = yield H(a(e) ? this.parse(e) : e, t);
3315
3330
  return Object.keys(n.globals);
3316
3331
  });
3317
3332
  }
3318
3333
  globalVariablesSync(e, t = {}) {
3319
- let n = H(a(e) ? this.parse(e) : e, t);
3334
+ let n = U(a(e) ? this.parse(e) : e, t);
3320
3335
  return Object.keys(n.globals);
3321
3336
  }
3322
3337
  globalFullVariables(e, t = {}) {
3323
- return E(this, void 0, void 0, function* () {
3324
- let n = yield V(a(e) ? this.parse(e) : e, t);
3338
+ return D(this, void 0, void 0, function* () {
3339
+ let n = yield H(a(e) ? this.parse(e) : e, t);
3325
3340
  return Array.from(new Set(Object.values(n.globals).flatMap((e) => e.map((e) => String(e)))));
3326
3341
  });
3327
3342
  }
3328
3343
  globalFullVariablesSync(e, t = {}) {
3329
- let n = H(a(e) ? this.parse(e) : e, t);
3344
+ let n = U(a(e) ? this.parse(e) : e, t);
3330
3345
  return Array.from(new Set(Object.values(n.globals).flatMap((e) => e.map((e) => String(e)))));
3331
3346
  }
3332
3347
  globalVariableSegments(e, t = {}) {
3333
- return E(this, void 0, void 0, function* () {
3334
- let n = yield V(a(e) ? this.parse(e) : e, t);
3335
- return Array.from(ge(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3348
+ return D(this, void 0, void 0, function* () {
3349
+ let n = yield H(a(e) ? this.parse(e) : e, t);
3350
+ return Array.from(b(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3336
3351
  });
3337
3352
  }
3338
3353
  globalVariableSegmentsSync(e, t = {}) {
3339
- let n = H(a(e) ? this.parse(e) : e, t);
3340
- return Array.from(ge(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3354
+ let n = U(a(e) ? this.parse(e) : e, t);
3355
+ return Array.from(b(Object.values(n.globals).flatMap((e) => e.map((e) => e.toArray()))));
3341
3356
  }
3342
3357
  };
3343
3358
  //#endregion
3344
- export { ga as Liquid };
3359
+ export { va as Liquid };
3345
3360
 
3346
- //# sourceMappingURL=liquid.browser-DKKBzRQu.js.map
3361
+ //# sourceMappingURL=liquid.browser-BJOEu6Cg.js.map