@builder.io/sdk-react 0.12.4 → 0.12.5
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 +415 -405
- package/lib/{edge/server-entry-0e4f0637.js → browser/server-entry-b9bdd327.js} +4 -4
- package/lib/browser/{server-entry-bcb725be.cjs → server-entry-fc715776.cjs} +1 -1
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/index.cjs +27 -27
- package/lib/edge/index.mjs +460 -449
- package/lib/{browser/server-entry-0e4f0637.js → edge/server-entry-57d4ae22.js} +3 -3
- package/lib/edge/{server-entry-bcb725be.cjs → server-entry-fc715776.cjs} +1 -1
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/index.cjs +6 -6
- package/lib/node/index.mjs +161 -150
- package/lib/node/{server-entry-9aa733e8.js → server-entry-0457c4c8.js} +2 -2
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/evaluate/should-force-browser-runtime-in-node.d.ts +1 -0
package/lib/edge/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as p, Fragment as F, jsxs as ce } from "react/jsx-runtime";
|
|
3
3
|
import { createContext as sr, useState as V, useContext as $n, useRef as qt, useEffect as Q, createElement as $r } from "react";
|
|
4
|
-
import { T as
|
|
5
|
-
import { _ as
|
|
4
|
+
import { T as We, i as je, j as Ae, k as Hr, l as Re, m as mt, n as Zt, r as Kr, o as gt, p as Hn, a as Gr, c as zr, b as lr, q as Xr, u as Kn, v as Gn, w as Yr } from "./server-entry-57d4ae22.js";
|
|
5
|
+
import { _ as Go, h as zo, f as Xo, g as Yo, e as Jo, d as qo, s as Zo, t as Qo } from "./server-entry-57d4ae22.js";
|
|
6
6
|
const Jr = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), qr = (e) => typeof e == "string" && Jr.has(e.toLowerCase());
|
|
7
7
|
function Qt(e) {
|
|
8
8
|
return /* @__PURE__ */ p(F, { children: qr(e.TagName) ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ p(F, { children: typeof e.TagName == "string" ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
9
9
|
}
|
|
10
10
|
const tt = () => {
|
|
11
|
-
switch (
|
|
11
|
+
switch (We) {
|
|
12
12
|
case "react":
|
|
13
13
|
case "reactNative":
|
|
14
14
|
case "rsc":
|
|
@@ -122,7 +122,7 @@ const dr = (e, t, r) => {
|
|
|
122
122
|
};
|
|
123
123
|
var _, ii = function(e) {
|
|
124
124
|
function t(o) {
|
|
125
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
125
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Lr.test(String.fromCharCode(o));
|
|
126
126
|
}
|
|
127
127
|
function r(o) {
|
|
128
128
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Vn.test(String.fromCharCode(o));
|
|
@@ -153,15 +153,15 @@ var _, ii = function(e) {
|
|
|
153
153
|
this.line = Ie, this.ab = d - he;
|
|
154
154
|
}
|
|
155
155
|
function s(o, l) {
|
|
156
|
-
|
|
156
|
+
Pe = d, O.C && (Rt = new a()), A = o, f(), le = l, $e = o.m;
|
|
157
157
|
}
|
|
158
158
|
function u() {
|
|
159
|
-
for (var o = d, l = O.va && O.C && new a(), c = x.charCodeAt(d += 2); d <
|
|
159
|
+
for (var o = d, l = O.va && O.C && new a(), c = x.charCodeAt(d += 2); d < Oe && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
160
160
|
++d, c = x.charCodeAt(d);
|
|
161
161
|
O.va && O.va(!1, x.slice(o + 2, d), o, d, l, O.C && new a());
|
|
162
162
|
}
|
|
163
163
|
function f() {
|
|
164
|
-
for (; d <
|
|
164
|
+
for (; d < Oe; ) {
|
|
165
165
|
var o = x.charCodeAt(d);
|
|
166
166
|
if (o === 32)
|
|
167
167
|
++d;
|
|
@@ -185,7 +185,7 @@ var _, ii = function(e) {
|
|
|
185
185
|
break;
|
|
186
186
|
else if (o === 160)
|
|
187
187
|
++d;
|
|
188
|
-
else if (5760 <= o &&
|
|
188
|
+
else if (5760 <= o && Wr.test(String.fromCharCode(o)))
|
|
189
189
|
++d;
|
|
190
190
|
else
|
|
191
191
|
break;
|
|
@@ -205,13 +205,13 @@ var _, ii = function(e) {
|
|
|
205
205
|
case 44:
|
|
206
206
|
return ++d, s(Se);
|
|
207
207
|
case 91:
|
|
208
|
-
return ++d, s(
|
|
208
|
+
return ++d, s(Wt);
|
|
209
209
|
case 93:
|
|
210
210
|
return ++d, s(Lt);
|
|
211
211
|
case 123:
|
|
212
212
|
return ++d, s(Ge);
|
|
213
213
|
case 125:
|
|
214
|
-
return ++d, s(
|
|
214
|
+
return ++d, s(Me);
|
|
215
215
|
case 58:
|
|
216
216
|
return ++d, s(ze);
|
|
217
217
|
case 63:
|
|
@@ -235,7 +235,7 @@ var _, ii = function(e) {
|
|
|
235
235
|
case 39:
|
|
236
236
|
d++;
|
|
237
237
|
for (var l = ""; ; ) {
|
|
238
|
-
d >=
|
|
238
|
+
d >= Oe && n(X, "Unterminated string constant");
|
|
239
239
|
var c = x.charCodeAt(d);
|
|
240
240
|
if (c === o) {
|
|
241
241
|
++d, s(ct, l);
|
|
@@ -302,18 +302,18 @@ var _, ii = function(e) {
|
|
|
302
302
|
return;
|
|
303
303
|
case 124:
|
|
304
304
|
case 38:
|
|
305
|
-
l = x.charCodeAt(d + 1), l === o ? b(o === 124 ? _n :
|
|
305
|
+
l = x.charCodeAt(d + 1), l === o ? b(o === 124 ? _n : Wn, 2) : l === 61 ? b(Te, 2) : b(o === 124 ? Rr : Pr, 1);
|
|
306
306
|
return;
|
|
307
307
|
case 94:
|
|
308
308
|
x.charCodeAt(d + 1) === 61 ? b(Te, 2) : b(Or, 1);
|
|
309
309
|
return;
|
|
310
310
|
case 43:
|
|
311
311
|
case 45:
|
|
312
|
-
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && ft.test(x.slice(xe, d)) ? (d += 3, u(), f(),
|
|
312
|
+
l = x.charCodeAt(d + 1), l === o ? l === 45 && x.charCodeAt(d + 2) === 62 && ft.test(x.slice(xe, d)) ? (d += 3, u(), f(), v()) : b(Ar, 2) : l === 61 ? b(Te, 2) : b(Fr, 1);
|
|
313
313
|
return;
|
|
314
314
|
case 60:
|
|
315
315
|
case 62:
|
|
316
|
-
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? b(Te, c + 1) : b(Br, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(),
|
|
316
|
+
l = x.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && x.charCodeAt(d + 2) === 62 ? 3 : 2, x.charCodeAt(d + c) === 61 ? b(Te, c + 1) : b(Br, c)) : l === 33 && o === 60 && x.charCodeAt(d + 2) === 45 && x.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), v()) : (l === 61 && (c = x.charCodeAt(d + 2) === 61 ? 3 : 2), b(Mr, c));
|
|
317
317
|
return;
|
|
318
318
|
case 61:
|
|
319
319
|
case 33:
|
|
@@ -324,11 +324,11 @@ var _, ii = function(e) {
|
|
|
324
324
|
}
|
|
325
325
|
return !1;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
if (o ? d = X + 1 : X = d, O.C && (
|
|
327
|
+
function v(o) {
|
|
328
|
+
if (o ? d = X + 1 : X = d, O.C && (At = new a()), o)
|
|
329
329
|
return U();
|
|
330
|
-
if (d >=
|
|
331
|
-
return s(
|
|
330
|
+
if (d >= Oe)
|
|
331
|
+
return s(Nt);
|
|
332
332
|
if (o = x.charCodeAt(d), r(o) || o === 92)
|
|
333
333
|
return Y();
|
|
334
334
|
if (m(o) === !1) {
|
|
@@ -343,7 +343,7 @@ var _, ii = function(e) {
|
|
|
343
343
|
}
|
|
344
344
|
function U() {
|
|
345
345
|
for (var o, l, c = d; ; ) {
|
|
346
|
-
d >=
|
|
346
|
+
d >= Oe && n(c, "Unterminated regexp");
|
|
347
347
|
var h = x.charAt(d);
|
|
348
348
|
if (ft.test(h) && n(c, "Unterminated regexp"), o)
|
|
349
349
|
o = !1;
|
|
@@ -385,40 +385,40 @@ var _, ii = function(e) {
|
|
|
385
385
|
return o = N(16, o), o === null && n(X, "Bad character escape sequence"), o;
|
|
386
386
|
}
|
|
387
387
|
function $() {
|
|
388
|
-
|
|
388
|
+
Be = !1;
|
|
389
389
|
for (var o, l = !0, c = d; ; ) {
|
|
390
390
|
var h = x.charCodeAt(d);
|
|
391
391
|
if (t(h))
|
|
392
|
-
|
|
392
|
+
Be && (o += x.charAt(d)), ++d;
|
|
393
393
|
else if (h === 92) {
|
|
394
|
-
|
|
394
|
+
Be || (o = x.slice(c, d)), Be = !0, x.charCodeAt(++d) !== 117 && n(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = P(4);
|
|
395
395
|
var R = String.fromCharCode(h);
|
|
396
396
|
R || n(d - 1, "Invalid Unicode escape"), (l ? r(h) : t(h)) || n(d - 4, "Invalid Unicode escape"), o += R;
|
|
397
397
|
} else
|
|
398
398
|
break;
|
|
399
399
|
l = !1;
|
|
400
400
|
}
|
|
401
|
-
return
|
|
401
|
+
return Be ? o : x.slice(c, d);
|
|
402
402
|
}
|
|
403
403
|
function Y() {
|
|
404
|
-
var o = $(), l =
|
|
405
|
-
!
|
|
404
|
+
var o = $(), l = Ne;
|
|
405
|
+
!Be && _r(o) && (l = jr[o]), s(l, o);
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
407
|
+
function y() {
|
|
408
|
+
Ot = X, xe = Pe, Pt = Rt, v();
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function L(o) {
|
|
411
411
|
if (se = o, d = X, O.C)
|
|
412
412
|
for (; d < he; )
|
|
413
413
|
he = x.lastIndexOf(`
|
|
414
414
|
`, he - 2) + 1, --Ie;
|
|
415
|
-
f(),
|
|
415
|
+
f(), v();
|
|
416
416
|
}
|
|
417
417
|
function Z() {
|
|
418
418
|
this.type = null, this.start = X, this.end = null;
|
|
419
419
|
}
|
|
420
420
|
function ne() {
|
|
421
|
-
this.start =
|
|
421
|
+
this.start = At, this.end = null, jt && (this.source = jt);
|
|
422
422
|
}
|
|
423
423
|
function H() {
|
|
424
424
|
var o = new Z();
|
|
@@ -429,22 +429,22 @@ var _, ii = function(e) {
|
|
|
429
429
|
return l.start = o.start, O.C && (l.X = new ne(), l.X.start = o.X.start), O.Xa && (l.j = [o.j[0], 0]), l;
|
|
430
430
|
}
|
|
431
431
|
function E(o, l) {
|
|
432
|
-
return o.type = l, o.end = xe, O.C && (o.X.end =
|
|
432
|
+
return o.type = l, o.end = xe, O.C && (o.X.end = Pt), O.Xa && (o.j[1] = xe), o;
|
|
433
433
|
}
|
|
434
434
|
function we(o) {
|
|
435
435
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
return A === o ? (
|
|
437
|
+
function W(o) {
|
|
438
|
+
return A === o ? (y(), !0) : !1;
|
|
439
439
|
}
|
|
440
440
|
function Ce() {
|
|
441
|
-
return !O.fc && (A ===
|
|
441
|
+
return !O.fc && (A === Nt || A === Me || ft.test(x.slice(xe, X)));
|
|
442
442
|
}
|
|
443
443
|
function ue() {
|
|
444
|
-
|
|
444
|
+
W(me) || Ce() || w();
|
|
445
445
|
}
|
|
446
446
|
function K(o) {
|
|
447
|
-
A === o ?
|
|
447
|
+
A === o ? y() : w();
|
|
448
448
|
}
|
|
449
449
|
function w() {
|
|
450
450
|
n(X, "Unexpected token");
|
|
@@ -453,57 +453,57 @@ var _, ii = function(e) {
|
|
|
453
453
|
o.type !== "Identifier" && o.type !== "MemberExpression" && n(o.start, "Assigning to rvalue"), se && o.type === "Identifier" && dt(o.name) && n(o.start, "Assigning to " + o.name + " in strict mode");
|
|
454
454
|
}
|
|
455
455
|
function j() {
|
|
456
|
-
(A === Fn || A === Te && le === "/=") &&
|
|
456
|
+
(A === Fn || A === Te && le === "/=") && v(!0);
|
|
457
457
|
var o = A, l = H();
|
|
458
458
|
switch (o) {
|
|
459
|
-
case
|
|
460
|
-
case
|
|
461
|
-
|
|
462
|
-
var c = o ===
|
|
463
|
-
|
|
459
|
+
case Mt:
|
|
460
|
+
case vn:
|
|
461
|
+
y();
|
|
462
|
+
var c = o === Mt;
|
|
463
|
+
W(me) || Ce() ? l.label = null : A !== Ne ? w() : (l.label = fe(), ue());
|
|
464
464
|
for (var h = 0; h < z.length; ++h) {
|
|
465
465
|
var R = z[h];
|
|
466
466
|
if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (c || R.kind === "loop") || l.label && c))
|
|
467
467
|
break;
|
|
468
468
|
}
|
|
469
469
|
return h === z.length && n(l.start, "Unsyntactic " + o.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
470
|
-
case
|
|
471
|
-
return
|
|
470
|
+
case yn:
|
|
471
|
+
return y(), ue(), E(l, "DebuggerStatement");
|
|
472
472
|
case xn:
|
|
473
|
-
return
|
|
473
|
+
return y(), z.push(Vt), l.body = j(), z.pop(), K(_t), l.test = M(), ue(), E(l, "DoWhileStatement");
|
|
474
474
|
case wn:
|
|
475
|
-
return
|
|
476
|
-
case
|
|
477
|
-
return
|
|
475
|
+
return y(), z.push(Vt), K(pe), A === me ? G(l, null) : A === Dt ? (o = H(), y(), st(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && W(ut) ? Ee(l, o) : G(l, o)) : (o = te(!1, !0), W(ut) ? (T(o), Ee(l, o)) : G(l, o));
|
|
476
|
+
case Ft:
|
|
477
|
+
return y(), It(l, !0);
|
|
478
478
|
case Cn:
|
|
479
|
-
return
|
|
479
|
+
return y(), l.test = M(), l.da = j(), l.alternate = W(Sn) ? j() : null, E(l, "IfStatement");
|
|
480
480
|
case En:
|
|
481
|
-
return He || O.Ib || n(X, "'return' outside of function"),
|
|
482
|
-
case
|
|
483
|
-
for (
|
|
484
|
-
A ===
|
|
485
|
-
return h && E(h, "SwitchCase"),
|
|
481
|
+
return He || O.Ib || n(X, "'return' outside of function"), y(), W(me) || Ce() ? l.K = null : (l.K = te(), ue()), E(l, "ReturnStatement");
|
|
482
|
+
case Ut:
|
|
483
|
+
for (y(), l.Qb = M(), l.tb = [], K(Ge), z.push(Vr); A !== Me; )
|
|
484
|
+
A === Bt || A === bn ? (o = A === Bt, h && E(h, "SwitchCase"), l.tb.push(h = H()), h.da = [], y(), o ? h.test = te() : (c && n(Ot, "Multiple default clauses"), c = !0, h.test = null), K(ze)) : (h || w(), h.da.push(j()));
|
|
485
|
+
return h && E(h, "SwitchCase"), y(), z.pop(), E(l, "SwitchStatement");
|
|
486
486
|
case In:
|
|
487
|
-
return
|
|
487
|
+
return y(), ft.test(x.slice(xe, X)) && n(xe, "Illegal newline after throw"), l.K = te(), ue(), E(l, "ThrowStatement");
|
|
488
488
|
case Tn:
|
|
489
|
-
return
|
|
490
|
-
case Ut:
|
|
491
|
-
return v(), st(l), ue(), E(l, "VariableDeclaration");
|
|
489
|
+
return y(), l.block = D(), l.Ea = null, A === gn && (o = H(), y(), K(pe), o.Ua = fe(), se && dt(o.Ua.name) && n(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), K(de), o.body = D(), l.Ea = E(o, "CatchClause")), l.fb = W(kn) ? D() : null, l.Ea || l.fb || n(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
492
490
|
case Dt:
|
|
493
|
-
return
|
|
491
|
+
return y(), st(l), ue(), E(l, "VariableDeclaration");
|
|
492
|
+
case _t:
|
|
493
|
+
return y(), l.test = M(), z.push(Vt), l.body = j(), z.pop(), E(l, "WhileStatement");
|
|
494
494
|
case jn:
|
|
495
|
-
return se && n(X, "'with' in strict mode"),
|
|
495
|
+
return se && n(X, "'with' in strict mode"), y(), l.object = M(), l.body = j(), E(l, "WithStatement");
|
|
496
496
|
case Ge:
|
|
497
497
|
return D();
|
|
498
498
|
case me:
|
|
499
|
-
return
|
|
499
|
+
return y(), E(l, "EmptyStatement");
|
|
500
500
|
default:
|
|
501
|
-
if (c = le, R = te(), o ===
|
|
501
|
+
if (c = le, R = te(), o === Ne && R.type === "Identifier" && W(ze)) {
|
|
502
502
|
for (h = 0; h < z.length; ++h)
|
|
503
503
|
z[h].name === c && n(R.start, "Label '" + c + "' is already declared");
|
|
504
504
|
return z.push({
|
|
505
505
|
name: c,
|
|
506
|
-
kind: A.W ? "loop" : A ===
|
|
506
|
+
kind: A.W ? "loop" : A === Ut ? "switch" : null
|
|
507
507
|
}), l.body = j(), z.pop(), l.label = R, E(l, "LabeledStatement");
|
|
508
508
|
}
|
|
509
509
|
return l.la = R, ue(), E(l, "ExpressionStatement");
|
|
@@ -516,15 +516,15 @@ var _, ii = function(e) {
|
|
|
516
516
|
}
|
|
517
517
|
function D(o) {
|
|
518
518
|
var l = H(), c = !0, h = !1;
|
|
519
|
-
for (l.body = [], K(Ge); !
|
|
519
|
+
for (l.body = [], K(Ge); !W(Me); ) {
|
|
520
520
|
var R = j();
|
|
521
521
|
if (l.body.push(R), c && o && we(R)) {
|
|
522
522
|
var J = h;
|
|
523
|
-
|
|
523
|
+
L(h = !0);
|
|
524
524
|
}
|
|
525
525
|
c = !1;
|
|
526
526
|
}
|
|
527
|
-
return h && !J &&
|
|
527
|
+
return h && !J && L(!1), E(l, "BlockStatement");
|
|
528
528
|
}
|
|
529
529
|
function G(o, l) {
|
|
530
530
|
return o.ua = l, K(me), o.test = A === me ? null : te(), K(me), o.update = A === de ? null : te(), K(de), o.body = j(), z.pop(), E(o, "ForStatement");
|
|
@@ -535,126 +535,126 @@ var _, ii = function(e) {
|
|
|
535
535
|
function st(o, l) {
|
|
536
536
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
537
537
|
var c = H();
|
|
538
|
-
if (c.id = fe(), se && dt(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
538
|
+
if (c.id = fe(), se && dt(c.id.name) && n(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = W(Un) ? te(!0, l) : null, o.fa.push(E(c, "VariableDeclarator")), !W(Se))
|
|
539
539
|
break;
|
|
540
540
|
}
|
|
541
541
|
}
|
|
542
542
|
function te(o, l) {
|
|
543
|
-
var c =
|
|
543
|
+
var c = wt(l);
|
|
544
544
|
if (!o && A === Se) {
|
|
545
|
-
for (o = re(c), o.xb = [c];
|
|
546
|
-
o.xb.push(
|
|
545
|
+
for (o = re(c), o.xb = [c]; W(Se); )
|
|
546
|
+
o.xb.push(wt(l));
|
|
547
547
|
return E(o, "SequenceExpression");
|
|
548
548
|
}
|
|
549
549
|
return c;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
var l =
|
|
553
|
-
if (
|
|
551
|
+
function wt(o) {
|
|
552
|
+
var l = Ct(Et(), -1, o);
|
|
553
|
+
if (W(Bn)) {
|
|
554
554
|
var c = re(l);
|
|
555
555
|
c.test = l, c.da = te(!0), K(ze), c.alternate = te(!0, o), l = E(c, "ConditionalExpression");
|
|
556
556
|
}
|
|
557
|
-
return A.Cb ? (c = re(l), c.operator = le, c.left = l,
|
|
557
|
+
return A.Cb ? (c = re(l), c.operator = le, c.left = l, y(), c.right = wt(o), T(l), E(c, "AssignmentExpression")) : l;
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function Ct(o, l, c) {
|
|
560
560
|
var h = A.L;
|
|
561
561
|
if (h !== null && (!c || A !== ut) && h > l) {
|
|
562
562
|
var R = re(o);
|
|
563
|
-
return R.left = o, R.operator = le, o = A,
|
|
563
|
+
return R.left = o, R.operator = le, o = A, y(), R.right = Ct(Et(), h, c), h = E(R, o === _n || o === Wn ? "LogicalExpression" : "BinaryExpression"), Ct(h, l, c);
|
|
564
564
|
}
|
|
565
565
|
return o;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Et() {
|
|
568
568
|
if (A.prefix) {
|
|
569
569
|
var o = H(), l = A.$b;
|
|
570
|
-
return o.operator = le, $e = o.prefix = !0,
|
|
570
|
+
return o.operator = le, $e = o.prefix = !0, y(), o.K = Et(), l ? T(o.K) : se && o.operator === "delete" && o.K.type === "Identifier" && n(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
571
571
|
}
|
|
572
572
|
for (l = Ve(lt()); A.cc && !Ce(); )
|
|
573
|
-
o = re(l), o.operator = le, o.prefix = !1, o.K = l, T(l),
|
|
573
|
+
o = re(l), o.operator = le, o.prefix = !1, o.K = l, T(l), y(), l = E(o, "UpdateExpression");
|
|
574
574
|
return l;
|
|
575
575
|
}
|
|
576
576
|
function Ve(o, l) {
|
|
577
|
-
if (
|
|
577
|
+
if (W(Mn)) {
|
|
578
578
|
var c = re(o);
|
|
579
579
|
return c.object = o, c.Wa = fe(!0), c.bb = !1, Ve(E(c, "MemberExpression"), l);
|
|
580
580
|
}
|
|
581
|
-
return
|
|
581
|
+
return W(Wt) ? (c = re(o), c.object = o, c.Wa = te(), c.bb = !0, K(Lt), Ve(E(c, "MemberExpression"), l)) : !l && W(pe) ? (c = re(o), c.callee = o, c.arguments = Tt(de, !1), Ve(E(c, "CallExpression"), l)) : o;
|
|
582
582
|
}
|
|
583
583
|
function lt() {
|
|
584
584
|
switch (A) {
|
|
585
585
|
case Rn:
|
|
586
586
|
var o = H();
|
|
587
|
-
return
|
|
588
|
-
case
|
|
587
|
+
return y(), E(o, "ThisExpression");
|
|
588
|
+
case Ne:
|
|
589
589
|
return fe();
|
|
590
590
|
case Ke:
|
|
591
591
|
case ct:
|
|
592
592
|
case mn:
|
|
593
|
-
return o = H(), o.value = le, o.raw = x.slice(X,
|
|
593
|
+
return o = H(), o.value = le, o.raw = x.slice(X, Pe), y(), E(o, "Literal");
|
|
594
594
|
case On:
|
|
595
595
|
case Pn:
|
|
596
596
|
case Nn:
|
|
597
|
-
return o = H(), o.value = A.$a, o.raw = A.l,
|
|
597
|
+
return o = H(), o.value = A.$a, o.raw = A.l, y(), E(o, "Literal");
|
|
598
598
|
case pe:
|
|
599
|
-
o =
|
|
599
|
+
o = At;
|
|
600
600
|
var l = X;
|
|
601
|
-
|
|
601
|
+
y();
|
|
602
602
|
var c = te();
|
|
603
|
-
return c.start = l, c.end =
|
|
604
|
-
case
|
|
605
|
-
return o = H(),
|
|
603
|
+
return c.start = l, c.end = Pe, O.C && (c.X.start = o, c.X.end = Rt), O.Xa && (c.j = [l, Pe]), K(de), c;
|
|
604
|
+
case Wt:
|
|
605
|
+
return o = H(), y(), o.elements = Tt(Lt, !0, !0), E(o, "ArrayExpression");
|
|
606
606
|
case Ge:
|
|
607
|
-
for (o = H(), l = !0, c = !1, o.h = [],
|
|
607
|
+
for (o = H(), l = !0, c = !1, o.h = [], y(); !W(Me); ) {
|
|
608
608
|
if (l)
|
|
609
609
|
l = !1;
|
|
610
|
-
else if (K(Se), O.sb &&
|
|
610
|
+
else if (K(Se), O.sb && W(Me))
|
|
611
611
|
break;
|
|
612
612
|
var h = {
|
|
613
613
|
key: A === Ke || A === ct ? lt() : fe(!0)
|
|
614
614
|
}, R = !1;
|
|
615
|
-
if (
|
|
615
|
+
if (W(ze)) {
|
|
616
616
|
h.value = te(!0);
|
|
617
617
|
var J = h.kind = "init";
|
|
618
618
|
} else
|
|
619
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? w() : (R = c = !0, J = h.kind = h.key.name, h.key = A === Ke || A === ct ? lt() : fe(!0), A !== pe && w(), h.value =
|
|
619
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? w() : (R = c = !0, J = h.kind = h.key.name, h.key = A === Ke || A === ct ? lt() : fe(!0), A !== pe && w(), h.value = It(H(), !1));
|
|
620
620
|
if (h.key.type === "Identifier" && (se || c))
|
|
621
621
|
for (var ie = 0; ie < o.h.length; ++ie) {
|
|
622
|
-
var
|
|
623
|
-
if (
|
|
624
|
-
var
|
|
625
|
-
|
|
622
|
+
var Fe = o.h[ie];
|
|
623
|
+
if (Fe.key.name === h.key.name) {
|
|
624
|
+
var $t = J === Fe.kind || R && Fe.kind === "init" || J === "init" && (Fe.kind === "get" || Fe.kind === "set");
|
|
625
|
+
$t && !se && J === "init" && Fe.kind === "init" && ($t = !1), $t && n(h.key.start, "Redefinition of property");
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
o.h.push(h);
|
|
629
629
|
}
|
|
630
630
|
return E(o, "ObjectExpression");
|
|
631
|
-
case
|
|
632
|
-
return o = H(),
|
|
631
|
+
case Ft:
|
|
632
|
+
return o = H(), y(), It(o, !1);
|
|
633
633
|
case An:
|
|
634
|
-
return o = H(),
|
|
634
|
+
return o = H(), y(), o.callee = Ve(lt(), !0), o.arguments = W(pe) ? Tt(de, !1) : Tr, E(o, "NewExpression");
|
|
635
635
|
}
|
|
636
636
|
w();
|
|
637
637
|
}
|
|
638
|
-
function
|
|
639
|
-
A ===
|
|
638
|
+
function It(o, l) {
|
|
639
|
+
A === Ne ? o.id = fe() : l ? w() : o.id = null, o.oa = [];
|
|
640
640
|
var c = !0;
|
|
641
|
-
for (K(pe); !
|
|
641
|
+
for (K(pe); !W(de); )
|
|
642
642
|
c ? c = !1 : K(Se), o.oa.push(fe());
|
|
643
643
|
c = He;
|
|
644
644
|
var h = z;
|
|
645
645
|
if (He = !0, z = [], o.body = D(!0), He = c, z = h, se || o.body.body.length && we(o.body.body[0])) {
|
|
646
646
|
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
647
|
-
if (h = 0 > c ? o.id : o.oa[c], (
|
|
647
|
+
if (h = 0 > c ? o.id : o.oa[c], (Ln(h.name) || dt(h.name)) && n(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
648
648
|
for (var R = 0; R < c; ++R)
|
|
649
649
|
h.name === o.oa[R].name && n(h.start, "Argument name clash in strict mode");
|
|
650
650
|
}
|
|
651
651
|
return E(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
652
652
|
}
|
|
653
|
-
function
|
|
654
|
-
for (var h = [], R = !0; !
|
|
653
|
+
function Tt(o, l, c) {
|
|
654
|
+
for (var h = [], R = !0; !W(o); ) {
|
|
655
655
|
if (R)
|
|
656
656
|
R = !1;
|
|
657
|
-
else if (K(Se), l && O.sb &&
|
|
657
|
+
else if (K(Se), l && O.sb && W(o))
|
|
658
658
|
break;
|
|
659
659
|
h.push(c && A === Se ? null : te(!0));
|
|
660
660
|
}
|
|
@@ -662,16 +662,16 @@ var _, ii = function(e) {
|
|
|
662
662
|
}
|
|
663
663
|
function fe(o) {
|
|
664
664
|
var l = H();
|
|
665
|
-
return o && O.yb === "everywhere" && (o = !1), A ===
|
|
665
|
+
return o && O.yb === "everywhere" && (o = !1), A === Ne ? (!o && (O.yb && Dr(le) || se && Ln(le)) && x.slice(X, Pe).indexOf("\\") === -1 && n(X, "The keyword '" + le + "' is reserved"), l.name = le) : o && A.l ? l.name = A.l : w(), $e = !1, y(), E(l, "Identifier");
|
|
666
666
|
}
|
|
667
667
|
e.version = "0.5.0";
|
|
668
|
-
var O, x = "",
|
|
668
|
+
var O, x = "", Oe, jt;
|
|
669
669
|
e.parse = function(o, l) {
|
|
670
|
-
x = String(o),
|
|
670
|
+
x = String(o), Oe = x.length, O = l || {};
|
|
671
671
|
for (var c in pn)
|
|
672
672
|
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = pn[c]);
|
|
673
|
-
for (
|
|
674
|
-
c = j(), o.body.push(c), l && we(c) &&
|
|
673
|
+
for (jt = O.sourceFile, Ie = 1, d = he = 0, $e = !0, f(), c = O.dc, Ot = xe = d, O.C && (Pt = new a()), He = se = !1, z = [], v(), o = c || H(), l = !0, c || (o.body = []); A !== Nt; )
|
|
674
|
+
c = j(), o.body.push(c), l && we(c) && L(!0), l = !1;
|
|
675
675
|
return E(o, "Program");
|
|
676
676
|
};
|
|
677
677
|
var pn = {
|
|
@@ -685,26 +685,26 @@ var _, ii = function(e) {
|
|
|
685
685
|
dc: null,
|
|
686
686
|
sourceFile: null,
|
|
687
687
|
vb: null
|
|
688
|
-
}, d = 0, X = 0,
|
|
688
|
+
}, d = 0, X = 0, Pe = 0, At, Rt, A, le, $e, Ie, he, Ot = 0, xe = 0, Pt, He, z, se, Tr = [], Ke = {
|
|
689
689
|
type: "num"
|
|
690
690
|
}, mn = {
|
|
691
691
|
type: "regexp"
|
|
692
692
|
}, ct = {
|
|
693
693
|
type: "string"
|
|
694
|
-
},
|
|
694
|
+
}, Ne = {
|
|
695
695
|
type: "name"
|
|
696
|
-
}, Pt = {
|
|
697
|
-
type: "eof"
|
|
698
696
|
}, Nt = {
|
|
699
|
-
|
|
697
|
+
type: "eof"
|
|
700
698
|
}, Mt = {
|
|
699
|
+
l: "break"
|
|
700
|
+
}, Bt = {
|
|
701
701
|
l: "case",
|
|
702
702
|
m: !0
|
|
703
703
|
}, gn = {
|
|
704
704
|
l: "catch"
|
|
705
|
-
}, yn = {
|
|
706
|
-
l: "continue"
|
|
707
705
|
}, vn = {
|
|
706
|
+
l: "continue"
|
|
707
|
+
}, yn = {
|
|
708
708
|
l: "debugger"
|
|
709
709
|
}, bn = {
|
|
710
710
|
l: "default"
|
|
@@ -719,23 +719,23 @@ var _, ii = function(e) {
|
|
|
719
719
|
}, wn = {
|
|
720
720
|
l: "for",
|
|
721
721
|
W: !0
|
|
722
|
-
},
|
|
722
|
+
}, Ft = {
|
|
723
723
|
l: "function"
|
|
724
724
|
}, Cn = {
|
|
725
725
|
l: "if"
|
|
726
726
|
}, En = {
|
|
727
727
|
l: "return",
|
|
728
728
|
m: !0
|
|
729
|
-
},
|
|
729
|
+
}, Ut = {
|
|
730
730
|
l: "switch"
|
|
731
731
|
}, In = {
|
|
732
732
|
l: "throw",
|
|
733
733
|
m: !0
|
|
734
734
|
}, Tn = {
|
|
735
735
|
l: "try"
|
|
736
|
-
}, Ut = {
|
|
737
|
-
l: "var"
|
|
738
736
|
}, Dt = {
|
|
737
|
+
l: "var"
|
|
738
|
+
}, _t = {
|
|
739
739
|
l: "while",
|
|
740
740
|
W: !0
|
|
741
741
|
}, jn = {
|
|
@@ -759,24 +759,24 @@ var _, ii = function(e) {
|
|
|
759
759
|
L: 7,
|
|
760
760
|
m: !0
|
|
761
761
|
}, jr = {
|
|
762
|
-
break:
|
|
763
|
-
case:
|
|
762
|
+
break: Mt,
|
|
763
|
+
case: Bt,
|
|
764
764
|
catch: gn,
|
|
765
|
-
continue:
|
|
766
|
-
debugger:
|
|
765
|
+
continue: vn,
|
|
766
|
+
debugger: yn,
|
|
767
767
|
default: bn,
|
|
768
768
|
do: xn,
|
|
769
769
|
else: Sn,
|
|
770
770
|
finally: kn,
|
|
771
771
|
for: wn,
|
|
772
|
-
function:
|
|
772
|
+
function: Ft,
|
|
773
773
|
if: Cn,
|
|
774
774
|
return: En,
|
|
775
|
-
switch:
|
|
775
|
+
switch: Ut,
|
|
776
776
|
throw: In,
|
|
777
777
|
try: Tn,
|
|
778
|
-
var:
|
|
779
|
-
while:
|
|
778
|
+
var: Dt,
|
|
779
|
+
while: _t,
|
|
780
780
|
with: jn,
|
|
781
781
|
null: On,
|
|
782
782
|
true: Pn,
|
|
@@ -804,7 +804,7 @@ var _, ii = function(e) {
|
|
|
804
804
|
prefix: !0,
|
|
805
805
|
m: !0
|
|
806
806
|
}
|
|
807
|
-
},
|
|
807
|
+
}, Wt = {
|
|
808
808
|
type: "[",
|
|
809
809
|
m: !0
|
|
810
810
|
}, Lt = {
|
|
@@ -812,7 +812,7 @@ var _, ii = function(e) {
|
|
|
812
812
|
}, Ge = {
|
|
813
813
|
type: "{",
|
|
814
814
|
m: !0
|
|
815
|
-
},
|
|
815
|
+
}, Me = {
|
|
816
816
|
type: "}"
|
|
817
817
|
}, pe = {
|
|
818
818
|
type: "(",
|
|
@@ -852,7 +852,7 @@ var _, ii = function(e) {
|
|
|
852
852
|
}, _n = {
|
|
853
853
|
L: 1,
|
|
854
854
|
m: !0
|
|
855
|
-
},
|
|
855
|
+
}, Wn = {
|
|
856
856
|
L: 2,
|
|
857
857
|
m: !0
|
|
858
858
|
}, Rr = {
|
|
@@ -880,7 +880,7 @@ var _, ii = function(e) {
|
|
|
880
880
|
}, Ur = {
|
|
881
881
|
L: 10,
|
|
882
882
|
m: !0
|
|
883
|
-
}, Dr = i("class enum extends super const export import"),
|
|
883
|
+
}, Dr = i("class enum extends super const export import"), Ln = i("implements interface let package private protected public static yield"), dt = 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"), Wr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Vn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Lr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ft = /[\n\r\u2028\u2029]/, ht = /\r\n|[\n\r\u2028\u2029]/g, Be, Vt = {
|
|
884
884
|
kind: "loop"
|
|
885
885
|
}, Vr = {
|
|
886
886
|
kind: "switch"
|
|
@@ -930,13 +930,13 @@ var zn = {
|
|
|
930
930
|
writable: !0
|
|
931
931
|
}, fr = {
|
|
932
932
|
STEP_ERROR: !0
|
|
933
|
-
},
|
|
933
|
+
}, Le = {
|
|
934
934
|
SCOPE_REFERENCE: !0
|
|
935
935
|
}, nt = {
|
|
936
936
|
VALUE_IN_DESCRIPTOR: !0
|
|
937
|
-
},
|
|
937
|
+
}, Ue = {
|
|
938
938
|
REGEXP_TIMEOUT: !0
|
|
939
|
-
}, Yn = [],
|
|
939
|
+
}, Yn = [], ve = null, Qe = null, ke = typeof globalThis == "undefined" ? void 0 : globalThis, oi = ["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();", "};"];
|
|
940
940
|
function nn(e) {
|
|
941
941
|
var t = e >>> 0;
|
|
942
942
|
return t === Number(e) ? t : NaN;
|
|
@@ -1019,7 +1019,7 @@ _.Eb = function() {
|
|
|
1019
1019
|
return this.za;
|
|
1020
1020
|
};
|
|
1021
1021
|
function ai(e, t) {
|
|
1022
|
-
e.g(t, "NaN", NaN, Xe), e.g(t, "Infinity", 1 / 0, Xe), e.g(t, "undefined", void 0, Xe), e.g(t, "window", t, tn), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new B(null), e.Z = new B(e.M), si(e, t), li(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t), pi(e, t), mi(e, t), gi(e, t),
|
|
1022
|
+
e.g(t, "NaN", NaN, Xe), e.g(t, "Infinity", 1 / 0, Xe), e.g(t, "undefined", void 0, Xe), e.g(t, "window", t, tn), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new B(null), e.Z = new B(e.M), si(e, t), li(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), ci(e, t), ui(e, t), di(e, t), fi(e, t), hi(e, t), pi(e, t), mi(e, t), gi(e, t), vi(e, t);
|
|
1023
1023
|
var r = e.i(function() {
|
|
1024
1024
|
throw EvalError("Can't happen");
|
|
1025
1025
|
}, !1);
|
|
@@ -1058,8 +1058,8 @@ function si(e, t) {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
try {
|
|
1060
1060
|
var m = De("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1061
|
-
} catch (
|
|
1062
|
-
C(e, e.T, "Invalid code: " +
|
|
1061
|
+
} catch (v) {
|
|
1062
|
+
C(e, e.T, "Invalid code: " + v.message);
|
|
1063
1063
|
}
|
|
1064
1064
|
return m.body.length !== 1 && C(e, e.T, "Invalid code in function body"), an(e, m.body[0].la, e.N, "anonymous");
|
|
1065
1065
|
};
|
|
@@ -1087,7 +1087,7 @@ function li(e, t) {
|
|
|
1087
1087
|
if (i == null)
|
|
1088
1088
|
return be(e) ? this : e.s(e.M);
|
|
1089
1089
|
if (!(i instanceof B)) {
|
|
1090
|
-
var a = e.s(
|
|
1090
|
+
var a = e.s(ye(e, i));
|
|
1091
1091
|
return a.data = i, a;
|
|
1092
1092
|
}
|
|
1093
1093
|
return i;
|
|
@@ -1106,7 +1106,7 @@ function li(e, t) {
|
|
|
1106
1106
|
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1107
1107
|
}
|
|
1108
1108
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(n, !1), S), n = function(i) {
|
|
1109
|
-
return r(i),
|
|
1109
|
+
return r(i), ye(e, i);
|
|
1110
1110
|
}, e.g(e.v, "getPrototypeOf", e.i(n, !1), S), n = function(i) {
|
|
1111
1111
|
return !!i && !i.preventExtensions;
|
|
1112
1112
|
}, e.g(e.v, "isExtensible", e.i(n, !1), S), n = function(i) {
|
|
@@ -1117,7 +1117,7 @@ function li(e, t) {
|
|
|
1117
1117
|
return r(this), this instanceof B ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1118
1118
|
}, q(e, e.v, "propertyIsEnumerable", n), n = function(i) {
|
|
1119
1119
|
for (; ; ) {
|
|
1120
|
-
if (i =
|
|
1120
|
+
if (i = ye(e, i), !i)
|
|
1121
1121
|
return !1;
|
|
1122
1122
|
if (i === this)
|
|
1123
1123
|
return !0;
|
|
@@ -1160,12 +1160,12 @@ function ui(e, t) {
|
|
|
1160
1160
|
}, q(e, e.J, "localeCompare", r), r = function(n, i, a) {
|
|
1161
1161
|
var s = String(this);
|
|
1162
1162
|
if (i = i ? Number(i) : void 0, ee(e, n, e.I) && (n = n.data, Je(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1163
|
-
if (
|
|
1163
|
+
if (ve)
|
|
1164
1164
|
n = Ye(e, "string.split(separator, limit)", {
|
|
1165
1165
|
string: s,
|
|
1166
1166
|
separator: n,
|
|
1167
1167
|
limit: i
|
|
1168
|
-
}, n, a), n !==
|
|
1168
|
+
}, n, a), n !== Ue && a(ge(e, n));
|
|
1169
1169
|
else {
|
|
1170
1170
|
var u = e.ha(), f = qe(e, n, u, a);
|
|
1171
1171
|
u.onmessage = function(m) {
|
|
@@ -1178,11 +1178,11 @@ function ui(e, t) {
|
|
|
1178
1178
|
}, Ze(e, e.J, "split", r), r = function(n, i) {
|
|
1179
1179
|
var a = String(this);
|
|
1180
1180
|
if (n = ee(e, n, e.I) ? n.data : new RegExp(n), Je(e, n, i), e.REGEXP_MODE === 2)
|
|
1181
|
-
if (
|
|
1181
|
+
if (ve)
|
|
1182
1182
|
n = Ye(e, "string.match(regexp)", {
|
|
1183
1183
|
string: a,
|
|
1184
1184
|
regexp: n
|
|
1185
|
-
}, n, i), n !==
|
|
1185
|
+
}, n, i), n !== Ue && i(n && ge(e, n));
|
|
1186
1186
|
else {
|
|
1187
1187
|
var s = e.ha(), u = qe(e, n, s, i);
|
|
1188
1188
|
s.onmessage = function(f) {
|
|
@@ -1194,11 +1194,11 @@ function ui(e, t) {
|
|
|
1194
1194
|
}, Ze(e, e.J, "match", r), r = function(n, i) {
|
|
1195
1195
|
var a = String(this);
|
|
1196
1196
|
if (ee(e, n, e.I) ? n = n.data : n = new RegExp(n), Je(e, n, i), e.REGEXP_MODE === 2)
|
|
1197
|
-
if (
|
|
1197
|
+
if (ve)
|
|
1198
1198
|
n = Ye(e, "string.search(regexp)", {
|
|
1199
1199
|
string: a,
|
|
1200
1200
|
regexp: n
|
|
1201
|
-
}, n, i), n !==
|
|
1201
|
+
}, n, i), n !== Ue && i(n);
|
|
1202
1202
|
else {
|
|
1203
1203
|
var s = e.ha(), u = qe(e, n, s, i);
|
|
1204
1204
|
s.onmessage = function(f) {
|
|
@@ -1210,12 +1210,12 @@ function ui(e, t) {
|
|
|
1210
1210
|
}, Ze(e, e.J, "search", r), r = function(n, i, a) {
|
|
1211
1211
|
var s = String(this);
|
|
1212
1212
|
if (i = String(i), ee(e, n, e.I) && (n = n.data, Je(e, n, a), e.REGEXP_MODE === 2)) {
|
|
1213
|
-
if (
|
|
1213
|
+
if (ve)
|
|
1214
1214
|
n = Ye(e, "string.replace(substr, newSubstr)", {
|
|
1215
1215
|
string: s,
|
|
1216
1216
|
substr: n,
|
|
1217
1217
|
newSubstr: i
|
|
1218
|
-
}, n, a), n !==
|
|
1218
|
+
}, n, a), n !== Ue && a(n);
|
|
1219
1219
|
else {
|
|
1220
1220
|
var u = e.ha(), f = qe(e, n, u, a);
|
|
1221
1221
|
u.onmessage = function(m) {
|
|
@@ -1308,24 +1308,24 @@ function pi(e, t) {
|
|
|
1308
1308
|
return rn(e, a, s), a;
|
|
1309
1309
|
};
|
|
1310
1310
|
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) {
|
|
1311
|
-
function a(
|
|
1312
|
-
if (
|
|
1313
|
-
var b = ge(e,
|
|
1314
|
-
return e.g(b, "index",
|
|
1311
|
+
function a(v) {
|
|
1312
|
+
if (v) {
|
|
1313
|
+
var b = ge(e, v);
|
|
1314
|
+
return e.g(b, "index", v.index), e.g(b, "input", v.input), b;
|
|
1315
1315
|
}
|
|
1316
1316
|
return null;
|
|
1317
1317
|
}
|
|
1318
1318
|
var s = this.data;
|
|
1319
1319
|
if (n = String(n), s.lastIndex = Number(e.G(this, "lastIndex")), Je(e, s, i), e.REGEXP_MODE === 2)
|
|
1320
|
-
if (
|
|
1320
|
+
if (ve)
|
|
1321
1321
|
n = Ye(e, "regexp.exec(string)", {
|
|
1322
1322
|
string: n,
|
|
1323
1323
|
regexp: s
|
|
1324
|
-
}, s, i), n !==
|
|
1324
|
+
}, s, i), n !== Ue && (e.g(this, "lastIndex", s.lastIndex), i(a(n)));
|
|
1325
1325
|
else {
|
|
1326
1326
|
var u = e.ha(), f = qe(e, s, u, i), m = this;
|
|
1327
|
-
u.onmessage = function(
|
|
1328
|
-
clearTimeout(f), e.g(m, "lastIndex",
|
|
1327
|
+
u.onmessage = function(v) {
|
|
1328
|
+
clearTimeout(f), e.g(m, "lastIndex", v.data[1]), i(a(v.data[0]));
|
|
1329
1329
|
}, u.postMessage(["exec", s, s.lastIndex, n]);
|
|
1330
1330
|
}
|
|
1331
1331
|
else
|
|
@@ -1354,7 +1354,7 @@ function gi(e, t) {
|
|
|
1354
1354
|
for (n = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < n.length; t++)
|
|
1355
1355
|
e.g(r, n[t], e.i(Math[n[t]], !1), S);
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1357
|
+
function vi(e, t) {
|
|
1358
1358
|
var r = e.s(e.M);
|
|
1359
1359
|
e.g(t, "JSON", r, S), t = function(n) {
|
|
1360
1360
|
try {
|
|
@@ -1380,7 +1380,7 @@ function ee(e, t, r) {
|
|
|
1380
1380
|
return !1;
|
|
1381
1381
|
if (r = r.h.prototype, t === r)
|
|
1382
1382
|
return !0;
|
|
1383
|
-
for (t =
|
|
1383
|
+
for (t = ye(e, t); t; ) {
|
|
1384
1384
|
if (t === r)
|
|
1385
1385
|
return !0;
|
|
1386
1386
|
t = t.xa;
|
|
@@ -1419,27 +1419,27 @@ function Ye(e, t, r, n, i) {
|
|
|
1419
1419
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1420
1420
|
};
|
|
1421
1421
|
try {
|
|
1422
|
-
return
|
|
1422
|
+
return ve.runInNewContext(t, r, a);
|
|
1423
1423
|
} catch {
|
|
1424
1424
|
i(null), C(e, e.D, "RegExp Timeout: " + n);
|
|
1425
1425
|
}
|
|
1426
|
-
return
|
|
1426
|
+
return Ue;
|
|
1427
1427
|
}
|
|
1428
1428
|
function Je(e, t, r) {
|
|
1429
1429
|
if (e.REGEXP_MODE === 0)
|
|
1430
1430
|
var n = !1;
|
|
1431
1431
|
else if (e.REGEXP_MODE === 1)
|
|
1432
1432
|
n = !0;
|
|
1433
|
-
else if (
|
|
1433
|
+
else if (ve)
|
|
1434
1434
|
n = !0;
|
|
1435
1435
|
else if (typeof Worker == "function" && typeof URL == "function")
|
|
1436
1436
|
n = !0;
|
|
1437
1437
|
else if (typeof require == "function") {
|
|
1438
1438
|
try {
|
|
1439
|
-
|
|
1439
|
+
ve = require("vm");
|
|
1440
1440
|
} catch {
|
|
1441
1441
|
}
|
|
1442
|
-
n = !!
|
|
1442
|
+
n = !!ve;
|
|
1443
1443
|
} else
|
|
1444
1444
|
n = !1;
|
|
1445
1445
|
n || (r(null), C(e, e.D, "Regular expressions not supported: " + t));
|
|
@@ -1534,7 +1534,7 @@ _.R = function(e, t) {
|
|
|
1534
1534
|
if (t.hb.push(e), ee(this, e, this.qa)) {
|
|
1535
1535
|
r = [], t.Sa.push(r);
|
|
1536
1536
|
for (var n = this.G(e, "length"), i = 0; i < n; i++)
|
|
1537
|
-
|
|
1537
|
+
bt(this, e, i) && (r[i] = this.R(this.G(e, i), t));
|
|
1538
1538
|
} else
|
|
1539
1539
|
for (n in r = {}, t.Sa.push(r), e.h)
|
|
1540
1540
|
i = this.R(e.h[n], t), Object.defineProperty(r, n, {
|
|
@@ -1556,7 +1556,7 @@ function hr(e, t) {
|
|
|
1556
1556
|
r[n] = e.G(t, n);
|
|
1557
1557
|
return r.length = nn(e.G(t, "length")) || 0, r;
|
|
1558
1558
|
}
|
|
1559
|
-
function
|
|
1559
|
+
function ye(e, t) {
|
|
1560
1560
|
switch (typeof t) {
|
|
1561
1561
|
case "number":
|
|
1562
1562
|
return e.aa.h.prototype;
|
|
@@ -1583,9 +1583,9 @@ _.G = function(e, t) {
|
|
|
1583
1583
|
do
|
|
1584
1584
|
if (e.h && t in e.h)
|
|
1585
1585
|
return (r = e.V[t]) ? (this.P = !0, r) : e.h[t];
|
|
1586
|
-
while (e =
|
|
1586
|
+
while (e = ye(this, e));
|
|
1587
1587
|
};
|
|
1588
|
-
function
|
|
1588
|
+
function bt(e, t, r) {
|
|
1589
1589
|
if (!(t instanceof B))
|
|
1590
1590
|
throw TypeError("Primitive data type has no properties");
|
|
1591
1591
|
if (r = String(r), r === "length" && ee(e, t, e.J))
|
|
@@ -1598,7 +1598,7 @@ function vt(e, t, r) {
|
|
|
1598
1598
|
do
|
|
1599
1599
|
if (t.h && r in t.h)
|
|
1600
1600
|
return !0;
|
|
1601
|
-
while (t =
|
|
1601
|
+
while (t = ye(e, t));
|
|
1602
1602
|
return !1;
|
|
1603
1603
|
}
|
|
1604
1604
|
_.g = function(e, t, r, n) {
|
|
@@ -1643,7 +1643,7 @@ _.g = function(e, t, r, n) {
|
|
|
1643
1643
|
if (r === nt)
|
|
1644
1644
|
throw ReferenceError("Value not specified");
|
|
1645
1645
|
for (n = e; !(t in n.h); )
|
|
1646
|
-
if (n =
|
|
1646
|
+
if (n = ye(this, n), !n) {
|
|
1647
1647
|
n = e;
|
|
1648
1648
|
break;
|
|
1649
1649
|
}
|
|
@@ -1701,7 +1701,7 @@ function cn(e, t) {
|
|
|
1701
1701
|
return r.object.h[t];
|
|
1702
1702
|
r = r.Va;
|
|
1703
1703
|
}
|
|
1704
|
-
if (r === e.N &&
|
|
1704
|
+
if (r === e.N && bt(e, r.object, t))
|
|
1705
1705
|
return e.G(r.object, t);
|
|
1706
1706
|
r = e.o[e.o.length - 1].node, r.type === "UnaryExpression" && r.operator === "typeof" || C(e, e.pb, t + " is not defined");
|
|
1707
1707
|
}
|
|
@@ -1717,7 +1717,7 @@ function pr(e, t, r) {
|
|
|
1717
1717
|
}
|
|
1718
1718
|
n = n.Va;
|
|
1719
1719
|
}
|
|
1720
|
-
if (n === e.N && (!i ||
|
|
1720
|
+
if (n === e.N && (!i || bt(e, n.object, t)))
|
|
1721
1721
|
return e.g(n.object, t, r);
|
|
1722
1722
|
C(e, e.pb, t + " is not defined");
|
|
1723
1723
|
}
|
|
@@ -1774,10 +1774,10 @@ function be(e) {
|
|
|
1774
1774
|
return e.o[e.o.length - 1].isConstructor;
|
|
1775
1775
|
}
|
|
1776
1776
|
function un(e, t) {
|
|
1777
|
-
return t[0] ===
|
|
1777
|
+
return t[0] === Le ? cn(e, t[1]) : e.G(t[0], t[1]);
|
|
1778
1778
|
}
|
|
1779
1779
|
function dn(e, t, r) {
|
|
1780
|
-
return t[0] ===
|
|
1780
|
+
return t[0] === Le ? pr(e, t[1], r) : e.g(t[0], t[1], r);
|
|
1781
1781
|
}
|
|
1782
1782
|
function C(e, t, r) {
|
|
1783
1783
|
throw e.N ? (r !== void 0 && t instanceof B && (t = e.Aa(t), Xt(e, t, r)), ot(e, 4, t), fr) : r === void 0 ? t : r;
|
|
@@ -1873,7 +1873,7 @@ function Jn(e, t, r) {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
s.type = "EvalProgram_", s.body = f.body, n = n.node.arguments[0], yt(s, n ? n.start : void 0, n ? n.end : void 0), n = e.N, i.length = 0;
|
|
1875
1875
|
}
|
|
1876
|
-
return t = new
|
|
1876
|
+
return t = new yi(u, i, n, s, t ? r : -1), mr(e, t, r), t.Db;
|
|
1877
1877
|
}
|
|
1878
1878
|
function mr(e, t, r) {
|
|
1879
1879
|
t.time = Date.now() + r, e.ca.push(t), e.ca.sort(function(n, i) {
|
|
@@ -1901,8 +1901,8 @@ function fn(e, t, r, n) {
|
|
|
1901
1901
|
var i = e.ya();
|
|
1902
1902
|
return i.type = "CallExpression", e = new k(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = r, e.U = t, e.Qa = !0, e.F = [n], e;
|
|
1903
1903
|
}
|
|
1904
|
-
function
|
|
1905
|
-
return t == null ? e.Na : t instanceof B ? t : (e = e.s(
|
|
1904
|
+
function Ht(e, t) {
|
|
1905
|
+
return t == null ? e.Na : t instanceof B ? t : (e = e.s(ye(e, t)), e.data = t, e);
|
|
1906
1906
|
}
|
|
1907
1907
|
_.Xb = function() {
|
|
1908
1908
|
return this.N;
|
|
@@ -1977,7 +1977,7 @@ _.toString = function() {
|
|
|
1977
1977
|
_.valueOf = function() {
|
|
1978
1978
|
return !Qe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1979
1979
|
};
|
|
1980
|
-
function
|
|
1980
|
+
function yi(e, t, r, n, i) {
|
|
1981
1981
|
this.zb = e, this.Lb = t, this.scope = r, this.node = n, this.interval = i, this.Db = ++bi, this.time = 0;
|
|
1982
1982
|
}
|
|
1983
1983
|
var bi = 0;
|
|
@@ -2111,7 +2111,7 @@ g.prototype.stepBinaryExpression = function(e, t, r) {
|
|
|
2111
2111
|
r = n >>> t;
|
|
2112
2112
|
break;
|
|
2113
2113
|
case "in":
|
|
2114
|
-
t instanceof B || C(this, this.j, "'in' expects an object, not '" + t + "'"), r =
|
|
2114
|
+
t instanceof B || C(this, this.j, "'in' expects an object, not '" + t + "'"), r = bt(this, t, n);
|
|
2115
2115
|
break;
|
|
2116
2116
|
case "instanceof":
|
|
2117
2117
|
ee(this, t, this.O) || C(this, this.j, "'instanceof' expects an object, not '" + t + "'"), r = n instanceof B ? ee(this, n, t) : !1;
|
|
@@ -2141,7 +2141,7 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2141
2141
|
t.ia = 2;
|
|
2142
2142
|
var i = t.value;
|
|
2143
2143
|
if (Array.isArray(i)) {
|
|
2144
|
-
if (t.U = un(this, i), i[0] ===
|
|
2144
|
+
if (t.U = un(this, i), i[0] === Le ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2145
2145
|
return t.ia = 1, at(this, i, t.value);
|
|
2146
2146
|
} else
|
|
2147
2147
|
t.U = i;
|
|
@@ -2169,7 +2169,7 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2169
2169
|
this.g(n, i, t.F[i]);
|
|
2170
2170
|
for (this.g(r.object, "arguments", n), i = 0; i < e.oa.length; i++)
|
|
2171
2171
|
this.g(r.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
2172
|
-
return r.S || (t.B =
|
|
2172
|
+
return r.S || (t.B = Ht(this, t.B)), this.g(r.object, "this", t.B, tn), t.value = void 0, new k(e.body, r);
|
|
2173
2173
|
}
|
|
2174
2174
|
if (i.eval)
|
|
2175
2175
|
if (i = t.F[0], typeof i != "string")
|
|
@@ -2183,12 +2183,12 @@ g.prototype.stepCallExpression = function(e, t, r) {
|
|
|
2183
2183
|
return i = this.ya(), i.type = "EvalProgram_", i.body = n.body, yt(i, r.start, r.end), r = t.Pb ? t.scope : this.N, r.S ? r = Yt(this, n, r) : rt(this, n, r), this.value = void 0, new k(i, r);
|
|
2184
2184
|
}
|
|
2185
2185
|
else if (i.Ta)
|
|
2186
|
-
t.scope.S || (t.B =
|
|
2186
|
+
t.scope.S || (t.B = Ht(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2187
2187
|
else if (i.Za) {
|
|
2188
2188
|
var s = this;
|
|
2189
2189
|
n = i.Za.length - 1, n = t.F.concat(Array(n)).slice(0, n), n.push(function(u) {
|
|
2190
2190
|
t.value = u, s.za = !1;
|
|
2191
|
-
}), this.za = !0, t.scope.S || (t.B =
|
|
2191
|
+
}), this.za = !0, t.scope.S || (t.B = Ht(this, t.B)), i.Za.apply(t.B, n);
|
|
2192
2192
|
} else
|
|
2193
2193
|
C(this, this.j, oe(this, r.callee) + " is not callable");
|
|
2194
2194
|
}
|
|
@@ -2259,14 +2259,14 @@ g.prototype.stepForInStatement = function(e, t, r) {
|
|
|
2259
2259
|
break e;
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
|
-
if (t.u =
|
|
2262
|
+
if (t.u = ye(this, t.u), t.wa = null, t.u === null) {
|
|
2263
2263
|
e.pop();
|
|
2264
2264
|
return;
|
|
2265
2265
|
}
|
|
2266
2266
|
}
|
|
2267
2267
|
if (!t.wb)
|
|
2268
2268
|
if (t.wb = !0, e = r.left, e.type === "VariableDeclaration")
|
|
2269
|
-
t.pa = [
|
|
2269
|
+
t.pa = [Le, e.fa[0].id.name];
|
|
2270
2270
|
else
|
|
2271
2271
|
return t.pa = null, t = new k(e, t.scope), t.sa = !0, t;
|
|
2272
2272
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, n = dn(this, t.pa, e)))
|
|
@@ -2303,7 +2303,7 @@ g.prototype.stepFunctionExpression = function(e, t, r) {
|
|
|
2303
2303
|
};
|
|
2304
2304
|
g.prototype.stepIdentifier = function(e, t, r) {
|
|
2305
2305
|
if (e.pop(), t.sa)
|
|
2306
|
-
e[e.length - 1].value = [
|
|
2306
|
+
e[e.length - 1].value = [Le, r.name];
|
|
2307
2307
|
else {
|
|
2308
2308
|
if (t = cn(this, r.name), this.P)
|
|
2309
2309
|
return at(this, t, this.Na);
|
|
@@ -2456,7 +2456,7 @@ g.prototype.stepUnaryExpression = function(e, t, r) {
|
|
|
2456
2456
|
case "delete":
|
|
2457
2457
|
if (r = !0, Array.isArray(n)) {
|
|
2458
2458
|
var i = n[0];
|
|
2459
|
-
i ===
|
|
2459
|
+
i === Le && (i = t.scope), n = String(n[1]);
|
|
2460
2460
|
try {
|
|
2461
2461
|
delete i.h[n];
|
|
2462
2462
|
} catch {
|
|
@@ -2562,16 +2562,16 @@ const xi = (e) => e.split(`
|
|
|
2562
2562
|
const P = Zn(I);
|
|
2563
2563
|
return `var ${I} = ${P} === undefined ? undefined : JSON.parse(${P});`;
|
|
2564
2564
|
}).join(`
|
|
2565
|
-
`),
|
|
2566
|
-
if (
|
|
2567
|
-
|
|
2565
|
+
`), v = xi(s);
|
|
2566
|
+
if (v === "") {
|
|
2567
|
+
Re.warn("Skipping evaluation of empty code block.");
|
|
2568
2568
|
return;
|
|
2569
2569
|
}
|
|
2570
2570
|
const b = `
|
|
2571
2571
|
function theFunction() {
|
|
2572
2572
|
${m}
|
|
2573
2573
|
|
|
2574
|
-
${
|
|
2574
|
+
${v}
|
|
2575
2575
|
}
|
|
2576
2576
|
theFunction();
|
|
2577
2577
|
`, U = (I, P) => {
|
|
@@ -2579,20 +2579,31 @@ theFunction();
|
|
|
2579
2579
|
a == null || a($);
|
|
2580
2580
|
}, N = function(I, P) {
|
|
2581
2581
|
f.forEach(([$, Y]) => {
|
|
2582
|
-
const
|
|
2583
|
-
I.setProperty(P, Zn($),
|
|
2582
|
+
const y = JSON.stringify(Y);
|
|
2583
|
+
I.setProperty(P, Zn($), y);
|
|
2584
2584
|
}), I.setProperty(P, "setRootState", I.createNativeFunction(U));
|
|
2585
2585
|
};
|
|
2586
2586
|
try {
|
|
2587
2587
|
const I = new g(b, N);
|
|
2588
2588
|
return I.run(), I.pseudoToNative(I.value);
|
|
2589
2589
|
} catch (I) {
|
|
2590
|
-
|
|
2590
|
+
Re.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2591
2591
|
e: I
|
|
2592
2592
|
});
|
|
2593
2593
|
return;
|
|
2594
2594
|
}
|
|
2595
|
-
}
|
|
2595
|
+
};
|
|
2596
|
+
function ki() {
|
|
2597
|
+
var e;
|
|
2598
|
+
return typeof process != "undefined" && mt((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2599
|
+
}
|
|
2600
|
+
const wi = () => {
|
|
2601
|
+
var n;
|
|
2602
|
+
if (!ki())
|
|
2603
|
+
return !1;
|
|
2604
|
+
const e = process.arch === "arm64", t = process.version.startsWith("v20"), r = (n = process.env.NODE_OPTIONS) == null ? void 0 : n.includes("--no-node-snapshot");
|
|
2605
|
+
return e && t && !r ? (Re.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2606
|
+
}, Ci = (e) => Ae() || wi() ? ni(e) : Si(e);
|
|
2596
2607
|
function it({
|
|
2597
2608
|
code: e,
|
|
2598
2609
|
context: t,
|
|
@@ -2603,7 +2614,7 @@ function it({
|
|
|
2603
2614
|
isExpression: s = !0
|
|
2604
2615
|
}) {
|
|
2605
2616
|
if (e === "") {
|
|
2606
|
-
|
|
2617
|
+
Re.warn("Skipping evaluation of empty code block.");
|
|
2607
2618
|
return;
|
|
2608
2619
|
}
|
|
2609
2620
|
const u = {
|
|
@@ -2618,15 +2629,15 @@ function it({
|
|
|
2618
2629
|
localState: r
|
|
2619
2630
|
};
|
|
2620
2631
|
try {
|
|
2621
|
-
return
|
|
2632
|
+
return Ci(u);
|
|
2622
2633
|
} catch (f) {
|
|
2623
|
-
|
|
2634
|
+
Re.error("Failed code evaluation: " + f.message, {
|
|
2624
2635
|
code: e
|
|
2625
2636
|
});
|
|
2626
2637
|
return;
|
|
2627
2638
|
}
|
|
2628
2639
|
}
|
|
2629
|
-
const
|
|
2640
|
+
const Ei = ({
|
|
2630
2641
|
block: e,
|
|
2631
2642
|
context: t,
|
|
2632
2643
|
localState: r,
|
|
@@ -2656,7 +2667,7 @@ const wi = ({
|
|
|
2656
2667
|
}
|
|
2657
2668
|
return s;
|
|
2658
2669
|
};
|
|
2659
|
-
function
|
|
2670
|
+
function vt({
|
|
2660
2671
|
block: e,
|
|
2661
2672
|
context: t,
|
|
2662
2673
|
shouldEvaluateBindings: r,
|
|
@@ -2665,7 +2676,7 @@ function gt({
|
|
|
2665
2676
|
rootSetState: a
|
|
2666
2677
|
}) {
|
|
2667
2678
|
const s = e;
|
|
2668
|
-
return r ?
|
|
2679
|
+
return r ? Ei({
|
|
2669
2680
|
block: s,
|
|
2670
2681
|
localState: n,
|
|
2671
2682
|
rootState: i,
|
|
@@ -2673,13 +2684,13 @@ function gt({
|
|
|
2673
2684
|
context: t
|
|
2674
2685
|
}) : s;
|
|
2675
2686
|
}
|
|
2676
|
-
const
|
|
2687
|
+
const Ii = ({
|
|
2677
2688
|
block: e,
|
|
2678
2689
|
context: t,
|
|
2679
2690
|
registeredComponents: r
|
|
2680
2691
|
}) => {
|
|
2681
2692
|
var a;
|
|
2682
|
-
const n = (a =
|
|
2693
|
+
const n = (a = vt({
|
|
2683
2694
|
block: e,
|
|
2684
2695
|
localState: t.localState,
|
|
2685
2696
|
rootState: t.rootState,
|
|
@@ -2695,7 +2706,7 @@ const Ci = ({
|
|
|
2695
2706
|
console.warn(`
|
|
2696
2707
|
Could not find a registered component named "${n}".
|
|
2697
2708
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2698
|
-
},
|
|
2709
|
+
}, Ti = ({
|
|
2699
2710
|
block: e,
|
|
2700
2711
|
context: t
|
|
2701
2712
|
}) => {
|
|
@@ -2728,7 +2739,7 @@ const Ci = ({
|
|
|
2728
2739
|
},
|
|
2729
2740
|
block: n
|
|
2730
2741
|
}));
|
|
2731
|
-
},
|
|
2742
|
+
}, vr = {
|
|
2732
2743
|
small: {
|
|
2733
2744
|
min: 320,
|
|
2734
2745
|
default: 321,
|
|
@@ -2744,11 +2755,11 @@ const Ci = ({
|
|
|
2744
2755
|
default: 991,
|
|
2745
2756
|
max: 1200
|
|
2746
2757
|
}
|
|
2747
|
-
}, Qn = (e, t =
|
|
2758
|
+
}, Qn = (e, t = vr) => `@media (max-width: ${t[e].max}px)`, yr = ({
|
|
2748
2759
|
small: e,
|
|
2749
2760
|
medium: t
|
|
2750
2761
|
}) => {
|
|
2751
|
-
const r = Zt(
|
|
2762
|
+
const r = Zt(vr);
|
|
2752
2763
|
if (!e || !t)
|
|
2753
2764
|
return r;
|
|
2754
2765
|
const n = Math.floor(e / 2);
|
|
@@ -2770,28 +2781,28 @@ const Ci = ({
|
|
|
2770
2781
|
min: a,
|
|
2771
2782
|
default: a + 1
|
|
2772
2783
|
}, r;
|
|
2773
|
-
},
|
|
2784
|
+
}, ji = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), br = (e) => Object.entries(e).map(([r, n]) => {
|
|
2774
2785
|
if (typeof n == "string")
|
|
2775
|
-
return `${
|
|
2776
|
-
}).filter(
|
|
2777
|
-
`),
|
|
2786
|
+
return `${ji(r)}: ${n};`;
|
|
2787
|
+
}).filter(mt), Ai = (e) => br(e).join(`
|
|
2788
|
+
`), Kt = ({
|
|
2778
2789
|
mediaQuery: e,
|
|
2779
2790
|
className: t,
|
|
2780
2791
|
styles: r
|
|
2781
2792
|
}) => {
|
|
2782
2793
|
const n = `.${t} {
|
|
2783
|
-
${
|
|
2794
|
+
${Ai(r)}
|
|
2784
2795
|
}`;
|
|
2785
2796
|
return e ? `${e} {
|
|
2786
2797
|
${n}
|
|
2787
2798
|
}` : n;
|
|
2788
2799
|
};
|
|
2789
|
-
function
|
|
2800
|
+
function xt(e) {
|
|
2790
2801
|
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2791
2802
|
}
|
|
2792
|
-
function
|
|
2803
|
+
function Ri(e) {
|
|
2793
2804
|
function t() {
|
|
2794
|
-
const n =
|
|
2805
|
+
const n = vt({
|
|
2795
2806
|
block: e.block,
|
|
2796
2807
|
localState: e.context.localState,
|
|
2797
2808
|
rootState: e.context.rootState,
|
|
@@ -2799,34 +2810,34 @@ function ji(e) {
|
|
|
2799
2810
|
context: e.context.context,
|
|
2800
2811
|
shouldEvaluateBindings: !0
|
|
2801
2812
|
});
|
|
2802
|
-
return
|
|
2813
|
+
return mt(n.hide) ? !n.hide : mt(n.show) ? n.show : !0;
|
|
2803
2814
|
}
|
|
2804
2815
|
function r() {
|
|
2805
2816
|
var I;
|
|
2806
|
-
const n =
|
|
2817
|
+
const n = vt({
|
|
2807
2818
|
block: e.block,
|
|
2808
2819
|
localState: e.context.localState,
|
|
2809
2820
|
rootState: e.context.rootState,
|
|
2810
2821
|
rootSetState: e.context.rootSetState,
|
|
2811
2822
|
context: e.context.context,
|
|
2812
2823
|
shouldEvaluateBindings: !0
|
|
2813
|
-
}), i = n.responsiveStyles, a = e.context.content, s =
|
|
2824
|
+
}), i = n.responsiveStyles, a = e.context.content, s = yr(
|
|
2814
2825
|
((I = a == null ? void 0 : a.meta) == null ? void 0 : I.breakpoints) || {}
|
|
2815
|
-
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, m = i == null ? void 0 : i.small,
|
|
2816
|
-
if (!
|
|
2826
|
+
), u = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, m = i == null ? void 0 : i.small, v = n.id;
|
|
2827
|
+
if (!v)
|
|
2817
2828
|
return "";
|
|
2818
|
-
const b = u ?
|
|
2819
|
-
className:
|
|
2829
|
+
const b = u ? Kt({
|
|
2830
|
+
className: v,
|
|
2820
2831
|
styles: u
|
|
2821
|
-
}) : "", U = f ?
|
|
2822
|
-
className:
|
|
2832
|
+
}) : "", U = f ? Kt({
|
|
2833
|
+
className: v,
|
|
2823
2834
|
styles: f,
|
|
2824
2835
|
mediaQuery: Qn(
|
|
2825
2836
|
"medium",
|
|
2826
2837
|
s
|
|
2827
2838
|
)
|
|
2828
|
-
}) : "", N = m ?
|
|
2829
|
-
className:
|
|
2839
|
+
}) : "", N = m ? Kt({
|
|
2840
|
+
className: v,
|
|
2830
2841
|
styles: m,
|
|
2831
2842
|
mediaQuery: Qn(
|
|
2832
2843
|
"small",
|
|
@@ -2835,12 +2846,12 @@ function ji(e) {
|
|
|
2835
2846
|
}) : "";
|
|
2836
2847
|
return [b, U, N].join(" ");
|
|
2837
2848
|
}
|
|
2838
|
-
return /* @__PURE__ */ p(F, { children: r() && t() ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
|
|
2849
|
+
return /* @__PURE__ */ p(F, { children: r() && t() ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(xt, { styles: r() }) }) : null });
|
|
2839
2850
|
}
|
|
2840
|
-
function
|
|
2851
|
+
function Oi(e) {
|
|
2841
2852
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2842
2853
|
}
|
|
2843
|
-
const
|
|
2854
|
+
const Pi = (e) => `on${Oi(e)}`, Ni = (e, t) => (r) => it({
|
|
2844
2855
|
code: e,
|
|
2845
2856
|
context: t.context,
|
|
2846
2857
|
localState: t.localState,
|
|
@@ -2856,9 +2867,9 @@ function xr(e) {
|
|
|
2856
2867
|
if (!r.hasOwnProperty(i))
|
|
2857
2868
|
continue;
|
|
2858
2869
|
const a = r[i];
|
|
2859
|
-
let s =
|
|
2870
|
+
let s = Pi(i);
|
|
2860
2871
|
if (e.stripPrefix)
|
|
2861
|
-
switch (
|
|
2872
|
+
switch (We) {
|
|
2862
2873
|
case "vue":
|
|
2863
2874
|
s = s.replace("v-on:", "");
|
|
2864
2875
|
break;
|
|
@@ -2866,25 +2877,25 @@ function xr(e) {
|
|
|
2866
2877
|
s = s.replace("on:", "");
|
|
2867
2878
|
break;
|
|
2868
2879
|
}
|
|
2869
|
-
t[s] =
|
|
2880
|
+
t[s] = Ni(a, e);
|
|
2870
2881
|
}
|
|
2871
2882
|
return t;
|
|
2872
2883
|
}
|
|
2873
|
-
function
|
|
2884
|
+
function Mi({
|
|
2874
2885
|
style: e
|
|
2875
2886
|
}) {
|
|
2876
2887
|
return e;
|
|
2877
2888
|
}
|
|
2878
|
-
const
|
|
2889
|
+
const Bi = ({
|
|
2879
2890
|
block: e,
|
|
2880
2891
|
context: t
|
|
2881
|
-
}) => Sr(
|
|
2892
|
+
}) => Sr(Mi({
|
|
2882
2893
|
style: e.style || {},
|
|
2883
2894
|
context: t,
|
|
2884
2895
|
block: e
|
|
2885
2896
|
}));
|
|
2886
2897
|
function Sr(e) {
|
|
2887
|
-
switch (
|
|
2898
|
+
switch (We) {
|
|
2888
2899
|
case "svelte":
|
|
2889
2900
|
case "vue":
|
|
2890
2901
|
case "solid":
|
|
@@ -2896,12 +2907,12 @@ function Sr(e) {
|
|
|
2896
2907
|
return e;
|
|
2897
2908
|
}
|
|
2898
2909
|
}
|
|
2899
|
-
function
|
|
2910
|
+
function Fi({
|
|
2900
2911
|
properties: e
|
|
2901
2912
|
}) {
|
|
2902
2913
|
return e;
|
|
2903
2914
|
}
|
|
2904
|
-
const
|
|
2915
|
+
const Ui = (e) => ({
|
|
2905
2916
|
href: e.href
|
|
2906
2917
|
});
|
|
2907
2918
|
function hn({
|
|
@@ -2910,22 +2921,22 @@ function hn({
|
|
|
2910
2921
|
}) {
|
|
2911
2922
|
var n;
|
|
2912
2923
|
const r = {
|
|
2913
|
-
...
|
|
2924
|
+
...Ui(e),
|
|
2914
2925
|
...e.properties,
|
|
2915
2926
|
"builder-id": e.id,
|
|
2916
|
-
style:
|
|
2927
|
+
style: Bi({
|
|
2917
2928
|
block: e,
|
|
2918
2929
|
context: t
|
|
2919
2930
|
}),
|
|
2920
2931
|
[tt()]: [e.id, "builder-block", e.class, (n = e.properties) == null ? void 0 : n.class].filter(Boolean).join(" ")
|
|
2921
2932
|
};
|
|
2922
|
-
return
|
|
2933
|
+
return Fi({
|
|
2923
2934
|
properties: r,
|
|
2924
2935
|
context: t,
|
|
2925
2936
|
block: e
|
|
2926
2937
|
});
|
|
2927
2938
|
}
|
|
2928
|
-
function
|
|
2939
|
+
function Di(e) {
|
|
2929
2940
|
return /* @__PURE__ */ p(
|
|
2930
2941
|
Qt,
|
|
2931
2942
|
{
|
|
@@ -2946,7 +2957,7 @@ function Fi(e) {
|
|
|
2946
2957
|
}
|
|
2947
2958
|
);
|
|
2948
2959
|
}
|
|
2949
|
-
function
|
|
2960
|
+
function _i(e) {
|
|
2950
2961
|
return /* @__PURE__ */ p(
|
|
2951
2962
|
e.Wrapper,
|
|
2952
2963
|
{
|
|
@@ -2968,7 +2979,7 @@ function Ui(e) {
|
|
|
2968
2979
|
}
|
|
2969
2980
|
);
|
|
2970
2981
|
}
|
|
2971
|
-
const
|
|
2982
|
+
const Wi = ({
|
|
2972
2983
|
componentOptions: e,
|
|
2973
2984
|
builderBlock: t,
|
|
2974
2985
|
context: r,
|
|
@@ -3001,12 +3012,12 @@ const Di = ({
|
|
|
3001
3012
|
function er(e) {
|
|
3002
3013
|
var n;
|
|
3003
3014
|
const [t, r] = V(
|
|
3004
|
-
() => e.isInteractive ?
|
|
3015
|
+
() => e.isInteractive ? _i : e.componentRef
|
|
3005
3016
|
);
|
|
3006
3017
|
return /* @__PURE__ */ p(F, { children: e.componentRef ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
|
|
3007
3018
|
t,
|
|
3008
3019
|
{
|
|
3009
|
-
...
|
|
3020
|
+
...Wi({
|
|
3010
3021
|
componentOptions: e.componentOptions,
|
|
3011
3022
|
builderBlock: e.builderBlock,
|
|
3012
3023
|
context: e.context,
|
|
@@ -3017,7 +3028,7 @@ function er(e) {
|
|
|
3017
3028
|
contextValue: e.context
|
|
3018
3029
|
}),
|
|
3019
3030
|
children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ p(
|
|
3020
|
-
|
|
3031
|
+
St,
|
|
3021
3032
|
{
|
|
3022
3033
|
block: i,
|
|
3023
3034
|
context: e.context,
|
|
@@ -3029,10 +3040,10 @@ function er(e) {
|
|
|
3029
3040
|
}
|
|
3030
3041
|
) }) : null });
|
|
3031
3042
|
}
|
|
3032
|
-
function
|
|
3043
|
+
function Li(e) {
|
|
3033
3044
|
const [t, r] = V(() => e.repeatContext);
|
|
3034
3045
|
return /* @__PURE__ */ p(en.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3035
|
-
|
|
3046
|
+
St,
|
|
3036
3047
|
{
|
|
3037
3048
|
block: e.block,
|
|
3038
3049
|
context: t,
|
|
@@ -3041,24 +3052,24 @@ function _i(e) {
|
|
|
3041
3052
|
}
|
|
3042
3053
|
) });
|
|
3043
3054
|
}
|
|
3044
|
-
function
|
|
3045
|
-
var
|
|
3055
|
+
function St(e) {
|
|
3056
|
+
var v, b, U;
|
|
3046
3057
|
function t() {
|
|
3047
|
-
return
|
|
3058
|
+
return Ii({
|
|
3048
3059
|
block: e.block,
|
|
3049
3060
|
context: e.context,
|
|
3050
3061
|
registeredComponents: e.registeredComponents
|
|
3051
3062
|
});
|
|
3052
3063
|
}
|
|
3053
3064
|
function r() {
|
|
3054
|
-
return
|
|
3065
|
+
return Ti({
|
|
3055
3066
|
block: e.block,
|
|
3056
3067
|
context: e.context
|
|
3057
3068
|
});
|
|
3058
3069
|
}
|
|
3059
3070
|
function n() {
|
|
3060
3071
|
var N;
|
|
3061
|
-
return (N = e.block.repeat) != null && N.collection ? e.block :
|
|
3072
|
+
return (N = e.block.repeat) != null && N.collection ? e.block : vt({
|
|
3062
3073
|
block: e.block,
|
|
3063
3074
|
localState: e.context.localState,
|
|
3064
3075
|
rootState: e.context.rootState,
|
|
@@ -3083,7 +3094,7 @@ function xt(e) {
|
|
|
3083
3094
|
return !((I = t == null ? void 0 : t()) != null && I.component) && !r() ? (P = n().children) != null ? P : [] : [];
|
|
3084
3095
|
}
|
|
3085
3096
|
function u() {
|
|
3086
|
-
var N, I, P, $, Y,
|
|
3097
|
+
var N, I, P, $, Y, y, L, Z, ne;
|
|
3087
3098
|
return {
|
|
3088
3099
|
blockChildren: (N = n().children) != null ? N : [],
|
|
3089
3100
|
componentRef: (I = t == null ? void 0 : t()) == null ? void 0 : I.component,
|
|
@@ -3093,7 +3104,7 @@ function xt(e) {
|
|
|
3093
3104
|
...((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Core:Button" || (($ = t == null ? void 0 : t()) == null ? void 0 : $.name) === "Symbol" || ((Y = t == null ? void 0 : t()) == null ? void 0 : Y.name) === "Columns" ? {
|
|
3094
3105
|
builderLinkComponent: e.linkComponent
|
|
3095
3106
|
} : {},
|
|
3096
|
-
...((
|
|
3107
|
+
...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Symbol" || ((L = t == null ? void 0 : t()) == null ? void 0 : L.name) === "Columns" ? {
|
|
3097
3108
|
builderComponents: e.registeredComponents
|
|
3098
3109
|
} : {}
|
|
3099
3110
|
},
|
|
@@ -3107,8 +3118,8 @@ function xt(e) {
|
|
|
3107
3118
|
}
|
|
3108
3119
|
const [f, m] = V(() => e.context);
|
|
3109
3120
|
return /* @__PURE__ */ p(F, { children: a() ? /* @__PURE__ */ ce(F, { children: [
|
|
3110
|
-
/* @__PURE__ */ p(
|
|
3111
|
-
(
|
|
3121
|
+
/* @__PURE__ */ p(Ri, { block: e.block, context: e.context }),
|
|
3122
|
+
(v = t == null ? void 0 : t()) != null && v.noWrap ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
|
|
3112
3123
|
er,
|
|
3113
3124
|
{
|
|
3114
3125
|
componentRef: u().componentRef,
|
|
@@ -3122,7 +3133,7 @@ function xt(e) {
|
|
|
3122
3133
|
isInteractive: u().isInteractive
|
|
3123
3134
|
}
|
|
3124
3135
|
) }) : /* @__PURE__ */ p(F, { children: r() ? /* @__PURE__ */ p(F, { children: (U = r()) == null ? void 0 : U.map((N, I) => /* @__PURE__ */ p(
|
|
3125
|
-
|
|
3136
|
+
Li,
|
|
3126
3137
|
{
|
|
3127
3138
|
repeatContext: N.context,
|
|
3128
3139
|
block: N.block,
|
|
@@ -3131,7 +3142,7 @@ function xt(e) {
|
|
|
3131
3142
|
},
|
|
3132
3143
|
I
|
|
3133
3144
|
)) }) : /* @__PURE__ */ p(F, { children: /* @__PURE__ */ ce(
|
|
3134
|
-
|
|
3145
|
+
Di,
|
|
3135
3146
|
{
|
|
3136
3147
|
Wrapper: i(),
|
|
3137
3148
|
block: n(),
|
|
@@ -3153,7 +3164,7 @@ function xt(e) {
|
|
|
3153
3164
|
}
|
|
3154
3165
|
),
|
|
3155
3166
|
(b = s()) == null ? void 0 : b.map((N) => /* @__PURE__ */ p(
|
|
3156
|
-
|
|
3167
|
+
St,
|
|
3157
3168
|
{
|
|
3158
3169
|
block: N,
|
|
3159
3170
|
context: f,
|
|
@@ -3167,7 +3178,7 @@ function xt(e) {
|
|
|
3167
3178
|
) }) })
|
|
3168
3179
|
] }) : null });
|
|
3169
3180
|
}
|
|
3170
|
-
function
|
|
3181
|
+
function Vi(e) {
|
|
3171
3182
|
function t() {
|
|
3172
3183
|
var i;
|
|
3173
3184
|
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
@@ -3220,11 +3231,11 @@ function Li(e) {
|
|
|
3220
3231
|
}` })
|
|
3221
3232
|
] });
|
|
3222
3233
|
}
|
|
3223
|
-
function
|
|
3234
|
+
function kt(e) {
|
|
3224
3235
|
var n, i, a;
|
|
3225
3236
|
const t = $n(en), r = $n(cr);
|
|
3226
3237
|
return /* @__PURE__ */ p(
|
|
3227
|
-
|
|
3238
|
+
Vi,
|
|
3228
3239
|
{
|
|
3229
3240
|
blocks: e.blocks,
|
|
3230
3241
|
parent: e.parent,
|
|
@@ -3233,7 +3244,7 @@ function St(e) {
|
|
|
3233
3244
|
BlocksWrapper: (n = e.context) == null ? void 0 : n.BlocksWrapper,
|
|
3234
3245
|
BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
|
|
3235
3246
|
children: e.blocks ? /* @__PURE__ */ p(F, { children: (a = e.blocks) == null ? void 0 : a.map((s) => /* @__PURE__ */ p(
|
|
3236
|
-
|
|
3247
|
+
St,
|
|
3237
3248
|
{
|
|
3238
3249
|
block: s,
|
|
3239
3250
|
linkComponent: e.linkComponent,
|
|
@@ -3245,32 +3256,32 @@ function St(e) {
|
|
|
3245
3256
|
}
|
|
3246
3257
|
);
|
|
3247
3258
|
}
|
|
3248
|
-
function
|
|
3259
|
+
function $i(e) {
|
|
3249
3260
|
var Y;
|
|
3250
3261
|
const [t, r] = V(
|
|
3251
3262
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3252
3263
|
), [n, i] = V(() => e.columns || []), [a, s] = V(
|
|
3253
3264
|
() => e.stackColumnsAt || "tablet"
|
|
3254
3265
|
);
|
|
3255
|
-
function u(
|
|
3256
|
-
var
|
|
3257
|
-
return ((
|
|
3266
|
+
function u(y) {
|
|
3267
|
+
var L;
|
|
3268
|
+
return ((L = n[y]) == null ? void 0 : L.width) || 100 / n.length;
|
|
3258
3269
|
}
|
|
3259
|
-
function f(
|
|
3260
|
-
const
|
|
3261
|
-
return `calc(${u(
|
|
3270
|
+
function f(y) {
|
|
3271
|
+
const L = t * (n.length - 1) / n.length;
|
|
3272
|
+
return `calc(${u(y)}% - ${L}px)`;
|
|
3262
3273
|
}
|
|
3263
3274
|
function m({
|
|
3264
|
-
stackedStyle:
|
|
3265
|
-
desktopStyle:
|
|
3275
|
+
stackedStyle: y,
|
|
3276
|
+
desktopStyle: L
|
|
3266
3277
|
}) {
|
|
3267
|
-
return a === "tablet" ?
|
|
3278
|
+
return a === "tablet" ? y : L;
|
|
3268
3279
|
}
|
|
3269
|
-
function
|
|
3270
|
-
stackedStyle:
|
|
3271
|
-
desktopStyle:
|
|
3280
|
+
function v({
|
|
3281
|
+
stackedStyle: y,
|
|
3282
|
+
desktopStyle: L
|
|
3272
3283
|
}) {
|
|
3273
|
-
return a === "never" ?
|
|
3284
|
+
return a === "never" ? L : y;
|
|
3274
3285
|
}
|
|
3275
3286
|
const [b, U] = V(
|
|
3276
3287
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
@@ -3284,8 +3295,8 @@ function Wi(e) {
|
|
|
3284
3295
|
})
|
|
3285
3296
|
};
|
|
3286
3297
|
}
|
|
3287
|
-
function I(
|
|
3288
|
-
const
|
|
3298
|
+
function I(y) {
|
|
3299
|
+
const L = y === 0 ? 0 : t, Z = f(y), ne = `${L}px`, H = "100%", re = 0;
|
|
3289
3300
|
return {
|
|
3290
3301
|
...{
|
|
3291
3302
|
display: "flex",
|
|
@@ -3294,11 +3305,11 @@ function Wi(e) {
|
|
|
3294
3305
|
},
|
|
3295
3306
|
width: Z,
|
|
3296
3307
|
["marginLeft"]: ne,
|
|
3297
|
-
"--column-width-mobile":
|
|
3308
|
+
"--column-width-mobile": v({
|
|
3298
3309
|
stackedStyle: H,
|
|
3299
3310
|
desktopStyle: Z
|
|
3300
3311
|
}),
|
|
3301
|
-
"--column-margin-left-mobile":
|
|
3312
|
+
"--column-margin-left-mobile": v({
|
|
3302
3313
|
stackedStyle: re,
|
|
3303
3314
|
desktopStyle: ne
|
|
3304
3315
|
}),
|
|
@@ -3312,11 +3323,11 @@ function Wi(e) {
|
|
|
3312
3323
|
})
|
|
3313
3324
|
};
|
|
3314
3325
|
}
|
|
3315
|
-
function P(
|
|
3326
|
+
function P(y) {
|
|
3316
3327
|
var Z, ne;
|
|
3317
|
-
return
|
|
3328
|
+
return yr(
|
|
3318
3329
|
((ne = (Z = e.builderContext.content) == null ? void 0 : Z.meta) == null ? void 0 : ne.breakpoints) || {}
|
|
3319
|
-
)[
|
|
3330
|
+
)[y].max;
|
|
3320
3331
|
}
|
|
3321
3332
|
function $() {
|
|
3322
3333
|
return `
|
|
@@ -3352,23 +3363,23 @@ function Wi(e) {
|
|
|
3352
3363
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-6f826264`,
|
|
3353
3364
|
style: N(),
|
|
3354
3365
|
children: [
|
|
3355
|
-
/* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
|
|
3356
|
-
(Y = e.columns) == null ? void 0 : Y.map((
|
|
3366
|
+
/* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(xt, { styles: $() }) }),
|
|
3367
|
+
(Y = e.columns) == null ? void 0 : Y.map((y, L) => /* @__PURE__ */ p(
|
|
3357
3368
|
Qt,
|
|
3358
3369
|
{
|
|
3359
|
-
TagName:
|
|
3370
|
+
TagName: y.link ? e.builderLinkComponent || "a" : "div",
|
|
3360
3371
|
actionAttributes: {},
|
|
3361
3372
|
attributes: {
|
|
3362
|
-
...
|
|
3363
|
-
href:
|
|
3373
|
+
...y.link ? {
|
|
3374
|
+
href: y.link
|
|
3364
3375
|
} : {},
|
|
3365
3376
|
[tt()]: "builder-column",
|
|
3366
|
-
style: Sr(I(
|
|
3377
|
+
style: Sr(I(L))
|
|
3367
3378
|
},
|
|
3368
3379
|
children: /* @__PURE__ */ p(
|
|
3369
|
-
|
|
3380
|
+
kt,
|
|
3370
3381
|
{
|
|
3371
|
-
path: `component.options.columns.${
|
|
3382
|
+
path: `component.options.columns.${L}.blocks`,
|
|
3372
3383
|
parent: e.builderBlock.id,
|
|
3373
3384
|
styleProp: {
|
|
3374
3385
|
flexGrow: "1"
|
|
@@ -3376,11 +3387,11 @@ function Wi(e) {
|
|
|
3376
3387
|
context: e.builderContext,
|
|
3377
3388
|
registeredComponents: e.builderComponents,
|
|
3378
3389
|
linkComponent: e.builderLinkComponent,
|
|
3379
|
-
blocks:
|
|
3390
|
+
blocks: y.blocks
|
|
3380
3391
|
}
|
|
3381
3392
|
)
|
|
3382
3393
|
},
|
|
3383
|
-
|
|
3394
|
+
L
|
|
3384
3395
|
))
|
|
3385
3396
|
]
|
|
3386
3397
|
}
|
|
@@ -3391,17 +3402,17 @@ function Wi(e) {
|
|
|
3391
3402
|
}` })
|
|
3392
3403
|
] });
|
|
3393
3404
|
}
|
|
3394
|
-
function
|
|
3405
|
+
function Hi(e) {
|
|
3395
3406
|
return /* @__PURE__ */ p("span", { children: e.children });
|
|
3396
3407
|
}
|
|
3397
3408
|
function tr(e) {
|
|
3398
3409
|
return e.replace(/http(s)?:/, "");
|
|
3399
3410
|
}
|
|
3400
|
-
function
|
|
3411
|
+
function Ki(e = "", t, r) {
|
|
3401
3412
|
const n = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3402
3413
|
return e.match(n) ? e.replace(n, "$1" + t + "=" + encodeURIComponent(r) + "$2") : e + i + t + "=" + encodeURIComponent(r);
|
|
3403
3414
|
}
|
|
3404
|
-
function
|
|
3415
|
+
function Gi(e, t) {
|
|
3405
3416
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3406
3417
|
return e;
|
|
3407
3418
|
if (t === "master")
|
|
@@ -3413,32 +3424,32 @@ function Hi(e, t) {
|
|
|
3413
3424
|
}
|
|
3414
3425
|
return null;
|
|
3415
3426
|
}
|
|
3416
|
-
function
|
|
3427
|
+
function Gt(e) {
|
|
3417
3428
|
if (!e)
|
|
3418
3429
|
return e;
|
|
3419
3430
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3420
3431
|
if (e.match(/builder\.io/)) {
|
|
3421
3432
|
let r = e;
|
|
3422
3433
|
const n = Number(e.split("?width=")[1]);
|
|
3423
|
-
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${
|
|
3434
|
+
return isNaN(n) || (r = `${r} ${n}w`), t.filter((i) => i !== n).map((i) => `${Ki(e, "width", i)} ${i}w`).concat([r]).join(", ");
|
|
3424
3435
|
}
|
|
3425
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [
|
|
3436
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((r) => [Gi(e, `${r}x${r}`), r]).filter(([r]) => !!r).map(([r, n]) => `${r} ${n}w`).concat([e]).join(", ") : e;
|
|
3426
3437
|
}
|
|
3427
|
-
function
|
|
3438
|
+
function zi(e) {
|
|
3428
3439
|
var i, a, s, u;
|
|
3429
3440
|
function t() {
|
|
3430
|
-
var
|
|
3441
|
+
var v;
|
|
3431
3442
|
const m = e.image || e.src;
|
|
3432
3443
|
if (!m || // We can auto add srcset for cdn.builder.io and shopify
|
|
3433
3444
|
// images, otherwise you can supply this prop manually
|
|
3434
3445
|
!(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
|
|
3435
3446
|
return e.srcset;
|
|
3436
|
-
if (e.srcset && ((
|
|
3447
|
+
if (e.srcset && ((v = e.image) != null && v.includes("builder.io/api/v1/image"))) {
|
|
3437
3448
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3438
|
-
return console.debug("Removed given srcset"),
|
|
3449
|
+
return console.debug("Removed given srcset"), Gt(m);
|
|
3439
3450
|
} else if (e.image && !e.srcset)
|
|
3440
|
-
return
|
|
3441
|
-
return
|
|
3451
|
+
return Gt(m);
|
|
3452
|
+
return Gt(m);
|
|
3442
3453
|
}
|
|
3443
3454
|
function r() {
|
|
3444
3455
|
var f;
|
|
@@ -3507,7 +3518,7 @@ function Ki(e) {
|
|
|
3507
3518
|
}` })
|
|
3508
3519
|
] });
|
|
3509
3520
|
}
|
|
3510
|
-
function
|
|
3521
|
+
function Xi(e) {
|
|
3511
3522
|
return /* @__PURE__ */ p(
|
|
3512
3523
|
"section",
|
|
3513
3524
|
{
|
|
@@ -3528,7 +3539,7 @@ function Gi(e) {
|
|
|
3528
3539
|
}
|
|
3529
3540
|
);
|
|
3530
3541
|
}
|
|
3531
|
-
const
|
|
3542
|
+
const Yi = {
|
|
3532
3543
|
name: "Core:Button",
|
|
3533
3544
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3534
3545
|
defaultStyles: {
|
|
@@ -3561,7 +3572,7 @@ const zi = {
|
|
|
3561
3572
|
}],
|
|
3562
3573
|
static: !0,
|
|
3563
3574
|
noWrap: !0
|
|
3564
|
-
},
|
|
3575
|
+
}, Ji = {
|
|
3565
3576
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3566
3577
|
name: "Columns",
|
|
3567
3578
|
isRSC: !0,
|
|
@@ -3762,7 +3773,7 @@ const zi = {
|
|
|
3762
3773
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3763
3774
|
advanced: !0
|
|
3764
3775
|
}]
|
|
3765
|
-
},
|
|
3776
|
+
}, qi = {
|
|
3766
3777
|
name: "Custom Code",
|
|
3767
3778
|
static: !0,
|
|
3768
3779
|
requiredPermissions: ["editCode"],
|
|
@@ -3785,7 +3796,7 @@ const zi = {
|
|
|
3785
3796
|
advanced: !0
|
|
3786
3797
|
}]
|
|
3787
3798
|
};
|
|
3788
|
-
function
|
|
3799
|
+
function Zi(e) {
|
|
3789
3800
|
const t = qt(null), [r, n] = V(() => []), [i, a] = V(() => []);
|
|
3790
3801
|
return Q(() => {
|
|
3791
3802
|
var u;
|
|
@@ -3798,8 +3809,8 @@ function Ji(e) {
|
|
|
3798
3809
|
if (r.includes(m.src))
|
|
3799
3810
|
continue;
|
|
3800
3811
|
r.push(m.src);
|
|
3801
|
-
const
|
|
3802
|
-
|
|
3812
|
+
const v = document.createElement("script");
|
|
3813
|
+
v.async = !0, v.src = m.src, document.head.appendChild(v);
|
|
3803
3814
|
} else if (!m.type || [
|
|
3804
3815
|
"text/javascript",
|
|
3805
3816
|
"application/javascript",
|
|
@@ -3809,8 +3820,8 @@ function Ji(e) {
|
|
|
3809
3820
|
continue;
|
|
3810
3821
|
try {
|
|
3811
3822
|
i.push(m.innerText), new Function(m.innerText)();
|
|
3812
|
-
} catch (
|
|
3813
|
-
console.warn("`CustomCode`: Error running script:",
|
|
3823
|
+
} catch (v) {
|
|
3824
|
+
console.warn("`CustomCode`: Error running script:", v);
|
|
3814
3825
|
}
|
|
3815
3826
|
}
|
|
3816
3827
|
}
|
|
@@ -3823,7 +3834,7 @@ function Ji(e) {
|
|
|
3823
3834
|
}
|
|
3824
3835
|
);
|
|
3825
3836
|
}
|
|
3826
|
-
const
|
|
3837
|
+
const Qi = {
|
|
3827
3838
|
name: "Embed",
|
|
3828
3839
|
static: !0,
|
|
3829
3840
|
inputs: [{
|
|
@@ -3848,20 +3859,20 @@ const qi = {
|
|
|
3848
3859
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3849
3860
|
hideFromUI: !0
|
|
3850
3861
|
}]
|
|
3851
|
-
},
|
|
3852
|
-
function
|
|
3862
|
+
}, eo = ["text/javascript", "application/javascript", "application/ecmascript"], to = (e) => eo.includes(e.type);
|
|
3863
|
+
function no(e) {
|
|
3853
3864
|
const t = qt(null), [r, n] = V(() => []), [i, a] = V(() => []), [s, u] = V(() => !1);
|
|
3854
3865
|
function f() {
|
|
3855
3866
|
if (!t.current || !t.current.getElementsByTagName)
|
|
3856
3867
|
return;
|
|
3857
3868
|
const m = t.current.getElementsByTagName("script");
|
|
3858
|
-
for (let
|
|
3859
|
-
const b = m[
|
|
3869
|
+
for (let v = 0; v < m.length; v++) {
|
|
3870
|
+
const b = m[v];
|
|
3860
3871
|
if (b.src && !r.includes(b.src)) {
|
|
3861
3872
|
r.push(b.src);
|
|
3862
3873
|
const U = document.createElement("script");
|
|
3863
3874
|
U.async = !0, U.src = b.src, document.head.appendChild(U);
|
|
3864
|
-
} else if (
|
|
3875
|
+
} else if (to(b) && !i.includes(b.innerText))
|
|
3865
3876
|
try {
|
|
3866
3877
|
i.push(b.innerText), new Function(b.innerText)();
|
|
3867
3878
|
} catch (U) {
|
|
@@ -3880,13 +3891,13 @@ function eo(e) {
|
|
|
3880
3891
|
}
|
|
3881
3892
|
);
|
|
3882
3893
|
}
|
|
3883
|
-
const
|
|
3894
|
+
const ro = {
|
|
3884
3895
|
name: "Fragment",
|
|
3885
3896
|
static: !0,
|
|
3886
3897
|
hidden: !0,
|
|
3887
3898
|
canHaveChildren: !0,
|
|
3888
3899
|
noWrap: !0
|
|
3889
|
-
},
|
|
3900
|
+
}, io = {
|
|
3890
3901
|
name: "Image",
|
|
3891
3902
|
static: !0,
|
|
3892
3903
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3908,13 +3919,13 @@ const to = {
|
|
|
3908
3919
|
e.delete("srcset"), e.delete("noWebp");
|
|
3909
3920
|
function r(s, u = 6e4) {
|
|
3910
3921
|
return new Promise((f, m) => {
|
|
3911
|
-
const
|
|
3922
|
+
const v = document.createElement("img");
|
|
3912
3923
|
let b = !1;
|
|
3913
|
-
|
|
3914
|
-
b = !0, f(
|
|
3915
|
-
},
|
|
3924
|
+
v.onload = () => {
|
|
3925
|
+
b = !0, f(v);
|
|
3926
|
+
}, v.addEventListener("error", (U) => {
|
|
3916
3927
|
console.warn("Image load failed", U.error), m(U.error);
|
|
3917
|
-
}),
|
|
3928
|
+
}), v.src = s, setTimeout(() => {
|
|
3918
3929
|
b || m(new Error("Image load timed out"));
|
|
3919
3930
|
}, u);
|
|
3920
3931
|
});
|
|
@@ -3986,7 +3997,7 @@ const to = {
|
|
|
3986
3997
|
advanced: !0,
|
|
3987
3998
|
defaultValue: 0.7041
|
|
3988
3999
|
}]
|
|
3989
|
-
},
|
|
4000
|
+
}, oo = {
|
|
3990
4001
|
// friendlyName?
|
|
3991
4002
|
name: "Raw:Img",
|
|
3992
4003
|
hideFromInsertMenu: !0,
|
|
@@ -4001,7 +4012,7 @@ const to = {
|
|
|
4001
4012
|
noWrap: !0,
|
|
4002
4013
|
static: !0
|
|
4003
4014
|
};
|
|
4004
|
-
function
|
|
4015
|
+
function ao(e) {
|
|
4005
4016
|
return /* @__PURE__ */ p(
|
|
4006
4017
|
"img",
|
|
4007
4018
|
{
|
|
@@ -4016,7 +4027,7 @@ function io(e) {
|
|
|
4016
4027
|
je() && e.imgSrc || "default-key"
|
|
4017
4028
|
);
|
|
4018
4029
|
}
|
|
4019
|
-
const
|
|
4030
|
+
const so = {
|
|
4020
4031
|
name: "Core:Section",
|
|
4021
4032
|
static: !0,
|
|
4022
4033
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4055,7 +4066,7 @@ const oo = {
|
|
|
4055
4066
|
}
|
|
4056
4067
|
}
|
|
4057
4068
|
}]
|
|
4058
|
-
},
|
|
4069
|
+
}, lo = {
|
|
4059
4070
|
name: "Slot",
|
|
4060
4071
|
isRSC: !0,
|
|
4061
4072
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4069,7 +4080,7 @@ const oo = {
|
|
|
4069
4080
|
defaultValue: "children"
|
|
4070
4081
|
}]
|
|
4071
4082
|
};
|
|
4072
|
-
function
|
|
4083
|
+
function co(e) {
|
|
4073
4084
|
var t, r, n;
|
|
4074
4085
|
return /* @__PURE__ */ p(
|
|
4075
4086
|
"div",
|
|
@@ -4081,7 +4092,7 @@ function so(e) {
|
|
|
4081
4092
|
"builder-slot": e.name
|
|
4082
4093
|
},
|
|
4083
4094
|
children: /* @__PURE__ */ p(
|
|
4084
|
-
|
|
4095
|
+
kt,
|
|
4085
4096
|
{
|
|
4086
4097
|
parent: (r = e.builderContext.context) == null ? void 0 : r.symbolId,
|
|
4087
4098
|
path: `symbol.data.${e.name}`,
|
|
@@ -4092,7 +4103,7 @@ function so(e) {
|
|
|
4092
4103
|
}
|
|
4093
4104
|
);
|
|
4094
4105
|
}
|
|
4095
|
-
const
|
|
4106
|
+
const uo = {
|
|
4096
4107
|
name: "Symbol",
|
|
4097
4108
|
noWrap: !0,
|
|
4098
4109
|
static: !0,
|
|
@@ -4125,7 +4136,7 @@ const lo = {
|
|
|
4125
4136
|
hideFromUI: !0,
|
|
4126
4137
|
type: "boolean"
|
|
4127
4138
|
}]
|
|
4128
|
-
},
|
|
4139
|
+
}, fo = {
|
|
4129
4140
|
name: "Text",
|
|
4130
4141
|
static: !0,
|
|
4131
4142
|
isRSC: !0,
|
|
@@ -4144,7 +4155,7 @@ const lo = {
|
|
|
4144
4155
|
textAlign: "center"
|
|
4145
4156
|
}
|
|
4146
4157
|
};
|
|
4147
|
-
function
|
|
4158
|
+
function ho(e) {
|
|
4148
4159
|
var t;
|
|
4149
4160
|
return /* @__PURE__ */ p(
|
|
4150
4161
|
"div",
|
|
@@ -4157,7 +4168,7 @@ function uo(e) {
|
|
|
4157
4168
|
}
|
|
4158
4169
|
);
|
|
4159
4170
|
}
|
|
4160
|
-
const
|
|
4171
|
+
const po = {
|
|
4161
4172
|
name: "Video",
|
|
4162
4173
|
canHaveChildren: !0,
|
|
4163
4174
|
defaultStyles: {
|
|
@@ -4239,7 +4250,7 @@ const fo = {
|
|
|
4239
4250
|
advanced: !0
|
|
4240
4251
|
}]
|
|
4241
4252
|
};
|
|
4242
|
-
function
|
|
4253
|
+
function mo(e) {
|
|
4243
4254
|
var n, i, a, s, u, f, m;
|
|
4244
4255
|
function t() {
|
|
4245
4256
|
return {
|
|
@@ -4342,41 +4353,41 @@ function ho(e) {
|
|
|
4342
4353
|
}
|
|
4343
4354
|
const nr = () => [{
|
|
4344
4355
|
component: Zr,
|
|
4345
|
-
...zi
|
|
4346
|
-
}, {
|
|
4347
|
-
component: Wi,
|
|
4348
|
-
...Xi
|
|
4349
|
-
}, {
|
|
4350
|
-
component: Ji,
|
|
4351
4356
|
...Yi
|
|
4352
4357
|
}, {
|
|
4353
|
-
component:
|
|
4354
|
-
...
|
|
4358
|
+
component: $i,
|
|
4359
|
+
...Ji
|
|
4355
4360
|
}, {
|
|
4356
|
-
component:
|
|
4357
|
-
...
|
|
4361
|
+
component: Zi,
|
|
4362
|
+
...qi
|
|
4358
4363
|
}, {
|
|
4359
|
-
component:
|
|
4360
|
-
...
|
|
4364
|
+
component: no,
|
|
4365
|
+
...Qi
|
|
4361
4366
|
}, {
|
|
4362
|
-
component:
|
|
4367
|
+
component: Hi,
|
|
4363
4368
|
...ro
|
|
4364
4369
|
}, {
|
|
4365
|
-
component:
|
|
4370
|
+
component: zi,
|
|
4371
|
+
...io
|
|
4372
|
+
}, {
|
|
4373
|
+
component: ao,
|
|
4366
4374
|
...oo
|
|
4367
4375
|
}, {
|
|
4368
|
-
component:
|
|
4369
|
-
...
|
|
4376
|
+
component: Xi,
|
|
4377
|
+
...so
|
|
4370
4378
|
}, {
|
|
4371
|
-
component:
|
|
4372
|
-
...
|
|
4379
|
+
component: Do,
|
|
4380
|
+
...uo
|
|
4373
4381
|
}, {
|
|
4374
4382
|
component: ho,
|
|
4375
4383
|
...fo
|
|
4376
4384
|
}, {
|
|
4377
|
-
component:
|
|
4378
|
-
...
|
|
4379
|
-
}
|
|
4385
|
+
component: mo,
|
|
4386
|
+
...po
|
|
4387
|
+
}, {
|
|
4388
|
+
component: co,
|
|
4389
|
+
...lo
|
|
4390
|
+
}], go = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4380
4391
|
function getAndSetVariantId() {
|
|
4381
4392
|
function setCookie(name, value, days) {
|
|
4382
4393
|
let expires = '';
|
|
@@ -4432,7 +4443,7 @@ const nr = () => [{
|
|
|
4432
4443
|
}).join('');
|
|
4433
4444
|
styleEl.innerHTML = newStyleStr;
|
|
4434
4445
|
}
|
|
4435
|
-
}`,
|
|
4446
|
+
}`, vo = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4436
4447
|
if (!navigator.cookieEnabled) {
|
|
4437
4448
|
return;
|
|
4438
4449
|
}
|
|
@@ -4470,16 +4481,16 @@ const nr = () => [{
|
|
|
4470
4481
|
...t,
|
|
4471
4482
|
testVariationId: t.id,
|
|
4472
4483
|
id: e == null ? void 0 : e.id
|
|
4473
|
-
})),
|
|
4484
|
+
})), yo = ({
|
|
4474
4485
|
canTrack: e,
|
|
4475
4486
|
content: t
|
|
4476
|
-
}) => !(!(pt(t).length > 0) || !e || Ae()),
|
|
4477
|
-
window.${kr} = ${
|
|
4478
|
-
window.${wr} = ${
|
|
4479
|
-
`,
|
|
4487
|
+
}) => !(!(pt(t).length > 0) || !e || Ae()), bo = (e) => e === "react" || e === "reactNative", Cr = bo(We), xo = () => `
|
|
4488
|
+
window.${kr} = ${go}
|
|
4489
|
+
window.${wr} = ${vo}
|
|
4490
|
+
`, So = (e, t) => `
|
|
4480
4491
|
window.${kr}(
|
|
4481
4492
|
"${t}",${JSON.stringify(e)}, ${Cr}
|
|
4482
|
-
)`,
|
|
4493
|
+
)`, ko = ({
|
|
4483
4494
|
contentId: e,
|
|
4484
4495
|
variationId: t
|
|
4485
4496
|
}) => `window.${wr}(
|
|
@@ -4494,15 +4505,15 @@ function Jt(e) {
|
|
|
4494
4505
|
}
|
|
4495
4506
|
);
|
|
4496
4507
|
}
|
|
4497
|
-
const
|
|
4508
|
+
const wo = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4498
4509
|
function Er(e, t) {
|
|
4499
4510
|
const r = new URL(t.origin), n = r.hostname;
|
|
4500
|
-
return (e ||
|
|
4511
|
+
return (e || wo).findIndex((i) => i.startsWith("*.") ? n.endsWith(i.slice(1)) : i === n) > -1;
|
|
4501
4512
|
}
|
|
4502
4513
|
function rr(e) {
|
|
4503
4514
|
return Math.round(e * 1e3) / 1e3;
|
|
4504
4515
|
}
|
|
4505
|
-
const
|
|
4516
|
+
const Co = (e, t, r = !0) => {
|
|
4506
4517
|
if (!(e instanceof HTMLElement))
|
|
4507
4518
|
return null;
|
|
4508
4519
|
let n = r ? e : e.parentElement;
|
|
@@ -4513,7 +4524,7 @@ const ko = (e, t, r = !0) => {
|
|
|
4513
4524
|
return n;
|
|
4514
4525
|
} while (n = n.parentElement);
|
|
4515
4526
|
return null;
|
|
4516
|
-
},
|
|
4527
|
+
}, Eo = (e) => Co(e, (t) => {
|
|
4517
4528
|
const r = t.getAttribute("builder-id") || t.id;
|
|
4518
4529
|
return (r == null ? void 0 : r.indexOf("builder-")) === 0;
|
|
4519
4530
|
}), ir = ({
|
|
@@ -4525,8 +4536,8 @@ const ko = (e, t, r = !0) => {
|
|
|
4525
4536
|
x: a,
|
|
4526
4537
|
y: s
|
|
4527
4538
|
};
|
|
4528
|
-
},
|
|
4529
|
-
const t = e.target, r = t &&
|
|
4539
|
+
}, Io = (e) => {
|
|
4540
|
+
const t = e.target, r = t && Eo(t), n = (r == null ? void 0 : r.getAttribute("builder-id")) || (r == null ? void 0 : r.id);
|
|
4530
4541
|
return {
|
|
4531
4542
|
targetBuilderElement: n || void 0,
|
|
4532
4543
|
metadata: {
|
|
@@ -4541,7 +4552,7 @@ const ko = (e, t, r = !0) => {
|
|
|
4541
4552
|
builderElementIndex: r && n ? [].slice.call(document.getElementsByClassName(n)).indexOf(r) : void 0
|
|
4542
4553
|
}
|
|
4543
4554
|
};
|
|
4544
|
-
},
|
|
4555
|
+
}, To = "0.12.5", jo = () => {
|
|
4545
4556
|
Kr("insertMenu", {
|
|
4546
4557
|
name: "_default",
|
|
4547
4558
|
default: !0,
|
|
@@ -4565,13 +4576,13 @@ const ko = (e, t, r = !0) => {
|
|
|
4565
4576
|
});
|
|
4566
4577
|
};
|
|
4567
4578
|
let or = !1;
|
|
4568
|
-
const
|
|
4579
|
+
const Ao = (e = {}) => {
|
|
4569
4580
|
var t, r;
|
|
4570
4581
|
or || (or = !0, Ae() && ((t = window.parent) == null || t.postMessage({
|
|
4571
4582
|
type: "builder.sdkInfo",
|
|
4572
4583
|
data: {
|
|
4573
|
-
target:
|
|
4574
|
-
version:
|
|
4584
|
+
target: We,
|
|
4585
|
+
version: To,
|
|
4575
4586
|
supportsPatchUpdates: !1,
|
|
4576
4587
|
// Supports builder-model="..." attribute which is needed to
|
|
4577
4588
|
// scope our '+ add block' button styling
|
|
@@ -4593,10 +4604,10 @@ const To = (e = {}) => {
|
|
|
4593
4604
|
if (i != null && i.type)
|
|
4594
4605
|
switch (i.type) {
|
|
4595
4606
|
case "builder.evaluate": {
|
|
4596
|
-
const u = i.data.text, f = i.data.arguments || [], m = i.data.id,
|
|
4607
|
+
const u = i.data.text, f = i.data.arguments || [], m = i.data.id, v = new Function(u);
|
|
4597
4608
|
let b, U = null;
|
|
4598
4609
|
try {
|
|
4599
|
-
b =
|
|
4610
|
+
b = v.apply(null, f);
|
|
4600
4611
|
} catch (N) {
|
|
4601
4612
|
U = N;
|
|
4602
4613
|
}
|
|
@@ -4627,8 +4638,8 @@ const To = (e = {}) => {
|
|
|
4627
4638
|
}
|
|
4628
4639
|
})));
|
|
4629
4640
|
};
|
|
4630
|
-
function
|
|
4631
|
-
var re, E, we,
|
|
4641
|
+
function Ro(e) {
|
|
4642
|
+
var re, E, we, W, Ce, ue, K;
|
|
4632
4643
|
const t = qt(null), [r, n] = V(() => 0);
|
|
4633
4644
|
V(() => !0);
|
|
4634
4645
|
function i(w) {
|
|
@@ -4668,7 +4679,7 @@ function jo(e) {
|
|
|
4668
4679
|
), [f, m] = V(
|
|
4669
4680
|
() => e.contentWrapper || "div"
|
|
4670
4681
|
);
|
|
4671
|
-
function
|
|
4682
|
+
function v(w) {
|
|
4672
4683
|
var j;
|
|
4673
4684
|
if (!Er(e.trustedHosts, w))
|
|
4674
4685
|
return;
|
|
@@ -4711,11 +4722,11 @@ function jo(e) {
|
|
|
4711
4722
|
const M = (T = e.builderContextSignal.content) == null ? void 0 : T.testVariationId, D = (j = e.builderContextSignal.content) == null ? void 0 : j.id;
|
|
4712
4723
|
Hn({
|
|
4713
4724
|
type: "click",
|
|
4714
|
-
canTrack:
|
|
4725
|
+
canTrack: gt(e.canTrack),
|
|
4715
4726
|
contentId: D,
|
|
4716
4727
|
apiKey: e.apiKey,
|
|
4717
4728
|
variationId: M !== D ? M : void 0,
|
|
4718
|
-
...
|
|
4729
|
+
...Io(w),
|
|
4719
4730
|
unique: !I
|
|
4720
4731
|
});
|
|
4721
4732
|
}
|
|
@@ -4733,7 +4744,7 @@ function jo(e) {
|
|
|
4733
4744
|
})
|
|
4734
4745
|
);
|
|
4735
4746
|
}
|
|
4736
|
-
function
|
|
4747
|
+
function y({ url: w, key: T }) {
|
|
4737
4748
|
Xr(w).then((j) => j.json()).then((j) => {
|
|
4738
4749
|
var D, G;
|
|
4739
4750
|
const M = {
|
|
@@ -4745,13 +4756,13 @@ function jo(e) {
|
|
|
4745
4756
|
console.error("error fetching dynamic data", w, j);
|
|
4746
4757
|
});
|
|
4747
4758
|
}
|
|
4748
|
-
function
|
|
4759
|
+
function L() {
|
|
4749
4760
|
var T, j, M;
|
|
4750
4761
|
const w = (M = (j = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : j.httpRequests) != null ? M : {};
|
|
4751
4762
|
Object.entries(w).forEach(([D, G]) => {
|
|
4752
4763
|
if (G && (!U[D] || je())) {
|
|
4753
4764
|
const Ee = Y(G);
|
|
4754
|
-
|
|
4765
|
+
y({
|
|
4755
4766
|
url: Ee,
|
|
4756
4767
|
key: D
|
|
4757
4768
|
});
|
|
@@ -4774,7 +4785,7 @@ function jo(e) {
|
|
|
4774
4785
|
);
|
|
4775
4786
|
}
|
|
4776
4787
|
function ne(w) {
|
|
4777
|
-
n(r + 1), window.addEventListener("message",
|
|
4788
|
+
n(r + 1), window.addEventListener("message", v), jo(), Ao({
|
|
4778
4789
|
...e.locale ? {
|
|
4779
4790
|
locale: e.locale
|
|
4780
4791
|
} : {},
|
|
@@ -4837,7 +4848,7 @@ function jo(e) {
|
|
|
4837
4848
|
}, []), Q(() => {
|
|
4838
4849
|
var w, T;
|
|
4839
4850
|
if (Ae()) {
|
|
4840
|
-
if (je() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content &&
|
|
4851
|
+
if (je() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && gt(e.canTrack)) {
|
|
4841
4852
|
const M = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, D = (T = e.builderContextSignal.content) == null ? void 0 : T.id, G = e.apiKey;
|
|
4842
4853
|
Hn({
|
|
4843
4854
|
type: "impression",
|
|
@@ -4850,9 +4861,9 @@ function jo(e) {
|
|
|
4850
4861
|
Gr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
4851
4862
|
}
|
|
4852
4863
|
}, []), Q(() => {
|
|
4853
|
-
e.apiKey ||
|
|
4864
|
+
e.apiKey || Re.error(
|
|
4854
4865
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4855
|
-
), b(),
|
|
4866
|
+
), b(), L(), Z();
|
|
4856
4867
|
}, []), Q(() => {
|
|
4857
4868
|
e.content && a(e.content);
|
|
4858
4869
|
}, [e.content]), Q(() => {
|
|
@@ -4862,8 +4873,8 @@ function jo(e) {
|
|
|
4862
4873
|
(E = (re = e.builderContextSignal.content) == null ? void 0 : re.data) == null ? void 0 : E.jsCode,
|
|
4863
4874
|
e.builderContextSignal.rootState
|
|
4864
4875
|
]), Q(() => {
|
|
4865
|
-
|
|
4866
|
-
}, [(
|
|
4876
|
+
L();
|
|
4877
|
+
}, [(W = (we = e.builderContextSignal.content) == null ? void 0 : we.data) == null ? void 0 : W.httpRequests]), Q(() => {
|
|
4867
4878
|
Z();
|
|
4868
4879
|
}, [e.builderContextSignal.rootState]), Q(() => {
|
|
4869
4880
|
e.data && i(e.data);
|
|
@@ -4872,7 +4883,7 @@ function jo(e) {
|
|
|
4872
4883
|
locale: e.locale
|
|
4873
4884
|
});
|
|
4874
4885
|
}, [e.locale]), Q(() => () => {
|
|
4875
|
-
Ae() && (window.removeEventListener("message",
|
|
4886
|
+
Ae() && (window.removeEventListener("message", v), window.removeEventListener(
|
|
4876
4887
|
"builder:component:stateChangeListenerActivated",
|
|
4877
4888
|
Z
|
|
4878
4889
|
));
|
|
@@ -4894,7 +4905,7 @@ function jo(e) {
|
|
|
4894
4905
|
e.children
|
|
4895
4906
|
) }) : null });
|
|
4896
4907
|
}
|
|
4897
|
-
const
|
|
4908
|
+
const Oo = (e) => {
|
|
4898
4909
|
var a, s;
|
|
4899
4910
|
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;
|
|
4900
4911
|
let i = "";
|
|
@@ -4920,23 +4931,23 @@ font-weight: ${u};
|
|
|
4920
4931
|
`.trim());
|
|
4921
4932
|
}
|
|
4922
4933
|
return i;
|
|
4923
|
-
},
|
|
4934
|
+
}, Po = ({
|
|
4924
4935
|
customFonts: e
|
|
4925
4936
|
}) => {
|
|
4926
4937
|
var t;
|
|
4927
|
-
return ((t = e == null ? void 0 : e.map((r) =>
|
|
4928
|
-
},
|
|
4938
|
+
return ((t = e == null ? void 0 : e.map((r) => Oo(r))) == null ? void 0 : t.join(" ")) || "";
|
|
4939
|
+
}, No = ({
|
|
4929
4940
|
cssCode: e,
|
|
4930
4941
|
contentId: t
|
|
4931
4942
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4932
|
-
function
|
|
4943
|
+
function Mo(e) {
|
|
4933
4944
|
const [t, r] = V(
|
|
4934
4945
|
() => `
|
|
4935
|
-
${
|
|
4946
|
+
${No({
|
|
4936
4947
|
cssCode: e.cssCode,
|
|
4937
4948
|
contentId: e.contentId
|
|
4938
4949
|
})}
|
|
4939
|
-
${
|
|
4950
|
+
${Po({
|
|
4940
4951
|
customFonts: e.customFonts
|
|
4941
4952
|
})}
|
|
4942
4953
|
|
|
@@ -4958,9 +4969,9 @@ ${Ro({
|
|
|
4958
4969
|
}
|
|
4959
4970
|
`.trim()
|
|
4960
4971
|
);
|
|
4961
|
-
return /* @__PURE__ */ p(
|
|
4972
|
+
return /* @__PURE__ */ p(xt, { styles: t });
|
|
4962
4973
|
}
|
|
4963
|
-
const
|
|
4974
|
+
const Bo = ({
|
|
4964
4975
|
content: e,
|
|
4965
4976
|
data: t,
|
|
4966
4977
|
locale: r
|
|
@@ -4977,7 +4988,7 @@ const No = ({
|
|
|
4977
4988
|
locale: r
|
|
4978
4989
|
} : {}
|
|
4979
4990
|
};
|
|
4980
|
-
},
|
|
4991
|
+
}, Fo = ({
|
|
4981
4992
|
content: e,
|
|
4982
4993
|
data: t
|
|
4983
4994
|
}) => e ? {
|
|
@@ -4989,11 +5000,11 @@ const No = ({
|
|
|
4989
5000
|
meta: e == null ? void 0 : e.meta
|
|
4990
5001
|
} : void 0;
|
|
4991
5002
|
function ar(e) {
|
|
4992
|
-
var f, m,
|
|
5003
|
+
var f, m, v, b, U, N, I;
|
|
4993
5004
|
const [t, r] = V(
|
|
4994
5005
|
() => {
|
|
4995
5006
|
var P, $;
|
|
4996
|
-
return
|
|
5007
|
+
return ko({
|
|
4997
5008
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4998
5009
|
variationId: (P = e.content) == null ? void 0 : P.testVariationId,
|
|
4999
5010
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -5028,12 +5039,12 @@ function ar(e) {
|
|
|
5028
5039
|
{}
|
|
5029
5040
|
)
|
|
5030
5041
|
), [s, u] = V(() => ({
|
|
5031
|
-
content:
|
|
5042
|
+
content: Fo({
|
|
5032
5043
|
content: e.content,
|
|
5033
5044
|
data: e.data
|
|
5034
5045
|
}),
|
|
5035
5046
|
localState: void 0,
|
|
5036
|
-
rootState:
|
|
5047
|
+
rootState: Bo({
|
|
5037
5048
|
content: e.content,
|
|
5038
5049
|
data: e.data,
|
|
5039
5050
|
locale: e.locale
|
|
@@ -5069,7 +5080,7 @@ function ar(e) {
|
|
|
5069
5080
|
registeredComponents: i
|
|
5070
5081
|
},
|
|
5071
5082
|
children: /* @__PURE__ */ ce(
|
|
5072
|
-
|
|
5083
|
+
Ro,
|
|
5073
5084
|
{
|
|
5074
5085
|
content: e.content,
|
|
5075
5086
|
data: e.data,
|
|
@@ -5090,15 +5101,15 @@ function ar(e) {
|
|
|
5090
5101
|
children: [
|
|
5091
5102
|
e.isSsrAbTest ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(Jt, { scriptStr: t }) }) : null,
|
|
5092
5103
|
/* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(
|
|
5093
|
-
|
|
5104
|
+
Mo,
|
|
5094
5105
|
{
|
|
5095
5106
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5096
|
-
cssCode: (
|
|
5107
|
+
cssCode: (v = (m = s.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
|
|
5097
5108
|
customFonts: (U = (b = s.content) == null ? void 0 : b.data) == null ? void 0 : U.customFonts
|
|
5098
5109
|
}
|
|
5099
5110
|
) }),
|
|
5100
5111
|
/* @__PURE__ */ p(
|
|
5101
|
-
|
|
5112
|
+
kt,
|
|
5102
5113
|
{
|
|
5103
5114
|
blocks: (I = (N = s.content) == null ? void 0 : N.data) == null ? void 0 : I.blocks,
|
|
5104
5115
|
context: s,
|
|
@@ -5115,14 +5126,14 @@ function ar(e) {
|
|
|
5115
5126
|
function Ir(e) {
|
|
5116
5127
|
var s, u;
|
|
5117
5128
|
const [t, r] = V(
|
|
5118
|
-
() =>
|
|
5119
|
-
canTrack:
|
|
5129
|
+
() => yo({
|
|
5130
|
+
canTrack: gt(e.canTrack),
|
|
5120
5131
|
content: e.content
|
|
5121
5132
|
})
|
|
5122
5133
|
);
|
|
5123
5134
|
function n() {
|
|
5124
5135
|
var f;
|
|
5125
|
-
return
|
|
5136
|
+
return So(
|
|
5126
5137
|
pt(e.content).map((m) => ({
|
|
5127
5138
|
id: m.testVariationId,
|
|
5128
5139
|
testRatio: m.testRatio
|
|
@@ -5140,15 +5151,15 @@ function Ir(e) {
|
|
|
5140
5151
|
testVariationId: (f = e.content) == null ? void 0 : f.id
|
|
5141
5152
|
} : Yr({
|
|
5142
5153
|
item: e.content,
|
|
5143
|
-
canTrack:
|
|
5154
|
+
canTrack: gt(e.canTrack)
|
|
5144
5155
|
});
|
|
5145
5156
|
}
|
|
5146
5157
|
return Q(() => {
|
|
5147
5158
|
}, []), /* @__PURE__ */ ce(F, { children: [
|
|
5148
|
-
!e.__isNestedRender &&
|
|
5159
|
+
!e.__isNestedRender && We !== "reactNative" ? /* @__PURE__ */ p(F, { children: /* @__PURE__ */ p(Jt, { scriptStr: xo() }) }) : null,
|
|
5149
5160
|
t ? /* @__PURE__ */ ce(F, { children: [
|
|
5150
5161
|
/* @__PURE__ */ p(
|
|
5151
|
-
|
|
5162
|
+
xt,
|
|
5152
5163
|
{
|
|
5153
5164
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
5154
5165
|
styles: i()
|
|
@@ -5207,7 +5218,7 @@ function Ir(e) {
|
|
|
5207
5218
|
)
|
|
5208
5219
|
] });
|
|
5209
5220
|
}
|
|
5210
|
-
const
|
|
5221
|
+
const Uo = async ({
|
|
5211
5222
|
builderContextValue: e,
|
|
5212
5223
|
symbol: t
|
|
5213
5224
|
}) => {
|
|
@@ -5223,18 +5234,18 @@ const Bo = async ({
|
|
|
5223
5234
|
}
|
|
5224
5235
|
}
|
|
5225
5236
|
}).catch((r) => {
|
|
5226
|
-
|
|
5237
|
+
Re.error("Could not fetch symbol content: ", r);
|
|
5227
5238
|
});
|
|
5228
5239
|
};
|
|
5229
|
-
function
|
|
5240
|
+
function Do(e) {
|
|
5230
5241
|
var a, s, u, f;
|
|
5231
5242
|
function t() {
|
|
5232
|
-
var m,
|
|
5243
|
+
var m, v;
|
|
5233
5244
|
return [
|
|
5234
5245
|
e.attributes[tt()],
|
|
5235
5246
|
"builder-symbol",
|
|
5236
5247
|
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5237
|
-
(
|
|
5248
|
+
(v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5238
5249
|
].filter(Boolean).join(" ");
|
|
5239
5250
|
}
|
|
5240
5251
|
const [r, n] = V(() => {
|
|
@@ -5242,7 +5253,7 @@ function Fo(e) {
|
|
|
5242
5253
|
return (m = e.symbol) == null ? void 0 : m.content;
|
|
5243
5254
|
});
|
|
5244
5255
|
function i() {
|
|
5245
|
-
r ||
|
|
5256
|
+
r || Uo({
|
|
5246
5257
|
symbol: e.symbol,
|
|
5247
5258
|
builderContextValue: e.builderContext
|
|
5248
5259
|
}).then((m) => {
|
|
@@ -5274,31 +5285,31 @@ function Fo(e) {
|
|
|
5274
5285
|
}
|
|
5275
5286
|
) });
|
|
5276
5287
|
}
|
|
5277
|
-
const
|
|
5288
|
+
const Vo = kt, $o = Ir;
|
|
5278
5289
|
export {
|
|
5279
|
-
|
|
5290
|
+
kt as Blocks,
|
|
5280
5291
|
Zr as Button,
|
|
5281
|
-
|
|
5292
|
+
$i as Columns,
|
|
5282
5293
|
Ir as Content,
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5294
|
+
Hi as Fragment,
|
|
5295
|
+
zi as Image,
|
|
5296
|
+
Vo as RenderBlocks,
|
|
5297
|
+
$o as RenderContent,
|
|
5298
|
+
Xi as Section,
|
|
5299
|
+
Do as Symbol,
|
|
5300
|
+
ho as Text,
|
|
5301
|
+
mo as Video,
|
|
5302
|
+
Go as _processContentResult,
|
|
5292
5303
|
zr as createRegisterComponentMessage,
|
|
5293
|
-
|
|
5294
|
-
|
|
5304
|
+
zo as fetchBuilderProps,
|
|
5305
|
+
Xo as fetchEntries,
|
|
5295
5306
|
lr as fetchOneEntry,
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
|
|
5307
|
+
Yo as getAllContent,
|
|
5308
|
+
Jo as getBuilderSearchParams,
|
|
5309
|
+
qo as getContent,
|
|
5299
5310
|
je as isEditing,
|
|
5300
5311
|
Gr as isPreviewing,
|
|
5301
5312
|
Kr as register,
|
|
5302
|
-
|
|
5303
|
-
|
|
5313
|
+
Zo as setEditorSettings,
|
|
5314
|
+
Qo as track
|
|
5304
5315
|
};
|