@builder.io/sdk-react-nextjs 0.12.5 → 0.12.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{node/USE_CLIENT_BUNDLE-4ba4594d.js → browser/USE_CLIENT_BUNDLE-4d4e23b4.js} +3 -6
- package/lib/browser/{USE_CLIENT_BUNDLE-70be4cc5.cjs → USE_CLIENT_BUNDLE-e5d64246.cjs} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-36de460d.js → browser/USE_SERVER_BUNDLE-2bf0dc28.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-50c2f18b.cjs → browser/USE_SERVER_BUNDLE-ccca985e.cjs} +1 -1
- package/lib/browser/{bundle-bd9886c9.cjs → bundle-6e21e129.cjs} +15 -15
- package/lib/browser/{bundle-f9f52242.js → bundle-b3104268.js} +118 -101
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{browser/USE_CLIENT_BUNDLE-7492ecd8.js → edge/USE_CLIENT_BUNDLE-41ee32e4.js} +3 -6
- package/lib/{node/USE_CLIENT_BUNDLE-2f43c320.cjs → edge/USE_CLIENT_BUNDLE-cc55e91d.cjs} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-473d50ad.cjs → edge/USE_SERVER_BUNDLE-19879780.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-2534ef71.js → edge/USE_SERVER_BUNDLE-fda604b6.js} +1 -1
- package/lib/edge/{bundle-765860e3.js → bundle-ee1ebe27.js} +501 -484
- package/lib/edge/{bundle-71cfdd3e.cjs → bundle-f2d4a6db.cjs} +26 -26
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-1148158d.cjs → node/USE_CLIENT_BUNDLE-343cb348.cjs} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-cb840c0f.js → node/USE_CLIENT_BUNDLE-aa8ab44a.js} +3 -6
- package/lib/{browser/USE_SERVER_BUNDLE-fe386ed3.js → node/USE_SERVER_BUNDLE-2fdc522e.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-875d4629.cjs → node/USE_SERVER_BUNDLE-cbcb1baf.cjs} +1 -1
- package/lib/node/{bundle-305bb463.js → bundle-99e5b33f.js} +25 -8
- package/lib/node/{bundle-1c54df65.cjs → bundle-c799b7fc.cjs} +2 -2
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/evaluate/browser-runtime/browser.d.ts +5 -1
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/evaluate/browser-runtime/browser.d.ts +5 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { LRUCache as
|
|
1
|
+
import { LRUCache as Qr } from "lru-cache";
|
|
2
2
|
import { jsx as C, Fragment as L, jsxs as xe } from "react/jsx-runtime";
|
|
3
|
-
import { I as
|
|
3
|
+
import { I as eo, B as to, a as no, D as ro, b as oo, C as io, E as ao, F as so, c as lo, d as co, S as uo, V as fo, e as po } from "./USE_CLIENT_BUNDLE-41ee32e4.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const
|
|
6
|
+
const ho = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Na = (e) => typeof e == "string" && ho.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
|
|
19
|
+
function mo(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
|
|
39
|
+
function go() {
|
|
40
40
|
return G() && window.self !== window.top;
|
|
41
41
|
}
|
|
42
42
|
function Yt() {
|
|
43
|
-
return
|
|
43
|
+
return go() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const yo = () => {
|
|
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
|
-
},
|
|
52
|
-
const e =
|
|
51
|
+
}, vo = () => typeof navigator == "object" && navigator.userAgent || "", sr = () => {
|
|
52
|
+
const e = vo(), t = {
|
|
53
53
|
Android() {
|
|
54
54
|
return e.match(/Android/i);
|
|
55
55
|
},
|
|
@@ -68,7 +68,7 @@ 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 =
|
|
71
|
+
}, n = e.match(/Tablet|iPad/i), r = yo();
|
|
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),
|
|
@@ -86,123 +86,140 @@ const go = () => {
|
|
|
86
86
|
builder: e,
|
|
87
87
|
context: t,
|
|
88
88
|
event: n
|
|
89
|
-
}),
|
|
89
|
+
}), bo = () => ({
|
|
90
90
|
isEditing: Yt(),
|
|
91
91
|
isBrowser: G(),
|
|
92
92
|
isServer: !G(),
|
|
93
93
|
getUserAttributes: () => sr()
|
|
94
|
-
}),
|
|
94
|
+
}), So = (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,
|
|
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, wo = ({
|
|
97
97
|
code: e,
|
|
98
98
|
builder: t,
|
|
99
99
|
context: n,
|
|
100
100
|
event: r,
|
|
101
101
|
localState: o,
|
|
102
|
-
rootSetState:
|
|
102
|
+
rootSetState: i,
|
|
103
103
|
rootState: s
|
|
104
104
|
}) => {
|
|
105
105
|
const u = lr({
|
|
106
106
|
builder: t,
|
|
107
107
|
context: n,
|
|
108
108
|
event: r,
|
|
109
|
-
state:
|
|
109
|
+
state: cr({
|
|
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
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
function cr({
|
|
118
|
+
rootState: e,
|
|
119
|
+
localState: t,
|
|
120
|
+
rootSetState: n
|
|
121
|
+
}) {
|
|
116
122
|
return new Proxy(e, {
|
|
117
|
-
get: (r, o) =>
|
|
118
|
-
|
|
123
|
+
get: (r, o) => {
|
|
124
|
+
if (t && o in t)
|
|
125
|
+
return t[o];
|
|
126
|
+
const i = r[o];
|
|
127
|
+
return typeof i == "object" ? cr({
|
|
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
|
|
138
|
+
return r[o] = i, n == null || n(r), !0;
|
|
122
139
|
}
|
|
123
140
|
});
|
|
124
141
|
}
|
|
125
|
-
const
|
|
142
|
+
const ur = (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,
|
|
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
148
|
var N, xo = function(e) {
|
|
132
|
-
function t(
|
|
133
|
-
return 48 >
|
|
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 && qr.test(String.fromCharCode(a));
|
|
134
151
|
}
|
|
135
|
-
function n(
|
|
136
|
-
return 65 >
|
|
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(
|
|
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 <
|
|
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:
|
|
150
|
-
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j =
|
|
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(
|
|
153
|
-
|
|
154
|
-
for (var l = /* @__PURE__ */ Object.create(null), c = 0; c <
|
|
155
|
-
l[
|
|
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
|
|
177
|
+
function i() {
|
|
161
178
|
this.line = Se, this.ab = f - se;
|
|
162
179
|
}
|
|
163
|
-
function s(
|
|
164
|
-
Ce = f, O.C && (Et = new
|
|
180
|
+
function s(a, l) {
|
|
181
|
+
Ce = f, O.C && (Et = new i()), I = a, d(), Q = l, Ue = a.m;
|
|
165
182
|
}
|
|
166
183
|
function u() {
|
|
167
|
-
for (var
|
|
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(
|
|
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
|
|
174
|
-
if (
|
|
190
|
+
var a = g.charCodeAt(f);
|
|
191
|
+
if (a === 32)
|
|
175
192
|
++f;
|
|
176
|
-
else if (
|
|
177
|
-
++f,
|
|
178
|
-
else if (
|
|
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 <
|
|
197
|
+
else if (8 < a && 14 > a)
|
|
181
198
|
++f;
|
|
182
|
-
else if (
|
|
183
|
-
if (
|
|
184
|
-
|
|
185
|
-
var l = O.va && O.C && new
|
|
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; (
|
|
188
|
-
++Se, se =
|
|
189
|
-
O.va && O.va(!0, g.slice(c + 2, p), c, f, l, O.C && new
|
|
190
|
-
} else if (
|
|
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 (
|
|
211
|
+
else if (a === 160)
|
|
195
212
|
++f;
|
|
196
|
-
else if (5760 <=
|
|
213
|
+
else if (5760 <= a && zr.test(String.fromCharCode(a)))
|
|
197
214
|
++f;
|
|
198
215
|
else
|
|
199
216
|
break;
|
|
200
217
|
}
|
|
201
218
|
}
|
|
202
|
-
function k(
|
|
203
|
-
switch (
|
|
219
|
+
function k(a) {
|
|
220
|
+
switch (a) {
|
|
204
221
|
case 46:
|
|
205
|
-
|
|
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);
|
|
@@ -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 (
|
|
229
|
-
f += 2,
|
|
245
|
+
if (a = g.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
246
|
+
f += 2, a = j(16), a === null && r(D + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(Ve, a);
|
|
230
247
|
return;
|
|
231
248
|
}
|
|
232
249
|
case 49:
|
|
@@ -245,7 +262,7 @@ var N, xo = function(e) {
|
|
|
245
262
|
for (var l = ""; ; ) {
|
|
246
263
|
f >= ke && r(D, "Unterminated string constant");
|
|
247
264
|
var c = g.charCodeAt(f);
|
|
248
|
-
if (c ===
|
|
265
|
+
if (c === a) {
|
|
249
266
|
++f, s(tt, l);
|
|
250
267
|
break;
|
|
251
268
|
}
|
|
@@ -302,59 +319,59 @@ var N, xo = function(e) {
|
|
|
302
319
|
}
|
|
303
320
|
return;
|
|
304
321
|
case 47:
|
|
305
|
-
|
|
322
|
+
a = g.charCodeAt(f + 1), Ue ? (++f, P()) : a === 61 ? S(we, 2) : S(Mn, 1);
|
|
306
323
|
return;
|
|
307
324
|
case 37:
|
|
308
325
|
case 42:
|
|
309
|
-
g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(
|
|
326
|
+
g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Xr, 1);
|
|
310
327
|
return;
|
|
311
328
|
case 124:
|
|
312
329
|
case 38:
|
|
313
|
-
l = g.charCodeAt(f + 1), l ===
|
|
330
|
+
l = g.charCodeAt(f + 1), l === a ? S(a === 124 ? Vn : Dn, 2) : l === 61 ? S(we, 2) : S(a === 124 ? _r : Wr, 1);
|
|
314
331
|
return;
|
|
315
332
|
case 94:
|
|
316
|
-
g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(
|
|
333
|
+
g.charCodeAt(f + 1) === 61 ? S(we, 2) : S(Lr, 1);
|
|
317
334
|
return;
|
|
318
335
|
case 43:
|
|
319
336
|
case 45:
|
|
320
|
-
l = g.charCodeAt(f + 1), l ===
|
|
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(Dr, 2) : l === 61 ? S(we, 2) : S(Gr, 1);
|
|
321
338
|
return;
|
|
322
339
|
case 60:
|
|
323
340
|
case 62:
|
|
324
|
-
l = g.charCodeAt(f + 1), c = 1, l ===
|
|
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(Kr, 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(Hr, c));
|
|
325
342
|
return;
|
|
326
343
|
case 61:
|
|
327
344
|
case 33:
|
|
328
|
-
g.charCodeAt(f + 1) === 61 ? S(
|
|
345
|
+
g.charCodeAt(f + 1) === 61 ? S($r, g.charCodeAt(f + 2) === 61 ? 3 : 2) : S(a === 61 ? Un : 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(
|
|
336
|
-
if (
|
|
352
|
+
function E(a) {
|
|
353
|
+
if (a ? f = D + 1 : D = f, O.C && (Ct = new i()), a)
|
|
337
354
|
return P();
|
|
338
355
|
if (f >= ke)
|
|
339
356
|
return s(At);
|
|
340
|
-
if (
|
|
357
|
+
if (a = g.charCodeAt(f), n(a) || a === 92)
|
|
341
358
|
return $();
|
|
342
|
-
if (k(
|
|
343
|
-
if (
|
|
359
|
+
if (k(a) === !1) {
|
|
360
|
+
if (a = String.fromCharCode(a), a === "\\" || Ln.test(a))
|
|
344
361
|
return $();
|
|
345
|
-
r(f, "Unexpected character '" +
|
|
362
|
+
r(f, "Unexpected character '" + a + "'");
|
|
346
363
|
}
|
|
347
364
|
}
|
|
348
|
-
function S(
|
|
365
|
+
function S(a, l) {
|
|
349
366
|
var c = g.slice(f, f + l);
|
|
350
|
-
f += l, s(
|
|
367
|
+
f += l, s(a, c);
|
|
351
368
|
}
|
|
352
369
|
function P() {
|
|
353
|
-
for (var
|
|
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"),
|
|
357
|
-
|
|
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,61 +379,61 @@ var N, xo = function(e) {
|
|
|
362
379
|
l = !1;
|
|
363
380
|
else if (p === "/" && !l)
|
|
364
381
|
break;
|
|
365
|
-
|
|
382
|
+
a = p === "\\";
|
|
366
383
|
}
|
|
367
384
|
++f;
|
|
368
385
|
}
|
|
369
|
-
|
|
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(
|
|
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(
|
|
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 >=
|
|
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 *
|
|
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(
|
|
403
|
+
function v(a) {
|
|
387
404
|
var l = f, c = !1, p = g.charCodeAt(f) === 48;
|
|
388
|
-
|
|
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(
|
|
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(Ve, T);
|
|
391
408
|
}
|
|
392
|
-
function x(
|
|
393
|
-
return
|
|
409
|
+
function x(a) {
|
|
410
|
+
return a = j(16, a), a === null && r(D, "Bad character escape sequence"), a;
|
|
394
411
|
}
|
|
395
412
|
function B() {
|
|
396
413
|
Te = !1;
|
|
397
|
-
for (var
|
|
414
|
+
for (var a, l = !0, c = f; ; ) {
|
|
398
415
|
var p = g.charCodeAt(f);
|
|
399
416
|
if (t(p))
|
|
400
|
-
Te && (
|
|
417
|
+
Te && (a += g.charAt(f)), ++f;
|
|
401
418
|
else if (p === 92) {
|
|
402
|
-
Te || (
|
|
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"),
|
|
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 ?
|
|
426
|
+
return Te ? a : g.slice(c, f);
|
|
410
427
|
}
|
|
411
428
|
function $() {
|
|
412
|
-
var
|
|
413
|
-
!Te &&
|
|
429
|
+
var a = B(), l = Ee;
|
|
430
|
+
!Te && Jr(a) && (l = Vr[a]), s(l, a);
|
|
414
431
|
}
|
|
415
432
|
function m() {
|
|
416
433
|
It = D, ge = Ce, Tt = Et, E();
|
|
417
434
|
}
|
|
418
|
-
function ee(
|
|
419
|
-
if (q =
|
|
435
|
+
function ee(a) {
|
|
436
|
+
if (q = a, f = D, O.C)
|
|
420
437
|
for (; f < se; )
|
|
421
438
|
se = g.lastIndexOf(`
|
|
422
439
|
`, se - 2) + 1, --Se;
|
|
@@ -429,21 +446,21 @@ var N, xo = function(e) {
|
|
|
429
446
|
this.start = Ct, this.end = null, kt && (this.source = kt);
|
|
430
447
|
}
|
|
431
448
|
function M() {
|
|
432
|
-
var
|
|
433
|
-
return O.C && (
|
|
449
|
+
var a = new te();
|
|
450
|
+
return O.C && (a.X = new Z()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [D, 0]), a;
|
|
434
451
|
}
|
|
435
|
-
function me(
|
|
452
|
+
function me(a) {
|
|
436
453
|
var l = new te();
|
|
437
|
-
return l.start =
|
|
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(
|
|
440
|
-
return
|
|
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(
|
|
443
|
-
return
|
|
459
|
+
function gt(a) {
|
|
460
|
+
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
444
461
|
}
|
|
445
|
-
function U(
|
|
446
|
-
return I ===
|
|
462
|
+
function U(a) {
|
|
463
|
+
return I === a ? (m(), !0) : !1;
|
|
447
464
|
}
|
|
448
465
|
function Ze() {
|
|
449
466
|
return !O.fc && (I === At || I === Ie || ot.test(g.slice(ge, D)));
|
|
@@ -451,36 +468,36 @@ var N, xo = function(e) {
|
|
|
451
468
|
function be() {
|
|
452
469
|
U(ce) || Ze() || ie();
|
|
453
470
|
}
|
|
454
|
-
function F(
|
|
455
|
-
I ===
|
|
471
|
+
function F(a) {
|
|
472
|
+
I === a ? m() : ie();
|
|
456
473
|
}
|
|
457
474
|
function ie() {
|
|
458
475
|
r(D, "Unexpected token");
|
|
459
476
|
}
|
|
460
|
-
function Qe(
|
|
461
|
-
|
|
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
481
|
(I === Mn || I === we && Q === "/=") && E(!0);
|
|
465
|
-
var
|
|
466
|
-
switch (
|
|
482
|
+
var a = I, l = M();
|
|
483
|
+
switch (a) {
|
|
467
484
|
case Ot:
|
|
468
485
|
case gn:
|
|
469
486
|
m();
|
|
470
|
-
var c =
|
|
487
|
+
var c = a === Ot;
|
|
471
488
|
U(ce) || Ze() ? l.label = null : I !== Ee ? ie() : (l.label = ae(), be());
|
|
472
489
|
for (var p = 0; p < V.length; ++p) {
|
|
473
490
|
var T = V[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 " +
|
|
494
|
+
return p === V.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
498
|
return m(), V.push(Ft), l.body = ne(), V.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 ? (
|
|
500
|
+
return m(), V.push(Ft), F(le), I === ce ? yt(l, null) : I === Nt ? (a = M(), m(), pn(a, !0), A(a, "VariableDeclaration"), a.fa.length === 1 && U(nt) ? fn(l, a) : yt(l, a)) : (a = K(!1, !0), U(nt) ? (Qe(a), fn(l, a)) : yt(l, a));
|
|
484
501
|
case Rt:
|
|
485
502
|
return m(), wt(l, !0);
|
|
486
503
|
case kn:
|
|
@@ -488,13 +505,13 @@ var N, xo = function(e) {
|
|
|
488
505
|
case Cn:
|
|
489
506
|
return Fe || O.Ib || r(D, "'return' outside of function"), m(), U(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(
|
|
492
|
-
I === jt || I === vn ? (
|
|
508
|
+
for (m(), l.Qb = Ne(), l.tb = [], F(De), V.push(Zr); I !== Ie; )
|
|
509
|
+
I === jt || I === vn ? (a = I === jt, p && A(p, "SwitchCase"), l.tb.push(p = M()), 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()));
|
|
493
510
|
return p && A(p, "SwitchCase"), m(), V.pop(), A(l, "SwitchStatement");
|
|
494
511
|
case En:
|
|
495
512
|
return m(), ot.test(g.slice(ge, D)) && 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 && (
|
|
514
|
+
return m(), l.block = Be(), l.Ea = null, I === mn && (a = M(), 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 = U(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:
|
|
@@ -506,7 +523,7 @@ var N, xo = function(e) {
|
|
|
506
523
|
case ce:
|
|
507
524
|
return m(), A(l, "EmptyStatement");
|
|
508
525
|
default:
|
|
509
|
-
if (c = Q, T = K(),
|
|
526
|
+
if (c = Q, T = K(), a === Ee && T.type === "Identifier" && U(_e)) {
|
|
510
527
|
for (p = 0; p < V.length; ++p)
|
|
511
528
|
V[p].name === c && r(T.start, "Label '" + c + "' is already declared");
|
|
512
529
|
return V.push({
|
|
@@ -519,14 +536,14 @@ var N, xo = function(e) {
|
|
|
519
536
|
}
|
|
520
537
|
function Ne() {
|
|
521
538
|
F(le);
|
|
522
|
-
var
|
|
523
|
-
return F(re),
|
|
539
|
+
var a = K();
|
|
540
|
+
return F(re), a;
|
|
524
541
|
}
|
|
525
|
-
function Be(
|
|
542
|
+
function Be(a) {
|
|
526
543
|
var l = M(), c = !0, p = !1;
|
|
527
544
|
for (l.body = [], F(De); !U(Ie); ) {
|
|
528
545
|
var T = ne();
|
|
529
|
-
if (l.body.push(T), c &&
|
|
546
|
+
if (l.body.push(T), c && a && gt(T)) {
|
|
530
547
|
var _ = p;
|
|
531
548
|
ee(p = !0);
|
|
532
549
|
}
|
|
@@ -534,85 +551,85 @@ var N, xo = function(e) {
|
|
|
534
551
|
}
|
|
535
552
|
return p && !_ && ee(!1), A(l, "BlockStatement");
|
|
536
553
|
}
|
|
537
|
-
function yt(
|
|
538
|
-
return
|
|
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(), V.pop(), A(a, "ForStatement");
|
|
539
556
|
}
|
|
540
|
-
function fn(
|
|
541
|
-
return
|
|
557
|
+
function fn(a, l) {
|
|
558
|
+
return a.left = l, a.right = K(), F(re), a.body = ne(), V.pop(), A(a, "ForInStatement");
|
|
542
559
|
}
|
|
543
|
-
function pn(
|
|
544
|
-
for (
|
|
560
|
+
function pn(a, l) {
|
|
561
|
+
for (a.fa = [], a.kind = "var"; ; ) {
|
|
545
562
|
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,
|
|
563
|
+
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, a.fa.push(A(c, "VariableDeclarator")), !U(ye))
|
|
547
564
|
break;
|
|
548
565
|
}
|
|
549
566
|
}
|
|
550
|
-
function K(
|
|
567
|
+
function K(a, l) {
|
|
551
568
|
var c = vt(l);
|
|
552
|
-
if (!
|
|
553
|
-
for (
|
|
554
|
-
|
|
555
|
-
return A(
|
|
569
|
+
if (!a && I === ye) {
|
|
570
|
+
for (a = me(c), a.xb = [c]; U(ye); )
|
|
571
|
+
a.xb.push(vt(l));
|
|
572
|
+
return A(a, "SequenceExpression");
|
|
556
573
|
}
|
|
557
574
|
return c;
|
|
558
575
|
}
|
|
559
|
-
function vt(
|
|
560
|
-
var l = bt(St(), -1,
|
|
576
|
+
function vt(a) {
|
|
577
|
+
var l = bt(St(), -1, a);
|
|
561
578
|
if (U(Bn)) {
|
|
562
579
|
var c = me(l);
|
|
563
|
-
c.test = l, c.da = K(!0), F(_e), c.alternate = K(!0,
|
|
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(
|
|
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(
|
|
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(
|
|
571
|
-
return T.left =
|
|
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 === Vn || a === Dn ? "LogicalExpression" : "BinaryExpression"), bt(p, l, c);
|
|
572
589
|
}
|
|
573
|
-
return
|
|
590
|
+
return a;
|
|
574
591
|
}
|
|
575
592
|
function St() {
|
|
576
593
|
if (I.prefix) {
|
|
577
|
-
var
|
|
578
|
-
return
|
|
594
|
+
var a = M(), l = I.$b;
|
|
595
|
+
return a.operator = Q, Ue = 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
597
|
for (l = Me(et()); I.cc && !Ze(); )
|
|
581
|
-
|
|
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(
|
|
601
|
+
function Me(a, l) {
|
|
585
602
|
if (U(Nn)) {
|
|
586
|
-
var c = me(
|
|
587
|
-
return c.object =
|
|
603
|
+
var c = me(a);
|
|
604
|
+
return c.object = a, c.Wa = ae(!0), c.bb = !1, Me(A(c, "MemberExpression"), l);
|
|
588
605
|
}
|
|
589
|
-
return U(Mt) ? (c = me(
|
|
606
|
+
return U(Mt) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, F(Ut), Me(A(c, "MemberExpression"), l)) : !l && U(le) ? (c = me(a), c.callee = a, c.arguments = xt(re, !1), Me(A(c, "CallExpression"), l)) : a;
|
|
590
607
|
}
|
|
591
608
|
function et() {
|
|
592
609
|
switch (I) {
|
|
593
610
|
case On:
|
|
594
|
-
var
|
|
595
|
-
return m(), A(
|
|
611
|
+
var a = M();
|
|
612
|
+
return m(), A(a, "ThisExpression");
|
|
596
613
|
case Ee:
|
|
597
614
|
return ae();
|
|
598
615
|
case Ve:
|
|
599
616
|
case tt:
|
|
600
617
|
case hn:
|
|
601
|
-
return
|
|
618
|
+
return a = M(), a.value = Q, a.raw = g.slice(D, Ce), m(), A(a, "Literal");
|
|
602
619
|
case jn:
|
|
603
620
|
case Rn:
|
|
604
621
|
case Pn:
|
|
605
|
-
return
|
|
622
|
+
return a = M(), a.value = I.$a, a.raw = I.l, m(), A(a, "Literal");
|
|
606
623
|
case le:
|
|
607
|
-
|
|
624
|
+
a = Ct;
|
|
608
625
|
var l = D;
|
|
609
626
|
m();
|
|
610
627
|
var c = K();
|
|
611
|
-
return c.start = l, c.end = Ce, O.C && (c.X.start =
|
|
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;
|
|
612
629
|
case Mt:
|
|
613
|
-
return
|
|
630
|
+
return a = M(), m(), a.elements = xt(Ut, !0, !0), A(a, "ArrayExpression");
|
|
614
631
|
case De:
|
|
615
|
-
for (
|
|
632
|
+
for (a = M(), l = !0, c = !1, a.h = [], m(); !U(Ie); ) {
|
|
616
633
|
if (l)
|
|
617
634
|
l = !1;
|
|
618
635
|
else if (F(ye), O.sb && U(Ie))
|
|
@@ -626,61 +643,61 @@ var N, xo = function(e) {
|
|
|
626
643
|
} else
|
|
627
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 === Ve || I === tt ? et() : ae(!0), I !== le && ie(), p.value = wt(M(), !1));
|
|
628
645
|
if (p.key.type === "Identifier" && (q || c))
|
|
629
|
-
for (var X = 0; X <
|
|
630
|
-
var Ae =
|
|
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
649
|
var Vt = _ === Ae.kind || T && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
633
650
|
Vt && !q && _ === "init" && Ae.kind === "init" && (Vt = !1), Vt && r(p.key.start, "Redefinition of property");
|
|
634
651
|
}
|
|
635
652
|
}
|
|
636
|
-
|
|
653
|
+
a.h.push(p);
|
|
637
654
|
}
|
|
638
|
-
return A(
|
|
655
|
+
return A(a, "ObjectExpression");
|
|
639
656
|
case Rt:
|
|
640
|
-
return
|
|
657
|
+
return a = M(), m(), wt(a, !1);
|
|
641
658
|
case An:
|
|
642
|
-
return
|
|
659
|
+
return a = M(), m(), a.callee = Me(et(), !0), a.arguments = U(le) ? xt(re, !1) : Fr, A(a, "NewExpression");
|
|
643
660
|
}
|
|
644
661
|
ie();
|
|
645
662
|
}
|
|
646
|
-
function wt(
|
|
647
|
-
I === Ee ?
|
|
663
|
+
function wt(a, l) {
|
|
664
|
+
I === Ee ? a.id = ae() : l ? ie() : a.id = null, a.oa = [];
|
|
648
665
|
var c = !0;
|
|
649
666
|
for (F(le); !U(re); )
|
|
650
|
-
c ? c = !1 : F(ye),
|
|
667
|
+
c ? c = !1 : F(ye), a.oa.push(ae());
|
|
651
668
|
c = Fe;
|
|
652
669
|
var p = V;
|
|
653
|
-
if (Fe = !0, V = [],
|
|
654
|
-
for (c =
|
|
655
|
-
if (p = 0 > c ?
|
|
670
|
+
if (Fe = !0, V = [], a.body = Be(!0), Fe = c, V = 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 ===
|
|
674
|
+
p.name === a.oa[T].name && r(p.start, "Argument name clash in strict mode");
|
|
658
675
|
}
|
|
659
|
-
return A(
|
|
676
|
+
return A(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
660
677
|
}
|
|
661
|
-
function xt(
|
|
662
|
-
for (var p = [], T = !0; !U(
|
|
678
|
+
function xt(a, l, c) {
|
|
679
|
+
for (var p = [], T = !0; !U(a); ) {
|
|
663
680
|
if (T)
|
|
664
681
|
T = !1;
|
|
665
|
-
else if (F(ye), l && O.sb && U(
|
|
682
|
+
else if (F(ye), l && O.sb && U(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(
|
|
688
|
+
function ae(a) {
|
|
672
689
|
var l = M();
|
|
673
|
-
return
|
|
690
|
+
return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && Yr(Q) || q && _n(Q)) && g.slice(D, Ce).indexOf("\\") === -1 && r(D, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ie(), Ue = !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(
|
|
678
|
-
g = String(
|
|
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
|
|
682
|
-
c = ne(),
|
|
683
|
-
return A(
|
|
698
|
+
for (kt = O.sourceFile, Se = 1, f = se = 0, Ue = !0, d(), c = O.dc, It = ge = f, O.C && (Tt = new i()), Fe = q = !1, V = [], E(), a = c || M(), 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,
|
|
713
|
+
}, f = 0, D = 0, Ce = 0, Ct, Et, I, Q, Ue, Se, se, It = 0, ge = 0, Tt, Fe, V, q, Fr = [], Ve = {
|
|
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
|
-
},
|
|
786
|
+
}, Vr = {
|
|
770
787
|
break: Ot,
|
|
771
788
|
case: jt,
|
|
772
789
|
catch: mn,
|
|
@@ -850,7 +867,7 @@ var N, xo = function(e) {
|
|
|
850
867
|
}, we = {
|
|
851
868
|
Cb: !0,
|
|
852
869
|
m: !0
|
|
853
|
-
},
|
|
870
|
+
}, Dr = {
|
|
854
871
|
cc: !0,
|
|
855
872
|
prefix: !0,
|
|
856
873
|
$b: !0
|
|
@@ -863,34 +880,34 @@ var N, xo = function(e) {
|
|
|
863
880
|
}, Dn = {
|
|
864
881
|
L: 2,
|
|
865
882
|
m: !0
|
|
866
|
-
},
|
|
883
|
+
}, _r = {
|
|
867
884
|
L: 3,
|
|
868
885
|
m: !0
|
|
869
|
-
},
|
|
886
|
+
}, Lr = {
|
|
870
887
|
L: 4,
|
|
871
888
|
m: !0
|
|
872
|
-
},
|
|
889
|
+
}, Wr = {
|
|
873
890
|
L: 5,
|
|
874
891
|
m: !0
|
|
875
|
-
},
|
|
892
|
+
}, $r = {
|
|
876
893
|
L: 6,
|
|
877
894
|
m: !0
|
|
878
|
-
},
|
|
895
|
+
}, Hr = {
|
|
879
896
|
L: 7,
|
|
880
897
|
m: !0
|
|
881
|
-
},
|
|
898
|
+
}, Kr = {
|
|
882
899
|
L: 8,
|
|
883
900
|
m: !0
|
|
884
|
-
},
|
|
901
|
+
}, Gr = {
|
|
885
902
|
L: 9,
|
|
886
903
|
prefix: !0,
|
|
887
904
|
m: !0
|
|
888
|
-
},
|
|
905
|
+
}, Xr = {
|
|
889
906
|
L: 10,
|
|
890
907
|
m: !0
|
|
891
|
-
},
|
|
908
|
+
}, Yr = o("class enum extends super const export import"), _n = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), Jr = 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"), zr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), qr = 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
|
-
},
|
|
910
|
+
}, Zr = {
|
|
894
911
|
kind: "switch"
|
|
895
912
|
};
|
|
896
913
|
}, Lt = Lt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
@@ -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
|
|
927
|
+
var i, s;
|
|
911
928
|
for (s in this)
|
|
912
|
-
typeof this[s] == "function" && (
|
|
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),
|
|
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
|
-
},
|
|
956
|
+
}, fr = {
|
|
940
957
|
STEP_ERROR: !0
|
|
941
958
|
}, Pe = {
|
|
942
959
|
SCOPE_REFERENCE: !0
|
|
@@ -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 &&
|
|
1015
|
+
this.ca.shift(), 0 <= n.interval && hr(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
|
|
1026
|
+
var i = this.rb[r.type](e, n, r);
|
|
1010
1027
|
} catch (s) {
|
|
1011
|
-
if (s !==
|
|
1028
|
+
if (s !== fr)
|
|
1012
1029
|
throw this.value !== s && (this.value = void 0), s;
|
|
1013
1030
|
} finally {
|
|
1014
1031
|
Ge = o;
|
|
1015
1032
|
}
|
|
1016
|
-
if (
|
|
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");
|
|
@@ -1033,29 +1050,29 @@ function Co(e, t) {
|
|
|
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(
|
|
1053
|
+
n = function(i) {
|
|
1037
1054
|
return function(s) {
|
|
1038
1055
|
try {
|
|
1039
|
-
return
|
|
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(
|
|
1062
|
+
n = function(i) {
|
|
1046
1063
|
return Kn(e, !1, arguments);
|
|
1047
|
-
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(
|
|
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(
|
|
1050
|
-
Gn(e,
|
|
1051
|
-
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(
|
|
1052
|
-
Gn(e,
|
|
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
1073
|
function Eo(e, t) {
|
|
1057
1074
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1058
|
-
var
|
|
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,22 +1082,22 @@ function Eo(e, t) {
|
|
|
1065
1082
|
s = s.join(", ");
|
|
1066
1083
|
}
|
|
1067
1084
|
try {
|
|
1068
|
-
var k = je("(function(" + s + ") {" +
|
|
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,
|
|
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 = [],
|
|
1094
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof R ? s.F = pr(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
|
|
1080
|
-
|
|
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
|
-
|
|
1083
|
-
|
|
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() {
|
|
@@ -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
|
|
1099
|
-
return
|
|
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,
|
|
1110
|
-
return
|
|
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,
|
|
1112
|
-
if (o instanceof R || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o),
|
|
1113
|
-
var s = Object.getOwnPropertyDescriptor(o.h,
|
|
1114
|
-
return o = o.Y[
|
|
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);
|
|
@@ -1134,13 +1151,13 @@ function Io(e, t) {
|
|
|
1134
1151
|
}
|
|
1135
1152
|
function To(e, t) {
|
|
1136
1153
|
var n = function(r) {
|
|
1137
|
-
var o = de(e) ? this : Re(e),
|
|
1138
|
-
if (arguments.length === 1 && typeof
|
|
1139
|
-
isNaN(zt(
|
|
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 (
|
|
1142
|
-
o.h[
|
|
1143
|
-
o.h.length =
|
|
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
|
};
|
|
@@ -1158,81 +1175,81 @@ function Ao(e, t) {
|
|
|
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,
|
|
1162
|
-
o = e.R(o),
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
1193
|
+
}, r, i), r !== Oe && i(ue(e, r));
|
|
1177
1194
|
else {
|
|
1178
|
-
var u = e.ha(), d = He(e, r, u,
|
|
1195
|
+
var u = e.ha(), d = He(e, r, u, i);
|
|
1179
1196
|
u.onmessage = function(k) {
|
|
1180
|
-
clearTimeout(d),
|
|
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),
|
|
1202
|
+
r = s.split(r, o), i(ue(e, r));
|
|
1186
1203
|
}, Ke(e, e.J, "split", n), n = function(r, o) {
|
|
1187
|
-
var
|
|
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:
|
|
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",
|
|
1215
|
+
}, s.postMessage(["match", i, r]);
|
|
1199
1216
|
}
|
|
1200
1217
|
else
|
|
1201
|
-
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
|
|
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:
|
|
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",
|
|
1231
|
+
}, s.postMessage(["search", i, r]);
|
|
1215
1232
|
}
|
|
1216
1233
|
else
|
|
1217
|
-
o(
|
|
1218
|
-
}, Ke(e, e.J, "search", n), n = function(r, o,
|
|
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,
|
|
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,
|
|
1243
|
+
}, r, i), r !== Oe && i(r);
|
|
1227
1244
|
else {
|
|
1228
|
-
var u = e.ha(), d = He(e, r, u,
|
|
1245
|
+
var u = e.ha(), d = He(e, r, u, i);
|
|
1229
1246
|
u.onmessage = function(k) {
|
|
1230
|
-
clearTimeout(d),
|
|
1247
|
+
clearTimeout(d), i(k.data);
|
|
1231
1248
|
}, u.postMessage(["replace", s, r, o]);
|
|
1232
1249
|
}
|
|
1233
1250
|
return;
|
|
1234
1251
|
}
|
|
1235
|
-
|
|
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
1255
|
function Oo(e, t) {
|
|
@@ -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 (
|
|
1278
|
-
w(e, e.D, "toLocaleString: " +
|
|
1294
|
+
} catch (i) {
|
|
1295
|
+
w(e, e.D, "toLocaleString: " + i.message);
|
|
1279
1296
|
}
|
|
1280
1297
|
}, W(e, e.aa, "toLocaleString", n);
|
|
1281
1298
|
}
|
|
1282
1299
|
function Ro(e, t) {
|
|
1283
|
-
var n = function(o,
|
|
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(
|
|
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++)
|
|
@@ -1301,11 +1318,11 @@ function Ro(e, t) {
|
|
|
1301
1318
|
function Po(e, t) {
|
|
1302
1319
|
var n = function(r, o) {
|
|
1303
1320
|
if (de(e))
|
|
1304
|
-
var
|
|
1321
|
+
var i = this;
|
|
1305
1322
|
else {
|
|
1306
1323
|
if (o === void 0 && H(e, r, e.I))
|
|
1307
1324
|
return r;
|
|
1308
|
-
|
|
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,
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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
1360
|
function No(e, t) {
|
|
1344
1361
|
function n(r) {
|
|
1345
|
-
var o = e.i(function(
|
|
1362
|
+
var o = e.i(function(i) {
|
|
1346
1363
|
var s = de(e) ? this : e.Aa(o);
|
|
1347
|
-
return Wt(e, 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
|
}
|
|
@@ -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 (
|
|
1371
|
-
w(e, e.T,
|
|
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,
|
|
1375
|
-
o && o.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o =
|
|
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 = pr(e, o), o = o.filter(function(u) {
|
|
1376
1393
|
return typeof u == "string" || typeof u == "number";
|
|
1377
|
-
})) : o = null, typeof
|
|
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,
|
|
1396
|
+
var s = JSON.stringify(r, o, i);
|
|
1380
1397
|
} catch (u) {
|
|
1381
1398
|
w(e, e.j, u.message);
|
|
1382
1399
|
}
|
|
@@ -1401,19 +1418,19 @@ 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],
|
|
1405
|
-
|
|
1406
|
-
Nb:
|
|
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")),
|
|
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,
|
|
1413
|
-
`) :
|
|
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",
|
|
1433
|
+
e.g(t, "stack", i.trim(), y);
|
|
1417
1434
|
}
|
|
1418
1435
|
N.ha = function() {
|
|
1419
1436
|
var e = this.ha.Mb;
|
|
@@ -1423,11 +1440,11 @@ N.ha = function() {
|
|
|
1423
1440
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1424
1441
|
};
|
|
1425
1442
|
function We(e, t, n, r, o) {
|
|
1426
|
-
var
|
|
1443
|
+
var i = {
|
|
1427
1444
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1428
1445
|
};
|
|
1429
1446
|
try {
|
|
1430
|
-
return fe.runInNewContext(t, n,
|
|
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(
|
|
1510
|
-
return n.R(
|
|
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
|
|
1578
|
+
function pr(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
|
|
1622
|
-
if (t === "length" || !isNaN(
|
|
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 (
|
|
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 <
|
|
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(
|
|
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
|
|
1716
|
+
return o = e.s(null), r = new mr(n, r, o), n || Co(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
|
|
1721
|
+
return e = n || e.s(null), new mr(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
|
|
1733
|
+
function dr(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
|
|
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 ===
|
|
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 ===
|
|
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 ?
|
|
1805
|
+
return t[0] === Pe ? dr(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),
|
|
1808
|
+
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t), fr) : 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
|
|
1800
|
-
switch (
|
|
1816
|
+
var i = o[o.length - 1];
|
|
1817
|
+
switch (i.node.type) {
|
|
1801
1818
|
case "TryStatement":
|
|
1802
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1835
|
+
i.done = !0;
|
|
1819
1836
|
break e;
|
|
1820
1837
|
}
|
|
1821
1838
|
if (t === 1) {
|
|
1822
|
-
if (r ?
|
|
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 ?
|
|
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),
|
|
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 (
|
|
1874
|
-
var u =
|
|
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(
|
|
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),
|
|
1901
|
+
return t = new Uo(u, o, r, s, t ? n : -1), hr(e, t, n), t.Db;
|
|
1885
1902
|
}
|
|
1886
|
-
function
|
|
1903
|
+
function hr(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
|
});
|
|
@@ -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
|
|
1944
|
+
function mr(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
|
|
1950
|
-
t[o] =
|
|
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 {
|
|
@@ -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
|
|
2166
|
-
(typeof
|
|
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
|
}
|
|
@@ -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
|
|
2363
|
-
t.Ja[
|
|
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
|
-
|
|
2386
|
+
i = s.name;
|
|
2370
2387
|
else if (s.type === "Literal")
|
|
2371
|
-
|
|
2388
|
+
i = s.value;
|
|
2372
2389
|
else
|
|
2373
2390
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2374
|
-
return t.Pa =
|
|
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
|
|
2414
|
-
if (o.da[
|
|
2415
|
-
return t.Zb = !0, t.A =
|
|
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 && (
|
|
2529
|
+
for (t.Bb && o && (dr(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,7 +2560,7 @@ const Vo = (e) => e.split(`
|
|
|
2543
2560
|
return;
|
|
2544
2561
|
if (!n.startsWith("state."))
|
|
2545
2562
|
return t;
|
|
2546
|
-
const [o,
|
|
2563
|
+
const [o, i] = n.split("="), u = `setRootState('${o.replace("state.", "").trim()}', ${i.trim()})`;
|
|
2547
2564
|
return `
|
|
2548
2565
|
${t}
|
|
2549
2566
|
${u}
|
|
@@ -2555,7 +2572,7 @@ const Vo = (e) => e.split(`
|
|
|
2555
2572
|
event: n,
|
|
2556
2573
|
rootState: r,
|
|
2557
2574
|
localState: o,
|
|
2558
|
-
rootSetState:
|
|
2575
|
+
rootSetState: i,
|
|
2559
2576
|
code: s
|
|
2560
2577
|
}) => {
|
|
2561
2578
|
const u = {
|
|
@@ -2583,8 +2600,8 @@ function theFunction() {
|
|
|
2583
2600
|
}
|
|
2584
2601
|
theFunction();
|
|
2585
2602
|
`, P = (v, x) => {
|
|
2586
|
-
const B =
|
|
2587
|
-
|
|
2603
|
+
const B = ur(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($);
|
|
@@ -2611,14 +2628,14 @@ const 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() ?
|
|
2631
|
+
}, Wo = (e) => G() || Lo() ? wo(e) : Do(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:
|
|
2638
|
+
event: i,
|
|
2622
2639
|
isExpression: s = !0
|
|
2623
2640
|
}) {
|
|
2624
2641
|
if (e === "") {
|
|
@@ -2626,12 +2643,12 @@ function sn({
|
|
|
2626
2643
|
return;
|
|
2627
2644
|
}
|
|
2628
2645
|
const u = {
|
|
2629
|
-
code:
|
|
2646
|
+
code: So(e, {
|
|
2630
2647
|
isExpression: s
|
|
2631
2648
|
}),
|
|
2632
|
-
builder:
|
|
2649
|
+
builder: bo(),
|
|
2633
2650
|
context: t,
|
|
2634
|
-
event:
|
|
2651
|
+
event: i,
|
|
2635
2652
|
rootSetState: o,
|
|
2636
2653
|
rootState: r,
|
|
2637
2654
|
localState: n
|
|
@@ -2655,13 +2672,13 @@ const $o = ({
|
|
|
2655
2672
|
}) => {
|
|
2656
2673
|
if (!e.bindings)
|
|
2657
2674
|
return e;
|
|
2658
|
-
const
|
|
2659
|
-
...
|
|
2675
|
+
const i = pt(e), s = {
|
|
2676
|
+
...i,
|
|
2660
2677
|
properties: {
|
|
2661
|
-
...
|
|
2678
|
+
...i.properties
|
|
2662
2679
|
},
|
|
2663
2680
|
actions: {
|
|
2664
|
-
...
|
|
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
|
-
|
|
2692
|
+
ur(s, u, k);
|
|
2676
2693
|
}
|
|
2677
2694
|
return s;
|
|
2678
2695
|
};
|
|
@@ -2682,14 +2699,14 @@ function ct({
|
|
|
2682
2699
|
shouldEvaluateBindings: n,
|
|
2683
2700
|
localState: r,
|
|
2684
2701
|
rootState: o,
|
|
2685
|
-
rootSetState:
|
|
2702
|
+
rootSetState: i
|
|
2686
2703
|
}) {
|
|
2687
2704
|
const s = e;
|
|
2688
2705
|
return n ? $o({
|
|
2689
2706
|
block: s,
|
|
2690
2707
|
localState: r,
|
|
2691
2708
|
rootState: o,
|
|
2692
|
-
rootSetState:
|
|
2709
|
+
rootSetState: i,
|
|
2693
2710
|
context: t
|
|
2694
2711
|
}) : s;
|
|
2695
2712
|
}
|
|
@@ -2698,15 +2715,15 @@ const Ho = ({
|
|
|
2698
2715
|
context: t,
|
|
2699
2716
|
registeredComponents: n
|
|
2700
2717
|
}) => {
|
|
2701
|
-
var
|
|
2702
|
-
const r = (
|
|
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 :
|
|
2726
|
+
}).component) == null ? void 0 : i.name;
|
|
2710
2727
|
if (!r)
|
|
2711
2728
|
return null;
|
|
2712
2729
|
const o = n[r];
|
|
@@ -2734,7 +2751,7 @@ const Ho = ({
|
|
|
2734
2751
|
});
|
|
2735
2752
|
if (!Array.isArray(o))
|
|
2736
2753
|
return;
|
|
2737
|
-
const
|
|
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
|
-
},
|
|
2768
|
+
}, gr = {
|
|
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 =
|
|
2784
|
+
}, Yn = (e, t = gr) => `@media (max-width: ${t[e].max}px)`, yr = ({
|
|
2768
2785
|
small: e,
|
|
2769
2786
|
medium: t
|
|
2770
2787
|
}) => {
|
|
2771
|
-
const n = pt(
|
|
2788
|
+
const n = pt(gr);
|
|
2772
2789
|
if (!e || !t)
|
|
2773
2790
|
return n;
|
|
2774
2791
|
const r = Math.floor(e / 2);
|
|
@@ -2783,17 +2800,17 @@ const Ho = ({
|
|
|
2783
2800
|
min: o,
|
|
2784
2801
|
default: o + 1
|
|
2785
2802
|
};
|
|
2786
|
-
const
|
|
2803
|
+
const i = n.medium.max + 1;
|
|
2787
2804
|
return n.large = {
|
|
2788
2805
|
max: 2e3,
|
|
2789
2806
|
// TODO: decide upper limit
|
|
2790
|
-
min:
|
|
2791
|
-
default:
|
|
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(),
|
|
2810
|
+
}, Go = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), vr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2794
2811
|
if (typeof r == "string")
|
|
2795
2812
|
return `${Go(n)}: ${r};`;
|
|
2796
|
-
}).filter(oe), Xo = (e) =>
|
|
2813
|
+
}).filter(oe), Xo = (e) => vr(e).join(`
|
|
2797
2814
|
`), _t = ({
|
|
2798
2815
|
mediaQuery: e,
|
|
2799
2816
|
className: t,
|
|
@@ -2829,9 +2846,9 @@ function Yo(e) {
|
|
|
2829
2846
|
rootSetState: e.context.rootSetState,
|
|
2830
2847
|
context: e.context.context,
|
|
2831
2848
|
shouldEvaluateBindings: !0
|
|
2832
|
-
}),
|
|
2849
|
+
}), i = o.responsiveStyles, s = e.context.content, u = yr(
|
|
2833
2850
|
((x = s == null ? void 0 : s.meta) == null ? void 0 : x.breakpoints) || {}
|
|
2834
|
-
), d =
|
|
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({
|
|
@@ -2874,17 +2891,17 @@ function Ba(e) {
|
|
|
2874
2891
|
if (!n.hasOwnProperty(r))
|
|
2875
2892
|
continue;
|
|
2876
2893
|
const o = n[r];
|
|
2877
|
-
let
|
|
2894
|
+
let i = zo(r);
|
|
2878
2895
|
if (e.stripPrefix)
|
|
2879
2896
|
switch (he) {
|
|
2880
2897
|
case "vue":
|
|
2881
|
-
|
|
2898
|
+
i = i.replace("v-on:", "");
|
|
2882
2899
|
break;
|
|
2883
2900
|
case "svelte":
|
|
2884
|
-
|
|
2901
|
+
i = i.replace("on:", "");
|
|
2885
2902
|
break;
|
|
2886
2903
|
}
|
|
2887
|
-
t[
|
|
2904
|
+
t[i] = qo(o, e);
|
|
2888
2905
|
}
|
|
2889
2906
|
return t;
|
|
2890
2907
|
}
|
|
@@ -2896,17 +2913,17 @@ function Zo({
|
|
|
2896
2913
|
const Qo = ({
|
|
2897
2914
|
block: e,
|
|
2898
2915
|
context: t
|
|
2899
|
-
}) =>
|
|
2916
|
+
}) => br(Zo({
|
|
2900
2917
|
style: e.style || {},
|
|
2901
2918
|
context: t,
|
|
2902
2919
|
block: e
|
|
2903
2920
|
}));
|
|
2904
|
-
function
|
|
2921
|
+
function br(e) {
|
|
2905
2922
|
switch (he) {
|
|
2906
2923
|
case "svelte":
|
|
2907
2924
|
case "vue":
|
|
2908
2925
|
case "solid":
|
|
2909
|
-
return
|
|
2926
|
+
return vr(e).join(" ");
|
|
2910
2927
|
case "qwik":
|
|
2911
2928
|
case "reactNative":
|
|
2912
2929
|
case "react":
|
|
@@ -2949,7 +2966,7 @@ const ri = ({
|
|
|
2949
2966
|
context: n,
|
|
2950
2967
|
componentRef: r,
|
|
2951
2968
|
includeBlockProps: o,
|
|
2952
|
-
isInteractive:
|
|
2969
|
+
isInteractive: i,
|
|
2953
2970
|
contextValue: s
|
|
2954
2971
|
}) => {
|
|
2955
2972
|
const u = {
|
|
@@ -2965,7 +2982,7 @@ const ri = ({
|
|
|
2965
2982
|
})
|
|
2966
2983
|
} : {}
|
|
2967
2984
|
};
|
|
2968
|
-
return
|
|
2985
|
+
return i ? {
|
|
2969
2986
|
Wrapper: r,
|
|
2970
2987
|
block: t,
|
|
2971
2988
|
context: n,
|
|
@@ -2975,7 +2992,7 @@ const ri = ({
|
|
|
2975
2992
|
};
|
|
2976
2993
|
function Jn(e) {
|
|
2977
2994
|
var n;
|
|
2978
|
-
const t = e.isInteractive ?
|
|
2995
|
+
const t = e.isInteractive ? eo : e.componentRef;
|
|
2979
2996
|
return /* @__PURE__ */ C(L, { children: e.componentRef ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
2980
2997
|
t,
|
|
2981
2998
|
{
|
|
@@ -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
|
-
},
|
|
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
|
-
...
|
|
3075
|
+
...mo(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,7 +3089,7 @@ function ht(e) {
|
|
|
3072
3089
|
isInteractive: !((te = t()) != null && te.isRSC)
|
|
3073
3090
|
};
|
|
3074
3091
|
}, d = e.context;
|
|
3075
|
-
return /* @__PURE__ */ C(L, { children:
|
|
3092
|
+
return /* @__PURE__ */ C(L, { children: i() ? /* @__PURE__ */ xe(L, { children: [
|
|
3076
3093
|
/* @__PURE__ */ C(Yo, { block: e.block, context: e.context }),
|
|
3077
3094
|
(k = t()) != null && k.noWrap ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
3078
3095
|
Jn,
|
|
@@ -3097,7 +3114,7 @@ function ht(e) {
|
|
|
3097
3114
|
},
|
|
3098
3115
|
j
|
|
3099
3116
|
)) }) : /* @__PURE__ */ C(L, { children: /* @__PURE__ */ xe(
|
|
3100
|
-
|
|
3117
|
+
to,
|
|
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
|
-
|
|
3156
|
+
no,
|
|
3140
3157
|
{
|
|
3141
3158
|
blocks: e.blocks,
|
|
3142
3159
|
parent: e.parent,
|
|
@@ -3162,7 +3179,7 @@ function ii(e) {
|
|
|
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
|
-
},
|
|
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, $ =
|
|
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
|
|
3232
|
+
return yr(
|
|
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
|
-
|
|
3271
|
+
ro,
|
|
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:
|
|
3280
|
+
style: br(E(x))
|
|
3264
3281
|
},
|
|
3265
3282
|
children: /* @__PURE__ */ C(
|
|
3266
3283
|
mt,
|
|
@@ -3302,8 +3319,8 @@ function si(e, t) {
|
|
|
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],
|
|
3306
|
-
return zn(`${r[0]}_${
|
|
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
|
}
|
|
@@ -3323,7 +3340,7 @@ const li = (e) => {
|
|
|
3323
3340
|
return e;
|
|
3324
3341
|
const t = e.split(".");
|
|
3325
3342
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3326
|
-
},
|
|
3343
|
+
}, Sr = ({
|
|
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
|
-
},
|
|
3354
|
+
}, wr = async (e) => Sr(e), ci = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), ui = [["secure", ""], ["SameSite", "None"]], fi = ({
|
|
3338
3355
|
name: e,
|
|
3339
3356
|
value: t,
|
|
3340
3357
|
expires: n
|
|
3341
3358
|
}) => {
|
|
3342
|
-
const o = (G() ? location.protocol === "https:" : !0) ? ui : [[]],
|
|
3359
|
+
const o = (G() ? location.protocol === "https:" : !0) ? ui : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", li(window.location.hostname)], ...o];
|
|
3343
3360
|
return ci(s);
|
|
3344
|
-
},
|
|
3361
|
+
}, xr = async ({
|
|
3345
3362
|
name: e,
|
|
3346
3363
|
value: t,
|
|
3347
3364
|
expires: n,
|
|
@@ -3361,35 +3378,35 @@ const li = (e) => {
|
|
|
3361
3378
|
}
|
|
3362
3379
|
}, pi = "builder.tests", ln = (e) => `${pi}.${e}`, di = ({
|
|
3363
3380
|
contentId: e
|
|
3364
|
-
}) =>
|
|
3381
|
+
}) => wr({
|
|
3365
3382
|
name: ln(e),
|
|
3366
3383
|
canTrack: !0
|
|
3367
3384
|
}), hi = ({
|
|
3368
3385
|
contentId: e
|
|
3369
|
-
}) =>
|
|
3386
|
+
}) => Sr({
|
|
3370
3387
|
name: ln(e),
|
|
3371
3388
|
canTrack: !0
|
|
3372
3389
|
}), mi = ({
|
|
3373
3390
|
contentId: e,
|
|
3374
3391
|
value: t
|
|
3375
|
-
}) =>
|
|
3392
|
+
}) => xr({
|
|
3376
3393
|
name: ln(e),
|
|
3377
3394
|
value: t,
|
|
3378
3395
|
canTrack: !0
|
|
3379
|
-
}),
|
|
3396
|
+
}), kr = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, gi = ({
|
|
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
|
|
3387
|
-
const s = (o = t[
|
|
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
|
|
3406
|
+
return i;
|
|
3390
3407
|
}
|
|
3391
3408
|
return e;
|
|
3392
|
-
},
|
|
3409
|
+
}, Cr = (e) => {
|
|
3393
3410
|
const t = gi(e);
|
|
3394
3411
|
return mi({
|
|
3395
3412
|
contentId: e.id,
|
|
@@ -3397,7 +3414,7 @@ const li = (e) => {
|
|
|
3397
3414
|
}).catch((n) => {
|
|
3398
3415
|
z.error("could not store A/B test variation: ", n);
|
|
3399
3416
|
}), t;
|
|
3400
|
-
},
|
|
3417
|
+
}, Er = ({
|
|
3401
3418
|
item: e,
|
|
3402
3419
|
testGroupId: t
|
|
3403
3420
|
}) => {
|
|
@@ -3419,14 +3436,14 @@ const li = (e) => {
|
|
|
3419
3436
|
return e;
|
|
3420
3437
|
if (!e)
|
|
3421
3438
|
return;
|
|
3422
|
-
if (!
|
|
3439
|
+
if (!kr(e))
|
|
3423
3440
|
return e;
|
|
3424
3441
|
const n = hi({
|
|
3425
3442
|
contentId: e.id
|
|
3426
|
-
}) ||
|
|
3443
|
+
}) || Cr({
|
|
3427
3444
|
variations: e.variations,
|
|
3428
3445
|
id: e.id
|
|
3429
|
-
}), r =
|
|
3446
|
+
}), r = Er({
|
|
3430
3447
|
item: e,
|
|
3431
3448
|
testGroupId: n
|
|
3432
3449
|
});
|
|
@@ -3438,14 +3455,14 @@ const li = (e) => {
|
|
|
3438
3455
|
item: e,
|
|
3439
3456
|
canTrack: t
|
|
3440
3457
|
}) => {
|
|
3441
|
-
if (!t || !
|
|
3458
|
+
if (!t || !kr(e))
|
|
3442
3459
|
return e;
|
|
3443
3460
|
const r = await di({
|
|
3444
3461
|
contentId: e.id
|
|
3445
|
-
}) ||
|
|
3462
|
+
}) || Cr({
|
|
3446
3463
|
variations: e.variations,
|
|
3447
3464
|
id: e.id
|
|
3448
|
-
}), o =
|
|
3465
|
+
}), o = Er({
|
|
3449
3466
|
item: e,
|
|
3450
3467
|
testGroupId: r
|
|
3451
3468
|
});
|
|
@@ -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((
|
|
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",
|
|
@@ -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"),
|
|
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 && (!
|
|
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));
|
|
@@ -4077,28 +4094,28 @@ const Ni = {
|
|
|
4077
4094
|
advanced: !0
|
|
4078
4095
|
}]
|
|
4079
4096
|
}, qn = () => [{
|
|
4080
|
-
component:
|
|
4097
|
+
component: oo,
|
|
4081
4098
|
...bi
|
|
4082
4099
|
}, {
|
|
4083
4100
|
component: ii,
|
|
4084
4101
|
...Si
|
|
4085
4102
|
}, {
|
|
4086
|
-
component:
|
|
4103
|
+
component: io,
|
|
4087
4104
|
...wi
|
|
4088
4105
|
}, {
|
|
4089
|
-
component:
|
|
4106
|
+
component: ao,
|
|
4090
4107
|
...xi
|
|
4091
4108
|
}, {
|
|
4092
|
-
component:
|
|
4109
|
+
component: so,
|
|
4093
4110
|
...Ci
|
|
4094
4111
|
}, {
|
|
4095
|
-
component:
|
|
4112
|
+
component: lo,
|
|
4096
4113
|
...Ei
|
|
4097
4114
|
}, {
|
|
4098
|
-
component:
|
|
4115
|
+
component: co,
|
|
4099
4116
|
...Ii
|
|
4100
4117
|
}, {
|
|
4101
|
-
component:
|
|
4118
|
+
component: uo,
|
|
4102
4119
|
...Ti
|
|
4103
4120
|
}, {
|
|
4104
4121
|
component: Ta,
|
|
@@ -4107,7 +4124,7 @@ const Ni = {
|
|
|
4107
4124
|
component: Pi,
|
|
4108
4125
|
...Ri
|
|
4109
4126
|
}, {
|
|
4110
|
-
component:
|
|
4127
|
+
component: fo,
|
|
4111
4128
|
...Ni
|
|
4112
4129
|
}, {
|
|
4113
4130
|
component: Oi,
|
|
@@ -4123,9 +4140,9 @@ const Ni = {
|
|
|
4123
4140
|
...t
|
|
4124
4141
|
}) => ({
|
|
4125
4142
|
...pt(t),
|
|
4126
|
-
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o,
|
|
4143
|
+
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4127
4144
|
...r,
|
|
4128
|
-
[o]: Mi(
|
|
4145
|
+
[o]: Mi(i)
|
|
4129
4146
|
}), {}))
|
|
4130
4147
|
}), Ui = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4131
4148
|
function getAndSetVariantId() {
|
|
@@ -4217,24 +4234,24 @@ const Ni = {
|
|
|
4217
4234
|
thisScriptEl?.remove();
|
|
4218
4235
|
}
|
|
4219
4236
|
return;
|
|
4220
|
-
}`,
|
|
4237
|
+
}`, Ir = "builderIoAbTest", Tr = "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",
|
|
4228
|
-
window.${
|
|
4229
|
-
window.${
|
|
4244
|
+
}) => !(!(st(t).length > 0) || !e || G()), Di = (e) => e === "react" || e === "reactNative", Ar = Di(he), _i = () => `
|
|
4245
|
+
window.${Ir} = ${Ui}
|
|
4246
|
+
window.${Tr} = ${Fi}
|
|
4230
4247
|
`, Li = (e, t) => `
|
|
4231
|
-
window.${
|
|
4232
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4248
|
+
window.${Ir}(
|
|
4249
|
+
"${t}",${JSON.stringify(e)}, ${Ar}
|
|
4233
4250
|
)`, Wi = ({
|
|
4234
4251
|
contentId: e,
|
|
4235
4252
|
variationId: t
|
|
4236
|
-
}) => `window.${
|
|
4237
|
-
"${t}", "${e}", ${
|
|
4253
|
+
}) => `window.${Tr}(
|
|
4254
|
+
"${t}", "${e}", ${Ar}
|
|
4238
4255
|
)`;
|
|
4239
4256
|
function Gt(e) {
|
|
4240
4257
|
return /* @__PURE__ */ C(
|
|
@@ -4250,7 +4267,7 @@ const $i = (e) => {
|
|
|
4250
4267
|
return n || z.warn("No previewed ID found in search params."), n;
|
|
4251
4268
|
};
|
|
4252
4269
|
function Hi() {
|
|
4253
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4270
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Qr({
|
|
4254
4271
|
max: 500,
|
|
4255
4272
|
// how long to live in ms
|
|
4256
4273
|
ttl: 1e3 * 60 * 5
|
|
@@ -4274,13 +4291,13 @@ function Xi() {
|
|
|
4274
4291
|
const Yi = Xi();
|
|
4275
4292
|
function lt(e, t = null, n = ".") {
|
|
4276
4293
|
return Object.keys(e).reduce((r, o) => {
|
|
4277
|
-
const
|
|
4278
|
-
return [typeof
|
|
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(
|
|
4297
|
+
...lt(i, s, n)
|
|
4281
4298
|
} : {
|
|
4282
4299
|
...r,
|
|
4283
|
-
[s]:
|
|
4300
|
+
[s]: i
|
|
4284
4301
|
};
|
|
4285
4302
|
}, {});
|
|
4286
4303
|
}
|
|
@@ -4289,10 +4306,10 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4289
4306
|
return e.forEach((n, r) => {
|
|
4290
4307
|
t[r] = n;
|
|
4291
4308
|
}), t;
|
|
4292
|
-
},
|
|
4309
|
+
}, Or = (e) => {
|
|
4293
4310
|
if (!e)
|
|
4294
4311
|
return {};
|
|
4295
|
-
const t =
|
|
4312
|
+
const t = jr(e), n = {};
|
|
4296
4313
|
return Object.keys(t).forEach((r) => {
|
|
4297
4314
|
if (r.startsWith(Qn)) {
|
|
4298
4315
|
const o = r.replace(Qn, "").replace(zi, "");
|
|
@@ -4303,8 +4320,8 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4303
4320
|
if (!G())
|
|
4304
4321
|
return {};
|
|
4305
4322
|
const e = new URLSearchParams(window.location.search);
|
|
4306
|
-
return
|
|
4307
|
-
},
|
|
4323
|
+
return Or(e);
|
|
4324
|
+
}, jr = (e) => e instanceof URLSearchParams ? qi(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,7 +4329,7 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4312
4329
|
limit: n = 30,
|
|
4313
4330
|
userAttributes: r,
|
|
4314
4331
|
query: o,
|
|
4315
|
-
model:
|
|
4332
|
+
model: i,
|
|
4316
4333
|
apiKey: s,
|
|
4317
4334
|
includeRefs: u = !0,
|
|
4318
4335
|
enrich: d,
|
|
@@ -4331,7 +4348,7 @@ 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/${
|
|
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
|
|
@@ -4341,7 +4358,7 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4341
4358
|
}
|
|
4342
4359
|
const ee = {
|
|
4343
4360
|
...Zi(),
|
|
4344
|
-
...
|
|
4361
|
+
...jr(e.options || {})
|
|
4345
4362
|
}, te = lt(ee);
|
|
4346
4363
|
for (const Z in te)
|
|
4347
4364
|
m.searchParams.set(Z, String(te[Z]));
|
|
@@ -4355,7 +4372,7 @@ const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4355
4372
|
return m;
|
|
4356
4373
|
}, Qi = (e) => "results" in e;
|
|
4357
4374
|
async function un(e) {
|
|
4358
|
-
const t = await
|
|
4375
|
+
const t = await Rr({
|
|
4359
4376
|
...e,
|
|
4360
4377
|
limit: 1
|
|
4361
4378
|
});
|
|
@@ -4367,29 +4384,29 @@ const Va = un, ea = async (e) => {
|
|
|
4367
4384
|
}, ta = async (e, t, n = cn(e)) => {
|
|
4368
4385
|
const r = Ht(e.canTrack);
|
|
4369
4386
|
if (n.search.includes("preview=")) {
|
|
4370
|
-
const
|
|
4387
|
+
const i = [];
|
|
4371
4388
|
for (const s of t.results) {
|
|
4372
4389
|
const u = Ki(n.searchParams);
|
|
4373
|
-
|
|
4390
|
+
i.push(u || s);
|
|
4374
4391
|
}
|
|
4375
|
-
t.results =
|
|
4392
|
+
t.results = i;
|
|
4376
4393
|
}
|
|
4377
4394
|
if (!r || !(G() || he === "reactNative"))
|
|
4378
4395
|
return t.results;
|
|
4379
4396
|
try {
|
|
4380
|
-
const
|
|
4397
|
+
const i = [];
|
|
4381
4398
|
for (const s of t.results)
|
|
4382
|
-
|
|
4399
|
+
i.push(await vi({
|
|
4383
4400
|
item: s,
|
|
4384
4401
|
canTrack: r
|
|
4385
4402
|
}));
|
|
4386
|
-
t.results =
|
|
4387
|
-
} catch (
|
|
4388
|
-
z.error("Could not process A/B tests. ",
|
|
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
|
|
4409
|
+
async function Rr(e) {
|
|
4393
4410
|
try {
|
|
4394
4411
|
const t = cn(e), n = await ea(e);
|
|
4395
4412
|
return Qi(n) ? ta(e, n) : (z.error("Error fetching data. ", {
|
|
@@ -4401,7 +4418,7 @@ async function jr(e) {
|
|
|
4401
4418
|
return z.error("Error fetching data. ", t), null;
|
|
4402
4419
|
}
|
|
4403
4420
|
}
|
|
4404
|
-
const Da =
|
|
4421
|
+
const Da = Rr, na = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4405
4422
|
function ra(e, t) {
|
|
4406
4423
|
const n = new URL(t.origin), r = n.hostname;
|
|
4407
4424
|
return (e || na).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
@@ -4415,16 +4432,16 @@ function oa() {
|
|
|
4415
4432
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4416
4433
|
});
|
|
4417
4434
|
}
|
|
4418
|
-
function
|
|
4435
|
+
function Pr() {
|
|
4419
4436
|
return oa().replace(/-/g, "");
|
|
4420
4437
|
}
|
|
4421
|
-
const
|
|
4438
|
+
const Nr = "builderSessionId", ia = async ({
|
|
4422
4439
|
canTrack: e
|
|
4423
4440
|
}) => {
|
|
4424
4441
|
if (!e)
|
|
4425
4442
|
return;
|
|
4426
|
-
const t = await
|
|
4427
|
-
name:
|
|
4443
|
+
const t = await wr({
|
|
4444
|
+
name: Nr,
|
|
4428
4445
|
canTrack: e
|
|
4429
4446
|
});
|
|
4430
4447
|
if (oe(t))
|
|
@@ -4436,20 +4453,20 @@ const Pr = "builderSessionId", ia = async ({
|
|
|
4436
4453
|
canTrack: e
|
|
4437
4454
|
}), n;
|
|
4438
4455
|
}
|
|
4439
|
-
}, aa = () =>
|
|
4456
|
+
}, aa = () => Pr(), sa = ({
|
|
4440
4457
|
id: e,
|
|
4441
4458
|
canTrack: t
|
|
4442
|
-
}) =>
|
|
4443
|
-
name:
|
|
4459
|
+
}) => xr({
|
|
4460
|
+
name: Nr,
|
|
4444
4461
|
value: e,
|
|
4445
4462
|
canTrack: t
|
|
4446
|
-
}),
|
|
4463
|
+
}), Br = () => G() && typeof localStorage < "u" ? localStorage : void 0, la = ({
|
|
4447
4464
|
key: e,
|
|
4448
4465
|
canTrack: t
|
|
4449
4466
|
}) => {
|
|
4450
4467
|
var n;
|
|
4451
4468
|
try {
|
|
4452
|
-
return t ? (n =
|
|
4469
|
+
return t ? (n = Br()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4453
4470
|
} catch (r) {
|
|
4454
4471
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4455
4472
|
return;
|
|
@@ -4461,17 +4478,17 @@ const Pr = "builderSessionId", ia = async ({
|
|
|
4461
4478
|
}) => {
|
|
4462
4479
|
var r;
|
|
4463
4480
|
try {
|
|
4464
|
-
t && ((r =
|
|
4481
|
+
t && ((r = Br()) == null || r.setItem(e, n));
|
|
4465
4482
|
} catch (o) {
|
|
4466
4483
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4467
4484
|
}
|
|
4468
|
-
},
|
|
4485
|
+
}, Mr = "builderVisitorId", ua = ({
|
|
4469
4486
|
canTrack: e
|
|
4470
4487
|
}) => {
|
|
4471
4488
|
if (!e)
|
|
4472
4489
|
return;
|
|
4473
4490
|
const t = la({
|
|
4474
|
-
key:
|
|
4491
|
+
key: Mr,
|
|
4475
4492
|
canTrack: e
|
|
4476
4493
|
});
|
|
4477
4494
|
if (oe(t))
|
|
@@ -4483,11 +4500,11 @@ const Pr = "builderSessionId", ia = async ({
|
|
|
4483
4500
|
canTrack: e
|
|
4484
4501
|
}), n;
|
|
4485
4502
|
}
|
|
4486
|
-
}, fa = () =>
|
|
4503
|
+
}, fa = () => Pr(), pa = ({
|
|
4487
4504
|
id: e,
|
|
4488
4505
|
canTrack: t
|
|
4489
4506
|
}) => ca({
|
|
4490
|
-
key:
|
|
4507
|
+
key: Mr,
|
|
4491
4508
|
value: e,
|
|
4492
4509
|
canTrack: t
|
|
4493
4510
|
}), da = async ({
|
|
@@ -4572,9 +4589,9 @@ const ga = (e, t, n = !0) => {
|
|
|
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,
|
|
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:
|
|
4594
|
+
x: i,
|
|
4578
4595
|
y: s
|
|
4579
4596
|
};
|
|
4580
4597
|
}, Wa = (e) => {
|
|
@@ -4593,7 +4610,7 @@ 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.
|
|
4613
|
+
}, va = "0.12.6", rr = {};
|
|
4597
4614
|
function ba(e, t) {
|
|
4598
4615
|
let n = rr[e];
|
|
4599
4616
|
if (n || (n = rr[e] = []), n.push(t), G()) {
|
|
@@ -4654,7 +4671,7 @@ const Ha = (e = {}) => {
|
|
|
4654
4671
|
options: e
|
|
4655
4672
|
}
|
|
4656
4673
|
}, "*"), window.addEventListener("message", (r) => {
|
|
4657
|
-
var
|
|
4674
|
+
var i, s;
|
|
4658
4675
|
if (!ra(e.trustedHosts, r))
|
|
4659
4676
|
return;
|
|
4660
4677
|
const {
|
|
@@ -4670,7 +4687,7 @@ const Ha = (e = {}) => {
|
|
|
4670
4687
|
} catch (j) {
|
|
4671
4688
|
P = j;
|
|
4672
4689
|
}
|
|
4673
|
-
P ? (
|
|
4690
|
+
P ? (i = window.parent) == null || i.postMessage({
|
|
4674
4691
|
type: "builder.evaluateError",
|
|
4675
4692
|
data: {
|
|
4676
4693
|
id: k,
|
|
@@ -4697,8 +4714,8 @@ const Ha = (e = {}) => {
|
|
|
4697
4714
|
}
|
|
4698
4715
|
})));
|
|
4699
4716
|
}, Sa = (e) => {
|
|
4700
|
-
var
|
|
4701
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((
|
|
4717
|
+
var i;
|
|
4718
|
+
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
4719
|
let o = "";
|
|
4703
4720
|
if (r && t && n && (o += `
|
|
4704
4721
|
@font-face {
|
|
@@ -4765,8 +4782,8 @@ const Ca = ({
|
|
|
4765
4782
|
data: t,
|
|
4766
4783
|
locale: n
|
|
4767
4784
|
}) => {
|
|
4768
|
-
var
|
|
4769
|
-
const r = {}, o = ((
|
|
4785
|
+
var i, s, u;
|
|
4786
|
+
const r = {}, o = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
4770
4787
|
return (u = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || u.forEach((d) => {
|
|
4771
4788
|
d.name && d.defaultValue !== void 0 && (r[d.name] = d.defaultValue);
|
|
4772
4789
|
}), {
|
|
@@ -4789,12 +4806,12 @@ const Ca = ({
|
|
|
4789
4806
|
meta: e == null ? void 0 : e.meta
|
|
4790
4807
|
} : void 0;
|
|
4791
4808
|
function ir(e) {
|
|
4792
|
-
var o,
|
|
4809
|
+
var o, i, s, u, d, k, E, S, P;
|
|
4793
4810
|
const t = Wi({
|
|
4794
4811
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4795
4812
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4796
4813
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4797
|
-
contentId: (
|
|
4814
|
+
contentId: (i = e.content) == null ? void 0 : i.id
|
|
4798
4815
|
}), n = [
|
|
4799
4816
|
...qn(),
|
|
4800
4817
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4849,7 +4866,7 @@ function ir(e) {
|
|
|
4849
4866
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4850
4867
|
};
|
|
4851
4868
|
return /* @__PURE__ */ xe(
|
|
4852
|
-
|
|
4869
|
+
po,
|
|
4853
4870
|
{
|
|
4854
4871
|
content: e.content,
|
|
4855
4872
|
data: e.data,
|
|
@@ -4889,8 +4906,8 @@ function ir(e) {
|
|
|
4889
4906
|
}
|
|
4890
4907
|
);
|
|
4891
4908
|
}
|
|
4892
|
-
function
|
|
4893
|
-
var
|
|
4909
|
+
function Ur(e) {
|
|
4910
|
+
var i, s;
|
|
4894
4911
|
const t = Vi({
|
|
4895
4912
|
canTrack: Ht(e.canTrack),
|
|
4896
4913
|
content: e.content
|
|
@@ -4921,7 +4938,7 @@ function Mr(e) {
|
|
|
4921
4938
|
/* @__PURE__ */ C(
|
|
4922
4939
|
dt,
|
|
4923
4940
|
{
|
|
4924
|
-
id: `variants-styles-${(
|
|
4941
|
+
id: `variants-styles-${(i = e.content) == null ? void 0 : i.id}`,
|
|
4925
4942
|
styles: r()
|
|
4926
4943
|
}
|
|
4927
4944
|
),
|
|
@@ -4998,7 +5015,7 @@ const Ia = async ({
|
|
|
4998
5015
|
});
|
|
4999
5016
|
};
|
|
5000
5017
|
async function Ta(e) {
|
|
5001
|
-
var r, o,
|
|
5018
|
+
var r, o, i, s, u;
|
|
5002
5019
|
const t = function() {
|
|
5003
5020
|
var k, E;
|
|
5004
5021
|
return [
|
|
@@ -5012,7 +5029,7 @@ async function Ta(e) {
|
|
|
5012
5029
|
builderContextValue: e.builderContext
|
|
5013
5030
|
});
|
|
5014
5031
|
return /* @__PURE__ */ C("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ C(
|
|
5015
|
-
|
|
5032
|
+
Ur,
|
|
5016
5033
|
{
|
|
5017
5034
|
__isNestedRender: !0,
|
|
5018
5035
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5023,7 +5040,7 @@ async function Ta(e) {
|
|
|
5023
5040
|
},
|
|
5024
5041
|
customComponents: Object.values(e.builderComponents),
|
|
5025
5042
|
data: {
|
|
5026
|
-
...(
|
|
5043
|
+
...(i = e.symbol) == null ? void 0 : i.data,
|
|
5027
5044
|
...e.builderContext.localState,
|
|
5028
5045
|
...(s = n == null ? void 0 : n.data) == null ? void 0 : s.state
|
|
5029
5046
|
},
|
|
@@ -5033,7 +5050,7 @@ async function Ta(e) {
|
|
|
5033
5050
|
}
|
|
5034
5051
|
) });
|
|
5035
5052
|
}
|
|
5036
|
-
const Ka = mt, Ga =
|
|
5053
|
+
const Ka = mt, Ga = Ur, ar = {};
|
|
5037
5054
|
function Xa(e) {
|
|
5038
5055
|
if (G()) {
|
|
5039
5056
|
Object.assign(ar, e);
|
|
@@ -5045,7 +5062,7 @@ function Xa(e) {
|
|
|
5045
5062
|
}
|
|
5046
5063
|
}
|
|
5047
5064
|
const Ya = async (e) => {
|
|
5048
|
-
var r, o,
|
|
5065
|
+
var r, o, i;
|
|
5049
5066
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
5050
5067
|
...e,
|
|
5051
5068
|
apiKey: e.apiKey,
|
|
@@ -5056,7 +5073,7 @@ const Ya = async (e) => {
|
|
|
5056
5073
|
urlPath: t
|
|
5057
5074
|
} : {}
|
|
5058
5075
|
},
|
|
5059
|
-
options:
|
|
5076
|
+
options: Or(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5060
5077
|
};
|
|
5061
5078
|
return {
|
|
5062
5079
|
apiKey: n.apiKey,
|
|
@@ -5065,12 +5082,12 @@ const Ya = async (e) => {
|
|
|
5065
5082
|
};
|
|
5066
5083
|
};
|
|
5067
5084
|
export {
|
|
5068
|
-
|
|
5085
|
+
Rr as A,
|
|
5069
5086
|
mt as B,
|
|
5070
|
-
|
|
5087
|
+
Ur as C,
|
|
5071
5088
|
Da as D,
|
|
5072
5089
|
Va as E,
|
|
5073
|
-
|
|
5090
|
+
Or as F,
|
|
5074
5091
|
La as G,
|
|
5075
5092
|
Ya as H,
|
|
5076
5093
|
Ka as R,
|