@builder.io/sdk-react-nextjs 0.12.4 → 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/browser/{USE_CLIENT_BUNDLE-e6d429be.js → USE_CLIENT_BUNDLE-4d4e23b4.js} +3 -6
- package/lib/{node/USE_CLIENT_BUNDLE-ee5a9d6f.cjs → browser/USE_CLIENT_BUNDLE-e5d64246.cjs} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-c0911af0.js → browser/USE_SERVER_BUNDLE-2bf0dc28.js} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-816ab6e4.cjs → browser/USE_SERVER_BUNDLE-ccca985e.cjs} +1 -1
- package/lib/browser/{bundle-0e5cec1c.cjs → bundle-6e21e129.cjs} +23 -23
- package/lib/browser/{bundle-bab67847.js → bundle-b3104268.js} +338 -310
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-75f921e2.js → edge/USE_CLIENT_BUNDLE-41ee32e4.js} +3 -6
- package/lib/{browser/USE_CLIENT_BUNDLE-e9e1ee85.cjs → edge/USE_CLIENT_BUNDLE-cc55e91d.cjs} +2 -2
- package/lib/{node/USE_SERVER_BUNDLE-793c12c9.cjs → edge/USE_SERVER_BUNDLE-19879780.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-86d90afe.js → edge/USE_SERVER_BUNDLE-fda604b6.js} +1 -1
- package/lib/edge/{bundle-28d9d04c.js → bundle-ee1ebe27.js} +762 -734
- package/lib/edge/{bundle-e64fe0fd.cjs → bundle-f2d4a6db.cjs} +32 -32
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-d87c391a.cjs → node/USE_CLIENT_BUNDLE-343cb348.cjs} +2 -2
- package/lib/{edge/USE_CLIENT_BUNDLE-8d251b8b.js → node/USE_CLIENT_BUNDLE-aa8ab44a.js} +3 -6
- package/lib/{browser/USE_SERVER_BUNDLE-44c49b1e.js → node/USE_SERVER_BUNDLE-2fdc522e.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-9bcc0ad4.cjs → node/USE_SERVER_BUNDLE-cbcb1baf.cjs} +1 -1
- package/lib/node/{bundle-031e3608.js → bundle-99e5b33f.js} +38 -10
- package/lib/node/{bundle-72df28b3.cjs → bundle-c799b7fc.cjs} +5 -5
- 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/cjs/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
- package/types/cjs/functions/is-node-runtime.d.ts +4 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/evaluate/browser-runtime/browser.d.ts +5 -1
- package/types/esm/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
- package/types/esm/functions/is-node-runtime.d.ts +4 -0
|
@@ -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,
|
|
@@ -27,7 +27,7 @@ function ho(e) {
|
|
|
27
27
|
builderBlock: e
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
const at = "[Builder.io]: ",
|
|
30
|
+
const at = "[Builder.io]: ", z = {
|
|
31
31
|
log: (...e) => console.log(at, ...e),
|
|
32
32
|
error: (...e) => console.error(at, ...e),
|
|
33
33
|
warn: (...e) => console.warn(at, ...e),
|
|
@@ -36,20 +36,20 @@ const at = "[Builder.io]: ", q = {
|
|
|
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,130 +86,147 @@ 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
|
|
161
|
-
this.line = Se, this.ab = f -
|
|
177
|
+
function i() {
|
|
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 (
|
|
179
|
-
++f, O.C && (++Se,
|
|
180
|
-
else if (8 <
|
|
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)
|
|
196
|
+
++f, O.C && (++Se, se = f);
|
|
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,
|
|
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
|
-
return ++f, s(
|
|
225
|
+
return ++f, s(le);
|
|
209
226
|
case 41:
|
|
210
227
|
return ++f, s(re);
|
|
211
228
|
case 59:
|
|
212
|
-
return ++f, s(
|
|
229
|
+
return ++f, s(ce);
|
|
213
230
|
case 44:
|
|
214
231
|
return ++f, s(ye);
|
|
215
232
|
case 91:
|
|
@@ -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
|
}
|
|
@@ -255,7 +272,7 @@ var N, xo = function(e) {
|
|
|
255
272
|
for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
|
|
256
273
|
p = p.slice(0, -1);
|
|
257
274
|
if (p === "0" && (p = null), ++f, p)
|
|
258
|
-
|
|
275
|
+
q && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(p, 8)), f += p.length - 1;
|
|
259
276
|
else
|
|
260
277
|
switch (c) {
|
|
261
278
|
case 110:
|
|
@@ -292,7 +309,7 @@ var N, xo = function(e) {
|
|
|
292
309
|
case 13:
|
|
293
310
|
g.charCodeAt(f) === 10 && ++f;
|
|
294
311
|
case 10:
|
|
295
|
-
O.C && (
|
|
312
|
+
O.C && (se = f, ++Se);
|
|
296
313
|
break;
|
|
297
314
|
default:
|
|
298
315
|
l += String.fromCharCode(c);
|
|
@@ -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,64 +379,64 @@ 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 (
|
|
420
|
-
for (; f <
|
|
421
|
-
|
|
422
|
-
`,
|
|
435
|
+
function ee(a) {
|
|
436
|
+
if (q = a, f = D, O.C)
|
|
437
|
+
for (; f < se; )
|
|
438
|
+
se = g.lastIndexOf(`
|
|
439
|
+
`, se - 2) + 1, --Se;
|
|
423
440
|
d(), E();
|
|
424
441
|
}
|
|
425
442
|
function te() {
|
|
@@ -429,84 +446,84 @@ 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)));
|
|
450
467
|
}
|
|
451
468
|
function be() {
|
|
452
|
-
U(
|
|
469
|
+
U(ce) || Ze() || ie();
|
|
453
470
|
}
|
|
454
|
-
function F(
|
|
455
|
-
I ===
|
|
471
|
+
function F(a) {
|
|
472
|
+
I === a ? m() : ie();
|
|
456
473
|
}
|
|
457
|
-
function
|
|
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 =
|
|
471
|
-
U(
|
|
487
|
+
var c = a === Ot;
|
|
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(
|
|
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:
|
|
487
504
|
return m(), l.test = Ne(), l.da = ne(), l.alternate = U(Sn) ? ne() : null, A(l, "IfStatement");
|
|
488
505
|
case Cn:
|
|
489
|
-
return Fe || O.Ib || r(D, "'return' outside of function"), m(), U(
|
|
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:
|
|
501
518
|
return m(), l.test = Ne(), V.push(Ft), l.body = ne(), V.pop(), A(l, "WhileStatement");
|
|
502
519
|
case Tn:
|
|
503
|
-
return
|
|
520
|
+
return q && r(D, "'with' in strict mode"), m(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
|
|
504
521
|
case De:
|
|
505
522
|
return Be();
|
|
506
|
-
case
|
|
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({
|
|
@@ -518,15 +535,15 @@ var N, xo = function(e) {
|
|
|
518
535
|
}
|
|
519
536
|
}
|
|
520
537
|
function Ne() {
|
|
521
|
-
F(
|
|
522
|
-
var
|
|
523
|
-
return F(re),
|
|
538
|
+
F(le);
|
|
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,153 +551,153 @@ 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 =
|
|
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
|
-
return
|
|
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
|
|
606
|
-
case
|
|
607
|
-
|
|
622
|
+
return a = M(), a.value = I.$a, a.raw = I.l, m(), A(a, "Literal");
|
|
623
|
+
case le:
|
|
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))
|
|
619
636
|
break;
|
|
620
637
|
var p = {
|
|
621
|
-
key: I === Ve || I === tt ? et() :
|
|
638
|
+
key: I === Ve || I === tt ? et() : ae(!0)
|
|
622
639
|
}, T = !1;
|
|
623
640
|
if (U(_e)) {
|
|
624
641
|
p.value = K(!0);
|
|
625
642
|
var _ = p.kind = "init";
|
|
626
643
|
} else
|
|
627
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ?
|
|
628
|
-
if (p.key.type === "Identifier" && (
|
|
629
|
-
for (var X = 0; X <
|
|
630
|
-
var Ae =
|
|
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));
|
|
645
|
+
if (p.key.type === "Identifier" && (q || c))
|
|
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
|
-
Vt && !
|
|
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
|
-
for (F(
|
|
650
|
-
c ? c = !1 : F(ye),
|
|
666
|
+
for (F(le); !U(re); )
|
|
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
|
|
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 =
|
|
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,
|
|
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,
|
|
@@ -822,7 +839,7 @@ var N, xo = function(e) {
|
|
|
822
839
|
m: !0
|
|
823
840
|
}, Ie = {
|
|
824
841
|
type: "}"
|
|
825
|
-
},
|
|
842
|
+
}, le = {
|
|
826
843
|
type: "(",
|
|
827
844
|
m: !0
|
|
828
845
|
}, re = {
|
|
@@ -830,7 +847,7 @@ var N, xo = function(e) {
|
|
|
830
847
|
}, ye = {
|
|
831
848
|
type: ",",
|
|
832
849
|
m: !0
|
|
833
|
-
},
|
|
850
|
+
}, ce = {
|
|
834
851
|
type: ";",
|
|
835
852
|
m: !0
|
|
836
853
|
}, _e = {
|
|
@@ -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
|
|
@@ -944,7 +961,7 @@ var Wn = {
|
|
|
944
961
|
VALUE_IN_DESCRIPTOR: !0
|
|
945
962
|
}, Oe = {
|
|
946
963
|
REGEXP_TIMEOUT: !0
|
|
947
|
-
}, Hn = [],
|
|
964
|
+
}, Hn = [], fe = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, ko = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
|
|
948
965
|
function zt(e) {
|
|
949
966
|
var t = e >>> 0;
|
|
950
967
|
return t === Number(e) ? t : NaN;
|
|
@@ -995,7 +1012,7 @@ N.lb = function() {
|
|
|
995
1012
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
996
1013
|
n = null;
|
|
997
1014
|
else {
|
|
998
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
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() {
|
|
@@ -1093,28 +1110,28 @@ function Io(e, t) {
|
|
|
1093
1110
|
}
|
|
1094
1111
|
var r = function(o) {
|
|
1095
1112
|
if (o == null)
|
|
1096
|
-
return
|
|
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
|
};
|
|
1103
1120
|
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(o) {
|
|
1104
|
-
return n(o),
|
|
1121
|
+
return n(o), ue(e, Object.getOwnPropertyNames(o instanceof R ? o.h : o));
|
|
1105
1122
|
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1106
|
-
return n(o), o instanceof R && (o = o.h),
|
|
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
|
-
return n(o),
|
|
1134
|
+
return n(o), pe(e, o);
|
|
1118
1135
|
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1119
1136
|
return !!o && !o.preventExtensions;
|
|
1120
1137
|
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
@@ -1125,7 +1142,7 @@ function Io(e, t) {
|
|
|
1125
1142
|
return n(this), this instanceof R ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1126
1143
|
}, W(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1127
1144
|
for (; ; ) {
|
|
1128
|
-
if (o =
|
|
1145
|
+
if (o = pe(e, o), !o)
|
|
1129
1146
|
return !1;
|
|
1130
1147
|
if (o === this)
|
|
1131
1148
|
return !0;
|
|
@@ -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 =
|
|
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
|
};
|
|
@@ -1154,95 +1171,95 @@ function To(e, t) {
|
|
|
1154
1171
|
}
|
|
1155
1172
|
function Ao(e, t) {
|
|
1156
1173
|
var n = function(r) {
|
|
1157
|
-
return r = arguments.length ? ve.String(r) : "",
|
|
1174
|
+
return r = arguments.length ? ve.String(r) : "", de(e) ? (this.data = r, this) : r;
|
|
1158
1175
|
};
|
|
1159
1176
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1160
1177
|
W(e, e.J, t[n], String.prototype[t[n]]);
|
|
1161
|
-
n = function(r, o,
|
|
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,
|
|
1171
|
-
if (
|
|
1187
|
+
if (o = o ? Number(o) : void 0, H(e, r, e.I) && (r = r.data, $e(e, r, i), e.REGEXP_MODE === 2)) {
|
|
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
|
-
if (
|
|
1206
|
+
if (fe)
|
|
1190
1207
|
r = We(e, "string.match(regexp)", {
|
|
1191
|
-
string:
|
|
1208
|
+
string: i,
|
|
1192
1209
|
regexp: r
|
|
1193
|
-
}, r, o), r !== Oe && o(r &&
|
|
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
|
-
clearTimeout(u), o(d.data &&
|
|
1198
|
-
}, s.postMessage(["match",
|
|
1214
|
+
clearTimeout(u), o(d.data && ue(e, d.data));
|
|
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
|
-
if (
|
|
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,
|
|
1221
|
-
if (
|
|
1237
|
+
if (o = String(o), H(e, r, e.I) && (r = r.data, $e(e, r, i), e.REGEXP_MODE === 2)) {
|
|
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) {
|
|
1239
1256
|
e.mb = e.i(function(n) {
|
|
1240
|
-
return n = ve.Boolean(n),
|
|
1257
|
+
return n = ve.Boolean(n), de(e) ? (this.data = n, this) : n;
|
|
1241
1258
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1242
1259
|
}
|
|
1243
1260
|
function jo(e, t) {
|
|
1244
1261
|
var n = function(r) {
|
|
1245
|
-
return r = arguments.length ? ve.Number(r) : 0,
|
|
1262
|
+
return r = arguments.length ? ve.Number(r) : 0, de(e) ? (this.data = r, this) : r;
|
|
1246
1263
|
};
|
|
1247
1264
|
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1248
1265
|
e.g(e.aa, t[n], Number[t[n]], Le);
|
|
@@ -1274,14 +1291,14 @@ 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,
|
|
1284
|
-
if (!
|
|
1300
|
+
var n = function(o, i) {
|
|
1301
|
+
if (!de(e))
|
|
1285
1302
|
return ve.Date();
|
|
1286
1303
|
var s = [null].concat(Array.from(arguments));
|
|
1287
1304
|
return this.data = new (Function.prototype.bind.apply(ve.Date, s))(), this;
|
|
@@ -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++)
|
|
@@ -1300,12 +1317,12 @@ function Ro(e, t) {
|
|
|
1300
1317
|
}
|
|
1301
1318
|
function Po(e, t) {
|
|
1302
1319
|
var n = function(r, o) {
|
|
1303
|
-
if (
|
|
1304
|
-
var
|
|
1320
|
+
if (de(e))
|
|
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,43 +1330,43 @@ 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
|
-
var S =
|
|
1338
|
+
var S = ue(e, E);
|
|
1322
1339
|
return e.g(S, "index", E.index), e.g(S, "input", E.input), S;
|
|
1323
1340
|
}
|
|
1324
1341
|
return null;
|
|
1325
1342
|
}
|
|
1326
1343
|
var s = this.data;
|
|
1327
1344
|
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), $e(e, s, o), e.REGEXP_MODE === 2)
|
|
1328
|
-
if (
|
|
1345
|
+
if (fe)
|
|
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(
|
|
1346
|
-
var s =
|
|
1347
|
-
return Wt(e, s,
|
|
1362
|
+
var o = e.i(function(i) {
|
|
1363
|
+
var s = de(e) ? this : e.Aa(o);
|
|
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
|
}
|
|
1351
1368
|
e.D = e.i(function(r) {
|
|
1352
|
-
var o =
|
|
1369
|
+
var o = de(e) ? this : e.Aa(e.D);
|
|
1353
1370
|
return Wt(e, o, r), o;
|
|
1354
1371
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1355
1372
|
}
|
|
@@ -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
|
}
|
|
@@ -1388,7 +1405,7 @@ function H(e, t, n) {
|
|
|
1388
1405
|
return !1;
|
|
1389
1406
|
if (n = n.h.prototype, t === n)
|
|
1390
1407
|
return !0;
|
|
1391
|
-
for (t =
|
|
1408
|
+
for (t = pe(e, t); t; ) {
|
|
1392
1409
|
if (t === n)
|
|
1393
1410
|
return !0;
|
|
1394
1411
|
t = t.xa;
|
|
@@ -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
|
|
1447
|
+
return fe.runInNewContext(t, n, i);
|
|
1431
1448
|
} catch {
|
|
1432
1449
|
o(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1433
1450
|
}
|
|
@@ -1438,16 +1455,16 @@ function $e(e, t, n) {
|
|
|
1438
1455
|
var r = !1;
|
|
1439
1456
|
else if (e.REGEXP_MODE === 1)
|
|
1440
1457
|
r = !0;
|
|
1441
|
-
else if (
|
|
1458
|
+
else if (fe)
|
|
1442
1459
|
r = !0;
|
|
1443
1460
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1444
1461
|
r = !0;
|
|
1445
1462
|
else if (typeof require == "function") {
|
|
1446
1463
|
try {
|
|
1447
|
-
|
|
1464
|
+
fe = require("vm");
|
|
1448
1465
|
} catch {
|
|
1449
1466
|
}
|
|
1450
|
-
r = !!
|
|
1467
|
+
r = !!fe;
|
|
1451
1468
|
} else
|
|
1452
1469
|
r = !1;
|
|
1453
1470
|
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
@@ -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);
|
|
@@ -1553,18 +1570,18 @@ N.R = function(e, t) {
|
|
|
1553
1570
|
});
|
|
1554
1571
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1555
1572
|
};
|
|
1556
|
-
function
|
|
1573
|
+
function ue(e, t) {
|
|
1557
1574
|
for (var n = Re(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
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);
|
|
1565
1582
|
return n.length = zt(e.G(t, "length")) || 0, n;
|
|
1566
1583
|
}
|
|
1567
|
-
function
|
|
1584
|
+
function pe(e, t) {
|
|
1568
1585
|
switch (typeof t) {
|
|
1569
1586
|
case "number":
|
|
1570
1587
|
return e.aa.h.prototype;
|
|
@@ -1591,7 +1608,7 @@ N.G = function(e, t) {
|
|
|
1591
1608
|
do
|
|
1592
1609
|
if (e.h && t in e.h)
|
|
1593
1610
|
return (n = e.V[t]) ? (this.P = !0, n) : e.h[t];
|
|
1594
|
-
while (e =
|
|
1611
|
+
while (e = pe(this, e));
|
|
1595
1612
|
};
|
|
1596
1613
|
function ft(e, t, n) {
|
|
1597
1614
|
if (!(t instanceof R))
|
|
@@ -1606,7 +1623,7 @@ function ft(e, t, n) {
|
|
|
1606
1623
|
do
|
|
1607
1624
|
if (t.h && n in t.h)
|
|
1608
1625
|
return !0;
|
|
1609
|
-
while (t =
|
|
1626
|
+
while (t = pe(e, t));
|
|
1610
1627
|
return !1;
|
|
1611
1628
|
}
|
|
1612
1629
|
N.g = function(e, t, n, 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]);
|
|
@@ -1651,7 +1668,7 @@ N.g = function(e, t, n, r) {
|
|
|
1651
1668
|
if (n === Ye)
|
|
1652
1669
|
throw ReferenceError("Value not specified");
|
|
1653
1670
|
for (r = e; !(t in r.h); )
|
|
1654
|
-
if (r =
|
|
1671
|
+
if (r = pe(this, r), !r) {
|
|
1655
1672
|
r = e;
|
|
1656
1673
|
break;
|
|
1657
1674
|
}
|
|
@@ -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
|
}
|
|
@@ -1778,17 +1795,17 @@ function Je(e, t, n) {
|
|
|
1778
1795
|
r[s] === !0 ? e.g(n.object, s, void 0, $n) : e.g(n.object, s, Qt(e, r[s], n), $n);
|
|
1779
1796
|
return r;
|
|
1780
1797
|
}
|
|
1781
|
-
function
|
|
1798
|
+
function de(e) {
|
|
1782
1799
|
return e.o[e.o.length - 1].isConstructor;
|
|
1783
1800
|
}
|
|
1784
1801
|
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
|
});
|
|
@@ -1910,7 +1927,7 @@ function an(e, t, n, r) {
|
|
|
1910
1927
|
return o.type = "CallExpression", e = new b(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1911
1928
|
}
|
|
1912
1929
|
function Dt(e, t) {
|
|
1913
|
-
return t == null ? e.Na : t instanceof R ? t : (e = e.s(
|
|
1930
|
+
return t == null ? e.Na : t instanceof R ? t : (e = e.s(pe(e, t)), e.data = t, e);
|
|
1914
1931
|
}
|
|
1915
1932
|
N.Xb = function() {
|
|
1916
1933
|
return this.N;
|
|
@@ -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
|
}
|
|
@@ -2267,7 +2284,7 @@ h.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2267
2284
|
break e;
|
|
2268
2285
|
}
|
|
2269
2286
|
}
|
|
2270
|
-
if (t.u =
|
|
2287
|
+
if (t.u = pe(this, t.u), t.wa = null, t.u === null) {
|
|
2271
2288
|
e.pop();
|
|
2272
2289
|
return;
|
|
2273
2290
|
}
|
|
@@ -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 = {
|
|
@@ -2572,7 +2589,7 @@ const Vo = (e) => e.split(`
|
|
|
2572
2589
|
}).join(`
|
|
2573
2590
|
`), E = Vo(s);
|
|
2574
2591
|
if (E === "") {
|
|
2575
|
-
|
|
2592
|
+
z.warn("Skipping evaluation of empty code block.");
|
|
2576
2593
|
return;
|
|
2577
2594
|
}
|
|
2578
2595
|
const S = `
|
|
@@ -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($);
|
|
@@ -2595,47 +2612,58 @@ theFunction();
|
|
|
2595
2612
|
const v = new h(S, j);
|
|
2596
2613
|
return v.run(), v.pseudoToNative(v.value);
|
|
2597
2614
|
} catch (v) {
|
|
2598
|
-
|
|
2615
|
+
z.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2599
2616
|
e: v
|
|
2600
2617
|
});
|
|
2601
2618
|
return;
|
|
2602
2619
|
}
|
|
2603
|
-
},
|
|
2620
|
+
}, oe = (e) => e != null;
|
|
2621
|
+
function _o() {
|
|
2622
|
+
var e;
|
|
2623
|
+
return typeof process < "u" && oe((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2624
|
+
}
|
|
2625
|
+
const Lo = () => {
|
|
2626
|
+
var r;
|
|
2627
|
+
if (!_o())
|
|
2628
|
+
return !1;
|
|
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");
|
|
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;
|
|
2631
|
+
}, Wo = (e) => G() || Lo() ? wo(e) : Do(e);
|
|
2604
2632
|
function sn({
|
|
2605
2633
|
code: e,
|
|
2606
2634
|
context: t,
|
|
2607
2635
|
localState: n,
|
|
2608
2636
|
rootState: r,
|
|
2609
2637
|
rootSetState: o,
|
|
2610
|
-
event:
|
|
2638
|
+
event: i,
|
|
2611
2639
|
isExpression: s = !0
|
|
2612
2640
|
}) {
|
|
2613
2641
|
if (e === "") {
|
|
2614
|
-
|
|
2642
|
+
z.warn("Skipping evaluation of empty code block.");
|
|
2615
2643
|
return;
|
|
2616
2644
|
}
|
|
2617
2645
|
const u = {
|
|
2618
|
-
code:
|
|
2646
|
+
code: So(e, {
|
|
2619
2647
|
isExpression: s
|
|
2620
2648
|
}),
|
|
2621
|
-
builder:
|
|
2649
|
+
builder: bo(),
|
|
2622
2650
|
context: t,
|
|
2623
|
-
event:
|
|
2651
|
+
event: i,
|
|
2624
2652
|
rootSetState: o,
|
|
2625
2653
|
rootState: r,
|
|
2626
2654
|
localState: n
|
|
2627
2655
|
};
|
|
2628
2656
|
try {
|
|
2629
|
-
return
|
|
2657
|
+
return Wo(u);
|
|
2630
2658
|
} catch (d) {
|
|
2631
|
-
|
|
2659
|
+
z.error("Failed code evaluation: " + d.message, {
|
|
2632
2660
|
code: e
|
|
2633
2661
|
});
|
|
2634
2662
|
return;
|
|
2635
2663
|
}
|
|
2636
2664
|
}
|
|
2637
2665
|
const pt = (e) => JSON.parse(JSON.stringify(e));
|
|
2638
|
-
const
|
|
2666
|
+
const $o = ({
|
|
2639
2667
|
block: e,
|
|
2640
2668
|
context: t,
|
|
2641
2669
|
localState: n,
|
|
@@ -2644,13 +2672,13 @@ const Lo = ({
|
|
|
2644
2672
|
}) => {
|
|
2645
2673
|
if (!e.bindings)
|
|
2646
2674
|
return e;
|
|
2647
|
-
const
|
|
2648
|
-
...
|
|
2675
|
+
const i = pt(e), s = {
|
|
2676
|
+
...i,
|
|
2649
2677
|
properties: {
|
|
2650
|
-
...
|
|
2678
|
+
...i.properties
|
|
2651
2679
|
},
|
|
2652
2680
|
actions: {
|
|
2653
|
-
...
|
|
2681
|
+
...i.actions
|
|
2654
2682
|
}
|
|
2655
2683
|
};
|
|
2656
2684
|
for (const u in e.bindings) {
|
|
@@ -2661,7 +2689,7 @@ const Lo = ({
|
|
|
2661
2689
|
rootSetState: o,
|
|
2662
2690
|
context: t
|
|
2663
2691
|
});
|
|
2664
|
-
|
|
2692
|
+
ur(s, u, k);
|
|
2665
2693
|
}
|
|
2666
2694
|
return s;
|
|
2667
2695
|
};
|
|
@@ -2671,31 +2699,31 @@ function ct({
|
|
|
2671
2699
|
shouldEvaluateBindings: n,
|
|
2672
2700
|
localState: r,
|
|
2673
2701
|
rootState: o,
|
|
2674
|
-
rootSetState:
|
|
2702
|
+
rootSetState: i
|
|
2675
2703
|
}) {
|
|
2676
2704
|
const s = e;
|
|
2677
|
-
return n ?
|
|
2705
|
+
return n ? $o({
|
|
2678
2706
|
block: s,
|
|
2679
2707
|
localState: r,
|
|
2680
2708
|
rootState: o,
|
|
2681
|
-
rootSetState:
|
|
2709
|
+
rootSetState: i,
|
|
2682
2710
|
context: t
|
|
2683
2711
|
}) : s;
|
|
2684
2712
|
}
|
|
2685
|
-
const
|
|
2713
|
+
const Ho = ({
|
|
2686
2714
|
block: e,
|
|
2687
2715
|
context: t,
|
|
2688
2716
|
registeredComponents: n
|
|
2689
2717
|
}) => {
|
|
2690
|
-
var
|
|
2691
|
-
const r = (
|
|
2718
|
+
var i;
|
|
2719
|
+
const r = (i = ct({
|
|
2692
2720
|
block: e,
|
|
2693
2721
|
localState: t.localState,
|
|
2694
2722
|
rootState: t.rootState,
|
|
2695
2723
|
rootSetState: t.rootSetState,
|
|
2696
2724
|
context: t.context,
|
|
2697
2725
|
shouldEvaluateBindings: !1
|
|
2698
|
-
}).component) == null ? void 0 :
|
|
2726
|
+
}).component) == null ? void 0 : i.name;
|
|
2699
2727
|
if (!r)
|
|
2700
2728
|
return null;
|
|
2701
2729
|
const o = n[r];
|
|
@@ -2704,7 +2732,7 @@ const Wo = ({
|
|
|
2704
2732
|
console.warn(`
|
|
2705
2733
|
Could not find a registered component named "${r}".
|
|
2706
2734
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2707
|
-
},
|
|
2735
|
+
}, Ko = ({
|
|
2708
2736
|
block: e,
|
|
2709
2737
|
context: t
|
|
2710
2738
|
}) => {
|
|
@@ -2723,7 +2751,7 @@ const Wo = ({
|
|
|
2723
2751
|
});
|
|
2724
2752
|
if (!Array.isArray(o))
|
|
2725
2753
|
return;
|
|
2726
|
-
const
|
|
2754
|
+
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
2727
2755
|
return o.map((d, k) => ({
|
|
2728
2756
|
context: {
|
|
2729
2757
|
...t,
|
|
@@ -2737,7 +2765,7 @@ const Wo = ({
|
|
|
2737
2765
|
},
|
|
2738
2766
|
block: r
|
|
2739
2767
|
}));
|
|
2740
|
-
},
|
|
2768
|
+
}, gr = {
|
|
2741
2769
|
small: {
|
|
2742
2770
|
min: 320,
|
|
2743
2771
|
default: 321,
|
|
@@ -2753,11 +2781,11 @@ const Wo = ({
|
|
|
2753
2781
|
default: 991,
|
|
2754
2782
|
max: 1200
|
|
2755
2783
|
}
|
|
2756
|
-
}, Yn = (e, t =
|
|
2784
|
+
}, Yn = (e, t = gr) => `@media (max-width: ${t[e].max}px)`, yr = ({
|
|
2757
2785
|
small: e,
|
|
2758
2786
|
medium: t
|
|
2759
2787
|
}) => {
|
|
2760
|
-
const n = pt(
|
|
2788
|
+
const n = pt(gr);
|
|
2761
2789
|
if (!e || !t)
|
|
2762
2790
|
return n;
|
|
2763
2791
|
const r = Math.floor(e / 2);
|
|
@@ -2772,24 +2800,24 @@ const Wo = ({
|
|
|
2772
2800
|
min: o,
|
|
2773
2801
|
default: o + 1
|
|
2774
2802
|
};
|
|
2775
|
-
const
|
|
2803
|
+
const i = n.medium.max + 1;
|
|
2776
2804
|
return n.large = {
|
|
2777
2805
|
max: 2e3,
|
|
2778
2806
|
// TODO: decide upper limit
|
|
2779
|
-
min:
|
|
2780
|
-
default:
|
|
2807
|
+
min: i,
|
|
2808
|
+
default: i + 1
|
|
2781
2809
|
}, n;
|
|
2782
|
-
},
|
|
2810
|
+
}, Go = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), vr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2783
2811
|
if (typeof r == "string")
|
|
2784
|
-
return `${
|
|
2785
|
-
}).filter(
|
|
2812
|
+
return `${Go(n)}: ${r};`;
|
|
2813
|
+
}).filter(oe), Xo = (e) => vr(e).join(`
|
|
2786
2814
|
`), _t = ({
|
|
2787
2815
|
mediaQuery: e,
|
|
2788
2816
|
className: t,
|
|
2789
2817
|
styles: n
|
|
2790
2818
|
}) => {
|
|
2791
2819
|
const r = `.${t} {
|
|
2792
|
-
${
|
|
2820
|
+
${Xo(n)}
|
|
2793
2821
|
}`;
|
|
2794
2822
|
return e ? `${e} {
|
|
2795
2823
|
${r}
|
|
@@ -2798,7 +2826,7 @@ const Wo = ({
|
|
|
2798
2826
|
function dt(e) {
|
|
2799
2827
|
return /* @__PURE__ */ C("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2800
2828
|
}
|
|
2801
|
-
function
|
|
2829
|
+
function Yo(e) {
|
|
2802
2830
|
const t = function() {
|
|
2803
2831
|
const o = ct({
|
|
2804
2832
|
block: e.block,
|
|
@@ -2808,7 +2836,7 @@ function Go(e) {
|
|
|
2808
2836
|
context: e.context.context,
|
|
2809
2837
|
shouldEvaluateBindings: !0
|
|
2810
2838
|
});
|
|
2811
|
-
return
|
|
2839
|
+
return oe(o.hide) ? !o.hide : oe(o.show) ? o.show : !0;
|
|
2812
2840
|
}, n = function() {
|
|
2813
2841
|
var x;
|
|
2814
2842
|
const o = ct({
|
|
@@ -2818,9 +2846,9 @@ function Go(e) {
|
|
|
2818
2846
|
rootSetState: e.context.rootSetState,
|
|
2819
2847
|
context: e.context.context,
|
|
2820
2848
|
shouldEvaluateBindings: !0
|
|
2821
|
-
}),
|
|
2849
|
+
}), i = o.responsiveStyles, s = e.context.content, u = yr(
|
|
2822
2850
|
((x = s == null ? void 0 : s.meta) == null ? void 0 : x.breakpoints) || {}
|
|
2823
|
-
), 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;
|
|
2824
2852
|
if (!S)
|
|
2825
2853
|
return "";
|
|
2826
2854
|
const P = d ? _t({
|
|
@@ -2845,10 +2873,10 @@ function Go(e) {
|
|
|
2845
2873
|
};
|
|
2846
2874
|
return /* @__PURE__ */ C(L, { children: n() && t() ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
|
|
2847
2875
|
}
|
|
2848
|
-
function
|
|
2876
|
+
function Jo(e) {
|
|
2849
2877
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2850
2878
|
}
|
|
2851
|
-
const
|
|
2879
|
+
const zo = (e) => `on${Jo(e)}`, qo = (e, t) => (n) => sn({
|
|
2852
2880
|
code: e,
|
|
2853
2881
|
context: t.context,
|
|
2854
2882
|
localState: t.localState,
|
|
@@ -2857,45 +2885,45 @@ const Yo = (e) => `on${Xo(e)}`, Jo = (e, t) => (n) => sn({
|
|
|
2857
2885
|
event: n,
|
|
2858
2886
|
isExpression: !1
|
|
2859
2887
|
});
|
|
2860
|
-
function
|
|
2888
|
+
function Ba(e) {
|
|
2861
2889
|
const t = {}, n = e.block.actions ?? {};
|
|
2862
2890
|
for (const r in n) {
|
|
2863
2891
|
if (!n.hasOwnProperty(r))
|
|
2864
2892
|
continue;
|
|
2865
2893
|
const o = n[r];
|
|
2866
|
-
let
|
|
2894
|
+
let i = zo(r);
|
|
2867
2895
|
if (e.stripPrefix)
|
|
2868
2896
|
switch (he) {
|
|
2869
2897
|
case "vue":
|
|
2870
|
-
|
|
2898
|
+
i = i.replace("v-on:", "");
|
|
2871
2899
|
break;
|
|
2872
2900
|
case "svelte":
|
|
2873
|
-
|
|
2901
|
+
i = i.replace("on:", "");
|
|
2874
2902
|
break;
|
|
2875
2903
|
}
|
|
2876
|
-
t[
|
|
2904
|
+
t[i] = qo(o, e);
|
|
2877
2905
|
}
|
|
2878
2906
|
return t;
|
|
2879
2907
|
}
|
|
2880
|
-
function
|
|
2908
|
+
function Zo({
|
|
2881
2909
|
style: e
|
|
2882
2910
|
}) {
|
|
2883
2911
|
return e;
|
|
2884
2912
|
}
|
|
2885
|
-
const
|
|
2913
|
+
const Qo = ({
|
|
2886
2914
|
block: e,
|
|
2887
2915
|
context: t
|
|
2888
|
-
}) =>
|
|
2916
|
+
}) => br(Zo({
|
|
2889
2917
|
style: e.style || {},
|
|
2890
2918
|
context: t,
|
|
2891
2919
|
block: e
|
|
2892
2920
|
}));
|
|
2893
|
-
function
|
|
2921
|
+
function br(e) {
|
|
2894
2922
|
switch (he) {
|
|
2895
2923
|
case "svelte":
|
|
2896
2924
|
case "vue":
|
|
2897
2925
|
case "solid":
|
|
2898
|
-
return
|
|
2926
|
+
return vr(e).join(" ");
|
|
2899
2927
|
case "qwik":
|
|
2900
2928
|
case "reactNative":
|
|
2901
2929
|
case "react":
|
|
@@ -2903,42 +2931,42 @@ function vr(e) {
|
|
|
2903
2931
|
return e;
|
|
2904
2932
|
}
|
|
2905
2933
|
}
|
|
2906
|
-
function
|
|
2934
|
+
function ei({
|
|
2907
2935
|
properties: e
|
|
2908
2936
|
}) {
|
|
2909
2937
|
return e;
|
|
2910
2938
|
}
|
|
2911
|
-
const
|
|
2939
|
+
const ti = (e) => ({
|
|
2912
2940
|
href: e.href
|
|
2913
2941
|
});
|
|
2914
|
-
function
|
|
2942
|
+
function ni({
|
|
2915
2943
|
block: e,
|
|
2916
2944
|
context: t
|
|
2917
2945
|
}) {
|
|
2918
2946
|
var r;
|
|
2919
2947
|
const n = {
|
|
2920
|
-
...
|
|
2948
|
+
...ti(e),
|
|
2921
2949
|
...e.properties,
|
|
2922
2950
|
"builder-id": e.id,
|
|
2923
|
-
style:
|
|
2951
|
+
style: Qo({
|
|
2924
2952
|
block: e,
|
|
2925
2953
|
context: t
|
|
2926
2954
|
}),
|
|
2927
2955
|
[Xt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
2928
2956
|
};
|
|
2929
|
-
return
|
|
2957
|
+
return ei({
|
|
2930
2958
|
properties: n,
|
|
2931
2959
|
context: t,
|
|
2932
2960
|
block: e
|
|
2933
2961
|
});
|
|
2934
2962
|
}
|
|
2935
|
-
const
|
|
2963
|
+
const ri = ({
|
|
2936
2964
|
componentOptions: e,
|
|
2937
2965
|
builderBlock: t,
|
|
2938
2966
|
context: n,
|
|
2939
2967
|
componentRef: r,
|
|
2940
2968
|
includeBlockProps: o,
|
|
2941
|
-
isInteractive:
|
|
2969
|
+
isInteractive: i,
|
|
2942
2970
|
contextValue: s
|
|
2943
2971
|
}) => {
|
|
2944
2972
|
const u = {
|
|
@@ -2948,13 +2976,13 @@ const ti = ({
|
|
|
2948
2976
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2949
2977
|
*/
|
|
2950
2978
|
...o ? {
|
|
2951
|
-
attributes:
|
|
2979
|
+
attributes: ni({
|
|
2952
2980
|
block: t,
|
|
2953
2981
|
context: s
|
|
2954
2982
|
})
|
|
2955
2983
|
} : {}
|
|
2956
2984
|
};
|
|
2957
|
-
return
|
|
2985
|
+
return i ? {
|
|
2958
2986
|
Wrapper: r,
|
|
2959
2987
|
block: t,
|
|
2960
2988
|
context: n,
|
|
@@ -2964,11 +2992,11 @@ const ti = ({
|
|
|
2964
2992
|
};
|
|
2965
2993
|
function Jn(e) {
|
|
2966
2994
|
var n;
|
|
2967
|
-
const t = e.isInteractive ?
|
|
2995
|
+
const t = e.isInteractive ? eo : e.componentRef;
|
|
2968
2996
|
return /* @__PURE__ */ C(L, { children: e.componentRef ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
2969
2997
|
t,
|
|
2970
2998
|
{
|
|
2971
|
-
...
|
|
2999
|
+
...ri({
|
|
2972
3000
|
componentOptions: e.componentOptions,
|
|
2973
3001
|
builderBlock: e.builderBlock,
|
|
2974
3002
|
context: e.context,
|
|
@@ -2991,7 +3019,7 @@ function Jn(e) {
|
|
|
2991
3019
|
}
|
|
2992
3020
|
) }) : null });
|
|
2993
3021
|
}
|
|
2994
|
-
function
|
|
3022
|
+
function oi(e) {
|
|
2995
3023
|
const t = e.repeatContext;
|
|
2996
3024
|
return /* @__PURE__ */ C(
|
|
2997
3025
|
ht,
|
|
@@ -3006,13 +3034,13 @@ function ni(e) {
|
|
|
3006
3034
|
function ht(e) {
|
|
3007
3035
|
var k, E, S;
|
|
3008
3036
|
const t = function() {
|
|
3009
|
-
return
|
|
3037
|
+
return Ho({
|
|
3010
3038
|
block: e.block,
|
|
3011
3039
|
context: e.context,
|
|
3012
3040
|
registeredComponents: e.registeredComponents
|
|
3013
3041
|
});
|
|
3014
3042
|
}, n = function() {
|
|
3015
|
-
return
|
|
3043
|
+
return Ko({
|
|
3016
3044
|
block: e.block,
|
|
3017
3045
|
context: e.context
|
|
3018
3046
|
});
|
|
@@ -3029,7 +3057,7 @@ function ht(e) {
|
|
|
3029
3057
|
}, o = function() {
|
|
3030
3058
|
var v;
|
|
3031
3059
|
return e.block.tagName === "a" || ((v = r().properties) == null ? void 0 : v.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3032
|
-
},
|
|
3060
|
+
}, i = function() {
|
|
3033
3061
|
var x, B;
|
|
3034
3062
|
if ((x = e.block.repeat) != null && x.collection)
|
|
3035
3063
|
return !!((B = n()) != null && B.length);
|
|
@@ -3044,7 +3072,7 @@ function ht(e) {
|
|
|
3044
3072
|
blockChildren: r().children ?? [],
|
|
3045
3073
|
componentRef: (j = t()) == null ? void 0 : j.component,
|
|
3046
3074
|
componentOptions: {
|
|
3047
|
-
...
|
|
3075
|
+
...mo(r()),
|
|
3048
3076
|
builderContext: e.context,
|
|
3049
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" ? {
|
|
3050
3078
|
builderLinkComponent: e.linkComponent
|
|
@@ -3061,8 +3089,8 @@ function ht(e) {
|
|
|
3061
3089
|
isInteractive: !((te = t()) != null && te.isRSC)
|
|
3062
3090
|
};
|
|
3063
3091
|
}, d = e.context;
|
|
3064
|
-
return /* @__PURE__ */ C(L, { children:
|
|
3065
|
-
/* @__PURE__ */ C(
|
|
3092
|
+
return /* @__PURE__ */ C(L, { children: i() ? /* @__PURE__ */ xe(L, { children: [
|
|
3093
|
+
/* @__PURE__ */ C(Yo, { block: e.block, context: e.context }),
|
|
3066
3094
|
(k = t()) != null && k.noWrap ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
3067
3095
|
Jn,
|
|
3068
3096
|
{
|
|
@@ -3077,7 +3105,7 @@ function ht(e) {
|
|
|
3077
3105
|
isInteractive: u().isInteractive
|
|
3078
3106
|
}
|
|
3079
3107
|
) }) : /* @__PURE__ */ C(L, { children: n() ? /* @__PURE__ */ C(L, { children: (S = n()) == null ? void 0 : S.map((P, j) => /* @__PURE__ */ C(
|
|
3080
|
-
|
|
3108
|
+
oi,
|
|
3081
3109
|
{
|
|
3082
3110
|
repeatContext: P.context,
|
|
3083
3111
|
block: P.block,
|
|
@@ -3086,7 +3114,7 @@ function ht(e) {
|
|
|
3086
3114
|
},
|
|
3087
3115
|
j
|
|
3088
3116
|
)) }) : /* @__PURE__ */ C(L, { children: /* @__PURE__ */ xe(
|
|
3089
|
-
|
|
3117
|
+
to,
|
|
3090
3118
|
{
|
|
3091
3119
|
Wrapper: o(),
|
|
3092
3120
|
block: r(),
|
|
@@ -3125,7 +3153,7 @@ function ht(e) {
|
|
|
3125
3153
|
function mt(e) {
|
|
3126
3154
|
var t, n, r;
|
|
3127
3155
|
return /* @__PURE__ */ C(
|
|
3128
|
-
|
|
3156
|
+
no,
|
|
3129
3157
|
{
|
|
3130
3158
|
blocks: e.blocks,
|
|
3131
3159
|
parent: e.parent,
|
|
@@ -3146,12 +3174,12 @@ function mt(e) {
|
|
|
3146
3174
|
}
|
|
3147
3175
|
);
|
|
3148
3176
|
}
|
|
3149
|
-
function
|
|
3177
|
+
function ii(e) {
|
|
3150
3178
|
var j;
|
|
3151
3179
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(x) {
|
|
3152
3180
|
var B;
|
|
3153
3181
|
return ((B = n[x]) == null ? void 0 : B.width) || 100 / n.length;
|
|
3154
|
-
},
|
|
3182
|
+
}, i = function(x) {
|
|
3155
3183
|
const B = t * (n.length - 1) / n.length;
|
|
3156
3184
|
return `calc(${o(x)}% - ${B}px)`;
|
|
3157
3185
|
}, s = function({
|
|
@@ -3173,7 +3201,7 @@ function ri(e) {
|
|
|
3173
3201
|
})
|
|
3174
3202
|
};
|
|
3175
3203
|
}, E = function(x) {
|
|
3176
|
-
const B = x === 0 ? 0 : t, $ =
|
|
3204
|
+
const B = x === 0 ? 0 : t, $ = i(x), m = `${B}px`, ee = "100%", te = 0;
|
|
3177
3205
|
return {
|
|
3178
3206
|
...{
|
|
3179
3207
|
display: "flex",
|
|
@@ -3201,7 +3229,7 @@ function ri(e) {
|
|
|
3201
3229
|
};
|
|
3202
3230
|
}, S = function(x) {
|
|
3203
3231
|
var $, m;
|
|
3204
|
-
return
|
|
3232
|
+
return yr(
|
|
3205
3233
|
((m = ($ = e.builderContext.content) == null ? void 0 : $.meta) == null ? void 0 : m.breakpoints) || {}
|
|
3206
3234
|
)[x].max;
|
|
3207
3235
|
}, P = function() {
|
|
@@ -3240,7 +3268,7 @@ function ri(e) {
|
|
|
3240
3268
|
children: [
|
|
3241
3269
|
/* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(dt, { styles: P() }) }),
|
|
3242
3270
|
(j = e.columns) == null ? void 0 : j.map((v, x) => /* @__PURE__ */ C(
|
|
3243
|
-
|
|
3271
|
+
ro,
|
|
3244
3272
|
{
|
|
3245
3273
|
TagName: v.link ? e.builderLinkComponent || "a" : "div",
|
|
3246
3274
|
actionAttributes: {},
|
|
@@ -3249,7 +3277,7 @@ function ri(e) {
|
|
|
3249
3277
|
href: v.link
|
|
3250
3278
|
} : {},
|
|
3251
3279
|
[Xt()]: "builder-column",
|
|
3252
|
-
style:
|
|
3280
|
+
style: br(E(x))
|
|
3253
3281
|
},
|
|
3254
3282
|
children: /* @__PURE__ */ C(
|
|
3255
3283
|
mt,
|
|
@@ -3280,39 +3308,39 @@ function ri(e) {
|
|
|
3280
3308
|
function zn(e) {
|
|
3281
3309
|
return e.replace(/http(s)?:/, "");
|
|
3282
3310
|
}
|
|
3283
|
-
function
|
|
3311
|
+
function ai(e = "", t, n) {
|
|
3284
3312
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3285
3313
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3286
3314
|
}
|
|
3287
|
-
function
|
|
3315
|
+
function si(e, t) {
|
|
3288
3316
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3289
3317
|
return e;
|
|
3290
3318
|
if (t === "master")
|
|
3291
3319
|
return zn(e);
|
|
3292
3320
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3293
3321
|
if (n) {
|
|
3294
|
-
const r = e.split(n[0]), o = n[3],
|
|
3295
|
-
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}`);
|
|
3296
3324
|
}
|
|
3297
3325
|
return null;
|
|
3298
3326
|
}
|
|
3299
|
-
function
|
|
3327
|
+
function Ma(e) {
|
|
3300
3328
|
if (!e)
|
|
3301
3329
|
return e;
|
|
3302
3330
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3303
3331
|
if (e.match(/builder\.io/)) {
|
|
3304
3332
|
let n = e;
|
|
3305
3333
|
const r = Number(e.split("?width=")[1]);
|
|
3306
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3334
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${ai(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3307
3335
|
}
|
|
3308
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3336
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [si(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3309
3337
|
}
|
|
3310
|
-
const
|
|
3338
|
+
const li = (e) => {
|
|
3311
3339
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3312
3340
|
return e;
|
|
3313
3341
|
const t = e.split(".");
|
|
3314
3342
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3315
|
-
},
|
|
3343
|
+
}, Sr = ({
|
|
3316
3344
|
name: e,
|
|
3317
3345
|
canTrack: t
|
|
3318
3346
|
}) => {
|
|
@@ -3320,17 +3348,17 @@ const ai = (e) => {
|
|
|
3320
3348
|
try {
|
|
3321
3349
|
return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
3322
3350
|
} catch (r) {
|
|
3323
|
-
|
|
3351
|
+
z.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3324
3352
|
return;
|
|
3325
3353
|
}
|
|
3326
|
-
},
|
|
3354
|
+
}, wr = async (e) => Sr(e), ci = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), ui = [["secure", ""], ["SameSite", "None"]], fi = ({
|
|
3327
3355
|
name: e,
|
|
3328
3356
|
value: t,
|
|
3329
3357
|
expires: n
|
|
3330
3358
|
}) => {
|
|
3331
|
-
const o = (G() ? location.protocol === "https:" : !0) ?
|
|
3332
|
-
return
|
|
3333
|
-
},
|
|
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];
|
|
3360
|
+
return ci(s);
|
|
3361
|
+
}, xr = async ({
|
|
3334
3362
|
name: e,
|
|
3335
3363
|
value: t,
|
|
3336
3364
|
expires: n,
|
|
@@ -3339,54 +3367,54 @@ const ai = (e) => {
|
|
|
3339
3367
|
try {
|
|
3340
3368
|
if (!r)
|
|
3341
3369
|
return;
|
|
3342
|
-
const o =
|
|
3370
|
+
const o = fi({
|
|
3343
3371
|
name: e,
|
|
3344
3372
|
value: t,
|
|
3345
3373
|
expires: n
|
|
3346
3374
|
});
|
|
3347
3375
|
document.cookie = o;
|
|
3348
3376
|
} catch (o) {
|
|
3349
|
-
|
|
3377
|
+
z.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3350
3378
|
}
|
|
3351
|
-
},
|
|
3379
|
+
}, pi = "builder.tests", ln = (e) => `${pi}.${e}`, di = ({
|
|
3352
3380
|
contentId: e
|
|
3353
|
-
}) =>
|
|
3381
|
+
}) => wr({
|
|
3354
3382
|
name: ln(e),
|
|
3355
3383
|
canTrack: !0
|
|
3356
|
-
}),
|
|
3384
|
+
}), hi = ({
|
|
3357
3385
|
contentId: e
|
|
3358
|
-
}) =>
|
|
3386
|
+
}) => Sr({
|
|
3359
3387
|
name: ln(e),
|
|
3360
3388
|
canTrack: !0
|
|
3361
|
-
}),
|
|
3389
|
+
}), mi = ({
|
|
3362
3390
|
contentId: e,
|
|
3363
3391
|
value: t
|
|
3364
|
-
}) =>
|
|
3392
|
+
}) => xr({
|
|
3365
3393
|
name: ln(e),
|
|
3366
3394
|
value: t,
|
|
3367
3395
|
canTrack: !0
|
|
3368
|
-
}),
|
|
3396
|
+
}), kr = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, gi = ({
|
|
3369
3397
|
id: e,
|
|
3370
3398
|
variations: t
|
|
3371
3399
|
}) => {
|
|
3372
3400
|
var o;
|
|
3373
3401
|
let n = 0;
|
|
3374
3402
|
const r = Math.random();
|
|
3375
|
-
for (const
|
|
3376
|
-
const s = (o = t[
|
|
3403
|
+
for (const i in t) {
|
|
3404
|
+
const s = (o = t[i]) == null ? void 0 : o.testRatio;
|
|
3377
3405
|
if (n += s, r < n)
|
|
3378
|
-
return
|
|
3406
|
+
return i;
|
|
3379
3407
|
}
|
|
3380
3408
|
return e;
|
|
3381
|
-
},
|
|
3382
|
-
const t =
|
|
3383
|
-
return
|
|
3409
|
+
}, Cr = (e) => {
|
|
3410
|
+
const t = gi(e);
|
|
3411
|
+
return mi({
|
|
3384
3412
|
contentId: e.id,
|
|
3385
3413
|
value: t
|
|
3386
3414
|
}).catch((n) => {
|
|
3387
|
-
|
|
3415
|
+
z.error("could not store A/B test variation: ", n);
|
|
3388
3416
|
}), t;
|
|
3389
|
-
},
|
|
3417
|
+
}, Er = ({
|
|
3390
3418
|
item: e,
|
|
3391
3419
|
testGroupId: t
|
|
3392
3420
|
}) => {
|
|
@@ -3400,7 +3428,7 @@ const ai = (e) => {
|
|
|
3400
3428
|
testVariationId: n.id,
|
|
3401
3429
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3402
3430
|
};
|
|
3403
|
-
},
|
|
3431
|
+
}, yi = ({
|
|
3404
3432
|
item: e,
|
|
3405
3433
|
canTrack: t
|
|
3406
3434
|
}) => {
|
|
@@ -3408,14 +3436,14 @@ const ai = (e) => {
|
|
|
3408
3436
|
return e;
|
|
3409
3437
|
if (!e)
|
|
3410
3438
|
return;
|
|
3411
|
-
if (!
|
|
3439
|
+
if (!kr(e))
|
|
3412
3440
|
return e;
|
|
3413
|
-
const n =
|
|
3441
|
+
const n = hi({
|
|
3414
3442
|
contentId: e.id
|
|
3415
|
-
}) ||
|
|
3443
|
+
}) || Cr({
|
|
3416
3444
|
variations: e.variations,
|
|
3417
3445
|
id: e.id
|
|
3418
|
-
}), r =
|
|
3446
|
+
}), r = Er({
|
|
3419
3447
|
item: e,
|
|
3420
3448
|
testGroupId: n
|
|
3421
3449
|
});
|
|
@@ -3423,18 +3451,18 @@ const ai = (e) => {
|
|
|
3423
3451
|
...e,
|
|
3424
3452
|
...r
|
|
3425
3453
|
};
|
|
3426
|
-
},
|
|
3454
|
+
}, vi = async ({
|
|
3427
3455
|
item: e,
|
|
3428
3456
|
canTrack: t
|
|
3429
3457
|
}) => {
|
|
3430
|
-
if (!t || !
|
|
3458
|
+
if (!t || !kr(e))
|
|
3431
3459
|
return e;
|
|
3432
|
-
const r = await
|
|
3460
|
+
const r = await di({
|
|
3433
3461
|
contentId: e.id
|
|
3434
|
-
}) ||
|
|
3462
|
+
}) || Cr({
|
|
3435
3463
|
variations: e.variations,
|
|
3436
3464
|
id: e.id
|
|
3437
|
-
}), o =
|
|
3465
|
+
}), o = Er({
|
|
3438
3466
|
item: e,
|
|
3439
3467
|
testGroupId: r
|
|
3440
3468
|
});
|
|
@@ -3442,7 +3470,7 @@ const ai = (e) => {
|
|
|
3442
3470
|
...e,
|
|
3443
3471
|
...o
|
|
3444
3472
|
};
|
|
3445
|
-
}, Ht = (e) =>
|
|
3473
|
+
}, Ht = (e) => oe(e) ? e : !0, bi = {
|
|
3446
3474
|
name: "Core:Button",
|
|
3447
3475
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3448
3476
|
defaultStyles: {
|
|
@@ -3475,7 +3503,7 @@ const ai = (e) => {
|
|
|
3475
3503
|
}],
|
|
3476
3504
|
static: !0,
|
|
3477
3505
|
noWrap: !0
|
|
3478
|
-
},
|
|
3506
|
+
}, Si = {
|
|
3479
3507
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3480
3508
|
name: "Columns",
|
|
3481
3509
|
isRSC: !0,
|
|
@@ -3654,7 +3682,7 @@ const ai = (e) => {
|
|
|
3654
3682
|
});
|
|
3655
3683
|
}
|
|
3656
3684
|
const n = e.get("columns");
|
|
3657
|
-
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();
|
|
3658
3686
|
}
|
|
3659
3687
|
}, {
|
|
3660
3688
|
name: "space",
|
|
@@ -3676,7 +3704,7 @@ const ai = (e) => {
|
|
|
3676
3704
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3677
3705
|
advanced: !0
|
|
3678
3706
|
}]
|
|
3679
|
-
},
|
|
3707
|
+
}, wi = {
|
|
3680
3708
|
name: "Custom Code",
|
|
3681
3709
|
static: !0,
|
|
3682
3710
|
requiredPermissions: ["editCode"],
|
|
@@ -3698,7 +3726,7 @@ const ai = (e) => {
|
|
|
3698
3726
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3699
3727
|
advanced: !0
|
|
3700
3728
|
}]
|
|
3701
|
-
},
|
|
3729
|
+
}, xi = {
|
|
3702
3730
|
name: "Embed",
|
|
3703
3731
|
static: !0,
|
|
3704
3732
|
inputs: [{
|
|
@@ -3723,13 +3751,13 @@ const ai = (e) => {
|
|
|
3723
3751
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3724
3752
|
hideFromUI: !0
|
|
3725
3753
|
}]
|
|
3726
|
-
},
|
|
3754
|
+
}, ki = ["text/javascript", "application/javascript", "application/ecmascript"], Ua = (e) => ki.includes(e.type), Ci = {
|
|
3727
3755
|
name: "Fragment",
|
|
3728
3756
|
static: !0,
|
|
3729
3757
|
hidden: !0,
|
|
3730
3758
|
canHaveChildren: !0,
|
|
3731
3759
|
noWrap: !0
|
|
3732
|
-
},
|
|
3760
|
+
}, Ei = {
|
|
3733
3761
|
name: "Image",
|
|
3734
3762
|
static: !0,
|
|
3735
3763
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3765,10 +3793,10 @@ const ai = (e) => {
|
|
|
3765
3793
|
function r(s) {
|
|
3766
3794
|
return Math.round(s * 1e3) / 1e3;
|
|
3767
3795
|
}
|
|
3768
|
-
const o = e.get("image"),
|
|
3796
|
+
const o = e.get("image"), i = e.get("aspectRatio");
|
|
3769
3797
|
if (fetch(o).then((s) => s.blob()).then((s) => {
|
|
3770
3798
|
s.type.includes("svg") && e.set("noWebp", !0);
|
|
3771
|
-
}), o && (!
|
|
3799
|
+
}), o && (!i || i === 0.7041))
|
|
3772
3800
|
return n(o).then((s) => {
|
|
3773
3801
|
const u = e.get("aspectRatio");
|
|
3774
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));
|
|
@@ -3829,7 +3857,7 @@ const ai = (e) => {
|
|
|
3829
3857
|
advanced: !0,
|
|
3830
3858
|
defaultValue: 0.7041
|
|
3831
3859
|
}]
|
|
3832
|
-
},
|
|
3860
|
+
}, Ii = {
|
|
3833
3861
|
// friendlyName?
|
|
3834
3862
|
name: "Raw:Img",
|
|
3835
3863
|
hideFromInsertMenu: !0,
|
|
@@ -3843,7 +3871,7 @@ const ai = (e) => {
|
|
|
3843
3871
|
}],
|
|
3844
3872
|
noWrap: !0,
|
|
3845
3873
|
static: !0
|
|
3846
|
-
},
|
|
3874
|
+
}, Ti = {
|
|
3847
3875
|
name: "Core:Section",
|
|
3848
3876
|
static: !0,
|
|
3849
3877
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3882,7 +3910,7 @@ const ai = (e) => {
|
|
|
3882
3910
|
}
|
|
3883
3911
|
}
|
|
3884
3912
|
}]
|
|
3885
|
-
},
|
|
3913
|
+
}, Ai = {
|
|
3886
3914
|
name: "Slot",
|
|
3887
3915
|
isRSC: !0,
|
|
3888
3916
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3896,7 +3924,7 @@ const ai = (e) => {
|
|
|
3896
3924
|
defaultValue: "children"
|
|
3897
3925
|
}]
|
|
3898
3926
|
};
|
|
3899
|
-
function
|
|
3927
|
+
function Oi(e) {
|
|
3900
3928
|
var t, n, r;
|
|
3901
3929
|
return /* @__PURE__ */ C(
|
|
3902
3930
|
"div",
|
|
@@ -3919,7 +3947,7 @@ function Ti(e) {
|
|
|
3919
3947
|
}
|
|
3920
3948
|
);
|
|
3921
3949
|
}
|
|
3922
|
-
const
|
|
3950
|
+
const ji = {
|
|
3923
3951
|
name: "Symbol",
|
|
3924
3952
|
noWrap: !0,
|
|
3925
3953
|
static: !0,
|
|
@@ -3952,7 +3980,7 @@ const Ai = {
|
|
|
3952
3980
|
hideFromUI: !0,
|
|
3953
3981
|
type: "boolean"
|
|
3954
3982
|
}]
|
|
3955
|
-
},
|
|
3983
|
+
}, Ri = {
|
|
3956
3984
|
name: "Text",
|
|
3957
3985
|
static: !0,
|
|
3958
3986
|
isRSC: !0,
|
|
@@ -3971,7 +3999,7 @@ const Ai = {
|
|
|
3971
3999
|
textAlign: "center"
|
|
3972
4000
|
}
|
|
3973
4001
|
};
|
|
3974
|
-
function
|
|
4002
|
+
function Pi(e) {
|
|
3975
4003
|
var t;
|
|
3976
4004
|
return /* @__PURE__ */ C(
|
|
3977
4005
|
"div",
|
|
@@ -3984,7 +4012,7 @@ function ji(e) {
|
|
|
3984
4012
|
}
|
|
3985
4013
|
);
|
|
3986
4014
|
}
|
|
3987
|
-
const
|
|
4015
|
+
const Ni = {
|
|
3988
4016
|
name: "Video",
|
|
3989
4017
|
canHaveChildren: !0,
|
|
3990
4018
|
defaultStyles: {
|
|
@@ -4066,57 +4094,57 @@ const Ri = {
|
|
|
4066
4094
|
advanced: !0
|
|
4067
4095
|
}]
|
|
4068
4096
|
}, qn = () => [{
|
|
4069
|
-
component: ro,
|
|
4070
|
-
...yi
|
|
4071
|
-
}, {
|
|
4072
|
-
component: ri,
|
|
4073
|
-
...vi
|
|
4074
|
-
}, {
|
|
4075
4097
|
component: oo,
|
|
4076
4098
|
...bi
|
|
4077
4099
|
}, {
|
|
4078
|
-
component:
|
|
4100
|
+
component: ii,
|
|
4079
4101
|
...Si
|
|
4102
|
+
}, {
|
|
4103
|
+
component: io,
|
|
4104
|
+
...wi
|
|
4080
4105
|
}, {
|
|
4081
4106
|
component: ao,
|
|
4082
4107
|
...xi
|
|
4083
4108
|
}, {
|
|
4084
4109
|
component: so,
|
|
4085
|
-
...
|
|
4110
|
+
...Ci
|
|
4086
4111
|
}, {
|
|
4087
4112
|
component: lo,
|
|
4088
|
-
...
|
|
4113
|
+
...Ei
|
|
4089
4114
|
}, {
|
|
4090
4115
|
component: co,
|
|
4091
|
-
...
|
|
4116
|
+
...Ii
|
|
4092
4117
|
}, {
|
|
4093
|
-
component:
|
|
4094
|
-
...
|
|
4118
|
+
component: uo,
|
|
4119
|
+
...Ti
|
|
4095
4120
|
}, {
|
|
4096
|
-
component:
|
|
4097
|
-
...
|
|
4121
|
+
component: Ta,
|
|
4122
|
+
...ji
|
|
4098
4123
|
}, {
|
|
4099
|
-
component:
|
|
4124
|
+
component: Pi,
|
|
4100
4125
|
...Ri
|
|
4101
4126
|
}, {
|
|
4102
|
-
component:
|
|
4103
|
-
...
|
|
4104
|
-
}
|
|
4127
|
+
component: fo,
|
|
4128
|
+
...Ni
|
|
4129
|
+
}, {
|
|
4130
|
+
component: Oi,
|
|
4131
|
+
...Ai
|
|
4132
|
+
}], Zn = [], Fa = (e) => ({
|
|
4105
4133
|
type: "builder.registerComponent",
|
|
4106
4134
|
data: Kt(e)
|
|
4107
|
-
}),
|
|
4135
|
+
}), Bi = (e) => {
|
|
4108
4136
|
const t = e.toString().trim();
|
|
4109
4137
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4110
|
-
},
|
|
4138
|
+
}, Mi = (e) => typeof e == "function" ? Bi(e) : pt(e), Kt = ({
|
|
4111
4139
|
inputs: e,
|
|
4112
4140
|
...t
|
|
4113
4141
|
}) => ({
|
|
4114
4142
|
...pt(t),
|
|
4115
|
-
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]) => ({
|
|
4116
4144
|
...r,
|
|
4117
|
-
[o]:
|
|
4145
|
+
[o]: Mi(i)
|
|
4118
4146
|
}), {}))
|
|
4119
|
-
}),
|
|
4147
|
+
}), Ui = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4120
4148
|
function getAndSetVariantId() {
|
|
4121
4149
|
function setCookie(name, value, days) {
|
|
4122
4150
|
let expires = '';
|
|
@@ -4172,7 +4200,7 @@ const Ri = {
|
|
|
4172
4200
|
}).join('');
|
|
4173
4201
|
styleEl.innerHTML = newStyleStr;
|
|
4174
4202
|
}
|
|
4175
|
-
}`,
|
|
4203
|
+
}`, Fi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4176
4204
|
if (!navigator.cookieEnabled) {
|
|
4177
4205
|
return;
|
|
4178
4206
|
}
|
|
@@ -4206,24 +4234,24 @@ const Ri = {
|
|
|
4206
4234
|
thisScriptEl?.remove();
|
|
4207
4235
|
}
|
|
4208
4236
|
return;
|
|
4209
|
-
}`,
|
|
4237
|
+
}`, Ir = "builderIoAbTest", Tr = "builderIoRenderContent", st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4210
4238
|
...t,
|
|
4211
4239
|
testVariationId: t.id,
|
|
4212
4240
|
id: e == null ? void 0 : e.id
|
|
4213
|
-
})),
|
|
4241
|
+
})), Vi = ({
|
|
4214
4242
|
canTrack: e,
|
|
4215
4243
|
content: t
|
|
4216
|
-
}) => !(!(st(t).length > 0) || !e || G()),
|
|
4217
|
-
window.${
|
|
4218
|
-
window.${
|
|
4219
|
-
`,
|
|
4220
|
-
window.${
|
|
4221
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4222
|
-
)`,
|
|
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}
|
|
4247
|
+
`, Li = (e, t) => `
|
|
4248
|
+
window.${Ir}(
|
|
4249
|
+
"${t}",${JSON.stringify(e)}, ${Ar}
|
|
4250
|
+
)`, Wi = ({
|
|
4223
4251
|
contentId: e,
|
|
4224
4252
|
variationId: t
|
|
4225
|
-
}) => `window.${
|
|
4226
|
-
"${t}", "${e}", ${
|
|
4253
|
+
}) => `window.${Tr}(
|
|
4254
|
+
"${t}", "${e}", ${Ar}
|
|
4227
4255
|
)`;
|
|
4228
4256
|
function Gt(e) {
|
|
4229
4257
|
return /* @__PURE__ */ C(
|
|
@@ -4234,66 +4262,66 @@ function Gt(e) {
|
|
|
4234
4262
|
}
|
|
4235
4263
|
);
|
|
4236
4264
|
}
|
|
4237
|
-
const
|
|
4265
|
+
const $i = (e) => {
|
|
4238
4266
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4239
|
-
return n ||
|
|
4267
|
+
return n || z.warn("No previewed ID found in search params."), n;
|
|
4240
4268
|
};
|
|
4241
|
-
function
|
|
4242
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4269
|
+
function Hi() {
|
|
4270
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Qr({
|
|
4243
4271
|
max: 500,
|
|
4244
4272
|
// how long to live in ms
|
|
4245
4273
|
ttl: 1e3 * 60 * 5
|
|
4246
4274
|
}));
|
|
4247
4275
|
}
|
|
4248
|
-
function
|
|
4249
|
-
|
|
4250
|
-
const t =
|
|
4276
|
+
function Ki(e) {
|
|
4277
|
+
Hi();
|
|
4278
|
+
const t = $i(e);
|
|
4251
4279
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4252
4280
|
}
|
|
4253
|
-
function
|
|
4281
|
+
function Gi() {
|
|
4254
4282
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4255
4283
|
}
|
|
4256
|
-
function
|
|
4257
|
-
const e =
|
|
4284
|
+
function Xi() {
|
|
4285
|
+
const e = Gi().fetch;
|
|
4258
4286
|
if (typeof e > "u")
|
|
4259
4287
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4260
4288
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4261
4289
|
return e;
|
|
4262
4290
|
}
|
|
4263
|
-
const
|
|
4291
|
+
const Yi = Xi();
|
|
4264
4292
|
function lt(e, t = null, n = ".") {
|
|
4265
4293
|
return Object.keys(e).reduce((r, o) => {
|
|
4266
|
-
const
|
|
4267
|
-
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) ? {
|
|
4268
4296
|
...r,
|
|
4269
|
-
...lt(
|
|
4297
|
+
...lt(i, s, n)
|
|
4270
4298
|
} : {
|
|
4271
4299
|
...r,
|
|
4272
|
-
[s]:
|
|
4300
|
+
[s]: i
|
|
4273
4301
|
};
|
|
4274
4302
|
}, {});
|
|
4275
4303
|
}
|
|
4276
|
-
const
|
|
4304
|
+
const Ji = "v3", Qn = "builder.", zi = "options.", qi = (e) => {
|
|
4277
4305
|
const t = {};
|
|
4278
4306
|
return e.forEach((n, r) => {
|
|
4279
4307
|
t[r] = n;
|
|
4280
4308
|
}), t;
|
|
4281
|
-
},
|
|
4309
|
+
}, Or = (e) => {
|
|
4282
4310
|
if (!e)
|
|
4283
4311
|
return {};
|
|
4284
|
-
const t =
|
|
4312
|
+
const t = jr(e), n = {};
|
|
4285
4313
|
return Object.keys(t).forEach((r) => {
|
|
4286
4314
|
if (r.startsWith(Qn)) {
|
|
4287
|
-
const o = r.replace(Qn, "").replace(
|
|
4315
|
+
const o = r.replace(Qn, "").replace(zi, "");
|
|
4288
4316
|
n[o] = t[r];
|
|
4289
4317
|
}
|
|
4290
4318
|
}), n;
|
|
4291
|
-
},
|
|
4319
|
+
}, Zi = () => {
|
|
4292
4320
|
if (!G())
|
|
4293
4321
|
return {};
|
|
4294
4322
|
const e = new URLSearchParams(window.location.search);
|
|
4295
|
-
return
|
|
4296
|
-
},
|
|
4323
|
+
return Or(e);
|
|
4324
|
+
}, jr = (e) => e instanceof URLSearchParams ? qi(e) : e, er = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
|
|
4297
4325
|
let {
|
|
4298
4326
|
noTraverse: t = !1
|
|
4299
4327
|
} = e;
|
|
@@ -4301,12 +4329,12 @@ const Xi = "v3", Qn = "builder.", Yi = "options.", Ji = (e) => {
|
|
|
4301
4329
|
limit: n = 30,
|
|
4302
4330
|
userAttributes: r,
|
|
4303
4331
|
query: o,
|
|
4304
|
-
model:
|
|
4332
|
+
model: i,
|
|
4305
4333
|
apiKey: s,
|
|
4306
4334
|
includeRefs: u = !0,
|
|
4307
4335
|
enrich: d,
|
|
4308
4336
|
locale: k,
|
|
4309
|
-
apiVersion: E =
|
|
4337
|
+
apiVersion: E = Ji,
|
|
4310
4338
|
fields: S,
|
|
4311
4339
|
omit: P,
|
|
4312
4340
|
offset: j,
|
|
@@ -4320,7 +4348,7 @@ const Xi = "v3", Qn = "builder.", Yi = "options.", Ji = (e) => {
|
|
|
4320
4348
|
if (!["v2", "v3"].includes(E))
|
|
4321
4349
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${E}'`);
|
|
4322
4350
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4323
|
-
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}` : ""}`);
|
|
4324
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) {
|
|
4325
4353
|
const Z = lt({
|
|
4326
4354
|
sort: B
|
|
@@ -4329,8 +4357,8 @@ const Xi = "v3", Qn = "builder.", Yi = "options.", Ji = (e) => {
|
|
|
4329
4357
|
m.searchParams.set(M, JSON.stringify(Z[M]));
|
|
4330
4358
|
}
|
|
4331
4359
|
const ee = {
|
|
4332
|
-
...
|
|
4333
|
-
...
|
|
4360
|
+
...Zi(),
|
|
4361
|
+
...jr(e.options || {})
|
|
4334
4362
|
}, te = lt(ee);
|
|
4335
4363
|
for (const Z in te)
|
|
4336
4364
|
m.searchParams.set(Z, String(te[Z]));
|
|
@@ -4342,144 +4370,144 @@ const Xi = "v3", Qn = "builder.", Yi = "options.", Ji = (e) => {
|
|
|
4342
4370
|
m.searchParams.set(M, JSON.stringify(Z[M]));
|
|
4343
4371
|
}
|
|
4344
4372
|
return m;
|
|
4345
|
-
},
|
|
4373
|
+
}, Qi = (e) => "results" in e;
|
|
4346
4374
|
async function un(e) {
|
|
4347
|
-
const t = await
|
|
4375
|
+
const t = await Rr({
|
|
4348
4376
|
...e,
|
|
4349
4377
|
limit: 1
|
|
4350
4378
|
});
|
|
4351
4379
|
return t && t[0] || null;
|
|
4352
4380
|
}
|
|
4353
|
-
const
|
|
4381
|
+
const Va = un, ea = async (e) => {
|
|
4354
4382
|
const t = cn(e);
|
|
4355
|
-
return await (await
|
|
4356
|
-
},
|
|
4383
|
+
return await (await Yi(t.href)).json();
|
|
4384
|
+
}, ta = async (e, t, n = cn(e)) => {
|
|
4357
4385
|
const r = Ht(e.canTrack);
|
|
4358
4386
|
if (n.search.includes("preview=")) {
|
|
4359
|
-
const
|
|
4387
|
+
const i = [];
|
|
4360
4388
|
for (const s of t.results) {
|
|
4361
|
-
const u =
|
|
4362
|
-
|
|
4389
|
+
const u = Ki(n.searchParams);
|
|
4390
|
+
i.push(u || s);
|
|
4363
4391
|
}
|
|
4364
|
-
t.results =
|
|
4392
|
+
t.results = i;
|
|
4365
4393
|
}
|
|
4366
4394
|
if (!r || !(G() || he === "reactNative"))
|
|
4367
4395
|
return t.results;
|
|
4368
4396
|
try {
|
|
4369
|
-
const
|
|
4397
|
+
const i = [];
|
|
4370
4398
|
for (const s of t.results)
|
|
4371
|
-
|
|
4399
|
+
i.push(await vi({
|
|
4372
4400
|
item: s,
|
|
4373
4401
|
canTrack: r
|
|
4374
4402
|
}));
|
|
4375
|
-
t.results =
|
|
4376
|
-
} catch (
|
|
4377
|
-
|
|
4403
|
+
t.results = i;
|
|
4404
|
+
} catch (i) {
|
|
4405
|
+
z.error("Could not process A/B tests. ", i);
|
|
4378
4406
|
}
|
|
4379
4407
|
return t.results;
|
|
4380
4408
|
};
|
|
4381
|
-
async function
|
|
4409
|
+
async function Rr(e) {
|
|
4382
4410
|
try {
|
|
4383
|
-
const t = cn(e), n = await
|
|
4384
|
-
return
|
|
4411
|
+
const t = cn(e), n = await ea(e);
|
|
4412
|
+
return Qi(n) ? ta(e, n) : (z.error("Error fetching data. ", {
|
|
4385
4413
|
url: t,
|
|
4386
4414
|
content: n,
|
|
4387
4415
|
options: e
|
|
4388
4416
|
}), null);
|
|
4389
4417
|
} catch (t) {
|
|
4390
|
-
return
|
|
4418
|
+
return z.error("Error fetching data. ", t), null;
|
|
4391
4419
|
}
|
|
4392
4420
|
}
|
|
4393
|
-
const
|
|
4394
|
-
function
|
|
4421
|
+
const Da = Rr, na = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4422
|
+
function ra(e, t) {
|
|
4395
4423
|
const n = new URL(t.origin), r = n.hostname;
|
|
4396
|
-
return (e ||
|
|
4424
|
+
return (e || na).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4397
4425
|
}
|
|
4398
|
-
function
|
|
4426
|
+
function _a() {
|
|
4399
4427
|
return !G() || Yt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
4400
4428
|
}
|
|
4401
|
-
function
|
|
4429
|
+
function oa() {
|
|
4402
4430
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4403
4431
|
const t = Math.random() * 16 | 0;
|
|
4404
4432
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4405
4433
|
});
|
|
4406
4434
|
}
|
|
4407
|
-
function
|
|
4408
|
-
return
|
|
4435
|
+
function Pr() {
|
|
4436
|
+
return oa().replace(/-/g, "");
|
|
4409
4437
|
}
|
|
4410
|
-
const
|
|
4438
|
+
const Nr = "builderSessionId", ia = async ({
|
|
4411
4439
|
canTrack: e
|
|
4412
4440
|
}) => {
|
|
4413
4441
|
if (!e)
|
|
4414
4442
|
return;
|
|
4415
|
-
const t = await
|
|
4416
|
-
name:
|
|
4443
|
+
const t = await wr({
|
|
4444
|
+
name: Nr,
|
|
4417
4445
|
canTrack: e
|
|
4418
4446
|
});
|
|
4419
|
-
if (
|
|
4447
|
+
if (oe(t))
|
|
4420
4448
|
return t;
|
|
4421
4449
|
{
|
|
4422
|
-
const n =
|
|
4423
|
-
return
|
|
4450
|
+
const n = aa();
|
|
4451
|
+
return sa({
|
|
4424
4452
|
id: n,
|
|
4425
4453
|
canTrack: e
|
|
4426
4454
|
}), n;
|
|
4427
4455
|
}
|
|
4428
|
-
},
|
|
4456
|
+
}, aa = () => Pr(), sa = ({
|
|
4429
4457
|
id: e,
|
|
4430
4458
|
canTrack: t
|
|
4431
|
-
}) =>
|
|
4432
|
-
name:
|
|
4459
|
+
}) => xr({
|
|
4460
|
+
name: Nr,
|
|
4433
4461
|
value: e,
|
|
4434
4462
|
canTrack: t
|
|
4435
|
-
}),
|
|
4463
|
+
}), Br = () => G() && typeof localStorage < "u" ? localStorage : void 0, la = ({
|
|
4436
4464
|
key: e,
|
|
4437
4465
|
canTrack: t
|
|
4438
4466
|
}) => {
|
|
4439
4467
|
var n;
|
|
4440
4468
|
try {
|
|
4441
|
-
return t ? (n =
|
|
4469
|
+
return t ? (n = Br()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4442
4470
|
} catch (r) {
|
|
4443
4471
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4444
4472
|
return;
|
|
4445
4473
|
}
|
|
4446
|
-
},
|
|
4474
|
+
}, ca = ({
|
|
4447
4475
|
key: e,
|
|
4448
4476
|
canTrack: t,
|
|
4449
4477
|
value: n
|
|
4450
4478
|
}) => {
|
|
4451
4479
|
var r;
|
|
4452
4480
|
try {
|
|
4453
|
-
t && ((r =
|
|
4481
|
+
t && ((r = Br()) == null || r.setItem(e, n));
|
|
4454
4482
|
} catch (o) {
|
|
4455
4483
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4456
4484
|
}
|
|
4457
|
-
},
|
|
4485
|
+
}, Mr = "builderVisitorId", ua = ({
|
|
4458
4486
|
canTrack: e
|
|
4459
4487
|
}) => {
|
|
4460
4488
|
if (!e)
|
|
4461
4489
|
return;
|
|
4462
|
-
const t =
|
|
4463
|
-
key:
|
|
4490
|
+
const t = la({
|
|
4491
|
+
key: Mr,
|
|
4464
4492
|
canTrack: e
|
|
4465
4493
|
});
|
|
4466
|
-
if (
|
|
4494
|
+
if (oe(t))
|
|
4467
4495
|
return t;
|
|
4468
4496
|
{
|
|
4469
|
-
const n =
|
|
4470
|
-
return
|
|
4497
|
+
const n = fa();
|
|
4498
|
+
return pa({
|
|
4471
4499
|
id: n,
|
|
4472
4500
|
canTrack: e
|
|
4473
4501
|
}), n;
|
|
4474
4502
|
}
|
|
4475
|
-
},
|
|
4503
|
+
}, fa = () => Pr(), pa = ({
|
|
4476
4504
|
id: e,
|
|
4477
4505
|
canTrack: t
|
|
4478
|
-
}) =>
|
|
4479
|
-
key:
|
|
4506
|
+
}) => ca({
|
|
4507
|
+
key: Mr,
|
|
4480
4508
|
value: e,
|
|
4481
4509
|
canTrack: t
|
|
4482
|
-
}),
|
|
4510
|
+
}), da = async ({
|
|
4483
4511
|
canTrack: e
|
|
4484
4512
|
}) => {
|
|
4485
4513
|
if (!e)
|
|
@@ -4487,16 +4515,16 @@ const Pr = "builderSessionId", ra = async ({
|
|
|
4487
4515
|
visitorId: void 0,
|
|
4488
4516
|
sessionId: void 0
|
|
4489
4517
|
};
|
|
4490
|
-
const t = await
|
|
4518
|
+
const t = await ia({
|
|
4491
4519
|
canTrack: e
|
|
4492
|
-
}), n =
|
|
4520
|
+
}), n = ua({
|
|
4493
4521
|
canTrack: e
|
|
4494
4522
|
});
|
|
4495
4523
|
return {
|
|
4496
4524
|
sessionId: t,
|
|
4497
4525
|
visitorId: n
|
|
4498
4526
|
};
|
|
4499
|
-
},
|
|
4527
|
+
}, ha = async ({
|
|
4500
4528
|
type: e,
|
|
4501
4529
|
canTrack: t,
|
|
4502
4530
|
apiKey: n,
|
|
@@ -4510,23 +4538,23 @@ const Pr = "builderSessionId", ra = async ({
|
|
|
4510
4538
|
url: location.href,
|
|
4511
4539
|
...r
|
|
4512
4540
|
},
|
|
4513
|
-
...await
|
|
4541
|
+
...await da({
|
|
4514
4542
|
canTrack: t
|
|
4515
4543
|
}),
|
|
4516
4544
|
userAttributes: sr(),
|
|
4517
4545
|
ownerId: n
|
|
4518
4546
|
}
|
|
4519
4547
|
});
|
|
4520
|
-
async function
|
|
4548
|
+
async function ma(e) {
|
|
4521
4549
|
if (!e.apiKey) {
|
|
4522
|
-
|
|
4550
|
+
z.error("Missing API key for track call. Please provide your API key.");
|
|
4523
4551
|
return;
|
|
4524
4552
|
}
|
|
4525
4553
|
if (e.canTrack && !Yt() && (G() || he === "reactNative"))
|
|
4526
4554
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4527
4555
|
method: "POST",
|
|
4528
4556
|
body: JSON.stringify({
|
|
4529
|
-
events: [await
|
|
4557
|
+
events: [await ha(e)]
|
|
4530
4558
|
}),
|
|
4531
4559
|
headers: {
|
|
4532
4560
|
"content-type": "application/json"
|
|
@@ -4536,14 +4564,14 @@ async function da(e) {
|
|
|
4536
4564
|
console.error("Failed to track: ", t);
|
|
4537
4565
|
});
|
|
4538
4566
|
}
|
|
4539
|
-
const
|
|
4567
|
+
const La = (e) => ma({
|
|
4540
4568
|
...e,
|
|
4541
4569
|
canTrack: !0
|
|
4542
4570
|
});
|
|
4543
4571
|
function tr(e) {
|
|
4544
4572
|
return Math.round(e * 1e3) / 1e3;
|
|
4545
4573
|
}
|
|
4546
|
-
const
|
|
4574
|
+
const ga = (e, t, n = !0) => {
|
|
4547
4575
|
if (!(e instanceof HTMLElement))
|
|
4548
4576
|
return null;
|
|
4549
4577
|
let r = n ? e : e.parentElement;
|
|
@@ -4554,20 +4582,20 @@ const ha = (e, t, n = !0) => {
|
|
|
4554
4582
|
return r;
|
|
4555
4583
|
} while (r = r.parentElement);
|
|
4556
4584
|
return null;
|
|
4557
|
-
},
|
|
4585
|
+
}, ya = (e) => ga(e, (t) => {
|
|
4558
4586
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4559
4587
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4560
4588
|
}), nr = ({
|
|
4561
4589
|
event: e,
|
|
4562
4590
|
target: t
|
|
4563
4591
|
}) => {
|
|
4564
|
-
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);
|
|
4565
4593
|
return {
|
|
4566
|
-
x:
|
|
4594
|
+
x: i,
|
|
4567
4595
|
y: s
|
|
4568
4596
|
};
|
|
4569
|
-
},
|
|
4570
|
-
const t = e.target, n = t &&
|
|
4597
|
+
}, Wa = (e) => {
|
|
4598
|
+
const t = e.target, n = t && ya(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4571
4599
|
return {
|
|
4572
4600
|
targetBuilderElement: r || void 0,
|
|
4573
4601
|
metadata: {
|
|
@@ -4582,8 +4610,8 @@ const ha = (e, t, n = !0) => {
|
|
|
4582
4610
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4583
4611
|
}
|
|
4584
4612
|
};
|
|
4585
|
-
},
|
|
4586
|
-
function
|
|
4613
|
+
}, va = "0.12.6", rr = {};
|
|
4614
|
+
function ba(e, t) {
|
|
4587
4615
|
let n = rr[e];
|
|
4588
4616
|
if (n || (n = rr[e] = []), n.push(t), G()) {
|
|
4589
4617
|
const r = {
|
|
@@ -4600,8 +4628,8 @@ function ya(e, t) {
|
|
|
4600
4628
|
}
|
|
4601
4629
|
}
|
|
4602
4630
|
}
|
|
4603
|
-
const
|
|
4604
|
-
|
|
4631
|
+
const $a = () => {
|
|
4632
|
+
ba("insertMenu", {
|
|
4605
4633
|
name: "_default",
|
|
4606
4634
|
default: !0,
|
|
4607
4635
|
items: [{
|
|
@@ -4624,13 +4652,13 @@ const La = () => {
|
|
|
4624
4652
|
});
|
|
4625
4653
|
};
|
|
4626
4654
|
let or = !1;
|
|
4627
|
-
const
|
|
4655
|
+
const Ha = (e = {}) => {
|
|
4628
4656
|
var t, n;
|
|
4629
4657
|
or || (or = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4630
4658
|
type: "builder.sdkInfo",
|
|
4631
4659
|
data: {
|
|
4632
4660
|
target: he,
|
|
4633
|
-
version:
|
|
4661
|
+
version: va,
|
|
4634
4662
|
supportsPatchUpdates: !1,
|
|
4635
4663
|
// Supports builder-model="..." attribute which is needed to
|
|
4636
4664
|
// scope our '+ add block' button styling
|
|
@@ -4643,8 +4671,8 @@ const Wa = (e = {}) => {
|
|
|
4643
4671
|
options: e
|
|
4644
4672
|
}
|
|
4645
4673
|
}, "*"), window.addEventListener("message", (r) => {
|
|
4646
|
-
var
|
|
4647
|
-
if (!
|
|
4674
|
+
var i, s;
|
|
4675
|
+
if (!ra(e.trustedHosts, r))
|
|
4648
4676
|
return;
|
|
4649
4677
|
const {
|
|
4650
4678
|
data: o
|
|
@@ -4659,7 +4687,7 @@ const Wa = (e = {}) => {
|
|
|
4659
4687
|
} catch (j) {
|
|
4660
4688
|
P = j;
|
|
4661
4689
|
}
|
|
4662
|
-
P ? (
|
|
4690
|
+
P ? (i = window.parent) == null || i.postMessage({
|
|
4663
4691
|
type: "builder.evaluateError",
|
|
4664
4692
|
data: {
|
|
4665
4693
|
id: k,
|
|
@@ -4685,9 +4713,9 @@ const Wa = (e = {}) => {
|
|
|
4685
4713
|
}
|
|
4686
4714
|
}
|
|
4687
4715
|
})));
|
|
4688
|
-
},
|
|
4689
|
-
var
|
|
4690
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((
|
|
4716
|
+
}, Sa = (e) => {
|
|
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);
|
|
4691
4719
|
let o = "";
|
|
4692
4720
|
if (r && t && n && (o += `
|
|
4693
4721
|
@font-face {
|
|
@@ -4711,22 +4739,22 @@ font-weight: ${s};
|
|
|
4711
4739
|
`.trim());
|
|
4712
4740
|
}
|
|
4713
4741
|
return o;
|
|
4714
|
-
},
|
|
4742
|
+
}, wa = ({
|
|
4715
4743
|
customFonts: e
|
|
4716
4744
|
}) => {
|
|
4717
4745
|
var t;
|
|
4718
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4719
|
-
},
|
|
4746
|
+
return ((t = e == null ? void 0 : e.map((n) => Sa(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4747
|
+
}, xa = ({
|
|
4720
4748
|
cssCode: e,
|
|
4721
4749
|
contentId: t
|
|
4722
4750
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4723
|
-
function
|
|
4751
|
+
function ka(e) {
|
|
4724
4752
|
const t = `
|
|
4725
|
-
${
|
|
4753
|
+
${xa({
|
|
4726
4754
|
cssCode: e.cssCode,
|
|
4727
4755
|
contentId: e.contentId
|
|
4728
4756
|
})}
|
|
4729
|
-
${
|
|
4757
|
+
${wa({
|
|
4730
4758
|
customFonts: e.customFonts
|
|
4731
4759
|
})}
|
|
4732
4760
|
|
|
@@ -4749,13 +4777,13 @@ ${ba({
|
|
|
4749
4777
|
`.trim();
|
|
4750
4778
|
return /* @__PURE__ */ C(dt, { styles: t });
|
|
4751
4779
|
}
|
|
4752
|
-
const
|
|
4780
|
+
const Ca = ({
|
|
4753
4781
|
content: e,
|
|
4754
4782
|
data: t,
|
|
4755
4783
|
locale: n
|
|
4756
4784
|
}) => {
|
|
4757
|
-
var
|
|
4758
|
-
const r = {}, o = ((
|
|
4785
|
+
var i, s, u;
|
|
4786
|
+
const r = {}, o = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
4759
4787
|
return (u = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || u.forEach((d) => {
|
|
4760
4788
|
d.name && d.defaultValue !== void 0 && (r[d.name] = d.defaultValue);
|
|
4761
4789
|
}), {
|
|
@@ -4766,7 +4794,7 @@ const xa = ({
|
|
|
4766
4794
|
locale: n
|
|
4767
4795
|
} : {}
|
|
4768
4796
|
};
|
|
4769
|
-
},
|
|
4797
|
+
}, Ea = ({
|
|
4770
4798
|
content: e,
|
|
4771
4799
|
data: t
|
|
4772
4800
|
}) => e ? {
|
|
@@ -4778,12 +4806,12 @@ const xa = ({
|
|
|
4778
4806
|
meta: e == null ? void 0 : e.meta
|
|
4779
4807
|
} : void 0;
|
|
4780
4808
|
function ir(e) {
|
|
4781
|
-
var o,
|
|
4782
|
-
const t =
|
|
4809
|
+
var o, i, s, u, d, k, E, S, P;
|
|
4810
|
+
const t = Wi({
|
|
4783
4811
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4784
4812
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4785
4813
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4786
|
-
contentId: (
|
|
4814
|
+
contentId: (i = e.content) == null ? void 0 : i.id
|
|
4787
4815
|
}), n = [
|
|
4788
4816
|
...qn(),
|
|
4789
4817
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4803,12 +4831,12 @@ function ir(e) {
|
|
|
4803
4831
|
}),
|
|
4804
4832
|
{}
|
|
4805
4833
|
), r = {
|
|
4806
|
-
content:
|
|
4834
|
+
content: Ea({
|
|
4807
4835
|
content: e.content,
|
|
4808
4836
|
data: e.data
|
|
4809
4837
|
}),
|
|
4810
4838
|
localState: void 0,
|
|
4811
|
-
rootState:
|
|
4839
|
+
rootState: Ca({
|
|
4812
4840
|
content: e.content,
|
|
4813
4841
|
data: e.data,
|
|
4814
4842
|
locale: e.locale
|
|
@@ -4838,7 +4866,7 @@ function ir(e) {
|
|
|
4838
4866
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4839
4867
|
};
|
|
4840
4868
|
return /* @__PURE__ */ xe(
|
|
4841
|
-
|
|
4869
|
+
po,
|
|
4842
4870
|
{
|
|
4843
4871
|
content: e.content,
|
|
4844
4872
|
data: e.data,
|
|
@@ -4858,7 +4886,7 @@ function ir(e) {
|
|
|
4858
4886
|
children: [
|
|
4859
4887
|
e.isSsrAbTest ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: t }) }) : null,
|
|
4860
4888
|
/* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
|
|
4861
|
-
|
|
4889
|
+
ka,
|
|
4862
4890
|
{
|
|
4863
4891
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
4864
4892
|
cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
|
|
@@ -4878,14 +4906,14 @@ function ir(e) {
|
|
|
4878
4906
|
}
|
|
4879
4907
|
);
|
|
4880
4908
|
}
|
|
4881
|
-
function
|
|
4882
|
-
var
|
|
4883
|
-
const t =
|
|
4909
|
+
function Ur(e) {
|
|
4910
|
+
var i, s;
|
|
4911
|
+
const t = Vi({
|
|
4884
4912
|
canTrack: Ht(e.canTrack),
|
|
4885
4913
|
content: e.content
|
|
4886
4914
|
}), n = function() {
|
|
4887
4915
|
var d;
|
|
4888
|
-
return
|
|
4916
|
+
return Li(
|
|
4889
4917
|
st(e.content).map((k) => ({
|
|
4890
4918
|
id: k.testVariationId,
|
|
4891
4919
|
testRatio: k.testRatio
|
|
@@ -4899,18 +4927,18 @@ function Mr(e) {
|
|
|
4899
4927
|
return t ? {
|
|
4900
4928
|
...e.content,
|
|
4901
4929
|
testVariationId: (d = e.content) == null ? void 0 : d.id
|
|
4902
|
-
} :
|
|
4930
|
+
} : yi({
|
|
4903
4931
|
item: e.content,
|
|
4904
4932
|
canTrack: Ht(e.canTrack)
|
|
4905
4933
|
});
|
|
4906
4934
|
};
|
|
4907
4935
|
return /* @__PURE__ */ xe(L, { children: [
|
|
4908
|
-
!e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr:
|
|
4936
|
+
!e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: _i() }) }) : null,
|
|
4909
4937
|
t ? /* @__PURE__ */ xe(L, { children: [
|
|
4910
4938
|
/* @__PURE__ */ C(
|
|
4911
4939
|
dt,
|
|
4912
4940
|
{
|
|
4913
|
-
id: `variants-styles-${(
|
|
4941
|
+
id: `variants-styles-${(i = e.content) == null ? void 0 : i.id}`,
|
|
4914
4942
|
styles: r()
|
|
4915
4943
|
}
|
|
4916
4944
|
),
|
|
@@ -4967,7 +4995,7 @@ function Mr(e) {
|
|
|
4967
4995
|
)
|
|
4968
4996
|
] });
|
|
4969
4997
|
}
|
|
4970
|
-
const
|
|
4998
|
+
const Ia = async ({
|
|
4971
4999
|
builderContextValue: e,
|
|
4972
5000
|
symbol: t
|
|
4973
5001
|
}) => {
|
|
@@ -4983,11 +5011,11 @@ const Ca = async ({
|
|
|
4983
5011
|
}
|
|
4984
5012
|
}
|
|
4985
5013
|
}).catch((n) => {
|
|
4986
|
-
|
|
5014
|
+
z.error("Could not fetch symbol content: ", n);
|
|
4987
5015
|
});
|
|
4988
5016
|
};
|
|
4989
|
-
async function
|
|
4990
|
-
var r, o,
|
|
5017
|
+
async function Ta(e) {
|
|
5018
|
+
var r, o, i, s, u;
|
|
4991
5019
|
const t = function() {
|
|
4992
5020
|
var k, E;
|
|
4993
5021
|
return [
|
|
@@ -4996,12 +5024,12 @@ async function Ea(e) {
|
|
|
4996
5024
|
(k = e.symbol) != null && k.inline ? "builder-inline-symbol" : void 0,
|
|
4997
5025
|
(E = e.symbol) != null && E.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
4998
5026
|
].filter(Boolean).join(" ");
|
|
4999
|
-
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await
|
|
5027
|
+
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await Ia({
|
|
5000
5028
|
symbol: e.symbol,
|
|
5001
5029
|
builderContextValue: e.builderContext
|
|
5002
5030
|
});
|
|
5003
5031
|
return /* @__PURE__ */ C("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ C(
|
|
5004
|
-
|
|
5032
|
+
Ur,
|
|
5005
5033
|
{
|
|
5006
5034
|
__isNestedRender: !0,
|
|
5007
5035
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5012,7 +5040,7 @@ async function Ea(e) {
|
|
|
5012
5040
|
},
|
|
5013
5041
|
customComponents: Object.values(e.builderComponents),
|
|
5014
5042
|
data: {
|
|
5015
|
-
...(
|
|
5043
|
+
...(i = e.symbol) == null ? void 0 : i.data,
|
|
5016
5044
|
...e.builderContext.localState,
|
|
5017
5045
|
...(s = n == null ? void 0 : n.data) == null ? void 0 : s.state
|
|
5018
5046
|
},
|
|
@@ -5022,8 +5050,8 @@ async function Ea(e) {
|
|
|
5022
5050
|
}
|
|
5023
5051
|
) });
|
|
5024
5052
|
}
|
|
5025
|
-
const
|
|
5026
|
-
function
|
|
5053
|
+
const Ka = mt, Ga = Ur, ar = {};
|
|
5054
|
+
function Xa(e) {
|
|
5027
5055
|
if (G()) {
|
|
5028
5056
|
Object.assign(ar, e);
|
|
5029
5057
|
const t = {
|
|
@@ -5033,8 +5061,8 @@ function Ka(e) {
|
|
|
5033
5061
|
parent.postMessage(t, "*");
|
|
5034
5062
|
}
|
|
5035
5063
|
}
|
|
5036
|
-
const
|
|
5037
|
-
var r, o,
|
|
5064
|
+
const Ya = async (e) => {
|
|
5065
|
+
var r, o, i;
|
|
5038
5066
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
5039
5067
|
...e,
|
|
5040
5068
|
apiKey: e.apiKey,
|
|
@@ -5045,7 +5073,7 @@ const Ga = async (e) => {
|
|
|
5045
5073
|
urlPath: t
|
|
5046
5074
|
} : {}
|
|
5047
5075
|
},
|
|
5048
|
-
options:
|
|
5076
|
+
options: Or(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5049
5077
|
};
|
|
5050
5078
|
return {
|
|
5051
5079
|
apiKey: n.apiKey,
|
|
@@ -5054,42 +5082,42 @@ const Ga = async (e) => {
|
|
|
5054
5082
|
};
|
|
5055
5083
|
};
|
|
5056
5084
|
export {
|
|
5057
|
-
|
|
5085
|
+
Rr as A,
|
|
5058
5086
|
mt as B,
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5087
|
+
Ur as C,
|
|
5088
|
+
Da as D,
|
|
5089
|
+
Va as E,
|
|
5090
|
+
Or as F,
|
|
5091
|
+
La as G,
|
|
5092
|
+
Ya as H,
|
|
5093
|
+
Ka as R,
|
|
5094
|
+
Ta as S,
|
|
5095
|
+
Pi as T,
|
|
5096
|
+
ma as _,
|
|
5097
|
+
ni as a,
|
|
5098
|
+
Ba as b,
|
|
5071
5099
|
Yt as c,
|
|
5072
|
-
|
|
5073
|
-
|
|
5100
|
+
Ma as d,
|
|
5101
|
+
Ua as e,
|
|
5074
5102
|
G as f,
|
|
5075
5103
|
Xt as g,
|
|
5076
5104
|
Ht as h,
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5105
|
+
Na as i,
|
|
5106
|
+
_a as j,
|
|
5107
|
+
ra as k,
|
|
5108
|
+
z as l,
|
|
5081
5109
|
sn as m,
|
|
5082
|
-
|
|
5110
|
+
Wa as n,
|
|
5083
5111
|
pt as o,
|
|
5084
|
-
|
|
5112
|
+
Fa as p,
|
|
5085
5113
|
un as q,
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5114
|
+
$a as r,
|
|
5115
|
+
Ha as s,
|
|
5116
|
+
Yi as t,
|
|
5117
|
+
Hi as u,
|
|
5118
|
+
Ga as v,
|
|
5119
|
+
ii as w,
|
|
5120
|
+
ba as x,
|
|
5121
|
+
Xa as y,
|
|
5122
|
+
ta as z
|
|
5095
5123
|
};
|