@builder.io/sdk-react-nextjs 0.12.5 → 0.12.7

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 (33) hide show
  1. package/lib/{node/USE_CLIENT_BUNDLE-4ba4594d.js → browser/USE_CLIENT_BUNDLE-456ca2b5.js} +46 -45
  2. package/lib/browser/{USE_CLIENT_BUNDLE-70be4cc5.cjs → USE_CLIENT_BUNDLE-9d2b983d.cjs} +2 -2
  3. package/lib/{edge/USE_SERVER_BUNDLE-36de460d.js → browser/USE_SERVER_BUNDLE-e0f1c15b.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-50c2f18b.cjs → browser/USE_SERVER_BUNDLE-ee4a5d19.cjs} +1 -1
  5. package/lib/browser/{bundle-f9f52242.js → bundle-56e0b400.js} +499 -439
  6. package/lib/browser/{bundle-bd9886c9.cjs → bundle-a408994f.cjs} +21 -21
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +6 -6
  9. package/lib/{browser/USE_CLIENT_BUNDLE-7492ecd8.js → edge/USE_CLIENT_BUNDLE-789e694f.js} +46 -45
  10. package/lib/{node/USE_CLIENT_BUNDLE-2f43c320.cjs → edge/USE_CLIENT_BUNDLE-a6a0becc.cjs} +2 -2
  11. package/lib/{node/USE_SERVER_BUNDLE-473d50ad.cjs → edge/USE_SERVER_BUNDLE-dbf92938.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-2534ef71.js → edge/USE_SERVER_BUNDLE-dffaa191.js} +1 -1
  13. package/lib/edge/{bundle-765860e3.js → bundle-4bf88f38.js} +812 -752
  14. package/lib/edge/{bundle-71cfdd3e.cjs → bundle-97ad81d1.cjs} +32 -32
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +6 -6
  17. package/lib/{edge/USE_CLIENT_BUNDLE-cb840c0f.js → node/USE_CLIENT_BUNDLE-499aeaa2.js} +46 -45
  18. package/lib/{edge/USE_CLIENT_BUNDLE-1148158d.cjs → node/USE_CLIENT_BUNDLE-b2f9be29.cjs} +2 -2
  19. package/lib/{browser/USE_SERVER_BUNDLE-875d4629.cjs → node/USE_SERVER_BUNDLE-b3ad9a89.cjs} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-fe386ed3.js → node/USE_SERVER_BUNDLE-e3da6caa.js} +1 -1
  21. package/lib/node/{bundle-1c54df65.cjs → bundle-97b4832a.cjs} +4 -4
  22. package/lib/node/{bundle-305bb463.js → bundle-d3f89e99.js} +228 -168
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +6 -6
  25. package/package.json +1 -1
  26. package/types/cjs/components/block/animator.d.ts +5 -0
  27. package/types/cjs/constants/sdk-version.d.ts +1 -1
  28. package/types/cjs/functions/evaluate/browser-runtime/browser.d.ts +5 -1
  29. package/types/cjs/types/builder-block.d.ts +18 -1
  30. package/types/esm/components/block/animator.d.ts +5 -0
  31. package/types/esm/constants/sdk-version.d.ts +1 -1
  32. package/types/esm/functions/evaluate/browser-runtime/browser.d.ts +5 -1
  33. package/types/esm/types/builder-block.d.ts +18 -1
@@ -1,9 +1,9 @@
1
- import { LRUCache as Zr } from "lru-cache";
1
+ import { LRUCache as eo } from "lru-cache";
2
2
  import { jsx as C, Fragment as L, jsxs as xe } from "react/jsx-runtime";
3
- import { I as Qr, B as eo, a as to, D as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-cb840c0f.js";
3
+ import { I as to, B as no, a as ro, D as oo, b as io, C as ao, E as so, F as lo, c as co, d as uo, S as fo, V as po, e as ho } from "./USE_CLIENT_BUNDLE-789e694f.js";
4
4
  import "react";
5
5
  import "next/navigation";
6
- const po = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Na = (e) => typeof e == "string" && po.has(e.toLowerCase()), he = "rsc", Xt = () => {
6
+ const mo = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Da = (e) => typeof e == "string" && mo.has(e.toLowerCase()), he = "rsc", Xt = () => {
7
7
  switch (he) {
8
8
  case "react":
9
9
  case "reactNative":
@@ -16,7 +16,7 @@ const po = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
16
16
  return "class";
17
17
  }
18
18
  };
19
- function ho(e) {
19
+ function go(e) {
20
20
  var t;
21
21
  return {
22
22
  ...(t = e.component) == null ? void 0 : t.options,
@@ -36,20 +36,20 @@ const at = "[Builder.io]: ", z = {
36
36
  function G() {
37
37
  return typeof window < "u" && typeof document < "u";
38
38
  }
39
- function mo() {
39
+ function yo() {
40
40
  return G() && window.self !== window.top;
41
41
  }
42
42
  function Yt() {
43
- return mo() && window.location.search.indexOf("builder.frameEditing=") !== -1;
43
+ return yo() && window.location.search.indexOf("builder.frameEditing=") !== -1;
44
44
  }
45
- const go = () => {
45
+ const vo = () => {
46
46
  if (G()) {
47
47
  const e = new URL(location.href);
48
48
  return e.pathname === "" && (e.pathname = "/"), e;
49
49
  } else
50
50
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
51
- }, yo = () => typeof navigator == "object" && navigator.userAgent || "", sr = () => {
52
- const e = yo(), t = {
51
+ }, bo = () => typeof navigator == "object" && navigator.userAgent || "", lr = () => {
52
+ const e = bo(), t = {
53
53
  Android() {
54
54
  return e.match(/Android/i);
55
55
  },
@@ -68,13 +68,13 @@ const go = () => {
68
68
  any() {
69
69
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || he === "reactNative";
70
70
  }
71
- }, n = e.match(/Tablet|iPad/i), r = go();
71
+ }, n = e.match(/Tablet|iPad/i), r = vo();
72
72
  return {
73
73
  urlPath: r == null ? void 0 : r.pathname,
74
74
  host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
75
75
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
76
76
  };
77
- }, lr = ({
77
+ }, cr = ({
78
78
  builder: e,
79
79
  context: t,
80
80
  event: n,
@@ -86,123 +86,140 @@ const go = () => {
86
86
  builder: e,
87
87
  context: t,
88
88
  event: n
89
- }), vo = () => ({
89
+ }), So = () => ({
90
90
  isEditing: Yt(),
91
91
  isBrowser: G(),
92
92
  isServer: !G(),
93
- getUserAttributes: () => sr()
94
- }), bo = (e, {
93
+ getUserAttributes: () => lr()
94
+ }), wo = (e, {
95
95
  isExpression: t = !0
96
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, So = ({
96
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, xo = ({
97
97
  code: e,
98
98
  builder: t,
99
99
  context: n,
100
100
  event: r,
101
101
  localState: o,
102
- rootSetState: a,
102
+ rootSetState: i,
103
103
  rootState: s
104
104
  }) => {
105
- const u = lr({
105
+ const u = cr({
106
106
  builder: t,
107
107
  context: n,
108
108
  event: r,
109
- state: wo(s, o, a)
109
+ state: ur({
110
+ rootState: s,
111
+ localState: o,
112
+ rootSetState: i
113
+ })
110
114
  });
111
115
  return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
112
116
  };
113
- function wo(e, t, n) {
114
- if (e === t)
115
- throw new Error("rootState === localState");
117
+ function ur({
118
+ rootState: e,
119
+ localState: t,
120
+ rootSetState: n
121
+ }) {
116
122
  return new Proxy(e, {
117
- get: (r, o) => t && o in t ? t[o] : e[o],
118
- set: (r, o, a) => {
123
+ get: (r, o) => {
124
+ if (t && o in t)
125
+ return t[o];
126
+ const i = r[o];
127
+ return typeof i == "object" ? ur({
128
+ rootState: i,
129
+ localState: void 0,
130
+ rootSetState: n ? (s) => {
131
+ r[o] = s, n(r);
132
+ } : void 0
133
+ }) : i;
134
+ },
135
+ set: (r, o, i) => {
119
136
  if (t && o in t)
120
137
  throw new Error("Writing to local state is not allowed as it is read-only.");
121
- return e[o] = a, n == null || n(e), !0;
138
+ return r[o] = i, n == null || n(r), !0;
122
139
  }
123
140
  });
124
141
  }
125
- const cr = (e, t, n) => {
142
+ const fr = (e, t, n) => {
126
143
  if (Object(e) !== e)
127
144
  return e;
128
145
  const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
129
- return r.slice(0, -1).reduce((o, a, s) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
146
+ return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
130
147
  };
131
- var N, xo = function(e) {
132
- function t(i) {
133
- return 48 > i ? i === 36 : 58 > i ? !0 : 65 > i ? !1 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && zr.test(String.fromCharCode(i));
148
+ var N, ko = function(e) {
149
+ function t(a) {
150
+ return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Zr.test(String.fromCharCode(a));
134
151
  }
135
- function n(i) {
136
- return 65 > i ? i === 36 : 91 > i ? !0 : 97 > i ? i === 95 : 123 > i ? !0 : 170 <= i && Ln.test(String.fromCharCode(i));
152
+ function n(a) {
153
+ return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Ln.test(String.fromCharCode(a));
137
154
  }
138
- function r(i, l) {
155
+ function r(a, l) {
139
156
  for (var c = g, p = 1, T = 0; ; ) {
140
157
  it.lastIndex = T;
141
158
  var _ = it.exec(c);
142
- if (_ && _.index < i)
159
+ if (_ && _.index < a)
143
160
  ++p, T = _.index + _[0].length;
144
161
  else
145
162
  break;
146
163
  }
147
164
  throw c = {
148
165
  line: p,
149
- ab: i - T
150
- }, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = i, l.X = c, l.o = f, l;
166
+ ab: a - T
167
+ }, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = f, l;
151
168
  }
152
- function o(i) {
153
- i = i.split(" ");
154
- for (var l = /* @__PURE__ */ Object.create(null), c = 0; c < i.length; c++)
155
- l[i[c]] = !0;
169
+ function o(a) {
170
+ a = a.split(" ");
171
+ for (var l = /* @__PURE__ */ Object.create(null), c = 0; c < a.length; c++)
172
+ l[a[c]] = !0;
156
173
  return function(p) {
157
174
  return l[p] || !1;
158
175
  };
159
176
  }
160
- function a() {
177
+ function i() {
161
178
  this.line = Se, this.ab = f - se;
162
179
  }
163
- function s(i, l) {
164
- Ce = f, O.C && (Et = new a()), I = i, d(), Q = l, Ue = i.m;
180
+ function s(a, l) {
181
+ Ce = f, O.C && (Et = new i()), I = a, d(), Q = l, Me = a.m;
165
182
  }
166
183
  function u() {
167
- for (var i = f, l = O.va && O.C && new a(), c = g.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
184
+ for (var a = f, l = O.va && O.C && new i(), c = g.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
168
185
  ++f, c = g.charCodeAt(f);
169
- O.va && O.va(!1, g.slice(i + 2, f), i, f, l, O.C && new a());
186
+ O.va && O.va(!1, g.slice(a + 2, f), a, f, l, O.C && new i());
170
187
  }
171
188
  function d() {
172
189
  for (; f < ke; ) {
173
- var i = g.charCodeAt(f);
174
- if (i === 32)
190
+ var a = g.charCodeAt(f);
191
+ if (a === 32)
175
192
  ++f;
176
- else if (i === 13)
177
- ++f, i = g.charCodeAt(f), i === 10 && ++f, O.C && (++Se, se = f);
178
- else if (i === 10 || i === 8232 || i === 8233)
193
+ else if (a === 13)
194
+ ++f, a = g.charCodeAt(f), a === 10 && ++f, O.C && (++Se, se = f);
195
+ else if (a === 10 || a === 8232 || a === 8233)
179
196
  ++f, O.C && (++Se, se = f);
180
- else if (8 < i && 14 > i)
197
+ else if (8 < a && 14 > a)
181
198
  ++f;
182
- else if (i === 47)
183
- if (i = g.charCodeAt(f + 1), i === 42) {
184
- i = void 0;
185
- var l = O.va && O.C && new a(), c = f, p = g.indexOf("*/", f += 2);
199
+ else if (a === 47)
200
+ if (a = g.charCodeAt(f + 1), a === 42) {
201
+ a = void 0;
202
+ var l = O.va && O.C && new i(), c = f, p = g.indexOf("*/", f += 2);
186
203
  if (p === -1 && r(f - 2, "Unterminated comment"), f = p + 2, O.C)
187
- for (it.lastIndex = c; (i = it.exec(g)) && i.index < f; )
188
- ++Se, se = i.index + i[0].length;
189
- O.va && O.va(!0, g.slice(c + 2, p), c, f, l, O.C && new a());
190
- } else if (i === 47)
204
+ for (it.lastIndex = c; (a = it.exec(g)) && a.index < f; )
205
+ ++Se, se = a.index + a[0].length;
206
+ O.va && O.va(!0, g.slice(c + 2, p), c, f, l, O.C && new i());
207
+ } else if (a === 47)
191
208
  u();
192
209
  else
193
210
  break;
194
- else if (i === 160)
211
+ else if (a === 160)
195
212
  ++f;
196
- else if (5760 <= i && Jr.test(String.fromCharCode(i)))
213
+ else if (5760 <= a && qr.test(String.fromCharCode(a)))
197
214
  ++f;
198
215
  else
199
216
  break;
200
217
  }
201
218
  }
202
- function k(i) {
203
- switch (i) {
219
+ function k(a) {
220
+ switch (a) {
204
221
  case 46:
205
- i = g.charCodeAt(f + 1), 48 <= i && 57 >= i ? v(!0) : (++f, s(Nn));
222
+ a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ? v(!0) : (++f, s(Nn));
206
223
  return;
207
224
  case 40:
208
225
  return ++f, s(le);
@@ -213,11 +230,11 @@ var N, xo = function(e) {
213
230
  case 44:
214
231
  return ++f, s(ye);
215
232
  case 91:
216
- return ++f, s(Mt);
217
- case 93:
218
233
  return ++f, s(Ut);
234
+ case 93:
235
+ return ++f, s(Mt);
219
236
  case 123:
220
- return ++f, s(De);
237
+ return ++f, s(Ve);
221
238
  case 125:
222
239
  return ++f, s(Ie);
223
240
  case 58:
@@ -225,8 +242,8 @@ var N, xo = function(e) {
225
242
  case 63:
226
243
  return ++f, s(Bn);
227
244
  case 48:
228
- if (i = g.charCodeAt(f + 1), i === 120 || i === 88) {
229
- f += 2, i = j(16), i === null && r(D + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(Ve, i);
245
+ if (a = g.charCodeAt(f + 1), a === 120 || a === 88) {
246
+ f += 2, a = j(16), a === null && r(V + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
230
247
  return;
231
248
  }
232
249
  case 49:
@@ -243,9 +260,9 @@ var N, xo = function(e) {
243
260
  case 39:
244
261
  f++;
245
262
  for (var l = ""; ; ) {
246
- f >= ke && r(D, "Unterminated string constant");
263
+ f >= ke && r(V, "Unterminated string constant");
247
264
  var c = g.charCodeAt(f);
248
- if (c === i) {
265
+ if (c === a) {
249
266
  ++f, s(tt, l);
250
267
  break;
251
268
  }
@@ -298,63 +315,63 @@ var N, xo = function(e) {
298
315
  l += String.fromCharCode(c);
299
316
  }
300
317
  } else
301
- c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(D, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
318
+ c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(V, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
302
319
  }
303
320
  return;
304
321
  case 47:
305
- i = g.charCodeAt(f + 1), Ue ? (++f, P()) : i === 61 ? S(we, 2) : S(Mn, 1);
322
+ a = g.charCodeAt(f + 1), Me ? (++f, P()) : a === 61 ? S(we, 2) : S(Un, 1);
306
323
  return;
307
324
  case 37:
308
325
  case 42:
309
- g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Gr, 1);
326
+ g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Yr, 1);
310
327
  return;
311
328
  case 124:
312
329
  case 38:
313
- l = g.charCodeAt(f + 1), l === i ? S(i === 124 ? Vn : Dn, 2) : l === 61 ? S(we, 2) : S(i === 124 ? Dr : Lr, 1);
330
+ l = g.charCodeAt(f + 1), l === a ? S(a === 124 ? Dn : Vn, 2) : l === 61 ? S(we, 2) : S(a === 124 ? Lr : $r, 1);
314
331
  return;
315
332
  case 94:
316
- g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(_r, 1);
333
+ g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Wr, 1);
317
334
  return;
318
335
  case 43:
319
336
  case 45:
320
- l = g.charCodeAt(f + 1), l === i ? l === 45 && g.charCodeAt(f + 2) === 62 && ot.test(g.slice(ge, f)) ? (f += 3, u(), d(), E()) : S(Vr, 2) : l === 61 ? S(we, 2) : S(Kr, 1);
337
+ l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && ot.test(g.slice(ge, f)) ? (f += 3, u(), d(), E()) : S(_r, 2) : l === 61 ? S(we, 2) : S(Xr, 1);
321
338
  return;
322
339
  case 60:
323
340
  case 62:
324
- l = g.charCodeAt(f + 1), c = 1, l === i ? (c = i === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? S(we, c + 1) : S(Hr, c)) : l === 33 && i === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), E()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), S($r, c));
341
+ l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? S(we, c + 1) : S(Gr, c)) : l === 33 && a === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), E()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), S(Kr, c));
325
342
  return;
326
343
  case 61:
327
344
  case 33:
328
- g.charCodeAt(f + 1) === 61 ? S(Wr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : S(i === 61 ? Un : Fn, 1);
345
+ g.charCodeAt(f + 1) === 61 ? S(Hr, g.charCodeAt(f + 2) === 61 ? 3 : 2) : S(a === 61 ? Mn : Fn, 1);
329
346
  return;
330
347
  case 126:
331
348
  return S(Fn, 1);
332
349
  }
333
350
  return !1;
334
351
  }
335
- function E(i) {
336
- if (i ? f = D + 1 : D = f, O.C && (Ct = new a()), i)
352
+ function E(a) {
353
+ if (a ? f = V + 1 : V = f, O.C && (Ct = new i()), a)
337
354
  return P();
338
355
  if (f >= ke)
339
356
  return s(At);
340
- if (i = g.charCodeAt(f), n(i) || i === 92)
357
+ if (a = g.charCodeAt(f), n(a) || a === 92)
341
358
  return $();
342
- if (k(i) === !1) {
343
- if (i = String.fromCharCode(i), i === "\\" || Ln.test(i))
359
+ if (k(a) === !1) {
360
+ if (a = String.fromCharCode(a), a === "\\" || Ln.test(a))
344
361
  return $();
345
- r(f, "Unexpected character '" + i + "'");
362
+ r(f, "Unexpected character '" + a + "'");
346
363
  }
347
364
  }
348
- function S(i, l) {
365
+ function S(a, l) {
349
366
  var c = g.slice(f, f + l);
350
- f += l, s(i, c);
367
+ f += l, s(a, c);
351
368
  }
352
369
  function P() {
353
- for (var i, l, c = f; ; ) {
370
+ for (var a, l, c = f; ; ) {
354
371
  f >= ke && r(c, "Unterminated regexp");
355
372
  var p = g.charAt(f);
356
- if (ot.test(p) && r(c, "Unterminated regexp"), i)
357
- i = !1;
373
+ if (ot.test(p) && r(c, "Unterminated regexp"), a)
374
+ a = !1;
358
375
  else {
359
376
  if (p === "[")
360
377
  l = !0;
@@ -362,171 +379,171 @@ var N, xo = function(e) {
362
379
  l = !1;
363
380
  else if (p === "/" && !l)
364
381
  break;
365
- i = p === "\\";
382
+ a = p === "\\";
366
383
  }
367
384
  ++f;
368
385
  }
369
- i = g.slice(c, f), ++f, (l = B()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
386
+ a = g.slice(c, f), ++f, (l = B()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
370
387
  try {
371
- var T = new RegExp(i, l);
388
+ var T = new RegExp(a, l);
372
389
  } catch (_) {
373
390
  throw _ instanceof SyntaxError && r(c, _.message), _;
374
391
  }
375
392
  s(hn, T);
376
393
  }
377
- function j(i, l) {
394
+ function j(a, l) {
378
395
  for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l, _ = 0; _ < T; ++_) {
379
396
  var X = g.charCodeAt(f);
380
- if (X = 97 <= X ? X - 97 + 10 : 65 <= X ? X - 65 + 10 : 48 <= X && 57 >= X ? X - 48 : 1 / 0, X >= i)
397
+ if (X = 97 <= X ? X - 97 + 10 : 65 <= X ? X - 65 + 10 : 48 <= X && 57 >= X ? X - 48 : 1 / 0, X >= a)
381
398
  break;
382
- ++f, p = p * i + X;
399
+ ++f, p = p * a + X;
383
400
  }
384
401
  return f === c || l !== void 0 && f - c !== l ? null : p;
385
402
  }
386
- function v(i) {
403
+ function v(a) {
387
404
  var l = f, c = !1, p = g.charCodeAt(f) === 48;
388
- i || j(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, j(10), c = !0), i = g.charCodeAt(f), (i === 69 || i === 101) && (i = g.charCodeAt(++f), i !== 43 && i !== 45 || ++f, j(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), i = g.slice(l, f);
405
+ a || j(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, j(10), c = !0), a = g.charCodeAt(f), (a === 69 || a === 101) && (a = g.charCodeAt(++f), a !== 43 && a !== 45 || ++f, j(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), a = g.slice(l, f);
389
406
  var T;
390
- c ? T = parseFloat(i) : p && i.length !== 1 ? /[89]/.test(i) || q ? r(l, "Invalid number") : T = parseInt(i, 8) : T = parseInt(i, 10), s(Ve, T);
407
+ c ? T = parseFloat(a) : p && a.length !== 1 ? /[89]/.test(a) || q ? r(l, "Invalid number") : T = parseInt(a, 8) : T = parseInt(a, 10), s(De, T);
391
408
  }
392
- function x(i) {
393
- return i = j(16, i), i === null && r(D, "Bad character escape sequence"), i;
409
+ function x(a) {
410
+ return a = j(16, a), a === null && r(V, "Bad character escape sequence"), a;
394
411
  }
395
412
  function B() {
396
413
  Te = !1;
397
- for (var i, l = !0, c = f; ; ) {
414
+ for (var a, l = !0, c = f; ; ) {
398
415
  var p = g.charCodeAt(f);
399
416
  if (t(p))
400
- Te && (i += g.charAt(f)), ++f;
417
+ Te && (a += g.charAt(f)), ++f;
401
418
  else if (p === 92) {
402
- Te || (i = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, p = x(4);
419
+ Te || (a = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, p = x(4);
403
420
  var T = String.fromCharCode(p);
404
- T || r(f - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(f - 4, "Invalid Unicode escape"), i += T;
421
+ T || r(f - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(f - 4, "Invalid Unicode escape"), a += T;
405
422
  } else
406
423
  break;
407
424
  l = !1;
408
425
  }
409
- return Te ? i : g.slice(c, f);
426
+ return Te ? a : g.slice(c, f);
410
427
  }
411
428
  function $() {
412
- var i = B(), l = Ee;
413
- !Te && Yr(i) && (l = Fr[i]), s(l, i);
429
+ var a = B(), l = Ee;
430
+ !Te && zr(a) && (l = Vr[a]), s(l, a);
414
431
  }
415
432
  function m() {
416
- It = D, ge = Ce, Tt = Et, E();
433
+ It = V, ge = Ce, Tt = Et, E();
417
434
  }
418
- function ee(i) {
419
- if (q = i, f = D, O.C)
435
+ function ee(a) {
436
+ if (q = a, f = V, O.C)
420
437
  for (; f < se; )
421
438
  se = g.lastIndexOf(`
422
439
  `, se - 2) + 1, --Se;
423
440
  d(), E();
424
441
  }
425
442
  function te() {
426
- this.type = null, this.start = D, this.end = null;
443
+ this.type = null, this.start = V, this.end = null;
427
444
  }
428
445
  function Z() {
429
446
  this.start = Ct, this.end = null, kt && (this.source = kt);
430
447
  }
431
- function M() {
432
- var i = new te();
433
- return O.C && (i.X = new Z()), O.vb && (i.sourceFile = O.vb), O.Xa && (i.j = [D, 0]), i;
448
+ function U() {
449
+ var a = new te();
450
+ return O.C && (a.X = new Z()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [V, 0]), a;
434
451
  }
435
- function me(i) {
452
+ function me(a) {
436
453
  var l = new te();
437
- return l.start = i.start, O.C && (l.X = new Z(), l.X.start = i.X.start), O.Xa && (l.j = [i.j[0], 0]), l;
454
+ return l.start = a.start, O.C && (l.X = new Z(), l.X.start = a.X.start), O.Xa && (l.j = [a.j[0], 0]), l;
438
455
  }
439
- function A(i, l) {
440
- return i.type = l, i.end = ge, O.C && (i.X.end = Tt), O.Xa && (i.j[1] = ge), i;
456
+ function A(a, l) {
457
+ return a.type = l, a.end = ge, O.C && (a.X.end = Tt), O.Xa && (a.j[1] = ge), a;
441
458
  }
442
- function gt(i) {
443
- return i.type === "ExpressionStatement" && i.la.type === "Literal" && i.la.value === "use strict";
459
+ function gt(a) {
460
+ return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
444
461
  }
445
- function U(i) {
446
- return I === i ? (m(), !0) : !1;
462
+ function M(a) {
463
+ return I === a ? (m(), !0) : !1;
447
464
  }
448
465
  function Ze() {
449
- return !O.fc && (I === At || I === Ie || ot.test(g.slice(ge, D)));
466
+ return !O.fc && (I === At || I === Ie || ot.test(g.slice(ge, V)));
450
467
  }
451
468
  function be() {
452
- U(ce) || Ze() || ie();
469
+ M(ce) || Ze() || ie();
453
470
  }
454
- function F(i) {
455
- I === i ? m() : ie();
471
+ function F(a) {
472
+ I === a ? m() : ie();
456
473
  }
457
474
  function ie() {
458
- r(D, "Unexpected token");
475
+ r(V, "Unexpected token");
459
476
  }
460
- function Qe(i) {
461
- i.type !== "Identifier" && i.type !== "MemberExpression" && r(i.start, "Assigning to rvalue"), q && i.type === "Identifier" && rt(i.name) && r(i.start, "Assigning to " + i.name + " in strict mode");
477
+ function Qe(a) {
478
+ a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), q && a.type === "Identifier" && rt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
462
479
  }
463
480
  function ne() {
464
- (I === Mn || I === we && Q === "/=") && E(!0);
465
- var i = I, l = M();
466
- switch (i) {
481
+ (I === Un || I === we && Q === "/=") && E(!0);
482
+ var a = I, l = U();
483
+ switch (a) {
467
484
  case Ot:
468
485
  case gn:
469
486
  m();
470
- var c = i === Ot;
471
- U(ce) || Ze() ? l.label = null : I !== Ee ? ie() : (l.label = ae(), be());
472
- for (var p = 0; p < V.length; ++p) {
473
- var T = V[p];
487
+ var c = a === Ot;
488
+ M(ce) || Ze() ? l.label = null : I !== Ee ? ie() : (l.label = ae(), be());
489
+ for (var p = 0; p < D.length; ++p) {
490
+ var T = D[p];
474
491
  if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
475
492
  break;
476
493
  }
477
- return p === V.length && r(l.start, "Unsyntactic " + i.l), A(l, c ? "BreakStatement" : "ContinueStatement");
494
+ return p === D.length && r(l.start, "Unsyntactic " + a.l), A(l, c ? "BreakStatement" : "ContinueStatement");
478
495
  case yn:
479
496
  return m(), be(), A(l, "DebuggerStatement");
480
497
  case bn:
481
- return m(), V.push(Ft), l.body = ne(), V.pop(), F(Bt), l.test = Ne(), be(), A(l, "DoWhileStatement");
498
+ return m(), D.push(Ft), l.body = ne(), D.pop(), F(Bt), l.test = Ne(), be(), A(l, "DoWhileStatement");
482
499
  case xn:
483
- return m(), V.push(Ft), F(le), I === ce ? yt(l, null) : I === Nt ? (i = M(), m(), pn(i, !0), A(i, "VariableDeclaration"), i.fa.length === 1 && U(nt) ? fn(l, i) : yt(l, i)) : (i = K(!1, !0), U(nt) ? (Qe(i), fn(l, i)) : yt(l, i));
500
+ return m(), D.push(Ft), F(le), I === ce ? yt(l, null) : I === Nt ? (a = U(), m(), pn(a, !0), A(a, "VariableDeclaration"), a.fa.length === 1 && M(nt) ? fn(l, a) : yt(l, a)) : (a = K(!1, !0), M(nt) ? (Qe(a), fn(l, a)) : yt(l, a));
484
501
  case Rt:
485
502
  return m(), wt(l, !0);
486
503
  case kn:
487
- return m(), l.test = Ne(), l.da = ne(), l.alternate = U(Sn) ? ne() : null, A(l, "IfStatement");
504
+ return m(), l.test = Ne(), l.da = ne(), l.alternate = M(Sn) ? ne() : null, A(l, "IfStatement");
488
505
  case Cn:
489
- return Fe || O.Ib || r(D, "'return' outside of function"), m(), U(ce) || Ze() ? l.K = null : (l.K = K(), be()), A(l, "ReturnStatement");
506
+ return Fe || O.Ib || r(V, "'return' outside of function"), m(), M(ce) || Ze() ? l.K = null : (l.K = K(), be()), A(l, "ReturnStatement");
490
507
  case Pt:
491
- for (m(), l.Qb = Ne(), l.tb = [], F(De), V.push(qr); I !== Ie; )
492
- I === jt || I === vn ? (i = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = M()), p.da = [], m(), i ? p.test = K() : (c && r(It, "Multiple default clauses"), c = !0, p.test = null), F(_e)) : (p || ie(), p.da.push(ne()));
493
- return p && A(p, "SwitchCase"), m(), V.pop(), A(l, "SwitchStatement");
508
+ for (m(), l.Qb = Ne(), l.tb = [], F(Ve), D.push(Qr); I !== Ie; )
509
+ I === jt || I === vn ? (a = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = U()), p.da = [], m(), a ? p.test = K() : (c && r(It, "Multiple default clauses"), c = !0, p.test = null), F(_e)) : (p || ie(), p.da.push(ne()));
510
+ return p && A(p, "SwitchCase"), m(), D.pop(), A(l, "SwitchStatement");
494
511
  case En:
495
- return m(), ot.test(g.slice(ge, D)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), A(l, "ThrowStatement");
512
+ return m(), ot.test(g.slice(ge, V)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), A(l, "ThrowStatement");
496
513
  case In:
497
- return m(), l.block = Be(), l.Ea = null, I === mn && (i = M(), m(), F(le), i.Ua = ae(), q && rt(i.Ua.name) && r(i.Ua.start, "Binding " + i.Ua.name + " in strict mode"), F(re), i.body = Be(), l.Ea = A(i, "CatchClause")), l.fb = U(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
514
+ return m(), l.block = Be(), l.Ea = null, I === mn && (a = U(), m(), F(le), a.Ua = ae(), q && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), F(re), a.body = Be(), l.Ea = A(a, "CatchClause")), l.fb = M(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
498
515
  case Nt:
499
516
  return m(), pn(l), be(), A(l, "VariableDeclaration");
500
517
  case Bt:
501
- return m(), l.test = Ne(), V.push(Ft), l.body = ne(), V.pop(), A(l, "WhileStatement");
518
+ return m(), l.test = Ne(), D.push(Ft), l.body = ne(), D.pop(), A(l, "WhileStatement");
502
519
  case Tn:
503
- return q && r(D, "'with' in strict mode"), m(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
504
- case De:
520
+ return q && r(V, "'with' in strict mode"), m(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
521
+ case Ve:
505
522
  return Be();
506
523
  case ce:
507
524
  return m(), A(l, "EmptyStatement");
508
525
  default:
509
- if (c = Q, T = K(), i === Ee && T.type === "Identifier" && U(_e)) {
510
- for (p = 0; p < V.length; ++p)
511
- V[p].name === c && r(T.start, "Label '" + c + "' is already declared");
512
- return V.push({
526
+ if (c = Q, T = K(), a === Ee && T.type === "Identifier" && M(_e)) {
527
+ for (p = 0; p < D.length; ++p)
528
+ D[p].name === c && r(T.start, "Label '" + c + "' is already declared");
529
+ return D.push({
513
530
  name: c,
514
531
  kind: I.W ? "loop" : I === Pt ? "switch" : null
515
- }), l.body = ne(), V.pop(), l.label = T, A(l, "LabeledStatement");
532
+ }), l.body = ne(), D.pop(), l.label = T, A(l, "LabeledStatement");
516
533
  }
517
534
  return l.la = T, be(), A(l, "ExpressionStatement");
518
535
  }
519
536
  }
520
537
  function Ne() {
521
538
  F(le);
522
- var i = K();
523
- return F(re), i;
539
+ var a = K();
540
+ return F(re), a;
524
541
  }
525
- function Be(i) {
526
- var l = M(), c = !0, p = !1;
527
- for (l.body = [], F(De); !U(Ie); ) {
542
+ function Be(a) {
543
+ var l = U(), c = !0, p = !1;
544
+ for (l.body = [], F(Ve); !M(Ie); ) {
528
545
  var T = ne();
529
- if (l.body.push(T), c && i && gt(T)) {
546
+ if (l.body.push(T), c && a && gt(T)) {
530
547
  var _ = p;
531
548
  ee(p = !0);
532
549
  }
@@ -534,153 +551,153 @@ var N, xo = function(e) {
534
551
  }
535
552
  return p && !_ && ee(!1), A(l, "BlockStatement");
536
553
  }
537
- function yt(i, l) {
538
- return i.ua = l, F(ce), i.test = I === ce ? null : K(), F(ce), i.update = I === re ? null : K(), F(re), i.body = ne(), V.pop(), A(i, "ForStatement");
554
+ function yt(a, l) {
555
+ return a.ua = l, F(ce), a.test = I === ce ? null : K(), F(ce), a.update = I === re ? null : K(), F(re), a.body = ne(), D.pop(), A(a, "ForStatement");
539
556
  }
540
- function fn(i, l) {
541
- return i.left = l, i.right = K(), F(re), i.body = ne(), V.pop(), A(i, "ForInStatement");
557
+ function fn(a, l) {
558
+ return a.left = l, a.right = K(), F(re), a.body = ne(), D.pop(), A(a, "ForInStatement");
542
559
  }
543
- function pn(i, l) {
544
- for (i.fa = [], i.kind = "var"; ; ) {
545
- var c = M();
546
- if (c.id = ae(), q && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = U(Un) ? K(!0, l) : null, i.fa.push(A(c, "VariableDeclarator")), !U(ye))
560
+ function pn(a, l) {
561
+ for (a.fa = [], a.kind = "var"; ; ) {
562
+ var c = U();
563
+ if (c.id = ae(), q && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(Mn) ? K(!0, l) : null, a.fa.push(A(c, "VariableDeclarator")), !M(ye))
547
564
  break;
548
565
  }
549
566
  }
550
- function K(i, l) {
567
+ function K(a, l) {
551
568
  var c = vt(l);
552
- if (!i && I === ye) {
553
- for (i = me(c), i.xb = [c]; U(ye); )
554
- i.xb.push(vt(l));
555
- return A(i, "SequenceExpression");
569
+ if (!a && I === ye) {
570
+ for (a = me(c), a.xb = [c]; M(ye); )
571
+ a.xb.push(vt(l));
572
+ return A(a, "SequenceExpression");
556
573
  }
557
574
  return c;
558
575
  }
559
- function vt(i) {
560
- var l = bt(St(), -1, i);
561
- if (U(Bn)) {
576
+ function vt(a) {
577
+ var l = bt(St(), -1, a);
578
+ if (M(Bn)) {
562
579
  var c = me(l);
563
- c.test = l, c.da = K(!0), F(_e), c.alternate = K(!0, i), l = A(c, "ConditionalExpression");
580
+ c.test = l, c.da = K(!0), F(_e), c.alternate = K(!0, a), l = A(c, "ConditionalExpression");
564
581
  }
565
- return I.Cb ? (c = me(l), c.operator = Q, c.left = l, m(), c.right = vt(i), Qe(l), A(c, "AssignmentExpression")) : l;
582
+ return I.Cb ? (c = me(l), c.operator = Q, c.left = l, m(), c.right = vt(a), Qe(l), A(c, "AssignmentExpression")) : l;
566
583
  }
567
- function bt(i, l, c) {
584
+ function bt(a, l, c) {
568
585
  var p = I.L;
569
586
  if (p !== null && (!c || I !== nt) && p > l) {
570
- var T = me(i);
571
- return T.left = i, T.operator = Q, i = I, m(), T.right = bt(St(), p, c), p = A(T, i === Vn || i === Dn ? "LogicalExpression" : "BinaryExpression"), bt(p, l, c);
587
+ var T = me(a);
588
+ return T.left = a, T.operator = Q, a = I, m(), T.right = bt(St(), p, c), p = A(T, a === Dn || a === Vn ? "LogicalExpression" : "BinaryExpression"), bt(p, l, c);
572
589
  }
573
- return i;
590
+ return a;
574
591
  }
575
592
  function St() {
576
593
  if (I.prefix) {
577
- var i = M(), l = I.$b;
578
- return i.operator = Q, Ue = i.prefix = !0, m(), i.K = St(), l ? Qe(i.K) : q && i.operator === "delete" && i.K.type === "Identifier" && r(i.start, "Deleting local variable in strict mode"), A(i, l ? "UpdateExpression" : "UnaryExpression");
594
+ var a = U(), l = I.$b;
595
+ return a.operator = Q, Me = a.prefix = !0, m(), a.K = St(), l ? Qe(a.K) : q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), A(a, l ? "UpdateExpression" : "UnaryExpression");
579
596
  }
580
- for (l = Me(et()); I.cc && !Ze(); )
581
- i = me(l), i.operator = Q, i.prefix = !1, i.K = l, Qe(l), m(), l = A(i, "UpdateExpression");
597
+ for (l = Ue(et()); I.cc && !Ze(); )
598
+ a = me(l), a.operator = Q, a.prefix = !1, a.K = l, Qe(l), m(), l = A(a, "UpdateExpression");
582
599
  return l;
583
600
  }
584
- function Me(i, l) {
585
- if (U(Nn)) {
586
- var c = me(i);
587
- return c.object = i, c.Wa = ae(!0), c.bb = !1, Me(A(c, "MemberExpression"), l);
601
+ function Ue(a, l) {
602
+ if (M(Nn)) {
603
+ var c = me(a);
604
+ return c.object = a, c.Wa = ae(!0), c.bb = !1, Ue(A(c, "MemberExpression"), l);
588
605
  }
589
- return U(Mt) ? (c = me(i), c.object = i, c.Wa = K(), c.bb = !0, F(Ut), Me(A(c, "MemberExpression"), l)) : !l && U(le) ? (c = me(i), c.callee = i, c.arguments = xt(re, !1), Me(A(c, "CallExpression"), l)) : i;
606
+ return M(Ut) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, F(Mt), Ue(A(c, "MemberExpression"), l)) : !l && M(le) ? (c = me(a), c.callee = a, c.arguments = xt(re, !1), Ue(A(c, "CallExpression"), l)) : a;
590
607
  }
591
608
  function et() {
592
609
  switch (I) {
593
610
  case On:
594
- var i = M();
595
- return m(), A(i, "ThisExpression");
611
+ var a = U();
612
+ return m(), A(a, "ThisExpression");
596
613
  case Ee:
597
614
  return ae();
598
- case Ve:
615
+ case De:
599
616
  case tt:
600
617
  case hn:
601
- return i = M(), i.value = Q, i.raw = g.slice(D, Ce), m(), A(i, "Literal");
618
+ return a = U(), a.value = Q, a.raw = g.slice(V, Ce), m(), A(a, "Literal");
602
619
  case jn:
603
620
  case Rn:
604
621
  case Pn:
605
- return i = M(), i.value = I.$a, i.raw = I.l, m(), A(i, "Literal");
622
+ return a = U(), a.value = I.$a, a.raw = I.l, m(), A(a, "Literal");
606
623
  case le:
607
- i = Ct;
608
- var l = D;
624
+ a = Ct;
625
+ var l = V;
609
626
  m();
610
627
  var c = K();
611
- return c.start = l, c.end = Ce, O.C && (c.X.start = i, c.X.end = Et), O.Xa && (c.j = [l, Ce]), F(re), c;
612
- case Mt:
613
- return i = M(), m(), i.elements = xt(Ut, !0, !0), A(i, "ArrayExpression");
614
- case De:
615
- for (i = M(), l = !0, c = !1, i.h = [], m(); !U(Ie); ) {
628
+ return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = Et), O.Xa && (c.j = [l, Ce]), F(re), c;
629
+ case Ut:
630
+ return a = U(), m(), a.elements = xt(Mt, !0, !0), A(a, "ArrayExpression");
631
+ case Ve:
632
+ for (a = U(), l = !0, c = !1, a.h = [], m(); !M(Ie); ) {
616
633
  if (l)
617
634
  l = !1;
618
- else if (F(ye), O.sb && U(Ie))
635
+ else if (F(ye), O.sb && M(Ie))
619
636
  break;
620
637
  var p = {
621
- key: I === Ve || I === tt ? et() : ae(!0)
638
+ key: I === De || I === tt ? et() : ae(!0)
622
639
  }, T = !1;
623
- if (U(_e)) {
640
+ if (M(_e)) {
624
641
  p.value = K(!0);
625
642
  var _ = p.kind = "init";
626
643
  } else
627
- p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ie() : (T = c = !0, _ = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : ae(!0), I !== le && ie(), p.value = wt(M(), !1));
644
+ p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ie() : (T = c = !0, _ = p.kind = p.key.name, p.key = I === De || I === tt ? et() : ae(!0), I !== le && ie(), p.value = wt(U(), !1));
628
645
  if (p.key.type === "Identifier" && (q || c))
629
- for (var X = 0; X < i.h.length; ++X) {
630
- var Ae = i.h[X];
646
+ for (var X = 0; X < a.h.length; ++X) {
647
+ var Ae = a.h[X];
631
648
  if (Ae.key.name === p.key.name) {
632
- var Vt = _ === Ae.kind || T && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
633
- Vt && !q && _ === "init" && Ae.kind === "init" && (Vt = !1), Vt && r(p.key.start, "Redefinition of property");
649
+ var Dt = _ === Ae.kind || T && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
650
+ Dt && !q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(p.key.start, "Redefinition of property");
634
651
  }
635
652
  }
636
- i.h.push(p);
653
+ a.h.push(p);
637
654
  }
638
- return A(i, "ObjectExpression");
655
+ return A(a, "ObjectExpression");
639
656
  case Rt:
640
- return i = M(), m(), wt(i, !1);
657
+ return a = U(), m(), wt(a, !1);
641
658
  case An:
642
- return i = M(), m(), i.callee = Me(et(), !0), i.arguments = U(le) ? xt(re, !1) : Ur, A(i, "NewExpression");
659
+ return a = U(), m(), a.callee = Ue(et(), !0), a.arguments = M(le) ? xt(re, !1) : Dr, A(a, "NewExpression");
643
660
  }
644
661
  ie();
645
662
  }
646
- function wt(i, l) {
647
- I === Ee ? i.id = ae() : l ? ie() : i.id = null, i.oa = [];
663
+ function wt(a, l) {
664
+ I === Ee ? a.id = ae() : l ? ie() : a.id = null, a.oa = [];
648
665
  var c = !0;
649
- for (F(le); !U(re); )
650
- c ? c = !1 : F(ye), i.oa.push(ae());
666
+ for (F(le); !M(re); )
667
+ c ? c = !1 : F(ye), a.oa.push(ae());
651
668
  c = Fe;
652
- var p = V;
653
- if (Fe = !0, V = [], i.body = Be(!0), Fe = c, V = p, q || i.body.body.length && gt(i.body.body[0])) {
654
- for (c = i.id ? -1 : 0; c < i.oa.length; ++c)
655
- if (p = 0 > c ? i.id : i.oa[c], (_n(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
669
+ var p = D;
670
+ if (Fe = !0, D = [], a.body = Be(!0), Fe = c, D = p, q || a.body.body.length && gt(a.body.body[0])) {
671
+ for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
672
+ if (p = 0 > c ? a.id : a.oa[c], (_n(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
656
673
  for (var T = 0; T < c; ++T)
657
- p.name === i.oa[T].name && r(p.start, "Argument name clash in strict mode");
674
+ p.name === a.oa[T].name && r(p.start, "Argument name clash in strict mode");
658
675
  }
659
- return A(i, l ? "FunctionDeclaration" : "FunctionExpression");
676
+ return A(a, l ? "FunctionDeclaration" : "FunctionExpression");
660
677
  }
661
- function xt(i, l, c) {
662
- for (var p = [], T = !0; !U(i); ) {
678
+ function xt(a, l, c) {
679
+ for (var p = [], T = !0; !M(a); ) {
663
680
  if (T)
664
681
  T = !1;
665
- else if (F(ye), l && O.sb && U(i))
682
+ else if (F(ye), l && O.sb && M(a))
666
683
  break;
667
684
  p.push(c && I === ye ? null : K(!0));
668
685
  }
669
686
  return p;
670
687
  }
671
- function ae(i) {
672
- var l = M();
673
- return i && O.yb === "everywhere" && (i = !1), I === Ee ? (!i && (O.yb && Xr(Q) || q && _n(Q)) && g.slice(D, Ce).indexOf("\\") === -1 && r(D, "The keyword '" + Q + "' is reserved"), l.name = Q) : i && I.l ? l.name = I.l : ie(), Ue = !1, m(), A(l, "Identifier");
688
+ function ae(a) {
689
+ var l = U();
690
+ return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && Jr(Q) || q && _n(Q)) && g.slice(V, Ce).indexOf("\\") === -1 && r(V, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ie(), Me = !1, m(), A(l, "Identifier");
674
691
  }
675
692
  e.version = "0.5.0";
676
693
  var O, g = "", ke, kt;
677
- e.parse = function(i, l) {
678
- g = String(i), ke = g.length, O = l || {};
694
+ e.parse = function(a, l) {
695
+ g = String(a), ke = g.length, O = l || {};
679
696
  for (var c in dn)
680
697
  Object.prototype.hasOwnProperty.call(O, c) || (O[c] = dn[c]);
681
- for (kt = O.sourceFile, Se = 1, f = se = 0, Ue = !0, d(), c = O.dc, It = ge = f, O.C && (Tt = new a()), Fe = q = !1, V = [], E(), i = c || M(), l = !0, c || (i.body = []); I !== At; )
682
- c = ne(), i.body.push(c), l && gt(c) && ee(!0), l = !1;
683
- return A(i, "Program");
698
+ for (kt = O.sourceFile, Se = 1, f = se = 0, Me = !0, d(), c = O.dc, It = ge = f, O.C && (Tt = new i()), Fe = q = !1, D = [], E(), a = c || U(), l = !0, c || (a.body = []); I !== At; )
699
+ c = ne(), a.body.push(c), l && gt(c) && ee(!0), l = !1;
700
+ return A(a, "Program");
684
701
  };
685
702
  var dn = {
686
703
  fc: !1,
@@ -693,7 +710,7 @@ var N, xo = function(e) {
693
710
  dc: null,
694
711
  sourceFile: null,
695
712
  vb: null
696
- }, f = 0, D = 0, Ce = 0, Ct, Et, I, Q, Ue, Se, se, It = 0, ge = 0, Tt, Fe, V, q, Ur = [], Ve = {
713
+ }, f = 0, V = 0, Ce = 0, Ct, Et, I, Q, Me, Se, se, It = 0, ge = 0, Tt, Fe, D, q, Dr = [], De = {
697
714
  type: "num"
698
715
  }, hn = {
699
716
  type: "regexp"
@@ -766,7 +783,7 @@ var N, xo = function(e) {
766
783
  l: "in",
767
784
  L: 7,
768
785
  m: !0
769
- }, Fr = {
786
+ }, Vr = {
770
787
  break: Ot,
771
788
  case: jt,
772
789
  catch: mn,
@@ -812,12 +829,12 @@ var N, xo = function(e) {
812
829
  prefix: !0,
813
830
  m: !0
814
831
  }
815
- }, Mt = {
832
+ }, Ut = {
816
833
  type: "[",
817
834
  m: !0
818
- }, Ut = {
835
+ }, Mt = {
819
836
  type: "]"
820
- }, De = {
837
+ }, Ve = {
821
838
  type: "{",
822
839
  m: !0
823
840
  }, Ie = {
@@ -841,60 +858,60 @@ var N, xo = function(e) {
841
858
  }, Bn = {
842
859
  type: "?",
843
860
  m: !0
844
- }, Mn = {
861
+ }, Un = {
845
862
  L: 10,
846
863
  m: !0
847
- }, Un = {
864
+ }, Mn = {
848
865
  Cb: !0,
849
866
  m: !0
850
867
  }, we = {
851
868
  Cb: !0,
852
869
  m: !0
853
- }, Vr = {
870
+ }, _r = {
854
871
  cc: !0,
855
872
  prefix: !0,
856
873
  $b: !0
857
874
  }, Fn = {
858
875
  prefix: !0,
859
876
  m: !0
860
- }, Vn = {
877
+ }, Dn = {
861
878
  L: 1,
862
879
  m: !0
863
- }, Dn = {
880
+ }, Vn = {
864
881
  L: 2,
865
882
  m: !0
866
- }, Dr = {
883
+ }, Lr = {
867
884
  L: 3,
868
885
  m: !0
869
- }, _r = {
886
+ }, Wr = {
870
887
  L: 4,
871
888
  m: !0
872
- }, Lr = {
889
+ }, $r = {
873
890
  L: 5,
874
891
  m: !0
875
- }, Wr = {
892
+ }, Hr = {
876
893
  L: 6,
877
894
  m: !0
878
- }, $r = {
895
+ }, Kr = {
879
896
  L: 7,
880
897
  m: !0
881
- }, Hr = {
898
+ }, Gr = {
882
899
  L: 8,
883
900
  m: !0
884
- }, Kr = {
901
+ }, Xr = {
885
902
  L: 9,
886
903
  prefix: !0,
887
904
  m: !0
888
- }, Gr = {
905
+ }, Yr = {
889
906
  L: 10,
890
907
  m: !0
891
- }, Xr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), Yr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Jr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), zr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ft = {
908
+ }, Jr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), zr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), qr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Zr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‌‍‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ft = {
892
909
  kind: "loop"
893
- }, qr = {
910
+ }, Qr = {
894
911
  kind: "switch"
895
912
  };
896
913
  }, Lt = Lt = typeof globalThis > "u" ? void 0 : globalThis;
897
- xo(Lt.j || (Lt.j = {}));
914
+ ko(Lt.j || (Lt.j = {}));
898
915
  function h(e, t) {
899
916
  typeof e == "string" && (e = je(e, "code"));
900
917
  var n = e.constructor;
@@ -907,11 +924,11 @@ function h(e, t) {
907
924
  for (o in e)
908
925
  r[o] = o === "body" ? e[o].slice() : e[o];
909
926
  this.ra = r, this.ca = [], this.qb = t, this.za = !1, this.ba = [], this.Ya = 0, this.rb = /* @__PURE__ */ Object.create(null), e = /^step([A-Z]\w*)$/;
910
- var a, s;
927
+ var i, s;
911
928
  for (s in this)
912
- typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
929
+ typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
913
930
  this.N = $t(this, this.ra, null), this.Na = this.N.object, this.ra = je(this.ba.join(`
914
- `), "polyfills"), this.ba = void 0, ut(this.ra), a = new b(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new b(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
931
+ `), "polyfills"), this.ba = void 0, ut(this.ra), i = new b(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new b(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
915
932
  }
916
933
  var Wn = {
917
934
  C: !0,
@@ -936,7 +953,7 @@ var Wn = {
936
953
  configurable: !1,
937
954
  enumerable: !0,
938
955
  writable: !0
939
- }, ur = {
956
+ }, pr = {
940
957
  STEP_ERROR: !0
941
958
  }, Pe = {
942
959
  SCOPE_REFERENCE: !0
@@ -944,7 +961,7 @@ var Wn = {
944
961
  VALUE_IN_DESCRIPTOR: !0
945
962
  }, Oe = {
946
963
  REGEXP_TIMEOUT: !0
947
- }, Hn = [], fe = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, ko = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
964
+ }, Hn = [], fe = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Co = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
948
965
  function zt(e) {
949
966
  var t = e >>> 0;
950
967
  return t === Number(e) ? t : NaN;
@@ -995,7 +1012,7 @@ N.lb = function() {
995
1012
  if (n = this.ca[0], !n || n.time > Date.now())
996
1013
  n = null;
997
1014
  else {
998
- this.ca.shift(), 0 <= n.interval && dr(this, n, n.interval);
1015
+ this.ca.shift(), 0 <= n.interval && mr(this, n, n.interval);
999
1016
  var r = new b(n.node, n.scope);
1000
1017
  n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
1001
1018
  }
@@ -1006,14 +1023,14 @@ N.lb = function() {
1006
1023
  var o = Ge;
1007
1024
  Ge = this;
1008
1025
  try {
1009
- var a = this.rb[r.type](e, n, r);
1026
+ var i = this.rb[r.type](e, n, r);
1010
1027
  } catch (s) {
1011
- if (s !== ur)
1028
+ if (s !== pr)
1012
1029
  throw this.value !== s && (this.value = void 0), s;
1013
1030
  } finally {
1014
1031
  Ge = o;
1015
1032
  }
1016
- if (a && e.push(a), this.P)
1033
+ if (i && e.push(i), this.P)
1017
1034
  throw this.value = void 0, Error("Getter not supported in this context");
1018
1035
  if (this.Ka)
1019
1036
  throw this.value = void 0, Error("Setter not supported in this context");
@@ -1026,36 +1043,36 @@ N.Eb = function() {
1026
1043
  ;
1027
1044
  return this.za;
1028
1045
  };
1029
- function Co(e, t) {
1030
- e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Jt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), Eo(e, t), Io(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), To(e, t), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Bo(e, t), Mo(e, t);
1046
+ function Eo(e, t) {
1047
+ e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Jt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), Io(e, t), To(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Bo(e, t), Uo(e, t), Mo(e, t);
1031
1048
  var n = e.i(function() {
1032
1049
  throw EvalError("Can't happen");
1033
1050
  }, !1);
1034
1051
  n.eval = !0, e.g(t, "eval", n, y), e.g(t, "parseInt", e.i(parseInt, !1), y), e.g(t, "parseFloat", e.i(parseFloat, !1), y), e.g(t, "isNaN", e.i(isNaN, !1), y), e.g(t, "isFinite", e.i(isFinite, !1), y);
1035
1052
  for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < r.length; o++)
1036
- n = function(a) {
1053
+ n = function(i) {
1037
1054
  return function(s) {
1038
1055
  try {
1039
- return a(s);
1056
+ return i(s);
1040
1057
  } catch (u) {
1041
1058
  w(e, e.Gb, u.message);
1042
1059
  }
1043
1060
  };
1044
1061
  }(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
1045
- n = function(a) {
1062
+ n = function(i) {
1046
1063
  return Kn(e, !1, arguments);
1047
- }, e.g(t, "setTimeout", e.i(n, !1), y), n = function(a) {
1064
+ }, e.g(t, "setTimeout", e.i(n, !1), y), n = function(i) {
1048
1065
  return Kn(e, !0, arguments);
1049
- }, e.g(t, "setInterval", e.i(n, !1), y), n = function(a) {
1050
- Gn(e, a);
1051
- }, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(a) {
1052
- Gn(e, a);
1066
+ }, e.g(t, "setInterval", e.i(n, !1), y), n = function(i) {
1067
+ Gn(e, i);
1068
+ }, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(i) {
1069
+ Gn(e, i);
1053
1070
  }, e.g(t, "clearInterval", e.i(n, !1), y), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
1054
1071
  }
1055
1072
  N.Wb = 0;
1056
- function Eo(e, t) {
1073
+ function Io(e, t) {
1057
1074
  var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
1058
- var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1075
+ var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
1059
1076
  if (s) {
1060
1077
  s = s.split(/\s*,\s*/);
1061
1078
  for (var u = 0; u < s.length; u++) {
@@ -1065,29 +1082,29 @@ function Eo(e, t) {
1065
1082
  s = s.join(", ");
1066
1083
  }
1067
1084
  try {
1068
- var k = je("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
1085
+ var k = je("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
1069
1086
  } catch (E) {
1070
1087
  w(e, e.T, "Invalid code: " + E.message);
1071
1088
  }
1072
1089
  return k.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Qt(e, k.body[0].la, e.N, "anonymous");
1073
1090
  };
1074
1091
  e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
1075
- }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(o, a) {
1092
+ }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(o, i) {
1076
1093
  var s = e.o[e.o.length - 1];
1077
- s.U = this, s.B = o, s.F = [], a != null && (a instanceof R ? s.F = fr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
1094
+ s.U = this, s.B = o, s.F = [], i != null && (i instanceof R ? s.F = dr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
1078
1095
  }, W(e, e.O, "apply", r), r = function(o) {
1079
- var a = e.o[e.o.length - 1];
1080
- a.U = this, a.B = o, a.F = [];
1096
+ var i = e.o[e.o.length - 1];
1097
+ i.U = this, i.B = o, i.F = [];
1081
1098
  for (var s = 1; s < arguments.length; s++)
1082
- a.F.push(arguments[s]);
1083
- a.eb = !1;
1099
+ i.F.push(arguments[s]);
1100
+ i.eb = !1;
1084
1101
  }, W(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
1085
1102
  return String(this);
1086
1103
  }, W(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
1087
1104
  return this.valueOf();
1088
1105
  }, W(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
1089
1106
  }
1090
- function Io(e, t) {
1107
+ function To(e, t) {
1091
1108
  function n(o) {
1092
1109
  o != null || w(e, e.j, "Cannot convert '" + o + "' to object");
1093
1110
  }
@@ -1095,8 +1112,8 @@ function Io(e, t) {
1095
1112
  if (o == null)
1096
1113
  return de(e) ? this : e.s(e.M);
1097
1114
  if (!(o instanceof R)) {
1098
- var a = e.s(pe(e, o));
1099
- return a.data = o, a;
1115
+ var i = e.s(pe(e, o));
1116
+ return i.data = o, i;
1100
1117
  }
1101
1118
  return o;
1102
1119
  };
@@ -1106,12 +1123,12 @@ function Io(e, t) {
1106
1123
  return n(o), o instanceof R && (o = o.h), ue(e, Object.keys(o));
1107
1124
  }, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
1108
1125
  return o === null ? e.s(null) : (o instanceof R || w(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
1109
- }, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, a, s) {
1110
- return a = String(a), o instanceof R || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof R || w(e, e.j, "Property description must be an object"), !o.preventExtensions || a in o.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(o, a, Ye, s.h), o;
1111
- }, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, a) {
1112
- if (o instanceof R || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), a = String(a), a in o.h) {
1113
- var s = Object.getOwnPropertyDescriptor(o.h, a), u = o.V[a];
1114
- return o = o.Y[a], a = e.s(e.M), u || o ? (e.g(a, "get", u), e.g(a, "set", o)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
1126
+ }, e.g(e.v, "create", e.i(r, !1), y), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(o, i, s) {
1127
+ return i = String(i), o instanceof R || w(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof R || w(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || w(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Ye, s.h), o;
1128
+ }, e.g(e.v, "defineProperty", e.i(r, !1), y), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(o, i) {
1129
+ if (o instanceof R || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
1130
+ var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
1131
+ return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
1115
1132
  }
1116
1133
  }, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), y), r = function(o) {
1117
1134
  return n(o), pe(e, o);
@@ -1132,15 +1149,15 @@ function Io(e, t) {
1132
1149
  }
1133
1150
  }, W(e, e.v, "isPrototypeOf", r);
1134
1151
  }
1135
- function To(e, t) {
1152
+ function Ao(e, t) {
1136
1153
  var n = function(r) {
1137
- var o = de(e) ? this : Re(e), a = arguments[0];
1138
- if (arguments.length === 1 && typeof a == "number")
1139
- isNaN(zt(a)) && w(e, e.ob, "Invalid array length: " + a), o.h.length = a;
1154
+ var o = de(e) ? this : Re(e), i = arguments[0];
1155
+ if (arguments.length === 1 && typeof i == "number")
1156
+ isNaN(zt(i)) && w(e, e.ob, "Invalid array length: " + i), o.h.length = i;
1140
1157
  else {
1141
- for (a = 0; a < arguments.length; a++)
1142
- o.h[a] = arguments[a];
1143
- o.h.length = a;
1158
+ for (i = 0; i < arguments.length; i++)
1159
+ o.h[i] = arguments[i];
1160
+ o.h.length = i;
1144
1161
  }
1145
1162
  return o;
1146
1163
  };
@@ -1152,95 +1169,95 @@ function To(e, t) {
1152
1169
  writable: !0
1153
1170
  }), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
1154
1171
  }
1155
- function Ao(e, t) {
1172
+ function Oo(e, t) {
1156
1173
  var n = function(r) {
1157
1174
  return r = arguments.length ? ve.String(r) : "", de(e) ? (this.data = r, this) : r;
1158
1175
  };
1159
1176
  for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
1160
1177
  W(e, e.J, t[n], String.prototype[t[n]]);
1161
- n = function(r, o, a) {
1162
- o = e.R(o), a = e.R(a);
1178
+ n = function(r, o, i) {
1179
+ o = e.R(o), i = e.R(i);
1163
1180
  try {
1164
- return String(this).localeCompare(r, o, a);
1181
+ return String(this).localeCompare(r, o, i);
1165
1182
  } catch (s) {
1166
1183
  w(e, e.D, "localeCompare: " + s.message);
1167
1184
  }
1168
- }, W(e, e.J, "localeCompare", n), n = function(r, o, a) {
1185
+ }, W(e, e.J, "localeCompare", n), n = function(r, o, i) {
1169
1186
  var s = String(this);
1170
- if (o = o ? Number(o) : void 0, H(e, r, e.I) && (r = r.data, $e(e, r, a), e.REGEXP_MODE === 2)) {
1187
+ if (o = o ? Number(o) : void 0, H(e, r, e.I) && (r = r.data, $e(e, r, i), e.REGEXP_MODE === 2)) {
1171
1188
  if (fe)
1172
1189
  r = We(e, "string.split(separator, limit)", {
1173
1190
  string: s,
1174
1191
  separator: r,
1175
1192
  limit: o
1176
- }, r, a), r !== Oe && a(ue(e, r));
1193
+ }, r, i), r !== Oe && i(ue(e, r));
1177
1194
  else {
1178
- var u = e.ha(), d = He(e, r, u, a);
1195
+ var u = e.ha(), d = He(e, r, u, i);
1179
1196
  u.onmessage = function(k) {
1180
- clearTimeout(d), a(ue(e, k.data));
1197
+ clearTimeout(d), i(ue(e, k.data));
1181
1198
  }, u.postMessage(["split", s, r, o]);
1182
1199
  }
1183
1200
  return;
1184
1201
  }
1185
- r = s.split(r, o), a(ue(e, r));
1202
+ r = s.split(r, o), i(ue(e, r));
1186
1203
  }, Ke(e, e.J, "split", n), n = function(r, o) {
1187
- var a = String(this);
1204
+ var i = String(this);
1188
1205
  if (r = H(e, r, e.I) ? r.data : new RegExp(r), $e(e, r, o), e.REGEXP_MODE === 2)
1189
1206
  if (fe)
1190
1207
  r = We(e, "string.match(regexp)", {
1191
- string: a,
1208
+ string: i,
1192
1209
  regexp: r
1193
1210
  }, r, o), r !== Oe && o(r && ue(e, r));
1194
1211
  else {
1195
1212
  var s = e.ha(), u = He(e, r, s, o);
1196
1213
  s.onmessage = function(d) {
1197
1214
  clearTimeout(u), o(d.data && ue(e, d.data));
1198
- }, s.postMessage(["match", a, r]);
1215
+ }, s.postMessage(["match", i, r]);
1199
1216
  }
1200
1217
  else
1201
- r = a.match(r), o(r && ue(e, r));
1218
+ r = i.match(r), o(r && ue(e, r));
1202
1219
  }, Ke(e, e.J, "match", n), n = function(r, o) {
1203
- var a = String(this);
1220
+ var i = String(this);
1204
1221
  if (H(e, r, e.I) ? r = r.data : r = new RegExp(r), $e(e, r, o), e.REGEXP_MODE === 2)
1205
1222
  if (fe)
1206
1223
  r = We(e, "string.search(regexp)", {
1207
- string: a,
1224
+ string: i,
1208
1225
  regexp: r
1209
1226
  }, r, o), r !== Oe && o(r);
1210
1227
  else {
1211
1228
  var s = e.ha(), u = He(e, r, s, o);
1212
1229
  s.onmessage = function(d) {
1213
1230
  clearTimeout(u), o(d.data);
1214
- }, s.postMessage(["search", a, r]);
1231
+ }, s.postMessage(["search", i, r]);
1215
1232
  }
1216
1233
  else
1217
- o(a.search(r));
1218
- }, Ke(e, e.J, "search", n), n = function(r, o, a) {
1234
+ o(i.search(r));
1235
+ }, Ke(e, e.J, "search", n), n = function(r, o, i) {
1219
1236
  var s = String(this);
1220
- if (o = String(o), H(e, r, e.I) && (r = r.data, $e(e, r, a), e.REGEXP_MODE === 2)) {
1237
+ if (o = String(o), H(e, r, e.I) && (r = r.data, $e(e, r, i), e.REGEXP_MODE === 2)) {
1221
1238
  if (fe)
1222
1239
  r = We(e, "string.replace(substr, newSubstr)", {
1223
1240
  string: s,
1224
1241
  substr: r,
1225
1242
  newSubstr: o
1226
- }, r, a), r !== Oe && a(r);
1243
+ }, r, i), r !== Oe && i(r);
1227
1244
  else {
1228
- var u = e.ha(), d = He(e, r, u, a);
1245
+ var u = e.ha(), d = He(e, r, u, i);
1229
1246
  u.onmessage = function(k) {
1230
- clearTimeout(d), a(k.data);
1247
+ clearTimeout(d), i(k.data);
1231
1248
  }, u.postMessage(["replace", s, r, o]);
1232
1249
  }
1233
1250
  return;
1234
1251
  }
1235
- a(s.replace(r, o));
1252
+ i(s.replace(r, o));
1236
1253
  }, Ke(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
1237
1254
  }
1238
- function Oo(e, t) {
1255
+ function jo(e, t) {
1239
1256
  e.mb = e.i(function(n) {
1240
1257
  return n = ve.Boolean(n), de(e) ? (this.data = n, this) : n;
1241
1258
  }, !0), e.g(t, "Boolean", e.mb, y);
1242
1259
  }
1243
- function jo(e, t) {
1260
+ function Ro(e, t) {
1244
1261
  var n = function(r) {
1245
1262
  return r = arguments.length ? ve.Number(r) : 0, de(e) ? (this.data = r, this) : r;
1246
1263
  };
@@ -1274,13 +1291,13 @@ function jo(e, t) {
1274
1291
  r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
1275
1292
  try {
1276
1293
  return Number(this).toLocaleString(r, o);
1277
- } catch (a) {
1278
- w(e, e.D, "toLocaleString: " + a.message);
1294
+ } catch (i) {
1295
+ w(e, e.D, "toLocaleString: " + i.message);
1279
1296
  }
1280
1297
  }, W(e, e.aa, "toLocaleString", n);
1281
1298
  }
1282
- function Ro(e, t) {
1283
- var n = function(o, a) {
1299
+ function Po(e, t) {
1300
+ var n = function(o, i) {
1284
1301
  if (!de(e))
1285
1302
  return ve.Date();
1286
1303
  var s = [null].concat(Array.from(arguments));
@@ -1289,7 +1306,7 @@ function Ro(e, t) {
1289
1306
  e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, y), e.g(e.$, "now", e.i(Date.now, !1), y), e.g(e.$, "parse", e.i(Date.parse, !1), y), e.g(e.$, "UTC", e.i(Date.UTC, !1), y), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
1290
1307
  for (var r = 0; r < t.length; r++)
1291
1308
  n = function(o) {
1292
- return function(a) {
1309
+ return function(i) {
1293
1310
  var s = this.data;
1294
1311
  s instanceof Date || w(e, e.j, o + " not called on a Date");
1295
1312
  for (var u = [], d = 0; d < arguments.length; d++)
@@ -1298,14 +1315,14 @@ function Ro(e, t) {
1298
1315
  };
1299
1316
  }(t[r]), W(e, e.$, t[r], n);
1300
1317
  }
1301
- function Po(e, t) {
1318
+ function No(e, t) {
1302
1319
  var n = function(r, o) {
1303
1320
  if (de(e))
1304
- var a = this;
1321
+ var i = this;
1305
1322
  else {
1306
1323
  if (o === void 0 && H(e, r, e.I))
1307
1324
  return r;
1308
- a = e.s(e.Ma);
1325
+ i = e.s(e.Ma);
1309
1326
  }
1310
1327
  r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || w(e, e.T, "Invalid regexp flag: " + o);
1311
1328
  try {
@@ -1313,10 +1330,10 @@ function Po(e, t) {
1313
1330
  } catch (u) {
1314
1331
  w(e, e.T, u.message);
1315
1332
  }
1316
- return qt(e, a, s), a;
1333
+ return qt(e, i, s), i;
1317
1334
  };
1318
1335
  e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
1319
- function a(E) {
1336
+ function i(E) {
1320
1337
  if (E) {
1321
1338
  var S = ue(e, E);
1322
1339
  return e.g(S, "index", E.index), e.g(S, "input", E.input), S;
@@ -1329,22 +1346,22 @@ function Po(e, t) {
1329
1346
  r = We(e, "regexp.exec(string)", {
1330
1347
  string: r,
1331
1348
  regexp: s
1332
- }, s, o), r !== Oe && (e.g(this, "lastIndex", s.lastIndex), o(a(r)));
1349
+ }, s, o), r !== Oe && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
1333
1350
  else {
1334
1351
  var u = e.ha(), d = He(e, s, u, o), k = this;
1335
1352
  u.onmessage = function(E) {
1336
- clearTimeout(d), e.g(k, "lastIndex", E.data[1]), o(a(E.data[0]));
1353
+ clearTimeout(d), e.g(k, "lastIndex", E.data[1]), o(i(E.data[0]));
1337
1354
  }, u.postMessage(["exec", s, s.lastIndex, r]);
1338
1355
  }
1339
1356
  else
1340
- r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(a(r));
1357
+ r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
1341
1358
  }, Ke(e, e.I, "exec", n);
1342
1359
  }
1343
- function No(e, t) {
1360
+ function Bo(e, t) {
1344
1361
  function n(r) {
1345
- var o = e.i(function(a) {
1362
+ var o = e.i(function(i) {
1346
1363
  var s = de(e) ? this : e.Aa(o);
1347
- return Wt(e, s, a), s;
1364
+ return Wt(e, s, i), s;
1348
1365
  }, !0);
1349
1366
  return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
1350
1367
  }
@@ -1353,7 +1370,7 @@ function No(e, t) {
1353
1370
  return Wt(e, o, r), o;
1354
1371
  }, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
1355
1372
  }
1356
- function Bo(e, t) {
1373
+ function Uo(e, t) {
1357
1374
  var n = e.s(e.M);
1358
1375
  e.g(t, "Math", n, y);
1359
1376
  var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
@@ -1367,16 +1384,16 @@ function Mo(e, t) {
1367
1384
  e.g(t, "JSON", n, y), t = function(r) {
1368
1385
  try {
1369
1386
  var o = JSON.parse(String(r));
1370
- } catch (a) {
1371
- w(e, e.T, a.message);
1387
+ } catch (i) {
1388
+ w(e, e.T, i.message);
1372
1389
  }
1373
1390
  return e.Ia(o);
1374
- }, e.g(n, "parse", e.i(t, !1)), t = function(r, o, a) {
1375
- o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = fr(e, o), o = o.filter(function(u) {
1391
+ }, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
1392
+ o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = dr(e, o), o = o.filter(function(u) {
1376
1393
  return typeof u == "string" || typeof u == "number";
1377
- })) : o = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
1394
+ })) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
1378
1395
  try {
1379
- var s = JSON.stringify(r, o, a);
1396
+ var s = JSON.stringify(r, o, i);
1380
1397
  } catch (u) {
1381
1398
  w(e, e.j, u.message);
1382
1399
  }
@@ -1401,33 +1418,33 @@ function qt(e, t, n) {
1401
1418
  function Wt(e, t, n) {
1402
1419
  n && e.g(t, "message", String(n), y), n = [];
1403
1420
  for (var r = e.o.length - 1; 0 <= r; r--) {
1404
- var o = e.o[r], a = o.node;
1405
- a.type === "CallExpression" && (o = o.U) && n.length && (n[n.length - 1].Ob = e.G(o, "name")), !a.X || n.length && a.type !== "CallExpression" || n.push({
1406
- Nb: a.X
1421
+ var o = e.o[r], i = o.node;
1422
+ i.type === "CallExpression" && (o = o.U) && n.length && (n[n.length - 1].Ob = e.G(o, "name")), !i.X || n.length && i.type !== "CallExpression" || n.push({
1423
+ Nb: i.X
1407
1424
  });
1408
1425
  }
1409
- for (r = String(e.G(t, "name")), a = String(e.G(t, "message")), a = r + ": " + a + `
1426
+ for (r = String(e.G(t, "name")), i = String(e.G(t, "message")), i = r + ": " + i + `
1410
1427
  `, r = 0; r < n.length; r++) {
1411
1428
  var s = n[r].Nb;
1412
- o = n[r].Ob, s = s.source + ":" + s.start.line + ":" + s.start.ab, a = o ? a + (" at " + o + " (" + s + `)
1413
- `) : a + (" at " + s + `
1429
+ o = n[r].Ob, s = s.source + ":" + s.start.line + ":" + s.start.ab, i = o ? i + (" at " + o + " (" + s + `)
1430
+ `) : i + (" at " + s + `
1414
1431
  `);
1415
1432
  }
1416
- e.g(t, "stack", a.trim(), y);
1433
+ e.g(t, "stack", i.trim(), y);
1417
1434
  }
1418
1435
  N.ha = function() {
1419
1436
  var e = this.ha.Mb;
1420
- return e || (e = new Blob([ko.join(`
1437
+ return e || (e = new Blob([Co.join(`
1421
1438
  `)], {
1422
1439
  type: "application/javascript"
1423
1440
  }), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
1424
1441
  };
1425
1442
  function We(e, t, n, r, o) {
1426
- var a = {
1443
+ var i = {
1427
1444
  timeout: e.REGEXP_THREAD_TIMEOUT
1428
1445
  };
1429
1446
  try {
1430
- return fe.runInNewContext(t, n, a);
1447
+ return fe.runInNewContext(t, n, i);
1431
1448
  } catch {
1432
1449
  o(null), w(e, e.D, "RegExp Timeout: " + r);
1433
1450
  }
@@ -1506,8 +1523,8 @@ N.Ia = function(e) {
1506
1523
  if (typeof e == "function") {
1507
1524
  var n = this;
1508
1525
  return t = Object.getOwnPropertyDescriptor(e, "prototype"), this.i(function() {
1509
- var o = Array.prototype.slice.call(arguments).map(function(a) {
1510
- return n.R(a);
1526
+ var o = Array.prototype.slice.call(arguments).map(function(i) {
1527
+ return n.R(i);
1511
1528
  });
1512
1529
  return o = e.apply(n, o), n.Ia(o);
1513
1530
  }, !!t);
@@ -1558,7 +1575,7 @@ function ue(e, t) {
1558
1575
  e.g(n, r[o], t[r[o]]);
1559
1576
  return n;
1560
1577
  }
1561
- function fr(e, t) {
1578
+ function dr(e, t) {
1562
1579
  var n = [], r;
1563
1580
  for (r in t.h)
1564
1581
  n[r] = e.G(t, r);
@@ -1618,26 +1635,26 @@ N.g = function(e, t, n, r) {
1618
1635
  var o = !this.o || en(this).S;
1619
1636
  if (e instanceof R) {
1620
1637
  if (H(this, e, this.J)) {
1621
- var a = Xe(t);
1622
- if (t === "length" || !isNaN(a) && a < String(e).length) {
1638
+ var i = Xe(t);
1639
+ if (t === "length" || !isNaN(i) && i < String(e).length) {
1623
1640
  o && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
1624
1641
  return;
1625
1642
  }
1626
1643
  }
1627
1644
  if (e.H === "Array")
1628
- if (a = e.h.length, t === "length") {
1645
+ if (i = e.h.length, t === "length") {
1629
1646
  if (r) {
1630
1647
  if (!("value" in r))
1631
1648
  return;
1632
1649
  n = r.value;
1633
1650
  }
1634
- if (n = zt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < a)
1651
+ if (n = zt(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < i)
1635
1652
  for (s in e.h) {
1636
1653
  var s = Xe(s);
1637
1654
  !isNaN(s) && n <= s && delete e.h[s];
1638
1655
  }
1639
1656
  } else
1640
- isNaN(s = Xe(t)) || (e.h.length = Math.max(a, s + 1));
1657
+ isNaN(s = Xe(t)) || (e.h.length = Math.max(i, s + 1));
1641
1658
  if (!e.preventExtensions || t in e.h)
1642
1659
  if (r) {
1643
1660
  o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Ye && (o.value = n, delete e.V[t], delete e.Y[t]);
@@ -1696,12 +1713,12 @@ function $t(e, t, n) {
1696
1713
  var o = t.body && t.body[0];
1697
1714
  o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
1698
1715
  }
1699
- return o = e.s(null), r = new hr(n, r, o), n || Co(e, r.object), Je(e, t, r), r;
1716
+ return o = e.s(null), r = new gr(n, r, o), n || Eo(e, r.object), Je(e, t, r), r;
1700
1717
  }
1701
1718
  function tn(e, t, n) {
1702
1719
  if (!t)
1703
1720
  throw Error("parentScope required");
1704
- return e = n || e.s(null), new hr(t, t.S, e);
1721
+ return e = n || e.s(null), new gr(t, t.S, e);
1705
1722
  }
1706
1723
  function nn(e, t) {
1707
1724
  for (var n = en(e); n && n !== e.N; ) {
@@ -1713,7 +1730,7 @@ function nn(e, t) {
1713
1730
  return e.G(n.object, t);
1714
1731
  n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
1715
1732
  }
1716
- function pr(e, t, n) {
1733
+ function hr(e, t, n) {
1717
1734
  for (var r = en(e), o = r.S; r && r !== e.N; ) {
1718
1735
  if (t in r.object.h) {
1719
1736
  try {
@@ -1754,19 +1771,19 @@ function Je(e, t, n) {
1754
1771
  case "TryStatement":
1755
1772
  case "WithStatement":
1756
1773
  case "WhileStatement":
1757
- var a = t.constructor, s;
1774
+ var i = t.constructor, s;
1758
1775
  for (s in t)
1759
1776
  if (s !== "loc") {
1760
1777
  var u = t[s];
1761
1778
  if (u && typeof u == "object") {
1762
1779
  if (Array.isArray(u)) {
1763
1780
  for (o = 0; o < u.length; o++)
1764
- if (u[o] && u[o].constructor === a) {
1781
+ if (u[o] && u[o].constructor === i) {
1765
1782
  var d = Je(e, u[o], n);
1766
1783
  for (s in d)
1767
1784
  r[s] = d[s];
1768
1785
  }
1769
- } else if (u.constructor === a)
1786
+ } else if (u.constructor === i)
1770
1787
  for (s in d = Je(e, u, n), d)
1771
1788
  r[s] = d[s];
1772
1789
  }
@@ -1785,10 +1802,10 @@ function rn(e, t) {
1785
1802
  return t[0] === Pe ? nn(e, t[1]) : e.G(t[0], t[1]);
1786
1803
  }
1787
1804
  function on(e, t, n) {
1788
- return t[0] === Pe ? pr(e, t[1], n) : e.g(t[0], t[1], n);
1805
+ return t[0] === Pe ? hr(e, t[1], n) : e.g(t[0], t[1], n);
1789
1806
  }
1790
1807
  function w(e, t, n) {
1791
- throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t), ur) : n === void 0 ? t : n;
1808
+ throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t), pr) : n === void 0 ? t : n;
1792
1809
  }
1793
1810
  function ze(e, t, n, r) {
1794
1811
  if (t === 0)
@@ -1796,10 +1813,10 @@ function ze(e, t, n, r) {
1796
1813
  var o = e.o;
1797
1814
  e:
1798
1815
  for (; 0 < o.length; o.pop()) {
1799
- var a = o[o.length - 1];
1800
- switch (a.node.type) {
1816
+ var i = o[o.length - 1];
1817
+ switch (i.node.type) {
1801
1818
  case "TryStatement":
1802
- a.ea = {
1819
+ i.ea = {
1803
1820
  type: t,
1804
1821
  value: n,
1805
1822
  label: r
@@ -1808,22 +1825,22 @@ function ze(e, t, n, r) {
1808
1825
  case "CallExpression":
1809
1826
  case "NewExpression":
1810
1827
  if (t === 3) {
1811
- a.value = n;
1828
+ i.value = n;
1812
1829
  return;
1813
1830
  }
1814
1831
  if (t !== 4)
1815
1832
  throw Error("Unsynatctic break/continue not rejected by Acorn");
1816
1833
  break;
1817
1834
  case "Program":
1818
- a.done = !0;
1835
+ i.done = !0;
1819
1836
  break e;
1820
1837
  }
1821
1838
  if (t === 1) {
1822
- if (r ? a.labels && a.labels.indexOf(r) !== -1 : a.W || a.Zb) {
1839
+ if (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W || i.Zb) {
1823
1840
  o.pop();
1824
1841
  return;
1825
1842
  }
1826
- } else if (t === 2 && (r ? a.labels && a.labels.indexOf(r) !== -1 : a.W))
1843
+ } else if (t === 2 && (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W))
1827
1844
  return;
1828
1845
  }
1829
1846
  throw H(e, n, e.D) ? (t = {
@@ -1867,23 +1884,23 @@ function Y(e, t) {
1867
1884
  return "???";
1868
1885
  }
1869
1886
  function Kn(e, t, n) {
1870
- var r = e.o[e.o.length - 1], o = Array.from(n), a = o.shift();
1887
+ var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
1871
1888
  n = Math.max(Number(o.shift() || 0), 0);
1872
1889
  var s = e.ya();
1873
- if (a instanceof R && a.H === "Function") {
1874
- var u = a;
1890
+ if (i instanceof R && i.H === "Function") {
1891
+ var u = i;
1875
1892
  s.type = "CallExpression", r = r.scope;
1876
1893
  } else {
1877
1894
  try {
1878
- var d = je(String(a), "taskCode" + e.ic++);
1895
+ var d = je(String(i), "taskCode" + e.ic++);
1879
1896
  } catch (k) {
1880
1897
  w(e, e.T, "Invalid code: " + k.message);
1881
1898
  }
1882
1899
  s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
1883
1900
  }
1884
- return t = new Uo(u, o, r, s, t ? n : -1), dr(e, t, n), t.Db;
1901
+ return t = new Fo(u, o, r, s, t ? n : -1), mr(e, t, n), t.Db;
1885
1902
  }
1886
- function dr(e, t, n) {
1903
+ function mr(e, t, n) {
1887
1904
  t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
1888
1905
  return r.time - o.time;
1889
1906
  });
@@ -1909,7 +1926,7 @@ function an(e, t, n, r) {
1909
1926
  var o = e.ya();
1910
1927
  return o.type = "CallExpression", e = new b(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
1911
1928
  }
1912
- function Dt(e, t) {
1929
+ function Vt(e, t) {
1913
1930
  return t == null ? e.Na : t instanceof R ? t : (e = e.s(pe(e, t)), e.data = t, e);
1914
1931
  }
1915
1932
  N.Xb = function() {
@@ -1924,7 +1941,7 @@ N.ec = function(e) {
1924
1941
  function b(e, t) {
1925
1942
  this.node = e, this.scope = t;
1926
1943
  }
1927
- function hr(e, t, n) {
1944
+ function gr(e, t, n) {
1928
1945
  this.Va = e, this.S = t, this.object = n;
1929
1946
  }
1930
1947
  function R(e) {
@@ -1946,8 +1963,8 @@ N.toString = function() {
1946
1963
  var t = [], n = this.h.length, r = !1;
1947
1964
  1024 < n && (n = 1e3, r = !0);
1948
1965
  for (var o = 0; o < n; o++) {
1949
- var a = this.h[o];
1950
- t[o] = a instanceof R && e.indexOf(a) !== -1 ? "..." : a;
1966
+ var i = this.h[o];
1967
+ t[o] = i instanceof R && e.indexOf(i) !== -1 ? "..." : i;
1951
1968
  }
1952
1969
  r && t.push("...");
1953
1970
  } finally {
@@ -1985,10 +2002,10 @@ N.toString = function() {
1985
2002
  N.valueOf = function() {
1986
2003
  return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
1987
2004
  };
1988
- function Uo(e, t, n, r, o) {
1989
- this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Fo, this.time = 0;
2005
+ function Fo(e, t, n, r, o) {
2006
+ this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Do, this.time = 0;
1990
2007
  }
1991
- var Fo = 0;
2008
+ var Do = 0;
1992
2009
  h.prototype.stepArrayExpression = function(e, t, n) {
1993
2010
  n = n.elements;
1994
2011
  var r = t.A || 0;
@@ -2162,8 +2179,8 @@ h.prototype.stepCallExpression = function(e, t, n) {
2162
2179
  if (o instanceof R && !o.Ab || w(this, this.j, Y(this, n.callee) + " is not a constructor"), o === this.qa)
2163
2180
  t.B = Re(this);
2164
2181
  else {
2165
- var a = o.h.prototype;
2166
- (typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
2182
+ var i = o.h.prototype;
2183
+ (typeof i != "object" || i === null) && (i = this.M), t.B = this.s(i);
2167
2184
  }
2168
2185
  t.isConstructor = !0;
2169
2186
  }
@@ -2177,7 +2194,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
2177
2194
  this.g(r, o, t.F[o]);
2178
2195
  for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
2179
2196
  this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
2180
- return n.S || (t.B = Dt(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new b(e.body, n);
2197
+ return n.S || (t.B = Vt(this, t.B)), this.g(n.object, "this", t.B, Jt), t.value = void 0, new b(e.body, n);
2181
2198
  }
2182
2199
  if (o.eval)
2183
2200
  if (o = t.F[0], typeof o != "string")
@@ -2191,12 +2208,12 @@ h.prototype.stepCallExpression = function(e, t, n) {
2191
2208
  return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Je(this, r, n), this.value = void 0, new b(o, n);
2192
2209
  }
2193
2210
  else if (o.Ta)
2194
- t.scope.S || (t.B = Dt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
2211
+ t.scope.S || (t.B = Vt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
2195
2212
  else if (o.Za) {
2196
2213
  var s = this;
2197
2214
  r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
2198
2215
  t.value = u, s.za = !1;
2199
- }), this.za = !0, t.scope.S || (t.B = Dt(this, t.B)), o.Za.apply(t.B, r);
2216
+ }), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), o.Za.apply(t.B, r);
2200
2217
  } else
2201
2218
  w(this, this.j, Y(this, n.callee) + " is not callable");
2202
2219
  }
@@ -2359,19 +2376,19 @@ h.prototype.stepNewExpression = h.prototype.stepCallExpression;
2359
2376
  h.prototype.stepObjectExpression = function(e, t, n) {
2360
2377
  var r = t.A || 0, o = n.h[r];
2361
2378
  if (t.u) {
2362
- var a = t.Pa;
2363
- t.Ja[a] || (t.Ja[a] = {}), t.Ja[a][o.kind] = t.value, t.A = ++r, o = n.h[r];
2379
+ var i = t.Pa;
2380
+ t.Ja[i] || (t.Ja[i] = {}), t.Ja[i][o.kind] = t.value, t.A = ++r, o = n.h[r];
2364
2381
  } else
2365
2382
  t.u = this.s(this.M), t.Ja = /* @__PURE__ */ Object.create(null);
2366
2383
  if (o) {
2367
2384
  var s = o.key;
2368
2385
  if (s.type === "Identifier")
2369
- a = s.name;
2386
+ i = s.name;
2370
2387
  else if (s.type === "Literal")
2371
- a = s.value;
2388
+ i = s.value;
2372
2389
  else
2373
2390
  throw SyntaxError("Unknown object structure: " + s.type);
2374
- return t.Pa = a, new b(o.value, t.scope);
2391
+ return t.Pa = i, new b(o.value, t.scope);
2375
2392
  }
2376
2393
  for (s in t.Ja)
2377
2394
  n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Ye, {
@@ -2410,9 +2427,9 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
2410
2427
  return t.Fb = !0, new b(o.test, t.scope);
2411
2428
  if (t.Ha || t.value === t.hc) {
2412
2429
  t.Ha = !0;
2413
- var a = t.A || 0;
2414
- if (o.da[a])
2415
- return t.Zb = !0, t.A = a + 1, new b(o.da[a], t.scope);
2430
+ var i = t.A || 0;
2431
+ if (o.da[i])
2432
+ return t.Zb = !0, t.A = i + 1, new b(o.da[i], t.scope);
2416
2433
  }
2417
2434
  t.Fb = !1, t.A = 0, t.gb = r + 1;
2418
2435
  } else {
@@ -2509,7 +2526,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
2509
2526
  h.prototype.stepVariableDeclaration = function(e, t, n) {
2510
2527
  n = n.fa;
2511
2528
  var r = t.A || 0, o = n[r];
2512
- for (t.Bb && o && (pr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
2529
+ for (t.Bb && o && (hr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
2513
2530
  if (o.ua)
2514
2531
  return t.A = r, t.Bb = !0, t.Pa = o.id.name, new b(o.ua, t.scope);
2515
2532
  o = n[++r];
@@ -2543,25 +2560,25 @@ const Vo = (e) => e.split(`
2543
2560
  return;
2544
2561
  if (!n.startsWith("state."))
2545
2562
  return t;
2546
- const [o, a] = n.split("="), u = `setRootState('${o.replace("state.", "").trim()}', ${a.trim()})`;
2563
+ const [o, i] = n.split("="), u = `setRootState('${o.replace("state.", "").trim()}', ${i.trim()})`;
2547
2564
  return `
2548
2565
  ${t}
2549
2566
  ${u}
2550
2567
  `;
2551
2568
  }).filter(Boolean).join(`
2552
- `), Xn = (e) => e + "JSON", Do = ({
2569
+ `), Xn = (e) => e + "JSON", _o = ({
2553
2570
  builder: e,
2554
2571
  context: t,
2555
2572
  event: n,
2556
2573
  rootState: r,
2557
2574
  localState: o,
2558
- rootSetState: a,
2575
+ rootSetState: i,
2559
2576
  code: s
2560
2577
  }) => {
2561
2578
  const u = {
2562
2579
  ...r,
2563
2580
  ...o
2564
- }, d = lr({
2581
+ }, d = cr({
2565
2582
  builder: e,
2566
2583
  context: t,
2567
2584
  event: n,
@@ -2583,8 +2600,8 @@ function theFunction() {
2583
2600
  }
2584
2601
  theFunction();
2585
2602
  `, P = (v, x) => {
2586
- const B = cr(u, v, x);
2587
- a == null || a(B);
2603
+ const B = fr(u, v, x);
2604
+ i == null || i(B);
2588
2605
  }, j = function(v, x) {
2589
2606
  d.forEach(([B, $]) => {
2590
2607
  const m = JSON.stringify($);
@@ -2601,24 +2618,24 @@ theFunction();
2601
2618
  return;
2602
2619
  }
2603
2620
  }, oe = (e) => e != null;
2604
- function _o() {
2621
+ function Lo() {
2605
2622
  var e;
2606
2623
  return typeof process < "u" && oe((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
2607
2624
  }
2608
- const Lo = () => {
2625
+ const Wo = () => {
2609
2626
  var r;
2610
- if (!_o())
2627
+ if (!Lo())
2611
2628
  return !1;
2612
2629
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
2613
2630
  return e && t && !n ? (z.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
2614
- }, Wo = (e) => G() || Lo() ? So(e) : Do(e);
2631
+ }, $o = (e) => G() || Wo() ? xo(e) : _o(e);
2615
2632
  function sn({
2616
2633
  code: e,
2617
2634
  context: t,
2618
2635
  localState: n,
2619
2636
  rootState: r,
2620
2637
  rootSetState: o,
2621
- event: a,
2638
+ event: i,
2622
2639
  isExpression: s = !0
2623
2640
  }) {
2624
2641
  if (e === "") {
@@ -2626,18 +2643,18 @@ function sn({
2626
2643
  return;
2627
2644
  }
2628
2645
  const u = {
2629
- code: bo(e, {
2646
+ code: wo(e, {
2630
2647
  isExpression: s
2631
2648
  }),
2632
- builder: vo(),
2649
+ builder: So(),
2633
2650
  context: t,
2634
- event: a,
2651
+ event: i,
2635
2652
  rootSetState: o,
2636
2653
  rootState: r,
2637
2654
  localState: n
2638
2655
  };
2639
2656
  try {
2640
- return Wo(u);
2657
+ return $o(u);
2641
2658
  } catch (d) {
2642
2659
  z.error("Failed code evaluation: " + d.message, {
2643
2660
  code: e
@@ -2646,7 +2663,7 @@ function sn({
2646
2663
  }
2647
2664
  }
2648
2665
  const pt = (e) => JSON.parse(JSON.stringify(e));
2649
- const $o = ({
2666
+ const Ho = ({
2650
2667
  block: e,
2651
2668
  context: t,
2652
2669
  localState: n,
@@ -2655,13 +2672,13 @@ const $o = ({
2655
2672
  }) => {
2656
2673
  if (!e.bindings)
2657
2674
  return e;
2658
- const a = pt(e), s = {
2659
- ...a,
2675
+ const i = pt(e), s = {
2676
+ ...i,
2660
2677
  properties: {
2661
- ...a.properties
2678
+ ...i.properties
2662
2679
  },
2663
2680
  actions: {
2664
- ...a.actions
2681
+ ...i.actions
2665
2682
  }
2666
2683
  };
2667
2684
  for (const u in e.bindings) {
@@ -2672,7 +2689,7 @@ const $o = ({
2672
2689
  rootSetState: o,
2673
2690
  context: t
2674
2691
  });
2675
- cr(s, u, k);
2692
+ fr(s, u, k);
2676
2693
  }
2677
2694
  return s;
2678
2695
  };
@@ -2682,31 +2699,31 @@ function ct({
2682
2699
  shouldEvaluateBindings: n,
2683
2700
  localState: r,
2684
2701
  rootState: o,
2685
- rootSetState: a
2702
+ rootSetState: i
2686
2703
  }) {
2687
2704
  const s = e;
2688
- return n ? $o({
2705
+ return n ? Ho({
2689
2706
  block: s,
2690
2707
  localState: r,
2691
2708
  rootState: o,
2692
- rootSetState: a,
2709
+ rootSetState: i,
2693
2710
  context: t
2694
2711
  }) : s;
2695
2712
  }
2696
- const Ho = ({
2713
+ const Ko = ({
2697
2714
  block: e,
2698
2715
  context: t,
2699
2716
  registeredComponents: n
2700
2717
  }) => {
2701
- var a;
2702
- const r = (a = ct({
2718
+ var i;
2719
+ const r = (i = ct({
2703
2720
  block: e,
2704
2721
  localState: t.localState,
2705
2722
  rootState: t.rootState,
2706
2723
  rootSetState: t.rootSetState,
2707
2724
  context: t.context,
2708
2725
  shouldEvaluateBindings: !1
2709
- }).component) == null ? void 0 : a.name;
2726
+ }).component) == null ? void 0 : i.name;
2710
2727
  if (!r)
2711
2728
  return null;
2712
2729
  const o = n[r];
@@ -2715,7 +2732,7 @@ const Ho = ({
2715
2732
  console.warn(`
2716
2733
  Could not find a registered component named "${r}".
2717
2734
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
2718
- }, Ko = ({
2735
+ }, Go = ({
2719
2736
  block: e,
2720
2737
  context: t
2721
2738
  }) => {
@@ -2734,7 +2751,7 @@ const Ho = ({
2734
2751
  });
2735
2752
  if (!Array.isArray(o))
2736
2753
  return;
2737
- const a = n.collection.split(".").pop(), s = n.itemName || (a ? a + "Item" : "item");
2754
+ const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
2738
2755
  return o.map((d, k) => ({
2739
2756
  context: {
2740
2757
  ...t,
@@ -2748,7 +2765,7 @@ const Ho = ({
2748
2765
  },
2749
2766
  block: r
2750
2767
  }));
2751
- }, mr = {
2768
+ }, yr = {
2752
2769
  small: {
2753
2770
  min: 320,
2754
2771
  default: 321,
@@ -2764,11 +2781,11 @@ const Ho = ({
2764
2781
  default: 991,
2765
2782
  max: 1200
2766
2783
  }
2767
- }, Yn = (e, t = mr) => `@media (max-width: ${t[e].max}px)`, gr = ({
2784
+ }, Yn = (e, t = yr) => `@media (max-width: ${t[e].max}px)`, vr = ({
2768
2785
  small: e,
2769
2786
  medium: t
2770
2787
  }) => {
2771
- const n = pt(mr);
2788
+ const n = pt(yr);
2772
2789
  if (!e || !t)
2773
2790
  return n;
2774
2791
  const r = Math.floor(e / 2);
@@ -2783,24 +2800,24 @@ const Ho = ({
2783
2800
  min: o,
2784
2801
  default: o + 1
2785
2802
  };
2786
- const a = n.medium.max + 1;
2803
+ const i = n.medium.max + 1;
2787
2804
  return n.large = {
2788
2805
  max: 2e3,
2789
2806
  // TODO: decide upper limit
2790
- min: a,
2791
- default: a + 1
2807
+ min: i,
2808
+ default: i + 1
2792
2809
  }, n;
2793
- }, Go = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), yr = (e) => Object.entries(e).map(([n, r]) => {
2810
+ }, Xo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), br = (e) => Object.entries(e).map(([n, r]) => {
2794
2811
  if (typeof r == "string")
2795
- return `${Go(n)}: ${r};`;
2796
- }).filter(oe), Xo = (e) => yr(e).join(`
2812
+ return `${Xo(n)}: ${r};`;
2813
+ }).filter(oe), Yo = (e) => br(e).join(`
2797
2814
  `), _t = ({
2798
2815
  mediaQuery: e,
2799
2816
  className: t,
2800
2817
  styles: n
2801
2818
  }) => {
2802
2819
  const r = `.${t} {
2803
- ${Xo(n)}
2820
+ ${Yo(n)}
2804
2821
  }`;
2805
2822
  return e ? `${e} {
2806
2823
  ${r}
@@ -2809,7 +2826,7 @@ const Ho = ({
2809
2826
  function dt(e) {
2810
2827
  return /* @__PURE__ */ C("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
2811
2828
  }
2812
- function Yo(e) {
2829
+ function Jo(e) {
2813
2830
  const t = function() {
2814
2831
  const o = ct({
2815
2832
  block: e.block,
@@ -2829,9 +2846,9 @@ function Yo(e) {
2829
2846
  rootSetState: e.context.rootSetState,
2830
2847
  context: e.context.context,
2831
2848
  shouldEvaluateBindings: !0
2832
- }), a = o.responsiveStyles, s = e.context.content, u = gr(
2849
+ }), i = o.responsiveStyles, s = e.context.content, u = vr(
2833
2850
  ((x = s == null ? void 0 : s.meta) == null ? void 0 : x.breakpoints) || {}
2834
- ), d = a == null ? void 0 : a.large, k = a == null ? void 0 : a.medium, E = a == null ? void 0 : a.small, S = o.id;
2851
+ ), d = i == null ? void 0 : i.large, k = i == null ? void 0 : i.medium, E = i == null ? void 0 : i.small, S = o.id;
2835
2852
  if (!S)
2836
2853
  return "";
2837
2854
  const P = d ? _t({
@@ -2856,10 +2873,10 @@ function Yo(e) {
2856
2873
  };
2857
2874
  return /* @__PURE__ */ C(L, { children: n() && t() ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
2858
2875
  }
2859
- function Jo(e) {
2876
+ function zo(e) {
2860
2877
  return e.charAt(0).toUpperCase() + e.slice(1);
2861
2878
  }
2862
- const zo = (e) => `on${Jo(e)}`, qo = (e, t) => (n) => sn({
2879
+ const qo = (e) => `on${zo(e)}`, Zo = (e, t) => (n) => sn({
2863
2880
  code: e,
2864
2881
  context: t.context,
2865
2882
  localState: t.localState,
@@ -2868,45 +2885,45 @@ const zo = (e) => `on${Jo(e)}`, qo = (e, t) => (n) => sn({
2868
2885
  event: n,
2869
2886
  isExpression: !1
2870
2887
  });
2871
- function Ba(e) {
2888
+ function Va(e) {
2872
2889
  const t = {}, n = e.block.actions ?? {};
2873
2890
  for (const r in n) {
2874
2891
  if (!n.hasOwnProperty(r))
2875
2892
  continue;
2876
2893
  const o = n[r];
2877
- let a = zo(r);
2894
+ let i = qo(r);
2878
2895
  if (e.stripPrefix)
2879
2896
  switch (he) {
2880
2897
  case "vue":
2881
- a = a.replace("v-on:", "");
2898
+ i = i.replace("v-on:", "");
2882
2899
  break;
2883
2900
  case "svelte":
2884
- a = a.replace("on:", "");
2901
+ i = i.replace("on:", "");
2885
2902
  break;
2886
2903
  }
2887
- t[a] = qo(o, e);
2904
+ t[i] = Zo(o, e);
2888
2905
  }
2889
2906
  return t;
2890
2907
  }
2891
- function Zo({
2908
+ function Qo({
2892
2909
  style: e
2893
2910
  }) {
2894
2911
  return e;
2895
2912
  }
2896
- const Qo = ({
2913
+ const ei = ({
2897
2914
  block: e,
2898
2915
  context: t
2899
- }) => vr(Zo({
2916
+ }) => Sr(Qo({
2900
2917
  style: e.style || {},
2901
2918
  context: t,
2902
2919
  block: e
2903
2920
  }));
2904
- function vr(e) {
2921
+ function Sr(e) {
2905
2922
  switch (he) {
2906
2923
  case "svelte":
2907
2924
  case "vue":
2908
2925
  case "solid":
2909
- return yr(e).join(" ");
2926
+ return br(e).join(" ");
2910
2927
  case "qwik":
2911
2928
  case "reactNative":
2912
2929
  case "react":
@@ -2914,42 +2931,42 @@ function vr(e) {
2914
2931
  return e;
2915
2932
  }
2916
2933
  }
2917
- function ei({
2934
+ function ti({
2918
2935
  properties: e
2919
2936
  }) {
2920
2937
  return e;
2921
2938
  }
2922
- const ti = (e) => ({
2939
+ const ni = (e) => ({
2923
2940
  href: e.href
2924
2941
  });
2925
- function ni({
2942
+ function ri({
2926
2943
  block: e,
2927
2944
  context: t
2928
2945
  }) {
2929
2946
  var r;
2930
2947
  const n = {
2931
- ...ti(e),
2948
+ ...ni(e),
2932
2949
  ...e.properties,
2933
2950
  "builder-id": e.id,
2934
- style: Qo({
2951
+ style: ei({
2935
2952
  block: e,
2936
2953
  context: t
2937
2954
  }),
2938
2955
  [Xt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
2939
2956
  };
2940
- return ei({
2957
+ return ti({
2941
2958
  properties: n,
2942
2959
  context: t,
2943
2960
  block: e
2944
2961
  });
2945
2962
  }
2946
- const ri = ({
2963
+ const oi = ({
2947
2964
  componentOptions: e,
2948
2965
  builderBlock: t,
2949
2966
  context: n,
2950
2967
  componentRef: r,
2951
2968
  includeBlockProps: o,
2952
- isInteractive: a,
2969
+ isInteractive: i,
2953
2970
  contextValue: s
2954
2971
  }) => {
2955
2972
  const u = {
@@ -2959,13 +2976,13 @@ const ri = ({
2959
2976
  * component itself directly. Otherwise, they are provided to the wrapper element.
2960
2977
  */
2961
2978
  ...o ? {
2962
- attributes: ni({
2979
+ attributes: ri({
2963
2980
  block: t,
2964
2981
  context: s
2965
2982
  })
2966
2983
  } : {}
2967
2984
  };
2968
- return a ? {
2985
+ return i ? {
2969
2986
  Wrapper: r,
2970
2987
  block: t,
2971
2988
  context: n,
@@ -2975,11 +2992,11 @@ const ri = ({
2975
2992
  };
2976
2993
  function Jn(e) {
2977
2994
  var n;
2978
- const t = e.isInteractive ? Qr : e.componentRef;
2995
+ const t = e.isInteractive ? to : e.componentRef;
2979
2996
  return /* @__PURE__ */ C(L, { children: e.componentRef ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
2980
2997
  t,
2981
2998
  {
2982
- ...ri({
2999
+ ...oi({
2983
3000
  componentOptions: e.componentOptions,
2984
3001
  builderBlock: e.builderBlock,
2985
3002
  context: e.context,
@@ -3002,7 +3019,7 @@ function Jn(e) {
3002
3019
  }
3003
3020
  ) }) : null });
3004
3021
  }
3005
- function oi(e) {
3022
+ function ii(e) {
3006
3023
  const t = e.repeatContext;
3007
3024
  return /* @__PURE__ */ C(
3008
3025
  ht,
@@ -3017,13 +3034,13 @@ function oi(e) {
3017
3034
  function ht(e) {
3018
3035
  var k, E, S;
3019
3036
  const t = function() {
3020
- return Ho({
3037
+ return Ko({
3021
3038
  block: e.block,
3022
3039
  context: e.context,
3023
3040
  registeredComponents: e.registeredComponents
3024
3041
  });
3025
3042
  }, n = function() {
3026
- return Ko({
3043
+ return Go({
3027
3044
  block: e.block,
3028
3045
  context: e.context
3029
3046
  });
@@ -3040,7 +3057,7 @@ function ht(e) {
3040
3057
  }, o = function() {
3041
3058
  var v;
3042
3059
  return e.block.tagName === "a" || ((v = r().properties) == null ? void 0 : v.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
3043
- }, a = function() {
3060
+ }, i = function() {
3044
3061
  var x, B;
3045
3062
  if ((x = e.block.repeat) != null && x.collection)
3046
3063
  return !!((B = n()) != null && B.length);
@@ -3055,7 +3072,7 @@ function ht(e) {
3055
3072
  blockChildren: r().children ?? [],
3056
3073
  componentRef: (j = t()) == null ? void 0 : j.component,
3057
3074
  componentOptions: {
3058
- ...ho(r()),
3075
+ ...go(r()),
3059
3076
  builderContext: e.context,
3060
3077
  ...((v = t()) == null ? void 0 : v.name) === "Core:Button" || ((x = t()) == null ? void 0 : x.name) === "Symbol" || ((B = t()) == null ? void 0 : B.name) === "Columns" ? {
3061
3078
  builderLinkComponent: e.linkComponent
@@ -3072,8 +3089,8 @@ function ht(e) {
3072
3089
  isInteractive: !((te = t()) != null && te.isRSC)
3073
3090
  };
3074
3091
  }, d = e.context;
3075
- return /* @__PURE__ */ C(L, { children: a() ? /* @__PURE__ */ xe(L, { children: [
3076
- /* @__PURE__ */ C(Yo, { block: e.block, context: e.context }),
3092
+ return /* @__PURE__ */ C(L, { children: i() ? /* @__PURE__ */ xe(L, { children: [
3093
+ /* @__PURE__ */ C(Jo, { block: e.block, context: e.context }),
3077
3094
  (k = t()) != null && k.noWrap ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
3078
3095
  Jn,
3079
3096
  {
@@ -3088,7 +3105,7 @@ function ht(e) {
3088
3105
  isInteractive: u().isInteractive
3089
3106
  }
3090
3107
  ) }) : /* @__PURE__ */ C(L, { children: n() ? /* @__PURE__ */ C(L, { children: (S = n()) == null ? void 0 : S.map((P, j) => /* @__PURE__ */ C(
3091
- oi,
3108
+ ii,
3092
3109
  {
3093
3110
  repeatContext: P.context,
3094
3111
  block: P.block,
@@ -3097,7 +3114,7 @@ function ht(e) {
3097
3114
  },
3098
3115
  j
3099
3116
  )) }) : /* @__PURE__ */ C(L, { children: /* @__PURE__ */ xe(
3100
- eo,
3117
+ no,
3101
3118
  {
3102
3119
  Wrapper: o(),
3103
3120
  block: r(),
@@ -3136,7 +3153,7 @@ function ht(e) {
3136
3153
  function mt(e) {
3137
3154
  var t, n, r;
3138
3155
  return /* @__PURE__ */ C(
3139
- to,
3156
+ ro,
3140
3157
  {
3141
3158
  blocks: e.blocks,
3142
3159
  parent: e.parent,
@@ -3157,12 +3174,12 @@ function mt(e) {
3157
3174
  }
3158
3175
  );
3159
3176
  }
3160
- function ii(e) {
3177
+ function ai(e) {
3161
3178
  var j;
3162
3179
  const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(x) {
3163
3180
  var B;
3164
3181
  return ((B = n[x]) == null ? void 0 : B.width) || 100 / n.length;
3165
- }, a = function(x) {
3182
+ }, i = function(x) {
3166
3183
  const B = t * (n.length - 1) / n.length;
3167
3184
  return `calc(${o(x)}% - ${B}px)`;
3168
3185
  }, s = function({
@@ -3184,7 +3201,7 @@ function ii(e) {
3184
3201
  })
3185
3202
  };
3186
3203
  }, E = function(x) {
3187
- const B = x === 0 ? 0 : t, $ = a(x), m = `${B}px`, ee = "100%", te = 0;
3204
+ const B = x === 0 ? 0 : t, $ = i(x), m = `${B}px`, ee = "100%", te = 0;
3188
3205
  return {
3189
3206
  ...{
3190
3207
  display: "flex",
@@ -3212,7 +3229,7 @@ function ii(e) {
3212
3229
  };
3213
3230
  }, S = function(x) {
3214
3231
  var $, m;
3215
- return gr(
3232
+ return vr(
3216
3233
  ((m = ($ = e.builderContext.content) == null ? void 0 : $.meta) == null ? void 0 : m.breakpoints) || {}
3217
3234
  )[x].max;
3218
3235
  }, P = function() {
@@ -3251,7 +3268,7 @@ function ii(e) {
3251
3268
  children: [
3252
3269
  /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(dt, { styles: P() }) }),
3253
3270
  (j = e.columns) == null ? void 0 : j.map((v, x) => /* @__PURE__ */ C(
3254
- no,
3271
+ oo,
3255
3272
  {
3256
3273
  TagName: v.link ? e.builderLinkComponent || "a" : "div",
3257
3274
  actionAttributes: {},
@@ -3260,7 +3277,7 @@ function ii(e) {
3260
3277
  href: v.link
3261
3278
  } : {},
3262
3279
  [Xt()]: "builder-column",
3263
- style: vr(E(x))
3280
+ style: Sr(E(x))
3264
3281
  },
3265
3282
  children: /* @__PURE__ */ C(
3266
3283
  mt,
@@ -3291,39 +3308,39 @@ function ii(e) {
3291
3308
  function zn(e) {
3292
3309
  return e.replace(/http(s)?:/, "");
3293
3310
  }
3294
- function ai(e = "", t, n) {
3311
+ function si(e = "", t, n) {
3295
3312
  const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
3296
3313
  return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
3297
3314
  }
3298
- function si(e, t) {
3315
+ function li(e, t) {
3299
3316
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
3300
3317
  return e;
3301
3318
  if (t === "master")
3302
3319
  return zn(e);
3303
3320
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
3304
3321
  if (n) {
3305
- const r = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
3306
- return zn(`${r[0]}_${a}${o}`);
3322
+ const r = e.split(n[0]), o = n[3], i = t.match("x") ? t : `${t}x`;
3323
+ return zn(`${r[0]}_${i}${o}`);
3307
3324
  }
3308
3325
  return null;
3309
3326
  }
3310
- function Ma(e) {
3327
+ function _a(e) {
3311
3328
  if (!e)
3312
3329
  return e;
3313
3330
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
3314
3331
  if (e.match(/builder\.io/)) {
3315
3332
  let n = e;
3316
3333
  const r = Number(e.split("?width=")[1]);
3317
- return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${ai(e, "width", o)} ${o}w`).concat([n]).join(", ");
3334
+ return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${si(e, "width", o)} ${o}w`).concat([n]).join(", ");
3318
3335
  }
3319
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [si(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
3336
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [li(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
3320
3337
  }
3321
- const li = (e) => {
3338
+ const ci = (e) => {
3322
3339
  if (e === "localhost" || e === "127.0.0.1")
3323
3340
  return e;
3324
3341
  const t = e.split(".");
3325
3342
  return t.length > 2 ? t.slice(1).join(".") : e;
3326
- }, br = ({
3343
+ }, wr = ({
3327
3344
  name: e,
3328
3345
  canTrack: t
3329
3346
  }) => {
@@ -3334,14 +3351,14 @@ const li = (e) => {
3334
3351
  z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
3335
3352
  return;
3336
3353
  }
3337
- }, Sr = async (e) => br(e), ci = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), ui = [["secure", ""], ["SameSite", "None"]], fi = ({
3354
+ }, xr = async (e) => wr(e), ui = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), fi = [["secure", ""], ["SameSite", "None"]], pi = ({
3338
3355
  name: e,
3339
3356
  value: t,
3340
3357
  expires: n
3341
3358
  }) => {
3342
- const o = (G() ? location.protocol === "https:" : !0) ? ui : [[]], a = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...a, ["path", "/"], ["domain", li(window.location.hostname)], ...o];
3343
- return ci(s);
3344
- }, wr = async ({
3359
+ const o = (G() ? location.protocol === "https:" : !0) ? fi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", ci(window.location.hostname)], ...o];
3360
+ return ui(s);
3361
+ }, kr = async ({
3345
3362
  name: e,
3346
3363
  value: t,
3347
3364
  expires: n,
@@ -3350,7 +3367,7 @@ const li = (e) => {
3350
3367
  try {
3351
3368
  if (!r)
3352
3369
  return;
3353
- const o = fi({
3370
+ const o = pi({
3354
3371
  name: e,
3355
3372
  value: t,
3356
3373
  expires: n
@@ -3359,45 +3376,45 @@ const li = (e) => {
3359
3376
  } catch (o) {
3360
3377
  z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
3361
3378
  }
3362
- }, pi = "builder.tests", ln = (e) => `${pi}.${e}`, di = ({
3379
+ }, di = "builder.tests", ln = (e) => `${di}.${e}`, hi = ({
3363
3380
  contentId: e
3364
- }) => Sr({
3381
+ }) => xr({
3365
3382
  name: ln(e),
3366
3383
  canTrack: !0
3367
- }), hi = ({
3384
+ }), mi = ({
3368
3385
  contentId: e
3369
- }) => br({
3386
+ }) => wr({
3370
3387
  name: ln(e),
3371
3388
  canTrack: !0
3372
- }), mi = ({
3389
+ }), gi = ({
3373
3390
  contentId: e,
3374
3391
  value: t
3375
- }) => wr({
3392
+ }) => kr({
3376
3393
  name: ln(e),
3377
3394
  value: t,
3378
3395
  canTrack: !0
3379
- }), xr = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, gi = ({
3396
+ }), Cr = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, yi = ({
3380
3397
  id: e,
3381
3398
  variations: t
3382
3399
  }) => {
3383
3400
  var o;
3384
3401
  let n = 0;
3385
3402
  const r = Math.random();
3386
- for (const a in t) {
3387
- const s = (o = t[a]) == null ? void 0 : o.testRatio;
3403
+ for (const i in t) {
3404
+ const s = (o = t[i]) == null ? void 0 : o.testRatio;
3388
3405
  if (n += s, r < n)
3389
- return a;
3406
+ return i;
3390
3407
  }
3391
3408
  return e;
3392
- }, kr = (e) => {
3393
- const t = gi(e);
3394
- return mi({
3409
+ }, Er = (e) => {
3410
+ const t = yi(e);
3411
+ return gi({
3395
3412
  contentId: e.id,
3396
3413
  value: t
3397
3414
  }).catch((n) => {
3398
3415
  z.error("could not store A/B test variation: ", n);
3399
3416
  }), t;
3400
- }, Cr = ({
3417
+ }, Ir = ({
3401
3418
  item: e,
3402
3419
  testGroupId: t
3403
3420
  }) => {
@@ -3411,7 +3428,7 @@ const li = (e) => {
3411
3428
  testVariationId: n.id,
3412
3429
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
3413
3430
  };
3414
- }, yi = ({
3431
+ }, vi = ({
3415
3432
  item: e,
3416
3433
  canTrack: t
3417
3434
  }) => {
@@ -3419,14 +3436,14 @@ const li = (e) => {
3419
3436
  return e;
3420
3437
  if (!e)
3421
3438
  return;
3422
- if (!xr(e))
3439
+ if (!Cr(e))
3423
3440
  return e;
3424
- const n = hi({
3441
+ const n = mi({
3425
3442
  contentId: e.id
3426
- }) || kr({
3443
+ }) || Er({
3427
3444
  variations: e.variations,
3428
3445
  id: e.id
3429
- }), r = Cr({
3446
+ }), r = Ir({
3430
3447
  item: e,
3431
3448
  testGroupId: n
3432
3449
  });
@@ -3434,18 +3451,18 @@ const li = (e) => {
3434
3451
  ...e,
3435
3452
  ...r
3436
3453
  };
3437
- }, vi = async ({
3454
+ }, bi = async ({
3438
3455
  item: e,
3439
3456
  canTrack: t
3440
3457
  }) => {
3441
- if (!t || !xr(e))
3458
+ if (!t || !Cr(e))
3442
3459
  return e;
3443
- const r = await di({
3460
+ const r = await hi({
3444
3461
  contentId: e.id
3445
- }) || kr({
3462
+ }) || Er({
3446
3463
  variations: e.variations,
3447
3464
  id: e.id
3448
- }), o = Cr({
3465
+ }), o = Ir({
3449
3466
  item: e,
3450
3467
  testGroupId: r
3451
3468
  });
@@ -3453,7 +3470,7 @@ const li = (e) => {
3453
3470
  ...e,
3454
3471
  ...o
3455
3472
  };
3456
- }, Ht = (e) => oe(e) ? e : !0, bi = {
3473
+ }, Ht = (e) => oe(e) ? e : !0, Si = {
3457
3474
  name: "Core:Button",
3458
3475
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
3459
3476
  defaultStyles: {
@@ -3486,7 +3503,7 @@ const li = (e) => {
3486
3503
  }],
3487
3504
  static: !0,
3488
3505
  noWrap: !0
3489
- }, Si = {
3506
+ }, wi = {
3490
3507
  // TODO: ways to statically preprocess JSON for references, functions, etc
3491
3508
  name: "Columns",
3492
3509
  isRSC: !0,
@@ -3665,7 +3682,7 @@ const li = (e) => {
3665
3682
  });
3666
3683
  }
3667
3684
  const n = e.get("columns");
3668
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((u, d) => u + d.get("width"), 0) !== 100) && t();
3685
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((u, d) => u + d.get("width"), 0) !== 100) && t();
3669
3686
  }
3670
3687
  }, {
3671
3688
  name: "space",
@@ -3687,7 +3704,7 @@ const li = (e) => {
3687
3704
  helperText: "When stacking columns for mobile devices, reverse the ordering",
3688
3705
  advanced: !0
3689
3706
  }]
3690
- }, wi = {
3707
+ }, xi = {
3691
3708
  name: "Custom Code",
3692
3709
  static: !0,
3693
3710
  requiredPermissions: ["editCode"],
@@ -3709,7 +3726,7 @@ const li = (e) => {
3709
3726
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3710
3727
  advanced: !0
3711
3728
  }]
3712
- }, xi = {
3729
+ }, ki = {
3713
3730
  name: "Embed",
3714
3731
  static: !0,
3715
3732
  inputs: [{
@@ -3734,13 +3751,13 @@ const li = (e) => {
3734
3751
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3735
3752
  hideFromUI: !0
3736
3753
  }]
3737
- }, ki = ["text/javascript", "application/javascript", "application/ecmascript"], Ua = (e) => ki.includes(e.type), Ci = {
3754
+ }, Ci = ["text/javascript", "application/javascript", "application/ecmascript"], La = (e) => Ci.includes(e.type), Ei = {
3738
3755
  name: "Fragment",
3739
3756
  static: !0,
3740
3757
  hidden: !0,
3741
3758
  canHaveChildren: !0,
3742
3759
  noWrap: !0
3743
- }, Ei = {
3760
+ }, Ii = {
3744
3761
  name: "Image",
3745
3762
  static: !0,
3746
3763
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -3776,10 +3793,10 @@ const li = (e) => {
3776
3793
  function r(s) {
3777
3794
  return Math.round(s * 1e3) / 1e3;
3778
3795
  }
3779
- const o = e.get("image"), a = e.get("aspectRatio");
3796
+ const o = e.get("image"), i = e.get("aspectRatio");
3780
3797
  if (fetch(o).then((s) => s.blob()).then((s) => {
3781
3798
  s.type.includes("svg") && e.set("noWebp", !0);
3782
- }), o && (!a || a === 0.7041))
3799
+ }), o && (!i || i === 0.7041))
3783
3800
  return n(o).then((s) => {
3784
3801
  const u = e.get("aspectRatio");
3785
3802
  e.get("image") === o && (!u || u === 0.7041) && s.width && s.height && (e.set("aspectRatio", r(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
@@ -3840,7 +3857,7 @@ const li = (e) => {
3840
3857
  advanced: !0,
3841
3858
  defaultValue: 0.7041
3842
3859
  }]
3843
- }, Ii = {
3860
+ }, Ti = {
3844
3861
  // friendlyName?
3845
3862
  name: "Raw:Img",
3846
3863
  hideFromInsertMenu: !0,
@@ -3854,7 +3871,7 @@ const li = (e) => {
3854
3871
  }],
3855
3872
  noWrap: !0,
3856
3873
  static: !0
3857
- }, Ti = {
3874
+ }, Ai = {
3858
3875
  name: "Core:Section",
3859
3876
  static: !0,
3860
3877
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3893,7 +3910,7 @@ const li = (e) => {
3893
3910
  }
3894
3911
  }
3895
3912
  }]
3896
- }, Ai = {
3913
+ }, Oi = {
3897
3914
  name: "Slot",
3898
3915
  isRSC: !0,
3899
3916
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3907,7 +3924,7 @@ const li = (e) => {
3907
3924
  defaultValue: "children"
3908
3925
  }]
3909
3926
  };
3910
- function Oi(e) {
3927
+ function ji(e) {
3911
3928
  var t, n, r;
3912
3929
  return /* @__PURE__ */ C(
3913
3930
  "div",
@@ -3930,7 +3947,7 @@ function Oi(e) {
3930
3947
  }
3931
3948
  );
3932
3949
  }
3933
- const ji = {
3950
+ const Ri = {
3934
3951
  name: "Symbol",
3935
3952
  noWrap: !0,
3936
3953
  static: !0,
@@ -3963,7 +3980,7 @@ const ji = {
3963
3980
  hideFromUI: !0,
3964
3981
  type: "boolean"
3965
3982
  }]
3966
- }, Ri = {
3983
+ }, Pi = {
3967
3984
  name: "Text",
3968
3985
  static: !0,
3969
3986
  isRSC: !0,
@@ -3982,7 +3999,7 @@ const ji = {
3982
3999
  textAlign: "center"
3983
4000
  }
3984
4001
  };
3985
- function Pi(e) {
4002
+ function Ni(e) {
3986
4003
  var t;
3987
4004
  return /* @__PURE__ */ C(
3988
4005
  "div",
@@ -3995,7 +4012,7 @@ function Pi(e) {
3995
4012
  }
3996
4013
  );
3997
4014
  }
3998
- const Ni = {
4015
+ const Bi = {
3999
4016
  name: "Video",
4000
4017
  canHaveChildren: !0,
4001
4018
  defaultStyles: {
@@ -4077,57 +4094,57 @@ const Ni = {
4077
4094
  advanced: !0
4078
4095
  }]
4079
4096
  }, qn = () => [{
4080
- component: ro,
4081
- ...bi
4082
- }, {
4083
- component: ii,
4097
+ component: io,
4084
4098
  ...Si
4085
4099
  }, {
4086
- component: oo,
4100
+ component: ai,
4087
4101
  ...wi
4088
- }, {
4089
- component: io,
4090
- ...xi
4091
4102
  }, {
4092
4103
  component: ao,
4093
- ...Ci
4104
+ ...xi
4094
4105
  }, {
4095
4106
  component: so,
4096
- ...Ei
4107
+ ...ki
4097
4108
  }, {
4098
4109
  component: lo,
4099
- ...Ii
4110
+ ...Ei
4100
4111
  }, {
4101
4112
  component: co,
4113
+ ...Ii
4114
+ }, {
4115
+ component: uo,
4102
4116
  ...Ti
4103
4117
  }, {
4104
- component: Ta,
4105
- ...ji
4118
+ component: fo,
4119
+ ...Ai
4106
4120
  }, {
4107
- component: Pi,
4121
+ component: Pa,
4108
4122
  ...Ri
4109
4123
  }, {
4110
- component: uo,
4111
- ...Ni
4124
+ component: Ni,
4125
+ ...Pi
4112
4126
  }, {
4113
- component: Oi,
4114
- ...Ai
4115
- }], Zn = [], Fa = (e) => ({
4127
+ component: po,
4128
+ ...Bi
4129
+ }, {
4130
+ component: ji,
4131
+ ...Oi
4132
+ }], Zn = [], Wa = (e) => ({
4116
4133
  type: "builder.registerComponent",
4117
4134
  data: Kt(e)
4118
- }), Bi = (e) => {
4135
+ }), Ui = (e) => {
4119
4136
  const t = e.toString().trim();
4120
4137
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
4121
- }, Mi = (e) => typeof e == "function" ? Bi(e) : pt(e), Kt = ({
4138
+ }, Mi = (e) => typeof e == "function" ? Ui(e) : pt(e), Kt = ({
4122
4139
  inputs: e,
4123
4140
  ...t
4124
4141
  }) => ({
4125
4142
  ...pt(t),
4126
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, a]) => ({
4143
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
4127
4144
  ...r,
4128
- [o]: Mi(a)
4145
+ [o]: Mi(i)
4129
4146
  }), {}))
4130
- }), Ui = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4147
+ }), Fi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4131
4148
  function getAndSetVariantId() {
4132
4149
  function setCookie(name, value, days) {
4133
4150
  let expires = '';
@@ -4183,7 +4200,7 @@ const Ni = {
4183
4200
  }).join('');
4184
4201
  styleEl.innerHTML = newStyleStr;
4185
4202
  }
4186
- }`, Fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4203
+ }`, Di = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4187
4204
  if (!navigator.cookieEnabled) {
4188
4205
  return;
4189
4206
  }
@@ -4217,24 +4234,24 @@ const Ni = {
4217
4234
  thisScriptEl?.remove();
4218
4235
  }
4219
4236
  return;
4220
- }`, Er = "builderIoAbTest", Ir = "builderIoRenderContent", st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4237
+ }`, Tr = "builderIoAbTest", Ar = "builderIoRenderContent", st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4221
4238
  ...t,
4222
4239
  testVariationId: t.id,
4223
4240
  id: e == null ? void 0 : e.id
4224
4241
  })), Vi = ({
4225
4242
  canTrack: e,
4226
4243
  content: t
4227
- }) => !(!(st(t).length > 0) || !e || G()), Di = (e) => e === "react" || e === "reactNative", Tr = Di(he), _i = () => `
4228
- window.${Er} = ${Ui}
4229
- window.${Ir} = ${Fi}
4230
- `, Li = (e, t) => `
4231
- window.${Er}(
4232
- "${t}",${JSON.stringify(e)}, ${Tr}
4233
- )`, Wi = ({
4244
+ }) => !(!(st(t).length > 0) || !e || G()), _i = (e) => e === "react" || e === "reactNative", Or = _i(he), Li = () => `
4245
+ window.${Tr} = ${Fi}
4246
+ window.${Ar} = ${Di}
4247
+ `, Wi = (e, t) => `
4248
+ window.${Tr}(
4249
+ "${t}",${JSON.stringify(e)}, ${Or}
4250
+ )`, $i = ({
4234
4251
  contentId: e,
4235
4252
  variationId: t
4236
- }) => `window.${Ir}(
4237
- "${t}", "${e}", ${Tr}
4253
+ }) => `window.${Ar}(
4254
+ "${t}", "${e}", ${Or}
4238
4255
  )`;
4239
4256
  function Gt(e) {
4240
4257
  return /* @__PURE__ */ C(
@@ -4245,66 +4262,66 @@ function Gt(e) {
4245
4262
  }
4246
4263
  );
4247
4264
  }
4248
- const $i = (e) => {
4265
+ const Hi = (e) => {
4249
4266
  const t = e.get("preview"), n = e.get("overrides." + t);
4250
4267
  return n || z.warn("No previewed ID found in search params."), n;
4251
4268
  };
4252
- function Hi() {
4253
- globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Zr({
4269
+ function Ki() {
4270
+ globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new eo({
4254
4271
  max: 500,
4255
4272
  // how long to live in ms
4256
4273
  ttl: 1e3 * 60 * 5
4257
4274
  }));
4258
4275
  }
4259
- function Ki(e) {
4260
- Hi();
4261
- const t = $i(e);
4276
+ function Gi(e) {
4277
+ Ki();
4278
+ const t = Hi(e);
4262
4279
  return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
4263
4280
  }
4264
- function Gi() {
4281
+ function Xi() {
4265
4282
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
4266
4283
  }
4267
- function Xi() {
4268
- const e = Gi().fetch;
4284
+ function Yi() {
4285
+ const e = Xi().fetch;
4269
4286
  if (typeof e > "u")
4270
4287
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
4271
4288
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
4272
4289
  return e;
4273
4290
  }
4274
- const Yi = Xi();
4291
+ const Ji = Yi();
4275
4292
  function lt(e, t = null, n = ".") {
4276
4293
  return Object.keys(e).reduce((r, o) => {
4277
- const a = e[o], s = [t, o].filter(Boolean).join(n);
4278
- return [typeof a == "object", a !== null, !(Array.isArray(a) && a.length === 0)].every(Boolean) ? {
4294
+ const i = e[o], s = [t, o].filter(Boolean).join(n);
4295
+ return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
4279
4296
  ...r,
4280
- ...lt(a, s, n)
4297
+ ...lt(i, s, n)
4281
4298
  } : {
4282
4299
  ...r,
4283
- [s]: a
4300
+ [s]: i
4284
4301
  };
4285
4302
  }, {});
4286
4303
  }
4287
- const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
4304
+ const zi = "v3", Qn = "builder.", qi = "options.", Zi = (e) => {
4288
4305
  const t = {};
4289
4306
  return e.forEach((n, r) => {
4290
4307
  t[r] = n;
4291
4308
  }), t;
4292
- }, Ar = (e) => {
4309
+ }, jr = (e) => {
4293
4310
  if (!e)
4294
4311
  return {};
4295
- const t = Or(e), n = {};
4312
+ const t = Rr(e), n = {};
4296
4313
  return Object.keys(t).forEach((r) => {
4297
4314
  if (r.startsWith(Qn)) {
4298
- const o = r.replace(Qn, "").replace(zi, "");
4315
+ const o = r.replace(Qn, "").replace(qi, "");
4299
4316
  n[o] = t[r];
4300
4317
  }
4301
4318
  }), n;
4302
- }, Zi = () => {
4319
+ }, Qi = () => {
4303
4320
  if (!G())
4304
4321
  return {};
4305
4322
  const e = new URLSearchParams(window.location.search);
4306
- return Ar(e);
4307
- }, Or = (e) => e instanceof URLSearchParams ? qi(e) : e, er = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
4323
+ return jr(e);
4324
+ }, Rr = (e) => e instanceof URLSearchParams ? Zi(e) : e, er = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
4308
4325
  let {
4309
4326
  noTraverse: t = !1
4310
4327
  } = e;
@@ -4312,12 +4329,12 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
4312
4329
  limit: n = 30,
4313
4330
  userAttributes: r,
4314
4331
  query: o,
4315
- model: a,
4332
+ model: i,
4316
4333
  apiKey: s,
4317
4334
  includeRefs: u = !0,
4318
4335
  enrich: d,
4319
4336
  locale: k,
4320
- apiVersion: E = Ji,
4337
+ apiVersion: E = zi,
4321
4338
  fields: S,
4322
4339
  omit: P,
4323
4340
  offset: j,
@@ -4331,17 +4348,17 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
4331
4348
  if (!["v2", "v3"].includes(E))
4332
4349
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${E}'`);
4333
4350
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
4334
- const m = new URL(`https://cdn.builder.io/api/${E}/content/${a}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${k ? `&locale=${k}` : ""}${d ? `&enrich=${d}` : ""}`);
4351
+ const m = new URL(`https://cdn.builder.io/api/${E}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${k ? `&locale=${k}` : ""}${d ? `&enrich=${d}` : ""}`);
4335
4352
  if (m.searchParams.set("omit", P || "meta.componentsUsed"), S && m.searchParams.set("fields", S), Number.isFinite(j) && j > -1 && m.searchParams.set("offset", String(Math.floor(j))), typeof $ == "boolean" && m.searchParams.set("includeUnpublished", String($)), v && er(v) && m.searchParams.set("cacheSeconds", String(v)), x && er(x) && m.searchParams.set("staleCacheSeconds", String(x)), B) {
4336
4353
  const Z = lt({
4337
4354
  sort: B
4338
4355
  });
4339
- for (const M in Z)
4340
- m.searchParams.set(M, JSON.stringify(Z[M]));
4356
+ for (const U in Z)
4357
+ m.searchParams.set(U, JSON.stringify(Z[U]));
4341
4358
  }
4342
4359
  const ee = {
4343
- ...Zi(),
4344
- ...Or(e.options || {})
4360
+ ...Qi(),
4361
+ ...Rr(e.options || {})
4345
4362
  }, te = lt(ee);
4346
4363
  for (const Z in te)
4347
4364
  m.searchParams.set(Z, String(te[Z]));
@@ -4349,50 +4366,50 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
4349
4366
  const Z = lt({
4350
4367
  query: o
4351
4368
  });
4352
- for (const M in Z)
4353
- m.searchParams.set(M, JSON.stringify(Z[M]));
4369
+ for (const U in Z)
4370
+ m.searchParams.set(U, JSON.stringify(Z[U]));
4354
4371
  }
4355
4372
  return m;
4356
- }, Qi = (e) => "results" in e;
4373
+ }, ea = (e) => "results" in e;
4357
4374
  async function un(e) {
4358
- const t = await jr({
4375
+ const t = await Pr({
4359
4376
  ...e,
4360
4377
  limit: 1
4361
4378
  });
4362
4379
  return t && t[0] || null;
4363
4380
  }
4364
- const Va = un, ea = async (e) => {
4381
+ const $a = un, ta = async (e) => {
4365
4382
  const t = cn(e);
4366
- return await (await Yi(t.href)).json();
4367
- }, ta = async (e, t, n = cn(e)) => {
4383
+ return await (await Ji(t.href)).json();
4384
+ }, na = async (e, t, n = cn(e)) => {
4368
4385
  const r = Ht(e.canTrack);
4369
4386
  if (n.search.includes("preview=")) {
4370
- const a = [];
4387
+ const i = [];
4371
4388
  for (const s of t.results) {
4372
- const u = Ki(n.searchParams);
4373
- a.push(u || s);
4389
+ const u = Gi(n.searchParams);
4390
+ i.push(u || s);
4374
4391
  }
4375
- t.results = a;
4392
+ t.results = i;
4376
4393
  }
4377
4394
  if (!r || !(G() || he === "reactNative"))
4378
4395
  return t.results;
4379
4396
  try {
4380
- const a = [];
4397
+ const i = [];
4381
4398
  for (const s of t.results)
4382
- a.push(await vi({
4399
+ i.push(await bi({
4383
4400
  item: s,
4384
4401
  canTrack: r
4385
4402
  }));
4386
- t.results = a;
4387
- } catch (a) {
4388
- z.error("Could not process A/B tests. ", a);
4403
+ t.results = i;
4404
+ } catch (i) {
4405
+ z.error("Could not process A/B tests. ", i);
4389
4406
  }
4390
4407
  return t.results;
4391
4408
  };
4392
- async function jr(e) {
4409
+ async function Pr(e) {
4393
4410
  try {
4394
- const t = cn(e), n = await ea(e);
4395
- return Qi(n) ? ta(e, n) : (z.error("Error fetching data. ", {
4411
+ const t = cn(e), n = await ta(e);
4412
+ return ea(n) ? na(e, n) : (z.error("Error fetching data. ", {
4396
4413
  url: t,
4397
4414
  content: n,
4398
4415
  options: e
@@ -4401,96 +4418,96 @@ async function jr(e) {
4401
4418
  return z.error("Error fetching data. ", t), null;
4402
4419
  }
4403
4420
  }
4404
- const Da = jr, na = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
4405
- function ra(e, t) {
4421
+ const Ha = Pr, ra = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
4422
+ function oa(e, t) {
4406
4423
  const n = new URL(t.origin), r = n.hostname;
4407
- return (e || na).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
4424
+ return (e || ra).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
4408
4425
  }
4409
- function _a() {
4426
+ function Ka() {
4410
4427
  return !G() || Yt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
4411
4428
  }
4412
- function oa() {
4429
+ function ia() {
4413
4430
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
4414
4431
  const t = Math.random() * 16 | 0;
4415
4432
  return (e == "x" ? t : t & 3 | 8).toString(16);
4416
4433
  });
4417
4434
  }
4418
- function Rr() {
4419
- return oa().replace(/-/g, "");
4435
+ function Nr() {
4436
+ return ia().replace(/-/g, "");
4420
4437
  }
4421
- const Pr = "builderSessionId", ia = async ({
4438
+ const Br = "builderSessionId", aa = async ({
4422
4439
  canTrack: e
4423
4440
  }) => {
4424
4441
  if (!e)
4425
4442
  return;
4426
- const t = await Sr({
4427
- name: Pr,
4443
+ const t = await xr({
4444
+ name: Br,
4428
4445
  canTrack: e
4429
4446
  });
4430
4447
  if (oe(t))
4431
4448
  return t;
4432
4449
  {
4433
- const n = aa();
4434
- return sa({
4450
+ const n = sa();
4451
+ return la({
4435
4452
  id: n,
4436
4453
  canTrack: e
4437
4454
  }), n;
4438
4455
  }
4439
- }, aa = () => Rr(), sa = ({
4456
+ }, sa = () => Nr(), la = ({
4440
4457
  id: e,
4441
4458
  canTrack: t
4442
- }) => wr({
4443
- name: Pr,
4459
+ }) => kr({
4460
+ name: Br,
4444
4461
  value: e,
4445
4462
  canTrack: t
4446
- }), Nr = () => G() && typeof localStorage < "u" ? localStorage : void 0, la = ({
4463
+ }), Ur = () => G() && typeof localStorage < "u" ? localStorage : void 0, ca = ({
4447
4464
  key: e,
4448
4465
  canTrack: t
4449
4466
  }) => {
4450
4467
  var n;
4451
4468
  try {
4452
- return t ? (n = Nr()) == null ? void 0 : n.getItem(e) : void 0;
4469
+ return t ? (n = Ur()) == null ? void 0 : n.getItem(e) : void 0;
4453
4470
  } catch (r) {
4454
4471
  console.debug("[LocalStorage] GET error: ", r);
4455
4472
  return;
4456
4473
  }
4457
- }, ca = ({
4474
+ }, ua = ({
4458
4475
  key: e,
4459
4476
  canTrack: t,
4460
4477
  value: n
4461
4478
  }) => {
4462
4479
  var r;
4463
4480
  try {
4464
- t && ((r = Nr()) == null || r.setItem(e, n));
4481
+ t && ((r = Ur()) == null || r.setItem(e, n));
4465
4482
  } catch (o) {
4466
4483
  console.debug("[LocalStorage] SET error: ", o);
4467
4484
  }
4468
- }, Br = "builderVisitorId", ua = ({
4485
+ }, Mr = "builderVisitorId", fa = ({
4469
4486
  canTrack: e
4470
4487
  }) => {
4471
4488
  if (!e)
4472
4489
  return;
4473
- const t = la({
4474
- key: Br,
4490
+ const t = ca({
4491
+ key: Mr,
4475
4492
  canTrack: e
4476
4493
  });
4477
4494
  if (oe(t))
4478
4495
  return t;
4479
4496
  {
4480
- const n = fa();
4481
- return pa({
4497
+ const n = pa();
4498
+ return da({
4482
4499
  id: n,
4483
4500
  canTrack: e
4484
4501
  }), n;
4485
4502
  }
4486
- }, fa = () => Rr(), pa = ({
4503
+ }, pa = () => Nr(), da = ({
4487
4504
  id: e,
4488
4505
  canTrack: t
4489
- }) => ca({
4490
- key: Br,
4506
+ }) => ua({
4507
+ key: Mr,
4491
4508
  value: e,
4492
4509
  canTrack: t
4493
- }), da = async ({
4510
+ }), ha = async ({
4494
4511
  canTrack: e
4495
4512
  }) => {
4496
4513
  if (!e)
@@ -4498,16 +4515,16 @@ const Pr = "builderSessionId", ia = async ({
4498
4515
  visitorId: void 0,
4499
4516
  sessionId: void 0
4500
4517
  };
4501
- const t = await ia({
4518
+ const t = await aa({
4502
4519
  canTrack: e
4503
- }), n = ua({
4520
+ }), n = fa({
4504
4521
  canTrack: e
4505
4522
  });
4506
4523
  return {
4507
4524
  sessionId: t,
4508
4525
  visitorId: n
4509
4526
  };
4510
- }, ha = async ({
4527
+ }, ma = async ({
4511
4528
  type: e,
4512
4529
  canTrack: t,
4513
4530
  apiKey: n,
@@ -4521,14 +4538,14 @@ const Pr = "builderSessionId", ia = async ({
4521
4538
  url: location.href,
4522
4539
  ...r
4523
4540
  },
4524
- ...await da({
4541
+ ...await ha({
4525
4542
  canTrack: t
4526
4543
  }),
4527
- userAttributes: sr(),
4544
+ userAttributes: lr(),
4528
4545
  ownerId: n
4529
4546
  }
4530
4547
  });
4531
- async function ma(e) {
4548
+ async function ga(e) {
4532
4549
  if (!e.apiKey) {
4533
4550
  z.error("Missing API key for track call. Please provide your API key.");
4534
4551
  return;
@@ -4537,7 +4554,7 @@ async function ma(e) {
4537
4554
  return fetch("https://cdn.builder.io/api/v1/track", {
4538
4555
  method: "POST",
4539
4556
  body: JSON.stringify({
4540
- events: [await ha(e)]
4557
+ events: [await ma(e)]
4541
4558
  }),
4542
4559
  headers: {
4543
4560
  "content-type": "application/json"
@@ -4547,14 +4564,14 @@ async function ma(e) {
4547
4564
  console.error("Failed to track: ", t);
4548
4565
  });
4549
4566
  }
4550
- const La = (e) => ma({
4567
+ const Ga = (e) => ga({
4551
4568
  ...e,
4552
4569
  canTrack: !0
4553
4570
  });
4554
4571
  function tr(e) {
4555
4572
  return Math.round(e * 1e3) / 1e3;
4556
4573
  }
4557
- const ga = (e, t, n = !0) => {
4574
+ const ya = (e, t, n = !0) => {
4558
4575
  if (!(e instanceof HTMLElement))
4559
4576
  return null;
4560
4577
  let r = n ? e : e.parentElement;
@@ -4565,20 +4582,20 @@ const ga = (e, t, n = !0) => {
4565
4582
  return r;
4566
4583
  } while (r = r.parentElement);
4567
4584
  return null;
4568
- }, ya = (e) => ga(e, (t) => {
4585
+ }, va = (e) => ya(e, (t) => {
4569
4586
  const n = t.getAttribute("builder-id") || t.id;
4570
4587
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4571
4588
  }), nr = ({
4572
4589
  event: e,
4573
4590
  target: t
4574
4591
  }) => {
4575
- const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, a = tr(r / n.width), s = tr(o / n.height);
4592
+ const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = tr(r / n.width), s = tr(o / n.height);
4576
4593
  return {
4577
- x: a,
4594
+ x: i,
4578
4595
  y: s
4579
4596
  };
4580
- }, Wa = (e) => {
4581
- const t = e.target, n = t && ya(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4597
+ }, Xa = (e) => {
4598
+ const t = e.target, n = t && va(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4582
4599
  return {
4583
4600
  targetBuilderElement: r || void 0,
4584
4601
  metadata: {
@@ -4593,8 +4610,8 @@ const ga = (e, t, n = !0) => {
4593
4610
  builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
4594
4611
  }
4595
4612
  };
4596
- }, va = "0.12.5", rr = {};
4597
- function ba(e, t) {
4613
+ }, ba = "0.12.7", rr = {};
4614
+ function Sa(e, t) {
4598
4615
  let n = rr[e];
4599
4616
  if (n || (n = rr[e] = []), n.push(t), G()) {
4600
4617
  const r = {
@@ -4611,8 +4628,8 @@ function ba(e, t) {
4611
4628
  }
4612
4629
  }
4613
4630
  }
4614
- const $a = () => {
4615
- ba("insertMenu", {
4631
+ const Ya = () => {
4632
+ Sa("insertMenu", {
4616
4633
  name: "_default",
4617
4634
  default: !0,
4618
4635
  items: [{
@@ -4635,13 +4652,13 @@ const $a = () => {
4635
4652
  });
4636
4653
  };
4637
4654
  let or = !1;
4638
- const Ha = (e = {}) => {
4655
+ const Ja = (e = {}) => {
4639
4656
  var t, n;
4640
4657
  or || (or = !0, G() && ((t = window.parent) == null || t.postMessage({
4641
4658
  type: "builder.sdkInfo",
4642
4659
  data: {
4643
4660
  target: he,
4644
- version: va,
4661
+ version: ba,
4645
4662
  supportsPatchUpdates: !1,
4646
4663
  // Supports builder-model="..." attribute which is needed to
4647
4664
  // scope our '+ add block' button styling
@@ -4654,8 +4671,8 @@ const Ha = (e = {}) => {
4654
4671
  options: e
4655
4672
  }
4656
4673
  }, "*"), window.addEventListener("message", (r) => {
4657
- var a, s;
4658
- if (!ra(e.trustedHosts, r))
4674
+ var i, s;
4675
+ if (!oa(e.trustedHosts, r))
4659
4676
  return;
4660
4677
  const {
4661
4678
  data: o
@@ -4670,7 +4687,7 @@ const Ha = (e = {}) => {
4670
4687
  } catch (j) {
4671
4688
  P = j;
4672
4689
  }
4673
- P ? (a = window.parent) == null || a.postMessage({
4690
+ P ? (i = window.parent) == null || i.postMessage({
4674
4691
  type: "builder.evaluateError",
4675
4692
  data: {
4676
4693
  id: k,
@@ -4696,9 +4713,51 @@ const Ha = (e = {}) => {
4696
4713
  }
4697
4714
  }
4698
4715
  })));
4699
- }, Sa = (e) => {
4700
- var a;
4701
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((a = e == null ? void 0 : e.files) == null ? void 0 : a.regular);
4716
+ };
4717
+ function ir(e, ...t) {
4718
+ const n = Object(e);
4719
+ for (let r = 1; r < arguments.length; r++) {
4720
+ const o = arguments[r];
4721
+ if (o != null)
4722
+ for (const i in o)
4723
+ Object.prototype.hasOwnProperty.call(o, i) && (n[i] = o[i]);
4724
+ }
4725
+ return n;
4726
+ }
4727
+ const wa = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
4728
+ function xa(e) {
4729
+ console.warn(`Cannot animate element: element with ID ${e} not found!`);
4730
+ }
4731
+ function ka(e, t) {
4732
+ const n = Ca(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
4733
+ for (const u of s)
4734
+ for (const d of n)
4735
+ d in u || (u[d] = r[d]);
4736
+ }
4737
+ function Ca(e) {
4738
+ const t = [];
4739
+ for (const n of e.steps)
4740
+ for (const r in n.styles)
4741
+ t.indexOf(r) === -1 && t.push(r);
4742
+ return t;
4743
+ }
4744
+ function za(e) {
4745
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
4746
+ if (!t.length) {
4747
+ xa(e.elementId || e.id || "");
4748
+ return;
4749
+ }
4750
+ Array.from(t).forEach((n) => {
4751
+ ka(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ir(n.style, e.steps[0].styles), setTimeout(() => {
4752
+ n.style.transition = `all ${e.duration}s ${wa(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ir(n.style, e.steps[1].styles), setTimeout(() => {
4753
+ n.style.transition = "", n.style.transitionDelay = "";
4754
+ }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
4755
+ });
4756
+ });
4757
+ }
4758
+ const Ea = (e) => {
4759
+ var i;
4760
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4702
4761
  let o = "";
4703
4762
  if (r && t && n && (o += `
4704
4763
  @font-face {
@@ -4722,22 +4781,22 @@ font-weight: ${s};
4722
4781
  `.trim());
4723
4782
  }
4724
4783
  return o;
4725
- }, wa = ({
4784
+ }, Ia = ({
4726
4785
  customFonts: e
4727
4786
  }) => {
4728
4787
  var t;
4729
- return ((t = e == null ? void 0 : e.map((n) => Sa(n))) == null ? void 0 : t.join(" ")) || "";
4730
- }, xa = ({
4788
+ return ((t = e == null ? void 0 : e.map((n) => Ea(n))) == null ? void 0 : t.join(" ")) || "";
4789
+ }, Ta = ({
4731
4790
  cssCode: e,
4732
4791
  contentId: t
4733
4792
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
4734
- function ka(e) {
4793
+ function Aa(e) {
4735
4794
  const t = `
4736
- ${xa({
4795
+ ${Ta({
4737
4796
  cssCode: e.cssCode,
4738
4797
  contentId: e.contentId
4739
4798
  })}
4740
- ${wa({
4799
+ ${Ia({
4741
4800
  customFonts: e.customFonts
4742
4801
  })}
4743
4802
 
@@ -4760,13 +4819,13 @@ ${wa({
4760
4819
  `.trim();
4761
4820
  return /* @__PURE__ */ C(dt, { styles: t });
4762
4821
  }
4763
- const Ca = ({
4822
+ const Oa = ({
4764
4823
  content: e,
4765
4824
  data: t,
4766
4825
  locale: n
4767
4826
  }) => {
4768
- var a, s, u;
4769
- const r = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
4827
+ var i, s, u;
4828
+ const r = {}, o = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
4770
4829
  return (u = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || u.forEach((d) => {
4771
4830
  d.name && d.defaultValue !== void 0 && (r[d.name] = d.defaultValue);
4772
4831
  }), {
@@ -4777,7 +4836,7 @@ const Ca = ({
4777
4836
  locale: n
4778
4837
  } : {}
4779
4838
  };
4780
- }, Ea = ({
4839
+ }, ja = ({
4781
4840
  content: e,
4782
4841
  data: t
4783
4842
  }) => e ? {
@@ -4788,13 +4847,13 @@ const Ca = ({
4788
4847
  },
4789
4848
  meta: e == null ? void 0 : e.meta
4790
4849
  } : void 0;
4791
- function ir(e) {
4792
- var o, a, s, u, d, k, E, S, P;
4793
- const t = Wi({
4850
+ function ar(e) {
4851
+ var o, i, s, u, d, k, E, S, P;
4852
+ const t = $i({
4794
4853
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4795
4854
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
4796
4855
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4797
- contentId: (a = e.content) == null ? void 0 : a.id
4856
+ contentId: (i = e.content) == null ? void 0 : i.id
4798
4857
  }), n = [
4799
4858
  ...qn(),
4800
4859
  // While this `components` object is deprecated, we must maintain support for it.
@@ -4814,12 +4873,12 @@ function ir(e) {
4814
4873
  }),
4815
4874
  {}
4816
4875
  ), r = {
4817
- content: Ea({
4876
+ content: ja({
4818
4877
  content: e.content,
4819
4878
  data: e.data
4820
4879
  }),
4821
4880
  localState: void 0,
4822
- rootState: Ca({
4881
+ rootState: Oa({
4823
4882
  content: e.content,
4824
4883
  data: e.data,
4825
4884
  locale: e.locale
@@ -4849,7 +4908,7 @@ function ir(e) {
4849
4908
  BlocksWrapperProps: e.blocksWrapperProps || {}
4850
4909
  };
4851
4910
  return /* @__PURE__ */ xe(
4852
- fo,
4911
+ ho,
4853
4912
  {
4854
4913
  content: e.content,
4855
4914
  data: e.data,
@@ -4869,7 +4928,7 @@ function ir(e) {
4869
4928
  children: [
4870
4929
  e.isSsrAbTest ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: t }) }) : null,
4871
4930
  /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
4872
- ka,
4931
+ Aa,
4873
4932
  {
4874
4933
  contentId: (s = r.content) == null ? void 0 : s.id,
4875
4934
  cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
@@ -4889,14 +4948,14 @@ function ir(e) {
4889
4948
  }
4890
4949
  );
4891
4950
  }
4892
- function Mr(e) {
4893
- var a, s;
4951
+ function Fr(e) {
4952
+ var i, s;
4894
4953
  const t = Vi({
4895
4954
  canTrack: Ht(e.canTrack),
4896
4955
  content: e.content
4897
4956
  }), n = function() {
4898
4957
  var d;
4899
- return Li(
4958
+ return Wi(
4900
4959
  st(e.content).map((k) => ({
4901
4960
  id: k.testVariationId,
4902
4961
  testRatio: k.testRatio
@@ -4910,24 +4969,24 @@ function Mr(e) {
4910
4969
  return t ? {
4911
4970
  ...e.content,
4912
4971
  testVariationId: (d = e.content) == null ? void 0 : d.id
4913
- } : yi({
4972
+ } : vi({
4914
4973
  item: e.content,
4915
4974
  canTrack: Ht(e.canTrack)
4916
4975
  });
4917
4976
  };
4918
4977
  return /* @__PURE__ */ xe(L, { children: [
4919
- !e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: _i() }) }) : null,
4978
+ !e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: Li() }) }) : null,
4920
4979
  t ? /* @__PURE__ */ xe(L, { children: [
4921
4980
  /* @__PURE__ */ C(
4922
4981
  dt,
4923
4982
  {
4924
- id: `variants-styles-${(a = e.content) == null ? void 0 : a.id}`,
4983
+ id: `variants-styles-${(i = e.content) == null ? void 0 : i.id}`,
4925
4984
  styles: r()
4926
4985
  }
4927
4986
  ),
4928
4987
  /* @__PURE__ */ C(Gt, { scriptStr: n() }),
4929
4988
  (s = st(e.content)) == null ? void 0 : s.map((u) => /* @__PURE__ */ C(
4930
- ir,
4989
+ ar,
4931
4990
  {
4932
4991
  content: u,
4933
4992
  showContent: !1,
@@ -4953,7 +5012,7 @@ function Mr(e) {
4953
5012
  ))
4954
5013
  ] }) : null,
4955
5014
  /* @__PURE__ */ C(
4956
- ir,
5015
+ ar,
4957
5016
  {
4958
5017
  content: o(),
4959
5018
  showContent: !0,
@@ -4978,7 +5037,7 @@ function Mr(e) {
4978
5037
  )
4979
5038
  ] });
4980
5039
  }
4981
- const Ia = async ({
5040
+ const Ra = async ({
4982
5041
  builderContextValue: e,
4983
5042
  symbol: t
4984
5043
  }) => {
@@ -4997,8 +5056,8 @@ const Ia = async ({
4997
5056
  z.error("Could not fetch symbol content: ", n);
4998
5057
  });
4999
5058
  };
5000
- async function Ta(e) {
5001
- var r, o, a, s, u;
5059
+ async function Pa(e) {
5060
+ var r, o, i, s, u;
5002
5061
  const t = function() {
5003
5062
  var k, E;
5004
5063
  return [
@@ -5007,12 +5066,12 @@ async function Ta(e) {
5007
5066
  (k = e.symbol) != null && k.inline ? "builder-inline-symbol" : void 0,
5008
5067
  (E = e.symbol) != null && E.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
5009
5068
  ].filter(Boolean).join(" ");
5010
- }, n = ((r = e.symbol) == null ? void 0 : r.content) || await Ia({
5069
+ }, n = ((r = e.symbol) == null ? void 0 : r.content) || await Ra({
5011
5070
  symbol: e.symbol,
5012
5071
  builderContextValue: e.builderContext
5013
5072
  });
5014
5073
  return /* @__PURE__ */ C("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ C(
5015
- Mr,
5074
+ Fr,
5016
5075
  {
5017
5076
  __isNestedRender: !0,
5018
5077
  apiVersion: e.builderContext.apiVersion,
@@ -5023,7 +5082,7 @@ async function Ta(e) {
5023
5082
  },
5024
5083
  customComponents: Object.values(e.builderComponents),
5025
5084
  data: {
5026
- ...(a = e.symbol) == null ? void 0 : a.data,
5085
+ ...(i = e.symbol) == null ? void 0 : i.data,
5027
5086
  ...e.builderContext.localState,
5028
5087
  ...(s = n == null ? void 0 : n.data) == null ? void 0 : s.state
5029
5088
  },
@@ -5033,19 +5092,19 @@ async function Ta(e) {
5033
5092
  }
5034
5093
  ) });
5035
5094
  }
5036
- const Ka = mt, Ga = Mr, ar = {};
5037
- function Xa(e) {
5095
+ const qa = mt, Za = Fr, sr = {};
5096
+ function Qa(e) {
5038
5097
  if (G()) {
5039
- Object.assign(ar, e);
5098
+ Object.assign(sr, e);
5040
5099
  const t = {
5041
5100
  type: "builder.settingsChange",
5042
- data: ar
5101
+ data: sr
5043
5102
  };
5044
5103
  parent.postMessage(t, "*");
5045
5104
  }
5046
5105
  }
5047
- const Ya = async (e) => {
5048
- var r, o, a;
5106
+ const es = async (e) => {
5107
+ var r, o, i;
5049
5108
  const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
5050
5109
  ...e,
5051
5110
  apiKey: e.apiKey,
@@ -5056,7 +5115,7 @@ const Ya = async (e) => {
5056
5115
  urlPath: t
5057
5116
  } : {}
5058
5117
  },
5059
- options: Ar(e.searchParams || ((a = e.url) == null ? void 0 : a.searchParams) || e.options)
5118
+ options: jr(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
5060
5119
  };
5061
5120
  return {
5062
5121
  apiKey: n.apiKey,
@@ -5065,42 +5124,43 @@ const Ya = async (e) => {
5065
5124
  };
5066
5125
  };
5067
5126
  export {
5068
- jr as A,
5127
+ na as A,
5069
5128
  mt as B,
5070
- Mr as C,
5071
- Da as D,
5072
- Va as E,
5073
- Ar as F,
5074
- La as G,
5075
- Ya as H,
5076
- Ka as R,
5077
- Ta as S,
5078
- Pi as T,
5079
- ma as _,
5080
- ni as a,
5081
- Ba as b,
5129
+ Fr as C,
5130
+ Pr as D,
5131
+ Ha as E,
5132
+ $a as F,
5133
+ jr as G,
5134
+ Ga as H,
5135
+ es as I,
5136
+ qa as R,
5137
+ Pa as S,
5138
+ Ni as T,
5139
+ ga as _,
5140
+ ri as a,
5141
+ Va as b,
5082
5142
  Yt as c,
5083
- Ma as d,
5084
- Ua as e,
5143
+ _a as d,
5144
+ La as e,
5085
5145
  G as f,
5086
5146
  Xt as g,
5087
5147
  Ht as h,
5088
- Na as i,
5089
- _a as j,
5090
- ra as k,
5148
+ Da as i,
5149
+ Ka as j,
5150
+ oa as k,
5091
5151
  z as l,
5092
5152
  sn as m,
5093
- Wa as n,
5153
+ Xa as n,
5094
5154
  pt as o,
5095
- Fa as p,
5155
+ Wa as p,
5096
5156
  un as q,
5097
- $a as r,
5098
- Ha as s,
5099
- Yi as t,
5100
- Hi as u,
5101
- Ga as v,
5102
- ii as w,
5103
- ba as x,
5104
- Xa as y,
5105
- ta as z
5157
+ Ya as r,
5158
+ Ja as s,
5159
+ za as t,
5160
+ Ji as u,
5161
+ Ki as v,
5162
+ Za as w,
5163
+ ai as x,
5164
+ Sa as y,
5165
+ Qa as z
5106
5166
  };