@builder.io/sdk-react 0.12.7 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/index.cjs +27 -27
- package/lib/browser/index.mjs +471 -566
- package/lib/browser/server-entry-a7214151.js +690 -0
- package/lib/browser/server-entry-f1003541.cjs +2 -0
- package/lib/browser/server-entry.cjs +1 -1
- package/lib/browser/server-entry.mjs +4 -3
- package/lib/edge/index.cjs +31 -31
- package/lib/edge/index.mjs +818 -913
- package/lib/edge/server-entry-12a6f428.js +690 -0
- package/lib/edge/server-entry-f1003541.cjs +2 -0
- package/lib/edge/server-entry.cjs +1 -1
- package/lib/edge/server-entry.mjs +4 -3
- package/lib/node/index.cjs +10 -10
- package/lib/node/index.mjs +227 -322
- package/lib/node/server-entry-3743f8cd.cjs +2 -0
- package/lib/node/server-entry-3f9209d6.js +690 -0
- package/lib/node/server-entry.cjs +1 -1
- package/lib/node/server-entry.mjs +4 -3
- package/package.json +1 -1
- package/types/components/content-variants/helpers.d.ts +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
- package/types/functions/get-content/types.d.ts +2 -2
- package/types/helpers/subscribe-to-editor.d.ts +35 -0
- package/types/server-index.d.ts +18 -3
- package/types/types/api-version.d.ts +1 -1
- package/lib/browser/server-entry-b9bdd327.js +0 -551
- package/lib/browser/server-entry-fc715776.cjs +0 -2
- package/lib/edge/server-entry-57d4ae22.js +0 -551
- package/lib/edge/server-entry-fc715776.cjs +0 -2
- package/lib/node/server-entry-0457c4c8.js +0 -551
- package/lib/node/server-entry-bcb725be.cjs +0 -2
package/lib/edge/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { T as
|
|
5
|
-
import { _ as
|
|
2
|
+
import { jsx as p, Fragment as M, jsxs as ce } from "react/jsx-runtime";
|
|
3
|
+
import { createContext as ur, useState as V, useEffect as J, useContext as zn, useRef as Zt, createElement as zr } from "react";
|
|
4
|
+
import { T as ot, i as Ae, k as Ue, l as Xr, m as Re, n as gt, o as Qt, p as yt, q as Xn, a as Yr, u as Jr, v as qr, w as Zr, c as Qr, e as dr, x as ei, y as Yn, z as Jn, A as ti } from "./server-entry-12a6f428.js";
|
|
5
|
+
import { _ as Zo, f as Qo, d as ea, h as ta, g as na, j as ra, r as ia, s as oa, b as aa, t as sa } from "./server-entry-12a6f428.js";
|
|
6
6
|
const ni = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ri = (e) => typeof e == "string" && ni.has(e.toLowerCase());
|
|
7
7
|
function en(e) {
|
|
8
|
-
return /* @__PURE__ */
|
|
8
|
+
return /* @__PURE__ */ p(M, { children: ri(e.TagName) ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ p(M, { children: typeof e.TagName == "string" ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
|
|
9
9
|
}
|
|
10
|
-
const
|
|
11
|
-
switch (
|
|
10
|
+
const tt = () => {
|
|
11
|
+
switch (ot) {
|
|
12
12
|
case "react":
|
|
13
13
|
case "reactNative":
|
|
14
14
|
case "rsc":
|
|
@@ -21,13 +21,13 @@ const nt = () => {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
function ii(e) {
|
|
24
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ p(
|
|
25
25
|
en,
|
|
26
26
|
{
|
|
27
27
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
28
28
|
attributes: {
|
|
29
29
|
...e.attributes,
|
|
30
|
-
[
|
|
30
|
+
[tt()]: `${e.link ? "" : "builder-button"} ${e.attributes[tt()] || ""}`,
|
|
31
31
|
...e.link ? {
|
|
32
32
|
href: e.link,
|
|
33
33
|
target: e.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -41,7 +41,7 @@ function ii(e) {
|
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
}
|
|
44
|
-
const tn =
|
|
44
|
+
const tn = ur({
|
|
45
45
|
content: null,
|
|
46
46
|
context: {},
|
|
47
47
|
localState: void 0,
|
|
@@ -54,7 +54,7 @@ const tn = dr({
|
|
|
54
54
|
inheritedStyles: {},
|
|
55
55
|
BlocksWrapper: "div",
|
|
56
56
|
BlocksWrapperProps: {}
|
|
57
|
-
}),
|
|
57
|
+
}), fr = ur({ registeredComponents: {} });
|
|
58
58
|
function oi(e) {
|
|
59
59
|
var t;
|
|
60
60
|
return {
|
|
@@ -66,7 +66,7 @@ function oi(e) {
|
|
|
66
66
|
builderBlock: e
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const hr = ({
|
|
70
70
|
builder: e,
|
|
71
71
|
context: t,
|
|
72
72
|
event: n,
|
|
@@ -80,9 +80,9 @@ const pr = ({
|
|
|
80
80
|
event: n
|
|
81
81
|
}), ai = () => ({
|
|
82
82
|
isEditing: Ae(),
|
|
83
|
-
isBrowser:
|
|
84
|
-
isServer: !
|
|
85
|
-
getUserAttributes: () =>
|
|
83
|
+
isBrowser: Ue(),
|
|
84
|
+
isServer: !Ue(),
|
|
85
|
+
getUserAttributes: () => Xr()
|
|
86
86
|
}), si = (e, {
|
|
87
87
|
isExpression: t = !0
|
|
88
88
|
}) => /* 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, li = ({
|
|
@@ -94,11 +94,11 @@ const pr = ({
|
|
|
94
94
|
rootSetState: a,
|
|
95
95
|
rootState: s
|
|
96
96
|
}) => {
|
|
97
|
-
const c =
|
|
97
|
+
const c = hr({
|
|
98
98
|
builder: t,
|
|
99
99
|
context: n,
|
|
100
100
|
event: r,
|
|
101
|
-
state:
|
|
101
|
+
state: pr({
|
|
102
102
|
rootState: s,
|
|
103
103
|
localState: i,
|
|
104
104
|
rootSetState: a
|
|
@@ -106,7 +106,7 @@ const pr = ({
|
|
|
106
106
|
});
|
|
107
107
|
return new Function(...c.map(([f]) => f), e)(...c.map(([, f]) => f));
|
|
108
108
|
};
|
|
109
|
-
function
|
|
109
|
+
function pr({
|
|
110
110
|
rootState: e,
|
|
111
111
|
localState: t,
|
|
112
112
|
rootSetState: n
|
|
@@ -116,7 +116,7 @@ function mr({
|
|
|
116
116
|
if (t && i in t)
|
|
117
117
|
return t[i];
|
|
118
118
|
const a = r[i];
|
|
119
|
-
return typeof a == "object" ?
|
|
119
|
+
return typeof a == "object" ? pr({
|
|
120
120
|
rootState: a,
|
|
121
121
|
localState: void 0,
|
|
122
122
|
rootSetState: n ? (s) => {
|
|
@@ -131,25 +131,25 @@ function mr({
|
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
const
|
|
134
|
+
const mr = (e, t, n) => {
|
|
135
135
|
if (Object(e) !== e)
|
|
136
136
|
return e;
|
|
137
137
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
138
138
|
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;
|
|
139
139
|
};
|
|
140
|
-
var
|
|
140
|
+
var F, ci = function(e) {
|
|
141
141
|
function t(o) {
|
|
142
|
-
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o &&
|
|
142
|
+
return 48 > o ? o === 36 : 58 > o ? !0 : 65 > o ? !1 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Kr.test(String.fromCharCode(o));
|
|
143
143
|
}
|
|
144
144
|
function n(o) {
|
|
145
145
|
return 65 > o ? o === 36 : 91 > o ? !0 : 97 > o ? o === 95 : 123 > o ? !0 : 170 <= o && Gn.test(String.fromCharCode(o));
|
|
146
146
|
}
|
|
147
147
|
function r(o, l) {
|
|
148
|
-
for (var u =
|
|
148
|
+
for (var u = b, h = 1, R = 0; ; ) {
|
|
149
149
|
pt.lastIndex = R;
|
|
150
|
-
var
|
|
151
|
-
if (
|
|
152
|
-
++h, R =
|
|
150
|
+
var Y = pt.exec(u);
|
|
151
|
+
if (Y && Y.index < o)
|
|
152
|
+
++h, R = Y.index + Y[0].length;
|
|
153
153
|
else
|
|
154
154
|
break;
|
|
155
155
|
}
|
|
@@ -170,48 +170,48 @@ var L, ci = function(e) {
|
|
|
170
170
|
this.line = Ie, this.ab = d - he;
|
|
171
171
|
}
|
|
172
172
|
function s(o, l) {
|
|
173
|
-
|
|
173
|
+
Pe = d, P.C && (Ot = new a()), j = o, f(), le = l, $e = o.m;
|
|
174
174
|
}
|
|
175
175
|
function c() {
|
|
176
|
-
for (var o = d, l =
|
|
177
|
-
++d, u =
|
|
178
|
-
|
|
176
|
+
for (var o = d, l = P.va && P.C && new a(), u = b.charCodeAt(d += 2); d < Oe && u !== 10 && u !== 13 && u !== 8232 && u !== 8233; )
|
|
177
|
+
++d, u = b.charCodeAt(d);
|
|
178
|
+
P.va && P.va(!1, b.slice(o + 2, d), o, d, l, P.C && new a());
|
|
179
179
|
}
|
|
180
180
|
function f() {
|
|
181
|
-
for (; d <
|
|
182
|
-
var o =
|
|
181
|
+
for (; d < Oe; ) {
|
|
182
|
+
var o = b.charCodeAt(d);
|
|
183
183
|
if (o === 32)
|
|
184
184
|
++d;
|
|
185
185
|
else if (o === 13)
|
|
186
|
-
++d, o =
|
|
186
|
+
++d, o = b.charCodeAt(d), o === 10 && ++d, P.C && (++Ie, he = d);
|
|
187
187
|
else if (o === 10 || o === 8232 || o === 8233)
|
|
188
|
-
++d,
|
|
188
|
+
++d, P.C && (++Ie, he = d);
|
|
189
189
|
else if (8 < o && 14 > o)
|
|
190
190
|
++d;
|
|
191
191
|
else if (o === 47)
|
|
192
|
-
if (o =
|
|
192
|
+
if (o = b.charCodeAt(d + 1), o === 42) {
|
|
193
193
|
o = void 0;
|
|
194
|
-
var l =
|
|
195
|
-
if (h === -1 && r(d - 2, "Unterminated comment"), d = h + 2,
|
|
196
|
-
for (pt.lastIndex = u; (o = pt.exec(
|
|
194
|
+
var l = P.va && P.C && new a(), u = d, h = b.indexOf("*/", d += 2);
|
|
195
|
+
if (h === -1 && r(d - 2, "Unterminated comment"), d = h + 2, P.C)
|
|
196
|
+
for (pt.lastIndex = u; (o = pt.exec(b)) && o.index < d; )
|
|
197
197
|
++Ie, he = o.index + o[0].length;
|
|
198
|
-
|
|
198
|
+
P.va && P.va(!0, b.slice(u + 2, h), u, d, l, P.C && new a());
|
|
199
199
|
} else if (o === 47)
|
|
200
200
|
c();
|
|
201
201
|
else
|
|
202
202
|
break;
|
|
203
203
|
else if (o === 160)
|
|
204
204
|
++d;
|
|
205
|
-
else if (5760 <= o &&
|
|
205
|
+
else if (5760 <= o && Hr.test(String.fromCharCode(o)))
|
|
206
206
|
++d;
|
|
207
207
|
else
|
|
208
208
|
break;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function m(o) {
|
|
212
212
|
switch (o) {
|
|
213
213
|
case 46:
|
|
214
|
-
o =
|
|
214
|
+
o = b.charCodeAt(d + 1), 48 <= o && 57 >= o ? E(!0) : (++d, s(Un));
|
|
215
215
|
return;
|
|
216
216
|
case 40:
|
|
217
217
|
return ++d, s(pe);
|
|
@@ -226,16 +226,16 @@ var L, ci = function(e) {
|
|
|
226
226
|
case 93:
|
|
227
227
|
return ++d, s(Vt);
|
|
228
228
|
case 123:
|
|
229
|
-
return ++d, s(
|
|
229
|
+
return ++d, s(Ge);
|
|
230
230
|
case 125:
|
|
231
|
-
return ++d, s(
|
|
231
|
+
return ++d, s(Be);
|
|
232
232
|
case 58:
|
|
233
|
-
return ++d, s(
|
|
233
|
+
return ++d, s(ze);
|
|
234
234
|
case 63:
|
|
235
235
|
return ++d, s(Ln);
|
|
236
236
|
case 48:
|
|
237
|
-
if (o =
|
|
238
|
-
d += 2, o =
|
|
237
|
+
if (o = b.charCodeAt(d + 1), o === 120 || o === 88) {
|
|
238
|
+
d += 2, o = N(16), o === null && r(z + 2, "Expected hexadecimal number"), n(b.charCodeAt(d)) && r(d, "Identifier directly after number"), s(Ke, o);
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
241
|
case 49:
|
|
@@ -252,15 +252,15 @@ var L, ci = function(e) {
|
|
|
252
252
|
case 39:
|
|
253
253
|
d++;
|
|
254
254
|
for (var l = ""; ; ) {
|
|
255
|
-
d >=
|
|
256
|
-
var u =
|
|
255
|
+
d >= Oe && r(z, "Unterminated string constant");
|
|
256
|
+
var u = b.charCodeAt(d);
|
|
257
257
|
if (u === o) {
|
|
258
258
|
++d, s(ut, l);
|
|
259
259
|
break;
|
|
260
260
|
}
|
|
261
261
|
if (u === 92) {
|
|
262
|
-
u =
|
|
263
|
-
var h = /^[0-7]+/.exec(
|
|
262
|
+
u = b.charCodeAt(++d);
|
|
263
|
+
var h = /^[0-7]+/.exec(b.slice(d, d + 3));
|
|
264
264
|
for (h && (h = h[0]); h && 255 < parseInt(h, 8); )
|
|
265
265
|
h = h.slice(0, -1);
|
|
266
266
|
if (h === "0" && (h = null), ++d, h)
|
|
@@ -299,69 +299,69 @@ var L, ci = function(e) {
|
|
|
299
299
|
l += "\0";
|
|
300
300
|
break;
|
|
301
301
|
case 13:
|
|
302
|
-
|
|
302
|
+
b.charCodeAt(d) === 10 && ++d;
|
|
303
303
|
case 10:
|
|
304
|
-
|
|
304
|
+
P.C && (he = d, ++Ie);
|
|
305
305
|
break;
|
|
306
306
|
default:
|
|
307
307
|
l += String.fromCharCode(u);
|
|
308
308
|
}
|
|
309
309
|
} else
|
|
310
|
-
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || r(
|
|
310
|
+
u !== 13 && u !== 10 && u !== 8232 && u !== 8233 || r(z, "Unterminated string constant"), l += String.fromCharCode(u), ++d;
|
|
311
311
|
}
|
|
312
312
|
return;
|
|
313
313
|
case 47:
|
|
314
|
-
o =
|
|
314
|
+
o = b.charCodeAt(d + 1), $e ? (++d, U()) : o === 61 ? x(Te, 2) : x(_n, 1);
|
|
315
315
|
return;
|
|
316
316
|
case 37:
|
|
317
317
|
case 42:
|
|
318
|
-
|
|
318
|
+
b.charCodeAt(d + 1) === 61 ? x(Te, 2) : x(Wr, 1);
|
|
319
319
|
return;
|
|
320
320
|
case 124:
|
|
321
321
|
case 38:
|
|
322
|
-
l =
|
|
322
|
+
l = b.charCodeAt(d + 1), l === o ? x(o === 124 ? $n : Hn, 2) : l === 61 ? x(Te, 2) : x(o === 124 ? Br : Dr, 1);
|
|
323
323
|
return;
|
|
324
324
|
case 94:
|
|
325
|
-
|
|
325
|
+
b.charCodeAt(d + 1) === 61 ? x(Te, 2) : x(Mr, 1);
|
|
326
326
|
return;
|
|
327
327
|
case 43:
|
|
328
328
|
case 45:
|
|
329
|
-
l =
|
|
329
|
+
l = b.charCodeAt(d + 1), l === o ? l === 45 && b.charCodeAt(d + 2) === 62 && ht.test(b.slice(Se, d)) ? (d += 3, c(), f(), y()) : x(Nr, 2) : l === 61 ? x(Te, 2) : x(_r, 1);
|
|
330
330
|
return;
|
|
331
331
|
case 60:
|
|
332
332
|
case 62:
|
|
333
|
-
l =
|
|
333
|
+
l = b.charCodeAt(d + 1), u = 1, l === o ? (u = o === 62 && b.charCodeAt(d + 2) === 62 ? 3 : 2, b.charCodeAt(d + u) === 61 ? x(Te, u + 1) : x(Lr, u)) : l === 33 && o === 60 && b.charCodeAt(d + 2) === 45 && b.charCodeAt(d + 3) === 45 ? (d += 4, c(), f(), y()) : (l === 61 && (u = b.charCodeAt(d + 2) === 61 ? 3 : 2), x(Ur, u));
|
|
334
334
|
return;
|
|
335
335
|
case 61:
|
|
336
336
|
case 33:
|
|
337
|
-
|
|
337
|
+
b.charCodeAt(d + 1) === 61 ? x(Fr, b.charCodeAt(d + 2) === 61 ? 3 : 2) : x(o === 61 ? Wn : Vn, 1);
|
|
338
338
|
return;
|
|
339
339
|
case 126:
|
|
340
|
-
return
|
|
340
|
+
return x(Vn, 1);
|
|
341
341
|
}
|
|
342
342
|
return !1;
|
|
343
343
|
}
|
|
344
344
|
function y(o) {
|
|
345
|
-
if (o ? d =
|
|
346
|
-
return
|
|
347
|
-
if (d >=
|
|
345
|
+
if (o ? d = z + 1 : z = d, P.C && (Rt = new a()), o)
|
|
346
|
+
return U();
|
|
347
|
+
if (d >= Oe)
|
|
348
348
|
return s(Bt);
|
|
349
|
-
if (o =
|
|
350
|
-
return
|
|
351
|
-
if (
|
|
349
|
+
if (o = b.charCodeAt(d), n(o) || o === 92)
|
|
350
|
+
return X();
|
|
351
|
+
if (m(o) === !1) {
|
|
352
352
|
if (o = String.fromCharCode(o), o === "\\" || Gn.test(o))
|
|
353
|
-
return
|
|
353
|
+
return X();
|
|
354
354
|
r(d, "Unexpected character '" + o + "'");
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
var u =
|
|
357
|
+
function x(o, l) {
|
|
358
|
+
var u = b.slice(d, d + l);
|
|
359
359
|
d += l, s(o, u);
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function U() {
|
|
362
362
|
for (var o, l, u = d; ; ) {
|
|
363
|
-
d >=
|
|
364
|
-
var h =
|
|
363
|
+
d >= Oe && r(u, "Unterminated regexp");
|
|
364
|
+
var h = b.charAt(d);
|
|
365
365
|
if (ht.test(h) && r(u, "Unterminated regexp"), o)
|
|
366
366
|
o = !1;
|
|
367
367
|
else {
|
|
@@ -375,17 +375,17 @@ var L, ci = function(e) {
|
|
|
375
375
|
}
|
|
376
376
|
++d;
|
|
377
377
|
}
|
|
378
|
-
o =
|
|
378
|
+
o = b.slice(u, d), ++d, (l = $()) && !/^[gmi]*$/.test(l) && r(u, "Invalid regexp flag");
|
|
379
379
|
try {
|
|
380
380
|
var R = new RegExp(o, l);
|
|
381
|
-
} catch (
|
|
382
|
-
throw
|
|
381
|
+
} catch (Y) {
|
|
382
|
+
throw Y instanceof SyntaxError && r(u, Y.message), Y;
|
|
383
383
|
}
|
|
384
384
|
s(bn, R);
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
for (var u = d, h = 0, R = l === void 0 ? 1 / 0 : l,
|
|
388
|
-
var ie =
|
|
386
|
+
function N(o, l) {
|
|
387
|
+
for (var u = d, h = 0, R = l === void 0 ? 1 / 0 : l, Y = 0; Y < R; ++Y) {
|
|
388
|
+
var ie = b.charCodeAt(d);
|
|
389
389
|
if (ie = 97 <= ie ? ie - 97 + 10 : 65 <= ie ? ie - 65 + 10 : 48 <= ie && 57 >= ie ? ie - 48 : 1 / 0, ie >= o)
|
|
390
390
|
break;
|
|
391
391
|
++d, h = h * o + ie;
|
|
@@ -393,78 +393,78 @@ var L, ci = function(e) {
|
|
|
393
393
|
return d === u || l !== void 0 && d - u !== l ? null : h;
|
|
394
394
|
}
|
|
395
395
|
function E(o) {
|
|
396
|
-
var l = d, u = !1, h =
|
|
397
|
-
o ||
|
|
396
|
+
var l = d, u = !1, h = b.charCodeAt(d) === 48;
|
|
397
|
+
o || N(10) !== null || r(l, "Invalid number"), b.charCodeAt(d) === 46 && (++d, N(10), u = !0), o = b.charCodeAt(d), (o === 69 || o === 101) && (o = b.charCodeAt(++d), o !== 43 && o !== 45 || ++d, N(10) === null && r(l, "Invalid number"), u = !0), n(b.charCodeAt(d)) && r(d, "Identifier directly after number"), o = b.slice(l, d);
|
|
398
398
|
var R;
|
|
399
|
-
u ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || se ? r(l, "Invalid number") : R = parseInt(o, 8) : R = parseInt(o, 10), s(
|
|
399
|
+
u ? R = parseFloat(o) : h && o.length !== 1 ? /[89]/.test(o) || se ? r(l, "Invalid number") : R = parseInt(o, 8) : R = parseInt(o, 10), s(Ke, R);
|
|
400
400
|
}
|
|
401
401
|
function O(o) {
|
|
402
|
-
return o =
|
|
402
|
+
return o = N(16, o), o === null && r(z, "Bad character escape sequence"), o;
|
|
403
403
|
}
|
|
404
404
|
function $() {
|
|
405
|
-
|
|
405
|
+
Me = !1;
|
|
406
406
|
for (var o, l = !0, u = d; ; ) {
|
|
407
|
-
var h =
|
|
407
|
+
var h = b.charCodeAt(d);
|
|
408
408
|
if (t(h))
|
|
409
|
-
|
|
409
|
+
Me && (o += b.charAt(d)), ++d;
|
|
410
410
|
else if (h === 92) {
|
|
411
|
-
|
|
411
|
+
Me || (o = b.slice(u, d)), Me = !0, b.charCodeAt(++d) !== 117 && r(d, "Expecting Unicode escape sequence \\uXXXX"), ++d, h = O(4);
|
|
412
412
|
var R = String.fromCharCode(h);
|
|
413
413
|
R || r(d - 1, "Invalid Unicode escape"), (l ? n(h) : t(h)) || r(d - 4, "Invalid Unicode escape"), o += R;
|
|
414
414
|
} else
|
|
415
415
|
break;
|
|
416
416
|
l = !1;
|
|
417
417
|
}
|
|
418
|
-
return
|
|
418
|
+
return Me ? o : b.slice(u, d);
|
|
419
419
|
}
|
|
420
|
-
function
|
|
421
|
-
var o = $(), l =
|
|
422
|
-
!
|
|
420
|
+
function X() {
|
|
421
|
+
var o = $(), l = Ne;
|
|
422
|
+
!Me && $r(o) && (l = Pr[o]), s(l, o);
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
Pt =
|
|
424
|
+
function v() {
|
|
425
|
+
Pt = z, Se = Pe, Nt = Ot, y();
|
|
426
426
|
}
|
|
427
427
|
function W(o) {
|
|
428
|
-
if (se = o, d =
|
|
428
|
+
if (se = o, d = z, P.C)
|
|
429
429
|
for (; d < he; )
|
|
430
|
-
he =
|
|
430
|
+
he = b.lastIndexOf(`
|
|
431
431
|
`, he - 2) + 1, --Ie;
|
|
432
432
|
f(), y();
|
|
433
433
|
}
|
|
434
|
-
function
|
|
435
|
-
this.type = null, this.start =
|
|
434
|
+
function Z() {
|
|
435
|
+
this.type = null, this.start = z, this.end = null;
|
|
436
436
|
}
|
|
437
437
|
function ne() {
|
|
438
438
|
this.start = Rt, this.end = null, jt && (this.source = jt);
|
|
439
439
|
}
|
|
440
440
|
function H() {
|
|
441
|
-
var o = new
|
|
442
|
-
return
|
|
441
|
+
var o = new Z();
|
|
442
|
+
return P.C && (o.X = new ne()), P.vb && (o.sourceFile = P.vb), P.Xa && (o.j = [z, 0]), o;
|
|
443
443
|
}
|
|
444
444
|
function re(o) {
|
|
445
|
-
var l = new
|
|
446
|
-
return l.start = o.start,
|
|
445
|
+
var l = new Z();
|
|
446
|
+
return l.start = o.start, P.C && (l.X = new ne(), l.X.start = o.X.start), P.Xa && (l.j = [o.j[0], 0]), l;
|
|
447
447
|
}
|
|
448
448
|
function I(o, l) {
|
|
449
|
-
return o.type = l, o.end = Se,
|
|
449
|
+
return o.type = l, o.end = Se, P.C && (o.X.end = Nt), P.Xa && (o.j[1] = Se), o;
|
|
450
450
|
}
|
|
451
451
|
function we(o) {
|
|
452
452
|
return o.type === "ExpressionStatement" && o.la.type === "Literal" && o.la.value === "use strict";
|
|
453
453
|
}
|
|
454
454
|
function _(o) {
|
|
455
|
-
return j === o ? (
|
|
455
|
+
return j === o ? (v(), !0) : !1;
|
|
456
456
|
}
|
|
457
457
|
function Ce() {
|
|
458
|
-
return !
|
|
458
|
+
return !P.fc && (j === Bt || j === Be || ht.test(b.slice(Se, z)));
|
|
459
459
|
}
|
|
460
460
|
function ue() {
|
|
461
|
-
_(me) || Ce() ||
|
|
461
|
+
_(me) || Ce() || C();
|
|
462
462
|
}
|
|
463
463
|
function K(o) {
|
|
464
|
-
j === o ?
|
|
464
|
+
j === o ? v() : C();
|
|
465
465
|
}
|
|
466
|
-
function
|
|
467
|
-
r(
|
|
466
|
+
function C() {
|
|
467
|
+
r(z, "Unexpected token");
|
|
468
468
|
}
|
|
469
469
|
function T(o) {
|
|
470
470
|
o.type !== "Identifier" && o.type !== "MemberExpression" && r(o.start, "Assigning to rvalue"), se && o.type === "Identifier" && ft(o.name) && r(o.start, "Assigning to " + o.name + " in strict mode");
|
|
@@ -475,79 +475,79 @@ var L, ci = function(e) {
|
|
|
475
475
|
switch (o) {
|
|
476
476
|
case Mt:
|
|
477
477
|
case xn:
|
|
478
|
-
|
|
478
|
+
v();
|
|
479
479
|
var u = o === Mt;
|
|
480
|
-
_(me) || Ce() ? l.label = null : j !==
|
|
481
|
-
for (var h = 0; h <
|
|
482
|
-
var R =
|
|
480
|
+
_(me) || Ce() ? l.label = null : j !== Ne ? C() : (l.label = fe(), ue());
|
|
481
|
+
for (var h = 0; h < G.length; ++h) {
|
|
482
|
+
var R = G[h];
|
|
483
483
|
if ((l.label === null || R.name === l.label.name) && (R.kind !== null && (u || R.kind === "loop") || l.label && u))
|
|
484
484
|
break;
|
|
485
485
|
}
|
|
486
|
-
return h ===
|
|
486
|
+
return h === G.length && r(l.start, "Unsyntactic " + o.l), I(l, u ? "BreakStatement" : "ContinueStatement");
|
|
487
487
|
case kn:
|
|
488
|
-
return
|
|
488
|
+
return v(), ue(), I(l, "DebuggerStatement");
|
|
489
489
|
case Cn:
|
|
490
|
-
return
|
|
490
|
+
return v(), G.push($t), l.body = A(), G.pop(), K(_t), l.test = D(), ue(), I(l, "DoWhileStatement");
|
|
491
491
|
case Tn:
|
|
492
|
-
return
|
|
492
|
+
return v(), G.push($t), K(pe), j === me ? Q(l, null) : j === Lt ? (o = H(), v(), lt(o, !0), I(o, "VariableDeclaration"), o.fa.length === 1 && _(dt) ? Ee(l, o) : Q(l, o)) : (o = te(!1, !0), _(dt) ? (T(o), Ee(l, o)) : Q(l, o));
|
|
493
493
|
case Ft:
|
|
494
|
-
return
|
|
494
|
+
return v(), Tt(l, !0);
|
|
495
495
|
case An:
|
|
496
|
-
return
|
|
496
|
+
return v(), l.test = D(), l.da = A(), l.alternate = _(En) ? A() : null, I(l, "IfStatement");
|
|
497
497
|
case jn:
|
|
498
|
-
return
|
|
498
|
+
return He || P.Ib || r(z, "'return' outside of function"), v(), _(me) || Ce() ? l.K = null : (l.K = te(), ue()), I(l, "ReturnStatement");
|
|
499
499
|
case Ut:
|
|
500
|
-
for (
|
|
501
|
-
j === Dt || j === wn ? (o = j === Dt, h && I(h, "SwitchCase"), l.tb.push(h = H()), h.da = [],
|
|
502
|
-
return h && I(h, "SwitchCase"),
|
|
500
|
+
for (v(), l.Qb = D(), l.tb = [], K(Ge), G.push(Gr); j !== Be; )
|
|
501
|
+
j === Dt || j === wn ? (o = j === Dt, h && I(h, "SwitchCase"), l.tb.push(h = H()), h.da = [], v(), o ? h.test = te() : (u && r(Pt, "Multiple default clauses"), u = !0, h.test = null), K(ze)) : (h || C(), h.da.push(A()));
|
|
502
|
+
return h && I(h, "SwitchCase"), v(), G.pop(), I(l, "SwitchStatement");
|
|
503
503
|
case Rn:
|
|
504
|
-
return
|
|
504
|
+
return v(), ht.test(b.slice(Se, z)) && r(Se, "Illegal newline after throw"), l.K = te(), ue(), I(l, "ThrowStatement");
|
|
505
505
|
case On:
|
|
506
|
-
return
|
|
506
|
+
return v(), l.block = L(), l.Ea = null, j === Sn && (o = H(), v(), K(pe), o.Ua = fe(), se && ft(o.Ua.name) && r(o.Ua.start, "Binding " + o.Ua.name + " in strict mode"), K(de), o.body = L(), l.Ea = I(o, "CatchClause")), l.fb = _(In) ? L() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), I(l, "TryStatement");
|
|
507
507
|
case Lt:
|
|
508
|
-
return
|
|
508
|
+
return v(), lt(l), ue(), I(l, "VariableDeclaration");
|
|
509
509
|
case _t:
|
|
510
|
-
return
|
|
510
|
+
return v(), l.test = D(), G.push($t), l.body = A(), G.pop(), I(l, "WhileStatement");
|
|
511
511
|
case Pn:
|
|
512
|
-
return se && r(
|
|
513
|
-
case
|
|
514
|
-
return
|
|
512
|
+
return se && r(z, "'with' in strict mode"), v(), l.object = D(), l.body = A(), I(l, "WithStatement");
|
|
513
|
+
case Ge:
|
|
514
|
+
return L();
|
|
515
515
|
case me:
|
|
516
|
-
return
|
|
516
|
+
return v(), I(l, "EmptyStatement");
|
|
517
517
|
default:
|
|
518
|
-
if (u = le, R = te(), o ===
|
|
519
|
-
for (h = 0; h <
|
|
520
|
-
|
|
521
|
-
return
|
|
518
|
+
if (u = le, R = te(), o === Ne && R.type === "Identifier" && _(ze)) {
|
|
519
|
+
for (h = 0; h < G.length; ++h)
|
|
520
|
+
G[h].name === u && r(R.start, "Label '" + u + "' is already declared");
|
|
521
|
+
return G.push({
|
|
522
522
|
name: u,
|
|
523
523
|
kind: j.W ? "loop" : j === Ut ? "switch" : null
|
|
524
|
-
}), l.body = A(),
|
|
524
|
+
}), l.body = A(), G.pop(), l.label = R, I(l, "LabeledStatement");
|
|
525
525
|
}
|
|
526
526
|
return l.la = R, ue(), I(l, "ExpressionStatement");
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
529
|
+
function D() {
|
|
530
530
|
K(pe);
|
|
531
531
|
var o = te();
|
|
532
532
|
return K(de), o;
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function L(o) {
|
|
535
535
|
var l = H(), u = !0, h = !1;
|
|
536
|
-
for (l.body = [], K(
|
|
536
|
+
for (l.body = [], K(Ge); !_(Be); ) {
|
|
537
537
|
var R = A();
|
|
538
538
|
if (l.body.push(R), u && o && we(R)) {
|
|
539
|
-
var
|
|
539
|
+
var Y = h;
|
|
540
540
|
W(h = !0);
|
|
541
541
|
}
|
|
542
542
|
u = !1;
|
|
543
543
|
}
|
|
544
|
-
return h && !
|
|
544
|
+
return h && !Y && W(!1), I(l, "BlockStatement");
|
|
545
545
|
}
|
|
546
|
-
function
|
|
547
|
-
return o.ua = l, K(me), o.test = j === me ? null : te(), K(me), o.update = j === de ? null : te(), K(de), o.body = A(),
|
|
546
|
+
function Q(o, l) {
|
|
547
|
+
return o.ua = l, K(me), o.test = j === me ? null : te(), K(me), o.update = j === de ? null : te(), K(de), o.body = A(), G.pop(), I(o, "ForStatement");
|
|
548
548
|
}
|
|
549
549
|
function Ee(o, l) {
|
|
550
|
-
return o.left = l, o.right = te(), K(de), o.body = A(),
|
|
550
|
+
return o.left = l, o.right = te(), K(de), o.body = A(), G.pop(), I(o, "ForInStatement");
|
|
551
551
|
}
|
|
552
552
|
function lt(o, l) {
|
|
553
553
|
for (o.fa = [], o.kind = "var"; ; ) {
|
|
@@ -569,97 +569,97 @@ var L, ci = function(e) {
|
|
|
569
569
|
var l = Et(It(), -1, o);
|
|
570
570
|
if (_(Ln)) {
|
|
571
571
|
var u = re(l);
|
|
572
|
-
u.test = l, u.da = te(!0), K(
|
|
572
|
+
u.test = l, u.da = te(!0), K(ze), u.alternate = te(!0, o), l = I(u, "ConditionalExpression");
|
|
573
573
|
}
|
|
574
|
-
return j.Cb ? (u = re(l), u.operator = le, u.left = l,
|
|
574
|
+
return j.Cb ? (u = re(l), u.operator = le, u.left = l, v(), u.right = Ct(o), T(l), I(u, "AssignmentExpression")) : l;
|
|
575
575
|
}
|
|
576
576
|
function Et(o, l, u) {
|
|
577
577
|
var h = j.L;
|
|
578
578
|
if (h !== null && (!u || j !== dt) && h > l) {
|
|
579
579
|
var R = re(o);
|
|
580
|
-
return R.left = o, R.operator = le, o = j,
|
|
580
|
+
return R.left = o, R.operator = le, o = j, v(), R.right = Et(It(), h, u), h = I(R, o === $n || o === Hn ? "LogicalExpression" : "BinaryExpression"), Et(h, l, u);
|
|
581
581
|
}
|
|
582
582
|
return o;
|
|
583
583
|
}
|
|
584
584
|
function It() {
|
|
585
585
|
if (j.prefix) {
|
|
586
586
|
var o = H(), l = j.$b;
|
|
587
|
-
return o.operator = le,
|
|
587
|
+
return o.operator = le, $e = o.prefix = !0, v(), o.K = It(), l ? T(o.K) : se && o.operator === "delete" && o.K.type === "Identifier" && r(o.start, "Deleting local variable in strict mode"), I(o, l ? "UpdateExpression" : "UnaryExpression");
|
|
588
588
|
}
|
|
589
|
-
for (l =
|
|
590
|
-
o = re(l), o.operator = le, o.prefix = !1, o.K = l, T(l),
|
|
589
|
+
for (l = Ve(ct()); j.cc && !Ce(); )
|
|
590
|
+
o = re(l), o.operator = le, o.prefix = !1, o.K = l, T(l), v(), l = I(o, "UpdateExpression");
|
|
591
591
|
return l;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function Ve(o, l) {
|
|
594
594
|
if (_(Un)) {
|
|
595
595
|
var u = re(o);
|
|
596
|
-
return u.object = o, u.Wa = fe(!0), u.bb = !1,
|
|
596
|
+
return u.object = o, u.Wa = fe(!0), u.bb = !1, Ve(I(u, "MemberExpression"), l);
|
|
597
597
|
}
|
|
598
|
-
return _(Wt) ? (u = re(o), u.object = o, u.Wa = te(), u.bb = !0, K(Vt),
|
|
598
|
+
return _(Wt) ? (u = re(o), u.object = o, u.Wa = te(), u.bb = !0, K(Vt), Ve(I(u, "MemberExpression"), l)) : !l && _(pe) ? (u = re(o), u.callee = o, u.arguments = At(de, !1), Ve(I(u, "CallExpression"), l)) : o;
|
|
599
599
|
}
|
|
600
600
|
function ct() {
|
|
601
601
|
switch (j) {
|
|
602
602
|
case Bn:
|
|
603
603
|
var o = H();
|
|
604
|
-
return
|
|
605
|
-
case
|
|
604
|
+
return v(), I(o, "ThisExpression");
|
|
605
|
+
case Ne:
|
|
606
606
|
return fe();
|
|
607
|
-
case
|
|
607
|
+
case Ke:
|
|
608
608
|
case ut:
|
|
609
609
|
case bn:
|
|
610
|
-
return o = H(), o.value = le, o.raw =
|
|
610
|
+
return o = H(), o.value = le, o.raw = b.slice(z, Pe), v(), I(o, "Literal");
|
|
611
611
|
case Mn:
|
|
612
612
|
case Dn:
|
|
613
613
|
case Fn:
|
|
614
|
-
return o = H(), o.value = j.$a, o.raw = j.l,
|
|
614
|
+
return o = H(), o.value = j.$a, o.raw = j.l, v(), I(o, "Literal");
|
|
615
615
|
case pe:
|
|
616
616
|
o = Rt;
|
|
617
|
-
var l =
|
|
618
|
-
|
|
617
|
+
var l = z;
|
|
618
|
+
v();
|
|
619
619
|
var u = te();
|
|
620
|
-
return u.start = l, u.end =
|
|
620
|
+
return u.start = l, u.end = Pe, P.C && (u.X.start = o, u.X.end = Ot), P.Xa && (u.j = [l, Pe]), K(de), u;
|
|
621
621
|
case Wt:
|
|
622
|
-
return o = H(),
|
|
623
|
-
case
|
|
624
|
-
for (o = H(), l = !0, u = !1, o.h = [],
|
|
622
|
+
return o = H(), v(), o.elements = At(Vt, !0, !0), I(o, "ArrayExpression");
|
|
623
|
+
case Ge:
|
|
624
|
+
for (o = H(), l = !0, u = !1, o.h = [], v(); !_(Be); ) {
|
|
625
625
|
if (l)
|
|
626
626
|
l = !1;
|
|
627
|
-
else if (K(xe),
|
|
627
|
+
else if (K(xe), P.sb && _(Be))
|
|
628
628
|
break;
|
|
629
629
|
var h = {
|
|
630
|
-
key: j ===
|
|
630
|
+
key: j === Ke || j === ut ? ct() : fe(!0)
|
|
631
631
|
}, R = !1;
|
|
632
|
-
if (_(
|
|
632
|
+
if (_(ze)) {
|
|
633
633
|
h.value = te(!0);
|
|
634
|
-
var
|
|
634
|
+
var Y = h.kind = "init";
|
|
635
635
|
} else
|
|
636
|
-
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ?
|
|
636
|
+
h.key.type !== "Identifier" || h.key.name !== "get" && h.key.name !== "set" ? C() : (R = u = !0, Y = h.kind = h.key.name, h.key = j === Ke || j === ut ? ct() : fe(!0), j !== pe && C(), h.value = Tt(H(), !1));
|
|
637
637
|
if (h.key.type === "Identifier" && (se || u))
|
|
638
638
|
for (var ie = 0; ie < o.h.length; ++ie) {
|
|
639
|
-
var
|
|
640
|
-
if (
|
|
641
|
-
var Ht =
|
|
642
|
-
Ht && !se &&
|
|
639
|
+
var De = o.h[ie];
|
|
640
|
+
if (De.key.name === h.key.name) {
|
|
641
|
+
var Ht = Y === De.kind || R && De.kind === "init" || Y === "init" && (De.kind === "get" || De.kind === "set");
|
|
642
|
+
Ht && !se && Y === "init" && De.kind === "init" && (Ht = !1), Ht && r(h.key.start, "Redefinition of property");
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
o.h.push(h);
|
|
646
646
|
}
|
|
647
647
|
return I(o, "ObjectExpression");
|
|
648
648
|
case Ft:
|
|
649
|
-
return o = H(),
|
|
649
|
+
return o = H(), v(), Tt(o, !1);
|
|
650
650
|
case Nn:
|
|
651
|
-
return o = H(),
|
|
651
|
+
return o = H(), v(), o.callee = Ve(ct(), !0), o.arguments = _(pe) ? At(de, !1) : Or, I(o, "NewExpression");
|
|
652
652
|
}
|
|
653
|
-
|
|
653
|
+
C();
|
|
654
654
|
}
|
|
655
655
|
function Tt(o, l) {
|
|
656
|
-
j ===
|
|
656
|
+
j === Ne ? o.id = fe() : l ? C() : o.id = null, o.oa = [];
|
|
657
657
|
var u = !0;
|
|
658
658
|
for (K(pe); !_(de); )
|
|
659
659
|
u ? u = !1 : K(xe), o.oa.push(fe());
|
|
660
|
-
u =
|
|
661
|
-
var h =
|
|
662
|
-
if (
|
|
660
|
+
u = He;
|
|
661
|
+
var h = G;
|
|
662
|
+
if (He = !0, G = [], o.body = L(!0), He = u, G = h, se || o.body.body.length && we(o.body.body[0])) {
|
|
663
663
|
for (u = o.id ? -1 : 0; u < o.oa.length; ++u)
|
|
664
664
|
if (h = 0 > u ? o.id : o.oa[u], (Kn(h.name) || ft(h.name)) && r(h.start, "Defining '" + h.name + "' in strict mode"), 0 <= u)
|
|
665
665
|
for (var R = 0; R < u; ++R)
|
|
@@ -671,7 +671,7 @@ var L, ci = function(e) {
|
|
|
671
671
|
for (var h = [], R = !0; !_(o); ) {
|
|
672
672
|
if (R)
|
|
673
673
|
R = !1;
|
|
674
|
-
else if (K(xe), l &&
|
|
674
|
+
else if (K(xe), l && P.sb && _(o))
|
|
675
675
|
break;
|
|
676
676
|
h.push(u && j === xe ? null : te(!0));
|
|
677
677
|
}
|
|
@@ -679,15 +679,15 @@ var L, ci = function(e) {
|
|
|
679
679
|
}
|
|
680
680
|
function fe(o) {
|
|
681
681
|
var l = H();
|
|
682
|
-
return o &&
|
|
682
|
+
return o && P.yb === "everywhere" && (o = !1), j === Ne ? (!o && (P.yb && Vr(le) || se && Kn(le)) && b.slice(z, Pe).indexOf("\\") === -1 && r(z, "The keyword '" + le + "' is reserved"), l.name = le) : o && j.l ? l.name = j.l : C(), $e = !1, v(), I(l, "Identifier");
|
|
683
683
|
}
|
|
684
684
|
e.version = "0.5.0";
|
|
685
|
-
var
|
|
685
|
+
var P, b = "", Oe, jt;
|
|
686
686
|
e.parse = function(o, l) {
|
|
687
|
-
|
|
687
|
+
b = String(o), Oe = b.length, P = l || {};
|
|
688
688
|
for (var u in vn)
|
|
689
|
-
Object.prototype.hasOwnProperty.call(
|
|
690
|
-
for (jt =
|
|
689
|
+
Object.prototype.hasOwnProperty.call(P, u) || (P[u] = vn[u]);
|
|
690
|
+
for (jt = P.sourceFile, Ie = 1, d = he = 0, $e = !0, f(), u = P.dc, Pt = Se = d, P.C && (Nt = new a()), He = se = !1, G = [], y(), o = u || H(), l = !0, u || (o.body = []); j !== Bt; )
|
|
691
691
|
u = A(), o.body.push(u), l && we(u) && W(!0), l = !1;
|
|
692
692
|
return I(o, "Program");
|
|
693
693
|
};
|
|
@@ -702,13 +702,13 @@ var L, ci = function(e) {
|
|
|
702
702
|
dc: null,
|
|
703
703
|
sourceFile: null,
|
|
704
704
|
vb: null
|
|
705
|
-
}, d = 0,
|
|
705
|
+
}, d = 0, z = 0, Pe = 0, Rt, Ot, j, le, $e, Ie, he, Pt = 0, Se = 0, Nt, He, G, se, Or = [], Ke = {
|
|
706
706
|
type: "num"
|
|
707
707
|
}, bn = {
|
|
708
708
|
type: "regexp"
|
|
709
709
|
}, ut = {
|
|
710
710
|
type: "string"
|
|
711
|
-
},
|
|
711
|
+
}, Ne = {
|
|
712
712
|
type: "name"
|
|
713
713
|
}, Bt = {
|
|
714
714
|
type: "eof"
|
|
@@ -775,7 +775,7 @@ var L, ci = function(e) {
|
|
|
775
775
|
l: "in",
|
|
776
776
|
L: 7,
|
|
777
777
|
m: !0
|
|
778
|
-
},
|
|
778
|
+
}, Pr = {
|
|
779
779
|
break: Mt,
|
|
780
780
|
case: Dt,
|
|
781
781
|
catch: Sn,
|
|
@@ -826,10 +826,10 @@ var L, ci = function(e) {
|
|
|
826
826
|
m: !0
|
|
827
827
|
}, Vt = {
|
|
828
828
|
type: "]"
|
|
829
|
-
},
|
|
829
|
+
}, Ge = {
|
|
830
830
|
type: "{",
|
|
831
831
|
m: !0
|
|
832
|
-
},
|
|
832
|
+
}, Be = {
|
|
833
833
|
type: "}"
|
|
834
834
|
}, pe = {
|
|
835
835
|
type: "(",
|
|
@@ -842,7 +842,7 @@ var L, ci = function(e) {
|
|
|
842
842
|
}, me = {
|
|
843
843
|
type: ";",
|
|
844
844
|
m: !0
|
|
845
|
-
},
|
|
845
|
+
}, ze = {
|
|
846
846
|
type: ":",
|
|
847
847
|
m: !0
|
|
848
848
|
}, Un = {
|
|
@@ -859,7 +859,7 @@ var L, ci = function(e) {
|
|
|
859
859
|
}, Te = {
|
|
860
860
|
Cb: !0,
|
|
861
861
|
m: !0
|
|
862
|
-
},
|
|
862
|
+
}, Nr = {
|
|
863
863
|
cc: !0,
|
|
864
864
|
prefix: !0,
|
|
865
865
|
$b: !0
|
|
@@ -872,34 +872,34 @@ var L, ci = function(e) {
|
|
|
872
872
|
}, Hn = {
|
|
873
873
|
L: 2,
|
|
874
874
|
m: !0
|
|
875
|
-
},
|
|
875
|
+
}, Br = {
|
|
876
876
|
L: 3,
|
|
877
877
|
m: !0
|
|
878
|
-
},
|
|
878
|
+
}, Mr = {
|
|
879
879
|
L: 4,
|
|
880
880
|
m: !0
|
|
881
|
-
},
|
|
881
|
+
}, Dr = {
|
|
882
882
|
L: 5,
|
|
883
883
|
m: !0
|
|
884
|
-
},
|
|
884
|
+
}, Fr = {
|
|
885
885
|
L: 6,
|
|
886
886
|
m: !0
|
|
887
|
-
},
|
|
887
|
+
}, Ur = {
|
|
888
888
|
L: 7,
|
|
889
889
|
m: !0
|
|
890
|
-
},
|
|
890
|
+
}, Lr = {
|
|
891
891
|
L: 8,
|
|
892
892
|
m: !0
|
|
893
|
-
},
|
|
893
|
+
}, _r = {
|
|
894
894
|
L: 9,
|
|
895
895
|
prefix: !0,
|
|
896
896
|
m: !0
|
|
897
|
-
},
|
|
897
|
+
}, Wr = {
|
|
898
898
|
L: 10,
|
|
899
899
|
m: !0
|
|
900
|
-
},
|
|
900
|
+
}, Vr = i("class enum extends super const export import"), Kn = i("implements interface let package private protected public static yield"), ft = i("eval arguments"), $r = i("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), Hr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Gn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), Kr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ht = /[\n\r\u2028\u2029]/, pt = /\r\n|[\n\r\u2028\u2029]/g, Me, $t = {
|
|
901
901
|
kind: "loop"
|
|
902
|
-
},
|
|
902
|
+
}, Gr = {
|
|
903
903
|
kind: "switch"
|
|
904
904
|
};
|
|
905
905
|
}, Xt = Xt = typeof globalThis == "undefined" ? void 0 : globalThis;
|
|
@@ -929,7 +929,7 @@ var qn = {
|
|
|
929
929
|
configurable: !0,
|
|
930
930
|
enumerable: !0,
|
|
931
931
|
writable: !1
|
|
932
|
-
},
|
|
932
|
+
}, S = {
|
|
933
933
|
configurable: !0,
|
|
934
934
|
enumerable: !1,
|
|
935
935
|
writable: !0
|
|
@@ -937,7 +937,7 @@ var qn = {
|
|
|
937
937
|
configurable: !0,
|
|
938
938
|
enumerable: !1,
|
|
939
939
|
writable: !1
|
|
940
|
-
},
|
|
940
|
+
}, Xe = {
|
|
941
941
|
configurable: !1,
|
|
942
942
|
enumerable: !1,
|
|
943
943
|
writable: !1
|
|
@@ -945,20 +945,20 @@ var qn = {
|
|
|
945
945
|
configurable: !1,
|
|
946
946
|
enumerable: !0,
|
|
947
947
|
writable: !0
|
|
948
|
-
},
|
|
948
|
+
}, gr = {
|
|
949
949
|
STEP_ERROR: !0
|
|
950
|
-
},
|
|
950
|
+
}, We = {
|
|
951
951
|
SCOPE_REFERENCE: !0
|
|
952
|
-
},
|
|
952
|
+
}, nt = {
|
|
953
953
|
VALUE_IN_DESCRIPTOR: !0
|
|
954
|
-
},
|
|
954
|
+
}, Fe = {
|
|
955
955
|
REGEXP_TIMEOUT: !0
|
|
956
|
-
}, Qn = [], ye = null,
|
|
956
|
+
}, Qn = [], ye = null, Qe = null, ke = typeof globalThis == "undefined" ? void 0 : globalThis, ui = ["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();", "};"];
|
|
957
957
|
function rn(e) {
|
|
958
958
|
var t = e >>> 0;
|
|
959
959
|
return t === Number(e) ? t : NaN;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function et(e) {
|
|
962
962
|
var t = e >>> 0;
|
|
963
963
|
return String(t) === String(e) && t !== 4294967295 ? t : NaN;
|
|
964
964
|
}
|
|
@@ -973,26 +973,26 @@ function bt(e, t, n) {
|
|
|
973
973
|
g.prototype.REGEXP_MODE = 2;
|
|
974
974
|
g.prototype.REGEXP_THREAD_TIMEOUT = 1e3;
|
|
975
975
|
g.prototype.POLYFILL_TIMEOUT = 1e3;
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
976
|
+
F = g.prototype;
|
|
977
|
+
F.P = !1;
|
|
978
|
+
F.Ka = !1;
|
|
979
|
+
F.Kb = 0;
|
|
980
|
+
F.ic = 0;
|
|
981
981
|
function Le(e, t) {
|
|
982
982
|
var n = {}, r;
|
|
983
983
|
for (r in qn)
|
|
984
984
|
n[r] = qn[r];
|
|
985
985
|
return n.sourceFile = t, ke.j.parse(e, n);
|
|
986
986
|
}
|
|
987
|
-
|
|
987
|
+
F.Jb = function(e) {
|
|
988
988
|
var t = this.o[0];
|
|
989
989
|
if (!t || t.node.type !== "Program")
|
|
990
990
|
throw Error("Expecting original AST to start with a Program node");
|
|
991
991
|
if (typeof e == "string" && (e = Le(e, "appendCode" + this.Kb++)), !e || e.type !== "Program")
|
|
992
992
|
throw Error("Expecting new AST to start with a Program node");
|
|
993
|
-
|
|
993
|
+
rt(this, e, t.scope), Array.prototype.push.apply(t.node.body, e.body), t.node.body.jb = null, t.done = !1;
|
|
994
994
|
};
|
|
995
|
-
|
|
995
|
+
F.lb = function() {
|
|
996
996
|
var e = this.o, t;
|
|
997
997
|
do {
|
|
998
998
|
var n = e[e.length - 1];
|
|
@@ -1004,7 +1004,7 @@ L.lb = function() {
|
|
|
1004
1004
|
if (n = this.ca[0], !n || n.time > Date.now())
|
|
1005
1005
|
n = null;
|
|
1006
1006
|
else {
|
|
1007
|
-
this.ca.shift(), 0 <= n.interval &&
|
|
1007
|
+
this.ca.shift(), 0 <= n.interval && br(this, n, n.interval);
|
|
1008
1008
|
var r = new k(n.node, n.scope);
|
|
1009
1009
|
n.zb && (r.ia = 2, r.B = this.Na, r.U = n.zb, r.Qa = !0, r.F = n.Lb), n = r;
|
|
1010
1010
|
}
|
|
@@ -1012,15 +1012,15 @@ L.lb = function() {
|
|
|
1012
1012
|
break;
|
|
1013
1013
|
}
|
|
1014
1014
|
r = n.node;
|
|
1015
|
-
var i =
|
|
1016
|
-
|
|
1015
|
+
var i = Qe;
|
|
1016
|
+
Qe = this;
|
|
1017
1017
|
try {
|
|
1018
1018
|
var a = this.rb[r.type](e, n, r);
|
|
1019
1019
|
} catch (s) {
|
|
1020
|
-
if (s !==
|
|
1020
|
+
if (s !== gr)
|
|
1021
1021
|
throw this.value !== s && (this.value = void 0), s;
|
|
1022
1022
|
} finally {
|
|
1023
|
-
|
|
1023
|
+
Qe = i;
|
|
1024
1024
|
}
|
|
1025
1025
|
if (a && e.push(a), this.P)
|
|
1026
1026
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
@@ -1030,38 +1030,38 @@ L.lb = function() {
|
|
|
1030
1030
|
} while (!r.end && t > Date.now());
|
|
1031
1031
|
return !0;
|
|
1032
1032
|
};
|
|
1033
|
-
|
|
1033
|
+
F.Eb = function() {
|
|
1034
1034
|
for (; !this.za && this.lb(); )
|
|
1035
1035
|
;
|
|
1036
1036
|
return this.za;
|
|
1037
1037
|
};
|
|
1038
1038
|
function di(e, t) {
|
|
1039
|
-
e.g(t, "NaN", NaN,
|
|
1039
|
+
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, nn), e.g(t, "this", t, Xe), e.g(t, "self", t), e.M = new B(null), e.Z = new B(e.M), fi(e, t), hi(e, t), t.xa = e.M, e.g(t, "constructor", e.v, S), pi(e, t), mi(e, t), gi(e, t), yi(e, t), vi(e, t), bi(e, t), Si(e, t), xi(e, t), ki(e, t);
|
|
1040
1040
|
var n = e.i(function() {
|
|
1041
1041
|
throw EvalError("Can't happen");
|
|
1042
1042
|
}, !1);
|
|
1043
|
-
n.eval = !0, e.g(t, "eval", n,
|
|
1043
|
+
n.eval = !0, e.g(t, "eval", n, S), e.g(t, "parseInt", e.i(parseInt, !1), S), e.g(t, "parseFloat", e.i(parseFloat, !1), S), e.g(t, "isNaN", e.i(isNaN, !1), S), e.g(t, "isFinite", e.i(isFinite, !1), S);
|
|
1044
1044
|
for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], i = 0; i < r.length; i++)
|
|
1045
1045
|
n = function(a) {
|
|
1046
1046
|
return function(s) {
|
|
1047
1047
|
try {
|
|
1048
1048
|
return a(s);
|
|
1049
1049
|
} catch (c) {
|
|
1050
|
-
|
|
1050
|
+
w(e, e.Gb, c.message);
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
1053
|
-
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1),
|
|
1053
|
+
}(r[i][0]), e.g(t, r[i][1], e.i(n, !1), S);
|
|
1054
1054
|
n = function(a) {
|
|
1055
1055
|
return er(e, !1, arguments);
|
|
1056
|
-
}, e.g(t, "setTimeout", e.i(n, !1),
|
|
1056
|
+
}, e.g(t, "setTimeout", e.i(n, !1), S), n = function(a) {
|
|
1057
1057
|
return er(e, !0, arguments);
|
|
1058
|
-
}, e.g(t, "setInterval", e.i(n, !1),
|
|
1058
|
+
}, e.g(t, "setInterval", e.i(n, !1), S), n = function(a) {
|
|
1059
1059
|
tr(e, a);
|
|
1060
|
-
}, e.g(t, "clearTimeout", e.i(n, !1),
|
|
1060
|
+
}, e.g(t, "clearTimeout", e.i(n, !1), S), n = function(a) {
|
|
1061
1061
|
tr(e, a);
|
|
1062
|
-
}, e.g(t, "clearInterval", e.i(n, !1),
|
|
1062
|
+
}, e.g(t, "clearInterval", e.i(n, !1), S), e.OBJECT = e.v, e.OBJECT_PROTO = e.M, e.FUNCTION = e.O, e.FUNCTION_PROTO = e.Z, e.ARRAY = e.qa, e.ARRAY_PROTO = e.La, e.REGEXP = e.I, e.REGEXP_PROTO = e.Ma, e.DATE = e.$, e.DATE_PROTO = e.nb, e.qb && e.qb(e, t);
|
|
1063
1063
|
}
|
|
1064
|
-
|
|
1064
|
+
F.Wb = 0;
|
|
1065
1065
|
function fi(e, t) {
|
|
1066
1066
|
var n = /^[A-Za-z_$][\w$]*$/, r = function(i) {
|
|
1067
1067
|
var a = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
@@ -1069,83 +1069,83 @@ function fi(e, t) {
|
|
|
1069
1069
|
s = s.split(/\s*,\s*/);
|
|
1070
1070
|
for (var c = 0; c < s.length; c++) {
|
|
1071
1071
|
var f = s[c];
|
|
1072
|
-
n.test(f) ||
|
|
1072
|
+
n.test(f) || w(e, e.T, "Invalid function argument: " + f);
|
|
1073
1073
|
}
|
|
1074
1074
|
s = s.join(", ");
|
|
1075
1075
|
}
|
|
1076
1076
|
try {
|
|
1077
|
-
var
|
|
1077
|
+
var m = Le("(function(" + s + ") {" + a + "})", "function" + e.Wb++);
|
|
1078
1078
|
} catch (y) {
|
|
1079
|
-
|
|
1079
|
+
w(e, e.T, "Invalid code: " + y.message);
|
|
1080
1080
|
}
|
|
1081
|
-
return
|
|
1081
|
+
return m.body.length !== 1 && w(e, e.T, "Invalid code in function body"), sn(e, m.body[0].la, e.N, "anonymous");
|
|
1082
1082
|
};
|
|
1083
|
-
e.O = e.i(r, !0), e.g(t, "Function", e.O,
|
|
1083
|
+
e.O = e.i(r, !0), e.g(t, "Function", e.O, S), e.g(e.O, "prototype", e.Z, S), e.g(e.Z, "constructor", e.O, S), e.Z.Ta = function() {
|
|
1084
1084
|
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, ae), e.Z.H = "Function", r = function(i, a) {
|
|
1085
1085
|
var s = e.o[e.o.length - 1];
|
|
1086
|
-
s.U = this, s.B = i, s.F = [], a != null && (a instanceof
|
|
1087
|
-
},
|
|
1086
|
+
s.U = this, s.B = i, s.F = [], a != null && (a instanceof B ? s.F = yr(e, a) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1087
|
+
}, q(e, e.O, "apply", r), r = function(i) {
|
|
1088
1088
|
var a = e.o[e.o.length - 1];
|
|
1089
1089
|
a.U = this, a.B = i, a.F = [];
|
|
1090
1090
|
for (var s = 1; s < arguments.length; s++)
|
|
1091
1091
|
a.F.push(arguments[s]);
|
|
1092
1092
|
a.eb = !1;
|
|
1093
|
-
},
|
|
1093
|
+
}, q(e, e.O, "call", r), e.ba.push("Object.defineProperty(Function.prototype, 'bind',", "{configurable: true, writable: true, value:", "function bind(oThis) {", "if (typeof this !== 'function') {", "throw TypeError('What is trying to be bound is not callable');", "}", "var aArgs = Array.prototype.slice.call(arguments, 1),", "fToBind = this,", "fNOP = function() {},", "fBound = function() {", "return fToBind.apply(this instanceof fNOP", "? this", ": oThis,", "aArgs.concat(Array.prototype.slice.call(arguments)));", "};", "if (this.prototype) {", "fNOP.prototype = this.prototype;", "}", "fBound.prototype = new fNOP();", "return fBound;", "}", "});", ""), r = function() {
|
|
1094
1094
|
return String(this);
|
|
1095
|
-
},
|
|
1095
|
+
}, q(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), S), r = function() {
|
|
1096
1096
|
return this.valueOf();
|
|
1097
|
-
},
|
|
1097
|
+
}, q(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), S);
|
|
1098
1098
|
}
|
|
1099
1099
|
function hi(e, t) {
|
|
1100
1100
|
function n(i) {
|
|
1101
|
-
i != null ||
|
|
1101
|
+
i != null || w(e, e.j, "Cannot convert '" + i + "' to object");
|
|
1102
1102
|
}
|
|
1103
1103
|
var r = function(i) {
|
|
1104
1104
|
if (i == null)
|
|
1105
1105
|
return be(e) ? this : e.s(e.M);
|
|
1106
|
-
if (!(i instanceof
|
|
1106
|
+
if (!(i instanceof B)) {
|
|
1107
1107
|
var a = e.s(ve(e, i));
|
|
1108
1108
|
return a.data = i, a;
|
|
1109
1109
|
}
|
|
1110
1110
|
return i;
|
|
1111
1111
|
};
|
|
1112
|
-
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M,
|
|
1113
|
-
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof
|
|
1114
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1),
|
|
1115
|
-
return n(i), i instanceof
|
|
1116
|
-
}, e.g(e.v, "keys", e.i(r, !1),
|
|
1117
|
-
return i === null ? e.s(null) : (i instanceof
|
|
1118
|
-
}, e.g(e.v, "create", e.i(r, !1),
|
|
1119
|
-
return a = String(a), i instanceof
|
|
1120
|
-
}, e.g(e.v, "defineProperty", e.i(r, !1),
|
|
1121
|
-
if (i instanceof
|
|
1112
|
+
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, S), e.g(e.M, "constructor", e.v, S), e.g(t, "Object", e.v, S), r = function(i) {
|
|
1113
|
+
return n(i), ge(e, Object.getOwnPropertyNames(i instanceof B ? i.h : i));
|
|
1114
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), S), r = function(i) {
|
|
1115
|
+
return n(i), i instanceof B && (i = i.h), ge(e, Object.keys(i));
|
|
1116
|
+
}, e.g(e.v, "keys", e.i(r, !1), S), r = function(i) {
|
|
1117
|
+
return i === null ? e.s(null) : (i instanceof B || w(e, e.j, "Object prototype may only be an Object or null, not " + i), e.s(i));
|
|
1118
|
+
}, e.g(e.v, "create", e.i(r, !1), S), e.ba.push("(function() {", "var create_ = Object.create;", "Object.create = function create(proto, props) {", "var obj = create_(proto);", "props && Object.defineProperties(obj, props);", "return obj;", "};", "})();", ""), r = function(i, a, s) {
|
|
1119
|
+
return a = String(a), i instanceof B || w(e, e.j, "Object.defineProperty called on non-object: " + i), s instanceof B || 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, nt, s.h), i;
|
|
1120
|
+
}, e.g(e.v, "defineProperty", e.i(r, !1), S), e.ba.push("(function() {", "var defineProperty_ = Object.defineProperty;", "Object.defineProperty = function defineProperty(obj, prop, d1) {", "var d2 = {};", "if ('configurable' in d1) d2.configurable = d1.configurable;", "if ('enumerable' in d1) d2.enumerable = d1.enumerable;", "if ('writable' in d1) d2.writable = d1.writable;", "if ('value' in d1) d2.value = d1.value;", "if ('get' in d1) d2.get = d1.get;", "if ('set' in d1) d2.set = d1.set;", "return defineProperty_(obj, prop, d2);", "};", "})();", "Object.defineProperty(Object, 'defineProperties',", "{configurable: true, writable: true, value:", "function defineProperties(obj, props) {", "var keys = Object.keys(props);", "for (var i = 0; i < keys.length; i++) {", "Object.defineProperty(obj, keys[i], props[keys[i]]);", "}", "return obj;", "}", "});", ""), r = function(i, a) {
|
|
1121
|
+
if (i instanceof B || w(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + i), a = String(a), a in i.h) {
|
|
1122
1122
|
var s = Object.getOwnPropertyDescriptor(i.h, a), c = i.V[a];
|
|
1123
1123
|
return i = i.Y[a], a = e.s(e.M), c || i ? (e.g(a, "get", c), 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;
|
|
1124
1124
|
}
|
|
1125
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1),
|
|
1125
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), S), r = function(i) {
|
|
1126
1126
|
return n(i), ve(e, i);
|
|
1127
|
-
}, e.g(e.v, "getPrototypeOf", e.i(r, !1),
|
|
1127
|
+
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), S), r = function(i) {
|
|
1128
1128
|
return !!i && !i.preventExtensions;
|
|
1129
|
-
}, e.g(e.v, "isExtensible", e.i(r, !1),
|
|
1130
|
-
return i instanceof
|
|
1131
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1),
|
|
1132
|
-
return n(this), this instanceof
|
|
1133
|
-
},
|
|
1134
|
-
return n(this), this instanceof
|
|
1135
|
-
},
|
|
1129
|
+
}, e.g(e.v, "isExtensible", e.i(r, !1), S), r = function(i) {
|
|
1130
|
+
return i instanceof B && (i.preventExtensions = !0), i;
|
|
1131
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), S), q(e, e.v, "toString", B.prototype.toString), q(e, e.v, "toLocaleString", B.prototype.toString), q(e, e.v, "valueOf", B.prototype.valueOf), r = function(i) {
|
|
1132
|
+
return n(this), this instanceof B ? String(i) in this.h : this.hasOwnProperty(i);
|
|
1133
|
+
}, q(e, e.v, "hasOwnProperty", r), r = function(i) {
|
|
1134
|
+
return n(this), this instanceof B ? Object.prototype.propertyIsEnumerable.call(this.h, i) : this.propertyIsEnumerable(i);
|
|
1135
|
+
}, q(e, e.v, "propertyIsEnumerable", r), r = function(i) {
|
|
1136
1136
|
for (; ; ) {
|
|
1137
1137
|
if (i = ve(e, i), !i)
|
|
1138
1138
|
return !1;
|
|
1139
1139
|
if (i === this)
|
|
1140
1140
|
return !0;
|
|
1141
1141
|
}
|
|
1142
|
-
},
|
|
1142
|
+
}, q(e, e.v, "isPrototypeOf", r);
|
|
1143
1143
|
}
|
|
1144
1144
|
function pi(e, t) {
|
|
1145
1145
|
var n = function(r) {
|
|
1146
1146
|
var i = be(e) ? this : _e(e), a = arguments[0];
|
|
1147
1147
|
if (arguments.length === 1 && typeof a == "number")
|
|
1148
|
-
isNaN(rn(a)) &&
|
|
1148
|
+
isNaN(rn(a)) && w(e, e.ob, "Invalid array length: " + a), i.h.length = a;
|
|
1149
1149
|
else {
|
|
1150
1150
|
for (a = 0; a < arguments.length; a++)
|
|
1151
1151
|
i.h[a] = arguments[a];
|
|
@@ -1153,9 +1153,9 @@ function pi(e, t) {
|
|
|
1153
1153
|
}
|
|
1154
1154
|
return i;
|
|
1155
1155
|
};
|
|
1156
|
-
e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa,
|
|
1156
|
+
e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, S), n = function(r) {
|
|
1157
1157
|
return r && r.H === "Array";
|
|
1158
|
-
}, e.g(e.qa, "isArray", e.i(n, !1),
|
|
1158
|
+
}, e.g(e.qa, "isArray", e.i(n, !1), S), e.g(e.La, "length", 0, {
|
|
1159
1159
|
configurable: !1,
|
|
1160
1160
|
enumerable: !1,
|
|
1161
1161
|
writable: !0
|
|
@@ -1165,128 +1165,128 @@ function mi(e, t) {
|
|
|
1165
1165
|
var n = function(r) {
|
|
1166
1166
|
return r = arguments.length ? ke.String(r) : "", be(e) ? (this.data = r, this) : r;
|
|
1167
1167
|
};
|
|
1168
|
-
for (e.J = e.i(n, !0), e.g(t, "String", e.J,
|
|
1169
|
-
|
|
1168
|
+
for (e.J = e.i(n, !0), e.g(t, "String", e.J, S), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), S), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1169
|
+
q(e, e.J, t[n], String.prototype[t[n]]);
|
|
1170
1170
|
n = function(r, i, a) {
|
|
1171
1171
|
i = e.R(i), a = e.R(a);
|
|
1172
1172
|
try {
|
|
1173
1173
|
return String(this).localeCompare(r, i, a);
|
|
1174
1174
|
} catch (s) {
|
|
1175
|
-
|
|
1175
|
+
w(e, e.D, "localeCompare: " + s.message);
|
|
1176
1176
|
}
|
|
1177
|
-
},
|
|
1177
|
+
}, q(e, e.J, "localeCompare", n), n = function(r, i, a) {
|
|
1178
1178
|
var s = String(this);
|
|
1179
|
-
if (i = i ? Number(i) : void 0, ee(e, r, e.I) && (r = r.data,
|
|
1179
|
+
if (i = i ? Number(i) : void 0, ee(e, r, e.I) && (r = r.data, Je(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1180
1180
|
if (ye)
|
|
1181
|
-
r =
|
|
1181
|
+
r = Ye(e, "string.split(separator, limit)", {
|
|
1182
1182
|
string: s,
|
|
1183
1183
|
separator: r,
|
|
1184
1184
|
limit: i
|
|
1185
|
-
}, r, a), r !==
|
|
1185
|
+
}, r, a), r !== Fe && a(ge(e, r));
|
|
1186
1186
|
else {
|
|
1187
|
-
var c = e.ha(), f =
|
|
1188
|
-
c.onmessage = function(
|
|
1189
|
-
clearTimeout(f), a(ge(e,
|
|
1187
|
+
var c = e.ha(), f = qe(e, r, c, a);
|
|
1188
|
+
c.onmessage = function(m) {
|
|
1189
|
+
clearTimeout(f), a(ge(e, m.data));
|
|
1190
1190
|
}, c.postMessage(["split", s, r, i]);
|
|
1191
1191
|
}
|
|
1192
1192
|
return;
|
|
1193
1193
|
}
|
|
1194
1194
|
r = s.split(r, i), a(ge(e, r));
|
|
1195
|
-
},
|
|
1195
|
+
}, Ze(e, e.J, "split", n), n = function(r, i) {
|
|
1196
1196
|
var a = String(this);
|
|
1197
|
-
if (r = ee(e, r, e.I) ? r.data : new RegExp(r),
|
|
1197
|
+
if (r = ee(e, r, e.I) ? r.data : new RegExp(r), Je(e, r, i), e.REGEXP_MODE === 2)
|
|
1198
1198
|
if (ye)
|
|
1199
|
-
r =
|
|
1199
|
+
r = Ye(e, "string.match(regexp)", {
|
|
1200
1200
|
string: a,
|
|
1201
1201
|
regexp: r
|
|
1202
|
-
}, r, i), r !==
|
|
1202
|
+
}, r, i), r !== Fe && i(r && ge(e, r));
|
|
1203
1203
|
else {
|
|
1204
|
-
var s = e.ha(), c =
|
|
1204
|
+
var s = e.ha(), c = qe(e, r, s, i);
|
|
1205
1205
|
s.onmessage = function(f) {
|
|
1206
1206
|
clearTimeout(c), i(f.data && ge(e, f.data));
|
|
1207
1207
|
}, s.postMessage(["match", a, r]);
|
|
1208
1208
|
}
|
|
1209
1209
|
else
|
|
1210
1210
|
r = a.match(r), i(r && ge(e, r));
|
|
1211
|
-
},
|
|
1211
|
+
}, Ze(e, e.J, "match", n), n = function(r, i) {
|
|
1212
1212
|
var a = String(this);
|
|
1213
|
-
if (ee(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1213
|
+
if (ee(e, r, e.I) ? r = r.data : r = new RegExp(r), Je(e, r, i), e.REGEXP_MODE === 2)
|
|
1214
1214
|
if (ye)
|
|
1215
|
-
r =
|
|
1215
|
+
r = Ye(e, "string.search(regexp)", {
|
|
1216
1216
|
string: a,
|
|
1217
1217
|
regexp: r
|
|
1218
|
-
}, r, i), r !==
|
|
1218
|
+
}, r, i), r !== Fe && i(r);
|
|
1219
1219
|
else {
|
|
1220
|
-
var s = e.ha(), c =
|
|
1220
|
+
var s = e.ha(), c = qe(e, r, s, i);
|
|
1221
1221
|
s.onmessage = function(f) {
|
|
1222
1222
|
clearTimeout(c), i(f.data);
|
|
1223
1223
|
}, s.postMessage(["search", a, r]);
|
|
1224
1224
|
}
|
|
1225
1225
|
else
|
|
1226
1226
|
i(a.search(r));
|
|
1227
|
-
},
|
|
1227
|
+
}, Ze(e, e.J, "search", n), n = function(r, i, a) {
|
|
1228
1228
|
var s = String(this);
|
|
1229
|
-
if (i = String(i), ee(e, r, e.I) && (r = r.data,
|
|
1229
|
+
if (i = String(i), ee(e, r, e.I) && (r = r.data, Je(e, r, a), e.REGEXP_MODE === 2)) {
|
|
1230
1230
|
if (ye)
|
|
1231
|
-
r =
|
|
1231
|
+
r = Ye(e, "string.replace(substr, newSubstr)", {
|
|
1232
1232
|
string: s,
|
|
1233
1233
|
substr: r,
|
|
1234
1234
|
newSubstr: i
|
|
1235
|
-
}, r, a), r !==
|
|
1235
|
+
}, r, a), r !== Fe && a(r);
|
|
1236
1236
|
else {
|
|
1237
|
-
var c = e.ha(), f =
|
|
1238
|
-
c.onmessage = function(
|
|
1239
|
-
clearTimeout(f), a(
|
|
1237
|
+
var c = e.ha(), f = qe(e, r, c, a);
|
|
1238
|
+
c.onmessage = function(m) {
|
|
1239
|
+
clearTimeout(f), a(m.data);
|
|
1240
1240
|
}, c.postMessage(["replace", s, r, i]);
|
|
1241
1241
|
}
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
1244
|
a(s.replace(r, i));
|
|
1245
|
-
},
|
|
1245
|
+
}, Ze(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;", "};", "})();", "");
|
|
1246
1246
|
}
|
|
1247
1247
|
function gi(e, t) {
|
|
1248
1248
|
e.mb = e.i(function(n) {
|
|
1249
1249
|
return n = ke.Boolean(n), be(e) ? (this.data = n, this) : n;
|
|
1250
|
-
}, !0), e.g(t, "Boolean", e.mb,
|
|
1250
|
+
}, !0), e.g(t, "Boolean", e.mb, S);
|
|
1251
1251
|
}
|
|
1252
1252
|
function yi(e, t) {
|
|
1253
1253
|
var n = function(r) {
|
|
1254
1254
|
return r = arguments.length ? ke.Number(r) : 0, be(e) ? (this.data = r, this) : r;
|
|
1255
1255
|
};
|
|
1256
|
-
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa,
|
|
1257
|
-
e.g(e.aa, t[n], Number[t[n]],
|
|
1256
|
+
for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, S), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
|
|
1257
|
+
e.g(e.aa, t[n], Number[t[n]], Xe);
|
|
1258
1258
|
n = function(r) {
|
|
1259
1259
|
try {
|
|
1260
1260
|
return Number(this).toExponential(r);
|
|
1261
1261
|
} catch (i) {
|
|
1262
|
-
|
|
1262
|
+
w(e, e.D, i.message);
|
|
1263
1263
|
}
|
|
1264
|
-
},
|
|
1264
|
+
}, q(e, e.aa, "toExponential", n), n = function(r) {
|
|
1265
1265
|
try {
|
|
1266
1266
|
return Number(this).toFixed(r);
|
|
1267
1267
|
} catch (i) {
|
|
1268
|
-
|
|
1268
|
+
w(e, e.D, i.message);
|
|
1269
1269
|
}
|
|
1270
|
-
},
|
|
1270
|
+
}, q(e, e.aa, "toFixed", n), n = function(r) {
|
|
1271
1271
|
try {
|
|
1272
1272
|
return Number(this).toPrecision(r);
|
|
1273
1273
|
} catch (i) {
|
|
1274
|
-
|
|
1274
|
+
w(e, e.D, i.message);
|
|
1275
1275
|
}
|
|
1276
|
-
},
|
|
1276
|
+
}, q(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1277
1277
|
try {
|
|
1278
1278
|
return Number(this).toString(r);
|
|
1279
1279
|
} catch (i) {
|
|
1280
|
-
|
|
1280
|
+
w(e, e.D, i.message);
|
|
1281
1281
|
}
|
|
1282
|
-
},
|
|
1282
|
+
}, q(e, e.aa, "toString", n), n = function(r, i) {
|
|
1283
1283
|
r = r ? e.R(r) : void 0, i = i ? e.R(i) : void 0;
|
|
1284
1284
|
try {
|
|
1285
1285
|
return Number(this).toLocaleString(r, i);
|
|
1286
1286
|
} catch (a) {
|
|
1287
|
-
|
|
1287
|
+
w(e, e.D, "toLocaleString: " + a.message);
|
|
1288
1288
|
}
|
|
1289
|
-
},
|
|
1289
|
+
}, q(e, e.aa, "toLocaleString", n);
|
|
1290
1290
|
}
|
|
1291
1291
|
function vi(e, t) {
|
|
1292
1292
|
var n = function(i, a) {
|
|
@@ -1295,17 +1295,17 @@ function vi(e, t) {
|
|
|
1295
1295
|
var s = [null].concat(Array.from(arguments));
|
|
1296
1296
|
return this.data = new (Function.prototype.bind.apply(ke.Date, s))(), this;
|
|
1297
1297
|
};
|
|
1298
|
-
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$,
|
|
1298
|
+
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, S), e.g(e.$, "now", e.i(Date.now, !1), S), e.g(e.$, "parse", e.i(Date.parse, !1), S), e.g(e.$, "UTC", e.i(Date.UTC, !1), S), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
|
|
1299
1299
|
for (var r = 0; r < t.length; r++)
|
|
1300
1300
|
n = function(i) {
|
|
1301
1301
|
return function(a) {
|
|
1302
1302
|
var s = this.data;
|
|
1303
|
-
s instanceof Date ||
|
|
1303
|
+
s instanceof Date || w(e, e.j, i + " not called on a Date");
|
|
1304
1304
|
for (var c = [], f = 0; f < arguments.length; f++)
|
|
1305
1305
|
c[f] = e.R(arguments[f]);
|
|
1306
1306
|
return s[i].apply(s, c);
|
|
1307
1307
|
};
|
|
1308
|
-
}(t[r]),
|
|
1308
|
+
}(t[r]), q(e, e.$, t[r], n);
|
|
1309
1309
|
}
|
|
1310
1310
|
function bi(e, t) {
|
|
1311
1311
|
var n = function(r, i) {
|
|
@@ -1316,38 +1316,38 @@ function bi(e, t) {
|
|
|
1316
1316
|
return r;
|
|
1317
1317
|
a = e.s(e.Ma);
|
|
1318
1318
|
}
|
|
1319
|
-
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) ||
|
|
1319
|
+
r = r === void 0 ? "" : String(r), i = i ? String(i) : "", /^[gmi]*$/.test(i) || w(e, e.T, "Invalid regexp flag: " + i);
|
|
1320
1320
|
try {
|
|
1321
1321
|
var s = new ke.RegExp(r, i);
|
|
1322
1322
|
} catch (c) {
|
|
1323
|
-
|
|
1323
|
+
w(e, e.T, c.message);
|
|
1324
1324
|
}
|
|
1325
1325
|
return on(e, a, s), a;
|
|
1326
1326
|
};
|
|
1327
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I,
|
|
1327
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, S), e.g(e.I.h.prototype, "global", void 0, ae), e.g(e.I.h.prototype, "ignoreCase", void 0, ae), e.g(e.I.h.prototype, "multiline", void 0, ae), e.g(e.I.h.prototype, "source", "(?:)", ae), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, i) {
|
|
1328
1328
|
function a(y) {
|
|
1329
1329
|
if (y) {
|
|
1330
|
-
var
|
|
1331
|
-
return e.g(
|
|
1330
|
+
var x = ge(e, y);
|
|
1331
|
+
return e.g(x, "index", y.index), e.g(x, "input", y.input), x;
|
|
1332
1332
|
}
|
|
1333
1333
|
return null;
|
|
1334
1334
|
}
|
|
1335
1335
|
var s = this.data;
|
|
1336
|
-
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1336
|
+
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), Je(e, s, i), e.REGEXP_MODE === 2)
|
|
1337
1337
|
if (ye)
|
|
1338
|
-
r =
|
|
1338
|
+
r = Ye(e, "regexp.exec(string)", {
|
|
1339
1339
|
string: r,
|
|
1340
1340
|
regexp: s
|
|
1341
|
-
}, s, i), r !==
|
|
1341
|
+
}, s, i), r !== Fe && (e.g(this, "lastIndex", s.lastIndex), i(a(r)));
|
|
1342
1342
|
else {
|
|
1343
|
-
var c = e.ha(), f =
|
|
1343
|
+
var c = e.ha(), f = qe(e, s, c, i), m = this;
|
|
1344
1344
|
c.onmessage = function(y) {
|
|
1345
|
-
clearTimeout(f), e.g(
|
|
1345
|
+
clearTimeout(f), e.g(m, "lastIndex", y.data[1]), i(a(y.data[0]));
|
|
1346
1346
|
}, c.postMessage(["exec", s, s.lastIndex, r]);
|
|
1347
1347
|
}
|
|
1348
1348
|
else
|
|
1349
1349
|
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), i(a(r));
|
|
1350
|
-
},
|
|
1350
|
+
}, Ze(e, e.I, "exec", n);
|
|
1351
1351
|
}
|
|
1352
1352
|
function Si(e, t) {
|
|
1353
1353
|
function n(r) {
|
|
@@ -1355,39 +1355,39 @@ function Si(e, t) {
|
|
|
1355
1355
|
var s = be(e) ? this : e.Aa(i);
|
|
1356
1356
|
return Yt(e, s, a), s;
|
|
1357
1357
|
}, !0);
|
|
1358
|
-
return e.g(i, "prototype", e.Aa(e.D),
|
|
1358
|
+
return e.g(i, "prototype", e.Aa(e.D), S), e.g(i.h.prototype, "name", r, S), e.g(t, r, i, S), i;
|
|
1359
1359
|
}
|
|
1360
1360
|
e.D = e.i(function(r) {
|
|
1361
1361
|
var i = be(e) ? this : e.Aa(e.D);
|
|
1362
1362
|
return Yt(e, i, r), i;
|
|
1363
|
-
}, !0), e.g(t, "Error", e.D,
|
|
1363
|
+
}, !0), e.g(t, "Error", e.D, S), e.g(e.D.h.prototype, "message", "", S), e.g(e.D.h.prototype, "name", "Error", S), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1364
1364
|
}
|
|
1365
1365
|
function xi(e, t) {
|
|
1366
1366
|
var n = e.s(e.M);
|
|
1367
|
-
e.g(t, "Math", n,
|
|
1367
|
+
e.g(t, "Math", n, S);
|
|
1368
1368
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
1369
1369
|
for (t = 0; t < r.length; t++)
|
|
1370
1370
|
e.g(n, r[t], Math[r[t]], ae);
|
|
1371
1371
|
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++)
|
|
1372
|
-
e.g(n, r[t], e.i(Math[r[t]], !1),
|
|
1372
|
+
e.g(n, r[t], e.i(Math[r[t]], !1), S);
|
|
1373
1373
|
}
|
|
1374
1374
|
function ki(e, t) {
|
|
1375
1375
|
var n = e.s(e.M);
|
|
1376
|
-
e.g(t, "JSON", n,
|
|
1376
|
+
e.g(t, "JSON", n, S), t = function(r) {
|
|
1377
1377
|
try {
|
|
1378
1378
|
var i = JSON.parse(String(r));
|
|
1379
1379
|
} catch (a) {
|
|
1380
|
-
|
|
1380
|
+
w(e, e.T, a.message);
|
|
1381
1381
|
}
|
|
1382
1382
|
return e.Ia(i);
|
|
1383
1383
|
}, e.g(n, "parse", e.i(t, !1)), t = function(r, i, a) {
|
|
1384
|
-
i && i.H === "Function" ?
|
|
1384
|
+
i && i.H === "Function" ? w(e, e.j, "Function replacer on JSON.stringify not supported") : i && i.H === "Array" ? (i = yr(e, i), i = i.filter(function(c) {
|
|
1385
1385
|
return typeof c == "string" || typeof c == "number";
|
|
1386
1386
|
})) : i = null, typeof a != "string" && typeof a != "number" && (a = void 0), r = e.R(r);
|
|
1387
1387
|
try {
|
|
1388
1388
|
var s = JSON.stringify(r, i, a);
|
|
1389
1389
|
} catch (c) {
|
|
1390
|
-
|
|
1390
|
+
w(e, e.j, c.message);
|
|
1391
1391
|
}
|
|
1392
1392
|
return s;
|
|
1393
1393
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1405,10 +1405,10 @@ function ee(e, t, n) {
|
|
|
1405
1405
|
return !1;
|
|
1406
1406
|
}
|
|
1407
1407
|
function on(e, t, n) {
|
|
1408
|
-
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex,
|
|
1408
|
+
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, S), e.g(t, "source", n.source, ae), e.g(t, "global", n.global, ae), e.g(t, "ignoreCase", n.ignoreCase, ae), e.g(t, "multiline", n.multiline, ae);
|
|
1409
1409
|
}
|
|
1410
1410
|
function Yt(e, t, n) {
|
|
1411
|
-
n && e.g(t, "message", String(n),
|
|
1411
|
+
n && e.g(t, "message", String(n), S), n = [];
|
|
1412
1412
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1413
1413
|
var i = e.o[r], a = i.node;
|
|
1414
1414
|
a.type === "CallExpression" && (i = i.U) && n.length && (n[n.length - 1].Ob = e.G(i, "name")), !a.X || n.length && a.type !== "CallExpression" || n.push({
|
|
@@ -1422,27 +1422,27 @@ function Yt(e, t, n) {
|
|
|
1422
1422
|
`) : a + (" at " + s + `
|
|
1423
1423
|
`);
|
|
1424
1424
|
}
|
|
1425
|
-
e.g(t, "stack", a.trim(),
|
|
1425
|
+
e.g(t, "stack", a.trim(), S);
|
|
1426
1426
|
}
|
|
1427
|
-
|
|
1427
|
+
F.ha = function() {
|
|
1428
1428
|
var e = this.ha.Mb;
|
|
1429
1429
|
return e || (e = new Blob([ui.join(`
|
|
1430
1430
|
`)], {
|
|
1431
1431
|
type: "application/javascript"
|
|
1432
1432
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1433
1433
|
};
|
|
1434
|
-
function
|
|
1434
|
+
function Ye(e, t, n, r, i) {
|
|
1435
1435
|
var a = {
|
|
1436
1436
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1437
1437
|
};
|
|
1438
1438
|
try {
|
|
1439
1439
|
return ye.runInNewContext(t, n, a);
|
|
1440
1440
|
} catch {
|
|
1441
|
-
i(null),
|
|
1441
|
+
i(null), w(e, e.D, "RegExp Timeout: " + r);
|
|
1442
1442
|
}
|
|
1443
|
-
return
|
|
1443
|
+
return Fe;
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1445
|
+
function Je(e, t, n) {
|
|
1446
1446
|
if (e.REGEXP_MODE === 0)
|
|
1447
1447
|
var r = !1;
|
|
1448
1448
|
else if (e.REGEXP_MODE === 1)
|
|
@@ -1459,24 +1459,24 @@ function qe(e, t, n) {
|
|
|
1459
1459
|
r = !!ye;
|
|
1460
1460
|
} else
|
|
1461
1461
|
r = !1;
|
|
1462
|
-
r || (n(null),
|
|
1462
|
+
r || (n(null), w(e, e.D, "Regular expressions not supported: " + t));
|
|
1463
1463
|
}
|
|
1464
|
-
function
|
|
1464
|
+
function qe(e, t, n, r) {
|
|
1465
1465
|
return setTimeout(function() {
|
|
1466
1466
|
n.terminate(), r(null);
|
|
1467
1467
|
try {
|
|
1468
|
-
|
|
1468
|
+
w(e, e.D, "RegExp Timeout: " + t);
|
|
1469
1469
|
} catch {
|
|
1470
1470
|
}
|
|
1471
1471
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
1472
1472
|
}
|
|
1473
|
-
|
|
1473
|
+
F.Aa = function(e) {
|
|
1474
1474
|
return this.s(e && e.h.prototype);
|
|
1475
1475
|
};
|
|
1476
|
-
|
|
1476
|
+
F.s = function(e) {
|
|
1477
1477
|
if (typeof e != "object")
|
|
1478
1478
|
throw Error("Non object prototype");
|
|
1479
|
-
return e = new
|
|
1479
|
+
return e = new B(e), ee(this, e, this.D) && (e.H = "Error"), e;
|
|
1480
1480
|
};
|
|
1481
1481
|
function _e(e) {
|
|
1482
1482
|
var t = e.s(e.La);
|
|
@@ -1488,21 +1488,21 @@ function _e(e) {
|
|
|
1488
1488
|
}
|
|
1489
1489
|
function an(e, t, n) {
|
|
1490
1490
|
var r = e.s(e.Z);
|
|
1491
|
-
return n ? (n = e.s(e.M), e.g(r, "prototype", n,
|
|
1491
|
+
return n ? (n = e.s(e.M), e.g(r, "prototype", n, S), e.g(n, "constructor", r, S)) : r.Ab = !0, e.g(r, "length", t, ae), r.H = "Function", r;
|
|
1492
1492
|
}
|
|
1493
1493
|
function sn(e, t, n, r) {
|
|
1494
1494
|
var i = an(e, t.oa.length, !0);
|
|
1495
1495
|
return i.Va = n, i.node = t, e.g(i, "name", t.id ? String(t.id.name) : r || "", ae), i;
|
|
1496
1496
|
}
|
|
1497
|
-
|
|
1497
|
+
F.i = function(e, t) {
|
|
1498
1498
|
return t = an(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, ae), t;
|
|
1499
1499
|
};
|
|
1500
|
-
|
|
1500
|
+
F.ub = function(e) {
|
|
1501
1501
|
var t = an(this, e.length, !0);
|
|
1502
1502
|
return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, ae), t;
|
|
1503
1503
|
};
|
|
1504
|
-
|
|
1505
|
-
if (e instanceof
|
|
1504
|
+
F.Ia = function(e) {
|
|
1505
|
+
if (e instanceof B)
|
|
1506
1506
|
throw Error("Object is already pseudo");
|
|
1507
1507
|
if (e == null || e === !0 || e === !1 || typeof e == "string" || typeof e == "number")
|
|
1508
1508
|
return e;
|
|
@@ -1532,10 +1532,10 @@ L.Ia = function(e) {
|
|
|
1532
1532
|
this.g(t, r, this.Ia(e[r]));
|
|
1533
1533
|
return t;
|
|
1534
1534
|
};
|
|
1535
|
-
|
|
1535
|
+
F.R = function(e, t) {
|
|
1536
1536
|
if (typeof e != "object" && typeof e != "function" || e === null)
|
|
1537
1537
|
return e;
|
|
1538
|
-
if (!(e instanceof
|
|
1538
|
+
if (!(e instanceof B))
|
|
1539
1539
|
throw Error("Object is not pseudo");
|
|
1540
1540
|
if (ee(this, e, this.I))
|
|
1541
1541
|
return t = new RegExp(e.data.source, e.data.flags), t.lastIndex = e.data.lastIndex, t;
|
|
@@ -1567,7 +1567,7 @@ function ge(e, t) {
|
|
|
1567
1567
|
e.g(n, r[i], t[r[i]]);
|
|
1568
1568
|
return n;
|
|
1569
1569
|
}
|
|
1570
|
-
function
|
|
1570
|
+
function yr(e, t) {
|
|
1571
1571
|
var n = [], r;
|
|
1572
1572
|
for (r in t.h)
|
|
1573
1573
|
n[r] = e.G(t, r);
|
|
@@ -1584,16 +1584,16 @@ function ve(e, t) {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
return t ? t.xa : null;
|
|
1586
1586
|
}
|
|
1587
|
-
|
|
1587
|
+
F.G = function(e, t) {
|
|
1588
1588
|
if (this.P)
|
|
1589
1589
|
throw Error("Getter not supported in that context");
|
|
1590
|
-
if (t = String(t), e != null ||
|
|
1590
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof B))
|
|
1591
1591
|
throw TypeError("Expecting native value or pseudo object");
|
|
1592
1592
|
if (t === "length") {
|
|
1593
1593
|
if (ee(this, e, this.J))
|
|
1594
1594
|
return String(e).length;
|
|
1595
1595
|
} else if (64 > t.charCodeAt(0) && ee(this, e, this.J)) {
|
|
1596
|
-
var n =
|
|
1596
|
+
var n = et(t);
|
|
1597
1597
|
if (!isNaN(n) && n < String(e).length)
|
|
1598
1598
|
return String(e)[n];
|
|
1599
1599
|
}
|
|
@@ -1603,12 +1603,12 @@ L.G = function(e, t) {
|
|
|
1603
1603
|
while (e = ve(this, e));
|
|
1604
1604
|
};
|
|
1605
1605
|
function St(e, t, n) {
|
|
1606
|
-
if (!(t instanceof
|
|
1606
|
+
if (!(t instanceof B))
|
|
1607
1607
|
throw TypeError("Primitive data type has no properties");
|
|
1608
1608
|
if (n = String(n), n === "length" && ee(e, t, e.J))
|
|
1609
1609
|
return !0;
|
|
1610
1610
|
if (ee(e, t, e.J)) {
|
|
1611
|
-
var r =
|
|
1611
|
+
var r = et(n);
|
|
1612
1612
|
if (!isNaN(r) && r < String(t).length)
|
|
1613
1613
|
return !0;
|
|
1614
1614
|
}
|
|
@@ -1618,18 +1618,18 @@ function St(e, t, n) {
|
|
|
1618
1618
|
while (t = ve(e, t));
|
|
1619
1619
|
return !1;
|
|
1620
1620
|
}
|
|
1621
|
-
|
|
1621
|
+
F.g = function(e, t, n, r) {
|
|
1622
1622
|
if (this.Ka)
|
|
1623
1623
|
throw Error("Setter not supported in that context");
|
|
1624
|
-
if (t = String(t), e != null ||
|
|
1624
|
+
if (t = String(t), e != null || w(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof B))
|
|
1625
1625
|
throw TypeError("Expecting native value or pseudo object");
|
|
1626
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1626
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && w(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1627
1627
|
var i = !this.o || ln(this).S;
|
|
1628
|
-
if (e instanceof
|
|
1628
|
+
if (e instanceof B) {
|
|
1629
1629
|
if (ee(this, e, this.J)) {
|
|
1630
|
-
var a =
|
|
1630
|
+
var a = et(t);
|
|
1631
1631
|
if (t === "length" || !isNaN(a) && a < String(e).length) {
|
|
1632
|
-
i &&
|
|
1632
|
+
i && w(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1633
1633
|
return;
|
|
1634
1634
|
}
|
|
1635
1635
|
}
|
|
@@ -1640,24 +1640,24 @@ L.g = function(e, t, n, r) {
|
|
|
1640
1640
|
return;
|
|
1641
1641
|
n = r.value;
|
|
1642
1642
|
}
|
|
1643
|
-
if (n = rn(n), isNaN(n) &&
|
|
1643
|
+
if (n = rn(n), isNaN(n) && w(this, this.ob, "Invalid array length"), n < a)
|
|
1644
1644
|
for (s in e.h) {
|
|
1645
|
-
var s =
|
|
1645
|
+
var s = et(s);
|
|
1646
1646
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
1647
1647
|
}
|
|
1648
1648
|
} else
|
|
1649
|
-
isNaN(s =
|
|
1649
|
+
isNaN(s = et(t)) || (e.h.length = Math.max(a, s + 1));
|
|
1650
1650
|
if (!e.preventExtensions || t in e.h)
|
|
1651
1651
|
if (r) {
|
|
1652
|
-
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !==
|
|
1652
|
+
i = {}, "get" in r && r.get && (e.V[t] = r.get, i.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, i.set = this.g.bc), "configurable" in r && (i.configurable = r.configurable), "enumerable" in r && (i.enumerable = r.enumerable), "writable" in r && (i.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (i.value = r.value, delete e.V[t], delete e.Y[t]) : n !== nt && (i.value = n, delete e.V[t], delete e.Y[t]);
|
|
1653
1653
|
try {
|
|
1654
1654
|
Object.defineProperty(e.h, t, i);
|
|
1655
1655
|
} catch {
|
|
1656
|
-
|
|
1656
|
+
w(this, this.j, "Cannot redefine property: " + t);
|
|
1657
1657
|
}
|
|
1658
1658
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1659
1659
|
} else {
|
|
1660
|
-
if (n ===
|
|
1660
|
+
if (n === nt)
|
|
1661
1661
|
throw ReferenceError("Value not specified");
|
|
1662
1662
|
for (r = e; !(t in r.h); )
|
|
1663
1663
|
if (r = ve(this, r), !r) {
|
|
@@ -1667,30 +1667,30 @@ L.g = function(e, t, n, r) {
|
|
|
1667
1667
|
if (r.Y && r.Y[t])
|
|
1668
1668
|
return this.Ka = !0, r.Y[t];
|
|
1669
1669
|
if (r.V && r.V[t])
|
|
1670
|
-
i &&
|
|
1670
|
+
i && w(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1671
1671
|
else
|
|
1672
1672
|
try {
|
|
1673
1673
|
e.h[t] = n;
|
|
1674
1674
|
} catch {
|
|
1675
|
-
i &&
|
|
1675
|
+
i && w(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
else
|
|
1679
|
-
i &&
|
|
1679
|
+
i && w(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1680
1680
|
} else
|
|
1681
|
-
i &&
|
|
1681
|
+
i && w(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1682
1682
|
};
|
|
1683
|
-
|
|
1683
|
+
F.g.ac = function() {
|
|
1684
1684
|
throw Error("Placeholder getter");
|
|
1685
1685
|
};
|
|
1686
|
-
|
|
1686
|
+
F.g.bc = function() {
|
|
1687
1687
|
throw Error("Placeholder setter");
|
|
1688
1688
|
};
|
|
1689
|
-
function
|
|
1690
|
-
e.g(t.h.prototype, n, e.i(r, !1),
|
|
1689
|
+
function q(e, t, n, r) {
|
|
1690
|
+
e.g(t.h.prototype, n, e.i(r, !1), S);
|
|
1691
1691
|
}
|
|
1692
|
-
function
|
|
1693
|
-
e.g(t.h.prototype, n, e.ub(r),
|
|
1692
|
+
function Ze(e, t, n, r) {
|
|
1693
|
+
e.g(t.h.prototype, n, e.ub(r), S);
|
|
1694
1694
|
}
|
|
1695
1695
|
function ln(e) {
|
|
1696
1696
|
if (e = e.o[e.o.length - 1].scope, !e)
|
|
@@ -1705,12 +1705,12 @@ function Jt(e, t, n) {
|
|
|
1705
1705
|
var i = t.body && t.body[0];
|
|
1706
1706
|
i && i.la && i.la.type === "Literal" && i.la.value === "use strict" && (r = !0);
|
|
1707
1707
|
}
|
|
1708
|
-
return i = e.s(null), r = new
|
|
1708
|
+
return i = e.s(null), r = new Sr(n, r, i), n || di(e, r.object), rt(e, t, r), r;
|
|
1709
1709
|
}
|
|
1710
1710
|
function cn(e, t, n) {
|
|
1711
1711
|
if (!t)
|
|
1712
1712
|
throw Error("parentScope required");
|
|
1713
|
-
return e = n || e.s(null), new
|
|
1713
|
+
return e = n || e.s(null), new Sr(t, t.S, e);
|
|
1714
1714
|
}
|
|
1715
1715
|
function un(e, t) {
|
|
1716
1716
|
for (var n = ln(e); n && n !== e.N; ) {
|
|
@@ -1720,15 +1720,15 @@ function un(e, t) {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
if (n === e.N && St(e, n.object, t))
|
|
1722
1722
|
return e.G(n.object, t);
|
|
1723
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1723
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || w(e, e.pb, t + " is not defined");
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function vr(e, t, n) {
|
|
1726
1726
|
for (var r = ln(e), i = r.S; r && r !== e.N; ) {
|
|
1727
1727
|
if (t in r.object.h) {
|
|
1728
1728
|
try {
|
|
1729
1729
|
r.object.h[t] = n;
|
|
1730
1730
|
} catch {
|
|
1731
|
-
i &&
|
|
1731
|
+
i && w(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1732
1732
|
}
|
|
1733
1733
|
return;
|
|
1734
1734
|
}
|
|
@@ -1736,9 +1736,9 @@ function br(e, t, n) {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
if (r === e.N && (!i || St(e, r.object, t)))
|
|
1738
1738
|
return e.g(r.object, t, n);
|
|
1739
|
-
|
|
1739
|
+
w(e, e.pb, t + " is not defined");
|
|
1740
1740
|
}
|
|
1741
|
-
function
|
|
1741
|
+
function rt(e, t, n) {
|
|
1742
1742
|
if (t.jb)
|
|
1743
1743
|
var r = t.jb;
|
|
1744
1744
|
else {
|
|
@@ -1771,12 +1771,12 @@ function it(e, t, n) {
|
|
|
1771
1771
|
if (Array.isArray(c)) {
|
|
1772
1772
|
for (i = 0; i < c.length; i++)
|
|
1773
1773
|
if (c[i] && c[i].constructor === a) {
|
|
1774
|
-
var f =
|
|
1774
|
+
var f = rt(e, c[i], n);
|
|
1775
1775
|
for (s in f)
|
|
1776
1776
|
r[s] = f[s];
|
|
1777
1777
|
}
|
|
1778
1778
|
} else if (c.constructor === a)
|
|
1779
|
-
for (s in f =
|
|
1779
|
+
for (s in f = rt(e, c, n), f)
|
|
1780
1780
|
r[s] = f[s];
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
@@ -1791,13 +1791,13 @@ function be(e) {
|
|
|
1791
1791
|
return e.o[e.o.length - 1].isConstructor;
|
|
1792
1792
|
}
|
|
1793
1793
|
function dn(e, t) {
|
|
1794
|
-
return t[0] ===
|
|
1794
|
+
return t[0] === We ? un(e, t[1]) : e.G(t[0], t[1]);
|
|
1795
1795
|
}
|
|
1796
1796
|
function fn(e, t, n) {
|
|
1797
|
-
return t[0] ===
|
|
1797
|
+
return t[0] === We ? vr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1798
1798
|
}
|
|
1799
|
-
function
|
|
1800
|
-
throw e.N ? (n !== void 0 && t instanceof
|
|
1799
|
+
function w(e, t, n) {
|
|
1800
|
+
throw e.N ? (n !== void 0 && t instanceof B && (t = e.Aa(t), Yt(e, t, n)), at(e, 4, t), gr) : n === void 0 ? t : n;
|
|
1801
1801
|
}
|
|
1802
1802
|
function at(e, t, n, r) {
|
|
1803
1803
|
if (t === 0)
|
|
@@ -1879,20 +1879,20 @@ function er(e, t, n) {
|
|
|
1879
1879
|
var r = e.o[e.o.length - 1], i = Array.from(n), a = i.shift();
|
|
1880
1880
|
n = Math.max(Number(i.shift() || 0), 0);
|
|
1881
1881
|
var s = e.ya();
|
|
1882
|
-
if (a instanceof
|
|
1882
|
+
if (a instanceof B && a.H === "Function") {
|
|
1883
1883
|
var c = a;
|
|
1884
1884
|
s.type = "CallExpression", r = r.scope;
|
|
1885
1885
|
} else {
|
|
1886
1886
|
try {
|
|
1887
1887
|
var f = Le(String(a), "taskCode" + e.ic++);
|
|
1888
|
-
} catch (
|
|
1889
|
-
|
|
1888
|
+
} catch (m) {
|
|
1889
|
+
w(e, e.T, "Invalid code: " + m.message);
|
|
1890
1890
|
}
|
|
1891
1891
|
s.type = "EvalProgram_", s.body = f.body, r = r.node.arguments[0], bt(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, i.length = 0;
|
|
1892
1892
|
}
|
|
1893
|
-
return t = new wi(c, i, r, s, t ? n : -1),
|
|
1893
|
+
return t = new wi(c, i, r, s, t ? n : -1), br(e, t, n), t.Db;
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1895
|
+
function br(e, t, n) {
|
|
1896
1896
|
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, i) {
|
|
1897
1897
|
return r.time - i.time;
|
|
1898
1898
|
});
|
|
@@ -1919,34 +1919,34 @@ function hn(e, t, n, r) {
|
|
|
1919
1919
|
return i.type = "CallExpression", e = new k(i, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1920
1920
|
}
|
|
1921
1921
|
function Kt(e, t) {
|
|
1922
|
-
return t == null ? e.Na : t instanceof
|
|
1922
|
+
return t == null ? e.Na : t instanceof B ? t : (e = e.s(ve(e, t)), e.data = t, e);
|
|
1923
1923
|
}
|
|
1924
|
-
|
|
1924
|
+
F.Xb = function() {
|
|
1925
1925
|
return this.N;
|
|
1926
1926
|
};
|
|
1927
|
-
|
|
1927
|
+
F.Yb = function() {
|
|
1928
1928
|
return this.o;
|
|
1929
1929
|
};
|
|
1930
|
-
|
|
1930
|
+
F.ec = function(e) {
|
|
1931
1931
|
this.o = e;
|
|
1932
1932
|
};
|
|
1933
1933
|
function k(e, t) {
|
|
1934
1934
|
this.node = e, this.scope = t;
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1936
|
+
function Sr(e, t, n) {
|
|
1937
1937
|
this.Va = e, this.S = t, this.object = n;
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1939
|
+
function B(e) {
|
|
1940
1940
|
this.V = /* @__PURE__ */ Object.create(null), this.Y = /* @__PURE__ */ Object.create(null), this.h = /* @__PURE__ */ Object.create(null), this.xa = e;
|
|
1941
1941
|
}
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
if (!
|
|
1942
|
+
F = B.prototype;
|
|
1943
|
+
F.xa = null;
|
|
1944
|
+
F.H = "Object";
|
|
1945
|
+
F.data = null;
|
|
1946
|
+
F.toString = function() {
|
|
1947
|
+
if (!Qe)
|
|
1948
1948
|
return "[object Interpreter.Object]";
|
|
1949
|
-
if (!(this instanceof
|
|
1949
|
+
if (!(this instanceof B))
|
|
1950
1950
|
return String(this);
|
|
1951
1951
|
if (this.H === "Array") {
|
|
1952
1952
|
var e = Qn;
|
|
@@ -1956,7 +1956,7 @@ L.toString = function() {
|
|
|
1956
1956
|
1024 < n && (n = 1e3, r = !0);
|
|
1957
1957
|
for (var i = 0; i < n; i++) {
|
|
1958
1958
|
var a = this.h[i];
|
|
1959
|
-
t[i] = a instanceof
|
|
1959
|
+
t[i] = a instanceof B && e.indexOf(a) !== -1 ? "..." : a;
|
|
1960
1960
|
}
|
|
1961
1961
|
r && t.push("...");
|
|
1962
1962
|
} finally {
|
|
@@ -1991,8 +1991,8 @@ L.toString = function() {
|
|
|
1991
1991
|
}
|
|
1992
1992
|
return this.data !== null ? String(this.data) : "[object " + this.H + "]";
|
|
1993
1993
|
};
|
|
1994
|
-
|
|
1995
|
-
return !
|
|
1994
|
+
F.valueOf = function() {
|
|
1995
|
+
return !Qe || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1996
1996
|
};
|
|
1997
1997
|
function wi(e, t, n, r, i) {
|
|
1998
1998
|
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = i, this.Db = ++Ci, this.time = 0;
|
|
@@ -2128,10 +2128,10 @@ g.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2128
2128
|
n = r >>> t;
|
|
2129
2129
|
break;
|
|
2130
2130
|
case "in":
|
|
2131
|
-
t instanceof
|
|
2131
|
+
t instanceof B || w(this, this.j, "'in' expects an object, not '" + t + "'"), n = St(this, t, r);
|
|
2132
2132
|
break;
|
|
2133
2133
|
case "instanceof":
|
|
2134
|
-
ee(this, t, this.O) ||
|
|
2134
|
+
ee(this, t, this.O) || w(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof B ? ee(this, r, t) : !1;
|
|
2135
2135
|
break;
|
|
2136
2136
|
default:
|
|
2137
2137
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2158,7 +2158,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2158
2158
|
t.ia = 2;
|
|
2159
2159
|
var i = t.value;
|
|
2160
2160
|
if (Array.isArray(i)) {
|
|
2161
|
-
if (t.U = dn(this, i), i[0] ===
|
|
2161
|
+
if (t.U = dn(this, i), i[0] === We ? t.Pb = i[1] === "eval" : t.B = i[0], i = t.U, this.P)
|
|
2162
2162
|
return t.ia = 1, st(this, i, t.value);
|
|
2163
2163
|
} else
|
|
2164
2164
|
t.U = i;
|
|
@@ -2168,7 +2168,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2168
2168
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2169
2169
|
return new k(n.arguments[t.A++], t.scope);
|
|
2170
2170
|
if (n.type === "NewExpression") {
|
|
2171
|
-
if (i instanceof
|
|
2171
|
+
if (i instanceof B && !i.Ab || w(this, this.j, oe(this, n.callee) + " is not a constructor"), i === this.qa)
|
|
2172
2172
|
t.B = _e(this);
|
|
2173
2173
|
else {
|
|
2174
2174
|
var a = i.h.prototype;
|
|
@@ -2181,7 +2181,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2181
2181
|
if (t.eb)
|
|
2182
2182
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2183
2183
|
else {
|
|
2184
|
-
if (t.eb = !0, i instanceof
|
|
2184
|
+
if (t.eb = !0, i instanceof B || w(this, this.j, oe(this, n.callee) + " is not a function"), e = i.node) {
|
|
2185
2185
|
for (n = Jt(this, e.body, i.Va), r = _e(this), i = 0; i < t.F.length; i++)
|
|
2186
2186
|
this.g(r, i, t.F[i]);
|
|
2187
2187
|
for (this.g(n.object, "arguments", r), i = 0; i < e.oa.length; i++)
|
|
@@ -2195,9 +2195,9 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2195
2195
|
try {
|
|
2196
2196
|
r = Le(String(i), "eval" + this.Hb++);
|
|
2197
2197
|
} catch (c) {
|
|
2198
|
-
|
|
2198
|
+
w(this, this.T, "Invalid code: " + c.message);
|
|
2199
2199
|
}
|
|
2200
|
-
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, bt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Jt(this, r, n) :
|
|
2200
|
+
return i = this.ya(), i.type = "EvalProgram_", i.body = r.body, bt(i, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = Jt(this, r, n) : rt(this, r, n), this.value = void 0, new k(i, n);
|
|
2201
2201
|
}
|
|
2202
2202
|
else if (i.Ta)
|
|
2203
2203
|
t.scope.S || (t.B = Kt(this, t.B)), t.value = i.Ta.apply(t.B, t.F);
|
|
@@ -2207,7 +2207,7 @@ g.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2207
2207
|
t.value = c, s.za = !1;
|
|
2208
2208
|
}), this.za = !0, t.scope.S || (t.B = Kt(this, t.B)), i.Za.apply(t.B, r);
|
|
2209
2209
|
} else
|
|
2210
|
-
|
|
2210
|
+
w(this, this.j, oe(this, n.callee) + " is not callable");
|
|
2211
2211
|
}
|
|
2212
2212
|
};
|
|
2213
2213
|
g.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2253,13 +2253,13 @@ g.prototype.stepExpressionStatement = function(e, t, n) {
|
|
|
2253
2253
|
};
|
|
2254
2254
|
g.prototype.stepForInStatement = function(e, t, n) {
|
|
2255
2255
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2256
|
-
return t.scope.S &&
|
|
2256
|
+
return t.scope.S && w(this, this.T, "for-in loop variable declaration may not have an initializer"), new k(n.left, t.scope);
|
|
2257
2257
|
if (!t.Ca)
|
|
2258
2258
|
return t.Ca = !0, t.pa || (t.pa = t.value), new k(n.right, t.scope);
|
|
2259
2259
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
2260
2260
|
e:
|
|
2261
2261
|
for (; ; ) {
|
|
2262
|
-
if (t.u instanceof
|
|
2262
|
+
if (t.u instanceof B)
|
|
2263
2263
|
for (t.wa || (t.wa = Object.getOwnPropertyNames(t.u.h)); ; ) {
|
|
2264
2264
|
var r = t.wa.shift();
|
|
2265
2265
|
if (r === void 0)
|
|
@@ -2283,7 +2283,7 @@ g.prototype.stepForInStatement = function(e, t, n) {
|
|
|
2283
2283
|
}
|
|
2284
2284
|
if (!t.wb)
|
|
2285
2285
|
if (t.wb = !0, e = n.left, e.type === "VariableDeclaration")
|
|
2286
|
-
t.pa = [
|
|
2286
|
+
t.pa = [We, e.fa[0].id.name];
|
|
2287
2287
|
else
|
|
2288
2288
|
return t.pa = null, t = new k(e, t.scope), t.sa = !0, t;
|
|
2289
2289
|
if (t.pa || (t.pa = t.value), !t.ta && (t.ta = !0, e = t.Ra, r = fn(this, t.pa, e)))
|
|
@@ -2320,7 +2320,7 @@ g.prototype.stepFunctionExpression = function(e, t, n) {
|
|
|
2320
2320
|
};
|
|
2321
2321
|
g.prototype.stepIdentifier = function(e, t, n) {
|
|
2322
2322
|
if (e.pop(), t.sa)
|
|
2323
|
-
e[e.length - 1].value = [
|
|
2323
|
+
e[e.length - 1].value = [We, n.name];
|
|
2324
2324
|
else {
|
|
2325
2325
|
if (t = un(this, n.name), this.P)
|
|
2326
2326
|
return st(this, t, this.Na);
|
|
@@ -2383,7 +2383,7 @@ g.prototype.stepObjectExpression = function(e, t, n) {
|
|
|
2383
2383
|
return t.Pa = a, new k(i.value, t.scope);
|
|
2384
2384
|
}
|
|
2385
2385
|
for (s in t.Ja)
|
|
2386
|
-
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s,
|
|
2386
|
+
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, nt, {
|
|
2387
2387
|
configurable: !0,
|
|
2388
2388
|
enumerable: !0,
|
|
2389
2389
|
get: n.get,
|
|
@@ -2439,7 +2439,7 @@ g.prototype.stepThisExpression = function(e) {
|
|
|
2439
2439
|
};
|
|
2440
2440
|
g.prototype.stepThrowStatement = function(e, t, n) {
|
|
2441
2441
|
if (t.ka)
|
|
2442
|
-
|
|
2442
|
+
w(this, t.value);
|
|
2443
2443
|
else
|
|
2444
2444
|
return t.ka = !0, new k(n.K, t.scope);
|
|
2445
2445
|
};
|
|
@@ -2473,11 +2473,11 @@ g.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2473
2473
|
case "delete":
|
|
2474
2474
|
if (n = !0, Array.isArray(r)) {
|
|
2475
2475
|
var i = r[0];
|
|
2476
|
-
i ===
|
|
2476
|
+
i === We && (i = t.scope), r = String(r[1]);
|
|
2477
2477
|
try {
|
|
2478
2478
|
delete i.h[r];
|
|
2479
2479
|
} catch {
|
|
2480
|
-
t.scope.S ?
|
|
2480
|
+
t.scope.S ? w(this, this.j, "Cannot delete property '" + r + "' of '" + i + "'") : n = !1;
|
|
2481
2481
|
}
|
|
2482
2482
|
}
|
|
2483
2483
|
r = n;
|
|
@@ -2518,7 +2518,7 @@ g.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2518
2518
|
g.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2519
2519
|
n = n.fa;
|
|
2520
2520
|
var r = t.A || 0, i = n[r];
|
|
2521
|
-
for (t.Bb && i && (
|
|
2521
|
+
for (t.Bb && i && (vr(this, i.id.name, t.value), t.Bb = !1, i = n[++r]); i; ) {
|
|
2522
2522
|
if (i.ua)
|
|
2523
2523
|
return t.A = r, t.Bb = !0, t.Pa = i.id.name, new k(i.ua, t.scope);
|
|
2524
2524
|
i = n[++r];
|
|
@@ -2544,7 +2544,7 @@ g.prototype.pseudoToNative = g.prototype.R;
|
|
|
2544
2544
|
g.prototype.getGlobalScope = g.prototype.Xb;
|
|
2545
2545
|
g.prototype.getStateStack = g.prototype.Yb;
|
|
2546
2546
|
g.prototype.setStateStack = g.prototype.ec;
|
|
2547
|
-
g.VALUE_IN_DESCRIPTOR =
|
|
2547
|
+
g.VALUE_IN_DESCRIPTOR = nt;
|
|
2548
2548
|
const Ei = (e) => e.split(`
|
|
2549
2549
|
`).map((t) => {
|
|
2550
2550
|
const n = t.trim();
|
|
@@ -2570,41 +2570,41 @@ const Ei = (e) => e.split(`
|
|
|
2570
2570
|
const c = {
|
|
2571
2571
|
...r,
|
|
2572
2572
|
...i
|
|
2573
|
-
}, f =
|
|
2573
|
+
}, f = hr({
|
|
2574
2574
|
builder: e,
|
|
2575
2575
|
context: t,
|
|
2576
2576
|
event: n,
|
|
2577
2577
|
state: c
|
|
2578
|
-
}),
|
|
2578
|
+
}), m = f.map(([E]) => {
|
|
2579
2579
|
const O = nr(E);
|
|
2580
2580
|
return `var ${E} = ${O} === undefined ? undefined : JSON.parse(${O});`;
|
|
2581
2581
|
}).join(`
|
|
2582
2582
|
`), y = Ei(s);
|
|
2583
2583
|
if (y === "") {
|
|
2584
|
-
|
|
2584
|
+
Re.warn("Skipping evaluation of empty code block.");
|
|
2585
2585
|
return;
|
|
2586
2586
|
}
|
|
2587
|
-
const
|
|
2587
|
+
const x = `
|
|
2588
2588
|
function theFunction() {
|
|
2589
|
-
${
|
|
2589
|
+
${m}
|
|
2590
2590
|
|
|
2591
2591
|
${y}
|
|
2592
2592
|
}
|
|
2593
2593
|
theFunction();
|
|
2594
|
-
`,
|
|
2595
|
-
const $ =
|
|
2594
|
+
`, U = (E, O) => {
|
|
2595
|
+
const $ = mr(c, E, O);
|
|
2596
2596
|
a == null || a($);
|
|
2597
|
-
},
|
|
2598
|
-
f.forEach(([$,
|
|
2599
|
-
const
|
|
2600
|
-
E.setProperty(O, nr($),
|
|
2601
|
-
}), E.setProperty(O, "setRootState", E.createNativeFunction(
|
|
2597
|
+
}, N = function(E, O) {
|
|
2598
|
+
f.forEach(([$, X]) => {
|
|
2599
|
+
const v = JSON.stringify(X);
|
|
2600
|
+
E.setProperty(O, nr($), v);
|
|
2601
|
+
}), E.setProperty(O, "setRootState", E.createNativeFunction(U));
|
|
2602
2602
|
};
|
|
2603
2603
|
try {
|
|
2604
|
-
const E = new g(
|
|
2604
|
+
const E = new g(x, N);
|
|
2605
2605
|
return E.run(), E.pseudoToNative(E.value);
|
|
2606
2606
|
} catch (E) {
|
|
2607
|
-
|
|
2607
|
+
Re.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
2608
2608
|
e: E
|
|
2609
2609
|
});
|
|
2610
2610
|
return;
|
|
@@ -2619,9 +2619,9 @@ const Ai = () => {
|
|
|
2619
2619
|
if (!Ti())
|
|
2620
2620
|
return !1;
|
|
2621
2621
|
const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
2622
|
-
return e && t && !n ? (
|
|
2623
|
-
}, ji = (e) =>
|
|
2624
|
-
function
|
|
2622
|
+
return e && t && !n ? (Re.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
2623
|
+
}, ji = (e) => Ue() || Ai() ? li(e) : Ii(e);
|
|
2624
|
+
function it({
|
|
2625
2625
|
code: e,
|
|
2626
2626
|
context: t,
|
|
2627
2627
|
localState: n,
|
|
@@ -2631,7 +2631,7 @@ function ot({
|
|
|
2631
2631
|
isExpression: s = !0
|
|
2632
2632
|
}) {
|
|
2633
2633
|
if (e === "") {
|
|
2634
|
-
|
|
2634
|
+
Re.warn("Skipping evaluation of empty code block.");
|
|
2635
2635
|
return;
|
|
2636
2636
|
}
|
|
2637
2637
|
const c = {
|
|
@@ -2648,7 +2648,7 @@ function ot({
|
|
|
2648
2648
|
try {
|
|
2649
2649
|
return ji(c);
|
|
2650
2650
|
} catch (f) {
|
|
2651
|
-
|
|
2651
|
+
Re.error("Failed code evaluation: " + f.message, {
|
|
2652
2652
|
code: e
|
|
2653
2653
|
});
|
|
2654
2654
|
return;
|
|
@@ -2673,14 +2673,14 @@ const Ri = ({
|
|
|
2673
2673
|
}
|
|
2674
2674
|
};
|
|
2675
2675
|
for (const c in e.bindings) {
|
|
2676
|
-
const f = e.bindings[c],
|
|
2676
|
+
const f = e.bindings[c], m = it({
|
|
2677
2677
|
code: f,
|
|
2678
2678
|
localState: n,
|
|
2679
2679
|
rootState: r,
|
|
2680
2680
|
rootSetState: i,
|
|
2681
2681
|
context: t
|
|
2682
2682
|
});
|
|
2683
|
-
|
|
2683
|
+
mr(s, c, m);
|
|
2684
2684
|
}
|
|
2685
2685
|
return s;
|
|
2686
2686
|
};
|
|
@@ -2707,10 +2707,10 @@ function Oi(e, t, n = {}) {
|
|
|
2707
2707
|
c = n.leading === !1 ? 0 : Date.now(), s = null, a = e.apply(r, i), s || (r = i = null);
|
|
2708
2708
|
};
|
|
2709
2709
|
return function() {
|
|
2710
|
-
const
|
|
2711
|
-
!c && n.leading === !1 && (c =
|
|
2712
|
-
const y = t - (
|
|
2713
|
-
return r = this, i = arguments, y <= 0 || y > t ? (s && (clearTimeout(s), s = null), c =
|
|
2710
|
+
const m = Date.now();
|
|
2711
|
+
!c && n.leading === !1 && (c = m);
|
|
2712
|
+
const y = t - (m - c);
|
|
2713
|
+
return r = this, i = arguments, y <= 0 || y > t ? (s && (clearTimeout(s), s = null), c = m, a = e.apply(r, i), s || (r = i = null)) : !s && n.trailing !== !1 && (s = setTimeout(f, y)), a;
|
|
2714
2714
|
};
|
|
2715
2715
|
}
|
|
2716
2716
|
function je(e, ...t) {
|
|
@@ -2728,7 +2728,7 @@ function Pi(e) {
|
|
|
2728
2728
|
for (const t of e)
|
|
2729
2729
|
switch (t.trigger) {
|
|
2730
2730
|
case "pageLoad":
|
|
2731
|
-
|
|
2731
|
+
xr(t);
|
|
2732
2732
|
break;
|
|
2733
2733
|
case "hover":
|
|
2734
2734
|
Bi(t);
|
|
@@ -2754,7 +2754,7 @@ function Ni(e) {
|
|
|
2754
2754
|
t.indexOf(r) === -1 && t.push(r);
|
|
2755
2755
|
return t;
|
|
2756
2756
|
}
|
|
2757
|
-
function
|
|
2757
|
+
function xr(e) {
|
|
2758
2758
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
2759
2759
|
if (!t.length) {
|
|
2760
2760
|
mn(e.elementId || e.id || "");
|
|
@@ -2808,14 +2808,14 @@ function Mi(e) {
|
|
|
2808
2808
|
leading: !1
|
|
2809
2809
|
});
|
|
2810
2810
|
function c(y) {
|
|
2811
|
-
const
|
|
2812
|
-
return
|
|
2811
|
+
const x = y.getBoundingClientRect(), U = window.innerHeight, E = (e.thresholdPercent || 0) / 100 * U;
|
|
2812
|
+
return x.bottom > E && x.top < U - E;
|
|
2813
2813
|
}
|
|
2814
2814
|
const f = e.steps[0].styles;
|
|
2815
|
-
function
|
|
2815
|
+
function m() {
|
|
2816
2816
|
je(n.style, f);
|
|
2817
2817
|
}
|
|
2818
|
-
|
|
2818
|
+
m(), setTimeout(() => {
|
|
2819
2819
|
n.style.transition = `all ${e.duration}s ${pn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
2820
2820
|
}), document.addEventListener("scroll", s, {
|
|
2821
2821
|
capture: !0,
|
|
@@ -2855,7 +2855,7 @@ const Di = ({
|
|
|
2855
2855
|
} = e;
|
|
2856
2856
|
if (!(n != null && n.collection))
|
|
2857
2857
|
return;
|
|
2858
|
-
const i =
|
|
2858
|
+
const i = it({
|
|
2859
2859
|
code: n.collection,
|
|
2860
2860
|
localState: t.localState,
|
|
2861
2861
|
rootState: t.rootState,
|
|
@@ -2865,20 +2865,20 @@ const Di = ({
|
|
|
2865
2865
|
if (!Array.isArray(i))
|
|
2866
2866
|
return;
|
|
2867
2867
|
const a = n.collection.split(".").pop(), s = n.itemName || (a ? a + "Item" : "item");
|
|
2868
|
-
return i.map((f,
|
|
2868
|
+
return i.map((f, m) => ({
|
|
2869
2869
|
context: {
|
|
2870
2870
|
...t,
|
|
2871
2871
|
localState: {
|
|
2872
2872
|
...t.localState,
|
|
2873
|
-
$index:
|
|
2873
|
+
$index: m,
|
|
2874
2874
|
$item: f,
|
|
2875
2875
|
[s]: f,
|
|
2876
|
-
[`$${s}Index`]:
|
|
2876
|
+
[`$${s}Index`]: m
|
|
2877
2877
|
}
|
|
2878
2878
|
},
|
|
2879
2879
|
block: r
|
|
2880
2880
|
}));
|
|
2881
|
-
},
|
|
2881
|
+
}, kr = {
|
|
2882
2882
|
small: {
|
|
2883
2883
|
min: 320,
|
|
2884
2884
|
default: 321,
|
|
@@ -2894,11 +2894,11 @@ const Di = ({
|
|
|
2894
2894
|
default: 991,
|
|
2895
2895
|
max: 1200
|
|
2896
2896
|
}
|
|
2897
|
-
}, rr = (e, t =
|
|
2897
|
+
}, rr = (e, t = kr) => `@media (max-width: ${t[e].max}px)`, wr = ({
|
|
2898
2898
|
small: e,
|
|
2899
2899
|
medium: t
|
|
2900
2900
|
}) => {
|
|
2901
|
-
const n = Qt(
|
|
2901
|
+
const n = Qt(kr);
|
|
2902
2902
|
if (!e || !t)
|
|
2903
2903
|
return n;
|
|
2904
2904
|
const r = Math.floor(e / 2);
|
|
@@ -2920,10 +2920,10 @@ const Di = ({
|
|
|
2920
2920
|
min: a,
|
|
2921
2921
|
default: a + 1
|
|
2922
2922
|
}, n;
|
|
2923
|
-
}, Ui = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(),
|
|
2923
|
+
}, Ui = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Cr = (e) => Object.entries(e).map(([n, r]) => {
|
|
2924
2924
|
if (typeof r == "string")
|
|
2925
2925
|
return `${Ui(n)}: ${r};`;
|
|
2926
|
-
}).filter(gt), Li = (e) =>
|
|
2926
|
+
}).filter(gt), Li = (e) => Cr(e).join(`
|
|
2927
2927
|
`), Gt = ({
|
|
2928
2928
|
mediaQuery: e,
|
|
2929
2929
|
className: t,
|
|
@@ -2937,7 +2937,7 @@ const Di = ({
|
|
|
2937
2937
|
}` : r;
|
|
2938
2938
|
};
|
|
2939
2939
|
function xt(e) {
|
|
2940
|
-
return /* @__PURE__ */
|
|
2940
|
+
return /* @__PURE__ */ p("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
|
|
2941
2941
|
}
|
|
2942
2942
|
function _i(e) {
|
|
2943
2943
|
function t() {
|
|
@@ -2960,37 +2960,37 @@ function _i(e) {
|
|
|
2960
2960
|
rootSetState: e.context.rootSetState,
|
|
2961
2961
|
context: e.context.context,
|
|
2962
2962
|
shouldEvaluateBindings: !0
|
|
2963
|
-
}), i = r.responsiveStyles, a = e.context.content, s =
|
|
2963
|
+
}), i = r.responsiveStyles, a = e.context.content, s = wr(
|
|
2964
2964
|
((E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) || {}
|
|
2965
|
-
), c = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium,
|
|
2965
|
+
), c = i == null ? void 0 : i.large, f = i == null ? void 0 : i.medium, m = i == null ? void 0 : i.small, y = r.id;
|
|
2966
2966
|
if (!y)
|
|
2967
2967
|
return "";
|
|
2968
|
-
const
|
|
2968
|
+
const x = c ? Gt({
|
|
2969
2969
|
className: y,
|
|
2970
2970
|
styles: c
|
|
2971
|
-
}) : "",
|
|
2971
|
+
}) : "", U = f ? Gt({
|
|
2972
2972
|
className: y,
|
|
2973
2973
|
styles: f,
|
|
2974
2974
|
mediaQuery: rr(
|
|
2975
2975
|
"medium",
|
|
2976
2976
|
s
|
|
2977
2977
|
)
|
|
2978
|
-
}) : "",
|
|
2978
|
+
}) : "", N = m ? Gt({
|
|
2979
2979
|
className: y,
|
|
2980
|
-
styles:
|
|
2980
|
+
styles: m,
|
|
2981
2981
|
mediaQuery: rr(
|
|
2982
2982
|
"small",
|
|
2983
2983
|
s
|
|
2984
2984
|
)
|
|
2985
2985
|
}) : "";
|
|
2986
|
-
return [
|
|
2986
|
+
return [x, U, N].join(" ");
|
|
2987
2987
|
}
|
|
2988
|
-
return /* @__PURE__ */
|
|
2988
|
+
return /* @__PURE__ */ p(M, { children: n() && t() ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(xt, { styles: n() }) }) : null });
|
|
2989
2989
|
}
|
|
2990
2990
|
function Wi(e) {
|
|
2991
2991
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2992
2992
|
}
|
|
2993
|
-
const Vi = (e) => `on${Wi(e)}`, $i = (e, t) => (n) =>
|
|
2993
|
+
const Vi = (e) => `on${Wi(e)}`, $i = (e, t) => (n) => it({
|
|
2994
2994
|
code: e,
|
|
2995
2995
|
context: t.context,
|
|
2996
2996
|
localState: t.localState,
|
|
@@ -2999,7 +2999,7 @@ const Vi = (e) => `on${Wi(e)}`, $i = (e, t) => (n) => ot({
|
|
|
2999
2999
|
event: n,
|
|
3000
3000
|
isExpression: !1
|
|
3001
3001
|
});
|
|
3002
|
-
function
|
|
3002
|
+
function Er(e) {
|
|
3003
3003
|
var r;
|
|
3004
3004
|
const t = {}, n = (r = e.block.actions) != null ? r : {};
|
|
3005
3005
|
for (const i in n) {
|
|
@@ -3008,7 +3008,7 @@ function Ir(e) {
|
|
|
3008
3008
|
const a = n[i];
|
|
3009
3009
|
let s = Vi(i);
|
|
3010
3010
|
if (e.stripPrefix)
|
|
3011
|
-
switch (
|
|
3011
|
+
switch (ot) {
|
|
3012
3012
|
case "vue":
|
|
3013
3013
|
s = s.replace("v-on:", "");
|
|
3014
3014
|
break;
|
|
@@ -3028,17 +3028,17 @@ function Hi({
|
|
|
3028
3028
|
const Ki = ({
|
|
3029
3029
|
block: e,
|
|
3030
3030
|
context: t
|
|
3031
|
-
}) =>
|
|
3031
|
+
}) => Ir(Hi({
|
|
3032
3032
|
style: e.style || {},
|
|
3033
3033
|
context: t,
|
|
3034
3034
|
block: e
|
|
3035
3035
|
}));
|
|
3036
|
-
function
|
|
3037
|
-
switch (
|
|
3036
|
+
function Ir(e) {
|
|
3037
|
+
switch (ot) {
|
|
3038
3038
|
case "svelte":
|
|
3039
3039
|
case "vue":
|
|
3040
3040
|
case "solid":
|
|
3041
|
-
return
|
|
3041
|
+
return Cr(e).join(" ");
|
|
3042
3042
|
case "qwik":
|
|
3043
3043
|
case "reactNative":
|
|
3044
3044
|
case "react":
|
|
@@ -3067,7 +3067,7 @@ function yn({
|
|
|
3067
3067
|
block: e,
|
|
3068
3068
|
context: t
|
|
3069
3069
|
}),
|
|
3070
|
-
[
|
|
3070
|
+
[tt()]: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
3071
3071
|
};
|
|
3072
3072
|
return Gi({
|
|
3073
3073
|
properties: n,
|
|
@@ -3076,7 +3076,7 @@ function yn({
|
|
|
3076
3076
|
});
|
|
3077
3077
|
}
|
|
3078
3078
|
function Xi(e) {
|
|
3079
|
-
return /* @__PURE__ */
|
|
3079
|
+
return /* @__PURE__ */ p(
|
|
3080
3080
|
en,
|
|
3081
3081
|
{
|
|
3082
3082
|
TagName: e.Wrapper,
|
|
@@ -3084,7 +3084,7 @@ function Xi(e) {
|
|
|
3084
3084
|
block: e.block,
|
|
3085
3085
|
context: e.context
|
|
3086
3086
|
}),
|
|
3087
|
-
actionAttributes:
|
|
3087
|
+
actionAttributes: Er({
|
|
3088
3088
|
block: e.block,
|
|
3089
3089
|
rootState: e.context.rootState,
|
|
3090
3090
|
rootSetState: e.context.rootSetState,
|
|
@@ -3097,7 +3097,7 @@ function Xi(e) {
|
|
|
3097
3097
|
);
|
|
3098
3098
|
}
|
|
3099
3099
|
function Yi(e) {
|
|
3100
|
-
return /* @__PURE__ */
|
|
3100
|
+
return /* @__PURE__ */ p(
|
|
3101
3101
|
e.Wrapper,
|
|
3102
3102
|
{
|
|
3103
3103
|
...e.wrapperProps,
|
|
@@ -3106,7 +3106,7 @@ function Yi(e) {
|
|
|
3106
3106
|
block: e.block,
|
|
3107
3107
|
context: e.context
|
|
3108
3108
|
}),
|
|
3109
|
-
...
|
|
3109
|
+
...Er({
|
|
3110
3110
|
block: e.block,
|
|
3111
3111
|
rootState: e.context.rootState,
|
|
3112
3112
|
rootSetState: e.context.rootSetState,
|
|
@@ -3153,7 +3153,7 @@ function ir(e) {
|
|
|
3153
3153
|
const [t, n] = V(
|
|
3154
3154
|
() => e.isInteractive ? Yi : e.componentRef
|
|
3155
3155
|
);
|
|
3156
|
-
return /* @__PURE__ */
|
|
3156
|
+
return /* @__PURE__ */ p(M, { children: e.componentRef ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(
|
|
3157
3157
|
t,
|
|
3158
3158
|
{
|
|
3159
3159
|
...Ji({
|
|
@@ -3166,7 +3166,7 @@ function ir(e) {
|
|
|
3166
3166
|
isInteractive: e.isInteractive,
|
|
3167
3167
|
contextValue: e.context
|
|
3168
3168
|
}),
|
|
3169
|
-
children: (r = e.blockChildren) == null ? void 0 : r.map((i) => /* @__PURE__ */
|
|
3169
|
+
children: (r = e.blockChildren) == null ? void 0 : r.map((i) => /* @__PURE__ */ p(
|
|
3170
3170
|
kt,
|
|
3171
3171
|
{
|
|
3172
3172
|
block: i,
|
|
@@ -3181,7 +3181,7 @@ function ir(e) {
|
|
|
3181
3181
|
}
|
|
3182
3182
|
function qi(e) {
|
|
3183
3183
|
const [t, n] = V(() => e.repeatContext);
|
|
3184
|
-
return /* @__PURE__ */
|
|
3184
|
+
return /* @__PURE__ */ p(tn.Provider, { value: t, children: /* @__PURE__ */ p(
|
|
3185
3185
|
kt,
|
|
3186
3186
|
{
|
|
3187
3187
|
block: e.block,
|
|
@@ -3192,7 +3192,7 @@ function qi(e) {
|
|
|
3192
3192
|
) });
|
|
3193
3193
|
}
|
|
3194
3194
|
function kt(e) {
|
|
3195
|
-
var y,
|
|
3195
|
+
var y, x, U;
|
|
3196
3196
|
function t() {
|
|
3197
3197
|
return Di({
|
|
3198
3198
|
block: e.block,
|
|
@@ -3207,8 +3207,8 @@ function kt(e) {
|
|
|
3207
3207
|
});
|
|
3208
3208
|
}
|
|
3209
3209
|
function r() {
|
|
3210
|
-
var
|
|
3211
|
-
return (
|
|
3210
|
+
var N;
|
|
3211
|
+
return (N = e.block.repeat) != null && N.collection ? e.block : vt({
|
|
3212
3212
|
block: e.block,
|
|
3213
3213
|
localState: e.context.localState,
|
|
3214
3214
|
rootState: e.context.rootState,
|
|
@@ -3225,25 +3225,25 @@ function kt(e) {
|
|
|
3225
3225
|
var O, $;
|
|
3226
3226
|
if ((O = e.block.repeat) != null && O.collection)
|
|
3227
3227
|
return !!(($ = n == null ? void 0 : n()) != null && $.length);
|
|
3228
|
-
const
|
|
3229
|
-
return ("show" in r() ? r().show : !0) && !
|
|
3228
|
+
const N = "hide" in r() ? r().hide : !1;
|
|
3229
|
+
return ("show" in r() ? r().show : !0) && !N;
|
|
3230
3230
|
}
|
|
3231
3231
|
function s() {
|
|
3232
3232
|
var E, O;
|
|
3233
3233
|
return !((E = t == null ? void 0 : t()) != null && E.component) && !n() ? (O = r().children) != null ? O : [] : [];
|
|
3234
3234
|
}
|
|
3235
3235
|
function c() {
|
|
3236
|
-
var
|
|
3236
|
+
var N, E, O, $, X, v, W, Z, ne;
|
|
3237
3237
|
return {
|
|
3238
|
-
blockChildren: (
|
|
3238
|
+
blockChildren: (N = r().children) != null ? N : [],
|
|
3239
3239
|
componentRef: (E = t == null ? void 0 : t()) == null ? void 0 : E.component,
|
|
3240
3240
|
componentOptions: {
|
|
3241
3241
|
...oi(r()),
|
|
3242
3242
|
builderContext: e.context,
|
|
3243
|
-
...((O = t == null ? void 0 : t()) == null ? void 0 : O.name) === "Core:Button" || (($ = t == null ? void 0 : t()) == null ? void 0 : $.name) === "Symbol" || ((
|
|
3243
|
+
...((O = t == null ? void 0 : t()) == null ? void 0 : O.name) === "Core:Button" || (($ = t == null ? void 0 : t()) == null ? void 0 : $.name) === "Symbol" || ((X = t == null ? void 0 : t()) == null ? void 0 : X.name) === "Columns" ? {
|
|
3244
3244
|
builderLinkComponent: e.linkComponent
|
|
3245
3245
|
} : {},
|
|
3246
|
-
...((
|
|
3246
|
+
...((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Symbol" || ((W = t == null ? void 0 : t()) == null ? void 0 : W.name) === "Columns" ? {
|
|
3247
3247
|
builderComponents: e.registeredComponents
|
|
3248
3248
|
} : {}
|
|
3249
3249
|
},
|
|
@@ -3251,22 +3251,22 @@ function kt(e) {
|
|
|
3251
3251
|
linkComponent: e.linkComponent,
|
|
3252
3252
|
registeredComponents: e.registeredComponents,
|
|
3253
3253
|
builderBlock: r(),
|
|
3254
|
-
includeBlockProps: ((
|
|
3254
|
+
includeBlockProps: ((Z = t == null ? void 0 : t()) == null ? void 0 : Z.noWrap) === !0,
|
|
3255
3255
|
isInteractive: !((ne = t == null ? void 0 : t()) != null && ne.isRSC)
|
|
3256
3256
|
};
|
|
3257
3257
|
}
|
|
3258
|
-
const [f,
|
|
3259
|
-
return
|
|
3260
|
-
const
|
|
3261
|
-
E &&
|
|
3258
|
+
const [f, m] = V(() => e.context);
|
|
3259
|
+
return J(() => {
|
|
3260
|
+
const N = r().id, E = r().animations;
|
|
3261
|
+
E && N && Pi(
|
|
3262
3262
|
E.filter((O) => O.trigger !== "hover").map((O) => ({
|
|
3263
3263
|
...O,
|
|
3264
|
-
elementId:
|
|
3264
|
+
elementId: N
|
|
3265
3265
|
}))
|
|
3266
3266
|
);
|
|
3267
|
-
}, []), /* @__PURE__ */
|
|
3268
|
-
/* @__PURE__ */
|
|
3269
|
-
(y = t == null ? void 0 : t()) != null && y.noWrap ? /* @__PURE__ */
|
|
3267
|
+
}, []), /* @__PURE__ */ p(M, { children: a() ? /* @__PURE__ */ ce(M, { children: [
|
|
3268
|
+
/* @__PURE__ */ p(_i, { block: e.block, context: e.context }),
|
|
3269
|
+
(y = t == null ? void 0 : t()) != null && y.noWrap ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(
|
|
3270
3270
|
ir,
|
|
3271
3271
|
{
|
|
3272
3272
|
componentRef: c().componentRef,
|
|
@@ -3279,16 +3279,16 @@ function kt(e) {
|
|
|
3279
3279
|
includeBlockProps: c().includeBlockProps,
|
|
3280
3280
|
isInteractive: c().isInteractive
|
|
3281
3281
|
}
|
|
3282
|
-
) }) : /* @__PURE__ */
|
|
3282
|
+
) }) : /* @__PURE__ */ p(M, { children: n() ? /* @__PURE__ */ p(M, { children: (U = n()) == null ? void 0 : U.map((N, E) => /* @__PURE__ */ p(
|
|
3283
3283
|
qi,
|
|
3284
3284
|
{
|
|
3285
|
-
repeatContext:
|
|
3286
|
-
block:
|
|
3285
|
+
repeatContext: N.context,
|
|
3286
|
+
block: N.block,
|
|
3287
3287
|
registeredComponents: e.registeredComponents,
|
|
3288
3288
|
linkComponent: e.linkComponent
|
|
3289
3289
|
},
|
|
3290
3290
|
E
|
|
3291
|
-
)) }) : /* @__PURE__ */
|
|
3291
|
+
)) }) : /* @__PURE__ */ p(M, { children: /* @__PURE__ */ ce(
|
|
3292
3292
|
Xi,
|
|
3293
3293
|
{
|
|
3294
3294
|
Wrapper: i(),
|
|
@@ -3296,7 +3296,7 @@ function kt(e) {
|
|
|
3296
3296
|
context: e.context,
|
|
3297
3297
|
linkComponent: e.linkComponent,
|
|
3298
3298
|
children: [
|
|
3299
|
-
/* @__PURE__ */
|
|
3299
|
+
/* @__PURE__ */ p(
|
|
3300
3300
|
ir,
|
|
3301
3301
|
{
|
|
3302
3302
|
componentRef: c().componentRef,
|
|
@@ -3310,15 +3310,15 @@ function kt(e) {
|
|
|
3310
3310
|
isInteractive: c().isInteractive
|
|
3311
3311
|
}
|
|
3312
3312
|
),
|
|
3313
|
-
(
|
|
3313
|
+
(x = s()) == null ? void 0 : x.map((N) => /* @__PURE__ */ p(
|
|
3314
3314
|
kt,
|
|
3315
3315
|
{
|
|
3316
|
-
block:
|
|
3316
|
+
block: N,
|
|
3317
3317
|
context: f,
|
|
3318
3318
|
registeredComponents: e.registeredComponents,
|
|
3319
3319
|
linkComponent: e.linkComponent
|
|
3320
3320
|
},
|
|
3321
|
-
|
|
3321
|
+
N.id
|
|
3322
3322
|
))
|
|
3323
3323
|
]
|
|
3324
3324
|
}
|
|
@@ -3356,8 +3356,8 @@ function Zi(e) {
|
|
|
3356
3356
|
"*"
|
|
3357
3357
|
));
|
|
3358
3358
|
}
|
|
3359
|
-
return /* @__PURE__ */ ce(
|
|
3360
|
-
/* @__PURE__ */
|
|
3359
|
+
return /* @__PURE__ */ ce(M, { children: [
|
|
3360
|
+
/* @__PURE__ */ p(
|
|
3361
3361
|
e.BlocksWrapper,
|
|
3362
3362
|
{
|
|
3363
3363
|
className: t() + " props-blocks-wrapper-4f2c12d8",
|
|
@@ -3371,7 +3371,7 @@ function Zi(e) {
|
|
|
3371
3371
|
children: e.children
|
|
3372
3372
|
}
|
|
3373
3373
|
),
|
|
3374
|
-
/* @__PURE__ */
|
|
3374
|
+
/* @__PURE__ */ p("style", { children: `.props-blocks-wrapper-4f2c12d8 {
|
|
3375
3375
|
display: flex;
|
|
3376
3376
|
flex-direction: column;
|
|
3377
3377
|
align-items: stretch;
|
|
@@ -3380,8 +3380,8 @@ function Zi(e) {
|
|
|
3380
3380
|
}
|
|
3381
3381
|
function wt(e) {
|
|
3382
3382
|
var r, i, a;
|
|
3383
|
-
const t = zn(tn), n = zn(
|
|
3384
|
-
return /* @__PURE__ */
|
|
3383
|
+
const t = zn(tn), n = zn(fr);
|
|
3384
|
+
return /* @__PURE__ */ p(
|
|
3385
3385
|
Zi,
|
|
3386
3386
|
{
|
|
3387
3387
|
blocks: e.blocks,
|
|
@@ -3390,7 +3390,7 @@ function wt(e) {
|
|
|
3390
3390
|
styleProp: e.styleProp,
|
|
3391
3391
|
BlocksWrapper: (r = e.context) == null ? void 0 : r.BlocksWrapper,
|
|
3392
3392
|
BlocksWrapperProps: (i = e.context) == null ? void 0 : i.BlocksWrapperProps,
|
|
3393
|
-
children: e.blocks ? /* @__PURE__ */
|
|
3393
|
+
children: e.blocks ? /* @__PURE__ */ p(M, { children: (a = e.blocks) == null ? void 0 : a.map((s) => /* @__PURE__ */ p(
|
|
3394
3394
|
kt,
|
|
3395
3395
|
{
|
|
3396
3396
|
block: s,
|
|
@@ -3404,77 +3404,77 @@ function wt(e) {
|
|
|
3404
3404
|
);
|
|
3405
3405
|
}
|
|
3406
3406
|
function Qi(e) {
|
|
3407
|
-
var
|
|
3407
|
+
var X;
|
|
3408
3408
|
const [t, n] = V(
|
|
3409
3409
|
() => typeof e.space == "number" ? e.space || 0 : 20
|
|
3410
3410
|
), [r, i] = V(() => e.columns || []), [a, s] = V(
|
|
3411
3411
|
() => e.stackColumnsAt || "tablet"
|
|
3412
3412
|
);
|
|
3413
|
-
function c(
|
|
3413
|
+
function c(v) {
|
|
3414
3414
|
var W;
|
|
3415
|
-
return ((W = r[
|
|
3415
|
+
return ((W = r[v]) == null ? void 0 : W.width) || 100 / r.length;
|
|
3416
3416
|
}
|
|
3417
|
-
function f(
|
|
3417
|
+
function f(v) {
|
|
3418
3418
|
const W = t * (r.length - 1) / r.length;
|
|
3419
|
-
return `calc(${c(
|
|
3419
|
+
return `calc(${c(v)}% - ${W}px)`;
|
|
3420
3420
|
}
|
|
3421
|
-
function
|
|
3422
|
-
stackedStyle:
|
|
3421
|
+
function m({
|
|
3422
|
+
stackedStyle: v,
|
|
3423
3423
|
desktopStyle: W
|
|
3424
3424
|
}) {
|
|
3425
|
-
return a === "tablet" ?
|
|
3425
|
+
return a === "tablet" ? v : W;
|
|
3426
3426
|
}
|
|
3427
3427
|
function y({
|
|
3428
|
-
stackedStyle:
|
|
3428
|
+
stackedStyle: v,
|
|
3429
3429
|
desktopStyle: W
|
|
3430
3430
|
}) {
|
|
3431
|
-
return a === "never" ? W :
|
|
3431
|
+
return a === "never" ? W : v;
|
|
3432
3432
|
}
|
|
3433
|
-
const [
|
|
3433
|
+
const [x, U] = V(
|
|
3434
3434
|
() => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
|
|
3435
3435
|
);
|
|
3436
|
-
function
|
|
3436
|
+
function N() {
|
|
3437
3437
|
return {
|
|
3438
|
-
"--flex-dir":
|
|
3439
|
-
"--flex-dir-tablet":
|
|
3440
|
-
stackedStyle:
|
|
3438
|
+
"--flex-dir": x,
|
|
3439
|
+
"--flex-dir-tablet": m({
|
|
3440
|
+
stackedStyle: x,
|
|
3441
3441
|
desktopStyle: "row"
|
|
3442
3442
|
})
|
|
3443
3443
|
};
|
|
3444
3444
|
}
|
|
3445
|
-
function E(
|
|
3446
|
-
const W =
|
|
3445
|
+
function E(v) {
|
|
3446
|
+
const W = v === 0 ? 0 : t, Z = f(v), ne = `${W}px`, H = "100%", re = 0;
|
|
3447
3447
|
return {
|
|
3448
3448
|
...{
|
|
3449
3449
|
display: "flex",
|
|
3450
3450
|
flexDirection: "column",
|
|
3451
3451
|
alignItems: "stretch"
|
|
3452
3452
|
},
|
|
3453
|
-
width:
|
|
3453
|
+
width: Z,
|
|
3454
3454
|
["marginLeft"]: ne,
|
|
3455
3455
|
"--column-width-mobile": y({
|
|
3456
3456
|
stackedStyle: H,
|
|
3457
|
-
desktopStyle:
|
|
3457
|
+
desktopStyle: Z
|
|
3458
3458
|
}),
|
|
3459
3459
|
"--column-margin-left-mobile": y({
|
|
3460
3460
|
stackedStyle: re,
|
|
3461
3461
|
desktopStyle: ne
|
|
3462
3462
|
}),
|
|
3463
|
-
"--column-width-tablet":
|
|
3463
|
+
"--column-width-tablet": m({
|
|
3464
3464
|
stackedStyle: H,
|
|
3465
|
-
desktopStyle:
|
|
3465
|
+
desktopStyle: Z
|
|
3466
3466
|
}),
|
|
3467
|
-
"--column-margin-left-tablet":
|
|
3467
|
+
"--column-margin-left-tablet": m({
|
|
3468
3468
|
stackedStyle: re,
|
|
3469
3469
|
desktopStyle: ne
|
|
3470
3470
|
})
|
|
3471
3471
|
};
|
|
3472
3472
|
}
|
|
3473
|
-
function O(
|
|
3474
|
-
var
|
|
3475
|
-
return
|
|
3476
|
-
((ne = (
|
|
3477
|
-
)[
|
|
3473
|
+
function O(v) {
|
|
3474
|
+
var Z, ne;
|
|
3475
|
+
return wr(
|
|
3476
|
+
((ne = (Z = e.builderContext.content) == null ? void 0 : Z.meta) == null ? void 0 : ne.breakpoints) || {}
|
|
3477
|
+
)[v].max;
|
|
3478
3478
|
}
|
|
3479
3479
|
function $() {
|
|
3480
3480
|
return `
|
|
@@ -3503,27 +3503,27 @@ function Qi(e) {
|
|
|
3503
3503
|
},
|
|
3504
3504
|
`;
|
|
3505
3505
|
}
|
|
3506
|
-
return /* @__PURE__ */ ce(
|
|
3506
|
+
return /* @__PURE__ */ ce(M, { children: [
|
|
3507
3507
|
/* @__PURE__ */ ce(
|
|
3508
3508
|
"div",
|
|
3509
3509
|
{
|
|
3510
3510
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-6f826264`,
|
|
3511
|
-
style:
|
|
3511
|
+
style: N(),
|
|
3512
3512
|
children: [
|
|
3513
|
-
/* @__PURE__ */
|
|
3514
|
-
(
|
|
3513
|
+
/* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(xt, { styles: $() }) }),
|
|
3514
|
+
(X = e.columns) == null ? void 0 : X.map((v, W) => /* @__PURE__ */ p(
|
|
3515
3515
|
en,
|
|
3516
3516
|
{
|
|
3517
|
-
TagName:
|
|
3517
|
+
TagName: v.link ? e.builderLinkComponent || "a" : "div",
|
|
3518
3518
|
actionAttributes: {},
|
|
3519
3519
|
attributes: {
|
|
3520
|
-
...
|
|
3521
|
-
href:
|
|
3520
|
+
...v.link ? {
|
|
3521
|
+
href: v.link
|
|
3522
3522
|
} : {},
|
|
3523
|
-
[
|
|
3524
|
-
style:
|
|
3523
|
+
[tt()]: "builder-column",
|
|
3524
|
+
style: Ir(E(W))
|
|
3525
3525
|
},
|
|
3526
|
-
children: /* @__PURE__ */
|
|
3526
|
+
children: /* @__PURE__ */ p(
|
|
3527
3527
|
wt,
|
|
3528
3528
|
{
|
|
3529
3529
|
path: `component.options.columns.${W}.blocks`,
|
|
@@ -3534,7 +3534,7 @@ function Qi(e) {
|
|
|
3534
3534
|
context: e.builderContext,
|
|
3535
3535
|
registeredComponents: e.builderComponents,
|
|
3536
3536
|
linkComponent: e.builderLinkComponent,
|
|
3537
|
-
blocks:
|
|
3537
|
+
blocks: v.blocks
|
|
3538
3538
|
}
|
|
3539
3539
|
)
|
|
3540
3540
|
},
|
|
@@ -3543,14 +3543,14 @@ function Qi(e) {
|
|
|
3543
3543
|
]
|
|
3544
3544
|
}
|
|
3545
3545
|
),
|
|
3546
|
-
/* @__PURE__ */
|
|
3546
|
+
/* @__PURE__ */ p("style", { children: `.div-6f826264 {
|
|
3547
3547
|
display: flex;
|
|
3548
3548
|
line-height: normal;
|
|
3549
3549
|
}` })
|
|
3550
3550
|
] });
|
|
3551
3551
|
}
|
|
3552
3552
|
function eo(e) {
|
|
3553
|
-
return /* @__PURE__ */
|
|
3553
|
+
return /* @__PURE__ */ p("span", { children: e.children });
|
|
3554
3554
|
}
|
|
3555
3555
|
function or(e) {
|
|
3556
3556
|
return e.replace(/http(s)?:/, "");
|
|
@@ -3586,17 +3586,17 @@ function ro(e) {
|
|
|
3586
3586
|
var i, a, s, c;
|
|
3587
3587
|
function t() {
|
|
3588
3588
|
var y;
|
|
3589
|
-
const
|
|
3590
|
-
if (!
|
|
3589
|
+
const m = e.image || e.src;
|
|
3590
|
+
if (!m || // We can auto add srcset for cdn.builder.io and shopify
|
|
3591
3591
|
// images, otherwise you can supply this prop manually
|
|
3592
|
-
!(
|
|
3592
|
+
!(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
|
|
3593
3593
|
return e.srcset;
|
|
3594
3594
|
if (e.srcset && ((y = e.image) != null && y.includes("builder.io/api/v1/image"))) {
|
|
3595
3595
|
if (!e.srcset.includes(e.image.split("?")[0]))
|
|
3596
|
-
return console.debug("Removed given srcset"), zt(
|
|
3596
|
+
return console.debug("Removed given srcset"), zt(m);
|
|
3597
3597
|
} else if (e.image && !e.srcset)
|
|
3598
|
-
return zt(
|
|
3599
|
-
return zt(
|
|
3598
|
+
return zt(m);
|
|
3599
|
+
return zt(m);
|
|
3600
3600
|
}
|
|
3601
3601
|
function n() {
|
|
3602
3602
|
var f;
|
|
@@ -3612,11 +3612,11 @@ function ro(e) {
|
|
|
3612
3612
|
};
|
|
3613
3613
|
return e.aspectRatio ? f : void 0;
|
|
3614
3614
|
}
|
|
3615
|
-
return /* @__PURE__ */ ce(
|
|
3616
|
-
/* @__PURE__ */ ce(
|
|
3615
|
+
return /* @__PURE__ */ ce(M, { children: [
|
|
3616
|
+
/* @__PURE__ */ ce(M, { children: [
|
|
3617
3617
|
/* @__PURE__ */ ce("picture", { children: [
|
|
3618
|
-
n() ? /* @__PURE__ */
|
|
3619
|
-
/* @__PURE__ */
|
|
3618
|
+
n() ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p("source", { type: "image/webp", srcSet: n() }) }) : null,
|
|
3619
|
+
/* @__PURE__ */ p(
|
|
3620
3620
|
"img",
|
|
3621
3621
|
{
|
|
3622
3622
|
loading: "lazy",
|
|
@@ -3634,7 +3634,7 @@ function ro(e) {
|
|
|
3634
3634
|
}
|
|
3635
3635
|
)
|
|
3636
3636
|
] }),
|
|
3637
|
-
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */
|
|
3637
|
+
e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(
|
|
3638
3638
|
"div",
|
|
3639
3639
|
{
|
|
3640
3640
|
className: "builder-image-sizer div-40c70c9b",
|
|
@@ -3643,10 +3643,10 @@ function ro(e) {
|
|
|
3643
3643
|
}
|
|
3644
3644
|
}
|
|
3645
3645
|
) }) : null,
|
|
3646
|
-
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */
|
|
3647
|
-
!e.fitContent && e.children ? /* @__PURE__ */
|
|
3646
|
+
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */ p(M, { children: e.children }) : null,
|
|
3647
|
+
!e.fitContent && e.children ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
|
|
3648
3648
|
] }),
|
|
3649
|
-
/* @__PURE__ */
|
|
3649
|
+
/* @__PURE__ */ p("style", { children: `.img-40c70c9b {
|
|
3650
3650
|
opacity: 1;
|
|
3651
3651
|
transition: opacity 0.2s ease-in-out;
|
|
3652
3652
|
}.div-40c70c9b {
|
|
@@ -3666,7 +3666,7 @@ function ro(e) {
|
|
|
3666
3666
|
] });
|
|
3667
3667
|
}
|
|
3668
3668
|
function io(e) {
|
|
3669
|
-
return /* @__PURE__ */
|
|
3669
|
+
return /* @__PURE__ */ p(
|
|
3670
3670
|
"section",
|
|
3671
3671
|
{
|
|
3672
3672
|
...e.attributes,
|
|
@@ -3945,34 +3945,34 @@ const oo = {
|
|
|
3945
3945
|
};
|
|
3946
3946
|
function lo(e) {
|
|
3947
3947
|
const t = Zt(null), [n, r] = V(() => []), [i, a] = V(() => []);
|
|
3948
|
-
return
|
|
3948
|
+
return J(() => {
|
|
3949
3949
|
var c;
|
|
3950
3950
|
if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
|
|
3951
3951
|
return;
|
|
3952
3952
|
const s = t.current.getElementsByTagName("script");
|
|
3953
3953
|
for (let f = 0; f < s.length; f++) {
|
|
3954
|
-
const
|
|
3955
|
-
if (
|
|
3956
|
-
if (n.includes(
|
|
3954
|
+
const m = s[f];
|
|
3955
|
+
if (m.src) {
|
|
3956
|
+
if (n.includes(m.src))
|
|
3957
3957
|
continue;
|
|
3958
|
-
n.push(
|
|
3958
|
+
n.push(m.src);
|
|
3959
3959
|
const y = document.createElement("script");
|
|
3960
|
-
y.async = !0, y.src =
|
|
3961
|
-
} else if (!
|
|
3960
|
+
y.async = !0, y.src = m.src, document.head.appendChild(y);
|
|
3961
|
+
} else if (!m.type || [
|
|
3962
3962
|
"text/javascript",
|
|
3963
3963
|
"application/javascript",
|
|
3964
3964
|
"application/ecmascript"
|
|
3965
|
-
].includes(
|
|
3966
|
-
if (i.includes(
|
|
3965
|
+
].includes(m.type)) {
|
|
3966
|
+
if (i.includes(m.innerText))
|
|
3967
3967
|
continue;
|
|
3968
3968
|
try {
|
|
3969
|
-
i.push(
|
|
3969
|
+
i.push(m.innerText), new Function(m.innerText)();
|
|
3970
3970
|
} catch (y) {
|
|
3971
3971
|
console.warn("`CustomCode`: Error running script:", y);
|
|
3972
3972
|
}
|
|
3973
3973
|
}
|
|
3974
3974
|
}
|
|
3975
|
-
}, []), /* @__PURE__ */
|
|
3975
|
+
}, []), /* @__PURE__ */ p(
|
|
3976
3976
|
"div",
|
|
3977
3977
|
{
|
|
3978
3978
|
ref: t,
|
|
@@ -4012,24 +4012,24 @@ function ho(e) {
|
|
|
4012
4012
|
function f() {
|
|
4013
4013
|
if (!t.current || !t.current.getElementsByTagName)
|
|
4014
4014
|
return;
|
|
4015
|
-
const
|
|
4016
|
-
for (let y = 0; y <
|
|
4017
|
-
const
|
|
4018
|
-
if (
|
|
4019
|
-
n.push(
|
|
4020
|
-
const
|
|
4021
|
-
|
|
4022
|
-
} else if (fo(
|
|
4015
|
+
const m = t.current.getElementsByTagName("script");
|
|
4016
|
+
for (let y = 0; y < m.length; y++) {
|
|
4017
|
+
const x = m[y];
|
|
4018
|
+
if (x.src && !n.includes(x.src)) {
|
|
4019
|
+
n.push(x.src);
|
|
4020
|
+
const U = document.createElement("script");
|
|
4021
|
+
U.async = !0, U.src = x.src, document.head.appendChild(U);
|
|
4022
|
+
} else if (fo(x) && !i.includes(x.innerText))
|
|
4023
4023
|
try {
|
|
4024
|
-
i.push(
|
|
4025
|
-
} catch (
|
|
4026
|
-
console.warn("`Embed`: Error running script:",
|
|
4024
|
+
i.push(x.innerText), new Function(x.innerText)();
|
|
4025
|
+
} catch (U) {
|
|
4026
|
+
console.warn("`Embed`: Error running script:", U);
|
|
4027
4027
|
}
|
|
4028
4028
|
}
|
|
4029
4029
|
}
|
|
4030
|
-
return
|
|
4030
|
+
return J(() => {
|
|
4031
4031
|
t.current && !s && (c(!0), f());
|
|
4032
|
-
}, [t.current, s]), /* @__PURE__ */
|
|
4032
|
+
}, [t.current, s]), /* @__PURE__ */ p(
|
|
4033
4033
|
"div",
|
|
4034
4034
|
{
|
|
4035
4035
|
className: "builder-embed",
|
|
@@ -4065,15 +4065,15 @@ const po = {
|
|
|
4065
4065
|
onChange: (e) => {
|
|
4066
4066
|
e.delete("srcset"), e.delete("noWebp");
|
|
4067
4067
|
function n(s, c = 6e4) {
|
|
4068
|
-
return new Promise((f,
|
|
4068
|
+
return new Promise((f, m) => {
|
|
4069
4069
|
const y = document.createElement("img");
|
|
4070
|
-
let
|
|
4070
|
+
let x = !1;
|
|
4071
4071
|
y.onload = () => {
|
|
4072
|
-
|
|
4073
|
-
}, y.addEventListener("error", (
|
|
4074
|
-
console.warn("Image load failed",
|
|
4072
|
+
x = !0, f(y);
|
|
4073
|
+
}, y.addEventListener("error", (U) => {
|
|
4074
|
+
console.warn("Image load failed", U.error), m(U.error);
|
|
4075
4075
|
}), y.src = s, setTimeout(() => {
|
|
4076
|
-
|
|
4076
|
+
x || m(new Error("Image load timed out"));
|
|
4077
4077
|
}, c);
|
|
4078
4078
|
});
|
|
4079
4079
|
}
|
|
@@ -4160,7 +4160,7 @@ const po = {
|
|
|
4160
4160
|
static: !0
|
|
4161
4161
|
};
|
|
4162
4162
|
function yo(e) {
|
|
4163
|
-
return /* @__PURE__ */
|
|
4163
|
+
return /* @__PURE__ */ p(
|
|
4164
4164
|
"img",
|
|
4165
4165
|
{
|
|
4166
4166
|
style: {
|
|
@@ -4229,7 +4229,7 @@ const vo = {
|
|
|
4229
4229
|
};
|
|
4230
4230
|
function So(e) {
|
|
4231
4231
|
var t, n, r;
|
|
4232
|
-
return /* @__PURE__ */
|
|
4232
|
+
return /* @__PURE__ */ p(
|
|
4233
4233
|
"div",
|
|
4234
4234
|
{
|
|
4235
4235
|
style: {
|
|
@@ -4238,7 +4238,7 @@ function So(e) {
|
|
|
4238
4238
|
...!((t = e.builderContext.context) != null && t.symbolId) && {
|
|
4239
4239
|
"builder-slot": e.name
|
|
4240
4240
|
},
|
|
4241
|
-
children: /* @__PURE__ */
|
|
4241
|
+
children: /* @__PURE__ */ p(
|
|
4242
4242
|
wt,
|
|
4243
4243
|
{
|
|
4244
4244
|
parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
|
|
@@ -4304,7 +4304,7 @@ const xo = {
|
|
|
4304
4304
|
};
|
|
4305
4305
|
function wo(e) {
|
|
4306
4306
|
var t;
|
|
4307
|
-
return /* @__PURE__ */
|
|
4307
|
+
return /* @__PURE__ */ p(
|
|
4308
4308
|
"div",
|
|
4309
4309
|
{
|
|
4310
4310
|
className: "builder-text",
|
|
@@ -4398,7 +4398,7 @@ const Co = {
|
|
|
4398
4398
|
}]
|
|
4399
4399
|
};
|
|
4400
4400
|
function Eo(e) {
|
|
4401
|
-
var r, i, a, s, c, f,
|
|
4401
|
+
var r, i, a, s, c, f, m;
|
|
4402
4402
|
function t() {
|
|
4403
4403
|
return {
|
|
4404
4404
|
...e.autoPlay === !0 ? {
|
|
@@ -4430,7 +4430,7 @@ function Eo(e) {
|
|
|
4430
4430
|
position: "relative"
|
|
4431
4431
|
},
|
|
4432
4432
|
children: [
|
|
4433
|
-
/* @__PURE__ */
|
|
4433
|
+
/* @__PURE__ */ p(
|
|
4434
4434
|
"video",
|
|
4435
4435
|
{
|
|
4436
4436
|
className: "builder-video",
|
|
@@ -4452,10 +4452,10 @@ function Eo(e) {
|
|
|
4452
4452
|
},
|
|
4453
4453
|
src: e.video || "no-src",
|
|
4454
4454
|
poster: e.posterImage,
|
|
4455
|
-
children: e.lazyLoad ? null : /* @__PURE__ */
|
|
4455
|
+
children: e.lazyLoad ? null : /* @__PURE__ */ p("source", { type: "video/mp4", src: e.video })
|
|
4456
4456
|
}
|
|
4457
4457
|
),
|
|
4458
|
-
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */
|
|
4458
|
+
e.aspectRatio && !(e.fitContent && ((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length)) ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(
|
|
4459
4459
|
"div",
|
|
4460
4460
|
{
|
|
4461
4461
|
style: {
|
|
@@ -4466,7 +4466,7 @@ function Eo(e) {
|
|
|
4466
4466
|
}
|
|
4467
4467
|
}
|
|
4468
4468
|
) }) : null,
|
|
4469
|
-
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */
|
|
4469
|
+
(c = (s = e.builderBlock) == null ? void 0 : s.children) != null && c.length && e.fitContent ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(
|
|
4470
4470
|
"div",
|
|
4471
4471
|
{
|
|
4472
4472
|
style: {
|
|
@@ -4477,7 +4477,7 @@ function Eo(e) {
|
|
|
4477
4477
|
children: e.children
|
|
4478
4478
|
}
|
|
4479
4479
|
) }) : null,
|
|
4480
|
-
(
|
|
4480
|
+
(m = (f = e.builderBlock) == null ? void 0 : f.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(
|
|
4481
4481
|
"div",
|
|
4482
4482
|
{
|
|
4483
4483
|
style: {
|
|
@@ -4523,7 +4523,7 @@ const ar = () => [{
|
|
|
4523
4523
|
component: io,
|
|
4524
4524
|
...vo
|
|
4525
4525
|
}, {
|
|
4526
|
-
component:
|
|
4526
|
+
component: Ho,
|
|
4527
4527
|
...xo
|
|
4528
4528
|
}, {
|
|
4529
4529
|
component: wo,
|
|
@@ -4624,27 +4624,27 @@ const ar = () => [{
|
|
|
4624
4624
|
thisScriptEl?.remove();
|
|
4625
4625
|
}
|
|
4626
4626
|
return;
|
|
4627
|
-
}`,
|
|
4627
|
+
}`, Tr = "builderIoAbTest", Ar = "builderIoRenderContent", mt = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4628
4628
|
...t,
|
|
4629
4629
|
testVariationId: t.id,
|
|
4630
4630
|
id: e == null ? void 0 : e.id
|
|
4631
4631
|
})), Ao = ({
|
|
4632
4632
|
canTrack: e,
|
|
4633
4633
|
content: t
|
|
4634
|
-
}) => !(!(mt(t).length > 0) || !e ||
|
|
4635
|
-
window.${
|
|
4636
|
-
window.${
|
|
4634
|
+
}) => !(!(mt(t).length > 0) || !e || Ue()), jo = (e) => e === "react" || e === "reactNative", jr = jo(ot), Ro = () => `
|
|
4635
|
+
window.${Tr} = ${Io}
|
|
4636
|
+
window.${Ar} = ${To}
|
|
4637
4637
|
`, Oo = (e, t) => `
|
|
4638
|
-
window.${
|
|
4639
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4638
|
+
window.${Tr}(
|
|
4639
|
+
"${t}",${JSON.stringify(e)}, ${jr}
|
|
4640
4640
|
)`, Po = ({
|
|
4641
4641
|
contentId: e,
|
|
4642
4642
|
variationId: t
|
|
4643
|
-
}) => `window.${
|
|
4644
|
-
"${t}", "${e}", ${
|
|
4643
|
+
}) => `window.${Ar}(
|
|
4644
|
+
"${t}", "${e}", ${jr}
|
|
4645
4645
|
)`;
|
|
4646
4646
|
function qt(e) {
|
|
4647
|
-
return /* @__PURE__ */
|
|
4647
|
+
return /* @__PURE__ */ p(
|
|
4648
4648
|
"script",
|
|
4649
4649
|
{
|
|
4650
4650
|
dangerouslySetInnerHTML: { __html: e.scriptStr },
|
|
@@ -4652,15 +4652,10 @@ function qt(e) {
|
|
|
4652
4652
|
}
|
|
4653
4653
|
);
|
|
4654
4654
|
}
|
|
4655
|
-
const No = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
4656
|
-
function Or(e, t) {
|
|
4657
|
-
const n = new URL(t.origin), r = n.hostname;
|
|
4658
|
-
return (e || No).findIndex((i) => i.startsWith("*.") ? r.endsWith(i.slice(1)) : i === r) > -1;
|
|
4659
|
-
}
|
|
4660
4655
|
function sr(e) {
|
|
4661
4656
|
return Math.round(e * 1e3) / 1e3;
|
|
4662
4657
|
}
|
|
4663
|
-
const
|
|
4658
|
+
const No = (e, t, n = !0) => {
|
|
4664
4659
|
if (!(e instanceof HTMLElement))
|
|
4665
4660
|
return null;
|
|
4666
4661
|
let r = n ? e : e.parentElement;
|
|
@@ -4671,7 +4666,7 @@ const Bo = (e, t, n = !0) => {
|
|
|
4671
4666
|
return r;
|
|
4672
4667
|
} while (r = r.parentElement);
|
|
4673
4668
|
return null;
|
|
4674
|
-
},
|
|
4669
|
+
}, Bo = (e) => No(e, (t) => {
|
|
4675
4670
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4676
4671
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4677
4672
|
}), lr = ({
|
|
@@ -4683,8 +4678,8 @@ const Bo = (e, t, n = !0) => {
|
|
|
4683
4678
|
x: a,
|
|
4684
4679
|
y: s
|
|
4685
4680
|
};
|
|
4686
|
-
},
|
|
4687
|
-
const t = e.target, n = t &&
|
|
4681
|
+
}, Mo = (e) => {
|
|
4682
|
+
const t = e.target, n = t && Bo(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4688
4683
|
return {
|
|
4689
4684
|
targetBuilderElement: r || void 0,
|
|
4690
4685
|
metadata: {
|
|
@@ -4699,120 +4694,35 @@ const Bo = (e, t, n = !0) => {
|
|
|
4699
4694
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4700
4695
|
}
|
|
4701
4696
|
};
|
|
4702
|
-
}, Fo = "0.12.7", Uo = () => {
|
|
4703
|
-
qr("insertMenu", {
|
|
4704
|
-
name: "_default",
|
|
4705
|
-
default: !0,
|
|
4706
|
-
items: [{
|
|
4707
|
-
name: "Box"
|
|
4708
|
-
}, {
|
|
4709
|
-
name: "Text"
|
|
4710
|
-
}, {
|
|
4711
|
-
name: "Image"
|
|
4712
|
-
}, {
|
|
4713
|
-
name: "Columns"
|
|
4714
|
-
}, {
|
|
4715
|
-
name: "Core:Section"
|
|
4716
|
-
}, {
|
|
4717
|
-
name: "Core:Button"
|
|
4718
|
-
}, {
|
|
4719
|
-
name: "Embed"
|
|
4720
|
-
}, {
|
|
4721
|
-
name: "Custom Code"
|
|
4722
|
-
}]
|
|
4723
|
-
});
|
|
4724
|
-
};
|
|
4725
|
-
let cr = !1;
|
|
4726
|
-
const Lo = (e = {}) => {
|
|
4727
|
-
var t, n;
|
|
4728
|
-
cr || (cr = !0, Re() && ((t = window.parent) == null || t.postMessage({
|
|
4729
|
-
type: "builder.sdkInfo",
|
|
4730
|
-
data: {
|
|
4731
|
-
target: We,
|
|
4732
|
-
version: Fo,
|
|
4733
|
-
supportsPatchUpdates: !1,
|
|
4734
|
-
// Supports builder-model="..." attribute which is needed to
|
|
4735
|
-
// scope our '+ add block' button styling
|
|
4736
|
-
supportsAddBlockScoping: !0,
|
|
4737
|
-
supportsCustomBreakpoints: !0
|
|
4738
|
-
}
|
|
4739
|
-
}, "*"), (n = window.parent) == null || n.postMessage({
|
|
4740
|
-
type: "builder.updateContent",
|
|
4741
|
-
data: {
|
|
4742
|
-
options: e
|
|
4743
|
-
}
|
|
4744
|
-
}, "*"), window.addEventListener("message", (r) => {
|
|
4745
|
-
var a, s;
|
|
4746
|
-
if (!Or(e.trustedHosts, r))
|
|
4747
|
-
return;
|
|
4748
|
-
const {
|
|
4749
|
-
data: i
|
|
4750
|
-
} = r;
|
|
4751
|
-
if (i != null && i.type)
|
|
4752
|
-
switch (i.type) {
|
|
4753
|
-
case "builder.evaluate": {
|
|
4754
|
-
const c = i.data.text, f = i.data.arguments || [], p = i.data.id, y = new Function(c);
|
|
4755
|
-
let v, F = null;
|
|
4756
|
-
try {
|
|
4757
|
-
v = y.apply(null, f);
|
|
4758
|
-
} catch (P) {
|
|
4759
|
-
F = P;
|
|
4760
|
-
}
|
|
4761
|
-
F ? (a = window.parent) == null || a.postMessage({
|
|
4762
|
-
type: "builder.evaluateError",
|
|
4763
|
-
data: {
|
|
4764
|
-
id: p,
|
|
4765
|
-
error: F.message
|
|
4766
|
-
}
|
|
4767
|
-
}, "*") : v && typeof v.then == "function" ? v.then((P) => {
|
|
4768
|
-
var E;
|
|
4769
|
-
(E = window.parent) == null || E.postMessage({
|
|
4770
|
-
type: "builder.evaluateResult",
|
|
4771
|
-
data: {
|
|
4772
|
-
id: p,
|
|
4773
|
-
result: P
|
|
4774
|
-
}
|
|
4775
|
-
}, "*");
|
|
4776
|
-
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
4777
|
-
type: "builder.evaluateResult",
|
|
4778
|
-
data: {
|
|
4779
|
-
result: v,
|
|
4780
|
-
id: p
|
|
4781
|
-
}
|
|
4782
|
-
}, "*");
|
|
4783
|
-
break;
|
|
4784
|
-
}
|
|
4785
|
-
}
|
|
4786
|
-
})));
|
|
4787
4697
|
};
|
|
4788
|
-
function
|
|
4698
|
+
function Do(e) {
|
|
4789
4699
|
var re, I, we, _, Ce, ue, K;
|
|
4790
4700
|
const t = Zt(null), [n, r] = V(() => 0);
|
|
4791
4701
|
V(() => !0);
|
|
4792
|
-
function i(
|
|
4793
|
-
var A,
|
|
4702
|
+
function i(C) {
|
|
4703
|
+
var A, D;
|
|
4794
4704
|
const T = {
|
|
4795
4705
|
...e.builderContextSignal.rootState,
|
|
4796
|
-
...
|
|
4706
|
+
...C
|
|
4797
4707
|
};
|
|
4798
|
-
e.builderContextSignal.rootSetState ? (
|
|
4799
|
-
...
|
|
4708
|
+
e.builderContextSignal.rootSetState ? (D = (A = e.builderContextSignal).rootSetState) == null || D.call(A, T) : e.setBuilderContextSignal((L) => ({
|
|
4709
|
+
...L,
|
|
4800
4710
|
rootState: T
|
|
4801
4711
|
}));
|
|
4802
4712
|
}
|
|
4803
|
-
function a(
|
|
4804
|
-
var A,
|
|
4713
|
+
function a(C) {
|
|
4714
|
+
var A, D, L, Q, Ee;
|
|
4805
4715
|
const T = {
|
|
4806
4716
|
...e.builderContextSignal.content,
|
|
4807
|
-
...
|
|
4717
|
+
...C,
|
|
4808
4718
|
data: {
|
|
4809
4719
|
...(A = e.builderContextSignal.content) == null ? void 0 : A.data,
|
|
4810
|
-
...
|
|
4720
|
+
...C == null ? void 0 : C.data
|
|
4811
4721
|
},
|
|
4812
4722
|
meta: {
|
|
4813
|
-
...(
|
|
4814
|
-
...
|
|
4815
|
-
breakpoints: ((
|
|
4723
|
+
...(D = e.builderContextSignal.content) == null ? void 0 : D.meta,
|
|
4724
|
+
...C == null ? void 0 : C.meta,
|
|
4725
|
+
breakpoints: ((L = C == null ? void 0 : C.meta) == null ? void 0 : L.breakpoints) || ((Ee = (Q = e.builderContextSignal.content) == null ? void 0 : Q.meta) == null ? void 0 : Ee.breakpoints)
|
|
4816
4726
|
}
|
|
4817
4727
|
};
|
|
4818
4728
|
e.setBuilderContextSignal((lt) => ({
|
|
@@ -4823,70 +4733,64 @@ function _o(e) {
|
|
|
4823
4733
|
V(() => 0);
|
|
4824
4734
|
const [s, c] = V(
|
|
4825
4735
|
() => !1
|
|
4826
|
-
), [f,
|
|
4736
|
+
), [f, m] = V(
|
|
4827
4737
|
() => e.contentWrapper || "div"
|
|
4828
4738
|
);
|
|
4829
|
-
function y(
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
if (!G || G !== ((A = e.builderContextSignal.content) == null ? void 0 : A.id))
|
|
4839
|
-
return;
|
|
4840
|
-
U && a({
|
|
4739
|
+
function y(C) {
|
|
4740
|
+
return Jr({
|
|
4741
|
+
model: e.model,
|
|
4742
|
+
trustedHosts: e.trustedHosts,
|
|
4743
|
+
callbacks: {
|
|
4744
|
+
configureSdk: (T) => {
|
|
4745
|
+
var L;
|
|
4746
|
+
const { breakpoints: A, contentId: D } = T;
|
|
4747
|
+
!D || D !== ((L = e.builderContextSignal.content) == null ? void 0 : L.id) || A && (a({
|
|
4841
4748
|
meta: {
|
|
4842
|
-
breakpoints:
|
|
4749
|
+
breakpoints: A
|
|
4843
4750
|
}
|
|
4844
|
-
}), r(n + 1);
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
case "builder.contentUpdate": {
|
|
4852
|
-
const B = T.data, U = B.key || B.alias || B.entry || B.modelName, G = B.data;
|
|
4853
|
-
U === e.model && (a(G), r(n + 1));
|
|
4854
|
-
break;
|
|
4751
|
+
}), r(n + 1));
|
|
4752
|
+
},
|
|
4753
|
+
animation: (T) => {
|
|
4754
|
+
xr(T);
|
|
4755
|
+
},
|
|
4756
|
+
contentUpdate: (T) => {
|
|
4757
|
+
a(T), r(n + 1);
|
|
4855
4758
|
}
|
|
4856
4759
|
}
|
|
4760
|
+
})(C);
|
|
4857
4761
|
}
|
|
4858
|
-
function
|
|
4762
|
+
function x() {
|
|
4859
4763
|
var T, A;
|
|
4860
|
-
const
|
|
4861
|
-
|
|
4862
|
-
code:
|
|
4764
|
+
const C = (A = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : A.jsCode;
|
|
4765
|
+
C && it({
|
|
4766
|
+
code: C,
|
|
4863
4767
|
context: e.context || {},
|
|
4864
4768
|
localState: void 0,
|
|
4865
4769
|
rootState: e.builderContextSignal.rootState,
|
|
4866
4770
|
rootSetState: e.builderContextSignal.rootSetState
|
|
4867
4771
|
});
|
|
4868
4772
|
}
|
|
4869
|
-
const [
|
|
4870
|
-
function $(
|
|
4773
|
+
const [U, N] = V(() => ({})), [E, O] = V(() => !1);
|
|
4774
|
+
function $(C) {
|
|
4871
4775
|
var T, A;
|
|
4872
4776
|
if (e.builderContextSignal.content) {
|
|
4873
|
-
const
|
|
4777
|
+
const D = (T = e.builderContextSignal.content) == null ? void 0 : T.testVariationId, L = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
|
|
4874
4778
|
Xn({
|
|
4875
4779
|
type: "click",
|
|
4876
4780
|
canTrack: yt(e.canTrack),
|
|
4877
|
-
contentId:
|
|
4781
|
+
contentId: L,
|
|
4878
4782
|
apiKey: e.apiKey,
|
|
4879
|
-
variationId:
|
|
4880
|
-
...
|
|
4783
|
+
variationId: D !== L ? D : void 0,
|
|
4784
|
+
...Mo(C),
|
|
4881
4785
|
unique: !E
|
|
4882
4786
|
});
|
|
4883
4787
|
}
|
|
4884
4788
|
E || O(!0);
|
|
4885
4789
|
}
|
|
4886
|
-
function
|
|
4887
|
-
return
|
|
4790
|
+
function X(C) {
|
|
4791
|
+
return C.replace(
|
|
4888
4792
|
/{{([^}]+)}}/g,
|
|
4889
|
-
(T, A) =>
|
|
4793
|
+
(T, A) => it({
|
|
4890
4794
|
code: A,
|
|
4891
4795
|
context: e.context || {},
|
|
4892
4796
|
localState: void 0,
|
|
@@ -4895,32 +4799,32 @@ function _o(e) {
|
|
|
4895
4799
|
})
|
|
4896
4800
|
);
|
|
4897
4801
|
}
|
|
4898
|
-
function
|
|
4899
|
-
ei(
|
|
4900
|
-
var
|
|
4901
|
-
const
|
|
4802
|
+
function v({ url: C, key: T }) {
|
|
4803
|
+
ei(C).then((A) => A.json()).then((A) => {
|
|
4804
|
+
var L, Q;
|
|
4805
|
+
const D = {
|
|
4902
4806
|
...e.builderContextSignal.rootState,
|
|
4903
4807
|
[T]: A
|
|
4904
4808
|
};
|
|
4905
|
-
(
|
|
4809
|
+
(Q = (L = e.builderContextSignal).rootSetState) == null || Q.call(L, D), U[T] = !0;
|
|
4906
4810
|
}).catch((A) => {
|
|
4907
|
-
console.error("error fetching dynamic data",
|
|
4811
|
+
console.error("error fetching dynamic data", C, A);
|
|
4908
4812
|
});
|
|
4909
4813
|
}
|
|
4910
4814
|
function W() {
|
|
4911
|
-
var T, A,
|
|
4912
|
-
const
|
|
4913
|
-
Object.entries(
|
|
4914
|
-
if (
|
|
4915
|
-
const Ee =
|
|
4916
|
-
|
|
4815
|
+
var T, A, D;
|
|
4816
|
+
const C = (D = (A = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : A.httpRequests) != null ? D : {};
|
|
4817
|
+
Object.entries(C).forEach(([L, Q]) => {
|
|
4818
|
+
if (Q && (!U[L] || Ae())) {
|
|
4819
|
+
const Ee = X(Q);
|
|
4820
|
+
v({
|
|
4917
4821
|
url: Ee,
|
|
4918
|
-
key:
|
|
4822
|
+
key: L
|
|
4919
4823
|
});
|
|
4920
4824
|
}
|
|
4921
4825
|
});
|
|
4922
4826
|
}
|
|
4923
|
-
function
|
|
4827
|
+
function Z() {
|
|
4924
4828
|
Ae() && window.dispatchEvent(
|
|
4925
4829
|
new CustomEvent(
|
|
4926
4830
|
"builder:component:stateChange",
|
|
@@ -4935,8 +4839,8 @@ function _o(e) {
|
|
|
4935
4839
|
)
|
|
4936
4840
|
);
|
|
4937
4841
|
}
|
|
4938
|
-
function ne(
|
|
4939
|
-
r(n + 1), window.addEventListener("message", y),
|
|
4842
|
+
function ne(C) {
|
|
4843
|
+
r(n + 1), window.addEventListener("message", y), qr(), Zr({
|
|
4940
4844
|
...e.locale ? {
|
|
4941
4845
|
locale: e.locale
|
|
4942
4846
|
} : {},
|
|
@@ -4952,29 +4856,29 @@ function _o(e) {
|
|
|
4952
4856
|
}), Object.values(
|
|
4953
4857
|
e.builderContextSignal.componentInfos
|
|
4954
4858
|
).forEach((T) => {
|
|
4955
|
-
var
|
|
4859
|
+
var D;
|
|
4956
4860
|
const A = Qr(T);
|
|
4957
|
-
(
|
|
4861
|
+
(D = window.parent) == null || D.postMessage(A, "*");
|
|
4958
4862
|
}), window.addEventListener(
|
|
4959
4863
|
"builder:component:stateChangeListenerActivated",
|
|
4960
|
-
|
|
4864
|
+
Z
|
|
4961
4865
|
);
|
|
4962
4866
|
}
|
|
4963
|
-
function H(
|
|
4964
|
-
const T = new URL(location.href).searchParams, A = T.get("builder.preview"),
|
|
4867
|
+
function H(C) {
|
|
4868
|
+
const T = new URL(location.href).searchParams, A = T.get("builder.preview"), D = T.get(
|
|
4965
4869
|
`builder.preview.${A}`
|
|
4966
|
-
),
|
|
4967
|
-
A === e.model &&
|
|
4870
|
+
), L = T.get("apiKey") || T.get("builder.space");
|
|
4871
|
+
A === e.model && L === e.apiKey && (!e.content || D === e.content.id) && dr({
|
|
4968
4872
|
model: e.model,
|
|
4969
4873
|
apiKey: e.apiKey,
|
|
4970
4874
|
apiVersion: e.builderContextSignal.apiVersion
|
|
4971
|
-
}).then((
|
|
4972
|
-
|
|
4875
|
+
}).then((Q) => {
|
|
4876
|
+
Q && a(Q);
|
|
4973
4877
|
});
|
|
4974
4878
|
}
|
|
4975
|
-
return
|
|
4976
|
-
var
|
|
4977
|
-
return (
|
|
4879
|
+
return J(() => {
|
|
4880
|
+
var C;
|
|
4881
|
+
return (C = t.current) == null || C.addEventListener(
|
|
4978
4882
|
"initeditingbldr",
|
|
4979
4883
|
ne
|
|
4980
4884
|
), () => {
|
|
@@ -4984,9 +4888,9 @@ function _o(e) {
|
|
|
4984
4888
|
ne
|
|
4985
4889
|
);
|
|
4986
4890
|
};
|
|
4987
|
-
}, []),
|
|
4988
|
-
var
|
|
4989
|
-
return (
|
|
4891
|
+
}, []), J(() => {
|
|
4892
|
+
var C;
|
|
4893
|
+
return (C = t.current) == null || C.addEventListener(
|
|
4990
4894
|
"initpreviewingbldr",
|
|
4991
4895
|
H
|
|
4992
4896
|
), () => {
|
|
@@ -4996,51 +4900,51 @@ function _o(e) {
|
|
|
4996
4900
|
H
|
|
4997
4901
|
);
|
|
4998
4902
|
};
|
|
4999
|
-
}, []),
|
|
5000
|
-
var
|
|
5001
|
-
if (
|
|
4903
|
+
}, []), J(() => {
|
|
4904
|
+
var C, T;
|
|
4905
|
+
if (Ue()) {
|
|
5002
4906
|
if (Ae() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && yt(e.canTrack)) {
|
|
5003
|
-
const
|
|
4907
|
+
const D = (C = e.builderContextSignal.content) == null ? void 0 : C.testVariationId, L = (T = e.builderContextSignal.content) == null ? void 0 : T.id, Q = e.apiKey;
|
|
5004
4908
|
Xn({
|
|
5005
4909
|
type: "impression",
|
|
5006
4910
|
canTrack: !0,
|
|
5007
|
-
contentId:
|
|
5008
|
-
apiKey:
|
|
5009
|
-
variationId:
|
|
4911
|
+
contentId: L,
|
|
4912
|
+
apiKey: Q,
|
|
4913
|
+
variationId: D !== L ? D : void 0
|
|
5010
4914
|
});
|
|
5011
4915
|
}
|
|
5012
|
-
|
|
4916
|
+
Yr() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
|
|
5013
4917
|
}
|
|
5014
|
-
}, []),
|
|
5015
|
-
e.apiKey ||
|
|
4918
|
+
}, []), J(() => {
|
|
4919
|
+
e.apiKey || Re.error(
|
|
5016
4920
|
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5017
|
-
),
|
|
5018
|
-
}, []),
|
|
4921
|
+
), x(), W(), Z();
|
|
4922
|
+
}, []), J(() => {
|
|
5019
4923
|
e.content && a(e.content);
|
|
5020
|
-
}, [e.content]),
|
|
5021
|
-
}, [s]),
|
|
5022
|
-
|
|
5023
|
-
}, [(I = (re = e.builderContextSignal.content) == null ? void 0 : re.data) == null ? void 0 : I.jsCode]),
|
|
4924
|
+
}, [e.content]), J(() => {
|
|
4925
|
+
}, [s]), J(() => {
|
|
4926
|
+
x();
|
|
4927
|
+
}, [(I = (re = e.builderContextSignal.content) == null ? void 0 : re.data) == null ? void 0 : I.jsCode]), J(() => {
|
|
5024
4928
|
W();
|
|
5025
|
-
}, [(_ = (we = e.builderContextSignal.content) == null ? void 0 : we.data) == null ? void 0 : _.httpRequests]),
|
|
5026
|
-
|
|
5027
|
-
}, [e.builderContextSignal.rootState]),
|
|
4929
|
+
}, [(_ = (we = e.builderContextSignal.content) == null ? void 0 : we.data) == null ? void 0 : _.httpRequests]), J(() => {
|
|
4930
|
+
Z();
|
|
4931
|
+
}, [e.builderContextSignal.rootState]), J(() => {
|
|
5028
4932
|
e.data && i(e.data);
|
|
5029
|
-
}, [e.data]),
|
|
4933
|
+
}, [e.data]), J(() => {
|
|
5030
4934
|
e.locale && i({
|
|
5031
4935
|
locale: e.locale
|
|
5032
4936
|
});
|
|
5033
|
-
}, [e.locale]),
|
|
5034
|
-
|
|
4937
|
+
}, [e.locale]), J(() => () => {
|
|
4938
|
+
Ue() && (window.removeEventListener("message", y), window.removeEventListener(
|
|
5035
4939
|
"builder:component:stateChangeListenerActivated",
|
|
5036
|
-
|
|
4940
|
+
Z
|
|
5037
4941
|
));
|
|
5038
|
-
}, []), /* @__PURE__ */
|
|
4942
|
+
}, []), /* @__PURE__ */ p(tn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ zr(
|
|
5039
4943
|
f,
|
|
5040
4944
|
{
|
|
5041
4945
|
key: n,
|
|
5042
4946
|
ref: t,
|
|
5043
|
-
onClick: (
|
|
4947
|
+
onClick: (C) => $(C),
|
|
5044
4948
|
"builder-content-id": (Ce = e.builderContextSignal.content) == null ? void 0 : Ce.id,
|
|
5045
4949
|
"builder-model": e.model,
|
|
5046
4950
|
...e.showContent ? {} : {
|
|
@@ -5053,7 +4957,7 @@ function _o(e) {
|
|
|
5053
4957
|
e.children
|
|
5054
4958
|
) }) : null });
|
|
5055
4959
|
}
|
|
5056
|
-
const
|
|
4960
|
+
const Fo = (e) => {
|
|
5057
4961
|
var a, s;
|
|
5058
4962
|
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;
|
|
5059
4963
|
let i = "";
|
|
@@ -5068,34 +4972,34 @@ font-weight: 400;
|
|
|
5068
4972
|
for (const c in e.files) {
|
|
5069
4973
|
if (!(String(Number(c)) === c))
|
|
5070
4974
|
continue;
|
|
5071
|
-
const
|
|
5072
|
-
|
|
4975
|
+
const m = e.files[c];
|
|
4976
|
+
m && m !== r && (i += `
|
|
5073
4977
|
@font-face {
|
|
5074
4978
|
font-family: "${t}";
|
|
5075
|
-
src: url('${
|
|
4979
|
+
src: url('${m}') format('woff2');
|
|
5076
4980
|
font-display: fallback;
|
|
5077
4981
|
font-weight: ${c};
|
|
5078
4982
|
}
|
|
5079
4983
|
`.trim());
|
|
5080
4984
|
}
|
|
5081
4985
|
return i;
|
|
5082
|
-
},
|
|
4986
|
+
}, Uo = ({
|
|
5083
4987
|
customFonts: e
|
|
5084
4988
|
}) => {
|
|
5085
4989
|
var t;
|
|
5086
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5087
|
-
},
|
|
4990
|
+
return ((t = e == null ? void 0 : e.map((n) => Fo(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4991
|
+
}, Lo = ({
|
|
5088
4992
|
cssCode: e,
|
|
5089
4993
|
contentId: t
|
|
5090
4994
|
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
|
|
5091
|
-
function
|
|
4995
|
+
function _o(e) {
|
|
5092
4996
|
const [t, n] = V(
|
|
5093
4997
|
() => `
|
|
5094
|
-
${
|
|
4998
|
+
${Lo({
|
|
5095
4999
|
cssCode: e.cssCode,
|
|
5096
5000
|
contentId: e.contentId
|
|
5097
5001
|
})}
|
|
5098
|
-
${
|
|
5002
|
+
${Uo({
|
|
5099
5003
|
customFonts: e.customFonts
|
|
5100
5004
|
})}
|
|
5101
5005
|
|
|
@@ -5117,9 +5021,9 @@ ${Vo({
|
|
|
5117
5021
|
}
|
|
5118
5022
|
`.trim()
|
|
5119
5023
|
);
|
|
5120
|
-
return /* @__PURE__ */
|
|
5024
|
+
return /* @__PURE__ */ p(xt, { styles: t });
|
|
5121
5025
|
}
|
|
5122
|
-
const
|
|
5026
|
+
const Wo = ({
|
|
5123
5027
|
content: e,
|
|
5124
5028
|
data: t,
|
|
5125
5029
|
locale: n
|
|
@@ -5136,7 +5040,7 @@ const Ko = ({
|
|
|
5136
5040
|
locale: n
|
|
5137
5041
|
} : {}
|
|
5138
5042
|
};
|
|
5139
|
-
},
|
|
5043
|
+
}, Vo = ({
|
|
5140
5044
|
content: e,
|
|
5141
5045
|
data: t
|
|
5142
5046
|
}) => e ? {
|
|
@@ -5147,8 +5051,8 @@ const Ko = ({
|
|
|
5147
5051
|
},
|
|
5148
5052
|
meta: e == null ? void 0 : e.meta
|
|
5149
5053
|
} : void 0;
|
|
5150
|
-
function
|
|
5151
|
-
var f,
|
|
5054
|
+
function cr(e) {
|
|
5055
|
+
var f, m, y, x, U, N, E;
|
|
5152
5056
|
const [t, n] = V(
|
|
5153
5057
|
() => {
|
|
5154
5058
|
var O, $;
|
|
@@ -5177,22 +5081,22 @@ function ur(e) {
|
|
|
5177
5081
|
...Yn,
|
|
5178
5082
|
...e.customComponents || []
|
|
5179
5083
|
].reduce(
|
|
5180
|
-
(O, { component: $, ...
|
|
5084
|
+
(O, { component: $, ...X }) => ({
|
|
5181
5085
|
...O,
|
|
5182
|
-
[
|
|
5086
|
+
[X.name]: {
|
|
5183
5087
|
component: $,
|
|
5184
|
-
...Jn(
|
|
5088
|
+
...Jn(X)
|
|
5185
5089
|
}
|
|
5186
5090
|
}),
|
|
5187
5091
|
{}
|
|
5188
5092
|
)
|
|
5189
5093
|
), [s, c] = V(() => ({
|
|
5190
|
-
content:
|
|
5094
|
+
content: Vo({
|
|
5191
5095
|
content: e.content,
|
|
5192
5096
|
data: e.data
|
|
5193
5097
|
}),
|
|
5194
5098
|
localState: void 0,
|
|
5195
|
-
rootState:
|
|
5099
|
+
rootState: Wo({
|
|
5196
5100
|
content: e.content,
|
|
5197
5101
|
data: e.data,
|
|
5198
5102
|
locale: e.locale
|
|
@@ -5211,9 +5115,9 @@ function ur(e) {
|
|
|
5211
5115
|
...Yn,
|
|
5212
5116
|
...e.customComponents || []
|
|
5213
5117
|
].reduce(
|
|
5214
|
-
(O, { component: $, ...
|
|
5118
|
+
(O, { component: $, ...X }) => ({
|
|
5215
5119
|
...O,
|
|
5216
|
-
[
|
|
5120
|
+
[X.name]: Jn(X)
|
|
5217
5121
|
}),
|
|
5218
5122
|
{}
|
|
5219
5123
|
),
|
|
@@ -5221,14 +5125,14 @@ function ur(e) {
|
|
|
5221
5125
|
BlocksWrapper: e.blocksWrapper || "div",
|
|
5222
5126
|
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
5223
5127
|
}));
|
|
5224
|
-
return /* @__PURE__ */
|
|
5225
|
-
|
|
5128
|
+
return /* @__PURE__ */ p(
|
|
5129
|
+
fr.Provider,
|
|
5226
5130
|
{
|
|
5227
5131
|
value: {
|
|
5228
5132
|
registeredComponents: i
|
|
5229
5133
|
},
|
|
5230
5134
|
children: /* @__PURE__ */ ce(
|
|
5231
|
-
|
|
5135
|
+
Do,
|
|
5232
5136
|
{
|
|
5233
5137
|
content: e.content,
|
|
5234
5138
|
data: e.data,
|
|
@@ -5247,19 +5151,19 @@ function ur(e) {
|
|
|
5247
5151
|
trustedHosts: e.trustedHosts,
|
|
5248
5152
|
setBuilderContextSignal: c,
|
|
5249
5153
|
children: [
|
|
5250
|
-
e.isSsrAbTest ? /* @__PURE__ */
|
|
5251
|
-
/* @__PURE__ */
|
|
5252
|
-
|
|
5154
|
+
e.isSsrAbTest ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(qt, { scriptStr: t }) }) : null,
|
|
5155
|
+
/* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(
|
|
5156
|
+
_o,
|
|
5253
5157
|
{
|
|
5254
5158
|
contentId: (f = s.content) == null ? void 0 : f.id,
|
|
5255
|
-
cssCode: (y = (
|
|
5256
|
-
customFonts: (
|
|
5159
|
+
cssCode: (y = (m = s.content) == null ? void 0 : m.data) == null ? void 0 : y.cssCode,
|
|
5160
|
+
customFonts: (U = (x = s.content) == null ? void 0 : x.data) == null ? void 0 : U.customFonts
|
|
5257
5161
|
}
|
|
5258
5162
|
) }),
|
|
5259
|
-
/* @__PURE__ */
|
|
5163
|
+
/* @__PURE__ */ p(
|
|
5260
5164
|
wt,
|
|
5261
5165
|
{
|
|
5262
|
-
blocks: (E = (
|
|
5166
|
+
blocks: (E = (N = s.content) == null ? void 0 : N.data) == null ? void 0 : E.blocks,
|
|
5263
5167
|
context: s,
|
|
5264
5168
|
registeredComponents: i,
|
|
5265
5169
|
linkComponent: e.linkComponent
|
|
@@ -5271,7 +5175,7 @@ function ur(e) {
|
|
|
5271
5175
|
}
|
|
5272
5176
|
);
|
|
5273
5177
|
}
|
|
5274
|
-
function
|
|
5178
|
+
function Rr(e) {
|
|
5275
5179
|
var s, c;
|
|
5276
5180
|
const [t, n] = V(
|
|
5277
5181
|
() => Ao({
|
|
@@ -5282,9 +5186,9 @@ function Pr(e) {
|
|
|
5282
5186
|
function r() {
|
|
5283
5187
|
var f;
|
|
5284
5188
|
return Oo(
|
|
5285
|
-
mt(e.content).map((
|
|
5286
|
-
id:
|
|
5287
|
-
testRatio:
|
|
5189
|
+
mt(e.content).map((m) => ({
|
|
5190
|
+
id: m.testVariationId,
|
|
5191
|
+
testRatio: m.testRatio
|
|
5288
5192
|
})),
|
|
5289
5193
|
((f = e.content) == null ? void 0 : f.id) || ""
|
|
5290
5194
|
);
|
|
@@ -5302,20 +5206,20 @@ function Pr(e) {
|
|
|
5302
5206
|
canTrack: yt(e.canTrack)
|
|
5303
5207
|
});
|
|
5304
5208
|
}
|
|
5305
|
-
return
|
|
5306
|
-
}, []), /* @__PURE__ */ ce(
|
|
5307
|
-
!e.__isNestedRender &&
|
|
5308
|
-
t ? /* @__PURE__ */ ce(
|
|
5309
|
-
/* @__PURE__ */
|
|
5209
|
+
return J(() => {
|
|
5210
|
+
}, []), /* @__PURE__ */ ce(M, { children: [
|
|
5211
|
+
!e.__isNestedRender && ot !== "reactNative" ? /* @__PURE__ */ p(M, { children: /* @__PURE__ */ p(qt, { scriptStr: Ro() }) }) : null,
|
|
5212
|
+
t ? /* @__PURE__ */ ce(M, { children: [
|
|
5213
|
+
/* @__PURE__ */ p(
|
|
5310
5214
|
xt,
|
|
5311
5215
|
{
|
|
5312
5216
|
id: `variants-styles-${(s = e.content) == null ? void 0 : s.id}`,
|
|
5313
5217
|
styles: i()
|
|
5314
5218
|
}
|
|
5315
5219
|
),
|
|
5316
|
-
/* @__PURE__ */
|
|
5317
|
-
(c = mt(e.content)) == null ? void 0 : c.map((f) => /* @__PURE__ */
|
|
5318
|
-
|
|
5220
|
+
/* @__PURE__ */ p(qt, { scriptStr: r() }),
|
|
5221
|
+
(c = mt(e.content)) == null ? void 0 : c.map((f) => /* @__PURE__ */ p(
|
|
5222
|
+
cr,
|
|
5319
5223
|
{
|
|
5320
5224
|
content: f,
|
|
5321
5225
|
showContent: !1,
|
|
@@ -5340,8 +5244,8 @@ function Pr(e) {
|
|
|
5340
5244
|
f.testVariationId
|
|
5341
5245
|
))
|
|
5342
5246
|
] }) : null,
|
|
5343
|
-
/* @__PURE__ */
|
|
5344
|
-
|
|
5247
|
+
/* @__PURE__ */ p(
|
|
5248
|
+
cr,
|
|
5345
5249
|
{
|
|
5346
5250
|
content: a(),
|
|
5347
5251
|
showContent: !0,
|
|
@@ -5366,13 +5270,13 @@ function Pr(e) {
|
|
|
5366
5270
|
)
|
|
5367
5271
|
] });
|
|
5368
5272
|
}
|
|
5369
|
-
const
|
|
5273
|
+
const $o = async ({
|
|
5370
5274
|
builderContextValue: e,
|
|
5371
5275
|
symbol: t
|
|
5372
5276
|
}) => {
|
|
5373
5277
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5374
5278
|
(e != null && e.apiKey))
|
|
5375
|
-
return
|
|
5279
|
+
return dr({
|
|
5376
5280
|
model: t.model,
|
|
5377
5281
|
apiKey: e.apiKey,
|
|
5378
5282
|
apiVersion: e.apiVersion,
|
|
@@ -5382,37 +5286,37 @@ const zo = async ({
|
|
|
5382
5286
|
}
|
|
5383
5287
|
}
|
|
5384
5288
|
}).catch((n) => {
|
|
5385
|
-
|
|
5289
|
+
Re.error("Could not fetch symbol content: ", n);
|
|
5386
5290
|
});
|
|
5387
5291
|
};
|
|
5388
|
-
function
|
|
5292
|
+
function Ho(e) {
|
|
5389
5293
|
var a, s, c, f;
|
|
5390
5294
|
function t() {
|
|
5391
|
-
var
|
|
5295
|
+
var m, y;
|
|
5392
5296
|
return [
|
|
5393
|
-
e.attributes[
|
|
5297
|
+
e.attributes[tt()],
|
|
5394
5298
|
"builder-symbol",
|
|
5395
|
-
(
|
|
5299
|
+
(m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
|
|
5396
5300
|
(y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
|
|
5397
5301
|
].filter(Boolean).join(" ");
|
|
5398
5302
|
}
|
|
5399
5303
|
const [n, r] = V(() => {
|
|
5400
|
-
var
|
|
5401
|
-
return (
|
|
5304
|
+
var m;
|
|
5305
|
+
return (m = e.symbol) == null ? void 0 : m.content;
|
|
5402
5306
|
});
|
|
5403
5307
|
function i() {
|
|
5404
|
-
n ||
|
|
5308
|
+
n || $o({
|
|
5405
5309
|
symbol: e.symbol,
|
|
5406
5310
|
builderContextValue: e.builderContext
|
|
5407
|
-
}).then((
|
|
5408
|
-
|
|
5311
|
+
}).then((m) => {
|
|
5312
|
+
m && r(m);
|
|
5409
5313
|
});
|
|
5410
5314
|
}
|
|
5411
|
-
return
|
|
5412
|
-
}, []),
|
|
5315
|
+
return J(() => {
|
|
5316
|
+
}, []), J(() => {
|
|
5413
5317
|
i();
|
|
5414
|
-
}, [e.symbol]), /* @__PURE__ */
|
|
5415
|
-
|
|
5318
|
+
}, [e.symbol]), /* @__PURE__ */ p("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ p(
|
|
5319
|
+
Rr,
|
|
5416
5320
|
{
|
|
5417
5321
|
__isNestedRender: !0,
|
|
5418
5322
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -5433,31 +5337,32 @@ function Xo(e) {
|
|
|
5433
5337
|
}
|
|
5434
5338
|
) });
|
|
5435
5339
|
}
|
|
5436
|
-
const
|
|
5340
|
+
const Xo = wt, Yo = Rr;
|
|
5437
5341
|
export {
|
|
5438
5342
|
wt as Blocks,
|
|
5439
5343
|
ii as Button,
|
|
5440
5344
|
Qi as Columns,
|
|
5441
|
-
|
|
5345
|
+
Rr as Content,
|
|
5442
5346
|
eo as Fragment,
|
|
5443
5347
|
ro as Image,
|
|
5444
|
-
|
|
5445
|
-
|
|
5348
|
+
Xo as RenderBlocks,
|
|
5349
|
+
Yo as RenderContent,
|
|
5446
5350
|
io as Section,
|
|
5447
|
-
|
|
5351
|
+
Ho as Symbol,
|
|
5448
5352
|
wo as Text,
|
|
5449
5353
|
Eo as Video,
|
|
5450
|
-
|
|
5354
|
+
Zo as _processContentResult,
|
|
5451
5355
|
Qr as createRegisterComponentMessage,
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5356
|
+
Qo as fetchBuilderProps,
|
|
5357
|
+
ea as fetchEntries,
|
|
5358
|
+
dr as fetchOneEntry,
|
|
5359
|
+
ta as getAllContent,
|
|
5360
|
+
na as getBuilderSearchParams,
|
|
5361
|
+
ra as getContent,
|
|
5458
5362
|
Ae as isEditing,
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5363
|
+
Yr as isPreviewing,
|
|
5364
|
+
ia as register,
|
|
5365
|
+
oa as setEditorSettings,
|
|
5366
|
+
aa as subscribeToEditor,
|
|
5367
|
+
sa as track
|
|
5463
5368
|
};
|