@builder.io/sdk-react-nextjs 0.16.6 → 0.16.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/blocks-exports.cjs +27 -27
- package/lib/browser/blocks-exports.mjs +640 -618
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +2 -2
- package/lib/browser/init.cjs +2 -2
- package/lib/browser/init.mjs +20 -20
- package/lib/{node/server-entry-226d18cc.js → browser/server-entry-30b63436.js} +357 -355
- package/lib/browser/server-entry-89b4c0d0.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +1 -1
- package/lib/edge/blocks-exports.cjs +38 -38
- package/lib/edge/blocks-exports.mjs +964 -942
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +2 -2
- package/lib/edge/init.cjs +2 -2
- package/lib/edge/init.mjs +20 -20
- package/lib/{browser/server-entry-226d18cc.js → edge/server-entry-30b63436.js} +357 -355
- package/lib/edge/server-entry-89b4c0d0.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +1 -1
- package/lib/node/blocks-exports.cjs +26 -26
- package/lib/node/blocks-exports.mjs +665 -643
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +2 -2
- package/lib/node/{node-runtime-f354effa.cjs → node-runtime-60abefbd.cjs} +4 -4
- package/lib/node/{node-runtime-f79fed3b.js → node-runtime-c36924d7.js} +3 -3
- package/lib/{edge/server-entry-226d18cc.js → node/server-entry-30b63436.js} +357 -355
- package/lib/node/server-entry-89b4c0d0.cjs +2 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +1 -1
- package/package.json +3 -3
- package/types/cjs/components/block/block.helpers.d.ts +1 -2
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/types/cjs/functions/get-processed-block.d.ts +1 -0
- package/types/esm/components/block/block.helpers.d.ts +1 -2
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/functions/evaluate/node-runtime/init.d.ts +1 -0
- package/types/esm/functions/get-processed-block.d.ts +1 -0
- package/lib/browser/server-entry-0418e1e6.cjs +0 -2
- package/lib/edge/server-entry-0418e1e6.cjs +0 -2
- package/lib/node/server-entry-0418e1e6.cjs +0 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var Kt = (e, t, n) => (
|
|
5
|
-
import { jsx as
|
|
6
|
-
import { TARGET as
|
|
7
|
-
import { useEffect as te, useRef as Zt, useState as ye, createContext as Zr } from "react";
|
|
8
|
-
import { useRouter as Qr } from "next/navigation";
|
|
2
|
+
var _r = Object.defineProperty;
|
|
3
|
+
var $r = (e, t, n) => t in e ? _r(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
4
|
+
var Kt = (e, t, n) => ($r(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
5
|
+
import { jsx as g, Fragment as K, jsxs as se } from "react/jsx-runtime";
|
|
6
|
+
import { TARGET as je, isEditing as Ce, isBrowser as We, getUserAttributes as Hr, logger as ot, checkIsDefined as yt, isPreviewing as lr, init as Kr, getDefaultCanTrack as vt, _track as Gn, createEditorListener as Gr, fetch as zr, registerInsertMenu as Yr, setupBrowserForEditing as Xr, createRegisterComponentMessage as Jr, fetchOneEntry as cr, serializeIncludingFunctions as zn, handleABTestingSync as qr } from "./server-entry-30b63436.js";
|
|
9
7
|
import "lru-cache";
|
|
8
|
+
import { useRef as bt, useEffect as Q, useState as ye, createContext as Zr } from "react";
|
|
9
|
+
import { useRouter as Qr } from "next/navigation";
|
|
10
10
|
const ei = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ti = (e) => typeof e == "string" && ei.has(e.toLowerCase());
|
|
11
11
|
function Qt(e) {
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ g(K, { children: ti(e.TagName) ? /* @__PURE__ */ g(K, { children: /* @__PURE__ */ g(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ g(K, { children: typeof e.TagName == "string" ? /* @__PURE__ */ g(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ g(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
|
|
13
13
|
}
|
|
14
14
|
const nt = () => {
|
|
15
|
-
switch (
|
|
15
|
+
switch (je) {
|
|
16
16
|
case "react":
|
|
17
17
|
case "reactNative":
|
|
18
18
|
case "rsc":
|
|
@@ -39,7 +39,7 @@ function ni(e) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ g(
|
|
43
43
|
Qt,
|
|
44
44
|
{
|
|
45
45
|
attributes: t(),
|
|
@@ -56,7 +56,13 @@ function ri(e) {
|
|
|
56
56
|
...e.options
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
function ii(e, ...t) {
|
|
60
|
+
const n = Object.assign({}, e);
|
|
61
|
+
for (const r of t)
|
|
62
|
+
delete n[r];
|
|
63
|
+
return n;
|
|
64
|
+
}
|
|
65
|
+
const ur = ({
|
|
60
66
|
builder: e,
|
|
61
67
|
context: t,
|
|
62
68
|
event: n,
|
|
@@ -68,14 +74,14 @@ const cr = ({
|
|
|
68
74
|
builder: e,
|
|
69
75
|
context: t,
|
|
70
76
|
event: n
|
|
71
|
-
}),
|
|
77
|
+
}), oi = () => ({
|
|
72
78
|
isEditing: Ce(),
|
|
73
|
-
isBrowser:
|
|
74
|
-
isServer: !
|
|
75
|
-
getUserAttributes: () =>
|
|
76
|
-
}),
|
|
79
|
+
isBrowser: We(),
|
|
80
|
+
isServer: !We(),
|
|
81
|
+
getUserAttributes: () => Hr()
|
|
82
|
+
}), ai = (e, {
|
|
77
83
|
isExpression: t = !0
|
|
78
|
-
}) => /* 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,
|
|
84
|
+
}) => /* 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, si = ({
|
|
79
85
|
code: e,
|
|
80
86
|
builder: t,
|
|
81
87
|
context: n,
|
|
@@ -84,19 +90,19 @@ const cr = ({
|
|
|
84
90
|
rootSetState: a,
|
|
85
91
|
rootState: s
|
|
86
92
|
}) => {
|
|
87
|
-
const
|
|
93
|
+
const u = ur({
|
|
88
94
|
builder: t,
|
|
89
95
|
context: n,
|
|
90
96
|
event: r,
|
|
91
|
-
state:
|
|
97
|
+
state: dr({
|
|
92
98
|
rootState: s,
|
|
93
99
|
localState: i,
|
|
94
100
|
rootSetState: a
|
|
95
101
|
})
|
|
96
102
|
});
|
|
97
|
-
return new Function(...
|
|
103
|
+
return new Function(...u.map(([f]) => f), e)(...u.map(([, f]) => f));
|
|
98
104
|
};
|
|
99
|
-
function
|
|
105
|
+
function dr({
|
|
100
106
|
rootState: e,
|
|
101
107
|
localState: t,
|
|
102
108
|
rootSetState: n
|
|
@@ -106,7 +112,7 @@ function ur({
|
|
|
106
112
|
if (t && i in t)
|
|
107
113
|
return t[i];
|
|
108
114
|
const a = r[i];
|
|
109
|
-
return typeof a == "object" && a !== null ?
|
|
115
|
+
return typeof a == "object" && a !== null ? dr({
|
|
110
116
|
rootState: a,
|
|
111
117
|
localState: void 0,
|
|
112
118
|
rootSetState: n ? (s) => {
|
|
@@ -121,37 +127,37 @@ function ur({
|
|
|
121
127
|
}
|
|
122
128
|
});
|
|
123
129
|
}
|
|
124
|
-
const
|
|
130
|
+
const fr = (e, t, n) => {
|
|
125
131
|
if (Object(e) !== e)
|
|
126
132
|
return e;
|
|
127
133
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
128
134
|
return r.slice(0, -1).reduce((i, a, s) => Object(i[a]) === i[a] ? i[a] : i[a] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
129
135
|
};
|
|
130
|
-
var
|
|
136
|
+
var W, li = function(e) {
|
|
131
137
|
function t(o) {
|
|
132
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
138
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Lr.test(String.fromCharCode(o));
|
|
133
139
|
}
|
|
134
140
|
function n(o) {
|
|
135
141
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Kn.test(String.fromCharCode(o));
|
|
136
142
|
}
|
|
137
143
|
function r(o, l) {
|
|
138
|
-
for (var
|
|
144
|
+
for (var c = S, h = 1, A = 0; ; ) {
|
|
139
145
|
pt.lastIndex = A;
|
|
140
|
-
var Y = pt.exec(
|
|
146
|
+
var Y = pt.exec(c);
|
|
141
147
|
if (Y && Y.index < o)
|
|
142
148
|
++h, A = Y.index + Y[0].length;
|
|
143
149
|
else
|
|
144
150
|
break;
|
|
145
151
|
}
|
|
146
|
-
throw
|
|
152
|
+
throw c = {
|
|
147
153
|
line: h,
|
|
148
154
|
ab: o - A
|
|
149
|
-
}, l += " (" +
|
|
155
|
+
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = o, l.X = c, l.o = d, l;
|
|
150
156
|
}
|
|
151
157
|
function i(o) {
|
|
152
158
|
o = o.split(" ");
|
|
153
|
-
for (var l = /* @__PURE__ */ Object.create(null),
|
|
154
|
-
l[o[
|
|
159
|
+
for (var l = /* @__PURE__ */ Object.create(null), c = 0; c < o.length; c++)
|
|
160
|
+
l[o[c]] = !0;
|
|
155
161
|
return function(h) {
|
|
156
162
|
return l[h] || !1;
|
|
157
163
|
};
|
|
@@ -160,48 +166,48 @@ var F, si = function(e) {
|
|
|
160
166
|
this.line = Te, this.ab = d - fe;
|
|
161
167
|
}
|
|
162
168
|
function s(o, l) {
|
|
163
|
-
|
|
169
|
+
Oe = d, O.C && (Ot = new a()), T = o, f(), ae = l, He = o.m;
|
|
164
170
|
}
|
|
165
|
-
function
|
|
166
|
-
for (var o = d, l =
|
|
167
|
-
++d,
|
|
168
|
-
|
|
171
|
+
function u() {
|
|
172
|
+
for (var o = d, l = O.va && O.C && new a(), c = S.charCodeAt(d += 2); d < Re && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
173
|
+
++d, c = S.charCodeAt(d);
|
|
174
|
+
O.va && O.va(!1, S.slice(o + 2, d), o, d, l, O.C && new a());
|
|
169
175
|
}
|
|
170
176
|
function f() {
|
|
171
|
-
for (; d <
|
|
177
|
+
for (; d < Re; ) {
|
|
172
178
|
var o = S.charCodeAt(d);
|
|
173
179
|
if (o === 32)
|
|
174
180
|
++d;
|
|
175
181
|
else if (o === 13)
|
|
176
|
-
++d, o = S.charCodeAt(d), o === 10 && ++d,
|
|
182
|
+
++d, o = S.charCodeAt(d), o === 10 && ++d, O.C && (++Te, fe = d);
|
|
177
183
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
178
|
-
++d,
|
|
184
|
+
++d, O.C && (++Te, fe = d);
|
|
179
185
|
else if (8 < o && 14 > o)
|
|
180
186
|
++d;
|
|
181
187
|
else if (o === 47)
|
|
182
188
|
if (o = S.charCodeAt(d + 1), o === 42) {
|
|
183
189
|
o = void 0;
|
|
184
|
-
var l =
|
|
185
|
-
if (h === -1 && r(d - 2, "Unterminated comment"), d = h + 2,
|
|
186
|
-
for (pt.lastIndex =
|
|
190
|
+
var l = O.va && O.C && new a(), c = d, h = S.indexOf("*/", d += 2);
|
|
191
|
+
if (h === -1 && r(d - 2, "Unterminated comment"), d = h + 2, O.C)
|
|
192
|
+
for (pt.lastIndex = c; (o = pt.exec(S)) && o.index < d; )
|
|
187
193
|
++Te, fe = o.index + o[0].length;
|
|
188
|
-
|
|
194
|
+
O.va && O.va(!0, S.slice(c + 2, h), c, d, l, O.C && new a());
|
|
189
195
|
} else if (o === 47)
|
|
190
|
-
|
|
196
|
+
u();
|
|
191
197
|
else
|
|
192
198
|
break;
|
|
193
199
|
else if (o === 160)
|
|
194
200
|
++d;
|
|
195
|
-
else if (5760 <= o &&
|
|
201
|
+
else if (5760 <= o && Ur.test(String.fromCharCode(o)))
|
|
196
202
|
++d;
|
|
197
203
|
else
|
|
198
204
|
break;
|
|
199
205
|
}
|
|
200
206
|
}
|
|
201
|
-
function
|
|
207
|
+
function m(o) {
|
|
202
208
|
switch (o) {
|
|
203
209
|
case 46:
|
|
204
|
-
o = S.charCodeAt(d + 1), 48 <= o && 57 >= o ?
|
|
210
|
+
o = S.charCodeAt(d + 1), 48 <= o && 57 >= o ? U(!0) : (++d, s(Fn));
|
|
205
211
|
return;
|
|
206
212
|
case 40:
|
|
207
213
|
return ++d, s(he);
|
|
@@ -218,7 +224,7 @@ var F, si = function(e) {
|
|
|
218
224
|
case 123:
|
|
219
225
|
return ++d, s(ze);
|
|
220
226
|
case 125:
|
|
221
|
-
return ++d, s(
|
|
227
|
+
return ++d, s(Ne);
|
|
222
228
|
case 58:
|
|
223
229
|
return ++d, s(Ye);
|
|
224
230
|
case 63:
|
|
@@ -237,26 +243,26 @@ var F, si = function(e) {
|
|
|
237
243
|
case 55:
|
|
238
244
|
case 56:
|
|
239
245
|
case 57:
|
|
240
|
-
return
|
|
246
|
+
return U(!1);
|
|
241
247
|
case 34:
|
|
242
248
|
case 39:
|
|
243
249
|
d++;
|
|
244
250
|
for (var l = ""; ; ) {
|
|
245
|
-
d >=
|
|
246
|
-
var
|
|
247
|
-
if (
|
|
251
|
+
d >= Re && r(z, "Unterminated string constant");
|
|
252
|
+
var c = S.charCodeAt(d);
|
|
253
|
+
if (c === o) {
|
|
248
254
|
++d, s(ut, l);
|
|
249
255
|
break;
|
|
250
256
|
}
|
|
251
|
-
if (
|
|
252
|
-
|
|
257
|
+
if (c === 92) {
|
|
258
|
+
c = S.charCodeAt(++d);
|
|
253
259
|
var h = /^[0-7]+/.exec(S.slice(d, d + 3));
|
|
254
260
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
255
261
|
h = h.slice(0, -1);
|
|
256
262
|
if (h === "0" && (h = null), ++d, h)
|
|
257
263
|
ie && r(d - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(h, 8)), d += h.length - 1;
|
|
258
264
|
else
|
|
259
|
-
switch (
|
|
265
|
+
switch (c) {
|
|
260
266
|
case 110:
|
|
261
267
|
l += `
|
|
262
268
|
`;
|
|
@@ -265,13 +271,13 @@ var F, si = function(e) {
|
|
|
265
271
|
l += "\r";
|
|
266
272
|
break;
|
|
267
273
|
case 120:
|
|
268
|
-
l += String.fromCharCode(
|
|
274
|
+
l += String.fromCharCode(R(2));
|
|
269
275
|
break;
|
|
270
276
|
case 117:
|
|
271
|
-
l += String.fromCharCode(
|
|
277
|
+
l += String.fromCharCode(R(4));
|
|
272
278
|
break;
|
|
273
279
|
case 85:
|
|
274
|
-
l += String.fromCharCode(
|
|
280
|
+
l += String.fromCharCode(R(8));
|
|
275
281
|
break;
|
|
276
282
|
case 116:
|
|
277
283
|
l += " ";
|
|
@@ -291,68 +297,68 @@ var F, si = function(e) {
|
|
|
291
297
|
case 13:
|
|
292
298
|
S.charCodeAt(d) === 10 && ++d;
|
|
293
299
|
case 10:
|
|
294
|
-
|
|
300
|
+
O.C && (fe = d, ++Te);
|
|
295
301
|
break;
|
|
296
302
|
default:
|
|
297
|
-
l += String.fromCharCode(
|
|
303
|
+
l += String.fromCharCode(c);
|
|
298
304
|
}
|
|
299
305
|
} else
|
|
300
|
-
|
|
306
|
+
c !== 13 && c !== 10 && c !== 8232 && c !== 8233 || r(z, "Unterminated string constant"), l += String.fromCharCode(c), ++d;
|
|
301
307
|
}
|
|
302
308
|
return;
|
|
303
309
|
case 47:
|
|
304
|
-
o = S.charCodeAt(d + 1), He ? (++d, j()) : o === 61 ?
|
|
310
|
+
o = S.charCodeAt(d + 1), He ? (++d, j()) : o === 61 ? v(Ae, 2) : v(Un, 1);
|
|
305
311
|
return;
|
|
306
312
|
case 37:
|
|
307
313
|
case 42:
|
|
308
|
-
S.charCodeAt(d + 1) === 61 ?
|
|
314
|
+
S.charCodeAt(d + 1) === 61 ? v(Ae, 2) : v(Dr, 1);
|
|
309
315
|
return;
|
|
310
316
|
case 124:
|
|
311
317
|
case 38:
|
|
312
|
-
l = S.charCodeAt(d + 1), l === o ?
|
|
318
|
+
l = S.charCodeAt(d + 1), l === o ? v(o === 124 ? _n : $n, 2) : l === 61 ? v(Ae, 2) : v(o === 124 ? jr : Or, 1);
|
|
313
319
|
return;
|
|
314
320
|
case 94:
|
|
315
|
-
S.charCodeAt(d + 1) === 61 ?
|
|
321
|
+
S.charCodeAt(d + 1) === 61 ? v(Ae, 2) : v(Rr, 1);
|
|
316
322
|
return;
|
|
317
323
|
case 43:
|
|
318
324
|
case 45:
|
|
319
|
-
l = S.charCodeAt(d + 1), l === o ? l === 45 && S.charCodeAt(d + 2) === 62 && ht.test(S.slice(Se, d)) ? (d += 3,
|
|
325
|
+
l = S.charCodeAt(d + 1), l === o ? l === 45 && S.charCodeAt(d + 2) === 62 && ht.test(S.slice(Se, d)) ? (d += 3, u(), f(), b()) : v(Ar, 2) : l === 61 ? v(Ae, 2) : v(Mr, 1);
|
|
320
326
|
return;
|
|
321
327
|
case 60:
|
|
322
328
|
case 62:
|
|
323
|
-
l = S.charCodeAt(d + 1),
|
|
329
|
+
l = S.charCodeAt(d + 1), c = 1, l === o ? (c = o === 62 && S.charCodeAt(d + 2) === 62 ? 3 : 2, S.charCodeAt(d + c) === 61 ? v(Ae, c + 1) : v(Br, c)) : l === 33 && o === 60 && S.charCodeAt(d + 2) === 45 && S.charCodeAt(d + 3) === 45 ? (d += 4, u(), f(), b()) : (l === 61 && (c = S.charCodeAt(d + 2) === 61 ? 3 : 2), v(Nr, c));
|
|
324
330
|
return;
|
|
325
331
|
case 61:
|
|
326
332
|
case 33:
|
|
327
|
-
S.charCodeAt(d + 1) === 61 ?
|
|
333
|
+
S.charCodeAt(d + 1) === 61 ? v(Pr, S.charCodeAt(d + 2) === 61 ? 3 : 2) : v(o === 61 ? Ln : Vn, 1);
|
|
328
334
|
return;
|
|
329
335
|
case 126:
|
|
330
|
-
return
|
|
336
|
+
return v(Vn, 1);
|
|
331
337
|
}
|
|
332
338
|
return !1;
|
|
333
339
|
}
|
|
334
340
|
function b(o) {
|
|
335
|
-
if (o ? d = z + 1 : z = d,
|
|
341
|
+
if (o ? d = z + 1 : z = d, O.C && (Rt = new a()), o)
|
|
336
342
|
return j();
|
|
337
|
-
if (d >=
|
|
343
|
+
if (d >= Re)
|
|
338
344
|
return s(Bt);
|
|
339
345
|
if (o = S.charCodeAt(d), n(o) || o === 92)
|
|
340
|
-
return
|
|
341
|
-
if (
|
|
346
|
+
return P();
|
|
347
|
+
if (m(o) === !1) {
|
|
342
348
|
if (o = String.fromCharCode(o), o === "\\" || Kn.test(o))
|
|
343
|
-
return
|
|
349
|
+
return P();
|
|
344
350
|
r(d, "Unexpected character '" + o + "'");
|
|
345
351
|
}
|
|
346
352
|
}
|
|
347
|
-
function
|
|
348
|
-
var
|
|
349
|
-
d += l, s(o,
|
|
353
|
+
function v(o, l) {
|
|
354
|
+
var c = S.slice(d, d + l);
|
|
355
|
+
d += l, s(o, c);
|
|
350
356
|
}
|
|
351
357
|
function j() {
|
|
352
|
-
for (var o, l,
|
|
353
|
-
d >=
|
|
358
|
+
for (var o, l, c = d; ; ) {
|
|
359
|
+
d >= Re && r(c, "Unterminated regexp");
|
|
354
360
|
var h = S.charAt(d);
|
|
355
|
-
if (ht.test(h) && r(
|
|
361
|
+
if (ht.test(h) && r(c, "Unterminated regexp"), o)
|
|
356
362
|
o = !1;
|
|
357
363
|
else {
|
|
358
364
|
if (h === "[")
|
|
@@ -365,57 +371,57 @@ var F, si = function(e) {
|
|
|
365
371
|
}
|
|
366
372
|
++d;
|
|
367
373
|
}
|
|
368
|
-
o = S.slice(
|
|
374
|
+
o = S.slice(c, d), ++d, (l = F()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
369
375
|
try {
|
|
370
376
|
var A = new RegExp(o, l);
|
|
371
377
|
} catch (Y) {
|
|
372
|
-
throw Y instanceof SyntaxError && r(
|
|
378
|
+
throw Y instanceof SyntaxError && r(c, Y.message), Y;
|
|
373
379
|
}
|
|
374
380
|
s(vn, A);
|
|
375
381
|
}
|
|
376
382
|
function D(o, l) {
|
|
377
|
-
for (var
|
|
378
|
-
var
|
|
379
|
-
if (
|
|
383
|
+
for (var c = d, h = 0, A = l === void 0 ? 1 / 0 : l, Y = 0; Y < A; ++Y) {
|
|
384
|
+
var te = S.charCodeAt(d);
|
|
385
|
+
if (te = 97 <= te ? te - 97 + 10 : 65 <= te ? te - 65 + 10 : 48 <= te && 57 >= te ? te - 48 : 1 / 0, te >= o)
|
|
380
386
|
break;
|
|
381
|
-
++d, h = h * o +
|
|
387
|
+
++d, h = h * o + te;
|
|
382
388
|
}
|
|
383
|
-
return d ===
|
|
389
|
+
return d === c || l !== void 0 && d - c !== l ? null : h;
|
|
384
390
|
}
|
|
385
|
-
function
|
|
386
|
-
var l = d,
|
|
387
|
-
o || D(10) !== null || r(l, "Invalid number"), S.charCodeAt(d) === 46 && (++d, D(10),
|
|
391
|
+
function U(o) {
|
|
392
|
+
var l = d, c = !1, h = S.charCodeAt(d) === 48;
|
|
393
|
+
o || D(10) !== null || r(l, "Invalid number"), S.charCodeAt(d) === 46 && (++d, D(10), c = !0), o = S.charCodeAt(d), (o === 69 || o === 101) && (o = S.charCodeAt(++d), o !== 43 && o !== 45 || ++d, D(10) === null && r(l, "Invalid number"), c = !0), n(S.charCodeAt(d)) && r(d, "Identifier directly after number"), o = S.slice(l, d);
|
|
388
394
|
var A;
|
|
389
|
-
|
|
395
|
+
c ? A = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || ie ? r(l, "Invalid number") : A = parseInt(o, 8) : A = parseInt(o, 10), s(Ge, A);
|
|
390
396
|
}
|
|
391
|
-
function
|
|
397
|
+
function R(o) {
|
|
392
398
|
return o = D(16, o), o === null && r(z, "Bad character escape sequence"), o;
|
|
393
399
|
}
|
|
394
|
-
function
|
|
395
|
-
|
|
396
|
-
for (var o, l = !0,
|
|
400
|
+
function F() {
|
|
401
|
+
Be = !1;
|
|
402
|
+
for (var o, l = !0, c = d; ; ) {
|
|
397
403
|
var h = S.charCodeAt(d);
|
|
398
404
|
if (t(h))
|
|
399
|
-
|
|
405
|
+
Be && (o += S.charAt(d)), ++d;
|
|
400
406
|
else if (h === 92) {
|
|
401
|
-
|
|
407
|
+
Be || (o = S.slice(c, d)), Be = !0, S.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = R(4);
|
|
402
408
|
var A = String.fromCharCode(h);
|
|
403
409
|
A || r(d - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(d - 4, "Invalid Unicode escape"), o += A;
|
|
404
410
|
} else
|
|
405
411
|
break;
|
|
406
412
|
l = !1;
|
|
407
413
|
}
|
|
408
|
-
return
|
|
414
|
+
return Be ? o : S.slice(c, d);
|
|
409
415
|
}
|
|
410
|
-
function
|
|
411
|
-
var o =
|
|
412
|
-
!
|
|
416
|
+
function P() {
|
|
417
|
+
var o = F(), l = Pe;
|
|
418
|
+
!Be && Wr(o) && (l = Tr[o]), s(l, o);
|
|
413
419
|
}
|
|
414
|
-
function
|
|
415
|
-
Pt = z, Se =
|
|
420
|
+
function y() {
|
|
421
|
+
Pt = z, Se = Oe, Nt = Ot, b();
|
|
416
422
|
}
|
|
417
|
-
function
|
|
418
|
-
if (ie = o, d = z,
|
|
423
|
+
function V(o) {
|
|
424
|
+
if (ie = o, d = z, O.C)
|
|
419
425
|
for (; d < fe; )
|
|
420
426
|
fe = S.lastIndexOf(`
|
|
421
427
|
`, fe - 2) + 1, --Te;
|
|
@@ -429,34 +435,34 @@ var F, si = function(e) {
|
|
|
429
435
|
}
|
|
430
436
|
function $() {
|
|
431
437
|
var o = new G();
|
|
432
|
-
return
|
|
438
|
+
return O.C && (o.X = new oe()), O.vb && (o.sourceFile = O.vb), O.Xa && (o.j = [z, 0]), o;
|
|
433
439
|
}
|
|
434
|
-
function
|
|
440
|
+
function ee(o) {
|
|
435
441
|
var l = new G();
|
|
436
|
-
return l.start = o.start,
|
|
442
|
+
return l.start = o.start, O.C && (l.X = new oe(), l.X.start = o.X.start), O.Xa && (l.j = [o.j[0], 0]), l;
|
|
437
443
|
}
|
|
438
444
|
function E(o, l) {
|
|
439
|
-
return o.type = l, o.end = Se,
|
|
445
|
+
return o.type = l, o.end = Se, O.C && (o.X.end = Nt), O.Xa && (o.j[1] = Se), o;
|
|
440
446
|
}
|
|
441
447
|
function Ee(o) {
|
|
442
448
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
443
449
|
}
|
|
444
|
-
function
|
|
445
|
-
return T === o ? (
|
|
450
|
+
function _(o) {
|
|
451
|
+
return T === o ? (y(), !0) : !1;
|
|
446
452
|
}
|
|
447
453
|
function Ie() {
|
|
448
|
-
return !
|
|
454
|
+
return !O.fc && (T === Bt || T === Ne || ht.test(S.slice(Se, z)));
|
|
449
455
|
}
|
|
450
456
|
function I() {
|
|
451
|
-
|
|
457
|
+
_(pe) || Ie() || B();
|
|
452
458
|
}
|
|
453
459
|
function x(o) {
|
|
454
|
-
T === o ?
|
|
460
|
+
T === o ? y() : B();
|
|
455
461
|
}
|
|
456
462
|
function B() {
|
|
457
463
|
r(z, "Unexpected token");
|
|
458
464
|
}
|
|
459
|
-
function
|
|
465
|
+
function L(o) {
|
|
460
466
|
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), ie && o.type === "Identifier" && ft(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
461
467
|
}
|
|
462
468
|
function M() {
|
|
@@ -465,51 +471,51 @@ var F, si = function(e) {
|
|
|
465
471
|
switch (o) {
|
|
466
472
|
case Mt:
|
|
467
473
|
case xn:
|
|
468
|
-
|
|
469
|
-
var
|
|
470
|
-
|
|
474
|
+
y();
|
|
475
|
+
var c = o === Mt;
|
|
476
|
+
_(pe) || Ie() ? l.label = null : T !== Pe ? B() : (l.label = de(), I());
|
|
471
477
|
for (var h = 0; h < H.length; ++h) {
|
|
472
478
|
var A = H[h];
|
|
473
|
-
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (
|
|
479
|
+
if ((l.label === null || A.name === l.label.name) && (A.kind !== null && (c || A.kind === "loop") || l.label && c))
|
|
474
480
|
break;
|
|
475
481
|
}
|
|
476
|
-
return h === H.length && r(l.start, "Unsyntactic " + o.l), E(l,
|
|
482
|
+
return h === H.length && r(l.start, "Unsyntactic " + o.l), E(l, c ? "BreakStatement" : "ContinueStatement");
|
|
477
483
|
case Sn:
|
|
478
|
-
return
|
|
484
|
+
return y(), I(), E(l, "DebuggerStatement");
|
|
479
485
|
case Cn:
|
|
480
|
-
return
|
|
486
|
+
return y(), H.push($t), l.body = M(), H.pop(), x(Lt), l.test = J(), I(), E(l, "DoWhileStatement");
|
|
481
487
|
case In:
|
|
482
|
-
return
|
|
483
|
-
case
|
|
484
|
-
return
|
|
488
|
+
return y(), H.push($t), x(he), T === pe ? ce(l, null) : T === Ut ? (o = $(), y(), gn(o, !0), E(o, "VariableDeclaration"), o.fa.length === 1 && _(dt) ? lt(l, o) : ce(l, o)) : (o = Z(!1, !0), _(dt) ? (L(o), lt(l, o)) : ce(l, o));
|
|
489
|
+
case Ft:
|
|
490
|
+
return y(), Tt(l, !0);
|
|
485
491
|
case Tn:
|
|
486
|
-
return
|
|
492
|
+
return y(), l.test = J(), l.da = M(), l.alternate = _(wn) ? M() : null, E(l, "IfStatement");
|
|
487
493
|
case An:
|
|
488
|
-
return Ke ||
|
|
494
|
+
return Ke || O.Ib || r(z, "'return' outside of function"), y(), _(pe) || Ie() ? l.K = null : (l.K = Z(), I()), E(l, "ReturnStatement");
|
|
489
495
|
case Wt:
|
|
490
|
-
for (
|
|
491
|
-
T ===
|
|
492
|
-
return h && E(h, "SwitchCase"),
|
|
496
|
+
for (y(), l.Qb = J(), l.tb = [], x(ze), H.push(Vr); T !== Ne; )
|
|
497
|
+
T === Dt || T === kn ? (o = T === Dt, h && E(h, "SwitchCase"), l.tb.push(h = $()), h.da = [], y(), o ? h.test = Z() : (c && r(Pt, "Multiple default clauses"), c = !0, h.test = null), x(Ye)) : (h || B(), h.da.push(M()));
|
|
498
|
+
return h && E(h, "SwitchCase"), y(), H.pop(), E(l, "SwitchStatement");
|
|
493
499
|
case jn:
|
|
494
|
-
return
|
|
500
|
+
return y(), ht.test(S.slice(Se, z)) && r(Se, "Illegal newline after throw"), l.K = Z(), I(), E(l, "ThrowStatement");
|
|
495
501
|
case Rn:
|
|
496
|
-
return
|
|
502
|
+
return y(), l.block = le(), l.Ea = null, T === bn && (o = $(), y(), x(he), o.Ua = de(), ie && ft(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), x(ue), o.body = le(), l.Ea = E(o, "CatchClause")), l.fb = _(En) ? le() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), E(l, "TryStatement");
|
|
497
503
|
case Ut:
|
|
498
|
-
return
|
|
504
|
+
return y(), gn(l), I(), E(l, "VariableDeclaration");
|
|
499
505
|
case Lt:
|
|
500
|
-
return
|
|
506
|
+
return y(), l.test = J(), H.push($t), l.body = M(), H.pop(), E(l, "WhileStatement");
|
|
501
507
|
case On:
|
|
502
|
-
return ie && r(z, "'with' in strict mode"),
|
|
508
|
+
return ie && r(z, "'with' in strict mode"), y(), l.object = J(), l.body = M(), E(l, "WithStatement");
|
|
503
509
|
case ze:
|
|
504
510
|
return le();
|
|
505
511
|
case pe:
|
|
506
|
-
return
|
|
512
|
+
return y(), E(l, "EmptyStatement");
|
|
507
513
|
default:
|
|
508
|
-
if (
|
|
514
|
+
if (c = ae, A = Z(), o === Pe && A.type === "Identifier" && _(Ye)) {
|
|
509
515
|
for (h = 0; h < H.length; ++h)
|
|
510
|
-
H[h].name ===
|
|
516
|
+
H[h].name === c && r(A.start, "Label '" + c + "' is already declared");
|
|
511
517
|
return H.push({
|
|
512
|
-
name:
|
|
518
|
+
name: c,
|
|
513
519
|
kind: T.W ? "loop" : T === Wt ? "switch" : null
|
|
514
520
|
}), l.body = M(), H.pop(), l.label = A, E(l, "LabeledStatement");
|
|
515
521
|
}
|
|
@@ -522,16 +528,16 @@ var F, si = function(e) {
|
|
|
522
528
|
return x(ue), o;
|
|
523
529
|
}
|
|
524
530
|
function le(o) {
|
|
525
|
-
var l = $(),
|
|
526
|
-
for (l.body = [], x(ze); !
|
|
531
|
+
var l = $(), c = !0, h = !1;
|
|
532
|
+
for (l.body = [], x(ze); !_(Ne); ) {
|
|
527
533
|
var A = M();
|
|
528
|
-
if (l.body.push(A),
|
|
534
|
+
if (l.body.push(A), c && o && Ee(A)) {
|
|
529
535
|
var Y = h;
|
|
530
|
-
|
|
536
|
+
V(h = !0);
|
|
531
537
|
}
|
|
532
|
-
|
|
538
|
+
c = !1;
|
|
533
539
|
}
|
|
534
|
-
return h && !Y &&
|
|
540
|
+
return h && !Y && V(!1), E(l, "BlockStatement");
|
|
535
541
|
}
|
|
536
542
|
function ce(o, l) {
|
|
537
543
|
return o.ua = l, x(pe), o.test = T === pe ? null : Z(), x(pe), o.update = T === ue ? null : Z(), x(ue), o.body = M(), H.pop(), E(o, "ForStatement");
|
|
@@ -541,144 +547,144 @@ var F, si = function(e) {
|
|
|
541
547
|
}
|
|
542
548
|
function gn(o, l) {
|
|
543
549
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
550
|
+
var c = $();
|
|
551
|
+
if (c.id = de(), ie && ft(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = _(Ln) ? Z(!0, l) : null, o.fa.push(E(c, "VariableDeclarator")), !_(ke))
|
|
546
552
|
break;
|
|
547
553
|
}
|
|
548
554
|
}
|
|
549
555
|
function Z(o, l) {
|
|
550
|
-
var
|
|
556
|
+
var c = wt(l);
|
|
551
557
|
if (!o && T === ke) {
|
|
552
|
-
for (o =
|
|
558
|
+
for (o = ee(c), o.xb = [c]; _(ke); )
|
|
553
559
|
o.xb.push(wt(l));
|
|
554
560
|
return E(o, "SequenceExpression");
|
|
555
561
|
}
|
|
556
|
-
return
|
|
562
|
+
return c;
|
|
557
563
|
}
|
|
558
564
|
function wt(o) {
|
|
559
565
|
var l = Et(It(), -1, o);
|
|
560
|
-
if (
|
|
561
|
-
var
|
|
562
|
-
|
|
566
|
+
if (_(Wn)) {
|
|
567
|
+
var c = ee(l);
|
|
568
|
+
c.test = l, c.da = Z(!0), x(Ye), c.alternate = Z(!0, o), l = E(c, "ConditionalExpression");
|
|
563
569
|
}
|
|
564
|
-
return T.Cb ? (
|
|
570
|
+
return T.Cb ? (c = ee(l), c.operator = ae, c.left = l, y(), c.right = wt(o), L(l), E(c, "AssignmentExpression")) : l;
|
|
565
571
|
}
|
|
566
|
-
function Et(o, l,
|
|
572
|
+
function Et(o, l, c) {
|
|
567
573
|
var h = T.L;
|
|
568
|
-
if (h !== null && (!
|
|
569
|
-
var A =
|
|
570
|
-
return A.left = o, A.operator = ae, o = T,
|
|
574
|
+
if (h !== null && (!c || T !== dt) && h > l) {
|
|
575
|
+
var A = ee(o);
|
|
576
|
+
return A.left = o, A.operator = ae, o = T, y(), A.right = Et(It(), h, c), h = E(A, o === _n || o === $n ? "LogicalExpression" : "BinaryExpression"), Et(h, l, c);
|
|
571
577
|
}
|
|
572
578
|
return o;
|
|
573
579
|
}
|
|
574
580
|
function It() {
|
|
575
581
|
if (T.prefix) {
|
|
576
582
|
var o = $(), l = T.$b;
|
|
577
|
-
return o.operator = ae, He = o.prefix = !0,
|
|
583
|
+
return o.operator = ae, He = o.prefix = !0, y(), o.K = It(), l ? L(o.K) : ie && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), E(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
578
584
|
}
|
|
579
585
|
for (l = $e(ct()); T.cc && !Ie(); )
|
|
580
|
-
o =
|
|
586
|
+
o = ee(l), o.operator = ae, o.prefix = !1, o.K = l, L(l), y(), l = E(o, "UpdateExpression");
|
|
581
587
|
return l;
|
|
582
588
|
}
|
|
583
589
|
function $e(o, l) {
|
|
584
|
-
if (
|
|
585
|
-
var
|
|
586
|
-
return
|
|
590
|
+
if (_(Fn)) {
|
|
591
|
+
var c = ee(o);
|
|
592
|
+
return c.object = o, c.Wa = de(!0), c.bb = !1, $e(E(c, "MemberExpression"), l);
|
|
587
593
|
}
|
|
588
|
-
return
|
|
594
|
+
return _(Vt) ? (c = ee(o), c.object = o, c.Wa = Z(), c.bb = !0, x(_t), $e(E(c, "MemberExpression"), l)) : !l && _(he) ? (c = ee(o), c.callee = o, c.arguments = At(ue, !1), $e(E(c, "CallExpression"), l)) : o;
|
|
589
595
|
}
|
|
590
596
|
function ct() {
|
|
591
597
|
switch (T) {
|
|
592
598
|
case Nn:
|
|
593
599
|
var o = $();
|
|
594
|
-
return
|
|
595
|
-
case
|
|
600
|
+
return y(), E(o, "ThisExpression");
|
|
601
|
+
case Pe:
|
|
596
602
|
return de();
|
|
597
603
|
case Ge:
|
|
598
604
|
case ut:
|
|
599
605
|
case vn:
|
|
600
|
-
return o = $(), o.value = ae, o.raw = S.slice(z,
|
|
606
|
+
return o = $(), o.value = ae, o.raw = S.slice(z, Oe), y(), E(o, "Literal");
|
|
601
607
|
case Bn:
|
|
602
608
|
case Mn:
|
|
603
|
-
case
|
|
604
|
-
return o = $(), o.value = T.$a, o.raw = T.l,
|
|
609
|
+
case Dn:
|
|
610
|
+
return o = $(), o.value = T.$a, o.raw = T.l, y(), E(o, "Literal");
|
|
605
611
|
case he:
|
|
606
612
|
o = Rt;
|
|
607
613
|
var l = z;
|
|
608
|
-
|
|
609
|
-
var
|
|
610
|
-
return
|
|
614
|
+
y();
|
|
615
|
+
var c = Z();
|
|
616
|
+
return c.start = l, c.end = Oe, O.C && (c.X.start = o, c.X.end = Ot), O.Xa && (c.j = [l, Oe]), x(ue), c;
|
|
611
617
|
case Vt:
|
|
612
|
-
return o = $(),
|
|
618
|
+
return o = $(), y(), o.elements = At(_t, !0, !0), E(o, "ArrayExpression");
|
|
613
619
|
case ze:
|
|
614
|
-
for (o = $(), l = !0,
|
|
620
|
+
for (o = $(), l = !0, c = !1, o.h = [], y(); !_(Ne); ) {
|
|
615
621
|
if (l)
|
|
616
622
|
l = !1;
|
|
617
|
-
else if (x(ke),
|
|
623
|
+
else if (x(ke), O.sb && _(Ne))
|
|
618
624
|
break;
|
|
619
625
|
var h = {
|
|
620
626
|
key: T === Ge || T === ut ? ct() : de(!0)
|
|
621
627
|
}, A = !1;
|
|
622
|
-
if (
|
|
628
|
+
if (_(Ye)) {
|
|
623
629
|
h.value = Z(!0);
|
|
624
630
|
var Y = h.kind = "init";
|
|
625
631
|
} else
|
|
626
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? B() : (A =
|
|
627
|
-
if (h.key.type === "Identifier" && (ie ||
|
|
628
|
-
for (var
|
|
629
|
-
var
|
|
630
|
-
if (
|
|
631
|
-
var Ht = Y ===
|
|
632
|
-
Ht && !ie && Y === "init" &&
|
|
632
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? B() : (A = c = !0, Y = h.kind = h.key.name, h.key = T === Ge || T === ut ? ct() : de(!0), T !== he && B(), h.value = Tt($(), !1));
|
|
633
|
+
if (h.key.type === "Identifier" && (ie || c))
|
|
634
|
+
for (var te = 0; te < o.h.length; ++te) {
|
|
635
|
+
var Me = o.h[te];
|
|
636
|
+
if (Me.key.name === h.key.name) {
|
|
637
|
+
var Ht = Y === Me.kind || A && Me.kind === "init" || Y === "init" && (Me.kind === "get" || Me.kind === "set");
|
|
638
|
+
Ht && !ie && Y === "init" && Me.kind === "init" && (Ht = !1), Ht && r(h.key.start, "Redefinition of property");
|
|
633
639
|
}
|
|
634
640
|
}
|
|
635
641
|
o.h.push(h);
|
|
636
642
|
}
|
|
637
643
|
return E(o, "ObjectExpression");
|
|
638
|
-
case
|
|
639
|
-
return o = $(),
|
|
644
|
+
case Ft:
|
|
645
|
+
return o = $(), y(), Tt(o, !1);
|
|
640
646
|
case Pn:
|
|
641
|
-
return o = $(),
|
|
647
|
+
return o = $(), y(), o.callee = $e(ct(), !0), o.arguments = _(he) ? At(ue, !1) : Ir, E(o, "NewExpression");
|
|
642
648
|
}
|
|
643
649
|
B();
|
|
644
650
|
}
|
|
645
651
|
function Tt(o, l) {
|
|
646
|
-
T ===
|
|
647
|
-
var
|
|
648
|
-
for (x(he); !
|
|
649
|
-
|
|
650
|
-
|
|
652
|
+
T === Pe ? o.id = de() : l ? B() : o.id = null, o.oa = [];
|
|
653
|
+
var c = !0;
|
|
654
|
+
for (x(he); !_(ue); )
|
|
655
|
+
c ? c = !1 : x(ke), o.oa.push(de());
|
|
656
|
+
c = Ke;
|
|
651
657
|
var h = H;
|
|
652
|
-
if (Ke = !0, H = [], o.body = le(!0), Ke =
|
|
653
|
-
for (
|
|
654
|
-
if (h = 0 >
|
|
655
|
-
for (var A = 0; A <
|
|
658
|
+
if (Ke = !0, H = [], o.body = le(!0), Ke = c, H = h, ie || o.body.body.length && Ee(o.body.body[0])) {
|
|
659
|
+
for (c = o.id ? -1 : 0; c < o.oa.length; ++c)
|
|
660
|
+
if (h = 0 > c ? o.id : o.oa[c], (Hn(h.name) || ft(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= c)
|
|
661
|
+
for (var A = 0; A < c; ++A)
|
|
656
662
|
h.name === o.oa[A].name && r(h.start, "Argument name clash in strict mode");
|
|
657
663
|
}
|
|
658
664
|
return E(o, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
659
665
|
}
|
|
660
|
-
function At(o, l,
|
|
661
|
-
for (var h = [], A = !0; !
|
|
666
|
+
function At(o, l, c) {
|
|
667
|
+
for (var h = [], A = !0; !_(o); ) {
|
|
662
668
|
if (A)
|
|
663
669
|
A = !1;
|
|
664
|
-
else if (x(ke), l &&
|
|
670
|
+
else if (x(ke), l && O.sb && _(o))
|
|
665
671
|
break;
|
|
666
|
-
h.push(
|
|
672
|
+
h.push(c && T === ke ? null : Z(!0));
|
|
667
673
|
}
|
|
668
674
|
return h;
|
|
669
675
|
}
|
|
670
676
|
function de(o) {
|
|
671
677
|
var l = $();
|
|
672
|
-
return o &&
|
|
678
|
+
return o && O.yb === "everywhere" && (o = !1), T === Pe ? (!o && (O.yb && Fr(ae) || ie && Hn(ae)) && S.slice(z, Oe).indexOf("\\") === -1 && r(z, "The keyword '" + ae + "' is reserved"), l.name = ae) : o && T.l ? l.name = T.l : B(), He = !1, y(), E(l, "Identifier");
|
|
673
679
|
}
|
|
674
680
|
e.version = "0.5.0";
|
|
675
|
-
var
|
|
681
|
+
var O, S = "", Re, jt;
|
|
676
682
|
e.parse = function(o, l) {
|
|
677
|
-
S = String(o),
|
|
678
|
-
for (var
|
|
679
|
-
Object.prototype.hasOwnProperty.call(
|
|
680
|
-
for (jt =
|
|
681
|
-
|
|
683
|
+
S = String(o), Re = S.length, O = l || {};
|
|
684
|
+
for (var c in yn)
|
|
685
|
+
Object.prototype.hasOwnProperty.call(O, c) || (O[c] = yn[c]);
|
|
686
|
+
for (jt = O.sourceFile, Te = 1, d = fe = 0, He = !0, f(), c = O.dc, Pt = Se = d, O.C && (Nt = new a()), Ke = ie = !1, H = [], b(), o = c || $(), l = !0, c || (o.body = []); T !== Bt; )
|
|
687
|
+
c = M(), o.body.push(c), l && Ee(c) && V(!0), l = !1;
|
|
682
688
|
return E(o, "Program");
|
|
683
689
|
};
|
|
684
690
|
var yn = {
|
|
@@ -692,19 +698,19 @@ var F, si = function(e) {
|
|
|
692
698
|
dc: null,
|
|
693
699
|
sourceFile: null,
|
|
694
700
|
vb: null
|
|
695
|
-
}, d = 0, z = 0,
|
|
701
|
+
}, d = 0, z = 0, Oe = 0, Rt, Ot, T, ae, He, Te, fe, Pt = 0, Se = 0, Nt, Ke, H, ie, Ir = [], Ge = {
|
|
696
702
|
type: "num"
|
|
697
703
|
}, vn = {
|
|
698
704
|
type: "regexp"
|
|
699
705
|
}, ut = {
|
|
700
706
|
type: "string"
|
|
701
|
-
},
|
|
707
|
+
}, Pe = {
|
|
702
708
|
type: "name"
|
|
703
709
|
}, Bt = {
|
|
704
710
|
type: "eof"
|
|
705
711
|
}, Mt = {
|
|
706
712
|
l: "break"
|
|
707
|
-
},
|
|
713
|
+
}, Dt = {
|
|
708
714
|
l: "case",
|
|
709
715
|
m: !0
|
|
710
716
|
}, bn = {
|
|
@@ -726,7 +732,7 @@ var F, si = function(e) {
|
|
|
726
732
|
}, In = {
|
|
727
733
|
l: "for",
|
|
728
734
|
W: !0
|
|
729
|
-
},
|
|
735
|
+
}, Ft = {
|
|
730
736
|
l: "function"
|
|
731
737
|
}, Tn = {
|
|
732
738
|
l: "if"
|
|
@@ -758,16 +764,16 @@ var F, si = function(e) {
|
|
|
758
764
|
}, Mn = {
|
|
759
765
|
l: "true",
|
|
760
766
|
$a: !0
|
|
761
|
-
},
|
|
767
|
+
}, Dn = {
|
|
762
768
|
l: "false",
|
|
763
769
|
$a: !1
|
|
764
770
|
}, dt = {
|
|
765
771
|
l: "in",
|
|
766
772
|
L: 7,
|
|
767
773
|
m: !0
|
|
768
|
-
},
|
|
774
|
+
}, Tr = {
|
|
769
775
|
break: Mt,
|
|
770
|
-
case:
|
|
776
|
+
case: Dt,
|
|
771
777
|
catch: bn,
|
|
772
778
|
continue: xn,
|
|
773
779
|
debugger: Sn,
|
|
@@ -776,7 +782,7 @@ var F, si = function(e) {
|
|
|
776
782
|
else: wn,
|
|
777
783
|
finally: En,
|
|
778
784
|
for: In,
|
|
779
|
-
function:
|
|
785
|
+
function: Ft,
|
|
780
786
|
if: Tn,
|
|
781
787
|
return: An,
|
|
782
788
|
switch: Wt,
|
|
@@ -787,7 +793,7 @@ var F, si = function(e) {
|
|
|
787
793
|
with: On,
|
|
788
794
|
null: Bn,
|
|
789
795
|
true: Mn,
|
|
790
|
-
false:
|
|
796
|
+
false: Dn,
|
|
791
797
|
new: Pn,
|
|
792
798
|
in: dt,
|
|
793
799
|
instanceof: {
|
|
@@ -819,7 +825,7 @@ var F, si = function(e) {
|
|
|
819
825
|
}, ze = {
|
|
820
826
|
type: "{",
|
|
821
827
|
m: !0
|
|
822
|
-
},
|
|
828
|
+
}, Ne = {
|
|
823
829
|
type: "}"
|
|
824
830
|
}, he = {
|
|
825
831
|
type: "(",
|
|
@@ -835,7 +841,7 @@ var F, si = function(e) {
|
|
|
835
841
|
}, Ye = {
|
|
836
842
|
type: ":",
|
|
837
843
|
m: !0
|
|
838
|
-
},
|
|
844
|
+
}, Fn = {
|
|
839
845
|
type: "."
|
|
840
846
|
}, Wn = {
|
|
841
847
|
type: "?",
|
|
@@ -849,7 +855,7 @@ var F, si = function(e) {
|
|
|
849
855
|
}, Ae = {
|
|
850
856
|
Cb: !0,
|
|
851
857
|
m: !0
|
|
852
|
-
},
|
|
858
|
+
}, Ar = {
|
|
853
859
|
cc: !0,
|
|
854
860
|
prefix: !0,
|
|
855
861
|
$b: !0
|
|
@@ -862,40 +868,40 @@ var F, si = function(e) {
|
|
|
862
868
|
}, $n = {
|
|
863
869
|
L: 2,
|
|
864
870
|
m: !0
|
|
865
|
-
},
|
|
871
|
+
}, jr = {
|
|
866
872
|
L: 3,
|
|
867
873
|
m: !0
|
|
868
|
-
},
|
|
874
|
+
}, Rr = {
|
|
869
875
|
L: 4,
|
|
870
876
|
m: !0
|
|
871
|
-
},
|
|
877
|
+
}, Or = {
|
|
872
878
|
L: 5,
|
|
873
879
|
m: !0
|
|
874
|
-
},
|
|
880
|
+
}, Pr = {
|
|
875
881
|
L: 6,
|
|
876
882
|
m: !0
|
|
877
|
-
},
|
|
883
|
+
}, Nr = {
|
|
878
884
|
L: 7,
|
|
879
885
|
m: !0
|
|
880
|
-
},
|
|
886
|
+
}, Br = {
|
|
881
887
|
L: 8,
|
|
882
888
|
m: !0
|
|
883
|
-
},
|
|
889
|
+
}, Mr = {
|
|
884
890
|
L: 9,
|
|
885
891
|
prefix: !0,
|
|
886
892
|
m: !0
|
|
887
|
-
},
|
|
893
|
+
}, Dr = {
|
|
888
894
|
L: 10,
|
|
889
895
|
m: !0
|
|
890
|
-
}, Fr = i("class enum extends super const export import"), Hn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"),
|
|
896
|
+
}, Fr = i("class enum extends super const export import"), Hn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"), Wr = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Ur = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Kn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Lr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ht = /[\n\r\u2028\u2029]/, pt = /\r\n|[\n\r\u2028\u2029]/g, Be, $t = {
|
|
891
897
|
kind: "loop"
|
|
892
|
-
},
|
|
898
|
+
}, Vr = {
|
|
893
899
|
kind: "switch"
|
|
894
900
|
};
|
|
895
901
|
}, Yt = Yt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
896
|
-
|
|
902
|
+
li(Yt.j || (Yt.j = {}));
|
|
897
903
|
function p(e, t) {
|
|
898
|
-
typeof e == "string" && (e =
|
|
904
|
+
typeof e == "string" && (e = Ue(e, "code"));
|
|
899
905
|
var n = e.constructor;
|
|
900
906
|
this.ya = function() {
|
|
901
907
|
return new n({
|
|
@@ -909,7 +915,7 @@ function p(e, t) {
|
|
|
909
915
|
var a, s;
|
|
910
916
|
for (s in this)
|
|
911
917
|
typeof this[s] == "function" && (a = s.match(e)) && (this.rb[a[1]] = this[s].bind(this));
|
|
912
|
-
this.N = Jt(this, this.ra, null), this.Na = this.N.object, this.ra =
|
|
918
|
+
this.N = Jt(this, this.ra, null), this.Na = this.N.object, this.ra = Ue(this.ba.join(`
|
|
913
919
|
`), "polyfills"), this.ba = void 0, xt(this.ra), a = new C(this.ra, this.N), a.done = !1, this.o = [a], this.Eb(), this.value = void 0, this.ra = r, a = new C(this.ra, this.N), a.done = !1, this.o.length = 0, this.o[0] = a;
|
|
914
920
|
}
|
|
915
921
|
var Yn = {
|
|
@@ -935,15 +941,15 @@ var Yn = {
|
|
|
935
941
|
configurable: !1,
|
|
936
942
|
enumerable: !0,
|
|
937
943
|
writable: !0
|
|
938
|
-
},
|
|
944
|
+
}, hr = {
|
|
939
945
|
STEP_ERROR: !0
|
|
940
946
|
}, _e = {
|
|
941
947
|
SCOPE_REFERENCE: !0
|
|
942
948
|
}, rt = {
|
|
943
949
|
VALUE_IN_DESCRIPTOR: !0
|
|
944
|
-
},
|
|
950
|
+
}, De = {
|
|
945
951
|
REGEXP_TIMEOUT: !0
|
|
946
|
-
}, Jn = [], ve = null, et = null, we = typeof globalThis == "undefined" ? void 0 : globalThis,
|
|
952
|
+
}, Jn = [], ve = null, et = null, we = typeof globalThis == "undefined" ? void 0 : globalThis, ci = ["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();", "};"];
|
|
947
953
|
function tn(e) {
|
|
948
954
|
var t = e >>> 0;
|
|
949
955
|
return t === Number(e) ? t : NaN;
|
|
@@ -963,26 +969,26 @@ function xt(e, t, n) {
|
|
|
963
969
|
p.prototype.REGEXP_MODE = 2;
|
|
964
970
|
p.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
965
971
|
p.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
function
|
|
972
|
+
W = p.prototype;
|
|
973
|
+
W.P = !1;
|
|
974
|
+
W.Ka = !1;
|
|
975
|
+
W.Kb = 0;
|
|
976
|
+
W.ic = 0;
|
|
977
|
+
function Ue(e, t) {
|
|
972
978
|
var n = {}, r;
|
|
973
979
|
for (r in Yn)
|
|
974
980
|
n[r] = Yn[r];
|
|
975
981
|
return n.sourceFile = t, we.j.parse(e, n);
|
|
976
982
|
}
|
|
977
|
-
|
|
983
|
+
W.Jb = function(e) {
|
|
978
984
|
var t = this.o[0];
|
|
979
985
|
if (!t || t.node.type !== "Program")
|
|
980
986
|
throw Error("Expecting original AST to start with a Program node");
|
|
981
|
-
if (typeof e == "string" && (e =
|
|
987
|
+
if (typeof e == "string" && (e = Ue(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
982
988
|
throw Error("Expecting new AST to start with a Program node");
|
|
983
989
|
it(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
984
990
|
};
|
|
985
|
-
|
|
991
|
+
W.lb = function() {
|
|
986
992
|
var e = this.o, t;
|
|
987
993
|
do {
|
|
988
994
|
var n = e[e.length - 1];
|
|
@@ -994,7 +1000,7 @@ F.lb = function() {
|
|
|
994
1000
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
995
1001
|
n = null;
|
|
996
1002
|
else {
|
|
997
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1003
|
+
this.ca.shift(), 0 <= n.interval && gr(this, n, n.interval);
|
|
998
1004
|
var r = new C(n.node, n.scope);
|
|
999
1005
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1000
1006
|
}
|
|
@@ -1007,7 +1013,7 @@ F.lb = function() {
|
|
|
1007
1013
|
try {
|
|
1008
1014
|
var a = this.rb[r.type](e, n, r);
|
|
1009
1015
|
} catch (s) {
|
|
1010
|
-
if (s !==
|
|
1016
|
+
if (s !== hr)
|
|
1011
1017
|
throw this.value !== s && (this.value = void 0), s;
|
|
1012
1018
|
} finally {
|
|
1013
1019
|
et = i;
|
|
@@ -1020,13 +1026,13 @@ F.lb = function() {
|
|
|
1020
1026
|
} while (!r.end && t > Date.now());
|
|
1021
1027
|
return !0;
|
|
1022
1028
|
};
|
|
1023
|
-
|
|
1029
|
+
W.Eb = function() {
|
|
1024
1030
|
for (; !this.za && this.lb(); )
|
|
1025
1031
|
;
|
|
1026
1032
|
return this.za;
|
|
1027
1033
|
};
|
|
1028
|
-
function
|
|
1029
|
-
e.g(t, "NaN", NaN, Xe), e.g(t, "Infinity", 1 / 0, Xe), e.g(t, "undefined", void 0, Xe), e.g(t, "window", t, en), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M),
|
|
1034
|
+
function ui(e, t) {
|
|
1035
|
+
e.g(t, "NaN", NaN, Xe), e.g(t, "Infinity", 1 / 0, Xe), e.g(t, "undefined", void 0, Xe), e.g(t, "window", t, en), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new N(null), e.Z = new N(e.M), di(e, t), fi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, k), hi(e, t), pi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t), xi(e, t), Si(e, t);
|
|
1030
1036
|
var n = e.i(function() {
|
|
1031
1037
|
throw EvalError("Can't happen");
|
|
1032
1038
|
}, !1);
|
|
@@ -1036,8 +1042,8 @@ function ci(e, t) {
|
|
|
1036
1042
|
return function(s) {
|
|
1037
1043
|
try {
|
|
1038
1044
|
return a(s);
|
|
1039
|
-
} catch (
|
|
1040
|
-
w(e, e.Gb,
|
|
1045
|
+
} catch (u) {
|
|
1046
|
+
w(e, e.Gb, u.message);
|
|
1041
1047
|
}
|
|
1042
1048
|
};
|
|
1043
1049
|
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1), k);
|
|
@@ -1051,29 +1057,29 @@ function ci(e, t) {
|
|
|
1051
1057
|
Zn(e, a);
|
|
1052
1058
|
}, e.g(t, "clearInterval", e.i(n, !1), k), 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);
|
|
1053
1059
|
}
|
|
1054
|
-
|
|
1055
|
-
function
|
|
1060
|
+
W.Wb = 0;
|
|
1061
|
+
function di(e, t) {
|
|
1056
1062
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(i) {
|
|
1057
1063
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1058
1064
|
if (s) {
|
|
1059
1065
|
s = s.split(/\s*,\s*/);
|
|
1060
|
-
for (var
|
|
1061
|
-
var f = s[
|
|
1066
|
+
for (var u = 0; u < s.length; u++) {
|
|
1067
|
+
var f = s[u];
|
|
1062
1068
|
n.test(f) || w(e, e.T, "Invalid function argument: " + f);
|
|
1063
1069
|
}
|
|
1064
1070
|
s = s.join(", ");
|
|
1065
1071
|
}
|
|
1066
1072
|
try {
|
|
1067
|
-
var
|
|
1073
|
+
var m = Ue("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1068
1074
|
} catch (b) {
|
|
1069
1075
|
w(e, e.T, "Invalid code: " + b.message);
|
|
1070
1076
|
}
|
|
1071
|
-
return
|
|
1077
|
+
return m.body.length !== 1 && w(e, e.T, "Invalid code in function body"), on(e, m.body[0].la, e.N, "anonymous");
|
|
1072
1078
|
};
|
|
1073
1079
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, k), e.g(e.O, "prototype", e.Z, k), e.g(e.Z, "constructor", e.O, k), e.Z.Ta = function() {
|
|
1074
1080
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, re), e.Z.H = "Function", r = function(i, a) {
|
|
1075
1081
|
var s = e.o[e.o.length - 1];
|
|
1076
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof N ? s.F =
|
|
1082
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof N ? s.F = pr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1077
1083
|
}, X(e, e.O, "apply", r), r = function(i) {
|
|
1078
1084
|
var a = e.o[e.o.length - 1];
|
|
1079
1085
|
a.U = this, a.B = i, a.F = [];
|
|
@@ -1086,7 +1092,7 @@ function ui(e, t) {
|
|
|
1086
1092
|
return this.valueOf();
|
|
1087
1093
|
}, X(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), k);
|
|
1088
1094
|
}
|
|
1089
|
-
function
|
|
1095
|
+
function fi(e, t) {
|
|
1090
1096
|
function n(i) {
|
|
1091
1097
|
i != null || w(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1092
1098
|
}
|
|
@@ -1109,8 +1115,8 @@ function di(e, t) {
|
|
|
1109
1115
|
return a = String(a), i instanceof N || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof N || w(e, e.j, "Property description must be an object"), !i.preventExtensions || a in i.h || w(e, e.j, "Can't define property '" + a + "', object is not extensible"), e.g(i, a, rt, s.h), i;
|
|
1110
1116
|
}, e.g(e.v, "defineProperty", e.i(r, !1), k), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(i, a) {
|
|
1111
1117
|
if (i instanceof N || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1112
|
-
var s = Object.getOwnPropertyDescriptor(i.h, a),
|
|
1113
|
-
return i = i.Y[a], a = e.s(e.M),
|
|
1118
|
+
var s = Object.getOwnPropertyDescriptor(i.h, a), u = i.V[a];
|
|
1119
|
+
return i = i.Y[a], a = e.s(e.M), u || i ? (e.g(a, "get", u), e.g(a, "set", i)) : (e.g(a, "value", s.value), e.g(a, "writable", s.writable)), e.g(a, "configurable", s.configurable), e.g(a, "enumerable", s.enumerable), a;
|
|
1114
1120
|
}
|
|
1115
1121
|
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), k), r = function(i) {
|
|
1116
1122
|
return n(i), be(e, i);
|
|
@@ -1131,9 +1137,9 @@ function di(e, t) {
|
|
|
1131
1137
|
}
|
|
1132
1138
|
}, X(e, e.v, "isPrototypeOf", r);
|
|
1133
1139
|
}
|
|
1134
|
-
function
|
|
1140
|
+
function hi(e, t) {
|
|
1135
1141
|
var n = function(r) {
|
|
1136
|
-
var i = xe(e) ? this :
|
|
1142
|
+
var i = xe(e) ? this : Le(e), a = arguments[0];
|
|
1137
1143
|
if (arguments.length === 1 && typeof a == "number")
|
|
1138
1144
|
isNaN(tn(a)) && w(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1139
1145
|
else {
|
|
@@ -1151,7 +1157,7 @@ function fi(e, t) {
|
|
|
1151
1157
|
writable: !0
|
|
1152
1158
|
}), 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(',');", "}", ");", "})();", "");
|
|
1153
1159
|
}
|
|
1154
|
-
function
|
|
1160
|
+
function pi(e, t) {
|
|
1155
1161
|
var n = function(r) {
|
|
1156
1162
|
return r = arguments.length ? we.String(r) : "", xe(e) ? (this.data = r, this) : r;
|
|
1157
1163
|
};
|
|
@@ -1172,12 +1178,12 @@ function hi(e, t) {
|
|
|
1172
1178
|
string: s,
|
|
1173
1179
|
separator: r,
|
|
1174
1180
|
limit: i
|
|
1175
|
-
}, r, a), r !==
|
|
1181
|
+
}, r, a), r !== De && a(ge(e, r));
|
|
1176
1182
|
else {
|
|
1177
|
-
var
|
|
1178
|
-
|
|
1179
|
-
clearTimeout(f), a(ge(e,
|
|
1180
|
-
},
|
|
1183
|
+
var u = e.ha(), f = Ze(e, r, u, a);
|
|
1184
|
+
u.onmessage = function(m) {
|
|
1185
|
+
clearTimeout(f), a(ge(e, m.data));
|
|
1186
|
+
}, u.postMessage(["split", s, r, i]);
|
|
1181
1187
|
}
|
|
1182
1188
|
return;
|
|
1183
1189
|
}
|
|
@@ -1189,11 +1195,11 @@ function hi(e, t) {
|
|
|
1189
1195
|
r = Je(e, "string.match(regexp)", {
|
|
1190
1196
|
string: a,
|
|
1191
1197
|
regexp: r
|
|
1192
|
-
}, r, i), r !==
|
|
1198
|
+
}, r, i), r !== De && i(r && ge(e, r));
|
|
1193
1199
|
else {
|
|
1194
|
-
var s = e.ha(),
|
|
1200
|
+
var s = e.ha(), u = Ze(e, r, s, i);
|
|
1195
1201
|
s.onmessage = function(f) {
|
|
1196
|
-
clearTimeout(
|
|
1202
|
+
clearTimeout(u), i(f.data && ge(e, f.data));
|
|
1197
1203
|
}, s.postMessage(["match", a, r]);
|
|
1198
1204
|
}
|
|
1199
1205
|
else
|
|
@@ -1205,11 +1211,11 @@ function hi(e, t) {
|
|
|
1205
1211
|
r = Je(e, "string.search(regexp)", {
|
|
1206
1212
|
string: a,
|
|
1207
1213
|
regexp: r
|
|
1208
|
-
}, r, i), r !==
|
|
1214
|
+
}, r, i), r !== De && i(r);
|
|
1209
1215
|
else {
|
|
1210
|
-
var s = e.ha(),
|
|
1216
|
+
var s = e.ha(), u = Ze(e, r, s, i);
|
|
1211
1217
|
s.onmessage = function(f) {
|
|
1212
|
-
clearTimeout(
|
|
1218
|
+
clearTimeout(u), i(f.data);
|
|
1213
1219
|
}, s.postMessage(["search", a, r]);
|
|
1214
1220
|
}
|
|
1215
1221
|
else
|
|
@@ -1222,24 +1228,24 @@ function hi(e, t) {
|
|
|
1222
1228
|
string: s,
|
|
1223
1229
|
substr: r,
|
|
1224
1230
|
newSubstr: i
|
|
1225
|
-
}, r, a), r !==
|
|
1231
|
+
}, r, a), r !== De && a(r);
|
|
1226
1232
|
else {
|
|
1227
|
-
var
|
|
1228
|
-
|
|
1229
|
-
clearTimeout(f), a(
|
|
1230
|
-
},
|
|
1233
|
+
var u = e.ha(), f = Ze(e, r, u, a);
|
|
1234
|
+
u.onmessage = function(m) {
|
|
1235
|
+
clearTimeout(f), a(m.data);
|
|
1236
|
+
}, u.postMessage(["replace", s, r, i]);
|
|
1231
1237
|
}
|
|
1232
1238
|
return;
|
|
1233
1239
|
}
|
|
1234
1240
|
a(s.replace(r, i));
|
|
1235
1241
|
}, Qe(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;", "};", "})();", "");
|
|
1236
1242
|
}
|
|
1237
|
-
function
|
|
1243
|
+
function mi(e, t) {
|
|
1238
1244
|
e.mb = e.i(function(n) {
|
|
1239
1245
|
return n = we.Boolean(n), xe(e) ? (this.data = n, this) : n;
|
|
1240
1246
|
}, !0), e.g(t, "Boolean", e.mb, k);
|
|
1241
1247
|
}
|
|
1242
|
-
function
|
|
1248
|
+
function gi(e, t) {
|
|
1243
1249
|
var n = function(r) {
|
|
1244
1250
|
return r = arguments.length ? we.Number(r) : 0, xe(e) ? (this.data = r, this) : r;
|
|
1245
1251
|
};
|
|
@@ -1278,7 +1284,7 @@ function mi(e, t) {
|
|
|
1278
1284
|
}
|
|
1279
1285
|
}, X(e, e.aa, "toLocaleString", n);
|
|
1280
1286
|
}
|
|
1281
|
-
function
|
|
1287
|
+
function yi(e, t) {
|
|
1282
1288
|
var n = function(i, a) {
|
|
1283
1289
|
if (!xe(e))
|
|
1284
1290
|
return we.Date();
|
|
@@ -1291,13 +1297,13 @@ function gi(e, t) {
|
|
|
1291
1297
|
return function(a) {
|
|
1292
1298
|
var s = this.data;
|
|
1293
1299
|
s instanceof Date || w(e, e.j, i + " not called on a Date");
|
|
1294
|
-
for (var
|
|
1295
|
-
|
|
1296
|
-
return s[i].apply(s,
|
|
1300
|
+
for (var u = [], f = 0; f < arguments.length; f++)
|
|
1301
|
+
u[f] = e.R(arguments[f]);
|
|
1302
|
+
return s[i].apply(s, u);
|
|
1297
1303
|
};
|
|
1298
1304
|
}(t[r]), X(e, e.$, t[r], n);
|
|
1299
1305
|
}
|
|
1300
|
-
function
|
|
1306
|
+
function vi(e, t) {
|
|
1301
1307
|
var n = function(r, i) {
|
|
1302
1308
|
if (xe(e))
|
|
1303
1309
|
var a = this;
|
|
@@ -1309,16 +1315,16 @@ function yi(e, t) {
|
|
|
1309
1315
|
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) || w(e, e.T, "Invalid regexp flag: " + i);
|
|
1310
1316
|
try {
|
|
1311
1317
|
var s = new we.RegExp(r, i);
|
|
1312
|
-
} catch (
|
|
1313
|
-
w(e, e.T,
|
|
1318
|
+
} catch (u) {
|
|
1319
|
+
w(e, e.T, u.message);
|
|
1314
1320
|
}
|
|
1315
1321
|
return nn(e, a, s), a;
|
|
1316
1322
|
};
|
|
1317
1323
|
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, k), e.g(e.I.h.prototype, "global", void 0, re), e.g(e.I.h.prototype, "ignoreCase", void 0, re), e.g(e.I.h.prototype, "multiline", void 0, re), e.g(e.I.h.prototype, "source", "(?:)", re), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1318
1324
|
function a(b) {
|
|
1319
1325
|
if (b) {
|
|
1320
|
-
var
|
|
1321
|
-
return e.g(
|
|
1326
|
+
var v = ge(e, b);
|
|
1327
|
+
return e.g(v, "index", b.index), e.g(v, "input", b.input), v;
|
|
1322
1328
|
}
|
|
1323
1329
|
return null;
|
|
1324
1330
|
}
|
|
@@ -1328,18 +1334,18 @@ function yi(e, t) {
|
|
|
1328
1334
|
r = Je(e, "regexp.exec(string)", {
|
|
1329
1335
|
string: r,
|
|
1330
1336
|
regexp: s
|
|
1331
|
-
}, s, i), r !==
|
|
1337
|
+
}, s, i), r !== De && (e.g(this, "lastIndex", s.lastIndex), i(a(r)));
|
|
1332
1338
|
else {
|
|
1333
|
-
var
|
|
1334
|
-
|
|
1335
|
-
clearTimeout(f), e.g(
|
|
1336
|
-
},
|
|
1339
|
+
var u = e.ha(), f = Ze(e, s, u, i), m = this;
|
|
1340
|
+
u.onmessage = function(b) {
|
|
1341
|
+
clearTimeout(f), e.g(m, "lastIndex", b.data[1]), i(a(b.data[0]));
|
|
1342
|
+
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1337
1343
|
}
|
|
1338
1344
|
else
|
|
1339
1345
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), i(a(r));
|
|
1340
1346
|
}, Qe(e, e.I, "exec", n);
|
|
1341
1347
|
}
|
|
1342
|
-
function
|
|
1348
|
+
function bi(e, t) {
|
|
1343
1349
|
function n(r) {
|
|
1344
1350
|
var i = e.i(function(a) {
|
|
1345
1351
|
var s = xe(e) ? this : e.Aa(i);
|
|
@@ -1352,7 +1358,7 @@ function vi(e, t) {
|
|
|
1352
1358
|
return Xt(e, i, r), i;
|
|
1353
1359
|
}, !0), e.g(t, "Error", e.D, k), e.g(e.D.h.prototype, "message", "", k), e.g(e.D.h.prototype, "name", "Error", k), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1354
1360
|
}
|
|
1355
|
-
function
|
|
1361
|
+
function xi(e, t) {
|
|
1356
1362
|
var n = e.s(e.M);
|
|
1357
1363
|
e.g(t, "Math", n, k);
|
|
1358
1364
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1361,7 +1367,7 @@ function bi(e, t) {
|
|
|
1361
1367
|
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++)
|
|
1362
1368
|
e.g(n, r[t], e.i(Math[r[t]], !1), k);
|
|
1363
1369
|
}
|
|
1364
|
-
function
|
|
1370
|
+
function Si(e, t) {
|
|
1365
1371
|
var n = e.s(e.M);
|
|
1366
1372
|
e.g(t, "JSON", n, k), t = function(r) {
|
|
1367
1373
|
try {
|
|
@@ -1371,13 +1377,13 @@ function xi(e, t) {
|
|
|
1371
1377
|
}
|
|
1372
1378
|
return e.Ia(i);
|
|
1373
1379
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, i, a) {
|
|
1374
|
-
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i =
|
|
1375
|
-
return typeof
|
|
1380
|
+
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = pr(e, i), i = i.filter(function(u) {
|
|
1381
|
+
return typeof u == "string" || typeof u == "number";
|
|
1376
1382
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1377
1383
|
try {
|
|
1378
1384
|
var s = JSON.stringify(r, i, a);
|
|
1379
|
-
} catch (
|
|
1380
|
-
w(e, e.j,
|
|
1385
|
+
} catch (u) {
|
|
1386
|
+
w(e, e.j, u.message);
|
|
1381
1387
|
}
|
|
1382
1388
|
return s;
|
|
1383
1389
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1414,9 +1420,9 @@ function Xt(e, t, n) {
|
|
|
1414
1420
|
}
|
|
1415
1421
|
e.g(t, "stack", a.trim(), k);
|
|
1416
1422
|
}
|
|
1417
|
-
|
|
1423
|
+
W.ha = function() {
|
|
1418
1424
|
var e = this.ha.Mb;
|
|
1419
|
-
return e || (e = new Blob([
|
|
1425
|
+
return e || (e = new Blob([ci.join(`
|
|
1420
1426
|
`)], {
|
|
1421
1427
|
type: "application/javascript"
|
|
1422
1428
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
@@ -1430,7 +1436,7 @@ function Je(e, t, n, r, i) {
|
|
|
1430
1436
|
} catch {
|
|
1431
1437
|
i(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1432
1438
|
}
|
|
1433
|
-
return
|
|
1439
|
+
return De;
|
|
1434
1440
|
}
|
|
1435
1441
|
function qe(e, t, n) {
|
|
1436
1442
|
if (e.REGEXP_MODE === 0)
|
|
@@ -1460,15 +1466,15 @@ function Ze(e, t, n, r) {
|
|
|
1460
1466
|
}
|
|
1461
1467
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1462
1468
|
}
|
|
1463
|
-
|
|
1469
|
+
W.Aa = function(e) {
|
|
1464
1470
|
return this.s(e && e.h.prototype);
|
|
1465
1471
|
};
|
|
1466
|
-
|
|
1472
|
+
W.s = function(e) {
|
|
1467
1473
|
if (typeof e != "object")
|
|
1468
1474
|
throw Error("Non object prototype");
|
|
1469
1475
|
return e = new N(e), q(this, e, this.D) && (e.H = "Error"), e;
|
|
1470
1476
|
};
|
|
1471
|
-
function
|
|
1477
|
+
function Le(e) {
|
|
1472
1478
|
var t = e.s(e.La);
|
|
1473
1479
|
return e.g(t, "length", 0, {
|
|
1474
1480
|
configurable: !1,
|
|
@@ -1484,14 +1490,14 @@ function on(e, t, n, r) {
|
|
|
1484
1490
|
var i = rn(e, t.oa.length, !0);
|
|
1485
1491
|
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", re), i;
|
|
1486
1492
|
}
|
|
1487
|
-
|
|
1493
|
+
W.i = function(e, t) {
|
|
1488
1494
|
return t = rn(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1489
1495
|
};
|
|
1490
|
-
|
|
1496
|
+
W.ub = function(e) {
|
|
1491
1497
|
var t = rn(this, e.length, !0);
|
|
1492
1498
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, re), t;
|
|
1493
1499
|
};
|
|
1494
|
-
|
|
1500
|
+
W.Ia = function(e) {
|
|
1495
1501
|
if (e instanceof N)
|
|
1496
1502
|
throw Error("Object is already pseudo");
|
|
1497
1503
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
@@ -1512,7 +1518,7 @@ F.Ia = function(e) {
|
|
|
1512
1518
|
}, !!t);
|
|
1513
1519
|
}
|
|
1514
1520
|
if (Array.isArray(e)) {
|
|
1515
|
-
t =
|
|
1521
|
+
t = Le(this);
|
|
1516
1522
|
for (var r = 0; r < e.length; r++)
|
|
1517
1523
|
r in e && this.g(t, r, this.Ia(e[r]));
|
|
1518
1524
|
return t;
|
|
@@ -1522,7 +1528,7 @@ F.Ia = function(e) {
|
|
|
1522
1528
|
this.g(t, r, this.Ia(e[r]));
|
|
1523
1529
|
return t;
|
|
1524
1530
|
};
|
|
1525
|
-
|
|
1531
|
+
W.R = function(e, t) {
|
|
1526
1532
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1527
1533
|
return e;
|
|
1528
1534
|
if (!(e instanceof N))
|
|
@@ -1553,11 +1559,11 @@ F.R = function(e, t) {
|
|
|
1553
1559
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1554
1560
|
};
|
|
1555
1561
|
function ge(e, t) {
|
|
1556
|
-
for (var n =
|
|
1562
|
+
for (var n = Le(e), r = Object.getOwnPropertyNames(t), i = 0; i < r.length; i++)
|
|
1557
1563
|
e.g(n, r[i], t[r[i]]);
|
|
1558
1564
|
return n;
|
|
1559
1565
|
}
|
|
1560
|
-
function
|
|
1566
|
+
function pr(e, t) {
|
|
1561
1567
|
var n = [], r;
|
|
1562
1568
|
for (r in t.h)
|
|
1563
1569
|
n[r] = e.G(t, r);
|
|
@@ -1574,7 +1580,7 @@ function be(e, t) {
|
|
|
1574
1580
|
}
|
|
1575
1581
|
return t ? t.xa : null;
|
|
1576
1582
|
}
|
|
1577
|
-
|
|
1583
|
+
W.G = function(e, t) {
|
|
1578
1584
|
if (this.P)
|
|
1579
1585
|
throw Error("Getter not supported in that context");
|
|
1580
1586
|
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
@@ -1608,7 +1614,7 @@ function St(e, t, n) {
|
|
|
1608
1614
|
while (t = be(e, t));
|
|
1609
1615
|
return !1;
|
|
1610
1616
|
}
|
|
1611
|
-
|
|
1617
|
+
W.g = function(e, t, n, r) {
|
|
1612
1618
|
if (this.Ka)
|
|
1613
1619
|
throw Error("Setter not supported in that context");
|
|
1614
1620
|
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof N))
|
|
@@ -1670,10 +1676,10 @@ F.g = function(e, t, n, r) {
|
|
|
1670
1676
|
} else
|
|
1671
1677
|
i && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1672
1678
|
};
|
|
1673
|
-
|
|
1679
|
+
W.g.ac = function() {
|
|
1674
1680
|
throw Error("Placeholder getter");
|
|
1675
1681
|
};
|
|
1676
|
-
|
|
1682
|
+
W.g.bc = function() {
|
|
1677
1683
|
throw Error("Placeholder setter");
|
|
1678
1684
|
};
|
|
1679
1685
|
function X(e, t, n, r) {
|
|
@@ -1695,12 +1701,12 @@ function Jt(e, t, n) {
|
|
|
1695
1701
|
var i = t.body && t.body[0];
|
|
1696
1702
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (r = !0);
|
|
1697
1703
|
}
|
|
1698
|
-
return i = e.s(null), r = new
|
|
1704
|
+
return i = e.s(null), r = new yr(n, r, i), n || ui(e, r.object), it(e, t, r), r;
|
|
1699
1705
|
}
|
|
1700
1706
|
function sn(e, t, n) {
|
|
1701
1707
|
if (!t)
|
|
1702
1708
|
throw Error("parentScope required");
|
|
1703
|
-
return e = n || e.s(null), new
|
|
1709
|
+
return e = n || e.s(null), new yr(t, t.S, e);
|
|
1704
1710
|
}
|
|
1705
1711
|
function ln(e, t) {
|
|
1706
1712
|
for (var n = an(e); n && n !== e.N; ) {
|
|
@@ -1712,7 +1718,7 @@ function ln(e, t) {
|
|
|
1712
1718
|
return e.G(n.object, t);
|
|
1713
1719
|
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1714
1720
|
}
|
|
1715
|
-
function
|
|
1721
|
+
function mr(e, t, n) {
|
|
1716
1722
|
for (var r = an(e), i = r.S; r && r !== e.N; ) {
|
|
1717
1723
|
if (t in r.object.h) {
|
|
1718
1724
|
try {
|
|
@@ -1756,17 +1762,17 @@ function it(e, t, n) {
|
|
|
1756
1762
|
var a = t.constructor, s;
|
|
1757
1763
|
for (s in t)
|
|
1758
1764
|
if (s !== "loc") {
|
|
1759
|
-
var
|
|
1760
|
-
if (
|
|
1761
|
-
if (Array.isArray(
|
|
1762
|
-
for (i = 0; i <
|
|
1763
|
-
if (
|
|
1764
|
-
var f = it(e,
|
|
1765
|
+
var u = t[s];
|
|
1766
|
+
if (u && typeof u == "object") {
|
|
1767
|
+
if (Array.isArray(u)) {
|
|
1768
|
+
for (i = 0; i < u.length; i++)
|
|
1769
|
+
if (u[i] && u[i].constructor === a) {
|
|
1770
|
+
var f = it(e, u[i], n);
|
|
1765
1771
|
for (s in f)
|
|
1766
1772
|
r[s] = f[s];
|
|
1767
1773
|
}
|
|
1768
|
-
} else if (
|
|
1769
|
-
for (s in f = it(e,
|
|
1774
|
+
} else if (u.constructor === a)
|
|
1775
|
+
for (s in f = it(e, u, n), f)
|
|
1770
1776
|
r[s] = f[s];
|
|
1771
1777
|
}
|
|
1772
1778
|
}
|
|
@@ -1784,10 +1790,10 @@ function cn(e, t) {
|
|
|
1784
1790
|
return t[0] === _e ? ln(e, t[1]) : e.G(t[0], t[1]);
|
|
1785
1791
|
}
|
|
1786
1792
|
function un(e, t, n) {
|
|
1787
|
-
return t[0] === _e ?
|
|
1793
|
+
return t[0] === _e ? mr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1788
1794
|
}
|
|
1789
1795
|
function w(e, t, n) {
|
|
1790
|
-
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), Xt(e, t, n)), at(e, 4, t),
|
|
1796
|
+
throw e.N ? (n !== void 0 && t instanceof N && (t = e.Aa(t), Xt(e, t, n)), at(e, 4, t), hr) : n === void 0 ? t : n;
|
|
1791
1797
|
}
|
|
1792
1798
|
function at(e, t, n, r) {
|
|
1793
1799
|
if (t === 0)
|
|
@@ -1870,19 +1876,19 @@ function qn(e, t, n) {
|
|
|
1870
1876
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1871
1877
|
var s = e.ya();
|
|
1872
1878
|
if (a instanceof N && a.H === "Function") {
|
|
1873
|
-
var
|
|
1879
|
+
var u = a;
|
|
1874
1880
|
s.type = "CallExpression", r = r.scope;
|
|
1875
1881
|
} else {
|
|
1876
1882
|
try {
|
|
1877
|
-
var f =
|
|
1878
|
-
} catch (
|
|
1879
|
-
w(e, e.T, "Invalid code: " +
|
|
1883
|
+
var f = Ue(String(a), "taskCode" + e.ic++);
|
|
1884
|
+
} catch (m) {
|
|
1885
|
+
w(e, e.T, "Invalid code: " + m.message);
|
|
1880
1886
|
}
|
|
1881
1887
|
s.type = "EvalProgram_", s.body = f.body, r = r.node.arguments[0], xt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, i.length = 0;
|
|
1882
1888
|
}
|
|
1883
|
-
return t = new
|
|
1889
|
+
return t = new ki(u, i, r, s, t ? n : -1), gr(e, t, n), t.Db;
|
|
1884
1890
|
}
|
|
1885
|
-
function
|
|
1891
|
+
function gr(e, t, n) {
|
|
1886
1892
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, i) {
|
|
1887
1893
|
return r.time - i.time;
|
|
1888
1894
|
});
|
|
@@ -1911,29 +1917,29 @@ function dn(e, t, n, r) {
|
|
|
1911
1917
|
function Gt(e, t) {
|
|
1912
1918
|
return t == null ? e.Na : t instanceof N ? t : (e = e.s(be(e, t)), e.data = t, e);
|
|
1913
1919
|
}
|
|
1914
|
-
|
|
1920
|
+
W.Xb = function() {
|
|
1915
1921
|
return this.N;
|
|
1916
1922
|
};
|
|
1917
|
-
|
|
1923
|
+
W.Yb = function() {
|
|
1918
1924
|
return this.o;
|
|
1919
1925
|
};
|
|
1920
|
-
|
|
1926
|
+
W.ec = function(e) {
|
|
1921
1927
|
this.o = e;
|
|
1922
1928
|
};
|
|
1923
1929
|
function C(e, t) {
|
|
1924
1930
|
this.node = e, this.scope = t;
|
|
1925
1931
|
}
|
|
1926
|
-
function
|
|
1932
|
+
function yr(e, t, n) {
|
|
1927
1933
|
this.Va = e, this.S = t, this.object = n;
|
|
1928
1934
|
}
|
|
1929
1935
|
function N(e) {
|
|
1930
1936
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1931
1937
|
}
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1938
|
+
W = N.prototype;
|
|
1939
|
+
W.xa = null;
|
|
1940
|
+
W.H = "Object";
|
|
1941
|
+
W.data = null;
|
|
1942
|
+
W.toString = function() {
|
|
1937
1943
|
if (!et)
|
|
1938
1944
|
return "[object Interpreter.Object]";
|
|
1939
1945
|
if (!(this instanceof N))
|
|
@@ -1981,17 +1987,17 @@ F.toString = function() {
|
|
|
1981
1987
|
}
|
|
1982
1988
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1983
1989
|
};
|
|
1984
|
-
|
|
1990
|
+
W.valueOf = function() {
|
|
1985
1991
|
return !et || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1986
1992
|
};
|
|
1987
|
-
function
|
|
1988
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++
|
|
1993
|
+
function ki(e, t, n, r, i) {
|
|
1994
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++Ci, this.time = 0;
|
|
1989
1995
|
}
|
|
1990
|
-
var
|
|
1996
|
+
var Ci = 0;
|
|
1991
1997
|
p.prototype.stepArrayExpression = function(e, t, n) {
|
|
1992
1998
|
n = n.elements;
|
|
1993
1999
|
var r = t.A || 0;
|
|
1994
|
-
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa =
|
|
2000
|
+
for (t.Oa ? (this.g(t.Oa, r, t.value), r++) : (t.Oa = Le(this), t.Oa.h.length = n.length); r < n.length; ) {
|
|
1995
2001
|
if (n[r])
|
|
1996
2002
|
return t.A = r, new C(n[r], t.scope);
|
|
1997
2003
|
r++;
|
|
@@ -2159,7 +2165,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2159
2165
|
return new C(n.arguments[t.A++], t.scope);
|
|
2160
2166
|
if (n.type === "NewExpression") {
|
|
2161
2167
|
if (i instanceof N && !i.Ab || w(this, this.j, ne(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2162
|
-
t.B =
|
|
2168
|
+
t.B = Le(this);
|
|
2163
2169
|
else {
|
|
2164
2170
|
var a = i.h.prototype;
|
|
2165
2171
|
(typeof a != "object" || a === null) && (a = this.M), t.B = this.s(a);
|
|
@@ -2172,7 +2178,7 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2172
2178
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2173
2179
|
else {
|
|
2174
2180
|
if (t.eb = !0, i instanceof N || w(this, this.j, ne(this, n.callee) + " is not a function"), e = i.node) {
|
|
2175
|
-
for (n = Jt(this, e.body, i.Va), r =
|
|
2181
|
+
for (n = Jt(this, e.body, i.Va), r = Le(this), i = 0; i < t.F.length; i++)
|
|
2176
2182
|
this.g(r, i, t.F[i]);
|
|
2177
2183
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
2178
2184
|
this.g(n.object, e.oa[i].name, t.F.length > i ? t.F[i] : void 0);
|
|
@@ -2183,9 +2189,9 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2183
2189
|
t.value = i;
|
|
2184
2190
|
else {
|
|
2185
2191
|
try {
|
|
2186
|
-
r =
|
|
2187
|
-
} catch (
|
|
2188
|
-
w(this, this.T, "Invalid code: " +
|
|
2192
|
+
r = Ue(String(i), "eval" + this.Hb++);
|
|
2193
|
+
} catch (u) {
|
|
2194
|
+
w(this, this.T, "Invalid code: " + u.message);
|
|
2189
2195
|
}
|
|
2190
2196
|
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, xt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Jt(this, r, n) : it(this, r, n), this.value = void 0, new C(i, n);
|
|
2191
2197
|
}
|
|
@@ -2193,8 +2199,8 @@ p.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2193
2199
|
t.scope.S || (t.B = Gt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
2194
2200
|
else if (i.Za) {
|
|
2195
2201
|
var s = this;
|
|
2196
|
-
r = i.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(
|
|
2197
|
-
t.value =
|
|
2202
|
+
r = i.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2203
|
+
t.value = u, s.za = !1;
|
|
2198
2204
|
}), this.za = !0, t.scope.S || (t.B = Gt(this, t.B)), i.Za.apply(t.B, r);
|
|
2199
2205
|
} else
|
|
2200
2206
|
w(this, this.j, ne(this, n.callee) + " is not callable");
|
|
@@ -2508,7 +2514,7 @@ p.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2508
2514
|
p.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2509
2515
|
n = n.fa;
|
|
2510
2516
|
var r = t.A || 0, i = n[r];
|
|
2511
|
-
for (t.Bb && i && (
|
|
2517
|
+
for (t.Bb && i && (mr(this, i.id.name, t.value), t.Bb = !1, i = n[++r]); i; ) {
|
|
2512
2518
|
if (i.ua)
|
|
2513
2519
|
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new C(i.ua, t.scope);
|
|
2514
2520
|
i = n[++r];
|
|
@@ -2535,20 +2541,20 @@ p.prototype.getGlobalScope = p.prototype.Xb;
|
|
|
2535
2541
|
p.prototype.getStateStack = p.prototype.Yb;
|
|
2536
2542
|
p.prototype.setStateStack = p.prototype.ec;
|
|
2537
2543
|
p.VALUE_IN_DESCRIPTOR = rt;
|
|
2538
|
-
const
|
|
2544
|
+
const wi = (e) => e.split(`
|
|
2539
2545
|
`).map((t) => {
|
|
2540
2546
|
const n = t.trim();
|
|
2541
2547
|
if (t.includes("__awaiter"))
|
|
2542
2548
|
return;
|
|
2543
2549
|
if (!n.startsWith("state."))
|
|
2544
2550
|
return t;
|
|
2545
|
-
const [i, a] = n.split("="),
|
|
2551
|
+
const [i, a] = n.split("="), u = `setRootState('${i.replace("state.", "").trim()}', ${a.trim()})`;
|
|
2546
2552
|
return `
|
|
2547
2553
|
${t}
|
|
2548
|
-
${
|
|
2554
|
+
${u}
|
|
2549
2555
|
`;
|
|
2550
2556
|
}).filter(Boolean).join(`
|
|
2551
|
-
`), Qn = (e) => e + "JSON",
|
|
2557
|
+
`), Qn = (e) => e + "JSON", Ei = ({
|
|
2552
2558
|
builder: e,
|
|
2553
2559
|
context: t,
|
|
2554
2560
|
event: n,
|
|
@@ -2557,52 +2563,52 @@ const Ci = (e) => e.split(`
|
|
|
2557
2563
|
rootSetState: a,
|
|
2558
2564
|
code: s
|
|
2559
2565
|
}) => {
|
|
2560
|
-
const
|
|
2566
|
+
const u = {
|
|
2561
2567
|
...r,
|
|
2562
2568
|
...i
|
|
2563
|
-
}, f =
|
|
2569
|
+
}, f = ur({
|
|
2564
2570
|
builder: e,
|
|
2565
2571
|
context: t,
|
|
2566
2572
|
event: n,
|
|
2567
|
-
state:
|
|
2568
|
-
}),
|
|
2569
|
-
const
|
|
2570
|
-
return `var ${
|
|
2573
|
+
state: u
|
|
2574
|
+
}), m = f.map(([F]) => {
|
|
2575
|
+
const P = Qn(F);
|
|
2576
|
+
return `var ${F} = ${P} === undefined ? undefined : JSON.parse(${P});`;
|
|
2571
2577
|
}).join(`
|
|
2572
|
-
`), b =
|
|
2578
|
+
`), b = wi(s);
|
|
2573
2579
|
if (b === "") {
|
|
2574
2580
|
ot.warn("Skipping evaluation of empty code block.");
|
|
2575
2581
|
return;
|
|
2576
2582
|
}
|
|
2577
|
-
const
|
|
2583
|
+
const v = `
|
|
2578
2584
|
function theFunction() {
|
|
2579
|
-
${
|
|
2585
|
+
${m}
|
|
2580
2586
|
|
|
2581
2587
|
${b}
|
|
2582
2588
|
}
|
|
2583
2589
|
theFunction();
|
|
2584
|
-
`, j = (
|
|
2585
|
-
const
|
|
2586
|
-
a == null || a(
|
|
2587
|
-
}, D = function(
|
|
2588
|
-
f.forEach(([
|
|
2589
|
-
const G = JSON.stringify(
|
|
2590
|
-
|
|
2591
|
-
}),
|
|
2592
|
-
},
|
|
2593
|
-
return
|
|
2590
|
+
`, j = (F, P) => {
|
|
2591
|
+
const y = fr(u, F, P);
|
|
2592
|
+
a == null || a(y);
|
|
2593
|
+
}, D = function(F, P) {
|
|
2594
|
+
f.forEach(([y, V]) => {
|
|
2595
|
+
const G = JSON.stringify(V);
|
|
2596
|
+
F.setProperty(P, Qn(y), G);
|
|
2597
|
+
}), F.setProperty(P, "setRootState", F.createNativeFunction(j));
|
|
2598
|
+
}, U = new p(v, D);
|
|
2599
|
+
return U.run(), U.pseudoToNative(U.value);
|
|
2594
2600
|
};
|
|
2595
|
-
function
|
|
2601
|
+
function Ii() {
|
|
2596
2602
|
var e;
|
|
2597
2603
|
return typeof process != "undefined" && yt((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
2598
2604
|
}
|
|
2599
|
-
const
|
|
2605
|
+
const Ti = () => {
|
|
2600
2606
|
var r;
|
|
2601
|
-
if (!
|
|
2607
|
+
if (!Ii())
|
|
2602
2608
|
return !1;
|
|
2603
2609
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2604
2610
|
return e && t && !n ? (ot.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;
|
|
2605
|
-
},
|
|
2611
|
+
}, Ai = (e) => We() || Ti() ? si(e) : Ei(e), ji = !0, me = class me {
|
|
2606
2612
|
static getCacheKey(t) {
|
|
2607
2613
|
return JSON.stringify({
|
|
2608
2614
|
...t,
|
|
@@ -2622,7 +2628,7 @@ const Ii = () => {
|
|
|
2622
2628
|
};
|
|
2623
2629
|
Kt(me, "cacheLimit", 20), Kt(me, "cache", /* @__PURE__ */ new Map());
|
|
2624
2630
|
let Fe = me;
|
|
2625
|
-
function
|
|
2631
|
+
function Ve({
|
|
2626
2632
|
code: e,
|
|
2627
2633
|
context: t,
|
|
2628
2634
|
localState: n,
|
|
@@ -2630,42 +2636,80 @@ function Le({
|
|
|
2630
2636
|
rootSetState: i,
|
|
2631
2637
|
event: a,
|
|
2632
2638
|
isExpression: s = !0,
|
|
2633
|
-
enableCache:
|
|
2639
|
+
enableCache: u
|
|
2634
2640
|
}) {
|
|
2635
2641
|
if (e === "")
|
|
2636
2642
|
return;
|
|
2637
2643
|
const f = {
|
|
2638
|
-
code:
|
|
2644
|
+
code: ai(e, {
|
|
2639
2645
|
isExpression: s
|
|
2640
2646
|
}),
|
|
2641
|
-
builder:
|
|
2647
|
+
builder: oi(),
|
|
2642
2648
|
context: t,
|
|
2643
2649
|
event: a,
|
|
2644
2650
|
rootSetState: i,
|
|
2645
2651
|
rootState: r,
|
|
2646
2652
|
localState: n
|
|
2647
2653
|
};
|
|
2648
|
-
if (
|
|
2649
|
-
const
|
|
2654
|
+
if (u && !ji) {
|
|
2655
|
+
const m = Fe.getCacheKey(f), b = Fe.getCachedValue(m);
|
|
2650
2656
|
if (b)
|
|
2651
2657
|
return b.value;
|
|
2652
2658
|
}
|
|
2653
2659
|
try {
|
|
2654
|
-
const
|
|
2655
|
-
if (
|
|
2660
|
+
const m = Ai(f);
|
|
2661
|
+
if (u) {
|
|
2656
2662
|
const b = Fe.getCacheKey(f);
|
|
2657
|
-
Fe.setCachedValue(b,
|
|
2663
|
+
Fe.setCachedValue(b, m);
|
|
2658
2664
|
}
|
|
2659
|
-
return
|
|
2660
|
-
} catch (
|
|
2661
|
-
ot.error("Failed code evaluation: " +
|
|
2665
|
+
return m;
|
|
2666
|
+
} catch (m) {
|
|
2667
|
+
ot.error("Failed code evaluation: " + m.message, {
|
|
2662
2668
|
code: e
|
|
2663
2669
|
});
|
|
2664
2670
|
return;
|
|
2665
2671
|
}
|
|
2666
2672
|
}
|
|
2667
2673
|
const fn = (e) => JSON.parse(JSON.stringify(e));
|
|
2668
|
-
|
|
2674
|
+
function qt(e) {
|
|
2675
|
+
if (e === null || typeof e != "object")
|
|
2676
|
+
return e;
|
|
2677
|
+
if (Array.isArray(e))
|
|
2678
|
+
return e.map((n) => qt(n));
|
|
2679
|
+
if (e["@type"] === "@builder.io/sdk:Element")
|
|
2680
|
+
return e;
|
|
2681
|
+
const t = {};
|
|
2682
|
+
for (const n in e)
|
|
2683
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = qt(e[n]));
|
|
2684
|
+
return t;
|
|
2685
|
+
}
|
|
2686
|
+
const Ri = ["svelte", "vue", "angular", "qwik", "solid"].includes(je), Oi = (e) => {
|
|
2687
|
+
if (Ri) {
|
|
2688
|
+
const t = fn(e);
|
|
2689
|
+
return {
|
|
2690
|
+
...t,
|
|
2691
|
+
properties: {
|
|
2692
|
+
...t.properties
|
|
2693
|
+
},
|
|
2694
|
+
actions: {
|
|
2695
|
+
...t.actions
|
|
2696
|
+
}
|
|
2697
|
+
};
|
|
2698
|
+
} else {
|
|
2699
|
+
const t = qt(ii(e, "children", "meta"));
|
|
2700
|
+
return {
|
|
2701
|
+
...t,
|
|
2702
|
+
properties: {
|
|
2703
|
+
...t.properties
|
|
2704
|
+
},
|
|
2705
|
+
actions: {
|
|
2706
|
+
...t.actions
|
|
2707
|
+
},
|
|
2708
|
+
children: e.children,
|
|
2709
|
+
meta: e.meta
|
|
2710
|
+
};
|
|
2711
|
+
}
|
|
2712
|
+
}, Pi = ({
|
|
2669
2713
|
block: e,
|
|
2670
2714
|
context: t,
|
|
2671
2715
|
localState: n,
|
|
@@ -2674,29 +2718,21 @@ const Ai = ({
|
|
|
2674
2718
|
}) => {
|
|
2675
2719
|
if (!e.bindings)
|
|
2676
2720
|
return e;
|
|
2677
|
-
const a =
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
},
|
|
2682
|
-
actions: {
|
|
2683
|
-
...a.actions
|
|
2684
|
-
}
|
|
2685
|
-
};
|
|
2686
|
-
for (const c in e.bindings) {
|
|
2687
|
-
const f = e.bindings[c], g = Le({
|
|
2688
|
-
code: f,
|
|
2721
|
+
const a = Oi(e);
|
|
2722
|
+
for (const s in e.bindings) {
|
|
2723
|
+
const u = e.bindings[s], f = Ve({
|
|
2724
|
+
code: u,
|
|
2689
2725
|
localState: n,
|
|
2690
2726
|
rootState: r,
|
|
2691
2727
|
rootSetState: i,
|
|
2692
2728
|
context: t,
|
|
2693
2729
|
enableCache: !0
|
|
2694
2730
|
});
|
|
2695
|
-
|
|
2731
|
+
fr(a, s, f);
|
|
2696
2732
|
}
|
|
2697
|
-
return
|
|
2733
|
+
return a;
|
|
2698
2734
|
};
|
|
2699
|
-
function
|
|
2735
|
+
function Ni({
|
|
2700
2736
|
block: e,
|
|
2701
2737
|
context: t,
|
|
2702
2738
|
shouldEvaluateBindings: n,
|
|
@@ -2705,7 +2741,7 @@ function bt({
|
|
|
2705
2741
|
rootSetState: a
|
|
2706
2742
|
}) {
|
|
2707
2743
|
const s = e;
|
|
2708
|
-
return n ?
|
|
2744
|
+
return n ? Pi({
|
|
2709
2745
|
block: s,
|
|
2710
2746
|
localState: r,
|
|
2711
2747
|
rootState: i,
|
|
@@ -2713,42 +2749,42 @@ function bt({
|
|
|
2713
2749
|
context: t
|
|
2714
2750
|
}) : s;
|
|
2715
2751
|
}
|
|
2716
|
-
const hn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "",
|
|
2752
|
+
const hn = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", vr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2717
2753
|
if (typeof r == "string")
|
|
2718
2754
|
return `${hn(n)}: ${r};`;
|
|
2719
|
-
}).filter(yt),
|
|
2755
|
+
}).filter(yt), Bi = (e) => vr(e).join(`
|
|
2720
2756
|
`), mt = ({
|
|
2721
2757
|
mediaQuery: e,
|
|
2722
2758
|
className: t,
|
|
2723
2759
|
styles: n
|
|
2724
2760
|
}) => {
|
|
2725
2761
|
const r = `.${t} {
|
|
2726
|
-
${
|
|
2762
|
+
${Bi(n)}
|
|
2727
2763
|
}`;
|
|
2728
2764
|
return e ? `${e} {
|
|
2729
2765
|
${r}
|
|
2730
2766
|
}` : r;
|
|
2731
2767
|
};
|
|
2732
|
-
function
|
|
2768
|
+
function Mi({
|
|
2733
2769
|
style: e
|
|
2734
2770
|
}) {
|
|
2735
2771
|
return e;
|
|
2736
2772
|
}
|
|
2737
|
-
const
|
|
2773
|
+
const Di = ({
|
|
2738
2774
|
block: e,
|
|
2739
2775
|
context: t
|
|
2740
|
-
}) =>
|
|
2776
|
+
}) => br(Mi({
|
|
2741
2777
|
style: e.style || {},
|
|
2742
2778
|
context: t,
|
|
2743
2779
|
block: e
|
|
2744
2780
|
}));
|
|
2745
|
-
function
|
|
2746
|
-
switch (
|
|
2781
|
+
function br(e) {
|
|
2782
|
+
switch (je) {
|
|
2747
2783
|
case "svelte":
|
|
2748
2784
|
case "vue":
|
|
2749
2785
|
case "solid":
|
|
2750
2786
|
case "angular":
|
|
2751
|
-
return
|
|
2787
|
+
return vr(e).join(" ");
|
|
2752
2788
|
case "qwik":
|
|
2753
2789
|
case "reactNative":
|
|
2754
2790
|
case "react":
|
|
@@ -2756,29 +2792,21 @@ function vr(e) {
|
|
|
2756
2792
|
return e;
|
|
2757
2793
|
}
|
|
2758
2794
|
}
|
|
2759
|
-
const
|
|
2795
|
+
const Fi = ({
|
|
2760
2796
|
block: e,
|
|
2761
|
-
|
|
2762
|
-
registeredComponents: n
|
|
2797
|
+
registeredComponents: t
|
|
2763
2798
|
}) => {
|
|
2764
|
-
var
|
|
2765
|
-
const
|
|
2766
|
-
|
|
2767
|
-
localState: t.localState,
|
|
2768
|
-
rootState: t.rootState,
|
|
2769
|
-
rootSetState: t.rootSetState,
|
|
2770
|
-
context: t.context,
|
|
2771
|
-
shouldEvaluateBindings: !1
|
|
2772
|
-
}).component) == null ? void 0 : a.name;
|
|
2773
|
-
if (!r)
|
|
2799
|
+
var i;
|
|
2800
|
+
const n = (i = e.component) == null ? void 0 : i.name;
|
|
2801
|
+
if (!n)
|
|
2774
2802
|
return null;
|
|
2775
|
-
const
|
|
2776
|
-
if (
|
|
2777
|
-
return
|
|
2803
|
+
const r = t[n];
|
|
2804
|
+
if (r)
|
|
2805
|
+
return r;
|
|
2778
2806
|
console.warn(`
|
|
2779
|
-
Could not find a registered component named "${
|
|
2807
|
+
Could not find a registered component named "${n}".
|
|
2780
2808
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2781
|
-
},
|
|
2809
|
+
}, Wi = ({
|
|
2782
2810
|
block: e,
|
|
2783
2811
|
context: t
|
|
2784
2812
|
}) => {
|
|
@@ -2788,7 +2816,7 @@ const Pi = ({
|
|
|
2788
2816
|
} = e;
|
|
2789
2817
|
if (!(n != null && n.collection))
|
|
2790
2818
|
return;
|
|
2791
|
-
const i =
|
|
2819
|
+
const i = Ve({
|
|
2792
2820
|
code: n.collection,
|
|
2793
2821
|
localState: t.localState,
|
|
2794
2822
|
rootState: t.rootState,
|
|
@@ -2799,40 +2827,40 @@ const Pi = ({
|
|
|
2799
2827
|
if (!Array.isArray(i))
|
|
2800
2828
|
return;
|
|
2801
2829
|
const a = n.collection.split(".").pop(), s = n.itemName || (a ? a + "Item" : "item");
|
|
2802
|
-
return i.map((f,
|
|
2830
|
+
return i.map((f, m) => ({
|
|
2803
2831
|
context: {
|
|
2804
2832
|
...t,
|
|
2805
2833
|
localState: {
|
|
2806
2834
|
...t.localState,
|
|
2807
|
-
$index:
|
|
2835
|
+
$index: m,
|
|
2808
2836
|
$item: f,
|
|
2809
2837
|
[s]: f,
|
|
2810
|
-
[`$${s}Index`]:
|
|
2838
|
+
[`$${s}Index`]: m
|
|
2811
2839
|
}
|
|
2812
2840
|
},
|
|
2813
2841
|
block: r
|
|
2814
2842
|
}));
|
|
2815
|
-
},
|
|
2843
|
+
}, Ui = (e, t) => {
|
|
2816
2844
|
var n;
|
|
2817
2845
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
2818
2846
|
builderLinkComponent: t
|
|
2819
2847
|
} : {};
|
|
2820
|
-
},
|
|
2848
|
+
}, Li = (e, t) => {
|
|
2821
2849
|
var n;
|
|
2822
2850
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
2823
2851
|
builderComponents: t
|
|
2824
2852
|
} : {};
|
|
2825
|
-
},
|
|
2853
|
+
}, Vi = (e, t) => {
|
|
2826
2854
|
var n;
|
|
2827
2855
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
2828
2856
|
builderBlock: t
|
|
2829
2857
|
} : {};
|
|
2830
|
-
},
|
|
2858
|
+
}, _i = (e, t) => {
|
|
2831
2859
|
var n;
|
|
2832
2860
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
2833
2861
|
builderContext: t
|
|
2834
2862
|
} : {};
|
|
2835
|
-
},
|
|
2863
|
+
}, xr = {
|
|
2836
2864
|
small: {
|
|
2837
2865
|
min: 320,
|
|
2838
2866
|
default: 321,
|
|
@@ -2848,11 +2876,11 @@ const Pi = ({
|
|
|
2848
2876
|
default: 991,
|
|
2849
2877
|
max: 1200
|
|
2850
2878
|
}
|
|
2851
|
-
}, er = (e, t =
|
|
2879
|
+
}, er = (e, t = xr) => `@media (max-width: ${t[e].max}px)`, Sr = ({
|
|
2852
2880
|
small: e,
|
|
2853
2881
|
medium: t
|
|
2854
2882
|
}) => {
|
|
2855
|
-
const n = fn(
|
|
2883
|
+
const n = fn(xr);
|
|
2856
2884
|
if (!e || !t)
|
|
2857
2885
|
return n;
|
|
2858
2886
|
const r = Math.floor(e / 2);
|
|
@@ -2876,7 +2904,7 @@ const Pi = ({
|
|
|
2876
2904
|
}, n;
|
|
2877
2905
|
};
|
|
2878
2906
|
function kt(e) {
|
|
2879
|
-
return /* @__PURE__ */
|
|
2907
|
+
return /* @__PURE__ */ g(
|
|
2880
2908
|
"style",
|
|
2881
2909
|
{
|
|
2882
2910
|
dangerouslySetInnerHTML: { __html: e.styles },
|
|
@@ -2885,71 +2913,57 @@ function kt(e) {
|
|
|
2885
2913
|
}
|
|
2886
2914
|
);
|
|
2887
2915
|
}
|
|
2888
|
-
function
|
|
2916
|
+
function $i(e) {
|
|
2889
2917
|
const t = function() {
|
|
2890
|
-
const i =
|
|
2891
|
-
block: e.block,
|
|
2892
|
-
localState: e.context.localState,
|
|
2893
|
-
rootState: e.context.rootState,
|
|
2894
|
-
rootSetState: e.context.rootSetState,
|
|
2895
|
-
context: e.context.context,
|
|
2896
|
-
shouldEvaluateBindings: !0
|
|
2897
|
-
});
|
|
2918
|
+
const i = e.block;
|
|
2898
2919
|
return yt(i.hide) ? !i.hide : yt(i.show) ? i.show : !0;
|
|
2899
2920
|
}, n = function() {
|
|
2900
|
-
var
|
|
2901
|
-
const i =
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
rootSetState: e.context.rootSetState,
|
|
2906
|
-
context: e.context.context,
|
|
2907
|
-
shouldEvaluateBindings: !0
|
|
2908
|
-
}), a = i.responsiveStyles, s = e.context.content, c = xr(
|
|
2909
|
-
((O = s == null ? void 0 : s.meta) == null ? void 0 : O.breakpoints) || {}
|
|
2910
|
-
), f = a == null ? void 0 : a.large, g = a == null ? void 0 : a.medium, b = a == null ? void 0 : a.small, m = i.id;
|
|
2911
|
-
if (!m)
|
|
2921
|
+
var P, y, V;
|
|
2922
|
+
const i = e.block, a = i.responsiveStyles, s = e.context.content, u = Sr(
|
|
2923
|
+
((P = s == null ? void 0 : s.meta) == null ? void 0 : P.breakpoints) || {}
|
|
2924
|
+
), f = a == null ? void 0 : a.large, m = a == null ? void 0 : a.medium, b = a == null ? void 0 : a.small, v = i.id;
|
|
2925
|
+
if (!v)
|
|
2912
2926
|
return "";
|
|
2913
2927
|
const j = f ? mt({
|
|
2914
|
-
className:
|
|
2928
|
+
className: v,
|
|
2915
2929
|
styles: f
|
|
2916
|
-
}) : "", D =
|
|
2917
|
-
className:
|
|
2918
|
-
styles:
|
|
2930
|
+
}) : "", D = m ? mt({
|
|
2931
|
+
className: v,
|
|
2932
|
+
styles: m,
|
|
2919
2933
|
mediaQuery: er(
|
|
2920
2934
|
"medium",
|
|
2921
|
-
|
|
2935
|
+
u
|
|
2922
2936
|
)
|
|
2923
|
-
}) : "",
|
|
2924
|
-
className:
|
|
2937
|
+
}) : "", U = b ? mt({
|
|
2938
|
+
className: v,
|
|
2925
2939
|
styles: b,
|
|
2926
2940
|
mediaQuery: er(
|
|
2927
2941
|
"small",
|
|
2928
|
-
|
|
2942
|
+
u
|
|
2929
2943
|
)
|
|
2930
|
-
}) : "",
|
|
2931
|
-
let
|
|
2932
|
-
if (
|
|
2933
|
-
const G = ((
|
|
2934
|
-
|
|
2935
|
-
className: `${
|
|
2944
|
+
}) : "", R = i.animations && i.animations.find((G) => G.trigger === "hover");
|
|
2945
|
+
let F = "";
|
|
2946
|
+
if (R) {
|
|
2947
|
+
const G = ((V = (y = R.steps) == null ? void 0 : y[1]) == null ? void 0 : V.styles) || {};
|
|
2948
|
+
F = mt({
|
|
2949
|
+
className: `${v}:hover`,
|
|
2936
2950
|
styles: {
|
|
2937
2951
|
...G,
|
|
2938
|
-
transition: `all ${
|
|
2939
|
-
|
|
2952
|
+
transition: `all ${R.duration}s ${hn(
|
|
2953
|
+
R.easing
|
|
2940
2954
|
)}`,
|
|
2941
|
-
transitionDelay:
|
|
2955
|
+
transitionDelay: R.delay ? `${R.delay}s` : "0s"
|
|
2942
2956
|
}
|
|
2943
2957
|
}) || "";
|
|
2944
2958
|
}
|
|
2945
2959
|
return [
|
|
2946
2960
|
j,
|
|
2947
2961
|
D,
|
|
2948
|
-
|
|
2949
|
-
|
|
2962
|
+
U,
|
|
2963
|
+
F
|
|
2950
2964
|
].join(" ");
|
|
2951
2965
|
};
|
|
2952
|
-
return /* @__PURE__ */
|
|
2966
|
+
return /* @__PURE__ */ g(K, { children: n() && t() ? /* @__PURE__ */ g(K, { children: /* @__PURE__ */ g(
|
|
2953
2967
|
kt,
|
|
2954
2968
|
{
|
|
2955
2969
|
id: "builderio-block",
|
|
@@ -2958,10 +2972,10 @@ function Wi(e) {
|
|
|
2958
2972
|
}
|
|
2959
2973
|
) }) : null });
|
|
2960
2974
|
}
|
|
2961
|
-
function
|
|
2975
|
+
function Hi(e) {
|
|
2962
2976
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2963
2977
|
}
|
|
2964
|
-
const
|
|
2978
|
+
const Ki = (e) => `on${Hi(e)}`, Gi = (e, t) => (n) => Ve({
|
|
2965
2979
|
code: e,
|
|
2966
2980
|
context: t.context,
|
|
2967
2981
|
localState: t.localState,
|
|
@@ -2971,16 +2985,16 @@ const Li = (e) => `on${Ui(e)}`, Vi = (e, t) => (n) => Le({
|
|
|
2971
2985
|
isExpression: !1,
|
|
2972
2986
|
enableCache: !0
|
|
2973
2987
|
});
|
|
2974
|
-
function
|
|
2988
|
+
function kr(e) {
|
|
2975
2989
|
var r;
|
|
2976
2990
|
const t = {}, n = (r = e.block.actions) != null ? r : {};
|
|
2977
2991
|
for (const i in n) {
|
|
2978
2992
|
if (!n.hasOwnProperty(i))
|
|
2979
2993
|
continue;
|
|
2980
2994
|
const a = n[i];
|
|
2981
|
-
let s =
|
|
2995
|
+
let s = Ki(i);
|
|
2982
2996
|
if (e.stripPrefix)
|
|
2983
|
-
switch (
|
|
2997
|
+
switch (je) {
|
|
2984
2998
|
case "vue":
|
|
2985
2999
|
s = s.replace("v-on:", "");
|
|
2986
3000
|
break;
|
|
@@ -2988,16 +3002,16 @@ function Sr(e) {
|
|
|
2988
3002
|
s = s.replace("on:", "");
|
|
2989
3003
|
break;
|
|
2990
3004
|
}
|
|
2991
|
-
t[s] =
|
|
3005
|
+
t[s] = Gi(a, e);
|
|
2992
3006
|
}
|
|
2993
3007
|
return t;
|
|
2994
3008
|
}
|
|
2995
|
-
function
|
|
3009
|
+
function zi({
|
|
2996
3010
|
properties: e
|
|
2997
3011
|
}) {
|
|
2998
3012
|
return e;
|
|
2999
3013
|
}
|
|
3000
|
-
const
|
|
3014
|
+
const Yi = (e) => ({
|
|
3001
3015
|
href: e.href
|
|
3002
3016
|
});
|
|
3003
3017
|
function pn({
|
|
@@ -3006,23 +3020,23 @@ function pn({
|
|
|
3006
3020
|
}) {
|
|
3007
3021
|
var r;
|
|
3008
3022
|
const n = {
|
|
3009
|
-
|
|
3023
|
+
...Yi(e),
|
|
3010
3024
|
...e.properties,
|
|
3011
3025
|
"builder-id": e.id,
|
|
3012
|
-
style:
|
|
3026
|
+
style: Di({
|
|
3013
3027
|
block: e,
|
|
3014
3028
|
context: t
|
|
3015
3029
|
}),
|
|
3016
3030
|
[nt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3017
3031
|
};
|
|
3018
|
-
return
|
|
3032
|
+
return zi({
|
|
3019
3033
|
properties: n,
|
|
3020
3034
|
context: t,
|
|
3021
3035
|
block: e
|
|
3022
3036
|
});
|
|
3023
3037
|
}
|
|
3024
|
-
function
|
|
3025
|
-
return /* @__PURE__ */
|
|
3038
|
+
function Xi(e) {
|
|
3039
|
+
return /* @__PURE__ */ g(
|
|
3026
3040
|
Qt,
|
|
3027
3041
|
{
|
|
3028
3042
|
TagName: e.Wrapper,
|
|
@@ -3030,7 +3044,7 @@ function Hi(e) {
|
|
|
3030
3044
|
block: e.block,
|
|
3031
3045
|
context: e.context
|
|
3032
3046
|
}),
|
|
3033
|
-
actionAttributes:
|
|
3047
|
+
actionAttributes: kr({
|
|
3034
3048
|
block: e.block,
|
|
3035
3049
|
rootState: e.context.rootState,
|
|
3036
3050
|
rootSetState: e.context.rootSetState,
|
|
@@ -3042,14 +3056,14 @@ function Hi(e) {
|
|
|
3042
3056
|
}
|
|
3043
3057
|
);
|
|
3044
3058
|
}
|
|
3045
|
-
function
|
|
3059
|
+
function Ji(e) {
|
|
3046
3060
|
function t() {
|
|
3047
3061
|
return e.includeBlockProps ? {
|
|
3048
3062
|
...pn({
|
|
3049
3063
|
block: e.block,
|
|
3050
3064
|
context: e.context
|
|
3051
3065
|
}),
|
|
3052
|
-
...
|
|
3066
|
+
...kr({
|
|
3053
3067
|
block: e.block,
|
|
3054
3068
|
rootState: e.context.rootState,
|
|
3055
3069
|
rootSetState: e.context.rootSetState,
|
|
@@ -3058,9 +3072,9 @@ function Ki(e) {
|
|
|
3058
3072
|
})
|
|
3059
3073
|
} : {};
|
|
3060
3074
|
}
|
|
3061
|
-
return /* @__PURE__ */
|
|
3075
|
+
return /* @__PURE__ */ g(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
|
|
3062
3076
|
}
|
|
3063
|
-
const
|
|
3077
|
+
const qi = ({
|
|
3064
3078
|
componentOptions: e,
|
|
3065
3079
|
builderBlock: t,
|
|
3066
3080
|
context: n,
|
|
@@ -3069,7 +3083,7 @@ const Gi = ({
|
|
|
3069
3083
|
isInteractive: a,
|
|
3070
3084
|
contextValue: s
|
|
3071
3085
|
}) => {
|
|
3072
|
-
const
|
|
3086
|
+
const u = {
|
|
3073
3087
|
...e,
|
|
3074
3088
|
/**
|
|
3075
3089
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
@@ -3088,15 +3102,15 @@ const Gi = ({
|
|
|
3088
3102
|
context: n,
|
|
3089
3103
|
wrapperProps: e,
|
|
3090
3104
|
includeBlockProps: i
|
|
3091
|
-
} :
|
|
3105
|
+
} : u;
|
|
3092
3106
|
};
|
|
3093
3107
|
function tr(e) {
|
|
3094
3108
|
var n;
|
|
3095
|
-
const t = e.isInteractive ?
|
|
3096
|
-
return /* @__PURE__ */
|
|
3109
|
+
const t = e.isInteractive ? Ji : e.componentRef;
|
|
3110
|
+
return /* @__PURE__ */ g(K, { children: e.componentRef ? /* @__PURE__ */ g(K, { children: /* @__PURE__ */ g(
|
|
3097
3111
|
t,
|
|
3098
3112
|
{
|
|
3099
|
-
...
|
|
3113
|
+
...qi({
|
|
3100
3114
|
componentOptions: e.componentOptions,
|
|
3101
3115
|
builderBlock: e.builderBlock,
|
|
3102
3116
|
context: e.context,
|
|
@@ -3106,7 +3120,7 @@ function tr(e) {
|
|
|
3106
3120
|
isInteractive: e.isInteractive,
|
|
3107
3121
|
contextValue: e.context
|
|
3108
3122
|
}),
|
|
3109
|
-
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */
|
|
3123
|
+
children: (n = e.blockChildren) == null ? void 0 : n.map((r) => /* @__PURE__ */ g(
|
|
3110
3124
|
Ct,
|
|
3111
3125
|
{
|
|
3112
3126
|
block: r,
|
|
@@ -3119,9 +3133,9 @@ function tr(e) {
|
|
|
3119
3133
|
}
|
|
3120
3134
|
) }) : null });
|
|
3121
3135
|
}
|
|
3122
|
-
function
|
|
3136
|
+
function Zi(e) {
|
|
3123
3137
|
const t = e.repeatContext;
|
|
3124
|
-
return /* @__PURE__ */
|
|
3138
|
+
return /* @__PURE__ */ g(
|
|
3125
3139
|
Ct,
|
|
3126
3140
|
{
|
|
3127
3141
|
block: e.block,
|
|
@@ -3132,21 +3146,20 @@ function zi(e) {
|
|
|
3132
3146
|
);
|
|
3133
3147
|
}
|
|
3134
3148
|
function Ct(e) {
|
|
3135
|
-
var
|
|
3149
|
+
var m, b, v;
|
|
3136
3150
|
const t = function() {
|
|
3137
|
-
return
|
|
3138
|
-
block: e.block,
|
|
3139
|
-
context: e.context,
|
|
3140
|
-
registeredComponents: e.registeredComponents
|
|
3141
|
-
});
|
|
3142
|
-
}, n = function() {
|
|
3143
|
-
return Ni({
|
|
3151
|
+
return Wi({
|
|
3144
3152
|
block: e.block,
|
|
3145
3153
|
context: e.context
|
|
3146
3154
|
});
|
|
3155
|
+
}, n = {
|
|
3156
|
+
value: null,
|
|
3157
|
+
update: !1
|
|
3147
3158
|
}, r = function() {
|
|
3148
|
-
var
|
|
3149
|
-
|
|
3159
|
+
var U;
|
|
3160
|
+
if (n.value && !n.update && !lr())
|
|
3161
|
+
return n.value;
|
|
3162
|
+
const D = (U = e.block.repeat) != null && U.collection ? e.block : Ni({
|
|
3150
3163
|
block: e.block,
|
|
3151
3164
|
localState: e.context.localState,
|
|
3152
3165
|
rootState: e.context.rootState,
|
|
@@ -3154,30 +3167,36 @@ function Ct(e) {
|
|
|
3154
3167
|
context: e.context.context,
|
|
3155
3168
|
shouldEvaluateBindings: !0
|
|
3156
3169
|
});
|
|
3170
|
+
return n.value = D, n.update = !1, D;
|
|
3157
3171
|
}, i = function() {
|
|
3158
|
-
|
|
3159
|
-
|
|
3172
|
+
return Fi({
|
|
3173
|
+
block: r(),
|
|
3174
|
+
registeredComponents: e.registeredComponents
|
|
3175
|
+
});
|
|
3160
3176
|
}, a = function() {
|
|
3161
|
-
var
|
|
3162
|
-
|
|
3163
|
-
return !!((P = n()) != null && P.length);
|
|
3164
|
-
const j = "hide" in r() ? r().hide : !1;
|
|
3165
|
-
return ("show" in r() ? r().show : !0) && !j;
|
|
3177
|
+
var U;
|
|
3178
|
+
return e.block.tagName === "a" || ((U = r().properties) == null ? void 0 : U.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
|
|
3166
3179
|
}, s = function() {
|
|
3167
|
-
var
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3180
|
+
var R, F;
|
|
3181
|
+
if ((R = e.block.repeat) != null && R.collection)
|
|
3182
|
+
return !!((F = t()) != null && F.length);
|
|
3183
|
+
const D = "hide" in r() ? r().hide : !1;
|
|
3184
|
+
return ("show" in r() ? r().show : !0) && !D;
|
|
3185
|
+
}, u = function() {
|
|
3186
|
+
var U, R;
|
|
3187
|
+
return !((U = i()) != null && U.component) && !t() ? (R = r().children) != null ? R : [] : [];
|
|
3188
|
+
}, f = function() {
|
|
3189
|
+
var D, U, R, F;
|
|
3171
3190
|
return {
|
|
3172
|
-
blockChildren: (
|
|
3173
|
-
componentRef: (
|
|
3191
|
+
blockChildren: (D = r().children) != null ? D : [],
|
|
3192
|
+
componentRef: (U = i()) == null ? void 0 : U.component,
|
|
3174
3193
|
componentOptions: {
|
|
3175
3194
|
...ri(r()),
|
|
3176
|
-
...
|
|
3177
|
-
...
|
|
3178
|
-
...
|
|
3179
|
-
...
|
|
3180
|
-
|
|
3195
|
+
...Vi(i(), r()),
|
|
3196
|
+
..._i(i(), e.context),
|
|
3197
|
+
...Ui(i(), e.linkComponent),
|
|
3198
|
+
...Li(
|
|
3199
|
+
i(),
|
|
3181
3200
|
e.registeredComponents
|
|
3182
3201
|
)
|
|
3183
3202
|
},
|
|
@@ -3185,78 +3204,79 @@ function Ct(e) {
|
|
|
3185
3204
|
linkComponent: e.linkComponent,
|
|
3186
3205
|
registeredComponents: e.registeredComponents,
|
|
3187
3206
|
builderBlock: r(),
|
|
3188
|
-
includeBlockProps: ((
|
|
3189
|
-
isInteractive: !((
|
|
3207
|
+
includeBlockProps: ((R = i()) == null ? void 0 : R.noWrap) === !0,
|
|
3208
|
+
isInteractive: !((F = i()) != null && F.isRSC && je === "rsc")
|
|
3190
3209
|
};
|
|
3191
3210
|
};
|
|
3192
|
-
return /* @__PURE__ */
|
|
3193
|
-
/* @__PURE__ */
|
|
3194
|
-
(
|
|
3211
|
+
return /* @__PURE__ */ g(K, { children: s() ? /* @__PURE__ */ se(K, { children: [
|
|
3212
|
+
/* @__PURE__ */ g($i, { block: r(), context: e.context }),
|
|
3213
|
+
(m = i()) != null && m.noWrap ? /* @__PURE__ */ g(K, { children: /* @__PURE__ */ g(
|
|
3195
3214
|
tr,
|
|
3196
3215
|
{
|
|
3197
|
-
componentRef:
|
|
3198
|
-
componentOptions:
|
|
3199
|
-
blockChildren:
|
|
3200
|
-
context:
|
|
3201
|
-
registeredComponents:
|
|
3202
|
-
linkComponent:
|
|
3203
|
-
builderBlock:
|
|
3204
|
-
includeBlockProps:
|
|
3205
|
-
isInteractive:
|
|
3216
|
+
componentRef: f().componentRef,
|
|
3217
|
+
componentOptions: f().componentOptions,
|
|
3218
|
+
blockChildren: f().blockChildren,
|
|
3219
|
+
context: f().context,
|
|
3220
|
+
registeredComponents: f().registeredComponents,
|
|
3221
|
+
linkComponent: f().linkComponent,
|
|
3222
|
+
builderBlock: f().builderBlock,
|
|
3223
|
+
includeBlockProps: f().includeBlockProps,
|
|
3224
|
+
isInteractive: f().isInteractive
|
|
3206
3225
|
}
|
|
3207
|
-
) }) : /* @__PURE__ */
|
|
3208
|
-
|
|
3226
|
+
) }) : /* @__PURE__ */ g(K, { children: t() ? /* @__PURE__ */ g(K, { children: (v = t()) == null ? void 0 : v.map((j, D) => /* @__PURE__ */ g(
|
|
3227
|
+
Zi,
|
|
3209
3228
|
{
|
|
3210
|
-
repeatContext:
|
|
3211
|
-
block:
|
|
3229
|
+
repeatContext: j.context,
|
|
3230
|
+
block: j.block,
|
|
3212
3231
|
registeredComponents: e.registeredComponents,
|
|
3213
3232
|
linkComponent: e.linkComponent
|
|
3214
3233
|
},
|
|
3215
|
-
|
|
3234
|
+
D
|
|
3216
3235
|
)) }) : /* @__PURE__ */ se(
|
|
3217
|
-
|
|
3236
|
+
Xi,
|
|
3218
3237
|
{
|
|
3219
|
-
Wrapper:
|
|
3238
|
+
Wrapper: a(),
|
|
3220
3239
|
block: r(),
|
|
3221
3240
|
context: e.context,
|
|
3222
3241
|
children: [
|
|
3223
|
-
/* @__PURE__ */
|
|
3242
|
+
/* @__PURE__ */ g(
|
|
3224
3243
|
tr,
|
|
3225
3244
|
{
|
|
3226
|
-
componentRef:
|
|
3227
|
-
componentOptions:
|
|
3228
|
-
blockChildren:
|
|
3229
|
-
context:
|
|
3230
|
-
registeredComponents:
|
|
3231
|
-
linkComponent:
|
|
3232
|
-
builderBlock:
|
|
3233
|
-
includeBlockProps:
|
|
3234
|
-
isInteractive:
|
|
3245
|
+
componentRef: f().componentRef,
|
|
3246
|
+
componentOptions: f().componentOptions,
|
|
3247
|
+
blockChildren: f().blockChildren,
|
|
3248
|
+
context: f().context,
|
|
3249
|
+
registeredComponents: f().registeredComponents,
|
|
3250
|
+
linkComponent: f().linkComponent,
|
|
3251
|
+
builderBlock: f().builderBlock,
|
|
3252
|
+
includeBlockProps: f().includeBlockProps,
|
|
3253
|
+
isInteractive: f().isInteractive
|
|
3235
3254
|
}
|
|
3236
3255
|
),
|
|
3237
|
-
(
|
|
3256
|
+
(b = u()) == null ? void 0 : b.map((j) => /* @__PURE__ */ g(
|
|
3238
3257
|
Ct,
|
|
3239
3258
|
{
|
|
3240
|
-
block:
|
|
3259
|
+
block: j,
|
|
3241
3260
|
registeredComponents: e.registeredComponents,
|
|
3242
3261
|
linkComponent: e.linkComponent,
|
|
3243
3262
|
context: e.context
|
|
3244
3263
|
},
|
|
3245
|
-
|
|
3264
|
+
j.id
|
|
3246
3265
|
))
|
|
3247
3266
|
]
|
|
3248
3267
|
}
|
|
3249
3268
|
) })
|
|
3250
3269
|
] }) : null });
|
|
3251
3270
|
}
|
|
3252
|
-
function
|
|
3253
|
-
|
|
3254
|
-
var i;
|
|
3255
|
-
return "builder-blocks" + ((i = e.blocks) != null && i.length ? "" : " no-blocks");
|
|
3256
|
-
}
|
|
3271
|
+
function Qi(e) {
|
|
3272
|
+
const t = bt(null);
|
|
3257
3273
|
function n() {
|
|
3258
|
-
var
|
|
3259
|
-
|
|
3274
|
+
var a;
|
|
3275
|
+
return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
|
|
3276
|
+
}
|
|
3277
|
+
function r() {
|
|
3278
|
+
var a, s;
|
|
3279
|
+
Ce() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
|
|
3260
3280
|
{
|
|
3261
3281
|
type: "builder.clickEmptyBlocks",
|
|
3262
3282
|
data: {
|
|
@@ -3267,9 +3287,9 @@ function Yi(e) {
|
|
|
3267
3287
|
"*"
|
|
3268
3288
|
));
|
|
3269
3289
|
}
|
|
3270
|
-
function
|
|
3271
|
-
var
|
|
3272
|
-
Ce() && !((
|
|
3290
|
+
function i() {
|
|
3291
|
+
var a, s;
|
|
3292
|
+
Ce() && !((a = e.blocks) != null && a.length) && ((s = window.parent) == null || s.postMessage(
|
|
3273
3293
|
{
|
|
3274
3294
|
type: "builder.hoverEmptyBlocks",
|
|
3275
3295
|
data: {
|
|
@@ -3280,22 +3300,24 @@ function Yi(e) {
|
|
|
3280
3300
|
"*"
|
|
3281
3301
|
));
|
|
3282
3302
|
}
|
|
3283
|
-
return
|
|
3284
|
-
|
|
3303
|
+
return Q(() => {
|
|
3304
|
+
}, []), /* @__PURE__ */ se(K, { children: [
|
|
3305
|
+
/* @__PURE__ */ g(
|
|
3285
3306
|
e.BlocksWrapper,
|
|
3286
3307
|
{
|
|
3287
|
-
|
|
3308
|
+
ref: t,
|
|
3309
|
+
className: n() + " props-blocks-wrapper-51ef31b4",
|
|
3288
3310
|
"builder-path": e.path,
|
|
3289
3311
|
"builder-parent-id": e.parent,
|
|
3290
3312
|
style: e.styleProp,
|
|
3291
|
-
onClick: (
|
|
3292
|
-
onMouseEnter: (
|
|
3293
|
-
onKeyPress: (
|
|
3313
|
+
onClick: (a) => r(),
|
|
3314
|
+
onMouseEnter: (a) => i(),
|
|
3315
|
+
onKeyPress: (a) => r(),
|
|
3294
3316
|
...e.BlocksWrapperProps,
|
|
3295
3317
|
children: e.children
|
|
3296
3318
|
}
|
|
3297
3319
|
),
|
|
3298
|
-
/* @__PURE__ */
|
|
3320
|
+
/* @__PURE__ */ g("style", { children: `.props-blocks-wrapper-51ef31b4 {
|
|
3299
3321
|
display: flex;
|
|
3300
3322
|
flex-direction: column;
|
|
3301
3323
|
align-items: stretch;
|
|
@@ -3304,8 +3326,8 @@ function Yi(e) {
|
|
|
3304
3326
|
}
|
|
3305
3327
|
function mn(e) {
|
|
3306
3328
|
var t, n, r;
|
|
3307
|
-
return /* @__PURE__ */
|
|
3308
|
-
|
|
3329
|
+
return /* @__PURE__ */ g(
|
|
3330
|
+
Qi,
|
|
3309
3331
|
{
|
|
3310
3332
|
blocks: e.blocks,
|
|
3311
3333
|
parent: e.parent,
|
|
@@ -3313,7 +3335,7 @@ function mn(e) {
|
|
|
3313
3335
|
styleProp: e.styleProp,
|
|
3314
3336
|
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3315
3337
|
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3316
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3338
|
+
children: e.blocks ? /* @__PURE__ */ g(K, { children: (r = e.blocks) == null ? void 0 : r.map((i) => /* @__PURE__ */ g(
|
|
3317
3339
|
Ct,
|
|
3318
3340
|
{
|
|
3319
3341
|
block: i,
|
|
@@ -3326,37 +3348,37 @@ function mn(e) {
|
|
|
3326
3348
|
}
|
|
3327
3349
|
);
|
|
3328
3350
|
}
|
|
3329
|
-
const
|
|
3330
|
-
function
|
|
3331
|
-
var
|
|
3332
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(
|
|
3333
|
-
return
|
|
3334
|
-
}, a = function(
|
|
3335
|
-
var
|
|
3336
|
-
return ((
|
|
3337
|
-
}, s = function(
|
|
3338
|
-
const
|
|
3339
|
-
return `calc(${
|
|
3340
|
-
},
|
|
3341
|
-
stackedStyle:
|
|
3342
|
-
desktopStyle:
|
|
3351
|
+
const eo = (e) => `builder-columns ${e}-breakpoints`;
|
|
3352
|
+
function to(e) {
|
|
3353
|
+
var R, F;
|
|
3354
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", i = function(y) {
|
|
3355
|
+
return y.link ? e.builderLinkComponent || "a" : "div";
|
|
3356
|
+
}, a = function(y) {
|
|
3357
|
+
var V;
|
|
3358
|
+
return ((V = n[y]) == null ? void 0 : V.width) || 100 / n.length;
|
|
3359
|
+
}, s = function(y) {
|
|
3360
|
+
const V = a(y), G = t * (n.length - 1) * (V / 100);
|
|
3361
|
+
return `calc(${V}% - ${G}px)`;
|
|
3362
|
+
}, u = function({
|
|
3363
|
+
stackedStyle: y,
|
|
3364
|
+
desktopStyle: V
|
|
3343
3365
|
}) {
|
|
3344
|
-
return r === "tablet" ?
|
|
3366
|
+
return r === "tablet" ? y : V;
|
|
3345
3367
|
}, f = function({
|
|
3346
|
-
stackedStyle:
|
|
3347
|
-
desktopStyle:
|
|
3368
|
+
stackedStyle: y,
|
|
3369
|
+
desktopStyle: V
|
|
3348
3370
|
}) {
|
|
3349
|
-
return r === "never" ?
|
|
3350
|
-
},
|
|
3371
|
+
return r === "never" ? V : y;
|
|
3372
|
+
}, m = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", b = function() {
|
|
3351
3373
|
return {
|
|
3352
|
-
"--flex-dir":
|
|
3353
|
-
"--flex-dir-tablet":
|
|
3354
|
-
stackedStyle:
|
|
3374
|
+
"--flex-dir": m,
|
|
3375
|
+
"--flex-dir-tablet": u({
|
|
3376
|
+
stackedStyle: m,
|
|
3355
3377
|
desktopStyle: "row"
|
|
3356
3378
|
})
|
|
3357
3379
|
};
|
|
3358
|
-
},
|
|
3359
|
-
const
|
|
3380
|
+
}, v = function(y) {
|
|
3381
|
+
const V = y === 0 ? 0 : t, G = s(y), oe = `${V}px`, $ = "100%", ee = 0;
|
|
3360
3382
|
return {
|
|
3361
3383
|
...{
|
|
3362
3384
|
display: "flex",
|
|
@@ -3370,25 +3392,25 @@ function Ji(e) {
|
|
|
3370
3392
|
desktopStyle: G
|
|
3371
3393
|
}),
|
|
3372
3394
|
"--column-margin-left-mobile": f({
|
|
3373
|
-
stackedStyle:
|
|
3395
|
+
stackedStyle: ee,
|
|
3374
3396
|
desktopStyle: oe
|
|
3375
3397
|
}),
|
|
3376
|
-
"--column-width-tablet":
|
|
3398
|
+
"--column-width-tablet": u({
|
|
3377
3399
|
stackedStyle: $,
|
|
3378
3400
|
desktopStyle: G
|
|
3379
3401
|
}),
|
|
3380
|
-
"--column-margin-left-tablet":
|
|
3381
|
-
stackedStyle:
|
|
3402
|
+
"--column-margin-left-tablet": u({
|
|
3403
|
+
stackedStyle: ee,
|
|
3382
3404
|
desktopStyle: oe
|
|
3383
3405
|
})
|
|
3384
3406
|
};
|
|
3385
|
-
}, j = function(
|
|
3407
|
+
}, j = function(y) {
|
|
3386
3408
|
var G, oe;
|
|
3387
|
-
return
|
|
3409
|
+
return Sr(
|
|
3388
3410
|
((oe = (G = e.builderContext.content) == null ? void 0 : G.meta) == null ? void 0 : oe.breakpoints) || {}
|
|
3389
|
-
)[
|
|
3411
|
+
)[y].max;
|
|
3390
3412
|
}, D = function() {
|
|
3391
|
-
const
|
|
3413
|
+
const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
|
|
3392
3414
|
return `
|
|
3393
3415
|
@media (max-width: ${j("medium")}px) {
|
|
3394
3416
|
.${e.builderBlock.id}-breakpoints {
|
|
@@ -3396,7 +3418,7 @@ function Ji(e) {
|
|
|
3396
3418
|
align-items: stretch;
|
|
3397
3419
|
}
|
|
3398
3420
|
|
|
3399
|
-
${
|
|
3421
|
+
${y} {
|
|
3400
3422
|
width: var(--column-width-tablet) !important;
|
|
3401
3423
|
margin-left: var(--column-margin-left-tablet) !important;
|
|
3402
3424
|
}
|
|
@@ -3408,29 +3430,29 @@ function Ji(e) {
|
|
|
3408
3430
|
align-items: stretch;
|
|
3409
3431
|
}
|
|
3410
3432
|
|
|
3411
|
-
${
|
|
3433
|
+
${y} {
|
|
3412
3434
|
width: var(--column-width-mobile) !important;
|
|
3413
3435
|
margin-left: var(--column-margin-left-mobile) !important;
|
|
3414
3436
|
}
|
|
3415
3437
|
},
|
|
3416
3438
|
`;
|
|
3417
|
-
},
|
|
3439
|
+
}, U = function(y, V) {
|
|
3418
3440
|
return {
|
|
3419
|
-
...
|
|
3420
|
-
href:
|
|
3441
|
+
...y.link ? {
|
|
3442
|
+
href: y.link
|
|
3421
3443
|
} : {},
|
|
3422
3444
|
[nt()]: "builder-column",
|
|
3423
|
-
style:
|
|
3445
|
+
style: br(v(V))
|
|
3424
3446
|
};
|
|
3425
3447
|
};
|
|
3426
3448
|
return /* @__PURE__ */ se(K, { children: [
|
|
3427
3449
|
/* @__PURE__ */ se(
|
|
3428
3450
|
"div",
|
|
3429
3451
|
{
|
|
3430
|
-
className:
|
|
3452
|
+
className: eo((R = e.builderBlock) == null ? void 0 : R.id) + " div-2cd13691",
|
|
3431
3453
|
style: b(),
|
|
3432
3454
|
children: [
|
|
3433
|
-
/* @__PURE__ */
|
|
3455
|
+
/* @__PURE__ */ g(
|
|
3434
3456
|
kt,
|
|
3435
3457
|
{
|
|
3436
3458
|
id: "builderio-columns",
|
|
@@ -3438,16 +3460,16 @@ function Ji(e) {
|
|
|
3438
3460
|
nonce: e.builderContext.nonce
|
|
3439
3461
|
}
|
|
3440
3462
|
),
|
|
3441
|
-
(
|
|
3463
|
+
(F = e.columns) == null ? void 0 : F.map((P, y) => /* @__PURE__ */ g(
|
|
3442
3464
|
Qt,
|
|
3443
3465
|
{
|
|
3444
|
-
TagName: i(
|
|
3466
|
+
TagName: i(P),
|
|
3445
3467
|
actionAttributes: {},
|
|
3446
|
-
attributes:
|
|
3447
|
-
children: /* @__PURE__ */
|
|
3468
|
+
attributes: U(P, y),
|
|
3469
|
+
children: /* @__PURE__ */ g(
|
|
3448
3470
|
mn,
|
|
3449
3471
|
{
|
|
3450
|
-
path: `component.options.columns.${
|
|
3472
|
+
path: `component.options.columns.${y}.blocks`,
|
|
3451
3473
|
parent: e.builderBlock.id,
|
|
3452
3474
|
styleProp: {
|
|
3453
3475
|
flexGrow: "1"
|
|
@@ -3455,32 +3477,32 @@ function Ji(e) {
|
|
|
3455
3477
|
context: e.builderContext,
|
|
3456
3478
|
registeredComponents: e.builderComponents,
|
|
3457
3479
|
linkComponent: e.builderLinkComponent,
|
|
3458
|
-
blocks:
|
|
3480
|
+
blocks: P.blocks
|
|
3459
3481
|
}
|
|
3460
3482
|
)
|
|
3461
3483
|
},
|
|
3462
|
-
|
|
3484
|
+
y
|
|
3463
3485
|
))
|
|
3464
3486
|
]
|
|
3465
3487
|
}
|
|
3466
3488
|
),
|
|
3467
|
-
/* @__PURE__ */
|
|
3489
|
+
/* @__PURE__ */ g("style", { children: `.div-2cd13691 {
|
|
3468
3490
|
display: flex;
|
|
3469
3491
|
line-height: normal;
|
|
3470
3492
|
}` })
|
|
3471
3493
|
] });
|
|
3472
3494
|
}
|
|
3473
|
-
function
|
|
3474
|
-
return /* @__PURE__ */
|
|
3495
|
+
function no(e) {
|
|
3496
|
+
return /* @__PURE__ */ g("span", { children: e.children });
|
|
3475
3497
|
}
|
|
3476
3498
|
function nr(e) {
|
|
3477
3499
|
return e.replace(/http(s)?:/, "");
|
|
3478
3500
|
}
|
|
3479
|
-
function
|
|
3501
|
+
function ro(e = "", t, n) {
|
|
3480
3502
|
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3481
3503
|
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
|
|
3482
3504
|
}
|
|
3483
|
-
function
|
|
3505
|
+
function io(e, t) {
|
|
3484
3506
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3485
3507
|
return e;
|
|
3486
3508
|
if (t === "master")
|
|
@@ -3499,26 +3521,26 @@ function zt(e) {
|
|
|
3499
3521
|
if (e.match(/builder\.io/)) {
|
|
3500
3522
|
let n = e;
|
|
3501
3523
|
const r = Number(e.split("?width=")[1]);
|
|
3502
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${
|
|
3524
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((i) => i !== r).map((i) => `${ro(e, "width", i)} ${i}w`).concat([n]).join(", ");
|
|
3503
3525
|
}
|
|
3504
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3526
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [io(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3505
3527
|
}
|
|
3506
|
-
function
|
|
3507
|
-
var i, a, s,
|
|
3528
|
+
function oo(e) {
|
|
3529
|
+
var i, a, s, u, f, m;
|
|
3508
3530
|
function t() {
|
|
3509
3531
|
var j;
|
|
3510
|
-
const
|
|
3511
|
-
if (!
|
|
3532
|
+
const v = e.image || e.src;
|
|
3533
|
+
if (!v || // We can auto add srcset for cdn.builder.io and shopify
|
|
3512
3534
|
// images, otherwise you can supply this prop manually
|
|
3513
|
-
!(
|
|
3535
|
+
!(v.match(/builder\.io/) || v.match(/cdn\.shopify\.com/)))
|
|
3514
3536
|
return e.srcset;
|
|
3515
3537
|
if (!e.noWebp) {
|
|
3516
3538
|
if (e.srcset && ((j = e.image) != null && j.includes("builder.io/api/v1/image"))) {
|
|
3517
3539
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3518
|
-
return console.debug("Removed given srcset"), zt(
|
|
3540
|
+
return console.debug("Removed given srcset"), zt(v);
|
|
3519
3541
|
} else if (e.image && !e.srcset)
|
|
3520
|
-
return zt(
|
|
3521
|
-
return zt(
|
|
3542
|
+
return zt(v);
|
|
3543
|
+
return zt(v);
|
|
3522
3544
|
}
|
|
3523
3545
|
}
|
|
3524
3546
|
function n() {
|
|
@@ -3535,12 +3557,12 @@ function eo(e) {
|
|
|
3535
3557
|
};
|
|
3536
3558
|
return e.aspectRatio ? b : void 0;
|
|
3537
3559
|
}
|
|
3538
|
-
return
|
|
3560
|
+
return Q(() => {
|
|
3539
3561
|
}, []), /* @__PURE__ */ se(K, { children: [
|
|
3540
3562
|
/* @__PURE__ */ se(K, { children: [
|
|
3541
3563
|
/* @__PURE__ */ se("picture", { children: [
|
|
3542
|
-
n() ? /* @__PURE__ */
|
|
3543
|
-
/* @__PURE__ */
|
|
3564
|
+
n() ? /* @__PURE__ */ g("source", { type: "image/webp", srcSet: n() }) : null,
|
|
3565
|
+
/* @__PURE__ */ g(
|
|
3544
3566
|
"img",
|
|
3545
3567
|
{
|
|
3546
3568
|
loading: e.highPriority ? "eager" : "lazy",
|
|
@@ -3559,7 +3581,7 @@ function eo(e) {
|
|
|
3559
3581
|
}
|
|
3560
3582
|
)
|
|
3561
3583
|
] }),
|
|
3562
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
3584
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ g(
|
|
3563
3585
|
"div",
|
|
3564
3586
|
{
|
|
3565
3587
|
className: "builder-image-sizer div-2d6925f2",
|
|
@@ -3568,10 +3590,10 @@ function eo(e) {
|
|
|
3568
3590
|
}
|
|
3569
3591
|
}
|
|
3570
3592
|
) : null,
|
|
3571
|
-
(
|
|
3572
|
-
!e.fitContent && ((
|
|
3593
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ g(K, { children: e.children }) : null,
|
|
3594
|
+
!e.fitContent && ((m = (f = e.builderBlock) == null ? void 0 : f.children) != null && m.length) ? /* @__PURE__ */ g("div", { className: "div-2d6925f2-2", children: e.children }) : null
|
|
3573
3595
|
] }),
|
|
3574
|
-
/* @__PURE__ */
|
|
3596
|
+
/* @__PURE__ */ g("style", { children: `.img-2d6925f2 {
|
|
3575
3597
|
opacity: 1;
|
|
3576
3598
|
transition: opacity 0.2s ease-in-out;
|
|
3577
3599
|
}.div-2d6925f2 {
|
|
@@ -3590,8 +3612,8 @@ function eo(e) {
|
|
|
3590
3612
|
}` })
|
|
3591
3613
|
] });
|
|
3592
3614
|
}
|
|
3593
|
-
function
|
|
3594
|
-
return /* @__PURE__ */
|
|
3615
|
+
function ao(e) {
|
|
3616
|
+
return /* @__PURE__ */ g(
|
|
3595
3617
|
"section",
|
|
3596
3618
|
{
|
|
3597
3619
|
...e.attributes,
|
|
@@ -3611,7 +3633,7 @@ function to(e) {
|
|
|
3611
3633
|
}
|
|
3612
3634
|
);
|
|
3613
3635
|
}
|
|
3614
|
-
const
|
|
3636
|
+
const so = {
|
|
3615
3637
|
name: "Core:Button",
|
|
3616
3638
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3617
3639
|
defaultStyles: {
|
|
@@ -3647,7 +3669,7 @@ const no = {
|
|
|
3647
3669
|
shouldReceiveBuilderProps: {
|
|
3648
3670
|
builderLinkComponent: !0
|
|
3649
3671
|
}
|
|
3650
|
-
},
|
|
3672
|
+
}, lo = {
|
|
3651
3673
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3652
3674
|
name: "Columns",
|
|
3653
3675
|
isRSC: !0,
|
|
@@ -3826,7 +3848,7 @@ const no = {
|
|
|
3826
3848
|
});
|
|
3827
3849
|
}
|
|
3828
3850
|
const n = e.get("columns");
|
|
3829
|
-
Array.isArray(n) && n.find((i) => i.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((
|
|
3851
|
+
Array.isArray(n) && n.find((i) => i.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((u, f) => u + f.get("width"), 0) !== 100) && t();
|
|
3830
3852
|
}
|
|
3831
3853
|
}, {
|
|
3832
3854
|
name: "space",
|
|
@@ -3854,13 +3876,13 @@ const no = {
|
|
|
3854
3876
|
builderComponents: !0,
|
|
3855
3877
|
builderLinkComponent: !0
|
|
3856
3878
|
}
|
|
3857
|
-
},
|
|
3879
|
+
}, co = {
|
|
3858
3880
|
name: "Fragment",
|
|
3859
3881
|
static: !0,
|
|
3860
3882
|
hidden: !0,
|
|
3861
3883
|
canHaveChildren: !0,
|
|
3862
3884
|
noWrap: !0
|
|
3863
|
-
},
|
|
3885
|
+
}, uo = {
|
|
3864
3886
|
name: "Image",
|
|
3865
3887
|
static: !0,
|
|
3866
3888
|
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",
|
|
@@ -3880,17 +3902,17 @@ const no = {
|
|
|
3880
3902
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
3881
3903
|
onChange: (e) => {
|
|
3882
3904
|
e.delete("srcset"), e.delete("noWebp");
|
|
3883
|
-
function n(s,
|
|
3884
|
-
return new Promise((f,
|
|
3905
|
+
function n(s, u = 6e4) {
|
|
3906
|
+
return new Promise((f, m) => {
|
|
3885
3907
|
const b = document.createElement("img");
|
|
3886
|
-
let
|
|
3908
|
+
let v = !1;
|
|
3887
3909
|
b.onload = () => {
|
|
3888
|
-
|
|
3910
|
+
v = !0, f(b);
|
|
3889
3911
|
}, b.addEventListener("error", (j) => {
|
|
3890
|
-
console.warn("Image load failed", j.error),
|
|
3912
|
+
console.warn("Image load failed", j.error), m(j.error);
|
|
3891
3913
|
}), b.src = s, setTimeout(() => {
|
|
3892
|
-
|
|
3893
|
-
},
|
|
3914
|
+
v || m(new Error("Image load timed out"));
|
|
3915
|
+
}, u);
|
|
3894
3916
|
});
|
|
3895
3917
|
}
|
|
3896
3918
|
function r(s) {
|
|
@@ -3901,8 +3923,8 @@ const no = {
|
|
|
3901
3923
|
s.type.includes("svg") && e.set("noWebp", !0);
|
|
3902
3924
|
}), i && (!a || a === 0.7041))
|
|
3903
3925
|
return n(i).then((s) => {
|
|
3904
|
-
const
|
|
3905
|
-
e.get("image") === i && (!
|
|
3926
|
+
const u = e.get("aspectRatio");
|
|
3927
|
+
e.get("image") === i && (!u || u === 0.7041) && s.width && s.height && (e.set("aspectRatio", r(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
3906
3928
|
});
|
|
3907
3929
|
}
|
|
3908
3930
|
}, {
|
|
@@ -3968,7 +3990,7 @@ const no = {
|
|
|
3968
3990
|
shouldReceiveBuilderProps: {
|
|
3969
3991
|
builderBlock: !0
|
|
3970
3992
|
}
|
|
3971
|
-
},
|
|
3993
|
+
}, fo = {
|
|
3972
3994
|
name: "Core:Section",
|
|
3973
3995
|
static: !0,
|
|
3974
3996
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -4007,7 +4029,7 @@ const no = {
|
|
|
4007
4029
|
}
|
|
4008
4030
|
}
|
|
4009
4031
|
}]
|
|
4010
|
-
},
|
|
4032
|
+
}, ho = {
|
|
4011
4033
|
name: "Slot",
|
|
4012
4034
|
isRSC: !0,
|
|
4013
4035
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -4024,9 +4046,9 @@ const no = {
|
|
|
4024
4046
|
builderContext: !0
|
|
4025
4047
|
}
|
|
4026
4048
|
};
|
|
4027
|
-
function
|
|
4049
|
+
function po(e) {
|
|
4028
4050
|
var t, n, r;
|
|
4029
|
-
return /* @__PURE__ */
|
|
4051
|
+
return /* @__PURE__ */ g(
|
|
4030
4052
|
"div",
|
|
4031
4053
|
{
|
|
4032
4054
|
style: {
|
|
@@ -4035,7 +4057,7 @@ function lo(e) {
|
|
|
4035
4057
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
4036
4058
|
"builder-slot": e.name
|
|
4037
4059
|
},
|
|
4038
|
-
children: /* @__PURE__ */
|
|
4060
|
+
children: /* @__PURE__ */ g(
|
|
4039
4061
|
mn,
|
|
4040
4062
|
{
|
|
4041
4063
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -4047,7 +4069,7 @@ function lo(e) {
|
|
|
4047
4069
|
}
|
|
4048
4070
|
);
|
|
4049
4071
|
}
|
|
4050
|
-
const
|
|
4072
|
+
const mo = {
|
|
4051
4073
|
name: "Symbol",
|
|
4052
4074
|
noWrap: !0,
|
|
4053
4075
|
static: !0,
|
|
@@ -4086,7 +4108,7 @@ const co = {
|
|
|
4086
4108
|
builderComponents: !0,
|
|
4087
4109
|
builderLinkComponent: !0
|
|
4088
4110
|
}
|
|
4089
|
-
},
|
|
4111
|
+
}, go = {
|
|
4090
4112
|
shouldReceiveBuilderProps: {
|
|
4091
4113
|
builderBlock: !1,
|
|
4092
4114
|
builderContext: !0
|
|
@@ -4109,8 +4131,8 @@ const co = {
|
|
|
4109
4131
|
textAlign: "center"
|
|
4110
4132
|
}
|
|
4111
4133
|
};
|
|
4112
|
-
function
|
|
4113
|
-
return /* @__PURE__ */
|
|
4134
|
+
function yo(e) {
|
|
4135
|
+
return /* @__PURE__ */ g(
|
|
4114
4136
|
"div",
|
|
4115
4137
|
{
|
|
4116
4138
|
className: "builder-text",
|
|
@@ -4120,16 +4142,16 @@ function fo(e) {
|
|
|
4120
4142
|
context: i,
|
|
4121
4143
|
localState: a,
|
|
4122
4144
|
rootState: s,
|
|
4123
|
-
rootSetState:
|
|
4145
|
+
rootSetState: u
|
|
4124
4146
|
} = r;
|
|
4125
4147
|
return String(((f = e.text) == null ? void 0 : f.toString()) || "").replace(
|
|
4126
4148
|
/{{([^}]+)}}/g,
|
|
4127
|
-
(
|
|
4149
|
+
(m, b) => Ve({
|
|
4128
4150
|
code: b,
|
|
4129
4151
|
context: i,
|
|
4130
4152
|
localState: a,
|
|
4131
4153
|
rootState: s,
|
|
4132
|
-
rootSetState:
|
|
4154
|
+
rootSetState: u,
|
|
4133
4155
|
enableCache: !1
|
|
4134
4156
|
})
|
|
4135
4157
|
);
|
|
@@ -4140,7 +4162,7 @@ function fo(e) {
|
|
|
4140
4162
|
}
|
|
4141
4163
|
);
|
|
4142
4164
|
}
|
|
4143
|
-
const
|
|
4165
|
+
const vo = {
|
|
4144
4166
|
name: "Custom Code",
|
|
4145
4167
|
static: !0,
|
|
4146
4168
|
requiredPermissions: ["editCode"],
|
|
@@ -4163,36 +4185,36 @@ const ho = {
|
|
|
4163
4185
|
advanced: !0
|
|
4164
4186
|
}]
|
|
4165
4187
|
};
|
|
4166
|
-
function
|
|
4167
|
-
const t =
|
|
4168
|
-
return
|
|
4169
|
-
var
|
|
4170
|
-
if (!((
|
|
4188
|
+
function bo(e) {
|
|
4189
|
+
const t = bt(null), [n, r] = ye(() => []), [i, a] = ye(() => []);
|
|
4190
|
+
return Q(() => {
|
|
4191
|
+
var u;
|
|
4192
|
+
if (!((u = t.current) != null && u.getElementsByTagName) || typeof window == "undefined")
|
|
4171
4193
|
return;
|
|
4172
4194
|
const s = t.current.getElementsByTagName("script");
|
|
4173
4195
|
for (let f = 0; f < s.length; f++) {
|
|
4174
|
-
const
|
|
4175
|
-
if (
|
|
4176
|
-
if (n.includes(
|
|
4196
|
+
const m = s[f];
|
|
4197
|
+
if (m.src) {
|
|
4198
|
+
if (n.includes(m.src))
|
|
4177
4199
|
continue;
|
|
4178
|
-
n.push(
|
|
4200
|
+
n.push(m.src);
|
|
4179
4201
|
const b = document.createElement("script");
|
|
4180
|
-
b.async = !0, b.src =
|
|
4181
|
-
} else if (!
|
|
4202
|
+
b.async = !0, b.src = m.src, document.head.appendChild(b);
|
|
4203
|
+
} else if (!m.type || [
|
|
4182
4204
|
"text/javascript",
|
|
4183
4205
|
"application/javascript",
|
|
4184
4206
|
"application/ecmascript"
|
|
4185
|
-
].includes(
|
|
4186
|
-
if (i.includes(
|
|
4207
|
+
].includes(m.type)) {
|
|
4208
|
+
if (i.includes(m.innerText))
|
|
4187
4209
|
continue;
|
|
4188
4210
|
try {
|
|
4189
|
-
i.push(
|
|
4211
|
+
i.push(m.innerText), new Function(m.innerText)();
|
|
4190
4212
|
} catch (b) {
|
|
4191
4213
|
console.warn("`CustomCode`: Error running script:", b);
|
|
4192
4214
|
}
|
|
4193
4215
|
}
|
|
4194
4216
|
}
|
|
4195
|
-
}, []), /* @__PURE__ */
|
|
4217
|
+
}, []), /* @__PURE__ */ g(
|
|
4196
4218
|
"div",
|
|
4197
4219
|
{
|
|
4198
4220
|
ref: t,
|
|
@@ -4201,7 +4223,7 @@ function po(e) {
|
|
|
4201
4223
|
}
|
|
4202
4224
|
);
|
|
4203
4225
|
}
|
|
4204
|
-
const
|
|
4226
|
+
const xo = {
|
|
4205
4227
|
name: "Embed",
|
|
4206
4228
|
static: !0,
|
|
4207
4229
|
inputs: [{
|
|
@@ -4216,30 +4238,30 @@ const mo = {
|
|
|
4216
4238
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
4217
4239
|
hideFromUI: !0
|
|
4218
4240
|
}]
|
|
4219
|
-
},
|
|
4220
|
-
function
|
|
4221
|
-
const t =
|
|
4241
|
+
}, So = ["text/javascript", "application/javascript", "application/ecmascript"], ko = (e) => So.includes(e.type);
|
|
4242
|
+
function Co(e) {
|
|
4243
|
+
const t = bt(null), [n, r] = ye(() => []), [i, a] = ye(() => []), [s, u] = ye(() => !1);
|
|
4222
4244
|
function f() {
|
|
4223
4245
|
if (!t.current || !t.current.getElementsByTagName)
|
|
4224
4246
|
return;
|
|
4225
|
-
const
|
|
4226
|
-
for (let b = 0; b <
|
|
4227
|
-
const
|
|
4228
|
-
if (
|
|
4229
|
-
n.push(
|
|
4247
|
+
const m = t.current.getElementsByTagName("script");
|
|
4248
|
+
for (let b = 0; b < m.length; b++) {
|
|
4249
|
+
const v = m[b];
|
|
4250
|
+
if (v.src && !n.includes(v.src)) {
|
|
4251
|
+
n.push(v.src);
|
|
4230
4252
|
const j = document.createElement("script");
|
|
4231
|
-
j.async = !0, j.src =
|
|
4232
|
-
} else if (
|
|
4253
|
+
j.async = !0, j.src = v.src, document.head.appendChild(j);
|
|
4254
|
+
} else if (ko(v) && !i.includes(v.innerText))
|
|
4233
4255
|
try {
|
|
4234
|
-
i.push(
|
|
4256
|
+
i.push(v.innerText), new Function(v.innerText)();
|
|
4235
4257
|
} catch (j) {
|
|
4236
4258
|
console.warn("`Embed`: Error running script:", j);
|
|
4237
4259
|
}
|
|
4238
4260
|
}
|
|
4239
4261
|
}
|
|
4240
|
-
return
|
|
4241
|
-
t.current && !s && (
|
|
4242
|
-
}, [t.current, s]), /* @__PURE__ */
|
|
4262
|
+
return Q(() => {
|
|
4263
|
+
t.current && !s && (u(!0), f());
|
|
4264
|
+
}, [t.current, s]), /* @__PURE__ */ g(
|
|
4243
4265
|
"div",
|
|
4244
4266
|
{
|
|
4245
4267
|
className: "builder-embed",
|
|
@@ -4248,7 +4270,7 @@ function vo(e) {
|
|
|
4248
4270
|
}
|
|
4249
4271
|
);
|
|
4250
4272
|
}
|
|
4251
|
-
const
|
|
4273
|
+
const wo = {
|
|
4252
4274
|
// friendlyName?
|
|
4253
4275
|
name: "Raw:Img",
|
|
4254
4276
|
hideFromInsertMenu: !0,
|
|
@@ -4263,8 +4285,8 @@ const bo = {
|
|
|
4263
4285
|
noWrap: !0,
|
|
4264
4286
|
static: !0
|
|
4265
4287
|
};
|
|
4266
|
-
function
|
|
4267
|
-
return /* @__PURE__ */
|
|
4288
|
+
function Eo(e) {
|
|
4289
|
+
return /* @__PURE__ */ g(
|
|
4268
4290
|
"img",
|
|
4269
4291
|
{
|
|
4270
4292
|
style: {
|
|
@@ -4278,7 +4300,7 @@ function xo(e) {
|
|
|
4278
4300
|
Ce() && e.imgSrc || "default-key"
|
|
4279
4301
|
);
|
|
4280
4302
|
}
|
|
4281
|
-
const
|
|
4303
|
+
const Io = {
|
|
4282
4304
|
name: "Video",
|
|
4283
4305
|
canHaveChildren: !0,
|
|
4284
4306
|
defaultStyles: {
|
|
@@ -4363,8 +4385,8 @@ const So = {
|
|
|
4363
4385
|
builderBlock: !0
|
|
4364
4386
|
}
|
|
4365
4387
|
};
|
|
4366
|
-
function
|
|
4367
|
-
var r, i, a, s,
|
|
4388
|
+
function To(e) {
|
|
4389
|
+
var r, i, a, s, u, f, m;
|
|
4368
4390
|
function t() {
|
|
4369
4391
|
return {
|
|
4370
4392
|
...e.autoPlay === !0 ? {
|
|
@@ -4396,7 +4418,7 @@ function ko(e) {
|
|
|
4396
4418
|
position: "relative"
|
|
4397
4419
|
},
|
|
4398
4420
|
children: [
|
|
4399
|
-
/* @__PURE__ */
|
|
4421
|
+
/* @__PURE__ */ g(
|
|
4400
4422
|
"video",
|
|
4401
4423
|
{
|
|
4402
4424
|
className: "builder-video",
|
|
@@ -4418,10 +4440,10 @@ function ko(e) {
|
|
|
4418
4440
|
},
|
|
4419
4441
|
src: e.video || "no-src",
|
|
4420
4442
|
poster: e.posterImage,
|
|
4421
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
4443
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ g("source", { type: "video/mp4", src: e.video })
|
|
4422
4444
|
}
|
|
4423
4445
|
),
|
|
4424
|
-
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */
|
|
4446
|
+
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ g(
|
|
4425
4447
|
"div",
|
|
4426
4448
|
{
|
|
4427
4449
|
style: {
|
|
@@ -4432,7 +4454,7 @@ function ko(e) {
|
|
|
4432
4454
|
}
|
|
4433
4455
|
}
|
|
4434
4456
|
) : null,
|
|
4435
|
-
(
|
|
4457
|
+
(u = (s = e.builderBlock) == null ? void 0 : s.children) != null && u.length && e.fitContent ? /* @__PURE__ */ g(
|
|
4436
4458
|
"div",
|
|
4437
4459
|
{
|
|
4438
4460
|
style: {
|
|
@@ -4443,7 +4465,7 @@ function ko(e) {
|
|
|
4443
4465
|
children: e.children
|
|
4444
4466
|
}
|
|
4445
4467
|
) : null,
|
|
4446
|
-
(
|
|
4468
|
+
(m = (f = e.builderBlock) == null ? void 0 : f.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ g(
|
|
4447
4469
|
"div",
|
|
4448
4470
|
{
|
|
4449
4471
|
style: {
|
|
@@ -4464,43 +4486,43 @@ function ko(e) {
|
|
|
4464
4486
|
}
|
|
4465
4487
|
);
|
|
4466
4488
|
}
|
|
4467
|
-
const
|
|
4468
|
-
component:
|
|
4469
|
-
...
|
|
4489
|
+
const Ao = () => [{
|
|
4490
|
+
component: bo,
|
|
4491
|
+
...vo
|
|
4470
4492
|
}, {
|
|
4471
|
-
component:
|
|
4472
|
-
...
|
|
4493
|
+
component: Co,
|
|
4494
|
+
...xo
|
|
4473
4495
|
}, {
|
|
4474
|
-
component:
|
|
4475
|
-
...
|
|
4496
|
+
component: Eo,
|
|
4497
|
+
...wo
|
|
4476
4498
|
}, {
|
|
4477
|
-
component:
|
|
4478
|
-
...
|
|
4499
|
+
component: To,
|
|
4500
|
+
...Io
|
|
4479
4501
|
}], rr = () => [{
|
|
4480
4502
|
component: ni,
|
|
4481
|
-
...
|
|
4503
|
+
...so
|
|
4482
4504
|
}, {
|
|
4483
|
-
component:
|
|
4484
|
-
...
|
|
4505
|
+
component: to,
|
|
4506
|
+
...lo
|
|
4485
4507
|
}, {
|
|
4486
|
-
component:
|
|
4487
|
-
...
|
|
4508
|
+
component: no,
|
|
4509
|
+
...co
|
|
4488
4510
|
}, {
|
|
4489
|
-
component:
|
|
4490
|
-
...
|
|
4511
|
+
component: oo,
|
|
4512
|
+
...uo
|
|
4491
4513
|
}, {
|
|
4492
|
-
component:
|
|
4493
|
-
...
|
|
4514
|
+
component: ao,
|
|
4515
|
+
...fo
|
|
4494
4516
|
}, {
|
|
4495
|
-
component:
|
|
4496
|
-
...
|
|
4517
|
+
component: po,
|
|
4518
|
+
...ho
|
|
4497
4519
|
}, {
|
|
4498
|
-
component:
|
|
4499
|
-
...
|
|
4520
|
+
component: ra,
|
|
4521
|
+
...mo
|
|
4500
4522
|
}, {
|
|
4501
|
-
component:
|
|
4502
|
-
...
|
|
4503
|
-
}, ...
|
|
4523
|
+
component: yo,
|
|
4524
|
+
...go
|
|
4525
|
+
}, ...Ao()], jo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4504
4526
|
function getAndSetVariantId() {
|
|
4505
4527
|
function setCookie(name, value, days) {
|
|
4506
4528
|
let expires = '';
|
|
@@ -4556,7 +4578,7 @@ const Co = () => [{
|
|
|
4556
4578
|
}).join('');
|
|
4557
4579
|
styleEl.innerHTML = newStyleStr;
|
|
4558
4580
|
}
|
|
4559
|
-
}`,
|
|
4581
|
+
}`, Ro = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4560
4582
|
if (!navigator.cookieEnabled) {
|
|
4561
4583
|
return;
|
|
4562
4584
|
}
|
|
@@ -4590,27 +4612,27 @@ const Co = () => [{
|
|
|
4590
4612
|
thisScriptEl?.remove();
|
|
4591
4613
|
}
|
|
4592
4614
|
return;
|
|
4593
|
-
}`,
|
|
4615
|
+
}`, Cr = "builderIoAbTest", wr = "builderIoRenderContent", gt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4594
4616
|
...t,
|
|
4595
4617
|
testVariationId: t.id,
|
|
4596
4618
|
id: e == null ? void 0 : e.id
|
|
4597
|
-
})),
|
|
4619
|
+
})), Oo = ({
|
|
4598
4620
|
canTrack: e,
|
|
4599
4621
|
content: t
|
|
4600
|
-
}) => !(!(gt(t).length > 0) || !e ||
|
|
4601
|
-
window.${
|
|
4602
|
-
window.${
|
|
4603
|
-
`,
|
|
4604
|
-
window.${
|
|
4605
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4606
|
-
)`,
|
|
4622
|
+
}) => !(!(gt(t).length > 0) || !e || We()), Po = (e) => e === "react" || e === "reactNative", Er = Po(je), No = () => `
|
|
4623
|
+
window.${Cr} = ${jo}
|
|
4624
|
+
window.${wr} = ${Ro}
|
|
4625
|
+
`, Bo = (e, t) => `
|
|
4626
|
+
window.${Cr}(
|
|
4627
|
+
"${t}",${JSON.stringify(e)}, ${Er}
|
|
4628
|
+
)`, Mo = ({
|
|
4607
4629
|
contentId: e,
|
|
4608
4630
|
variationId: t
|
|
4609
|
-
}) => `window.${
|
|
4610
|
-
"${t}", "${e}", ${
|
|
4631
|
+
}) => `window.${wr}(
|
|
4632
|
+
"${t}", "${e}", ${Er}
|
|
4611
4633
|
)`;
|
|
4612
|
-
function
|
|
4613
|
-
return /* @__PURE__ */
|
|
4634
|
+
function Zt(e) {
|
|
4635
|
+
return /* @__PURE__ */ g(
|
|
4614
4636
|
"script",
|
|
4615
4637
|
{
|
|
4616
4638
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4619,7 +4641,7 @@ function qt(e) {
|
|
|
4619
4641
|
}
|
|
4620
4642
|
);
|
|
4621
4643
|
}
|
|
4622
|
-
const
|
|
4644
|
+
const Do = Zr({
|
|
4623
4645
|
content: null,
|
|
4624
4646
|
context: {},
|
|
4625
4647
|
localState: void 0,
|
|
@@ -4637,7 +4659,7 @@ const Oo = Zr({
|
|
|
4637
4659
|
function ir(e) {
|
|
4638
4660
|
return Math.round(e * 1e3) / 1e3;
|
|
4639
4661
|
}
|
|
4640
|
-
const
|
|
4662
|
+
const Fo = (e, t, n = !0) => {
|
|
4641
4663
|
if (!(e instanceof HTMLElement))
|
|
4642
4664
|
return null;
|
|
4643
4665
|
let r = n ? e : e.parentElement;
|
|
@@ -4648,7 +4670,7 @@ const Po = (e, t, n = !0) => {
|
|
|
4648
4670
|
return r;
|
|
4649
4671
|
} while (r = r.parentElement);
|
|
4650
4672
|
return null;
|
|
4651
|
-
},
|
|
4673
|
+
}, Wo = (e) => Fo(e, (t) => {
|
|
4652
4674
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4653
4675
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4654
4676
|
}), or = ({
|
|
@@ -4660,8 +4682,8 @@ const Po = (e, t, n = !0) => {
|
|
|
4660
4682
|
x: a,
|
|
4661
4683
|
y: s
|
|
4662
4684
|
};
|
|
4663
|
-
},
|
|
4664
|
-
const t = e.target, n = t &&
|
|
4685
|
+
}, Uo = (e) => {
|
|
4686
|
+
const t = e.target, n = t && Wo(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4665
4687
|
return {
|
|
4666
4688
|
targetBuilderElement: r || void 0,
|
|
4667
4689
|
metadata: {
|
|
@@ -4677,11 +4699,11 @@ const Po = (e, t, n = !0) => {
|
|
|
4677
4699
|
}
|
|
4678
4700
|
};
|
|
4679
4701
|
};
|
|
4680
|
-
async function
|
|
4702
|
+
async function Lo({
|
|
4681
4703
|
key: e,
|
|
4682
4704
|
value: t
|
|
4683
4705
|
}) {
|
|
4684
|
-
return
|
|
4706
|
+
return Kr(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
|
|
4685
4707
|
}
|
|
4686
4708
|
function ar(e, ...t) {
|
|
4687
4709
|
const n = Object(e);
|
|
@@ -4693,37 +4715,37 @@ function ar(e, ...t) {
|
|
|
4693
4715
|
}
|
|
4694
4716
|
return n;
|
|
4695
4717
|
}
|
|
4696
|
-
function
|
|
4718
|
+
function Vo(e) {
|
|
4697
4719
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
4698
4720
|
}
|
|
4699
|
-
function
|
|
4700
|
-
const n =
|
|
4701
|
-
for (const
|
|
4721
|
+
function _o(e, t) {
|
|
4722
|
+
const n = $o(e), r = getComputedStyle(t), i = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, s = [i, a];
|
|
4723
|
+
for (const u of s)
|
|
4702
4724
|
for (const f of n)
|
|
4703
|
-
f in
|
|
4725
|
+
f in u || (u[f] = r[f]);
|
|
4704
4726
|
}
|
|
4705
|
-
function
|
|
4727
|
+
function $o(e) {
|
|
4706
4728
|
const t = [];
|
|
4707
4729
|
for (const n of e.steps)
|
|
4708
4730
|
for (const r in n.styles)
|
|
4709
4731
|
t.indexOf(r) === -1 && t.push(r);
|
|
4710
4732
|
return t;
|
|
4711
4733
|
}
|
|
4712
|
-
function
|
|
4734
|
+
function Ho(e) {
|
|
4713
4735
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
4714
4736
|
if (!t.length) {
|
|
4715
|
-
|
|
4737
|
+
Vo(e.elementId || e.id || "");
|
|
4716
4738
|
return;
|
|
4717
4739
|
}
|
|
4718
4740
|
Array.from(t).forEach((n) => {
|
|
4719
|
-
|
|
4741
|
+
_o(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ar(n.style, e.steps[0].styles), setTimeout(() => {
|
|
4720
4742
|
n.style.transition = `all ${e.duration}s ${hn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ar(n.style, e.steps[1].styles), setTimeout(() => {
|
|
4721
4743
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
4722
4744
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
4723
4745
|
});
|
|
4724
4746
|
});
|
|
4725
4747
|
}
|
|
4726
|
-
const
|
|
4748
|
+
const Ko = (e) => {
|
|
4727
4749
|
var a, s;
|
|
4728
4750
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = (s = e.fileUrl) != null ? s : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
|
|
4729
4751
|
let i = "";
|
|
@@ -4735,29 +4757,29 @@ font-display: fallback;
|
|
|
4735
4757
|
font-weight: 400;
|
|
4736
4758
|
}
|
|
4737
4759
|
`.trim()), e.files)
|
|
4738
|
-
for (const
|
|
4739
|
-
if (!(String(Number(
|
|
4760
|
+
for (const u in e.files) {
|
|
4761
|
+
if (!(String(Number(u)) === u))
|
|
4740
4762
|
continue;
|
|
4741
|
-
const
|
|
4742
|
-
|
|
4763
|
+
const m = e.files[u];
|
|
4764
|
+
m && m !== r && (i += `
|
|
4743
4765
|
@font-face {
|
|
4744
4766
|
font-family: "${t}";
|
|
4745
|
-
src: url('${
|
|
4767
|
+
src: url('${m}') format('woff2');
|
|
4746
4768
|
font-display: fallback;
|
|
4747
|
-
font-weight: ${
|
|
4769
|
+
font-weight: ${u};
|
|
4748
4770
|
}
|
|
4749
4771
|
`.trim());
|
|
4750
4772
|
}
|
|
4751
4773
|
return i;
|
|
4752
|
-
},
|
|
4774
|
+
}, Go = ({
|
|
4753
4775
|
customFonts: e
|
|
4754
4776
|
}) => {
|
|
4755
4777
|
var t;
|
|
4756
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4757
|
-
},
|
|
4778
|
+
return ((t = e == null ? void 0 : e.map((n) => Ko(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4779
|
+
}, zo = ({
|
|
4758
4780
|
cssCode: e,
|
|
4759
4781
|
contentId: t
|
|
4760
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4782
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Yo = `
|
|
4761
4783
|
.builder-button {
|
|
4762
4784
|
all: unset;
|
|
4763
4785
|
}
|
|
@@ -4774,20 +4796,20 @@ font-weight: ${c};
|
|
|
4774
4796
|
text-align: inherit;
|
|
4775
4797
|
font-family: inherit;
|
|
4776
4798
|
}
|
|
4777
|
-
`,
|
|
4778
|
-
function
|
|
4779
|
-
var oe, $,
|
|
4780
|
-
const t =
|
|
4799
|
+
`, Xo = (e) => e ? "" : Yo, Jo = (e) => `variant-${e}`;
|
|
4800
|
+
function qo(e) {
|
|
4801
|
+
var oe, $, ee, E, Ee, _, Ie;
|
|
4802
|
+
const t = bt(null);
|
|
4781
4803
|
function n(I) {
|
|
4782
|
-
var B,
|
|
4804
|
+
var B, L;
|
|
4783
4805
|
const x = {
|
|
4784
4806
|
...e.builderContextSignal.rootState,
|
|
4785
4807
|
...I
|
|
4786
4808
|
};
|
|
4787
|
-
e.builderContextSignal.rootSetState ? (
|
|
4809
|
+
e.builderContextSignal.rootSetState ? (L = (B = e.builderContextSignal).rootSetState) == null || L.call(B, x) : e.builderContextSignal.rootState = x;
|
|
4788
4810
|
}
|
|
4789
4811
|
function r(I) {
|
|
4790
|
-
var B,
|
|
4812
|
+
var B, L, M, J, le;
|
|
4791
4813
|
const x = {
|
|
4792
4814
|
...e.builderContextSignal.content,
|
|
4793
4815
|
...I,
|
|
@@ -4796,12 +4818,12 @@ function Go(e) {
|
|
|
4796
4818
|
...I == null ? void 0 : I.data
|
|
4797
4819
|
},
|
|
4798
4820
|
meta: {
|
|
4799
|
-
...(
|
|
4821
|
+
...(L = e.builderContextSignal.content) == null ? void 0 : L.meta,
|
|
4800
4822
|
...I == null ? void 0 : I.meta,
|
|
4801
4823
|
breakpoints: ((M = I == null ? void 0 : I.meta) == null ? void 0 : M.breakpoints) || ((le = (J = e.builderContextSignal.content) == null ? void 0 : J.meta) == null ? void 0 : le.breakpoints)
|
|
4802
4824
|
}
|
|
4803
4825
|
};
|
|
4804
|
-
|
|
4826
|
+
Lo({
|
|
4805
4827
|
value: x,
|
|
4806
4828
|
key: x.id
|
|
4807
4829
|
}).then(() => {
|
|
@@ -4817,22 +4839,22 @@ function Go(e) {
|
|
|
4817
4839
|
const [a, s] = ye(
|
|
4818
4840
|
() => e.contentWrapper || "div"
|
|
4819
4841
|
);
|
|
4820
|
-
function
|
|
4842
|
+
function u(I) {
|
|
4821
4843
|
return Gr({
|
|
4822
4844
|
model: e.model,
|
|
4823
4845
|
trustedHosts: e.trustedHosts,
|
|
4824
4846
|
callbacks: {
|
|
4825
4847
|
configureSdk: (x) => {
|
|
4826
4848
|
var M;
|
|
4827
|
-
const { breakpoints: B, contentId:
|
|
4828
|
-
!
|
|
4849
|
+
const { breakpoints: B, contentId: L } = x;
|
|
4850
|
+
!L || L !== ((M = e.builderContextSignal.content) == null ? void 0 : M.id) || B && r({
|
|
4829
4851
|
meta: {
|
|
4830
4852
|
breakpoints: B
|
|
4831
4853
|
}
|
|
4832
4854
|
});
|
|
4833
4855
|
},
|
|
4834
4856
|
animation: (x) => {
|
|
4835
|
-
|
|
4857
|
+
Ho(x);
|
|
4836
4858
|
},
|
|
4837
4859
|
contentUpdate: (x) => {
|
|
4838
4860
|
r(x);
|
|
@@ -4843,7 +4865,7 @@ function Go(e) {
|
|
|
4843
4865
|
function f() {
|
|
4844
4866
|
var x, B;
|
|
4845
4867
|
const I = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.jsCode;
|
|
4846
|
-
I &&
|
|
4868
|
+
I && Ve({
|
|
4847
4869
|
code: I,
|
|
4848
4870
|
context: e.context || {},
|
|
4849
4871
|
localState: void 0,
|
|
@@ -4855,34 +4877,34 @@ function Go(e) {
|
|
|
4855
4877
|
enableCache: !1
|
|
4856
4878
|
});
|
|
4857
4879
|
}
|
|
4858
|
-
const [
|
|
4859
|
-
function
|
|
4880
|
+
const [m, b] = ye(() => ({})), [v, j] = ye(() => ({})), [D, U] = ye(() => !1);
|
|
4881
|
+
function R(I) {
|
|
4860
4882
|
var x, B;
|
|
4861
4883
|
if (e.builderContextSignal.content) {
|
|
4862
|
-
const
|
|
4884
|
+
const L = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, M = (B = e.builderContextSignal.content) == null ? void 0 : B.id;
|
|
4863
4885
|
Gn({
|
|
4864
4886
|
type: "click",
|
|
4865
4887
|
canTrack: vt(e.canTrack),
|
|
4866
4888
|
contentId: M,
|
|
4867
4889
|
apiKey: e.apiKey,
|
|
4868
|
-
variationId:
|
|
4869
|
-
...
|
|
4890
|
+
variationId: L !== M ? L : void 0,
|
|
4891
|
+
...Uo(I),
|
|
4870
4892
|
unique: !D
|
|
4871
4893
|
});
|
|
4872
4894
|
}
|
|
4873
|
-
D ||
|
|
4895
|
+
D || U(!0);
|
|
4874
4896
|
}
|
|
4875
|
-
function
|
|
4876
|
-
var x, B,
|
|
4877
|
-
const I = (
|
|
4897
|
+
function F() {
|
|
4898
|
+
var x, B, L;
|
|
4899
|
+
const I = (L = (B = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : B.httpRequests) != null ? L : {};
|
|
4878
4900
|
Object.entries(I).forEach(([M, J]) => {
|
|
4879
|
-
if (!J ||
|
|
4901
|
+
if (!J || v[M] || m[M] && !Ce())
|
|
4880
4902
|
return;
|
|
4881
|
-
|
|
4903
|
+
v[M] = !0;
|
|
4882
4904
|
const le = J.replace(
|
|
4883
4905
|
/{{([^}]+)}}/g,
|
|
4884
4906
|
(ce, lt) => String(
|
|
4885
|
-
|
|
4907
|
+
Ve({
|
|
4886
4908
|
code: lt,
|
|
4887
4909
|
context: e.context || {},
|
|
4888
4910
|
localState: void 0,
|
|
@@ -4895,15 +4917,15 @@ function Go(e) {
|
|
|
4895
4917
|
zr(le).then((ce) => ce.json()).then((ce) => {
|
|
4896
4918
|
n({
|
|
4897
4919
|
[M]: ce
|
|
4898
|
-
}),
|
|
4920
|
+
}), m[M] = !0;
|
|
4899
4921
|
}).catch((ce) => {
|
|
4900
4922
|
console.error("error fetching dynamic data", J, ce);
|
|
4901
4923
|
}).finally(() => {
|
|
4902
|
-
|
|
4924
|
+
v[M] = !1;
|
|
4903
4925
|
});
|
|
4904
4926
|
});
|
|
4905
4927
|
}
|
|
4906
|
-
function
|
|
4928
|
+
function P() {
|
|
4907
4929
|
Ce() && window.dispatchEvent(
|
|
4908
4930
|
new CustomEvent(
|
|
4909
4931
|
"builder:component:stateChange",
|
|
@@ -4918,8 +4940,8 @@ function Go(e) {
|
|
|
4918
4940
|
)
|
|
4919
4941
|
);
|
|
4920
4942
|
}
|
|
4921
|
-
function
|
|
4922
|
-
window.addEventListener("message",
|
|
4943
|
+
function y(I) {
|
|
4944
|
+
window.addEventListener("message", u), Yr(), Xr({
|
|
4923
4945
|
...e.locale ? {
|
|
4924
4946
|
locale: e.locale
|
|
4925
4947
|
} : {},
|
|
@@ -4932,19 +4954,19 @@ function Go(e) {
|
|
|
4932
4954
|
}), Object.values(
|
|
4933
4955
|
e.builderContextSignal.componentInfos
|
|
4934
4956
|
).forEach((x) => {
|
|
4935
|
-
var
|
|
4957
|
+
var L;
|
|
4936
4958
|
const B = Jr(x);
|
|
4937
|
-
(
|
|
4959
|
+
(L = window.parent) == null || L.postMessage(B, "*");
|
|
4938
4960
|
}), window.addEventListener(
|
|
4939
4961
|
"builder:component:stateChangeListenerActivated",
|
|
4940
|
-
|
|
4962
|
+
P
|
|
4941
4963
|
);
|
|
4942
4964
|
}
|
|
4943
|
-
function
|
|
4944
|
-
const x = new URL(location.href).searchParams, B = x.get("builder.preview"),
|
|
4965
|
+
function V(I) {
|
|
4966
|
+
const x = new URL(location.href).searchParams, B = x.get("builder.preview"), L = x.get(
|
|
4945
4967
|
`builder.overrides.${B}`
|
|
4946
4968
|
), M = x.get("apiKey") || x.get("builder.space");
|
|
4947
|
-
B === e.model && M === e.apiKey && (!e.content ||
|
|
4969
|
+
B === e.model && M === e.apiKey && (!e.content || L === e.content.id) && cr({
|
|
4948
4970
|
model: e.model,
|
|
4949
4971
|
apiKey: e.apiKey,
|
|
4950
4972
|
apiVersion: e.builderContextSignal.apiVersion
|
|
@@ -4953,95 +4975,95 @@ function Go(e) {
|
|
|
4953
4975
|
});
|
|
4954
4976
|
}
|
|
4955
4977
|
const G = Qr();
|
|
4956
|
-
return
|
|
4978
|
+
return Q(() => {
|
|
4957
4979
|
var I;
|
|
4958
4980
|
return (I = t.current) == null || I.addEventListener(
|
|
4959
4981
|
"initeditingbldr",
|
|
4960
|
-
|
|
4982
|
+
y
|
|
4961
4983
|
), () => {
|
|
4962
4984
|
var x;
|
|
4963
4985
|
return (x = t.current) == null ? void 0 : x.removeEventListener(
|
|
4964
4986
|
"initeditingbldr",
|
|
4965
|
-
|
|
4987
|
+
y
|
|
4966
4988
|
);
|
|
4967
4989
|
};
|
|
4968
|
-
}, []),
|
|
4990
|
+
}, []), Q(() => {
|
|
4969
4991
|
var I;
|
|
4970
4992
|
return (I = t.current) == null || I.addEventListener(
|
|
4971
4993
|
"initpreviewingbldr",
|
|
4972
|
-
|
|
4994
|
+
V
|
|
4973
4995
|
), () => {
|
|
4974
4996
|
var x;
|
|
4975
4997
|
return (x = t.current) == null ? void 0 : x.removeEventListener(
|
|
4976
4998
|
"initpreviewingbldr",
|
|
4977
|
-
|
|
4999
|
+
V
|
|
4978
5000
|
);
|
|
4979
5001
|
};
|
|
4980
|
-
}, []),
|
|
5002
|
+
}, []), Q(() => {
|
|
4981
5003
|
var I, x;
|
|
4982
|
-
if (
|
|
5004
|
+
if (We()) {
|
|
4983
5005
|
if (Ce() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && vt(e.canTrack)) {
|
|
4984
|
-
const
|
|
5006
|
+
const L = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, M = (x = e.builderContextSignal.content) == null ? void 0 : x.id, J = e.apiKey;
|
|
4985
5007
|
Gn({
|
|
4986
5008
|
type: "impression",
|
|
4987
5009
|
canTrack: !0,
|
|
4988
5010
|
contentId: M,
|
|
4989
5011
|
apiKey: J,
|
|
4990
|
-
variationId:
|
|
5012
|
+
variationId: L !== M ? L : void 0
|
|
4991
5013
|
});
|
|
4992
5014
|
}
|
|
4993
|
-
|
|
5015
|
+
lr() && Ce();
|
|
4994
5016
|
}
|
|
4995
|
-
}, []),
|
|
5017
|
+
}, []), Q(() => {
|
|
4996
5018
|
e.apiKey || ot.error(
|
|
4997
5019
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4998
|
-
), f(),
|
|
4999
|
-
}, []),
|
|
5000
|
-
}, [e.content]),
|
|
5020
|
+
), f(), F(), P();
|
|
5021
|
+
}, []), Q(() => {
|
|
5022
|
+
}, [e.content]), Q(() => {
|
|
5001
5023
|
f();
|
|
5002
|
-
}, [($ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : $.jsCode]),
|
|
5003
|
-
|
|
5004
|
-
}, [(E = (
|
|
5005
|
-
|
|
5006
|
-
}, [e.builderContextSignal.rootState]),
|
|
5024
|
+
}, [($ = (oe = e.builderContextSignal.content) == null ? void 0 : oe.data) == null ? void 0 : $.jsCode]), Q(() => {
|
|
5025
|
+
F();
|
|
5026
|
+
}, [(E = (ee = e.builderContextSignal.content) == null ? void 0 : ee.data) == null ? void 0 : E.httpRequests]), Q(() => {
|
|
5027
|
+
P();
|
|
5028
|
+
}, [e.builderContextSignal.rootState]), Q(() => {
|
|
5007
5029
|
e.data && n(e.data);
|
|
5008
|
-
}, [e.data]),
|
|
5030
|
+
}, [e.data]), Q(() => {
|
|
5009
5031
|
e.locale && n({
|
|
5010
5032
|
locale: e.locale
|
|
5011
5033
|
});
|
|
5012
|
-
}, [e.locale]),
|
|
5013
|
-
|
|
5034
|
+
}, [e.locale]), Q(() => () => {
|
|
5035
|
+
We() && (window.removeEventListener("message", u), window.removeEventListener(
|
|
5014
5036
|
"builder:component:stateChangeListenerActivated",
|
|
5015
|
-
|
|
5037
|
+
P
|
|
5016
5038
|
));
|
|
5017
|
-
}, []), /* @__PURE__ */
|
|
5039
|
+
}, []), /* @__PURE__ */ g(Do.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ g(
|
|
5018
5040
|
a,
|
|
5019
5041
|
{
|
|
5020
5042
|
ref: t,
|
|
5021
|
-
onClick: (I) =>
|
|
5043
|
+
onClick: (I) => R(I),
|
|
5022
5044
|
"builder-content-id": (Ee = e.builderContextSignal.content) == null ? void 0 : Ee.id,
|
|
5023
5045
|
"builder-model": e.model,
|
|
5024
5046
|
...i(),
|
|
5025
5047
|
...e.contentWrapperProps,
|
|
5026
|
-
className:
|
|
5027
|
-
((
|
|
5048
|
+
className: Jo(
|
|
5049
|
+
((_ = e.content) == null ? void 0 : _.testVariationId) || ((Ie = e.content) == null ? void 0 : Ie.id)
|
|
5028
5050
|
),
|
|
5029
5051
|
children: e.children
|
|
5030
5052
|
}
|
|
5031
5053
|
) : null });
|
|
5032
5054
|
}
|
|
5033
|
-
function
|
|
5055
|
+
function Zo(e) {
|
|
5034
5056
|
const t = `
|
|
5035
|
-
${
|
|
5057
|
+
${zo({
|
|
5036
5058
|
cssCode: e.cssCode,
|
|
5037
5059
|
contentId: e.contentId
|
|
5038
5060
|
})}
|
|
5039
|
-
${
|
|
5061
|
+
${Go({
|
|
5040
5062
|
customFonts: e.customFonts
|
|
5041
5063
|
})}
|
|
5042
|
-
${
|
|
5064
|
+
${Xo(e.isNestedRender)}
|
|
5043
5065
|
`.trim();
|
|
5044
|
-
return /* @__PURE__ */
|
|
5066
|
+
return /* @__PURE__ */ g(
|
|
5045
5067
|
kt,
|
|
5046
5068
|
{
|
|
5047
5069
|
id: "builderio-content",
|
|
@@ -5050,14 +5072,14 @@ ${Ho(e.isNestedRender)}
|
|
|
5050
5072
|
}
|
|
5051
5073
|
);
|
|
5052
5074
|
}
|
|
5053
|
-
const
|
|
5075
|
+
const Qo = ({
|
|
5054
5076
|
content: e,
|
|
5055
5077
|
data: t,
|
|
5056
5078
|
locale: n
|
|
5057
5079
|
}) => {
|
|
5058
|
-
var a, s,
|
|
5080
|
+
var a, s, u;
|
|
5059
5081
|
const r = {}, i = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
|
|
5060
|
-
return (
|
|
5082
|
+
return (u = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || u.forEach((f) => {
|
|
5061
5083
|
f.name && f.defaultValue !== void 0 && (r[f.name] = f.defaultValue);
|
|
5062
5084
|
}), {
|
|
5063
5085
|
...r,
|
|
@@ -5067,7 +5089,7 @@ const Yo = ({
|
|
|
5067
5089
|
locale: n
|
|
5068
5090
|
} : {}
|
|
5069
5091
|
};
|
|
5070
|
-
},
|
|
5092
|
+
}, ea = ({
|
|
5071
5093
|
content: e,
|
|
5072
5094
|
data: t
|
|
5073
5095
|
}) => e ? {
|
|
@@ -5079,31 +5101,31 @@ const Yo = ({
|
|
|
5079
5101
|
meta: e == null ? void 0 : e.meta
|
|
5080
5102
|
} : void 0;
|
|
5081
5103
|
function sr(e) {
|
|
5082
|
-
var i, a, s,
|
|
5083
|
-
const t =
|
|
5104
|
+
var i, a, s, u, f, m, b, v, j, D, U;
|
|
5105
|
+
const t = Mo({
|
|
5084
5106
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5085
5107
|
variationId: (i = e.content) == null ? void 0 : i.testVariationId,
|
|
5086
5108
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5087
5109
|
contentId: (a = e.content) == null ? void 0 : a.id
|
|
5088
5110
|
}), n = [
|
|
5089
5111
|
...rr(),
|
|
5090
|
-
...((s = e.customComponents) == null ? void 0 : s.filter(({ models:
|
|
5112
|
+
...((s = e.customComponents) == null ? void 0 : s.filter(({ models: R }) => !(R != null && R.length) || !e.model ? !0 : R.includes(e.model))) || []
|
|
5091
5113
|
].reduce(
|
|
5092
|
-
(
|
|
5093
|
-
...
|
|
5094
|
-
[
|
|
5095
|
-
component:
|
|
5096
|
-
...zn(
|
|
5114
|
+
(R, { component: F, ...P }) => ({
|
|
5115
|
+
...R,
|
|
5116
|
+
[P.name]: {
|
|
5117
|
+
component: F,
|
|
5118
|
+
...zn(P)
|
|
5097
5119
|
}
|
|
5098
5120
|
}),
|
|
5099
5121
|
{}
|
|
5100
5122
|
), r = {
|
|
5101
|
-
content:
|
|
5123
|
+
content: ea({
|
|
5102
5124
|
content: e.content,
|
|
5103
5125
|
data: e.data
|
|
5104
5126
|
}),
|
|
5105
5127
|
localState: void 0,
|
|
5106
|
-
rootState:
|
|
5128
|
+
rootState: Qo({
|
|
5107
5129
|
content: e.content,
|
|
5108
5130
|
data: e.data,
|
|
5109
5131
|
locale: e.locale
|
|
@@ -5115,11 +5137,11 @@ function sr(e) {
|
|
|
5115
5137
|
apiVersion: e.apiVersion,
|
|
5116
5138
|
componentInfos: [
|
|
5117
5139
|
...rr(),
|
|
5118
|
-
...((
|
|
5140
|
+
...((u = e.customComponents) == null ? void 0 : u.filter(({ models: R }) => !(R != null && R.length) || !e.model ? !0 : R.includes(e.model))) || []
|
|
5119
5141
|
].reduce(
|
|
5120
|
-
(
|
|
5121
|
-
...
|
|
5122
|
-
[
|
|
5142
|
+
(R, { component: F, ...P }) => ({
|
|
5143
|
+
...R,
|
|
5144
|
+
[P.name]: zn(P)
|
|
5123
5145
|
}),
|
|
5124
5146
|
{}
|
|
5125
5147
|
),
|
|
@@ -5129,7 +5151,7 @@ function sr(e) {
|
|
|
5129
5151
|
nonce: e.nonce || ""
|
|
5130
5152
|
};
|
|
5131
5153
|
return /* @__PURE__ */ se(
|
|
5132
|
-
|
|
5154
|
+
qo,
|
|
5133
5155
|
{
|
|
5134
5156
|
nonce: e.nonce,
|
|
5135
5157
|
content: e.content,
|
|
@@ -5146,28 +5168,28 @@ function sr(e) {
|
|
|
5146
5168
|
contentWrapperProps: e.contentWrapperProps,
|
|
5147
5169
|
trustedHosts: e.trustedHosts,
|
|
5148
5170
|
children: [
|
|
5149
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
5150
|
-
|
|
5171
|
+
e.isSsrAbTest ? /* @__PURE__ */ g(
|
|
5172
|
+
Zt,
|
|
5151
5173
|
{
|
|
5152
5174
|
id: "builderio-variant-visibility",
|
|
5153
5175
|
scriptStr: t,
|
|
5154
5176
|
nonce: e.nonce || ""
|
|
5155
5177
|
}
|
|
5156
5178
|
) : null,
|
|
5157
|
-
/* @__PURE__ */
|
|
5158
|
-
|
|
5179
|
+
/* @__PURE__ */ g(
|
|
5180
|
+
Zo,
|
|
5159
5181
|
{
|
|
5160
5182
|
nonce: e.nonce || "",
|
|
5161
5183
|
isNestedRender: e.isNestedRender,
|
|
5162
5184
|
contentId: (f = r.content) == null ? void 0 : f.id,
|
|
5163
|
-
cssCode: (b = (
|
|
5164
|
-
customFonts: (j = (
|
|
5185
|
+
cssCode: (b = (m = r.content) == null ? void 0 : m.data) == null ? void 0 : b.cssCode,
|
|
5186
|
+
customFonts: (j = (v = r.content) == null ? void 0 : v.data) == null ? void 0 : j.customFonts
|
|
5165
5187
|
}
|
|
5166
5188
|
),
|
|
5167
|
-
/* @__PURE__ */
|
|
5189
|
+
/* @__PURE__ */ g(
|
|
5168
5190
|
mn,
|
|
5169
5191
|
{
|
|
5170
|
-
blocks: (
|
|
5192
|
+
blocks: (U = (D = r.content) == null ? void 0 : D.data) == null ? void 0 : U.blocks,
|
|
5171
5193
|
context: r,
|
|
5172
5194
|
registeredComponents: n,
|
|
5173
5195
|
linkComponent: e.linkComponent
|
|
@@ -5177,43 +5199,43 @@ function sr(e) {
|
|
|
5177
5199
|
}
|
|
5178
5200
|
);
|
|
5179
5201
|
}
|
|
5180
|
-
function
|
|
5202
|
+
function ta(e) {
|
|
5181
5203
|
var a;
|
|
5182
|
-
const t =
|
|
5204
|
+
const t = Oo({
|
|
5183
5205
|
canTrack: vt(e.canTrack),
|
|
5184
5206
|
content: e.content
|
|
5185
5207
|
}), n = function() {
|
|
5186
|
-
var
|
|
5187
|
-
return
|
|
5208
|
+
var u;
|
|
5209
|
+
return Bo(
|
|
5188
5210
|
gt(e.content).map((f) => ({
|
|
5189
5211
|
id: f.testVariationId,
|
|
5190
5212
|
testRatio: f.testRatio
|
|
5191
5213
|
})),
|
|
5192
|
-
((
|
|
5214
|
+
((u = e.content) == null ? void 0 : u.id) || ""
|
|
5193
5215
|
);
|
|
5194
5216
|
}, r = function() {
|
|
5195
|
-
return gt(e.content).map((
|
|
5217
|
+
return gt(e.content).map((u) => `.variant-${u.testVariationId} { display: none; } `).join("");
|
|
5196
5218
|
}, i = function() {
|
|
5197
|
-
var
|
|
5219
|
+
var u;
|
|
5198
5220
|
return t ? {
|
|
5199
5221
|
...e.content,
|
|
5200
|
-
testVariationId: (
|
|
5222
|
+
testVariationId: (u = e.content) == null ? void 0 : u.id
|
|
5201
5223
|
} : qr({
|
|
5202
5224
|
item: e.content,
|
|
5203
5225
|
canTrack: vt(e.canTrack)
|
|
5204
5226
|
});
|
|
5205
5227
|
};
|
|
5206
5228
|
return /* @__PURE__ */ se(K, { children: [
|
|
5207
|
-
!e.isNestedRender &&
|
|
5208
|
-
|
|
5229
|
+
!e.isNestedRender && je !== "reactNative" ? /* @__PURE__ */ g(
|
|
5230
|
+
Zt,
|
|
5209
5231
|
{
|
|
5210
5232
|
id: "builderio-init-variants-fns",
|
|
5211
|
-
scriptStr:
|
|
5233
|
+
scriptStr: No(),
|
|
5212
5234
|
nonce: e.nonce || ""
|
|
5213
5235
|
}
|
|
5214
5236
|
) : null,
|
|
5215
5237
|
t ? /* @__PURE__ */ se(K, { children: [
|
|
5216
|
-
/* @__PURE__ */
|
|
5238
|
+
/* @__PURE__ */ g(
|
|
5217
5239
|
kt,
|
|
5218
5240
|
{
|
|
5219
5241
|
id: "builderio-variants",
|
|
@@ -5221,15 +5243,15 @@ function Jo(e) {
|
|
|
5221
5243
|
nonce: e.nonce || ""
|
|
5222
5244
|
}
|
|
5223
5245
|
),
|
|
5224
|
-
/* @__PURE__ */
|
|
5225
|
-
|
|
5246
|
+
/* @__PURE__ */ g(
|
|
5247
|
+
Zt,
|
|
5226
5248
|
{
|
|
5227
5249
|
id: "builderio-variants-visibility",
|
|
5228
5250
|
scriptStr: n(),
|
|
5229
5251
|
nonce: e.nonce || ""
|
|
5230
5252
|
}
|
|
5231
5253
|
),
|
|
5232
|
-
(a = gt(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */
|
|
5254
|
+
(a = gt(e.content)) == null ? void 0 : a.map((s) => /* @__PURE__ */ g(
|
|
5233
5255
|
sr,
|
|
5234
5256
|
{
|
|
5235
5257
|
isNestedRender: e.isNestedRender,
|
|
@@ -5256,7 +5278,7 @@ function Jo(e) {
|
|
|
5256
5278
|
s.testVariationId
|
|
5257
5279
|
))
|
|
5258
5280
|
] }) : null,
|
|
5259
|
-
/* @__PURE__ */
|
|
5281
|
+
/* @__PURE__ */ g(
|
|
5260
5282
|
sr,
|
|
5261
5283
|
{
|
|
5262
5284
|
nonce: e.nonce,
|
|
@@ -5283,13 +5305,13 @@ function Jo(e) {
|
|
|
5283
5305
|
)
|
|
5284
5306
|
] });
|
|
5285
5307
|
}
|
|
5286
|
-
const
|
|
5308
|
+
const na = async ({
|
|
5287
5309
|
builderContextValue: e,
|
|
5288
5310
|
symbol: t
|
|
5289
5311
|
}) => {
|
|
5290
5312
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5291
5313
|
(e != null && e.apiKey))
|
|
5292
|
-
return
|
|
5314
|
+
return cr({
|
|
5293
5315
|
model: t.model,
|
|
5294
5316
|
apiKey: e.apiKey,
|
|
5295
5317
|
apiVersion: e.apiVersion,
|
|
@@ -5302,26 +5324,26 @@ const qo = async ({
|
|
|
5302
5324
|
ot.error("Could not fetch symbol content: ", n);
|
|
5303
5325
|
});
|
|
5304
5326
|
};
|
|
5305
|
-
async function
|
|
5306
|
-
var a, s,
|
|
5327
|
+
async function ra(e) {
|
|
5328
|
+
var a, s, u, f, m;
|
|
5307
5329
|
const t = function() {
|
|
5308
5330
|
return "div";
|
|
5309
5331
|
}, n = function() {
|
|
5310
5332
|
return "div";
|
|
5311
5333
|
}, r = function() {
|
|
5312
|
-
var
|
|
5334
|
+
var v, j;
|
|
5313
5335
|
return [
|
|
5314
5336
|
e.attributes[nt()],
|
|
5315
5337
|
"builder-symbol",
|
|
5316
|
-
(
|
|
5338
|
+
(v = e.symbol) != null && v.inline ? "builder-inline-symbol" : void 0,
|
|
5317
5339
|
(j = e.symbol) != null && j.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5318
5340
|
].filter(Boolean).join(" ");
|
|
5319
|
-
}, i = ((a = e.symbol) == null ? void 0 : a.content) || await
|
|
5341
|
+
}, i = ((a = e.symbol) == null ? void 0 : a.content) || await na({
|
|
5320
5342
|
symbol: e.symbol,
|
|
5321
5343
|
builderContextValue: e.builderContext
|
|
5322
5344
|
});
|
|
5323
|
-
return /* @__PURE__ */
|
|
5324
|
-
|
|
5345
|
+
return /* @__PURE__ */ g("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ g(
|
|
5346
|
+
ta,
|
|
5325
5347
|
{
|
|
5326
5348
|
nonce: e.builderContext.nonce,
|
|
5327
5349
|
isNestedRender: !0,
|
|
@@ -5333,12 +5355,12 @@ async function Zo(e) {
|
|
|
5333
5355
|
},
|
|
5334
5356
|
customComponents: Object.values(e.builderComponents),
|
|
5335
5357
|
data: {
|
|
5336
|
-
...(
|
|
5358
|
+
...(u = e.symbol) == null ? void 0 : u.data,
|
|
5337
5359
|
...e.builderContext.localState,
|
|
5338
5360
|
...(f = i == null ? void 0 : i.data) == null ? void 0 : f.state
|
|
5339
5361
|
},
|
|
5340
5362
|
canTrack: e.builderContext.canTrack,
|
|
5341
|
-
model: (
|
|
5363
|
+
model: (m = e.symbol) == null ? void 0 : m.model,
|
|
5342
5364
|
content: i,
|
|
5343
5365
|
linkComponent: e.builderLinkComponent,
|
|
5344
5366
|
blocksWrapper: t(),
|
|
@@ -5348,14 +5370,14 @@ async function Zo(e) {
|
|
|
5348
5370
|
}
|
|
5349
5371
|
export {
|
|
5350
5372
|
mn as Blocks,
|
|
5351
|
-
|
|
5373
|
+
Do as BuilderContext,
|
|
5352
5374
|
ni as Button,
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5375
|
+
to as Columns,
|
|
5376
|
+
ta as Content,
|
|
5377
|
+
no as Fragment,
|
|
5378
|
+
oo as Image,
|
|
5379
|
+
ao as Section,
|
|
5380
|
+
ra as Symbol,
|
|
5381
|
+
yo as Text,
|
|
5382
|
+
To as Video
|
|
5361
5383
|
};
|