@builder.io/sdk-react 0.12.0 → 0.12.1
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 +22 -22
- package/lib/browser/index.mjs +324 -281
- package/lib/edge/index.cjs +33 -33
- package/lib/edge/index.mjs +483 -440
- package/lib/node/index.cjs +11 -11
- package/lib/node/index.mjs +194 -151
- package/package.json +1 -1
- package/types/blocks/slot/component-info.d.ts +2 -0
- package/types/blocks/slot/slot.d.ts +11 -0
- package/types/constants/sdk-version.d.ts +1 -1
package/lib/edge/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as te, Fragment as N, jsx as p } from "react/jsx-runtime";
|
|
3
|
-
import { createContext as lr, useState as V, useContext as $n, createElement as cr, useRef as
|
|
4
|
-
import { i as Te, j as je, k as Lr, l as Ue, m as
|
|
5
|
-
import { _ as
|
|
3
|
+
import { createContext as lr, useState as V, useContext as $n, createElement as cr, useRef as Qt, useEffect as Z } from "react";
|
|
4
|
+
import { i as Te, j as je, k as Lr, l as Ue, m as en, n as zt, T as rt, r as $r, o as pt, p as Hn, a as Hr, c as Kr, b as ur, q as Gr, u as Kn, v as Gn, w as zr } from "./server-entry-f978b3a5.js";
|
|
5
|
+
import { _ as _o, h as Do, f as Wo, g as Vo, e as Lo, d as $o, s as Ho, t as Ko } from "./server-entry-f978b3a5.js";
|
|
6
6
|
function Xr(e) {
|
|
7
7
|
return /* @__PURE__ */ te(N, { children: [
|
|
8
8
|
e.link ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
@@ -28,7 +28,7 @@ function Xr(e) {
|
|
|
28
28
|
}` })
|
|
29
29
|
] });
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const tn = lr({
|
|
32
32
|
content: null,
|
|
33
33
|
context: {},
|
|
34
34
|
localState: void 0,
|
|
@@ -115,7 +115,7 @@ var D, ei = function(e) {
|
|
|
115
115
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Ln.test(String.fromCharCode(o));
|
|
116
116
|
}
|
|
117
117
|
function n(o, l) {
|
|
118
|
-
for (var c =
|
|
118
|
+
for (var c = b, 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, R.C && (
|
|
143
|
+
Oe = d, R.C && (At = new a()), j = o, f(), ce = l, Le = o.m;
|
|
144
144
|
}
|
|
145
145
|
function u() {
|
|
146
|
-
for (var o = d, l = R.va && R.C && new a(), c =
|
|
147
|
-
++d, c =
|
|
148
|
-
R.va && R.va(!1,
|
|
146
|
+
for (var o = d, l = R.va && R.C && new a(), c = b.charCodeAt(d += 2); d < Re && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
147
|
+
++d, c = b.charCodeAt(d);
|
|
148
|
+
R.va && R.va(!1, b.slice(o + 2, d), o, d, l, R.C && new a());
|
|
149
149
|
}
|
|
150
150
|
function f() {
|
|
151
151
|
for (; d < Re; ) {
|
|
152
|
-
var o =
|
|
152
|
+
var o = b.charCodeAt(d);
|
|
153
153
|
if (o === 32)
|
|
154
154
|
++d;
|
|
155
155
|
else if (o === 13)
|
|
156
|
-
++d, o =
|
|
156
|
+
++d, o = b.charCodeAt(d), o === 10 && ++d, R.C && (++Ee, he = d);
|
|
157
157
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
158
158
|
++d, R.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 = b.charCodeAt(d + 1), o === 42) {
|
|
163
163
|
o = void 0;
|
|
164
|
-
var l = R.va && R.C && new a(), c = d, h =
|
|
164
|
+
var l = R.va && R.C && new a(), c = d, h = b.indexOf("*/", d += 2);
|
|
165
165
|
if (h === -1 && n(d - 2, "Unterminated comment"), d = h + 2, R.C)
|
|
166
|
-
for (ft.lastIndex = c; (o = ft.exec(
|
|
166
|
+
for (ft.lastIndex = c; (o = ft.exec(b)) && o.index < d; )
|
|
167
167
|
++Ee, he = o.index + o[0].length;
|
|
168
|
-
R.va && R.va(!0,
|
|
168
|
+
R.va && R.va(!0, b.slice(c + 2, h), c, d, l, R.C && new a());
|
|
169
169
|
} else if (o === 47)
|
|
170
170
|
u();
|
|
171
171
|
else
|
|
@@ -178,10 +178,10 @@ var D, ei = function(e) {
|
|
|
178
178
|
break;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function m(o) {
|
|
182
182
|
switch (o) {
|
|
183
183
|
case 46:
|
|
184
|
-
o =
|
|
184
|
+
o = b.charCodeAt(d + 1), 48 <= o && 57 >= o ? O(!0) : (++d, s(Mn));
|
|
185
185
|
return;
|
|
186
186
|
case 40:
|
|
187
187
|
return ++d, s(pe);
|
|
@@ -192,9 +192,9 @@ var D, ei = function(e) {
|
|
|
192
192
|
case 44:
|
|
193
193
|
return ++d, s(Se);
|
|
194
194
|
case 91:
|
|
195
|
-
return ++d, s(_t);
|
|
196
|
-
case 93:
|
|
197
195
|
return ++d, s(Dt);
|
|
196
|
+
case 93:
|
|
197
|
+
return ++d, s(Wt);
|
|
198
198
|
case 123:
|
|
199
199
|
return ++d, s(Ke);
|
|
200
200
|
case 125:
|
|
@@ -204,8 +204,8 @@ var D, ei = function(e) {
|
|
|
204
204
|
case 63:
|
|
205
205
|
return ++d, s(Bn);
|
|
206
206
|
case 48:
|
|
207
|
-
if (o =
|
|
208
|
-
d += 2, o = F(16), o === null && n(X + 2, "Expected hexadecimal number"), r(
|
|
207
|
+
if (o = b.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
208
|
+
d += 2, o = F(16), o === null && n(X + 2, "Expected hexadecimal number"), r(b.charCodeAt(d)) && n(d, "Identifier directly after number"), s(He, o);
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
case 49:
|
|
@@ -223,14 +223,14 @@ var D, ei = function(e) {
|
|
|
223
223
|
d++;
|
|
224
224
|
for (var l = ""; ; ) {
|
|
225
225
|
d >= Re && n(X, "Unterminated string constant");
|
|
226
|
-
var c =
|
|
226
|
+
var c = b.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 = b.charCodeAt(++d);
|
|
233
|
+
var h = /^[0-7]+/.exec(b.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)
|
|
@@ -269,7 +269,7 @@ var D, ei = function(e) {
|
|
|
269
269
|
l += "\0";
|
|
270
270
|
break;
|
|
271
271
|
case 13:
|
|
272
|
-
|
|
272
|
+
b.charCodeAt(d) === 10 && ++d;
|
|
273
273
|
case 10:
|
|
274
274
|
R.C && (he = d, ++Ee);
|
|
275
275
|
break;
|
|
@@ -281,57 +281,57 @@ var D, ei = function(e) {
|
|
|
281
281
|
}
|
|
282
282
|
return;
|
|
283
283
|
case 47:
|
|
284
|
-
o =
|
|
284
|
+
o = b.charCodeAt(d + 1), Le ? (++d, U()) : o === 61 ? x(Ie, 2) : x(Fn, 1);
|
|
285
285
|
return;
|
|
286
286
|
case 37:
|
|
287
287
|
case 42:
|
|
288
|
-
|
|
288
|
+
b.charCodeAt(d + 1) === 61 ? x(Ie, 2) : x(Fr, 1);
|
|
289
289
|
return;
|
|
290
290
|
case 124:
|
|
291
291
|
case 38:
|
|
292
|
-
l =
|
|
292
|
+
l = b.charCodeAt(d + 1), l === o ? x(o === 124 ? Dn : Wn, 2) : l === 61 ? x(Ie, 2) : x(o === 124 ? Ar : Or, 1);
|
|
293
293
|
return;
|
|
294
294
|
case 94:
|
|
295
|
-
|
|
295
|
+
b.charCodeAt(d + 1) === 61 ? x(Ie, 2) : x(Rr, 1);
|
|
296
296
|
return;
|
|
297
297
|
case 43:
|
|
298
298
|
case 45:
|
|
299
|
-
l =
|
|
299
|
+
l = b.charCodeAt(d + 1), l === o ? l === 45 && b.charCodeAt(d + 2) === 62 && dt.test(b.slice(xe, d)) ? (d += 3, u(), f(), v()) : x(jr, 2) : l === 61 ? x(Ie, 2) : x(Br, 1);
|
|
300
300
|
return;
|
|
301
301
|
case 60:
|
|
302
302
|
case 62:
|
|
303
|
-
l =
|
|
303
|
+
l = b.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && b.charCodeAt(d + 2) === 62 ? 3 : 2, b.charCodeAt(d + c) === 61 ? x(Ie, c + 1) : x(Mr, c)) : l === 33 && o === 60 && b.charCodeAt(d + 2) === 45 && b.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = b.charCodeAt(d + 2) === 61 ? 3 : 2), x(Nr, c));
|
|
304
304
|
return;
|
|
305
305
|
case 61:
|
|
306
306
|
case 33:
|
|
307
|
-
|
|
307
|
+
b.charCodeAt(d + 1) === 61 ? x(Pr, b.charCodeAt(d + 2) === 61 ? 3 : 2) : x(o === 61 ? Un : _n, 1);
|
|
308
308
|
return;
|
|
309
309
|
case 126:
|
|
310
|
-
return
|
|
310
|
+
return x(_n, 1);
|
|
311
311
|
}
|
|
312
312
|
return !1;
|
|
313
313
|
}
|
|
314
314
|
function v(o) {
|
|
315
|
-
if (o ? d = X + 1 : X = d, R.C && (
|
|
315
|
+
if (o ? d = X + 1 : X = d, R.C && (jt = new a()), o)
|
|
316
316
|
return U();
|
|
317
317
|
if (d >= Re)
|
|
318
|
-
return s(
|
|
319
|
-
if (o =
|
|
318
|
+
return s(Pt);
|
|
319
|
+
if (o = b.charCodeAt(d), r(o) || o === 92)
|
|
320
320
|
return Y();
|
|
321
|
-
if (
|
|
321
|
+
if (m(o) === !1) {
|
|
322
322
|
if (o = String.fromCharCode(o), o === "\\" || Ln.test(o))
|
|
323
323
|
return Y();
|
|
324
324
|
n(d, "Unexpected character '" + o + "'");
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
var c =
|
|
327
|
+
function x(o, l) {
|
|
328
|
+
var c = b.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 = b.charAt(d);
|
|
335
335
|
if (dt.test(h) && n(c, "Unterminated regexp"), o)
|
|
336
336
|
o = !1;
|
|
337
337
|
else {
|
|
@@ -345,7 +345,7 @@ var D, ei = function(e) {
|
|
|
345
345
|
}
|
|
346
346
|
++d;
|
|
347
347
|
}
|
|
348
|
-
o =
|
|
348
|
+
o = b.slice(c, d), ++d, (l = L()) && !/^[gmi]*$/.test(l) && n(c, "Invalid regexp flag");
|
|
349
349
|
try {
|
|
350
350
|
var A = new RegExp(o, l);
|
|
351
351
|
} catch (J) {
|
|
@@ -355,7 +355,7 @@ var D, ei = function(e) {
|
|
|
355
355
|
}
|
|
356
356
|
function F(o, l) {
|
|
357
357
|
for (var c = d, h = 0, A = l === void 0 ? 1 / 0 : l, J = 0; J < A; ++J) {
|
|
358
|
-
var ie =
|
|
358
|
+
var ie = b.charCodeAt(d);
|
|
359
359
|
if (ie = 97 <= ie ? ie - 97 + 10 : 65 <= ie ? ie - 65 + 10 : 48 <= ie && 57 >= ie ? ie - 48 : 1 / 0, ie >= o)
|
|
360
360
|
break;
|
|
361
361
|
++d, h = h * o + ie;
|
|
@@ -363,8 +363,8 @@ var D, ei = function(e) {
|
|
|
363
363
|
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
364
364
|
}
|
|
365
365
|
function O(o) {
|
|
366
|
-
var l = d, c = !1, h =
|
|
367
|
-
o || F(10) !== null || n(l, "Invalid number"),
|
|
366
|
+
var l = d, c = !1, h = b.charCodeAt(d) === 48;
|
|
367
|
+
o || F(10) !== null || n(l, "Invalid number"), b.charCodeAt(d) === 46 && (++d, F(10), c = !0), o = b.charCodeAt(d), (o === 69 || o === 101) && (o = b.charCodeAt(++d), o !== 43 && o !== 45 || ++d, F(10) === null && n(l, "Invalid number"), c = !0), r(b.charCodeAt(d)) && n(d, "Identifier directly after number"), o = b.slice(l, d);
|
|
368
368
|
var A;
|
|
369
369
|
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || se ? n(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(He, A);
|
|
370
370
|
}
|
|
@@ -374,30 +374,30 @@ var D, ei = function(e) {
|
|
|
374
374
|
function L() {
|
|
375
375
|
Me = !1;
|
|
376
376
|
for (var o, l = !0, c = d; ; ) {
|
|
377
|
-
var h =
|
|
377
|
+
var h = b.charCodeAt(d);
|
|
378
378
|
if (t(h))
|
|
379
|
-
Me && (o +=
|
|
379
|
+
Me && (o += b.charAt(d)), ++d;
|
|
380
380
|
else if (h === 92) {
|
|
381
|
-
Me || (o =
|
|
381
|
+
Me || (o = b.slice(c, d)), Me = !0, b.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = P(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 : b.slice(c, d);
|
|
389
389
|
}
|
|
390
390
|
function Y() {
|
|
391
391
|
var o = L(), l = Pe;
|
|
392
392
|
!Me && _r(o) && (l = Tr[o]), s(l, o);
|
|
393
393
|
}
|
|
394
394
|
function y() {
|
|
395
|
-
|
|
395
|
+
Rt = X, xe = Oe, Ot = At, v();
|
|
396
396
|
}
|
|
397
397
|
function K(o) {
|
|
398
398
|
if (se = o, d = X, R.C)
|
|
399
399
|
for (; d < he; )
|
|
400
|
-
he =
|
|
400
|
+
he = b.lastIndexOf(`
|
|
401
401
|
`, he - 2) + 1, --Ee;
|
|
402
402
|
f(), v();
|
|
403
403
|
}
|
|
@@ -405,7 +405,7 @@ var D, ei = function(e) {
|
|
|
405
405
|
this.type = null, this.start = X, this.end = null;
|
|
406
406
|
}
|
|
407
407
|
function le() {
|
|
408
|
-
this.start =
|
|
408
|
+
this.start = jt, this.end = null, Tt && (this.source = Tt);
|
|
409
409
|
}
|
|
410
410
|
function $() {
|
|
411
411
|
var o = new ne();
|
|
@@ -416,7 +416,7 @@ var D, ei = function(e) {
|
|
|
416
416
|
return l.start = o.start, R.C && (l.X = new le(), l.X.start = o.X.start), R.Xa && (l.j = [o.j[0], 0]), l;
|
|
417
417
|
}
|
|
418
418
|
function E(o, l) {
|
|
419
|
-
return o.type = l, o.end =
|
|
419
|
+
return o.type = l, o.end = xe, R.C && (o.X.end = Ot), R.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";
|
|
@@ -425,7 +425,7 @@ var D, ei = function(e) {
|
|
|
425
425
|
return j === o ? (y(), !0) : !1;
|
|
426
426
|
}
|
|
427
427
|
function ke() {
|
|
428
|
-
return !R.fc && (j ===
|
|
428
|
+
return !R.fc && (j === Pt || j === Ne || dt.test(b.slice(xe, X)));
|
|
429
429
|
}
|
|
430
430
|
function ue() {
|
|
431
431
|
W(me) || ke() || C();
|
|
@@ -443,10 +443,10 @@ var D, ei = function(e) {
|
|
|
443
443
|
(j === Fn || j === Ie && ce === "/=") && v(!0);
|
|
444
444
|
var o = j, l = $();
|
|
445
445
|
switch (o) {
|
|
446
|
-
case
|
|
446
|
+
case Nt:
|
|
447
447
|
case vn:
|
|
448
448
|
y();
|
|
449
|
-
var c = o ===
|
|
449
|
+
var c = o === Nt;
|
|
450
450
|
W(me) || ke() ? l.label = null : j !== Pe ? C() : (l.label = fe(), ue());
|
|
451
451
|
for (var h = 0; h < z.length; ++h) {
|
|
452
452
|
var A = z[h];
|
|
@@ -456,28 +456,28 @@ var D, ei = function(e) {
|
|
|
456
456
|
return h === z.length && n(l.start, "Unsyntactic " + o.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
457
457
|
case yn:
|
|
458
458
|
return y(), ue(), E(l, "DebuggerStatement");
|
|
459
|
-
case
|
|
460
|
-
return y(), z.push(
|
|
459
|
+
case xn:
|
|
460
|
+
return y(), z.push(Vt), l.body = T(), z.pop(), H(_t), l.test = M(), ue(), E(l, "DoWhileStatement");
|
|
461
461
|
case kn:
|
|
462
|
-
return y(), z.push(
|
|
463
|
-
case
|
|
464
|
-
return y(),
|
|
462
|
+
return y(), z.push(Vt), H(pe), j === me ? G(l, null) : j === Ut ? (o = $(), y(), 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 Bt:
|
|
464
|
+
return y(), Et(l, !0);
|
|
465
465
|
case Cn:
|
|
466
466
|
return y(), l.test = M(), l.da = T(), l.alternate = W(Sn) ? T() : null, E(l, "IfStatement");
|
|
467
467
|
case En:
|
|
468
468
|
return $e || R.Ib || n(X, "'return' outside of function"), y(), W(me) || ke() ? l.K = null : (l.K = ee(), ue()), E(l, "ReturnStatement");
|
|
469
|
-
case
|
|
469
|
+
case Ft:
|
|
470
470
|
for (y(), l.Qb = M(), l.tb = [], H(Ke), z.push(Vr); j !== Ne; )
|
|
471
|
-
j ===
|
|
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
472
|
return h && E(h, "SwitchCase"), y(), z.pop(), E(l, "SwitchStatement");
|
|
473
473
|
case In:
|
|
474
|
-
return y(), dt.test(
|
|
474
|
+
return y(), dt.test(b.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = ee(), ue(), E(l, "ThrowStatement");
|
|
475
475
|
case Tn:
|
|
476
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");
|
|
477
|
-
case Ft:
|
|
478
|
-
return y(), at(l), ue(), E(l, "VariableDeclaration");
|
|
479
477
|
case Ut:
|
|
480
|
-
return y(),
|
|
478
|
+
return y(), at(l), ue(), E(l, "VariableDeclaration");
|
|
479
|
+
case _t:
|
|
480
|
+
return y(), l.test = M(), z.push(Vt), l.body = T(), z.pop(), E(l, "WhileStatement");
|
|
481
481
|
case jn:
|
|
482
482
|
return se && n(X, "'with' in strict mode"), y(), l.object = M(), l.body = T(), E(l, "WithStatement");
|
|
483
483
|
case Ke:
|
|
@@ -490,7 +490,7 @@ var D, ei = function(e) {
|
|
|
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 === Ft ? "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");
|
|
@@ -527,34 +527,34 @@ var D, ei = function(e) {
|
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
function ee(o, l) {
|
|
530
|
-
var c =
|
|
530
|
+
var c = wt(l);
|
|
531
531
|
if (!o && j === Se) {
|
|
532
532
|
for (o = re(c), o.xb = [c]; W(Se); )
|
|
533
|
-
o.xb.push(
|
|
533
|
+
o.xb.push(wt(l));
|
|
534
534
|
return E(o, "SequenceExpression");
|
|
535
535
|
}
|
|
536
536
|
return c;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
var l =
|
|
538
|
+
function wt(o) {
|
|
539
|
+
var l = kt(Ct(), -1, o);
|
|
540
540
|
if (W(Bn)) {
|
|
541
541
|
var c = re(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 = re(l), c.operator = ce, c.left = l, y(), c.right =
|
|
544
|
+
return j.Cb ? (c = re(l), c.operator = ce, c.left = l, y(), c.right = wt(o), I(l), E(c, "AssignmentExpression")) : l;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function kt(o, l, c) {
|
|
547
547
|
var h = j.L;
|
|
548
548
|
if (h !== null && (!c || j !== ct) && h > l) {
|
|
549
549
|
var A = re(o);
|
|
550
|
-
return A.left = o, A.operator = ce, o = j, y(), A.right =
|
|
550
|
+
return A.left = o, A.operator = ce, o = j, y(), A.right = kt(Ct(), h, c), h = E(A, o === Dn || o === Wn ? "LogicalExpression" : "BinaryExpression"), kt(h, l, c);
|
|
551
551
|
}
|
|
552
552
|
return o;
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function Ct() {
|
|
555
555
|
if (j.prefix) {
|
|
556
556
|
var o = $(), l = j.$b;
|
|
557
|
-
return o.operator = ce, Le = o.prefix = !0, y(), o.K =
|
|
557
|
+
return o.operator = ce, Le = o.prefix = !0, y(), o.K = Ct(), l ? I(o.K) : se && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
558
558
|
}
|
|
559
559
|
for (l = Ve(st()); j.cc && !ke(); )
|
|
560
560
|
o = re(l), o.operator = ce, o.prefix = !1, o.K = l, I(l), y(), l = E(o, "UpdateExpression");
|
|
@@ -565,7 +565,7 @@ var D, ei = function(e) {
|
|
|
565
565
|
var c = re(o);
|
|
566
566
|
return c.object = o, c.Wa = fe(!0), c.bb = !1, Ve(E(c, "MemberExpression"), l);
|
|
567
567
|
}
|
|
568
|
-
return W(
|
|
568
|
+
return W(Dt) ? (c = re(o), c.object = o, c.Wa = ee(), c.bb = !0, H(Wt), Ve(E(c, "MemberExpression"), l)) : !l && W(pe) ? (c = re(o), c.callee = o, c.arguments = It(de, !1), Ve(E(c, "CallExpression"), l)) : o;
|
|
569
569
|
}
|
|
570
570
|
function st() {
|
|
571
571
|
switch (j) {
|
|
@@ -577,19 +577,19 @@ var D, ei = function(e) {
|
|
|
577
577
|
case He:
|
|
578
578
|
case lt:
|
|
579
579
|
case mn:
|
|
580
|
-
return o = $(), o.value = ce, o.raw =
|
|
580
|
+
return o = $(), o.value = ce, o.raw = b.slice(X, Oe), y(), E(o, "Literal");
|
|
581
581
|
case On:
|
|
582
582
|
case Pn:
|
|
583
583
|
case Nn:
|
|
584
584
|
return o = $(), o.value = j.$a, o.raw = j.l, y(), E(o, "Literal");
|
|
585
585
|
case pe:
|
|
586
|
-
o =
|
|
586
|
+
o = jt;
|
|
587
587
|
var l = X;
|
|
588
588
|
y();
|
|
589
589
|
var c = ee();
|
|
590
|
-
return c.start = l, c.end = Oe, R.C && (c.X.start = o, c.X.end =
|
|
591
|
-
case
|
|
592
|
-
return o = $(), y(), o.elements =
|
|
590
|
+
return c.start = l, c.end = Oe, R.C && (c.X.start = o, c.X.end = At), R.Xa && (c.j = [l, Oe]), H(de), c;
|
|
591
|
+
case Dt:
|
|
592
|
+
return o = $(), y(), o.elements = It(Wt, !0, !0), E(o, "ArrayExpression");
|
|
593
593
|
case Ke:
|
|
594
594
|
for (o = $(), l = !0, c = !1, o.h = [], y(); !W(Ne); ) {
|
|
595
595
|
if (l)
|
|
@@ -603,26 +603,26 @@ 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" ? C() : (A = c = !0, J = h.kind = h.key.name, h.key = j === He || j === lt ? st() : fe(!0), j !== pe && C(), h.value =
|
|
606
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? C() : (A = c = !0, J = h.kind = h.key.name, h.key = j === He || j === lt ? st() : fe(!0), j !== pe && C(), h.value = Et($(), !1));
|
|
607
607
|
if (h.key.type === "Identifier" && (se || c))
|
|
608
608
|
for (var ie = 0; ie < o.h.length; ++ie) {
|
|
609
609
|
var Be = o.h[ie];
|
|
610
610
|
if (Be.key.name === h.key.name) {
|
|
611
|
-
var
|
|
612
|
-
|
|
611
|
+
var Lt = J === Be.kind || A && Be.kind === "init" || J === "init" && (Be.kind === "get" || Be.kind === "set");
|
|
612
|
+
Lt && !se && 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 = $(), y(),
|
|
618
|
+
case Bt:
|
|
619
|
+
return o = $(), y(), Et(o, !1);
|
|
620
620
|
case An:
|
|
621
|
-
return o = $(), y(), o.callee = Ve(st(), !0), o.arguments = W(pe) ?
|
|
621
|
+
return o = $(), y(), o.callee = Ve(st(), !0), o.arguments = W(pe) ? It(de, !1) : Ir, E(o, "NewExpression");
|
|
622
622
|
}
|
|
623
623
|
C();
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Et(o, l) {
|
|
626
626
|
j === Pe ? o.id = fe() : l ? C() : o.id = null, o.oa = [];
|
|
627
627
|
var c = !0;
|
|
628
628
|
for (H(pe); !W(de); )
|
|
@@ -637,7 +637,7 @@ var D, ei = function(e) {
|
|
|
637
637
|
}
|
|
638
638
|
return E(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
639
639
|
}
|
|
640
|
-
function
|
|
640
|
+
function It(o, l, c) {
|
|
641
641
|
for (var h = [], A = !0; !W(o); ) {
|
|
642
642
|
if (A)
|
|
643
643
|
A = !1;
|
|
@@ -649,15 +649,15 @@ var D, ei = function(e) {
|
|
|
649
649
|
}
|
|
650
650
|
function fe(o) {
|
|
651
651
|
var l = $();
|
|
652
|
-
return o && R.yb === "everywhere" && (o = !1), j === Pe ? (!o && (R.yb && Ur(ce) || se && Vn(ce)) &&
|
|
652
|
+
return o && R.yb === "everywhere" && (o = !1), j === Pe ? (!o && (R.yb && Ur(ce) || se && Vn(ce)) && b.slice(X, Oe).indexOf("\\") === -1 && n(X, "The keyword '" + ce + "' is reserved"), l.name = ce) : o && j.l ? l.name = j.l : C(), Le = !1, y(), E(l, "Identifier");
|
|
653
653
|
}
|
|
654
654
|
e.version = "0.5.0";
|
|
655
|
-
var R,
|
|
655
|
+
var R, b = "", Re, Tt;
|
|
656
656
|
e.parse = function(o, l) {
|
|
657
|
-
|
|
657
|
+
b = String(o), Re = b.length, R = l || {};
|
|
658
658
|
for (var c in pn)
|
|
659
659
|
Object.prototype.hasOwnProperty.call(R, c) || (R[c] = pn[c]);
|
|
660
|
-
for (
|
|
660
|
+
for (Tt = R.sourceFile, Ee = 1, d = he = 0, Le = !0, f(), c = R.dc, Rt = xe = d, R.C && (Ot = new a()), $e = se = !1, z = [], v(), o = c || $(), l = !0, c || (o.body = []); j !== Pt; )
|
|
661
661
|
c = T(), o.body.push(c), l && Ae(c) && K(!0), l = !1;
|
|
662
662
|
return E(o, "Program");
|
|
663
663
|
};
|
|
@@ -672,7 +672,7 @@ 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, jt, At, j, ce, Le, Ee, he, Rt = 0, xe = 0, Ot, $e, z, se, Ir = [], He = {
|
|
676
676
|
type: "num"
|
|
677
677
|
}, mn = {
|
|
678
678
|
type: "regexp"
|
|
@@ -680,11 +680,11 @@ var D, ei = function(e) {
|
|
|
680
680
|
type: "string"
|
|
681
681
|
}, Pe = {
|
|
682
682
|
type: "name"
|
|
683
|
-
}, Ot = {
|
|
684
|
-
type: "eof"
|
|
685
683
|
}, Pt = {
|
|
686
|
-
|
|
684
|
+
type: "eof"
|
|
687
685
|
}, Nt = {
|
|
686
|
+
l: "break"
|
|
687
|
+
}, Mt = {
|
|
688
688
|
l: "case",
|
|
689
689
|
m: !0
|
|
690
690
|
}, gn = {
|
|
@@ -693,9 +693,9 @@ var D, ei = function(e) {
|
|
|
693
693
|
l: "continue"
|
|
694
694
|
}, yn = {
|
|
695
695
|
l: "debugger"
|
|
696
|
-
}, xn = {
|
|
697
|
-
l: "default"
|
|
698
696
|
}, bn = {
|
|
697
|
+
l: "default"
|
|
698
|
+
}, xn = {
|
|
699
699
|
l: "do",
|
|
700
700
|
W: !0
|
|
701
701
|
}, Sn = {
|
|
@@ -706,23 +706,23 @@ var D, ei = function(e) {
|
|
|
706
706
|
}, kn = {
|
|
707
707
|
l: "for",
|
|
708
708
|
W: !0
|
|
709
|
-
},
|
|
709
|
+
}, Bt = {
|
|
710
710
|
l: "function"
|
|
711
711
|
}, Cn = {
|
|
712
712
|
l: "if"
|
|
713
713
|
}, En = {
|
|
714
714
|
l: "return",
|
|
715
715
|
m: !0
|
|
716
|
-
},
|
|
716
|
+
}, Ft = {
|
|
717
717
|
l: "switch"
|
|
718
718
|
}, In = {
|
|
719
719
|
l: "throw",
|
|
720
720
|
m: !0
|
|
721
721
|
}, Tn = {
|
|
722
722
|
l: "try"
|
|
723
|
-
}, Ft = {
|
|
724
|
-
l: "var"
|
|
725
723
|
}, Ut = {
|
|
724
|
+
l: "var"
|
|
725
|
+
}, _t = {
|
|
726
726
|
l: "while",
|
|
727
727
|
W: !0
|
|
728
728
|
}, jn = {
|
|
@@ -746,24 +746,24 @@ var D, ei = function(e) {
|
|
|
746
746
|
L: 7,
|
|
747
747
|
m: !0
|
|
748
748
|
}, Tr = {
|
|
749
|
-
break:
|
|
750
|
-
case:
|
|
749
|
+
break: Nt,
|
|
750
|
+
case: Mt,
|
|
751
751
|
catch: gn,
|
|
752
752
|
continue: vn,
|
|
753
753
|
debugger: yn,
|
|
754
|
-
default:
|
|
755
|
-
do:
|
|
754
|
+
default: bn,
|
|
755
|
+
do: xn,
|
|
756
756
|
else: Sn,
|
|
757
757
|
finally: wn,
|
|
758
758
|
for: kn,
|
|
759
|
-
function:
|
|
759
|
+
function: Bt,
|
|
760
760
|
if: Cn,
|
|
761
761
|
return: En,
|
|
762
|
-
switch:
|
|
762
|
+
switch: Ft,
|
|
763
763
|
throw: In,
|
|
764
764
|
try: Tn,
|
|
765
|
-
var:
|
|
766
|
-
while:
|
|
765
|
+
var: Ut,
|
|
766
|
+
while: _t,
|
|
767
767
|
with: jn,
|
|
768
768
|
null: On,
|
|
769
769
|
true: Pn,
|
|
@@ -791,10 +791,10 @@ var D, ei = function(e) {
|
|
|
791
791
|
prefix: !0,
|
|
792
792
|
m: !0
|
|
793
793
|
}
|
|
794
|
-
},
|
|
794
|
+
}, Dt = {
|
|
795
795
|
type: "[",
|
|
796
796
|
m: !0
|
|
797
|
-
},
|
|
797
|
+
}, Wt = {
|
|
798
798
|
type: "]"
|
|
799
799
|
}, Ke = {
|
|
800
800
|
type: "{",
|
|
@@ -867,14 +867,14 @@ var D, ei = function(e) {
|
|
|
867
867
|
}, Fr = {
|
|
868
868
|
L: 10,
|
|
869
869
|
m: !0
|
|
870
|
-
}, Ur = i("class enum extends super const export import"), Vn = i("implements interface let package private protected public static yield"), ut = i("eval arguments"), _r = 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]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Wr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), dt = /[\n\r\u2028\u2029]/, ft = /\r\n|[\n\r\u2028\u2029]/g, Me,
|
|
870
|
+
}, Ur = i("class enum extends super const export import"), Vn = i("implements interface let package private protected public static yield"), ut = i("eval arguments"), _r = 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]/, Ln = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Wr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), dt = /[\n\r\u2028\u2029]/, ft = /\r\n|[\n\r\u2028\u2029]/g, Me, Vt = {
|
|
871
871
|
kind: "loop"
|
|
872
872
|
}, Vr = {
|
|
873
873
|
kind: "switch"
|
|
874
874
|
};
|
|
875
|
-
},
|
|
876
|
-
ei(
|
|
877
|
-
function
|
|
875
|
+
}, Xt = Xt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
876
|
+
ei(Xt.j || (Xt.j = {}));
|
|
877
|
+
function g(e, t) {
|
|
878
878
|
typeof e == "string" && (e = _e(e, "code"));
|
|
879
879
|
var r = e.constructor;
|
|
880
880
|
this.ya = function() {
|
|
@@ -889,13 +889,13 @@ function m(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 =
|
|
892
|
+
this.N = Jt(this, this.ra, null), this.Na = this.N.object, this.ra = _e(this.ba.join(`
|
|
893
893
|
`), "polyfills"), this.ba = void 0, vt(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
895
|
var zn = {
|
|
896
896
|
C: !0,
|
|
897
897
|
kc: 5
|
|
898
|
-
},
|
|
898
|
+
}, nn = {
|
|
899
899
|
configurable: !0,
|
|
900
900
|
enumerable: !0,
|
|
901
901
|
writable: !1
|
|
@@ -924,7 +924,7 @@ var zn = {
|
|
|
924
924
|
}, Fe = {
|
|
925
925
|
REGEXP_TIMEOUT: !0
|
|
926
926
|
}, Yn = [], ve = null, Ze = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, ti = ["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
|
|
927
|
+
function rn(e) {
|
|
928
928
|
var t = e >>> 0;
|
|
929
929
|
return t === Number(e) ? t : NaN;
|
|
930
930
|
}
|
|
@@ -940,10 +940,10 @@ function vt(e, t, r) {
|
|
|
940
940
|
i && typeof i == "object" && vt(i, t, r);
|
|
941
941
|
}
|
|
942
942
|
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
D =
|
|
943
|
+
g.prototype.REGEXP_MODE = 2;
|
|
944
|
+
g.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
945
|
+
g.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
946
|
+
D = g.prototype;
|
|
947
947
|
D.P = !1;
|
|
948
948
|
D.Ka = !1;
|
|
949
949
|
D.Kb = 0;
|
|
@@ -1006,7 +1006,7 @@ D.Eb = function() {
|
|
|
1006
1006
|
return this.za;
|
|
1007
1007
|
};
|
|
1008
1008
|
function ni(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,
|
|
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, nn), e.g(t, "this", t, ze), e.g(t, "self", t), e.M = new B(null), e.Z = new B(e.M), ri(e, t), ii(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), oi(e, t), ai(e, t), si(e, t), li(e, t), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t);
|
|
1010
1010
|
var r = e.i(function() {
|
|
1011
1011
|
throw EvalError("Can't happen");
|
|
1012
1012
|
}, !1);
|
|
@@ -1044,11 +1044,11 @@ function ri(e, t) {
|
|
|
1044
1044
|
s = s.join(", ");
|
|
1045
1045
|
}
|
|
1046
1046
|
try {
|
|
1047
|
-
var
|
|
1047
|
+
var m = _e("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1048
1048
|
} catch (v) {
|
|
1049
1049
|
k(e, e.T, "Invalid code: " + v.message);
|
|
1050
1050
|
}
|
|
1051
|
-
return
|
|
1051
|
+
return m.body.length !== 1 && k(e, e.T, "Invalid code in function body"), sn(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
1054
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ae), e.Z.H = "Function", n = function(i, a) {
|
|
@@ -1072,7 +1072,7 @@ function ii(e, t) {
|
|
|
1072
1072
|
}
|
|
1073
1073
|
var n = function(i) {
|
|
1074
1074
|
if (i == null)
|
|
1075
|
-
return
|
|
1075
|
+
return be(e) ? this : e.s(e.M);
|
|
1076
1076
|
if (!(i instanceof B)) {
|
|
1077
1077
|
var a = e.s(ye(e, i));
|
|
1078
1078
|
return a.data = i, a;
|
|
@@ -1113,9 +1113,9 @@ function ii(e, t) {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
function oi(e, t) {
|
|
1115
1115
|
var r = function(n) {
|
|
1116
|
-
var i =
|
|
1116
|
+
var i = be(e) ? this : De(e), a = arguments[0];
|
|
1117
1117
|
if (arguments.length === 1 && typeof a == "number")
|
|
1118
|
-
isNaN(
|
|
1118
|
+
isNaN(rn(a)) && k(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];
|
|
@@ -1133,7 +1133,7 @@ function oi(e, t) {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
function ai(e, t) {
|
|
1135
1135
|
var r = function(n) {
|
|
1136
|
-
return n = arguments.length ? we.String(n) : "",
|
|
1136
|
+
return n = arguments.length ? we.String(n) : "", be(e) ? (this.data = n, this) : n;
|
|
1137
1137
|
};
|
|
1138
1138
|
for (e.J = e.i(r, !0), e.g(t, "String", e.J, S), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), S), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), r = 0; r < t.length; r++)
|
|
1139
1139
|
q(e, e.J, t[r], String.prototype[t[r]]);
|
|
@@ -1155,8 +1155,8 @@ function ai(e, t) {
|
|
|
1155
1155
|
}, n, a), n !== Fe && a(ge(e, n));
|
|
1156
1156
|
else {
|
|
1157
1157
|
var u = e.ha(), f = Je(e, n, u, a);
|
|
1158
|
-
u.onmessage = function(
|
|
1159
|
-
clearTimeout(f), a(ge(e,
|
|
1158
|
+
u.onmessage = function(m) {
|
|
1159
|
+
clearTimeout(f), a(ge(e, m.data));
|
|
1160
1160
|
}, u.postMessage(["split", s, n, i]);
|
|
1161
1161
|
}
|
|
1162
1162
|
return;
|
|
@@ -1205,8 +1205,8 @@ function ai(e, t) {
|
|
|
1205
1205
|
}, n, a), n !== Fe && a(n);
|
|
1206
1206
|
else {
|
|
1207
1207
|
var u = e.ha(), f = Je(e, n, u, a);
|
|
1208
|
-
u.onmessage = function(
|
|
1209
|
-
clearTimeout(f), a(
|
|
1208
|
+
u.onmessage = function(m) {
|
|
1209
|
+
clearTimeout(f), a(m.data);
|
|
1210
1210
|
}, u.postMessage(["replace", s, n, i]);
|
|
1211
1211
|
}
|
|
1212
1212
|
return;
|
|
@@ -1216,12 +1216,12 @@ function ai(e, t) {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
function si(e, t) {
|
|
1218
1218
|
e.mb = e.i(function(r) {
|
|
1219
|
-
return r = we.Boolean(r),
|
|
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
1222
|
function li(e, t) {
|
|
1223
1223
|
var r = function(n) {
|
|
1224
|
-
return n = arguments.length ? we.Number(n) : 0,
|
|
1224
|
+
return n = arguments.length ? we.Number(n) : 0, be(e) ? (this.data = n, this) : n;
|
|
1225
1225
|
};
|
|
1226
1226
|
for (e.aa = e.i(r, !0), e.g(t, "Number", e.aa, S), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], r = 0; r < t.length; r++)
|
|
1227
1227
|
e.g(e.aa, t[r], Number[t[r]], ze);
|
|
@@ -1260,7 +1260,7 @@ function li(e, t) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
function ci(e, t) {
|
|
1262
1262
|
var r = function(i, a) {
|
|
1263
|
-
if (!
|
|
1263
|
+
if (!be(e))
|
|
1264
1264
|
return we.Date();
|
|
1265
1265
|
var s = [null].concat(Array.from(arguments));
|
|
1266
1266
|
return this.data = new (Function.prototype.bind.apply(we.Date, s))(), this;
|
|
@@ -1279,7 +1279,7 @@ function ci(e, t) {
|
|
|
1279
1279
|
}
|
|
1280
1280
|
function ui(e, t) {
|
|
1281
1281
|
var r = function(n, i) {
|
|
1282
|
-
if (
|
|
1282
|
+
if (be(e))
|
|
1283
1283
|
var a = this;
|
|
1284
1284
|
else {
|
|
1285
1285
|
if (i === void 0 && Q(e, n, e.I))
|
|
@@ -1292,13 +1292,13 @@ function ui(e, t) {
|
|
|
1292
1292
|
} catch (u) {
|
|
1293
1293
|
k(e, e.T, u.message);
|
|
1294
1294
|
}
|
|
1295
|
-
return
|
|
1295
|
+
return on(e, a, s), a;
|
|
1296
1296
|
};
|
|
1297
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, ae), e.g(e.I.h.prototype, "ignoreCase", void 0, ae), e.g(e.I.h.prototype, "multiline", void 0, ae), e.g(e.I.h.prototype, "source", "(?:)", ae), 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 x = ge(e, v);
|
|
1301
|
+
return e.g(x, "index", v.index), e.g(x, "input", v.input), x;
|
|
1302
1302
|
}
|
|
1303
1303
|
return null;
|
|
1304
1304
|
}
|
|
@@ -1310,9 +1310,9 @@ function ui(e, t) {
|
|
|
1310
1310
|
regexp: s
|
|
1311
1311
|
}, s, i), n !== Fe && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1312
1312
|
else {
|
|
1313
|
-
var u = e.ha(), f = Je(e, s, u, i),
|
|
1313
|
+
var u = e.ha(), f = Je(e, s, u, i), m = this;
|
|
1314
1314
|
u.onmessage = function(v) {
|
|
1315
|
-
clearTimeout(f), e.g(
|
|
1315
|
+
clearTimeout(f), e.g(m, "lastIndex", v.data[1]), i(a(v.data[0]));
|
|
1316
1316
|
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1317
1317
|
}
|
|
1318
1318
|
else
|
|
@@ -1322,14 +1322,14 @@ function ui(e, t) {
|
|
|
1322
1322
|
function di(e, t) {
|
|
1323
1323
|
function r(n) {
|
|
1324
1324
|
var i = e.i(function(a) {
|
|
1325
|
-
var s =
|
|
1326
|
-
return
|
|
1325
|
+
var s = be(e) ? this : e.Aa(i);
|
|
1326
|
+
return Yt(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
|
-
var i =
|
|
1332
|
-
return
|
|
1331
|
+
var i = be(e) ? this : e.Aa(e.D);
|
|
1332
|
+
return Yt(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
1335
|
function fi(e, t) {
|
|
@@ -1374,10 +1374,10 @@ function Q(e, t, r) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
return !1;
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1377
|
+
function on(e, t, r) {
|
|
1378
1378
|
t.data = new RegExp(r.source, r.flags), e.g(t, "lastIndex", r.lastIndex, S), e.g(t, "source", r.source, ae), e.g(t, "global", r.global, ae), e.g(t, "ignoreCase", r.ignoreCase, ae), e.g(t, "multiline", r.multiline, ae);
|
|
1379
1379
|
}
|
|
1380
|
-
function
|
|
1380
|
+
function Yt(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;
|
|
@@ -1456,19 +1456,19 @@ function De(e) {
|
|
|
1456
1456
|
writable: !0
|
|
1457
1457
|
}), t.H = "Array", t;
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1459
|
+
function an(e, t, r) {
|
|
1460
1460
|
var n = e.s(e.Z);
|
|
1461
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, ae), n.H = "Function", n;
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1464
|
-
var i =
|
|
1463
|
+
function sn(e, t, r, n) {
|
|
1464
|
+
var i = an(e, t.oa.length, !0);
|
|
1465
1465
|
return i.Va = r, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : n || "", ae), i;
|
|
1466
1466
|
}
|
|
1467
1467
|
D.i = function(e, t) {
|
|
1468
|
-
return t =
|
|
1468
|
+
return t = an(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ae), t;
|
|
1469
1469
|
};
|
|
1470
1470
|
D.ub = function(e) {
|
|
1471
|
-
var t =
|
|
1471
|
+
var t = an(this, e.length, !0);
|
|
1472
1472
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ae), t;
|
|
1473
1473
|
};
|
|
1474
1474
|
D.Ia = function(e) {
|
|
@@ -1478,7 +1478,7 @@ D.Ia = function(e) {
|
|
|
1478
1478
|
return e;
|
|
1479
1479
|
if (e instanceof RegExp) {
|
|
1480
1480
|
var t = this.s(this.Ma);
|
|
1481
|
-
return
|
|
1481
|
+
return on(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;
|
|
@@ -1541,7 +1541,7 @@ function mr(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 = rn(e.G(t, "length")) || 0, r;
|
|
1545
1545
|
}
|
|
1546
1546
|
function ye(e, t) {
|
|
1547
1547
|
switch (typeof t) {
|
|
@@ -1594,7 +1594,7 @@ D.g = function(e, t, r, n) {
|
|
|
1594
1594
|
if (t = String(t), e != null || k(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof B))
|
|
1595
1595
|
throw TypeError("Expecting native value or pseudo object");
|
|
1596
1596
|
n && ("get" in n || "set" in n) && ("value" in n || "writable" in n) && k(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1597
|
-
var i = !this.o ||
|
|
1597
|
+
var i = !this.o || ln(this).S;
|
|
1598
1598
|
if (e instanceof B) {
|
|
1599
1599
|
if (Q(this, e, this.J)) {
|
|
1600
1600
|
var a = Qe(t);
|
|
@@ -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 = rn(r), isNaN(r) && k(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];
|
|
@@ -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 ln(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 Jt(e, t, r) {
|
|
1671
1671
|
var n = !1;
|
|
1672
1672
|
if (r && r.S)
|
|
1673
1673
|
n = !0;
|
|
@@ -1677,13 +1677,13 @@ function Yt(e, t, r) {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
return i = e.s(null), n = new yr(r, n, i), r || ni(e, n.object), tt(e, t, n), n;
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function cn(e, t, r) {
|
|
1681
1681
|
if (!t)
|
|
1682
1682
|
throw Error("parentScope required");
|
|
1683
1683
|
return e = r || e.s(null), new yr(t, t.S, e);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1686
|
-
for (var r =
|
|
1685
|
+
function un(e, t) {
|
|
1686
|
+
for (var r = ln(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;
|
|
@@ -1693,7 +1693,7 @@ function cn(e, t) {
|
|
|
1693
1693
|
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || k(e, e.pb, t + " is not defined");
|
|
1694
1694
|
}
|
|
1695
1695
|
function gr(e, t, r) {
|
|
1696
|
-
for (var n =
|
|
1696
|
+
for (var n = ln(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;
|
|
@@ -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, Xn) : e.g(r.object, s,
|
|
1757
|
+
n[s] === !0 ? e.g(r.object, s, void 0, Xn) : e.g(r.object, s, sn(e, n[s], r), Xn);
|
|
1758
1758
|
return n;
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
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 dn(e, t) {
|
|
1764
|
+
return t[0] === We ? un(e, t[1]) : e.G(t[0], t[1]);
|
|
1765
1765
|
}
|
|
1766
|
-
function
|
|
1766
|
+
function fn(e, t, r) {
|
|
1767
1767
|
return t[0] === We ? gr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1768
1768
|
}
|
|
1769
1769
|
function k(e, t, r) {
|
|
1770
|
-
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t),
|
|
1770
|
+
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t), Yt(e, t, r)), it(e, 4, t), pr) : r === void 0 ? t : r;
|
|
1771
1771
|
}
|
|
1772
1772
|
function it(e, t, r, n) {
|
|
1773
1773
|
if (t === 0)
|
|
@@ -1855,8 +1855,8 @@ function Jn(e, t, r) {
|
|
|
1855
1855
|
} else {
|
|
1856
1856
|
try {
|
|
1857
1857
|
var f = _e(String(a), "taskCode" + e.ic++);
|
|
1858
|
-
} catch (
|
|
1859
|
-
k(e, e.T, "Invalid code: " +
|
|
1858
|
+
} catch (m) {
|
|
1859
|
+
k(e, e.T, "Invalid code: " + m.message);
|
|
1860
1860
|
}
|
|
1861
1861
|
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], vt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1862
1862
|
}
|
|
@@ -1881,14 +1881,14 @@ 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 hn(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
|
|
1891
|
+
function $t(e, t) {
|
|
1892
1892
|
return t == null ? e.Na : t instanceof B ? t : (e = e.s(ye(e, t)), e.data = t, e);
|
|
1893
1893
|
}
|
|
1894
1894
|
D.Xb = function() {
|
|
@@ -1968,7 +1968,7 @@ function pi(e, t, r, n, i) {
|
|
|
1968
1968
|
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++mi, this.time = 0;
|
|
1969
1969
|
}
|
|
1970
1970
|
var mi = 0;
|
|
1971
|
-
|
|
1971
|
+
g.prototype.stepArrayExpression = function(e, t, r) {
|
|
1972
1972
|
r = r.elements;
|
|
1973
1973
|
var n = t.A || 0;
|
|
1974
1974
|
for (t.Oa ? (this.g(t.Oa, n, t.value), n++) : (t.Oa = De(this), t.Oa.h.length = r.length); n < r.length; ) {
|
|
@@ -1978,11 +1978,11 @@ m.prototype.stepArrayExpression = function(e, t, r) {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
e.pop(), e[e.length - 1].value = t.Oa;
|
|
1980
1980
|
};
|
|
1981
|
-
|
|
1981
|
+
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 = dn(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,12 +2027,12 @@ m.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 = fn(this, t.Fa, n))
|
|
2031
|
+
return t.ta = !0, t.ib = n, hn(this, r, t.Fa, n);
|
|
2032
2032
|
e.pop(), e[e.length - 1].value = n;
|
|
2033
2033
|
}
|
|
2034
2034
|
};
|
|
2035
|
-
|
|
2035
|
+
g.prototype.stepBinaryExpression = function(e, t, r) {
|
|
2036
2036
|
if (!t.ja)
|
|
2037
2037
|
return t.ja = !0, new w(r.left, t.scope);
|
|
2038
2038
|
if (!t.Da)
|
|
@@ -2108,17 +2108,17 @@ m.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2108
2108
|
}
|
|
2109
2109
|
e[e.length - 1].value = r;
|
|
2110
2110
|
};
|
|
2111
|
-
|
|
2111
|
+
g.prototype.stepBlockStatement = function(e, t, r) {
|
|
2112
2112
|
var n = t.A || 0;
|
|
2113
2113
|
if (r = r.body[n])
|
|
2114
2114
|
return t.A = n + 1, new w(r, t.scope);
|
|
2115
2115
|
e.pop();
|
|
2116
2116
|
};
|
|
2117
|
-
|
|
2117
|
+
g.prototype.stepBreakStatement = function(e, t, r) {
|
|
2118
2118
|
it(this, 1, void 0, r.label && r.label.name);
|
|
2119
2119
|
};
|
|
2120
|
-
|
|
2121
|
-
|
|
2120
|
+
g.prototype.Hb = 0;
|
|
2121
|
+
g.prototype.stepCallExpression = function(e, t, r) {
|
|
2122
2122
|
if (!t.ia) {
|
|
2123
2123
|
t.ia = 1;
|
|
2124
2124
|
var n = new w(r.callee, t.scope);
|
|
@@ -2128,7 +2128,7 @@ m.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 = dn(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;
|
|
@@ -2152,11 +2152,11 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2152
2152
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2153
2153
|
else {
|
|
2154
2154
|
if (t.eb = !0, i instanceof B || k(this, this.j, oe(this, r.callee) + " is not a function"), e = i.node) {
|
|
2155
|
-
for (r =
|
|
2155
|
+
for (r = Jt(this, e.body, i.Va), n = De(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 = $t(this, t.B)), this.g(r.object, "this", t.B, nn), 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")
|
|
@@ -2167,20 +2167,20 @@ m.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2167
2167
|
} catch (u) {
|
|
2168
2168
|
k(this, this.T, "Invalid code: " + u.message);
|
|
2169
2169
|
}
|
|
2170
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, vt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r =
|
|
2170
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, vt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = Jt(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 = $t(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 = $t(this, t.B)), i.Za.apply(t.B, n);
|
|
2179
2179
|
} else
|
|
2180
2180
|
k(this, this.j, oe(this, r.callee) + " is not callable");
|
|
2181
2181
|
}
|
|
2182
2182
|
};
|
|
2183
|
-
|
|
2183
|
+
g.prototype.stepConditionalExpression = function(e, t, r) {
|
|
2184
2184
|
var n = t.na || 0;
|
|
2185
2185
|
if (n === 0)
|
|
2186
2186
|
return t.na = 1, new w(r.test, t.scope);
|
|
@@ -2193,13 +2193,13 @@ m.prototype.stepConditionalExpression = function(e, t, r) {
|
|
|
2193
2193
|
}
|
|
2194
2194
|
e.pop(), r.type === "ConditionalExpression" && (e[e.length - 1].value = t.value);
|
|
2195
2195
|
};
|
|
2196
|
-
|
|
2196
|
+
g.prototype.stepContinueStatement = function(e, t, r) {
|
|
2197
2197
|
it(this, 2, void 0, r.label && r.label.name);
|
|
2198
2198
|
};
|
|
2199
|
-
|
|
2199
|
+
g.prototype.stepDebuggerStatement = function(e) {
|
|
2200
2200
|
e.pop();
|
|
2201
2201
|
};
|
|
2202
|
-
|
|
2202
|
+
g.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
2203
2203
|
if (r.type === "DoWhileStatement" && t.ga === void 0 && (t.value = !0, t.ga = !0), !t.ga)
|
|
2204
2204
|
return t.ga = !0, new w(r.test, t.scope);
|
|
2205
2205
|
if (!t.value)
|
|
@@ -2207,21 +2207,21 @@ m.prototype.stepDoWhileStatement = function(e, t, r) {
|
|
|
2207
2207
|
else if (r.body)
|
|
2208
2208
|
return t.ga = !1, t.W = !0, new w(r.body, t.scope);
|
|
2209
2209
|
};
|
|
2210
|
-
|
|
2210
|
+
g.prototype.stepEmptyStatement = function(e) {
|
|
2211
2211
|
e.pop();
|
|
2212
2212
|
};
|
|
2213
|
-
|
|
2213
|
+
g.prototype.stepEvalProgram_ = function(e, t, r) {
|
|
2214
2214
|
var n = t.A || 0;
|
|
2215
2215
|
if (r = r.body[n])
|
|
2216
2216
|
return t.A = n + 1, new w(r, t.scope);
|
|
2217
2217
|
e.pop(), e[e.length - 1].value = this.value;
|
|
2218
2218
|
};
|
|
2219
|
-
|
|
2219
|
+
g.prototype.stepExpressionStatement = function(e, t, r) {
|
|
2220
2220
|
if (!t.ka)
|
|
2221
2221
|
return this.value = void 0, t.ka = !0, new w(r.la, t.scope);
|
|
2222
2222
|
e.pop(), this.value = t.value;
|
|
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
2226
|
return t.scope.S && k(this, this.T, "for-in loop variable declaration may not have an initializer"), new w(r.left, t.scope);
|
|
2227
2227
|
if (!t.Ca)
|
|
@@ -2256,12 +2256,12 @@ m.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 = fn(this, t.pa, e)))
|
|
2260
|
+
return hn(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
|
};
|
|
2264
|
-
|
|
2264
|
+
g.prototype.stepForStatement = function(e, t, r) {
|
|
2265
2265
|
switch (t.na) {
|
|
2266
2266
|
default:
|
|
2267
2267
|
if (t.na = 1, r.ua)
|
|
@@ -2282,29 +2282,29 @@ m.prototype.stepForStatement = function(e, t, r) {
|
|
|
2282
2282
|
return new w(r.update, t.scope);
|
|
2283
2283
|
}
|
|
2284
2284
|
};
|
|
2285
|
-
|
|
2285
|
+
g.prototype.stepFunctionDeclaration = function(e) {
|
|
2286
2286
|
e.pop();
|
|
2287
2287
|
};
|
|
2288
|
-
|
|
2289
|
-
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e =
|
|
2288
|
+
g.prototype.stepFunctionExpression = function(e, t, r) {
|
|
2289
|
+
e.pop(), t = e[e.length - 1], e = t.scope, r.id && (e = cn(this, e)), t.value = sn(this, r, e, t.Pa), r.id && this.g(e.object, r.id.name, t.value, nn);
|
|
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 = un(this, r.name), this.P)
|
|
2296
2296
|
return ot(this, t, this.Na);
|
|
2297
2297
|
e[e.length - 1].value = t;
|
|
2298
2298
|
}
|
|
2299
2299
|
};
|
|
2300
|
-
|
|
2301
|
-
|
|
2300
|
+
g.prototype.stepIfStatement = g.prototype.stepConditionalExpression;
|
|
2301
|
+
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
|
-
|
|
2305
|
-
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma),
|
|
2304
|
+
g.prototype.stepLiteral = function(e, t, r) {
|
|
2305
|
+
e.pop(), t = r.value, t instanceof RegExp && (r = this.s(this.Ma), on(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 !== "||")
|
|
2309
2309
|
throw SyntaxError("Unknown logical operator: " + r.operator);
|
|
2310
2310
|
if (!t.ja)
|
|
@@ -2316,7 +2316,7 @@ m.prototype.stepLogicalExpression = function(e, t, r) {
|
|
|
2316
2316
|
else
|
|
2317
2317
|
return t.Da = !0, new w(r.right, t.scope);
|
|
2318
2318
|
};
|
|
2319
|
-
|
|
2319
|
+
g.prototype.stepMemberExpression = function(e, t, r) {
|
|
2320
2320
|
if (!t.Ca)
|
|
2321
2321
|
return t.Ca = !0, new w(r.object, t.scope);
|
|
2322
2322
|
if (r.bb)
|
|
@@ -2334,8 +2334,8 @@ m.prototype.stepMemberExpression = function(e, t, r) {
|
|
|
2334
2334
|
e[e.length - 1].value = r;
|
|
2335
2335
|
}
|
|
2336
2336
|
};
|
|
2337
|
-
|
|
2338
|
-
|
|
2337
|
+
g.prototype.stepNewExpression = g.prototype.stepCallExpression;
|
|
2338
|
+
g.prototype.stepObjectExpression = function(e, t, r) {
|
|
2339
2339
|
var n = t.A || 0, i = r.h[n];
|
|
2340
2340
|
if (t.u) {
|
|
2341
2341
|
var a = t.Pa;
|
|
@@ -2361,23 +2361,23 @@ m.prototype.stepObjectExpression = function(e, t, r) {
|
|
|
2361
2361
|
}) : this.g(t.u, s, r.init);
|
|
2362
2362
|
e.pop(), e[e.length - 1].value = t.u;
|
|
2363
2363
|
};
|
|
2364
|
-
|
|
2364
|
+
g.prototype.stepProgram = function(e, t, r) {
|
|
2365
2365
|
if (e = r.body.shift())
|
|
2366
2366
|
return t.done = !1, new w(e, t.scope);
|
|
2367
2367
|
t.done = !0;
|
|
2368
2368
|
};
|
|
2369
|
-
|
|
2369
|
+
g.prototype.stepReturnStatement = function(e, t, r) {
|
|
2370
2370
|
if (r.K && !t.ka)
|
|
2371
2371
|
return t.ka = !0, new w(r.K, t.scope);
|
|
2372
2372
|
it(this, 3, t.value);
|
|
2373
2373
|
};
|
|
2374
|
-
|
|
2374
|
+
g.prototype.stepSequenceExpression = function(e, t, r) {
|
|
2375
2375
|
var n = t.A || 0;
|
|
2376
2376
|
if (r = r.xb[n])
|
|
2377
2377
|
return t.A = n + 1, new w(r, t.scope);
|
|
2378
2378
|
e.pop(), e[e.length - 1].value = t.value;
|
|
2379
2379
|
};
|
|
2380
|
-
|
|
2380
|
+
g.prototype.stepSwitchStatement = function(e, t, r) {
|
|
2381
2381
|
if (!t.ga)
|
|
2382
2382
|
return t.ga = 1, new w(r.Qb, t.scope);
|
|
2383
2383
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
@@ -2404,25 +2404,25 @@ m.prototype.stepSwitchStatement = function(e, t, r) {
|
|
|
2404
2404
|
t.cb = n, t.gb = n + 1;
|
|
2405
2405
|
}
|
|
2406
2406
|
};
|
|
2407
|
-
|
|
2408
|
-
e.pop(), e[e.length - 1].value =
|
|
2407
|
+
g.prototype.stepThisExpression = function(e) {
|
|
2408
|
+
e.pop(), e[e.length - 1].value = un(this, "this");
|
|
2409
2409
|
};
|
|
2410
|
-
|
|
2410
|
+
g.prototype.stepThrowStatement = function(e, t, r) {
|
|
2411
2411
|
if (t.ka)
|
|
2412
2412
|
k(this, t.value);
|
|
2413
2413
|
else
|
|
2414
2414
|
return t.ka = !0, new w(r.K, t.scope);
|
|
2415
2415
|
};
|
|
2416
|
-
|
|
2416
|
+
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 = cn(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);
|
|
2424
2424
|
};
|
|
2425
|
-
|
|
2425
|
+
g.prototype.stepUnaryExpression = function(e, t, r) {
|
|
2426
2426
|
if (!t.ka)
|
|
2427
2427
|
return t.ka = !0, e = new w(r.K, t.scope), e.sa = r.operator === "delete", e;
|
|
2428
2428
|
e.pop();
|
|
@@ -2463,11 +2463,11 @@ m.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2463
2463
|
}
|
|
2464
2464
|
e[e.length - 1].value = n;
|
|
2465
2465
|
};
|
|
2466
|
-
|
|
2466
|
+
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 = dn(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,12 +2480,12 @@ m.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 = fn(this, t.Ga, i))
|
|
2484
|
+
return t.ta = !0, t.ib = r, hn(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
2491
|
for (t.Bb && i && (gr(this, i.id.name, t.value), t.Bb = !1, i = r[++n]); i; ) {
|
|
@@ -2495,26 +2495,26 @@ m.prototype.stepVariableDeclaration = function(e, t, r) {
|
|
|
2495
2495
|
}
|
|
2496
2496
|
e.pop();
|
|
2497
2497
|
};
|
|
2498
|
-
|
|
2499
|
-
return t.Ca ? (e.pop(), e =
|
|
2498
|
+
g.prototype.stepWithStatement = function(e, t, r) {
|
|
2499
|
+
return t.Ca ? (e.pop(), e = cn(this, t.scope, t.value), new w(r.body, e)) : (t.Ca = !0, new w(r.object, t.scope));
|
|
2500
2500
|
};
|
|
2501
|
-
|
|
2502
|
-
we.Interpreter =
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2501
|
+
g.prototype.stepWhileStatement = g.prototype.stepDoWhileStatement;
|
|
2502
|
+
we.Interpreter = g;
|
|
2503
|
+
g.prototype.step = g.prototype.lb;
|
|
2504
|
+
g.prototype.run = g.prototype.Eb;
|
|
2505
|
+
g.prototype.appendCode = g.prototype.Jb;
|
|
2506
|
+
g.prototype.createObject = g.prototype.Aa;
|
|
2507
|
+
g.prototype.createObjectProto = g.prototype.s;
|
|
2508
|
+
g.prototype.createAsyncFunction = g.prototype.ub;
|
|
2509
|
+
g.prototype.createNativeFunction = g.prototype.i;
|
|
2510
|
+
g.prototype.getProperty = g.prototype.G;
|
|
2511
|
+
g.prototype.setProperty = g.prototype.g;
|
|
2512
|
+
g.prototype.nativeToPseudo = g.prototype.Ia;
|
|
2513
|
+
g.prototype.pseudoToNative = g.prototype.R;
|
|
2514
|
+
g.prototype.getGlobalScope = g.prototype.Xb;
|
|
2515
|
+
g.prototype.getStateStack = g.prototype.Yb;
|
|
2516
|
+
g.prototype.setStateStack = g.prototype.ec;
|
|
2517
|
+
g.VALUE_IN_DESCRIPTOR = et;
|
|
2518
2518
|
const gi = (e) => e.split(`
|
|
2519
2519
|
`).map((t) => {
|
|
2520
2520
|
const r = t.trim();
|
|
@@ -2545,7 +2545,7 @@ const gi = (e) => e.split(`
|
|
|
2545
2545
|
context: t,
|
|
2546
2546
|
event: r,
|
|
2547
2547
|
state: u
|
|
2548
|
-
}),
|
|
2548
|
+
}), m = f.map(([O]) => {
|
|
2549
2549
|
const P = Zn(O);
|
|
2550
2550
|
return `var ${O} = ${P} === undefined ? undefined : JSON.parse(${P});`;
|
|
2551
2551
|
}).join(`
|
|
@@ -2554,9 +2554,9 @@ const gi = (e) => e.split(`
|
|
|
2554
2554
|
Ue.warn("Skipping evaluation of empty code block.");
|
|
2555
2555
|
return;
|
|
2556
2556
|
}
|
|
2557
|
-
const
|
|
2557
|
+
const x = `
|
|
2558
2558
|
function theFunction() {
|
|
2559
|
-
${
|
|
2559
|
+
${m}
|
|
2560
2560
|
|
|
2561
2561
|
${v}
|
|
2562
2562
|
}
|
|
@@ -2571,7 +2571,7 @@ theFunction();
|
|
|
2571
2571
|
}), O.setProperty(P, "setRootState", O.createNativeFunction(U));
|
|
2572
2572
|
};
|
|
2573
2573
|
try {
|
|
2574
|
-
const O = new
|
|
2574
|
+
const O = new g(x, F);
|
|
2575
2575
|
return O.run(), O.pseudoToNative(O.value);
|
|
2576
2576
|
} catch (O) {
|
|
2577
2577
|
Ue.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
@@ -2613,7 +2613,7 @@ function nt({
|
|
|
2613
2613
|
return;
|
|
2614
2614
|
}
|
|
2615
2615
|
}
|
|
2616
|
-
const
|
|
2616
|
+
const bi = ({
|
|
2617
2617
|
block: e,
|
|
2618
2618
|
context: t,
|
|
2619
2619
|
localState: r,
|
|
@@ -2622,7 +2622,7 @@ const xi = ({
|
|
|
2622
2622
|
}) => {
|
|
2623
2623
|
if (!e.bindings)
|
|
2624
2624
|
return e;
|
|
2625
|
-
const a =
|
|
2625
|
+
const a = en(e), s = {
|
|
2626
2626
|
...a,
|
|
2627
2627
|
properties: {
|
|
2628
2628
|
...a.properties
|
|
@@ -2632,14 +2632,14 @@ const xi = ({
|
|
|
2632
2632
|
}
|
|
2633
2633
|
};
|
|
2634
2634
|
for (const u in e.bindings) {
|
|
2635
|
-
const f = e.bindings[u],
|
|
2635
|
+
const f = e.bindings[u], m = nt({
|
|
2636
2636
|
code: f,
|
|
2637
2637
|
localState: r,
|
|
2638
2638
|
rootState: n,
|
|
2639
2639
|
rootSetState: i,
|
|
2640
2640
|
context: t
|
|
2641
2641
|
});
|
|
2642
|
-
hr(s, u,
|
|
2642
|
+
hr(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 ? bi({
|
|
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 xi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Ht = (e) => typeof e == "string" && xi.includes(e.toLowerCase()), Si = ({
|
|
2664
2664
|
block: e,
|
|
2665
2665
|
context: t,
|
|
2666
2666
|
registeredComponents: r
|
|
@@ -2702,20 +2702,20 @@ const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2702
2702
|
if (!Array.isArray(i))
|
|
2703
2703
|
return;
|
|
2704
2704
|
const a = r.collection.split(".").pop(), s = r.itemName || (a ? a + "Item" : "item");
|
|
2705
|
-
return i.map((f,
|
|
2705
|
+
return i.map((f, m) => ({
|
|
2706
2706
|
context: {
|
|
2707
2707
|
...t,
|
|
2708
2708
|
localState: {
|
|
2709
2709
|
...t.localState,
|
|
2710
|
-
$index:
|
|
2710
|
+
$index: m,
|
|
2711
2711
|
$item: f,
|
|
2712
2712
|
[s]: f,
|
|
2713
|
-
[`$${s}Index`]:
|
|
2713
|
+
[`$${s}Index`]: m
|
|
2714
2714
|
}
|
|
2715
2715
|
},
|
|
2716
2716
|
block: n
|
|
2717
2717
|
}));
|
|
2718
|
-
},
|
|
2718
|
+
}, br = {
|
|
2719
2719
|
small: {
|
|
2720
2720
|
min: 320,
|
|
2721
2721
|
default: 321,
|
|
@@ -2731,11 +2731,11 @@ const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2731
2731
|
default: 991,
|
|
2732
2732
|
max: 1200
|
|
2733
2733
|
}
|
|
2734
|
-
}, Qn = (e, t =
|
|
2734
|
+
}, Qn = (e, t = br) => `@media (max-width: ${t[e].max}px)`, xr = ({
|
|
2735
2735
|
small: e,
|
|
2736
2736
|
medium: t
|
|
2737
2737
|
}) => {
|
|
2738
|
-
const r =
|
|
2738
|
+
const r = en(br);
|
|
2739
2739
|
if (!e || !t)
|
|
2740
2740
|
return r;
|
|
2741
2741
|
const n = Math.floor(e / 2);
|
|
@@ -2760,8 +2760,8 @@ const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2760
2760
|
}, ki = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Sr = (e) => Object.entries(e).map(([r, n]) => {
|
|
2761
2761
|
if (typeof n == "string")
|
|
2762
2762
|
return `${ki(r)}: ${n};`;
|
|
2763
|
-
}).filter(
|
|
2764
|
-
`),
|
|
2763
|
+
}).filter(zt), Ci = (e) => Sr(e).join(`
|
|
2764
|
+
`), Kt = ({
|
|
2765
2765
|
mediaQuery: e,
|
|
2766
2766
|
className: t,
|
|
2767
2767
|
styles: r
|
|
@@ -2773,7 +2773,7 @@ const bi = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2773
2773
|
${n}
|
|
2774
2774
|
}` : n;
|
|
2775
2775
|
};
|
|
2776
|
-
function
|
|
2776
|
+
function bt(e) {
|
|
2777
2777
|
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2778
2778
|
}
|
|
2779
2779
|
function Ei(e) {
|
|
@@ -2786,7 +2786,7 @@ function Ei(e) {
|
|
|
2786
2786
|
context: e.context.context,
|
|
2787
2787
|
shouldEvaluateBindings: !0
|
|
2788
2788
|
});
|
|
2789
|
-
return
|
|
2789
|
+
return zt(n.hide) ? !n.hide : zt(n.show) ? n.show : !0;
|
|
2790
2790
|
}
|
|
2791
2791
|
function r() {
|
|
2792
2792
|
var O;
|
|
@@ -2797,32 +2797,32 @@ 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 =
|
|
2800
|
+
}), i = n.responsiveStyles, a = e.context.content, s = xr(
|
|
2801
2801
|
((O = a == null ? void 0 : a.meta) == null ? void 0 : O.breakpoints) || {}
|
|
2802
|
-
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium,
|
|
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 x = u ? Kt({
|
|
2806
2806
|
className: v,
|
|
2807
2807
|
styles: u
|
|
2808
|
-
}) : "", U = f ?
|
|
2808
|
+
}) : "", U = f ? Kt({
|
|
2809
2809
|
className: v,
|
|
2810
2810
|
styles: f,
|
|
2811
2811
|
mediaQuery: Qn(
|
|
2812
2812
|
"medium",
|
|
2813
2813
|
s
|
|
2814
2814
|
)
|
|
2815
|
-
}) : "", F =
|
|
2815
|
+
}) : "", F = m ? Kt({
|
|
2816
2816
|
className: v,
|
|
2817
|
-
styles:
|
|
2817
|
+
styles: m,
|
|
2818
2818
|
mediaQuery: Qn(
|
|
2819
2819
|
"small",
|
|
2820
2820
|
s
|
|
2821
2821
|
)
|
|
2822
2822
|
}) : "";
|
|
2823
|
-
return [
|
|
2823
|
+
return [x, U, F].join(" ");
|
|
2824
2824
|
}
|
|
2825
|
-
return /* @__PURE__ */ p(N, { children: r() && t() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
2825
|
+
return /* @__PURE__ */ p(N, { children: r() && t() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(bt, { styles: r() }) }) : null });
|
|
2826
2826
|
}
|
|
2827
2827
|
function Ii(e) {
|
|
2828
2828
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
@@ -2836,7 +2836,7 @@ 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 qt(e) {
|
|
2840
2840
|
var n;
|
|
2841
2841
|
const t = {}, r = (n = e.block.actions) != null ? n : {};
|
|
2842
2842
|
for (const i in r) {
|
|
@@ -2906,7 +2906,7 @@ function er(e) {
|
|
|
2906
2906
|
block: e.block,
|
|
2907
2907
|
context: e.context
|
|
2908
2908
|
}),
|
|
2909
|
-
...
|
|
2909
|
+
...qt({
|
|
2910
2910
|
block: e.block,
|
|
2911
2911
|
rootState: e.context.rootState,
|
|
2912
2912
|
rootSetState: e.context.rootSetState,
|
|
@@ -2927,7 +2927,7 @@ function er(e) {
|
|
|
2927
2927
|
block: e.block,
|
|
2928
2928
|
context: e.context
|
|
2929
2929
|
}),
|
|
2930
|
-
...
|
|
2930
|
+
...qt({
|
|
2931
2931
|
block: e.block,
|
|
2932
2932
|
rootState: e.context.rootState,
|
|
2933
2933
|
rootSetState: e.context.rootSetState,
|
|
@@ -2950,7 +2950,7 @@ function Pi(e) {
|
|
|
2950
2950
|
block: e.block,
|
|
2951
2951
|
context: e.context
|
|
2952
2952
|
}),
|
|
2953
|
-
...
|
|
2953
|
+
...qt({
|
|
2954
2954
|
block: e.block,
|
|
2955
2955
|
rootState: e.context.rootState,
|
|
2956
2956
|
rootSetState: e.context.rootSetState,
|
|
@@ -3010,7 +3010,7 @@ function tr(e) {
|
|
|
3010
3010
|
contextValue: e.context
|
|
3011
3011
|
}),
|
|
3012
3012
|
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ p(
|
|
3013
|
-
|
|
3013
|
+
xt,
|
|
3014
3014
|
{
|
|
3015
3015
|
block: i,
|
|
3016
3016
|
context: e.context,
|
|
@@ -3023,8 +3023,8 @@ function tr(e) {
|
|
|
3023
3023
|
}
|
|
3024
3024
|
function Mi(e) {
|
|
3025
3025
|
const [t, r] = V(() => e.repeatContext);
|
|
3026
|
-
return /* @__PURE__ */ p(
|
|
3027
|
-
|
|
3026
|
+
return /* @__PURE__ */ p(tn.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3027
|
+
xt,
|
|
3028
3028
|
{
|
|
3029
3029
|
block: e.block,
|
|
3030
3030
|
context: t,
|
|
@@ -3032,8 +3032,8 @@ function Mi(e) {
|
|
|
3032
3032
|
}
|
|
3033
3033
|
) });
|
|
3034
3034
|
}
|
|
3035
|
-
function
|
|
3036
|
-
var v,
|
|
3035
|
+
function xt(e) {
|
|
3036
|
+
var v, x, U;
|
|
3037
3037
|
function t() {
|
|
3038
3038
|
return Si({
|
|
3039
3039
|
block: e.block,
|
|
@@ -3091,7 +3091,7 @@ function bt(e) {
|
|
|
3091
3091
|
isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
|
|
3092
3092
|
};
|
|
3093
3093
|
}
|
|
3094
|
-
const [f,
|
|
3094
|
+
const [f, m] = V(() => e.context);
|
|
3095
3095
|
return /* @__PURE__ */ p(N, { children: a() ? /* @__PURE__ */ te(N, { children: [
|
|
3096
3096
|
/* @__PURE__ */ p(Ei, { block: e.block, context: e.context }),
|
|
3097
3097
|
(v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
@@ -3107,7 +3107,7 @@ function bt(e) {
|
|
|
3107
3107
|
isInteractive: u().isInteractive
|
|
3108
3108
|
}
|
|
3109
3109
|
) }) : /* @__PURE__ */ te(N, { children: [
|
|
3110
|
-
|
|
3110
|
+
Ht(i()) ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3111
3111
|
er,
|
|
3112
3112
|
{
|
|
3113
3113
|
Wrapper: i(),
|
|
@@ -3116,7 +3116,7 @@ function bt(e) {
|
|
|
3116
3116
|
hasChildren: !1
|
|
3117
3117
|
}
|
|
3118
3118
|
) }) : null,
|
|
3119
|
-
|
|
3119
|
+
!Ht(i()) && r() ? /* @__PURE__ */ p(N, { children: (x = r()) == null ? void 0 : x.map((F, O) => /* @__PURE__ */ p(
|
|
3120
3120
|
Mi,
|
|
3121
3121
|
{
|
|
3122
3122
|
repeatContext: F.context,
|
|
@@ -3125,7 +3125,7 @@ function bt(e) {
|
|
|
3125
3125
|
},
|
|
3126
3126
|
O
|
|
3127
3127
|
)) }) : null,
|
|
3128
|
-
|
|
3128
|
+
!Ht(i()) && !r() ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ te(
|
|
3129
3129
|
er,
|
|
3130
3130
|
{
|
|
3131
3131
|
Wrapper: i(),
|
|
@@ -3147,7 +3147,7 @@ function bt(e) {
|
|
|
3147
3147
|
}
|
|
3148
3148
|
),
|
|
3149
3149
|
(U = s()) == null ? void 0 : U.map((F) => /* @__PURE__ */ p(
|
|
3150
|
-
|
|
3150
|
+
xt,
|
|
3151
3151
|
{
|
|
3152
3152
|
block: F,
|
|
3153
3153
|
context: f,
|
|
@@ -3214,9 +3214,9 @@ function Bi(e) {
|
|
|
3214
3214
|
}` })
|
|
3215
3215
|
] });
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3217
|
+
function St(e) {
|
|
3218
3218
|
var n, i, a;
|
|
3219
|
-
const t = $n(
|
|
3219
|
+
const t = $n(tn), r = $n(dr);
|
|
3220
3220
|
return /* @__PURE__ */ p(
|
|
3221
3221
|
Bi,
|
|
3222
3222
|
{
|
|
@@ -3227,7 +3227,7 @@ function hn(e) {
|
|
|
3227
3227
|
BlocksWrapper: (n = e.context) == null ? void 0 : n.BlocksWrapper,
|
|
3228
3228
|
BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
|
|
3229
3229
|
children: e.blocks ? /* @__PURE__ */ p(N, { children: (a = e.blocks) == null ? void 0 : a.map((s) => /* @__PURE__ */ p(
|
|
3230
|
-
|
|
3230
|
+
xt,
|
|
3231
3231
|
{
|
|
3232
3232
|
block: s,
|
|
3233
3233
|
context: e.context || t,
|
|
@@ -3253,7 +3253,7 @@ function Fi(e) {
|
|
|
3253
3253
|
const K = t * (n.length - 1) / n.length;
|
|
3254
3254
|
return `calc(${u(y)}% - ${K}px)`;
|
|
3255
3255
|
}
|
|
3256
|
-
function
|
|
3256
|
+
function m({
|
|
3257
3257
|
stackedStyle: y,
|
|
3258
3258
|
desktopStyle: K
|
|
3259
3259
|
}) {
|
|
@@ -3265,14 +3265,14 @@ function Fi(e) {
|
|
|
3265
3265
|
}) {
|
|
3266
3266
|
return a === "never" ? K : y;
|
|
3267
3267
|
}
|
|
3268
|
-
const [
|
|
3268
|
+
const [x, U] = V(
|
|
3269
3269
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3270
3270
|
);
|
|
3271
3271
|
function F() {
|
|
3272
3272
|
return {
|
|
3273
|
-
"--flex-dir":
|
|
3274
|
-
"--flex-dir-tablet":
|
|
3275
|
-
stackedStyle:
|
|
3273
|
+
"--flex-dir": x,
|
|
3274
|
+
"--flex-dir-tablet": m({
|
|
3275
|
+
stackedStyle: x,
|
|
3276
3276
|
desktopStyle: "row"
|
|
3277
3277
|
})
|
|
3278
3278
|
};
|
|
@@ -3290,11 +3290,11 @@ function Fi(e) {
|
|
|
3290
3290
|
stackedStyle: re,
|
|
3291
3291
|
desktopStyle: le
|
|
3292
3292
|
}),
|
|
3293
|
-
"--column-width-tablet":
|
|
3293
|
+
"--column-width-tablet": m({
|
|
3294
3294
|
stackedStyle: $,
|
|
3295
3295
|
desktopStyle: ne
|
|
3296
3296
|
}),
|
|
3297
|
-
"--column-margin-left-tablet":
|
|
3297
|
+
"--column-margin-left-tablet": m({
|
|
3298
3298
|
stackedStyle: re,
|
|
3299
3299
|
desktopStyle: le
|
|
3300
3300
|
})
|
|
@@ -3302,7 +3302,7 @@ function Fi(e) {
|
|
|
3302
3302
|
}
|
|
3303
3303
|
function P(y) {
|
|
3304
3304
|
var ne, le;
|
|
3305
|
-
return
|
|
3305
|
+
return xr(
|
|
3306
3306
|
((le = (ne = e.builderContext.content) == null ? void 0 : ne.meta) == null ? void 0 : le.breakpoints) || {}
|
|
3307
3307
|
)[y].max;
|
|
3308
3308
|
}
|
|
@@ -3340,7 +3340,7 @@ function Fi(e) {
|
|
|
3340
3340
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,
|
|
3341
3341
|
style: F(),
|
|
3342
3342
|
children: [
|
|
3343
|
-
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
3343
|
+
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(bt, { styles: L() }) }),
|
|
3344
3344
|
(Y = e.columns) == null ? void 0 : Y.map((y, K) => /* @__PURE__ */ cr(
|
|
3345
3345
|
"div",
|
|
3346
3346
|
{
|
|
@@ -3349,7 +3349,7 @@ function Fi(e) {
|
|
|
3349
3349
|
key: K
|
|
3350
3350
|
},
|
|
3351
3351
|
/* @__PURE__ */ p(
|
|
3352
|
-
|
|
3352
|
+
St,
|
|
3353
3353
|
{
|
|
3354
3354
|
path: `component.options.columns.${K}.blocks`,
|
|
3355
3355
|
parent: e.builderBlock.id,
|
|
@@ -3397,7 +3397,7 @@ function Di(e, t) {
|
|
|
3397
3397
|
}
|
|
3398
3398
|
return null;
|
|
3399
3399
|
}
|
|
3400
|
-
function
|
|
3400
|
+
function Gt(e) {
|
|
3401
3401
|
if (!e)
|
|
3402
3402
|
return e;
|
|
3403
3403
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -3412,17 +3412,17 @@ function Wi(e) {
|
|
|
3412
3412
|
var i, a, s, u;
|
|
3413
3413
|
function t() {
|
|
3414
3414
|
var v;
|
|
3415
|
-
const
|
|
3416
|
-
if (!
|
|
3415
|
+
const m = e.image || e.src;
|
|
3416
|
+
if (!m || // We can auto add srcset for cdn.builder.io and shopify
|
|
3417
3417
|
// images, otherwise you can supply this prop manually
|
|
3418
|
-
!(
|
|
3418
|
+
!(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
|
|
3419
3419
|
return e.srcset;
|
|
3420
3420
|
if (e.srcset && ((v = e.image) != null && v.includes("builder.io/api/v1/image"))) {
|
|
3421
3421
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3422
|
-
return console.debug("Removed given srcset"),
|
|
3422
|
+
return console.debug("Removed given srcset"), Gt(m);
|
|
3423
3423
|
} else if (e.image && !e.srcset)
|
|
3424
|
-
return
|
|
3425
|
-
return
|
|
3424
|
+
return Gt(m);
|
|
3425
|
+
return Gt(m);
|
|
3426
3426
|
}
|
|
3427
3427
|
function r() {
|
|
3428
3428
|
var f;
|
|
@@ -3770,29 +3770,29 @@ const Li = {
|
|
|
3770
3770
|
}]
|
|
3771
3771
|
};
|
|
3772
3772
|
function Ki(e) {
|
|
3773
|
-
const t =
|
|
3773
|
+
const t = Qt(null), [r, n] = V(() => []), [i, a] = V(() => []);
|
|
3774
3774
|
return Z(() => {
|
|
3775
3775
|
var u;
|
|
3776
3776
|
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
3777
3777
|
return;
|
|
3778
3778
|
const s = t.current.getElementsByTagName("script");
|
|
3779
3779
|
for (let f = 0; f < s.length; f++) {
|
|
3780
|
-
const
|
|
3781
|
-
if (
|
|
3782
|
-
if (r.includes(
|
|
3780
|
+
const m = s[f];
|
|
3781
|
+
if (m.src) {
|
|
3782
|
+
if (r.includes(m.src))
|
|
3783
3783
|
continue;
|
|
3784
|
-
r.push(
|
|
3784
|
+
r.push(m.src);
|
|
3785
3785
|
const v = document.createElement("script");
|
|
3786
|
-
v.async = !0, v.src =
|
|
3787
|
-
} else if (!
|
|
3786
|
+
v.async = !0, v.src = m.src, document.head.appendChild(v);
|
|
3787
|
+
} else if (!m.type || [
|
|
3788
3788
|
"text/javascript",
|
|
3789
3789
|
"application/javascript",
|
|
3790
3790
|
"application/ecmascript"
|
|
3791
|
-
].includes(
|
|
3792
|
-
if (i.includes(
|
|
3791
|
+
].includes(m.type)) {
|
|
3792
|
+
if (i.includes(m.innerText))
|
|
3793
3793
|
continue;
|
|
3794
3794
|
try {
|
|
3795
|
-
i.push(
|
|
3795
|
+
i.push(m.innerText), new Function(m.innerText)();
|
|
3796
3796
|
} catch (v) {
|
|
3797
3797
|
console.warn("`CustomCode`: Error running script:", v);
|
|
3798
3798
|
}
|
|
@@ -3834,20 +3834,20 @@ const Gi = {
|
|
|
3834
3834
|
}]
|
|
3835
3835
|
}, zi = ["text/javascript", "application/javascript", "application/ecmascript"], Xi = (e) => zi.includes(e.type);
|
|
3836
3836
|
function Yi(e) {
|
|
3837
|
-
const t =
|
|
3837
|
+
const t = Qt(null), [r, n] = V(() => []), [i, a] = V(() => []), [s, u] = V(() => !1);
|
|
3838
3838
|
function f() {
|
|
3839
3839
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3840
3840
|
return;
|
|
3841
|
-
const
|
|
3842
|
-
for (let v = 0; v <
|
|
3843
|
-
const
|
|
3844
|
-
if (
|
|
3845
|
-
r.push(
|
|
3841
|
+
const m = t.current.getElementsByTagName("script");
|
|
3842
|
+
for (let v = 0; v < m.length; v++) {
|
|
3843
|
+
const x = m[v];
|
|
3844
|
+
if (x.src && !r.includes(x.src)) {
|
|
3845
|
+
r.push(x.src);
|
|
3846
3846
|
const U = document.createElement("script");
|
|
3847
|
-
U.async = !0, U.src =
|
|
3848
|
-
} else if (Xi(
|
|
3847
|
+
U.async = !0, U.src = x.src, document.head.appendChild(U);
|
|
3848
|
+
} else if (Xi(x) && !i.includes(x.innerText))
|
|
3849
3849
|
try {
|
|
3850
|
-
i.push(
|
|
3850
|
+
i.push(x.innerText), new Function(x.innerText)();
|
|
3851
3851
|
} catch (U) {
|
|
3852
3852
|
console.warn("`Embed`: Error running script:", U);
|
|
3853
3853
|
}
|
|
@@ -3891,15 +3891,15 @@ const Ji = {
|
|
|
3891
3891
|
onChange: (e) => {
|
|
3892
3892
|
e.delete("srcset"), e.delete("noWebp");
|
|
3893
3893
|
function r(s, u = 6e4) {
|
|
3894
|
-
return new Promise((f,
|
|
3894
|
+
return new Promise((f, m) => {
|
|
3895
3895
|
const v = document.createElement("img");
|
|
3896
|
-
let
|
|
3896
|
+
let x = !1;
|
|
3897
3897
|
v.onload = () => {
|
|
3898
|
-
|
|
3898
|
+
x = !0, f(v);
|
|
3899
3899
|
}, v.addEventListener("error", (U) => {
|
|
3900
|
-
console.warn("Image load failed", U.error),
|
|
3900
|
+
console.warn("Image load failed", U.error), m(U.error);
|
|
3901
3901
|
}), v.src = s, setTimeout(() => {
|
|
3902
|
-
|
|
3902
|
+
x || m(new Error("Image load timed out"));
|
|
3903
3903
|
}, u);
|
|
3904
3904
|
});
|
|
3905
3905
|
}
|
|
@@ -4040,6 +4040,43 @@ const eo = {
|
|
|
4040
4040
|
}
|
|
4041
4041
|
}]
|
|
4042
4042
|
}, to = {
|
|
4043
|
+
name: "Slot",
|
|
4044
|
+
isRSC: !0,
|
|
4045
|
+
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
4046
|
+
docsLink: "https://www.builder.io/c/docs/symbols-with-blocks",
|
|
4047
|
+
image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F3aad6de36eae43b59b52c85190fdef56",
|
|
4048
|
+
// Maybe wrap this for canHaveChildren so bind children to this hm
|
|
4049
|
+
inputs: [{
|
|
4050
|
+
name: "name",
|
|
4051
|
+
type: "string",
|
|
4052
|
+
required: !0,
|
|
4053
|
+
defaultValue: "children"
|
|
4054
|
+
}]
|
|
4055
|
+
};
|
|
4056
|
+
function no(e) {
|
|
4057
|
+
var t, r, n;
|
|
4058
|
+
return /* @__PURE__ */ p(
|
|
4059
|
+
"div",
|
|
4060
|
+
{
|
|
4061
|
+
style: {
|
|
4062
|
+
pointerEvents: "auto"
|
|
4063
|
+
},
|
|
4064
|
+
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
4065
|
+
"builder-slot": e.name
|
|
4066
|
+
},
|
|
4067
|
+
children: /* @__PURE__ */ p(
|
|
4068
|
+
St,
|
|
4069
|
+
{
|
|
4070
|
+
parent: (r = e.builderContext.context) == null ? void 0 : r.symbolId,
|
|
4071
|
+
path: `symbol.data.${e.name}`,
|
|
4072
|
+
context: e.builderContext,
|
|
4073
|
+
blocks: (n = e.builderContext.rootState) == null ? void 0 : n[e.name]
|
|
4074
|
+
}
|
|
4075
|
+
)
|
|
4076
|
+
}
|
|
4077
|
+
);
|
|
4078
|
+
}
|
|
4079
|
+
const ro = {
|
|
4043
4080
|
name: "Symbol",
|
|
4044
4081
|
noWrap: !0,
|
|
4045
4082
|
static: !0,
|
|
@@ -4072,7 +4109,7 @@ const eo = {
|
|
|
4072
4109
|
hideFromUI: !0,
|
|
4073
4110
|
type: "boolean"
|
|
4074
4111
|
}]
|
|
4075
|
-
},
|
|
4112
|
+
}, io = {
|
|
4076
4113
|
name: "Text",
|
|
4077
4114
|
static: !0,
|
|
4078
4115
|
isRSC: !0,
|
|
@@ -4091,7 +4128,7 @@ const eo = {
|
|
|
4091
4128
|
textAlign: "center"
|
|
4092
4129
|
}
|
|
4093
4130
|
};
|
|
4094
|
-
function
|
|
4131
|
+
function oo(e) {
|
|
4095
4132
|
var t;
|
|
4096
4133
|
return /* @__PURE__ */ p(
|
|
4097
4134
|
"div",
|
|
@@ -4104,7 +4141,7 @@ function ro(e) {
|
|
|
4104
4141
|
}
|
|
4105
4142
|
);
|
|
4106
4143
|
}
|
|
4107
|
-
const
|
|
4144
|
+
const ao = {
|
|
4108
4145
|
name: "Video",
|
|
4109
4146
|
canHaveChildren: !0,
|
|
4110
4147
|
defaultStyles: {
|
|
@@ -4186,8 +4223,8 @@ const io = {
|
|
|
4186
4223
|
advanced: !0
|
|
4187
4224
|
}]
|
|
4188
4225
|
};
|
|
4189
|
-
function
|
|
4190
|
-
var n, i, a, s, u, f,
|
|
4226
|
+
function so(e) {
|
|
4227
|
+
var n, i, a, s, u, f, m;
|
|
4191
4228
|
function t() {
|
|
4192
4229
|
return {
|
|
4193
4230
|
...e.autoPlay === !0 ? {
|
|
@@ -4266,7 +4303,7 @@ function oo(e) {
|
|
|
4266
4303
|
children: e.children
|
|
4267
4304
|
}
|
|
4268
4305
|
) }) : null,
|
|
4269
|
-
(
|
|
4306
|
+
(m = (f = e.builderBlock) == null ? void 0 : f.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
4270
4307
|
"div",
|
|
4271
4308
|
{
|
|
4272
4309
|
style: {
|
|
@@ -4312,15 +4349,18 @@ const rr = () => [{
|
|
|
4312
4349
|
component: Vi,
|
|
4313
4350
|
...eo
|
|
4314
4351
|
}, {
|
|
4315
|
-
component:
|
|
4316
|
-
...
|
|
4317
|
-
}, {
|
|
4318
|
-
component: ro,
|
|
4319
|
-
...no
|
|
4352
|
+
component: Ro,
|
|
4353
|
+
...ro
|
|
4320
4354
|
}, {
|
|
4321
4355
|
component: oo,
|
|
4322
4356
|
...io
|
|
4323
|
-
}
|
|
4357
|
+
}, {
|
|
4358
|
+
component: so,
|
|
4359
|
+
...ao
|
|
4360
|
+
}, {
|
|
4361
|
+
component: no,
|
|
4362
|
+
...to
|
|
4363
|
+
}], lo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4324
4364
|
function getAndSetVariantId() {
|
|
4325
4365
|
function setCookie(name, value, days) {
|
|
4326
4366
|
let expires = '';
|
|
@@ -4376,7 +4416,7 @@ const rr = () => [{
|
|
|
4376
4416
|
}).join('');
|
|
4377
4417
|
styleEl.innerHTML = newStyleStr;
|
|
4378
4418
|
}
|
|
4379
|
-
}`,
|
|
4419
|
+
}`, co = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4380
4420
|
if (!navigator.cookieEnabled) {
|
|
4381
4421
|
return;
|
|
4382
4422
|
}
|
|
@@ -4414,22 +4454,22 @@ const rr = () => [{
|
|
|
4414
4454
|
...t,
|
|
4415
4455
|
testVariationId: t.id,
|
|
4416
4456
|
id: e == null ? void 0 : e.id
|
|
4417
|
-
})),
|
|
4457
|
+
})), uo = ({
|
|
4418
4458
|
canTrack: e,
|
|
4419
4459
|
content: t
|
|
4420
|
-
}) => !(!(ht(t).length > 0) || !e || je()),
|
|
4421
|
-
window.${wr} = ${
|
|
4422
|
-
window.${kr} = ${
|
|
4423
|
-
`,
|
|
4460
|
+
}) => !(!(ht(t).length > 0) || !e || je()), fo = (e) => e === "react" || e === "reactNative", Cr = fo(rt), ho = () => `
|
|
4461
|
+
window.${wr} = ${lo}
|
|
4462
|
+
window.${kr} = ${co}
|
|
4463
|
+
`, po = (e, t) => `
|
|
4424
4464
|
window.${wr}(
|
|
4425
4465
|
"${t}",${JSON.stringify(e)}, ${Cr}
|
|
4426
|
-
)`,
|
|
4466
|
+
)`, mo = ({
|
|
4427
4467
|
contentId: e,
|
|
4428
4468
|
variationId: t
|
|
4429
4469
|
}) => `window.${kr}(
|
|
4430
4470
|
"${t}", "${e}", ${Cr}
|
|
4431
4471
|
)`;
|
|
4432
|
-
function
|
|
4472
|
+
function Zt(e) {
|
|
4433
4473
|
return /* @__PURE__ */ p(
|
|
4434
4474
|
"script",
|
|
4435
4475
|
{
|
|
@@ -4441,7 +4481,7 @@ function qt(e) {
|
|
|
4441
4481
|
function ir(e) {
|
|
4442
4482
|
return Math.round(e * 1e3) / 1e3;
|
|
4443
4483
|
}
|
|
4444
|
-
const
|
|
4484
|
+
const go = (e, t, r = !0) => {
|
|
4445
4485
|
if (!(e instanceof HTMLElement))
|
|
4446
4486
|
return null;
|
|
4447
4487
|
let n = r ? e : e.parentElement;
|
|
@@ -4452,7 +4492,7 @@ const po = (e, t, r = !0) => {
|
|
|
4452
4492
|
return n;
|
|
4453
4493
|
} while (n = n.parentElement);
|
|
4454
4494
|
return null;
|
|
4455
|
-
},
|
|
4495
|
+
}, vo = (e) => go(e, (t) => {
|
|
4456
4496
|
const r = t.getAttribute("builder-id") || t.id;
|
|
4457
4497
|
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4458
4498
|
}), or = ({
|
|
@@ -4464,8 +4504,8 @@ const po = (e, t, r = !0) => {
|
|
|
4464
4504
|
x: a,
|
|
4465
4505
|
y: s
|
|
4466
4506
|
};
|
|
4467
|
-
},
|
|
4468
|
-
const t = e.target, r = t &&
|
|
4507
|
+
}, yo = (e) => {
|
|
4508
|
+
const t = e.target, r = t && vo(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4469
4509
|
return {
|
|
4470
4510
|
targetBuilderElement: n || void 0,
|
|
4471
4511
|
metadata: {
|
|
@@ -4480,7 +4520,7 @@ const po = (e, t, r = !0) => {
|
|
|
4480
4520
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4481
4521
|
}
|
|
4482
4522
|
};
|
|
4483
|
-
},
|
|
4523
|
+
}, bo = "0.12.1", xo = () => {
|
|
4484
4524
|
$r("insertMenu", {
|
|
4485
4525
|
name: "_default",
|
|
4486
4526
|
default: !0,
|
|
@@ -4504,13 +4544,13 @@ const po = (e, t, r = !0) => {
|
|
|
4504
4544
|
});
|
|
4505
4545
|
};
|
|
4506
4546
|
let ar = !1;
|
|
4507
|
-
const
|
|
4547
|
+
const So = (e = {}) => {
|
|
4508
4548
|
var t, r;
|
|
4509
4549
|
ar || (ar = !0, je() && ((t = window.parent) == null || t.postMessage({
|
|
4510
4550
|
type: "builder.sdkInfo",
|
|
4511
4551
|
data: {
|
|
4512
4552
|
target: rt,
|
|
4513
|
-
version:
|
|
4553
|
+
version: bo,
|
|
4514
4554
|
supportsPatchUpdates: !1,
|
|
4515
4555
|
// Supports builder-model="..." attribute which is needed to
|
|
4516
4556
|
// scope our '+ add block' button styling
|
|
@@ -4529,18 +4569,18 @@ const xo = (e = {}) => {
|
|
|
4529
4569
|
if (n != null && n.type)
|
|
4530
4570
|
switch (n.type) {
|
|
4531
4571
|
case "builder.evaluate": {
|
|
4532
|
-
const s = n.data.text, u = n.data.arguments || [], f = n.data.id,
|
|
4533
|
-
let v,
|
|
4572
|
+
const s = n.data.text, u = n.data.arguments || [], f = n.data.id, m = new Function(s);
|
|
4573
|
+
let v, x = null;
|
|
4534
4574
|
try {
|
|
4535
|
-
v =
|
|
4575
|
+
v = m.apply(null, u);
|
|
4536
4576
|
} catch (U) {
|
|
4537
|
-
|
|
4577
|
+
x = U;
|
|
4538
4578
|
}
|
|
4539
|
-
|
|
4579
|
+
x ? (i = window.parent) == null || i.postMessage({
|
|
4540
4580
|
type: "builder.evaluateError",
|
|
4541
4581
|
data: {
|
|
4542
4582
|
id: f,
|
|
4543
|
-
error:
|
|
4583
|
+
error: x.message
|
|
4544
4584
|
}
|
|
4545
4585
|
}, "*") : v && typeof v.then == "function" ? v.then((U) => {
|
|
4546
4586
|
var F;
|
|
@@ -4563,9 +4603,9 @@ const xo = (e = {}) => {
|
|
|
4563
4603
|
}
|
|
4564
4604
|
})));
|
|
4565
4605
|
};
|
|
4566
|
-
function
|
|
4606
|
+
function wo(e) {
|
|
4567
4607
|
var re, E, Ae, W, ke, ue, H;
|
|
4568
|
-
const t =
|
|
4608
|
+
const t = Qt(null), [r, n] = V(() => 0);
|
|
4569
4609
|
V(() => !0);
|
|
4570
4610
|
function i(C) {
|
|
4571
4611
|
var T, M;
|
|
@@ -4601,7 +4641,7 @@ function bo(e) {
|
|
|
4601
4641
|
V(() => 0);
|
|
4602
4642
|
const [s, u] = V(
|
|
4603
4643
|
() => !1
|
|
4604
|
-
), [f,
|
|
4644
|
+
), [f, m] = V(
|
|
4605
4645
|
() => e.contentWrapper || "div"
|
|
4606
4646
|
);
|
|
4607
4647
|
function v(C) {
|
|
@@ -4627,7 +4667,7 @@ function bo(e) {
|
|
|
4627
4667
|
}
|
|
4628
4668
|
}
|
|
4629
4669
|
}
|
|
4630
|
-
function
|
|
4670
|
+
function x() {
|
|
4631
4671
|
var I, T;
|
|
4632
4672
|
const C = (T = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : T.jsCode;
|
|
4633
4673
|
C && nt({
|
|
@@ -4649,7 +4689,7 @@ function bo(e) {
|
|
|
4649
4689
|
contentId: _,
|
|
4650
4690
|
apiKey: e.apiKey,
|
|
4651
4691
|
variationId: M !== _ ? M : void 0,
|
|
4652
|
-
...
|
|
4692
|
+
...yo(C),
|
|
4653
4693
|
unique: !O
|
|
4654
4694
|
});
|
|
4655
4695
|
}
|
|
@@ -4698,7 +4738,7 @@ function bo(e) {
|
|
|
4698
4738
|
"builder:component:stateChange",
|
|
4699
4739
|
{
|
|
4700
4740
|
detail: {
|
|
4701
|
-
state:
|
|
4741
|
+
state: en(e.builderContextSignal.rootState),
|
|
4702
4742
|
ref: {
|
|
4703
4743
|
name: e.model
|
|
4704
4744
|
}
|
|
@@ -4708,7 +4748,7 @@ function bo(e) {
|
|
|
4708
4748
|
);
|
|
4709
4749
|
}
|
|
4710
4750
|
function le(C) {
|
|
4711
|
-
n(r + 1), window.addEventListener("message", v),
|
|
4751
|
+
n(r + 1), window.addEventListener("message", v), xo(), So({
|
|
4712
4752
|
...e.locale ? {
|
|
4713
4753
|
locale: e.locale
|
|
4714
4754
|
} : {},
|
|
@@ -4783,12 +4823,12 @@ function bo(e) {
|
|
|
4783
4823
|
}, []), Z(() => {
|
|
4784
4824
|
e.apiKey || Ue.error(
|
|
4785
4825
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4786
|
-
),
|
|
4826
|
+
), x(), K(), ne();
|
|
4787
4827
|
}, []), Z(() => {
|
|
4788
4828
|
e.content && a(e.content);
|
|
4789
4829
|
}, [e.content]), Z(() => {
|
|
4790
4830
|
}, [s]), Z(() => {
|
|
4791
|
-
|
|
4831
|
+
x();
|
|
4792
4832
|
}, [
|
|
4793
4833
|
(E = (re = e.builderContextSignal.content) == null ? void 0 : re.data) == null ? void 0 : E.jsCode,
|
|
4794
4834
|
e.builderContextSignal.rootState
|
|
@@ -4807,7 +4847,7 @@ function bo(e) {
|
|
|
4807
4847
|
"builder:component:stateChangeListenerActivated",
|
|
4808
4848
|
ne
|
|
4809
4849
|
));
|
|
4810
|
-
}, []), /* @__PURE__ */ p(
|
|
4850
|
+
}, []), /* @__PURE__ */ p(tn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ cr(
|
|
4811
4851
|
f,
|
|
4812
4852
|
{
|
|
4813
4853
|
key: r,
|
|
@@ -4825,7 +4865,7 @@ function bo(e) {
|
|
|
4825
4865
|
e.children
|
|
4826
4866
|
) }) : null });
|
|
4827
4867
|
}
|
|
4828
|
-
const
|
|
4868
|
+
const ko = (e) => {
|
|
4829
4869
|
var a, s;
|
|
4830
4870
|
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;
|
|
4831
4871
|
let i = "";
|
|
@@ -4840,34 +4880,34 @@ font-weight: 400;
|
|
|
4840
4880
|
for (const u in e.files) {
|
|
4841
4881
|
if (!(String(Number(u)) === u))
|
|
4842
4882
|
continue;
|
|
4843
|
-
const
|
|
4844
|
-
|
|
4883
|
+
const m = e.files[u];
|
|
4884
|
+
m && m !== n && (i += `
|
|
4845
4885
|
@font-face {
|
|
4846
4886
|
font-family: "${t}";
|
|
4847
|
-
src: url('${
|
|
4887
|
+
src: url('${m}') format('woff2');
|
|
4848
4888
|
font-display: fallback;
|
|
4849
4889
|
font-weight: ${u};
|
|
4850
4890
|
}
|
|
4851
4891
|
`.trim());
|
|
4852
4892
|
}
|
|
4853
4893
|
return i;
|
|
4854
|
-
},
|
|
4894
|
+
}, Co = ({
|
|
4855
4895
|
customFonts: e
|
|
4856
4896
|
}) => {
|
|
4857
4897
|
var t;
|
|
4858
|
-
return ((t = e == null ? void 0 : e.map((r) =>
|
|
4859
|
-
},
|
|
4898
|
+
return ((t = e == null ? void 0 : e.map((r) => ko(r))) == null ? void 0 : t.join(" ")) || "";
|
|
4899
|
+
}, Eo = ({
|
|
4860
4900
|
cssCode: e,
|
|
4861
4901
|
contentId: t
|
|
4862
4902
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4863
|
-
function
|
|
4903
|
+
function Io(e) {
|
|
4864
4904
|
const [t, r] = V(
|
|
4865
4905
|
() => `
|
|
4866
|
-
${
|
|
4906
|
+
${Eo({
|
|
4867
4907
|
cssCode: e.cssCode,
|
|
4868
4908
|
contentId: e.contentId
|
|
4869
4909
|
})}
|
|
4870
|
-
${
|
|
4910
|
+
${Co({
|
|
4871
4911
|
customFonts: e.customFonts
|
|
4872
4912
|
})}
|
|
4873
4913
|
|
|
@@ -4885,9 +4925,9 @@ ${wo({
|
|
|
4885
4925
|
}
|
|
4886
4926
|
`.trim()
|
|
4887
4927
|
);
|
|
4888
|
-
return /* @__PURE__ */ p(
|
|
4928
|
+
return /* @__PURE__ */ p(bt, { styles: t });
|
|
4889
4929
|
}
|
|
4890
|
-
const
|
|
4930
|
+
const To = ({
|
|
4891
4931
|
content: e,
|
|
4892
4932
|
data: t,
|
|
4893
4933
|
locale: r
|
|
@@ -4904,7 +4944,7 @@ const Eo = ({
|
|
|
4904
4944
|
locale: r
|
|
4905
4945
|
} : {}
|
|
4906
4946
|
};
|
|
4907
|
-
},
|
|
4947
|
+
}, jo = ({
|
|
4908
4948
|
content: e,
|
|
4909
4949
|
data: t
|
|
4910
4950
|
}) => e ? {
|
|
@@ -4916,11 +4956,11 @@ const Eo = ({
|
|
|
4916
4956
|
meta: e == null ? void 0 : e.meta
|
|
4917
4957
|
} : void 0;
|
|
4918
4958
|
function sr(e) {
|
|
4919
|
-
var f,
|
|
4959
|
+
var f, m, v, x, U, F, O;
|
|
4920
4960
|
const [t, r] = V(
|
|
4921
4961
|
() => {
|
|
4922
4962
|
var P, L;
|
|
4923
|
-
return
|
|
4963
|
+
return mo({
|
|
4924
4964
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4925
4965
|
variationId: (P = e.content) == null ? void 0 : P.testVariationId,
|
|
4926
4966
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4955,12 +4995,12 @@ function sr(e) {
|
|
|
4955
4995
|
{}
|
|
4956
4996
|
)
|
|
4957
4997
|
), [s, u] = V(() => ({
|
|
4958
|
-
content:
|
|
4998
|
+
content: jo({
|
|
4959
4999
|
content: e.content,
|
|
4960
5000
|
data: e.data
|
|
4961
5001
|
}),
|
|
4962
5002
|
localState: void 0,
|
|
4963
|
-
rootState:
|
|
5003
|
+
rootState: To({
|
|
4964
5004
|
content: e.content,
|
|
4965
5005
|
data: e.data,
|
|
4966
5006
|
locale: e.locale
|
|
@@ -4996,7 +5036,7 @@ function sr(e) {
|
|
|
4996
5036
|
registeredComponents: i
|
|
4997
5037
|
},
|
|
4998
5038
|
children: /* @__PURE__ */ te(
|
|
4999
|
-
|
|
5039
|
+
wo,
|
|
5000
5040
|
{
|
|
5001
5041
|
content: e.content,
|
|
5002
5042
|
data: e.data,
|
|
@@ -5013,17 +5053,17 @@ function sr(e) {
|
|
|
5013
5053
|
contentWrapperProps: e.contentWrapperProps,
|
|
5014
5054
|
setBuilderContextSignal: u,
|
|
5015
5055
|
children: [
|
|
5016
|
-
e.isSsrAbTest ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
5056
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(Zt, { scriptStr: t }) }) : null,
|
|
5017
5057
|
/* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
5018
|
-
|
|
5058
|
+
Io,
|
|
5019
5059
|
{
|
|
5020
5060
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5021
|
-
cssCode: (v = (
|
|
5022
|
-
customFonts: (U = (
|
|
5061
|
+
cssCode: (v = (m = s.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
5062
|
+
customFonts: (U = (x = s.content) == null ? void 0 : x.data) == null ? void 0 : U.customFonts
|
|
5023
5063
|
}
|
|
5024
5064
|
) }),
|
|
5025
5065
|
/* @__PURE__ */ p(
|
|
5026
|
-
|
|
5066
|
+
St,
|
|
5027
5067
|
{
|
|
5028
5068
|
blocks: (O = (F = s.content) == null ? void 0 : F.data) == null ? void 0 : O.blocks,
|
|
5029
5069
|
context: s,
|
|
@@ -5039,17 +5079,17 @@ function sr(e) {
|
|
|
5039
5079
|
function Er(e) {
|
|
5040
5080
|
var s, u;
|
|
5041
5081
|
const [t, r] = V(
|
|
5042
|
-
() =>
|
|
5082
|
+
() => uo({
|
|
5043
5083
|
canTrack: pt(e.canTrack),
|
|
5044
5084
|
content: e.content
|
|
5045
5085
|
})
|
|
5046
5086
|
);
|
|
5047
5087
|
function n() {
|
|
5048
5088
|
var f;
|
|
5049
|
-
return
|
|
5050
|
-
ht(e.content).map((
|
|
5051
|
-
id:
|
|
5052
|
-
testRatio:
|
|
5089
|
+
return po(
|
|
5090
|
+
ht(e.content).map((m) => ({
|
|
5091
|
+
id: m.testVariationId,
|
|
5092
|
+
testRatio: m.testRatio
|
|
5053
5093
|
})),
|
|
5054
5094
|
((f = e.content) == null ? void 0 : f.id) || ""
|
|
5055
5095
|
);
|
|
@@ -5069,16 +5109,16 @@ function Er(e) {
|
|
|
5069
5109
|
}
|
|
5070
5110
|
return Z(() => {
|
|
5071
5111
|
}, []), /* @__PURE__ */ te(N, { children: [
|
|
5072
|
-
!e.__isNestedRender && rt !== "reactNative" ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(
|
|
5112
|
+
!e.__isNestedRender && rt !== "reactNative" ? /* @__PURE__ */ p(N, { children: /* @__PURE__ */ p(Zt, { scriptStr: ho() }) }) : null,
|
|
5073
5113
|
t ? /* @__PURE__ */ te(N, { children: [
|
|
5074
5114
|
/* @__PURE__ */ p(
|
|
5075
|
-
|
|
5115
|
+
bt,
|
|
5076
5116
|
{
|
|
5077
5117
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
5078
5118
|
styles: i()
|
|
5079
5119
|
}
|
|
5080
5120
|
),
|
|
5081
|
-
/* @__PURE__ */ p(
|
|
5121
|
+
/* @__PURE__ */ p(Zt, { scriptStr: n() }),
|
|
5082
5122
|
(u = ht(e.content)) == null ? void 0 : u.map((f) => /* @__PURE__ */ p(
|
|
5083
5123
|
sr,
|
|
5084
5124
|
{
|
|
@@ -5127,7 +5167,7 @@ function Er(e) {
|
|
|
5127
5167
|
)
|
|
5128
5168
|
] });
|
|
5129
5169
|
}
|
|
5130
|
-
const
|
|
5170
|
+
const Ao = async ({
|
|
5131
5171
|
builderContextValue: e,
|
|
5132
5172
|
symbol: t
|
|
5133
5173
|
}) => {
|
|
@@ -5146,27 +5186,27 @@ const To = async ({
|
|
|
5146
5186
|
Ue.error("Could not fetch symbol content: ", r);
|
|
5147
5187
|
});
|
|
5148
5188
|
};
|
|
5149
|
-
function
|
|
5150
|
-
var a, s, u;
|
|
5189
|
+
function Ro(e) {
|
|
5190
|
+
var a, s, u, f;
|
|
5151
5191
|
function t() {
|
|
5152
|
-
var
|
|
5192
|
+
var m, v;
|
|
5153
5193
|
return [
|
|
5154
5194
|
e.attributes.className,
|
|
5155
5195
|
"builder-symbol",
|
|
5156
|
-
(
|
|
5157
|
-
(
|
|
5196
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5197
|
+
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5158
5198
|
].filter(Boolean).join(" ");
|
|
5159
5199
|
}
|
|
5160
5200
|
const [r, n] = V(() => {
|
|
5161
|
-
var
|
|
5162
|
-
return (
|
|
5201
|
+
var m;
|
|
5202
|
+
return (m = e.symbol) == null ? void 0 : m.content;
|
|
5163
5203
|
});
|
|
5164
5204
|
function i() {
|
|
5165
|
-
r ||
|
|
5205
|
+
r || Ao({
|
|
5166
5206
|
symbol: e.symbol,
|
|
5167
5207
|
builderContextValue: e.builderContext
|
|
5168
|
-
}).then((
|
|
5169
|
-
|
|
5208
|
+
}).then((m) => {
|
|
5209
|
+
m && n(m);
|
|
5170
5210
|
});
|
|
5171
5211
|
}
|
|
5172
5212
|
return Z(() => {
|
|
@@ -5178,43 +5218,46 @@ function jo(e) {
|
|
|
5178
5218
|
__isNestedRender: !0,
|
|
5179
5219
|
apiVersion: e.builderContext.apiVersion,
|
|
5180
5220
|
apiKey: e.builderContext.apiKey,
|
|
5181
|
-
context:
|
|
5221
|
+
context: {
|
|
5222
|
+
...e.builderContext.context,
|
|
5223
|
+
symbolId: (a = e.builderBlock) == null ? void 0 : a.id
|
|
5224
|
+
},
|
|
5182
5225
|
customComponents: Object.values(e.builderComponents),
|
|
5183
5226
|
data: {
|
|
5184
|
-
...(
|
|
5227
|
+
...(s = e.symbol) == null ? void 0 : s.data,
|
|
5185
5228
|
...e.builderContext.localState,
|
|
5186
|
-
...(
|
|
5229
|
+
...(u = r == null ? void 0 : r.data) == null ? void 0 : u.state
|
|
5187
5230
|
},
|
|
5188
|
-
model: (
|
|
5231
|
+
model: (f = e.symbol) == null ? void 0 : f.model,
|
|
5189
5232
|
content: r
|
|
5190
5233
|
}
|
|
5191
5234
|
) });
|
|
5192
5235
|
}
|
|
5193
|
-
const
|
|
5236
|
+
const Mo = St, Bo = Er;
|
|
5194
5237
|
export {
|
|
5195
|
-
|
|
5238
|
+
St as Blocks,
|
|
5196
5239
|
Xr as Button,
|
|
5197
5240
|
Fi as Columns,
|
|
5198
5241
|
Er as Content,
|
|
5199
5242
|
Ui as Fragment,
|
|
5200
5243
|
Wi as Image,
|
|
5201
|
-
|
|
5202
|
-
|
|
5244
|
+
Mo as RenderBlocks,
|
|
5245
|
+
Bo as RenderContent,
|
|
5203
5246
|
Vi as Section,
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5247
|
+
Ro as Symbol,
|
|
5248
|
+
oo as Text,
|
|
5249
|
+
so as Video,
|
|
5250
|
+
_o as _processContentResult,
|
|
5208
5251
|
Kr as createRegisterComponentMessage,
|
|
5209
|
-
|
|
5210
|
-
|
|
5252
|
+
Do as fetchBuilderProps,
|
|
5253
|
+
Wo as fetchEntries,
|
|
5211
5254
|
ur as fetchOneEntry,
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5255
|
+
Vo as getAllContent,
|
|
5256
|
+
Lo as getBuilderSearchParams,
|
|
5257
|
+
$o as getContent,
|
|
5215
5258
|
Te as isEditing,
|
|
5216
5259
|
Hr as isPreviewing,
|
|
5217
5260
|
$r as register,
|
|
5218
|
-
|
|
5219
|
-
|
|
5261
|
+
Ho as setEditorSettings,
|
|
5262
|
+
Ko as track
|
|
5220
5263
|
};
|