halo-fe 1.0.34 → 1.0.35

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 (76) hide show
  1. package/dist/main.js +5513 -5855
  2. package/dist/vendor/{liquidjs-DEqYMvhe.js → liquidjs-CyjuyKnF.js} +858 -812
  3. package/dist/vendor/{underscore-DYMmD6H5.js → underscore-CK1gjYcm.js} +2 -2
  4. package/esm/comp/Timer.vue.d.ts +8 -12
  5. package/esm/comp/alert/Index.vue.d.ts +2 -1
  6. package/esm/comp/business/Debugger.vue.d.ts +2 -327
  7. package/esm/comp/business/Tips.vue.d.ts +2 -1
  8. package/esm/comp/business/cruds/Index.vue.d.ts +13 -567
  9. package/esm/comp/business/drivers/Index.vue.d.ts +11 -113
  10. package/esm/comp/business/drivers/Picker.vue.d.ts +16 -18
  11. package/esm/comp/button/Button.vue.d.ts +10 -17
  12. package/esm/comp/button/Index.vue.d.ts +7 -11
  13. package/esm/comp/calender/Index.vue.d.ts +6 -4
  14. package/esm/comp/card/Index.vue.d.ts +7 -11
  15. package/esm/comp/checkbox/Checkbox.vue.d.ts +11 -18
  16. package/esm/comp/checkbox/Index.vue.d.ts +11 -14
  17. package/esm/comp/condition/Condition.vue.d.ts +2 -1
  18. package/esm/comp/condition/Index.vue.d.ts +2 -1
  19. package/esm/comp/datetime/Date.vue.d.ts +6 -228
  20. package/esm/comp/datetime/DateRange.vue.d.ts +7 -11
  21. package/esm/comp/datetime/Index.vue.d.ts +11 -14
  22. package/esm/comp/datetime/Time.vue.d.ts +2 -1
  23. package/esm/comp/datetime/TimeRange.vue.d.ts +2 -1
  24. package/esm/comp/dialog/Index.vue.d.ts +17 -6
  25. package/esm/comp/drawer/Index.vue.d.ts +10 -17
  26. package/esm/comp/dropdown/Index.vue.d.ts +11 -422
  27. package/esm/comp/empty/Index.vue.d.ts +7 -11
  28. package/esm/comp/form/Field.vue.d.ts +9 -12
  29. package/esm/comp/form/Index.vue.d.ts +7 -11
  30. package/esm/comp/icon/Arrow.vue.d.ts +3 -2
  31. package/esm/comp/icon/Index.vue.d.ts +3 -4
  32. package/esm/comp/input/Code.vue.d.ts +3 -4
  33. package/esm/comp/input/Compare.vue.d.ts +3 -4
  34. package/esm/comp/input/Index.vue.d.ts +12 -23
  35. package/esm/comp/input/RichText.vue.d.ts +6 -71
  36. package/esm/comp/layout/Col.vue.d.ts +7 -11
  37. package/esm/comp/layout/Container.vue.d.ts +8 -16
  38. package/esm/comp/layout/Desc.vue.d.ts +2 -1
  39. package/esm/comp/layout/Fill.vue.d.ts +8 -16
  40. package/esm/comp/layout/Row.vue.d.ts +8 -16
  41. package/esm/comp/link/Index.vue.d.ts +8 -12
  42. package/esm/comp/loading/Loading.vue.d.ts +2 -1
  43. package/esm/comp/menu/Index.vue.d.ts +7 -11
  44. package/esm/comp/menu/Menu.vue.d.ts +8 -12
  45. package/esm/comp/number/Index.vue.d.ts +10 -14
  46. package/esm/comp/overlay/Index.vue.d.ts +7 -11
  47. package/esm/comp/pager/Index.vue.d.ts +12 -6
  48. package/esm/comp/popover/Index.vue.d.ts +9 -150
  49. package/esm/comp/progress/Circle.vue.d.ts +2 -1
  50. package/esm/comp/progress/Index.vue.d.ts +4 -3
  51. package/esm/comp/progress/Socket.vue.d.ts +7 -11
  52. package/esm/comp/progress/Spinner.vue.d.ts +2 -1
  53. package/esm/comp/radio/Index.vue.d.ts +11 -14
  54. package/esm/comp/radio/Radio.vue.d.ts +8 -12
  55. package/esm/comp/resizer/Index.vue.d.ts +3 -4
  56. package/esm/comp/resizer/Resizers.vue.d.ts +3 -2
  57. package/esm/comp/scroller/Index.vue.d.ts +9 -23
  58. package/esm/comp/select/Index.vue.d.ts +11 -464
  59. package/esm/comp/select/Option.vue.d.ts +7 -15
  60. package/esm/comp/tab/Index.vue.d.ts +13 -15
  61. package/esm/comp/tab/Tab.vue.d.ts +9 -12
  62. package/esm/comp/table/Column.vue.d.ts +11 -155
  63. package/esm/comp/table/Filter.vue.d.ts +2 -1
  64. package/esm/comp/table/Index.vue.d.ts +24 -773
  65. package/esm/comp/table/Row.vue.d.ts +9 -18
  66. package/esm/comp/table/Sort.vue.d.ts +8 -4
  67. package/esm/comp/tag/Index.vue.d.ts +7 -11
  68. package/esm/comp/taskbar/Index.vue.d.ts +13 -15
  69. package/esm/comp/taskbar/Taskbar.vue.d.ts +7 -11
  70. package/esm/comp/text/Dance.vue.d.ts +3 -2
  71. package/esm/comp/tooltip/Index.vue.d.ts +9 -295
  72. package/esm/comp/tree/Index.vue.d.ts +10 -14
  73. package/esm/comp/upload/Index.vue.d.ts +7 -11
  74. package/esm/comp/window/Index.vue.d.ts +21 -6
  75. package/esm/vite.config.d.ts +1 -5
  76. package/package.json +12 -12
@@ -1,4 +1,4 @@
1
- class R {
1
+ class z {
2
2
  constructor(e, s, i, r, n) {
3
3
  this.kind = e, this.input = s, this.begin = i, this.end = r, this.file = n;
4
4
  }
@@ -17,112 +17,117 @@ class R {
17
17
  }
18
18
  }
19
19
  class Y {
20
- liquidMethodMissing(e) {
20
+ liquidMethodMissing(e, s) {
21
21
  }
22
22
  }
23
- const jt = Object.prototype.toString, qe = String.prototype.toLowerCase, _e = Object.hasOwnProperty;
23
+ const Yt = Object.prototype.toString, Pe = String.prototype.toLowerCase, Le = Object.hasOwnProperty;
24
24
  function f(t) {
25
25
  return typeof t == "string";
26
26
  }
27
27
  function v(t) {
28
28
  return typeof t == "function";
29
29
  }
30
- function Pt(t) {
30
+ function Jt(t) {
31
31
  return t && v(t.then);
32
32
  }
33
33
  function le(t) {
34
34
  return t && v(t.next) && v(t.throw) && v(t.return);
35
35
  }
36
- function It(t) {
36
+ function Zt(t) {
37
37
  return t.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&");
38
38
  }
39
39
  function u(t) {
40
- return t = d(t), f(t) ? t : z(t) ? "" : x(t) ? t.map((e) => u(e)).join("") : String(t);
40
+ return t = p(t), f(t) ? t : O(t) ? "" : S(t) ? t.map((e) => u(e)).join("") : String(t);
41
41
  }
42
42
  function ie(t) {
43
- return t = d(t), x(t) ? t : f(t) && t.length > 0 ? [t] : Ut(t) ? Array.from(t) : pe(t) ? Object.keys(t).map((e) => [e, t[e]]) : [];
43
+ return t = p(t), S(t) ? t : f(t) && t.length > 0 ? [t] : Gt(t) ? Array.from(t) : pe(t) ? Object.keys(t).map((e) => [e, t[e]]) : [];
44
44
  }
45
- function S(t) {
46
- return t = d(t), z(t) ? [] : x(t) ? t : [t];
45
+ function x(t) {
46
+ return t = p(t), O(t) ? [] : S(t) ? t : [t];
47
47
  }
48
- function d(t) {
48
+ function p(t) {
49
49
  return t instanceof Y && v(t.valueOf) ? t.valueOf() : t;
50
50
  }
51
- function Ce(t) {
52
- return t = Number(t), isNaN(t) ? 0 : t;
51
+ function ve(t) {
52
+ return +p(t) || 0;
53
53
  }
54
54
  function de(t) {
55
55
  return typeof t == "number";
56
56
  }
57
- function ft(t) {
58
- return t && v(t.toLiquid) ? ft(t.toLiquid()) : t;
57
+ function gt(t) {
58
+ return t && v(t.toLiquid) ? gt(t.toLiquid()) : t;
59
59
  }
60
- function z(t) {
60
+ function O(t) {
61
61
  return t == null;
62
62
  }
63
- function Bt(t) {
63
+ function Qt(t) {
64
64
  return t === void 0;
65
65
  }
66
- function x(t) {
67
- return jt.call(t) === "[object Array]";
66
+ function S(t) {
67
+ return Yt.call(t) === "[object Array]";
68
68
  }
69
- function dt(t) {
69
+ function mt(t) {
70
70
  return t && de(t.length);
71
71
  }
72
- function Ut(t) {
72
+ function Gt(t) {
73
73
  return pe(t) && Symbol.iterator in t;
74
74
  }
75
- function $e(t, e) {
75
+ function Ie(t, e) {
76
76
  t = t || {};
77
77
  for (const s in t)
78
- if (_e.call(t, s) && e(t[s], s, t) === !1)
78
+ if (Le.call(t, s) && e(t[s], s, t) === !1)
79
79
  break;
80
80
  return t;
81
81
  }
82
- function pt(t) {
82
+ function yt(t) {
83
83
  return t[t.length - 1];
84
84
  }
85
85
  function pe(t) {
86
86
  const e = typeof t;
87
87
  return t !== null && (e === "object" || e === "function");
88
88
  }
89
- function gt(t, e, s = 1) {
89
+ function wt(t, e, s = 1) {
90
90
  const i = [];
91
91
  for (let r = t; r < e; r += s)
92
92
  i.push(r);
93
93
  return i;
94
94
  }
95
95
  function se(t, e, s = " ") {
96
- return mt(t, e, s, (i, r) => r + i);
96
+ return bt(t, e, s, (i, r) => r + i);
97
97
  }
98
- function Ht(t, e, s = " ") {
99
- return mt(t, e, s, (i, r) => i + r);
98
+ function Xt(t, e, s = " ") {
99
+ return bt(t, e, s, (i, r) => i + r);
100
100
  }
101
- function mt(t, e, s, i) {
101
+ function bt(t, e, s, i) {
102
102
  t = String(t);
103
103
  let r = e - t.length;
104
104
  for (; r-- > 0; )
105
105
  t = i(t, s);
106
106
  return t;
107
107
  }
108
- function yt(t) {
108
+ function Tt(t) {
109
109
  return t;
110
110
  }
111
- function Wt(t) {
111
+ function Kt(t) {
112
112
  return [...t].some((s) => s >= "a" && s <= "z") ? t.toUpperCase() : t.toLowerCase();
113
113
  }
114
- function Yt(t, e) {
114
+ function es(t, e) {
115
115
  return t.length > e ? t.slice(0, e - 3) + "..." : t;
116
116
  }
117
- function je(t, e) {
118
- return t == null && e == null ? 0 : t == null ? 1 : e == null || (t = qe.call(t), e = qe.call(e), t < e) ? -1 : t > e ? 1 : 0;
117
+ function Be(t, e) {
118
+ return t == null && e == null ? 0 : t == null ? 1 : e == null || (t = Pe.call(t), e = Pe.call(e), t < e) ? -1 : t > e ? 1 : 0;
119
119
  }
120
- function O(t) {
120
+ function ge(t) {
121
121
  return function(...e) {
122
- return t.call(this, ...e.map(d));
122
+ return t.call(this, ...e.map(p));
123
123
  };
124
124
  }
125
- function Fe(t) {
125
+ function D(t) {
126
+ return function(...e) {
127
+ return t.call(this, ...e.map(ve));
128
+ };
129
+ }
130
+ function Oe(t) {
126
131
  return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
127
132
  }
128
133
  function* re(t) {
@@ -132,32 +137,32 @@ function* re(t) {
132
137
  e.has(i) || (e.add(i), yield s);
133
138
  }
134
139
  }
135
- const Pe = "__liquidClass__";
140
+ const Ue = "__liquidClass__";
136
141
  class J extends Error {
137
142
  constructor(e, s) {
138
- super(typeof e == "string" ? e : e.message), this.context = "", typeof e != "string" && Object.defineProperty(this, "originalError", { value: e, enumerable: !1 }), Object.defineProperty(this, "token", { value: s, enumerable: !1 }), Object.defineProperty(this, Pe, { value: "LiquidError", enumerable: !1 });
143
+ super(typeof e == "string" ? e : e.message), this.context = "", typeof e != "string" && Object.defineProperty(this, "originalError", { value: e, enumerable: !1 }), Object.defineProperty(this, "token", { value: s, enumerable: !1 }), Object.defineProperty(this, Ue, { value: "LiquidError", enumerable: !1 });
139
144
  }
140
145
  update() {
141
- Object.defineProperty(this, "context", { value: es(this.token), enumerable: !1 }), this.message = ts(this.message, this.token), this.stack = this.message + `
146
+ Object.defineProperty(this, "context", { value: as(this.token), enumerable: !1 }), this.message = ls(this.message, this.token), this.stack = this.message + `
142
147
  ` + this.context + `
143
148
  ` + this.stack, this.originalError && (this.stack += `
144
149
  From ` + this.originalError.stack);
145
150
  }
146
151
  static is(e) {
147
- return (e == null ? void 0 : e[Pe]) === "LiquidError";
152
+ return e?.[Ue] === "LiquidError";
148
153
  }
149
154
  }
150
- class Jt extends J {
155
+ class ts extends J {
151
156
  constructor(e, s) {
152
157
  super(e, s), this.name = "TokenizationError", super.update();
153
158
  }
154
159
  }
155
- class Zt extends J {
160
+ class ss extends J {
156
161
  constructor(e, s) {
157
162
  super(e, s), this.name = "ParseError", this.message = e.message, super.update();
158
163
  }
159
164
  }
160
- class Qt extends J {
165
+ class is extends J {
161
166
  constructor(e, s) {
162
167
  super(e, s.token), this.name = "RenderError", this.message = e.message, super.update();
163
168
  }
@@ -165,7 +170,7 @@ class Qt extends J {
165
170
  return e.name === "RenderError";
166
171
  }
167
172
  }
168
- class wt extends J {
173
+ class kt extends J {
169
174
  constructor(e) {
170
175
  super(e[0], e[0].token), this.errors = e, this.name = "LiquidErrors";
171
176
  const s = e.length > 1 ? "s" : "";
@@ -175,57 +180,57 @@ class wt extends J {
175
180
  return e.name === "LiquidErrors";
176
181
  }
177
182
  }
178
- class Gt extends J {
183
+ class rs extends J {
179
184
  constructor(e, s) {
180
185
  super(e, s), this.name = "UndefinedVariableError", this.message = e.message, super.update();
181
186
  }
182
187
  }
183
- class Xt extends Error {
188
+ class ns extends Error {
184
189
  constructor(e) {
185
190
  super(`undefined variable: ${e}`), this.name = "InternalUndefinedVariableError", this.variableName = e;
186
191
  }
187
192
  }
188
- class Kt extends Error {
193
+ class os extends Error {
189
194
  constructor(e) {
190
195
  super(e), this.name = "AssertionError", this.message = e + "";
191
196
  }
192
197
  }
193
- function es(t) {
198
+ function as(t) {
194
199
  const [e, s] = t.getPosition(), i = t.input.split(`
195
200
  `), r = Math.max(e - 2, 1), n = Math.min(e + 3, i.length);
196
- return gt(r, n + 1).map((a) => {
197
- const h = a === e ? ">> " : " ", c = se(String(a), String(n).length);
198
- let l = `${h}${c}| `;
199
- const p = a === e ? `
200
- ` + se("^", s + l.length) : "";
201
- return l += i[a - 1], l += p, l;
201
+ return wt(r, n + 1).map((a) => {
202
+ const l = a === e ? ">> " : " ", c = se(String(a), String(n).length);
203
+ let h = `${l}${c}| `;
204
+ const d = a === e ? `
205
+ ` + se("^", s + h.length) : "";
206
+ return h += i[a - 1], h += d, h;
202
207
  }).join(`
203
208
  `);
204
209
  }
205
- function ts(t, e) {
210
+ function ls(t, e) {
206
211
  e.file && (t += `, file:${e.file}`);
207
212
  const [s, i] = e.getPosition();
208
213
  return t += `, line:${s}, col:${i}`, t;
209
214
  }
210
- const m = [0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 4, 4, 4, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 8, 0, 0, 0, 0, 8, 0, 0, 0, 64, 0, 65, 0, 0, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 0, 0, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], ss = 1, X = 4, Ie = 8, bt = 16, is = 32, rs = 64, ns = 128;
215
+ const m = [0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 4, 4, 4, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 2, 8, 0, 0, 0, 0, 8, 0, 0, 0, 64, 0, 65, 0, 0, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 0, 0, 2, 2, 2, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0], hs = 1, X = 4, He = 8, vt = 16, cs = 32, us = 64, fs = 128;
211
216
  function ne(t) {
212
217
  const e = t.charCodeAt(0);
213
- return e >= 128 ? !m[e] : !!(m[e] & ss);
218
+ return e >= 128 ? !m[e] : !!(m[e] & hs);
214
219
  }
215
220
  m[160] = m[5760] = m[6158] = m[8192] = m[8193] = m[8194] = m[8195] = m[8196] = m[8197] = m[8198] = m[8199] = m[8200] = m[8201] = m[8202] = m[8232] = m[8233] = m[8239] = m[8287] = m[12288] = X;
216
- m[8220] = m[8221] = ns;
221
+ m[8220] = m[8221] = fs;
217
222
  function _(t, e) {
218
223
  if (!t) {
219
224
  const s = typeof e == "function" ? e() : e || `expect ${t} to be true`;
220
- throw new Kt(s);
225
+ throw new os(s);
221
226
  }
222
227
  }
223
228
  function he(t, e = `unexpected ${JSON.stringify(t)}`) {
224
229
  _(!t, e);
225
230
  }
226
- class os extends Y {
231
+ class ds extends Y {
227
232
  equals(e) {
228
- return z(d(e));
233
+ return O(p(e));
229
234
  }
230
235
  gt() {
231
236
  return !1;
@@ -245,7 +250,7 @@ class os extends Y {
245
250
  }
246
251
  class K extends Y {
247
252
  equals(e) {
248
- return e instanceof K ? !1 : (e = d(e), f(e) || x(e) ? e.length === 0 : pe(e) ? Object.keys(e).length === 0 : !1);
253
+ return e instanceof K ? !1 : (e = p(e), f(e) || S(e) ? e.length === 0 : pe(e) ? Object.keys(e).length === 0 : !1);
249
254
  }
250
255
  gt() {
251
256
  return !1;
@@ -266,15 +271,15 @@ class K extends Y {
266
271
  return e instanceof K;
267
272
  }
268
273
  }
269
- class Le extends K {
274
+ class ze extends K {
270
275
  equals(e) {
271
- return e === !1 || z(d(e)) ? !0 : f(e) ? /^\s*$/.test(e) : super.equals(e);
276
+ return e === !1 || O(p(e)) ? !0 : f(e) ? /^\s*$/.test(e) : super.equals(e);
272
277
  }
273
278
  static is(e) {
274
- return e instanceof Le;
279
+ return e instanceof ze;
275
280
  }
276
281
  }
277
- class Oe extends Y {
282
+ class Re extends Y {
278
283
  constructor(e, s, i) {
279
284
  super(), this.i = 0, this.length = e, this.name = `${i}-${s}`;
280
285
  }
@@ -303,7 +308,28 @@ class Oe extends Y {
303
308
  return JSON.stringify(this);
304
309
  }
305
310
  }
306
- class Be extends Y {
311
+ class xt {
312
+ constructor() {
313
+ this.buffer = "";
314
+ }
315
+ write(e) {
316
+ this.buffer += u(e);
317
+ }
318
+ }
319
+ class ps {
320
+ constructor() {
321
+ throw this.buffer = "", this.stream = null, new Error("streaming not supported in browser");
322
+ }
323
+ }
324
+ class gs {
325
+ constructor() {
326
+ this.buffer = "";
327
+ }
328
+ write(e) {
329
+ e = p(e), typeof e != "string" && this.buffer === "" ? this.buffer = e : this.buffer = u(this.buffer) + u(e);
330
+ }
331
+ }
332
+ class We extends Y {
307
333
  constructor(e = () => "") {
308
334
  super(), this.superBlockRender = e;
309
335
  }
@@ -311,22 +337,23 @@ class Be extends Y {
311
337
  * Provide parent access in child block by
312
338
  * {{ block.super }}
313
339
  */
314
- super() {
315
- return this.superBlockRender();
340
+ *super() {
341
+ const e = new xt();
342
+ return yield this.superBlockRender(e), e.buffer;
316
343
  }
317
344
  }
318
- function A(t) {
345
+ function N(t) {
319
346
  return t && v(t.equals) && v(t.gt) && v(t.geq) && v(t.lt) && v(t.leq);
320
347
  }
321
- const Ue = new os(), Tt = {
348
+ const Ye = new ds(), St = {
322
349
  true: !0,
323
350
  false: !1,
324
- nil: Ue,
325
- null: Ue,
351
+ nil: Ye,
352
+ null: Ye,
326
353
  empty: new K(),
327
- blank: new Le()
354
+ blank: new ze()
328
355
  };
329
- function He(t) {
356
+ function Je(t) {
330
357
  const e = {};
331
358
  for (const [s, i] of Object.entries(t)) {
332
359
  let r = e;
@@ -354,27 +381,27 @@ function k(t, e, s, i) {
354
381
  });
355
382
  }
356
383
  return new (s || (s = Promise))(function(n, o) {
357
- function a(l) {
384
+ function a(h) {
358
385
  try {
359
- c(i.next(l));
360
- } catch (p) {
361
- o(p);
386
+ c(i.next(h));
387
+ } catch (d) {
388
+ o(d);
362
389
  }
363
390
  }
364
- function h(l) {
391
+ function l(h) {
365
392
  try {
366
- c(i.throw(l));
367
- } catch (p) {
368
- o(p);
393
+ c(i.throw(h));
394
+ } catch (d) {
395
+ o(d);
369
396
  }
370
397
  }
371
- function c(l) {
372
- l.done ? n(l.value) : r(l.value).then(a, h);
398
+ function c(h) {
399
+ h.done ? n(h.value) : r(h.value).then(a, l);
373
400
  }
374
401
  c((i = i.apply(t, [])).next());
375
402
  });
376
403
  }
377
- function V(t) {
404
+ function M(t) {
378
405
  return k(this, void 0, void 0, function* () {
379
406
  if (!le(t))
380
407
  return t;
@@ -383,7 +410,7 @@ function V(t) {
383
410
  const r = t[i](e);
384
411
  s = r.done, e = r.value, i = "next";
385
412
  try {
386
- le(e) && (e = V(e)), Pt(e) && (e = yield e);
413
+ le(e) && (e = M(e)), Jt(e) && (e = yield e);
387
414
  } catch (n) {
388
415
  i = "throw", e = n;
389
416
  }
@@ -391,7 +418,7 @@ function V(t) {
391
418
  return e;
392
419
  });
393
420
  }
394
- function q(t) {
421
+ function V(t) {
395
422
  if (!le(t))
396
423
  return t;
397
424
  let e, s = !1, i = "next";
@@ -399,32 +426,32 @@ function q(t) {
399
426
  const r = t[i](e);
400
427
  if (s = r.done, e = r.value, i = "next", le(e))
401
428
  try {
402
- e = q(e);
429
+ e = V(e);
403
430
  } catch (n) {
404
431
  i = "throw", e = n;
405
432
  }
406
433
  } while (!s);
407
434
  return e;
408
435
  }
409
- const as = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
410
- function ls(t) {
411
- return [31, hs(t) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
436
+ const ms = /%([-_0^#:]+)?(\d+)?([EO])?(.)/;
437
+ function ys(t) {
438
+ return [31, ws(t) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
412
439
  }
413
- function kt(t) {
440
+ function _t(t) {
414
441
  let e = 0;
415
442
  for (let s = 0; s < t.getMonth(); ++s)
416
- e += ls(t)[s];
443
+ e += ys(t)[s];
417
444
  return e + t.getDate();
418
445
  }
419
- function We(t, e) {
420
- const s = kt(t) + (e - t.getDay()), r = 7 - new Date(t.getFullYear(), 0, 1).getDay() + e;
446
+ function Ze(t, e) {
447
+ const s = _t(t) + (e - t.getDay()), r = 7 - new Date(t.getFullYear(), 0, 1).getDay() + e;
421
448
  return String(Math.floor((s - r) / 7) + 1);
422
449
  }
423
- function hs(t) {
450
+ function ws(t) {
424
451
  const e = t.getFullYear();
425
- return !!(!(e & 3) && (e % 100 || e % 400 === 0 && e));
452
+ return !!((e & 3) === 0 && (e % 100 || e % 400 === 0 && e));
426
453
  }
427
- function cs(t) {
454
+ function bs(t) {
428
455
  const e = t.getDate();
429
456
  if ([11, 12, 13].includes(e))
430
457
  return "th";
@@ -439,10 +466,10 @@ function cs(t) {
439
466
  return "th";
440
467
  }
441
468
  }
442
- function us(t) {
469
+ function Ts(t) {
443
470
  return parseInt(t.getFullYear().toString().substring(0, 2), 10);
444
471
  }
445
- const fs = {
472
+ const ks = {
446
473
  d: 2,
447
474
  e: 2,
448
475
  H: 2,
@@ -456,23 +483,23 @@ const fs = {
456
483
  S: 2,
457
484
  U: 2,
458
485
  W: 2
459
- }, ds = new Set("aAbBceklpP");
460
- function Ye(t, e) {
486
+ }, vs = new Set("aAbBceklpP");
487
+ function Qe(t, e) {
461
488
  const s = Math.abs(t.getTimezoneOffset()), i = Math.floor(s / 60), r = s % 60;
462
489
  return (t.getTimezoneOffset() > 0 ? "-" : "+") + se(i, 2, "0") + (e.flags[":"] ? ":" : "") + se(r, 2, "0");
463
490
  }
464
- const ke = {
491
+ const xe = {
465
492
  a: (t) => t.getShortWeekdayName(),
466
493
  A: (t) => t.getLongWeekdayName(),
467
494
  b: (t) => t.getShortMonthName(),
468
495
  B: (t) => t.getLongMonthName(),
469
496
  c: (t) => t.toLocaleString(),
470
- C: (t) => us(t),
497
+ C: (t) => Ts(t),
471
498
  d: (t) => t.getDate(),
472
499
  e: (t) => t.getDate(),
473
500
  H: (t) => t.getHours(),
474
501
  I: (t) => String(t.getHours() % 12 || 12),
475
- j: (t) => kt(t),
502
+ j: (t) => _t(t),
476
503
  k: (t) => t.getHours(),
477
504
  l: (t) => String(t.getHours() % 12 || 12),
478
505
  L: (t) => t.getMilliseconds(),
@@ -480,49 +507,49 @@ const ke = {
480
507
  M: (t) => t.getMinutes(),
481
508
  N: (t, e) => {
482
509
  const s = Number(e.width) || 9, i = String(t.getMilliseconds()).slice(0, s);
483
- return Ht(i, s, "0");
510
+ return Xt(i, s, "0");
484
511
  },
485
512
  p: (t) => t.getHours() < 12 ? "AM" : "PM",
486
513
  P: (t) => t.getHours() < 12 ? "am" : "pm",
487
- q: (t) => cs(t),
514
+ q: (t) => bs(t),
488
515
  s: (t) => Math.round(t.getTime() / 1e3),
489
516
  S: (t) => t.getSeconds(),
490
517
  u: (t) => t.getDay() || 7,
491
- U: (t) => We(t, 0),
518
+ U: (t) => Ze(t, 0),
492
519
  w: (t) => t.getDay(),
493
- W: (t) => We(t, 1),
520
+ W: (t) => Ze(t, 1),
494
521
  x: (t) => t.toLocaleDateString(),
495
522
  X: (t) => t.toLocaleTimeString(),
496
523
  y: (t) => t.getFullYear().toString().slice(2, 4),
497
524
  Y: (t) => t.getFullYear(),
498
- z: Ye,
499
- Z: (t, e) => t.getTimeZoneName() || Ye(t, e),
525
+ z: Qe,
526
+ Z: (t, e) => t.getTimeZoneName() || Qe(t, e),
500
527
  t: () => " ",
501
528
  n: () => `
502
529
  `,
503
530
  "%": () => "%"
504
531
  };
505
- ke.h = ke.b;
532
+ xe.h = xe.b;
506
533
  function oe(t, e) {
507
534
  let s = "", i = e, r;
508
- for (; r = as.exec(i); )
509
- s += i.slice(0, r.index), i = i.slice(r.index + r[0].length), s += ps(t, r);
535
+ for (; r = ms.exec(i); )
536
+ s += i.slice(0, r.index), i = i.slice(r.index + r[0].length), s += xs(t, r);
510
537
  return s + i;
511
538
  }
512
- function ps(t, e) {
513
- const [s, i = "", r, n, o] = e, a = ke[o];
539
+ function xs(t, e) {
540
+ const [s, i = "", r, n, o] = e, a = xe[o];
514
541
  if (!a)
515
542
  return s;
516
- const h = {};
543
+ const l = {};
517
544
  for (const g of i)
518
- h[g] = !0;
519
- let c = String(a(t, { flags: h, width: r, modifier: n })), l = ds.has(o) ? " " : "0", p = r || fs[o] || 0;
520
- return h["^"] ? c = c.toUpperCase() : h["#"] && (c = Wt(c)), h._ ? l = " " : h[0] && (l = "0"), h["-"] && (p = 0), se(c, p, l);
545
+ l[g] = !0;
546
+ let c = String(a(t, { flags: l, width: r, modifier: n })), h = vs.has(o) ? " " : "0", d = r || ks[o] || 0;
547
+ return l["^"] ? c = c.toUpperCase() : l["#"] && (c = Kt(c)), l._ ? h = " " : l[0] && (h = "0"), l["-"] && (d = 0), se(c, d, h);
521
548
  }
522
- function vt() {
549
+ function Ft() {
523
550
  return typeof Intl < "u" ? Intl.DateTimeFormat : void 0;
524
551
  }
525
- const gs = 6e4, ms = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, St = [
552
+ const Ss = 6e4, _s = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, Lt = [
526
553
  "January",
527
554
  "February",
528
555
  "March",
@@ -535,7 +562,7 @@ const gs = 6e4, ms = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, St = [
535
562
  "October",
536
563
  "November",
537
564
  "December"
538
- ], ys = St.map((t) => t.slice(0, 3)), xt = [
565
+ ], Fs = Lt.map((t) => t.slice(0, 3)), Ot = [
539
566
  "Sunday",
540
567
  "Monday",
541
568
  "Tuesday",
@@ -543,11 +570,11 @@ const gs = 6e4, ms = /([zZ]|([+-])(\d{2}):?(\d{2}))$/, St = [
543
570
  "Thursday",
544
571
  "Friday",
545
572
  "Saturday"
546
- ], ws = xt.map((t) => t.slice(0, 3));
547
- class E {
573
+ ], Ls = Ot.map((t) => t.slice(0, 3));
574
+ class R {
548
575
  constructor(e, s, i) {
549
- this.locale = s, this.DateTimeFormat = vt(), this.date = new Date(e), this.timezoneFixed = i !== void 0, i === void 0 && (i = this.date.getTimezoneOffset()), this.timezoneOffset = f(i) ? E.getTimezoneOffset(i, this.date) : i, this.timezoneName = f(i) ? i : "";
550
- const r = (this.date.getTimezoneOffset() - this.timezoneOffset) * gs, n = this.date.getTime() + r;
576
+ this.locale = s, this.DateTimeFormat = Ft(), this.date = new Date(e), this.timezoneFixed = i !== void 0, i === void 0 && (i = this.date.getTimezoneOffset()), this.timezoneOffset = f(i) ? R.getTimezoneOffset(i, this.date) : i, this.timezoneName = f(i) ? i : "";
577
+ const r = (this.date.getTimezoneOffset() - this.timezoneOffset) * Ss, n = this.date.getTime() + r;
551
578
  this.displayDate = new Date(n);
552
579
  }
553
580
  getTime() {
@@ -578,7 +605,7 @@ class E {
578
605
  return this.displayDate.getFullYear();
579
606
  }
580
607
  toLocaleString(e, s) {
581
- return s != null && s.timeZone ? this.date.toLocaleString(e, s) : this.displayDate.toLocaleString(e, s);
608
+ return s?.timeZone ? this.date.toLocaleString(e, s) : this.displayDate.toLocaleString(e, s);
582
609
  }
583
610
  toLocaleTimeString(e) {
584
611
  return this.displayDate.toLocaleTimeString(e);
@@ -597,19 +624,19 @@ class E {
597
624
  }
598
625
  getLongMonthName() {
599
626
  var e;
600
- return (e = this.format({ month: "long" })) !== null && e !== void 0 ? e : St[this.getMonth()];
627
+ return (e = this.format({ month: "long" })) !== null && e !== void 0 ? e : Lt[this.getMonth()];
601
628
  }
602
629
  getShortMonthName() {
603
630
  var e;
604
- return (e = this.format({ month: "short" })) !== null && e !== void 0 ? e : ys[this.getMonth()];
631
+ return (e = this.format({ month: "short" })) !== null && e !== void 0 ? e : Fs[this.getMonth()];
605
632
  }
606
633
  getLongWeekdayName() {
607
634
  var e;
608
- return (e = this.format({ weekday: "long" })) !== null && e !== void 0 ? e : xt[this.displayDate.getDay()];
635
+ return (e = this.format({ weekday: "long" })) !== null && e !== void 0 ? e : Ot[this.displayDate.getDay()];
609
636
  }
610
637
  getShortWeekdayName() {
611
638
  var e;
612
- return (e = this.format({ weekday: "short" })) !== null && e !== void 0 ? e : ws[this.displayDate.getDay()];
639
+ return (e = this.format({ weekday: "short" })) !== null && e !== void 0 ? e : Ls[this.displayDate.getDay()];
613
640
  }
614
641
  valid() {
615
642
  return !isNaN(this.getTime());
@@ -631,59 +658,59 @@ class E {
631
658
  * Given that a template is expected to be parsed fewer times than rendered.
632
659
  */
633
660
  static createDateFixedToTimezone(e, s) {
634
- const i = e.match(ms);
661
+ const i = e.match(_s);
635
662
  if (i && i[1] === "Z")
636
- return new E(+new Date(e), s, 0);
663
+ return new R(+new Date(e), s, 0);
637
664
  if (i && i[2] && i[3] && i[4]) {
638
665
  const [, , r, n, o] = i, a = (r === "+" ? -1 : 1) * (parseInt(n, 10) * 60 + parseInt(o, 10));
639
- return new E(+new Date(e), s, a);
666
+ return new R(+new Date(e), s, a);
640
667
  }
641
- return new E(e, s);
668
+ return new R(e, s);
642
669
  }
643
670
  static getTimezoneOffset(e, s) {
644
671
  const i = s.toLocaleString("en-US", { timeZone: e }), r = s.toLocaleString("en-US", { timeZone: "UTC" }), n = new Date(i);
645
672
  return (+new Date(r) - +n) / (60 * 1e3);
646
673
  }
647
674
  }
648
- class ve {
675
+ class Se {
649
676
  constructor(e, s) {
650
677
  this.base = 0, this.message = `${e} limit exceeded`, this.limit = s;
651
678
  }
652
679
  use(e) {
653
- e = Ce(e), _(this.base + e <= this.limit, this.message), this.base += e;
680
+ e = +e || 0, _(this.base + e <= this.limit, this.message), this.base += e;
654
681
  }
655
682
  check(e) {
656
- e = Ce(e), _(e <= this.limit, this.message);
683
+ e = +e || 0, _(e <= this.limit, this.message);
657
684
  }
658
685
  }
659
- class ze extends R {
660
- constructor(e, [s, i], r, n, o, a, h, c) {
686
+ class Ee extends z {
687
+ constructor(e, [s, i], r, n, o, a, l, c) {
661
688
  super(e, r, n, o, c), this.trimLeft = !1, this.trimRight = !1;
662
- const l = r[s] === "-", p = r[i - 1] === "-";
663
- let g = l ? s + 1 : s, w = p ? i - 1 : i;
689
+ const h = r[s] === "-", d = r[i - 1] === "-";
690
+ let g = h ? s + 1 : s, w = d ? i - 1 : i;
664
691
  for (; g < w && m[r.charCodeAt(g)] & X; )
665
692
  g++;
666
693
  for (; w > g && m[r.charCodeAt(w - 1)] & X; )
667
694
  w--;
668
- this.contentRange = [g, w], this.trimLeft = l || a, this.trimRight = p || h;
695
+ this.contentRange = [g, w], this.trimLeft = h || a, this.trimRight = d || l;
669
696
  }
670
697
  get content() {
671
698
  return this.input.slice(this.contentRange[0], this.contentRange[1]);
672
699
  }
673
700
  }
674
- class Je extends ze {
701
+ class Ge extends Ee {
675
702
  constructor(e, s, i, r, n) {
676
- const { trimTagLeft: o, trimTagRight: a, tagDelimiterLeft: h, tagDelimiterRight: c } = r, [l, p] = [s + h.length, i - c.length];
677
- super(y.Tag, [l, p], e, s, i, o, a, n), this.tokenizer = new M(e, r.operators, n, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal tag syntax, tag name expected"), this.tokenizer.skipBlank(), this.args = this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
703
+ const { trimTagLeft: o, trimTagRight: a, tagDelimiterLeft: l, tagDelimiterRight: c } = r, [h, d] = [s + l.length, i - c.length];
704
+ super(y.Tag, [h, d], e, s, i, o, a, n), this.tokenizer = new A(e, r.operators, n, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal tag syntax, tag name expected"), this.tokenizer.skipBlank(), this.args = this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
678
705
  }
679
706
  }
680
- class bs extends ze {
707
+ class Os extends Ee {
681
708
  constructor(e, s, i, r, n) {
682
- const { trimOutputLeft: o, trimOutputRight: a, outputDelimiterLeft: h, outputDelimiterRight: c } = r, l = [s + h.length, i - c.length];
683
- super(y.Output, l, e, s, i, o, a, n);
709
+ const { trimOutputLeft: o, trimOutputRight: a, outputDelimiterLeft: l, outputDelimiterRight: c } = r, h = [s + l.length, i - c.length];
710
+ super(y.Output, h, e, s, i, o, a, n);
684
711
  }
685
712
  }
686
- class Ze extends R {
713
+ class Xe extends z {
687
714
  constructor(e, s, i, r) {
688
715
  super(y.HTML, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.trimLeft = 0, this.trimRight = 0;
689
716
  }
@@ -691,22 +718,22 @@ class Ze extends R {
691
718
  return this.input.slice(this.begin + this.trimLeft, this.end - this.trimRight);
692
719
  }
693
720
  }
694
- class Ts extends R {
721
+ class zs extends z {
695
722
  constructor(e, s, i, r) {
696
723
  super(y.Number, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content = Number(this.getText());
697
724
  }
698
725
  }
699
- class ye extends R {
726
+ class we extends z {
700
727
  constructor(e, s, i, r) {
701
728
  super(y.Word, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content = this.getText();
702
729
  }
703
730
  }
704
- class ks extends R {
731
+ class Rs extends z {
705
732
  constructor(e, s, i, r) {
706
- super(y.Literal, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.literal = this.getText(), this.content = Tt[this.literal];
733
+ super(y.Literal, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.literal = this.getText(), this.content = St[this.literal];
707
734
  }
708
735
  }
709
- const Qe = {
736
+ const Ke = {
710
737
  "==": 2,
711
738
  "!=": 2,
712
739
  ">": 2,
@@ -717,7 +744,7 @@ const Qe = {
717
744
  not: 1,
718
745
  and: 0,
719
746
  or: 0
720
- }, vs = {
747
+ }, Es = {
721
748
  "==": 0,
722
749
  "!=": 0,
723
750
  ">": 0,
@@ -730,31 +757,31 @@ const Qe = {
730
757
  or: 0
731
758
  /* OperatorType.Binary */
732
759
  };
733
- class Ss extends R {
760
+ class Ns extends z {
734
761
  constructor(e, s, i, r) {
735
762
  super(y.Operator, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.operator = this.getText();
736
763
  }
737
764
  getPrecedence() {
738
765
  const e = this.getText();
739
- return e in Qe ? Qe[e] : 1;
766
+ return e in Ke ? Ke[e] : 1;
740
767
  }
741
768
  }
742
- class Ge extends R {
769
+ class et extends z {
743
770
  constructor(e, s, i, r, n, o) {
744
771
  super(y.PropertyAccess, i, r, n, o), this.variable = e, this.props = s;
745
772
  }
746
773
  }
747
- class _t extends R {
774
+ class zt extends z {
748
775
  constructor(e, s, i, r, n, o) {
749
776
  super(y.Filter, i, r, n, o), this.name = e, this.args = s;
750
777
  }
751
778
  }
752
- class xs extends R {
779
+ class As extends z {
753
780
  constructor(e, s, i, r, n, o) {
754
781
  super(y.Hash, e, s, i, o), this.input = e, this.begin = s, this.end = i, this.name = r, this.value = n, this.file = o;
755
782
  }
756
783
  }
757
- const _s = /[\da-fA-F]/, Xe = /[0-7]/, Ke = {
784
+ const Ds = /[\da-fA-F]/, tt = /[0-7]/, st = {
758
785
  b: "\b",
759
786
  f: "\f",
760
787
  n: `
@@ -763,101 +790,80 @@ const _s = /[\da-fA-F]/, Xe = /[0-7]/, Ke = {
763
790
  t: " ",
764
791
  v: "\v"
765
792
  };
766
- function et(t) {
793
+ function it(t) {
767
794
  const e = t.charCodeAt(0);
768
795
  return e >= 97 ? e - 87 : e >= 65 ? e - 55 : e - 48;
769
796
  }
770
- function Fs(t) {
797
+ function Ms(t) {
771
798
  let e = "";
772
799
  for (let s = 1; s < t.length - 1; s++) {
773
800
  if (t[s] !== "\\") {
774
801
  e += t[s];
775
802
  continue;
776
803
  }
777
- if (Ke[t[s + 1]] !== void 0)
778
- e += Ke[t[++s]];
804
+ if (st[t[s + 1]] !== void 0)
805
+ e += st[t[++s]];
779
806
  else if (t[s + 1] === "u") {
780
807
  let i = 0, r = s + 2;
781
- for (; r <= s + 5 && _s.test(t[r]); )
782
- i = i * 16 + et(t[r++]);
808
+ for (; r <= s + 5 && Ds.test(t[r]); )
809
+ i = i * 16 + it(t[r++]);
783
810
  s = r - 1, e += String.fromCharCode(i);
784
- } else if (!Xe.test(t[s + 1]))
811
+ } else if (!tt.test(t[s + 1]))
785
812
  e += t[++s];
786
813
  else {
787
814
  let i = s + 1, r = 0;
788
- for (; i <= s + 3 && Xe.test(t[i]); )
789
- r = r * 8 + et(t[i++]);
815
+ for (; i <= s + 3 && tt.test(t[i]); )
816
+ r = r * 8 + it(t[i++]);
790
817
  s = i - 1, e += String.fromCharCode(r);
791
818
  }
792
819
  }
793
820
  return e;
794
821
  }
795
- class Ls extends R {
822
+ class Vs extends z {
796
823
  constructor(e, s, i, r) {
797
- super(y.Quoted, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content = Fs(this.getText());
824
+ super(y.Quoted, e, s, i, r), this.input = e, this.begin = s, this.end = i, this.file = r, this.content = Ms(this.getText());
798
825
  }
799
826
  }
800
- class Os extends R {
827
+ class qs extends z {
801
828
  constructor(e, s, i, r, n, o) {
802
829
  super(y.Range, e, s, i, o), this.input = e, this.begin = s, this.end = i, this.lhs = r, this.rhs = n, this.file = o;
803
830
  }
804
831
  }
805
- class zs extends ze {
832
+ class js extends Ee {
806
833
  constructor(e, s, i, r, n) {
807
- super(y.Tag, [s, i], e, s, i, !1, !1, n), this.tokenizer = new M(e, r.operators, n, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank();
834
+ super(y.Tag, [s, i], e, s, i, !1, !1, n), this.tokenizer = new A(e, r.operators, n, this.contentRange), this.name = this.tokenizer.readTagName(), this.tokenizer.assert(this.name, "illegal liquid tag syntax"), this.tokenizer.skipBlank();
808
835
  }
809
836
  get args() {
810
837
  return this.tokenizer.input.slice(this.tokenizer.p, this.contentRange[1]);
811
838
  }
812
839
  }
813
- class Rs extends R {
840
+ class Cs extends z {
814
841
  constructor(e, s, i, r, n, o) {
815
842
  super(y.FilteredValue, i, r, n, o), this.initial = e, this.filters = s, this.input = i, this.begin = r, this.end = n, this.file = o;
816
843
  }
817
844
  }
818
- const Es = {
845
+ const $s = {
819
846
  now: () => Date.now()
820
847
  };
821
- function Ft() {
822
- return typeof global == "object" && global.performance || typeof window == "object" && window.performance || Es;
848
+ function Rt() {
849
+ return typeof global == "object" && global.performance || typeof window == "object" && window.performance || $s;
823
850
  }
824
- class Ns {
825
- constructor() {
826
- this.buffer = "";
827
- }
828
- write(e) {
829
- this.buffer += u(e);
830
- }
831
- }
832
- class As {
833
- constructor() {
834
- throw this.buffer = "", this.stream = null, new Error("streaming not supported in browser");
835
- }
836
- }
837
- class Ds {
838
- constructor() {
839
- this.buffer = "";
840
- }
841
- write(e) {
842
- e = d(e), typeof e != "string" && this.buffer === "" ? this.buffer = e : this.buffer = u(this.buffer) + u(e);
843
- }
844
- }
845
- class Ms {
851
+ class Ps {
846
852
  renderTemplatesToNodeStream(e, s) {
847
- const i = new As();
848
- return Promise.resolve().then(() => V(this.renderTemplates(e, s, i))).then(() => i.end(), (r) => i.error(r)), i.stream;
853
+ const i = new ps();
854
+ return Promise.resolve().then(() => M(this.renderTemplates(e, s, i))).then(() => i.end(), (r) => i.error(r)), i.stream;
849
855
  }
850
856
  *renderTemplates(e, s, i) {
851
- i || (i = s.opts.keepOutputType ? new Ds() : new Ns());
857
+ i || (i = s.opts.keepOutputType ? new gs() : new xt());
852
858
  const r = [];
853
859
  for (const n of e) {
854
- s.renderLimit.check(Ft().now());
860
+ s.renderLimit.check(Rt().now());
855
861
  try {
856
862
  const o = yield n.render(s, i);
857
863
  if (o && i.write(o), s.breakCalled || s.continueCalled)
858
864
  break;
859
865
  } catch (o) {
860
- const a = J.is(o) ? o : new Qt(o, n);
866
+ const a = J.is(o) ? o : new is(o, n);
861
867
  if (s.opts.catchAllErrors)
862
868
  r.push(a);
863
869
  else
@@ -865,22 +871,22 @@ class Ms {
865
871
  }
866
872
  }
867
873
  if (r.length)
868
- throw new wt(r);
874
+ throw new kt(r);
869
875
  return i.buffer;
870
876
  }
871
877
  }
872
- class Vs {
878
+ class Is {
873
879
  constructor(e) {
874
- this.postfix = [...js(e)];
880
+ this.postfix = [...Ws(e)];
875
881
  }
876
882
  *evaluate(e, s) {
877
883
  _(e, "unable to evaluate: context not defined");
878
884
  const i = [];
879
885
  for (const r of this.postfix)
880
- if (At(r)) {
886
+ if (qt(r)) {
881
887
  const n = i.pop();
882
888
  let o;
883
- if (vs[r.operator] === 1)
889
+ if (Es[r.operator] === 1)
884
890
  o = yield e.opts.operators[r.operator](n, e);
885
891
  else {
886
892
  const a = i.pop();
@@ -900,12 +906,12 @@ function* T(t, e, s = !1) {
900
906
  if ("content" in t)
901
907
  return t.content;
902
908
  if (fe(t))
903
- return yield qs(t, e, s);
904
- if (Dt(t))
905
- return yield $s(t, e);
909
+ return yield Bs(t, e, s);
910
+ if (jt(t))
911
+ return yield Hs(t, e);
906
912
  }
907
913
  }
908
- function* qs(t, e, s) {
914
+ function* Bs(t, e, s) {
909
915
  const i = [];
910
916
  for (const r of t.props)
911
917
  i.push(yield T(r, e, !1));
@@ -918,20 +924,20 @@ function* qs(t, e, s) {
918
924
  } catch (r) {
919
925
  if (s && r.name === "InternalUndefinedVariableError")
920
926
  return null;
921
- throw new Gt(r, t);
927
+ throw new rs(r, t);
922
928
  }
923
929
  }
924
- function Cs(t) {
930
+ function Us(t) {
925
931
  return t.content;
926
932
  }
927
- function* $s(t, e) {
933
+ function* Hs(t, e) {
928
934
  const s = yield T(t.lhs, e), i = yield T(t.rhs, e);
929
- return e.memoryLimit.use(i - s + 1), gt(+s, +i + 1);
935
+ return e.memoryLimit.use(i - s + 1), wt(+s, +i + 1);
930
936
  }
931
- function* js(t) {
937
+ function* Ws(t) {
932
938
  const e = [];
933
939
  for (const s of t)
934
- if (At(s)) {
940
+ if (qt(s)) {
935
941
  for (; e.length && e[e.length - 1].getPrecedence() > s.getPrecedence(); )
936
942
  yield e.pop();
937
943
  e.push(s);
@@ -941,46 +947,46 @@ function* js(t) {
941
947
  yield e.pop();
942
948
  }
943
949
  function B(t, e) {
944
- return !ge(t, e);
945
- }
946
- function ge(t, e) {
947
- return t = d(t), e.opts.jsTruthy ? !t : t === !1 || t === void 0 || t === null;
948
- }
949
- const Ps = {
950
- "==": D,
951
- "!=": (t, e) => !D(t, e),
952
- ">": (t, e) => A(t) ? t.gt(e) : A(e) ? e.lt(t) : d(t) > d(e),
953
- "<": (t, e) => A(t) ? t.lt(e) : A(e) ? e.gt(t) : d(t) < d(e),
954
- ">=": (t, e) => A(t) ? t.geq(e) : A(e) ? e.leq(t) : d(t) >= d(e),
955
- "<=": (t, e) => A(t) ? t.leq(e) : A(e) ? e.geq(t) : d(t) <= d(e),
956
- contains: (t, e) => (t = d(t), x(t) ? t.some((s) => D(s, e)) : v(t == null ? void 0 : t.indexOf) ? t.indexOf(d(e)) > -1 : !1),
957
- not: (t, e) => ge(d(t), e),
958
- and: (t, e, s) => B(d(t), s) && B(d(e), s),
959
- or: (t, e, s) => B(d(t), s) || B(d(e), s)
950
+ return !me(t, e);
951
+ }
952
+ function me(t, e) {
953
+ return t = p(t), e.opts.jsTruthy ? !t : t === !1 || t === void 0 || t === null;
954
+ }
955
+ const Ys = {
956
+ "==": q,
957
+ "!=": (t, e) => !q(t, e),
958
+ ">": (t, e) => N(t) ? t.gt(e) : N(e) ? e.lt(t) : p(t) > p(e),
959
+ "<": (t, e) => N(t) ? t.lt(e) : N(e) ? e.gt(t) : p(t) < p(e),
960
+ ">=": (t, e) => N(t) ? t.geq(e) : N(e) ? e.leq(t) : p(t) >= p(e),
961
+ "<=": (t, e) => N(t) ? t.leq(e) : N(e) ? e.geq(t) : p(t) <= p(e),
962
+ contains: (t, e) => (t = p(t), S(t) ? t.some((s) => q(s, e)) : v(t?.indexOf) ? t.indexOf(p(e)) > -1 : !1),
963
+ not: (t, e) => me(p(t), e),
964
+ and: (t, e, s) => B(p(t), s) && B(p(e), s),
965
+ or: (t, e, s) => B(p(t), s) || B(p(e), s)
960
966
  };
961
- function D(t, e) {
962
- return A(t) ? t.equals(e) : A(e) ? e.equals(t) : (t = d(t), e = d(e), x(t) ? x(e) && Is(t, e) : t === e);
967
+ function q(t, e) {
968
+ return N(t) ? t.equals(e) : N(e) ? e.equals(t) : (t = p(t), e = p(e), S(t) ? S(e) && Js(t, e) : t === e);
963
969
  }
964
- function Is(t, e) {
965
- return t.length !== e.length ? !1 : !t.some((s, i) => !D(s, e[i]));
970
+ function Js(t, e) {
971
+ return t.length !== e.length ? !1 : !t.some((s, i) => !q(s, e[i]));
966
972
  }
967
- function Bs(t, e) {
968
- return t.some((s) => D(s, e));
973
+ function Zs(t, e) {
974
+ return t.some((s) => q(s, e));
969
975
  }
970
- class we {
976
+ class be {
971
977
  constructor(e, s, i, r) {
972
978
  this.key = e, this.value = s, this.next = i, this.prev = r;
973
979
  }
974
980
  }
975
- class tt {
981
+ class rt {
976
982
  constructor(e, s = 0) {
977
- this.limit = e, this.size = s, this.cache = {}, this.head = new we("HEAD", null, null, null), this.tail = new we("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
983
+ this.limit = e, this.size = s, this.cache = {}, this.head = new be("HEAD", null, null, null), this.tail = new be("TAIL", null, null, null), this.head.next = this.tail, this.tail.prev = this.head;
978
984
  }
979
985
  write(e, s) {
980
986
  if (this.cache[e])
981
987
  this.cache[e].value = s;
982
988
  else {
983
- const i = new we(e, s, this.head.next, this.head);
989
+ const i = new be(e, s, this.head.next, this.head);
984
990
  this.head.next.prev = i, this.head.next = i, this.cache[e] = i, this.size++, this.ensureLimit();
985
991
  }
986
992
  }
@@ -1001,7 +1007,7 @@ class tt {
1001
1007
  this.size > this.limit && this.remove(this.tail.prev.key);
1002
1008
  }
1003
1009
  }
1004
- function Lt(t, e) {
1010
+ function Et(t, e) {
1005
1011
  const s = document.createElement("base");
1006
1012
  s.href = t;
1007
1013
  const i = document.getElementsByTagName("head")[0];
@@ -1011,13 +1017,13 @@ function Lt(t, e) {
1011
1017
  const n = r.href;
1012
1018
  return i.removeChild(s), n;
1013
1019
  }
1014
- function Us(t, e, s) {
1015
- return t.length && pt(t) !== "/" && (t += "/"), Lt(t, e).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (r, n, o) => {
1020
+ function Qs(t, e, s) {
1021
+ return t.length && yt(t) !== "/" && (t += "/"), Et(t, e).replace(/^(\w+:\/\/[^/]+)(\/[^?]+)/, (r, n, o) => {
1016
1022
  const a = o.split("/").pop();
1017
1023
  return /\.\w+$/.test(a) ? r : n + o + s;
1018
1024
  });
1019
1025
  }
1020
- function Hs(t) {
1026
+ function Gs(t) {
1021
1027
  return k(this, void 0, void 0, function* () {
1022
1028
  return new Promise((e, s) => {
1023
1029
  const i = new XMLHttpRequest();
@@ -1029,41 +1035,41 @@ function Hs(t) {
1029
1035
  });
1030
1036
  });
1031
1037
  }
1032
- function Ws(t) {
1038
+ function Xs(t) {
1033
1039
  const e = new XMLHttpRequest();
1034
1040
  if (e.open("GET", t, !1), e.send(), e.status < 200 || e.status >= 300)
1035
1041
  throw new Error(e.statusText);
1036
1042
  return e.responseText;
1037
1043
  }
1038
- function Ys(t) {
1044
+ function Ks(t) {
1039
1045
  return k(this, void 0, void 0, function* () {
1040
1046
  return !0;
1041
1047
  });
1042
1048
  }
1043
- function Js(t) {
1049
+ function ei(t) {
1044
1050
  return !0;
1045
1051
  }
1046
- function Zs(t) {
1047
- return Lt(t, ".");
1052
+ function ti(t) {
1053
+ return Et(t, ".");
1048
1054
  }
1049
- const Qs = "/";
1050
- var Gs = /* @__PURE__ */ Object.freeze({
1055
+ const si = "/";
1056
+ var ii = /* @__PURE__ */ Object.freeze({
1051
1057
  __proto__: null,
1052
- resolve: Us,
1053
- readFile: Hs,
1054
- readFileSync: Ws,
1055
- exists: Ys,
1056
- existsSync: Js,
1057
- dirname: Zs,
1058
- sep: Qs
1058
+ resolve: Qs,
1059
+ readFile: Gs,
1060
+ readFileSync: Xs,
1061
+ exists: Ks,
1062
+ existsSync: ei,
1063
+ dirname: ti,
1064
+ sep: si
1059
1065
  });
1060
- function Xs(t, e, ...s) {
1061
- return t = d(t), x(t) || f(t) ? t.length ? t : e : t === !1 && new Map(s).get("allow_false") ? !1 : ge(t, this.context) ? e : t;
1066
+ function ri(t, e, ...s) {
1067
+ return t = p(t), S(t) || f(t) ? t.length ? t : e : t === !1 && new Map(s).get("allow_false") ? !1 : me(t, this.context) ? e : t;
1062
1068
  }
1063
- function st(t, e = 0) {
1069
+ function nt(t, e = 0) {
1064
1070
  return JSON.stringify(t, null, e);
1065
1071
  }
1066
- function Ks(t, e = 0) {
1072
+ function ni(t, e = 0) {
1067
1073
  const s = [];
1068
1074
  return JSON.stringify(t, function(i, r) {
1069
1075
  if (typeof r != "object" || r === null)
@@ -1073,64 +1079,64 @@ function Ks(t, e = 0) {
1073
1079
  return s.includes(r) ? "[Circular]" : (s.push(r), r);
1074
1080
  }, e);
1075
1081
  }
1076
- function ei(t) {
1082
+ function oi(t) {
1077
1083
  return Number(t);
1078
1084
  }
1079
- const ti = {
1085
+ const ai = {
1080
1086
  raw: !0,
1081
- handler: yt
1087
+ handler: Tt
1082
1088
  };
1083
- var Ot = {
1084
- default: Xs,
1085
- raw: ti,
1086
- jsonify: st,
1087
- to_integer: ei,
1088
- json: st,
1089
- inspect: Ks
1089
+ var Nt = {
1090
+ default: ri,
1091
+ raw: ai,
1092
+ jsonify: nt,
1093
+ to_integer: oi,
1094
+ json: nt,
1095
+ inspect: ni
1090
1096
  };
1091
- const si = {
1097
+ const li = {
1092
1098
  "&": "&amp;",
1093
1099
  "<": "&lt;",
1094
1100
  ">": "&gt;",
1095
1101
  '"': "&#34;",
1096
1102
  "'": "&#39;"
1097
- }, ii = {
1103
+ }, hi = {
1098
1104
  "&amp;": "&",
1099
1105
  "&lt;": "<",
1100
1106
  "&gt;": ">",
1101
1107
  "&#34;": '"',
1102
1108
  "&#39;": "'"
1103
1109
  };
1104
- function me(t) {
1105
- return t = u(t), this.context.memoryLimit.use(t.length), t.replace(/&|<|>|"|'/g, (e) => si[e]);
1110
+ function ye(t) {
1111
+ return t = u(t), this.context.memoryLimit.use(t.length), t.replace(/&|<|>|"|'/g, (e) => li[e]);
1106
1112
  }
1107
- function ri(t) {
1108
- return me.call(this, t);
1113
+ function ci(t) {
1114
+ return ye.call(this, t);
1109
1115
  }
1110
- function ni(t) {
1111
- return t = u(t), this.context.memoryLimit.use(t.length), t.replace(/&(amp|lt|gt|#34|#39);/g, (e) => ii[e]);
1116
+ function ui(t) {
1117
+ return t = u(t), this.context.memoryLimit.use(t.length), t.replace(/&(amp|lt|gt|#34|#39);/g, (e) => hi[e]);
1112
1118
  }
1113
- function oi(t) {
1114
- return me.call(this, ni.call(this, t));
1119
+ function fi(t) {
1120
+ return ye.call(this, ui.call(this, t));
1115
1121
  }
1116
- function ai(t) {
1122
+ function di(t) {
1117
1123
  const e = u(t);
1118
1124
  return this.context.memoryLimit.use(e.length), e.replace(/\r?\n/gm, `<br />
1119
1125
  `);
1120
1126
  }
1121
- function li(t) {
1127
+ function pi(t) {
1122
1128
  const e = u(t);
1123
1129
  return this.context.memoryLimit.use(e.length), e.replace(/<script[\s\S]*?<\/script>|<style[\s\S]*?<\/style>|<.*?>|<!--[\s\S]*?-->/g, "");
1124
1130
  }
1125
- var hi = /* @__PURE__ */ Object.freeze({
1131
+ var gi = /* @__PURE__ */ Object.freeze({
1126
1132
  __proto__: null,
1127
- escape: me,
1128
- xml_escape: ri,
1129
- escape_once: oi,
1130
- newline_to_br: ai,
1131
- strip_html: li
1133
+ escape: ye,
1134
+ xml_escape: ci,
1135
+ escape_once: fi,
1136
+ newline_to_br: di,
1137
+ strip_html: pi
1132
1138
  });
1133
- class ci {
1139
+ class mi {
1134
1140
  constructor(e) {
1135
1141
  this.mapping = e, this.sep = "/";
1136
1142
  }
@@ -1140,7 +1146,7 @@ class ci {
1140
1146
  });
1141
1147
  }
1142
1148
  existsSync(e) {
1143
- return !z(this.mapping[e]);
1149
+ return !O(this.mapping[e]);
1144
1150
  }
1145
1151
  readFile(e) {
1146
1152
  return k(this, void 0, void 0, function* () {
@@ -1149,7 +1155,7 @@ class ci {
1149
1155
  }
1150
1156
  readFileSync(e) {
1151
1157
  const s = this.mapping[e];
1152
- if (z(s))
1158
+ if (O(s))
1153
1159
  throw new Error(`ENOENT: ${e}`);
1154
1160
  return s;
1155
1161
  }
@@ -1175,7 +1181,7 @@ const Q = {
1175
1181
  keyValueSeparator: ":",
1176
1182
  cache: void 0,
1177
1183
  extname: "",
1178
- fs: Gs,
1184
+ fs: ii,
1179
1185
  dynamicPartials: !0,
1180
1186
  jsTruthy: !1,
1181
1187
  dateFormat: "%A, %B %-e, %Y at %-l:%M %P %z",
@@ -1196,55 +1202,55 @@ const Q = {
1196
1202
  lenientIf: !1,
1197
1203
  globals: {},
1198
1204
  keepOutputType: !1,
1199
- operators: Ps,
1205
+ operators: Ys,
1200
1206
  memoryLimit: 1 / 0,
1201
1207
  parseLimit: 1 / 0,
1202
1208
  renderLimit: 1 / 0
1203
1209
  };
1204
- function ui(t) {
1210
+ function yi(t) {
1205
1211
  var e, s;
1206
1212
  if (t.hasOwnProperty("root") && (t.hasOwnProperty("partials") || (t.partials = t.root), t.hasOwnProperty("layouts") || (t.layouts = t.root)), t.hasOwnProperty("cache")) {
1207
1213
  let i;
1208
- typeof t.cache == "number" ? i = t.cache > 0 ? new tt(t.cache) : void 0 : typeof t.cache == "object" ? i = t.cache : i = t.cache ? new tt(1024) : void 0, t.cache = i;
1214
+ typeof t.cache == "number" ? i = t.cache > 0 ? new rt(t.cache) : void 0 : typeof t.cache == "object" ? i = t.cache : i = t.cache ? new rt(1024) : void 0, t.cache = i;
1209
1215
  }
1210
- return t = Object.assign(Object.assign(Object.assign({}, Q), t.jekyllInclude ? { dynamicPartials: !1 } : {}), t), (!t.fs.dirname || !t.fs.sep) && t.relativeReference && (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), t.relativeReference = !1), t.root = ae(t.root), t.partials = ae(t.partials), t.layouts = ae(t.layouts), t.outputEscape = t.outputEscape && fi(t.outputEscape), t.locale || (t.locale = (s = (e = vt()) === null || e === void 0 ? void 0 : e().resolvedOptions().locale) !== null && s !== void 0 ? s : "en-US"), t.templates && (t.fs = new ci(t.templates), t.relativeReference = !0, t.root = t.partials = t.layouts = "."), t;
1216
+ return t = Object.assign(Object.assign(Object.assign({}, Q), t.jekyllInclude ? { dynamicPartials: !1 } : {}), t), (!t.fs.dirname || !t.fs.sep) && t.relativeReference && (console.warn("[LiquidJS] `fs.dirname` and `fs.sep` are required for relativeReference, set relativeReference to `false` to suppress this warning"), t.relativeReference = !1), t.root = ae(t.root), t.partials = ae(t.partials), t.layouts = ae(t.layouts), t.outputEscape = t.outputEscape && wi(t.outputEscape), t.locale || (t.locale = (s = (e = Ft()) === null || e === void 0 ? void 0 : e().resolvedOptions().locale) !== null && s !== void 0 ? s : "en-US"), t.templates && (t.fs = new mi(t.templates), t.relativeReference = !0, t.root = t.partials = t.layouts = "."), t;
1211
1217
  }
1212
- function fi(t) {
1213
- return t === "escape" ? me : t === "json" ? Ot.json : (_(v(t), "`outputEscape` need to be of type string or function"), t);
1218
+ function wi(t) {
1219
+ return t === "escape" ? ye : t === "json" ? Nt.json : (_(v(t), "`outputEscape` need to be of type string or function"), t);
1214
1220
  }
1215
1221
  function ae(t) {
1216
1222
  let e = [];
1217
- return x(t) && (e = t), f(t) && (e = [t]), e;
1223
+ return S(t) && (e = t), f(t) && (e = [t]), e;
1218
1224
  }
1219
- function di(t, e) {
1225
+ function bi(t, e) {
1220
1226
  let s = !1;
1221
1227
  for (let i = 0; i < t.length; i++) {
1222
1228
  const r = t[i];
1223
- vi(r) && (!s && r.trimLeft && pi(t[i - 1], e.greedy), Z(r) && (r.name === "raw" ? s = !0 : r.name === "endraw" && (s = !1)), !s && r.trimRight && gi(t[i + 1], e.greedy));
1229
+ Oi(r) && (!s && r.trimLeft && Ti(t[i - 1], e.greedy), Z(r) && (r.name === "raw" ? s = !0 : r.name === "endraw" && (s = !1)), !s && r.trimRight && ki(t[i + 1], e.greedy));
1224
1230
  }
1225
1231
  }
1226
- function pi(t, e) {
1227
- if (!t || !Ee(t))
1232
+ function Ti(t, e) {
1233
+ if (!t || !Ae(t))
1228
1234
  return;
1229
- const s = e ? X : bt;
1235
+ const s = e ? X : vt;
1230
1236
  for (; m[t.input.charCodeAt(t.end - 1 - t.trimRight)] & s; )
1231
1237
  t.trimRight++;
1232
1238
  }
1233
- function gi(t, e) {
1234
- if (!t || !Ee(t))
1239
+ function ki(t, e) {
1240
+ if (!t || !Ae(t))
1235
1241
  return;
1236
- const s = e ? X : bt;
1242
+ const s = e ? X : vt;
1237
1243
  for (; m[t.input.charCodeAt(t.begin + t.trimLeft)] & s; )
1238
1244
  t.trimLeft++;
1239
1245
  t.input.charAt(t.begin + t.trimLeft) === `
1240
1246
  ` && t.trimLeft++;
1241
1247
  }
1242
- class M {
1248
+ class A {
1243
1249
  constructor(e, s = Q.operators, i, r) {
1244
- this.input = e, this.file = i, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie = He(s), this.literalTrie = He(Tt);
1250
+ this.input = e, this.file = i, this.rawBeginAt = -1, this.p = r ? r[0] : 0, this.N = r ? r[1] : e.length, this.opTrie = Je(s), this.literalTrie = Je(St);
1245
1251
  }
1246
1252
  readExpression() {
1247
- return new Vs(this.readExpressionTokens());
1253
+ return new Is(this.readExpressionTokens());
1248
1254
  }
1249
1255
  *readExpressionTokens() {
1250
1256
  for (; this.p < this.N; ) {
@@ -1265,7 +1271,7 @@ class M {
1265
1271
  this.skipBlank();
1266
1272
  const e = this.matchTrie(this.opTrie);
1267
1273
  if (e !== -1)
1268
- return new Ss(this.input, this.p, this.p = e, this.file);
1274
+ return new Ns(this.input, this.p, this.p = e, this.file);
1269
1275
  }
1270
1276
  matchTrie(e) {
1271
1277
  let s = e, i = this.p, r;
@@ -1277,7 +1283,7 @@ class M {
1277
1283
  const e = this.p, s = this.readExpression();
1278
1284
  this.assert(s.valid(), `invalid value expression: ${this.snapshot()}`);
1279
1285
  const i = this.readFilters();
1280
- return new Rs(s, i, this.input, e, this.p, this.file);
1286
+ return new Cs(s, i, this.input, e, this.p, this.file);
1281
1287
  }
1282
1288
  readFilters() {
1283
1289
  const e = [];
@@ -1303,7 +1309,7 @@ class M {
1303
1309
  i && s.push(i), this.skipBlank(), this.assert(this.end() || this.peek() === "," || this.peek() === "|", () => `unexpected character ${this.snapshot()}`);
1304
1310
  } while (this.peek() === ",");
1305
1311
  else if (!(this.peek() === "|" || this.end())) throw this.error('expected ":" after filter name');
1306
- return new _t(e.getText(), s, this.input, e.begin, this.p, this.file);
1312
+ return new zt(e.getText(), s, this.input, e.begin, this.p, this.file);
1307
1313
  }
1308
1314
  readFilterArg() {
1309
1315
  const e = this.readValue();
@@ -1321,7 +1327,7 @@ class M {
1321
1327
  const i = this.readTopLevelToken(e);
1322
1328
  s.push(i);
1323
1329
  }
1324
- return di(s, e), s;
1330
+ return bi(s, e), s;
1325
1331
  }
1326
1332
  readTopLevelToken(e) {
1327
1333
  const { tagDelimiterLeft: s, outputDelimiterLeft: i } = e;
@@ -1331,18 +1337,18 @@ class M {
1331
1337
  const s = this.p;
1332
1338
  for (; this.p < this.N && !e.some((i) => this.match(i)); )
1333
1339
  ++this.p;
1334
- return new Ze(this.input, s, this.p, this.file);
1340
+ return new Xe(this.input, s, this.p, this.file);
1335
1341
  }
1336
1342
  readTagToken(e) {
1337
1343
  const { file: s, input: i } = this, r = this.p;
1338
1344
  if (this.readToDelimiter(e.tagDelimiterRight) === -1)
1339
1345
  throw this.error(`tag ${this.snapshot(r)} not closed`, r);
1340
- const n = new Je(i, r, this.p, e, s);
1346
+ const n = new Ge(i, r, this.p, e, s);
1341
1347
  return n.name === "raw" && (this.rawBeginAt = r), n;
1342
1348
  }
1343
1349
  readToDelimiter(e, s = !1) {
1344
1350
  for (this.skipBlank(); this.p < this.N; ) {
1345
- if (s && this.peekType() & Ie) {
1351
+ if (s && this.peekType() & He) {
1346
1352
  this.readQuoted();
1347
1353
  continue;
1348
1354
  }
@@ -1355,7 +1361,7 @@ class M {
1355
1361
  const { file: s, input: i } = this, { outputDelimiterRight: r } = e, n = this.p;
1356
1362
  if (this.readToDelimiter(r, !0) === -1)
1357
1363
  throw this.error(`output ${this.snapshot(n)} not closed`, n);
1358
- return new bs(i, n, this.p, e, s);
1364
+ return new Os(i, n, this.p, e, s);
1359
1365
  }
1360
1366
  readEndrawOrRawContent(e) {
1361
1367
  const { tagDelimiterLeft: s, tagDelimiterRight: i } = e, r = this.p;
@@ -1368,7 +1374,7 @@ class M {
1368
1374
  for (; this.p <= this.N; ) {
1369
1375
  if (this.rmatch(i)) {
1370
1376
  const o = this.p;
1371
- return r === n ? (this.rawBeginAt = -1, new Je(this.input, r, o, e, this.file)) : (this.p = n, new Ze(this.input, r, n, this.file));
1377
+ return r === n ? (this.rawBeginAt = -1, new Ge(this.input, r, o, e, this.file)) : (this.p = n, new Xe(this.input, r, n, this.file));
1372
1378
  }
1373
1379
  if (this.rmatch(s))
1374
1380
  break;
@@ -1392,17 +1398,17 @@ class M {
1392
1398
  this.readToDelimiter(`
1393
1399
  `);
1394
1400
  const i = this.p;
1395
- return new zs(this.input, s, i, e, this.file);
1401
+ return new js(this.input, s, i, e, this.file);
1396
1402
  }
1397
1403
  error(e, s = this.p) {
1398
- return new Jt(e, new ye(this.input, s, this.N, this.file));
1404
+ return new ts(e, new we(this.input, s, this.N, this.file));
1399
1405
  }
1400
1406
  assert(e, s, i) {
1401
1407
  if (!e)
1402
1408
  throw this.error(typeof s == "function" ? s() : s, i);
1403
1409
  }
1404
1410
  snapshot(e = this.p) {
1405
- return JSON.stringify(Yt(this.input.slice(e, this.N), 32));
1411
+ return JSON.stringify(es(this.input.slice(e, this.N), 32));
1406
1412
  }
1407
1413
  /**
1408
1414
  * @deprecated use #readIdentifier instead
@@ -1415,7 +1421,7 @@ class M {
1415
1421
  const e = this.p;
1416
1422
  for (; !this.end() && ne(this.peek()); )
1417
1423
  ++this.p;
1418
- return new ye(this.input, e, this.p, this.file);
1424
+ return new we(this.input, e, this.p, this.file);
1419
1425
  }
1420
1426
  readNonEmptyIdentifier() {
1421
1427
  const e = this.readIdentifier();
@@ -1441,7 +1447,7 @@ class M {
1441
1447
  let r;
1442
1448
  this.skipBlank();
1443
1449
  const n = f(e) ? e : e ? "=" : ":";
1444
- return this.peek() === n && (++this.p, r = this.readValue()), new xs(this.input, s, this.p, i, r, this.file);
1450
+ return this.peek() === n && (++this.p, r = this.readValue()), new As(this.input, s, this.p, i, r, this.file);
1445
1451
  }
1446
1452
  remaining() {
1447
1453
  return this.input.slice(this.p, this.N);
@@ -1464,20 +1470,20 @@ class M {
1464
1470
  readValue() {
1465
1471
  this.skipBlank();
1466
1472
  const e = this.p, s = this.readLiteral() || this.readQuoted() || this.readRange() || this.readNumber(), i = this.readProperties(!s);
1467
- return i.length ? new Ge(s, i, this.input, e, this.p) : s;
1473
+ return i.length ? new et(s, i, this.input, e, this.p) : s;
1468
1474
  }
1469
1475
  readScopeValue() {
1470
1476
  this.skipBlank();
1471
1477
  const e = this.p, s = this.readProperties();
1472
1478
  if (s.length)
1473
- return new Ge(void 0, s, this.input, e, this.p);
1479
+ return new et(void 0, s, this.input, e, this.p);
1474
1480
  }
1475
1481
  readProperties(e = !0) {
1476
1482
  const s = [];
1477
1483
  for (; ; ) {
1478
1484
  if (this.peek() === "[") {
1479
1485
  this.p++;
1480
- const i = this.readValue() || new ye(this.input, this.p, this.p, this.file);
1486
+ const i = this.readValue() || new we(this.input, this.p, this.p, this.file);
1481
1487
  this.assert(this.readTo("]") !== -1, "[ not closed"), s.push(i);
1482
1488
  continue;
1483
1489
  }
@@ -1503,8 +1509,8 @@ class M {
1503
1509
  readNumber() {
1504
1510
  this.skipBlank();
1505
1511
  let e = !1, s = !1, i = 0;
1506
- for (this.peekType() & rs && i++; this.p + i <= this.N; )
1507
- if (this.peekType(i) & is)
1512
+ for (this.peekType() & us && i++; this.p + i <= this.N; )
1513
+ if (this.peekType(i) & cs)
1508
1514
  s = !0, i++;
1509
1515
  else if (this.peek(i) === "." && this.peek(i + 1) !== ".") {
1510
1516
  if (e || !s)
@@ -1513,7 +1519,7 @@ class M {
1513
1519
  } else
1514
1520
  break;
1515
1521
  if (s && !ne(this.peek(i))) {
1516
- const r = new Ts(this.input, this.p, this.p + i, this.file);
1522
+ const r = new zs(this.input, this.p, this.p + i, this.file);
1517
1523
  return this.advance(i), r;
1518
1524
  }
1519
1525
  }
@@ -1522,7 +1528,7 @@ class M {
1522
1528
  const e = this.matchTrie(this.literalTrie);
1523
1529
  if (e === -1)
1524
1530
  return;
1525
- const s = new ks(this.input, this.p, e, this.file);
1531
+ const s = new Rs(this.input, this.p, e, this.file);
1526
1532
  return this.p = e, s;
1527
1533
  }
1528
1534
  readRange() {
@@ -1534,7 +1540,7 @@ class M {
1534
1540
  const s = this.readValueOrThrow();
1535
1541
  this.skipBlank(), this.assert(this.read() === "." && this.read() === ".", "invalid range syntax");
1536
1542
  const i = this.readValueOrThrow();
1537
- return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new Os(this.input, e, this.p, s, i, this.file);
1543
+ return this.skipBlank(), this.assert(this.read() === ")", "invalid range syntax"), new qs(this.input, e, this.p, s, i, this.file);
1538
1544
  }
1539
1545
  readValueOrThrow() {
1540
1546
  const e = this.readValue();
@@ -1543,13 +1549,13 @@ class M {
1543
1549
  readQuoted() {
1544
1550
  this.skipBlank();
1545
1551
  const e = this.p;
1546
- if (!(this.peekType() & Ie))
1552
+ if (!(this.peekType() & He))
1547
1553
  return;
1548
1554
  ++this.p;
1549
1555
  let s = !1;
1550
1556
  for (; this.p < this.N && (++this.p, !(this.input[this.p - 1] === this.input[e] && !s)); )
1551
1557
  s ? s = !1 : this.input[this.p - 1] === "\\" && (s = !0);
1552
- return new Ls(this.input, e, this.p, this.file);
1558
+ return new Vs(this.input, e, this.p, this.file);
1553
1559
  }
1554
1560
  *readFileNameTemplate(e) {
1555
1561
  const { outputDelimiterLeft: s } = e, i = [",", " ", s], r = new Set(i);
@@ -1579,7 +1585,7 @@ class M {
1579
1585
  ++this.p;
1580
1586
  }
1581
1587
  }
1582
- class mi {
1588
+ class vi {
1583
1589
  constructor(e, s) {
1584
1590
  this.handlers = {}, this.stopRequested = !1, this.tokens = e, this.parseToken = s;
1585
1591
  }
@@ -1605,12 +1611,12 @@ class mi {
1605
1611
  return this.stopRequested = !0, this;
1606
1612
  }
1607
1613
  }
1608
- class Re {
1614
+ class Ne {
1609
1615
  constructor(e) {
1610
1616
  this.token = e;
1611
1617
  }
1612
1618
  }
1613
- class b extends Re {
1619
+ class b extends Ne {
1614
1620
  constructor(e, s, i) {
1615
1621
  super(e), this.name = e.name, this.liquid = i, this.tokenizer = e.tokenizer;
1616
1622
  }
@@ -1618,7 +1624,7 @@ class b extends Re {
1618
1624
  class ee {
1619
1625
  constructor(e, s) {
1620
1626
  this.hash = {};
1621
- const i = e instanceof M ? e : new M(e, {});
1627
+ const i = e instanceof A ? e : new A(e, {});
1622
1628
  for (const r of i.readHashes(s))
1623
1629
  this.hash[r.name.content] = r.value;
1624
1630
  }
@@ -1629,7 +1635,7 @@ class ee {
1629
1635
  return s;
1630
1636
  }
1631
1637
  }
1632
- function yi(t) {
1638
+ function xi(t) {
1633
1639
  return class extends b {
1634
1640
  constructor(e, s, i) {
1635
1641
  super(e, s, i), v(t.parse) && t.parse.call(this, e, s);
@@ -1640,17 +1646,17 @@ function yi(t) {
1640
1646
  }
1641
1647
  };
1642
1648
  }
1643
- function zt(t) {
1644
- return x(t);
1649
+ function At(t) {
1650
+ return S(t);
1645
1651
  }
1646
- class Rt {
1652
+ class Dt {
1647
1653
  constructor(e, s, i) {
1648
- this.token = e, this.name = e.name, this.handler = v(s) ? s : v(s == null ? void 0 : s.handler) ? s.handler : yt, this.raw = !v(s) && !!(s != null && s.raw), this.args = e.args, this.liquid = i;
1654
+ this.token = e, this.name = e.name, this.handler = v(s) ? s : v(s?.handler) ? s.handler : Tt, this.raw = !v(s) && !!s?.raw, this.args = e.args, this.liquid = i;
1649
1655
  }
1650
1656
  *render(e, s) {
1651
1657
  const i = [];
1652
1658
  for (const r of this.args)
1653
- zt(r) ? i.push([r[0], yield T(r[1], s)]) : i.push(yield T(r, s));
1659
+ At(r) ? i.push([r[0], yield T(r[1], s)]) : i.push(yield T(r, s));
1654
1660
  return yield this.handler.apply({ context: s, token: this.token, liquid: this.liquid }, [e, ...i]);
1655
1661
  }
1656
1662
  }
@@ -1660,8 +1666,8 @@ class L {
1660
1666
  */
1661
1667
  constructor(e, s) {
1662
1668
  this.filters = [];
1663
- const i = typeof e == "string" ? new M(e, s.options.operators).readFilteredValue() : e;
1664
- this.initial = i.initial, this.filters = i.filters.map((r) => new Rt(r, this.getFilter(s, r.name), s));
1669
+ const i = typeof e == "string" ? new A(e, s.options.operators).readFilteredValue() : e;
1670
+ this.initial = i.initial, this.filters = i.filters.map((r) => new Dt(r, this.getFilter(s, r.name), s));
1665
1671
  }
1666
1672
  *value(e, s) {
1667
1673
  s = s || e.opts.lenientIf && this.filters.length > 0 && this.filters[0].name === "default";
@@ -1675,16 +1681,16 @@ class L {
1675
1681
  return _(i || !e.options.strictFilters, () => `undefined filter: ${s}`), i;
1676
1682
  }
1677
1683
  }
1678
- class wi extends Re {
1684
+ class Si extends Ne {
1679
1685
  constructor(e, s) {
1680
1686
  var i;
1681
1687
  super(e);
1682
- const r = new M(e.input, s.options.operators, e.file, e.contentRange);
1688
+ const r = new A(e.input, s.options.operators, e.file, e.contentRange);
1683
1689
  this.value = new L(r.readFilteredValue(), s);
1684
1690
  const n = this.value.filters, o = s.options.outputEscape;
1685
1691
  if (!(!((i = n[n.length - 1]) === null || i === void 0) && i.raw) && o) {
1686
- const a = new _t(toString.call(o), [], "", 0, 0);
1687
- n.push(new Rt(a, o, s));
1692
+ const a = new zt(toString.call(o), [], "", 0, 0);
1693
+ n.push(new Dt(a, o, s));
1688
1694
  }
1689
1695
  }
1690
1696
  *render(e, s) {
@@ -1695,7 +1701,7 @@ class wi extends Re {
1695
1701
  yield this.value;
1696
1702
  }
1697
1703
  }
1698
- class bi extends Re {
1704
+ class _i extends Ne {
1699
1705
  constructor(e) {
1700
1706
  super(e), this.str = e.getContent();
1701
1707
  }
@@ -1719,7 +1725,7 @@ class H {
1719
1725
  return Array.from(e(...this.segments));
1720
1726
  }
1721
1727
  }
1722
- class be {
1728
+ class Te {
1723
1729
  constructor() {
1724
1730
  this.map = /* @__PURE__ */ new Map();
1725
1731
  }
@@ -1737,82 +1743,82 @@ class be {
1737
1743
  return Object.fromEntries(this.map);
1738
1744
  }
1739
1745
  }
1740
- const Et = {
1746
+ const Mt = {
1741
1747
  partials: !0
1742
1748
  };
1743
- function* Nt(t, e, s) {
1744
- const i = new be(), r = new be(), n = new be(), o = new it(/* @__PURE__ */ new Set()), a = /* @__PURE__ */ new Set();
1745
- function h(l, p) {
1746
- i.push(l);
1747
- const g = p.alias(l);
1749
+ function* Vt(t, e, s) {
1750
+ const i = new Te(), r = new Te(), n = new Te(), o = new ot(/* @__PURE__ */ new Set()), a = /* @__PURE__ */ new Set();
1751
+ function l(h, d) {
1752
+ i.push(h);
1753
+ const g = d.alias(h);
1748
1754
  if (g !== void 0) {
1749
1755
  const w = g.segments[0];
1750
1756
  f(w) && !o.has(w) && r.push(g);
1751
1757
  } else {
1752
- const w = l.segments[0];
1753
- f(w) && !p.has(w) && r.push(l);
1758
+ const w = h.segments[0];
1759
+ f(w) && !d.has(w) && r.push(h);
1754
1760
  }
1755
- for (const w of l.segments)
1756
- w instanceof H && h(w, p);
1757
- }
1758
- function* c(l, p) {
1759
- if (l.arguments)
1760
- for (const g of l.arguments())
1761
- for (const w of rt(g))
1762
- h(w, p);
1763
- if (l.localScope)
1764
- for (const g of l.localScope()) {
1765
- p.add(g.content), p.deleteAlias(g.content);
1761
+ for (const w of h.segments)
1762
+ w instanceof H && l(w, d);
1763
+ }
1764
+ function* c(h, d) {
1765
+ if (h.arguments)
1766
+ for (const g of h.arguments())
1767
+ for (const w of at(g))
1768
+ l(w, d);
1769
+ if (h.localScope)
1770
+ for (const g of h.localScope()) {
1771
+ d.add(g.content), d.deleteAlias(g.content);
1766
1772
  const [w, te] = g.getPosition();
1767
1773
  n.push(new H([g.content], { row: w, col: te, file: g.file }));
1768
1774
  }
1769
- if (l.children)
1770
- if (l.partialScope) {
1771
- const g = l.partialScope();
1775
+ if (h.children)
1776
+ if (h.partialScope) {
1777
+ const g = h.partialScope();
1772
1778
  if (g === void 0) {
1773
- for (const j of yield l.children(e, s))
1774
- yield c(j, p);
1779
+ for (const $ of yield h.children(e, s))
1780
+ yield c($, d);
1775
1781
  return;
1776
1782
  }
1777
1783
  if (a.has(g.name))
1778
1784
  return;
1779
- const w = /* @__PURE__ */ new Set(), te = g.isolated ? new it(w) : p.push(w);
1780
- for (const j of g.scope)
1781
- if (f(j))
1782
- w.add(j);
1785
+ const w = /* @__PURE__ */ new Set(), te = g.isolated ? new ot(w) : d.push(w);
1786
+ for (const $ of g.scope)
1787
+ if (f($))
1788
+ w.add($);
1783
1789
  else {
1784
- const [Me, $t] = j;
1785
- w.add(Me);
1786
- const Ve = Array.from(rt($t));
1787
- Ve.length && te.setAlias(Me, Ve[0].segments);
1790
+ const [Ce, Wt] = $;
1791
+ w.add(Ce);
1792
+ const $e = Array.from(at(Wt));
1793
+ $e.length && te.setAlias(Ce, $e[0].segments);
1788
1794
  }
1789
- for (const j of yield l.children(e, s))
1790
- yield c(j, te), a.add(g.name);
1795
+ for (const $ of yield h.children(e, s))
1796
+ yield c($, te), a.add(g.name);
1791
1797
  te.pop();
1792
1798
  } else {
1793
- l.blockScope && p.push(new Set(l.blockScope()));
1794
- for (const g of yield l.children(e, s))
1795
- yield c(g, p);
1796
- l.blockScope && p.pop();
1799
+ h.blockScope && d.push(new Set(h.blockScope()));
1800
+ for (const g of yield h.children(e, s))
1801
+ yield c(g, d);
1802
+ h.blockScope && d.pop();
1797
1803
  }
1798
1804
  }
1799
- for (const l of t)
1800
- yield c(l, o);
1805
+ for (const h of t)
1806
+ yield c(h, o);
1801
1807
  return {
1802
1808
  variables: i.asObject(),
1803
1809
  globals: r.asObject(),
1804
1810
  locals: n.asObject()
1805
1811
  };
1806
1812
  }
1807
- function C(t, e = {}) {
1808
- const s = Object.assign(Object.assign({}, Et), e);
1809
- return V(Nt(t, s.partials, !1));
1813
+ function j(t, e = {}) {
1814
+ const s = Object.assign(Object.assign({}, Mt), e);
1815
+ return M(Vt(t, s.partials, !1));
1810
1816
  }
1811
- function $(t, e = {}) {
1812
- const s = Object.assign(Object.assign({}, Et), e);
1813
- return q(Nt(t, s.partials, !0));
1817
+ function C(t, e = {}) {
1818
+ const s = Object.assign(Object.assign({}, Mt), e);
1819
+ return V(Vt(t, s.partials, !0));
1814
1820
  }
1815
- class it {
1821
+ class ot {
1816
1822
  constructor(e) {
1817
1823
  this.stack = [{ names: e, aliases: /* @__PURE__ */ new Map() }];
1818
1824
  }
@@ -1859,26 +1865,26 @@ class it {
1859
1865
  }
1860
1866
  }
1861
1867
  }
1862
- function* rt(t) {
1863
- F(t) ? yield* G(t) : t instanceof L && (yield* Ti(t));
1868
+ function* at(t) {
1869
+ F(t) ? yield* G(t) : t instanceof L && (yield* Fi(t));
1864
1870
  }
1865
- function* Ti(t) {
1871
+ function* Fi(t) {
1866
1872
  for (const e of t.initial.postfix)
1867
1873
  F(e) && (yield* G(e));
1868
1874
  for (const e of t.filters)
1869
1875
  for (const s of e.args)
1870
- zt(s) && s[1] ? yield* G(s[1]) : F(s) && (yield* G(s));
1876
+ At(s) && s[1] ? yield* G(s[1]) : F(s) && (yield* G(s));
1871
1877
  }
1872
1878
  function* G(t) {
1873
- Dt(t) ? (yield* G(t.lhs), yield* G(t.rhs)) : fe(t) && (yield Se(t));
1879
+ jt(t) ? (yield* G(t.lhs), yield* G(t.rhs)) : fe(t) && (yield _e(t));
1874
1880
  }
1875
- function Se(t) {
1881
+ function _e(t) {
1876
1882
  const e = [];
1877
1883
  let s = t.file;
1878
1884
  const i = t.props[0];
1879
- s = s || i.file, xe(i) || ot(i) || at(i) ? e.push(i.content) : fe(i) && e.push(...Se(i).segments);
1885
+ s = s || i.file, Fe(i) || ht(i) || ct(i) ? e.push(i.content) : fe(i) && e.push(..._e(i).segments);
1880
1886
  for (const o of t.props.slice(1))
1881
- s = s || o.file, xe(o) || ot(o) || at(o) ? e.push(o.content) : fe(o) && e.push(Se(o));
1887
+ s = s || o.file, Fe(o) || ht(o) || ct(o) ? e.push(o.content) : fe(o) && e.push(_e(o));
1882
1888
  const [r, n] = t.getPosition();
1883
1889
  return new H(e, {
1884
1890
  row: r,
@@ -1886,24 +1892,24 @@ function Se(t) {
1886
1892
  file: s
1887
1893
  });
1888
1894
  }
1889
- const nt = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
1895
+ const lt = /^[\u0080-\uFFFFa-zA-Z_][\u0080-\uFFFFa-zA-Z0-9_-]*$/;
1890
1896
  function ue(t, e = !1) {
1891
1897
  const s = [], i = t[0];
1892
- f(i) && (!e || i.match(nt) ? s.push(`${i}`) : s.push(`['${i}']`));
1898
+ f(i) && (!e || i.match(lt) ? s.push(`${i}`) : s.push(`['${i}']`));
1893
1899
  for (const r of t.slice(1))
1894
- r instanceof H ? s.push(`[${ue(r.segments)}]`) : f(r) ? r.match(nt) ? s.push(`.${r}`) : s.push(`['${r}']`) : s.push(`[${r}]`);
1900
+ r instanceof H ? s.push(`[${ue(r.segments)}]`) : f(r) ? r.match(lt) ? s.push(`.${r}`) : s.push(`['${r}']`) : s.push(`[${r}]`);
1895
1901
  return s.join("");
1896
1902
  }
1897
1903
  var W;
1898
1904
  (function(t) {
1899
1905
  t.Partials = "partials", t.Layouts = "layouts", t.Root = "root";
1900
1906
  })(W || (W = {}));
1901
- class ki {
1907
+ class Li {
1902
1908
  constructor(e) {
1903
1909
  if (this.options = e, e.relativeReference) {
1904
1910
  const s = e.fs.sep;
1905
1911
  _(s, "`fs.sep` is required for relative reference");
1906
- const i = new RegExp(["." + s, ".." + s, "./", "../"].map((r) => It(r)).join("|"));
1912
+ const i = new RegExp(["." + s, ".." + s, "./", "../"].map((r) => Zt(r)).join("|"));
1907
1913
  this.shouldLoadRelative = (r) => i.test(r);
1908
1914
  } else
1909
1915
  this.shouldLoadRelative = (s) => !1;
@@ -1920,15 +1926,15 @@ class ki {
1920
1926
  const { fs: n, extname: o } = this.options;
1921
1927
  if (this.shouldLoadRelative(e) && i) {
1922
1928
  const a = n.resolve(this.dirname(i), e, o);
1923
- for (const h of s)
1924
- if (!r || this.contains(h, a)) {
1929
+ for (const l of s)
1930
+ if (!r || this.contains(l, a)) {
1925
1931
  yield a;
1926
1932
  break;
1927
1933
  }
1928
1934
  }
1929
1935
  for (const a of s) {
1930
- const h = n.resolve(a, e, o);
1931
- (!r || this.contains(a, h)) && (yield h);
1936
+ const l = n.resolve(a, e, o);
1937
+ (!r || this.contains(a, l)) && (yield l);
1932
1938
  }
1933
1939
  if (n.fallback !== void 0) {
1934
1940
  const a = n.fallback(e);
@@ -1946,11 +1952,11 @@ class ki {
1946
1952
  }
1947
1953
  class P {
1948
1954
  constructor(e) {
1949
- 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 ki(this.liquid.options), this.parseLimit = new ve("parse length", e.options.parseLimit);
1955
+ 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 Li(this.liquid.options), this.parseLimit = new Se("parse length", e.options.parseLimit);
1950
1956
  }
1951
1957
  parse(e, s) {
1952
1958
  e = String(e), this.parseLimit.use(e.length);
1953
- const r = new M(e, this.liquid.options.operators, s).readTopLevelTokens(this.liquid.options);
1959
+ const r = new A(e, this.liquid.options.operators, s).readTopLevelTokens(this.liquid.options);
1954
1960
  return this.parseTokens(r);
1955
1961
  }
1956
1962
  parseTokens(e) {
@@ -1966,7 +1972,7 @@ class P {
1966
1972
  throw n;
1967
1973
  }
1968
1974
  if (r.length)
1969
- throw new wt(r);
1975
+ throw new kt(r);
1970
1976
  return i;
1971
1977
  }
1972
1978
  parseToken(e, s) {
@@ -1975,24 +1981,24 @@ class P {
1975
1981
  const i = this.liquid.tags[e.name];
1976
1982
  return _(i, `tag "${e.name}" not found`), new i(e, s, this.liquid, this);
1977
1983
  }
1978
- return Si(e) ? new wi(e, this.liquid) : new bi(e);
1984
+ return zi(e) ? new Si(e, this.liquid) : new _i(e);
1979
1985
  } catch (i) {
1980
- throw J.is(i) ? i : new Zt(i, e);
1986
+ throw J.is(i) ? i : new ss(i, e);
1981
1987
  }
1982
1988
  }
1983
1989
  parseStream(e) {
1984
- return new mi(e, (s, i) => this.parseToken(s, i));
1990
+ return new vi(e, (s, i) => this.parseToken(s, i));
1985
1991
  }
1986
1992
  *_parseFileCached(e, s, i = W.Root, r) {
1987
1993
  const n = this.cache, o = this.loader.shouldLoadRelative(e) ? r + "," + e : i + ":" + e, a = yield n.read(o);
1988
1994
  if (a)
1989
1995
  return a;
1990
- const h = this._parseFile(e, s, i, r), c = s ? yield h : V(h);
1996
+ const l = this._parseFile(e, s, i, r), c = s ? yield l : M(l);
1991
1997
  n.write(o, c);
1992
1998
  try {
1993
1999
  return yield c;
1994
- } catch (l) {
1995
- throw n.remove(o), l;
2000
+ } catch (h) {
2001
+ throw n.remove(o), h;
1996
2002
  }
1997
2003
  }
1998
2004
  *_parseFile(e, s, i = W.Root, r) {
@@ -2004,46 +2010,46 @@ var y;
2004
2010
  (function(t) {
2005
2011
  t[t.Number = 1] = "Number", t[t.Literal = 2] = "Literal", t[t.Tag = 4] = "Tag", t[t.Output = 8] = "Output", t[t.HTML = 16] = "HTML", t[t.Filter = 32] = "Filter", t[t.Hash = 64] = "Hash", t[t.PropertyAccess = 128] = "PropertyAccess", t[t.Word = 256] = "Word", t[t.Range = 512] = "Range", t[t.Quoted = 1024] = "Quoted", t[t.Operator = 2048] = "Operator", t[t.FilteredValue = 4096] = "FilteredValue", t[t.Delimited = 12] = "Delimited";
2006
2012
  })(y || (y = {}));
2007
- function vi(t) {
2008
- return !!(N(t) & y.Delimited);
2013
+ function Oi(t) {
2014
+ return !!(E(t) & y.Delimited);
2009
2015
  }
2010
- function At(t) {
2011
- return N(t) === y.Operator;
2016
+ function qt(t) {
2017
+ return E(t) === y.Operator;
2012
2018
  }
2013
- function Ee(t) {
2014
- return N(t) === y.HTML;
2019
+ function Ae(t) {
2020
+ return E(t) === y.HTML;
2015
2021
  }
2016
- function Si(t) {
2017
- return N(t) === y.Output;
2022
+ function zi(t) {
2023
+ return E(t) === y.Output;
2018
2024
  }
2019
2025
  function Z(t) {
2020
- return N(t) === y.Tag;
2026
+ return E(t) === y.Tag;
2021
2027
  }
2022
- function xe(t) {
2023
- return N(t) === y.Quoted;
2028
+ function Fe(t) {
2029
+ return E(t) === y.Quoted;
2024
2030
  }
2025
- function ot(t) {
2026
- return N(t) === y.Number;
2031
+ function ht(t) {
2032
+ return E(t) === y.Number;
2027
2033
  }
2028
2034
  function fe(t) {
2029
- return N(t) === y.PropertyAccess;
2035
+ return E(t) === y.PropertyAccess;
2030
2036
  }
2031
- function at(t) {
2032
- return N(t) === y.Word;
2037
+ function ct(t) {
2038
+ return E(t) === y.Word;
2033
2039
  }
2034
- function Dt(t) {
2035
- return N(t) === y.Range;
2040
+ function jt(t) {
2041
+ return E(t) === y.Range;
2036
2042
  }
2037
2043
  function F(t) {
2038
- return (N(t) & 1667) > 0;
2044
+ return (E(t) & 1667) > 0;
2039
2045
  }
2040
- function N(t) {
2046
+ function E(t) {
2041
2047
  return t ? t.kind : -1;
2042
2048
  }
2043
2049
  class I {
2044
2050
  constructor(e = {}, s = Q, i = {}, { memoryLimit: r, renderLimit: n } = {}) {
2045
- var o, a, h, c, l;
2046
- this.scopes = [{}], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!i.sync, this.opts = s, this.globals = (o = i.globals) !== null && o !== void 0 ? o : s.globals, this.environments = pe(e) ? e : Object(e), this.strictVariables = (a = i.strictVariables) !== null && a !== void 0 ? a : this.opts.strictVariables, this.ownPropertyOnly = (h = i.ownPropertyOnly) !== null && h !== void 0 ? h : s.ownPropertyOnly, this.memoryLimit = r ?? new ve("memory alloc", (c = i.memoryLimit) !== null && c !== void 0 ? c : s.memoryLimit), this.renderLimit = n ?? new ve("template render", Ft().now() + ((l = i.renderLimit) !== null && l !== void 0 ? l : s.renderLimit));
2051
+ var o, a, l, c, h;
2052
+ this.scopes = [{}], this.registers = {}, this.breakCalled = !1, this.continueCalled = !1, this.sync = !!i.sync, this.opts = s, this.globals = (o = i.globals) !== null && o !== void 0 ? o : s.globals, this.environments = pe(e) ? e : Object(e), this.strictVariables = (a = i.strictVariables) !== null && a !== void 0 ? a : this.opts.strictVariables, this.ownPropertyOnly = (l = i.ownPropertyOnly) !== null && l !== void 0 ? l : s.ownPropertyOnly, this.memoryLimit = r ?? new Se("memory alloc", (c = i.memoryLimit) !== null && c !== void 0 ? c : s.memoryLimit), this.renderLimit = n ?? new Se("template render", Rt().now() + ((h = i.renderLimit) !== null && h !== void 0 ? h : s.renderLimit));
2047
2053
  }
2048
2054
  getRegister(e) {
2049
2055
  return this.registers[e] = this.registers[e] || {};
@@ -2067,7 +2073,7 @@ class I {
2067
2073
  return this.getSync(e);
2068
2074
  }
2069
2075
  getSync(e) {
2070
- return q(this._get(e));
2076
+ return V(this._get(e));
2071
2077
  }
2072
2078
  *_get(e) {
2073
2079
  const s = this.findScope(e[0]);
@@ -2077,13 +2083,13 @@ class I {
2077
2083
  * @deprecated use `_get()` instead
2078
2084
  */
2079
2085
  getFromScope(e, s) {
2080
- return q(this._getFromScope(e, s));
2086
+ return V(this._getFromScope(e, s));
2081
2087
  }
2082
2088
  *_getFromScope(e, s, i = this.strictVariables) {
2083
2089
  f(s) && (s = s.split("."));
2084
2090
  for (let r = 0; r < s.length; r++)
2085
- if (e = yield xi(e, s[r], this.ownPropertyOnly), i && Bt(e))
2086
- throw new Xt(s.slice(0, r + 1).join("."));
2091
+ if (e = yield this.readProperty(e, s[r]), i && Qt(e))
2092
+ throw new ns(s.slice(0, r + 1).join("."));
2087
2093
  return e;
2088
2094
  }
2089
2095
  push(e) {
@@ -2113,29 +2119,29 @@ class I {
2113
2119
  }
2114
2120
  return e in this.environments ? this.environments : this.globals;
2115
2121
  }
2122
+ readProperty(e, s) {
2123
+ if (e = gt(e), s = p(s), O(e))
2124
+ return e;
2125
+ if (S(e) && s < 0)
2126
+ return e[e.length + +s];
2127
+ const i = Ri(e, s, this.ownPropertyOnly);
2128
+ return i === void 0 && e instanceof Y ? e.liquidMethodMissing(s, this) : v(i) ? i.call(e) : s === "size" ? Ai(e) : s === "first" ? Ei(e) : s === "last" ? Ni(e) : i;
2129
+ }
2116
2130
  }
2117
- function xi(t, e, s) {
2118
- if (t = ft(t), e = d(e), z(t))
2119
- return t;
2120
- if (x(t) && e < 0)
2121
- return t[t.length + +e];
2122
- const i = _i(t, e, s);
2123
- return i === void 0 && t instanceof Y ? t.liquidMethodMissing(e) : v(i) ? i.call(t) : e === "size" ? Oi(t) : e === "first" ? Fi(t) : e === "last" ? Li(t) : i;
2124
- }
2125
- function _i(t, e, s) {
2126
- if (!(s && !_e.call(t, e) && !(t instanceof Y)))
2131
+ function Ri(t, e, s) {
2132
+ if (!(s && !Le.call(t, e) && !(t instanceof Y)))
2127
2133
  return t[e];
2128
2134
  }
2129
- function Fi(t) {
2130
- return x(t) ? t[0] : t.first;
2135
+ function Ei(t) {
2136
+ return S(t) ? t[0] : t.first;
2131
2137
  }
2132
- function Li(t) {
2133
- return x(t) ? t[t.length - 1] : t.last;
2138
+ function Ni(t) {
2139
+ return S(t) ? t[t.length - 1] : t.last;
2134
2140
  }
2135
- function Oi(t) {
2136
- if (_e.call(t, "size") || t.size !== void 0)
2141
+ function Ai(t) {
2142
+ if (Le.call(t, "size") || t.size !== void 0)
2137
2143
  return t.size;
2138
- if (x(t) || f(t))
2144
+ if (S(t) || f(t))
2139
2145
  return t.length;
2140
2146
  if (typeof t == "object")
2141
2147
  return Object.keys(t).length;
@@ -2144,62 +2150,59 @@ var U;
2144
2150
  (function(t) {
2145
2151
  t[t.OUTPUT = 0] = "OUTPUT", t[t.STORE = 1] = "STORE";
2146
2152
  })(U || (U = {}));
2147
- const zi = O(Math.abs), Ri = O(Math.max), Ei = O(Math.min), Ni = O(Math.ceil), Ai = O((t, e, s = !1) => s ? Math.floor(t / e) : t / e), Di = O(Math.floor), Mi = O((t, e) => t - e), Vi = O((t, e) => t % e), qi = O((t, e) => t * e);
2148
- function Ci(t, e = 0) {
2149
- t = d(t), e = d(e);
2153
+ const Di = D(Math.abs), Mi = D(Math.max), Vi = D(Math.min), qi = D(Math.ceil), ji = D((t, e, s = !1) => s ? Math.floor(t / e) : t / e), Ci = D(Math.floor), $i = D((t, e) => t - e), Pi = D((t, e) => t + e), Ii = D((t, e) => t % e), Bi = D((t, e) => t * e);
2154
+ function Ui(t, e = 0) {
2155
+ t = ve(t), e = ve(e);
2150
2156
  const s = Math.pow(10, e);
2151
2157
  return Math.round(t * s) / s;
2152
2158
  }
2153
- function $i(t, e) {
2154
- return t = d(t), e = d(e), Number(t) + Number(e);
2155
- }
2156
- var ji = /* @__PURE__ */ Object.freeze({
2159
+ var Hi = /* @__PURE__ */ Object.freeze({
2157
2160
  __proto__: null,
2158
- abs: zi,
2159
- at_least: Ri,
2160
- at_most: Ei,
2161
- ceil: Ni,
2162
- divided_by: Ai,
2163
- floor: Di,
2164
- minus: Mi,
2165
- modulo: Vi,
2166
- times: qi,
2167
- round: Ci,
2168
- plus: $i
2161
+ abs: Di,
2162
+ at_least: Mi,
2163
+ at_most: Vi,
2164
+ ceil: qi,
2165
+ divided_by: ji,
2166
+ floor: Ci,
2167
+ minus: $i,
2168
+ plus: Pi,
2169
+ modulo: Ii,
2170
+ times: Bi,
2171
+ round: Ui
2169
2172
  });
2170
- const Pi = (t) => decodeURIComponent(u(t)).replace(/\+/g, " "), Ii = (t) => encodeURIComponent(u(t)).replace(/%20/g, "+"), Bi = (t) => encodeURIComponent(u(t)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), Ui = (t) => encodeURI(u(t)).replace(/%5B/g, "[").replace(/%5D/g, "]"), lt = /[^\p{M}\p{L}\p{Nd}]+/ug, Hi = {
2173
+ const Wi = (t) => decodeURIComponent(u(t)).replace(/\+/g, " "), Yi = (t) => encodeURIComponent(u(t)).replace(/%20/g, "+"), Ji = (t) => encodeURIComponent(u(t)).replace(/%20/g, "+").replace(/[!'()*]/g, (e) => "%" + e.charCodeAt(0).toString(16).toUpperCase()), Zi = (t) => encodeURI(u(t)).replace(/%5B/g, "[").replace(/%5D/g, "]"), ut = /[^\p{M}\p{L}\p{Nd}]+/ug, Qi = {
2171
2174
  raw: /\s+/g,
2172
- default: lt,
2175
+ default: ut,
2173
2176
  pretty: /[^\p{M}\p{L}\p{Nd}._~!$&'()+,;=@]+/ug,
2174
2177
  ascii: /[^A-Za-z0-9]+/g,
2175
- latin: lt,
2178
+ latin: ut,
2176
2179
  none: null
2177
2180
  };
2178
- function Wi(t, e = "default", s = !1) {
2181
+ function Gi(t, e = "default", s = !1) {
2179
2182
  t = u(t);
2180
- const i = Hi[e];
2181
- return i && (e === "latin" && (t = Yi(t)), t = t.replace(i, "-").replace(/^-|-$/g, "")), s ? t : t.toLowerCase();
2183
+ const i = Qi[e];
2184
+ return i && (e === "latin" && (t = Xi(t)), t = t.replace(i, "-").replace(/^-|-$/g, "")), s ? t : t.toLowerCase();
2182
2185
  }
2183
- function Yi(t) {
2186
+ function Xi(t) {
2184
2187
  return t.replace(/[àáâãäå]/g, "a").replace(/[æ]/g, "ae").replace(/[ç]/g, "c").replace(/[èéêë]/g, "e").replace(/[ìíîï]/g, "i").replace(/[ð]/g, "d").replace(/[ñ]/g, "n").replace(/[òóôõöø]/g, "o").replace(/[ùúûü]/g, "u").replace(/[ýÿ]/g, "y").replace(/[ß]/g, "ss").replace(/[œ]/g, "oe").replace(/[þ]/g, "th").replace(/[ẞ]/g, "SS").replace(/[Œ]/g, "OE").replace(/[Þ]/g, "TH");
2185
2188
  }
2186
- var Ji = /* @__PURE__ */ Object.freeze({
2189
+ var Ki = /* @__PURE__ */ Object.freeze({
2187
2190
  __proto__: null,
2188
- url_decode: Pi,
2189
- url_encode: Ii,
2190
- cgi_escape: Bi,
2191
- uri_escape: Ui,
2192
- slugify: Wi
2191
+ url_decode: Wi,
2192
+ url_encode: Yi,
2193
+ cgi_escape: Ji,
2194
+ uri_escape: Zi,
2195
+ slugify: Gi
2193
2196
  });
2194
- const Zi = O(function(t, e) {
2195
- const s = S(t), i = z(e) ? " " : u(e), r = s.length * (1 + i.length);
2197
+ const er = ge(function(t, e) {
2198
+ const s = x(t), i = O(e) ? " " : u(e), r = s.length * (1 + i.length);
2196
2199
  return this.context.memoryLimit.use(r), s.join(i);
2197
- }), Qi = O((t) => dt(t) ? pt(t) : ""), Gi = O((t) => dt(t) ? t[0] : ""), Xi = O(function(t) {
2198
- const e = S(t);
2200
+ }), tr = ge((t) => mt(t) ? yt(t) : ""), sr = ge((t) => mt(t) ? t[0] : ""), ir = ge(function(t) {
2201
+ const e = x(t);
2199
2202
  return this.context.memoryLimit.use(e.length), [...e].reverse();
2200
2203
  });
2201
- function* Ki(t, e) {
2202
- const s = [], i = S(t);
2204
+ function* rr(t, e) {
2205
+ const s = [], i = x(t);
2203
2206
  this.context.memoryLimit.use(i.length);
2204
2207
  for (const r of i)
2205
2208
  s.push([
@@ -2211,80 +2214,95 @@ function* Ki(t, e) {
2211
2214
  return o < a ? -1 : o > a ? 1 : 0;
2212
2215
  }).map((r) => r[0]);
2213
2216
  }
2214
- function er(t, e) {
2215
- const s = u(e), i = e === void 0 ? je : (n, o) => je(n[s], o[s]), r = S(t);
2217
+ function nr(t, e) {
2218
+ const s = u(e), i = e === void 0 ? Be : (n, o) => Be(n[s], o[s]), r = x(t);
2216
2219
  return this.context.memoryLimit.use(r.length), [...r].sort(i);
2217
2220
  }
2218
- const tr = (t) => t && t.length || 0;
2219
- function* sr(t, e) {
2220
- const s = [], i = S(t);
2221
+ const or = (t) => t && t.length || 0;
2222
+ function* ar(t, e) {
2223
+ const s = [], i = x(t);
2221
2224
  this.context.memoryLimit.use(i.length);
2222
2225
  for (const r of i)
2223
2226
  s.push(yield this.context._getFromScope(r, u(e), !1));
2224
2227
  return s;
2225
2228
  }
2226
- function* ir(t, e) {
2229
+ function* lr(t, e) {
2227
2230
  let s = 0;
2228
- const i = S(t);
2231
+ const i = x(t);
2229
2232
  for (const r of i) {
2230
2233
  const n = Number(e ? yield this.context._getFromScope(r, u(e), !1) : r);
2231
2234
  s += Number.isNaN(n) ? 0 : n;
2232
2235
  }
2233
2236
  return s;
2234
2237
  }
2235
- function rr(t) {
2236
- const e = S(t);
2237
- return this.context.memoryLimit.use(e.length), e.filter((s) => !z(d(s)));
2238
+ function hr(t) {
2239
+ const e = x(t);
2240
+ return this.context.memoryLimit.use(e.length), e.filter((s) => !O(p(s)));
2238
2241
  }
2239
- function Mt(t, e = []) {
2240
- const s = S(t), i = S(e);
2242
+ function Ct(t, e = []) {
2243
+ const s = x(t), i = x(e);
2241
2244
  return this.context.memoryLimit.use(s.length + i.length), s.concat(i);
2242
2245
  }
2243
- function nr(t, e) {
2244
- return Mt.call(this, t, [e]);
2246
+ function cr(t, e) {
2247
+ return Ct.call(this, t, [e]);
2245
2248
  }
2246
- function or(t, e) {
2247
- const s = S(t);
2249
+ function ur(t, e) {
2250
+ const s = x(t);
2248
2251
  this.context.memoryLimit.use(s.length);
2249
2252
  const i = [...s];
2250
2253
  return i.unshift(e), i;
2251
2254
  }
2252
- function ar(t) {
2253
- const e = [...S(t)];
2255
+ function fr(t) {
2256
+ const e = [...x(t)];
2254
2257
  return e.pop(), e;
2255
2258
  }
2256
- function lr(t) {
2257
- const e = S(t);
2259
+ function dr(t) {
2260
+ const e = x(t);
2258
2261
  this.context.memoryLimit.use(e.length);
2259
2262
  const s = [...e];
2260
2263
  return s.shift(), s;
2261
2264
  }
2262
- function hr(t, e, s = 1) {
2263
- return t = d(t), z(t) ? [] : (x(t) || (t = u(t)), e = e < 0 ? t.length + e : e, this.context.memoryLimit.use(s), t.slice(e, e + s));
2265
+ function pr(t, e, s = 1) {
2266
+ return t = p(t), O(t) ? [] : (S(t) || (t = u(t)), e = e < 0 ? t.length + e : e, this.context.memoryLimit.use(s), t.slice(e, e + s));
2264
2267
  }
2265
- function* cr(t, e, s) {
2266
- const i = [];
2267
- t = S(t), this.context.memoryLimit.use(t.length);
2268
- const r = new M(u(e)).readScopeValue();
2269
- for (const o of t)
2270
- i.push(yield T(r, this.context.spawn(o)));
2271
- const n = this.context.opts.jekyllWhere ? (o) => K.is(s) ? D(o, s) : x(o) ? Bs(o, s) : D(o, s) : (o) => D(o, s);
2272
- return t.filter((o, a) => s === void 0 ? B(i[a], this.context) : n(i[a]));
2273
- }
2274
- function* ur(t, e, s) {
2275
- const i = [], r = new L(u(s), this.liquid), n = S(t);
2276
- this.context.memoryLimit.use(n.length);
2277
- for (const o of n) {
2278
- this.context.push({ [e]: o });
2279
- const a = yield r.value(this.context);
2280
- this.context.pop(), a && i.push(o);
2268
+ function $t(t) {
2269
+ return this.context.opts.jekyllWhere ? (e) => K.is(t) ? q(e, t) : S(e) ? Zs(e, t) : q(e, t) : t === void 0 ? (e) => B(e, this.context) : (e) => q(e, t);
2270
+ }
2271
+ function* Pt(t, e, s, i) {
2272
+ const r = [];
2273
+ e = x(e), this.context.memoryLimit.use(e.length);
2274
+ const n = new A(u(s)).readScopeValue();
2275
+ for (const a of e)
2276
+ r.push(yield T(n, this.context.spawn(a)));
2277
+ const o = $t.call(this, i);
2278
+ return e.filter((a, l) => o(r[l]) === t);
2279
+ }
2280
+ function* It(t, e, s, i) {
2281
+ const r = [], n = new L(u(i), this.liquid), o = x(e);
2282
+ this.context.memoryLimit.use(o.length);
2283
+ for (const a of o) {
2284
+ this.context.push({ [s]: a });
2285
+ const l = yield n.value(this.context);
2286
+ this.context.pop(), l === t && r.push(a);
2281
2287
  }
2282
- return i;
2288
+ return r;
2289
+ }
2290
+ function* gr(t, e, s) {
2291
+ return yield* Pt.call(this, !0, t, e, s);
2292
+ }
2293
+ function* mr(t, e, s) {
2294
+ return yield* Pt.call(this, !1, t, e, s);
2295
+ }
2296
+ function* yr(t, e, s) {
2297
+ return yield* It.call(this, !0, t, e, s);
2283
2298
  }
2284
- function* fr(t, e) {
2299
+ function* wr(t, e, s) {
2300
+ return yield* It.call(this, !1, t, e, s);
2301
+ }
2302
+ function* br(t, e) {
2285
2303
  const s = /* @__PURE__ */ new Map();
2286
2304
  t = ie(t);
2287
- const i = new M(u(e)).readScopeValue();
2305
+ const i = new A(u(e)).readScopeValue();
2288
2306
  this.context.memoryLimit.use(t.length);
2289
2307
  for (const r of t) {
2290
2308
  const n = yield T(i, this.context.spawn(r));
@@ -2292,7 +2310,7 @@ function* fr(t, e) {
2292
2310
  }
2293
2311
  return [...s.entries()].map(([r, n]) => ({ name: r, items: n }));
2294
2312
  }
2295
- function* dr(t, e, s) {
2313
+ function* Tr(t, e, s) {
2296
2314
  const i = /* @__PURE__ */ new Map(), r = new L(u(s), this.liquid);
2297
2315
  t = ie(t), this.context.memoryLimit.use(t.length);
2298
2316
  for (const n of t) {
@@ -2302,81 +2320,109 @@ function* dr(t, e, s) {
2302
2320
  }
2303
2321
  return [...i.entries()].map(([n, o]) => ({ name: n, items: o }));
2304
2322
  }
2305
- function* pr(t, e, s) {
2306
- const i = new M(u(e)).readScopeValue(), r = S(t);
2307
- for (const n of r) {
2308
- const o = yield T(i, this.context.spawn(n));
2309
- if (D(o, s))
2310
- return n;
2323
+ function* De(t, e, s) {
2324
+ const i = new A(u(e)).readScopeValue(), r = x(t), n = $t.call(this, s);
2325
+ for (let o = 0; o < r.length; o++) {
2326
+ const a = yield T(i, this.context.spawn(r[o]));
2327
+ if (n(a))
2328
+ return [o, r[o]];
2311
2329
  }
2312
2330
  }
2313
- function* gr(t, e, s) {
2314
- const i = new L(u(s), this.liquid), r = S(t);
2315
- for (const n of r) {
2316
- this.context.push({ [e]: n });
2331
+ function* Me(t, e, s) {
2332
+ const i = new L(u(s), this.liquid), r = x(t);
2333
+ for (let n = 0; n < r.length; n++) {
2334
+ this.context.push({ [e]: r[n] });
2317
2335
  const o = yield i.value(this.context);
2318
2336
  if (this.context.pop(), o)
2319
- return n;
2337
+ return [n, r[n]];
2320
2338
  }
2321
2339
  }
2322
- function mr(t) {
2323
- return t = S(t), this.context.memoryLimit.use(t.length), [...new Set(t)];
2340
+ function* kr(t, e, s) {
2341
+ return !!(yield* De.call(this, t, e, s));
2342
+ }
2343
+ function* vr(t, e, s) {
2344
+ return !!(yield* Me.call(this, t, e, s));
2345
+ }
2346
+ function* xr(t, e, s) {
2347
+ const i = yield* De.call(this, t, e, s);
2348
+ return i ? i[0] : void 0;
2349
+ }
2350
+ function* Sr(t, e, s) {
2351
+ const i = yield* Me.call(this, t, e, s);
2352
+ return i ? i[0] : void 0;
2353
+ }
2354
+ function* _r(t, e, s) {
2355
+ const i = yield* De.call(this, t, e, s);
2356
+ return i ? i[1] : void 0;
2324
2357
  }
2325
- function yr(t, e = 1) {
2326
- if (t = d(t), z(t))
2358
+ function* Fr(t, e, s) {
2359
+ const i = yield* Me.call(this, t, e, s);
2360
+ return i ? i[1] : void 0;
2361
+ }
2362
+ function Lr(t) {
2363
+ return t = x(t), this.context.memoryLimit.use(t.length), [...new Set(t)];
2364
+ }
2365
+ function Or(t, e = 1) {
2366
+ if (t = p(t), O(t))
2327
2367
  return [];
2328
- x(t) || (t = u(t)), this.context.memoryLimit.use(e);
2368
+ S(t) || (t = u(t)), this.context.memoryLimit.use(e);
2329
2369
  const s = [...t].sort(() => Math.random() - 0.5);
2330
2370
  return e === 1 ? s[0] : s.slice(0, e);
2331
2371
  }
2332
- var wr = /* @__PURE__ */ Object.freeze({
2372
+ var zr = /* @__PURE__ */ Object.freeze({
2333
2373
  __proto__: null,
2334
- join: Zi,
2335
- last: Qi,
2336
- first: Gi,
2337
- reverse: Xi,
2338
- sort: Ki,
2339
- sort_natural: er,
2340
- size: tr,
2341
- map: sr,
2342
- sum: ir,
2343
- compact: rr,
2344
- concat: Mt,
2345
- push: nr,
2346
- unshift: or,
2347
- pop: ar,
2348
- shift: lr,
2349
- slice: hr,
2350
- where: cr,
2351
- where_exp: ur,
2352
- group_by: fr,
2353
- group_by_exp: dr,
2354
- find: pr,
2355
- find_exp: gr,
2356
- uniq: mr,
2357
- sample: yr
2374
+ join: er,
2375
+ last: tr,
2376
+ first: sr,
2377
+ reverse: ir,
2378
+ sort: rr,
2379
+ sort_natural: nr,
2380
+ size: or,
2381
+ map: ar,
2382
+ sum: lr,
2383
+ compact: hr,
2384
+ concat: Ct,
2385
+ push: cr,
2386
+ unshift: ur,
2387
+ pop: fr,
2388
+ shift: dr,
2389
+ slice: pr,
2390
+ where: gr,
2391
+ reject: mr,
2392
+ where_exp: yr,
2393
+ reject_exp: wr,
2394
+ group_by: br,
2395
+ group_by_exp: Tr,
2396
+ has: kr,
2397
+ has_exp: vr,
2398
+ find_index: xr,
2399
+ find_index_exp: Sr,
2400
+ find: _r,
2401
+ find_exp: Fr,
2402
+ uniq: Lr,
2403
+ sample: Or
2358
2404
  });
2359
- function Ne(t, e, s) {
2405
+ function Ve(t, e, s) {
2360
2406
  var i, r, n;
2361
- const o = ((i = t == null ? void 0 : t.length) !== null && i !== void 0 ? i : 0) + ((r = e == null ? void 0 : e.length) !== null && r !== void 0 ? r : 0) + ((n = s == null ? void 0 : s.length) !== null && n !== void 0 ? n : 0);
2407
+ const o = ((i = t?.length) !== null && i !== void 0 ? i : 0) + ((r = e?.length) !== null && r !== void 0 ? r : 0) + ((n = s?.length) !== null && n !== void 0 ? n : 0);
2362
2408
  this.context.memoryLimit.use(o);
2363
- const a = qt(t, this.context.opts, s);
2364
- return a ? (e = d(e), e = z(e) ? this.context.opts.dateFormat : u(e), oe(a, e)) : t;
2409
+ const a = Ut(t, this.context.opts, s);
2410
+ return a ? (e = p(e), e = O(e) ? this.context.opts.dateFormat : u(e), oe(a, e)) : t;
2365
2411
  }
2366
- function br(t) {
2367
- return Ne.call(this, t, "%Y-%m-%dT%H:%M:%S%:z");
2412
+ function Rr(t) {
2413
+ return Ve.call(this, t, "%Y-%m-%dT%H:%M:%S%:z");
2368
2414
  }
2369
- function Tr(t) {
2370
- return Ne.call(this, t, "%a, %d %b %Y %H:%M:%S %z");
2415
+ function Er(t) {
2416
+ return Ve.call(this, t, "%a, %d %b %Y %H:%M:%S %z");
2371
2417
  }
2372
- function kr(t, e, s) {
2373
- return Vt.call(this, t, "%b", e, s);
2418
+ function Nr(t, e, s) {
2419
+ return Bt.call(this, t, "%b", e, s);
2374
2420
  }
2375
- function vr(t, e, s) {
2376
- return Vt.call(this, t, "%B", e, s);
2421
+ function Ar(t, e, s) {
2422
+ return Bt.call(this, t, "%B", e, s);
2377
2423
  }
2378
- function Vt(t, e, s, i) {
2379
- const r = qt(t, this.context.opts);
2424
+ function Bt(t, e, s, i) {
2425
+ const r = Ut(t, this.context.opts);
2380
2426
  if (!r)
2381
2427
  return t;
2382
2428
  if (s === "ordinal") {
@@ -2385,60 +2431,60 @@ function Vt(t, e, s, i) {
2385
2431
  }
2386
2432
  return oe(r, `%d ${e} %Y`);
2387
2433
  }
2388
- function qt(t, e, s) {
2434
+ function Ut(t, e, s) {
2389
2435
  let i;
2390
2436
  const r = s ?? e.timezoneOffset, n = e.locale;
2391
- return t = d(t), t === "now" || t === "today" ? i = new E(Date.now(), n, r) : de(t) ? i = new E(t * 1e3, n, r) : f(t) ? /^\d+$/.test(t) ? i = new E(+t * 1e3, n, r) : e.preserveTimezones && s === void 0 ? i = E.createDateFixedToTimezone(t, n) : i = new E(t, n, r) : i = new E(t, n, r), i.valid() ? i : void 0;
2437
+ return t = p(t), t === "now" || t === "today" ? i = new R(Date.now(), n, r) : de(t) ? i = new R(t * 1e3, n, r) : f(t) ? /^\d+$/.test(t) ? i = new R(+t * 1e3, n, r) : e.preserveTimezones && s === void 0 ? i = R.createDateFixedToTimezone(t, n) : i = new R(t, n, r) : i = new R(t, n, r), i.valid() ? i : void 0;
2392
2438
  }
2393
- var Sr = /* @__PURE__ */ Object.freeze({
2439
+ var Dr = /* @__PURE__ */ Object.freeze({
2394
2440
  __proto__: null,
2395
- date: Ne,
2396
- date_to_xmlschema: br,
2397
- date_to_rfc822: Tr,
2398
- date_to_string: kr,
2399
- date_to_long_string: vr
2441
+ date: Ve,
2442
+ date_to_xmlschema: Rr,
2443
+ date_to_rfc822: Er,
2444
+ date_to_string: Nr,
2445
+ date_to_long_string: Ar
2400
2446
  });
2401
- const Te = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, ht = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
2402
- function xr(t, e) {
2447
+ const ke = /[\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF]/gu, ft = /[^\u4E00-\u9FFF\uF900-\uFAFF\u3400-\u4DBF\u3040-\u309F\u30A0-\u30FF\uAC00-\uD7AF\s]+/gu;
2448
+ function Mr(t, e) {
2403
2449
  _(arguments.length === 2, "append expect 2 arguments");
2404
2450
  const s = u(t), i = u(e);
2405
2451
  return this.context.memoryLimit.use(s.length + i.length), s + i;
2406
2452
  }
2407
- function _r(t, e) {
2453
+ function Vr(t, e) {
2408
2454
  _(arguments.length === 2, "prepend expect 2 arguments");
2409
2455
  const s = u(t), i = u(e);
2410
2456
  return this.context.memoryLimit.use(s.length + i.length), i + s;
2411
2457
  }
2412
- function Fr(t, e) {
2458
+ function qr(t, e) {
2413
2459
  const s = u(t);
2414
- return this.context.memoryLimit.use(s.length), e ? (e = Fe(u(e)), s.replace(new RegExp(`^[${e}]+`, "g"), "")) : s.replace(/^\s+/, "");
2460
+ return this.context.memoryLimit.use(s.length), e ? (e = Oe(u(e)), s.replace(new RegExp(`^[${e}]+`, "g"), "")) : s.replace(/^\s+/, "");
2415
2461
  }
2416
- function Lr(t) {
2462
+ function jr(t) {
2417
2463
  const e = u(t);
2418
2464
  return this.context.memoryLimit.use(e.length), e.toLowerCase();
2419
2465
  }
2420
- function Or(t) {
2466
+ function Cr(t) {
2421
2467
  const e = u(t);
2422
2468
  return this.context.memoryLimit.use(e.length), u(e).toUpperCase();
2423
2469
  }
2424
- function zr(t, e) {
2470
+ function $r(t, e) {
2425
2471
  const s = u(t);
2426
2472
  return this.context.memoryLimit.use(s.length), s.split(u(e)).join("");
2427
2473
  }
2428
- function Rr(t, e) {
2474
+ function Pr(t, e) {
2429
2475
  const s = u(t);
2430
2476
  return this.context.memoryLimit.use(s.length), s.replace(u(e), "");
2431
2477
  }
2432
- function Er(t, e) {
2478
+ function Ir(t, e) {
2433
2479
  const s = u(t);
2434
2480
  this.context.memoryLimit.use(s.length);
2435
2481
  const i = u(e), r = s.lastIndexOf(i);
2436
2482
  return r === -1 ? s : s.substring(0, r) + s.substring(r + i.length);
2437
2483
  }
2438
- function Nr(t, e) {
2439
- return t = u(t), this.context.memoryLimit.use(t.length), e ? (e = Fe(u(e)), t.replace(new RegExp(`[${e}]+$`, "g"), "")) : t.replace(/\s+$/, "");
2484
+ function Br(t, e) {
2485
+ return t = u(t), this.context.memoryLimit.use(t.length), e ? (e = Oe(u(e)), t.replace(new RegExp(`[${e}]+$`, "g"), "")) : t.replace(/\s+$/, "");
2440
2486
  }
2441
- function Ar(t, e) {
2487
+ function Ur(t, e) {
2442
2488
  const s = u(t);
2443
2489
  this.context.memoryLimit.use(s.length);
2444
2490
  const i = s.split(u(e));
@@ -2446,26 +2492,26 @@ function Ar(t, e) {
2446
2492
  i.pop();
2447
2493
  return i;
2448
2494
  }
2449
- function Dr(t, e) {
2495
+ function Hr(t, e) {
2450
2496
  const s = u(t);
2451
- return this.context.memoryLimit.use(s.length), e ? (e = Fe(u(e)), s.replace(new RegExp(`^[${e}]+`, "g"), "").replace(new RegExp(`[${e}]+$`, "g"), "")) : s.trim();
2497
+ return this.context.memoryLimit.use(s.length), e ? (e = Oe(u(e)), s.replace(new RegExp(`^[${e}]+`, "g"), "").replace(new RegExp(`[${e}]+$`, "g"), "")) : s.trim();
2452
2498
  }
2453
- function Mr(t) {
2499
+ function Wr(t) {
2454
2500
  const e = u(t);
2455
2501
  return this.context.memoryLimit.use(e.length), e.replace(/\r?\n/gm, "");
2456
2502
  }
2457
- function Vr(t) {
2503
+ function Yr(t) {
2458
2504
  return t = u(t), this.context.memoryLimit.use(t.length), t.charAt(0).toUpperCase() + t.slice(1).toLowerCase();
2459
2505
  }
2460
- function qr(t, e, s) {
2506
+ function Jr(t, e, s) {
2461
2507
  const i = u(t);
2462
2508
  return this.context.memoryLimit.use(i.length), i.split(u(e)).join(s);
2463
2509
  }
2464
- function Cr(t, e, s) {
2510
+ function Zr(t, e, s) {
2465
2511
  const i = u(t);
2466
2512
  return this.context.memoryLimit.use(i.length), i.replace(u(e), s);
2467
2513
  }
2468
- function $r(t, e, s) {
2514
+ function Qr(t, e, s) {
2469
2515
  const i = u(t);
2470
2516
  this.context.memoryLimit.use(i.length);
2471
2517
  const r = u(e), n = i.lastIndexOf(r);
@@ -2474,11 +2520,11 @@ function $r(t, e, s) {
2474
2520
  const o = u(s);
2475
2521
  return i.substring(0, n) + o + i.substring(n + r.length);
2476
2522
  }
2477
- function jr(t, e = 50, s = "...") {
2523
+ function Gr(t, e = 50, s = "...") {
2478
2524
  const i = u(t);
2479
2525
  return this.context.memoryLimit.use(i.length), i.length <= e ? t : i.substring(0, e - s.length) + s;
2480
2526
  }
2481
- function Pr(t, e = 15, s = "...") {
2527
+ function Xr(t, e = 15, s = "...") {
2482
2528
  const i = u(t);
2483
2529
  this.context.memoryLimit.use(i.length);
2484
2530
  const r = i.split(/\s+/);
@@ -2486,24 +2532,24 @@ function Pr(t, e = 15, s = "...") {
2486
2532
  let n = r.slice(0, e).join(" ");
2487
2533
  return r.length >= e && (n += s), n;
2488
2534
  }
2489
- function Ir(t) {
2535
+ function Kr(t) {
2490
2536
  const e = u(t);
2491
2537
  return this.context.memoryLimit.use(e.length), e.replace(/\s+/g, " ");
2492
2538
  }
2493
- function Br(t, e) {
2539
+ function en(t, e) {
2494
2540
  const s = u(t);
2495
2541
  if (this.context.memoryLimit.use(s.length), t = s.trim(), !t)
2496
2542
  return 0;
2497
2543
  switch (e) {
2498
2544
  case "cjk":
2499
- return (t.match(Te) || []).length + (t.match(ht) || []).length;
2545
+ return (t.match(ke) || []).length + (t.match(ft) || []).length;
2500
2546
  case "auto":
2501
- return Te.test(t) ? t.match(Te).length + (t.match(ht) || []).length : t.split(/\s+/).length;
2547
+ return ke.test(t) ? t.match(ke).length + (t.match(ft) || []).length : t.split(/\s+/).length;
2502
2548
  default:
2503
2549
  return t.split(/\s+/).length;
2504
2550
  }
2505
2551
  }
2506
- function Ur(t, e = "and") {
2552
+ function tn(t, e = "and") {
2507
2553
  switch (this.context.memoryLimit.use(t.length), t.length) {
2508
2554
  case 0:
2509
2555
  return "";
@@ -2515,32 +2561,32 @@ function Ur(t, e = "and") {
2515
2561
  return `${t.slice(0, -1).join(", ")}, ${e} ${t[t.length - 1]}`;
2516
2562
  }
2517
2563
  }
2518
- var Hr = /* @__PURE__ */ Object.freeze({
2564
+ var sn = /* @__PURE__ */ Object.freeze({
2519
2565
  __proto__: null,
2520
- append: xr,
2521
- prepend: _r,
2522
- lstrip: Fr,
2523
- downcase: Lr,
2524
- upcase: Or,
2525
- remove: zr,
2526
- remove_first: Rr,
2527
- remove_last: Er,
2528
- rstrip: Nr,
2529
- split: Ar,
2530
- strip: Dr,
2531
- strip_newlines: Mr,
2532
- capitalize: Vr,
2533
- replace: qr,
2534
- replace_first: Cr,
2535
- replace_last: $r,
2536
- truncate: jr,
2537
- truncatewords: Pr,
2538
- normalize_whitespace: Ir,
2539
- number_of_words: Br,
2540
- array_to_sentence_string: Ur
2566
+ append: Mr,
2567
+ prepend: Vr,
2568
+ lstrip: qr,
2569
+ downcase: jr,
2570
+ upcase: Cr,
2571
+ remove: $r,
2572
+ remove_first: Pr,
2573
+ remove_last: Ir,
2574
+ rstrip: Br,
2575
+ split: Ur,
2576
+ strip: Hr,
2577
+ strip_newlines: Wr,
2578
+ capitalize: Yr,
2579
+ replace: Jr,
2580
+ replace_first: Zr,
2581
+ replace_last: Qr,
2582
+ truncate: Gr,
2583
+ truncatewords: Xr,
2584
+ normalize_whitespace: Kr,
2585
+ number_of_words: en,
2586
+ array_to_sentence_string: tn
2541
2587
  });
2542
- const Wr = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, hi), ji), Ji), wr), Sr), Hr), Ot);
2543
- class Yr extends b {
2588
+ const rn = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, gi), Hi), Ki), zr), Dr), sn), Nt);
2589
+ class nn extends b {
2544
2590
  constructor(e, s, i) {
2545
2591
  super(e, s, i), this.identifier = this.tokenizer.readIdentifier(), this.key = this.identifier.content, this.tokenizer.assert(this.key, "expected variable name"), this.tokenizer.skipBlank(), this.tokenizer.assert(this.tokenizer.peek() === "=", 'expected "="'), this.tokenizer.advance(), this.value = new L(this.tokenizer.readFilteredValue(), this.liquid);
2546
2592
  }
@@ -2554,20 +2600,20 @@ class Yr extends b {
2554
2600
  yield this.identifier;
2555
2601
  }
2556
2602
  }
2557
- const ct = ["offset", "limit", "reversed"];
2558
- class Jr extends b {
2603
+ const dt = ["offset", "limit", "reversed"];
2604
+ class on extends b {
2559
2605
  constructor(e, s, i, r) {
2560
2606
  super(e, s, i);
2561
2607
  const n = this.tokenizer.readIdentifier(), o = this.tokenizer.readIdentifier(), a = this.tokenizer.readValue();
2562
2608
  if (!n.size() || o.content !== "in" || !a)
2563
2609
  throw new Error(`illegal tag: ${e.getText()}`);
2564
2610
  this.variable = n.content, this.collection = a, this.hash = new ee(this.tokenizer, i.options.keyValueSeparator), this.templates = [], this.elseTemplates = [];
2565
- let h;
2566
- const c = r.parseStream(s).on("start", () => h = this.templates).on("tag:else", (l) => {
2567
- he(l.args), h = this.elseTemplates;
2568
- }).on("tag:endfor", (l) => {
2569
- he(l.args), c.stop();
2570
- }).on("template", (l) => h.push(l)).on("end", () => {
2611
+ let l;
2612
+ const c = r.parseStream(s).on("start", () => l = this.templates).on("tag:else", (h) => {
2613
+ he(h.args), l = this.elseTemplates;
2614
+ }).on("tag:endfor", (h) => {
2615
+ he(h.args), c.stop();
2616
+ }).on("template", (h) => l.push(h)).on("end", () => {
2571
2617
  throw new Error(`tag ${e.getText()} not closed`);
2572
2618
  });
2573
2619
  c.start();
@@ -2582,13 +2628,13 @@ class Jr extends b {
2582
2628
  const n = "continue-" + this.variable + "-" + this.collection.getText();
2583
2629
  e.push({ continue: e.getRegister(n) });
2584
2630
  const o = yield this.hash.render(e);
2585
- e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(o).filter((c) => ct.includes(c)) : ct.filter((c) => o[c] !== void 0)).reduce((c, l) => l === "offset" ? Qr(c, o.offset) : l === "limit" ? Gr(c, o.limit) : Zr(c), r), e.setRegister(n, (o.offset || 0) + r.length);
2586
- const h = { forloop: new Oe(r.length, this.collection.getText(), this.variable) };
2587
- e.push(h);
2631
+ e.pop(), r = (this.liquid.options.orderedFilterParameters ? Object.keys(o).filter((c) => dt.includes(c)) : dt.filter((c) => o[c] !== void 0)).reduce((c, h) => h === "offset" ? ln(c, o.offset) : h === "limit" ? hn(c, o.limit) : an(c), r), e.setRegister(n, (o.offset || 0) + r.length);
2632
+ const l = { forloop: new Re(r.length, this.collection.getText(), this.variable) };
2633
+ e.push(l);
2588
2634
  for (const c of r) {
2589
- if (h[this.variable] = c, e.continueCalled = e.breakCalled = !1, yield i.renderTemplates(this.templates, e, s), e.breakCalled)
2635
+ if (l[this.variable] = c, e.continueCalled = e.breakCalled = !1, yield i.renderTemplates(this.templates, e, s), e.breakCalled)
2590
2636
  break;
2591
- h.forloop.next();
2637
+ l.forloop.next();
2592
2638
  }
2593
2639
  e.continueCalled = e.breakCalled = !1, e.pop();
2594
2640
  }
@@ -2605,16 +2651,16 @@ class Jr extends b {
2605
2651
  return [this.variable, "forloop"];
2606
2652
  }
2607
2653
  }
2608
- function Zr(t) {
2654
+ function an(t) {
2609
2655
  return [...t].reverse();
2610
2656
  }
2611
- function Qr(t, e) {
2657
+ function ln(t, e) {
2612
2658
  return t.slice(e);
2613
2659
  }
2614
- function Gr(t, e) {
2660
+ function hn(t, e) {
2615
2661
  return t.slice(0, e);
2616
2662
  }
2617
- class Xr extends b {
2663
+ class cn extends b {
2618
2664
  constructor(e, s, i, r) {
2619
2665
  for (super(e, s, i), this.templates = [], this.identifier = this.readVariable(), this.variable = this.identifier.content; s.length; ) {
2620
2666
  const n = s.shift();
@@ -2641,37 +2687,37 @@ class Xr extends b {
2641
2687
  yield this.identifier;
2642
2688
  }
2643
2689
  }
2644
- class Kr extends b {
2690
+ class un extends b {
2645
2691
  constructor(e, s, i, r) {
2646
2692
  super(e, s, i), this.branches = [], this.elseTemplates = [], this.value = new L(this.tokenizer.readFilteredValue(), this.liquid), this.elseTemplates = [];
2647
2693
  let n = [], o = 0;
2648
- const a = r.parseStream(s).on("tag:when", (h) => {
2694
+ const a = r.parseStream(s).on("tag:when", (l) => {
2649
2695
  if (o > 0)
2650
2696
  return;
2651
2697
  n = [];
2652
2698
  const c = [];
2653
- for (; !h.tokenizer.end(); )
2654
- c.push(h.tokenizer.readValueOrThrow()), h.tokenizer.skipBlank(), h.tokenizer.peek() === "," ? h.tokenizer.readTo(",") : h.tokenizer.readTo("or");
2699
+ for (; !l.tokenizer.end(); )
2700
+ c.push(l.tokenizer.readValueOrThrow()), l.tokenizer.skipBlank(), l.tokenizer.peek() === "," ? l.tokenizer.readTo(",") : l.tokenizer.readTo("or");
2655
2701
  this.branches.push({
2656
2702
  values: c,
2657
2703
  templates: n
2658
2704
  });
2659
2705
  }).on("tag:else", () => {
2660
2706
  o++, n = this.elseTemplates;
2661
- }).on("tag:endcase", () => a.stop()).on("template", (h) => {
2662
- (n !== this.elseTemplates || o === 1) && n.push(h);
2707
+ }).on("tag:endcase", () => a.stop()).on("template", (l) => {
2708
+ (n !== this.elseTemplates || o === 1) && n.push(l);
2663
2709
  }).on("end", () => {
2664
2710
  throw new Error(`tag ${e.getText()} not closed`);
2665
2711
  });
2666
2712
  a.start();
2667
2713
  }
2668
2714
  *render(e, s) {
2669
- const i = this.liquid.renderer, r = d(yield this.value.value(e, e.opts.lenientIf));
2715
+ const i = this.liquid.renderer, r = p(yield this.value.value(e, e.opts.lenientIf));
2670
2716
  let n = !1;
2671
2717
  for (const o of this.branches)
2672
2718
  for (const a of o.values) {
2673
- const h = yield T(a, e, e.opts.lenientIf);
2674
- if (D(r, h)) {
2719
+ const l = yield T(a, e, e.opts.lenientIf);
2720
+ if (q(r, l)) {
2675
2721
  yield i.renderTemplates(o.templates, e, s), n = !0;
2676
2722
  break;
2677
2723
  }
@@ -2686,7 +2732,7 @@ class Kr extends b {
2686
2732
  return this.elseTemplates && e.push(...this.elseTemplates), e;
2687
2733
  }
2688
2734
  }
2689
- class en extends b {
2735
+ class fn extends b {
2690
2736
  constructor(e, s, i) {
2691
2737
  for (super(e, s, i); s.length; ) {
2692
2738
  const r = s.shift();
@@ -2698,19 +2744,19 @@ class en extends b {
2698
2744
  render() {
2699
2745
  }
2700
2746
  }
2701
- class tn extends b {
2747
+ class dn extends b {
2702
2748
  constructor(e, s, i, r) {
2703
2749
  super(e, s, i);
2704
2750
  const n = this.tokenizer;
2705
- for (this.file = Ae(n, this.liquid, r), this.currentFile = e.file; !n.end(); ) {
2751
+ for (this.file = qe(n, this.liquid, r), this.currentFile = e.file; !n.end(); ) {
2706
2752
  n.skipBlank();
2707
2753
  const o = n.p, a = n.readIdentifier();
2708
2754
  if ((a.content === "with" || a.content === "for") && (n.skipBlank(), n.peek() !== ":")) {
2709
- const h = n.readValue();
2710
- if (h) {
2711
- const c = n.p, l = n.readIdentifier();
2712
- let p;
2713
- l.content === "as" ? p = n.readIdentifier() : n.p = c, this[a.content] = { value: h, alias: p && p.content }, n.skipBlank(), n.peek() === "," && n.advance();
2755
+ const l = n.readValue();
2756
+ if (l) {
2757
+ const c = n.p, h = n.readIdentifier();
2758
+ let d;
2759
+ h.content === "as" ? d = n.readIdentifier() : n.p = c, this[a.content] = { value: l, alias: d && d.content }, n.skipBlank(), n.peek() === "," && n.advance();
2714
2760
  continue;
2715
2761
  }
2716
2762
  }
@@ -2720,24 +2766,24 @@ class tn extends b {
2720
2766
  this.hash = new ee(n, i.options.keyValueSeparator);
2721
2767
  }
2722
2768
  *render(e, s) {
2723
- const { liquid: i, hash: r } = this, n = yield De(this.file, e, i);
2769
+ const { liquid: i, hash: r } = this, n = yield je(this.file, e, i);
2724
2770
  _(n, () => `illegal file path "${n}"`);
2725
2771
  const o = e.spawn(), a = o.bottom();
2726
2772
  if (ce(a, yield r.render(e)), this.with) {
2727
- const { value: h, alias: c } = this.with;
2728
- a[c || n] = yield T(h, e);
2773
+ const { value: l, alias: c } = this.with;
2774
+ a[c || n] = yield T(l, e);
2729
2775
  }
2730
2776
  if (this.for) {
2731
- const { value: h, alias: c } = this.for, l = ie(yield T(h, e));
2732
- a.forloop = new Oe(l.length, h.getText(), c);
2733
- for (const p of l) {
2734
- a[c] = p;
2777
+ const { value: l, alias: c } = this.for, h = ie(yield T(l, e));
2778
+ a.forloop = new Re(h.length, l.getText(), c);
2779
+ for (const d of h) {
2780
+ a[c] = d;
2735
2781
  const g = yield i._parsePartialFile(n, o.sync, this.currentFile);
2736
2782
  yield i.renderer.renderTemplates(g, o, s), a.forloop.next();
2737
2783
  }
2738
2784
  } else {
2739
- const h = yield i._parsePartialFile(n, o.sync, this.currentFile);
2740
- yield i.renderer.renderTemplates(h, o, s);
2785
+ const l = yield i._parsePartialFile(n, o.sync, this.currentFile);
2786
+ yield i.renderer.renderTemplates(l, o, s);
2741
2787
  }
2742
2788
  }
2743
2789
  *children(e, s) {
@@ -2770,43 +2816,43 @@ class tn extends b {
2770
2816
  }
2771
2817
  }
2772
2818
  }
2773
- function Ae(t, e, s) {
2819
+ function qe(t, e, s) {
2774
2820
  if (e.options.dynamicPartials) {
2775
2821
  const n = t.readValue();
2776
2822
  if (t.assert(n, "illegal file path"), n.getText() === "none")
2777
2823
  return;
2778
- if (xe(n)) {
2779
- const o = s.parse(Cs(n));
2780
- return ut(o);
2824
+ if (Fe(n)) {
2825
+ const o = s.parse(Us(n));
2826
+ return pt(o);
2781
2827
  }
2782
2828
  return n;
2783
2829
  }
2784
- const i = [...t.readFileNameTemplate(e.options)], r = ut(s.parseTokens(i));
2830
+ const i = [...t.readFileNameTemplate(e.options)], r = pt(s.parseTokens(i));
2785
2831
  return r === "none" ? void 0 : r;
2786
2832
  }
2787
- function ut(t) {
2788
- return t.length === 1 && Ee(t[0].token) ? t[0].token.getContent() : t;
2833
+ function pt(t) {
2834
+ return t.length === 1 && Ae(t[0].token) ? t[0].token.getContent() : t;
2789
2835
  }
2790
- function* De(t, e, s) {
2836
+ function* je(t, e, s) {
2791
2837
  return typeof t == "string" ? t : Array.isArray(t) ? s.renderer.renderTemplates(t, e) : yield T(t, e);
2792
2838
  }
2793
- class sn extends b {
2839
+ class pn extends b {
2794
2840
  constructor(e, s, i, r) {
2795
2841
  super(e, s, i);
2796
2842
  const { tokenizer: n } = e;
2797
- this.file = Ae(n, this.liquid, r), this.currentFile = e.file;
2843
+ this.file = qe(n, this.liquid, r), this.currentFile = e.file;
2798
2844
  const o = n.p;
2799
2845
  n.readIdentifier().content === "with" ? (n.skipBlank(), n.peek() !== ":" ? this.withVar = n.readValue() : n.p = o) : n.p = o, this.hash = new ee(n, i.options.jekyllInclude || i.options.keyValueSeparator);
2800
2846
  }
2801
2847
  *render(e, s) {
2802
- const { liquid: i, hash: r, withVar: n } = this, { renderer: o } = i, a = yield De(this.file, e, i);
2848
+ const { liquid: i, hash: r, withVar: n } = this, { renderer: o } = i, a = yield je(this.file, e, i);
2803
2849
  _(a, () => `illegal file path "${a}"`);
2804
- const h = e.saveRegister("blocks", "blockMode");
2850
+ const l = e.saveRegister("blocks", "blockMode");
2805
2851
  e.setRegister("blocks", {}), e.setRegister("blockMode", U.OUTPUT);
2806
2852
  const c = yield r.render(e);
2807
2853
  n && (c[a] = yield T(n, e));
2808
- const l = yield i._parsePartialFile(a, e.sync, this.currentFile);
2809
- e.push(e.opts.jekyllInclude ? { include: c } : c), yield o.renderTemplates(l, e, s), e.pop(), e.restoreRegister(h);
2854
+ const h = yield i._parsePartialFile(a, e.sync, this.currentFile);
2855
+ e.push(e.opts.jekyllInclude ? { include: c } : c), yield o.renderTemplates(h, e, s), e.pop(), e.restoreRegister(l);
2810
2856
  }
2811
2857
  *children(e, s) {
2812
2858
  return e && f(this.file) ? yield this.liquid._parsePartialFile(this.file, s, this.currentFile) : [];
@@ -2821,7 +2867,7 @@ class sn extends b {
2821
2867
  yield* Object.values(this.hash.hash).filter(F), F(this.file) && (yield this.file), F(this.withVar) && (yield this.withVar);
2822
2868
  }
2823
2869
  }
2824
- class rn extends b {
2870
+ class gn extends b {
2825
2871
  constructor(e, s, i) {
2826
2872
  super(e, s, i), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
2827
2873
  }
@@ -2833,7 +2879,7 @@ class rn extends b {
2833
2879
  yield this.identifier;
2834
2880
  }
2835
2881
  }
2836
- class nn extends b {
2882
+ class mn extends b {
2837
2883
  constructor(e, s, i) {
2838
2884
  super(e, s, i), this.candidates = [];
2839
2885
  const r = this.tokenizer.readValue();
@@ -2854,7 +2900,7 @@ class nn extends b {
2854
2900
  yield* this.candidates, this.group && (yield this.group);
2855
2901
  }
2856
2902
  }
2857
- class on extends b {
2903
+ class yn extends b {
2858
2904
  constructor(e, s, i, r) {
2859
2905
  super(e, s, i), this.branches = [];
2860
2906
  let n = [];
@@ -2893,7 +2939,7 @@ class on extends b {
2893
2939
  return this.branches.map((e) => e.value);
2894
2940
  }
2895
2941
  }
2896
- class an extends b {
2942
+ class wn extends b {
2897
2943
  constructor(e, s, i) {
2898
2944
  super(e, s, i), this.identifier = this.tokenizer.readIdentifier(), this.variable = this.identifier.content;
2899
2945
  }
@@ -2907,9 +2953,9 @@ class an extends b {
2907
2953
  yield this.identifier;
2908
2954
  }
2909
2955
  }
2910
- class ln extends b {
2956
+ class bn extends b {
2911
2957
  constructor(e, s, i, r) {
2912
- super(e, s, i), this.file = Ae(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new ee(this.tokenizer, i.options.keyValueSeparator), this.templates = r.parseTokens(s);
2958
+ super(e, s, i), this.file = qe(this.tokenizer, this.liquid, r), this.currentFile = e.file, this.args = new ee(this.tokenizer, i.options.keyValueSeparator), this.templates = r.parseTokens(s);
2913
2959
  }
2914
2960
  *render(e, s) {
2915
2961
  const { liquid: i, args: r, file: n } = this, { renderer: o } = i;
@@ -2917,12 +2963,12 @@ class ln extends b {
2917
2963
  e.setRegister("blockMode", U.OUTPUT), yield o.renderTemplates(this.templates, e, s);
2918
2964
  return;
2919
2965
  }
2920
- const a = yield De(this.file, e, i);
2966
+ const a = yield je(this.file, e, i);
2921
2967
  _(a, () => `illegal file path "${a}"`);
2922
- const h = yield i._parseLayoutFile(a, e.sync, this.currentFile);
2968
+ const l = yield i._parseLayoutFile(a, e.sync, this.currentFile);
2923
2969
  e.setRegister("blockMode", U.STORE);
2924
- const c = yield o.renderTemplates(this.templates, e), l = e.getRegister("blocks");
2925
- l[""] === void 0 && (l[""] = (p, g) => g.write(c)), e.setRegister("blockMode", U.OUTPUT), e.push(yield r.render(e)), yield o.renderTemplates(h, e, s), e.pop();
2970
+ const c = yield o.renderTemplates(this.templates, e), h = e.getRegister("blocks");
2971
+ h[""] === void 0 && (h[""] = (d, g) => g.write(c)), e.setRegister("blockMode", U.OUTPUT), e.push(yield r.render(e)), yield o.renderTemplates(l, e, s), e.pop();
2926
2972
  }
2927
2973
  *children(e) {
2928
2974
  const s = this.templates.slice();
@@ -2938,7 +2984,7 @@ class ln extends b {
2938
2984
  return { name: this.file, isolated: !1, scope: Object.keys(this.args.hash) };
2939
2985
  }
2940
2986
  }
2941
- class hn extends b {
2987
+ class Tn extends b {
2942
2988
  constructor(e, s, i, r) {
2943
2989
  super(e, s, i), this.templates = [];
2944
2990
  const n = /\w+/.exec(e.args);
@@ -2953,13 +2999,13 @@ class hn extends b {
2953
2999
  }
2954
3000
  *render(e, s) {
2955
3001
  const i = this.getBlockRender(e);
2956
- e.getRegister("blockMode") === U.STORE ? e.getRegister("blocks")[this.block] = i : yield i(new Be(), s);
3002
+ e.getRegister("blockMode") === U.STORE ? e.getRegister("blocks")[this.block] = i : yield i(new We(), s);
2957
3003
  }
2958
3004
  getBlockRender(e) {
2959
3005
  const { liquid: s, templates: i } = this, r = e.getRegister("blocks")[this.block], n = function* (o, a) {
2960
3006
  e.push({ block: o }), yield s.renderer.renderTemplates(i, e, a), e.pop();
2961
3007
  };
2962
- return r ? (o, a) => r(new Be(() => n(o, a)), a) : n;
3008
+ return r ? (o, a) => r(new We((l) => n(o, l)), a) : n;
2963
3009
  }
2964
3010
  *children() {
2965
3011
  return this.templates;
@@ -2968,7 +3014,7 @@ class hn extends b {
2968
3014
  return ["block"];
2969
3015
  }
2970
3016
  }
2971
- class cn extends b {
3017
+ class kn extends b {
2972
3018
  constructor(e, s, i) {
2973
3019
  for (super(e, s, i), this.tokens = []; s.length; ) {
2974
3020
  const r = s.shift();
@@ -2982,7 +3028,7 @@ class cn extends b {
2982
3028
  return this.tokens.map((e) => e.getText()).join("");
2983
3029
  }
2984
3030
  }
2985
- class un extends Oe {
3031
+ class vn extends Re {
2986
3032
  constructor(e, s, i, r) {
2987
3033
  super(e, i, r), this.length = e, this.cols = s;
2988
3034
  }
@@ -3002,7 +3048,7 @@ class un extends Oe {
3002
3048
  return this.col() === this.cols;
3003
3049
  }
3004
3050
  }
3005
- class fn extends b {
3051
+ class xn extends b {
3006
3052
  constructor(e, s, i, r) {
3007
3053
  super(e, s, i);
3008
3054
  const n = this.tokenizer.readIdentifier();
@@ -3011,8 +3057,8 @@ class fn extends b {
3011
3057
  if (o.content !== "in" || !a)
3012
3058
  throw new Error(`illegal tag: ${e.getText()}`);
3013
3059
  this.variable = n.content, this.collection = a, this.args = new ee(this.tokenizer, i.options.keyValueSeparator), this.templates = [];
3014
- let h;
3015
- const c = r.parseStream(s).on("start", () => h = this.templates).on("tag:endtablerow", () => c.stop()).on("template", (l) => h.push(l)).on("end", () => {
3060
+ let l;
3061
+ const c = r.parseStream(s).on("start", () => l = this.templates).on("tag:endtablerow", () => c.stop()).on("template", (h) => l.push(h)).on("end", () => {
3016
3062
  throw new Error(`tag ${e.getText()} not closed`);
3017
3063
  });
3018
3064
  c.start();
@@ -3021,10 +3067,10 @@ class fn extends b {
3021
3067
  let i = ie(yield T(this.collection, e));
3022
3068
  const r = yield this.args.render(e), n = r.offset || 0, o = r.limit === void 0 ? i.length : r.limit;
3023
3069
  i = i.slice(n, n + o);
3024
- const a = r.cols || i.length, h = this.liquid.renderer, c = new un(i.length, a, this.collection.getText(), this.variable), l = { tablerowloop: c };
3025
- e.push(l);
3026
- for (let p = 0; p < i.length; p++, c.next())
3027
- l[this.variable] = i[p], c.col0() === 0 && (c.row() !== 1 && s.write("</tr>"), s.write(`<tr class="row${c.row()}">`)), s.write(`<td class="col${c.col()}">`), yield h.renderTemplates(this.templates, e, s), s.write("</td>");
3070
+ const a = r.cols || i.length, l = this.liquid.renderer, c = new vn(i.length, a, this.collection.getText(), this.variable), h = { tablerowloop: c };
3071
+ e.push(h);
3072
+ for (let d = 0; d < i.length; d++, c.next())
3073
+ h[this.variable] = i[d], c.col0() === 0 && (c.row() !== 1 && s.write("</tr>"), s.write(`<tr class="row${c.row()}">`)), s.write(`<td class="col${c.col()}">`), yield l.renderTemplates(this.templates, e, s), s.write("</td>");
3028
3074
  i.length && s.write("</tr>"), e.pop();
3029
3075
  }
3030
3076
  *children() {
@@ -3039,13 +3085,13 @@ class fn extends b {
3039
3085
  return [this.variable, "tablerowloop"];
3040
3086
  }
3041
3087
  }
3042
- class dn extends b {
3088
+ class Sn extends b {
3043
3089
  constructor(e, s, i, r) {
3044
3090
  super(e, s, i), this.branches = [], this.elseTemplates = [];
3045
3091
  let n = [], o = 0;
3046
3092
  r.parseStream(s).on("start", () => this.branches.push({
3047
3093
  value: new L(e.tokenizer.readFilteredValue(), this.liquid),
3048
- test: ge,
3094
+ test: me,
3049
3095
  templates: n = []
3050
3096
  })).on("tag:elsif", (a) => {
3051
3097
  if (o > 0) {
@@ -3086,17 +3132,17 @@ class dn extends b {
3086
3132
  return this.branches.map((e) => e.value);
3087
3133
  }
3088
3134
  }
3089
- class pn extends b {
3135
+ class _n extends b {
3090
3136
  render(e, s) {
3091
3137
  e.breakCalled = !0;
3092
3138
  }
3093
3139
  }
3094
- class gn extends b {
3140
+ class Fn extends b {
3095
3141
  render(e, s) {
3096
3142
  e.continueCalled = !0;
3097
3143
  }
3098
3144
  }
3099
- class mn extends b {
3145
+ class Ln extends b {
3100
3146
  constructor(e, s, i) {
3101
3147
  super(e, s, i), this.tokenizer.skipBlank(), this.tokenizer.end() || (this.value = new L(this.tokenizer.readFilteredValue(), this.liquid));
3102
3148
  }
@@ -3110,7 +3156,7 @@ class mn extends b {
3110
3156
  this.value && (yield this.value);
3111
3157
  }
3112
3158
  }
3113
- class yn extends b {
3159
+ class On extends b {
3114
3160
  constructor(e, s, i, r) {
3115
3161
  super(e, s, i);
3116
3162
  const n = this.tokenizer.readLiquidTagTokens(this.liquid.options);
@@ -3123,7 +3169,7 @@ class yn extends b {
3123
3169
  return this.templates;
3124
3170
  }
3125
3171
  }
3126
- class wn extends b {
3172
+ class zn extends b {
3127
3173
  constructor(e, s, i) {
3128
3174
  if (super(e, s, i), e.args.search(/\n\s*[^#\s]/g) !== -1)
3129
3175
  throw new Error("every line of an inline comment must start with a '#' character");
@@ -3131,32 +3177,32 @@ class wn extends b {
3131
3177
  render() {
3132
3178
  }
3133
3179
  }
3134
- const bn = {
3135
- assign: Yr,
3136
- for: Jr,
3137
- capture: Xr,
3138
- case: Kr,
3139
- comment: en,
3140
- include: sn,
3141
- render: tn,
3142
- decrement: rn,
3143
- increment: an,
3144
- cycle: nn,
3145
- if: on,
3146
- layout: ln,
3147
- block: hn,
3148
- raw: cn,
3149
- tablerow: fn,
3150
- unless: dn,
3151
- break: pn,
3152
- continue: gn,
3153
- echo: mn,
3154
- liquid: yn,
3155
- "#": wn
3180
+ const Rn = {
3181
+ assign: nn,
3182
+ for: on,
3183
+ capture: cn,
3184
+ case: un,
3185
+ comment: fn,
3186
+ include: pn,
3187
+ render: dn,
3188
+ decrement: gn,
3189
+ increment: wn,
3190
+ cycle: mn,
3191
+ if: yn,
3192
+ layout: bn,
3193
+ block: Tn,
3194
+ raw: kn,
3195
+ tablerow: xn,
3196
+ unless: Sn,
3197
+ break: _n,
3198
+ continue: Fn,
3199
+ echo: Ln,
3200
+ liquid: On,
3201
+ "#": zn
3156
3202
  };
3157
- class Ct {
3203
+ class Ht {
3158
3204
  constructor(e = {}) {
3159
- this.renderer = new Ms(), this.filters = {}, this.tags = {}, this.options = ui(e), this.parser = new P(this), $e(bn, (s, i) => this.registerTag(i, s)), $e(Wr, (s, i) => this.registerFilter(i, s));
3205
+ this.renderer = new Ps(), this.filters = {}, this.tags = {}, this.options = yi(e), this.parser = new P(this), Ie(Rn, (s, i) => this.registerTag(i, s)), Ie(rn, (s, i) => this.registerFilter(i, s));
3160
3206
  }
3161
3207
  parse(e, s) {
3162
3208
  return new P(this).parse(e, s);
@@ -3167,11 +3213,11 @@ class Ct {
3167
3213
  }
3168
3214
  render(e, s, i) {
3169
3215
  return k(this, void 0, void 0, function* () {
3170
- return V(this._render(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
3216
+ return M(this._render(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
3171
3217
  });
3172
3218
  }
3173
3219
  renderSync(e, s, i) {
3174
- return q(this._render(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
3220
+ return V(this._render(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
3175
3221
  }
3176
3222
  renderToNodeStream(e, s, i = {}) {
3177
3223
  const r = new I(s, this.options, i);
@@ -3183,11 +3229,11 @@ class Ct {
3183
3229
  }
3184
3230
  parseAndRender(e, s, i) {
3185
3231
  return k(this, void 0, void 0, function* () {
3186
- return V(this._parseAndRender(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
3232
+ return M(this._parseAndRender(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
3187
3233
  });
3188
3234
  }
3189
3235
  parseAndRenderSync(e, s, i) {
3190
- return q(this._parseAndRender(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
3236
+ return V(this._parseAndRender(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
3191
3237
  }
3192
3238
  _parsePartialFile(e, s, i) {
3193
3239
  return new P(this).parseFile(e, s, W.Partials, i);
@@ -3200,11 +3246,11 @@ class Ct {
3200
3246
  }
3201
3247
  parseFile(e, s) {
3202
3248
  return k(this, void 0, void 0, function* () {
3203
- return V(new P(this).parseFile(e, !1, s));
3249
+ return M(new P(this).parseFile(e, !1, s));
3204
3250
  });
3205
3251
  }
3206
3252
  parseFileSync(e, s) {
3207
- return q(new P(this).parseFile(e, !0, s));
3253
+ return V(new P(this).parseFile(e, !0, s));
3208
3254
  }
3209
3255
  *_renderFile(e, s, i) {
3210
3256
  const r = yield this._parseFile(e, i.sync, i.lookupType);
@@ -3212,11 +3258,11 @@ class Ct {
3212
3258
  }
3213
3259
  renderFile(e, s, i) {
3214
3260
  return k(this, void 0, void 0, function* () {
3215
- return V(this._renderFile(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
3261
+ return M(this._renderFile(e, s, Object.assign(Object.assign({}, i), { sync: !1 })));
3216
3262
  });
3217
3263
  }
3218
3264
  renderFileSync(e, s, i) {
3219
- return q(this._renderFile(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
3265
+ return V(this._renderFile(e, s, Object.assign(Object.assign({}, i), { sync: !0 })));
3220
3266
  }
3221
3267
  renderFileToNodeStream(e, s, i) {
3222
3268
  return k(this, void 0, void 0, function* () {
@@ -3230,20 +3276,20 @@ class Ct {
3230
3276
  }
3231
3277
  evalValue(e, s) {
3232
3278
  return k(this, void 0, void 0, function* () {
3233
- return V(this._evalValue(e, s));
3279
+ return M(this._evalValue(e, s));
3234
3280
  });
3235
3281
  }
3236
3282
  evalValueSync(e, s) {
3237
- return q(this._evalValue(e, s));
3283
+ return V(this._evalValue(e, s));
3238
3284
  }
3239
3285
  registerFilter(e, s) {
3240
3286
  this.filters[e] = s;
3241
3287
  }
3242
3288
  registerTag(e, s) {
3243
- this.tags[e] = v(s) ? s : yi(s);
3289
+ this.tags[e] = v(s) ? s : xi(s);
3244
3290
  }
3245
3291
  plugin(e) {
3246
- return e.call(this, Ct);
3292
+ return e.call(this, Ht);
3247
3293
  }
3248
3294
  express() {
3249
3295
  const e = this;
@@ -3259,93 +3305,93 @@ class Ct {
3259
3305
  }
3260
3306
  analyze(e, s = {}) {
3261
3307
  return k(this, void 0, void 0, function* () {
3262
- return C(e, s);
3308
+ return j(e, s);
3263
3309
  });
3264
3310
  }
3265
3311
  analyzeSync(e, s = {}) {
3266
- return $(e, s);
3312
+ return C(e, s);
3267
3313
  }
3268
3314
  parseAndAnalyze(e, s, i = {}) {
3269
3315
  return k(this, void 0, void 0, function* () {
3270
- return C(this.parse(e, s), i);
3316
+ return j(this.parse(e, s), i);
3271
3317
  });
3272
3318
  }
3273
3319
  parseAndAnalyzeSync(e, s, i = {}) {
3274
- return $(this.parse(e, s), i);
3320
+ return C(this.parse(e, s), i);
3275
3321
  }
3276
3322
  /** Return an array of all variables without their properties. */
3277
3323
  variables(e, s = {}) {
3278
3324
  return k(this, void 0, void 0, function* () {
3279
- const i = yield C(f(e) ? this.parse(e) : e, s);
3325
+ const i = yield j(f(e) ? this.parse(e) : e, s);
3280
3326
  return Object.keys(i.variables);
3281
3327
  });
3282
3328
  }
3283
3329
  /** Return an array of all variables without their properties. */
3284
3330
  variablesSync(e, s = {}) {
3285
- const i = $(f(e) ? this.parse(e) : e, s);
3331
+ const i = C(f(e) ? this.parse(e) : e, s);
3286
3332
  return Object.keys(i.variables);
3287
3333
  }
3288
3334
  /** Return an array of all variables including their properties/paths. */
3289
3335
  fullVariables(e, s = {}) {
3290
3336
  return k(this, void 0, void 0, function* () {
3291
- const i = yield C(f(e) ? this.parse(e) : e, s);
3337
+ const i = yield j(f(e) ? this.parse(e) : e, s);
3292
3338
  return Array.from(new Set(Object.values(i.variables).flatMap((r) => r.map((n) => String(n)))));
3293
3339
  });
3294
3340
  }
3295
3341
  /** Return an array of all variables including their properties/paths. */
3296
3342
  fullVariablesSync(e, s = {}) {
3297
- const i = $(f(e) ? this.parse(e) : e, s);
3343
+ const i = C(f(e) ? this.parse(e) : e, s);
3298
3344
  return Array.from(new Set(Object.values(i.variables).flatMap((r) => r.map((n) => String(n)))));
3299
3345
  }
3300
3346
  /** Return an array of all variables, each as an array of properties/segments. */
3301
3347
  variableSegments(e, s = {}) {
3302
3348
  return k(this, void 0, void 0, function* () {
3303
- const i = yield C(f(e) ? this.parse(e) : e, s);
3349
+ const i = yield j(f(e) ? this.parse(e) : e, s);
3304
3350
  return Array.from(re(Object.values(i.variables).flatMap((r) => r.map((n) => n.toArray()))));
3305
3351
  });
3306
3352
  }
3307
3353
  /** Return an array of all variables, each as an array of properties/segments. */
3308
3354
  variableSegmentsSync(e, s = {}) {
3309
- const i = $(f(e) ? this.parse(e) : e, s);
3355
+ const i = C(f(e) ? this.parse(e) : e, s);
3310
3356
  return Array.from(re(Object.values(i.variables).flatMap((r) => r.map((n) => n.toArray()))));
3311
3357
  }
3312
3358
  /** Return an array of all expected context variables without their properties. */
3313
3359
  globalVariables(e, s = {}) {
3314
3360
  return k(this, void 0, void 0, function* () {
3315
- const i = yield C(f(e) ? this.parse(e) : e, s);
3361
+ const i = yield j(f(e) ? this.parse(e) : e, s);
3316
3362
  return Object.keys(i.globals);
3317
3363
  });
3318
3364
  }
3319
3365
  /** Return an array of all expected context variables without their properties. */
3320
3366
  globalVariablesSync(e, s = {}) {
3321
- const i = $(f(e) ? this.parse(e) : e, s);
3367
+ const i = C(f(e) ? this.parse(e) : e, s);
3322
3368
  return Object.keys(i.globals);
3323
3369
  }
3324
3370
  /** Return an array of all expected context variables including their properties/paths. */
3325
3371
  globalFullVariables(e, s = {}) {
3326
3372
  return k(this, void 0, void 0, function* () {
3327
- const i = yield C(f(e) ? this.parse(e) : e, s);
3373
+ const i = yield j(f(e) ? this.parse(e) : e, s);
3328
3374
  return Array.from(new Set(Object.values(i.globals).flatMap((r) => r.map((n) => String(n)))));
3329
3375
  });
3330
3376
  }
3331
3377
  /** Return an array of all expected context variables including their properties/paths. */
3332
3378
  globalFullVariablesSync(e, s = {}) {
3333
- const i = $(f(e) ? this.parse(e) : e, s);
3379
+ const i = C(f(e) ? this.parse(e) : e, s);
3334
3380
  return Array.from(new Set(Object.values(i.globals).flatMap((r) => r.map((n) => String(n)))));
3335
3381
  }
3336
3382
  /** Return an array of all expected context variables, each as an array of properties/segments. */
3337
3383
  globalVariableSegments(e, s = {}) {
3338
3384
  return k(this, void 0, void 0, function* () {
3339
- const i = yield C(f(e) ? this.parse(e) : e, s);
3385
+ const i = yield j(f(e) ? this.parse(e) : e, s);
3340
3386
  return Array.from(re(Object.values(i.globals).flatMap((r) => r.map((n) => n.toArray()))));
3341
3387
  });
3342
3388
  }
3343
3389
  /** Return an array of all expected context variables, each as an array of properties/segments. */
3344
3390
  globalVariableSegmentsSync(e, s = {}) {
3345
- const i = $(f(e) ? this.parse(e) : e, s);
3391
+ const i = C(f(e) ? this.parse(e) : e, s);
3346
3392
  return Array.from(re(Object.values(i.globals).flatMap((r) => r.map((n) => n.toArray()))));
3347
3393
  }
3348
3394
  }
3349
3395
  export {
3350
- Ct as L
3396
+ Ht as L
3351
3397
  };