@builder.io/sdk-react 0.12.1 → 0.12.2
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/index.cjs +26 -26
- package/lib/browser/index.mjs +620 -636
- package/lib/edge/index.cjs +32 -32
- package/lib/edge/index.mjs +1009 -1025
- package/lib/node/index.cjs +10 -10
- package/lib/node/index.mjs +361 -377
- package/package.json +1 -1
- package/types/components/block/block.helpers.d.ts +0 -1
- package/types/components/block/components/block-wrapper.d.ts +2 -6
- package/types/components/content-variants/content-variants.types.d.ts +4 -0
- package/types/components/dynamic-renderer/dynamic-renderer.d.ts +8 -0
- package/types/components/dynamic-renderer/dynamic-renderer.helpers.d.ts +1 -0
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/is-from-trusted-host.d.ts +3 -0
- package/types/scripts/init-editing.d.ts +1 -0
package/lib/edge/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { i as Te, j as je, k as Lr, l as Ue, m as
|
|
5
|
-
import { _ as
|
|
6
|
-
function
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
e.link ? /* @__PURE__ */ p(
|
|
2
|
+
import { jsxs as se, Fragment as P, jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as or, useState as L, useContext as Ln, createElement as ar, useRef as Jt, useEffect as Z } from "react";
|
|
4
|
+
import { i as Te, j as je, k as Lr, l as Ue, m as qt, n as Kt, T as rt, r as Vr, o as pt, p as Vn, a as $r, c as Hr, b as sr, q as Kr, u as $n, v as Hn, w as Gr } from "./server-entry-f978b3a5.js";
|
|
5
|
+
import { _ as Lo, h as Vo, f as $o, g as Ho, e as Ko, d as Go, s as zo, t as Xo } from "./server-entry-f978b3a5.js";
|
|
6
|
+
function zr(e) {
|
|
7
|
+
return /* @__PURE__ */ se(P, { children: [
|
|
8
|
+
e.link ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
9
9
|
"a",
|
|
10
10
|
{
|
|
11
11
|
...e.attributes,
|
|
@@ -14,7 +14,7 @@ function Xr(e) {
|
|
|
14
14
|
role: "button",
|
|
15
15
|
children: e.text
|
|
16
16
|
}
|
|
17
|
-
) }) : /* @__PURE__ */ p(
|
|
17
|
+
) }) : /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
18
18
|
"button",
|
|
19
19
|
{
|
|
20
20
|
...e.attributes,
|
|
@@ -28,7 +28,7 @@ function Xr(e) {
|
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const Zt = or({
|
|
32
32
|
content: null,
|
|
33
33
|
context: {},
|
|
34
34
|
localState: void 0,
|
|
@@ -41,8 +41,8 @@ const tn = lr({
|
|
|
41
41
|
inheritedStyles: {},
|
|
42
42
|
BlocksWrapper: "div",
|
|
43
43
|
BlocksWrapperProps: {}
|
|
44
|
-
}),
|
|
45
|
-
function
|
|
44
|
+
}), lr = or({ registeredComponents: {} });
|
|
45
|
+
function Xr(e) {
|
|
46
46
|
var t;
|
|
47
47
|
return {
|
|
48
48
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -53,7 +53,7 @@ function Yr(e) {
|
|
|
53
53
|
builderBlock: e
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const cr = ({
|
|
57
57
|
builder: e,
|
|
58
58
|
context: t,
|
|
59
59
|
event: r,
|
|
@@ -65,14 +65,14 @@ const fr = ({
|
|
|
65
65
|
builder: e,
|
|
66
66
|
context: t,
|
|
67
67
|
event: r
|
|
68
|
-
}),
|
|
68
|
+
}), Yr = () => ({
|
|
69
69
|
isEditing: Te(),
|
|
70
70
|
isBrowser: je(),
|
|
71
71
|
isServer: !je(),
|
|
72
72
|
getUserAttributes: () => Lr()
|
|
73
|
-
}),
|
|
73
|
+
}), Jr = (e, {
|
|
74
74
|
isExpression: t = !0
|
|
75
|
-
}) => /* 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,
|
|
75
|
+
}) => /* 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, qr = ({
|
|
76
76
|
code: e,
|
|
77
77
|
builder: t,
|
|
78
78
|
context: r,
|
|
@@ -81,15 +81,15 @@ const fr = ({
|
|
|
81
81
|
rootSetState: a,
|
|
82
82
|
rootState: s
|
|
83
83
|
}) => {
|
|
84
|
-
const u =
|
|
84
|
+
const u = cr({
|
|
85
85
|
builder: t,
|
|
86
86
|
context: r,
|
|
87
87
|
event: n,
|
|
88
|
-
state:
|
|
88
|
+
state: Zr(s, i, a)
|
|
89
89
|
});
|
|
90
90
|
return new Function(...u.map(([f]) => f), e)(...u.map(([, f]) => f));
|
|
91
91
|
};
|
|
92
|
-
function
|
|
92
|
+
function Zr(e, t, r) {
|
|
93
93
|
if (e === t)
|
|
94
94
|
throw new Error("rootState === localState");
|
|
95
95
|
return new Proxy(e, {
|
|
@@ -101,21 +101,21 @@ function Qr(e, t, r) {
|
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
const
|
|
104
|
+
const ur = (e, t, r) => {
|
|
105
105
|
if (Object(e) !== e)
|
|
106
106
|
return e;
|
|
107
107
|
const n = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
108
108
|
return n.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(n[s + 1])) >> 0 === +n[s + 1] ? [] : {}, e)[n[n.length - 1]] = r, e;
|
|
109
109
|
};
|
|
110
|
-
var
|
|
110
|
+
var _, Qr = function(e) {
|
|
111
111
|
function t(o) {
|
|
112
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
112
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && _r.test(String.fromCharCode(o));
|
|
113
113
|
}
|
|
114
114
|
function r(o) {
|
|
115
|
-
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
115
|
+
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Wn.test(String.fromCharCode(o));
|
|
116
116
|
}
|
|
117
117
|
function n(o, l) {
|
|
118
|
-
for (var c =
|
|
118
|
+
for (var c = x, h = 1, A = 0; ; ) {
|
|
119
119
|
ft.lastIndex = A;
|
|
120
120
|
var J = ft.exec(c);
|
|
121
121
|
if (J && J.index < o)
|
|
@@ -140,32 +140,32 @@ var D, ei = function(e) {
|
|
|
140
140
|
this.line = Ee, this.ab = d - he;
|
|
141
141
|
}
|
|
142
142
|
function s(o, l) {
|
|
143
|
-
Oe = d,
|
|
143
|
+
Oe = d, O.C && (jt = new a()), j = o, f(), ce = l, Ve = o.m;
|
|
144
144
|
}
|
|
145
145
|
function u() {
|
|
146
|
-
for (var o = d, l =
|
|
147
|
-
++d, c =
|
|
148
|
-
|
|
146
|
+
for (var o = d, l = O.va && O.C && new a(), c = x.charCodeAt(d += 2); d < Re && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
147
|
+
++d, c = x.charCodeAt(d);
|
|
148
|
+
O.va && O.va(!1, x.slice(o + 2, d), o, d, l, O.C && new a());
|
|
149
149
|
}
|
|
150
150
|
function f() {
|
|
151
151
|
for (; d < Re; ) {
|
|
152
|
-
var o =
|
|
152
|
+
var o = x.charCodeAt(d);
|
|
153
153
|
if (o === 32)
|
|
154
154
|
++d;
|
|
155
155
|
else if (o === 13)
|
|
156
|
-
++d, o =
|
|
156
|
+
++d, o = x.charCodeAt(d), o === 10 && ++d, O.C && (++Ee, he = d);
|
|
157
157
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
158
|
-
++d,
|
|
158
|
+
++d, O.C && (++Ee, he = d);
|
|
159
159
|
else if (8 < o && 14 > o)
|
|
160
160
|
++d;
|
|
161
161
|
else if (o === 47)
|
|
162
|
-
if (o =
|
|
162
|
+
if (o = x.charCodeAt(d + 1), o === 42) {
|
|
163
163
|
o = void 0;
|
|
164
|
-
var l =
|
|
165
|
-
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2,
|
|
166
|
-
for (ft.lastIndex = c; (o = ft.exec(
|
|
164
|
+
var l = O.va && O.C && new a(), c = d, h = x.indexOf("*/", d += 2);
|
|
165
|
+
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, O.C)
|
|
166
|
+
for (ft.lastIndex = c; (o = ft.exec(x)) && o.index < d; )
|
|
167
167
|
++Ee, he = o.index + o[0].length;
|
|
168
|
-
|
|
168
|
+
O.va && O.va(!0, x.slice(c + 2, h), c, d, l, O.C && new a());
|
|
169
169
|
} else if (o === 47)
|
|
170
170
|
u();
|
|
171
171
|
else
|
|
@@ -181,7 +181,7 @@ var D, ei = function(e) {
|
|
|
181
181
|
function m(o) {
|
|
182
182
|
switch (o) {
|
|
183
183
|
case 46:
|
|
184
|
-
o =
|
|
184
|
+
o = x.charCodeAt(d + 1), 48 <= o && 57 >= o ? R(!0) : (++d, s(Pn));
|
|
185
185
|
return;
|
|
186
186
|
case 40:
|
|
187
187
|
return ++d, s(pe);
|
|
@@ -194,7 +194,7 @@ var D, ei = function(e) {
|
|
|
194
194
|
case 91:
|
|
195
195
|
return ++d, s(Dt);
|
|
196
196
|
case 93:
|
|
197
|
-
return ++d, s(
|
|
197
|
+
return ++d, s(_t);
|
|
198
198
|
case 123:
|
|
199
199
|
return ++d, s(Ke);
|
|
200
200
|
case 125:
|
|
@@ -202,10 +202,10 @@ var D, ei = function(e) {
|
|
|
202
202
|
case 58:
|
|
203
203
|
return ++d, s(Ge);
|
|
204
204
|
case 63:
|
|
205
|
-
return ++d, s(
|
|
205
|
+
return ++d, s(Nn);
|
|
206
206
|
case 48:
|
|
207
|
-
if (o =
|
|
208
|
-
d += 2, o =
|
|
207
|
+
if (o = x.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
208
|
+
d += 2, o = B(16), o === null && n(X + 2, "Expected hexadecimal number"), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), s(He, o);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
case 49:
|
|
@@ -217,24 +217,24 @@ var D, ei = function(e) {
|
|
|
217
217
|
case 55:
|
|
218
218
|
case 56:
|
|
219
219
|
case 57:
|
|
220
|
-
return
|
|
220
|
+
return R(!1);
|
|
221
221
|
case 34:
|
|
222
222
|
case 39:
|
|
223
223
|
d++;
|
|
224
224
|
for (var l = ""; ; ) {
|
|
225
225
|
d >= Re && n(X, "Unterminated string constant");
|
|
226
|
-
var c =
|
|
226
|
+
var c = x.charCodeAt(d);
|
|
227
227
|
if (c === o) {
|
|
228
228
|
++d, s(lt, l);
|
|
229
229
|
break;
|
|
230
230
|
}
|
|
231
231
|
if (c === 92) {
|
|
232
|
-
c =
|
|
233
|
-
var h = /^[0-7]+/.exec(
|
|
232
|
+
c = x.charCodeAt(++d);
|
|
233
|
+
var h = /^[0-7]+/.exec(x.slice(d, d + 3));
|
|
234
234
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
235
235
|
h = h.slice(0, -1);
|
|
236
236
|
if (h === "0" && (h = null), ++d, h)
|
|
237
|
-
|
|
237
|
+
ae && n(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
238
238
|
else
|
|
239
239
|
switch (c) {
|
|
240
240
|
case 110:
|
|
@@ -245,13 +245,13 @@ var D, ei = function(e) {
|
|
|
245
245
|
l += "\r";
|
|
246
246
|
break;
|
|
247
247
|
case 120:
|
|
248
|
-
l += String.fromCharCode(
|
|
248
|
+
l += String.fromCharCode(N(2));
|
|
249
249
|
break;
|
|
250
250
|
case 117:
|
|
251
|
-
l += String.fromCharCode(
|
|
251
|
+
l += String.fromCharCode(N(4));
|
|
252
252
|
break;
|
|
253
253
|
case 85:
|
|
254
|
-
l += String.fromCharCode(
|
|
254
|
+
l += String.fromCharCode(N(8));
|
|
255
255
|
break;
|
|
256
256
|
case 116:
|
|
257
257
|
l += " ";
|
|
@@ -269,9 +269,9 @@ var D, ei = function(e) {
|
|
|
269
269
|
l += "\0";
|
|
270
270
|
break;
|
|
271
271
|
case 13:
|
|
272
|
-
|
|
272
|
+
x.charCodeAt(d) === 10 && ++d;
|
|
273
273
|
case 10:
|
|
274
|
-
|
|
274
|
+
O.C && (he = d, ++Ee);
|
|
275
275
|
break;
|
|
276
276
|
default:
|
|
277
277
|
l += String.fromCharCode(c);
|
|
@@ -281,57 +281,57 @@ var D, ei = function(e) {
|
|
|
281
281
|
}
|
|
282
282
|
return;
|
|
283
283
|
case 47:
|
|
284
|
-
o =
|
|
284
|
+
o = x.charCodeAt(d + 1), Ve ? (++d, U()) : o === 61 ? y(Ie, 2) : y(Mn, 1);
|
|
285
285
|
return;
|
|
286
286
|
case 37:
|
|
287
287
|
case 42:
|
|
288
|
-
|
|
288
|
+
x.charCodeAt(d + 1) === 61 ? y(Ie, 2) : y(Br, 1);
|
|
289
289
|
return;
|
|
290
290
|
case 124:
|
|
291
291
|
case 38:
|
|
292
|
-
l =
|
|
292
|
+
l = x.charCodeAt(d + 1), l === o ? y(o === 124 ? Un : Dn, 2) : l === 61 ? y(Ie, 2) : y(o === 124 ? jr : Rr, 1);
|
|
293
293
|
return;
|
|
294
294
|
case 94:
|
|
295
|
-
|
|
295
|
+
x.charCodeAt(d + 1) === 61 ? y(Ie, 2) : y(Ar, 1);
|
|
296
296
|
return;
|
|
297
297
|
case 43:
|
|
298
298
|
case 45:
|
|
299
|
-
l =
|
|
299
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && dt.test(x.slice(xe, d)) ? (d += 3, u(), f(), v()) : y(Tr, 2) : l === 61 ? y(Ie, 2) : y(Mr, 1);
|
|
300
300
|
return;
|
|
301
301
|
case 60:
|
|
302
302
|
case 62:
|
|
303
|
-
l =
|
|
303
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? y(Ie, c + 1) : y(Nr, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = x.charCodeAt(d + 2) === 61 ? 3 : 2), y(Pr, c));
|
|
304
304
|
return;
|
|
305
305
|
case 61:
|
|
306
306
|
case 33:
|
|
307
|
-
|
|
307
|
+
x.charCodeAt(d + 1) === 61 ? y(Or, x.charCodeAt(d + 2) === 61 ? 3 : 2) : y(o === 61 ? Bn : Fn, 1);
|
|
308
308
|
return;
|
|
309
309
|
case 126:
|
|
310
|
-
return
|
|
310
|
+
return y(Fn, 1);
|
|
311
311
|
}
|
|
312
312
|
return !1;
|
|
313
313
|
}
|
|
314
314
|
function v(o) {
|
|
315
|
-
if (o ? d = X + 1 : X = d,
|
|
315
|
+
if (o ? d = X + 1 : X = d, O.C && (Tt = new a()), o)
|
|
316
316
|
return U();
|
|
317
317
|
if (d >= Re)
|
|
318
|
-
return s(
|
|
319
|
-
if (o =
|
|
318
|
+
return s(Ot);
|
|
319
|
+
if (o = x.charCodeAt(d), r(o) || o === 92)
|
|
320
320
|
return Y();
|
|
321
321
|
if (m(o) === !1) {
|
|
322
|
-
if (o = String.fromCharCode(o), o === "\\" ||
|
|
322
|
+
if (o = String.fromCharCode(o), o === "\\" || Wn.test(o))
|
|
323
323
|
return Y();
|
|
324
324
|
n(d, "Unexpected character '" + o + "'");
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
var c =
|
|
327
|
+
function y(o, l) {
|
|
328
|
+
var c = x.slice(d, d + l);
|
|
329
329
|
d += l, s(o, c);
|
|
330
330
|
}
|
|
331
331
|
function U() {
|
|
332
332
|
for (var o, l, c = d; ; ) {
|
|
333
333
|
d >= Re && n(c, "Unterminated regexp");
|
|
334
|
-
var h =
|
|
334
|
+
var h = x.charAt(d);
|
|
335
335
|
if (dt.test(h) && n(c, "Unterminated regexp"), o)
|
|
336
336
|
o = !1;
|
|
337
337
|
else {
|
|
@@ -345,152 +345,152 @@ var D, ei = function(e) {
|
|
|
345
345
|
}
|
|
346
346
|
++d;
|
|
347
347
|
}
|
|
348
|
-
o =
|
|
348
|
+
o = x.slice(c, d), ++d, (l = V()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
349
349
|
try {
|
|
350
350
|
var A = new RegExp(o, l);
|
|
351
351
|
} catch (J) {
|
|
352
352
|
throw J instanceof SyntaxError && n(c, J.message), J;
|
|
353
353
|
}
|
|
354
|
-
s(
|
|
354
|
+
s(hn, A);
|
|
355
355
|
}
|
|
356
|
-
function
|
|
356
|
+
function B(o, l) {
|
|
357
357
|
for (var c = d, h = 0, A = l === void 0 ? 1 / 0 : l, J = 0; J < A; ++J) {
|
|
358
|
-
var
|
|
359
|
-
if (
|
|
358
|
+
var re = x.charCodeAt(d);
|
|
359
|
+
if (re = 97 <= re ? re - 97 + 10 : 65 <= re ? re - 65 + 10 : 48 <= re && 57 >= re ? re - 48 : 1 / 0, re >= o)
|
|
360
360
|
break;
|
|
361
|
-
++d, h = h * o +
|
|
361
|
+
++d, h = h * o + re;
|
|
362
362
|
}
|
|
363
363
|
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
var l = d, c = !1, h =
|
|
367
|
-
o ||
|
|
365
|
+
function R(o) {
|
|
366
|
+
var l = d, c = !1, h = x.charCodeAt(d) === 48;
|
|
367
|
+
o || B(10) !== null || n(l, "Invalid number"), x.charCodeAt(d) === 46 && (++d, B(10), c = !0), o = x.charCodeAt(d), (o === 69 || o === 101) && (o = x.charCodeAt(++d), o !== 43 && o !== 45 || ++d, B(10) === null && n(l, "Invalid number"), c = !0), r(x.charCodeAt(d)) && n(d, "Identifier directly after number"), o = x.slice(l, d);
|
|
368
368
|
var A;
|
|
369
|
-
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) ||
|
|
369
|
+
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || ae ? n(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(He, A);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return o =
|
|
371
|
+
function N(o) {
|
|
372
|
+
return o = B(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function V() {
|
|
375
375
|
Me = !1;
|
|
376
376
|
for (var o, l = !0, c = d; ; ) {
|
|
377
|
-
var h =
|
|
377
|
+
var h = x.charCodeAt(d);
|
|
378
378
|
if (t(h))
|
|
379
|
-
Me && (o +=
|
|
379
|
+
Me && (o += x.charAt(d)), ++d;
|
|
380
380
|
else if (h === 92) {
|
|
381
|
-
Me || (o =
|
|
381
|
+
Me || (o = x.slice(c, d)), Me = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = N(4);
|
|
382
382
|
var A = String.fromCharCode(h);
|
|
383
383
|
A || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += A;
|
|
384
384
|
} else
|
|
385
385
|
break;
|
|
386
386
|
l = !1;
|
|
387
387
|
}
|
|
388
|
-
return Me ? o :
|
|
388
|
+
return Me ? o : x.slice(c, d);
|
|
389
389
|
}
|
|
390
390
|
function Y() {
|
|
391
|
-
var o =
|
|
392
|
-
!Me &&
|
|
391
|
+
var o = V(), l = Pe;
|
|
392
|
+
!Me && Ur(o) && (l = Ir[o]), s(l, o);
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
|
|
394
|
+
function b() {
|
|
395
|
+
At = X, xe = Oe, Rt = jt, v();
|
|
396
396
|
}
|
|
397
397
|
function K(o) {
|
|
398
|
-
if (
|
|
398
|
+
if (ae = o, d = X, O.C)
|
|
399
399
|
for (; d < he; )
|
|
400
|
-
he =
|
|
400
|
+
he = x.lastIndexOf(`
|
|
401
401
|
`, he - 2) + 1, --Ee;
|
|
402
402
|
f(), v();
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function te() {
|
|
405
405
|
this.type = null, this.start = X, this.end = null;
|
|
406
406
|
}
|
|
407
407
|
function le() {
|
|
408
|
-
this.start =
|
|
408
|
+
this.start = Tt, this.end = null, It && (this.source = It);
|
|
409
409
|
}
|
|
410
410
|
function $() {
|
|
411
|
-
var o = new
|
|
412
|
-
return
|
|
411
|
+
var o = new te();
|
|
412
|
+
return O.C && (o.X = new le()), O.vb && (o.sourceFile = O.vb), O.Xa && (o.j = [X, 0]), o;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
415
|
-
var l = new
|
|
416
|
-
return l.start = o.start,
|
|
414
|
+
function ne(o) {
|
|
415
|
+
var l = new te();
|
|
416
|
+
return l.start = o.start, O.C && (l.X = new le(), l.X.start = o.X.start), O.Xa && (l.j = [o.j[0], 0]), l;
|
|
417
417
|
}
|
|
418
418
|
function E(o, l) {
|
|
419
|
-
return o.type = l, o.end = xe,
|
|
419
|
+
return o.type = l, o.end = xe, O.C && (o.X.end = Rt), O.Xa && (o.j[1] = xe), o;
|
|
420
420
|
}
|
|
421
421
|
function Ae(o) {
|
|
422
422
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
423
423
|
}
|
|
424
424
|
function W(o) {
|
|
425
|
-
return j === o ? (
|
|
425
|
+
return j === o ? (b(), !0) : !1;
|
|
426
426
|
}
|
|
427
427
|
function ke() {
|
|
428
|
-
return !
|
|
428
|
+
return !O.fc && (j === Ot || j === Ne || dt.test(x.slice(xe, X)));
|
|
429
429
|
}
|
|
430
430
|
function ue() {
|
|
431
|
-
W(me) || ke() ||
|
|
431
|
+
W(me) || ke() || k();
|
|
432
432
|
}
|
|
433
433
|
function H(o) {
|
|
434
|
-
j === o ?
|
|
434
|
+
j === o ? b() : k();
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function k() {
|
|
437
437
|
n(X, "Unexpected token");
|
|
438
438
|
}
|
|
439
439
|
function I(o) {
|
|
440
|
-
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"),
|
|
440
|
+
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), ae && o.type === "Identifier" && ut(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
441
441
|
}
|
|
442
442
|
function T() {
|
|
443
|
-
(j ===
|
|
443
|
+
(j === Mn || j === Ie && ce === "/=") && v(!0);
|
|
444
444
|
var o = j, l = $();
|
|
445
445
|
switch (o) {
|
|
446
|
-
case
|
|
447
|
-
case
|
|
448
|
-
|
|
449
|
-
var c = o ===
|
|
450
|
-
W(me) || ke() ? l.label = null : j !== Pe ?
|
|
446
|
+
case Pt:
|
|
447
|
+
case mn:
|
|
448
|
+
b();
|
|
449
|
+
var c = o === Pt;
|
|
450
|
+
W(me) || ke() ? l.label = null : j !== Pe ? k() : (l.label = fe(), ue());
|
|
451
451
|
for (var h = 0; h < z.length; ++h) {
|
|
452
452
|
var A = z[h];
|
|
453
453
|
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (c || A.kind === "loop") || l.label && c))
|
|
454
454
|
break;
|
|
455
455
|
}
|
|
456
456
|
return h === z.length && n(l.start, "Unsyntactic " + o.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
457
|
+
case gn:
|
|
458
|
+
return b(), ue(), E(l, "DebuggerStatement");
|
|
457
459
|
case yn:
|
|
458
|
-
return
|
|
459
|
-
case
|
|
460
|
-
return
|
|
460
|
+
return b(), z.push(Wt), l.body = T(), z.pop(), H(Ut), l.test = M(), ue(), E(l, "DoWhileStatement");
|
|
461
|
+
case Sn:
|
|
462
|
+
return b(), z.push(Wt), H(pe), j === me ? G(l, null) : j === Ft ? (o = $(), b(), at(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && W(ct) ? Ce(l, o) : G(l, o)) : (o = ee(!1, !0), W(ct) ? (I(o), Ce(l, o)) : G(l, o));
|
|
463
|
+
case Mt:
|
|
464
|
+
return b(), Ct(l, !0);
|
|
465
|
+
case wn:
|
|
466
|
+
return b(), l.test = M(), l.da = T(), l.alternate = W(bn) ? T() : null, E(l, "IfStatement");
|
|
461
467
|
case kn:
|
|
462
|
-
return
|
|
468
|
+
return $e || O.Ib || n(X, "'return' outside of function"), b(), W(me) || ke() ? l.K = null : (l.K = ee(), ue()), E(l, "ReturnStatement");
|
|
463
469
|
case Bt:
|
|
464
|
-
|
|
470
|
+
for (b(), l.Qb = M(), l.tb = [], H(Ke), z.push(Wr); j !== Ne; )
|
|
471
|
+
j === Nt || j === vn ? (o = j === Nt, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], b(), o ? h.test = ee() : (c && n(At, "Multiple default clauses"), c = !0, h.test = null), H(Ge)) : (h || k(), h.da.push(T()));
|
|
472
|
+
return h && E(h, "SwitchCase"), b(), z.pop(), E(l, "SwitchStatement");
|
|
465
473
|
case Cn:
|
|
466
|
-
return
|
|
474
|
+
return b(), dt.test(x.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = ee(), ue(), E(l, "ThrowStatement");
|
|
467
475
|
case En:
|
|
468
|
-
return $
|
|
476
|
+
return b(), l.block = D(), l.Ea = null, j === pn && (o = $(), b(), H(pe), o.Ua = fe(), ae && ut(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), H(de), o.body = D(), l.Ea = E(o, "CatchClause")), l.fb = W(xn) ? D() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
469
477
|
case Ft:
|
|
470
|
-
|
|
471
|
-
j === Mt || j === bn ? (o = j === Mt, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], y(), o ? h.test = ee() : (c && n(Rt, "Multiple default clauses"), c = !0, h.test = null), H(Ge)) : (h || C(), h.da.push(T()));
|
|
472
|
-
return h && E(h, "SwitchCase"), y(), z.pop(), E(l, "SwitchStatement");
|
|
473
|
-
case In:
|
|
474
|
-
return y(), dt.test(b.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = ee(), ue(), E(l, "ThrowStatement");
|
|
475
|
-
case Tn:
|
|
476
|
-
return y(), l.block = _(), l.Ea = null, j === gn && (o = $(), y(), H(pe), o.Ua = fe(), se && ut(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), H(de), o.body = _(), l.Ea = E(o, "CatchClause")), l.fb = W(wn) ? _() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
478
|
+
return b(), at(l), ue(), E(l, "VariableDeclaration");
|
|
477
479
|
case Ut:
|
|
478
|
-
return
|
|
479
|
-
case
|
|
480
|
-
return
|
|
481
|
-
case jn:
|
|
482
|
-
return se && n(X, "'with' in strict mode"), y(), l.object = M(), l.body = T(), E(l, "WithStatement");
|
|
480
|
+
return b(), l.test = M(), z.push(Wt), l.body = T(), z.pop(), E(l, "WhileStatement");
|
|
481
|
+
case In:
|
|
482
|
+
return ae && n(X, "'with' in strict mode"), b(), l.object = M(), l.body = T(), E(l, "WithStatement");
|
|
483
483
|
case Ke:
|
|
484
|
-
return
|
|
484
|
+
return D();
|
|
485
485
|
case me:
|
|
486
|
-
return
|
|
486
|
+
return b(), E(l, "EmptyStatement");
|
|
487
487
|
default:
|
|
488
488
|
if (c = ce, A = ee(), o === Pe && A.type === "Identifier" && W(Ge)) {
|
|
489
489
|
for (h = 0; h < z.length; ++h)
|
|
490
490
|
z[h].name === c && n(A.start, "Label '" + c + "' is already declared");
|
|
491
491
|
return z.push({
|
|
492
492
|
name: c,
|
|
493
|
-
kind: j.W ? "loop" : j ===
|
|
493
|
+
kind: j.W ? "loop" : j === Bt ? "switch" : null
|
|
494
494
|
}), l.body = T(), z.pop(), l.label = A, E(l, "LabeledStatement");
|
|
495
495
|
}
|
|
496
496
|
return l.la = A, ue(), E(l, "ExpressionStatement");
|
|
@@ -501,7 +501,7 @@ var D, ei = function(e) {
|
|
|
501
501
|
var o = ee();
|
|
502
502
|
return H(de), o;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function D(o) {
|
|
505
505
|
var l = $(), c = !0, h = !1;
|
|
506
506
|
for (l.body = [], H(Ke); !W(Ne); ) {
|
|
507
507
|
var A = T();
|
|
@@ -522,79 +522,79 @@ var D, ei = function(e) {
|
|
|
522
522
|
function at(o, l) {
|
|
523
523
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
524
524
|
var c = $();
|
|
525
|
-
if (c.id = fe(),
|
|
525
|
+
if (c.id = fe(), ae && ut(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(Bn) ? ee(!0, l) : null, o.fa.push(E(c, "VariableDeclarator")), !W(Se))
|
|
526
526
|
break;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
function ee(o, l) {
|
|
530
|
-
var c =
|
|
530
|
+
var c = St(l);
|
|
531
531
|
if (!o && j === Se) {
|
|
532
|
-
for (o =
|
|
533
|
-
o.xb.push(
|
|
532
|
+
for (o = ne(c), o.xb = [c]; W(Se); )
|
|
533
|
+
o.xb.push(St(l));
|
|
534
534
|
return E(o, "SequenceExpression");
|
|
535
535
|
}
|
|
536
536
|
return c;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
var l = kt(
|
|
540
|
-
if (W(
|
|
541
|
-
var c =
|
|
538
|
+
function St(o) {
|
|
539
|
+
var l = wt(kt(), -1, o);
|
|
540
|
+
if (W(Nn)) {
|
|
541
|
+
var c = ne(l);
|
|
542
542
|
c.test = l, c.da = ee(!0), H(Ge), c.alternate = ee(!0, o), l = E(c, "ConditionalExpression");
|
|
543
543
|
}
|
|
544
|
-
return j.Cb ? (c =
|
|
544
|
+
return j.Cb ? (c = ne(l), c.operator = ce, c.left = l, b(), c.right = St(o), I(l), E(c, "AssignmentExpression")) : l;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function wt(o, l, c) {
|
|
547
547
|
var h = j.L;
|
|
548
548
|
if (h !== null && (!c || j !== ct) && h > l) {
|
|
549
|
-
var A =
|
|
550
|
-
return A.left = o, A.operator = ce, o = j,
|
|
549
|
+
var A = ne(o);
|
|
550
|
+
return A.left = o, A.operator = ce, o = j, b(), A.right = wt(kt(), h, c), h = E(A, o === Un || o === Dn ? "LogicalExpression" : "BinaryExpression"), wt(h, l, c);
|
|
551
551
|
}
|
|
552
552
|
return o;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function kt() {
|
|
555
555
|
if (j.prefix) {
|
|
556
556
|
var o = $(), l = j.$b;
|
|
557
|
-
return o.operator = ce,
|
|
557
|
+
return o.operator = ce, Ve = o.prefix = !0, b(), o.K = kt(), l ? I(o.K) : ae && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
558
558
|
}
|
|
559
|
-
for (l =
|
|
560
|
-
o =
|
|
559
|
+
for (l = Le(st()); j.cc && !ke(); )
|
|
560
|
+
o = ne(l), o.operator = ce, o.prefix = !1, o.K = l, I(l), b(), l = E(o, "UpdateExpression");
|
|
561
561
|
return l;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
if (W(
|
|
565
|
-
var c =
|
|
566
|
-
return c.object = o, c.Wa = fe(!0), c.bb = !1,
|
|
563
|
+
function Le(o, l) {
|
|
564
|
+
if (W(Pn)) {
|
|
565
|
+
var c = ne(o);
|
|
566
|
+
return c.object = o, c.Wa = fe(!0), c.bb = !1, Le(E(c, "MemberExpression"), l);
|
|
567
567
|
}
|
|
568
|
-
return W(Dt) ? (c =
|
|
568
|
+
return W(Dt) ? (c = ne(o), c.object = o, c.Wa = ee(), c.bb = !0, H(_t), Le(E(c, "MemberExpression"), l)) : !l && W(pe) ? (c = ne(o), c.callee = o, c.arguments = Et(de, !1), Le(E(c, "CallExpression"), l)) : o;
|
|
569
569
|
}
|
|
570
570
|
function st() {
|
|
571
571
|
switch (j) {
|
|
572
|
-
case
|
|
572
|
+
case jn:
|
|
573
573
|
var o = $();
|
|
574
|
-
return
|
|
574
|
+
return b(), E(o, "ThisExpression");
|
|
575
575
|
case Pe:
|
|
576
576
|
return fe();
|
|
577
577
|
case He:
|
|
578
578
|
case lt:
|
|
579
|
-
case
|
|
580
|
-
return o = $(), o.value = ce, o.raw =
|
|
579
|
+
case hn:
|
|
580
|
+
return o = $(), o.value = ce, o.raw = x.slice(X, Oe), b(), E(o, "Literal");
|
|
581
|
+
case An:
|
|
582
|
+
case Rn:
|
|
581
583
|
case On:
|
|
582
|
-
|
|
583
|
-
case Nn:
|
|
584
|
-
return o = $(), o.value = j.$a, o.raw = j.l, y(), E(o, "Literal");
|
|
584
|
+
return o = $(), o.value = j.$a, o.raw = j.l, b(), E(o, "Literal");
|
|
585
585
|
case pe:
|
|
586
|
-
o =
|
|
586
|
+
o = Tt;
|
|
587
587
|
var l = X;
|
|
588
|
-
|
|
588
|
+
b();
|
|
589
589
|
var c = ee();
|
|
590
|
-
return c.start = l, c.end = Oe,
|
|
590
|
+
return c.start = l, c.end = Oe, O.C && (c.X.start = o, c.X.end = jt), O.Xa && (c.j = [l, Oe]), H(de), c;
|
|
591
591
|
case Dt:
|
|
592
|
-
return o = $(),
|
|
592
|
+
return o = $(), b(), o.elements = Et(_t, !0, !0), E(o, "ArrayExpression");
|
|
593
593
|
case Ke:
|
|
594
|
-
for (o = $(), l = !0, c = !1, o.h = [],
|
|
594
|
+
for (o = $(), l = !0, c = !1, o.h = [], b(); !W(Ne); ) {
|
|
595
595
|
if (l)
|
|
596
596
|
l = !1;
|
|
597
|
-
else if (H(Se),
|
|
597
|
+
else if (H(Se), O.sb && W(Ne))
|
|
598
598
|
break;
|
|
599
599
|
var h = {
|
|
600
600
|
key: j === He || j === lt ? st() : fe(!0)
|
|
@@ -603,45 +603,45 @@ var D, ei = function(e) {
|
|
|
603
603
|
h.value = ee(!0);
|
|
604
604
|
var J = h.kind = "init";
|
|
605
605
|
} else
|
|
606
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
607
|
-
if (h.key.type === "Identifier" && (
|
|
608
|
-
for (var
|
|
609
|
-
var Be = o.h[
|
|
606
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? k() : (A = c = !0, J = h.kind = h.key.name, h.key = j === He || j === lt ? st() : fe(!0), j !== pe && k(), h.value = Ct($(), !1));
|
|
607
|
+
if (h.key.type === "Identifier" && (ae || c))
|
|
608
|
+
for (var re = 0; re < o.h.length; ++re) {
|
|
609
|
+
var Be = o.h[re];
|
|
610
610
|
if (Be.key.name === h.key.name) {
|
|
611
611
|
var Lt = J === Be.kind || A && Be.kind === "init" || J === "init" && (Be.kind === "get" || Be.kind === "set");
|
|
612
|
-
Lt && !
|
|
612
|
+
Lt && !ae && J === "init" && Be.kind === "init" && (Lt = !1), Lt && n(h.key.start, "Redefinition of property");
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
o.h.push(h);
|
|
616
616
|
}
|
|
617
617
|
return E(o, "ObjectExpression");
|
|
618
|
-
case
|
|
619
|
-
return o = $(),
|
|
620
|
-
case
|
|
621
|
-
return o = $(),
|
|
618
|
+
case Mt:
|
|
619
|
+
return o = $(), b(), Ct(o, !1);
|
|
620
|
+
case Tn:
|
|
621
|
+
return o = $(), b(), o.callee = Le(st(), !0), o.arguments = W(pe) ? Et(de, !1) : Er, E(o, "NewExpression");
|
|
622
622
|
}
|
|
623
|
-
|
|
623
|
+
k();
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
j === Pe ? o.id = fe() : l ?
|
|
625
|
+
function Ct(o, l) {
|
|
626
|
+
j === Pe ? o.id = fe() : l ? k() : o.id = null, o.oa = [];
|
|
627
627
|
var c = !0;
|
|
628
628
|
for (H(pe); !W(de); )
|
|
629
629
|
c ? c = !1 : H(Se), o.oa.push(fe());
|
|
630
630
|
c = $e;
|
|
631
631
|
var h = z;
|
|
632
|
-
if ($e = !0, z = [], o.body =
|
|
632
|
+
if ($e = !0, z = [], o.body = D(!0), $e = c, z = h, ae || o.body.body.length && Ae(o.body.body[0])) {
|
|
633
633
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
634
|
-
if (h = 0 > c ? o.id : o.oa[c], (
|
|
634
|
+
if (h = 0 > c ? o.id : o.oa[c], (_n(h.name) || ut(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
635
635
|
for (var A = 0; A < c; ++A)
|
|
636
636
|
h.name === o.oa[A].name && n(h.start, "Argument name clash in strict mode");
|
|
637
637
|
}
|
|
638
638
|
return E(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function Et(o, l, c) {
|
|
641
641
|
for (var h = [], A = !0; !W(o); ) {
|
|
642
642
|
if (A)
|
|
643
643
|
A = !1;
|
|
644
|
-
else if (H(Se), l &&
|
|
644
|
+
else if (H(Se), l && O.sb && W(o))
|
|
645
645
|
break;
|
|
646
646
|
h.push(c && j === Se ? null : ee(!0));
|
|
647
647
|
}
|
|
@@ -649,19 +649,19 @@ var D, ei = function(e) {
|
|
|
649
649
|
}
|
|
650
650
|
function fe(o) {
|
|
651
651
|
var l = $();
|
|
652
|
-
return o &&
|
|
652
|
+
return o && O.yb === "everywhere" && (o = !1), j === Pe ? (!o && (O.yb && Fr(ce) || ae && _n(ce)) && x.slice(X, Oe).indexOf("\\") === -1 && n(X, "The keyword '" + ce + "' is reserved"), l.name = ce) : o && j.l ? l.name = j.l : k(), Ve = !1, b(), E(l, "Identifier");
|
|
653
653
|
}
|
|
654
654
|
e.version = "0.5.0";
|
|
655
|
-
var
|
|
655
|
+
var O, x = "", Re, It;
|
|
656
656
|
e.parse = function(o, l) {
|
|
657
|
-
|
|
658
|
-
for (var c in
|
|
659
|
-
Object.prototype.hasOwnProperty.call(
|
|
660
|
-
for (
|
|
657
|
+
x = String(o), Re = x.length, O = l || {};
|
|
658
|
+
for (var c in fn)
|
|
659
|
+
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = fn[c]);
|
|
660
|
+
for (It = O.sourceFile, Ee = 1, d = he = 0, Ve = !0, f(), c = O.dc, At = xe = d, O.C && (Rt = new a()), $e = ae = !1, z = [], v(), o = c || $(), l = !0, c || (o.body = []); j !== Ot; )
|
|
661
661
|
c = T(), o.body.push(c), l && Ae(c) && K(!0), l = !1;
|
|
662
662
|
return E(o, "Program");
|
|
663
663
|
};
|
|
664
|
-
var
|
|
664
|
+
var fn = {
|
|
665
665
|
fc: !1,
|
|
666
666
|
sb: !0,
|
|
667
667
|
yb: !1,
|
|
@@ -672,110 +672,110 @@ var D, ei = function(e) {
|
|
|
672
672
|
dc: null,
|
|
673
673
|
sourceFile: null,
|
|
674
674
|
vb: null
|
|
675
|
-
}, d = 0, X = 0, Oe = 0,
|
|
675
|
+
}, d = 0, X = 0, Oe = 0, Tt, jt, j, ce, Ve, Ee, he, At = 0, xe = 0, Rt, $e, z, ae, Er = [], He = {
|
|
676
676
|
type: "num"
|
|
677
|
-
},
|
|
677
|
+
}, hn = {
|
|
678
678
|
type: "regexp"
|
|
679
679
|
}, lt = {
|
|
680
680
|
type: "string"
|
|
681
681
|
}, Pe = {
|
|
682
682
|
type: "name"
|
|
683
|
-
},
|
|
683
|
+
}, Ot = {
|
|
684
684
|
type: "eof"
|
|
685
|
-
},
|
|
685
|
+
}, Pt = {
|
|
686
686
|
l: "break"
|
|
687
|
-
},
|
|
687
|
+
}, Nt = {
|
|
688
688
|
l: "case",
|
|
689
689
|
m: !0
|
|
690
|
-
},
|
|
690
|
+
}, pn = {
|
|
691
691
|
l: "catch"
|
|
692
|
-
},
|
|
692
|
+
}, mn = {
|
|
693
693
|
l: "continue"
|
|
694
|
-
},
|
|
694
|
+
}, gn = {
|
|
695
695
|
l: "debugger"
|
|
696
|
-
},
|
|
696
|
+
}, vn = {
|
|
697
697
|
l: "default"
|
|
698
|
-
},
|
|
698
|
+
}, yn = {
|
|
699
699
|
l: "do",
|
|
700
700
|
W: !0
|
|
701
|
-
},
|
|
701
|
+
}, bn = {
|
|
702
702
|
l: "else",
|
|
703
703
|
m: !0
|
|
704
|
-
},
|
|
704
|
+
}, xn = {
|
|
705
705
|
l: "finally"
|
|
706
|
-
},
|
|
706
|
+
}, Sn = {
|
|
707
707
|
l: "for",
|
|
708
708
|
W: !0
|
|
709
|
-
},
|
|
709
|
+
}, Mt = {
|
|
710
710
|
l: "function"
|
|
711
|
-
},
|
|
711
|
+
}, wn = {
|
|
712
712
|
l: "if"
|
|
713
|
-
},
|
|
713
|
+
}, kn = {
|
|
714
714
|
l: "return",
|
|
715
715
|
m: !0
|
|
716
|
-
},
|
|
716
|
+
}, Bt = {
|
|
717
717
|
l: "switch"
|
|
718
|
-
},
|
|
718
|
+
}, Cn = {
|
|
719
719
|
l: "throw",
|
|
720
720
|
m: !0
|
|
721
|
-
},
|
|
721
|
+
}, En = {
|
|
722
722
|
l: "try"
|
|
723
|
-
},
|
|
723
|
+
}, Ft = {
|
|
724
724
|
l: "var"
|
|
725
|
-
},
|
|
725
|
+
}, Ut = {
|
|
726
726
|
l: "while",
|
|
727
727
|
W: !0
|
|
728
|
-
},
|
|
728
|
+
}, In = {
|
|
729
729
|
l: "with"
|
|
730
|
-
},
|
|
730
|
+
}, Tn = {
|
|
731
731
|
l: "new",
|
|
732
732
|
m: !0
|
|
733
|
-
},
|
|
733
|
+
}, jn = {
|
|
734
734
|
l: "this"
|
|
735
|
-
},
|
|
735
|
+
}, An = {
|
|
736
736
|
l: "null",
|
|
737
737
|
$a: null
|
|
738
|
-
},
|
|
738
|
+
}, Rn = {
|
|
739
739
|
l: "true",
|
|
740
740
|
$a: !0
|
|
741
|
-
},
|
|
741
|
+
}, On = {
|
|
742
742
|
l: "false",
|
|
743
743
|
$a: !1
|
|
744
744
|
}, ct = {
|
|
745
745
|
l: "in",
|
|
746
746
|
L: 7,
|
|
747
747
|
m: !0
|
|
748
|
-
},
|
|
749
|
-
break:
|
|
750
|
-
case:
|
|
751
|
-
catch:
|
|
752
|
-
continue:
|
|
753
|
-
debugger:
|
|
754
|
-
default:
|
|
755
|
-
do:
|
|
756
|
-
else:
|
|
757
|
-
finally:
|
|
758
|
-
for:
|
|
759
|
-
function:
|
|
760
|
-
if:
|
|
761
|
-
return:
|
|
762
|
-
switch:
|
|
763
|
-
throw:
|
|
764
|
-
try:
|
|
765
|
-
var:
|
|
766
|
-
while:
|
|
767
|
-
with:
|
|
768
|
-
null:
|
|
769
|
-
true:
|
|
770
|
-
false:
|
|
771
|
-
new:
|
|
748
|
+
}, Ir = {
|
|
749
|
+
break: Pt,
|
|
750
|
+
case: Nt,
|
|
751
|
+
catch: pn,
|
|
752
|
+
continue: mn,
|
|
753
|
+
debugger: gn,
|
|
754
|
+
default: vn,
|
|
755
|
+
do: yn,
|
|
756
|
+
else: bn,
|
|
757
|
+
finally: xn,
|
|
758
|
+
for: Sn,
|
|
759
|
+
function: Mt,
|
|
760
|
+
if: wn,
|
|
761
|
+
return: kn,
|
|
762
|
+
switch: Bt,
|
|
763
|
+
throw: Cn,
|
|
764
|
+
try: En,
|
|
765
|
+
var: Ft,
|
|
766
|
+
while: Ut,
|
|
767
|
+
with: In,
|
|
768
|
+
null: An,
|
|
769
|
+
true: Rn,
|
|
770
|
+
false: On,
|
|
771
|
+
new: Tn,
|
|
772
772
|
in: ct,
|
|
773
773
|
instanceof: {
|
|
774
774
|
l: "instanceof",
|
|
775
775
|
L: 7,
|
|
776
776
|
m: !0
|
|
777
777
|
},
|
|
778
|
-
this:
|
|
778
|
+
this: jn,
|
|
779
779
|
typeof: {
|
|
780
780
|
l: "typeof",
|
|
781
781
|
prefix: !0,
|
|
@@ -794,7 +794,7 @@ var D, ei = function(e) {
|
|
|
794
794
|
}, Dt = {
|
|
795
795
|
type: "[",
|
|
796
796
|
m: !0
|
|
797
|
-
},
|
|
797
|
+
}, _t = {
|
|
798
798
|
type: "]"
|
|
799
799
|
}, Ke = {
|
|
800
800
|
type: "{",
|
|
@@ -815,67 +815,67 @@ var D, ei = function(e) {
|
|
|
815
815
|
}, Ge = {
|
|
816
816
|
type: ":",
|
|
817
817
|
m: !0
|
|
818
|
-
},
|
|
818
|
+
}, Pn = {
|
|
819
819
|
type: "."
|
|
820
|
-
},
|
|
820
|
+
}, Nn = {
|
|
821
821
|
type: "?",
|
|
822
822
|
m: !0
|
|
823
|
-
},
|
|
823
|
+
}, Mn = {
|
|
824
824
|
L: 10,
|
|
825
825
|
m: !0
|
|
826
|
-
},
|
|
826
|
+
}, Bn = {
|
|
827
827
|
Cb: !0,
|
|
828
828
|
m: !0
|
|
829
829
|
}, Ie = {
|
|
830
830
|
Cb: !0,
|
|
831
831
|
m: !0
|
|
832
|
-
},
|
|
832
|
+
}, Tr = {
|
|
833
833
|
cc: !0,
|
|
834
834
|
prefix: !0,
|
|
835
835
|
$b: !0
|
|
836
|
-
},
|
|
836
|
+
}, Fn = {
|
|
837
837
|
prefix: !0,
|
|
838
838
|
m: !0
|
|
839
|
-
},
|
|
839
|
+
}, Un = {
|
|
840
840
|
L: 1,
|
|
841
841
|
m: !0
|
|
842
|
-
},
|
|
842
|
+
}, Dn = {
|
|
843
843
|
L: 2,
|
|
844
844
|
m: !0
|
|
845
|
-
},
|
|
845
|
+
}, jr = {
|
|
846
846
|
L: 3,
|
|
847
847
|
m: !0
|
|
848
|
-
},
|
|
848
|
+
}, Ar = {
|
|
849
849
|
L: 4,
|
|
850
850
|
m: !0
|
|
851
|
-
},
|
|
851
|
+
}, Rr = {
|
|
852
852
|
L: 5,
|
|
853
853
|
m: !0
|
|
854
|
-
},
|
|
854
|
+
}, Or = {
|
|
855
855
|
L: 6,
|
|
856
856
|
m: !0
|
|
857
|
-
},
|
|
857
|
+
}, Pr = {
|
|
858
858
|
L: 7,
|
|
859
859
|
m: !0
|
|
860
|
-
},
|
|
860
|
+
}, Nr = {
|
|
861
861
|
L: 8,
|
|
862
862
|
m: !0
|
|
863
|
-
},
|
|
863
|
+
}, Mr = {
|
|
864
864
|
L: 9,
|
|
865
865
|
prefix: !0,
|
|
866
866
|
m: !0
|
|
867
|
-
},
|
|
867
|
+
}, Br = {
|
|
868
868
|
L: 10,
|
|
869
869
|
m: !0
|
|
870
|
-
},
|
|
870
|
+
}, Fr = i("class enum extends super const export import"), _n = i("implements interface let package private protected public static yield"), ut = i("eval arguments"), Ur = i("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"), Dr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), _r = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), dt = /[\n\r\u2028\u2029]/, ft = /\r\n|[\n\r\u2028\u2029]/g, Me, Wt = {
|
|
871
871
|
kind: "loop"
|
|
872
|
-
},
|
|
872
|
+
}, Wr = {
|
|
873
873
|
kind: "switch"
|
|
874
874
|
};
|
|
875
|
-
},
|
|
876
|
-
|
|
875
|
+
}, Gt = Gt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
876
|
+
Qr(Gt.j || (Gt.j = {}));
|
|
877
877
|
function g(e, t) {
|
|
878
|
-
typeof e == "string" && (e =
|
|
878
|
+
typeof e == "string" && (e = De(e, "code"));
|
|
879
879
|
var r = e.constructor;
|
|
880
880
|
this.ya = function() {
|
|
881
881
|
return new r({
|
|
@@ -889,13 +889,13 @@ function g(e, t) {
|
|
|
889
889
|
var a, s;
|
|
890
890
|
for (s in this)
|
|
891
891
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
892
|
-
this.N =
|
|
893
|
-
`), "polyfills"), this.ba = void 0,
|
|
892
|
+
this.N = Xt(this, this.ra, null), this.Na = this.N.object, this.ra = De(this.ba.join(`
|
|
893
|
+
`), "polyfills"), this.ba = void 0, gt(this.ra), a = new w(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = n, a = new w(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
894
894
|
}
|
|
895
|
-
var
|
|
895
|
+
var Kn = {
|
|
896
896
|
C: !0,
|
|
897
897
|
kc: 5
|
|
898
|
-
},
|
|
898
|
+
}, Qt = {
|
|
899
899
|
configurable: !0,
|
|
900
900
|
enumerable: !0,
|
|
901
901
|
writable: !1
|
|
@@ -903,7 +903,7 @@ var zn = {
|
|
|
903
903
|
configurable: !0,
|
|
904
904
|
enumerable: !1,
|
|
905
905
|
writable: !0
|
|
906
|
-
},
|
|
906
|
+
}, oe = {
|
|
907
907
|
configurable: !0,
|
|
908
908
|
enumerable: !1,
|
|
909
909
|
writable: !1
|
|
@@ -911,11 +911,11 @@ var zn = {
|
|
|
911
911
|
configurable: !1,
|
|
912
912
|
enumerable: !1,
|
|
913
913
|
writable: !1
|
|
914
|
-
},
|
|
914
|
+
}, Gn = {
|
|
915
915
|
configurable: !1,
|
|
916
916
|
enumerable: !0,
|
|
917
917
|
writable: !0
|
|
918
|
-
},
|
|
918
|
+
}, dr = {
|
|
919
919
|
STEP_ERROR: !0
|
|
920
920
|
}, We = {
|
|
921
921
|
SCOPE_REFERENCE: !0
|
|
@@ -923,8 +923,8 @@ var zn = {
|
|
|
923
923
|
VALUE_IN_DESCRIPTOR: !0
|
|
924
924
|
}, Fe = {
|
|
925
925
|
REGEXP_TIMEOUT: !0
|
|
926
|
-
},
|
|
927
|
-
function
|
|
926
|
+
}, zn = [], ve = null, Ze = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, ei = ["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();", "};"];
|
|
927
|
+
function en(e) {
|
|
928
928
|
var t = e >>> 0;
|
|
929
929
|
return t === Number(e) ? t : NaN;
|
|
930
930
|
}
|
|
@@ -932,37 +932,37 @@ function Qe(e) {
|
|
|
932
932
|
var t = e >>> 0;
|
|
933
933
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
934
934
|
}
|
|
935
|
-
function
|
|
935
|
+
function gt(e, t, r) {
|
|
936
936
|
t ? e.start = t : delete e.start, r ? e.end = r : delete e.end;
|
|
937
937
|
for (var n in e)
|
|
938
938
|
if (n !== "loc" && e.hasOwnProperty(n)) {
|
|
939
939
|
var i = e[n];
|
|
940
|
-
i && typeof i == "object" &&
|
|
940
|
+
i && typeof i == "object" && gt(i, t, r);
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
943
|
g.prototype.REGEXP_MODE = 2;
|
|
944
944
|
g.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
945
945
|
g.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
function
|
|
946
|
+
_ = g.prototype;
|
|
947
|
+
_.P = !1;
|
|
948
|
+
_.Ka = !1;
|
|
949
|
+
_.Kb = 0;
|
|
950
|
+
_.ic = 0;
|
|
951
|
+
function De(e, t) {
|
|
952
952
|
var r = {}, n;
|
|
953
|
-
for (n in
|
|
954
|
-
r[n] =
|
|
953
|
+
for (n in Kn)
|
|
954
|
+
r[n] = Kn[n];
|
|
955
955
|
return r.sourceFile = t, we.j.parse(e, r);
|
|
956
956
|
}
|
|
957
|
-
|
|
957
|
+
_.Jb = function(e) {
|
|
958
958
|
var t = this.o[0];
|
|
959
959
|
if (!t || t.node.type !== "Program")
|
|
960
960
|
throw Error("Expecting original AST to start with a Program node");
|
|
961
|
-
if (typeof e == "string" && (e =
|
|
961
|
+
if (typeof e == "string" && (e = De(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
962
962
|
throw Error("Expecting new AST to start with a Program node");
|
|
963
963
|
tt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
964
964
|
};
|
|
965
|
-
|
|
965
|
+
_.lb = function() {
|
|
966
966
|
var e = this.o, t;
|
|
967
967
|
do {
|
|
968
968
|
var r = e[e.length - 1];
|
|
@@ -974,7 +974,7 @@ D.lb = function() {
|
|
|
974
974
|
if (r = this.ca[0], !r || r.time > Date.now())
|
|
975
975
|
r = null;
|
|
976
976
|
else {
|
|
977
|
-
this.ca.shift(), 0 <= r.interval &&
|
|
977
|
+
this.ca.shift(), 0 <= r.interval && pr(this, r, r.interval);
|
|
978
978
|
var n = new w(r.node, r.scope);
|
|
979
979
|
r.zb && (n.ia = 2, n.B = this.Na, n.U = r.zb, n.Qa = !0, n.F = r.Lb), r = n;
|
|
980
980
|
}
|
|
@@ -987,7 +987,7 @@ D.lb = function() {
|
|
|
987
987
|
try {
|
|
988
988
|
var a = this.rb[n.type](e, r, n);
|
|
989
989
|
} catch (s) {
|
|
990
|
-
if (s !==
|
|
990
|
+
if (s !== dr)
|
|
991
991
|
throw this.value !== s && (this.value = void 0), s;
|
|
992
992
|
} finally {
|
|
993
993
|
Ze = i;
|
|
@@ -1000,13 +1000,13 @@ D.lb = function() {
|
|
|
1000
1000
|
} while (!n.end && t > Date.now());
|
|
1001
1001
|
return !0;
|
|
1002
1002
|
};
|
|
1003
|
-
|
|
1003
|
+
_.Eb = function() {
|
|
1004
1004
|
for (; !this.za && this.lb(); )
|
|
1005
1005
|
;
|
|
1006
1006
|
return this.za;
|
|
1007
1007
|
};
|
|
1008
|
-
function
|
|
1009
|
-
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t,
|
|
1008
|
+
function ti(e, t) {
|
|
1009
|
+
e.g(t, "NaN", NaN, ze), e.g(t, "Infinity", 1 / 0, ze), e.g(t, "undefined", void 0, ze), e.g(t, "window", t, Qt), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new F(null), e.Z = new F(e.M), ni(e, t), ri(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), ii(e, t), oi(e, t), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), di(e, t), fi(e, t);
|
|
1010
1010
|
var r = e.i(function() {
|
|
1011
1011
|
throw EvalError("Can't happen");
|
|
1012
1012
|
}, !1);
|
|
@@ -1017,43 +1017,43 @@ function ni(e, t) {
|
|
|
1017
1017
|
try {
|
|
1018
1018
|
return a(s);
|
|
1019
1019
|
} catch (u) {
|
|
1020
|
-
|
|
1020
|
+
C(e, e.Gb, u.message);
|
|
1021
1021
|
}
|
|
1022
1022
|
};
|
|
1023
1023
|
}(n[i][0]), e.g(t, n[i][1], e.i(r, !1), S);
|
|
1024
1024
|
r = function(a) {
|
|
1025
|
-
return
|
|
1025
|
+
return Xn(e, !1, arguments);
|
|
1026
1026
|
}, e.g(t, "setTimeout", e.i(r, !1), S), r = function(a) {
|
|
1027
|
-
return
|
|
1027
|
+
return Xn(e, !0, arguments);
|
|
1028
1028
|
}, e.g(t, "setInterval", e.i(r, !1), S), r = function(a) {
|
|
1029
|
-
|
|
1029
|
+
Yn(e, a);
|
|
1030
1030
|
}, e.g(t, "clearTimeout", e.i(r, !1), S), r = function(a) {
|
|
1031
|
-
|
|
1031
|
+
Yn(e, a);
|
|
1032
1032
|
}, e.g(t, "clearInterval", e.i(r, !1), S), 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);
|
|
1033
1033
|
}
|
|
1034
|
-
|
|
1035
|
-
function
|
|
1034
|
+
_.Wb = 0;
|
|
1035
|
+
function ni(e, t) {
|
|
1036
1036
|
var r = /^[A-Za-z_$][\w$]*$/, n = function(i) {
|
|
1037
1037
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1038
1038
|
if (s) {
|
|
1039
1039
|
s = s.split(/\s*,\s*/);
|
|
1040
1040
|
for (var u = 0; u < s.length; u++) {
|
|
1041
1041
|
var f = s[u];
|
|
1042
|
-
r.test(f) ||
|
|
1042
|
+
r.test(f) || C(e, e.T, "Invalid function argument: " + f);
|
|
1043
1043
|
}
|
|
1044
1044
|
s = s.join(", ");
|
|
1045
1045
|
}
|
|
1046
1046
|
try {
|
|
1047
|
-
var m =
|
|
1047
|
+
var m = De("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1048
1048
|
} catch (v) {
|
|
1049
|
-
|
|
1049
|
+
C(e, e.T, "Invalid code: " + v.message);
|
|
1050
1050
|
}
|
|
1051
|
-
return m.body.length !== 1 &&
|
|
1051
|
+
return m.body.length !== 1 && C(e, e.T, "Invalid code in function body"), rn(e, m.body[0].la, e.N, "anonymous");
|
|
1052
1052
|
};
|
|
1053
1053
|
e.O = e.i(n, !0), e.g(t, "Function", e.O, S), e.g(e.O, "prototype", e.Z, S), e.g(e.Z, "constructor", e.O, S), e.Z.Ta = function() {
|
|
1054
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0,
|
|
1054
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, oe), e.Z.H = "Function", n = function(i, a) {
|
|
1055
1055
|
var s = e.o[e.o.length - 1];
|
|
1056
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1056
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof F ? s.F = fr(e, a) : C(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1057
1057
|
}, q(e, e.O, "apply", n), n = function(i) {
|
|
1058
1058
|
var a = e.o[e.o.length - 1];
|
|
1059
1059
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1066,29 +1066,29 @@ function ri(e, t) {
|
|
|
1066
1066
|
return this.valueOf();
|
|
1067
1067
|
}, q(e, e.O, "valueOf", n), e.g(e.O, "valueOf", e.i(n, !1), S);
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function ri(e, t) {
|
|
1070
1070
|
function r(i) {
|
|
1071
|
-
i != null ||
|
|
1071
|
+
i != null || C(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1072
1072
|
}
|
|
1073
1073
|
var n = function(i) {
|
|
1074
1074
|
if (i == null)
|
|
1075
1075
|
return be(e) ? this : e.s(e.M);
|
|
1076
|
-
if (!(i instanceof
|
|
1076
|
+
if (!(i instanceof F)) {
|
|
1077
1077
|
var a = e.s(ye(e, i));
|
|
1078
1078
|
return a.data = i, a;
|
|
1079
1079
|
}
|
|
1080
1080
|
return i;
|
|
1081
1081
|
};
|
|
1082
1082
|
e.v = e.i(n, !0), e.g(e.v, "prototype", e.M, S), e.g(e.M, "constructor", e.v, S), e.g(t, "Object", e.v, S), n = function(i) {
|
|
1083
|
-
return r(i), ge(e, Object.getOwnPropertyNames(i instanceof
|
|
1083
|
+
return r(i), ge(e, Object.getOwnPropertyNames(i instanceof F ? i.h : i));
|
|
1084
1084
|
}, e.g(e.v, "getOwnPropertyNames", e.i(n, !1), S), n = function(i) {
|
|
1085
|
-
return r(i), i instanceof
|
|
1085
|
+
return r(i), i instanceof F && (i = i.h), ge(e, Object.keys(i));
|
|
1086
1086
|
}, e.g(e.v, "keys", e.i(n, !1), S), n = function(i) {
|
|
1087
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1087
|
+
return i === null ? e.s(null) : (i instanceof F || C(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1088
1088
|
}, e.g(e.v, "create", e.i(n, !1), S), 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;", "};", "})();", ""), n = function(i, a, s) {
|
|
1089
|
-
return a = String(a), i instanceof
|
|
1089
|
+
return a = String(a), i instanceof F || C(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof F || C(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || C(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, et, s.h), i;
|
|
1090
1090
|
}, e.g(e.v, "defineProperty", e.i(n, !1), S), 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;", "}", "});", ""), n = function(i, a) {
|
|
1091
|
-
if (i instanceof
|
|
1091
|
+
if (i instanceof F || C(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1092
1092
|
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1093
1093
|
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1094
1094
|
}
|
|
@@ -1097,11 +1097,11 @@ function ii(e, t) {
|
|
|
1097
1097
|
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), S), n = function(i) {
|
|
1098
1098
|
return !!i && !i.preventExtensions;
|
|
1099
1099
|
}, e.g(e.v, "isExtensible", e.i(n, !1), S), n = function(i) {
|
|
1100
|
-
return i instanceof
|
|
1101
|
-
}, e.g(e.v, "preventExtensions", e.i(n, !1), S), q(e, e.v, "toString",
|
|
1102
|
-
return r(this), this instanceof
|
|
1100
|
+
return i instanceof F && (i.preventExtensions = !0), i;
|
|
1101
|
+
}, e.g(e.v, "preventExtensions", e.i(n, !1), S), q(e, e.v, "toString", F.prototype.toString), q(e, e.v, "toLocaleString", F.prototype.toString), q(e, e.v, "valueOf", F.prototype.valueOf), n = function(i) {
|
|
1102
|
+
return r(this), this instanceof F ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1103
1103
|
}, q(e, e.v, "hasOwnProperty", n), n = function(i) {
|
|
1104
|
-
return r(this), this instanceof
|
|
1104
|
+
return r(this), this instanceof F ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1105
1105
|
}, q(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1106
1106
|
for (; ; ) {
|
|
1107
1107
|
if (i = ye(e, i), !i)
|
|
@@ -1111,11 +1111,11 @@ function ii(e, t) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
}, q(e, e.v, "isPrototypeOf", n);
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1114
|
+
function ii(e, t) {
|
|
1115
1115
|
var r = function(n) {
|
|
1116
|
-
var i = be(e) ? this :
|
|
1116
|
+
var i = be(e) ? this : _e(e), a = arguments[0];
|
|
1117
1117
|
if (arguments.length === 1 && typeof a == "number")
|
|
1118
|
-
isNaN(
|
|
1118
|
+
isNaN(en(a)) && C(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1119
1119
|
else {
|
|
1120
1120
|
for (a = 0; a < arguments.length; a++)
|
|
1121
1121
|
i.h[a] = arguments[a];
|
|
@@ -1131,7 +1131,7 @@ function oi(e, t) {
|
|
|
1131
1131
|
writable: !0
|
|
1132
1132
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function oi(e, t) {
|
|
1135
1135
|
var r = function(n) {
|
|
1136
1136
|
return n = arguments.length ? we.String(n) : "", be(e) ? (this.data = n, this) : n;
|
|
1137
1137
|
};
|
|
@@ -1142,7 +1142,7 @@ function ai(e, t) {
|
|
|
1142
1142
|
try {
|
|
1143
1143
|
return String(this).localeCompare(n, i, a);
|
|
1144
1144
|
} catch (s) {
|
|
1145
|
-
|
|
1145
|
+
C(e, e.D, "localeCompare: " + s.message);
|
|
1146
1146
|
}
|
|
1147
1147
|
}, q(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1148
1148
|
var s = String(this);
|
|
@@ -1214,12 +1214,12 @@ function ai(e, t) {
|
|
|
1214
1214
|
a(s.replace(n, i));
|
|
1215
1215
|
}, qe(e, e.J, "replace", r), 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;", "};", "})();", "");
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function ai(e, t) {
|
|
1218
1218
|
e.mb = e.i(function(r) {
|
|
1219
1219
|
return r = we.Boolean(r), be(e) ? (this.data = r, this) : r;
|
|
1220
1220
|
}, !0), e.g(t, "Boolean", e.mb, S);
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1222
|
+
function si(e, t) {
|
|
1223
1223
|
var r = function(n) {
|
|
1224
1224
|
return n = arguments.length ? we.Number(n) : 0, be(e) ? (this.data = n, this) : n;
|
|
1225
1225
|
};
|
|
@@ -1229,36 +1229,36 @@ function li(e, t) {
|
|
|
1229
1229
|
try {
|
|
1230
1230
|
return Number(this).toExponential(n);
|
|
1231
1231
|
} catch (i) {
|
|
1232
|
-
|
|
1232
|
+
C(e, e.D, i.message);
|
|
1233
1233
|
}
|
|
1234
1234
|
}, q(e, e.aa, "toExponential", r), r = function(n) {
|
|
1235
1235
|
try {
|
|
1236
1236
|
return Number(this).toFixed(n);
|
|
1237
1237
|
} catch (i) {
|
|
1238
|
-
|
|
1238
|
+
C(e, e.D, i.message);
|
|
1239
1239
|
}
|
|
1240
1240
|
}, q(e, e.aa, "toFixed", r), r = function(n) {
|
|
1241
1241
|
try {
|
|
1242
1242
|
return Number(this).toPrecision(n);
|
|
1243
1243
|
} catch (i) {
|
|
1244
|
-
|
|
1244
|
+
C(e, e.D, i.message);
|
|
1245
1245
|
}
|
|
1246
1246
|
}, q(e, e.aa, "toPrecision", r), r = function(n) {
|
|
1247
1247
|
try {
|
|
1248
1248
|
return Number(this).toString(n);
|
|
1249
1249
|
} catch (i) {
|
|
1250
|
-
|
|
1250
|
+
C(e, e.D, i.message);
|
|
1251
1251
|
}
|
|
1252
1252
|
}, q(e, e.aa, "toString", r), r = function(n, i) {
|
|
1253
1253
|
n = n ? e.R(n) : void 0, i = i ? e.R(i) : void 0;
|
|
1254
1254
|
try {
|
|
1255
1255
|
return Number(this).toLocaleString(n, i);
|
|
1256
1256
|
} catch (a) {
|
|
1257
|
-
|
|
1257
|
+
C(e, e.D, "toLocaleString: " + a.message);
|
|
1258
1258
|
}
|
|
1259
1259
|
}, q(e, e.aa, "toLocaleString", r);
|
|
1260
1260
|
}
|
|
1261
|
-
function
|
|
1261
|
+
function li(e, t) {
|
|
1262
1262
|
var r = function(i, a) {
|
|
1263
1263
|
if (!be(e))
|
|
1264
1264
|
return we.Date();
|
|
@@ -1270,14 +1270,14 @@ function ci(e, t) {
|
|
|
1270
1270
|
r = function(i) {
|
|
1271
1271
|
return function(a) {
|
|
1272
1272
|
var s = this.data;
|
|
1273
|
-
s instanceof Date ||
|
|
1273
|
+
s instanceof Date || C(e, e.j, i + " not called on a Date");
|
|
1274
1274
|
for (var u = [], f = 0; f < arguments.length; f++)
|
|
1275
1275
|
u[f] = e.R(arguments[f]);
|
|
1276
1276
|
return s[i].apply(s, u);
|
|
1277
1277
|
};
|
|
1278
1278
|
}(t[n]), q(e, e.$, t[n], r);
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function ci(e, t) {
|
|
1281
1281
|
var r = function(n, i) {
|
|
1282
1282
|
if (be(e))
|
|
1283
1283
|
var a = this;
|
|
@@ -1286,19 +1286,19 @@ function ui(e, t) {
|
|
|
1286
1286
|
return n;
|
|
1287
1287
|
a = e.s(e.Ma);
|
|
1288
1288
|
}
|
|
1289
|
-
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1289
|
+
n = n === void 0 ? "" : String(n), i = i ? String(i) : "", /^[gmi]*$/.test(i) || C(e, e.T, "Invalid regexp flag: " + i);
|
|
1290
1290
|
try {
|
|
1291
1291
|
var s = new we.RegExp(n, i);
|
|
1292
1292
|
} catch (u) {
|
|
1293
|
-
|
|
1293
|
+
C(e, e.T, u.message);
|
|
1294
1294
|
}
|
|
1295
|
-
return
|
|
1295
|
+
return tn(e, a, s), a;
|
|
1296
1296
|
};
|
|
1297
|
-
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0,
|
|
1297
|
+
e.I = e.i(r, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0, oe), e.g(e.I.h.prototype, "ignoreCase", void 0, oe), e.g(e.I.h.prototype, "multiline", void 0, oe), e.g(e.I.h.prototype, "source", "(?:)", oe), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), r = function(n, i) {
|
|
1298
1298
|
function a(v) {
|
|
1299
1299
|
if (v) {
|
|
1300
|
-
var
|
|
1301
|
-
return e.g(
|
|
1300
|
+
var y = ge(e, v);
|
|
1301
|
+
return e.g(y, "index", v.index), e.g(y, "input", v.input), y;
|
|
1302
1302
|
}
|
|
1303
1303
|
return null;
|
|
1304
1304
|
}
|
|
@@ -1319,45 +1319,45 @@ function ui(e, t) {
|
|
|
1319
1319
|
n = s.exec(n), e.g(this, "lastIndex", s.lastIndex), i(a(n));
|
|
1320
1320
|
}, qe(e, e.I, "exec", r);
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function ui(e, t) {
|
|
1323
1323
|
function r(n) {
|
|
1324
1324
|
var i = e.i(function(a) {
|
|
1325
1325
|
var s = be(e) ? this : e.Aa(i);
|
|
1326
|
-
return
|
|
1326
|
+
return zt(e, s, a), s;
|
|
1327
1327
|
}, !0);
|
|
1328
1328
|
return e.g(i, "prototype", e.Aa(e.D), S), e.g(i.h.prototype, "name", n, S), e.g(t, n, i, S), i;
|
|
1329
1329
|
}
|
|
1330
1330
|
e.D = e.i(function(n) {
|
|
1331
1331
|
var i = be(e) ? this : e.Aa(e.D);
|
|
1332
|
-
return
|
|
1332
|
+
return zt(e, i, n), i;
|
|
1333
1333
|
}, !0), e.g(t, "Error", e.D, S), e.g(e.D.h.prototype, "message", "", S), e.g(e.D.h.prototype, "name", "Error", S), r("EvalError"), e.ob = r("RangeError"), e.pb = r("ReferenceError"), e.T = r("SyntaxError"), e.j = r("TypeError"), e.Gb = r("URIError");
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function di(e, t) {
|
|
1336
1336
|
var r = e.s(e.M);
|
|
1337
1337
|
e.g(t, "Math", r, S);
|
|
1338
1338
|
var n = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1339
1339
|
for (t = 0; t < n.length; t++)
|
|
1340
|
-
e.g(r, n[t], Math[n[t]],
|
|
1340
|
+
e.g(r, n[t], Math[n[t]], oe);
|
|
1341
1341
|
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1342
1342
|
e.g(r, n[t], e.i(Math[n[t]], !1), S);
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function fi(e, t) {
|
|
1345
1345
|
var r = e.s(e.M);
|
|
1346
1346
|
e.g(t, "JSON", r, S), t = function(n) {
|
|
1347
1347
|
try {
|
|
1348
1348
|
var i = JSON.parse(String(n));
|
|
1349
1349
|
} catch (a) {
|
|
1350
|
-
|
|
1350
|
+
C(e, e.T, a.message);
|
|
1351
1351
|
}
|
|
1352
1352
|
return e.Ia(i);
|
|
1353
1353
|
}, e.g(r, "parse", e.i(t, !1)), t = function(n, i, a) {
|
|
1354
|
-
i && i.H === "Function" ?
|
|
1354
|
+
i && i.H === "Function" ? C(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = fr(e, i), i = i.filter(function(u) {
|
|
1355
1355
|
return typeof u == "string" || typeof u == "number";
|
|
1356
1356
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), n = e.R(n);
|
|
1357
1357
|
try {
|
|
1358
1358
|
var s = JSON.stringify(n, i, a);
|
|
1359
1359
|
} catch (u) {
|
|
1360
|
-
|
|
1360
|
+
C(e, e.j, u.message);
|
|
1361
1361
|
}
|
|
1362
1362
|
return s;
|
|
1363
1363
|
}, e.g(r, "stringify", e.i(t, !1));
|
|
@@ -1374,10 +1374,10 @@ function Q(e, t, r) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
return !1;
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1378
|
-
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, S), e.g(t, "source", r.source,
|
|
1377
|
+
function tn(e, t, r) {
|
|
1378
|
+
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, S), e.g(t, "source", r.source, oe), e.g(t, "global", r.global, oe), e.g(t, "ignoreCase", r.ignoreCase, oe), e.g(t, "multiline", r.multiline, oe);
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function zt(e, t, r) {
|
|
1381
1381
|
r && e.g(t, "message", String(r), S), r = [];
|
|
1382
1382
|
for (var n = e.o.length - 1; 0 <= n; n--) {
|
|
1383
1383
|
var i = e.o[n], a = i.node;
|
|
@@ -1394,9 +1394,9 @@ function Yt(e, t, r) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
e.g(t, "stack", a.trim(), S);
|
|
1396
1396
|
}
|
|
1397
|
-
|
|
1397
|
+
_.ha = function() {
|
|
1398
1398
|
var e = this.ha.Mb;
|
|
1399
|
-
return e || (e = new Blob([
|
|
1399
|
+
return e || (e = new Blob([ei.join(`
|
|
1400
1400
|
`)], {
|
|
1401
1401
|
type: "application/javascript"
|
|
1402
1402
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1408,7 +1408,7 @@ function Xe(e, t, r, n, i) {
|
|
|
1408
1408
|
try {
|
|
1409
1409
|
return ve.runInNewContext(t, r, a);
|
|
1410
1410
|
} catch {
|
|
1411
|
-
i(null),
|
|
1411
|
+
i(null), C(e, e.D, "RegExp Timeout: " + n);
|
|
1412
1412
|
}
|
|
1413
1413
|
return Fe;
|
|
1414
1414
|
}
|
|
@@ -1429,26 +1429,26 @@ function Ye(e, t, r) {
|
|
|
1429
1429
|
n = !!ve;
|
|
1430
1430
|
} else
|
|
1431
1431
|
n = !1;
|
|
1432
|
-
n || (r(null),
|
|
1432
|
+
n || (r(null), C(e, e.D, "Regular expressions not supported: " + t));
|
|
1433
1433
|
}
|
|
1434
1434
|
function Je(e, t, r, n) {
|
|
1435
1435
|
return setTimeout(function() {
|
|
1436
1436
|
r.terminate(), n(null);
|
|
1437
1437
|
try {
|
|
1438
|
-
|
|
1438
|
+
C(e, e.D, "RegExp Timeout: " + t);
|
|
1439
1439
|
} catch {
|
|
1440
1440
|
}
|
|
1441
1441
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1442
1442
|
}
|
|
1443
|
-
|
|
1443
|
+
_.Aa = function(e) {
|
|
1444
1444
|
return this.s(e && e.h.prototype);
|
|
1445
1445
|
};
|
|
1446
|
-
|
|
1446
|
+
_.s = function(e) {
|
|
1447
1447
|
if (typeof e != "object")
|
|
1448
1448
|
throw Error("Non object prototype");
|
|
1449
|
-
return e = new
|
|
1449
|
+
return e = new F(e), Q(this, e, this.D) && (e.H = "Error"), e;
|
|
1450
1450
|
};
|
|
1451
|
-
function
|
|
1451
|
+
function _e(e) {
|
|
1452
1452
|
var t = e.s(e.La);
|
|
1453
1453
|
return e.g(t, "length", 0, {
|
|
1454
1454
|
configurable: !1,
|
|
@@ -1456,29 +1456,29 @@ function De(e) {
|
|
|
1456
1456
|
writable: !0
|
|
1457
1457
|
}), t.H = "Array", t;
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function nn(e, t, r) {
|
|
1460
1460
|
var n = e.s(e.Z);
|
|
1461
|
-
return r ? (r = e.s(e.M), e.g(n, "prototype", r, S), e.g(r, "constructor", n, S)) : n.Ab = !0, e.g(n, "length", t,
|
|
1461
|
+
return r ? (r = e.s(e.M), e.g(n, "prototype", r, S), e.g(r, "constructor", n, S)) : n.Ab = !0, e.g(n, "length", t, oe), n.H = "Function", n;
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1464
|
-
var i =
|
|
1465
|
-
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "",
|
|
1463
|
+
function rn(e, t, r, n) {
|
|
1464
|
+
var i = nn(e, t.oa.length, !0);
|
|
1465
|
+
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", oe), i;
|
|
1466
1466
|
}
|
|
1467
|
-
|
|
1468
|
-
return t =
|
|
1467
|
+
_.i = function(e, t) {
|
|
1468
|
+
return t = nn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, oe), t;
|
|
1469
1469
|
};
|
|
1470
|
-
|
|
1471
|
-
var t =
|
|
1472
|
-
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name,
|
|
1470
|
+
_.ub = function(e) {
|
|
1471
|
+
var t = nn(this, e.length, !0);
|
|
1472
|
+
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, oe), t;
|
|
1473
1473
|
};
|
|
1474
|
-
|
|
1475
|
-
if (e instanceof
|
|
1474
|
+
_.Ia = function(e) {
|
|
1475
|
+
if (e instanceof F)
|
|
1476
1476
|
throw Error("Object is already pseudo");
|
|
1477
1477
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1478
1478
|
return e;
|
|
1479
1479
|
if (e instanceof RegExp) {
|
|
1480
1480
|
var t = this.s(this.Ma);
|
|
1481
|
-
return
|
|
1481
|
+
return tn(this, t, e), t;
|
|
1482
1482
|
}
|
|
1483
1483
|
if (e instanceof Date)
|
|
1484
1484
|
return t = this.s(this.nb), t.data = new Date(e.valueOf()), t;
|
|
@@ -1492,7 +1492,7 @@ D.Ia = function(e) {
|
|
|
1492
1492
|
}, !!t);
|
|
1493
1493
|
}
|
|
1494
1494
|
if (Array.isArray(e)) {
|
|
1495
|
-
t =
|
|
1495
|
+
t = _e(this);
|
|
1496
1496
|
for (var n = 0; n < e.length; n++)
|
|
1497
1497
|
n in e && this.g(t, n, this.Ia(e[n]));
|
|
1498
1498
|
return t;
|
|
@@ -1502,10 +1502,10 @@ D.Ia = function(e) {
|
|
|
1502
1502
|
this.g(t, n, this.Ia(e[n]));
|
|
1503
1503
|
return t;
|
|
1504
1504
|
};
|
|
1505
|
-
|
|
1505
|
+
_.R = function(e, t) {
|
|
1506
1506
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1507
1507
|
return e;
|
|
1508
|
-
if (!(e instanceof
|
|
1508
|
+
if (!(e instanceof F))
|
|
1509
1509
|
throw Error("Object is not pseudo");
|
|
1510
1510
|
if (Q(this, e, this.I))
|
|
1511
1511
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1521,7 +1521,7 @@ D.R = function(e, t) {
|
|
|
1521
1521
|
if (t.hb.push(e), Q(this, e, this.qa)) {
|
|
1522
1522
|
r = [], t.Sa.push(r);
|
|
1523
1523
|
for (var n = this.G(e, "length"), i = 0; i < n; i++)
|
|
1524
|
-
|
|
1524
|
+
vt(this, e, i) && (r[i] = this.R(this.G(e, i), t));
|
|
1525
1525
|
} else
|
|
1526
1526
|
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1527
1527
|
i = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
@@ -1533,15 +1533,15 @@ D.R = function(e, t) {
|
|
|
1533
1533
|
return t.hb.pop(), t.Sa.pop(), r;
|
|
1534
1534
|
};
|
|
1535
1535
|
function ge(e, t) {
|
|
1536
|
-
for (var r =
|
|
1536
|
+
for (var r = _e(e), n = Object.getOwnPropertyNames(t), i = 0; i < n.length; i++)
|
|
1537
1537
|
e.g(r, n[i], t[n[i]]);
|
|
1538
1538
|
return r;
|
|
1539
1539
|
}
|
|
1540
|
-
function
|
|
1540
|
+
function fr(e, t) {
|
|
1541
1541
|
var r = [], n;
|
|
1542
1542
|
for (n in t.h)
|
|
1543
1543
|
r[n] = e.G(t, n);
|
|
1544
|
-
return r.length =
|
|
1544
|
+
return r.length = en(e.G(t, "length")) || 0, r;
|
|
1545
1545
|
}
|
|
1546
1546
|
function ye(e, t) {
|
|
1547
1547
|
switch (typeof t) {
|
|
@@ -1554,10 +1554,10 @@ function ye(e, t) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
return t ? t.xa : null;
|
|
1556
1556
|
}
|
|
1557
|
-
|
|
1557
|
+
_.G = function(e, t) {
|
|
1558
1558
|
if (this.P)
|
|
1559
1559
|
throw Error("Getter not supported in that context");
|
|
1560
|
-
if (t = String(t), e != null ||
|
|
1560
|
+
if (t = String(t), e != null || C(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1561
1561
|
throw TypeError("Expecting native value or pseudo object");
|
|
1562
1562
|
if (t === "length") {
|
|
1563
1563
|
if (Q(this, e, this.J))
|
|
@@ -1572,8 +1572,8 @@ D.G = function(e, t) {
|
|
|
1572
1572
|
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1573
1573
|
while (e = ye(this, e));
|
|
1574
1574
|
};
|
|
1575
|
-
function
|
|
1576
|
-
if (!(t instanceof
|
|
1575
|
+
function vt(e, t, r) {
|
|
1576
|
+
if (!(t instanceof F))
|
|
1577
1577
|
throw TypeError("Primitive data type has no properties");
|
|
1578
1578
|
if (r = String(r), r === "length" && Q(e, t, e.J))
|
|
1579
1579
|
return !0;
|
|
@@ -1588,18 +1588,18 @@ function yt(e, t, r) {
|
|
|
1588
1588
|
while (t = ye(e, t));
|
|
1589
1589
|
return !1;
|
|
1590
1590
|
}
|
|
1591
|
-
|
|
1591
|
+
_.g = function(e, t, r, n) {
|
|
1592
1592
|
if (this.Ka)
|
|
1593
1593
|
throw Error("Setter not supported in that context");
|
|
1594
|
-
if (t = String(t), e != null ||
|
|
1594
|
+
if (t = String(t), e != null || C(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof F))
|
|
1595
1595
|
throw TypeError("Expecting native value or pseudo object");
|
|
1596
|
-
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) &&
|
|
1597
|
-
var i = !this.o ||
|
|
1598
|
-
if (e instanceof
|
|
1596
|
+
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && C(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1597
|
+
var i = !this.o || on(this).S;
|
|
1598
|
+
if (e instanceof F) {
|
|
1599
1599
|
if (Q(this, e, this.J)) {
|
|
1600
1600
|
var a = Qe(t);
|
|
1601
1601
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1602
|
-
i &&
|
|
1602
|
+
i && C(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1603
1603
|
return;
|
|
1604
1604
|
}
|
|
1605
1605
|
}
|
|
@@ -1610,7 +1610,7 @@ D.g = function(e, t, r, n) {
|
|
|
1610
1610
|
return;
|
|
1611
1611
|
r = n.value;
|
|
1612
1612
|
}
|
|
1613
|
-
if (r =
|
|
1613
|
+
if (r = en(r), isNaN(r) && C(this, this.ob, "Invalid array length"), r < a)
|
|
1614
1614
|
for (s in e.h) {
|
|
1615
1615
|
var s = Qe(s);
|
|
1616
1616
|
!isNaN(s) && r <= s && delete e.h[s];
|
|
@@ -1623,7 +1623,7 @@ D.g = function(e, t, r, n) {
|
|
|
1623
1623
|
try {
|
|
1624
1624
|
Object.defineProperty(e.h, t, i);
|
|
1625
1625
|
} catch {
|
|
1626
|
-
|
|
1626
|
+
C(this, this.j, "Cannot redefine property: " + t);
|
|
1627
1627
|
}
|
|
1628
1628
|
"get" in n && !n.get && delete e.V[t], "set" in n && !n.set && delete e.Y[t];
|
|
1629
1629
|
} else {
|
|
@@ -1637,23 +1637,23 @@ D.g = function(e, t, r, n) {
|
|
|
1637
1637
|
if (n.Y && n.Y[t])
|
|
1638
1638
|
return this.Ka = !0, n.Y[t];
|
|
1639
1639
|
if (n.V && n.V[t])
|
|
1640
|
-
i &&
|
|
1640
|
+
i && C(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1641
1641
|
else
|
|
1642
1642
|
try {
|
|
1643
1643
|
e.h[t] = r;
|
|
1644
1644
|
} catch {
|
|
1645
|
-
i &&
|
|
1645
|
+
i && C(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1646
1646
|
}
|
|
1647
1647
|
}
|
|
1648
1648
|
else
|
|
1649
|
-
i &&
|
|
1649
|
+
i && C(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1650
1650
|
} else
|
|
1651
|
-
i &&
|
|
1651
|
+
i && C(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1652
1652
|
};
|
|
1653
|
-
|
|
1653
|
+
_.g.ac = function() {
|
|
1654
1654
|
throw Error("Placeholder getter");
|
|
1655
1655
|
};
|
|
1656
|
-
|
|
1656
|
+
_.g.bc = function() {
|
|
1657
1657
|
throw Error("Placeholder setter");
|
|
1658
1658
|
};
|
|
1659
1659
|
function q(e, t, r, n) {
|
|
@@ -1662,12 +1662,12 @@ function q(e, t, r, n) {
|
|
|
1662
1662
|
function qe(e, t, r, n) {
|
|
1663
1663
|
e.g(t.h.prototype, r, e.ub(n), S);
|
|
1664
1664
|
}
|
|
1665
|
-
function
|
|
1665
|
+
function on(e) {
|
|
1666
1666
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
1667
1667
|
throw Error("No scope found");
|
|
1668
1668
|
return e;
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function Xt(e, t, r) {
|
|
1671
1671
|
var n = !1;
|
|
1672
1672
|
if (r && r.S)
|
|
1673
1673
|
n = !0;
|
|
@@ -1675,38 +1675,38 @@ function Jt(e, t, r) {
|
|
|
1675
1675
|
var i = t.body && t.body[0];
|
|
1676
1676
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (n = !0);
|
|
1677
1677
|
}
|
|
1678
|
-
return i = e.s(null), n = new
|
|
1678
|
+
return i = e.s(null), n = new mr(r, n, i), r || ti(e, n.object), tt(e, t, n), n;
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function an(e, t, r) {
|
|
1681
1681
|
if (!t)
|
|
1682
1682
|
throw Error("parentScope required");
|
|
1683
|
-
return e = r || e.s(null), new
|
|
1683
|
+
return e = r || e.s(null), new mr(t, t.S, e);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1686
|
-
for (var r =
|
|
1685
|
+
function sn(e, t) {
|
|
1686
|
+
for (var r = on(e); r && r !== e.N; ) {
|
|
1687
1687
|
if (t in r.object.h)
|
|
1688
1688
|
return r.object.h[t];
|
|
1689
1689
|
r = r.Va;
|
|
1690
1690
|
}
|
|
1691
|
-
if (r === e.N &&
|
|
1691
|
+
if (r === e.N && vt(e, r.object, t))
|
|
1692
1692
|
return e.G(r.object, t);
|
|
1693
|
-
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" ||
|
|
1693
|
+
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || C(e, e.pb, t + " is not defined");
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1696
|
-
for (var n =
|
|
1695
|
+
function hr(e, t, r) {
|
|
1696
|
+
for (var n = on(e), i = n.S; n && n !== e.N; ) {
|
|
1697
1697
|
if (t in n.object.h) {
|
|
1698
1698
|
try {
|
|
1699
1699
|
n.object.h[t] = r;
|
|
1700
1700
|
} catch {
|
|
1701
|
-
i &&
|
|
1701
|
+
i && C(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1702
1702
|
}
|
|
1703
1703
|
return;
|
|
1704
1704
|
}
|
|
1705
1705
|
n = n.Va;
|
|
1706
1706
|
}
|
|
1707
|
-
if (n === e.N && (!i ||
|
|
1707
|
+
if (n === e.N && (!i || vt(e, n.object, t)))
|
|
1708
1708
|
return e.g(n.object, t, r);
|
|
1709
|
-
|
|
1709
|
+
C(e, e.pb, t + " is not defined");
|
|
1710
1710
|
}
|
|
1711
1711
|
function tt(e, t, r) {
|
|
1712
1712
|
if (t.jb)
|
|
@@ -1754,20 +1754,20 @@ function tt(e, t, r) {
|
|
|
1754
1754
|
t.jb = n;
|
|
1755
1755
|
}
|
|
1756
1756
|
for (s in n)
|
|
1757
|
-
n[s] === !0 ? e.g(r.object, s, void 0,
|
|
1757
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Gn) : e.g(r.object, s, rn(e, n[s], r), Gn);
|
|
1758
1758
|
return n;
|
|
1759
1759
|
}
|
|
1760
1760
|
function be(e) {
|
|
1761
1761
|
return e.o[e.o.length - 1].isConstructor;
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1764
|
-
return t[0] === We ?
|
|
1763
|
+
function ln(e, t) {
|
|
1764
|
+
return t[0] === We ? sn(e, t[1]) : e.G(t[0], t[1]);
|
|
1765
1765
|
}
|
|
1766
|
-
function
|
|
1767
|
-
return t[0] === We ?
|
|
1766
|
+
function cn(e, t, r) {
|
|
1767
|
+
return t[0] === We ? hr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1770
|
-
throw e.N ? (r !== void 0 && t instanceof
|
|
1769
|
+
function C(e, t, r) {
|
|
1770
|
+
throw e.N ? (r !== void 0 && t instanceof F && (t = e.Aa(t), zt(e, t, r)), it(e, 4, t), dr) : r === void 0 ? t : r;
|
|
1771
1771
|
}
|
|
1772
1772
|
function it(e, t, r, n) {
|
|
1773
1773
|
if (t === 0)
|
|
@@ -1814,60 +1814,60 @@ function it(e, t, r, n) {
|
|
|
1814
1814
|
URIError
|
|
1815
1815
|
}, n = String(e.G(r, "name")), i = e.G(r, "message").valueOf(), t = (t[n] || Error)(i), t.stack = String(e.G(r, "stack"))) : t = String(r), e.value = t, t;
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function ie(e, t) {
|
|
1818
1818
|
switch (t.type) {
|
|
1819
1819
|
case "ArrayExpression":
|
|
1820
1820
|
return "[...]";
|
|
1821
1821
|
case "BinaryExpression":
|
|
1822
1822
|
case "LogicalExpression":
|
|
1823
|
-
return
|
|
1823
|
+
return ie(e, t.left) + " " + t.operator + " " + ie(e, t.right);
|
|
1824
1824
|
case "CallExpression":
|
|
1825
|
-
return
|
|
1825
|
+
return ie(e, t.callee) + "(...)";
|
|
1826
1826
|
case "ConditionalExpression":
|
|
1827
|
-
return
|
|
1827
|
+
return ie(e, t.test) + " ? " + ie(e, t.da) + " : " + ie(e, t.alternate);
|
|
1828
1828
|
case "Identifier":
|
|
1829
1829
|
return t.name;
|
|
1830
1830
|
case "Literal":
|
|
1831
1831
|
return t.raw;
|
|
1832
1832
|
case "MemberExpression":
|
|
1833
|
-
var r =
|
|
1834
|
-
return e =
|
|
1833
|
+
var r = ie(e, t.object);
|
|
1834
|
+
return e = ie(e, t.Wa), t.bb ? r + "[" + e + "]" : r + "." + e;
|
|
1835
1835
|
case "NewExpression":
|
|
1836
|
-
return "new " +
|
|
1836
|
+
return "new " + ie(e, t.callee) + "(...)";
|
|
1837
1837
|
case "ObjectExpression":
|
|
1838
1838
|
return "{...}";
|
|
1839
1839
|
case "ThisExpression":
|
|
1840
1840
|
return "this";
|
|
1841
1841
|
case "UnaryExpression":
|
|
1842
|
-
return t.operator + " " +
|
|
1842
|
+
return t.operator + " " + ie(e, t.K);
|
|
1843
1843
|
case "UpdateExpression":
|
|
1844
|
-
return r =
|
|
1844
|
+
return r = ie(e, t.K), t.prefix ? t.operator + r : r + t.operator;
|
|
1845
1845
|
}
|
|
1846
1846
|
return "???";
|
|
1847
1847
|
}
|
|
1848
|
-
function
|
|
1848
|
+
function Xn(e, t, r) {
|
|
1849
1849
|
var n = e.o[e.o.length - 1], i = Array.from(r), a = i.shift();
|
|
1850
1850
|
r = Math.max(Number(i.shift() || 0), 0);
|
|
1851
1851
|
var s = e.ya();
|
|
1852
|
-
if (a instanceof
|
|
1852
|
+
if (a instanceof F && a.H === "Function") {
|
|
1853
1853
|
var u = a;
|
|
1854
1854
|
s.type = "CallExpression", n = n.scope;
|
|
1855
1855
|
} else {
|
|
1856
1856
|
try {
|
|
1857
|
-
var f =
|
|
1857
|
+
var f = De(String(a), "taskCode" + e.ic++);
|
|
1858
1858
|
} catch (m) {
|
|
1859
|
-
|
|
1859
|
+
C(e, e.T, "Invalid code: " + m.message);
|
|
1860
1860
|
}
|
|
1861
|
-
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0],
|
|
1861
|
+
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], gt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1862
1862
|
}
|
|
1863
|
-
return t = new
|
|
1863
|
+
return t = new hi(u, i, n, s, t ? r : -1), pr(e, t, r), t.Db;
|
|
1864
1864
|
}
|
|
1865
|
-
function
|
|
1865
|
+
function pr(e, t, r) {
|
|
1866
1866
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, i) {
|
|
1867
1867
|
return n.time - i.time;
|
|
1868
1868
|
});
|
|
1869
1869
|
}
|
|
1870
|
-
function
|
|
1870
|
+
function Yn(e, t) {
|
|
1871
1871
|
for (var r = 0; r < e.ca.length; r++)
|
|
1872
1872
|
if (e.ca[r].Db == t) {
|
|
1873
1873
|
e.ca.splice(r, 1);
|
|
@@ -1881,52 +1881,52 @@ function ot(e, t, r) {
|
|
|
1881
1881
|
var n = e.ya();
|
|
1882
1882
|
return n.type = "CallExpression", e = new w(n, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [], e;
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function un(e, t, r, n) {
|
|
1885
1885
|
if (!e.Ka)
|
|
1886
1886
|
throw Error("Unexpected call to createSetter");
|
|
1887
1887
|
e.Ka = !1, r = Array.isArray(r) ? r[0] : e.Na;
|
|
1888
1888
|
var i = e.ya();
|
|
1889
1889
|
return i.type = "CallExpression", e = new w(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1892
|
-
return t == null ? e.Na : t instanceof
|
|
1891
|
+
function Vt(e, t) {
|
|
1892
|
+
return t == null ? e.Na : t instanceof F ? t : (e = e.s(ye(e, t)), e.data = t, e);
|
|
1893
1893
|
}
|
|
1894
|
-
|
|
1894
|
+
_.Xb = function() {
|
|
1895
1895
|
return this.N;
|
|
1896
1896
|
};
|
|
1897
|
-
|
|
1897
|
+
_.Yb = function() {
|
|
1898
1898
|
return this.o;
|
|
1899
1899
|
};
|
|
1900
|
-
|
|
1900
|
+
_.ec = function(e) {
|
|
1901
1901
|
this.o = e;
|
|
1902
1902
|
};
|
|
1903
1903
|
function w(e, t) {
|
|
1904
1904
|
this.node = e, this.scope = t;
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function mr(e, t, r) {
|
|
1907
1907
|
this.Va = e, this.S = t, this.object = r;
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1909
|
+
function F(e) {
|
|
1910
1910
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1911
1911
|
}
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1912
|
+
_ = F.prototype;
|
|
1913
|
+
_.xa = null;
|
|
1914
|
+
_.H = "Object";
|
|
1915
|
+
_.data = null;
|
|
1916
|
+
_.toString = function() {
|
|
1917
1917
|
if (!Ze)
|
|
1918
1918
|
return "[object Interpreter.Object]";
|
|
1919
|
-
if (!(this instanceof
|
|
1919
|
+
if (!(this instanceof F))
|
|
1920
1920
|
return String(this);
|
|
1921
1921
|
if (this.H === "Array") {
|
|
1922
|
-
var e =
|
|
1922
|
+
var e = zn;
|
|
1923
1923
|
e.push(this);
|
|
1924
1924
|
try {
|
|
1925
1925
|
var t = [], r = this.h.length, n = !1;
|
|
1926
1926
|
1024 < r && (r = 1e3, n = !0);
|
|
1927
1927
|
for (var i = 0; i < r; i++) {
|
|
1928
1928
|
var a = this.h[i];
|
|
1929
|
-
t[i] = a instanceof
|
|
1929
|
+
t[i] = a instanceof F && e.indexOf(a) !== -1 ? "..." : a;
|
|
1930
1930
|
}
|
|
1931
1931
|
n && t.push("...");
|
|
1932
1932
|
} finally {
|
|
@@ -1935,7 +1935,7 @@ D.toString = function() {
|
|
|
1935
1935
|
return t.join(",");
|
|
1936
1936
|
}
|
|
1937
1937
|
if (this.H === "Error") {
|
|
1938
|
-
if (e =
|
|
1938
|
+
if (e = zn, e.indexOf(this) !== -1)
|
|
1939
1939
|
return "[object Error]";
|
|
1940
1940
|
r = this;
|
|
1941
1941
|
do
|
|
@@ -1961,17 +1961,17 @@ D.toString = function() {
|
|
|
1961
1961
|
}
|
|
1962
1962
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1963
1963
|
};
|
|
1964
|
-
|
|
1964
|
+
_.valueOf = function() {
|
|
1965
1965
|
return !Ze || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1966
1966
|
};
|
|
1967
|
-
function
|
|
1968
|
-
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++
|
|
1967
|
+
function hi(e, t, r, n, i) {
|
|
1968
|
+
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++pi, this.time = 0;
|
|
1969
1969
|
}
|
|
1970
|
-
var
|
|
1970
|
+
var pi = 0;
|
|
1971
1971
|
g.prototype.stepArrayExpression = function(e, t, r) {
|
|
1972
1972
|
r = r.elements;
|
|
1973
1973
|
var n = t.A || 0;
|
|
1974
|
-
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa =
|
|
1974
|
+
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = _e(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
1975
1975
|
if (r[n])
|
|
1976
1976
|
return t.A = n, new w(r[n], t.scope);
|
|
1977
1977
|
n++;
|
|
@@ -1982,7 +1982,7 @@ g.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
1982
1982
|
if (!t.ja)
|
|
1983
1983
|
return t.ja = !0, t = new w(r.left, t.scope), t.sa = !0, t;
|
|
1984
1984
|
if (!t.Da)
|
|
1985
|
-
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e =
|
|
1985
|
+
return t.Fa || (t.Fa = t.value), t.Ba && (t.ma = t.value), !t.Ba && r.operator !== "=" && (e = ln(this, t.Fa), t.ma = e, this.P) ? (t.Ba = !0, ot(this, e, t.Fa)) : (t.Da = !0, r.operator === "=" && r.left.type === "Identifier" && (t.Pa = r.left.name), new w(r.right, t.scope));
|
|
1986
1986
|
if (t.ta)
|
|
1987
1987
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1988
1988
|
else {
|
|
@@ -2027,8 +2027,8 @@ g.prototype.stepAssignmentExpression = function(e, t, r) {
|
|
|
2027
2027
|
default:
|
|
2028
2028
|
throw SyntaxError("Unknown assignment expression: " + r.operator);
|
|
2029
2029
|
}
|
|
2030
|
-
if (r =
|
|
2031
|
-
return t.ta = !0, t.ib = n,
|
|
2030
|
+
if (r = cn(this, t.Fa, n))
|
|
2031
|
+
return t.ta = !0, t.ib = n, un(this, r, t.Fa, n);
|
|
2032
2032
|
e.pop(), e[e.length - 1].value = n;
|
|
2033
2033
|
}
|
|
2034
2034
|
};
|
|
@@ -2098,10 +2098,10 @@ g.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2098
2098
|
r = n >>> t;
|
|
2099
2099
|
break;
|
|
2100
2100
|
case "in":
|
|
2101
|
-
t instanceof
|
|
2101
|
+
t instanceof F || C(this, this.j, "'in' expects an object, not '" + t + "'"), r = vt(this, t, n);
|
|
2102
2102
|
break;
|
|
2103
2103
|
case "instanceof":
|
|
2104
|
-
Q(this, t, this.O) ||
|
|
2104
|
+
Q(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof F ? Q(this, n, t) : !1;
|
|
2105
2105
|
break;
|
|
2106
2106
|
default:
|
|
2107
2107
|
throw SyntaxError("Unknown binary operator: " + r.operator);
|
|
@@ -2128,7 +2128,7 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2128
2128
|
t.ia = 2;
|
|
2129
2129
|
var i = t.value;
|
|
2130
2130
|
if (Array.isArray(i)) {
|
|
2131
|
-
if (t.U =
|
|
2131
|
+
if (t.U = ln(this, i), i[0] === We ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2132
2132
|
return t.ia = 1, ot(this, i, t.value);
|
|
2133
2133
|
} else
|
|
2134
2134
|
t.U = i;
|
|
@@ -2138,8 +2138,8 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2138
2138
|
if (t.A !== 0 && t.F.push(t.value), r.arguments[t.A])
|
|
2139
2139
|
return new w(r.arguments[t.A++], t.scope);
|
|
2140
2140
|
if (r.type === "NewExpression") {
|
|
2141
|
-
if (i instanceof
|
|
2142
|
-
t.B =
|
|
2141
|
+
if (i instanceof F && !i.Ab || C(this, this.j, ie(this, r.callee) + " is not a constructor"), i === this.qa)
|
|
2142
|
+
t.B = _e(this);
|
|
2143
2143
|
else {
|
|
2144
2144
|
var a = i.h.prototype;
|
|
2145
2145
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2151,33 +2151,33 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2151
2151
|
if (t.eb)
|
|
2152
2152
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2153
2153
|
else {
|
|
2154
|
-
if (t.eb = !0, i instanceof
|
|
2155
|
-
for (r =
|
|
2154
|
+
if (t.eb = !0, i instanceof F || C(this, this.j, ie(this, r.callee) + " is not a function"), e = i.node) {
|
|
2155
|
+
for (r = Xt(this, e.body, i.Va), n = _e(this), i = 0; i < t.F.length; i++)
|
|
2156
2156
|
this.g(n, i, t.F[i]);
|
|
2157
2157
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2158
2158
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2159
|
-
return r.S || (t.B =
|
|
2159
|
+
return r.S || (t.B = Vt(this, t.B)), this.g(r.object, "this", t.B, Qt), t.value = void 0, new w(e.body, r);
|
|
2160
2160
|
}
|
|
2161
2161
|
if (i.eval)
|
|
2162
2162
|
if (i = t.F[0], typeof i != "string")
|
|
2163
2163
|
t.value = i;
|
|
2164
2164
|
else {
|
|
2165
2165
|
try {
|
|
2166
|
-
n =
|
|
2166
|
+
n = De(String(i), "eval" + this.Hb++);
|
|
2167
2167
|
} catch (u) {
|
|
2168
|
-
|
|
2168
|
+
C(this, this.T, "Invalid code: " + u.message);
|
|
2169
2169
|
}
|
|
2170
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body,
|
|
2170
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, gt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = Xt(this, n, r) : tt(this, n, r), this.value = void 0, new w(i, r);
|
|
2171
2171
|
}
|
|
2172
2172
|
else if (i.Ta)
|
|
2173
|
-
t.scope.S || (t.B =
|
|
2173
|
+
t.scope.S || (t.B = Vt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2174
2174
|
else if (i.Za) {
|
|
2175
2175
|
var s = this;
|
|
2176
2176
|
n = i.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(u) {
|
|
2177
2177
|
t.value = u, s.za = !1;
|
|
2178
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2178
|
+
}), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), i.Za.apply(t.B, n);
|
|
2179
2179
|
} else
|
|
2180
|
-
|
|
2180
|
+
C(this, this.j, ie(this, r.callee) + " is not callable");
|
|
2181
2181
|
}
|
|
2182
2182
|
};
|
|
2183
2183
|
g.prototype.stepConditionalExpression = function(e, t, r) {
|
|
@@ -2223,13 +2223,13 @@ g.prototype.stepExpressionStatement = function(e, t, r) {
|
|
|
2223
2223
|
};
|
|
2224
2224
|
g.prototype.stepForInStatement = function(e, t, r) {
|
|
2225
2225
|
if (!t.Ub && (t.Ub = !0, r.left.fa && r.left.fa[0].ua))
|
|
2226
|
-
return t.scope.S &&
|
|
2226
|
+
return t.scope.S && C(this, this.T, "for-in loop variable declaration may not have an initializer"), new w(r.left, t.scope);
|
|
2227
2227
|
if (!t.Ca)
|
|
2228
2228
|
return t.Ca = !0, t.pa || (t.pa = t.value), new w(r.right, t.scope);
|
|
2229
2229
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2230
2230
|
e:
|
|
2231
2231
|
for (; ; ) {
|
|
2232
|
-
if (t.u instanceof
|
|
2232
|
+
if (t.u instanceof F)
|
|
2233
2233
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2234
2234
|
var n = t.wa.shift();
|
|
2235
2235
|
if (n === void 0)
|
|
@@ -2256,8 +2256,8 @@ g.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2256
2256
|
t.pa = [We, e.fa[0].id.name];
|
|
2257
2257
|
else
|
|
2258
2258
|
return t.pa = null, t = new w(e, t.scope), t.sa = !0, t;
|
|
2259
|
-
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n =
|
|
2260
|
-
return
|
|
2259
|
+
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = cn(this, t.pa, e)))
|
|
2260
|
+
return un(this, n, t.pa, e);
|
|
2261
2261
|
if (t.Ra = void 0, t.wb = !1, t.ta = !1, r.body)
|
|
2262
2262
|
return new w(r.body, t.scope);
|
|
2263
2263
|
};
|
|
@@ -2286,13 +2286,13 @@ g.prototype.stepFunctionDeclaration = function(e) {
|
|
|
2286
2286
|
e.pop();
|
|
2287
2287
|
};
|
|
2288
2288
|
g.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2289
|
-
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e =
|
|
2289
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = an(this, e)), t.value = rn(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, Qt);
|
|
2290
2290
|
};
|
|
2291
2291
|
g.prototype.stepIdentifier = function(e, t, r) {
|
|
2292
2292
|
if (e.pop(), t.sa)
|
|
2293
2293
|
e[e.length - 1].value = [We, r.name];
|
|
2294
2294
|
else {
|
|
2295
|
-
if (t =
|
|
2295
|
+
if (t = sn(this, r.name), this.P)
|
|
2296
2296
|
return ot(this, t, this.Na);
|
|
2297
2297
|
e[e.length - 1].value = t;
|
|
2298
2298
|
}
|
|
@@ -2302,7 +2302,7 @@ g.prototype.stepLabeledStatement = function(e, t, r) {
|
|
|
2302
2302
|
return e.pop(), e = t.labels || [], e.push(r.label.name), t = new w(r.body, t.scope), t.labels = e, t;
|
|
2303
2303
|
};
|
|
2304
2304
|
g.prototype.stepLiteral = function(e, t, r) {
|
|
2305
|
-
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma),
|
|
2305
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), tn(this, r, t), t = r), e[e.length - 1].value = t;
|
|
2306
2306
|
};
|
|
2307
2307
|
g.prototype.stepLogicalExpression = function(e, t, r) {
|
|
2308
2308
|
if (r.operator !== "&&" && r.operator !== "||")
|
|
@@ -2405,11 +2405,11 @@ g.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2405
2405
|
}
|
|
2406
2406
|
};
|
|
2407
2407
|
g.prototype.stepThisExpression = function(e) {
|
|
2408
|
-
e.pop(), e[e.length - 1].value =
|
|
2408
|
+
e.pop(), e[e.length - 1].value = sn(this, "this");
|
|
2409
2409
|
};
|
|
2410
2410
|
g.prototype.stepThrowStatement = function(e, t, r) {
|
|
2411
2411
|
if (t.ka)
|
|
2412
|
-
|
|
2412
|
+
C(this, t.value);
|
|
2413
2413
|
else
|
|
2414
2414
|
return t.ka = !0, new w(r.K, t.scope);
|
|
2415
2415
|
};
|
|
@@ -2417,7 +2417,7 @@ g.prototype.stepTryStatement = function(e, t, r) {
|
|
|
2417
2417
|
if (!t.Rb)
|
|
2418
2418
|
return t.Rb = !0, new w(r.block, t.scope);
|
|
2419
2419
|
if (t.ea && t.ea.type === 4 && !t.Tb && r.Ea)
|
|
2420
|
-
return t.Tb = !0, e =
|
|
2420
|
+
return t.Tb = !0, e = an(this, t.scope), this.g(e.object, r.Ea.Ua.name, t.ea.value), t.ea = void 0, new w(r.Ea.body, e);
|
|
2421
2421
|
if (!t.Sb && r.fb)
|
|
2422
2422
|
return t.Sb = !0, new w(r.fb, t.scope);
|
|
2423
2423
|
e.pop(), t.ea && it(this, t.ea.type, t.ea.value, t.ea.label);
|
|
@@ -2447,7 +2447,7 @@ g.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2447
2447
|
try {
|
|
2448
2448
|
delete i.h[n];
|
|
2449
2449
|
} catch {
|
|
2450
|
-
t.scope.S ?
|
|
2450
|
+
t.scope.S ? C(this, this.j, "Cannot delete property '" + n + "' of '" + i + "'") : r = !1;
|
|
2451
2451
|
}
|
|
2452
2452
|
}
|
|
2453
2453
|
n = r;
|
|
@@ -2467,7 +2467,7 @@ g.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2467
2467
|
if (!t.ja)
|
|
2468
2468
|
return t.ja = !0, e = new w(r.K, t.scope), e.sa = !0, e;
|
|
2469
2469
|
if (t.Ga || (t.Ga = t.value), t.Ba && (t.ma = t.value), !t.Ba) {
|
|
2470
|
-
var n =
|
|
2470
|
+
var n = ln(this, t.Ga);
|
|
2471
2471
|
if (t.ma = n, this.P)
|
|
2472
2472
|
return t.Ba = !0, ot(this, n, t.Ga);
|
|
2473
2473
|
}
|
|
@@ -2480,15 +2480,15 @@ g.prototype.stepUpdateExpression = function(e, t, r) {
|
|
|
2480
2480
|
i = n - 1;
|
|
2481
2481
|
else
|
|
2482
2482
|
throw SyntaxError("Unknown update expression: " + r.operator);
|
|
2483
|
-
if (r = r.prefix ? i : n, n =
|
|
2484
|
-
return t.ta = !0, t.ib = r,
|
|
2483
|
+
if (r = r.prefix ? i : n, n = cn(this, t.Ga, i))
|
|
2484
|
+
return t.ta = !0, t.ib = r, un(this, n, t.Ga, i);
|
|
2485
2485
|
e.pop(), e[e.length - 1].value = r;
|
|
2486
2486
|
}
|
|
2487
2487
|
};
|
|
2488
2488
|
g.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
2489
2489
|
r = r.fa;
|
|
2490
2490
|
var n = t.A || 0, i = r[n];
|
|
2491
|
-
for (t.Bb && i && (
|
|
2491
|
+
for (t.Bb && i && (hr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
2492
2492
|
if (i.ua)
|
|
2493
2493
|
return t.A = n, t.Bb = !0, t.Pa = i.id.name, new w(i.ua, t.scope);
|
|
2494
2494
|
i = r[++n];
|
|
@@ -2496,7 +2496,7 @@ g.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
|
2496
2496
|
e.pop();
|
|
2497
2497
|
};
|
|
2498
2498
|
g.prototype.stepWithStatement = function(e, t, r) {
|
|
2499
|
-
return t.Ca ? (e.pop(), e =
|
|
2499
|
+
return t.Ca ? (e.pop(), e = an(this, t.scope, t.value), new w(r.body, e)) : (t.Ca = !0, new w(r.object, t.scope));
|
|
2500
2500
|
};
|
|
2501
2501
|
g.prototype.stepWhileStatement = g.prototype.stepDoWhileStatement;
|
|
2502
2502
|
we.Interpreter = g;
|
|
@@ -2515,7 +2515,7 @@ g.prototype.getGlobalScope = g.prototype.Xb;
|
|
|
2515
2515
|
g.prototype.getStateStack = g.prototype.Yb;
|
|
2516
2516
|
g.prototype.setStateStack = g.prototype.ec;
|
|
2517
2517
|
g.VALUE_IN_DESCRIPTOR = et;
|
|
2518
|
-
const
|
|
2518
|
+
const mi = (e) => e.split(`
|
|
2519
2519
|
`).map((t) => {
|
|
2520
2520
|
const r = t.trim();
|
|
2521
2521
|
if (t.includes("__awaiter"))
|
|
@@ -2528,7 +2528,7 @@ const gi = (e) => e.split(`
|
|
|
2528
2528
|
${u}
|
|
2529
2529
|
`;
|
|
2530
2530
|
}).filter(Boolean).join(`
|
|
2531
|
-
`),
|
|
2531
|
+
`), Jn = (e) => e + "JSON", gi = ({
|
|
2532
2532
|
builder: e,
|
|
2533
2533
|
context: t,
|
|
2534
2534
|
event: r,
|
|
@@ -2540,46 +2540,46 @@ const gi = (e) => e.split(`
|
|
|
2540
2540
|
const u = {
|
|
2541
2541
|
...n,
|
|
2542
2542
|
...i
|
|
2543
|
-
}, f =
|
|
2543
|
+
}, f = cr({
|
|
2544
2544
|
builder: e,
|
|
2545
2545
|
context: t,
|
|
2546
2546
|
event: r,
|
|
2547
2547
|
state: u
|
|
2548
|
-
}), m = f.map(([
|
|
2549
|
-
const
|
|
2550
|
-
return `var ${
|
|
2548
|
+
}), m = f.map(([R]) => {
|
|
2549
|
+
const N = Jn(R);
|
|
2550
|
+
return `var ${R} = ${N} === undefined ? undefined : JSON.parse(${N});`;
|
|
2551
2551
|
}).join(`
|
|
2552
|
-
`), v =
|
|
2552
|
+
`), v = mi(s);
|
|
2553
2553
|
if (v === "") {
|
|
2554
2554
|
Ue.warn("Skipping evaluation of empty code block.");
|
|
2555
2555
|
return;
|
|
2556
2556
|
}
|
|
2557
|
-
const
|
|
2557
|
+
const y = `
|
|
2558
2558
|
function theFunction() {
|
|
2559
2559
|
${m}
|
|
2560
2560
|
|
|
2561
2561
|
${v}
|
|
2562
2562
|
}
|
|
2563
2563
|
theFunction();
|
|
2564
|
-
`, U = (
|
|
2565
|
-
const
|
|
2566
|
-
a == null || a(
|
|
2567
|
-
},
|
|
2568
|
-
f.forEach(([
|
|
2569
|
-
const
|
|
2570
|
-
|
|
2571
|
-
}),
|
|
2564
|
+
`, U = (R, N) => {
|
|
2565
|
+
const V = ur(u, R, N);
|
|
2566
|
+
a == null || a(V);
|
|
2567
|
+
}, B = function(R, N) {
|
|
2568
|
+
f.forEach(([V, Y]) => {
|
|
2569
|
+
const b = JSON.stringify(Y);
|
|
2570
|
+
R.setProperty(N, Jn(V), b);
|
|
2571
|
+
}), R.setProperty(N, "setRootState", R.createNativeFunction(U));
|
|
2572
2572
|
};
|
|
2573
2573
|
try {
|
|
2574
|
-
const
|
|
2575
|
-
return
|
|
2576
|
-
} catch (
|
|
2574
|
+
const R = new g(y, B);
|
|
2575
|
+
return R.run(), R.pseudoToNative(R.value);
|
|
2576
|
+
} catch (R) {
|
|
2577
2577
|
Ue.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2578
|
-
e:
|
|
2578
|
+
e: R
|
|
2579
2579
|
});
|
|
2580
2580
|
return;
|
|
2581
2581
|
}
|
|
2582
|
-
},
|
|
2582
|
+
}, vi = (e) => je() ? qr(e) : gi(e);
|
|
2583
2583
|
function nt({
|
|
2584
2584
|
code: e,
|
|
2585
2585
|
context: t,
|
|
@@ -2594,10 +2594,10 @@ function nt({
|
|
|
2594
2594
|
return;
|
|
2595
2595
|
}
|
|
2596
2596
|
const u = {
|
|
2597
|
-
code:
|
|
2597
|
+
code: Jr(e, {
|
|
2598
2598
|
isExpression: s
|
|
2599
2599
|
}),
|
|
2600
|
-
builder:
|
|
2600
|
+
builder: Yr(),
|
|
2601
2601
|
context: t,
|
|
2602
2602
|
event: a,
|
|
2603
2603
|
rootSetState: i,
|
|
@@ -2605,7 +2605,7 @@ function nt({
|
|
|
2605
2605
|
localState: r
|
|
2606
2606
|
};
|
|
2607
2607
|
try {
|
|
2608
|
-
return
|
|
2608
|
+
return vi(u);
|
|
2609
2609
|
} catch (f) {
|
|
2610
2610
|
Ue.error("Failed code evaluation: " + f.message, {
|
|
2611
2611
|
code: e
|
|
@@ -2613,7 +2613,7 @@ function nt({
|
|
|
2613
2613
|
return;
|
|
2614
2614
|
}
|
|
2615
2615
|
}
|
|
2616
|
-
const
|
|
2616
|
+
const yi = ({
|
|
2617
2617
|
block: e,
|
|
2618
2618
|
context: t,
|
|
2619
2619
|
localState: r,
|
|
@@ -2622,7 +2622,7 @@ const bi = ({
|
|
|
2622
2622
|
}) => {
|
|
2623
2623
|
if (!e.bindings)
|
|
2624
2624
|
return e;
|
|
2625
|
-
const a =
|
|
2625
|
+
const a = qt(e), s = {
|
|
2626
2626
|
...a,
|
|
2627
2627
|
properties: {
|
|
2628
2628
|
...a.properties
|
|
@@ -2639,7 +2639,7 @@ const bi = ({
|
|
|
2639
2639
|
rootSetState: i,
|
|
2640
2640
|
context: t
|
|
2641
2641
|
});
|
|
2642
|
-
|
|
2642
|
+
ur(s, u, m);
|
|
2643
2643
|
}
|
|
2644
2644
|
return s;
|
|
2645
2645
|
};
|
|
@@ -2652,7 +2652,7 @@ function mt({
|
|
|
2652
2652
|
rootSetState: a
|
|
2653
2653
|
}) {
|
|
2654
2654
|
const s = e;
|
|
2655
|
-
return r ?
|
|
2655
|
+
return r ? yi({
|
|
2656
2656
|
block: s,
|
|
2657
2657
|
localState: n,
|
|
2658
2658
|
rootState: i,
|
|
@@ -2660,7 +2660,7 @@ function mt({
|
|
|
2660
2660
|
context: t
|
|
2661
2661
|
}) : s;
|
|
2662
2662
|
}
|
|
2663
|
-
const
|
|
2663
|
+
const bi = ({
|
|
2664
2664
|
block: e,
|
|
2665
2665
|
context: t,
|
|
2666
2666
|
registeredComponents: r
|
|
@@ -2682,7 +2682,7 @@ const xi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2682
2682
|
console.warn(`
|
|
2683
2683
|
Could not find a registered component named "${n}".
|
|
2684
2684
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2685
|
-
},
|
|
2685
|
+
}, xi = ({
|
|
2686
2686
|
block: e,
|
|
2687
2687
|
context: t
|
|
2688
2688
|
}) => {
|
|
@@ -2715,7 +2715,7 @@ const xi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2715
2715
|
},
|
|
2716
2716
|
block: n
|
|
2717
2717
|
}));
|
|
2718
|
-
},
|
|
2718
|
+
}, gr = {
|
|
2719
2719
|
small: {
|
|
2720
2720
|
min: 320,
|
|
2721
2721
|
default: 321,
|
|
@@ -2731,11 +2731,11 @@ const xi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2731
2731
|
default: 991,
|
|
2732
2732
|
max: 1200
|
|
2733
2733
|
}
|
|
2734
|
-
},
|
|
2734
|
+
}, qn = (e, t = gr) => `@media (max-width: ${t[e].max}px)`, vr = ({
|
|
2735
2735
|
small: e,
|
|
2736
2736
|
medium: t
|
|
2737
2737
|
}) => {
|
|
2738
|
-
const r =
|
|
2738
|
+
const r = qt(gr);
|
|
2739
2739
|
if (!e || !t)
|
|
2740
2740
|
return r;
|
|
2741
2741
|
const n = Math.floor(e / 2);
|
|
@@ -2757,26 +2757,26 @@ const xi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2757
2757
|
min: a,
|
|
2758
2758
|
default: a + 1
|
|
2759
2759
|
}, r;
|
|
2760
|
-
},
|
|
2760
|
+
}, Si = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), yr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2761
2761
|
if (typeof n == "string")
|
|
2762
|
-
return `${
|
|
2763
|
-
}).filter(
|
|
2764
|
-
`),
|
|
2762
|
+
return `${Si(r)}: ${n};`;
|
|
2763
|
+
}).filter(Kt), wi = (e) => yr(e).join(`
|
|
2764
|
+
`), $t = ({
|
|
2765
2765
|
mediaQuery: e,
|
|
2766
2766
|
className: t,
|
|
2767
2767
|
styles: r
|
|
2768
2768
|
}) => {
|
|
2769
2769
|
const n = `.${t} {
|
|
2770
|
-
${
|
|
2770
|
+
${wi(r)}
|
|
2771
2771
|
}`;
|
|
2772
2772
|
return e ? `${e} {
|
|
2773
2773
|
${n}
|
|
2774
2774
|
}` : n;
|
|
2775
2775
|
};
|
|
2776
|
-
function
|
|
2776
|
+
function yt(e) {
|
|
2777
2777
|
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2779
|
+
function ki(e) {
|
|
2780
2780
|
function t() {
|
|
2781
2781
|
const n = mt({
|
|
2782
2782
|
block: e.block,
|
|
@@ -2786,10 +2786,10 @@ function Ei(e) {
|
|
|
2786
2786
|
context: e.context.context,
|
|
2787
2787
|
shouldEvaluateBindings: !0
|
|
2788
2788
|
});
|
|
2789
|
-
return
|
|
2789
|
+
return Kt(n.hide) ? !n.hide : Kt(n.show) ? n.show : !0;
|
|
2790
2790
|
}
|
|
2791
2791
|
function r() {
|
|
2792
|
-
var
|
|
2792
|
+
var R;
|
|
2793
2793
|
const n = mt({
|
|
2794
2794
|
block: e.block,
|
|
2795
2795
|
localState: e.context.localState,
|
|
@@ -2797,37 +2797,37 @@ function Ei(e) {
|
|
|
2797
2797
|
rootSetState: e.context.rootSetState,
|
|
2798
2798
|
context: e.context.context,
|
|
2799
2799
|
shouldEvaluateBindings: !0
|
|
2800
|
-
}), i = n.responsiveStyles, a = e.context.content, s =
|
|
2801
|
-
((
|
|
2800
|
+
}), i = n.responsiveStyles, a = e.context.content, s = vr(
|
|
2801
|
+
((R = a == null ? void 0 : a.meta) == null ? void 0 : R.breakpoints) || {}
|
|
2802
2802
|
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, m = i == null ? void 0 : i.small, v = n.id;
|
|
2803
2803
|
if (!v)
|
|
2804
2804
|
return "";
|
|
2805
|
-
const
|
|
2805
|
+
const y = u ? $t({
|
|
2806
2806
|
className: v,
|
|
2807
2807
|
styles: u
|
|
2808
|
-
}) : "", U = f ?
|
|
2808
|
+
}) : "", U = f ? $t({
|
|
2809
2809
|
className: v,
|
|
2810
2810
|
styles: f,
|
|
2811
|
-
mediaQuery:
|
|
2811
|
+
mediaQuery: qn(
|
|
2812
2812
|
"medium",
|
|
2813
2813
|
s
|
|
2814
2814
|
)
|
|
2815
|
-
}) : "",
|
|
2815
|
+
}) : "", B = m ? $t({
|
|
2816
2816
|
className: v,
|
|
2817
2817
|
styles: m,
|
|
2818
|
-
mediaQuery:
|
|
2818
|
+
mediaQuery: qn(
|
|
2819
2819
|
"small",
|
|
2820
2820
|
s
|
|
2821
2821
|
)
|
|
2822
2822
|
}) : "";
|
|
2823
|
-
return [
|
|
2823
|
+
return [y, U, B].join(" ");
|
|
2824
2824
|
}
|
|
2825
|
-
return /* @__PURE__ */ p(
|
|
2825
|
+
return /* @__PURE__ */ p(P, { children: r() && t() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: r() }) }) : null });
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function Ci(e) {
|
|
2828
2828
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2829
2829
|
}
|
|
2830
|
-
const
|
|
2830
|
+
const Ei = (e) => `on${Ci(e)}`, Ii = (e, t) => (r) => nt({
|
|
2831
2831
|
code: e,
|
|
2832
2832
|
context: t.context,
|
|
2833
2833
|
localState: t.localState,
|
|
@@ -2836,14 +2836,14 @@ const Ti = (e) => `on${Ii(e)}`, ji = (e, t) => (r) => nt({
|
|
|
2836
2836
|
event: r,
|
|
2837
2837
|
isExpression: !1
|
|
2838
2838
|
});
|
|
2839
|
-
function
|
|
2839
|
+
function br(e) {
|
|
2840
2840
|
var n;
|
|
2841
2841
|
const t = {}, r = (n = e.block.actions) != null ? n : {};
|
|
2842
2842
|
for (const i in r) {
|
|
2843
2843
|
if (!r.hasOwnProperty(i))
|
|
2844
2844
|
continue;
|
|
2845
2845
|
const a = r[i];
|
|
2846
|
-
let s =
|
|
2846
|
+
let s = Ei(i);
|
|
2847
2847
|
if (e.stripPrefix)
|
|
2848
2848
|
switch (rt) {
|
|
2849
2849
|
case "vue":
|
|
@@ -2853,42 +2853,42 @@ function qt(e) {
|
|
|
2853
2853
|
s = s.replace("on:", "");
|
|
2854
2854
|
break;
|
|
2855
2855
|
}
|
|
2856
|
-
t[s] =
|
|
2856
|
+
t[s] = Ii(a, e);
|
|
2857
2857
|
}
|
|
2858
2858
|
return t;
|
|
2859
2859
|
}
|
|
2860
|
-
function
|
|
2860
|
+
function Ti({
|
|
2861
2861
|
properties: e
|
|
2862
2862
|
}) {
|
|
2863
2863
|
return e.className = e.class, delete e.class, e;
|
|
2864
2864
|
}
|
|
2865
|
-
const
|
|
2865
|
+
const ji = (e) => ({
|
|
2866
2866
|
href: e.href
|
|
2867
2867
|
});
|
|
2868
|
-
function
|
|
2868
|
+
function dn({
|
|
2869
2869
|
block: e,
|
|
2870
2870
|
context: t
|
|
2871
2871
|
}) {
|
|
2872
2872
|
var n;
|
|
2873
2873
|
const r = {
|
|
2874
|
-
...
|
|
2874
|
+
...ji(e),
|
|
2875
2875
|
...e.properties,
|
|
2876
2876
|
"builder-id": e.id,
|
|
2877
|
-
style: e.style ?
|
|
2877
|
+
style: e.style ? Ai(e.style) : void 0,
|
|
2878
2878
|
class: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2879
2879
|
};
|
|
2880
|
-
return
|
|
2880
|
+
return Ti({
|
|
2881
2881
|
properties: r,
|
|
2882
2882
|
context: t,
|
|
2883
2883
|
block: e
|
|
2884
2884
|
});
|
|
2885
2885
|
}
|
|
2886
|
-
function
|
|
2886
|
+
function Ai(e) {
|
|
2887
2887
|
switch (rt) {
|
|
2888
2888
|
case "svelte":
|
|
2889
2889
|
case "vue":
|
|
2890
2890
|
case "solid":
|
|
2891
|
-
return
|
|
2891
|
+
return yr(e).join(" ");
|
|
2892
2892
|
case "qwik":
|
|
2893
2893
|
case "reactNative":
|
|
2894
2894
|
case "react":
|
|
@@ -2896,61 +2896,42 @@ function Oi(e) {
|
|
|
2896
2896
|
return e;
|
|
2897
2897
|
}
|
|
2898
2898
|
}
|
|
2899
|
-
|
|
2900
|
-
return /* @__PURE__ */ te(N, { children: [
|
|
2901
|
-
" ",
|
|
2902
|
-
e.hasChildren ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ te(
|
|
2903
|
-
e.Wrapper,
|
|
2904
|
-
{
|
|
2905
|
-
...gt({
|
|
2906
|
-
block: e.block,
|
|
2907
|
-
context: e.context
|
|
2908
|
-
}),
|
|
2909
|
-
...qt({
|
|
2910
|
-
block: e.block,
|
|
2911
|
-
rootState: e.context.rootState,
|
|
2912
|
-
rootSetState: e.context.rootSetState,
|
|
2913
|
-
localState: e.context.localState,
|
|
2914
|
-
context: e.context.context,
|
|
2915
|
-
stripPrefix: !0
|
|
2916
|
-
}),
|
|
2917
|
-
children: [
|
|
2918
|
-
" ",
|
|
2919
|
-
e.children,
|
|
2920
|
-
" "
|
|
2921
|
-
]
|
|
2922
|
-
}
|
|
2923
|
-
) }) : /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
2924
|
-
e.Wrapper,
|
|
2925
|
-
{
|
|
2926
|
-
...gt({
|
|
2927
|
-
block: e.block,
|
|
2928
|
-
context: e.context
|
|
2929
|
-
}),
|
|
2930
|
-
...qt({
|
|
2931
|
-
block: e.block,
|
|
2932
|
-
rootState: e.context.rootState,
|
|
2933
|
-
rootSetState: e.context.rootSetState,
|
|
2934
|
-
localState: e.context.localState,
|
|
2935
|
-
context: e.context.context,
|
|
2936
|
-
stripPrefix: !0
|
|
2937
|
-
})
|
|
2938
|
-
}
|
|
2939
|
-
) }),
|
|
2940
|
-
" "
|
|
2941
|
-
] });
|
|
2942
|
-
}
|
|
2899
|
+
const Ri = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Oi = (e) => typeof e == "string" && Ri.has(e.toLowerCase());
|
|
2943
2900
|
function Pi(e) {
|
|
2901
|
+
return /* @__PURE__ */ p(P, { children: Oi(e.TagName) ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ p(P, { children: typeof e.TagName == "string" ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
2902
|
+
}
|
|
2903
|
+
function Ni(e) {
|
|
2904
|
+
return /* @__PURE__ */ p(
|
|
2905
|
+
Pi,
|
|
2906
|
+
{
|
|
2907
|
+
TagName: e.Wrapper,
|
|
2908
|
+
attributes: dn({
|
|
2909
|
+
block: e.block,
|
|
2910
|
+
context: e.context
|
|
2911
|
+
}),
|
|
2912
|
+
actionAttributes: br({
|
|
2913
|
+
block: e.block,
|
|
2914
|
+
rootState: e.context.rootState,
|
|
2915
|
+
rootSetState: e.context.rootSetState,
|
|
2916
|
+
localState: e.context.localState,
|
|
2917
|
+
context: e.context.context,
|
|
2918
|
+
stripPrefix: !0
|
|
2919
|
+
}),
|
|
2920
|
+
children: e.children
|
|
2921
|
+
}
|
|
2922
|
+
);
|
|
2923
|
+
}
|
|
2924
|
+
function Mi(e) {
|
|
2944
2925
|
return /* @__PURE__ */ p(
|
|
2945
2926
|
e.Wrapper,
|
|
2946
2927
|
{
|
|
2947
2928
|
...e.wrapperProps,
|
|
2948
2929
|
attributes: e.includeBlockProps ? {
|
|
2949
|
-
...
|
|
2930
|
+
...dn({
|
|
2950
2931
|
block: e.block,
|
|
2951
2932
|
context: e.context
|
|
2952
2933
|
}),
|
|
2953
|
-
...
|
|
2934
|
+
...br({
|
|
2954
2935
|
block: e.block,
|
|
2955
2936
|
rootState: e.context.rootState,
|
|
2956
2937
|
rootSetState: e.context.rootSetState,
|
|
@@ -2962,7 +2943,7 @@ function Pi(e) {
|
|
|
2962
2943
|
}
|
|
2963
2944
|
);
|
|
2964
2945
|
}
|
|
2965
|
-
const
|
|
2946
|
+
const Bi = ({
|
|
2966
2947
|
componentOptions: e,
|
|
2967
2948
|
builderBlock: t,
|
|
2968
2949
|
context: r,
|
|
@@ -2978,7 +2959,7 @@ const Ni = ({
|
|
|
2978
2959
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2979
2960
|
*/
|
|
2980
2961
|
...i ? {
|
|
2981
|
-
attributes:
|
|
2962
|
+
attributes: dn({
|
|
2982
2963
|
block: t,
|
|
2983
2964
|
context: s
|
|
2984
2965
|
})
|
|
@@ -2992,15 +2973,15 @@ const Ni = ({
|
|
|
2992
2973
|
includeBlockProps: i
|
|
2993
2974
|
} : u;
|
|
2994
2975
|
};
|
|
2995
|
-
function
|
|
2976
|
+
function Zn(e) {
|
|
2996
2977
|
var n;
|
|
2997
|
-
const [t, r] =
|
|
2998
|
-
() => e.isInteractive ?
|
|
2978
|
+
const [t, r] = L(
|
|
2979
|
+
() => e.isInteractive ? Mi : e.componentRef
|
|
2999
2980
|
);
|
|
3000
|
-
return /* @__PURE__ */ p(
|
|
2981
|
+
return /* @__PURE__ */ p(P, { children: e.componentRef ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3001
2982
|
t,
|
|
3002
2983
|
{
|
|
3003
|
-
...
|
|
2984
|
+
...Bi({
|
|
3004
2985
|
componentOptions: e.componentOptions,
|
|
3005
2986
|
builderBlock: e.builderBlock,
|
|
3006
2987
|
context: e.context,
|
|
@@ -3010,7 +2991,7 @@ function tr(e) {
|
|
|
3010
2991
|
contextValue: e.context
|
|
3011
2992
|
}),
|
|
3012
2993
|
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ p(
|
|
3013
|
-
|
|
2994
|
+
bt,
|
|
3014
2995
|
{
|
|
3015
2996
|
block: i,
|
|
3016
2997
|
context: e.context,
|
|
@@ -3021,10 +3002,10 @@ function tr(e) {
|
|
|
3021
3002
|
}
|
|
3022
3003
|
) }) : null });
|
|
3023
3004
|
}
|
|
3024
|
-
function
|
|
3025
|
-
const [t, r] =
|
|
3026
|
-
return /* @__PURE__ */ p(
|
|
3027
|
-
|
|
3005
|
+
function Fi(e) {
|
|
3006
|
+
const [t, r] = L(() => e.repeatContext);
|
|
3007
|
+
return /* @__PURE__ */ p(Zt.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3008
|
+
bt,
|
|
3028
3009
|
{
|
|
3029
3010
|
block: e.block,
|
|
3030
3011
|
context: t,
|
|
@@ -3032,24 +3013,24 @@ function Mi(e) {
|
|
|
3032
3013
|
}
|
|
3033
3014
|
) });
|
|
3034
3015
|
}
|
|
3035
|
-
function
|
|
3036
|
-
var v,
|
|
3016
|
+
function bt(e) {
|
|
3017
|
+
var v, y, U;
|
|
3037
3018
|
function t() {
|
|
3038
|
-
return
|
|
3019
|
+
return bi({
|
|
3039
3020
|
block: e.block,
|
|
3040
3021
|
context: e.context,
|
|
3041
3022
|
registeredComponents: e.registeredComponents
|
|
3042
3023
|
});
|
|
3043
3024
|
}
|
|
3044
3025
|
function r() {
|
|
3045
|
-
return
|
|
3026
|
+
return xi({
|
|
3046
3027
|
block: e.block,
|
|
3047
3028
|
context: e.context
|
|
3048
3029
|
});
|
|
3049
3030
|
}
|
|
3050
3031
|
function n() {
|
|
3051
|
-
var
|
|
3052
|
-
return (
|
|
3032
|
+
var B;
|
|
3033
|
+
return (B = e.block.repeat) != null && B.collection ? e.block : mt({
|
|
3053
3034
|
block: e.block,
|
|
3054
3035
|
localState: e.context.localState,
|
|
3055
3036
|
rootState: e.context.rootState,
|
|
@@ -3062,25 +3043,25 @@ function xt(e) {
|
|
|
3062
3043
|
return e.block.tagName || "div";
|
|
3063
3044
|
}
|
|
3064
3045
|
function a() {
|
|
3065
|
-
var
|
|
3066
|
-
if ((
|
|
3067
|
-
return !!((
|
|
3068
|
-
const
|
|
3069
|
-
return ("show" in n() ? n().show : !0) && !
|
|
3046
|
+
var N, V;
|
|
3047
|
+
if ((N = e.block.repeat) != null && N.collection)
|
|
3048
|
+
return !!((V = r == null ? void 0 : r()) != null && V.length);
|
|
3049
|
+
const B = "hide" in n() ? n().hide : !1;
|
|
3050
|
+
return ("show" in n() ? n().show : !0) && !B;
|
|
3070
3051
|
}
|
|
3071
3052
|
function s() {
|
|
3072
|
-
var
|
|
3073
|
-
return !((
|
|
3053
|
+
var R, N;
|
|
3054
|
+
return !((R = t == null ? void 0 : t()) != null && R.component) && !r() ? (N = n().children) != null ? N : [] : [];
|
|
3074
3055
|
}
|
|
3075
3056
|
function u() {
|
|
3076
|
-
var
|
|
3057
|
+
var B, R, N, V, Y, b;
|
|
3077
3058
|
return {
|
|
3078
|
-
blockChildren: (
|
|
3079
|
-
componentRef: (
|
|
3059
|
+
blockChildren: (B = n().children) != null ? B : [],
|
|
3060
|
+
componentRef: (R = t == null ? void 0 : t()) == null ? void 0 : R.component,
|
|
3080
3061
|
componentOptions: {
|
|
3081
|
-
...
|
|
3062
|
+
...Xr(n()),
|
|
3082
3063
|
builderContext: e.context,
|
|
3083
|
-
...((
|
|
3064
|
+
...((N = t == null ? void 0 : t()) == null ? void 0 : N.name) === "Symbol" || ((V = t == null ? void 0 : t()) == null ? void 0 : V.name) === "Columns" ? {
|
|
3084
3065
|
builderComponents: e.registeredComponents
|
|
3085
3066
|
} : {}
|
|
3086
3067
|
},
|
|
@@ -3088,14 +3069,14 @@ function xt(e) {
|
|
|
3088
3069
|
registeredComponents: e.registeredComponents,
|
|
3089
3070
|
builderBlock: n(),
|
|
3090
3071
|
includeBlockProps: ((Y = t == null ? void 0 : t()) == null ? void 0 : Y.noWrap) === !0,
|
|
3091
|
-
isInteractive: !((
|
|
3072
|
+
isInteractive: !((b = t == null ? void 0 : t()) != null && b.isRSC)
|
|
3092
3073
|
};
|
|
3093
3074
|
}
|
|
3094
|
-
const [f, m] =
|
|
3095
|
-
return /* @__PURE__ */ p(
|
|
3096
|
-
/* @__PURE__ */ p(
|
|
3097
|
-
(v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(
|
|
3098
|
-
|
|
3075
|
+
const [f, m] = L(() => e.context);
|
|
3076
|
+
return /* @__PURE__ */ p(P, { children: a() ? /* @__PURE__ */ se(P, { children: [
|
|
3077
|
+
/* @__PURE__ */ p(ki, { block: e.block, context: e.context }),
|
|
3078
|
+
(v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3079
|
+
Zn,
|
|
3099
3080
|
{
|
|
3100
3081
|
componentRef: u().componentRef,
|
|
3101
3082
|
componentOptions: u().componentOptions,
|
|
@@ -3106,62 +3087,49 @@ function xt(e) {
|
|
|
3106
3087
|
includeBlockProps: u().includeBlockProps,
|
|
3107
3088
|
isInteractive: u().isInteractive
|
|
3108
3089
|
}
|
|
3109
|
-
) }) : /* @__PURE__ */
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
(U = s()) == null ? void 0 : U.map((F) => /* @__PURE__ */ p(
|
|
3150
|
-
xt,
|
|
3151
|
-
{
|
|
3152
|
-
block: F,
|
|
3153
|
-
context: f,
|
|
3154
|
-
registeredComponents: e.registeredComponents
|
|
3155
|
-
},
|
|
3156
|
-
F.id
|
|
3157
|
-
))
|
|
3158
|
-
]
|
|
3159
|
-
}
|
|
3160
|
-
) }) : null
|
|
3161
|
-
] })
|
|
3090
|
+
) }) : /* @__PURE__ */ p(P, { children: r() ? /* @__PURE__ */ p(P, { children: (U = r()) == null ? void 0 : U.map((B, R) => /* @__PURE__ */ p(
|
|
3091
|
+
Fi,
|
|
3092
|
+
{
|
|
3093
|
+
repeatContext: B.context,
|
|
3094
|
+
block: B.block,
|
|
3095
|
+
registeredComponents: e.registeredComponents
|
|
3096
|
+
},
|
|
3097
|
+
R
|
|
3098
|
+
)) }) : /* @__PURE__ */ p(P, { children: /* @__PURE__ */ se(
|
|
3099
|
+
Ni,
|
|
3100
|
+
{
|
|
3101
|
+
Wrapper: i(),
|
|
3102
|
+
block: n(),
|
|
3103
|
+
context: e.context,
|
|
3104
|
+
children: [
|
|
3105
|
+
/* @__PURE__ */ p(
|
|
3106
|
+
Zn,
|
|
3107
|
+
{
|
|
3108
|
+
componentRef: u().componentRef,
|
|
3109
|
+
componentOptions: u().componentOptions,
|
|
3110
|
+
blockChildren: u().blockChildren,
|
|
3111
|
+
context: u().context,
|
|
3112
|
+
registeredComponents: u().registeredComponents,
|
|
3113
|
+
builderBlock: u().builderBlock,
|
|
3114
|
+
includeBlockProps: u().includeBlockProps,
|
|
3115
|
+
isInteractive: u().isInteractive
|
|
3116
|
+
}
|
|
3117
|
+
),
|
|
3118
|
+
(y = s()) == null ? void 0 : y.map((B) => /* @__PURE__ */ p(
|
|
3119
|
+
bt,
|
|
3120
|
+
{
|
|
3121
|
+
block: B,
|
|
3122
|
+
context: f,
|
|
3123
|
+
registeredComponents: e.registeredComponents
|
|
3124
|
+
},
|
|
3125
|
+
B.id
|
|
3126
|
+
))
|
|
3127
|
+
]
|
|
3128
|
+
}
|
|
3129
|
+
) }) })
|
|
3162
3130
|
] }) : null });
|
|
3163
3131
|
}
|
|
3164
|
-
function
|
|
3132
|
+
function Ui(e) {
|
|
3165
3133
|
function t() {
|
|
3166
3134
|
var i;
|
|
3167
3135
|
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
@@ -3192,7 +3160,7 @@ function Bi(e) {
|
|
|
3192
3160
|
"*"
|
|
3193
3161
|
));
|
|
3194
3162
|
}
|
|
3195
|
-
return /* @__PURE__ */
|
|
3163
|
+
return /* @__PURE__ */ se(P, { children: [
|
|
3196
3164
|
/* @__PURE__ */ p(
|
|
3197
3165
|
e.BlocksWrapper,
|
|
3198
3166
|
{
|
|
@@ -3214,11 +3182,11 @@ function Bi(e) {
|
|
|
3214
3182
|
}` })
|
|
3215
3183
|
] });
|
|
3216
3184
|
}
|
|
3217
|
-
function
|
|
3185
|
+
function xt(e) {
|
|
3218
3186
|
var n, i, a;
|
|
3219
|
-
const t =
|
|
3187
|
+
const t = Ln(Zt), r = Ln(lr);
|
|
3220
3188
|
return /* @__PURE__ */ p(
|
|
3221
|
-
|
|
3189
|
+
Ui,
|
|
3222
3190
|
{
|
|
3223
3191
|
blocks: e.blocks,
|
|
3224
3192
|
parent: e.parent,
|
|
@@ -3226,8 +3194,8 @@ function St(e) {
|
|
|
3226
3194
|
styleProp: e.styleProp,
|
|
3227
3195
|
BlocksWrapper: (n = e.context) == null ? void 0 : n.BlocksWrapper,
|
|
3228
3196
|
BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
|
|
3229
|
-
children: e.blocks ? /* @__PURE__ */ p(
|
|
3230
|
-
|
|
3197
|
+
children: e.blocks ? /* @__PURE__ */ p(P, { children: (a = e.blocks) == null ? void 0 : a.map((s) => /* @__PURE__ */ p(
|
|
3198
|
+
bt,
|
|
3231
3199
|
{
|
|
3232
3200
|
block: s,
|
|
3233
3201
|
context: e.context || t,
|
|
@@ -3238,77 +3206,77 @@ function St(e) {
|
|
|
3238
3206
|
}
|
|
3239
3207
|
);
|
|
3240
3208
|
}
|
|
3241
|
-
function
|
|
3209
|
+
function Di(e) {
|
|
3242
3210
|
var Y;
|
|
3243
|
-
const [t, r] =
|
|
3211
|
+
const [t, r] = L(
|
|
3244
3212
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3245
|
-
), [n, i] =
|
|
3213
|
+
), [n, i] = L(() => e.columns || []), [a, s] = L(
|
|
3246
3214
|
() => e.stackColumnsAt || "tablet"
|
|
3247
3215
|
);
|
|
3248
|
-
function u(
|
|
3216
|
+
function u(b) {
|
|
3249
3217
|
var K;
|
|
3250
|
-
return ((K = n[
|
|
3218
|
+
return ((K = n[b]) == null ? void 0 : K.width) || 100 / n.length;
|
|
3251
3219
|
}
|
|
3252
|
-
function f(
|
|
3220
|
+
function f(b) {
|
|
3253
3221
|
const K = t * (n.length - 1) / n.length;
|
|
3254
|
-
return `calc(${u(
|
|
3222
|
+
return `calc(${u(b)}% - ${K}px)`;
|
|
3255
3223
|
}
|
|
3256
3224
|
function m({
|
|
3257
|
-
stackedStyle:
|
|
3225
|
+
stackedStyle: b,
|
|
3258
3226
|
desktopStyle: K
|
|
3259
3227
|
}) {
|
|
3260
|
-
return a === "tablet" ?
|
|
3228
|
+
return a === "tablet" ? b : K;
|
|
3261
3229
|
}
|
|
3262
3230
|
function v({
|
|
3263
|
-
stackedStyle:
|
|
3231
|
+
stackedStyle: b,
|
|
3264
3232
|
desktopStyle: K
|
|
3265
3233
|
}) {
|
|
3266
|
-
return a === "never" ? K :
|
|
3234
|
+
return a === "never" ? K : b;
|
|
3267
3235
|
}
|
|
3268
|
-
const [
|
|
3236
|
+
const [y, U] = L(
|
|
3269
3237
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3270
3238
|
);
|
|
3271
|
-
function
|
|
3239
|
+
function B() {
|
|
3272
3240
|
return {
|
|
3273
|
-
"--flex-dir":
|
|
3241
|
+
"--flex-dir": y,
|
|
3274
3242
|
"--flex-dir-tablet": m({
|
|
3275
|
-
stackedStyle:
|
|
3243
|
+
stackedStyle: y,
|
|
3276
3244
|
desktopStyle: "row"
|
|
3277
3245
|
})
|
|
3278
3246
|
};
|
|
3279
3247
|
}
|
|
3280
|
-
function
|
|
3281
|
-
const K =
|
|
3248
|
+
function R(b) {
|
|
3249
|
+
const K = b === 0 ? 0 : t, te = f(b), le = `${K}px`, $ = "100%", ne = 0;
|
|
3282
3250
|
return {
|
|
3283
|
-
width:
|
|
3251
|
+
width: te,
|
|
3284
3252
|
["marginLeft"]: le,
|
|
3285
3253
|
"--column-width-mobile": v({
|
|
3286
3254
|
stackedStyle: $,
|
|
3287
|
-
desktopStyle:
|
|
3255
|
+
desktopStyle: te
|
|
3288
3256
|
}),
|
|
3289
3257
|
"--column-margin-left-mobile": v({
|
|
3290
|
-
stackedStyle:
|
|
3258
|
+
stackedStyle: ne,
|
|
3291
3259
|
desktopStyle: le
|
|
3292
3260
|
}),
|
|
3293
3261
|
"--column-width-tablet": m({
|
|
3294
3262
|
stackedStyle: $,
|
|
3295
|
-
desktopStyle:
|
|
3263
|
+
desktopStyle: te
|
|
3296
3264
|
}),
|
|
3297
3265
|
"--column-margin-left-tablet": m({
|
|
3298
|
-
stackedStyle:
|
|
3266
|
+
stackedStyle: ne,
|
|
3299
3267
|
desktopStyle: le
|
|
3300
3268
|
})
|
|
3301
3269
|
};
|
|
3302
3270
|
}
|
|
3303
|
-
function
|
|
3304
|
-
var
|
|
3305
|
-
return
|
|
3306
|
-
((le = (
|
|
3307
|
-
)[
|
|
3271
|
+
function N(b) {
|
|
3272
|
+
var te, le;
|
|
3273
|
+
return vr(
|
|
3274
|
+
((le = (te = e.builderContext.content) == null ? void 0 : te.meta) == null ? void 0 : le.breakpoints) || {}
|
|
3275
|
+
)[b].max;
|
|
3308
3276
|
}
|
|
3309
|
-
function
|
|
3277
|
+
function V() {
|
|
3310
3278
|
return `
|
|
3311
|
-
@media (max-width: ${
|
|
3279
|
+
@media (max-width: ${N("medium")}px) {
|
|
3312
3280
|
.${e.builderBlock.id}-breakpoints {
|
|
3313
3281
|
flex-direction: var(--flex-dir-tablet);
|
|
3314
3282
|
align-items: stretch;
|
|
@@ -3320,7 +3288,7 @@ function Fi(e) {
|
|
|
3320
3288
|
}
|
|
3321
3289
|
}
|
|
3322
3290
|
|
|
3323
|
-
@media (max-width: ${
|
|
3291
|
+
@media (max-width: ${N("small")}px) {
|
|
3324
3292
|
.${e.builderBlock.id}-breakpoints {
|
|
3325
3293
|
flex-direction: var(--flex-dir);
|
|
3326
3294
|
align-items: stretch;
|
|
@@ -3333,23 +3301,23 @@ function Fi(e) {
|
|
|
3333
3301
|
},
|
|
3334
3302
|
`;
|
|
3335
3303
|
}
|
|
3336
|
-
return /* @__PURE__ */
|
|
3337
|
-
/* @__PURE__ */
|
|
3304
|
+
return /* @__PURE__ */ se(P, { children: [
|
|
3305
|
+
/* @__PURE__ */ se(
|
|
3338
3306
|
"div",
|
|
3339
3307
|
{
|
|
3340
3308
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,
|
|
3341
|
-
style:
|
|
3309
|
+
style: B(),
|
|
3342
3310
|
children: [
|
|
3343
|
-
/* @__PURE__ */ p(
|
|
3344
|
-
(Y = e.columns) == null ? void 0 : Y.map((
|
|
3311
|
+
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(yt, { styles: V() }) }),
|
|
3312
|
+
(Y = e.columns) == null ? void 0 : Y.map((b, K) => /* @__PURE__ */ ar(
|
|
3345
3313
|
"div",
|
|
3346
3314
|
{
|
|
3347
3315
|
className: "builder-column div-3c01d6ec-2",
|
|
3348
|
-
style:
|
|
3316
|
+
style: R(K),
|
|
3349
3317
|
key: K
|
|
3350
3318
|
},
|
|
3351
3319
|
/* @__PURE__ */ p(
|
|
3352
|
-
|
|
3320
|
+
xt,
|
|
3353
3321
|
{
|
|
3354
3322
|
path: `component.options.columns.${K}.blocks`,
|
|
3355
3323
|
parent: e.builderBlock.id,
|
|
@@ -3358,7 +3326,7 @@ function Fi(e) {
|
|
|
3358
3326
|
},
|
|
3359
3327
|
context: e.builderContext,
|
|
3360
3328
|
registeredComponents: e.builderComponents,
|
|
3361
|
-
blocks:
|
|
3329
|
+
blocks: b.blocks
|
|
3362
3330
|
}
|
|
3363
3331
|
)
|
|
3364
3332
|
))
|
|
@@ -3375,40 +3343,40 @@ function Fi(e) {
|
|
|
3375
3343
|
}` })
|
|
3376
3344
|
] });
|
|
3377
3345
|
}
|
|
3378
|
-
function
|
|
3346
|
+
function _i(e) {
|
|
3379
3347
|
return /* @__PURE__ */ p("span", { children: e.children });
|
|
3380
3348
|
}
|
|
3381
|
-
function
|
|
3349
|
+
function Qn(e) {
|
|
3382
3350
|
return e.replace(/http(s)?:/, "");
|
|
3383
3351
|
}
|
|
3384
|
-
function
|
|
3352
|
+
function Wi(e = "", t, r) {
|
|
3385
3353
|
const n = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3386
3354
|
return e.match(n) ? e.replace(n, "$1" + t + "=" + encodeURIComponent(r) + "$2") : e + i + t + "=" + encodeURIComponent(r);
|
|
3387
3355
|
}
|
|
3388
|
-
function
|
|
3356
|
+
function Li(e, t) {
|
|
3389
3357
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3390
3358
|
return e;
|
|
3391
3359
|
if (t === "master")
|
|
3392
|
-
return
|
|
3360
|
+
return Qn(e);
|
|
3393
3361
|
const r = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3394
3362
|
if (r) {
|
|
3395
3363
|
const n = e.split(r[0]), i = r[3], a = t.match("x") ? t : `${t}x`;
|
|
3396
|
-
return
|
|
3364
|
+
return Qn(`${n[0]}_${a}${i}`);
|
|
3397
3365
|
}
|
|
3398
3366
|
return null;
|
|
3399
3367
|
}
|
|
3400
|
-
function
|
|
3368
|
+
function Ht(e) {
|
|
3401
3369
|
if (!e)
|
|
3402
3370
|
return e;
|
|
3403
3371
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3404
3372
|
if (e.match(/builder\.io/)) {
|
|
3405
3373
|
let r = e;
|
|
3406
3374
|
const n = Number(e.split("?width=")[1]);
|
|
3407
|
-
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${
|
|
3375
|
+
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${Wi(e, "width", i)} ${i}w`).concat([r]).join(", ");
|
|
3408
3376
|
}
|
|
3409
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [
|
|
3377
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [Li(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3410
3378
|
}
|
|
3411
|
-
function
|
|
3379
|
+
function Vi(e) {
|
|
3412
3380
|
var i, a, s, u;
|
|
3413
3381
|
function t() {
|
|
3414
3382
|
var v;
|
|
@@ -3419,10 +3387,10 @@ function Wi(e) {
|
|
|
3419
3387
|
return e.srcset;
|
|
3420
3388
|
if (e.srcset && ((v = e.image) != null && v.includes("builder.io/api/v1/image"))) {
|
|
3421
3389
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3422
|
-
return console.debug("Removed given srcset"),
|
|
3390
|
+
return console.debug("Removed given srcset"), Ht(m);
|
|
3423
3391
|
} else if (e.image && !e.srcset)
|
|
3424
|
-
return
|
|
3425
|
-
return
|
|
3392
|
+
return Ht(m);
|
|
3393
|
+
return Ht(m);
|
|
3426
3394
|
}
|
|
3427
3395
|
function r() {
|
|
3428
3396
|
var f;
|
|
@@ -3438,10 +3406,10 @@ function Wi(e) {
|
|
|
3438
3406
|
};
|
|
3439
3407
|
return e.aspectRatio ? f : void 0;
|
|
3440
3408
|
}
|
|
3441
|
-
return /* @__PURE__ */
|
|
3442
|
-
/* @__PURE__ */
|
|
3443
|
-
/* @__PURE__ */
|
|
3444
|
-
r() ? /* @__PURE__ */ p(
|
|
3409
|
+
return /* @__PURE__ */ se(P, { children: [
|
|
3410
|
+
/* @__PURE__ */ se(P, { children: [
|
|
3411
|
+
/* @__PURE__ */ se("picture", { children: [
|
|
3412
|
+
r() ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p("source", { type: "image/webp", srcSet: r() }) }) : null,
|
|
3445
3413
|
/* @__PURE__ */ p(
|
|
3446
3414
|
"img",
|
|
3447
3415
|
{
|
|
@@ -3460,7 +3428,7 @@ function Wi(e) {
|
|
|
3460
3428
|
}
|
|
3461
3429
|
)
|
|
3462
3430
|
] }),
|
|
3463
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ p(
|
|
3431
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
3464
3432
|
"div",
|
|
3465
3433
|
{
|
|
3466
3434
|
className: "builder-image-sizer div-40c70c9b",
|
|
@@ -3469,8 +3437,8 @@ function Wi(e) {
|
|
|
3469
3437
|
}
|
|
3470
3438
|
}
|
|
3471
3439
|
) }) : null,
|
|
3472
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(
|
|
3473
|
-
!e.fitContent && e.children ? /* @__PURE__ */ p(
|
|
3440
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(P, { children: e.children }) : null,
|
|
3441
|
+
!e.fitContent && e.children ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
3474
3442
|
] }),
|
|
3475
3443
|
/* @__PURE__ */ p("style", { children: `.img-40c70c9b {
|
|
3476
3444
|
opacity: 1;
|
|
@@ -3491,7 +3459,7 @@ function Wi(e) {
|
|
|
3491
3459
|
}` })
|
|
3492
3460
|
] });
|
|
3493
3461
|
}
|
|
3494
|
-
function
|
|
3462
|
+
function $i(e) {
|
|
3495
3463
|
return /* @__PURE__ */ p(
|
|
3496
3464
|
"section",
|
|
3497
3465
|
{
|
|
@@ -3512,7 +3480,7 @@ function Vi(e) {
|
|
|
3512
3480
|
}
|
|
3513
3481
|
);
|
|
3514
3482
|
}
|
|
3515
|
-
const
|
|
3483
|
+
const Hi = {
|
|
3516
3484
|
name: "Core:Button",
|
|
3517
3485
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3518
3486
|
defaultStyles: {
|
|
@@ -3545,7 +3513,7 @@ const Li = {
|
|
|
3545
3513
|
}],
|
|
3546
3514
|
static: !0,
|
|
3547
3515
|
noWrap: !0
|
|
3548
|
-
},
|
|
3516
|
+
}, Ki = {
|
|
3549
3517
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3550
3518
|
name: "Columns",
|
|
3551
3519
|
isRSC: !0,
|
|
@@ -3746,7 +3714,7 @@ const Li = {
|
|
|
3746
3714
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3747
3715
|
advanced: !0
|
|
3748
3716
|
}]
|
|
3749
|
-
},
|
|
3717
|
+
}, Gi = {
|
|
3750
3718
|
name: "Custom Code",
|
|
3751
3719
|
static: !0,
|
|
3752
3720
|
requiredPermissions: ["editCode"],
|
|
@@ -3769,8 +3737,8 @@ const Li = {
|
|
|
3769
3737
|
advanced: !0
|
|
3770
3738
|
}]
|
|
3771
3739
|
};
|
|
3772
|
-
function
|
|
3773
|
-
const t =
|
|
3740
|
+
function zi(e) {
|
|
3741
|
+
const t = Jt(null), [r, n] = L(() => []), [i, a] = L(() => []);
|
|
3774
3742
|
return Z(() => {
|
|
3775
3743
|
var u;
|
|
3776
3744
|
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
@@ -3807,7 +3775,7 @@ function Ki(e) {
|
|
|
3807
3775
|
}
|
|
3808
3776
|
);
|
|
3809
3777
|
}
|
|
3810
|
-
const
|
|
3778
|
+
const Xi = {
|
|
3811
3779
|
name: "Embed",
|
|
3812
3780
|
static: !0,
|
|
3813
3781
|
inputs: [{
|
|
@@ -3832,22 +3800,22 @@ const Gi = {
|
|
|
3832
3800
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3833
3801
|
hideFromUI: !0
|
|
3834
3802
|
}]
|
|
3835
|
-
},
|
|
3836
|
-
function
|
|
3837
|
-
const t =
|
|
3803
|
+
}, Yi = ["text/javascript", "application/javascript", "application/ecmascript"], Ji = (e) => Yi.includes(e.type);
|
|
3804
|
+
function qi(e) {
|
|
3805
|
+
const t = Jt(null), [r, n] = L(() => []), [i, a] = L(() => []), [s, u] = L(() => !1);
|
|
3838
3806
|
function f() {
|
|
3839
3807
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3840
3808
|
return;
|
|
3841
3809
|
const m = t.current.getElementsByTagName("script");
|
|
3842
3810
|
for (let v = 0; v < m.length; v++) {
|
|
3843
|
-
const
|
|
3844
|
-
if (
|
|
3845
|
-
r.push(
|
|
3811
|
+
const y = m[v];
|
|
3812
|
+
if (y.src && !r.includes(y.src)) {
|
|
3813
|
+
r.push(y.src);
|
|
3846
3814
|
const U = document.createElement("script");
|
|
3847
|
-
U.async = !0, U.src =
|
|
3848
|
-
} else if (
|
|
3815
|
+
U.async = !0, U.src = y.src, document.head.appendChild(U);
|
|
3816
|
+
} else if (Ji(y) && !i.includes(y.innerText))
|
|
3849
3817
|
try {
|
|
3850
|
-
i.push(
|
|
3818
|
+
i.push(y.innerText), new Function(y.innerText)();
|
|
3851
3819
|
} catch (U) {
|
|
3852
3820
|
console.warn("`Embed`: Error running script:", U);
|
|
3853
3821
|
}
|
|
@@ -3864,13 +3832,13 @@ function Yi(e) {
|
|
|
3864
3832
|
}
|
|
3865
3833
|
);
|
|
3866
3834
|
}
|
|
3867
|
-
const
|
|
3835
|
+
const Zi = {
|
|
3868
3836
|
name: "Fragment",
|
|
3869
3837
|
static: !0,
|
|
3870
3838
|
hidden: !0,
|
|
3871
3839
|
canHaveChildren: !0,
|
|
3872
3840
|
noWrap: !0
|
|
3873
|
-
},
|
|
3841
|
+
}, Qi = {
|
|
3874
3842
|
name: "Image",
|
|
3875
3843
|
static: !0,
|
|
3876
3844
|
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",
|
|
@@ -3893,13 +3861,13 @@ const Ji = {
|
|
|
3893
3861
|
function r(s, u = 6e4) {
|
|
3894
3862
|
return new Promise((f, m) => {
|
|
3895
3863
|
const v = document.createElement("img");
|
|
3896
|
-
let
|
|
3864
|
+
let y = !1;
|
|
3897
3865
|
v.onload = () => {
|
|
3898
|
-
|
|
3866
|
+
y = !0, f(v);
|
|
3899
3867
|
}, v.addEventListener("error", (U) => {
|
|
3900
3868
|
console.warn("Image load failed", U.error), m(U.error);
|
|
3901
3869
|
}), v.src = s, setTimeout(() => {
|
|
3902
|
-
|
|
3870
|
+
y || m(new Error("Image load timed out"));
|
|
3903
3871
|
}, u);
|
|
3904
3872
|
});
|
|
3905
3873
|
}
|
|
@@ -3970,7 +3938,7 @@ const Ji = {
|
|
|
3970
3938
|
advanced: !0,
|
|
3971
3939
|
defaultValue: 0.7041
|
|
3972
3940
|
}]
|
|
3973
|
-
},
|
|
3941
|
+
}, eo = {
|
|
3974
3942
|
// friendlyName?
|
|
3975
3943
|
name: "Raw:Img",
|
|
3976
3944
|
hideFromInsertMenu: !0,
|
|
@@ -3985,7 +3953,7 @@ const Ji = {
|
|
|
3985
3953
|
noWrap: !0,
|
|
3986
3954
|
static: !0
|
|
3987
3955
|
};
|
|
3988
|
-
function
|
|
3956
|
+
function to(e) {
|
|
3989
3957
|
return /* @__PURE__ */ p(
|
|
3990
3958
|
"img",
|
|
3991
3959
|
{
|
|
@@ -4000,7 +3968,7 @@ function Qi(e) {
|
|
|
4000
3968
|
Te() && e.imgSrc || "default-key"
|
|
4001
3969
|
);
|
|
4002
3970
|
}
|
|
4003
|
-
const
|
|
3971
|
+
const no = {
|
|
4004
3972
|
name: "Core:Section",
|
|
4005
3973
|
static: !0,
|
|
4006
3974
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4039,7 +4007,7 @@ const eo = {
|
|
|
4039
4007
|
}
|
|
4040
4008
|
}
|
|
4041
4009
|
}]
|
|
4042
|
-
},
|
|
4010
|
+
}, ro = {
|
|
4043
4011
|
name: "Slot",
|
|
4044
4012
|
isRSC: !0,
|
|
4045
4013
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4053,7 +4021,7 @@ const eo = {
|
|
|
4053
4021
|
defaultValue: "children"
|
|
4054
4022
|
}]
|
|
4055
4023
|
};
|
|
4056
|
-
function
|
|
4024
|
+
function io(e) {
|
|
4057
4025
|
var t, r, n;
|
|
4058
4026
|
return /* @__PURE__ */ p(
|
|
4059
4027
|
"div",
|
|
@@ -4065,7 +4033,7 @@ function no(e) {
|
|
|
4065
4033
|
"builder-slot": e.name
|
|
4066
4034
|
},
|
|
4067
4035
|
children: /* @__PURE__ */ p(
|
|
4068
|
-
|
|
4036
|
+
xt,
|
|
4069
4037
|
{
|
|
4070
4038
|
parent: (r = e.builderContext.context) == null ? void 0 : r.symbolId,
|
|
4071
4039
|
path: `symbol.data.${e.name}`,
|
|
@@ -4076,7 +4044,7 @@ function no(e) {
|
|
|
4076
4044
|
}
|
|
4077
4045
|
);
|
|
4078
4046
|
}
|
|
4079
|
-
const
|
|
4047
|
+
const oo = {
|
|
4080
4048
|
name: "Symbol",
|
|
4081
4049
|
noWrap: !0,
|
|
4082
4050
|
static: !0,
|
|
@@ -4109,7 +4077,7 @@ const ro = {
|
|
|
4109
4077
|
hideFromUI: !0,
|
|
4110
4078
|
type: "boolean"
|
|
4111
4079
|
}]
|
|
4112
|
-
},
|
|
4080
|
+
}, ao = {
|
|
4113
4081
|
name: "Text",
|
|
4114
4082
|
static: !0,
|
|
4115
4083
|
isRSC: !0,
|
|
@@ -4128,7 +4096,7 @@ const ro = {
|
|
|
4128
4096
|
textAlign: "center"
|
|
4129
4097
|
}
|
|
4130
4098
|
};
|
|
4131
|
-
function
|
|
4099
|
+
function so(e) {
|
|
4132
4100
|
var t;
|
|
4133
4101
|
return /* @__PURE__ */ p(
|
|
4134
4102
|
"div",
|
|
@@ -4141,7 +4109,7 @@ function oo(e) {
|
|
|
4141
4109
|
}
|
|
4142
4110
|
);
|
|
4143
4111
|
}
|
|
4144
|
-
const
|
|
4112
|
+
const lo = {
|
|
4145
4113
|
name: "Video",
|
|
4146
4114
|
canHaveChildren: !0,
|
|
4147
4115
|
defaultStyles: {
|
|
@@ -4223,7 +4191,7 @@ const ao = {
|
|
|
4223
4191
|
advanced: !0
|
|
4224
4192
|
}]
|
|
4225
4193
|
};
|
|
4226
|
-
function
|
|
4194
|
+
function co(e) {
|
|
4227
4195
|
var n, i, a, s, u, f, m;
|
|
4228
4196
|
function t() {
|
|
4229
4197
|
return {
|
|
@@ -4249,7 +4217,7 @@ function so(e) {
|
|
|
4249
4217
|
...t()
|
|
4250
4218
|
};
|
|
4251
4219
|
}
|
|
4252
|
-
return /* @__PURE__ */
|
|
4220
|
+
return /* @__PURE__ */ se(
|
|
4253
4221
|
"div",
|
|
4254
4222
|
{
|
|
4255
4223
|
style: {
|
|
@@ -4281,7 +4249,7 @@ function so(e) {
|
|
|
4281
4249
|
children: e.lazyLoad ? null : /* @__PURE__ */ p("source", { type: "video/mp4", src: e.video })
|
|
4282
4250
|
}
|
|
4283
4251
|
),
|
|
4284
|
-
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ p(
|
|
4252
|
+
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
4285
4253
|
"div",
|
|
4286
4254
|
{
|
|
4287
4255
|
style: {
|
|
@@ -4292,7 +4260,7 @@ function so(e) {
|
|
|
4292
4260
|
}
|
|
4293
4261
|
}
|
|
4294
4262
|
) }) : null,
|
|
4295
|
-
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(
|
|
4263
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
4296
4264
|
"div",
|
|
4297
4265
|
{
|
|
4298
4266
|
style: {
|
|
@@ -4303,7 +4271,7 @@ function so(e) {
|
|
|
4303
4271
|
children: e.children
|
|
4304
4272
|
}
|
|
4305
4273
|
) }) : null,
|
|
4306
|
-
(m = (f = e.builderBlock) == null ? void 0 : f.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ p(
|
|
4274
|
+
(m = (f = e.builderBlock) == null ? void 0 : f.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
4307
4275
|
"div",
|
|
4308
4276
|
{
|
|
4309
4277
|
style: {
|
|
@@ -4324,43 +4292,43 @@ function so(e) {
|
|
|
4324
4292
|
}
|
|
4325
4293
|
);
|
|
4326
4294
|
}
|
|
4327
|
-
const
|
|
4328
|
-
component:
|
|
4329
|
-
...Li
|
|
4330
|
-
}, {
|
|
4331
|
-
component: Fi,
|
|
4332
|
-
...$i
|
|
4333
|
-
}, {
|
|
4334
|
-
component: Ki,
|
|
4295
|
+
const er = () => [{
|
|
4296
|
+
component: zr,
|
|
4335
4297
|
...Hi
|
|
4336
4298
|
}, {
|
|
4337
|
-
component:
|
|
4338
|
-
...
|
|
4299
|
+
component: Di,
|
|
4300
|
+
...Ki
|
|
4339
4301
|
}, {
|
|
4340
|
-
component:
|
|
4341
|
-
...
|
|
4302
|
+
component: zi,
|
|
4303
|
+
...Gi
|
|
4342
4304
|
}, {
|
|
4343
|
-
component:
|
|
4344
|
-
...
|
|
4305
|
+
component: qi,
|
|
4306
|
+
...Xi
|
|
4345
4307
|
}, {
|
|
4346
|
-
component:
|
|
4308
|
+
component: _i,
|
|
4347
4309
|
...Zi
|
|
4348
4310
|
}, {
|
|
4349
4311
|
component: Vi,
|
|
4312
|
+
...Qi
|
|
4313
|
+
}, {
|
|
4314
|
+
component: to,
|
|
4350
4315
|
...eo
|
|
4351
4316
|
}, {
|
|
4352
|
-
component:
|
|
4353
|
-
...
|
|
4317
|
+
component: $i,
|
|
4318
|
+
...no
|
|
4354
4319
|
}, {
|
|
4355
|
-
component:
|
|
4356
|
-
...
|
|
4320
|
+
component: No,
|
|
4321
|
+
...oo
|
|
4357
4322
|
}, {
|
|
4358
4323
|
component: so,
|
|
4359
4324
|
...ao
|
|
4360
4325
|
}, {
|
|
4361
|
-
component:
|
|
4362
|
-
...
|
|
4363
|
-
}
|
|
4326
|
+
component: co,
|
|
4327
|
+
...lo
|
|
4328
|
+
}, {
|
|
4329
|
+
component: io,
|
|
4330
|
+
...ro
|
|
4331
|
+
}], uo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4364
4332
|
function getAndSetVariantId() {
|
|
4365
4333
|
function setCookie(name, value, days) {
|
|
4366
4334
|
let expires = '';
|
|
@@ -4416,7 +4384,7 @@ const rr = () => [{
|
|
|
4416
4384
|
}).join('');
|
|
4417
4385
|
styleEl.innerHTML = newStyleStr;
|
|
4418
4386
|
}
|
|
4419
|
-
}`,
|
|
4387
|
+
}`, fo = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4420
4388
|
if (!navigator.cookieEnabled) {
|
|
4421
4389
|
return;
|
|
4422
4390
|
}
|
|
@@ -4450,26 +4418,26 @@ const rr = () => [{
|
|
|
4450
4418
|
thisScriptEl?.remove();
|
|
4451
4419
|
}
|
|
4452
4420
|
return;
|
|
4453
|
-
}`,
|
|
4421
|
+
}`, xr = "builderIoAbTest", Sr = "builderIoRenderContent", ht = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4454
4422
|
...t,
|
|
4455
4423
|
testVariationId: t.id,
|
|
4456
4424
|
id: e == null ? void 0 : e.id
|
|
4457
|
-
})),
|
|
4425
|
+
})), ho = ({
|
|
4458
4426
|
canTrack: e,
|
|
4459
4427
|
content: t
|
|
4460
|
-
}) => !(!(ht(t).length > 0) || !e || je()),
|
|
4461
|
-
window.${
|
|
4462
|
-
window.${
|
|
4463
|
-
`,
|
|
4464
|
-
window.${
|
|
4465
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4466
|
-
)`,
|
|
4428
|
+
}) => !(!(ht(t).length > 0) || !e || je()), po = (e) => e === "react" || e === "reactNative", wr = po(rt), mo = () => `
|
|
4429
|
+
window.${xr} = ${uo}
|
|
4430
|
+
window.${Sr} = ${fo}
|
|
4431
|
+
`, go = (e, t) => `
|
|
4432
|
+
window.${xr}(
|
|
4433
|
+
"${t}",${JSON.stringify(e)}, ${wr}
|
|
4434
|
+
)`, vo = ({
|
|
4467
4435
|
contentId: e,
|
|
4468
4436
|
variationId: t
|
|
4469
|
-
}) => `window.${
|
|
4470
|
-
"${t}", "${e}", ${
|
|
4437
|
+
}) => `window.${Sr}(
|
|
4438
|
+
"${t}", "${e}", ${wr}
|
|
4471
4439
|
)`;
|
|
4472
|
-
function
|
|
4440
|
+
function Yt(e) {
|
|
4473
4441
|
return /* @__PURE__ */ p(
|
|
4474
4442
|
"script",
|
|
4475
4443
|
{
|
|
@@ -4478,10 +4446,15 @@ function Zt(e) {
|
|
|
4478
4446
|
}
|
|
4479
4447
|
);
|
|
4480
4448
|
}
|
|
4481
|
-
|
|
4449
|
+
const yo = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4450
|
+
function kr(e, t) {
|
|
4451
|
+
const r = new URL(t.origin), n = r.hostname;
|
|
4452
|
+
return (e || yo).findIndex((i) => i.startsWith("*.") ? n.endsWith(i.slice(1)) : i === n) > -1;
|
|
4453
|
+
}
|
|
4454
|
+
function tr(e) {
|
|
4482
4455
|
return Math.round(e * 1e3) / 1e3;
|
|
4483
4456
|
}
|
|
4484
|
-
const
|
|
4457
|
+
const bo = (e, t, r = !0) => {
|
|
4485
4458
|
if (!(e instanceof HTMLElement))
|
|
4486
4459
|
return null;
|
|
4487
4460
|
let n = r ? e : e.parentElement;
|
|
@@ -4492,36 +4465,36 @@ const go = (e, t, r = !0) => {
|
|
|
4492
4465
|
return n;
|
|
4493
4466
|
} while (n = n.parentElement);
|
|
4494
4467
|
return null;
|
|
4495
|
-
},
|
|
4468
|
+
}, xo = (e) => bo(e, (t) => {
|
|
4496
4469
|
const r = t.getAttribute("builder-id") || t.id;
|
|
4497
4470
|
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4498
|
-
}),
|
|
4471
|
+
}), nr = ({
|
|
4499
4472
|
event: e,
|
|
4500
4473
|
target: t
|
|
4501
4474
|
}) => {
|
|
4502
|
-
const r = t.getBoundingClientRect(), n = e.clientX - r.left, i = e.clientY - r.top, a =
|
|
4475
|
+
const r = t.getBoundingClientRect(), n = e.clientX - r.left, i = e.clientY - r.top, a = tr(n / r.width), s = tr(i / r.height);
|
|
4503
4476
|
return {
|
|
4504
4477
|
x: a,
|
|
4505
4478
|
y: s
|
|
4506
4479
|
};
|
|
4507
|
-
},
|
|
4508
|
-
const t = e.target, r = t &&
|
|
4480
|
+
}, So = (e) => {
|
|
4481
|
+
const t = e.target, r = t && xo(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4509
4482
|
return {
|
|
4510
4483
|
targetBuilderElement: n || void 0,
|
|
4511
4484
|
metadata: {
|
|
4512
|
-
targetOffset: t ?
|
|
4485
|
+
targetOffset: t ? nr({
|
|
4513
4486
|
event: e,
|
|
4514
4487
|
target: t
|
|
4515
4488
|
}) : void 0,
|
|
4516
|
-
builderTargetOffset: r ?
|
|
4489
|
+
builderTargetOffset: r ? nr({
|
|
4517
4490
|
event: e,
|
|
4518
4491
|
target: r
|
|
4519
4492
|
}) : void 0,
|
|
4520
4493
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4521
4494
|
}
|
|
4522
4495
|
};
|
|
4523
|
-
},
|
|
4524
|
-
|
|
4496
|
+
}, wo = "0.12.2", ko = () => {
|
|
4497
|
+
Vr("insertMenu", {
|
|
4525
4498
|
name: "_default",
|
|
4526
4499
|
default: !0,
|
|
4527
4500
|
items: [{
|
|
@@ -4543,14 +4516,14 @@ const go = (e, t, r = !0) => {
|
|
|
4543
4516
|
}]
|
|
4544
4517
|
});
|
|
4545
4518
|
};
|
|
4546
|
-
let
|
|
4547
|
-
const
|
|
4519
|
+
let rr = !1;
|
|
4520
|
+
const Co = (e = {}) => {
|
|
4548
4521
|
var t, r;
|
|
4549
|
-
|
|
4522
|
+
rr || (rr = !0, je() && ((t = window.parent) == null || t.postMessage({
|
|
4550
4523
|
type: "builder.sdkInfo",
|
|
4551
4524
|
data: {
|
|
4552
4525
|
target: rt,
|
|
4553
|
-
version:
|
|
4526
|
+
version: wo,
|
|
4554
4527
|
supportsPatchUpdates: !1,
|
|
4555
4528
|
// Supports builder-model="..." attribute which is needed to
|
|
4556
4529
|
// scope our '+ add block' button styling
|
|
@@ -4562,40 +4535,43 @@ const So = (e = {}) => {
|
|
|
4562
4535
|
data: {
|
|
4563
4536
|
options: e
|
|
4564
4537
|
}
|
|
4565
|
-
}, "*"), window.addEventListener("message", ({
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4538
|
+
}, "*"), window.addEventListener("message", (n) => {
|
|
4539
|
+
var a, s;
|
|
4540
|
+
if (!kr(e.trustedHosts, n))
|
|
4541
|
+
return;
|
|
4542
|
+
const {
|
|
4543
|
+
data: i
|
|
4544
|
+
} = n;
|
|
4545
|
+
if (i != null && i.type)
|
|
4546
|
+
switch (i.type) {
|
|
4571
4547
|
case "builder.evaluate": {
|
|
4572
|
-
const
|
|
4573
|
-
let
|
|
4548
|
+
const u = i.data.text, f = i.data.arguments || [], m = i.data.id, v = new Function(u);
|
|
4549
|
+
let y, U = null;
|
|
4574
4550
|
try {
|
|
4575
|
-
|
|
4576
|
-
} catch (
|
|
4577
|
-
|
|
4551
|
+
y = v.apply(null, f);
|
|
4552
|
+
} catch (B) {
|
|
4553
|
+
U = B;
|
|
4578
4554
|
}
|
|
4579
|
-
|
|
4555
|
+
U ? (a = window.parent) == null || a.postMessage({
|
|
4580
4556
|
type: "builder.evaluateError",
|
|
4581
4557
|
data: {
|
|
4582
|
-
id:
|
|
4583
|
-
error:
|
|
4558
|
+
id: m,
|
|
4559
|
+
error: U.message
|
|
4584
4560
|
}
|
|
4585
|
-
}, "*") :
|
|
4586
|
-
var
|
|
4587
|
-
(
|
|
4561
|
+
}, "*") : y && typeof y.then == "function" ? y.then((B) => {
|
|
4562
|
+
var R;
|
|
4563
|
+
(R = window.parent) == null || R.postMessage({
|
|
4588
4564
|
type: "builder.evaluateResult",
|
|
4589
4565
|
data: {
|
|
4590
|
-
id:
|
|
4591
|
-
result:
|
|
4566
|
+
id: m,
|
|
4567
|
+
result: B
|
|
4592
4568
|
}
|
|
4593
4569
|
}, "*");
|
|
4594
|
-
}).catch(console.error) : (
|
|
4570
|
+
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
4595
4571
|
type: "builder.evaluateResult",
|
|
4596
4572
|
data: {
|
|
4597
|
-
result:
|
|
4598
|
-
id:
|
|
4573
|
+
result: y,
|
|
4574
|
+
id: m
|
|
4599
4575
|
}
|
|
4600
4576
|
}, "*");
|
|
4601
4577
|
break;
|
|
@@ -4603,34 +4579,34 @@ const So = (e = {}) => {
|
|
|
4603
4579
|
}
|
|
4604
4580
|
})));
|
|
4605
4581
|
};
|
|
4606
|
-
function
|
|
4607
|
-
var
|
|
4608
|
-
const t =
|
|
4609
|
-
|
|
4610
|
-
function i(
|
|
4582
|
+
function Eo(e) {
|
|
4583
|
+
var ne, E, Ae, W, ke, ue, H;
|
|
4584
|
+
const t = Jt(null), [r, n] = L(() => 0);
|
|
4585
|
+
L(() => !0);
|
|
4586
|
+
function i(k) {
|
|
4611
4587
|
var T, M;
|
|
4612
4588
|
const I = {
|
|
4613
4589
|
...e.builderContextSignal.rootState,
|
|
4614
|
-
...
|
|
4590
|
+
...k
|
|
4615
4591
|
};
|
|
4616
|
-
e.builderContextSignal.rootSetState ? (M = (T = e.builderContextSignal).rootSetState) == null || M.call(T, I) : e.setBuilderContextSignal((
|
|
4617
|
-
...
|
|
4592
|
+
e.builderContextSignal.rootSetState ? (M = (T = e.builderContextSignal).rootSetState) == null || M.call(T, I) : e.setBuilderContextSignal((D) => ({
|
|
4593
|
+
...D,
|
|
4618
4594
|
rootState: I
|
|
4619
4595
|
}));
|
|
4620
4596
|
}
|
|
4621
|
-
function a(
|
|
4622
|
-
var T, M,
|
|
4597
|
+
function a(k) {
|
|
4598
|
+
var T, M, D, G, Ce;
|
|
4623
4599
|
const I = {
|
|
4624
4600
|
...e.builderContextSignal.content,
|
|
4625
|
-
...
|
|
4601
|
+
...k,
|
|
4626
4602
|
data: {
|
|
4627
4603
|
...(T = e.builderContextSignal.content) == null ? void 0 : T.data,
|
|
4628
|
-
...
|
|
4604
|
+
...k == null ? void 0 : k.data
|
|
4629
4605
|
},
|
|
4630
4606
|
meta: {
|
|
4631
4607
|
...(M = e.builderContextSignal.content) == null ? void 0 : M.meta,
|
|
4632
|
-
...
|
|
4633
|
-
breakpoints: ((
|
|
4608
|
+
...k == null ? void 0 : k.meta,
|
|
4609
|
+
breakpoints: ((D = k == null ? void 0 : k.meta) == null ? void 0 : D.breakpoints) || ((Ce = (G = e.builderContextSignal.content) == null ? void 0 : G.meta) == null ? void 0 : Ce.breakpoints)
|
|
4634
4610
|
}
|
|
4635
4611
|
};
|
|
4636
4612
|
e.setBuilderContextSignal((at) => ({
|
|
@@ -4638,65 +4614,67 @@ function wo(e) {
|
|
|
4638
4614
|
content: I
|
|
4639
4615
|
}));
|
|
4640
4616
|
}
|
|
4641
|
-
|
|
4642
|
-
const [s, u] =
|
|
4617
|
+
L(() => 0);
|
|
4618
|
+
const [s, u] = L(
|
|
4643
4619
|
() => !1
|
|
4644
|
-
), [f, m] =
|
|
4620
|
+
), [f, m] = L(
|
|
4645
4621
|
() => e.contentWrapper || "div"
|
|
4646
4622
|
);
|
|
4647
|
-
function v(
|
|
4623
|
+
function v(k) {
|
|
4648
4624
|
var T;
|
|
4649
|
-
|
|
4625
|
+
if (!kr(e.trustedHosts, k))
|
|
4626
|
+
return;
|
|
4627
|
+
const { data: I } = k;
|
|
4650
4628
|
if (I)
|
|
4651
4629
|
switch (I.type) {
|
|
4652
4630
|
case "builder.configureSdk": {
|
|
4653
|
-
const M = I.data, { breakpoints:
|
|
4631
|
+
const M = I.data, { breakpoints: D, contentId: G } = M;
|
|
4654
4632
|
if (!G || G !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id))
|
|
4655
4633
|
return;
|
|
4656
|
-
|
|
4634
|
+
D && a({
|
|
4657
4635
|
meta: {
|
|
4658
|
-
breakpoints:
|
|
4636
|
+
breakpoints: D
|
|
4659
4637
|
}
|
|
4660
4638
|
}), n(r + 1);
|
|
4661
4639
|
break;
|
|
4662
4640
|
}
|
|
4663
4641
|
case "builder.contentUpdate": {
|
|
4664
|
-
const M = I.data,
|
|
4665
|
-
|
|
4642
|
+
const M = I.data, D = M.key || M.alias || M.entry || M.modelName, G = M.data;
|
|
4643
|
+
D === e.model && (a(G), n(r + 1));
|
|
4666
4644
|
break;
|
|
4667
4645
|
}
|
|
4668
4646
|
}
|
|
4669
4647
|
}
|
|
4670
|
-
function
|
|
4648
|
+
function y() {
|
|
4671
4649
|
var I, T;
|
|
4672
|
-
const
|
|
4673
|
-
|
|
4674
|
-
code:
|
|
4650
|
+
const k = (T = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : T.jsCode;
|
|
4651
|
+
k && nt({
|
|
4652
|
+
code: k,
|
|
4675
4653
|
context: e.context || {},
|
|
4676
4654
|
localState: void 0,
|
|
4677
4655
|
rootState: e.builderContextSignal.rootState,
|
|
4678
4656
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4679
4657
|
});
|
|
4680
4658
|
}
|
|
4681
|
-
const [U,
|
|
4682
|
-
function
|
|
4659
|
+
const [U, B] = L(() => ({})), [R, N] = L(() => !1);
|
|
4660
|
+
function V(k) {
|
|
4683
4661
|
var I, T;
|
|
4684
4662
|
if (e.builderContextSignal.content) {
|
|
4685
|
-
const M = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId,
|
|
4686
|
-
|
|
4663
|
+
const M = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, D = (T = e.builderContextSignal.content) == null ? void 0 : T.id;
|
|
4664
|
+
Vn({
|
|
4687
4665
|
type: "click",
|
|
4688
4666
|
canTrack: pt(e.canTrack),
|
|
4689
|
-
contentId:
|
|
4667
|
+
contentId: D,
|
|
4690
4668
|
apiKey: e.apiKey,
|
|
4691
|
-
variationId: M !==
|
|
4692
|
-
...
|
|
4693
|
-
unique: !
|
|
4669
|
+
variationId: M !== D ? M : void 0,
|
|
4670
|
+
...So(k),
|
|
4671
|
+
unique: !R
|
|
4694
4672
|
});
|
|
4695
4673
|
}
|
|
4696
|
-
|
|
4674
|
+
R || N(!0);
|
|
4697
4675
|
}
|
|
4698
|
-
function Y(
|
|
4699
|
-
return
|
|
4676
|
+
function Y(k) {
|
|
4677
|
+
return k.replace(
|
|
4700
4678
|
/{{([^}]+)}}/g,
|
|
4701
4679
|
(I, T) => nt({
|
|
4702
4680
|
code: T,
|
|
@@ -4707,38 +4685,38 @@ function wo(e) {
|
|
|
4707
4685
|
})
|
|
4708
4686
|
);
|
|
4709
4687
|
}
|
|
4710
|
-
function
|
|
4711
|
-
|
|
4712
|
-
var
|
|
4688
|
+
function b({ url: k, key: I }) {
|
|
4689
|
+
Kr(k).then((T) => T.json()).then((T) => {
|
|
4690
|
+
var D, G;
|
|
4713
4691
|
const M = {
|
|
4714
4692
|
...e.builderContextSignal.rootState,
|
|
4715
4693
|
[I]: T
|
|
4716
4694
|
};
|
|
4717
|
-
(G = (
|
|
4695
|
+
(G = (D = e.builderContextSignal).rootSetState) == null || G.call(D, M), U[I] = !0;
|
|
4718
4696
|
}).catch((T) => {
|
|
4719
|
-
console.error("error fetching dynamic data",
|
|
4697
|
+
console.error("error fetching dynamic data", k, T);
|
|
4720
4698
|
});
|
|
4721
4699
|
}
|
|
4722
4700
|
function K() {
|
|
4723
4701
|
var I, T, M;
|
|
4724
|
-
const
|
|
4725
|
-
Object.entries(
|
|
4726
|
-
if (G && (!U[
|
|
4702
|
+
const k = (M = (T = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : T.httpRequests) != null ? M : {};
|
|
4703
|
+
Object.entries(k).forEach(([D, G]) => {
|
|
4704
|
+
if (G && (!U[D] || Te())) {
|
|
4727
4705
|
const Ce = Y(G);
|
|
4728
|
-
|
|
4706
|
+
b({
|
|
4729
4707
|
url: Ce,
|
|
4730
|
-
key:
|
|
4708
|
+
key: D
|
|
4731
4709
|
});
|
|
4732
4710
|
}
|
|
4733
4711
|
});
|
|
4734
4712
|
}
|
|
4735
|
-
function
|
|
4713
|
+
function te() {
|
|
4736
4714
|
Te() && window.dispatchEvent(
|
|
4737
4715
|
new CustomEvent(
|
|
4738
4716
|
"builder:component:stateChange",
|
|
4739
4717
|
{
|
|
4740
4718
|
detail: {
|
|
4741
|
-
state:
|
|
4719
|
+
state: qt(e.builderContextSignal.rootState),
|
|
4742
4720
|
ref: {
|
|
4743
4721
|
name: e.model
|
|
4744
4722
|
}
|
|
@@ -4747,8 +4725,8 @@ function wo(e) {
|
|
|
4747
4725
|
)
|
|
4748
4726
|
);
|
|
4749
4727
|
}
|
|
4750
|
-
function le(
|
|
4751
|
-
n(r + 1), window.addEventListener("message", v),
|
|
4728
|
+
function le(k) {
|
|
4729
|
+
n(r + 1), window.addEventListener("message", v), ko(), Co({
|
|
4752
4730
|
...e.locale ? {
|
|
4753
4731
|
locale: e.locale
|
|
4754
4732
|
} : {},
|
|
@@ -4757,23 +4735,26 @@ function wo(e) {
|
|
|
4757
4735
|
} : {},
|
|
4758
4736
|
...e.enrich ? {
|
|
4759
4737
|
enrich: e.enrich
|
|
4738
|
+
} : {},
|
|
4739
|
+
...e.trustedHosts ? {
|
|
4740
|
+
trustedHosts: e.trustedHosts
|
|
4760
4741
|
} : {}
|
|
4761
4742
|
}), Object.values(
|
|
4762
4743
|
e.builderContextSignal.componentInfos
|
|
4763
4744
|
).forEach((I) => {
|
|
4764
4745
|
var M;
|
|
4765
|
-
const T =
|
|
4746
|
+
const T = Hr(I);
|
|
4766
4747
|
(M = window.parent) == null || M.postMessage(T, "*");
|
|
4767
4748
|
}), window.addEventListener(
|
|
4768
4749
|
"builder:component:stateChangeListenerActivated",
|
|
4769
|
-
|
|
4750
|
+
te
|
|
4770
4751
|
);
|
|
4771
4752
|
}
|
|
4772
|
-
function $(
|
|
4753
|
+
function $(k) {
|
|
4773
4754
|
const I = new URL(location.href).searchParams, T = I.get("builder.preview"), M = I.get(
|
|
4774
4755
|
`builder.preview.${T}`
|
|
4775
|
-
),
|
|
4776
|
-
T === e.model &&
|
|
4756
|
+
), D = I.get("apiKey") || I.get("builder.space");
|
|
4757
|
+
T === e.model && D === e.apiKey && (!e.content || M === e.content.id) && sr({
|
|
4777
4758
|
model: e.model,
|
|
4778
4759
|
apiKey: e.apiKey,
|
|
4779
4760
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4782,8 +4763,8 @@ function wo(e) {
|
|
|
4782
4763
|
});
|
|
4783
4764
|
}
|
|
4784
4765
|
return Z(() => {
|
|
4785
|
-
var
|
|
4786
|
-
return (
|
|
4766
|
+
var k;
|
|
4767
|
+
return (k = t.current) == null || k.addEventListener(
|
|
4787
4768
|
"initeditingbldr",
|
|
4788
4769
|
le
|
|
4789
4770
|
), () => {
|
|
@@ -4794,8 +4775,8 @@ function wo(e) {
|
|
|
4794
4775
|
);
|
|
4795
4776
|
};
|
|
4796
4777
|
}, []), Z(() => {
|
|
4797
|
-
var
|
|
4798
|
-
return (
|
|
4778
|
+
var k;
|
|
4779
|
+
return (k = t.current) == null || k.addEventListener(
|
|
4799
4780
|
"initpreviewingbldr",
|
|
4800
4781
|
$
|
|
4801
4782
|
), () => {
|
|
@@ -4806,36 +4787,36 @@ function wo(e) {
|
|
|
4806
4787
|
);
|
|
4807
4788
|
};
|
|
4808
4789
|
}, []), Z(() => {
|
|
4809
|
-
var
|
|
4790
|
+
var k, I;
|
|
4810
4791
|
if (je()) {
|
|
4811
4792
|
if (Te() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && pt(e.canTrack)) {
|
|
4812
|
-
const M = (
|
|
4813
|
-
|
|
4793
|
+
const M = (k = e.builderContextSignal.content) == null ? void 0 : k.testVariationId, D = (I = e.builderContextSignal.content) == null ? void 0 : I.id, G = e.apiKey;
|
|
4794
|
+
Vn({
|
|
4814
4795
|
type: "impression",
|
|
4815
4796
|
canTrack: !0,
|
|
4816
|
-
contentId:
|
|
4797
|
+
contentId: D,
|
|
4817
4798
|
apiKey: G,
|
|
4818
|
-
variationId: M !==
|
|
4799
|
+
variationId: M !== D ? M : void 0
|
|
4819
4800
|
});
|
|
4820
4801
|
}
|
|
4821
|
-
|
|
4802
|
+
$r() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4822
4803
|
}
|
|
4823
4804
|
}, []), Z(() => {
|
|
4824
4805
|
e.apiKey || Ue.error(
|
|
4825
4806
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4826
|
-
),
|
|
4807
|
+
), y(), K(), te();
|
|
4827
4808
|
}, []), Z(() => {
|
|
4828
4809
|
e.content && a(e.content);
|
|
4829
4810
|
}, [e.content]), Z(() => {
|
|
4830
4811
|
}, [s]), Z(() => {
|
|
4831
|
-
|
|
4812
|
+
y();
|
|
4832
4813
|
}, [
|
|
4833
|
-
(E = (
|
|
4814
|
+
(E = (ne = e.builderContextSignal.content) == null ? void 0 : ne.data) == null ? void 0 : E.jsCode,
|
|
4834
4815
|
e.builderContextSignal.rootState
|
|
4835
4816
|
]), Z(() => {
|
|
4836
4817
|
K();
|
|
4837
4818
|
}, [(W = (Ae = e.builderContextSignal.content) == null ? void 0 : Ae.data) == null ? void 0 : W.httpRequests]), Z(() => {
|
|
4838
|
-
|
|
4819
|
+
te();
|
|
4839
4820
|
}, [e.builderContextSignal.rootState]), Z(() => {
|
|
4840
4821
|
e.data && i(e.data);
|
|
4841
4822
|
}, [e.data]), Z(() => {
|
|
@@ -4845,14 +4826,14 @@ function wo(e) {
|
|
|
4845
4826
|
}, [e.locale]), Z(() => () => {
|
|
4846
4827
|
je() && (window.removeEventListener("message", v), window.removeEventListener(
|
|
4847
4828
|
"builder:component:stateChangeListenerActivated",
|
|
4848
|
-
|
|
4829
|
+
te
|
|
4849
4830
|
));
|
|
4850
|
-
}, []), /* @__PURE__ */ p(
|
|
4831
|
+
}, []), /* @__PURE__ */ p(Zt.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ ar(
|
|
4851
4832
|
f,
|
|
4852
4833
|
{
|
|
4853
4834
|
key: r,
|
|
4854
4835
|
ref: t,
|
|
4855
|
-
onClick: (
|
|
4836
|
+
onClick: (k) => V(k),
|
|
4856
4837
|
"builder-content-id": (ke = e.builderContextSignal.content) == null ? void 0 : ke.id,
|
|
4857
4838
|
"builder-model": e.model,
|
|
4858
4839
|
...e.showContent ? {} : {
|
|
@@ -4865,7 +4846,7 @@ function wo(e) {
|
|
|
4865
4846
|
e.children
|
|
4866
4847
|
) }) : null });
|
|
4867
4848
|
}
|
|
4868
|
-
const
|
|
4849
|
+
const Io = (e) => {
|
|
4869
4850
|
var a, s;
|
|
4870
4851
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), r = t.split(",")[0], n = (s = e.fileUrl) != null ? s : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4871
4852
|
let i = "";
|
|
@@ -4891,23 +4872,23 @@ font-weight: ${u};
|
|
|
4891
4872
|
`.trim());
|
|
4892
4873
|
}
|
|
4893
4874
|
return i;
|
|
4894
|
-
},
|
|
4875
|
+
}, To = ({
|
|
4895
4876
|
customFonts: e
|
|
4896
4877
|
}) => {
|
|
4897
4878
|
var t;
|
|
4898
|
-
return ((t = e == null ? void 0 : e.map((r) =>
|
|
4899
|
-
},
|
|
4879
|
+
return ((t = e == null ? void 0 : e.map((r) => Io(r))) == null ? void 0 : t.join(" ")) || "";
|
|
4880
|
+
}, jo = ({
|
|
4900
4881
|
cssCode: e,
|
|
4901
4882
|
contentId: t
|
|
4902
4883
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4903
|
-
function
|
|
4904
|
-
const [t, r] =
|
|
4884
|
+
function Ao(e) {
|
|
4885
|
+
const [t, r] = L(
|
|
4905
4886
|
() => `
|
|
4906
|
-
${
|
|
4887
|
+
${jo({
|
|
4907
4888
|
cssCode: e.cssCode,
|
|
4908
4889
|
contentId: e.contentId
|
|
4909
4890
|
})}
|
|
4910
|
-
${
|
|
4891
|
+
${To({
|
|
4911
4892
|
customFonts: e.customFonts
|
|
4912
4893
|
})}
|
|
4913
4894
|
|
|
@@ -4925,9 +4906,9 @@ ${Co({
|
|
|
4925
4906
|
}
|
|
4926
4907
|
`.trim()
|
|
4927
4908
|
);
|
|
4928
|
-
return /* @__PURE__ */ p(
|
|
4909
|
+
return /* @__PURE__ */ p(yt, { styles: t });
|
|
4929
4910
|
}
|
|
4930
|
-
const
|
|
4911
|
+
const Ro = ({
|
|
4931
4912
|
content: e,
|
|
4932
4913
|
data: t,
|
|
4933
4914
|
locale: r
|
|
@@ -4944,7 +4925,7 @@ const To = ({
|
|
|
4944
4925
|
locale: r
|
|
4945
4926
|
} : {}
|
|
4946
4927
|
};
|
|
4947
|
-
},
|
|
4928
|
+
}, Oo = ({
|
|
4948
4929
|
content: e,
|
|
4949
4930
|
data: t
|
|
4950
4931
|
}) => e ? {
|
|
@@ -4955,52 +4936,52 @@ const To = ({
|
|
|
4955
4936
|
},
|
|
4956
4937
|
meta: e == null ? void 0 : e.meta
|
|
4957
4938
|
} : void 0;
|
|
4958
|
-
function
|
|
4959
|
-
var f, m, v,
|
|
4960
|
-
const [t, r] =
|
|
4939
|
+
function ir(e) {
|
|
4940
|
+
var f, m, v, y, U, B, R;
|
|
4941
|
+
const [t, r] = L(
|
|
4961
4942
|
() => {
|
|
4962
|
-
var
|
|
4963
|
-
return
|
|
4943
|
+
var N, V;
|
|
4944
|
+
return vo({
|
|
4964
4945
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4965
|
-
variationId: (
|
|
4946
|
+
variationId: (N = e.content) == null ? void 0 : N.testVariationId,
|
|
4966
4947
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4967
|
-
contentId: (
|
|
4948
|
+
contentId: (V = e.content) == null ? void 0 : V.id
|
|
4968
4949
|
});
|
|
4969
4950
|
}
|
|
4970
4951
|
);
|
|
4971
|
-
function n(
|
|
4972
|
-
u((
|
|
4973
|
-
...
|
|
4974
|
-
rootState:
|
|
4952
|
+
function n(N) {
|
|
4953
|
+
u((V) => ({
|
|
4954
|
+
...V,
|
|
4955
|
+
rootState: N
|
|
4975
4956
|
}));
|
|
4976
4957
|
}
|
|
4977
|
-
const [i, a] =
|
|
4958
|
+
const [i, a] = L(
|
|
4978
4959
|
() => [
|
|
4979
|
-
...
|
|
4960
|
+
...er(),
|
|
4980
4961
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
4981
4962
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
4982
4963
|
// existing usage.
|
|
4983
4964
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
4984
4965
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
4985
|
-
|
|
4966
|
+
...$n,
|
|
4986
4967
|
...e.customComponents || []
|
|
4987
4968
|
].reduce(
|
|
4988
|
-
(
|
|
4989
|
-
...
|
|
4969
|
+
(N, { component: V, ...Y }) => ({
|
|
4970
|
+
...N,
|
|
4990
4971
|
[Y.name]: {
|
|
4991
|
-
component:
|
|
4992
|
-
...
|
|
4972
|
+
component: V,
|
|
4973
|
+
...Hn(Y)
|
|
4993
4974
|
}
|
|
4994
4975
|
}),
|
|
4995
4976
|
{}
|
|
4996
4977
|
)
|
|
4997
|
-
), [s, u] =
|
|
4998
|
-
content:
|
|
4978
|
+
), [s, u] = L(() => ({
|
|
4979
|
+
content: Oo({
|
|
4999
4980
|
content: e.content,
|
|
5000
4981
|
data: e.data
|
|
5001
4982
|
}),
|
|
5002
4983
|
localState: void 0,
|
|
5003
|
-
rootState:
|
|
4984
|
+
rootState: Ro({
|
|
5004
4985
|
content: e.content,
|
|
5005
4986
|
data: e.data,
|
|
5006
4987
|
locale: e.locale
|
|
@@ -5010,18 +4991,18 @@ function sr(e) {
|
|
|
5010
4991
|
apiKey: e.apiKey,
|
|
5011
4992
|
apiVersion: e.apiVersion,
|
|
5012
4993
|
componentInfos: [
|
|
5013
|
-
...
|
|
4994
|
+
...er(),
|
|
5014
4995
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
5015
4996
|
// Since users are able to override our default components, we need to make sure that we do not break such
|
|
5016
4997
|
// existing usage.
|
|
5017
4998
|
// This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
|
|
5018
4999
|
// which is the new standard way of providing custom components, and must therefore take precedence.
|
|
5019
|
-
|
|
5000
|
+
...$n,
|
|
5020
5001
|
...e.customComponents || []
|
|
5021
5002
|
].reduce(
|
|
5022
|
-
(
|
|
5023
|
-
...
|
|
5024
|
-
[Y.name]:
|
|
5003
|
+
(N, { component: V, ...Y }) => ({
|
|
5004
|
+
...N,
|
|
5005
|
+
[Y.name]: Hn(Y)
|
|
5025
5006
|
}),
|
|
5026
5007
|
{}
|
|
5027
5008
|
),
|
|
@@ -5030,13 +5011,13 @@ function sr(e) {
|
|
|
5030
5011
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
5031
5012
|
}));
|
|
5032
5013
|
return /* @__PURE__ */ p(
|
|
5033
|
-
|
|
5014
|
+
lr.Provider,
|
|
5034
5015
|
{
|
|
5035
5016
|
value: {
|
|
5036
5017
|
registeredComponents: i
|
|
5037
5018
|
},
|
|
5038
|
-
children: /* @__PURE__ */
|
|
5039
|
-
|
|
5019
|
+
children: /* @__PURE__ */ se(
|
|
5020
|
+
Eo,
|
|
5040
5021
|
{
|
|
5041
5022
|
content: e.content,
|
|
5042
5023
|
data: e.data,
|
|
@@ -5051,21 +5032,22 @@ function sr(e) {
|
|
|
5051
5032
|
builderContextSignal: s,
|
|
5052
5033
|
contentWrapper: e.contentWrapper,
|
|
5053
5034
|
contentWrapperProps: e.contentWrapperProps,
|
|
5035
|
+
trustedHosts: e.trustedHosts,
|
|
5054
5036
|
setBuilderContextSignal: u,
|
|
5055
5037
|
children: [
|
|
5056
|
-
e.isSsrAbTest ? /* @__PURE__ */ p(
|
|
5057
|
-
/* @__PURE__ */ p(
|
|
5058
|
-
|
|
5038
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(Yt, { scriptStr: t }) }) : null,
|
|
5039
|
+
/* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(
|
|
5040
|
+
Ao,
|
|
5059
5041
|
{
|
|
5060
5042
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5061
5043
|
cssCode: (v = (m = s.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
5062
|
-
customFonts: (U = (
|
|
5044
|
+
customFonts: (U = (y = s.content) == null ? void 0 : y.data) == null ? void 0 : U.customFonts
|
|
5063
5045
|
}
|
|
5064
5046
|
) }),
|
|
5065
5047
|
/* @__PURE__ */ p(
|
|
5066
|
-
|
|
5048
|
+
xt,
|
|
5067
5049
|
{
|
|
5068
|
-
blocks: (
|
|
5050
|
+
blocks: (R = (B = s.content) == null ? void 0 : B.data) == null ? void 0 : R.blocks,
|
|
5069
5051
|
context: s,
|
|
5070
5052
|
registeredComponents: i
|
|
5071
5053
|
}
|
|
@@ -5076,17 +5058,17 @@ function sr(e) {
|
|
|
5076
5058
|
}
|
|
5077
5059
|
);
|
|
5078
5060
|
}
|
|
5079
|
-
function
|
|
5061
|
+
function Cr(e) {
|
|
5080
5062
|
var s, u;
|
|
5081
|
-
const [t, r] =
|
|
5082
|
-
() =>
|
|
5063
|
+
const [t, r] = L(
|
|
5064
|
+
() => ho({
|
|
5083
5065
|
canTrack: pt(e.canTrack),
|
|
5084
5066
|
content: e.content
|
|
5085
5067
|
})
|
|
5086
5068
|
);
|
|
5087
5069
|
function n() {
|
|
5088
5070
|
var f;
|
|
5089
|
-
return
|
|
5071
|
+
return go(
|
|
5090
5072
|
ht(e.content).map((m) => ({
|
|
5091
5073
|
id: m.testVariationId,
|
|
5092
5074
|
testRatio: m.testRatio
|
|
@@ -5102,25 +5084,25 @@ function Er(e) {
|
|
|
5102
5084
|
return t ? {
|
|
5103
5085
|
...e.content,
|
|
5104
5086
|
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
5105
|
-
} :
|
|
5087
|
+
} : Gr({
|
|
5106
5088
|
item: e.content,
|
|
5107
5089
|
canTrack: pt(e.canTrack)
|
|
5108
5090
|
});
|
|
5109
5091
|
}
|
|
5110
5092
|
return Z(() => {
|
|
5111
|
-
}, []), /* @__PURE__ */
|
|
5112
|
-
!e.__isNestedRender && rt !== "reactNative" ? /* @__PURE__ */ p(
|
|
5113
|
-
t ? /* @__PURE__ */
|
|
5093
|
+
}, []), /* @__PURE__ */ se(P, { children: [
|
|
5094
|
+
!e.__isNestedRender && rt !== "reactNative" ? /* @__PURE__ */ p(P, { children: /* @__PURE__ */ p(Yt, { scriptStr: mo() }) }) : null,
|
|
5095
|
+
t ? /* @__PURE__ */ se(P, { children: [
|
|
5114
5096
|
/* @__PURE__ */ p(
|
|
5115
|
-
|
|
5097
|
+
yt,
|
|
5116
5098
|
{
|
|
5117
5099
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
5118
5100
|
styles: i()
|
|
5119
5101
|
}
|
|
5120
5102
|
),
|
|
5121
|
-
/* @__PURE__ */ p(
|
|
5103
|
+
/* @__PURE__ */ p(Yt, { scriptStr: n() }),
|
|
5122
5104
|
(u = ht(e.content)) == null ? void 0 : u.map((f) => /* @__PURE__ */ p(
|
|
5123
|
-
|
|
5105
|
+
ir,
|
|
5124
5106
|
{
|
|
5125
5107
|
content: f,
|
|
5126
5108
|
showContent: !1,
|
|
@@ -5138,13 +5120,14 @@ function Er(e) {
|
|
|
5138
5120
|
blocksWrapper: e.blocksWrapper,
|
|
5139
5121
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
5140
5122
|
contentWrapper: e.contentWrapper,
|
|
5141
|
-
contentWrapperProps: e.contentWrapperProps
|
|
5123
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
5124
|
+
trustedHosts: e.trustedHosts
|
|
5142
5125
|
},
|
|
5143
5126
|
f.testVariationId
|
|
5144
5127
|
))
|
|
5145
5128
|
] }) : null,
|
|
5146
5129
|
/* @__PURE__ */ p(
|
|
5147
|
-
|
|
5130
|
+
ir,
|
|
5148
5131
|
{
|
|
5149
5132
|
content: a(),
|
|
5150
5133
|
showContent: !0,
|
|
@@ -5162,18 +5145,19 @@ function Er(e) {
|
|
|
5162
5145
|
blocksWrapper: e.blocksWrapper,
|
|
5163
5146
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
5164
5147
|
contentWrapper: e.contentWrapper,
|
|
5165
|
-
contentWrapperProps: e.contentWrapperProps
|
|
5148
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
5149
|
+
trustedHosts: e.trustedHosts
|
|
5166
5150
|
}
|
|
5167
5151
|
)
|
|
5168
5152
|
] });
|
|
5169
5153
|
}
|
|
5170
|
-
const
|
|
5154
|
+
const Po = async ({
|
|
5171
5155
|
builderContextValue: e,
|
|
5172
5156
|
symbol: t
|
|
5173
5157
|
}) => {
|
|
5174
5158
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5175
5159
|
(e != null && e.apiKey))
|
|
5176
|
-
return
|
|
5160
|
+
return sr({
|
|
5177
5161
|
model: t.model,
|
|
5178
5162
|
apiKey: e.apiKey,
|
|
5179
5163
|
apiVersion: e.apiVersion,
|
|
@@ -5186,7 +5170,7 @@ const Ao = async ({
|
|
|
5186
5170
|
Ue.error("Could not fetch symbol content: ", r);
|
|
5187
5171
|
});
|
|
5188
5172
|
};
|
|
5189
|
-
function
|
|
5173
|
+
function No(e) {
|
|
5190
5174
|
var a, s, u, f;
|
|
5191
5175
|
function t() {
|
|
5192
5176
|
var m, v;
|
|
@@ -5197,12 +5181,12 @@ function Ro(e) {
|
|
|
5197
5181
|
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5198
5182
|
].filter(Boolean).join(" ");
|
|
5199
5183
|
}
|
|
5200
|
-
const [r, n] =
|
|
5184
|
+
const [r, n] = L(() => {
|
|
5201
5185
|
var m;
|
|
5202
5186
|
return (m = e.symbol) == null ? void 0 : m.content;
|
|
5203
5187
|
});
|
|
5204
5188
|
function i() {
|
|
5205
|
-
r ||
|
|
5189
|
+
r || Po({
|
|
5206
5190
|
symbol: e.symbol,
|
|
5207
5191
|
builderContextValue: e.builderContext
|
|
5208
5192
|
}).then((m) => {
|
|
@@ -5213,7 +5197,7 @@ function Ro(e) {
|
|
|
5213
5197
|
}, []), Z(() => {
|
|
5214
5198
|
i();
|
|
5215
5199
|
}, [e.symbol]), /* @__PURE__ */ p("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ p(
|
|
5216
|
-
|
|
5200
|
+
Cr,
|
|
5217
5201
|
{
|
|
5218
5202
|
__isNestedRender: !0,
|
|
5219
5203
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5233,31 +5217,31 @@ function Ro(e) {
|
|
|
5233
5217
|
}
|
|
5234
5218
|
) });
|
|
5235
5219
|
}
|
|
5236
|
-
const
|
|
5220
|
+
const Uo = xt, Do = Cr;
|
|
5237
5221
|
export {
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5222
|
+
xt as Blocks,
|
|
5223
|
+
zr as Button,
|
|
5224
|
+
Di as Columns,
|
|
5225
|
+
Cr as Content,
|
|
5226
|
+
_i as Fragment,
|
|
5227
|
+
Vi as Image,
|
|
5228
|
+
Uo as RenderBlocks,
|
|
5229
|
+
Do as RenderContent,
|
|
5230
|
+
$i as Section,
|
|
5231
|
+
No as Symbol,
|
|
5232
|
+
so as Text,
|
|
5233
|
+
co as Video,
|
|
5234
|
+
Lo as _processContentResult,
|
|
5235
|
+
Hr as createRegisterComponentMessage,
|
|
5236
|
+
Vo as fetchBuilderProps,
|
|
5237
|
+
$o as fetchEntries,
|
|
5238
|
+
sr as fetchOneEntry,
|
|
5239
|
+
Ho as getAllContent,
|
|
5240
|
+
Ko as getBuilderSearchParams,
|
|
5241
|
+
Go as getContent,
|
|
5258
5242
|
Te as isEditing,
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5243
|
+
$r as isPreviewing,
|
|
5244
|
+
Vr as register,
|
|
5245
|
+
zo as setEditorSettings,
|
|
5246
|
+
Xo as track
|
|
5263
5247
|
};
|