@builder.io/sdk-react-nextjs 0.14.3 → 0.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{node/USE_CLIENT_BUNDLE-516849e4.cjs → browser/USE_CLIENT_BUNDLE-08003c52.cjs} +1 -1
- package/lib/browser/{USE_CLIENT_BUNDLE-1270c8f4.js → USE_CLIENT_BUNDLE-c0e35c58.js} +2 -2
- package/lib/{edge/USE_SERVER_BUNDLE-28ff24f9.cjs → browser/USE_SERVER_BUNDLE-b30f1d3a.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-f29a4a48.js → browser/USE_SERVER_BUNDLE-d6b00f9f.js} +1 -1
- package/lib/browser/{bundle-333e93b9.js → bundle-79c33004.js} +312 -308
- package/lib/browser/{bundle-bebe179f.cjs → bundle-cbefb279.cjs} +21 -21
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/{node/USE_CLIENT_BUNDLE-6ecc05ac.js → edge/USE_CLIENT_BUNDLE-7c938590.js} +2 -2
- package/lib/{browser/USE_CLIENT_BUNDLE-c1f06a46.cjs → edge/USE_CLIENT_BUNDLE-dde1380d.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-6860cf7c.cjs → edge/USE_SERVER_BUNDLE-1c955cc6.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-6a09d70e.js → edge/USE_SERVER_BUNDLE-61b658ba.js} +1 -1
- package/lib/edge/{bundle-49ee510b.js → bundle-57c447de.js} +428 -424
- package/lib/edge/{bundle-8abf9251.cjs → bundle-98141bbd.cjs} +29 -29
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-e0cb789c.cjs → node/USE_CLIENT_BUNDLE-1c0899f9.cjs} +1 -1
- package/lib/{edge/USE_CLIENT_BUNDLE-91b3973b.js → node/USE_CLIENT_BUNDLE-693a8b68.js} +2 -2
- package/lib/{browser/USE_SERVER_BUNDLE-99e0334d.js → node/USE_SERVER_BUNDLE-864233be.js} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-24e8f107.cjs → node/USE_SERVER_BUNDLE-986a7936.cjs} +1 -1
- package/lib/node/{bundle-e917fcc7.cjs → bundle-3d26f41d.cjs} +2 -2
- package/lib/node/{bundle-35759433.js → bundle-d42115c9.js} +17 -13
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/get-builder-search-params/index.d.ts +1 -4
- package/types/cjs/functions/is-editing.d.ts +2 -1
- package/types/cjs/functions/is-previewing.d.ts +2 -1
- package/types/cjs/helpers/search/search.d.ts +5 -0
- package/types/cjs/index.d.ts +5 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/get-builder-search-params/index.d.ts +1 -4
- package/types/esm/functions/is-editing.d.ts +2 -1
- package/types/esm/functions/is-previewing.d.ts +2 -1
- package/types/esm/helpers/search/search.d.ts +5 -0
- package/types/esm/index.d.ts +5 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as C, Fragment as W, jsxs as xe } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { LRUCache as
|
|
4
|
-
import { I as
|
|
3
|
+
import { LRUCache as Qr } from "lru-cache";
|
|
4
|
+
import { I as eo, B as to, a as no, D as ro, C as oo, E as io, b as ao, V as so, c as lo, F as co, d as uo, S as fo, e as po } from "./USE_CLIENT_BUNDLE-7c938590.js";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
const
|
|
6
|
+
const ho = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), _a = (e) => typeof e == "string" && ho.has(e.toLowerCase()), he = "rsc", Gt = () => {
|
|
7
7
|
switch (he) {
|
|
8
8
|
case "react":
|
|
9
9
|
case "reactNative":
|
|
@@ -16,7 +16,7 @@ const po = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
|
|
|
16
16
|
return "class";
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
function
|
|
19
|
+
function mo(e) {
|
|
20
20
|
var t;
|
|
21
21
|
return {
|
|
22
22
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -36,20 +36,26 @@ const at = "[Builder.io]: ", Y = {
|
|
|
36
36
|
function X() {
|
|
37
37
|
return typeof window < "u" && typeof document < "u";
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
const go = (e) => {
|
|
40
|
+
const t = {};
|
|
41
|
+
return e.forEach((n, r) => {
|
|
42
|
+
t[r] = n;
|
|
43
|
+
}), t;
|
|
44
|
+
}, ar = (e) => e instanceof URLSearchParams ? go(e) : e, sr = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
45
|
+
function yo() {
|
|
40
46
|
return X() && window.self !== window.top;
|
|
41
47
|
}
|
|
42
|
-
function Xt() {
|
|
43
|
-
return
|
|
48
|
+
function Xt(e) {
|
|
49
|
+
return yo() && sr(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
44
50
|
}
|
|
45
|
-
const
|
|
51
|
+
const vo = () => {
|
|
46
52
|
if (X()) {
|
|
47
53
|
const e = new URL(location.href);
|
|
48
54
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
49
55
|
} else
|
|
50
56
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
51
|
-
},
|
|
52
|
-
const e =
|
|
57
|
+
}, bo = () => typeof navigator == "object" && navigator.userAgent || "", lr = () => {
|
|
58
|
+
const e = bo(), t = {
|
|
53
59
|
Android() {
|
|
54
60
|
return e.match(/Android/i);
|
|
55
61
|
},
|
|
@@ -68,13 +74,13 @@ const go = () => {
|
|
|
68
74
|
any() {
|
|
69
75
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || he === "reactNative";
|
|
70
76
|
}
|
|
71
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
77
|
+
}, n = e.match(/Tablet|iPad/i), r = vo();
|
|
72
78
|
return {
|
|
73
79
|
urlPath: r == null ? void 0 : r.pathname,
|
|
74
80
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
75
81
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
76
82
|
};
|
|
77
|
-
},
|
|
83
|
+
}, cr = ({
|
|
78
84
|
builder: e,
|
|
79
85
|
context: t,
|
|
80
86
|
event: n,
|
|
@@ -86,14 +92,14 @@ const go = () => {
|
|
|
86
92
|
builder: e,
|
|
87
93
|
context: t,
|
|
88
94
|
event: n
|
|
89
|
-
}),
|
|
95
|
+
}), So = () => ({
|
|
90
96
|
isEditing: Xt(),
|
|
91
97
|
isBrowser: X(),
|
|
92
98
|
isServer: !X(),
|
|
93
|
-
getUserAttributes: () =>
|
|
94
|
-
}),
|
|
99
|
+
getUserAttributes: () => lr()
|
|
100
|
+
}), wo = (e, {
|
|
95
101
|
isExpression: t = !0
|
|
96
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
102
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, xo = ({
|
|
97
103
|
code: e,
|
|
98
104
|
builder: t,
|
|
99
105
|
context: n,
|
|
@@ -102,11 +108,11 @@ const go = () => {
|
|
|
102
108
|
rootSetState: i,
|
|
103
109
|
rootState: s
|
|
104
110
|
}) => {
|
|
105
|
-
const u =
|
|
111
|
+
const u = cr({
|
|
106
112
|
builder: t,
|
|
107
113
|
context: n,
|
|
108
114
|
event: r,
|
|
109
|
-
state:
|
|
115
|
+
state: ur({
|
|
110
116
|
rootState: s,
|
|
111
117
|
localState: o,
|
|
112
118
|
rootSetState: i
|
|
@@ -114,7 +120,7 @@ const go = () => {
|
|
|
114
120
|
});
|
|
115
121
|
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
116
122
|
};
|
|
117
|
-
function
|
|
123
|
+
function ur({
|
|
118
124
|
rootState: e,
|
|
119
125
|
localState: t,
|
|
120
126
|
rootSetState: n
|
|
@@ -124,7 +130,7 @@ function lr({
|
|
|
124
130
|
if (t && o in t)
|
|
125
131
|
return t[o];
|
|
126
132
|
const i = r[o];
|
|
127
|
-
return typeof i == "object" ?
|
|
133
|
+
return typeof i == "object" ? ur({
|
|
128
134
|
rootState: i,
|
|
129
135
|
localState: void 0,
|
|
130
136
|
rootSetState: n ? (s) => {
|
|
@@ -139,18 +145,18 @@ function lr({
|
|
|
139
145
|
}
|
|
140
146
|
});
|
|
141
147
|
}
|
|
142
|
-
const
|
|
148
|
+
const fr = (e, t, n) => {
|
|
143
149
|
if (Object(e) !== e)
|
|
144
150
|
return e;
|
|
145
151
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
146
152
|
return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
147
153
|
};
|
|
148
|
-
var B,
|
|
154
|
+
var B, ko = function(e) {
|
|
149
155
|
function t(a) {
|
|
150
|
-
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
156
|
+
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && qr.test(String.fromCharCode(a));
|
|
151
157
|
}
|
|
152
158
|
function n(a) {
|
|
153
|
-
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a &&
|
|
159
|
+
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Vn.test(String.fromCharCode(a));
|
|
154
160
|
}
|
|
155
161
|
function r(a, l) {
|
|
156
162
|
for (var c = m, p = 1, T = 0; ; ) {
|
|
@@ -210,7 +216,7 @@ var B, wo = function(e) {
|
|
|
210
216
|
break;
|
|
211
217
|
else if (a === 160)
|
|
212
218
|
++f;
|
|
213
|
-
else if (5760 <= a &&
|
|
219
|
+
else if (5760 <= a && zr.test(String.fromCharCode(a)))
|
|
214
220
|
++f;
|
|
215
221
|
else
|
|
216
222
|
break;
|
|
@@ -234,16 +240,16 @@ var B, wo = function(e) {
|
|
|
234
240
|
case 93:
|
|
235
241
|
return ++f, s(Ut);
|
|
236
242
|
case 123:
|
|
237
|
-
return ++f, s(
|
|
243
|
+
return ++f, s(Le);
|
|
238
244
|
case 125:
|
|
239
245
|
return ++f, s(Ie);
|
|
240
246
|
case 58:
|
|
241
|
-
return ++f, s(
|
|
247
|
+
return ++f, s(Ve);
|
|
242
248
|
case 63:
|
|
243
249
|
return ++f, s(Nn);
|
|
244
250
|
case 48:
|
|
245
251
|
if (a = m.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
246
|
-
f += 2, a = j(16), a === null && r(
|
|
252
|
+
f += 2, a = j(16), a === null && r(V + 2, "Expected hexadecimal number"), n(m.charCodeAt(f)) && r(f, "Identifier directly after number"), s(De, a);
|
|
247
253
|
return;
|
|
248
254
|
}
|
|
249
255
|
case 49:
|
|
@@ -260,7 +266,7 @@ var B, wo = function(e) {
|
|
|
260
266
|
case 39:
|
|
261
267
|
f++;
|
|
262
268
|
for (var l = ""; ; ) {
|
|
263
|
-
f >= ke && r(
|
|
269
|
+
f >= ke && r(V, "Unterminated string constant");
|
|
264
270
|
var c = m.charCodeAt(f);
|
|
265
271
|
if (c === a) {
|
|
266
272
|
++f, s(tt, l);
|
|
@@ -315,7 +321,7 @@ var B, wo = function(e) {
|
|
|
315
321
|
l += String.fromCharCode(c);
|
|
316
322
|
}
|
|
317
323
|
} else
|
|
318
|
-
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(
|
|
324
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(V, "Unterminated string constant"), l += String.fromCharCode(c), ++f;
|
|
319
325
|
}
|
|
320
326
|
return;
|
|
321
327
|
case 47:
|
|
@@ -323,26 +329,26 @@ var B, wo = function(e) {
|
|
|
323
329
|
return;
|
|
324
330
|
case 37:
|
|
325
331
|
case 42:
|
|
326
|
-
m.charCodeAt(f + 1) === 61 ? y(we, 2) : y(
|
|
332
|
+
m.charCodeAt(f + 1) === 61 ? y(we, 2) : y(Xr, 1);
|
|
327
333
|
return;
|
|
328
334
|
case 124:
|
|
329
335
|
case 38:
|
|
330
|
-
l = m.charCodeAt(f + 1), l === a ? y(a === 124 ? Mn : Dn, 2) : l === 61 ? y(we, 2) : y(a === 124 ? Vr :
|
|
336
|
+
l = m.charCodeAt(f + 1), l === a ? y(a === 124 ? Mn : Dn, 2) : l === 61 ? y(we, 2) : y(a === 124 ? Vr : Wr, 1);
|
|
331
337
|
return;
|
|
332
338
|
case 94:
|
|
333
|
-
m.charCodeAt(f + 1) === 61 ? y(we, 2) : y(
|
|
339
|
+
m.charCodeAt(f + 1) === 61 ? y(we, 2) : y(_r, 1);
|
|
334
340
|
return;
|
|
335
341
|
case 43:
|
|
336
342
|
case 45:
|
|
337
|
-
l = m.charCodeAt(f + 1), l === a ? l === 45 && m.charCodeAt(f + 2) === 62 && ot.test(m.slice(ge, f)) ? (f += 3, u(), d(), E()) : y(
|
|
343
|
+
l = m.charCodeAt(f + 1), l === a ? l === 45 && m.charCodeAt(f + 2) === 62 && ot.test(m.slice(ge, f)) ? (f += 3, u(), d(), E()) : y(Lr, 2) : l === 61 ? y(we, 2) : y(Gr, 1);
|
|
338
344
|
return;
|
|
339
345
|
case 60:
|
|
340
346
|
case 62:
|
|
341
|
-
l = m.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && m.charCodeAt(f + 2) === 62 ? 3 : 2, m.charCodeAt(f + c) === 61 ? y(we, c + 1) : y(
|
|
347
|
+
l = m.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && m.charCodeAt(f + 2) === 62 ? 3 : 2, m.charCodeAt(f + c) === 61 ? y(we, c + 1) : y(Kr, c)) : l === 33 && a === 60 && m.charCodeAt(f + 2) === 45 && m.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), E()) : (l === 61 && (c = m.charCodeAt(f + 2) === 61 ? 3 : 2), y(Hr, c));
|
|
342
348
|
return;
|
|
343
349
|
case 61:
|
|
344
350
|
case 33:
|
|
345
|
-
m.charCodeAt(f + 1) === 61 ? y(
|
|
351
|
+
m.charCodeAt(f + 1) === 61 ? y($r, m.charCodeAt(f + 2) === 61 ? 3 : 2) : y(a === 61 ? Un : Fn, 1);
|
|
346
352
|
return;
|
|
347
353
|
case 126:
|
|
348
354
|
return y(Fn, 1);
|
|
@@ -350,14 +356,14 @@ var B, wo = function(e) {
|
|
|
350
356
|
return !1;
|
|
351
357
|
}
|
|
352
358
|
function E(a) {
|
|
353
|
-
if (a ? f =
|
|
359
|
+
if (a ? f = V + 1 : V = f, O.C && (kt = new i()), a)
|
|
354
360
|
return R();
|
|
355
361
|
if (f >= ke)
|
|
356
362
|
return s(Tt);
|
|
357
363
|
if (a = m.charCodeAt(f), n(a) || a === 92)
|
|
358
364
|
return N();
|
|
359
365
|
if (k(a) === !1) {
|
|
360
|
-
if (a = String.fromCharCode(a), a === "\\" ||
|
|
366
|
+
if (a = String.fromCharCode(a), a === "\\" || Vn.test(a))
|
|
361
367
|
return N();
|
|
362
368
|
r(f, "Unexpected character '" + a + "'");
|
|
363
369
|
}
|
|
@@ -407,7 +413,7 @@ var B, wo = function(e) {
|
|
|
407
413
|
c ? T = parseFloat(a) : p && a.length !== 1 ? /[89]/.test(a) || Z ? r(l, "Invalid number") : T = parseInt(a, 8) : T = parseInt(a, 10), s(De, T);
|
|
408
414
|
}
|
|
409
415
|
function w(a) {
|
|
410
|
-
return a = j(16, a), a === null && r(
|
|
416
|
+
return a = j(16, a), a === null && r(V, "Bad character escape sequence"), a;
|
|
411
417
|
}
|
|
412
418
|
function U() {
|
|
413
419
|
Te = !1;
|
|
@@ -427,27 +433,27 @@ var B, wo = function(e) {
|
|
|
427
433
|
}
|
|
428
434
|
function N() {
|
|
429
435
|
var a = U(), l = Ee;
|
|
430
|
-
!Te &&
|
|
436
|
+
!Te && Jr(a) && (l = Dr[a]), s(l, a);
|
|
431
437
|
}
|
|
432
438
|
function x() {
|
|
433
|
-
Et =
|
|
439
|
+
Et = V, ge = Ce, It = Ct, E();
|
|
434
440
|
}
|
|
435
441
|
function Q(a) {
|
|
436
|
-
if (Z = a, f =
|
|
442
|
+
if (Z = a, f = V, O.C)
|
|
437
443
|
for (; f < se; )
|
|
438
444
|
se = m.lastIndexOf(`
|
|
439
445
|
`, se - 2) + 1, --Se;
|
|
440
446
|
d(), E();
|
|
441
447
|
}
|
|
442
448
|
function H() {
|
|
443
|
-
this.type = null, this.start =
|
|
449
|
+
this.type = null, this.start = V, this.end = null;
|
|
444
450
|
}
|
|
445
451
|
function ee() {
|
|
446
452
|
this.start = kt, this.end = null, xt && (this.source = xt);
|
|
447
453
|
}
|
|
448
454
|
function M() {
|
|
449
455
|
var a = new H();
|
|
450
|
-
return O.C && (a.X = new ee()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [
|
|
456
|
+
return O.C && (a.X = new ee()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [V, 0]), a;
|
|
451
457
|
}
|
|
452
458
|
function me(a) {
|
|
453
459
|
var l = new H();
|
|
@@ -463,7 +469,7 @@ var B, wo = function(e) {
|
|
|
463
469
|
return I === a ? (x(), !0) : !1;
|
|
464
470
|
}
|
|
465
471
|
function Ze() {
|
|
466
|
-
return !O.fc && (I === Tt || I === Ie || ot.test(m.slice(ge,
|
|
472
|
+
return !O.fc && (I === Tt || I === Ie || ot.test(m.slice(ge, V)));
|
|
467
473
|
}
|
|
468
474
|
function be() {
|
|
469
475
|
F(ce) || Ze() || ie();
|
|
@@ -472,7 +478,7 @@ var B, wo = function(e) {
|
|
|
472
478
|
I === a ? x() : ie();
|
|
473
479
|
}
|
|
474
480
|
function ie() {
|
|
475
|
-
r(
|
|
481
|
+
r(V, "Unexpected token");
|
|
476
482
|
}
|
|
477
483
|
function Qe(a) {
|
|
478
484
|
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Z && a.type === "Identifier" && rt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
@@ -486,50 +492,50 @@ var B, wo = function(e) {
|
|
|
486
492
|
x();
|
|
487
493
|
var c = a === At;
|
|
488
494
|
F(ce) || Ze() ? l.label = null : I !== Ee ? ie() : (l.label = ae(), be());
|
|
489
|
-
for (var p = 0; p <
|
|
490
|
-
var T =
|
|
495
|
+
for (var p = 0; p < L.length; ++p) {
|
|
496
|
+
var T = L[p];
|
|
491
497
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
492
498
|
break;
|
|
493
499
|
}
|
|
494
|
-
return p ===
|
|
500
|
+
return p === L.length && r(l.start, "Unsyntactic " + a.l), A(l, c ? "BreakStatement" : "ContinueStatement");
|
|
495
501
|
case gn:
|
|
496
502
|
return x(), be(), A(l, "DebuggerStatement");
|
|
497
503
|
case vn:
|
|
498
|
-
return x(),
|
|
504
|
+
return x(), L.push(Ft), l.body = ne(), L.pop(), D(Nt), l.test = Ne(), be(), A(l, "DoWhileStatement");
|
|
499
505
|
case wn:
|
|
500
|
-
return x(),
|
|
506
|
+
return x(), L.push(Ft), D(le), I === ce ? gt(l, null) : I === Pt ? (a = M(), x(), fn(a, !0), A(a, "VariableDeclaration"), a.fa.length === 1 && F(nt) ? un(l, a) : gt(l, a)) : (a = G(!1, !0), F(nt) ? (Qe(a), un(l, a)) : gt(l, a));
|
|
501
507
|
case jt:
|
|
502
508
|
return x(), St(l, !0);
|
|
503
509
|
case xn:
|
|
504
510
|
return x(), l.test = Ne(), l.da = ne(), l.alternate = F(bn) ? ne() : null, A(l, "IfStatement");
|
|
505
511
|
case kn:
|
|
506
|
-
return Me || O.Ib || r(
|
|
512
|
+
return Me || O.Ib || r(V, "'return' outside of function"), x(), F(ce) || Ze() ? l.K = null : (l.K = G(), be()), A(l, "ReturnStatement");
|
|
507
513
|
case Rt:
|
|
508
|
-
for (x(), l.Qb = Ne(), l.tb = [], D(
|
|
509
|
-
I === Ot || I === yn ? (a = I === Ot, p && A(p, "SwitchCase"), l.tb.push(p = M()), p.da = [], x(), a ? p.test = G() : (c && r(Et, "Multiple default clauses"), c = !0, p.test = null), D(
|
|
510
|
-
return p && A(p, "SwitchCase"), x(),
|
|
514
|
+
for (x(), l.Qb = Ne(), l.tb = [], D(Le), L.push(Zr); I !== Ie; )
|
|
515
|
+
I === Ot || I === yn ? (a = I === Ot, p && A(p, "SwitchCase"), l.tb.push(p = M()), p.da = [], x(), a ? p.test = G() : (c && r(Et, "Multiple default clauses"), c = !0, p.test = null), D(Ve)) : (p || ie(), p.da.push(ne()));
|
|
516
|
+
return p && A(p, "SwitchCase"), x(), L.pop(), A(l, "SwitchStatement");
|
|
511
517
|
case Cn:
|
|
512
|
-
return x(), ot.test(m.slice(ge,
|
|
518
|
+
return x(), ot.test(m.slice(ge, V)) && r(ge, "Illegal newline after throw"), l.K = G(), be(), A(l, "ThrowStatement");
|
|
513
519
|
case En:
|
|
514
520
|
return x(), l.block = Be(), l.Ea = null, I === hn && (a = M(), x(), D(le), a.Ua = ae(), Z && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), D(re), a.body = Be(), l.Ea = A(a, "CatchClause")), l.fb = F(Sn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
515
521
|
case Pt:
|
|
516
522
|
return x(), fn(l), be(), A(l, "VariableDeclaration");
|
|
517
523
|
case Nt:
|
|
518
|
-
return x(), l.test = Ne(),
|
|
524
|
+
return x(), l.test = Ne(), L.push(Ft), l.body = ne(), L.pop(), A(l, "WhileStatement");
|
|
519
525
|
case In:
|
|
520
|
-
return Z && r(
|
|
521
|
-
case
|
|
526
|
+
return Z && r(V, "'with' in strict mode"), x(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
|
|
527
|
+
case Le:
|
|
522
528
|
return Be();
|
|
523
529
|
case ce:
|
|
524
530
|
return x(), A(l, "EmptyStatement");
|
|
525
531
|
default:
|
|
526
|
-
if (c = te, T = G(), a === Ee && T.type === "Identifier" && F(
|
|
527
|
-
for (p = 0; p <
|
|
528
|
-
|
|
529
|
-
return
|
|
532
|
+
if (c = te, T = G(), a === Ee && T.type === "Identifier" && F(Ve)) {
|
|
533
|
+
for (p = 0; p < L.length; ++p)
|
|
534
|
+
L[p].name === c && r(T.start, "Label '" + c + "' is already declared");
|
|
535
|
+
return L.push({
|
|
530
536
|
name: c,
|
|
531
537
|
kind: I.W ? "loop" : I === Rt ? "switch" : null
|
|
532
|
-
}), l.body = ne(),
|
|
538
|
+
}), l.body = ne(), L.pop(), l.label = T, A(l, "LabeledStatement");
|
|
533
539
|
}
|
|
534
540
|
return l.la = T, be(), A(l, "ExpressionStatement");
|
|
535
541
|
}
|
|
@@ -541,7 +547,7 @@ var B, wo = function(e) {
|
|
|
541
547
|
}
|
|
542
548
|
function Be(a) {
|
|
543
549
|
var l = M(), c = !0, p = !1;
|
|
544
|
-
for (l.body = [], D(
|
|
550
|
+
for (l.body = [], D(Le); !F(Ie); ) {
|
|
545
551
|
var T = ne();
|
|
546
552
|
if (l.body.push(T), c && a && mt(T)) {
|
|
547
553
|
var _ = p;
|
|
@@ -552,10 +558,10 @@ var B, wo = function(e) {
|
|
|
552
558
|
return p && !_ && Q(!1), A(l, "BlockStatement");
|
|
553
559
|
}
|
|
554
560
|
function gt(a, l) {
|
|
555
|
-
return a.ua = l, D(ce), a.test = I === ce ? null : G(), D(ce), a.update = I === re ? null : G(), D(re), a.body = ne(),
|
|
561
|
+
return a.ua = l, D(ce), a.test = I === ce ? null : G(), D(ce), a.update = I === re ? null : G(), D(re), a.body = ne(), L.pop(), A(a, "ForStatement");
|
|
556
562
|
}
|
|
557
563
|
function un(a, l) {
|
|
558
|
-
return a.left = l, a.right = G(), D(re), a.body = ne(),
|
|
564
|
+
return a.left = l, a.right = G(), D(re), a.body = ne(), L.pop(), A(a, "ForInStatement");
|
|
559
565
|
}
|
|
560
566
|
function fn(a, l) {
|
|
561
567
|
for (a.fa = [], a.kind = "var"; ; ) {
|
|
@@ -577,7 +583,7 @@ var B, wo = function(e) {
|
|
|
577
583
|
var l = vt(bt(), -1, a);
|
|
578
584
|
if (F(Nn)) {
|
|
579
585
|
var c = me(l);
|
|
580
|
-
c.test = l, c.da = G(!0), D(
|
|
586
|
+
c.test = l, c.da = G(!0), D(Ve), c.alternate = G(!0, a), l = A(c, "ConditionalExpression");
|
|
581
587
|
}
|
|
582
588
|
return I.Cb ? (c = me(l), c.operator = te, c.left = l, x(), c.right = yt(a), Qe(l), A(c, "AssignmentExpression")) : l;
|
|
583
589
|
}
|
|
@@ -615,20 +621,20 @@ var B, wo = function(e) {
|
|
|
615
621
|
case De:
|
|
616
622
|
case tt:
|
|
617
623
|
case dn:
|
|
618
|
-
return a = M(), a.value = te, a.raw = m.slice(
|
|
624
|
+
return a = M(), a.value = te, a.raw = m.slice(V, Ce), x(), A(a, "Literal");
|
|
619
625
|
case On:
|
|
620
626
|
case jn:
|
|
621
627
|
case Rn:
|
|
622
628
|
return a = M(), a.value = I.$a, a.raw = I.l, x(), A(a, "Literal");
|
|
623
629
|
case le:
|
|
624
630
|
a = kt;
|
|
625
|
-
var l =
|
|
631
|
+
var l = V;
|
|
626
632
|
x();
|
|
627
633
|
var c = G();
|
|
628
634
|
return c.start = l, c.end = Ce, O.C && (c.X.start = a, c.X.end = Ct), O.Xa && (c.j = [l, Ce]), D(re), c;
|
|
629
635
|
case Bt:
|
|
630
636
|
return a = M(), x(), a.elements = wt(Ut, !0, !0), A(a, "ArrayExpression");
|
|
631
|
-
case
|
|
637
|
+
case Le:
|
|
632
638
|
for (a = M(), l = !0, c = !1, a.h = [], x(); !F(Ie); ) {
|
|
633
639
|
if (l)
|
|
634
640
|
l = !1;
|
|
@@ -637,7 +643,7 @@ var B, wo = function(e) {
|
|
|
637
643
|
var p = {
|
|
638
644
|
key: I === De || I === tt ? et() : ae(!0)
|
|
639
645
|
}, T = !1;
|
|
640
|
-
if (F(
|
|
646
|
+
if (F(Ve)) {
|
|
641
647
|
p.value = G(!0);
|
|
642
648
|
var _ = p.kind = "init";
|
|
643
649
|
} else
|
|
@@ -656,7 +662,7 @@ var B, wo = function(e) {
|
|
|
656
662
|
case jt:
|
|
657
663
|
return a = M(), x(), St(a, !1);
|
|
658
664
|
case Tn:
|
|
659
|
-
return a = M(), x(), a.callee = Ue(et(), !0), a.arguments = F(le) ? wt(re, !1) :
|
|
665
|
+
return a = M(), x(), a.callee = Ue(et(), !0), a.arguments = F(le) ? wt(re, !1) : Mr, A(a, "NewExpression");
|
|
660
666
|
}
|
|
661
667
|
ie();
|
|
662
668
|
}
|
|
@@ -666,10 +672,10 @@ var B, wo = function(e) {
|
|
|
666
672
|
for (D(le); !F(re); )
|
|
667
673
|
c ? c = !1 : D(ye), a.oa.push(ae());
|
|
668
674
|
c = Me;
|
|
669
|
-
var p =
|
|
670
|
-
if (Me = !0,
|
|
675
|
+
var p = L;
|
|
676
|
+
if (Me = !0, L = [], a.body = Be(!0), Me = c, L = p, Z || a.body.body.length && mt(a.body.body[0])) {
|
|
671
677
|
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
672
|
-
if (p = 0 > c ? a.id : a.oa[c], (
|
|
678
|
+
if (p = 0 > c ? a.id : a.oa[c], (Ln(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
|
|
673
679
|
for (var T = 0; T < c; ++T)
|
|
674
680
|
p.name === a.oa[T].name && r(p.start, "Argument name clash in strict mode");
|
|
675
681
|
}
|
|
@@ -687,7 +693,7 @@ var B, wo = function(e) {
|
|
|
687
693
|
}
|
|
688
694
|
function ae(a) {
|
|
689
695
|
var l = M();
|
|
690
|
-
return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb &&
|
|
696
|
+
return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && Yr(te) || Z && Ln(te)) && m.slice(V, Ce).indexOf("\\") === -1 && r(V, "The keyword '" + te + "' is reserved"), l.name = te) : a && I.l ? l.name = I.l : ie(), Fe = !1, x(), A(l, "Identifier");
|
|
691
697
|
}
|
|
692
698
|
e.version = "0.5.0";
|
|
693
699
|
var O, m = "", ke, xt;
|
|
@@ -695,7 +701,7 @@ var B, wo = function(e) {
|
|
|
695
701
|
m = String(a), ke = m.length, O = l || {};
|
|
696
702
|
for (var c in pn)
|
|
697
703
|
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = pn[c]);
|
|
698
|
-
for (xt = O.sourceFile, Se = 1, f = se = 0, Fe = !0, d(), c = O.dc, Et = ge = f, O.C && (It = new i()), Me = Z = !1,
|
|
704
|
+
for (xt = O.sourceFile, Se = 1, f = se = 0, Fe = !0, d(), c = O.dc, Et = ge = f, O.C && (It = new i()), Me = Z = !1, L = [], E(), a = c || M(), l = !0, c || (a.body = []); I !== Tt; )
|
|
699
705
|
c = ne(), a.body.push(c), l && mt(c) && Q(!0), l = !1;
|
|
700
706
|
return A(a, "Program");
|
|
701
707
|
};
|
|
@@ -710,7 +716,7 @@ var B, wo = function(e) {
|
|
|
710
716
|
dc: null,
|
|
711
717
|
sourceFile: null,
|
|
712
718
|
vb: null
|
|
713
|
-
}, f = 0,
|
|
719
|
+
}, f = 0, V = 0, Ce = 0, kt, Ct, I, te, Fe, Se, se, Et = 0, ge = 0, It, Me, L, Z, Mr = [], De = {
|
|
714
720
|
type: "num"
|
|
715
721
|
}, dn = {
|
|
716
722
|
type: "regexp"
|
|
@@ -783,7 +789,7 @@ var B, wo = function(e) {
|
|
|
783
789
|
l: "in",
|
|
784
790
|
L: 7,
|
|
785
791
|
m: !0
|
|
786
|
-
},
|
|
792
|
+
}, Dr = {
|
|
787
793
|
break: At,
|
|
788
794
|
case: Ot,
|
|
789
795
|
catch: hn,
|
|
@@ -834,7 +840,7 @@ var B, wo = function(e) {
|
|
|
834
840
|
m: !0
|
|
835
841
|
}, Ut = {
|
|
836
842
|
type: "]"
|
|
837
|
-
},
|
|
843
|
+
}, Le = {
|
|
838
844
|
type: "{",
|
|
839
845
|
m: !0
|
|
840
846
|
}, Ie = {
|
|
@@ -850,7 +856,7 @@ var B, wo = function(e) {
|
|
|
850
856
|
}, ce = {
|
|
851
857
|
type: ";",
|
|
852
858
|
m: !0
|
|
853
|
-
},
|
|
859
|
+
}, Ve = {
|
|
854
860
|
type: ":",
|
|
855
861
|
m: !0
|
|
856
862
|
}, Pn = {
|
|
@@ -867,7 +873,7 @@ var B, wo = function(e) {
|
|
|
867
873
|
}, we = {
|
|
868
874
|
Cb: !0,
|
|
869
875
|
m: !0
|
|
870
|
-
},
|
|
876
|
+
}, Lr = {
|
|
871
877
|
cc: !0,
|
|
872
878
|
prefix: !0,
|
|
873
879
|
$b: !0
|
|
@@ -883,35 +889,35 @@ var B, wo = function(e) {
|
|
|
883
889
|
}, Vr = {
|
|
884
890
|
L: 3,
|
|
885
891
|
m: !0
|
|
886
|
-
},
|
|
892
|
+
}, _r = {
|
|
887
893
|
L: 4,
|
|
888
894
|
m: !0
|
|
889
|
-
},
|
|
895
|
+
}, Wr = {
|
|
890
896
|
L: 5,
|
|
891
897
|
m: !0
|
|
892
|
-
},
|
|
898
|
+
}, $r = {
|
|
893
899
|
L: 6,
|
|
894
900
|
m: !0
|
|
895
|
-
},
|
|
901
|
+
}, Hr = {
|
|
896
902
|
L: 7,
|
|
897
903
|
m: !0
|
|
898
|
-
},
|
|
904
|
+
}, Kr = {
|
|
899
905
|
L: 8,
|
|
900
906
|
m: !0
|
|
901
|
-
},
|
|
907
|
+
}, Gr = {
|
|
902
908
|
L: 9,
|
|
903
909
|
prefix: !0,
|
|
904
910
|
m: !0
|
|
905
|
-
},
|
|
911
|
+
}, Xr = {
|
|
906
912
|
L: 10,
|
|
907
913
|
m: !0
|
|
908
|
-
},
|
|
914
|
+
}, Yr = o("class enum extends super const export import"), Ln = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), Jr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), zr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Vn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), qr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ft = {
|
|
909
915
|
kind: "loop"
|
|
910
|
-
},
|
|
916
|
+
}, Zr = {
|
|
911
917
|
kind: "switch"
|
|
912
918
|
};
|
|
913
|
-
},
|
|
914
|
-
|
|
919
|
+
}, Vt = Vt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
920
|
+
ko(Vt.j || (Vt.j = {}));
|
|
915
921
|
function h(e, t) {
|
|
916
922
|
typeof e == "string" && (e = je(e, "code"));
|
|
917
923
|
var n = e.constructor;
|
|
@@ -953,7 +959,7 @@ var _n = {
|
|
|
953
959
|
configurable: !1,
|
|
954
960
|
enumerable: !0,
|
|
955
961
|
writable: !0
|
|
956
|
-
},
|
|
962
|
+
}, pr = {
|
|
957
963
|
STEP_ERROR: !0
|
|
958
964
|
}, Pe = {
|
|
959
965
|
SCOPE_REFERENCE: !0
|
|
@@ -961,7 +967,7 @@ var _n = {
|
|
|
961
967
|
VALUE_IN_DESCRIPTOR: !0
|
|
962
968
|
}, Oe = {
|
|
963
969
|
REGEXP_TIMEOUT: !0
|
|
964
|
-
}, $n = [], fe = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis,
|
|
970
|
+
}, $n = [], fe = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, Co = ["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();", "};"];
|
|
965
971
|
function Jt(e) {
|
|
966
972
|
var t = e >>> 0;
|
|
967
973
|
return t === Number(e) ? t : NaN;
|
|
@@ -1012,7 +1018,7 @@ B.lb = function() {
|
|
|
1012
1018
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1013
1019
|
n = null;
|
|
1014
1020
|
else {
|
|
1015
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1021
|
+
this.ca.shift(), 0 <= n.interval && mr(this, n, n.interval);
|
|
1016
1022
|
var r = new b(n.node, n.scope);
|
|
1017
1023
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1018
1024
|
}
|
|
@@ -1025,7 +1031,7 @@ B.lb = function() {
|
|
|
1025
1031
|
try {
|
|
1026
1032
|
var i = this.rb[r.type](e, n, r);
|
|
1027
1033
|
} catch (s) {
|
|
1028
|
-
if (s !==
|
|
1034
|
+
if (s !== pr)
|
|
1029
1035
|
throw this.value !== s && (this.value = void 0), s;
|
|
1030
1036
|
} finally {
|
|
1031
1037
|
Ge = o;
|
|
@@ -1043,8 +1049,8 @@ B.Eb = function() {
|
|
|
1043
1049
|
;
|
|
1044
1050
|
return this.za;
|
|
1045
1051
|
};
|
|
1046
|
-
function
|
|
1047
|
-
e.g(t, "NaN", NaN, _e), e.g(t, "Infinity", 1 / 0, _e), e.g(t, "undefined", void 0, _e), e.g(t, "window", t, Yt), e.g(t, "this", t, _e), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M),
|
|
1052
|
+
function Eo(e, t) {
|
|
1053
|
+
e.g(t, "NaN", NaN, _e), e.g(t, "Infinity", 1 / 0, _e), e.g(t, "undefined", void 0, _e), e.g(t, "window", t, Yt), e.g(t, "this", t, _e), e.g(t, "self", t), e.M = new P(null), e.Z = new P(e.M), Io(e, t), To(e, t), t.xa = e.M, e.g(t, "constructor", e.v, g), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Bo(e, t), Uo(e, t), Fo(e, t);
|
|
1048
1054
|
var n = e.i(function() {
|
|
1049
1055
|
throw EvalError("Can't happen");
|
|
1050
1056
|
}, !1);
|
|
@@ -1070,7 +1076,7 @@ function ko(e, t) {
|
|
|
1070
1076
|
}, e.g(t, "clearInterval", e.i(n, !1), g), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1071
1077
|
}
|
|
1072
1078
|
B.Wb = 0;
|
|
1073
|
-
function
|
|
1079
|
+
function Io(e, t) {
|
|
1074
1080
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1075
1081
|
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1076
1082
|
if (s) {
|
|
@@ -1091,7 +1097,7 @@ function Co(e, t) {
|
|
|
1091
1097
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, g), e.g(e.O, "prototype", e.Z, g), e.g(e.Z, "constructor", e.O, g), e.Z.Ta = function() {
|
|
1092
1098
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, q), e.Z.H = "Function", r = function(o, i) {
|
|
1093
1099
|
var s = e.o[e.o.length - 1];
|
|
1094
|
-
s.U = this, s.B = o, s.F = [], i != null && (i instanceof P ? s.F =
|
|
1100
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof P ? s.F = dr(e, i) : S(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1095
1101
|
}, $(e, e.O, "apply", r), r = function(o) {
|
|
1096
1102
|
var i = e.o[e.o.length - 1];
|
|
1097
1103
|
i.U = this, i.B = o, i.F = [];
|
|
@@ -1104,7 +1110,7 @@ function Co(e, t) {
|
|
|
1104
1110
|
return this.valueOf();
|
|
1105
1111
|
}, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), g);
|
|
1106
1112
|
}
|
|
1107
|
-
function
|
|
1113
|
+
function To(e, t) {
|
|
1108
1114
|
function n(o) {
|
|
1109
1115
|
o != null || S(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1110
1116
|
}
|
|
@@ -1149,7 +1155,7 @@ function Eo(e, t) {
|
|
|
1149
1155
|
}
|
|
1150
1156
|
}, $(e, e.v, "isPrototypeOf", r);
|
|
1151
1157
|
}
|
|
1152
|
-
function
|
|
1158
|
+
function Ao(e, t) {
|
|
1153
1159
|
var n = function(r) {
|
|
1154
1160
|
var o = de(e) ? this : Re(e), i = arguments[0];
|
|
1155
1161
|
if (arguments.length === 1 && typeof i == "number")
|
|
@@ -1169,7 +1175,7 @@ function Io(e, t) {
|
|
|
1169
1175
|
writable: !0
|
|
1170
1176
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1171
1177
|
}
|
|
1172
|
-
function
|
|
1178
|
+
function Oo(e, t) {
|
|
1173
1179
|
var n = function(r) {
|
|
1174
1180
|
return r = arguments.length ? ve.String(r) : "", de(e) ? (this.data = r, this) : r;
|
|
1175
1181
|
};
|
|
@@ -1252,12 +1258,12 @@ function To(e, t) {
|
|
|
1252
1258
|
i(s.replace(r, o));
|
|
1253
1259
|
}, Ke(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1254
1260
|
}
|
|
1255
|
-
function
|
|
1261
|
+
function jo(e, t) {
|
|
1256
1262
|
e.mb = e.i(function(n) {
|
|
1257
1263
|
return n = ve.Boolean(n), de(e) ? (this.data = n, this) : n;
|
|
1258
1264
|
}, !0), e.g(t, "Boolean", e.mb, g);
|
|
1259
1265
|
}
|
|
1260
|
-
function
|
|
1266
|
+
function Ro(e, t) {
|
|
1261
1267
|
var n = function(r) {
|
|
1262
1268
|
return r = arguments.length ? ve.Number(r) : 0, de(e) ? (this.data = r, this) : r;
|
|
1263
1269
|
};
|
|
@@ -1296,7 +1302,7 @@ function Oo(e, t) {
|
|
|
1296
1302
|
}
|
|
1297
1303
|
}, $(e, e.aa, "toLocaleString", n);
|
|
1298
1304
|
}
|
|
1299
|
-
function
|
|
1305
|
+
function Po(e, t) {
|
|
1300
1306
|
var n = function(o, i) {
|
|
1301
1307
|
if (!de(e))
|
|
1302
1308
|
return ve.Date();
|
|
@@ -1315,7 +1321,7 @@ function jo(e, t) {
|
|
|
1315
1321
|
};
|
|
1316
1322
|
}(t[r]), $(e, e.$, t[r], n);
|
|
1317
1323
|
}
|
|
1318
|
-
function
|
|
1324
|
+
function No(e, t) {
|
|
1319
1325
|
var n = function(r, o) {
|
|
1320
1326
|
if (de(e))
|
|
1321
1327
|
var i = this;
|
|
@@ -1357,7 +1363,7 @@ function Ro(e, t) {
|
|
|
1357
1363
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1358
1364
|
}, Ke(e, e.I, "exec", n);
|
|
1359
1365
|
}
|
|
1360
|
-
function
|
|
1366
|
+
function Bo(e, t) {
|
|
1361
1367
|
function n(r) {
|
|
1362
1368
|
var o = e.i(function(i) {
|
|
1363
1369
|
var s = de(e) ? this : e.Aa(o);
|
|
@@ -1370,7 +1376,7 @@ function Po(e, t) {
|
|
|
1370
1376
|
return _t(e, o, r), o;
|
|
1371
1377
|
}, !0), e.g(t, "Error", e.D, g), e.g(e.D.h.prototype, "message", "", g), e.g(e.D.h.prototype, "name", "Error", g), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1372
1378
|
}
|
|
1373
|
-
function
|
|
1379
|
+
function Uo(e, t) {
|
|
1374
1380
|
var n = e.s(e.M);
|
|
1375
1381
|
e.g(t, "Math", n, g);
|
|
1376
1382
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1379,7 +1385,7 @@ function No(e, t) {
|
|
|
1379
1385
|
for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
|
|
1380
1386
|
e.g(n, r[t], e.i(Math[r[t]], !1), g);
|
|
1381
1387
|
}
|
|
1382
|
-
function
|
|
1388
|
+
function Fo(e, t) {
|
|
1383
1389
|
var n = e.s(e.M);
|
|
1384
1390
|
e.g(t, "JSON", n, g), t = function(r) {
|
|
1385
1391
|
try {
|
|
@@ -1389,7 +1395,7 @@ function Bo(e, t) {
|
|
|
1389
1395
|
}
|
|
1390
1396
|
return e.Ia(o);
|
|
1391
1397
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1392
|
-
o && o.H === "Function" ? S(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o =
|
|
1398
|
+
o && o.H === "Function" ? S(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = dr(e, o), o = o.filter(function(u) {
|
|
1393
1399
|
return typeof u == "string" || typeof u == "number";
|
|
1394
1400
|
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1395
1401
|
try {
|
|
@@ -1434,7 +1440,7 @@ function _t(e, t, n) {
|
|
|
1434
1440
|
}
|
|
1435
1441
|
B.ha = function() {
|
|
1436
1442
|
var e = this.ha.Mb;
|
|
1437
|
-
return e || (e = new Blob([
|
|
1443
|
+
return e || (e = new Blob([Co.join(`
|
|
1438
1444
|
`)], {
|
|
1439
1445
|
type: "application/javascript"
|
|
1440
1446
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1575,7 +1581,7 @@ function ue(e, t) {
|
|
|
1575
1581
|
e.g(n, r[o], t[r[o]]);
|
|
1576
1582
|
return n;
|
|
1577
1583
|
}
|
|
1578
|
-
function
|
|
1584
|
+
function dr(e, t) {
|
|
1579
1585
|
var n = [], r;
|
|
1580
1586
|
for (r in t.h)
|
|
1581
1587
|
n[r] = e.G(t, r);
|
|
@@ -1713,12 +1719,12 @@ function Wt(e, t, n) {
|
|
|
1713
1719
|
var o = t.body && t.body[0];
|
|
1714
1720
|
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1715
1721
|
}
|
|
1716
|
-
return o = e.s(null), r = new
|
|
1722
|
+
return o = e.s(null), r = new gr(n, r, o), n || Eo(e, r.object), Je(e, t, r), r;
|
|
1717
1723
|
}
|
|
1718
1724
|
function en(e, t, n) {
|
|
1719
1725
|
if (!t)
|
|
1720
1726
|
throw Error("parentScope required");
|
|
1721
|
-
return e = n || e.s(null), new
|
|
1727
|
+
return e = n || e.s(null), new gr(t, t.S, e);
|
|
1722
1728
|
}
|
|
1723
1729
|
function tn(e, t) {
|
|
1724
1730
|
for (var n = Qt(e); n && n !== e.N; ) {
|
|
@@ -1730,7 +1736,7 @@ function tn(e, t) {
|
|
|
1730
1736
|
return e.G(n.object, t);
|
|
1731
1737
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || S(e, e.pb, t + " is not defined");
|
|
1732
1738
|
}
|
|
1733
|
-
function
|
|
1739
|
+
function hr(e, t, n) {
|
|
1734
1740
|
for (var r = Qt(e), o = r.S; r && r !== e.N; ) {
|
|
1735
1741
|
if (t in r.object.h) {
|
|
1736
1742
|
try {
|
|
@@ -1802,10 +1808,10 @@ function nn(e, t) {
|
|
|
1802
1808
|
return t[0] === Pe ? tn(e, t[1]) : e.G(t[0], t[1]);
|
|
1803
1809
|
}
|
|
1804
1810
|
function rn(e, t, n) {
|
|
1805
|
-
return t[0] === Pe ?
|
|
1811
|
+
return t[0] === Pe ? hr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1806
1812
|
}
|
|
1807
1813
|
function S(e, t, n) {
|
|
1808
|
-
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), _t(e, t, n)), ze(e, 4, t),
|
|
1814
|
+
throw e.N ? (n !== void 0 && t instanceof P && (t = e.Aa(t), _t(e, t, n)), ze(e, 4, t), pr) : n === void 0 ? t : n;
|
|
1809
1815
|
}
|
|
1810
1816
|
function ze(e, t, n, r) {
|
|
1811
1817
|
if (t === 0)
|
|
@@ -1898,9 +1904,9 @@ function Hn(e, t, n) {
|
|
|
1898
1904
|
}
|
|
1899
1905
|
s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1900
1906
|
}
|
|
1901
|
-
return t = new
|
|
1907
|
+
return t = new Mo(u, o, r, s, t ? n : -1), mr(e, t, n), t.Db;
|
|
1902
1908
|
}
|
|
1903
|
-
function
|
|
1909
|
+
function mr(e, t, n) {
|
|
1904
1910
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1905
1911
|
return r.time - o.time;
|
|
1906
1912
|
});
|
|
@@ -1941,7 +1947,7 @@ B.ec = function(e) {
|
|
|
1941
1947
|
function b(e, t) {
|
|
1942
1948
|
this.node = e, this.scope = t;
|
|
1943
1949
|
}
|
|
1944
|
-
function
|
|
1950
|
+
function gr(e, t, n) {
|
|
1945
1951
|
this.Va = e, this.S = t, this.object = n;
|
|
1946
1952
|
}
|
|
1947
1953
|
function P(e) {
|
|
@@ -2002,10 +2008,10 @@ B.toString = function() {
|
|
|
2002
2008
|
B.valueOf = function() {
|
|
2003
2009
|
return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
2004
2010
|
};
|
|
2005
|
-
function
|
|
2006
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++
|
|
2011
|
+
function Mo(e, t, n, r, o) {
|
|
2012
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Do, this.time = 0;
|
|
2007
2013
|
}
|
|
2008
|
-
var
|
|
2014
|
+
var Do = 0;
|
|
2009
2015
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
2010
2016
|
n = n.elements;
|
|
2011
2017
|
var r = t.A || 0;
|
|
@@ -2526,7 +2532,7 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2526
2532
|
h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2527
2533
|
n = n.fa;
|
|
2528
2534
|
var r = t.A || 0, o = n[r];
|
|
2529
|
-
for (t.Bb && o && (
|
|
2535
|
+
for (t.Bb && o && (hr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2530
2536
|
if (o.ua)
|
|
2531
2537
|
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new b(o.ua, t.scope);
|
|
2532
2538
|
o = n[++r];
|
|
@@ -2553,7 +2559,7 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2553
2559
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2554
2560
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2555
2561
|
h.VALUE_IN_DESCRIPTOR = Ye;
|
|
2556
|
-
const
|
|
2562
|
+
const Lo = (e) => e.split(`
|
|
2557
2563
|
`).map((t) => {
|
|
2558
2564
|
const n = t.trim();
|
|
2559
2565
|
if (t.includes("__awaiter"))
|
|
@@ -2566,7 +2572,7 @@ const Mo = (e) => e.split(`
|
|
|
2566
2572
|
${u}
|
|
2567
2573
|
`;
|
|
2568
2574
|
}).filter(Boolean).join(`
|
|
2569
|
-
`), Gn = (e) => e + "JSON",
|
|
2575
|
+
`), Gn = (e) => e + "JSON", Vo = ({
|
|
2570
2576
|
builder: e,
|
|
2571
2577
|
context: t,
|
|
2572
2578
|
event: n,
|
|
@@ -2578,7 +2584,7 @@ const Mo = (e) => e.split(`
|
|
|
2578
2584
|
const u = {
|
|
2579
2585
|
...r,
|
|
2580
2586
|
...o
|
|
2581
|
-
}, d =
|
|
2587
|
+
}, d = cr({
|
|
2582
2588
|
builder: e,
|
|
2583
2589
|
context: t,
|
|
2584
2590
|
event: n,
|
|
@@ -2587,7 +2593,7 @@ const Mo = (e) => e.split(`
|
|
|
2587
2593
|
const w = Gn(v);
|
|
2588
2594
|
return `var ${v} = ${w} === undefined ? undefined : JSON.parse(${w});`;
|
|
2589
2595
|
}).join(`
|
|
2590
|
-
`), E =
|
|
2596
|
+
`), E = Lo(s);
|
|
2591
2597
|
if (E === "") {
|
|
2592
2598
|
Y.warn("Skipping evaluation of empty code block.");
|
|
2593
2599
|
return;
|
|
@@ -2600,7 +2606,7 @@ function theFunction() {
|
|
|
2600
2606
|
}
|
|
2601
2607
|
theFunction();
|
|
2602
2608
|
`, R = (v, w) => {
|
|
2603
|
-
const U =
|
|
2609
|
+
const U = fr(u, v, w);
|
|
2604
2610
|
i == null || i(U);
|
|
2605
2611
|
}, j = function(v, w) {
|
|
2606
2612
|
d.forEach(([U, N]) => {
|
|
@@ -2618,17 +2624,17 @@ theFunction();
|
|
|
2618
2624
|
return;
|
|
2619
2625
|
}
|
|
2620
2626
|
}, oe = (e) => e != null;
|
|
2621
|
-
function
|
|
2627
|
+
function _o() {
|
|
2622
2628
|
var e;
|
|
2623
2629
|
return typeof process < "u" && oe((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2624
2630
|
}
|
|
2625
|
-
const
|
|
2631
|
+
const Wo = () => {
|
|
2626
2632
|
var r;
|
|
2627
|
-
if (!
|
|
2633
|
+
if (!_o())
|
|
2628
2634
|
return !1;
|
|
2629
2635
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2630
2636
|
return e && t && !n ? (Y.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2631
|
-
},
|
|
2637
|
+
}, $o = (e) => X() || Wo() ? xo(e) : Vo(e);
|
|
2632
2638
|
function an({
|
|
2633
2639
|
code: e,
|
|
2634
2640
|
context: t,
|
|
@@ -2643,10 +2649,10 @@ function an({
|
|
|
2643
2649
|
return;
|
|
2644
2650
|
}
|
|
2645
2651
|
const u = {
|
|
2646
|
-
code:
|
|
2652
|
+
code: wo(e, {
|
|
2647
2653
|
isExpression: s
|
|
2648
2654
|
}),
|
|
2649
|
-
builder:
|
|
2655
|
+
builder: So(),
|
|
2650
2656
|
context: t,
|
|
2651
2657
|
event: i,
|
|
2652
2658
|
rootSetState: o,
|
|
@@ -2654,7 +2660,7 @@ function an({
|
|
|
2654
2660
|
localState: n
|
|
2655
2661
|
};
|
|
2656
2662
|
try {
|
|
2657
|
-
return
|
|
2663
|
+
return $o(u);
|
|
2658
2664
|
} catch (d) {
|
|
2659
2665
|
Y.error("Failed code evaluation: " + d.message, {
|
|
2660
2666
|
code: e
|
|
@@ -2663,7 +2669,7 @@ function an({
|
|
|
2663
2669
|
}
|
|
2664
2670
|
}
|
|
2665
2671
|
const pt = (e) => JSON.parse(JSON.stringify(e));
|
|
2666
|
-
const
|
|
2672
|
+
const Ho = ({
|
|
2667
2673
|
block: e,
|
|
2668
2674
|
context: t,
|
|
2669
2675
|
localState: n,
|
|
@@ -2689,7 +2695,7 @@ const Wo = ({
|
|
|
2689
2695
|
rootSetState: o,
|
|
2690
2696
|
context: t
|
|
2691
2697
|
});
|
|
2692
|
-
|
|
2698
|
+
fr(s, u, k);
|
|
2693
2699
|
}
|
|
2694
2700
|
return s;
|
|
2695
2701
|
};
|
|
@@ -2702,7 +2708,7 @@ function ct({
|
|
|
2702
2708
|
rootSetState: i
|
|
2703
2709
|
}) {
|
|
2704
2710
|
const s = e;
|
|
2705
|
-
return n ?
|
|
2711
|
+
return n ? Ho({
|
|
2706
2712
|
block: s,
|
|
2707
2713
|
localState: r,
|
|
2708
2714
|
rootState: o,
|
|
@@ -2710,7 +2716,7 @@ function ct({
|
|
|
2710
2716
|
context: t
|
|
2711
2717
|
}) : s;
|
|
2712
2718
|
}
|
|
2713
|
-
const
|
|
2719
|
+
const Ko = ({
|
|
2714
2720
|
block: e,
|
|
2715
2721
|
context: t,
|
|
2716
2722
|
registeredComponents: n
|
|
@@ -2732,7 +2738,7 @@ const $o = ({
|
|
|
2732
2738
|
console.warn(`
|
|
2733
2739
|
Could not find a registered component named "${r}".
|
|
2734
2740
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2735
|
-
},
|
|
2741
|
+
}, Go = ({
|
|
2736
2742
|
block: e,
|
|
2737
2743
|
context: t
|
|
2738
2744
|
}) => {
|
|
@@ -2765,7 +2771,7 @@ const $o = ({
|
|
|
2765
2771
|
},
|
|
2766
2772
|
block: r
|
|
2767
2773
|
}));
|
|
2768
|
-
},
|
|
2774
|
+
}, yr = {
|
|
2769
2775
|
small: {
|
|
2770
2776
|
min: 320,
|
|
2771
2777
|
default: 321,
|
|
@@ -2781,11 +2787,11 @@ const $o = ({
|
|
|
2781
2787
|
default: 991,
|
|
2782
2788
|
max: 1200
|
|
2783
2789
|
}
|
|
2784
|
-
}, Xn = (e, t =
|
|
2790
|
+
}, Xn = (e, t = yr) => `@media (max-width: ${t[e].max}px)`, vr = ({
|
|
2785
2791
|
small: e,
|
|
2786
2792
|
medium: t
|
|
2787
2793
|
}) => {
|
|
2788
|
-
const n = pt(
|
|
2794
|
+
const n = pt(yr);
|
|
2789
2795
|
if (!e || !t)
|
|
2790
2796
|
return n;
|
|
2791
2797
|
const r = Math.floor(e / 2);
|
|
@@ -2807,17 +2813,17 @@ const $o = ({
|
|
|
2807
2813
|
min: i,
|
|
2808
2814
|
default: i + 1
|
|
2809
2815
|
}, n;
|
|
2810
|
-
},
|
|
2816
|
+
}, Xo = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), br = (e) => Object.entries(e).map(([n, r]) => {
|
|
2811
2817
|
if (typeof r == "string")
|
|
2812
|
-
return `${
|
|
2813
|
-
}).filter(oe),
|
|
2814
|
-
`),
|
|
2818
|
+
return `${Xo(n)}: ${r};`;
|
|
2819
|
+
}).filter(oe), Yo = (e) => br(e).join(`
|
|
2820
|
+
`), Lt = ({
|
|
2815
2821
|
mediaQuery: e,
|
|
2816
2822
|
className: t,
|
|
2817
2823
|
styles: n
|
|
2818
2824
|
}) => {
|
|
2819
2825
|
const r = `.${t} {
|
|
2820
|
-
${
|
|
2826
|
+
${Yo(n)}
|
|
2821
2827
|
}`;
|
|
2822
2828
|
return e ? `${e} {
|
|
2823
2829
|
${r}
|
|
@@ -2826,7 +2832,7 @@ const $o = ({
|
|
|
2826
2832
|
function dt(e) {
|
|
2827
2833
|
return /* @__PURE__ */ C("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2828
2834
|
}
|
|
2829
|
-
function
|
|
2835
|
+
function Jo(e) {
|
|
2830
2836
|
const t = function() {
|
|
2831
2837
|
const o = ct({
|
|
2832
2838
|
block: e.block,
|
|
@@ -2846,22 +2852,22 @@ function Xo(e) {
|
|
|
2846
2852
|
rootSetState: e.context.rootSetState,
|
|
2847
2853
|
context: e.context.context,
|
|
2848
2854
|
shouldEvaluateBindings: !0
|
|
2849
|
-
}), i = o.responsiveStyles, s = e.context.content, u =
|
|
2855
|
+
}), i = o.responsiveStyles, s = e.context.content, u = vr(
|
|
2850
2856
|
((w = s == null ? void 0 : s.meta) == null ? void 0 : w.breakpoints) || {}
|
|
2851
2857
|
), d = i == null ? void 0 : i.large, k = i == null ? void 0 : i.medium, E = i == null ? void 0 : i.small, y = o.id;
|
|
2852
2858
|
if (!y)
|
|
2853
2859
|
return "";
|
|
2854
|
-
const R = d ?
|
|
2860
|
+
const R = d ? Lt({
|
|
2855
2861
|
className: y,
|
|
2856
2862
|
styles: d
|
|
2857
|
-
}) : "", j = k ?
|
|
2863
|
+
}) : "", j = k ? Lt({
|
|
2858
2864
|
className: y,
|
|
2859
2865
|
styles: k,
|
|
2860
2866
|
mediaQuery: Xn(
|
|
2861
2867
|
"medium",
|
|
2862
2868
|
u
|
|
2863
2869
|
)
|
|
2864
|
-
}) : "", v = E ?
|
|
2870
|
+
}) : "", v = E ? Lt({
|
|
2865
2871
|
className: y,
|
|
2866
2872
|
styles: E,
|
|
2867
2873
|
mediaQuery: Xn(
|
|
@@ -2873,10 +2879,10 @@ function Xo(e) {
|
|
|
2873
2879
|
};
|
|
2874
2880
|
return /* @__PURE__ */ C(W, { children: n() && t() ? /* @__PURE__ */ C(W, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
|
|
2875
2881
|
}
|
|
2876
|
-
function
|
|
2882
|
+
function zo(e) {
|
|
2877
2883
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2878
2884
|
}
|
|
2879
|
-
const
|
|
2885
|
+
const qo = (e) => `on${zo(e)}`, Zo = (e, t) => (n) => an({
|
|
2880
2886
|
code: e,
|
|
2881
2887
|
context: t.context,
|
|
2882
2888
|
localState: t.localState,
|
|
@@ -2885,13 +2891,13 @@ const Jo = (e) => `on${Yo(e)}`, zo = (e, t) => (n) => an({
|
|
|
2885
2891
|
event: n,
|
|
2886
2892
|
isExpression: !1
|
|
2887
2893
|
});
|
|
2888
|
-
function
|
|
2894
|
+
function Wa(e) {
|
|
2889
2895
|
const t = {}, n = e.block.actions ?? {};
|
|
2890
2896
|
for (const r in n) {
|
|
2891
2897
|
if (!n.hasOwnProperty(r))
|
|
2892
2898
|
continue;
|
|
2893
2899
|
const o = n[r];
|
|
2894
|
-
let i =
|
|
2900
|
+
let i = qo(r);
|
|
2895
2901
|
if (e.stripPrefix)
|
|
2896
2902
|
switch (he) {
|
|
2897
2903
|
case "vue":
|
|
@@ -2901,29 +2907,29 @@ function _a(e) {
|
|
|
2901
2907
|
i = i.replace("on:", "");
|
|
2902
2908
|
break;
|
|
2903
2909
|
}
|
|
2904
|
-
t[i] =
|
|
2910
|
+
t[i] = Zo(o, e);
|
|
2905
2911
|
}
|
|
2906
2912
|
return t;
|
|
2907
2913
|
}
|
|
2908
|
-
function
|
|
2914
|
+
function Qo({
|
|
2909
2915
|
style: e
|
|
2910
2916
|
}) {
|
|
2911
2917
|
return e;
|
|
2912
2918
|
}
|
|
2913
|
-
const
|
|
2919
|
+
const ei = ({
|
|
2914
2920
|
block: e,
|
|
2915
2921
|
context: t
|
|
2916
|
-
}) =>
|
|
2922
|
+
}) => Sr(Qo({
|
|
2917
2923
|
style: e.style || {},
|
|
2918
2924
|
context: t,
|
|
2919
2925
|
block: e
|
|
2920
2926
|
}));
|
|
2921
|
-
function
|
|
2927
|
+
function Sr(e) {
|
|
2922
2928
|
switch (he) {
|
|
2923
2929
|
case "svelte":
|
|
2924
2930
|
case "vue":
|
|
2925
2931
|
case "solid":
|
|
2926
|
-
return
|
|
2932
|
+
return br(e).join(" ");
|
|
2927
2933
|
case "qwik":
|
|
2928
2934
|
case "reactNative":
|
|
2929
2935
|
case "react":
|
|
@@ -2931,36 +2937,36 @@ function vr(e) {
|
|
|
2931
2937
|
return e;
|
|
2932
2938
|
}
|
|
2933
2939
|
}
|
|
2934
|
-
function
|
|
2940
|
+
function ti({
|
|
2935
2941
|
properties: e
|
|
2936
2942
|
}) {
|
|
2937
2943
|
return e;
|
|
2938
2944
|
}
|
|
2939
|
-
const
|
|
2945
|
+
const ni = (e) => ({
|
|
2940
2946
|
href: e.href
|
|
2941
2947
|
});
|
|
2942
|
-
function
|
|
2948
|
+
function ri({
|
|
2943
2949
|
block: e,
|
|
2944
2950
|
context: t
|
|
2945
2951
|
}) {
|
|
2946
2952
|
var r;
|
|
2947
2953
|
const n = {
|
|
2948
|
-
...
|
|
2954
|
+
...ni(e),
|
|
2949
2955
|
...e.properties,
|
|
2950
2956
|
"builder-id": e.id,
|
|
2951
|
-
style:
|
|
2957
|
+
style: ei({
|
|
2952
2958
|
block: e,
|
|
2953
2959
|
context: t
|
|
2954
2960
|
}),
|
|
2955
2961
|
[Gt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
2956
2962
|
};
|
|
2957
|
-
return
|
|
2963
|
+
return ti({
|
|
2958
2964
|
properties: n,
|
|
2959
2965
|
context: t,
|
|
2960
2966
|
block: e
|
|
2961
2967
|
});
|
|
2962
2968
|
}
|
|
2963
|
-
const
|
|
2969
|
+
const oi = ({
|
|
2964
2970
|
componentOptions: e,
|
|
2965
2971
|
builderBlock: t,
|
|
2966
2972
|
context: n,
|
|
@@ -2976,7 +2982,7 @@ const ni = ({
|
|
|
2976
2982
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2977
2983
|
*/
|
|
2978
2984
|
...o ? {
|
|
2979
|
-
attributes:
|
|
2985
|
+
attributes: ri({
|
|
2980
2986
|
block: t,
|
|
2981
2987
|
context: s
|
|
2982
2988
|
})
|
|
@@ -2992,11 +2998,11 @@ const ni = ({
|
|
|
2992
2998
|
};
|
|
2993
2999
|
function Yn(e) {
|
|
2994
3000
|
var n;
|
|
2995
|
-
const t = e.isInteractive ?
|
|
3001
|
+
const t = e.isInteractive ? eo : e.componentRef;
|
|
2996
3002
|
return /* @__PURE__ */ C(W, { children: e.componentRef ? /* @__PURE__ */ C(W, { children: /* @__PURE__ */ C(
|
|
2997
3003
|
t,
|
|
2998
3004
|
{
|
|
2999
|
-
...
|
|
3005
|
+
...oi({
|
|
3000
3006
|
componentOptions: e.componentOptions,
|
|
3001
3007
|
builderBlock: e.builderBlock,
|
|
3002
3008
|
context: e.context,
|
|
@@ -3019,7 +3025,7 @@ function Yn(e) {
|
|
|
3019
3025
|
}
|
|
3020
3026
|
) }) : null });
|
|
3021
3027
|
}
|
|
3022
|
-
function
|
|
3028
|
+
function ii(e) {
|
|
3023
3029
|
const t = e.repeatContext;
|
|
3024
3030
|
return /* @__PURE__ */ C(
|
|
3025
3031
|
ht,
|
|
@@ -3034,13 +3040,13 @@ function ri(e) {
|
|
|
3034
3040
|
function ht(e) {
|
|
3035
3041
|
var k, E, y;
|
|
3036
3042
|
const t = function() {
|
|
3037
|
-
return
|
|
3043
|
+
return Ko({
|
|
3038
3044
|
block: e.block,
|
|
3039
3045
|
context: e.context,
|
|
3040
3046
|
registeredComponents: e.registeredComponents
|
|
3041
3047
|
});
|
|
3042
3048
|
}, n = function() {
|
|
3043
|
-
return
|
|
3049
|
+
return Go({
|
|
3044
3050
|
block: e.block,
|
|
3045
3051
|
context: e.context
|
|
3046
3052
|
});
|
|
@@ -3072,7 +3078,7 @@ function ht(e) {
|
|
|
3072
3078
|
blockChildren: r().children ?? [],
|
|
3073
3079
|
componentRef: (j = t()) == null ? void 0 : j.component,
|
|
3074
3080
|
componentOptions: {
|
|
3075
|
-
...
|
|
3081
|
+
...mo(r()),
|
|
3076
3082
|
builderContext: e.context,
|
|
3077
3083
|
...((v = t()) == null ? void 0 : v.name) === "Core:Button" || ((w = t()) == null ? void 0 : w.name) === "Symbol" || ((U = t()) == null ? void 0 : U.name) === "Columns" || ((N = t()) == null ? void 0 : N.name) === "Form:Form" ? {
|
|
3078
3084
|
builderLinkComponent: e.linkComponent
|
|
@@ -3090,7 +3096,7 @@ function ht(e) {
|
|
|
3090
3096
|
};
|
|
3091
3097
|
}, d = e.context;
|
|
3092
3098
|
return /* @__PURE__ */ C(W, { children: i() ? /* @__PURE__ */ xe(W, { children: [
|
|
3093
|
-
/* @__PURE__ */ C(
|
|
3099
|
+
/* @__PURE__ */ C(Jo, { block: e.block, context: e.context }),
|
|
3094
3100
|
(k = t()) != null && k.noWrap ? /* @__PURE__ */ C(W, { children: /* @__PURE__ */ C(
|
|
3095
3101
|
Yn,
|
|
3096
3102
|
{
|
|
@@ -3105,7 +3111,7 @@ function ht(e) {
|
|
|
3105
3111
|
isInteractive: u().isInteractive
|
|
3106
3112
|
}
|
|
3107
3113
|
) }) : /* @__PURE__ */ C(W, { children: n() ? /* @__PURE__ */ C(W, { children: (y = n()) == null ? void 0 : y.map((R, j) => /* @__PURE__ */ C(
|
|
3108
|
-
|
|
3114
|
+
ii,
|
|
3109
3115
|
{
|
|
3110
3116
|
repeatContext: R.context,
|
|
3111
3117
|
block: R.block,
|
|
@@ -3114,7 +3120,7 @@ function ht(e) {
|
|
|
3114
3120
|
},
|
|
3115
3121
|
j
|
|
3116
3122
|
)) }) : /* @__PURE__ */ C(W, { children: /* @__PURE__ */ xe(
|
|
3117
|
-
|
|
3123
|
+
to,
|
|
3118
3124
|
{
|
|
3119
3125
|
Wrapper: o(),
|
|
3120
3126
|
block: r(),
|
|
@@ -3153,7 +3159,7 @@ function ht(e) {
|
|
|
3153
3159
|
function sn(e) {
|
|
3154
3160
|
var t, n, r;
|
|
3155
3161
|
return /* @__PURE__ */ C(
|
|
3156
|
-
|
|
3162
|
+
no,
|
|
3157
3163
|
{
|
|
3158
3164
|
blocks: e.blocks,
|
|
3159
3165
|
parent: e.parent,
|
|
@@ -3174,7 +3180,7 @@ function sn(e) {
|
|
|
3174
3180
|
}
|
|
3175
3181
|
);
|
|
3176
3182
|
}
|
|
3177
|
-
function
|
|
3183
|
+
function ai(e) {
|
|
3178
3184
|
var j;
|
|
3179
3185
|
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(w) {
|
|
3180
3186
|
var U;
|
|
@@ -3229,7 +3235,7 @@ function oi(e) {
|
|
|
3229
3235
|
};
|
|
3230
3236
|
}, y = function(w) {
|
|
3231
3237
|
var N, x;
|
|
3232
|
-
return
|
|
3238
|
+
return vr(
|
|
3233
3239
|
((x = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : x.breakpoints) || {}
|
|
3234
3240
|
)[w].max;
|
|
3235
3241
|
}, R = function() {
|
|
@@ -3268,7 +3274,7 @@ function oi(e) {
|
|
|
3268
3274
|
children: [
|
|
3269
3275
|
/* @__PURE__ */ C(W, { children: /* @__PURE__ */ C(dt, { styles: R() }) }),
|
|
3270
3276
|
(j = e.columns) == null ? void 0 : j.map((v, w) => /* @__PURE__ */ C(
|
|
3271
|
-
|
|
3277
|
+
ro,
|
|
3272
3278
|
{
|
|
3273
3279
|
TagName: v.link ? e.builderLinkComponent || "a" : "div",
|
|
3274
3280
|
actionAttributes: {},
|
|
@@ -3277,7 +3283,7 @@ function oi(e) {
|
|
|
3277
3283
|
href: v.link
|
|
3278
3284
|
} : {},
|
|
3279
3285
|
[Gt()]: "builder-column",
|
|
3280
|
-
style:
|
|
3286
|
+
style: Sr(E(w))
|
|
3281
3287
|
},
|
|
3282
3288
|
children: /* @__PURE__ */ C(
|
|
3283
3289
|
sn,
|
|
@@ -3308,11 +3314,11 @@ function oi(e) {
|
|
|
3308
3314
|
function Jn(e) {
|
|
3309
3315
|
return e.replace(/http(s)?:/, "");
|
|
3310
3316
|
}
|
|
3311
|
-
function
|
|
3317
|
+
function si(e = "", t, n) {
|
|
3312
3318
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3313
3319
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3314
3320
|
}
|
|
3315
|
-
function
|
|
3321
|
+
function li(e, t) {
|
|
3316
3322
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3317
3323
|
return e;
|
|
3318
3324
|
if (t === "master")
|
|
@@ -3324,23 +3330,23 @@ function ai(e, t) {
|
|
|
3324
3330
|
}
|
|
3325
3331
|
return null;
|
|
3326
3332
|
}
|
|
3327
|
-
function
|
|
3333
|
+
function $a(e) {
|
|
3328
3334
|
if (!e)
|
|
3329
3335
|
return e;
|
|
3330
3336
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
3331
3337
|
if (e.match(/builder\.io/)) {
|
|
3332
3338
|
let n = e;
|
|
3333
3339
|
const r = Number(e.split("?width=")[1]);
|
|
3334
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${
|
|
3340
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${si(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3335
3341
|
}
|
|
3336
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3342
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [li(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3337
3343
|
}
|
|
3338
|
-
const
|
|
3344
|
+
const ci = (e) => {
|
|
3339
3345
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3340
3346
|
return e;
|
|
3341
3347
|
const t = e.split(".");
|
|
3342
3348
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3343
|
-
},
|
|
3349
|
+
}, wr = ({
|
|
3344
3350
|
name: e,
|
|
3345
3351
|
canTrack: t
|
|
3346
3352
|
}) => {
|
|
@@ -3351,14 +3357,14 @@ const si = (e) => {
|
|
|
3351
3357
|
Y.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3352
3358
|
return;
|
|
3353
3359
|
}
|
|
3354
|
-
},
|
|
3360
|
+
}, xr = async (e) => wr(e), ui = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), fi = [["secure", ""], ["SameSite", "None"]], pi = ({
|
|
3355
3361
|
name: e,
|
|
3356
3362
|
value: t,
|
|
3357
3363
|
expires: n
|
|
3358
3364
|
}) => {
|
|
3359
|
-
const o = (X() ? location.protocol === "https:" : !0) ?
|
|
3360
|
-
return
|
|
3361
|
-
},
|
|
3365
|
+
const o = (X() ? location.protocol === "https:" : !0) ? fi : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", ci(window.location.hostname)], ...o];
|
|
3366
|
+
return ui(s);
|
|
3367
|
+
}, kr = async ({
|
|
3362
3368
|
name: e,
|
|
3363
3369
|
value: t,
|
|
3364
3370
|
expires: n,
|
|
@@ -3367,7 +3373,7 @@ const si = (e) => {
|
|
|
3367
3373
|
try {
|
|
3368
3374
|
if (!r)
|
|
3369
3375
|
return;
|
|
3370
|
-
const o =
|
|
3376
|
+
const o = pi({
|
|
3371
3377
|
name: e,
|
|
3372
3378
|
value: t,
|
|
3373
3379
|
expires: n
|
|
@@ -3376,24 +3382,24 @@ const si = (e) => {
|
|
|
3376
3382
|
} catch (o) {
|
|
3377
3383
|
Y.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3378
3384
|
}
|
|
3379
|
-
},
|
|
3385
|
+
}, di = "builder.tests", ln = (e) => `${di}.${e}`, hi = ({
|
|
3380
3386
|
contentId: e
|
|
3381
|
-
}) =>
|
|
3387
|
+
}) => xr({
|
|
3382
3388
|
name: ln(e),
|
|
3383
3389
|
canTrack: !0
|
|
3384
|
-
}),
|
|
3390
|
+
}), mi = ({
|
|
3385
3391
|
contentId: e
|
|
3386
|
-
}) =>
|
|
3392
|
+
}) => wr({
|
|
3387
3393
|
name: ln(e),
|
|
3388
3394
|
canTrack: !0
|
|
3389
|
-
}),
|
|
3395
|
+
}), gi = ({
|
|
3390
3396
|
contentId: e,
|
|
3391
3397
|
value: t
|
|
3392
|
-
}) =>
|
|
3398
|
+
}) => kr({
|
|
3393
3399
|
name: ln(e),
|
|
3394
3400
|
value: t,
|
|
3395
3401
|
canTrack: !0
|
|
3396
|
-
}),
|
|
3402
|
+
}), Cr = (e) => oe(e.id) && oe(e.variations) && Object.keys(e.variations).length > 0, yi = ({
|
|
3397
3403
|
id: e,
|
|
3398
3404
|
variations: t
|
|
3399
3405
|
}) => {
|
|
@@ -3406,15 +3412,15 @@ const si = (e) => {
|
|
|
3406
3412
|
return i;
|
|
3407
3413
|
}
|
|
3408
3414
|
return e;
|
|
3409
|
-
},
|
|
3410
|
-
const t =
|
|
3411
|
-
return
|
|
3415
|
+
}, Er = (e) => {
|
|
3416
|
+
const t = yi(e);
|
|
3417
|
+
return gi({
|
|
3412
3418
|
contentId: e.id,
|
|
3413
3419
|
value: t
|
|
3414
3420
|
}).catch((n) => {
|
|
3415
3421
|
Y.error("could not store A/B test variation: ", n);
|
|
3416
3422
|
}), t;
|
|
3417
|
-
},
|
|
3423
|
+
}, Ir = ({
|
|
3418
3424
|
item: e,
|
|
3419
3425
|
testGroupId: t
|
|
3420
3426
|
}) => {
|
|
@@ -3428,7 +3434,7 @@ const si = (e) => {
|
|
|
3428
3434
|
testVariationId: n.id,
|
|
3429
3435
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3430
3436
|
};
|
|
3431
|
-
},
|
|
3437
|
+
}, vi = ({
|
|
3432
3438
|
item: e,
|
|
3433
3439
|
canTrack: t
|
|
3434
3440
|
}) => {
|
|
@@ -3436,14 +3442,14 @@ const si = (e) => {
|
|
|
3436
3442
|
return e;
|
|
3437
3443
|
if (!e)
|
|
3438
3444
|
return;
|
|
3439
|
-
if (!
|
|
3445
|
+
if (!Cr(e))
|
|
3440
3446
|
return e;
|
|
3441
|
-
const n =
|
|
3447
|
+
const n = mi({
|
|
3442
3448
|
contentId: e.id
|
|
3443
|
-
}) ||
|
|
3449
|
+
}) || Er({
|
|
3444
3450
|
variations: e.variations,
|
|
3445
3451
|
id: e.id
|
|
3446
|
-
}), r =
|
|
3452
|
+
}), r = Ir({
|
|
3447
3453
|
item: e,
|
|
3448
3454
|
testGroupId: n
|
|
3449
3455
|
});
|
|
@@ -3451,18 +3457,18 @@ const si = (e) => {
|
|
|
3451
3457
|
...e,
|
|
3452
3458
|
...r
|
|
3453
3459
|
};
|
|
3454
|
-
},
|
|
3460
|
+
}, bi = async ({
|
|
3455
3461
|
item: e,
|
|
3456
3462
|
canTrack: t
|
|
3457
3463
|
}) => {
|
|
3458
|
-
if (!t || !
|
|
3464
|
+
if (!t || !Cr(e))
|
|
3459
3465
|
return e;
|
|
3460
|
-
const r = await
|
|
3466
|
+
const r = await hi({
|
|
3461
3467
|
contentId: e.id
|
|
3462
|
-
}) ||
|
|
3468
|
+
}) || Er({
|
|
3463
3469
|
variations: e.variations,
|
|
3464
3470
|
id: e.id
|
|
3465
|
-
}), o =
|
|
3471
|
+
}), o = Ir({
|
|
3466
3472
|
item: e,
|
|
3467
3473
|
testGroupId: r
|
|
3468
3474
|
});
|
|
@@ -3470,7 +3476,7 @@ const si = (e) => {
|
|
|
3470
3476
|
...e,
|
|
3471
3477
|
...o
|
|
3472
3478
|
};
|
|
3473
|
-
}, $t = (e) => oe(e) ? e : !0,
|
|
3479
|
+
}, $t = (e) => oe(e) ? e : !0, Si = {
|
|
3474
3480
|
name: "Core:Button",
|
|
3475
3481
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3476
3482
|
defaultStyles: {
|
|
@@ -3503,7 +3509,7 @@ const si = (e) => {
|
|
|
3503
3509
|
}],
|
|
3504
3510
|
static: !0,
|
|
3505
3511
|
noWrap: !0
|
|
3506
|
-
},
|
|
3512
|
+
}, wi = {
|
|
3507
3513
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3508
3514
|
name: "Columns",
|
|
3509
3515
|
isRSC: !0,
|
|
@@ -3704,13 +3710,13 @@ const si = (e) => {
|
|
|
3704
3710
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3705
3711
|
advanced: !0
|
|
3706
3712
|
}]
|
|
3707
|
-
},
|
|
3713
|
+
}, xi = {
|
|
3708
3714
|
name: "Fragment",
|
|
3709
3715
|
static: !0,
|
|
3710
3716
|
hidden: !0,
|
|
3711
3717
|
canHaveChildren: !0,
|
|
3712
3718
|
noWrap: !0
|
|
3713
|
-
},
|
|
3719
|
+
}, ki = {
|
|
3714
3720
|
name: "Image",
|
|
3715
3721
|
static: !0,
|
|
3716
3722
|
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",
|
|
@@ -3810,7 +3816,7 @@ const si = (e) => {
|
|
|
3810
3816
|
advanced: !0,
|
|
3811
3817
|
defaultValue: 0.7041
|
|
3812
3818
|
}]
|
|
3813
|
-
},
|
|
3819
|
+
}, Ci = {
|
|
3814
3820
|
name: "Core:Section",
|
|
3815
3821
|
static: !0,
|
|
3816
3822
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3849,7 +3855,7 @@ const si = (e) => {
|
|
|
3849
3855
|
}
|
|
3850
3856
|
}
|
|
3851
3857
|
}]
|
|
3852
|
-
},
|
|
3858
|
+
}, Ei = {
|
|
3853
3859
|
name: "Slot",
|
|
3854
3860
|
isRSC: !0,
|
|
3855
3861
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3863,7 +3869,7 @@ const si = (e) => {
|
|
|
3863
3869
|
defaultValue: "children"
|
|
3864
3870
|
}]
|
|
3865
3871
|
};
|
|
3866
|
-
function
|
|
3872
|
+
function Ii(e) {
|
|
3867
3873
|
var t, n, r;
|
|
3868
3874
|
return /* @__PURE__ */ C(
|
|
3869
3875
|
"div",
|
|
@@ -3886,7 +3892,7 @@ function Ci(e) {
|
|
|
3886
3892
|
}
|
|
3887
3893
|
);
|
|
3888
3894
|
}
|
|
3889
|
-
const
|
|
3895
|
+
const Ti = {
|
|
3890
3896
|
name: "Symbol",
|
|
3891
3897
|
noWrap: !0,
|
|
3892
3898
|
static: !0,
|
|
@@ -3919,7 +3925,7 @@ const Ei = {
|
|
|
3919
3925
|
hideFromUI: !0,
|
|
3920
3926
|
type: "boolean"
|
|
3921
3927
|
}]
|
|
3922
|
-
},
|
|
3928
|
+
}, Ai = {
|
|
3923
3929
|
name: "Text",
|
|
3924
3930
|
static: !0,
|
|
3925
3931
|
isRSC: !0,
|
|
@@ -3938,7 +3944,7 @@ const Ei = {
|
|
|
3938
3944
|
textAlign: "center"
|
|
3939
3945
|
}
|
|
3940
3946
|
};
|
|
3941
|
-
function
|
|
3947
|
+
function Oi(e) {
|
|
3942
3948
|
var t;
|
|
3943
3949
|
return /* @__PURE__ */ C(
|
|
3944
3950
|
"div",
|
|
@@ -3951,7 +3957,7 @@ function Ti(e) {
|
|
|
3951
3957
|
}
|
|
3952
3958
|
);
|
|
3953
3959
|
}
|
|
3954
|
-
const
|
|
3960
|
+
const ji = {
|
|
3955
3961
|
name: "Custom Code",
|
|
3956
3962
|
static: !0,
|
|
3957
3963
|
requiredPermissions: ["editCode"],
|
|
@@ -3973,7 +3979,7 @@ const Ai = {
|
|
|
3973
3979
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3974
3980
|
advanced: !0
|
|
3975
3981
|
}]
|
|
3976
|
-
},
|
|
3982
|
+
}, Ri = {
|
|
3977
3983
|
name: "Embed",
|
|
3978
3984
|
static: !0,
|
|
3979
3985
|
inputs: [{
|
|
@@ -3998,7 +4004,7 @@ const Ai = {
|
|
|
3998
4004
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3999
4005
|
hideFromUI: !0
|
|
4000
4006
|
}]
|
|
4001
|
-
},
|
|
4007
|
+
}, Pi = ["text/javascript", "application/javascript", "application/ecmascript"], Ha = (e) => Pi.includes(e.type), Ni = {
|
|
4002
4008
|
// friendlyName?
|
|
4003
4009
|
name: "Raw:Img",
|
|
4004
4010
|
hideFromInsertMenu: !0,
|
|
@@ -4012,7 +4018,7 @@ const Ai = {
|
|
|
4012
4018
|
}],
|
|
4013
4019
|
noWrap: !0,
|
|
4014
4020
|
static: !0
|
|
4015
|
-
},
|
|
4021
|
+
}, Bi = {
|
|
4016
4022
|
name: "Video",
|
|
4017
4023
|
canHaveChildren: !0,
|
|
4018
4024
|
defaultStyles: {
|
|
@@ -4093,58 +4099,58 @@ const Ai = {
|
|
|
4093
4099
|
defaultValue: !0,
|
|
4094
4100
|
advanced: !0
|
|
4095
4101
|
}]
|
|
4096
|
-
},
|
|
4097
|
-
component: ro,
|
|
4098
|
-
...Ai
|
|
4099
|
-
}, {
|
|
4102
|
+
}, Ui = () => [{
|
|
4100
4103
|
component: oo,
|
|
4101
|
-
...
|
|
4104
|
+
...ji
|
|
4102
4105
|
}, {
|
|
4103
4106
|
component: io,
|
|
4104
4107
|
...Ri
|
|
4105
4108
|
}, {
|
|
4106
4109
|
component: ao,
|
|
4107
|
-
...
|
|
4108
|
-
}], zn = () => [{
|
|
4109
|
-
component: so,
|
|
4110
|
-
...vi
|
|
4111
|
-
}, {
|
|
4112
|
-
component: oi,
|
|
4113
|
-
...bi
|
|
4110
|
+
...Ni
|
|
4114
4111
|
}, {
|
|
4112
|
+
component: so,
|
|
4113
|
+
...Bi
|
|
4114
|
+
}], zn = () => [{
|
|
4115
4115
|
component: lo,
|
|
4116
4116
|
...Si
|
|
4117
4117
|
}, {
|
|
4118
|
-
component:
|
|
4118
|
+
component: ai,
|
|
4119
4119
|
...wi
|
|
4120
4120
|
}, {
|
|
4121
|
-
component:
|
|
4121
|
+
component: co,
|
|
4122
4122
|
...xi
|
|
4123
4123
|
}, {
|
|
4124
|
-
component:
|
|
4124
|
+
component: uo,
|
|
4125
4125
|
...ki
|
|
4126
4126
|
}, {
|
|
4127
|
-
component:
|
|
4127
|
+
component: fo,
|
|
4128
|
+
...Ci
|
|
4129
|
+
}, {
|
|
4130
|
+
component: Ii,
|
|
4128
4131
|
...Ei
|
|
4129
4132
|
}, {
|
|
4130
|
-
component:
|
|
4131
|
-
...
|
|
4132
|
-
},
|
|
4133
|
+
component: Ua,
|
|
4134
|
+
...Ti
|
|
4135
|
+
}, {
|
|
4136
|
+
component: Oi,
|
|
4137
|
+
...Ai
|
|
4138
|
+
}, ...Ui()], Ka = (e) => ({
|
|
4133
4139
|
type: "builder.registerComponent",
|
|
4134
4140
|
data: Ht(e)
|
|
4135
|
-
}),
|
|
4141
|
+
}), Fi = (e) => {
|
|
4136
4142
|
const t = e.toString().trim();
|
|
4137
4143
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4138
|
-
},
|
|
4144
|
+
}, Mi = (e) => typeof e == "function" ? Fi(e) : pt(e), Ht = ({
|
|
4139
4145
|
inputs: e,
|
|
4140
4146
|
...t
|
|
4141
4147
|
}) => ({
|
|
4142
4148
|
...pt(t),
|
|
4143
4149
|
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4144
4150
|
...r,
|
|
4145
|
-
[o]:
|
|
4151
|
+
[o]: Mi(i)
|
|
4146
4152
|
}), {}))
|
|
4147
|
-
}),
|
|
4153
|
+
}), Di = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4148
4154
|
function getAndSetVariantId() {
|
|
4149
4155
|
function setCookie(name, value, days) {
|
|
4150
4156
|
let expires = '';
|
|
@@ -4200,7 +4206,7 @@ const Ai = {
|
|
|
4200
4206
|
}).join('');
|
|
4201
4207
|
styleEl.innerHTML = newStyleStr;
|
|
4202
4208
|
}
|
|
4203
|
-
}`,
|
|
4209
|
+
}`, Li = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4204
4210
|
if (!navigator.cookieEnabled) {
|
|
4205
4211
|
return;
|
|
4206
4212
|
}
|
|
@@ -4234,24 +4240,24 @@ const Ai = {
|
|
|
4234
4240
|
thisScriptEl?.remove();
|
|
4235
4241
|
}
|
|
4236
4242
|
return;
|
|
4237
|
-
}`,
|
|
4243
|
+
}`, Tr = "builderIoAbTest", Ar = "builderIoRenderContent", st = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4238
4244
|
...t,
|
|
4239
4245
|
testVariationId: t.id,
|
|
4240
4246
|
id: e == null ? void 0 : e.id
|
|
4241
|
-
})),
|
|
4247
|
+
})), Vi = ({
|
|
4242
4248
|
canTrack: e,
|
|
4243
4249
|
content: t
|
|
4244
|
-
}) => !(!(st(t).length > 0) || !e || X()),
|
|
4245
|
-
window.${
|
|
4246
|
-
window.${
|
|
4247
|
-
`,
|
|
4248
|
-
window.${
|
|
4249
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4250
|
-
)`,
|
|
4250
|
+
}) => !(!(st(t).length > 0) || !e || X()), _i = (e) => e === "react" || e === "reactNative", Or = _i(he), Wi = () => `
|
|
4251
|
+
window.${Tr} = ${Di}
|
|
4252
|
+
window.${Ar} = ${Li}
|
|
4253
|
+
`, $i = (e, t) => `
|
|
4254
|
+
window.${Tr}(
|
|
4255
|
+
"${t}",${JSON.stringify(e)}, ${Or}
|
|
4256
|
+
)`, Hi = ({
|
|
4251
4257
|
contentId: e,
|
|
4252
4258
|
variationId: t
|
|
4253
|
-
}) => `window.${
|
|
4254
|
-
"${t}", "${e}", ${
|
|
4259
|
+
}) => `window.${Ar}(
|
|
4260
|
+
"${t}", "${e}", ${Or}
|
|
4255
4261
|
)`;
|
|
4256
4262
|
function Kt(e) {
|
|
4257
4263
|
return /* @__PURE__ */ C(
|
|
@@ -4262,33 +4268,33 @@ function Kt(e) {
|
|
|
4262
4268
|
}
|
|
4263
4269
|
);
|
|
4264
4270
|
}
|
|
4265
|
-
const
|
|
4271
|
+
const Ki = (e) => {
|
|
4266
4272
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4267
4273
|
return n || Y.warn("No previewed ID found in search params."), n;
|
|
4268
4274
|
};
|
|
4269
|
-
function
|
|
4270
|
-
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new
|
|
4275
|
+
function Gi() {
|
|
4276
|
+
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Qr({
|
|
4271
4277
|
max: 500,
|
|
4272
4278
|
// how long to live in ms
|
|
4273
4279
|
ttl: 1e3 * 60 * 5
|
|
4274
4280
|
}));
|
|
4275
4281
|
}
|
|
4276
|
-
function
|
|
4277
|
-
|
|
4278
|
-
const t =
|
|
4282
|
+
function Xi(e) {
|
|
4283
|
+
Gi();
|
|
4284
|
+
const t = Ki(e);
|
|
4279
4285
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4280
4286
|
}
|
|
4281
|
-
function
|
|
4287
|
+
function Yi() {
|
|
4282
4288
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4283
4289
|
}
|
|
4284
|
-
function
|
|
4285
|
-
const e =
|
|
4290
|
+
function Ji() {
|
|
4291
|
+
const e = Yi().fetch;
|
|
4286
4292
|
if (typeof e > "u")
|
|
4287
4293
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4288
4294
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4289
4295
|
return e;
|
|
4290
4296
|
}
|
|
4291
|
-
const
|
|
4297
|
+
const zi = Ji();
|
|
4292
4298
|
function lt(e, t = null, n = ".") {
|
|
4293
4299
|
return Object.keys(e).reduce((r, o) => {
|
|
4294
4300
|
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
@@ -4301,27 +4307,22 @@ function lt(e, t = null, n = ".") {
|
|
|
4301
4307
|
};
|
|
4302
4308
|
}, {});
|
|
4303
4309
|
}
|
|
4304
|
-
const
|
|
4305
|
-
const t = {};
|
|
4306
|
-
return e.forEach((n, r) => {
|
|
4307
|
-
t[r] = n;
|
|
4308
|
-
}), t;
|
|
4309
|
-
}, Ar = (e) => {
|
|
4310
|
+
const qi = "v3", qn = "builder.", Zi = "options.", jr = (e) => {
|
|
4310
4311
|
if (!e)
|
|
4311
4312
|
return {};
|
|
4312
|
-
const t =
|
|
4313
|
+
const t = ar(e), n = {};
|
|
4313
4314
|
return Object.keys(t).forEach((r) => {
|
|
4314
4315
|
if (r.startsWith(qn)) {
|
|
4315
|
-
const o = r.replace(qn, "").replace(
|
|
4316
|
+
const o = r.replace(qn, "").replace(Zi, "");
|
|
4316
4317
|
n[o] = t[r];
|
|
4317
4318
|
}
|
|
4318
4319
|
}), n;
|
|
4319
|
-
},
|
|
4320
|
+
}, Qi = () => {
|
|
4320
4321
|
if (!X())
|
|
4321
4322
|
return {};
|
|
4322
4323
|
const e = new URLSearchParams(window.location.search);
|
|
4323
|
-
return
|
|
4324
|
-
},
|
|
4324
|
+
return jr(e);
|
|
4325
|
+
}, Zn = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
|
|
4325
4326
|
const {
|
|
4326
4327
|
limit: t = 30,
|
|
4327
4328
|
userAttributes: n,
|
|
@@ -4330,7 +4331,7 @@ const Ji = "v3", qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4330
4331
|
apiKey: i,
|
|
4331
4332
|
enrich: s,
|
|
4332
4333
|
locale: u,
|
|
4333
|
-
apiVersion: d =
|
|
4334
|
+
apiVersion: d = qi,
|
|
4334
4335
|
fields: k,
|
|
4335
4336
|
omit: E,
|
|
4336
4337
|
offset: y,
|
|
@@ -4352,8 +4353,8 @@ const Ji = "v3", qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4352
4353
|
N.searchParams.set(ee, JSON.stringify(H[ee]));
|
|
4353
4354
|
}
|
|
4354
4355
|
const x = {
|
|
4355
|
-
...
|
|
4356
|
-
...
|
|
4356
|
+
...Qi(),
|
|
4357
|
+
...ar(e.options || {})
|
|
4357
4358
|
}, Q = lt(x);
|
|
4358
4359
|
for (const H in Q)
|
|
4359
4360
|
N.searchParams.set(H, String(Q[H]));
|
|
@@ -4365,23 +4366,23 @@ const Ji = "v3", qn = "builder.", zi = "options.", qi = (e) => {
|
|
|
4365
4366
|
N.searchParams.set(ee, JSON.stringify(H[ee]));
|
|
4366
4367
|
}
|
|
4367
4368
|
return N;
|
|
4368
|
-
},
|
|
4369
|
-
async function
|
|
4370
|
-
const t = await
|
|
4369
|
+
}, ea = (e) => "results" in e;
|
|
4370
|
+
async function Rr(e) {
|
|
4371
|
+
const t = await ra({
|
|
4371
4372
|
...e,
|
|
4372
4373
|
limit: 1
|
|
4373
4374
|
});
|
|
4374
4375
|
return t && t[0] || null;
|
|
4375
4376
|
}
|
|
4376
|
-
const
|
|
4377
|
+
const ta = async (e) => {
|
|
4377
4378
|
const t = cn(e);
|
|
4378
|
-
return await (await
|
|
4379
|
-
},
|
|
4379
|
+
return await (await zi(t.href)).json();
|
|
4380
|
+
}, na = async (e, t, n = cn(e)) => {
|
|
4380
4381
|
const r = $t(e.canTrack);
|
|
4381
4382
|
if (n.search.includes("preview=")) {
|
|
4382
4383
|
const i = [];
|
|
4383
4384
|
for (const s of t.results) {
|
|
4384
|
-
const u =
|
|
4385
|
+
const u = Xi(n.searchParams);
|
|
4385
4386
|
i.push(u || s);
|
|
4386
4387
|
}
|
|
4387
4388
|
t.results = i;
|
|
@@ -4391,7 +4392,7 @@ const ea = async (e) => {
|
|
|
4391
4392
|
try {
|
|
4392
4393
|
const i = [];
|
|
4393
4394
|
for (const s of t.results)
|
|
4394
|
-
i.push(await
|
|
4395
|
+
i.push(await bi({
|
|
4395
4396
|
item: s,
|
|
4396
4397
|
canTrack: r
|
|
4397
4398
|
}));
|
|
@@ -4401,10 +4402,10 @@ const ea = async (e) => {
|
|
|
4401
4402
|
}
|
|
4402
4403
|
return t.results;
|
|
4403
4404
|
};
|
|
4404
|
-
async function
|
|
4405
|
+
async function ra(e) {
|
|
4405
4406
|
try {
|
|
4406
|
-
const t = cn(e), n = await
|
|
4407
|
-
return
|
|
4407
|
+
const t = cn(e), n = await ta(e);
|
|
4408
|
+
return ea(n) ? na(e, n) : (Y.error("Error fetching data. ", {
|
|
4408
4409
|
url: t,
|
|
4409
4410
|
content: n,
|
|
4410
4411
|
options: e
|
|
@@ -4413,91 +4414,94 @@ async function na(e) {
|
|
|
4413
4414
|
return Y.error("Error fetching data. ", t), null;
|
|
4414
4415
|
}
|
|
4415
4416
|
}
|
|
4416
|
-
function
|
|
4417
|
-
|
|
4417
|
+
function Ga(e) {
|
|
4418
|
+
if (!X())
|
|
4419
|
+
return !1;
|
|
4420
|
+
const t = sr(e || window.location.search);
|
|
4421
|
+
return Xt(t) ? !1 : t.indexOf("builder.preview=") !== -1;
|
|
4418
4422
|
}
|
|
4419
|
-
function
|
|
4423
|
+
function oa() {
|
|
4420
4424
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4421
4425
|
const t = Math.random() * 16 | 0;
|
|
4422
4426
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4423
4427
|
});
|
|
4424
4428
|
}
|
|
4425
|
-
function
|
|
4426
|
-
return
|
|
4429
|
+
function Pr() {
|
|
4430
|
+
return oa().replace(/-/g, "");
|
|
4427
4431
|
}
|
|
4428
|
-
const
|
|
4432
|
+
const Nr = "builderSessionId", ia = async ({
|
|
4429
4433
|
canTrack: e
|
|
4430
4434
|
}) => {
|
|
4431
4435
|
if (!e)
|
|
4432
4436
|
return;
|
|
4433
|
-
const t = await
|
|
4434
|
-
name:
|
|
4437
|
+
const t = await xr({
|
|
4438
|
+
name: Nr,
|
|
4435
4439
|
canTrack: e
|
|
4436
4440
|
});
|
|
4437
4441
|
if (oe(t))
|
|
4438
4442
|
return t;
|
|
4439
4443
|
{
|
|
4440
|
-
const n =
|
|
4441
|
-
return
|
|
4444
|
+
const n = aa();
|
|
4445
|
+
return sa({
|
|
4442
4446
|
id: n,
|
|
4443
4447
|
canTrack: e
|
|
4444
4448
|
}), n;
|
|
4445
4449
|
}
|
|
4446
|
-
},
|
|
4450
|
+
}, aa = () => Pr(), sa = ({
|
|
4447
4451
|
id: e,
|
|
4448
4452
|
canTrack: t
|
|
4449
|
-
}) =>
|
|
4450
|
-
name:
|
|
4453
|
+
}) => kr({
|
|
4454
|
+
name: Nr,
|
|
4451
4455
|
value: e,
|
|
4452
4456
|
canTrack: t
|
|
4453
|
-
}),
|
|
4457
|
+
}), Br = () => X() && typeof localStorage < "u" ? localStorage : void 0, la = ({
|
|
4454
4458
|
key: e,
|
|
4455
4459
|
canTrack: t
|
|
4456
4460
|
}) => {
|
|
4457
4461
|
var n;
|
|
4458
4462
|
try {
|
|
4459
|
-
return t ? (n =
|
|
4463
|
+
return t ? (n = Br()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4460
4464
|
} catch (r) {
|
|
4461
4465
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4462
4466
|
return;
|
|
4463
4467
|
}
|
|
4464
|
-
},
|
|
4468
|
+
}, ca = ({
|
|
4465
4469
|
key: e,
|
|
4466
4470
|
canTrack: t,
|
|
4467
4471
|
value: n
|
|
4468
4472
|
}) => {
|
|
4469
4473
|
var r;
|
|
4470
4474
|
try {
|
|
4471
|
-
t && ((r =
|
|
4475
|
+
t && ((r = Br()) == null || r.setItem(e, n));
|
|
4472
4476
|
} catch (o) {
|
|
4473
4477
|
console.debug("[LocalStorage] SET error: ", o);
|
|
4474
4478
|
}
|
|
4475
|
-
},
|
|
4479
|
+
}, Ur = "builderVisitorId", ua = ({
|
|
4476
4480
|
canTrack: e
|
|
4477
4481
|
}) => {
|
|
4478
4482
|
if (!e)
|
|
4479
4483
|
return;
|
|
4480
|
-
const t =
|
|
4481
|
-
key:
|
|
4484
|
+
const t = la({
|
|
4485
|
+
key: Ur,
|
|
4482
4486
|
canTrack: e
|
|
4483
4487
|
});
|
|
4484
4488
|
if (oe(t))
|
|
4485
4489
|
return t;
|
|
4486
4490
|
{
|
|
4487
|
-
const n =
|
|
4488
|
-
return
|
|
4491
|
+
const n = fa();
|
|
4492
|
+
return pa({
|
|
4489
4493
|
id: n,
|
|
4490
4494
|
canTrack: e
|
|
4491
4495
|
}), n;
|
|
4492
4496
|
}
|
|
4493
|
-
},
|
|
4497
|
+
}, fa = () => Pr(), pa = ({
|
|
4494
4498
|
id: e,
|
|
4495
4499
|
canTrack: t
|
|
4496
|
-
}) =>
|
|
4497
|
-
key:
|
|
4500
|
+
}) => ca({
|
|
4501
|
+
key: Ur,
|
|
4498
4502
|
value: e,
|
|
4499
4503
|
canTrack: t
|
|
4500
|
-
}),
|
|
4504
|
+
}), da = async ({
|
|
4501
4505
|
canTrack: e
|
|
4502
4506
|
}) => {
|
|
4503
4507
|
if (!e)
|
|
@@ -4505,16 +4509,16 @@ const Pr = "builderSessionId", oa = async ({
|
|
|
4505
4509
|
visitorId: void 0,
|
|
4506
4510
|
sessionId: void 0
|
|
4507
4511
|
};
|
|
4508
|
-
const t = await
|
|
4512
|
+
const t = await ia({
|
|
4509
4513
|
canTrack: e
|
|
4510
|
-
}), n =
|
|
4514
|
+
}), n = ua({
|
|
4511
4515
|
canTrack: e
|
|
4512
4516
|
});
|
|
4513
4517
|
return {
|
|
4514
4518
|
sessionId: t,
|
|
4515
4519
|
visitorId: n
|
|
4516
4520
|
};
|
|
4517
|
-
},
|
|
4521
|
+
}, ha = async ({
|
|
4518
4522
|
type: e,
|
|
4519
4523
|
canTrack: t,
|
|
4520
4524
|
apiKey: n,
|
|
@@ -4528,14 +4532,14 @@ const Pr = "builderSessionId", oa = async ({
|
|
|
4528
4532
|
url: location.href,
|
|
4529
4533
|
...r
|
|
4530
4534
|
},
|
|
4531
|
-
...await
|
|
4535
|
+
...await da({
|
|
4532
4536
|
canTrack: t
|
|
4533
4537
|
}),
|
|
4534
|
-
userAttributes:
|
|
4538
|
+
userAttributes: lr(),
|
|
4535
4539
|
ownerId: n
|
|
4536
4540
|
}
|
|
4537
4541
|
});
|
|
4538
|
-
async function
|
|
4542
|
+
async function ma(e) {
|
|
4539
4543
|
if (!e.apiKey) {
|
|
4540
4544
|
Y.error("Missing API key for track call. Please provide your API key.");
|
|
4541
4545
|
return;
|
|
@@ -4544,7 +4548,7 @@ async function ha(e) {
|
|
|
4544
4548
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4545
4549
|
method: "POST",
|
|
4546
4550
|
body: JSON.stringify({
|
|
4547
|
-
events: [await
|
|
4551
|
+
events: [await ha(e)]
|
|
4548
4552
|
}),
|
|
4549
4553
|
headers: {
|
|
4550
4554
|
"content-type": "application/json"
|
|
@@ -4554,14 +4558,14 @@ async function ha(e) {
|
|
|
4554
4558
|
console.error("Failed to track: ", t);
|
|
4555
4559
|
});
|
|
4556
4560
|
}
|
|
4557
|
-
const
|
|
4561
|
+
const Xa = (e) => ma({
|
|
4558
4562
|
...e,
|
|
4559
4563
|
canTrack: !0
|
|
4560
4564
|
});
|
|
4561
4565
|
function Qn(e) {
|
|
4562
4566
|
return Math.round(e * 1e3) / 1e3;
|
|
4563
4567
|
}
|
|
4564
|
-
const
|
|
4568
|
+
const ga = (e, t, n = !0) => {
|
|
4565
4569
|
if (!(e instanceof HTMLElement))
|
|
4566
4570
|
return null;
|
|
4567
4571
|
let r = n ? e : e.parentElement;
|
|
@@ -4572,7 +4576,7 @@ const ma = (e, t, n = !0) => {
|
|
|
4572
4576
|
return r;
|
|
4573
4577
|
} while (r = r.parentElement);
|
|
4574
4578
|
return null;
|
|
4575
|
-
},
|
|
4579
|
+
}, ya = (e) => ga(e, (t) => {
|
|
4576
4580
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4577
4581
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4578
4582
|
}), er = ({
|
|
@@ -4584,8 +4588,8 @@ const ma = (e, t, n = !0) => {
|
|
|
4584
4588
|
x: i,
|
|
4585
4589
|
y: s
|
|
4586
4590
|
};
|
|
4587
|
-
},
|
|
4588
|
-
const t = e.target, n = t &&
|
|
4591
|
+
}, Ya = (e) => {
|
|
4592
|
+
const t = e.target, n = t && ya(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4589
4593
|
return {
|
|
4590
4594
|
targetBuilderElement: r || void 0,
|
|
4591
4595
|
metadata: {
|
|
@@ -4600,13 +4604,13 @@ const ma = (e, t, n = !0) => {
|
|
|
4600
4604
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4601
4605
|
}
|
|
4602
4606
|
};
|
|
4603
|
-
},
|
|
4604
|
-
function
|
|
4607
|
+
}, va = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4608
|
+
function Fr(e, t) {
|
|
4605
4609
|
const n = new URL(t.origin), r = n.hostname;
|
|
4606
|
-
return (e ||
|
|
4610
|
+
return (e || va).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
|
|
4607
4611
|
}
|
|
4608
|
-
const
|
|
4609
|
-
function
|
|
4612
|
+
const ba = "0.14.4", tr = {};
|
|
4613
|
+
function Sa(e, t) {
|
|
4610
4614
|
let n = tr[e];
|
|
4611
4615
|
if (n || (n = tr[e] = []), n.push(t), X()) {
|
|
4612
4616
|
const r = {
|
|
@@ -4623,8 +4627,8 @@ function ba(e, t) {
|
|
|
4623
4627
|
}
|
|
4624
4628
|
}
|
|
4625
4629
|
}
|
|
4626
|
-
const
|
|
4627
|
-
|
|
4630
|
+
const Ja = () => {
|
|
4631
|
+
Sa("insertMenu", {
|
|
4628
4632
|
name: "_default",
|
|
4629
4633
|
default: !0,
|
|
4630
4634
|
items: [{
|
|
@@ -4647,13 +4651,13 @@ const Ya = () => {
|
|
|
4647
4651
|
});
|
|
4648
4652
|
};
|
|
4649
4653
|
let nr = !1;
|
|
4650
|
-
const
|
|
4654
|
+
const wa = (e = {}) => {
|
|
4651
4655
|
var t, n;
|
|
4652
4656
|
nr || (nr = !0, X() && ((t = window.parent) == null || t.postMessage({
|
|
4653
4657
|
type: "builder.sdkInfo",
|
|
4654
4658
|
data: {
|
|
4655
4659
|
target: he,
|
|
4656
|
-
version:
|
|
4660
|
+
version: ba,
|
|
4657
4661
|
supportsPatchUpdates: !1,
|
|
4658
4662
|
// Supports builder-model="..." attribute which is needed to
|
|
4659
4663
|
// scope our '+ add block' button styling
|
|
@@ -4667,7 +4671,7 @@ const Sa = (e = {}) => {
|
|
|
4667
4671
|
}
|
|
4668
4672
|
}, "*"), window.addEventListener("message", (r) => {
|
|
4669
4673
|
var i, s;
|
|
4670
|
-
if (!
|
|
4674
|
+
if (!Fr(e.trustedHosts, r))
|
|
4671
4675
|
return;
|
|
4672
4676
|
const {
|
|
4673
4677
|
data: o
|
|
@@ -4708,12 +4712,12 @@ const Sa = (e = {}) => {
|
|
|
4708
4712
|
}
|
|
4709
4713
|
}
|
|
4710
4714
|
})));
|
|
4711
|
-
},
|
|
4715
|
+
}, xa = ({
|
|
4712
4716
|
model: e,
|
|
4713
4717
|
trustedHosts: t,
|
|
4714
4718
|
callbacks: n
|
|
4715
4719
|
}) => (r) => {
|
|
4716
|
-
if (!
|
|
4720
|
+
if (!Fr(t, r))
|
|
4717
4721
|
return;
|
|
4718
4722
|
const {
|
|
4719
4723
|
data: o
|
|
@@ -4734,12 +4738,12 @@ const Sa = (e = {}) => {
|
|
|
4734
4738
|
break;
|
|
4735
4739
|
}
|
|
4736
4740
|
}
|
|
4737
|
-
},
|
|
4741
|
+
}, za = (e, t, n) => {
|
|
4738
4742
|
if (!X)
|
|
4739
4743
|
return Y.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
4740
4744
|
};
|
|
4741
|
-
|
|
4742
|
-
const r =
|
|
4745
|
+
wa();
|
|
4746
|
+
const r = xa({
|
|
4743
4747
|
callbacks: {
|
|
4744
4748
|
contentUpdate: t,
|
|
4745
4749
|
animation: () => {
|
|
@@ -4764,38 +4768,38 @@ function rr(e, ...t) {
|
|
|
4764
4768
|
}
|
|
4765
4769
|
return n;
|
|
4766
4770
|
}
|
|
4767
|
-
const
|
|
4768
|
-
function
|
|
4771
|
+
const ka = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
|
|
4772
|
+
function Ca(e) {
|
|
4769
4773
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4770
4774
|
}
|
|
4771
|
-
function
|
|
4772
|
-
const n =
|
|
4775
|
+
function Ea(e, t) {
|
|
4776
|
+
const n = Ia(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
|
|
4773
4777
|
for (const u of s)
|
|
4774
4778
|
for (const d of n)
|
|
4775
4779
|
d in u || (u[d] = r[d]);
|
|
4776
4780
|
}
|
|
4777
|
-
function
|
|
4781
|
+
function Ia(e) {
|
|
4778
4782
|
const t = [];
|
|
4779
4783
|
for (const n of e.steps)
|
|
4780
4784
|
for (const r in n.styles)
|
|
4781
4785
|
t.indexOf(r) === -1 && t.push(r);
|
|
4782
4786
|
return t;
|
|
4783
4787
|
}
|
|
4784
|
-
function
|
|
4788
|
+
function qa(e) {
|
|
4785
4789
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4786
4790
|
if (!t.length) {
|
|
4787
|
-
|
|
4791
|
+
Ca(e.elementId || e.id || "");
|
|
4788
4792
|
return;
|
|
4789
4793
|
}
|
|
4790
4794
|
Array.from(t).forEach((n) => {
|
|
4791
|
-
|
|
4792
|
-
n.style.transition = `all ${e.duration}s ${
|
|
4795
|
+
Ea(e, n), n.style.transition = "none", n.style.transitionDelay = "0", rr(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4796
|
+
n.style.transition = `all ${e.duration}s ${ka(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), rr(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4793
4797
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
4794
4798
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4795
4799
|
});
|
|
4796
4800
|
});
|
|
4797
4801
|
}
|
|
4798
|
-
const
|
|
4802
|
+
const Ta = (e) => {
|
|
4799
4803
|
var i;
|
|
4800
4804
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4801
4805
|
let o = "";
|
|
@@ -4821,22 +4825,22 @@ font-weight: ${s};
|
|
|
4821
4825
|
`.trim());
|
|
4822
4826
|
}
|
|
4823
4827
|
return o;
|
|
4824
|
-
},
|
|
4828
|
+
}, Aa = ({
|
|
4825
4829
|
customFonts: e
|
|
4826
4830
|
}) => {
|
|
4827
4831
|
var t;
|
|
4828
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4829
|
-
},
|
|
4832
|
+
return ((t = e == null ? void 0 : e.map((n) => Ta(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4833
|
+
}, Oa = ({
|
|
4830
4834
|
cssCode: e,
|
|
4831
4835
|
contentId: t
|
|
4832
4836
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
4833
|
-
function
|
|
4837
|
+
function ja(e) {
|
|
4834
4838
|
const t = `
|
|
4835
|
-
${
|
|
4839
|
+
${Oa({
|
|
4836
4840
|
cssCode: e.cssCode,
|
|
4837
4841
|
contentId: e.contentId
|
|
4838
4842
|
})}
|
|
4839
|
-
${
|
|
4843
|
+
${Aa({
|
|
4840
4844
|
customFonts: e.customFonts
|
|
4841
4845
|
})}
|
|
4842
4846
|
|
|
@@ -4859,7 +4863,7 @@ ${Ta({
|
|
|
4859
4863
|
`.trim();
|
|
4860
4864
|
return /* @__PURE__ */ C(dt, { styles: t });
|
|
4861
4865
|
}
|
|
4862
|
-
const
|
|
4866
|
+
const Ra = ({
|
|
4863
4867
|
content: e,
|
|
4864
4868
|
data: t,
|
|
4865
4869
|
locale: n
|
|
@@ -4876,7 +4880,7 @@ const ja = ({
|
|
|
4876
4880
|
locale: n
|
|
4877
4881
|
} : {}
|
|
4878
4882
|
};
|
|
4879
|
-
},
|
|
4883
|
+
}, Pa = ({
|
|
4880
4884
|
content: e,
|
|
4881
4885
|
data: t
|
|
4882
4886
|
}) => e ? {
|
|
@@ -4889,7 +4893,7 @@ const ja = ({
|
|
|
4889
4893
|
} : void 0;
|
|
4890
4894
|
function or(e) {
|
|
4891
4895
|
var o, i, s, u, d, k, E, y, R;
|
|
4892
|
-
const t =
|
|
4896
|
+
const t = Hi({
|
|
4893
4897
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4894
4898
|
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4895
4899
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
@@ -4907,12 +4911,12 @@ function or(e) {
|
|
|
4907
4911
|
}),
|
|
4908
4912
|
{}
|
|
4909
4913
|
), r = {
|
|
4910
|
-
content:
|
|
4914
|
+
content: Pa({
|
|
4911
4915
|
content: e.content,
|
|
4912
4916
|
data: e.data
|
|
4913
4917
|
}),
|
|
4914
4918
|
localState: void 0,
|
|
4915
|
-
rootState:
|
|
4919
|
+
rootState: Ra({
|
|
4916
4920
|
content: e.content,
|
|
4917
4921
|
data: e.data,
|
|
4918
4922
|
locale: e.locale
|
|
@@ -4936,7 +4940,7 @@ function or(e) {
|
|
|
4936
4940
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4937
4941
|
};
|
|
4938
4942
|
return /* @__PURE__ */ xe(
|
|
4939
|
-
|
|
4943
|
+
po,
|
|
4940
4944
|
{
|
|
4941
4945
|
content: e.content,
|
|
4942
4946
|
data: e.data,
|
|
@@ -4955,7 +4959,7 @@ function or(e) {
|
|
|
4955
4959
|
children: [
|
|
4956
4960
|
e.isSsrAbTest ? /* @__PURE__ */ C(W, { children: /* @__PURE__ */ C(Kt, { scriptStr: t }) }) : null,
|
|
4957
4961
|
/* @__PURE__ */ C(W, { children: /* @__PURE__ */ C(
|
|
4958
|
-
|
|
4962
|
+
ja,
|
|
4959
4963
|
{
|
|
4960
4964
|
contentId: (s = r.content) == null ? void 0 : s.id,
|
|
4961
4965
|
cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
|
|
@@ -4975,14 +4979,14 @@ function or(e) {
|
|
|
4975
4979
|
}
|
|
4976
4980
|
);
|
|
4977
4981
|
}
|
|
4978
|
-
function
|
|
4982
|
+
function Na(e) {
|
|
4979
4983
|
var i, s;
|
|
4980
|
-
const t =
|
|
4984
|
+
const t = Vi({
|
|
4981
4985
|
canTrack: $t(e.canTrack),
|
|
4982
4986
|
content: e.content
|
|
4983
4987
|
}), n = function() {
|
|
4984
4988
|
var d;
|
|
4985
|
-
return
|
|
4989
|
+
return $i(
|
|
4986
4990
|
st(e.content).map((k) => ({
|
|
4987
4991
|
id: k.testVariationId,
|
|
4988
4992
|
testRatio: k.testRatio
|
|
@@ -4996,13 +5000,13 @@ function Pa(e) {
|
|
|
4996
5000
|
return t ? {
|
|
4997
5001
|
...e.content,
|
|
4998
5002
|
testVariationId: (d = e.content) == null ? void 0 : d.id
|
|
4999
|
-
} :
|
|
5003
|
+
} : vi({
|
|
5000
5004
|
item: e.content,
|
|
5001
5005
|
canTrack: $t(e.canTrack)
|
|
5002
5006
|
});
|
|
5003
5007
|
};
|
|
5004
5008
|
return /* @__PURE__ */ xe(W, { children: [
|
|
5005
|
-
!e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(W, { children: /* @__PURE__ */ C(Kt, { scriptStr:
|
|
5009
|
+
!e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(W, { children: /* @__PURE__ */ C(Kt, { scriptStr: Wi() }) }) : null,
|
|
5006
5010
|
t ? /* @__PURE__ */ xe(W, { children: [
|
|
5007
5011
|
/* @__PURE__ */ C(
|
|
5008
5012
|
dt,
|
|
@@ -5062,13 +5066,13 @@ function Pa(e) {
|
|
|
5062
5066
|
)
|
|
5063
5067
|
] });
|
|
5064
5068
|
}
|
|
5065
|
-
const
|
|
5069
|
+
const Ba = async ({
|
|
5066
5070
|
builderContextValue: e,
|
|
5067
5071
|
symbol: t
|
|
5068
5072
|
}) => {
|
|
5069
5073
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5070
5074
|
(e != null && e.apiKey))
|
|
5071
|
-
return
|
|
5075
|
+
return Rr({
|
|
5072
5076
|
model: t.model,
|
|
5073
5077
|
apiKey: e.apiKey,
|
|
5074
5078
|
apiVersion: e.apiVersion,
|
|
@@ -5081,7 +5085,7 @@ const Na = async ({
|
|
|
5081
5085
|
Y.error("Could not fetch symbol content: ", n);
|
|
5082
5086
|
});
|
|
5083
5087
|
};
|
|
5084
|
-
async function
|
|
5088
|
+
async function Ua(e) {
|
|
5085
5089
|
var r, o, i, s, u;
|
|
5086
5090
|
const t = function() {
|
|
5087
5091
|
var k, E;
|
|
@@ -5091,12 +5095,12 @@ async function Ba(e) {
|
|
|
5091
5095
|
(k = e.symbol) != null && k.inline ? "builder-inline-symbol" : void 0,
|
|
5092
5096
|
(E = e.symbol) != null && E.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5093
5097
|
].filter(Boolean).join(" ");
|
|
5094
|
-
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await
|
|
5098
|
+
}, n = ((r = e.symbol) == null ? void 0 : r.content) || await Ba({
|
|
5095
5099
|
symbol: e.symbol,
|
|
5096
5100
|
builderContextValue: e.builderContext
|
|
5097
5101
|
});
|
|
5098
5102
|
return /* @__PURE__ */ C("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ C(
|
|
5099
|
-
|
|
5103
|
+
Na,
|
|
5100
5104
|
{
|
|
5101
5105
|
__isNestedRender: !0,
|
|
5102
5106
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5120,7 +5124,7 @@ async function Ba(e) {
|
|
|
5120
5124
|
) });
|
|
5121
5125
|
}
|
|
5122
5126
|
const ir = {};
|
|
5123
|
-
function
|
|
5127
|
+
function Za(e) {
|
|
5124
5128
|
if (X()) {
|
|
5125
5129
|
Object.assign(ir, e);
|
|
5126
5130
|
const t = {
|
|
@@ -5130,7 +5134,7 @@ function qa(e) {
|
|
|
5130
5134
|
parent.postMessage(t, "*");
|
|
5131
5135
|
}
|
|
5132
5136
|
}
|
|
5133
|
-
const
|
|
5137
|
+
const Qa = async (e) => {
|
|
5134
5138
|
var r, o, i;
|
|
5135
5139
|
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
5136
5140
|
...e,
|
|
@@ -5142,49 +5146,49 @@ const Za = async (e) => {
|
|
|
5142
5146
|
urlPath: t
|
|
5143
5147
|
} : {}
|
|
5144
5148
|
},
|
|
5145
|
-
options:
|
|
5149
|
+
options: jr(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
5146
5150
|
};
|
|
5147
5151
|
return {
|
|
5148
5152
|
apiKey: n.apiKey,
|
|
5149
5153
|
model: n.model,
|
|
5150
|
-
content: await
|
|
5154
|
+
content: await Rr(n)
|
|
5151
5155
|
};
|
|
5152
5156
|
};
|
|
5153
5157
|
export {
|
|
5154
|
-
|
|
5158
|
+
Xa as A,
|
|
5155
5159
|
sn as B,
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5160
|
+
ai as C,
|
|
5161
|
+
za as D,
|
|
5162
|
+
Qa as E,
|
|
5163
|
+
na as F,
|
|
5164
|
+
ra as G,
|
|
5165
|
+
Ua as S,
|
|
5166
|
+
Oi as T,
|
|
5167
|
+
ma as _,
|
|
5168
|
+
ri as a,
|
|
5169
|
+
Wa as b,
|
|
5166
5170
|
Xt as c,
|
|
5167
|
-
|
|
5168
|
-
|
|
5171
|
+
$a as d,
|
|
5172
|
+
Ha as e,
|
|
5169
5173
|
X as f,
|
|
5170
5174
|
Gt as g,
|
|
5171
5175
|
$t as h,
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5176
|
+
_a as i,
|
|
5177
|
+
Ga as j,
|
|
5178
|
+
xa as k,
|
|
5175
5179
|
Y as l,
|
|
5176
5180
|
an as m,
|
|
5177
|
-
|
|
5181
|
+
Ya as n,
|
|
5178
5182
|
pt as o,
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5183
|
+
Ka as p,
|
|
5184
|
+
Rr as q,
|
|
5185
|
+
Ja as r,
|
|
5186
|
+
wa as s,
|
|
5187
|
+
qa as t,
|
|
5188
|
+
zi as u,
|
|
5189
|
+
Gi as v,
|
|
5190
|
+
Na as w,
|
|
5191
|
+
Sa as x,
|
|
5192
|
+
Za as y,
|
|
5193
|
+
jr as z
|
|
5190
5194
|
};
|