@builder.io/sdk-react-nextjs 0.8.1 → 0.10.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/{USE_CLIENT_BUNDLE-0479ddc8.js → USE_CLIENT_BUNDLE-8a469a88.js} +195 -189
- package/lib/browser/USE_CLIENT_BUNDLE-bd42f34e.cjs +23 -0
- package/lib/{edge/USE_SERVER_BUNDLE-70f5e4b2.cjs → browser/USE_SERVER_BUNDLE-608eb1c6.cjs} +1 -1
- package/lib/{edge/USE_SERVER_BUNDLE-de23a873.js → browser/USE_SERVER_BUNDLE-b0fcc116.js} +1 -1
- package/lib/browser/{bundle-e4200429.cjs → bundle-6593f46a.cjs} +10 -10
- package/lib/browser/{bundle-179c65a2.js → bundle-f23172a5.js} +288 -268
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +3 -3
- package/lib/edge/USE_CLIENT_BUNDLE-2ee2538b.cjs +23 -0
- package/lib/{node/USE_CLIENT_BUNDLE-ac10325c.js → edge/USE_CLIENT_BUNDLE-474e3242.js} +195 -189
- package/lib/{node/USE_SERVER_BUNDLE-de4b4ff0.cjs → edge/USE_SERVER_BUNDLE-b5ccb43b.cjs} +1 -1
- package/lib/{node/USE_SERVER_BUNDLE-2b7a9305.js → edge/USE_SERVER_BUNDLE-da7c49b1.js} +1 -1
- package/lib/edge/{bundle-a1501121.cjs → bundle-7c571d18.cjs} +30 -30
- package/lib/edge/{bundle-a958c31b.js → bundle-bd18331d.js} +1037 -1017
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/{edge/USE_CLIENT_BUNDLE-8c3da5c9.js → node/USE_CLIENT_BUNDLE-39759ac3.js} +195 -189
- package/lib/node/USE_CLIENT_BUNDLE-fcb61de5.cjs +23 -0
- package/lib/{browser/USE_SERVER_BUNDLE-71c86494.cjs → node/USE_SERVER_BUNDLE-9a538e9b.cjs} +1 -1
- package/lib/{browser/USE_SERVER_BUNDLE-88940a10.js → node/USE_SERVER_BUNDLE-9cade0d5.js} +1 -1
- package/lib/node/{bundle-59bd1206.js → bundle-49222e30.js} +188 -168
- package/lib/node/{bundle-ef482315.cjs → bundle-ad89090d.cjs} +9 -9
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +3 -3
- package/package.json +1 -1
- package/types/cjs/components/blocks/blocks-wrapper.d.ts +8 -0
- package/types/cjs/components/blocks/blocks.d.ts +1 -1
- package/types/cjs/components/content/components/enable-editor.d.ts +1 -1
- package/types/cjs/components/content-variants/content-variants.types.d.ts +16 -0
- package/types/cjs/constants/sdk-version.d.ts +1 -1
- package/types/cjs/context/types.d.ts +2 -1
- package/types/cjs/functions/get-content/index.d.ts +2 -2
- package/types/cjs/functions/transform-block-properties.d.ts +5 -1
- package/types/cjs/types/enforced-partials.d.ts +7 -2
- package/types/esm/components/blocks/blocks-wrapper.d.ts +8 -0
- package/types/esm/components/blocks/blocks.d.ts +1 -1
- package/types/esm/components/content/components/enable-editor.d.ts +1 -1
- package/types/esm/components/content-variants/content-variants.types.d.ts +16 -0
- package/types/esm/constants/sdk-version.d.ts +1 -1
- package/types/esm/context/types.d.ts +2 -1
- package/types/esm/functions/get-content/index.d.ts +2 -2
- package/types/esm/functions/transform-block-properties.d.ts +5 -1
- package/types/esm/types/enforced-partials.d.ts +7 -2
- package/lib/browser/USE_CLIENT_BUNDLE-38635250.cjs +0 -23
- package/lib/edge/USE_CLIENT_BUNDLE-7d1db7a7.cjs +0 -23
- package/lib/node/USE_CLIENT_BUNDLE-1fd9261f.cjs +0 -23
- package/types/cjs/functions/get-react-native-block-styles.d.ts +0 -7
- package/types/cjs/functions/sanitize-react-native-block-styles.d.ts +0 -3
- package/types/esm/functions/get-react-native-block-styles.d.ts +0 -7
- package/types/esm/functions/sanitize-react-native-block-styles.d.ts +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LRUCache as Qr } from "lru-cache";
|
|
2
2
|
import { jsx as C, Fragment as D, jsxs as ue } from "react/jsx-runtime";
|
|
3
|
-
import { createElement as
|
|
4
|
-
import { I as
|
|
3
|
+
import { createElement as eo } from "react";
|
|
4
|
+
import { I as to, B as $n, a as no, b as ro, C as oo, E as io, F as ao, c as so, d as lo, S as co, V as uo, e as fo } from "./USE_CLIENT_BUNDLE-474e3242.js";
|
|
5
5
|
import "next/navigation";
|
|
6
|
-
function
|
|
6
|
+
function po(e) {
|
|
7
7
|
var t;
|
|
8
8
|
return {
|
|
9
9
|
...(t = e.component) == null ? void 0 : t.options,
|
|
@@ -23,21 +23,21 @@ const at = "[Builder.io]: ", q = {
|
|
|
23
23
|
function G() {
|
|
24
24
|
return typeof window < "u" && typeof document < "u";
|
|
25
25
|
}
|
|
26
|
-
const
|
|
27
|
-
function
|
|
26
|
+
const be = "rsc";
|
|
27
|
+
function ho() {
|
|
28
28
|
return G() && window.self !== window.top;
|
|
29
29
|
}
|
|
30
30
|
function Xt() {
|
|
31
|
-
return
|
|
31
|
+
return ho() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
32
32
|
}
|
|
33
|
-
const
|
|
33
|
+
const mo = () => {
|
|
34
34
|
if (G()) {
|
|
35
35
|
const e = new URL(location.href);
|
|
36
36
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
37
37
|
} else
|
|
38
38
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
39
|
-
},
|
|
40
|
-
const e =
|
|
39
|
+
}, go = () => typeof navigator == "object" && navigator.userAgent || "", cr = () => {
|
|
40
|
+
const e = go(), t = {
|
|
41
41
|
Android() {
|
|
42
42
|
return e.match(/Android/i);
|
|
43
43
|
},
|
|
@@ -54,9 +54,9 @@ const hi = () => {
|
|
|
54
54
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
55
55
|
},
|
|
56
56
|
any() {
|
|
57
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
57
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || be === "reactNative";
|
|
58
58
|
}
|
|
59
|
-
}, n = e.match(/Tablet|iPad/i), r =
|
|
59
|
+
}, n = e.match(/Tablet|iPad/i), r = mo();
|
|
60
60
|
return {
|
|
61
61
|
urlPath: r == null ? void 0 : r.pathname,
|
|
62
62
|
host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
|
|
@@ -74,39 +74,39 @@ const hi = () => {
|
|
|
74
74
|
builder: e,
|
|
75
75
|
context: t,
|
|
76
76
|
event: n
|
|
77
|
-
}),
|
|
77
|
+
}), yo = () => ({
|
|
78
78
|
isEditing: Xt(),
|
|
79
79
|
isBrowser: G(),
|
|
80
80
|
isServer: !G(),
|
|
81
81
|
getUserAttributes: () => cr()
|
|
82
|
-
}),
|
|
82
|
+
}), vo = (e, {
|
|
83
83
|
isExpression: t = !0
|
|
84
|
-
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
|
|
84
|
+
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, bo = ({
|
|
85
85
|
code: e,
|
|
86
86
|
builder: t,
|
|
87
87
|
context: n,
|
|
88
88
|
event: r,
|
|
89
|
-
localState:
|
|
90
|
-
rootSetState:
|
|
89
|
+
localState: o,
|
|
90
|
+
rootSetState: i,
|
|
91
91
|
rootState: s
|
|
92
92
|
}) => {
|
|
93
93
|
const u = ur({
|
|
94
94
|
builder: t,
|
|
95
95
|
context: n,
|
|
96
96
|
event: r,
|
|
97
|
-
state:
|
|
97
|
+
state: xo(s, o, i)
|
|
98
98
|
});
|
|
99
99
|
return new Function(...u.map(([d]) => d), e)(...u.map(([, d]) => d));
|
|
100
100
|
};
|
|
101
|
-
function
|
|
101
|
+
function xo(e, t, n) {
|
|
102
102
|
if (e === t)
|
|
103
103
|
throw new Error("rootState === localState");
|
|
104
104
|
return new Proxy(e, {
|
|
105
|
-
get: (r,
|
|
106
|
-
set: (r,
|
|
107
|
-
if (t &&
|
|
105
|
+
get: (r, o) => t && o in t ? t[o] : e[o],
|
|
106
|
+
set: (r, o, i) => {
|
|
107
|
+
if (t && o in t)
|
|
108
108
|
throw new Error("Writing to local state is not allowed as it is read-only.");
|
|
109
|
-
return e[
|
|
109
|
+
return e[o] = i, n == null || n(e), !0;
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
}
|
|
@@ -114,86 +114,86 @@ const fr = (e, t, n) => {
|
|
|
114
114
|
if (Object(e) !== e)
|
|
115
115
|
return e;
|
|
116
116
|
const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
117
|
-
return r.slice(0, -1).reduce((
|
|
117
|
+
return r.slice(0, -1).reduce((o, i, s) => Object(o[i]) === o[i] ? o[i] : o[i] = Math.abs(Number(r[s + 1])) >> 0 === +r[s + 1] ? [] : {}, e)[r[r.length - 1]] = n, e;
|
|
118
118
|
};
|
|
119
|
-
var P,
|
|
120
|
-
function t(
|
|
121
|
-
return 48 >
|
|
119
|
+
var P, wo = function(e) {
|
|
120
|
+
function t(a) {
|
|
121
|
+
return 48 > a ? a === 36 : 58 > a ? !0 : 65 > a ? !1 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && qr.test(String.fromCharCode(a));
|
|
122
122
|
}
|
|
123
|
-
function n(
|
|
124
|
-
return 65 >
|
|
123
|
+
function n(a) {
|
|
124
|
+
return 65 > a ? a === 36 : 91 > a ? !0 : 97 > a ? a === 95 : 123 > a ? !0 : 170 <= a && Wn.test(String.fromCharCode(a));
|
|
125
125
|
}
|
|
126
|
-
function r(
|
|
126
|
+
function r(a, l) {
|
|
127
127
|
for (var c = g, p = 1, T = 0; ; ) {
|
|
128
|
-
|
|
129
|
-
var
|
|
130
|
-
if (
|
|
131
|
-
++p, T =
|
|
128
|
+
it.lastIndex = T;
|
|
129
|
+
var W = it.exec(c);
|
|
130
|
+
if (W && W.index < a)
|
|
131
|
+
++p, T = W.index + W[0].length;
|
|
132
132
|
else
|
|
133
133
|
break;
|
|
134
134
|
}
|
|
135
135
|
throw c = {
|
|
136
136
|
line: p,
|
|
137
|
-
ab:
|
|
138
|
-
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j =
|
|
137
|
+
ab: a - T
|
|
138
|
+
}, l += " (" + c.line + ":" + c.ab + ")", l = new SyntaxError(l), l.j = a, l.X = c, l.o = f, l;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
|
|
142
|
-
for (var l = /* @__PURE__ */ Object.create(null), c = 0; c <
|
|
143
|
-
l[
|
|
140
|
+
function o(a) {
|
|
141
|
+
a = a.split(" ");
|
|
142
|
+
for (var l = /* @__PURE__ */ Object.create(null), c = 0; c < a.length; c++)
|
|
143
|
+
l[a[c]] = !0;
|
|
144
144
|
return function(p) {
|
|
145
145
|
return l[p] || !1;
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
this.line =
|
|
148
|
+
function i() {
|
|
149
|
+
this.line = we, this.ab = f - oe;
|
|
150
150
|
}
|
|
151
|
-
function s(
|
|
152
|
-
Ce = f, j.C && (Ct = new
|
|
151
|
+
function s(a, l) {
|
|
152
|
+
Ce = f, j.C && (Ct = new i()), I = a, d(), Q = l, Ue = a.m;
|
|
153
153
|
}
|
|
154
154
|
function u() {
|
|
155
|
-
for (var
|
|
155
|
+
for (var a = f, l = j.va && j.C && new i(), c = g.charCodeAt(f += 2); f < ke && c !== 10 && c !== 13 && c !== 8232 && c !== 8233; )
|
|
156
156
|
++f, c = g.charCodeAt(f);
|
|
157
|
-
j.va && j.va(!1, g.slice(
|
|
157
|
+
j.va && j.va(!1, g.slice(a + 2, f), a, f, l, j.C && new i());
|
|
158
158
|
}
|
|
159
159
|
function d() {
|
|
160
160
|
for (; f < ke; ) {
|
|
161
|
-
var
|
|
162
|
-
if (
|
|
161
|
+
var a = g.charCodeAt(f);
|
|
162
|
+
if (a === 32)
|
|
163
163
|
++f;
|
|
164
|
-
else if (
|
|
165
|
-
++f,
|
|
166
|
-
else if (
|
|
167
|
-
++f, j.C && (++
|
|
168
|
-
else if (8 <
|
|
164
|
+
else if (a === 13)
|
|
165
|
+
++f, a = g.charCodeAt(f), a === 10 && ++f, j.C && (++we, oe = f);
|
|
166
|
+
else if (a === 10 || a === 8232 || a === 8233)
|
|
167
|
+
++f, j.C && (++we, oe = f);
|
|
168
|
+
else if (8 < a && 14 > a)
|
|
169
169
|
++f;
|
|
170
|
-
else if (
|
|
171
|
-
if (
|
|
172
|
-
|
|
173
|
-
var l = j.va && j.C && new
|
|
170
|
+
else if (a === 47)
|
|
171
|
+
if (a = g.charCodeAt(f + 1), a === 42) {
|
|
172
|
+
a = void 0;
|
|
173
|
+
var l = j.va && j.C && new i(), c = f, p = g.indexOf("*/", f += 2);
|
|
174
174
|
if (p === -1 && r(f - 2, "Unterminated comment"), f = p + 2, j.C)
|
|
175
|
-
for (
|
|
176
|
-
++
|
|
177
|
-
j.va && j.va(!0, g.slice(c + 2, p), c, f, l, j.C && new
|
|
178
|
-
} else if (
|
|
175
|
+
for (it.lastIndex = c; (a = it.exec(g)) && a.index < f; )
|
|
176
|
+
++we, oe = a.index + a[0].length;
|
|
177
|
+
j.va && j.va(!0, g.slice(c + 2, p), c, f, l, j.C && new i());
|
|
178
|
+
} else if (a === 47)
|
|
179
179
|
u();
|
|
180
180
|
else
|
|
181
181
|
break;
|
|
182
|
-
else if (
|
|
182
|
+
else if (a === 160)
|
|
183
183
|
++f;
|
|
184
|
-
else if (5760 <=
|
|
184
|
+
else if (5760 <= a && zr.test(String.fromCharCode(a)))
|
|
185
185
|
++f;
|
|
186
186
|
else
|
|
187
187
|
break;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
function E(
|
|
191
|
-
switch (
|
|
190
|
+
function E(a) {
|
|
191
|
+
switch (a) {
|
|
192
192
|
case 46:
|
|
193
|
-
|
|
193
|
+
a = g.charCodeAt(f + 1), 48 <= a && 57 >= a ? S(!0) : (++f, s(Bn));
|
|
194
194
|
return;
|
|
195
195
|
case 40:
|
|
196
|
-
return ++f, s(
|
|
196
|
+
return ++f, s(ie);
|
|
197
197
|
case 41:
|
|
198
198
|
return ++f, s(te);
|
|
199
199
|
case 59:
|
|
@@ -201,9 +201,9 @@ var P, wi = function(e) {
|
|
|
201
201
|
case 44:
|
|
202
202
|
return ++f, s(ye);
|
|
203
203
|
case 91:
|
|
204
|
-
return ++f, s(
|
|
204
|
+
return ++f, s(Bt);
|
|
205
205
|
case 93:
|
|
206
|
-
return ++f, s(
|
|
206
|
+
return ++f, s(Mt);
|
|
207
207
|
case 123:
|
|
208
208
|
return ++f, s(_e);
|
|
209
209
|
case 125:
|
|
@@ -211,10 +211,10 @@ var P, wi = function(e) {
|
|
|
211
211
|
case 58:
|
|
212
212
|
return ++f, s(De);
|
|
213
213
|
case 63:
|
|
214
|
-
return ++f, s(
|
|
214
|
+
return ++f, s(Mn);
|
|
215
215
|
case 48:
|
|
216
|
-
if (
|
|
217
|
-
f += 2,
|
|
216
|
+
if (a = g.charCodeAt(f + 1), a === 120 || a === 88) {
|
|
217
|
+
f += 2, a = O(16), a === null && r(L + 2, "Expected hexadecimal number"), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), s(Ve, a);
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
case 49:
|
|
@@ -233,7 +233,7 @@ var P, wi = function(e) {
|
|
|
233
233
|
for (var l = ""; ; ) {
|
|
234
234
|
f >= ke && r(L, "Unterminated string constant");
|
|
235
235
|
var c = g.charCodeAt(f);
|
|
236
|
-
if (c ===
|
|
236
|
+
if (c === a) {
|
|
237
237
|
++f, s(tt, l);
|
|
238
238
|
break;
|
|
239
239
|
}
|
|
@@ -254,13 +254,13 @@ var P, wi = function(e) {
|
|
|
254
254
|
l += "\r";
|
|
255
255
|
break;
|
|
256
256
|
case 120:
|
|
257
|
-
l += String.fromCharCode(
|
|
257
|
+
l += String.fromCharCode(b(2));
|
|
258
258
|
break;
|
|
259
259
|
case 117:
|
|
260
|
-
l += String.fromCharCode(
|
|
260
|
+
l += String.fromCharCode(b(4));
|
|
261
261
|
break;
|
|
262
262
|
case 85:
|
|
263
|
-
l += String.fromCharCode(
|
|
263
|
+
l += String.fromCharCode(b(8));
|
|
264
264
|
break;
|
|
265
265
|
case 116:
|
|
266
266
|
l += " ";
|
|
@@ -280,7 +280,7 @@ var P, wi = function(e) {
|
|
|
280
280
|
case 13:
|
|
281
281
|
g.charCodeAt(f) === 10 && ++f;
|
|
282
282
|
case 10:
|
|
283
|
-
j.C && (
|
|
283
|
+
j.C && (oe = f, ++we);
|
|
284
284
|
break;
|
|
285
285
|
default:
|
|
286
286
|
l += String.fromCharCode(c);
|
|
@@ -290,59 +290,59 @@ var P, wi = function(e) {
|
|
|
290
290
|
}
|
|
291
291
|
return;
|
|
292
292
|
case 47:
|
|
293
|
-
|
|
293
|
+
a = g.charCodeAt(f + 1), Ue ? (++f, B()) : a === 61 ? w(Se, 2) : w(Un, 1);
|
|
294
294
|
return;
|
|
295
295
|
case 37:
|
|
296
296
|
case 42:
|
|
297
|
-
g.charCodeAt(f + 1) === 61 ?
|
|
297
|
+
g.charCodeAt(f + 1) === 61 ? w(Se, 2) : w(Xr, 1);
|
|
298
298
|
return;
|
|
299
299
|
case 124:
|
|
300
300
|
case 38:
|
|
301
|
-
l = g.charCodeAt(f + 1), l ===
|
|
301
|
+
l = g.charCodeAt(f + 1), l === a ? w(a === 124 ? _n : Dn, 2) : l === 61 ? w(Se, 2) : w(a === 124 ? Dr : Wr, 1);
|
|
302
302
|
return;
|
|
303
303
|
case 94:
|
|
304
|
-
g.charCodeAt(f + 1) === 61 ?
|
|
304
|
+
g.charCodeAt(f + 1) === 61 ? w(Se, 2) : w(Lr, 1);
|
|
305
305
|
return;
|
|
306
306
|
case 43:
|
|
307
307
|
case 45:
|
|
308
|
-
l = g.charCodeAt(f + 1), l ===
|
|
308
|
+
l = g.charCodeAt(f + 1), l === a ? l === 45 && g.charCodeAt(f + 2) === 62 && ot.test(g.slice(ge, f)) ? (f += 3, u(), d(), k()) : w(_r, 2) : l === 61 ? w(Se, 2) : w(Gr, 1);
|
|
309
309
|
return;
|
|
310
310
|
case 60:
|
|
311
311
|
case 62:
|
|
312
|
-
l = g.charCodeAt(f + 1), c = 1, l ===
|
|
312
|
+
l = g.charCodeAt(f + 1), c = 1, l === a ? (c = a === 62 && g.charCodeAt(f + 2) === 62 ? 3 : 2, g.charCodeAt(f + c) === 61 ? w(Se, c + 1) : w(Kr, c)) : l === 33 && a === 60 && g.charCodeAt(f + 2) === 45 && g.charCodeAt(f + 3) === 45 ? (f += 4, u(), d(), k()) : (l === 61 && (c = g.charCodeAt(f + 2) === 61 ? 3 : 2), w(Hr, c));
|
|
313
313
|
return;
|
|
314
314
|
case 61:
|
|
315
315
|
case 33:
|
|
316
|
-
g.charCodeAt(f + 1) === 61 ?
|
|
316
|
+
g.charCodeAt(f + 1) === 61 ? w($r, g.charCodeAt(f + 2) === 61 ? 3 : 2) : w(a === 61 ? Fn : Vn, 1);
|
|
317
317
|
return;
|
|
318
318
|
case 126:
|
|
319
|
-
return
|
|
319
|
+
return w(Vn, 1);
|
|
320
320
|
}
|
|
321
321
|
return !1;
|
|
322
322
|
}
|
|
323
|
-
function k(
|
|
324
|
-
if (
|
|
325
|
-
return
|
|
323
|
+
function k(a) {
|
|
324
|
+
if (a ? f = L + 1 : L = f, j.C && (kt = new i()), a)
|
|
325
|
+
return B();
|
|
326
326
|
if (f >= ke)
|
|
327
327
|
return s(Tt);
|
|
328
|
-
if (
|
|
328
|
+
if (a = g.charCodeAt(f), n(a) || a === 92)
|
|
329
329
|
return F();
|
|
330
|
-
if (E(
|
|
331
|
-
if (
|
|
330
|
+
if (E(a) === !1) {
|
|
331
|
+
if (a = String.fromCharCode(a), a === "\\" || Wn.test(a))
|
|
332
332
|
return F();
|
|
333
|
-
r(f, "Unexpected character '" +
|
|
333
|
+
r(f, "Unexpected character '" + a + "'");
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function w(a, l) {
|
|
337
337
|
var c = g.slice(f, f + l);
|
|
338
|
-
f += l, s(
|
|
338
|
+
f += l, s(a, c);
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
for (var
|
|
340
|
+
function B() {
|
|
341
|
+
for (var a, l, c = f; ; ) {
|
|
342
342
|
f >= ke && r(c, "Unterminated regexp");
|
|
343
343
|
var p = g.charAt(f);
|
|
344
|
-
if (
|
|
345
|
-
|
|
344
|
+
if (ot.test(p) && r(c, "Unterminated regexp"), a)
|
|
345
|
+
a = !1;
|
|
346
346
|
else {
|
|
347
347
|
if (p === "[")
|
|
348
348
|
l = !0;
|
|
@@ -350,64 +350,64 @@ var P, wi = function(e) {
|
|
|
350
350
|
l = !1;
|
|
351
351
|
else if (p === "/" && !l)
|
|
352
352
|
break;
|
|
353
|
-
|
|
353
|
+
a = p === "\\";
|
|
354
354
|
}
|
|
355
355
|
++f;
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
a = g.slice(c, f), ++f, (l = N()) && !/^[gmi]*$/.test(l) && r(c, "Invalid regexp flag");
|
|
358
358
|
try {
|
|
359
|
-
var T = new RegExp(
|
|
360
|
-
} catch (
|
|
361
|
-
throw
|
|
359
|
+
var T = new RegExp(a, l);
|
|
360
|
+
} catch (W) {
|
|
361
|
+
throw W instanceof SyntaxError && r(c, W.message), W;
|
|
362
362
|
}
|
|
363
363
|
s(mn, T);
|
|
364
364
|
}
|
|
365
|
-
function O(
|
|
366
|
-
for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l,
|
|
365
|
+
function O(a, l) {
|
|
366
|
+
for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l, W = 0; W < T; ++W) {
|
|
367
367
|
var X = g.charCodeAt(f);
|
|
368
|
-
if (X = 97 <= X ? X - 97 + 10 : 65 <= X ? X - 65 + 10 : 48 <= X && 57 >= X ? X - 48 : 1 / 0, X >=
|
|
368
|
+
if (X = 97 <= X ? X - 97 + 10 : 65 <= X ? X - 65 + 10 : 48 <= X && 57 >= X ? X - 48 : 1 / 0, X >= a)
|
|
369
369
|
break;
|
|
370
|
-
++f, p = p *
|
|
370
|
+
++f, p = p * a + X;
|
|
371
371
|
}
|
|
372
372
|
return f === c || l !== void 0 && f - c !== l ? null : p;
|
|
373
373
|
}
|
|
374
|
-
function S(
|
|
374
|
+
function S(a) {
|
|
375
375
|
var l = f, c = !1, p = g.charCodeAt(f) === 48;
|
|
376
|
-
|
|
376
|
+
a || O(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, O(10), c = !0), a = g.charCodeAt(f), (a === 69 || a === 101) && (a = g.charCodeAt(++f), a !== 43 && a !== 45 || ++f, O(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), a = g.slice(l, f);
|
|
377
377
|
var T;
|
|
378
|
-
c ? T = parseFloat(
|
|
378
|
+
c ? T = parseFloat(a) : p && a.length !== 1 ? /[89]/.test(a) || z ? r(l, "Invalid number") : T = parseInt(a, 8) : T = parseInt(a, 10), s(Ve, T);
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
380
|
+
function b(a) {
|
|
381
|
+
return a = O(16, a), a === null && r(L, "Bad character escape sequence"), a;
|
|
382
382
|
}
|
|
383
383
|
function N() {
|
|
384
384
|
Te = !1;
|
|
385
|
-
for (var
|
|
385
|
+
for (var a, l = !0, c = f; ; ) {
|
|
386
386
|
var p = g.charCodeAt(f);
|
|
387
387
|
if (t(p))
|
|
388
|
-
Te && (
|
|
388
|
+
Te && (a += g.charAt(f)), ++f;
|
|
389
389
|
else if (p === 92) {
|
|
390
|
-
Te || (
|
|
390
|
+
Te || (a = g.slice(c, f)), Te = !0, g.charCodeAt(++f) !== 117 && r(f, "Expecting Unicode escape sequence \\uXXXX"), ++f, p = b(4);
|
|
391
391
|
var T = String.fromCharCode(p);
|
|
392
|
-
T || r(f - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(f - 4, "Invalid Unicode escape"),
|
|
392
|
+
T || r(f - 1, "Invalid Unicode escape"), (l ? n(p) : t(p)) || r(f - 4, "Invalid Unicode escape"), a += T;
|
|
393
393
|
} else
|
|
394
394
|
break;
|
|
395
395
|
l = !1;
|
|
396
396
|
}
|
|
397
|
-
return Te ?
|
|
397
|
+
return Te ? a : g.slice(c, f);
|
|
398
398
|
}
|
|
399
399
|
function F() {
|
|
400
|
-
var
|
|
401
|
-
!Te && Jr(
|
|
400
|
+
var a = N(), l = Ee;
|
|
401
|
+
!Te && Jr(a) && (l = Vr[a]), s(l, a);
|
|
402
402
|
}
|
|
403
403
|
function m() {
|
|
404
404
|
Et = L, ge = Ce, It = Ct, k();
|
|
405
405
|
}
|
|
406
|
-
function de(
|
|
407
|
-
if (z =
|
|
408
|
-
for (; f <
|
|
409
|
-
|
|
410
|
-
`,
|
|
406
|
+
function de(a) {
|
|
407
|
+
if (z = a, f = L, j.C)
|
|
408
|
+
for (; f < oe; )
|
|
409
|
+
oe = g.lastIndexOf(`
|
|
410
|
+
`, oe - 2) + 1, --we;
|
|
411
411
|
d(), k();
|
|
412
412
|
}
|
|
413
413
|
function he() {
|
|
@@ -416,85 +416,85 @@ var P, wi = function(e) {
|
|
|
416
416
|
function Z() {
|
|
417
417
|
this.start = kt, this.end = null, St && (this.source = St);
|
|
418
418
|
}
|
|
419
|
-
function
|
|
420
|
-
var
|
|
421
|
-
return j.C && (
|
|
419
|
+
function M() {
|
|
420
|
+
var a = new he();
|
|
421
|
+
return j.C && (a.X = new Z()), j.vb && (a.sourceFile = j.vb), j.Xa && (a.j = [L, 0]), a;
|
|
422
422
|
}
|
|
423
|
-
function me(
|
|
423
|
+
function me(a) {
|
|
424
424
|
var l = new he();
|
|
425
|
-
return l.start =
|
|
425
|
+
return l.start = a.start, j.C && (l.X = new Z(), l.X.start = a.X.start), j.Xa && (l.j = [a.j[0], 0]), l;
|
|
426
426
|
}
|
|
427
|
-
function A(
|
|
428
|
-
return
|
|
427
|
+
function A(a, l) {
|
|
428
|
+
return a.type = l, a.end = ge, j.C && (a.X.end = It), j.Xa && (a.j[1] = ge), a;
|
|
429
429
|
}
|
|
430
|
-
function mt(
|
|
431
|
-
return
|
|
430
|
+
function mt(a) {
|
|
431
|
+
return a.type === "ExpressionStatement" && a.la.type === "Literal" && a.la.value === "use strict";
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return I ===
|
|
433
|
+
function U(a) {
|
|
434
|
+
return I === a ? (m(), !0) : !1;
|
|
435
435
|
}
|
|
436
436
|
function Ze() {
|
|
437
|
-
return !j.fc && (I === Tt || I === Ie ||
|
|
437
|
+
return !j.fc && (I === Tt || I === Ie || ot.test(g.slice(ge, L)));
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
|
|
439
|
+
function xe() {
|
|
440
|
+
U(ae) || Ze() || ne();
|
|
441
441
|
}
|
|
442
|
-
function V(
|
|
443
|
-
I ===
|
|
442
|
+
function V(a) {
|
|
443
|
+
I === a ? m() : ne();
|
|
444
444
|
}
|
|
445
445
|
function ne() {
|
|
446
446
|
r(L, "Unexpected token");
|
|
447
447
|
}
|
|
448
|
-
function Qe(
|
|
449
|
-
|
|
448
|
+
function Qe(a) {
|
|
449
|
+
a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), z && a.type === "Identifier" && rt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
|
|
450
450
|
}
|
|
451
451
|
function ee() {
|
|
452
|
-
(I ===
|
|
453
|
-
var
|
|
454
|
-
switch (
|
|
452
|
+
(I === Un || I === Se && Q === "/=") && k(!0);
|
|
453
|
+
var a = I, l = M();
|
|
454
|
+
switch (a) {
|
|
455
455
|
case At:
|
|
456
456
|
case yn:
|
|
457
457
|
m();
|
|
458
|
-
var c =
|
|
459
|
-
|
|
458
|
+
var c = a === At;
|
|
459
|
+
U(ae) || Ze() ? l.label = null : I !== Ee ? ne() : (l.label = re(), xe());
|
|
460
460
|
for (var p = 0; p < _.length; ++p) {
|
|
461
461
|
var T = _[p];
|
|
462
462
|
if ((l.label === null || T.name === l.label.name) && (T.kind !== null && (c || T.kind === "loop") || l.label && c))
|
|
463
463
|
break;
|
|
464
464
|
}
|
|
465
|
-
return p === _.length && r(l.start, "Unsyntactic " +
|
|
465
|
+
return p === _.length && r(l.start, "Unsyntactic " + a.l), A(l, c ? "BreakStatement" : "ContinueStatement");
|
|
466
466
|
case vn:
|
|
467
|
-
return m(),
|
|
468
|
-
case
|
|
469
|
-
return m(), _.push(
|
|
467
|
+
return m(), xe(), A(l, "DebuggerStatement");
|
|
468
|
+
case xn:
|
|
469
|
+
return m(), _.push(Ut), l.body = ee(), _.pop(), V(Nt), l.test = Ne(), xe(), A(l, "DoWhileStatement");
|
|
470
470
|
case kn:
|
|
471
|
-
return m(), _.push(
|
|
471
|
+
return m(), _.push(Ut), V(ie), I === ae ? gt(l, null) : I === Pt ? (a = M(), m(), dn(a, !0), A(a, "VariableDeclaration"), a.fa.length === 1 && U(nt) ? pn(l, a) : gt(l, a)) : (a = K(!1, !0), U(nt) ? (Qe(a), pn(l, a)) : gt(l, a));
|
|
472
472
|
case jt:
|
|
473
|
-
return m(),
|
|
473
|
+
return m(), xt(l, !0);
|
|
474
474
|
case Cn:
|
|
475
|
-
return m(), l.test = Ne(), l.da = ee(), l.alternate =
|
|
475
|
+
return m(), l.test = Ne(), l.da = ee(), l.alternate = U(wn) ? ee() : null, A(l, "IfStatement");
|
|
476
476
|
case En:
|
|
477
|
-
return Fe || j.Ib || r(L, "'return' outside of function"), m(),
|
|
477
|
+
return Fe || j.Ib || r(L, "'return' outside of function"), m(), U(ae) || Ze() ? l.K = null : (l.K = K(), xe()), A(l, "ReturnStatement");
|
|
478
478
|
case Rt:
|
|
479
479
|
for (m(), l.Qb = Ne(), l.tb = [], V(_e), _.push(Zr); I !== Ie; )
|
|
480
|
-
I === Ot || I ===
|
|
480
|
+
I === Ot || I === bn ? (a = I === Ot, p && A(p, "SwitchCase"), l.tb.push(p = M()), p.da = [], m(), a ? p.test = K() : (c && r(Et, "Multiple default clauses"), c = !0, p.test = null), V(De)) : (p || ne(), p.da.push(ee()));
|
|
481
481
|
return p && A(p, "SwitchCase"), m(), _.pop(), A(l, "SwitchStatement");
|
|
482
482
|
case In:
|
|
483
|
-
return m(),
|
|
483
|
+
return m(), ot.test(g.slice(ge, L)) && r(ge, "Illegal newline after throw"), l.K = K(), xe(), A(l, "ThrowStatement");
|
|
484
484
|
case Tn:
|
|
485
|
-
return m(), l.block =
|
|
485
|
+
return m(), l.block = Be(), l.Ea = null, I === gn && (a = M(), m(), V(ie), a.Ua = re(), z && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), V(te), a.body = Be(), l.Ea = A(a, "CatchClause")), l.fb = U(Sn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
|
|
486
486
|
case Pt:
|
|
487
|
-
return m(), dn(l),
|
|
487
|
+
return m(), dn(l), xe(), A(l, "VariableDeclaration");
|
|
488
488
|
case Nt:
|
|
489
|
-
return m(), l.test = Ne(), _.push(
|
|
489
|
+
return m(), l.test = Ne(), _.push(Ut), l.body = ee(), _.pop(), A(l, "WhileStatement");
|
|
490
490
|
case An:
|
|
491
491
|
return z && r(L, "'with' in strict mode"), m(), l.object = Ne(), l.body = ee(), A(l, "WithStatement");
|
|
492
492
|
case _e:
|
|
493
|
-
return
|
|
493
|
+
return Be();
|
|
494
494
|
case ae:
|
|
495
495
|
return m(), A(l, "EmptyStatement");
|
|
496
496
|
default:
|
|
497
|
-
if (c = Q, T = K(),
|
|
497
|
+
if (c = Q, T = K(), a === Ee && T.type === "Identifier" && U(De)) {
|
|
498
498
|
for (p = 0; p < _.length; ++p)
|
|
499
499
|
_[p].name === c && r(T.start, "Label '" + c + "' is already declared");
|
|
500
500
|
return _.push({
|
|
@@ -502,173 +502,173 @@ var P, wi = function(e) {
|
|
|
502
502
|
kind: I.W ? "loop" : I === Rt ? "switch" : null
|
|
503
503
|
}), l.body = ee(), _.pop(), l.label = T, A(l, "LabeledStatement");
|
|
504
504
|
}
|
|
505
|
-
return l.la = T,
|
|
505
|
+
return l.la = T, xe(), A(l, "ExpressionStatement");
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
function Ne() {
|
|
509
|
-
V(
|
|
510
|
-
var
|
|
511
|
-
return V(te),
|
|
509
|
+
V(ie);
|
|
510
|
+
var a = K();
|
|
511
|
+
return V(te), a;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
514
|
-
var l =
|
|
515
|
-
for (l.body = [], V(_e); !
|
|
513
|
+
function Be(a) {
|
|
514
|
+
var l = M(), c = !0, p = !1;
|
|
515
|
+
for (l.body = [], V(_e); !U(Ie); ) {
|
|
516
516
|
var T = ee();
|
|
517
|
-
if (l.body.push(T), c &&
|
|
518
|
-
var
|
|
517
|
+
if (l.body.push(T), c && a && mt(T)) {
|
|
518
|
+
var W = p;
|
|
519
519
|
de(p = !0);
|
|
520
520
|
}
|
|
521
521
|
c = !1;
|
|
522
522
|
}
|
|
523
|
-
return p &&
|
|
523
|
+
return p && !W && de(!1), A(l, "BlockStatement");
|
|
524
524
|
}
|
|
525
|
-
function gt(
|
|
526
|
-
return
|
|
525
|
+
function gt(a, l) {
|
|
526
|
+
return a.ua = l, V(ae), a.test = I === ae ? null : K(), V(ae), a.update = I === te ? null : K(), V(te), a.body = ee(), _.pop(), A(a, "ForStatement");
|
|
527
527
|
}
|
|
528
|
-
function pn(
|
|
529
|
-
return
|
|
528
|
+
function pn(a, l) {
|
|
529
|
+
return a.left = l, a.right = K(), V(te), a.body = ee(), _.pop(), A(a, "ForInStatement");
|
|
530
530
|
}
|
|
531
|
-
function dn(
|
|
532
|
-
for (
|
|
533
|
-
var c =
|
|
534
|
-
if (c.id = re(), z && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua =
|
|
531
|
+
function dn(a, l) {
|
|
532
|
+
for (a.fa = [], a.kind = "var"; ; ) {
|
|
533
|
+
var c = M();
|
|
534
|
+
if (c.id = re(), z && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = U(Fn) ? K(!0, l) : null, a.fa.push(A(c, "VariableDeclarator")), !U(ye))
|
|
535
535
|
break;
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function K(
|
|
538
|
+
function K(a, l) {
|
|
539
539
|
var c = yt(l);
|
|
540
|
-
if (!
|
|
541
|
-
for (
|
|
542
|
-
|
|
543
|
-
return A(
|
|
540
|
+
if (!a && I === ye) {
|
|
541
|
+
for (a = me(c), a.xb = [c]; U(ye); )
|
|
542
|
+
a.xb.push(yt(l));
|
|
543
|
+
return A(a, "SequenceExpression");
|
|
544
544
|
}
|
|
545
545
|
return c;
|
|
546
546
|
}
|
|
547
|
-
function yt(
|
|
548
|
-
var l = vt(
|
|
549
|
-
if (
|
|
547
|
+
function yt(a) {
|
|
548
|
+
var l = vt(bt(), -1, a);
|
|
549
|
+
if (U(Mn)) {
|
|
550
550
|
var c = me(l);
|
|
551
|
-
c.test = l, c.da = K(!0), V(De), c.alternate = K(!0,
|
|
551
|
+
c.test = l, c.da = K(!0), V(De), c.alternate = K(!0, a), l = A(c, "ConditionalExpression");
|
|
552
552
|
}
|
|
553
|
-
return I.Cb ? (c = me(l), c.operator = Q, c.left = l, m(), c.right = yt(
|
|
553
|
+
return I.Cb ? (c = me(l), c.operator = Q, c.left = l, m(), c.right = yt(a), Qe(l), A(c, "AssignmentExpression")) : l;
|
|
554
554
|
}
|
|
555
|
-
function vt(
|
|
555
|
+
function vt(a, l, c) {
|
|
556
556
|
var p = I.L;
|
|
557
557
|
if (p !== null && (!c || I !== nt) && p > l) {
|
|
558
|
-
var T = me(
|
|
559
|
-
return T.left =
|
|
558
|
+
var T = me(a);
|
|
559
|
+
return T.left = a, T.operator = Q, a = I, m(), T.right = vt(bt(), p, c), p = A(T, a === _n || a === Dn ? "LogicalExpression" : "BinaryExpression"), vt(p, l, c);
|
|
560
560
|
}
|
|
561
|
-
return
|
|
561
|
+
return a;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function bt() {
|
|
564
564
|
if (I.prefix) {
|
|
565
|
-
var
|
|
566
|
-
return
|
|
565
|
+
var a = M(), l = I.$b;
|
|
566
|
+
return a.operator = Q, Ue = a.prefix = !0, m(), a.K = bt(), l ? Qe(a.K) : z && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), A(a, l ? "UpdateExpression" : "UnaryExpression");
|
|
567
567
|
}
|
|
568
|
-
for (l =
|
|
569
|
-
|
|
568
|
+
for (l = Me(et()); I.cc && !Ze(); )
|
|
569
|
+
a = me(l), a.operator = Q, a.prefix = !1, a.K = l, Qe(l), m(), l = A(a, "UpdateExpression");
|
|
570
570
|
return l;
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
if (
|
|
574
|
-
var c = me(
|
|
575
|
-
return c.object =
|
|
572
|
+
function Me(a, l) {
|
|
573
|
+
if (U(Bn)) {
|
|
574
|
+
var c = me(a);
|
|
575
|
+
return c.object = a, c.Wa = re(!0), c.bb = !1, Me(A(c, "MemberExpression"), l);
|
|
576
576
|
}
|
|
577
|
-
return
|
|
577
|
+
return U(Bt) ? (c = me(a), c.object = a, c.Wa = K(), c.bb = !0, V(Mt), Me(A(c, "MemberExpression"), l)) : !l && U(ie) ? (c = me(a), c.callee = a, c.arguments = wt(te, !1), Me(A(c, "CallExpression"), l)) : a;
|
|
578
578
|
}
|
|
579
579
|
function et() {
|
|
580
580
|
switch (I) {
|
|
581
581
|
case jn:
|
|
582
|
-
var
|
|
583
|
-
return m(), A(
|
|
582
|
+
var a = M();
|
|
583
|
+
return m(), A(a, "ThisExpression");
|
|
584
584
|
case Ee:
|
|
585
585
|
return re();
|
|
586
586
|
case Ve:
|
|
587
587
|
case tt:
|
|
588
588
|
case mn:
|
|
589
|
-
return
|
|
589
|
+
return a = M(), a.value = Q, a.raw = g.slice(L, Ce), m(), A(a, "Literal");
|
|
590
590
|
case Rn:
|
|
591
591
|
case Pn:
|
|
592
592
|
case Nn:
|
|
593
|
-
return
|
|
594
|
-
case
|
|
595
|
-
|
|
593
|
+
return a = M(), a.value = I.$a, a.raw = I.l, m(), A(a, "Literal");
|
|
594
|
+
case ie:
|
|
595
|
+
a = kt;
|
|
596
596
|
var l = L;
|
|
597
597
|
m();
|
|
598
598
|
var c = K();
|
|
599
|
-
return c.start = l, c.end = Ce, j.C && (c.X.start =
|
|
600
|
-
case
|
|
601
|
-
return
|
|
599
|
+
return c.start = l, c.end = Ce, j.C && (c.X.start = a, c.X.end = Ct), j.Xa && (c.j = [l, Ce]), V(te), c;
|
|
600
|
+
case Bt:
|
|
601
|
+
return a = M(), m(), a.elements = wt(Mt, !0, !0), A(a, "ArrayExpression");
|
|
602
602
|
case _e:
|
|
603
|
-
for (
|
|
603
|
+
for (a = M(), l = !0, c = !1, a.h = [], m(); !U(Ie); ) {
|
|
604
604
|
if (l)
|
|
605
605
|
l = !1;
|
|
606
|
-
else if (V(ye), j.sb &&
|
|
606
|
+
else if (V(ye), j.sb && U(Ie))
|
|
607
607
|
break;
|
|
608
608
|
var p = {
|
|
609
609
|
key: I === Ve || I === tt ? et() : re(!0)
|
|
610
610
|
}, T = !1;
|
|
611
|
-
if (
|
|
611
|
+
if (U(De)) {
|
|
612
612
|
p.value = K(!0);
|
|
613
|
-
var
|
|
613
|
+
var W = p.kind = "init";
|
|
614
614
|
} else
|
|
615
|
-
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0,
|
|
615
|
+
p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ne() : (T = c = !0, W = p.kind = p.key.name, p.key = I === Ve || I === tt ? et() : re(!0), I !== ie && ne(), p.value = xt(M(), !1));
|
|
616
616
|
if (p.key.type === "Identifier" && (z || c))
|
|
617
|
-
for (var X = 0; X <
|
|
618
|
-
var Ae =
|
|
617
|
+
for (var X = 0; X < a.h.length; ++X) {
|
|
618
|
+
var Ae = a.h[X];
|
|
619
619
|
if (Ae.key.name === p.key.name) {
|
|
620
|
-
var Ft =
|
|
621
|
-
Ft && !z &&
|
|
620
|
+
var Ft = W === Ae.kind || T && Ae.kind === "init" || W === "init" && (Ae.kind === "get" || Ae.kind === "set");
|
|
621
|
+
Ft && !z && W === "init" && Ae.kind === "init" && (Ft = !1), Ft && r(p.key.start, "Redefinition of property");
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
|
|
624
|
+
a.h.push(p);
|
|
625
625
|
}
|
|
626
|
-
return A(
|
|
626
|
+
return A(a, "ObjectExpression");
|
|
627
627
|
case jt:
|
|
628
|
-
return
|
|
628
|
+
return a = M(), m(), xt(a, !1);
|
|
629
629
|
case On:
|
|
630
|
-
return
|
|
630
|
+
return a = M(), m(), a.callee = Me(et(), !0), a.arguments = U(ie) ? wt(te, !1) : Fr, A(a, "NewExpression");
|
|
631
631
|
}
|
|
632
632
|
ne();
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
I === Ee ?
|
|
634
|
+
function xt(a, l) {
|
|
635
|
+
I === Ee ? a.id = re() : l ? ne() : a.id = null, a.oa = [];
|
|
636
636
|
var c = !0;
|
|
637
|
-
for (V(
|
|
638
|
-
c ? c = !1 : V(ye),
|
|
637
|
+
for (V(ie); !U(te); )
|
|
638
|
+
c ? c = !1 : V(ye), a.oa.push(re());
|
|
639
639
|
c = Fe;
|
|
640
640
|
var p = _;
|
|
641
|
-
if (Fe = !0, _ = [],
|
|
642
|
-
for (c =
|
|
643
|
-
if (p = 0 > c ?
|
|
641
|
+
if (Fe = !0, _ = [], a.body = Be(!0), Fe = c, _ = p, z || a.body.body.length && mt(a.body.body[0])) {
|
|
642
|
+
for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
|
|
643
|
+
if (p = 0 > c ? a.id : a.oa[c], (Ln(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
|
|
644
644
|
for (var T = 0; T < c; ++T)
|
|
645
|
-
p.name ===
|
|
645
|
+
p.name === a.oa[T].name && r(p.start, "Argument name clash in strict mode");
|
|
646
646
|
}
|
|
647
|
-
return A(
|
|
647
|
+
return A(a, l ? "FunctionDeclaration" : "FunctionExpression");
|
|
648
648
|
}
|
|
649
|
-
function
|
|
650
|
-
for (var p = [], T = !0; !
|
|
649
|
+
function wt(a, l, c) {
|
|
650
|
+
for (var p = [], T = !0; !U(a); ) {
|
|
651
651
|
if (T)
|
|
652
652
|
T = !1;
|
|
653
|
-
else if (V(ye), l && j.sb &&
|
|
653
|
+
else if (V(ye), l && j.sb && U(a))
|
|
654
654
|
break;
|
|
655
655
|
p.push(c && I === ye ? null : K(!0));
|
|
656
656
|
}
|
|
657
657
|
return p;
|
|
658
658
|
}
|
|
659
|
-
function re(
|
|
660
|
-
var l =
|
|
661
|
-
return
|
|
659
|
+
function re(a) {
|
|
660
|
+
var l = M();
|
|
661
|
+
return a && j.yb === "everywhere" && (a = !1), I === Ee ? (!a && (j.yb && Yr(Q) || z && Ln(Q)) && g.slice(L, Ce).indexOf("\\") === -1 && r(L, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ne(), Ue = !1, m(), A(l, "Identifier");
|
|
662
662
|
}
|
|
663
663
|
e.version = "0.5.0";
|
|
664
664
|
var j, g = "", ke, St;
|
|
665
|
-
e.parse = function(
|
|
666
|
-
g = String(
|
|
665
|
+
e.parse = function(a, l) {
|
|
666
|
+
g = String(a), ke = g.length, j = l || {};
|
|
667
667
|
for (var c in hn)
|
|
668
668
|
Object.prototype.hasOwnProperty.call(j, c) || (j[c] = hn[c]);
|
|
669
|
-
for (St = j.sourceFile,
|
|
670
|
-
c = ee(),
|
|
671
|
-
return A(
|
|
669
|
+
for (St = j.sourceFile, we = 1, f = oe = 0, Ue = !0, d(), c = j.dc, Et = ge = f, j.C && (It = new i()), Fe = z = !1, _ = [], k(), a = c || M(), l = !0, c || (a.body = []); I !== Tt; )
|
|
670
|
+
c = ee(), a.body.push(c), l && mt(c) && de(!0), l = !1;
|
|
671
|
+
return A(a, "Program");
|
|
672
672
|
};
|
|
673
673
|
var hn = {
|
|
674
674
|
fc: !1,
|
|
@@ -681,7 +681,7 @@ var P, wi = function(e) {
|
|
|
681
681
|
dc: null,
|
|
682
682
|
sourceFile: null,
|
|
683
683
|
vb: null
|
|
684
|
-
}, f = 0, L = 0, Ce = 0, kt, Ct, I, Q,
|
|
684
|
+
}, f = 0, L = 0, Ce = 0, kt, Ct, I, Q, Ue, we, oe, Et = 0, ge = 0, It, Fe, _, z, Fr = [], Ve = {
|
|
685
685
|
type: "num"
|
|
686
686
|
}, mn = {
|
|
687
687
|
type: "regexp"
|
|
@@ -702,12 +702,12 @@ var P, wi = function(e) {
|
|
|
702
702
|
l: "continue"
|
|
703
703
|
}, vn = {
|
|
704
704
|
l: "debugger"
|
|
705
|
-
},
|
|
705
|
+
}, bn = {
|
|
706
706
|
l: "default"
|
|
707
|
-
},
|
|
707
|
+
}, xn = {
|
|
708
708
|
l: "do",
|
|
709
709
|
W: !0
|
|
710
|
-
},
|
|
710
|
+
}, wn = {
|
|
711
711
|
l: "else",
|
|
712
712
|
m: !0
|
|
713
713
|
}, Sn = {
|
|
@@ -760,9 +760,9 @@ var P, wi = function(e) {
|
|
|
760
760
|
catch: gn,
|
|
761
761
|
continue: yn,
|
|
762
762
|
debugger: vn,
|
|
763
|
-
default:
|
|
764
|
-
do:
|
|
765
|
-
else:
|
|
763
|
+
default: bn,
|
|
764
|
+
do: xn,
|
|
765
|
+
else: wn,
|
|
766
766
|
finally: Sn,
|
|
767
767
|
for: kn,
|
|
768
768
|
function: jt,
|
|
@@ -800,17 +800,17 @@ var P, wi = function(e) {
|
|
|
800
800
|
prefix: !0,
|
|
801
801
|
m: !0
|
|
802
802
|
}
|
|
803
|
-
},
|
|
803
|
+
}, Bt = {
|
|
804
804
|
type: "[",
|
|
805
805
|
m: !0
|
|
806
|
-
},
|
|
806
|
+
}, Mt = {
|
|
807
807
|
type: "]"
|
|
808
808
|
}, _e = {
|
|
809
809
|
type: "{",
|
|
810
810
|
m: !0
|
|
811
811
|
}, Ie = {
|
|
812
812
|
type: "}"
|
|
813
|
-
},
|
|
813
|
+
}, ie = {
|
|
814
814
|
type: "(",
|
|
815
815
|
m: !0
|
|
816
816
|
}, te = {
|
|
@@ -824,12 +824,12 @@ var P, wi = function(e) {
|
|
|
824
824
|
}, De = {
|
|
825
825
|
type: ":",
|
|
826
826
|
m: !0
|
|
827
|
-
},
|
|
827
|
+
}, Bn = {
|
|
828
828
|
type: "."
|
|
829
|
-
},
|
|
829
|
+
}, Mn = {
|
|
830
830
|
type: "?",
|
|
831
831
|
m: !0
|
|
832
|
-
},
|
|
832
|
+
}, Un = {
|
|
833
833
|
L: 10,
|
|
834
834
|
m: !0
|
|
835
835
|
}, Fn = {
|
|
@@ -857,10 +857,10 @@ var P, wi = function(e) {
|
|
|
857
857
|
}, Lr = {
|
|
858
858
|
L: 4,
|
|
859
859
|
m: !0
|
|
860
|
-
},
|
|
860
|
+
}, Wr = {
|
|
861
861
|
L: 5,
|
|
862
862
|
m: !0
|
|
863
|
-
},
|
|
863
|
+
}, $r = {
|
|
864
864
|
L: 6,
|
|
865
865
|
m: !0
|
|
866
866
|
}, Hr = {
|
|
@@ -876,13 +876,13 @@ var P, wi = function(e) {
|
|
|
876
876
|
}, Xr = {
|
|
877
877
|
L: 10,
|
|
878
878
|
m: !0
|
|
879
|
-
}, Yr =
|
|
879
|
+
}, Yr = o("class enum extends super const export import"), Ln = o("implements interface let package private protected public static yield"), rt = o("eval arguments"), Jr = o("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this"), zr = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Wn = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"), qr = RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_]"), ot = /[\n\r\u2028\u2029]/, it = /\r\n|[\n\r\u2028\u2029]/g, Te, Ut = {
|
|
880
880
|
kind: "loop"
|
|
881
881
|
}, Zr = {
|
|
882
882
|
kind: "switch"
|
|
883
883
|
};
|
|
884
884
|
}, Lt = Lt = typeof globalThis > "u" ? void 0 : globalThis;
|
|
885
|
-
|
|
885
|
+
wo(Lt.j || (Lt.j = {}));
|
|
886
886
|
function h(e, t) {
|
|
887
887
|
typeof e == "string" && (e = je(e, "code"));
|
|
888
888
|
var n = e.constructor;
|
|
@@ -891,15 +891,15 @@ function h(e, t) {
|
|
|
891
891
|
options: {}
|
|
892
892
|
});
|
|
893
893
|
};
|
|
894
|
-
var r = this.ya(),
|
|
895
|
-
for (
|
|
896
|
-
r[
|
|
894
|
+
var r = this.ya(), o;
|
|
895
|
+
for (o in e)
|
|
896
|
+
r[o] = o === "body" ? e[o].slice() : e[o];
|
|
897
897
|
this.ra = r, this.ca = [], this.qb = t, this.za = !1, this.ba = [], this.Ya = 0, this.rb = /* @__PURE__ */ Object.create(null), e = /^step([A-Z]\w*)$/;
|
|
898
|
-
var
|
|
898
|
+
var i, s;
|
|
899
899
|
for (s in this)
|
|
900
|
-
typeof this[s] == "function" && (
|
|
901
|
-
this.N =
|
|
902
|
-
`), "polyfills"), this.ba = void 0, ut(this.ra),
|
|
900
|
+
typeof this[s] == "function" && (i = s.match(e)) && (this.rb[i[1]] = this[s].bind(this));
|
|
901
|
+
this.N = $t(this, this.ra, null), this.Na = this.N.object, this.ra = je(this.ba.join(`
|
|
902
|
+
`), "polyfills"), this.ba = void 0, ut(this.ra), i = new v(this.ra, this.N), i.done = !1, this.o = [i], this.Eb(), this.value = void 0, this.ra = r, i = new v(this.ra, this.N), i.done = !1, this.o.length = 0, this.o[0] = i;
|
|
903
903
|
}
|
|
904
904
|
var Hn = {
|
|
905
905
|
C: !0,
|
|
@@ -932,7 +932,7 @@ var Hn = {
|
|
|
932
932
|
VALUE_IN_DESCRIPTOR: !0
|
|
933
933
|
}, Oe = {
|
|
934
934
|
REGEXP_TIMEOUT: !0
|
|
935
|
-
}, Gn = [], le = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis,
|
|
935
|
+
}, Gn = [], le = null, Ge = null, ve = typeof globalThis > "u" ? void 0 : globalThis, So = ["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();", "};"];
|
|
936
936
|
function Jt(e) {
|
|
937
937
|
var t = e >>> 0;
|
|
938
938
|
return t === Number(e) ? t : NaN;
|
|
@@ -945,8 +945,8 @@ function ut(e, t, n) {
|
|
|
945
945
|
t ? e.start = t : delete e.start, n ? e.end = n : delete e.end;
|
|
946
946
|
for (var r in e)
|
|
947
947
|
if (r !== "loc" && e.hasOwnProperty(r)) {
|
|
948
|
-
var
|
|
949
|
-
|
|
948
|
+
var o = e[r];
|
|
949
|
+
o && typeof o == "object" && ut(o, t, n);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
h.prototype.REGEXP_MODE = 2;
|
|
@@ -991,17 +991,17 @@ P.lb = function() {
|
|
|
991
991
|
break;
|
|
992
992
|
}
|
|
993
993
|
r = n.node;
|
|
994
|
-
var
|
|
994
|
+
var o = Ge;
|
|
995
995
|
Ge = this;
|
|
996
996
|
try {
|
|
997
|
-
var
|
|
997
|
+
var i = this.rb[r.type](e, n, r);
|
|
998
998
|
} catch (s) {
|
|
999
999
|
if (s !== pr)
|
|
1000
1000
|
throw this.value !== s && (this.value = void 0), s;
|
|
1001
1001
|
} finally {
|
|
1002
|
-
Ge =
|
|
1002
|
+
Ge = o;
|
|
1003
1003
|
}
|
|
1004
|
-
if (
|
|
1004
|
+
if (i && e.push(i), this.P)
|
|
1005
1005
|
throw this.value = void 0, Error("Getter not supported in this context");
|
|
1006
1006
|
if (this.Ka)
|
|
1007
1007
|
throw this.value = void 0, Error("Setter not supported in this context");
|
|
@@ -1014,123 +1014,123 @@ P.Eb = function() {
|
|
|
1014
1014
|
;
|
|
1015
1015
|
return this.za;
|
|
1016
1016
|
};
|
|
1017
|
-
function
|
|
1018
|
-
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Yt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M),
|
|
1017
|
+
function ko(e, t) {
|
|
1018
|
+
e.g(t, "NaN", NaN, Le), e.g(t, "Infinity", 1 / 0, Le), e.g(t, "undefined", void 0, Le), e.g(t, "window", t, Yt), e.g(t, "this", t, Le), e.g(t, "self", t), e.M = new R(null), e.Z = new R(e.M), Co(e, t), Eo(e, t), t.xa = e.M, e.g(t, "constructor", e.v, y), Io(e, t), To(e, t), Ao(e, t), Oo(e, t), jo(e, t), Ro(e, t), Po(e, t), No(e, t), Bo(e, t);
|
|
1019
1019
|
var n = e.i(function() {
|
|
1020
1020
|
throw EvalError("Can't happen");
|
|
1021
1021
|
}, !1);
|
|
1022
1022
|
n.eval = !0, e.g(t, "eval", n, y), e.g(t, "parseInt", e.i(parseInt, !1), y), e.g(t, "parseFloat", e.i(parseFloat, !1), y), e.g(t, "isNaN", e.i(isNaN, !1), y), e.g(t, "isFinite", e.i(isFinite, !1), y);
|
|
1023
|
-
for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]],
|
|
1024
|
-
n = function(
|
|
1023
|
+
for (var r = [[escape, "escape"], [unescape, "unescape"], [decodeURI, "decodeURI"], [decodeURIComponent, "decodeURIComponent"], [encodeURI, "encodeURI"], [encodeURIComponent, "encodeURIComponent"]], o = 0; o < r.length; o++)
|
|
1024
|
+
n = function(i) {
|
|
1025
1025
|
return function(s) {
|
|
1026
1026
|
try {
|
|
1027
|
-
return
|
|
1027
|
+
return i(s);
|
|
1028
1028
|
} catch (u) {
|
|
1029
|
-
|
|
1029
|
+
x(e, e.Gb, u.message);
|
|
1030
1030
|
}
|
|
1031
1031
|
};
|
|
1032
|
-
}(r[
|
|
1033
|
-
n = function(
|
|
1032
|
+
}(r[o][0]), e.g(t, r[o][1], e.i(n, !1), y);
|
|
1033
|
+
n = function(i) {
|
|
1034
1034
|
return Xn(e, !1, arguments);
|
|
1035
|
-
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(
|
|
1035
|
+
}, e.g(t, "setTimeout", e.i(n, !1), y), n = function(i) {
|
|
1036
1036
|
return Xn(e, !0, arguments);
|
|
1037
|
-
}, e.g(t, "setInterval", e.i(n, !1), y), n = function(
|
|
1038
|
-
Yn(e,
|
|
1039
|
-
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(
|
|
1040
|
-
Yn(e,
|
|
1037
|
+
}, e.g(t, "setInterval", e.i(n, !1), y), n = function(i) {
|
|
1038
|
+
Yn(e, i);
|
|
1039
|
+
}, e.g(t, "clearTimeout", e.i(n, !1), y), n = function(i) {
|
|
1040
|
+
Yn(e, i);
|
|
1041
1041
|
}, e.g(t, "clearInterval", e.i(n, !1), y), 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);
|
|
1042
1042
|
}
|
|
1043
1043
|
P.Wb = 0;
|
|
1044
|
-
function
|
|
1045
|
-
var n = /^[A-Za-z_$][\w$]*$/, r = function(
|
|
1046
|
-
var
|
|
1044
|
+
function Co(e, t) {
|
|
1045
|
+
var n = /^[A-Za-z_$][\w$]*$/, r = function(o) {
|
|
1046
|
+
var i = arguments.length ? String(arguments[arguments.length - 1]) : "", s = Array.prototype.slice.call(arguments, 0, -1).join(",").trim();
|
|
1047
1047
|
if (s) {
|
|
1048
1048
|
s = s.split(/\s*,\s*/);
|
|
1049
1049
|
for (var u = 0; u < s.length; u++) {
|
|
1050
1050
|
var d = s[u];
|
|
1051
|
-
n.test(d) ||
|
|
1051
|
+
n.test(d) || x(e, e.T, "Invalid function argument: " + d);
|
|
1052
1052
|
}
|
|
1053
1053
|
s = s.join(", ");
|
|
1054
1054
|
}
|
|
1055
1055
|
try {
|
|
1056
|
-
var E = je("(function(" + s + ") {" +
|
|
1056
|
+
var E = je("(function(" + s + ") {" + i + "})", "function" + e.Wb++);
|
|
1057
1057
|
} catch (k) {
|
|
1058
|
-
|
|
1058
|
+
x(e, e.T, "Invalid code: " + k.message);
|
|
1059
1059
|
}
|
|
1060
|
-
return E.body.length !== 1 &&
|
|
1060
|
+
return E.body.length !== 1 && x(e, e.T, "Invalid code in function body"), Zt(e, E.body[0].la, e.N, "anonymous");
|
|
1061
1061
|
};
|
|
1062
1062
|
e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
|
|
1063
|
-
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(
|
|
1063
|
+
}, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, J), e.Z.H = "Function", r = function(o, i) {
|
|
1064
1064
|
var s = e.o[e.o.length - 1];
|
|
1065
|
-
s.U = this, s.B =
|
|
1066
|
-
},
|
|
1067
|
-
var
|
|
1068
|
-
|
|
1065
|
+
s.U = this, s.B = o, s.F = [], i != null && (i instanceof R ? s.F = dr(e, i) : x(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
|
|
1066
|
+
}, $(e, e.O, "apply", r), r = function(o) {
|
|
1067
|
+
var i = e.o[e.o.length - 1];
|
|
1068
|
+
i.U = this, i.B = o, i.F = [];
|
|
1069
1069
|
for (var s = 1; s < arguments.length; s++)
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
},
|
|
1070
|
+
i.F.push(arguments[s]);
|
|
1071
|
+
i.eb = !1;
|
|
1072
|
+
}, $(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() {
|
|
1073
1073
|
return String(this);
|
|
1074
|
-
},
|
|
1074
|
+
}, $(e, e.O, "toString", r), e.g(e.O, "toString", e.i(r, !1), y), r = function() {
|
|
1075
1075
|
return this.valueOf();
|
|
1076
|
-
},
|
|
1076
|
+
}, $(e, e.O, "valueOf", r), e.g(e.O, "valueOf", e.i(r, !1), y);
|
|
1077
1077
|
}
|
|
1078
|
-
function
|
|
1079
|
-
function n(
|
|
1080
|
-
|
|
1078
|
+
function Eo(e, t) {
|
|
1079
|
+
function n(o) {
|
|
1080
|
+
o != null || x(e, e.j, "Cannot convert '" + o + "' to object");
|
|
1081
1081
|
}
|
|
1082
|
-
var r = function(
|
|
1083
|
-
if (
|
|
1082
|
+
var r = function(o) {
|
|
1083
|
+
if (o == null)
|
|
1084
1084
|
return fe(e) ? this : e.s(e.M);
|
|
1085
|
-
if (!(
|
|
1086
|
-
var
|
|
1087
|
-
return
|
|
1085
|
+
if (!(o instanceof R)) {
|
|
1086
|
+
var i = e.s(ce(e, o));
|
|
1087
|
+
return i.data = o, i;
|
|
1088
1088
|
}
|
|
1089
|
-
return
|
|
1089
|
+
return o;
|
|
1090
1090
|
};
|
|
1091
|
-
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(
|
|
1092
|
-
return n(
|
|
1093
|
-
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(
|
|
1094
|
-
return n(
|
|
1095
|
-
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(
|
|
1096
|
-
return
|
|
1097
|
-
}, e.g(e.v, "create", e.i(r, !1), y), 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(
|
|
1098
|
-
return
|
|
1099
|
-
}, e.g(e.v, "defineProperty", e.i(r, !1), y), 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(
|
|
1100
|
-
if (
|
|
1101
|
-
var s = Object.getOwnPropertyDescriptor(
|
|
1102
|
-
return
|
|
1091
|
+
e.v = e.i(r, !0), e.g(e.v, "prototype", e.M, y), e.g(e.M, "constructor", e.v, y), e.g(t, "Object", e.v, y), r = function(o) {
|
|
1092
|
+
return n(o), se(e, Object.getOwnPropertyNames(o instanceof R ? o.h : o));
|
|
1093
|
+
}, e.g(e.v, "getOwnPropertyNames", e.i(r, !1), y), r = function(o) {
|
|
1094
|
+
return n(o), o instanceof R && (o = o.h), se(e, Object.keys(o));
|
|
1095
|
+
}, e.g(e.v, "keys", e.i(r, !1), y), r = function(o) {
|
|
1096
|
+
return o === null ? e.s(null) : (o instanceof R || x(e, e.j, "Object prototype may only be an Object or null, not " + o), e.s(o));
|
|
1097
|
+
}, e.g(e.v, "create", e.i(r, !1), y), 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(o, i, s) {
|
|
1098
|
+
return i = String(i), o instanceof R || x(e, e.j, "Object.defineProperty called on non-object: " + o), s instanceof R || x(e, e.j, "Property description must be an object"), !o.preventExtensions || i in o.h || x(e, e.j, "Can't define property '" + i + "', object is not extensible"), e.g(o, i, Ye, s.h), o;
|
|
1099
|
+
}, e.g(e.v, "defineProperty", e.i(r, !1), y), 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(o, i) {
|
|
1100
|
+
if (o instanceof R || x(e, e.j, "Object.getOwnPropertyDescriptor called on non-object: " + o), i = String(i), i in o.h) {
|
|
1101
|
+
var s = Object.getOwnPropertyDescriptor(o.h, i), u = o.V[i];
|
|
1102
|
+
return o = o.Y[i], i = e.s(e.M), u || o ? (e.g(i, "get", u), e.g(i, "set", o)) : (e.g(i, "value", s.value), e.g(i, "writable", s.writable)), e.g(i, "configurable", s.configurable), e.g(i, "enumerable", s.enumerable), i;
|
|
1103
1103
|
}
|
|
1104
|
-
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), y), r = function(
|
|
1105
|
-
return n(
|
|
1106
|
-
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(
|
|
1107
|
-
return !!
|
|
1108
|
-
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(
|
|
1109
|
-
return
|
|
1110
|
-
}, e.g(e.v, "preventExtensions", e.i(r, !1), y),
|
|
1111
|
-
return n(this), this instanceof R ? String(
|
|
1112
|
-
},
|
|
1113
|
-
return n(this), this instanceof R ? Object.prototype.propertyIsEnumerable.call(this.h,
|
|
1114
|
-
},
|
|
1104
|
+
}, e.g(e.v, "getOwnPropertyDescriptor", e.i(r, !1), y), r = function(o) {
|
|
1105
|
+
return n(o), ce(e, o);
|
|
1106
|
+
}, e.g(e.v, "getPrototypeOf", e.i(r, !1), y), r = function(o) {
|
|
1107
|
+
return !!o && !o.preventExtensions;
|
|
1108
|
+
}, e.g(e.v, "isExtensible", e.i(r, !1), y), r = function(o) {
|
|
1109
|
+
return o instanceof R && (o.preventExtensions = !0), o;
|
|
1110
|
+
}, e.g(e.v, "preventExtensions", e.i(r, !1), y), $(e, e.v, "toString", R.prototype.toString), $(e, e.v, "toLocaleString", R.prototype.toString), $(e, e.v, "valueOf", R.prototype.valueOf), r = function(o) {
|
|
1111
|
+
return n(this), this instanceof R ? String(o) in this.h : this.hasOwnProperty(o);
|
|
1112
|
+
}, $(e, e.v, "hasOwnProperty", r), r = function(o) {
|
|
1113
|
+
return n(this), this instanceof R ? Object.prototype.propertyIsEnumerable.call(this.h, o) : this.propertyIsEnumerable(o);
|
|
1114
|
+
}, $(e, e.v, "propertyIsEnumerable", r), r = function(o) {
|
|
1115
1115
|
for (; ; ) {
|
|
1116
|
-
if (
|
|
1116
|
+
if (o = ce(e, o), !o)
|
|
1117
1117
|
return !1;
|
|
1118
|
-
if (
|
|
1118
|
+
if (o === this)
|
|
1119
1119
|
return !0;
|
|
1120
1120
|
}
|
|
1121
|
-
},
|
|
1121
|
+
}, $(e, e.v, "isPrototypeOf", r);
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function Io(e, t) {
|
|
1124
1124
|
var n = function(r) {
|
|
1125
|
-
var
|
|
1126
|
-
if (arguments.length === 1 && typeof
|
|
1127
|
-
isNaN(Jt(
|
|
1125
|
+
var o = fe(e) ? this : Re(e), i = arguments[0];
|
|
1126
|
+
if (arguments.length === 1 && typeof i == "number")
|
|
1127
|
+
isNaN(Jt(i)) && x(e, e.ob, "Invalid array length: " + i), o.h.length = i;
|
|
1128
1128
|
else {
|
|
1129
|
-
for (
|
|
1130
|
-
|
|
1131
|
-
|
|
1129
|
+
for (i = 0; i < arguments.length; i++)
|
|
1130
|
+
o.h[i] = arguments[i];
|
|
1131
|
+
o.h.length = i;
|
|
1132
1132
|
}
|
|
1133
|
-
return
|
|
1133
|
+
return o;
|
|
1134
1134
|
};
|
|
1135
1135
|
e.qa = e.i(n, !0), e.La = e.qa.h.prototype, e.g(t, "Array", e.qa, y), n = function(r) {
|
|
1136
1136
|
return r && r.H === "Array";
|
|
@@ -1140,95 +1140,95 @@ function Ei(e, t) {
|
|
|
1140
1140
|
writable: !0
|
|
1141
1141
|
}), e.La.H = "Array", e.ba.push("(function() {", "function createArrayMethod_(f) {", "Object.defineProperty(Array.prototype, f.name,", "{configurable: true, writable: true, value: f});", "}", "createArrayMethod_(", "function pop() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "len--;", "var x = o[len];", "delete o[len];", "o.length = len;", "return x;", "}", ");", "createArrayMethod_(", "function push(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "for (var i = 0; i < arguments.length; i++) {", "o[len] = arguments[i];", "len++;", "}", "o.length = len;", "return len;", "}", ");", "createArrayMethod_(", "function shift() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "o.length = 0;", "return undefined;", "}", "var value = o[0];", "for (var i = 0; i < len - 1; i++) {", "if ((i + 1) in o) {", "o[i] = o[i + 1];", "} else {", "delete o[i];", "}", "}", "delete o[i];", "o.length = len - 1;", "return value;", "}", ");", "createArrayMethod_(", "function unshift(var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 0) {", "len = 0;", "}", "for (var i = len - 1; i >= 0; i--) {", "if (i in o) {", "o[i + arguments.length] = o[i];", "} else {", "delete o[i + arguments.length];", "}", "}", "for (var i = 0; i < arguments.length; i++) {", "o[i] = arguments[i];", "}", "return (o.length = len + arguments.length);", "}", ");", "createArrayMethod_(", "function reverse() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len || len < 2) {", "return o;", "}", "for (var i = 0; i < len / 2 - 0.5; i++) {", "var x = o[i];", "var hasX = i in o;", "if ((len - i - 1) in o) {", "o[i] = o[len - i - 1];", "} else {", "delete o[i];", "}", "if (hasX) {", "o[len - i - 1] = x;", "} else {", "delete o[len - i - 1];", "}", "}", "return o;", "}", ");", "createArrayMethod_(", "function indexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var n = fromIndex | 0;", "if (!len || n >= len) {", "return -1;", "}", "var i = Math.max(n >= 0 ? n : len - Math.abs(n), 0);", "while (i < len) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i++;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function lastIndexOf(searchElement, fromIndex) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "if (!len) {", "return -1;", "}", "var n = len - 1;", "if (arguments.length > 1) {", "n = fromIndex | 0;", "if (n) {", "n = (n > 0 || -1) * Math.floor(Math.abs(n));", "}", "}", "var i = n >= 0 ? Math.min(n, len - 1) : len - Math.abs(n);", "while (i >= 0) {", "if (i in o && o[i] === searchElement) {", "return i;", "}", "i--;", "}", "return -1;", "}", ");", "createArrayMethod_(", "function slice(start, end) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "start = (start >= 0) ? start : Math.max(0, len + start);", "if (typeof end !== 'undefined') {", "if (end !== Infinity) {", "end |= 0;", "}", "if (end < 0) {", "end = len + end;", "} else {", "end = Math.min(end, len);", "}", "} else {", "end = len;", "}", "var size = end - start;", "var cloned = new Array(size);", "for (var i = 0; i < size; i++) {", "if ((start + i) in o) {", "cloned[i] = o[start + i];", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function splice(start, deleteCount, var_args) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "start |= 0;", "if (start < 0) {", "start = Math.max(len + start, 0);", "} else {", "start = Math.min(start, len);", "}", "if (arguments.length < 1) {", "deleteCount = len - start;", "} else {", "deleteCount |= 0;", "deleteCount = Math.max(0, Math.min(deleteCount, len - start));", "}", "var removed = [];", "for (var i = start; i < start + deleteCount; i++) {", "if (i in o) {", "removed.push(o[i]);", "} else {", "removed.length++;", "}", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = start + deleteCount; i < len - deleteCount; i++) {", "if ((i + deleteCount) in o) {", "o[i] = o[i + deleteCount];", "} else {", "delete o[i];", "}", "}", "for (var i = len - deleteCount; i < len; i++) {", "delete o[i];", "}", "len -= deleteCount;", "var arl = arguments.length - 2;", "for (var i = len - 1; i >= start; i--) {", "if (i in o) {", "o[i + arl] = o[i];", "} else {", "delete o[i + arl];", "}", "}", "len += arl;", "for (var i = 2; i < arguments.length; i++) {", "o[start + i - 2] = arguments[i];", "}", "o.length = len;", "return removed;", "}", ");", "createArrayMethod_(", "function concat(var_args) {", "if (!this) throw TypeError();", "var o = Object(this);", "var cloned = [];", "for (var i = -1; i < arguments.length; i++) {", "var value = (i === -1) ? o : arguments[i];", "if (Array.isArray(value)) {", "for (var j = 0, l = value.length; j < l; j++) {", "if (j in value) {", "cloned.push(value[j]);", "} else {", "cloned.length++;", "}", "}", "} else {", "cloned.push(value);", "}", "}", "return cloned;", "}", ");", "createArrayMethod_(", "function join(opt_separator) {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var sep = typeof opt_separator === 'undefined' ?", "',' : ('' + opt_separator);", "var str = '';", "for (var i = 0; i < len; i++) {", "if (i && sep) str += sep;", "str += (o[i] === null || o[i] === undefined) ? '' : o[i];", "}", "return str;", "}", ");", "createArrayMethod_(", "function every(callbackfn, thisArg) {", "if (!this || typeof callbackfn !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o && !callbackfn.call(t, o[k], k, o)) return false;", "k++;", "}", "return true;", "}", ");", "createArrayMethod_(", "function filter(fun, var_args) {", "if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var res = [];", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o) {", "var val = o[i];", "if (fun.call(thisArg, val, i, o)) res.push(val);", "}", "}", "return res;", "}", ");", "createArrayMethod_(", "function forEach(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "while (k < len) {", "if (k in o) callback.call(t, o[k], k, o);", "k++;", "}", "}", ");", "createArrayMethod_(", "function map(callback, thisArg) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var t, k = 0;", "var o = Object(this), len = o.length >>> 0;", "if (arguments.length > 1) t = thisArg;", "var a = new Array(len);", "while (k < len) {", "if (k in o) a[k] = callback.call(t, o[k], k, o);", "k++;", "}", "return a;", "}", ");", "createArrayMethod_(", "function reduce(callback /*, initialValue*/) {", "if (!this || typeof callback !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = 0, value;", "if (arguments.length === 2) {", "value = arguments[1];", "} else {", "while (k < len && !(k in o)) k++;", "if (k >= len) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k++];", "}", "for (; k < len; k++) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function reduceRight(callback /*, initialValue*/) {", "if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var k = len - 1, value;", "if (arguments.length >= 2) {", "value = arguments[1];", "} else {", "while (k >= 0 && !(k in o)) k--;", "if (k < 0) {", "throw TypeError('Reduce of empty array with no initial value');", "}", "value = o[k--];", "}", "for (; k >= 0; k--) {", "if (k in o) value = callback(value, o[k], k, o);", "}", "return value;", "}", ");", "createArrayMethod_(", "function some(fun/*, thisArg*/) {", "if (!this || typeof fun !== 'function') throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var thisArg = arguments.length >= 2 ? arguments[1] : void 0;", "for (var i = 0; i < len; i++) {", "if (i in o && fun.call(thisArg, o[i], i, o)) return true;", "}", "return false;", "}", ");", "createArrayMethod_(", "function sort(opt_comp) {", "if (!this) throw TypeError();", "if (typeof opt_comp !== 'function') {", "opt_comp = undefined;", "}", "for (var i = 0; i < this.length; i++) {", "var changes = 0;", "for (var j = 0; j < this.length - i - 1; j++) {", "if (opt_comp ? (opt_comp(this[j], this[j + 1]) > 0) :", "(String(this[j]) > String(this[j + 1]))) {", "var swap = this[j];", "var hasSwap = j in this;", "if ((j + 1) in this) {", "this[j] = this[j + 1];", "} else {", "delete this[j];", "}", "if (hasSwap) {", "this[j + 1] = swap;", "} else {", "delete this[j + 1];", "}", "changes++;", "}", "}", "if (!changes) break;", "}", "return this;", "}", ");", "createArrayMethod_(", "function toLocaleString() {", "if (!this) throw TypeError();", "var o = Object(this), len = o.length >>> 0;", "var out = [];", "for (var i = 0; i < len; i++) {", "out[i] = (o[i] === null || o[i] === undefined) ? '' : o[i].toLocaleString();", "}", "return out.join(',');", "}", ");", "})();", "");
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function To(e, t) {
|
|
1144
1144
|
var n = function(r) {
|
|
1145
1145
|
return r = arguments.length ? ve.String(r) : "", fe(e) ? (this.data = r, this) : r;
|
|
1146
1146
|
};
|
|
1147
1147
|
for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
|
|
1148
|
-
|
|
1149
|
-
n = function(r,
|
|
1150
|
-
|
|
1148
|
+
$(e, e.J, t[n], String.prototype[t[n]]);
|
|
1149
|
+
n = function(r, o, i) {
|
|
1150
|
+
o = e.R(o), i = e.R(i);
|
|
1151
1151
|
try {
|
|
1152
|
-
return String(this).localeCompare(r,
|
|
1152
|
+
return String(this).localeCompare(r, o, i);
|
|
1153
1153
|
} catch (s) {
|
|
1154
|
-
|
|
1154
|
+
x(e, e.D, "localeCompare: " + s.message);
|
|
1155
1155
|
}
|
|
1156
|
-
},
|
|
1156
|
+
}, $(e, e.J, "localeCompare", n), n = function(r, o, i) {
|
|
1157
1157
|
var s = String(this);
|
|
1158
|
-
if (
|
|
1158
|
+
if (o = o ? Number(o) : void 0, H(e, r, e.I) && (r = r.data, $e(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1159
1159
|
if (le)
|
|
1160
|
-
r =
|
|
1160
|
+
r = We(e, "string.split(separator, limit)", {
|
|
1161
1161
|
string: s,
|
|
1162
1162
|
separator: r,
|
|
1163
|
-
limit:
|
|
1164
|
-
}, r,
|
|
1163
|
+
limit: o
|
|
1164
|
+
}, r, i), r !== Oe && i(se(e, r));
|
|
1165
1165
|
else {
|
|
1166
|
-
var u = e.ha(), d = He(e, r, u,
|
|
1166
|
+
var u = e.ha(), d = He(e, r, u, i);
|
|
1167
1167
|
u.onmessage = function(E) {
|
|
1168
|
-
clearTimeout(d),
|
|
1169
|
-
}, u.postMessage(["split", s, r,
|
|
1168
|
+
clearTimeout(d), i(se(e, E.data));
|
|
1169
|
+
}, u.postMessage(["split", s, r, o]);
|
|
1170
1170
|
}
|
|
1171
1171
|
return;
|
|
1172
1172
|
}
|
|
1173
|
-
r = s.split(r,
|
|
1174
|
-
}, Ke(e, e.J, "split", n), n = function(r,
|
|
1175
|
-
var
|
|
1176
|
-
if (r = H(e, r, e.I) ? r.data : new RegExp(r),
|
|
1173
|
+
r = s.split(r, o), i(se(e, r));
|
|
1174
|
+
}, Ke(e, e.J, "split", n), n = function(r, o) {
|
|
1175
|
+
var i = String(this);
|
|
1176
|
+
if (r = H(e, r, e.I) ? r.data : new RegExp(r), $e(e, r, o), e.REGEXP_MODE === 2)
|
|
1177
1177
|
if (le)
|
|
1178
|
-
r =
|
|
1179
|
-
string:
|
|
1178
|
+
r = We(e, "string.match(regexp)", {
|
|
1179
|
+
string: i,
|
|
1180
1180
|
regexp: r
|
|
1181
|
-
}, r,
|
|
1181
|
+
}, r, o), r !== Oe && o(r && se(e, r));
|
|
1182
1182
|
else {
|
|
1183
|
-
var s = e.ha(), u = He(e, r, s,
|
|
1183
|
+
var s = e.ha(), u = He(e, r, s, o);
|
|
1184
1184
|
s.onmessage = function(d) {
|
|
1185
|
-
clearTimeout(u),
|
|
1186
|
-
}, s.postMessage(["match",
|
|
1185
|
+
clearTimeout(u), o(d.data && se(e, d.data));
|
|
1186
|
+
}, s.postMessage(["match", i, r]);
|
|
1187
1187
|
}
|
|
1188
1188
|
else
|
|
1189
|
-
r =
|
|
1190
|
-
}, Ke(e, e.J, "match", n), n = function(r,
|
|
1191
|
-
var
|
|
1192
|
-
if (H(e, r, e.I) ? r = r.data : r = new RegExp(r),
|
|
1189
|
+
r = i.match(r), o(r && se(e, r));
|
|
1190
|
+
}, Ke(e, e.J, "match", n), n = function(r, o) {
|
|
1191
|
+
var i = String(this);
|
|
1192
|
+
if (H(e, r, e.I) ? r = r.data : r = new RegExp(r), $e(e, r, o), e.REGEXP_MODE === 2)
|
|
1193
1193
|
if (le)
|
|
1194
|
-
r =
|
|
1195
|
-
string:
|
|
1194
|
+
r = We(e, "string.search(regexp)", {
|
|
1195
|
+
string: i,
|
|
1196
1196
|
regexp: r
|
|
1197
|
-
}, r,
|
|
1197
|
+
}, r, o), r !== Oe && o(r);
|
|
1198
1198
|
else {
|
|
1199
|
-
var s = e.ha(), u = He(e, r, s,
|
|
1199
|
+
var s = e.ha(), u = He(e, r, s, o);
|
|
1200
1200
|
s.onmessage = function(d) {
|
|
1201
|
-
clearTimeout(u),
|
|
1202
|
-
}, s.postMessage(["search",
|
|
1201
|
+
clearTimeout(u), o(d.data);
|
|
1202
|
+
}, s.postMessage(["search", i, r]);
|
|
1203
1203
|
}
|
|
1204
1204
|
else
|
|
1205
|
-
i
|
|
1206
|
-
}, Ke(e, e.J, "search", n), n = function(r,
|
|
1205
|
+
o(i.search(r));
|
|
1206
|
+
}, Ke(e, e.J, "search", n), n = function(r, o, i) {
|
|
1207
1207
|
var s = String(this);
|
|
1208
|
-
if (
|
|
1208
|
+
if (o = String(o), H(e, r, e.I) && (r = r.data, $e(e, r, i), e.REGEXP_MODE === 2)) {
|
|
1209
1209
|
if (le)
|
|
1210
|
-
r =
|
|
1210
|
+
r = We(e, "string.replace(substr, newSubstr)", {
|
|
1211
1211
|
string: s,
|
|
1212
1212
|
substr: r,
|
|
1213
|
-
newSubstr:
|
|
1214
|
-
}, r,
|
|
1213
|
+
newSubstr: o
|
|
1214
|
+
}, r, i), r !== Oe && i(r);
|
|
1215
1215
|
else {
|
|
1216
|
-
var u = e.ha(), d = He(e, r, u,
|
|
1216
|
+
var u = e.ha(), d = He(e, r, u, i);
|
|
1217
1217
|
u.onmessage = function(E) {
|
|
1218
|
-
clearTimeout(d),
|
|
1219
|
-
}, u.postMessage(["replace", s, r,
|
|
1218
|
+
clearTimeout(d), i(E.data);
|
|
1219
|
+
}, u.postMessage(["replace", s, r, o]);
|
|
1220
1220
|
}
|
|
1221
1221
|
return;
|
|
1222
1222
|
}
|
|
1223
|
-
|
|
1223
|
+
i(s.replace(r, o));
|
|
1224
1224
|
}, Ke(e, e.J, "replace", n), e.ba.push("(function() {", "var replace_ = String.prototype.replace;", "String.prototype.replace = function replace(substr, newSubstr) {", "if (typeof newSubstr !== 'function') {", "return replace_.call(this, substr, newSubstr);", "}", "var str = this;", "if (substr instanceof RegExp) {", "var subs = [];", "var m = substr.exec(str);", "while (m) {", "m.push(m.index, str);", "var inject = newSubstr.apply(null, m);", "subs.push([m.index, m[0].length, inject]);", "m = substr.global ? substr.exec(str) : null;", "}", "for (var i = subs.length - 1; i >= 0; i--) {", "str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);", "}", "} else {", "var i = str.indexOf(substr);", "if (i !== -1) {", "var inject = newSubstr(str.substr(i, substr.length), i, str);", "str = str.substring(0, i) + inject + str.substring(i + substr.length);", "}", "}", "return str;", "};", "})();", "");
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function Ao(e, t) {
|
|
1227
1227
|
e.mb = e.i(function(n) {
|
|
1228
1228
|
return n = ve.Boolean(n), fe(e) ? (this.data = n, this) : n;
|
|
1229
1229
|
}, !0), e.g(t, "Boolean", e.mb, y);
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function Oo(e, t) {
|
|
1232
1232
|
var n = function(r) {
|
|
1233
1233
|
return r = arguments.length ? ve.Number(r) : 0, fe(e) ? (this.data = r, this) : r;
|
|
1234
1234
|
};
|
|
@@ -1237,38 +1237,38 @@ function Ai(e, t) {
|
|
|
1237
1237
|
n = function(r) {
|
|
1238
1238
|
try {
|
|
1239
1239
|
return Number(this).toExponential(r);
|
|
1240
|
-
} catch (
|
|
1241
|
-
|
|
1240
|
+
} catch (o) {
|
|
1241
|
+
x(e, e.D, o.message);
|
|
1242
1242
|
}
|
|
1243
|
-
},
|
|
1243
|
+
}, $(e, e.aa, "toExponential", n), n = function(r) {
|
|
1244
1244
|
try {
|
|
1245
1245
|
return Number(this).toFixed(r);
|
|
1246
|
-
} catch (
|
|
1247
|
-
|
|
1246
|
+
} catch (o) {
|
|
1247
|
+
x(e, e.D, o.message);
|
|
1248
1248
|
}
|
|
1249
|
-
},
|
|
1249
|
+
}, $(e, e.aa, "toFixed", n), n = function(r) {
|
|
1250
1250
|
try {
|
|
1251
1251
|
return Number(this).toPrecision(r);
|
|
1252
|
-
} catch (
|
|
1253
|
-
|
|
1252
|
+
} catch (o) {
|
|
1253
|
+
x(e, e.D, o.message);
|
|
1254
1254
|
}
|
|
1255
|
-
},
|
|
1255
|
+
}, $(e, e.aa, "toPrecision", n), n = function(r) {
|
|
1256
1256
|
try {
|
|
1257
1257
|
return Number(this).toString(r);
|
|
1258
|
-
} catch (
|
|
1259
|
-
|
|
1258
|
+
} catch (o) {
|
|
1259
|
+
x(e, e.D, o.message);
|
|
1260
1260
|
}
|
|
1261
|
-
},
|
|
1262
|
-
r = r ? e.R(r) : void 0,
|
|
1261
|
+
}, $(e, e.aa, "toString", n), n = function(r, o) {
|
|
1262
|
+
r = r ? e.R(r) : void 0, o = o ? e.R(o) : void 0;
|
|
1263
1263
|
try {
|
|
1264
|
-
return Number(this).toLocaleString(r,
|
|
1265
|
-
} catch (
|
|
1266
|
-
|
|
1264
|
+
return Number(this).toLocaleString(r, o);
|
|
1265
|
+
} catch (i) {
|
|
1266
|
+
x(e, e.D, "toLocaleString: " + i.message);
|
|
1267
1267
|
}
|
|
1268
|
-
},
|
|
1268
|
+
}, $(e, e.aa, "toLocaleString", n);
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1271
|
-
var n = function(
|
|
1270
|
+
function jo(e, t) {
|
|
1271
|
+
var n = function(o, i) {
|
|
1272
1272
|
if (!fe(e))
|
|
1273
1273
|
return ve.Date();
|
|
1274
1274
|
var s = [null].concat(Array.from(arguments));
|
|
@@ -1276,72 +1276,72 @@ function Oi(e, t) {
|
|
|
1276
1276
|
};
|
|
1277
1277
|
e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, y), e.g(e.$, "now", e.i(Date.now, !1), y), e.g(e.$, "parse", e.i(Date.parse, !1), y), e.g(e.$, "UTC", e.i(Date.UTC, !1), y), 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(" ");
|
|
1278
1278
|
for (var r = 0; r < t.length; r++)
|
|
1279
|
-
n = function(
|
|
1280
|
-
return function(
|
|
1279
|
+
n = function(o) {
|
|
1280
|
+
return function(i) {
|
|
1281
1281
|
var s = this.data;
|
|
1282
|
-
s instanceof Date ||
|
|
1282
|
+
s instanceof Date || x(e, e.j, o + " not called on a Date");
|
|
1283
1283
|
for (var u = [], d = 0; d < arguments.length; d++)
|
|
1284
1284
|
u[d] = e.R(arguments[d]);
|
|
1285
|
-
return s[
|
|
1285
|
+
return s[o].apply(s, u);
|
|
1286
1286
|
};
|
|
1287
|
-
}(t[r]),
|
|
1287
|
+
}(t[r]), $(e, e.$, t[r], n);
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
var n = function(r,
|
|
1289
|
+
function Ro(e, t) {
|
|
1290
|
+
var n = function(r, o) {
|
|
1291
1291
|
if (fe(e))
|
|
1292
|
-
var
|
|
1292
|
+
var i = this;
|
|
1293
1293
|
else {
|
|
1294
|
-
if (
|
|
1294
|
+
if (o === void 0 && H(e, r, e.I))
|
|
1295
1295
|
return r;
|
|
1296
|
-
|
|
1296
|
+
i = e.s(e.Ma);
|
|
1297
1297
|
}
|
|
1298
|
-
r = r === void 0 ? "" : String(r),
|
|
1298
|
+
r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || x(e, e.T, "Invalid regexp flag: " + o);
|
|
1299
1299
|
try {
|
|
1300
|
-
var s = new ve.RegExp(r,
|
|
1300
|
+
var s = new ve.RegExp(r, o);
|
|
1301
1301
|
} catch (u) {
|
|
1302
|
-
|
|
1302
|
+
x(e, e.T, u.message);
|
|
1303
1303
|
}
|
|
1304
|
-
return zt(e,
|
|
1304
|
+
return zt(e, i, s), i;
|
|
1305
1305
|
};
|
|
1306
|
-
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r,
|
|
1307
|
-
function
|
|
1306
|
+
e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, J), e.g(e.I.h.prototype, "ignoreCase", void 0, J), e.g(e.I.h.prototype, "multiline", void 0, J), e.g(e.I.h.prototype, "source", "(?:)", J), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
|
|
1307
|
+
function i(k) {
|
|
1308
1308
|
if (k) {
|
|
1309
|
-
var
|
|
1310
|
-
return e.g(
|
|
1309
|
+
var w = se(e, k);
|
|
1310
|
+
return e.g(w, "index", k.index), e.g(w, "input", k.input), w;
|
|
1311
1311
|
}
|
|
1312
1312
|
return null;
|
|
1313
1313
|
}
|
|
1314
1314
|
var s = this.data;
|
|
1315
|
-
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")),
|
|
1315
|
+
if (r = String(r), s.lastIndex = Number(e.G(this, "lastIndex")), $e(e, s, o), e.REGEXP_MODE === 2)
|
|
1316
1316
|
if (le)
|
|
1317
|
-
r =
|
|
1317
|
+
r = We(e, "regexp.exec(string)", {
|
|
1318
1318
|
string: r,
|
|
1319
1319
|
regexp: s
|
|
1320
|
-
}, s,
|
|
1320
|
+
}, s, o), r !== Oe && (e.g(this, "lastIndex", s.lastIndex), o(i(r)));
|
|
1321
1321
|
else {
|
|
1322
|
-
var u = e.ha(), d = He(e, s, u,
|
|
1322
|
+
var u = e.ha(), d = He(e, s, u, o), E = this;
|
|
1323
1323
|
u.onmessage = function(k) {
|
|
1324
|
-
clearTimeout(d), e.g(E, "lastIndex", k.data[1]), i(
|
|
1324
|
+
clearTimeout(d), e.g(E, "lastIndex", k.data[1]), o(i(k.data[0]));
|
|
1325
1325
|
}, u.postMessage(["exec", s, s.lastIndex, r]);
|
|
1326
1326
|
}
|
|
1327
1327
|
else
|
|
1328
|
-
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), i(
|
|
1328
|
+
r = s.exec(r), e.g(this, "lastIndex", s.lastIndex), o(i(r));
|
|
1329
1329
|
}, Ke(e, e.I, "exec", n);
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1331
|
+
function Po(e, t) {
|
|
1332
1332
|
function n(r) {
|
|
1333
|
-
var
|
|
1334
|
-
var s = fe(e) ? this : e.Aa(
|
|
1335
|
-
return
|
|
1333
|
+
var o = e.i(function(i) {
|
|
1334
|
+
var s = fe(e) ? this : e.Aa(o);
|
|
1335
|
+
return Wt(e, s, i), s;
|
|
1336
1336
|
}, !0);
|
|
1337
|
-
return e.g(
|
|
1337
|
+
return e.g(o, "prototype", e.Aa(e.D), y), e.g(o.h.prototype, "name", r, y), e.g(t, r, o, y), o;
|
|
1338
1338
|
}
|
|
1339
1339
|
e.D = e.i(function(r) {
|
|
1340
|
-
var
|
|
1341
|
-
return
|
|
1340
|
+
var o = fe(e) ? this : e.Aa(e.D);
|
|
1341
|
+
return Wt(e, o, r), o;
|
|
1342
1342
|
}, !0), e.g(t, "Error", e.D, y), e.g(e.D.h.prototype, "message", "", y), e.g(e.D.h.prototype, "name", "Error", y), n("EvalError"), e.ob = n("RangeError"), e.pb = n("ReferenceError"), e.T = n("SyntaxError"), e.j = n("TypeError"), e.Gb = n("URIError");
|
|
1343
1343
|
}
|
|
1344
|
-
function
|
|
1344
|
+
function No(e, t) {
|
|
1345
1345
|
var n = e.s(e.M);
|
|
1346
1346
|
e.g(t, "Math", n, y);
|
|
1347
1347
|
var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
|
|
@@ -1350,23 +1350,23 @@ function Pi(e, t) {
|
|
|
1350
1350
|
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++)
|
|
1351
1351
|
e.g(n, r[t], e.i(Math[r[t]], !1), y);
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Bo(e, t) {
|
|
1354
1354
|
var n = e.s(e.M);
|
|
1355
1355
|
e.g(t, "JSON", n, y), t = function(r) {
|
|
1356
1356
|
try {
|
|
1357
|
-
var
|
|
1358
|
-
} catch (
|
|
1359
|
-
|
|
1357
|
+
var o = JSON.parse(String(r));
|
|
1358
|
+
} catch (i) {
|
|
1359
|
+
x(e, e.T, i.message);
|
|
1360
1360
|
}
|
|
1361
|
-
return e.Ia(
|
|
1362
|
-
}, e.g(n, "parse", e.i(t, !1)), t = function(r,
|
|
1363
|
-
|
|
1361
|
+
return e.Ia(o);
|
|
1362
|
+
}, e.g(n, "parse", e.i(t, !1)), t = function(r, o, i) {
|
|
1363
|
+
o && o.H === "Function" ? x(e, e.j, "Function replacer on JSON.stringify not supported") : o && o.H === "Array" ? (o = dr(e, o), o = o.filter(function(u) {
|
|
1364
1364
|
return typeof u == "string" || typeof u == "number";
|
|
1365
|
-
})) :
|
|
1365
|
+
})) : o = null, typeof i != "string" && typeof i != "number" && (i = void 0), r = e.R(r);
|
|
1366
1366
|
try {
|
|
1367
|
-
var s = JSON.stringify(r,
|
|
1367
|
+
var s = JSON.stringify(r, o, i);
|
|
1368
1368
|
} catch (u) {
|
|
1369
|
-
|
|
1369
|
+
x(e, e.j, u.message);
|
|
1370
1370
|
}
|
|
1371
1371
|
return s;
|
|
1372
1372
|
}, e.g(n, "stringify", e.i(t, !1));
|
|
@@ -1386,42 +1386,42 @@ function H(e, t, n) {
|
|
|
1386
1386
|
function zt(e, t, n) {
|
|
1387
1387
|
t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, J), e.g(t, "global", n.global, J), e.g(t, "ignoreCase", n.ignoreCase, J), e.g(t, "multiline", n.multiline, J);
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Wt(e, t, n) {
|
|
1390
1390
|
n && e.g(t, "message", String(n), y), n = [];
|
|
1391
1391
|
for (var r = e.o.length - 1; 0 <= r; r--) {
|
|
1392
|
-
var
|
|
1393
|
-
|
|
1394
|
-
Nb:
|
|
1392
|
+
var o = e.o[r], i = o.node;
|
|
1393
|
+
i.type === "CallExpression" && (o = o.U) && n.length && (n[n.length - 1].Ob = e.G(o, "name")), !i.X || n.length && i.type !== "CallExpression" || n.push({
|
|
1394
|
+
Nb: i.X
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
|
-
for (r = String(e.G(t, "name")),
|
|
1397
|
+
for (r = String(e.G(t, "name")), i = String(e.G(t, "message")), i = r + ": " + i + `
|
|
1398
1398
|
`, r = 0; r < n.length; r++) {
|
|
1399
1399
|
var s = n[r].Nb;
|
|
1400
|
-
|
|
1401
|
-
`) :
|
|
1400
|
+
o = n[r].Ob, s = s.source + ":" + s.start.line + ":" + s.start.ab, i = o ? i + (" at " + o + " (" + s + `)
|
|
1401
|
+
`) : i + (" at " + s + `
|
|
1402
1402
|
`);
|
|
1403
1403
|
}
|
|
1404
|
-
e.g(t, "stack",
|
|
1404
|
+
e.g(t, "stack", i.trim(), y);
|
|
1405
1405
|
}
|
|
1406
1406
|
P.ha = function() {
|
|
1407
1407
|
var e = this.ha.Mb;
|
|
1408
|
-
return e || (e = new Blob([
|
|
1408
|
+
return e || (e = new Blob([So.join(`
|
|
1409
1409
|
`)], {
|
|
1410
1410
|
type: "application/javascript"
|
|
1411
1411
|
}), this.ha.Mb = e), new Worker(URL.createObjectURL(e));
|
|
1412
1412
|
};
|
|
1413
|
-
function
|
|
1414
|
-
var
|
|
1413
|
+
function We(e, t, n, r, o) {
|
|
1414
|
+
var i = {
|
|
1415
1415
|
timeout: e.REGEXP_THREAD_TIMEOUT
|
|
1416
1416
|
};
|
|
1417
1417
|
try {
|
|
1418
|
-
return le.runInNewContext(t, n,
|
|
1418
|
+
return le.runInNewContext(t, n, i);
|
|
1419
1419
|
} catch {
|
|
1420
|
-
|
|
1420
|
+
o(null), x(e, e.D, "RegExp Timeout: " + r);
|
|
1421
1421
|
}
|
|
1422
1422
|
return Oe;
|
|
1423
1423
|
}
|
|
1424
|
-
function
|
|
1424
|
+
function $e(e, t, n) {
|
|
1425
1425
|
if (e.REGEXP_MODE === 0)
|
|
1426
1426
|
var r = !1;
|
|
1427
1427
|
else if (e.REGEXP_MODE === 1)
|
|
@@ -1438,13 +1438,13 @@ function We(e, t, n) {
|
|
|
1438
1438
|
r = !!le;
|
|
1439
1439
|
} else
|
|
1440
1440
|
r = !1;
|
|
1441
|
-
r || (n(null),
|
|
1441
|
+
r || (n(null), x(e, e.D, "Regular expressions not supported: " + t));
|
|
1442
1442
|
}
|
|
1443
1443
|
function He(e, t, n, r) {
|
|
1444
1444
|
return setTimeout(function() {
|
|
1445
1445
|
n.terminate(), r(null);
|
|
1446
1446
|
try {
|
|
1447
|
-
|
|
1447
|
+
x(e, e.D, "RegExp Timeout: " + t);
|
|
1448
1448
|
} catch {
|
|
1449
1449
|
}
|
|
1450
1450
|
}, e.REGEXP_THREAD_TIMEOUT);
|
|
@@ -1470,8 +1470,8 @@ function qt(e, t, n) {
|
|
|
1470
1470
|
return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, J), r.H = "Function", r;
|
|
1471
1471
|
}
|
|
1472
1472
|
function Zt(e, t, n, r) {
|
|
1473
|
-
var
|
|
1474
|
-
return
|
|
1473
|
+
var o = qt(e, t.oa.length, !0);
|
|
1474
|
+
return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", J), o;
|
|
1475
1475
|
}
|
|
1476
1476
|
P.i = function(e, t) {
|
|
1477
1477
|
return t = qt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, J), t;
|
|
@@ -1494,10 +1494,10 @@ P.Ia = function(e) {
|
|
|
1494
1494
|
if (typeof e == "function") {
|
|
1495
1495
|
var n = this;
|
|
1496
1496
|
return t = Object.getOwnPropertyDescriptor(e, "prototype"), this.i(function() {
|
|
1497
|
-
var
|
|
1498
|
-
return n.R(
|
|
1497
|
+
var o = Array.prototype.slice.call(arguments).map(function(i) {
|
|
1498
|
+
return n.R(i);
|
|
1499
1499
|
});
|
|
1500
|
-
return
|
|
1500
|
+
return o = e.apply(n, o), n.Ia(o);
|
|
1501
1501
|
}, !!t);
|
|
1502
1502
|
}
|
|
1503
1503
|
if (Array.isArray(e)) {
|
|
@@ -1529,12 +1529,12 @@ P.R = function(e, t) {
|
|
|
1529
1529
|
return t.Sa[n];
|
|
1530
1530
|
if (t.hb.push(e), H(this, e, this.qa)) {
|
|
1531
1531
|
n = [], t.Sa.push(n);
|
|
1532
|
-
for (var r = this.G(e, "length"),
|
|
1533
|
-
ft(this, e,
|
|
1532
|
+
for (var r = this.G(e, "length"), o = 0; o < r; o++)
|
|
1533
|
+
ft(this, e, o) && (n[o] = this.R(this.G(e, o), t));
|
|
1534
1534
|
} else
|
|
1535
1535
|
for (r in n = {}, t.Sa.push(n), e.h)
|
|
1536
|
-
|
|
1537
|
-
value:
|
|
1536
|
+
o = this.R(e.h[r], t), Object.defineProperty(n, r, {
|
|
1537
|
+
value: o,
|
|
1538
1538
|
writable: !0,
|
|
1539
1539
|
enumerable: !0,
|
|
1540
1540
|
configurable: !0
|
|
@@ -1542,8 +1542,8 @@ P.R = function(e, t) {
|
|
|
1542
1542
|
return t.hb.pop(), t.Sa.pop(), n;
|
|
1543
1543
|
};
|
|
1544
1544
|
function se(e, t) {
|
|
1545
|
-
for (var n = Re(e), r = Object.getOwnPropertyNames(t),
|
|
1546
|
-
e.g(n, r[
|
|
1545
|
+
for (var n = Re(e), r = Object.getOwnPropertyNames(t), o = 0; o < r.length; o++)
|
|
1546
|
+
e.g(n, r[o], t[r[o]]);
|
|
1547
1547
|
return n;
|
|
1548
1548
|
}
|
|
1549
1549
|
function dr(e, t) {
|
|
@@ -1566,7 +1566,7 @@ function ce(e, t) {
|
|
|
1566
1566
|
P.G = function(e, t) {
|
|
1567
1567
|
if (this.P)
|
|
1568
1568
|
throw Error("Getter not supported in that context");
|
|
1569
|
-
if (t = String(t), e != null ||
|
|
1569
|
+
if (t = String(t), e != null || x(this, this.j, "Cannot read property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1570
1570
|
throw TypeError("Expecting native value or pseudo object");
|
|
1571
1571
|
if (t === "length") {
|
|
1572
1572
|
if (H(this, e, this.J))
|
|
@@ -1600,39 +1600,39 @@ function ft(e, t, n) {
|
|
|
1600
1600
|
P.g = function(e, t, n, r) {
|
|
1601
1601
|
if (this.Ka)
|
|
1602
1602
|
throw Error("Setter not supported in that context");
|
|
1603
|
-
if (t = String(t), e != null ||
|
|
1603
|
+
if (t = String(t), e != null || x(this, this.j, "Cannot set property '" + t + "' of " + e), typeof e == "object" && !(e instanceof R))
|
|
1604
1604
|
throw TypeError("Expecting native value or pseudo object");
|
|
1605
|
-
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) &&
|
|
1606
|
-
var
|
|
1605
|
+
r && ("get" in r || "set" in r) && ("value" in r || "writable" in r) && x(this, this.j, "Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");
|
|
1606
|
+
var o = !this.o || Qt(this).S;
|
|
1607
1607
|
if (e instanceof R) {
|
|
1608
1608
|
if (H(this, e, this.J)) {
|
|
1609
|
-
var
|
|
1610
|
-
if (t === "length" || !isNaN(
|
|
1611
|
-
|
|
1609
|
+
var i = Xe(t);
|
|
1610
|
+
if (t === "length" || !isNaN(i) && i < String(e).length) {
|
|
1611
|
+
o && x(this, this.j, "Cannot assign to read only property '" + t + "' of String '" + e.data + "'");
|
|
1612
1612
|
return;
|
|
1613
1613
|
}
|
|
1614
1614
|
}
|
|
1615
1615
|
if (e.H === "Array")
|
|
1616
|
-
if (
|
|
1616
|
+
if (i = e.h.length, t === "length") {
|
|
1617
1617
|
if (r) {
|
|
1618
1618
|
if (!("value" in r))
|
|
1619
1619
|
return;
|
|
1620
1620
|
n = r.value;
|
|
1621
1621
|
}
|
|
1622
|
-
if (n = Jt(n), isNaN(n) &&
|
|
1622
|
+
if (n = Jt(n), isNaN(n) && x(this, this.ob, "Invalid array length"), n < i)
|
|
1623
1623
|
for (s in e.h) {
|
|
1624
1624
|
var s = Xe(s);
|
|
1625
1625
|
!isNaN(s) && n <= s && delete e.h[s];
|
|
1626
1626
|
}
|
|
1627
1627
|
} else
|
|
1628
|
-
isNaN(s = Xe(t)) || (e.h.length = Math.max(
|
|
1628
|
+
isNaN(s = Xe(t)) || (e.h.length = Math.max(i, s + 1));
|
|
1629
1629
|
if (!e.preventExtensions || t in e.h)
|
|
1630
1630
|
if (r) {
|
|
1631
|
-
|
|
1631
|
+
o = {}, "get" in r && r.get && (e.V[t] = r.get, o.get = this.g.ac), "set" in r && r.set && (e.Y[t] = r.set, o.set = this.g.bc), "configurable" in r && (o.configurable = r.configurable), "enumerable" in r && (o.enumerable = r.enumerable), "writable" in r && (o.writable = r.writable, delete e.V[t], delete e.Y[t]), "value" in r ? (o.value = r.value, delete e.V[t], delete e.Y[t]) : n !== Ye && (o.value = n, delete e.V[t], delete e.Y[t]);
|
|
1632
1632
|
try {
|
|
1633
|
-
Object.defineProperty(e.h, t,
|
|
1633
|
+
Object.defineProperty(e.h, t, o);
|
|
1634
1634
|
} catch {
|
|
1635
|
-
|
|
1635
|
+
x(this, this.j, "Cannot redefine property: " + t);
|
|
1636
1636
|
}
|
|
1637
1637
|
"get" in r && !r.get && delete e.V[t], "set" in r && !r.set && delete e.Y[t];
|
|
1638
1638
|
} else {
|
|
@@ -1646,18 +1646,18 @@ P.g = function(e, t, n, r) {
|
|
|
1646
1646
|
if (r.Y && r.Y[t])
|
|
1647
1647
|
return this.Ka = !0, r.Y[t];
|
|
1648
1648
|
if (r.V && r.V[t])
|
|
1649
|
-
|
|
1649
|
+
o && x(this, this.j, "Cannot set property '" + t + "' of object '" + e + "' which only has a getter");
|
|
1650
1650
|
else
|
|
1651
1651
|
try {
|
|
1652
1652
|
e.h[t] = n;
|
|
1653
1653
|
} catch {
|
|
1654
|
-
|
|
1654
|
+
o && x(this, this.j, "Cannot assign to read only property '" + t + "' of object '" + e + "'");
|
|
1655
1655
|
}
|
|
1656
1656
|
}
|
|
1657
1657
|
else
|
|
1658
|
-
|
|
1658
|
+
o && x(this, this.j, "Can't add property '" + t + "', object is not extensible");
|
|
1659
1659
|
} else
|
|
1660
|
-
|
|
1660
|
+
o && x(this, this.j, "Can't create property '" + t + "' on '" + e + "'");
|
|
1661
1661
|
};
|
|
1662
1662
|
P.g.ac = function() {
|
|
1663
1663
|
throw Error("Placeholder getter");
|
|
@@ -1665,7 +1665,7 @@ P.g.ac = function() {
|
|
|
1665
1665
|
P.g.bc = function() {
|
|
1666
1666
|
throw Error("Placeholder setter");
|
|
1667
1667
|
};
|
|
1668
|
-
function
|
|
1668
|
+
function $(e, t, n, r) {
|
|
1669
1669
|
e.g(t.h.prototype, n, e.i(r, !1), y);
|
|
1670
1670
|
}
|
|
1671
1671
|
function Ke(e, t, n, r) {
|
|
@@ -1676,15 +1676,15 @@ function Qt(e) {
|
|
|
1676
1676
|
throw Error("No scope found");
|
|
1677
1677
|
return e;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function $t(e, t, n) {
|
|
1680
1680
|
var r = !1;
|
|
1681
1681
|
if (n && n.S)
|
|
1682
1682
|
r = !0;
|
|
1683
1683
|
else {
|
|
1684
|
-
var
|
|
1685
|
-
|
|
1684
|
+
var o = t.body && t.body[0];
|
|
1685
|
+
o && o.la && o.la.type === "Literal" && o.la.value === "use strict" && (r = !0);
|
|
1686
1686
|
}
|
|
1687
|
-
return
|
|
1687
|
+
return o = e.s(null), r = new gr(n, r, o), n || ko(e, r.object), Je(e, t, r), r;
|
|
1688
1688
|
}
|
|
1689
1689
|
function en(e, t, n) {
|
|
1690
1690
|
if (!t)
|
|
@@ -1699,23 +1699,23 @@ function tn(e, t) {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
if (n === e.N && ft(e, n.object, t))
|
|
1701
1701
|
return e.G(n.object, t);
|
|
1702
|
-
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" ||
|
|
1702
|
+
n = e.o[e.o.length - 1].node, n.type === "UnaryExpression" && n.operator === "typeof" || x(e, e.pb, t + " is not defined");
|
|
1703
1703
|
}
|
|
1704
1704
|
function hr(e, t, n) {
|
|
1705
|
-
for (var r = Qt(e),
|
|
1705
|
+
for (var r = Qt(e), o = r.S; r && r !== e.N; ) {
|
|
1706
1706
|
if (t in r.object.h) {
|
|
1707
1707
|
try {
|
|
1708
1708
|
r.object.h[t] = n;
|
|
1709
1709
|
} catch {
|
|
1710
|
-
|
|
1710
|
+
o && x(e, e.j, "Cannot assign to read only variable '" + t + "'");
|
|
1711
1711
|
}
|
|
1712
1712
|
return;
|
|
1713
1713
|
}
|
|
1714
1714
|
r = r.Va;
|
|
1715
1715
|
}
|
|
1716
|
-
if (r === e.N && (!
|
|
1716
|
+
if (r === e.N && (!o || ft(e, r.object, t)))
|
|
1717
1717
|
return e.g(r.object, t, n);
|
|
1718
|
-
|
|
1718
|
+
x(e, e.pb, t + " is not defined");
|
|
1719
1719
|
}
|
|
1720
1720
|
function Je(e, t, n) {
|
|
1721
1721
|
if (t.jb)
|
|
@@ -1723,8 +1723,8 @@ function Je(e, t, n) {
|
|
|
1723
1723
|
else {
|
|
1724
1724
|
switch (r = /* @__PURE__ */ Object.create(null), t.type) {
|
|
1725
1725
|
case "VariableDeclaration":
|
|
1726
|
-
for (var
|
|
1727
|
-
r[t.fa[
|
|
1726
|
+
for (var o = 0; o < t.fa.length; o++)
|
|
1727
|
+
r[t.fa[o].id.name] = !0;
|
|
1728
1728
|
break;
|
|
1729
1729
|
case "FunctionDeclaration":
|
|
1730
1730
|
r[t.id.name] = t;
|
|
@@ -1742,19 +1742,19 @@ function Je(e, t, n) {
|
|
|
1742
1742
|
case "TryStatement":
|
|
1743
1743
|
case "WithStatement":
|
|
1744
1744
|
case "WhileStatement":
|
|
1745
|
-
var
|
|
1745
|
+
var i = t.constructor, s;
|
|
1746
1746
|
for (s in t)
|
|
1747
1747
|
if (s !== "loc") {
|
|
1748
1748
|
var u = t[s];
|
|
1749
1749
|
if (u && typeof u == "object") {
|
|
1750
1750
|
if (Array.isArray(u)) {
|
|
1751
|
-
for (
|
|
1752
|
-
if (u[
|
|
1753
|
-
var d = Je(e, u[
|
|
1751
|
+
for (o = 0; o < u.length; o++)
|
|
1752
|
+
if (u[o] && u[o].constructor === i) {
|
|
1753
|
+
var d = Je(e, u[o], n);
|
|
1754
1754
|
for (s in d)
|
|
1755
1755
|
r[s] = d[s];
|
|
1756
1756
|
}
|
|
1757
|
-
} else if (u.constructor ===
|
|
1757
|
+
} else if (u.constructor === i)
|
|
1758
1758
|
for (s in d = Je(e, u, n), d)
|
|
1759
1759
|
r[s] = d[s];
|
|
1760
1760
|
}
|
|
@@ -1775,19 +1775,19 @@ function nn(e, t) {
|
|
|
1775
1775
|
function rn(e, t, n) {
|
|
1776
1776
|
return t[0] === Pe ? hr(e, t[1], n) : e.g(t[0], t[1], n);
|
|
1777
1777
|
}
|
|
1778
|
-
function
|
|
1779
|
-
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t),
|
|
1778
|
+
function x(e, t, n) {
|
|
1779
|
+
throw e.N ? (n !== void 0 && t instanceof R && (t = e.Aa(t), Wt(e, t, n)), ze(e, 4, t), pr) : n === void 0 ? t : n;
|
|
1780
1780
|
}
|
|
1781
1781
|
function ze(e, t, n, r) {
|
|
1782
1782
|
if (t === 0)
|
|
1783
1783
|
throw TypeError("Should not unwind for NORMAL completions");
|
|
1784
|
-
var
|
|
1784
|
+
var o = e.o;
|
|
1785
1785
|
e:
|
|
1786
|
-
for (; 0 <
|
|
1787
|
-
var
|
|
1788
|
-
switch (
|
|
1786
|
+
for (; 0 < o.length; o.pop()) {
|
|
1787
|
+
var i = o[o.length - 1];
|
|
1788
|
+
switch (i.node.type) {
|
|
1789
1789
|
case "TryStatement":
|
|
1790
|
-
|
|
1790
|
+
i.ea = {
|
|
1791
1791
|
type: t,
|
|
1792
1792
|
value: n,
|
|
1793
1793
|
label: r
|
|
@@ -1796,22 +1796,22 @@ function ze(e, t, n, r) {
|
|
|
1796
1796
|
case "CallExpression":
|
|
1797
1797
|
case "NewExpression":
|
|
1798
1798
|
if (t === 3) {
|
|
1799
|
-
|
|
1799
|
+
i.value = n;
|
|
1800
1800
|
return;
|
|
1801
1801
|
}
|
|
1802
1802
|
if (t !== 4)
|
|
1803
1803
|
throw Error("Unsynatctic break/continue not rejected by Acorn");
|
|
1804
1804
|
break;
|
|
1805
1805
|
case "Program":
|
|
1806
|
-
|
|
1806
|
+
i.done = !0;
|
|
1807
1807
|
break e;
|
|
1808
1808
|
}
|
|
1809
1809
|
if (t === 1) {
|
|
1810
|
-
if (r ?
|
|
1811
|
-
|
|
1810
|
+
if (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W || i.Zb) {
|
|
1811
|
+
o.pop();
|
|
1812
1812
|
return;
|
|
1813
1813
|
}
|
|
1814
|
-
} else if (t === 2 && (r ?
|
|
1814
|
+
} else if (t === 2 && (r ? i.labels && i.labels.indexOf(r) !== -1 : i.W))
|
|
1815
1815
|
return;
|
|
1816
1816
|
}
|
|
1817
1817
|
throw H(e, n, e.D) ? (t = {
|
|
@@ -1821,7 +1821,7 @@ function ze(e, t, n, r) {
|
|
|
1821
1821
|
SyntaxError,
|
|
1822
1822
|
TypeError,
|
|
1823
1823
|
URIError
|
|
1824
|
-
}, r = String(e.G(n, "name")),
|
|
1824
|
+
}, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
|
|
1825
1825
|
}
|
|
1826
1826
|
function Y(e, t) {
|
|
1827
1827
|
switch (t.type) {
|
|
@@ -1855,25 +1855,25 @@ function Y(e, t) {
|
|
|
1855
1855
|
return "???";
|
|
1856
1856
|
}
|
|
1857
1857
|
function Xn(e, t, n) {
|
|
1858
|
-
var r = e.o[e.o.length - 1],
|
|
1859
|
-
n = Math.max(Number(
|
|
1858
|
+
var r = e.o[e.o.length - 1], o = Array.from(n), i = o.shift();
|
|
1859
|
+
n = Math.max(Number(o.shift() || 0), 0);
|
|
1860
1860
|
var s = e.ya();
|
|
1861
|
-
if (
|
|
1862
|
-
var u =
|
|
1861
|
+
if (i instanceof R && i.H === "Function") {
|
|
1862
|
+
var u = i;
|
|
1863
1863
|
s.type = "CallExpression", r = r.scope;
|
|
1864
1864
|
} else {
|
|
1865
1865
|
try {
|
|
1866
|
-
var d = je(String(
|
|
1866
|
+
var d = je(String(i), "taskCode" + e.ic++);
|
|
1867
1867
|
} catch (E) {
|
|
1868
|
-
|
|
1868
|
+
x(e, e.T, "Invalid code: " + E.message);
|
|
1869
1869
|
}
|
|
1870
|
-
s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N,
|
|
1870
|
+
s.type = "EvalProgram_", s.body = d.body, r = r.node.arguments[0], ut(s, r ? r.start : void 0, r ? r.end : void 0), r = e.N, o.length = 0;
|
|
1871
1871
|
}
|
|
1872
|
-
return t = new
|
|
1872
|
+
return t = new Mo(u, o, r, s, t ? n : -1), mr(e, t, n), t.Db;
|
|
1873
1873
|
}
|
|
1874
1874
|
function mr(e, t, n) {
|
|
1875
|
-
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r,
|
|
1876
|
-
return r.time -
|
|
1875
|
+
t.time = Date.now() + n, e.ca.push(t), e.ca.sort(function(r, o) {
|
|
1876
|
+
return r.time - o.time;
|
|
1877
1877
|
});
|
|
1878
1878
|
}
|
|
1879
1879
|
function Yn(e, t) {
|
|
@@ -1894,8 +1894,8 @@ function on(e, t, n, r) {
|
|
|
1894
1894
|
if (!e.Ka)
|
|
1895
1895
|
throw Error("Unexpected call to createSetter");
|
|
1896
1896
|
e.Ka = !1, n = Array.isArray(n) ? n[0] : e.Na;
|
|
1897
|
-
var
|
|
1898
|
-
return
|
|
1897
|
+
var o = e.ya();
|
|
1898
|
+
return o.type = "CallExpression", e = new v(o, e.o[e.o.length - 1].scope), e.ia = 2, e.B = n, e.U = t, e.Qa = !0, e.F = [r], e;
|
|
1899
1899
|
}
|
|
1900
1900
|
function Vt(e, t) {
|
|
1901
1901
|
return t == null ? e.Na : t instanceof R ? t : (e = e.s(ce(e, t)), e.data = t, e);
|
|
@@ -1933,9 +1933,9 @@ P.toString = function() {
|
|
|
1933
1933
|
try {
|
|
1934
1934
|
var t = [], n = this.h.length, r = !1;
|
|
1935
1935
|
1024 < n && (n = 1e3, r = !0);
|
|
1936
|
-
for (var
|
|
1937
|
-
var
|
|
1938
|
-
t[
|
|
1936
|
+
for (var o = 0; o < n; o++) {
|
|
1937
|
+
var i = this.h[o];
|
|
1938
|
+
t[o] = i instanceof R && e.indexOf(i) !== -1 ? "..." : i;
|
|
1939
1939
|
}
|
|
1940
1940
|
r && t.push("...");
|
|
1941
1941
|
} finally {
|
|
@@ -1973,10 +1973,10 @@ P.toString = function() {
|
|
|
1973
1973
|
P.valueOf = function() {
|
|
1974
1974
|
return !Ge || this.data === void 0 || this.data === null || this.data instanceof RegExp ? this : this.data instanceof Date ? this.data.valueOf() : this.data;
|
|
1975
1975
|
};
|
|
1976
|
-
function
|
|
1977
|
-
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval =
|
|
1976
|
+
function Mo(e, t, n, r, o) {
|
|
1977
|
+
this.zb = e, this.Lb = t, this.scope = n, this.node = r, this.interval = o, this.Db = ++Uo, this.time = 0;
|
|
1978
1978
|
}
|
|
1979
|
-
var
|
|
1979
|
+
var Uo = 0;
|
|
1980
1980
|
h.prototype.stepArrayExpression = function(e, t, n) {
|
|
1981
1981
|
n = n.elements;
|
|
1982
1982
|
var r = t.A || 0;
|
|
@@ -1995,43 +1995,43 @@ h.prototype.stepAssignmentExpression = function(e, t, n) {
|
|
|
1995
1995
|
if (t.ta)
|
|
1996
1996
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
1997
1997
|
else {
|
|
1998
|
-
var r = t.ma,
|
|
1998
|
+
var r = t.ma, o = t.value;
|
|
1999
1999
|
switch (n.operator) {
|
|
2000
2000
|
case "=":
|
|
2001
|
-
r =
|
|
2001
|
+
r = o;
|
|
2002
2002
|
break;
|
|
2003
2003
|
case "+=":
|
|
2004
|
-
r +=
|
|
2004
|
+
r += o;
|
|
2005
2005
|
break;
|
|
2006
2006
|
case "-=":
|
|
2007
|
-
r -=
|
|
2007
|
+
r -= o;
|
|
2008
2008
|
break;
|
|
2009
2009
|
case "*=":
|
|
2010
|
-
r *=
|
|
2010
|
+
r *= o;
|
|
2011
2011
|
break;
|
|
2012
2012
|
case "/=":
|
|
2013
|
-
r /=
|
|
2013
|
+
r /= o;
|
|
2014
2014
|
break;
|
|
2015
2015
|
case "%=":
|
|
2016
|
-
r %=
|
|
2016
|
+
r %= o;
|
|
2017
2017
|
break;
|
|
2018
2018
|
case "<<=":
|
|
2019
|
-
r <<=
|
|
2019
|
+
r <<= o;
|
|
2020
2020
|
break;
|
|
2021
2021
|
case ">>=":
|
|
2022
|
-
r >>=
|
|
2022
|
+
r >>= o;
|
|
2023
2023
|
break;
|
|
2024
2024
|
case ">>>=":
|
|
2025
|
-
r >>>=
|
|
2025
|
+
r >>>= o;
|
|
2026
2026
|
break;
|
|
2027
2027
|
case "&=":
|
|
2028
|
-
r &=
|
|
2028
|
+
r &= o;
|
|
2029
2029
|
break;
|
|
2030
2030
|
case "^=":
|
|
2031
|
-
r ^=
|
|
2031
|
+
r ^= o;
|
|
2032
2032
|
break;
|
|
2033
2033
|
case "|=":
|
|
2034
|
-
r |=
|
|
2034
|
+
r |= o;
|
|
2035
2035
|
break;
|
|
2036
2036
|
default:
|
|
2037
2037
|
throw SyntaxError("Unknown assignment expression: " + n.operator);
|
|
@@ -2107,10 +2107,10 @@ h.prototype.stepBinaryExpression = function(e, t, n) {
|
|
|
2107
2107
|
n = r >>> t;
|
|
2108
2108
|
break;
|
|
2109
2109
|
case "in":
|
|
2110
|
-
t instanceof R ||
|
|
2110
|
+
t instanceof R || x(this, this.j, "'in' expects an object, not '" + t + "'"), n = ft(this, t, r);
|
|
2111
2111
|
break;
|
|
2112
2112
|
case "instanceof":
|
|
2113
|
-
H(this, t, this.O) ||
|
|
2113
|
+
H(this, t, this.O) || x(this, this.j, "'instanceof' expects an object, not '" + t + "'"), n = r instanceof R ? H(this, r, t) : !1;
|
|
2114
2114
|
break;
|
|
2115
2115
|
default:
|
|
2116
2116
|
throw SyntaxError("Unknown binary operator: " + n.operator);
|
|
@@ -2135,23 +2135,23 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
if (t.ia === 1) {
|
|
2137
2137
|
t.ia = 2;
|
|
2138
|
-
var
|
|
2139
|
-
if (Array.isArray(
|
|
2140
|
-
if (t.U = nn(this,
|
|
2141
|
-
return t.ia = 1, qe(this,
|
|
2138
|
+
var o = t.value;
|
|
2139
|
+
if (Array.isArray(o)) {
|
|
2140
|
+
if (t.U = nn(this, o), o[0] === Pe ? t.Pb = o[1] === "eval" : t.B = o[0], o = t.U, this.P)
|
|
2141
|
+
return t.ia = 1, qe(this, o, t.value);
|
|
2142
2142
|
} else
|
|
2143
|
-
t.U =
|
|
2143
|
+
t.U = o;
|
|
2144
2144
|
t.F = [], t.A = 0;
|
|
2145
2145
|
}
|
|
2146
|
-
if (
|
|
2146
|
+
if (o = t.U, !t.Qa) {
|
|
2147
2147
|
if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
|
|
2148
2148
|
return new v(n.arguments[t.A++], t.scope);
|
|
2149
2149
|
if (n.type === "NewExpression") {
|
|
2150
|
-
if (
|
|
2150
|
+
if (o instanceof R && !o.Ab || x(this, this.j, Y(this, n.callee) + " is not a constructor"), o === this.qa)
|
|
2151
2151
|
t.B = Re(this);
|
|
2152
2152
|
else {
|
|
2153
|
-
var
|
|
2154
|
-
(typeof
|
|
2153
|
+
var i = o.h.prototype;
|
|
2154
|
+
(typeof i != "object" || i === null) && (i = this.M), t.B = this.s(i);
|
|
2155
2155
|
}
|
|
2156
2156
|
t.isConstructor = !0;
|
|
2157
2157
|
}
|
|
@@ -2160,33 +2160,33 @@ h.prototype.stepCallExpression = function(e, t, n) {
|
|
|
2160
2160
|
if (t.eb)
|
|
2161
2161
|
e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
|
|
2162
2162
|
else {
|
|
2163
|
-
if (t.eb = !0,
|
|
2164
|
-
for (n =
|
|
2165
|
-
this.g(r,
|
|
2166
|
-
for (this.g(n.object, "arguments", r),
|
|
2167
|
-
this.g(n.object, e.oa[
|
|
2163
|
+
if (t.eb = !0, o instanceof R || x(this, this.j, Y(this, n.callee) + " is not a function"), e = o.node) {
|
|
2164
|
+
for (n = $t(this, e.body, o.Va), r = Re(this), o = 0; o < t.F.length; o++)
|
|
2165
|
+
this.g(r, o, t.F[o]);
|
|
2166
|
+
for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
|
|
2167
|
+
this.g(n.object, e.oa[o].name, t.F.length > o ? t.F[o] : void 0);
|
|
2168
2168
|
return n.S || (t.B = Vt(this, t.B)), this.g(n.object, "this", t.B, Yt), t.value = void 0, new v(e.body, n);
|
|
2169
2169
|
}
|
|
2170
|
-
if (
|
|
2171
|
-
if (
|
|
2172
|
-
t.value =
|
|
2170
|
+
if (o.eval)
|
|
2171
|
+
if (o = t.F[0], typeof o != "string")
|
|
2172
|
+
t.value = o;
|
|
2173
2173
|
else {
|
|
2174
2174
|
try {
|
|
2175
|
-
r = je(String(
|
|
2175
|
+
r = je(String(o), "eval" + this.Hb++);
|
|
2176
2176
|
} catch (u) {
|
|
2177
|
-
|
|
2177
|
+
x(this, this.T, "Invalid code: " + u.message);
|
|
2178
2178
|
}
|
|
2179
|
-
return
|
|
2179
|
+
return o = this.ya(), o.type = "EvalProgram_", o.body = r.body, ut(o, n.start, n.end), n = t.Pb ? t.scope : this.N, n.S ? n = $t(this, r, n) : Je(this, r, n), this.value = void 0, new v(o, n);
|
|
2180
2180
|
}
|
|
2181
|
-
else if (
|
|
2182
|
-
t.scope.S || (t.B = Vt(this, t.B)), t.value =
|
|
2183
|
-
else if (
|
|
2181
|
+
else if (o.Ta)
|
|
2182
|
+
t.scope.S || (t.B = Vt(this, t.B)), t.value = o.Ta.apply(t.B, t.F);
|
|
2183
|
+
else if (o.Za) {
|
|
2184
2184
|
var s = this;
|
|
2185
|
-
r =
|
|
2185
|
+
r = o.Za.length - 1, r = t.F.concat(Array(r)).slice(0, r), r.push(function(u) {
|
|
2186
2186
|
t.value = u, s.za = !1;
|
|
2187
|
-
}), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)),
|
|
2187
|
+
}), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), o.Za.apply(t.B, r);
|
|
2188
2188
|
} else
|
|
2189
|
-
|
|
2189
|
+
x(this, this.j, Y(this, n.callee) + " is not callable");
|
|
2190
2190
|
}
|
|
2191
2191
|
};
|
|
2192
2192
|
h.prototype.stepConditionalExpression = function(e, t, n) {
|
|
@@ -2232,7 +2232,7 @@ h.prototype.stepExpressionStatement = function(e, t, n) {
|
|
|
2232
2232
|
};
|
|
2233
2233
|
h.prototype.stepForInStatement = function(e, t, n) {
|
|
2234
2234
|
if (!t.Ub && (t.Ub = !0, n.left.fa && n.left.fa[0].ua))
|
|
2235
|
-
return t.scope.S &&
|
|
2235
|
+
return t.scope.S && x(this, this.T, "for-in loop variable declaration may not have an initializer"), new v(n.left, t.scope);
|
|
2236
2236
|
if (!t.Ca)
|
|
2237
2237
|
return t.Ca = !0, t.pa || (t.pa = t.value), new v(n.right, t.scope);
|
|
2238
2238
|
if (t.W || (t.W = !0, t.u = t.value, t.kb = /* @__PURE__ */ Object.create(null)), t.Ra === void 0)
|
|
@@ -2345,21 +2345,21 @@ h.prototype.stepMemberExpression = function(e, t, n) {
|
|
|
2345
2345
|
};
|
|
2346
2346
|
h.prototype.stepNewExpression = h.prototype.stepCallExpression;
|
|
2347
2347
|
h.prototype.stepObjectExpression = function(e, t, n) {
|
|
2348
|
-
var r = t.A || 0,
|
|
2348
|
+
var r = t.A || 0, o = n.h[r];
|
|
2349
2349
|
if (t.u) {
|
|
2350
|
-
var
|
|
2351
|
-
t.Ja[
|
|
2350
|
+
var i = t.Pa;
|
|
2351
|
+
t.Ja[i] || (t.Ja[i] = {}), t.Ja[i][o.kind] = t.value, t.A = ++r, o = n.h[r];
|
|
2352
2352
|
} else
|
|
2353
2353
|
t.u = this.s(this.M), t.Ja = /* @__PURE__ */ Object.create(null);
|
|
2354
|
-
if (
|
|
2355
|
-
var s =
|
|
2354
|
+
if (o) {
|
|
2355
|
+
var s = o.key;
|
|
2356
2356
|
if (s.type === "Identifier")
|
|
2357
|
-
|
|
2357
|
+
i = s.name;
|
|
2358
2358
|
else if (s.type === "Literal")
|
|
2359
|
-
|
|
2359
|
+
i = s.value;
|
|
2360
2360
|
else
|
|
2361
2361
|
throw SyntaxError("Unknown object structure: " + s.type);
|
|
2362
|
-
return t.Pa =
|
|
2362
|
+
return t.Pa = i, new v(o.value, t.scope);
|
|
2363
2363
|
}
|
|
2364
2364
|
for (s in t.Ja)
|
|
2365
2365
|
n = t.Ja[s], "get" in n || "set" in n ? this.g(t.u, s, Ye, {
|
|
@@ -2390,17 +2390,17 @@ h.prototype.stepSwitchStatement = function(e, t, n) {
|
|
|
2390
2390
|
if (!t.ga)
|
|
2391
2391
|
return t.ga = 1, new v(n.Qb, t.scope);
|
|
2392
2392
|
for (t.ga === 1 && (t.ga = 2, t.hc = t.value, t.cb = -1); ; ) {
|
|
2393
|
-
var r = t.gb || 0,
|
|
2394
|
-
if (t.Ha || !
|
|
2395
|
-
if (
|
|
2396
|
-
if (
|
|
2397
|
-
if (!t.Ha && !t.Fb &&
|
|
2398
|
-
return t.Fb = !0, new v(
|
|
2393
|
+
var r = t.gb || 0, o = n.tb[r];
|
|
2394
|
+
if (t.Ha || !o || o.test)
|
|
2395
|
+
if (o || t.Ha || t.cb === -1)
|
|
2396
|
+
if (o) {
|
|
2397
|
+
if (!t.Ha && !t.Fb && o.test)
|
|
2398
|
+
return t.Fb = !0, new v(o.test, t.scope);
|
|
2399
2399
|
if (t.Ha || t.value === t.hc) {
|
|
2400
2400
|
t.Ha = !0;
|
|
2401
|
-
var
|
|
2402
|
-
if (
|
|
2403
|
-
return t.Zb = !0, t.A =
|
|
2401
|
+
var i = t.A || 0;
|
|
2402
|
+
if (o.da[i])
|
|
2403
|
+
return t.Zb = !0, t.A = i + 1, new v(o.da[i], t.scope);
|
|
2404
2404
|
}
|
|
2405
2405
|
t.Fb = !1, t.A = 0, t.gb = r + 1;
|
|
2406
2406
|
} else {
|
|
@@ -2418,7 +2418,7 @@ h.prototype.stepThisExpression = function(e) {
|
|
|
2418
2418
|
};
|
|
2419
2419
|
h.prototype.stepThrowStatement = function(e, t, n) {
|
|
2420
2420
|
if (t.ka)
|
|
2421
|
-
|
|
2421
|
+
x(this, t.value);
|
|
2422
2422
|
else
|
|
2423
2423
|
return t.ka = !0, new v(n.K, t.scope);
|
|
2424
2424
|
};
|
|
@@ -2451,12 +2451,12 @@ h.prototype.stepUnaryExpression = function(e, t, n) {
|
|
|
2451
2451
|
break;
|
|
2452
2452
|
case "delete":
|
|
2453
2453
|
if (n = !0, Array.isArray(r)) {
|
|
2454
|
-
var
|
|
2455
|
-
|
|
2454
|
+
var o = r[0];
|
|
2455
|
+
o === Pe && (o = t.scope), r = String(r[1]);
|
|
2456
2456
|
try {
|
|
2457
|
-
delete
|
|
2457
|
+
delete o.h[r];
|
|
2458
2458
|
} catch {
|
|
2459
|
-
t.scope.S ?
|
|
2459
|
+
t.scope.S ? x(this, this.j, "Cannot delete property '" + r + "' of '" + o + "'") : n = !1;
|
|
2460
2460
|
}
|
|
2461
2461
|
}
|
|
2462
2462
|
r = n;
|
|
@@ -2484,23 +2484,23 @@ h.prototype.stepUpdateExpression = function(e, t, n) {
|
|
|
2484
2484
|
e.pop(), e[e.length - 1].value = t.ib;
|
|
2485
2485
|
else {
|
|
2486
2486
|
if (r = Number(t.ma), n.operator === "++")
|
|
2487
|
-
var
|
|
2487
|
+
var o = r + 1;
|
|
2488
2488
|
else if (n.operator === "--")
|
|
2489
|
-
|
|
2489
|
+
o = r - 1;
|
|
2490
2490
|
else
|
|
2491
2491
|
throw SyntaxError("Unknown update expression: " + n.operator);
|
|
2492
|
-
if (n = n.prefix ?
|
|
2493
|
-
return t.ta = !0, t.ib = n, on(this, r, t.Ga,
|
|
2492
|
+
if (n = n.prefix ? o : r, r = rn(this, t.Ga, o))
|
|
2493
|
+
return t.ta = !0, t.ib = n, on(this, r, t.Ga, o);
|
|
2494
2494
|
e.pop(), e[e.length - 1].value = n;
|
|
2495
2495
|
}
|
|
2496
2496
|
};
|
|
2497
2497
|
h.prototype.stepVariableDeclaration = function(e, t, n) {
|
|
2498
2498
|
n = n.fa;
|
|
2499
|
-
var r = t.A || 0,
|
|
2500
|
-
for (t.Bb &&
|
|
2501
|
-
if (
|
|
2502
|
-
return t.A = r, t.Bb = !0, t.Pa =
|
|
2503
|
-
|
|
2499
|
+
var r = t.A || 0, o = n[r];
|
|
2500
|
+
for (t.Bb && o && (hr(this, o.id.name, t.value), t.Bb = !1, o = n[++r]); o; ) {
|
|
2501
|
+
if (o.ua)
|
|
2502
|
+
return t.A = r, t.Bb = !0, t.Pa = o.id.name, new v(o.ua, t.scope);
|
|
2503
|
+
o = n[++r];
|
|
2504
2504
|
}
|
|
2505
2505
|
e.pop();
|
|
2506
2506
|
};
|
|
@@ -2524,63 +2524,63 @@ h.prototype.getGlobalScope = h.prototype.Xb;
|
|
|
2524
2524
|
h.prototype.getStateStack = h.prototype.Yb;
|
|
2525
2525
|
h.prototype.setStateStack = h.prototype.ec;
|
|
2526
2526
|
h.VALUE_IN_DESCRIPTOR = Ye;
|
|
2527
|
-
const
|
|
2527
|
+
const Fo = (e) => e.split(`
|
|
2528
2528
|
`).map((t) => {
|
|
2529
2529
|
const n = t.trim();
|
|
2530
2530
|
if (t.includes("__awaiter"))
|
|
2531
2531
|
return;
|
|
2532
2532
|
if (!n.startsWith("state."))
|
|
2533
2533
|
return t;
|
|
2534
|
-
const [
|
|
2534
|
+
const [o, i] = n.split("="), u = `setRootState('${o.replace("state.", "").trim()}', ${i.trim()})`;
|
|
2535
2535
|
return `
|
|
2536
2536
|
${t}
|
|
2537
2537
|
${u}
|
|
2538
2538
|
`;
|
|
2539
2539
|
}).filter(Boolean).join(`
|
|
2540
|
-
`), Jn = (e) => e + "JSON",
|
|
2540
|
+
`), Jn = (e) => e + "JSON", Vo = ({
|
|
2541
2541
|
builder: e,
|
|
2542
2542
|
context: t,
|
|
2543
2543
|
event: n,
|
|
2544
2544
|
rootState: r,
|
|
2545
|
-
localState:
|
|
2546
|
-
rootSetState:
|
|
2545
|
+
localState: o,
|
|
2546
|
+
rootSetState: i,
|
|
2547
2547
|
code: s
|
|
2548
2548
|
}) => {
|
|
2549
2549
|
const u = {
|
|
2550
2550
|
...r,
|
|
2551
|
-
...
|
|
2551
|
+
...o
|
|
2552
2552
|
}, d = ur({
|
|
2553
2553
|
builder: e,
|
|
2554
2554
|
context: t,
|
|
2555
2555
|
event: n,
|
|
2556
2556
|
state: u
|
|
2557
2557
|
}), E = d.map(([S]) => {
|
|
2558
|
-
const
|
|
2559
|
-
return `var ${S} = ${
|
|
2558
|
+
const b = Jn(S);
|
|
2559
|
+
return `var ${S} = ${b} === undefined ? undefined : JSON.parse(${b});`;
|
|
2560
2560
|
}).join(`
|
|
2561
|
-
`), k =
|
|
2561
|
+
`), k = Fo(s);
|
|
2562
2562
|
if (k === "") {
|
|
2563
2563
|
q.warn("Skipping evaluation of empty code block.");
|
|
2564
2564
|
return;
|
|
2565
2565
|
}
|
|
2566
|
-
const
|
|
2566
|
+
const w = `
|
|
2567
2567
|
function theFunction() {
|
|
2568
2568
|
${E}
|
|
2569
2569
|
|
|
2570
2570
|
${k}
|
|
2571
2571
|
}
|
|
2572
2572
|
theFunction();
|
|
2573
|
-
`,
|
|
2574
|
-
const N = fr(u, S,
|
|
2575
|
-
|
|
2576
|
-
}, O = function(S,
|
|
2573
|
+
`, B = (S, b) => {
|
|
2574
|
+
const N = fr(u, S, b);
|
|
2575
|
+
i == null || i(N);
|
|
2576
|
+
}, O = function(S, b) {
|
|
2577
2577
|
d.forEach(([N, F]) => {
|
|
2578
2578
|
const m = JSON.stringify(F);
|
|
2579
|
-
S.setProperty(
|
|
2580
|
-
}), S.setProperty(
|
|
2579
|
+
S.setProperty(b, Jn(N), m);
|
|
2580
|
+
}), S.setProperty(b, "setRootState", S.createNativeFunction(B));
|
|
2581
2581
|
};
|
|
2582
2582
|
try {
|
|
2583
|
-
const S = new h(
|
|
2583
|
+
const S = new h(w, O);
|
|
2584
2584
|
return S.run(), S.pseudoToNative(S.value);
|
|
2585
2585
|
} catch (S) {
|
|
2586
2586
|
q.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
|
|
@@ -2588,14 +2588,14 @@ theFunction();
|
|
|
2588
2588
|
});
|
|
2589
2589
|
return;
|
|
2590
2590
|
}
|
|
2591
|
-
},
|
|
2591
|
+
}, _o = (e) => G() ? bo(e) : Vo(e);
|
|
2592
2592
|
function an({
|
|
2593
2593
|
code: e,
|
|
2594
2594
|
context: t,
|
|
2595
2595
|
localState: n,
|
|
2596
2596
|
rootState: r,
|
|
2597
|
-
rootSetState:
|
|
2598
|
-
event:
|
|
2597
|
+
rootSetState: o,
|
|
2598
|
+
event: i,
|
|
2599
2599
|
isExpression: s = !0
|
|
2600
2600
|
}) {
|
|
2601
2601
|
if (e === "") {
|
|
@@ -2603,18 +2603,18 @@ function an({
|
|
|
2603
2603
|
return;
|
|
2604
2604
|
}
|
|
2605
2605
|
const u = {
|
|
2606
|
-
code:
|
|
2606
|
+
code: vo(e, {
|
|
2607
2607
|
isExpression: s
|
|
2608
2608
|
}),
|
|
2609
|
-
builder:
|
|
2609
|
+
builder: yo(),
|
|
2610
2610
|
context: t,
|
|
2611
|
-
event:
|
|
2612
|
-
rootSetState:
|
|
2611
|
+
event: i,
|
|
2612
|
+
rootSetState: o,
|
|
2613
2613
|
rootState: r,
|
|
2614
2614
|
localState: n
|
|
2615
2615
|
};
|
|
2616
2616
|
try {
|
|
2617
|
-
return
|
|
2617
|
+
return _o(u);
|
|
2618
2618
|
} catch (d) {
|
|
2619
2619
|
q.error("Failed code evaluation: " + d.message, {
|
|
2620
2620
|
code: e
|
|
@@ -2623,22 +2623,22 @@ function an({
|
|
|
2623
2623
|
}
|
|
2624
2624
|
}
|
|
2625
2625
|
const pt = (e) => JSON.parse(JSON.stringify(e));
|
|
2626
|
-
const
|
|
2626
|
+
const Do = ({
|
|
2627
2627
|
block: e,
|
|
2628
2628
|
context: t,
|
|
2629
2629
|
localState: n,
|
|
2630
2630
|
rootState: r,
|
|
2631
|
-
rootSetState:
|
|
2631
|
+
rootSetState: o
|
|
2632
2632
|
}) => {
|
|
2633
2633
|
if (!e.bindings)
|
|
2634
2634
|
return e;
|
|
2635
|
-
const
|
|
2636
|
-
...
|
|
2635
|
+
const i = pt(e), s = {
|
|
2636
|
+
...i,
|
|
2637
2637
|
properties: {
|
|
2638
|
-
...
|
|
2638
|
+
...i.properties
|
|
2639
2639
|
},
|
|
2640
2640
|
actions: {
|
|
2641
|
-
...
|
|
2641
|
+
...i.actions
|
|
2642
2642
|
}
|
|
2643
2643
|
};
|
|
2644
2644
|
for (const u in e.bindings) {
|
|
@@ -2646,7 +2646,7 @@ const _i = ({
|
|
|
2646
2646
|
code: d,
|
|
2647
2647
|
localState: n,
|
|
2648
2648
|
rootState: r,
|
|
2649
|
-
rootSetState:
|
|
2649
|
+
rootSetState: o,
|
|
2650
2650
|
context: t
|
|
2651
2651
|
});
|
|
2652
2652
|
fr(s, u, E);
|
|
@@ -2658,41 +2658,41 @@ function ct({
|
|
|
2658
2658
|
context: t,
|
|
2659
2659
|
shouldEvaluateBindings: n,
|
|
2660
2660
|
localState: r,
|
|
2661
|
-
rootState:
|
|
2662
|
-
rootSetState:
|
|
2661
|
+
rootState: o,
|
|
2662
|
+
rootSetState: i
|
|
2663
2663
|
}) {
|
|
2664
2664
|
const s = e;
|
|
2665
|
-
return n ?
|
|
2665
|
+
return n ? Do({
|
|
2666
2666
|
block: s,
|
|
2667
2667
|
localState: r,
|
|
2668
|
-
rootState:
|
|
2669
|
-
rootSetState:
|
|
2668
|
+
rootState: o,
|
|
2669
|
+
rootSetState: i,
|
|
2670
2670
|
context: t
|
|
2671
2671
|
}) : s;
|
|
2672
2672
|
}
|
|
2673
|
-
const
|
|
2673
|
+
const Lo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], _t = (e) => typeof e == "string" && Lo.includes(e.toLowerCase()), Wo = ({
|
|
2674
2674
|
block: e,
|
|
2675
2675
|
context: t,
|
|
2676
2676
|
registeredComponents: n
|
|
2677
2677
|
}) => {
|
|
2678
|
-
var
|
|
2679
|
-
const r = (
|
|
2678
|
+
var i;
|
|
2679
|
+
const r = (i = ct({
|
|
2680
2680
|
block: e,
|
|
2681
2681
|
localState: t.localState,
|
|
2682
2682
|
rootState: t.rootState,
|
|
2683
2683
|
rootSetState: t.rootSetState,
|
|
2684
2684
|
context: t.context,
|
|
2685
2685
|
shouldEvaluateBindings: !1
|
|
2686
|
-
}).component) == null ? void 0 :
|
|
2686
|
+
}).component) == null ? void 0 : i.name;
|
|
2687
2687
|
if (!r)
|
|
2688
2688
|
return null;
|
|
2689
|
-
const
|
|
2690
|
-
if (
|
|
2691
|
-
return
|
|
2689
|
+
const o = n[r];
|
|
2690
|
+
if (o)
|
|
2691
|
+
return o;
|
|
2692
2692
|
console.warn(`
|
|
2693
2693
|
Could not find a registered component named "${r}".
|
|
2694
2694
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
2695
|
-
}, $
|
|
2695
|
+
}, $o = ({
|
|
2696
2696
|
block: e,
|
|
2697
2697
|
context: t
|
|
2698
2698
|
}) => {
|
|
@@ -2702,17 +2702,17 @@ const Di = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2702
2702
|
} = e;
|
|
2703
2703
|
if (!(n != null && n.collection))
|
|
2704
2704
|
return;
|
|
2705
|
-
const
|
|
2705
|
+
const o = an({
|
|
2706
2706
|
code: n.collection,
|
|
2707
2707
|
localState: t.localState,
|
|
2708
2708
|
rootState: t.rootState,
|
|
2709
2709
|
rootSetState: t.rootSetState,
|
|
2710
2710
|
context: t.context
|
|
2711
2711
|
});
|
|
2712
|
-
if (!Array.isArray(
|
|
2712
|
+
if (!Array.isArray(o))
|
|
2713
2713
|
return;
|
|
2714
|
-
const
|
|
2715
|
-
return
|
|
2714
|
+
const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
|
|
2715
|
+
return o.map((d, E) => ({
|
|
2716
2716
|
context: {
|
|
2717
2717
|
...t,
|
|
2718
2718
|
localState: {
|
|
@@ -2754,30 +2754,30 @@ const Di = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
|
|
|
2754
2754
|
min: r,
|
|
2755
2755
|
default: r + 1
|
|
2756
2756
|
};
|
|
2757
|
-
const
|
|
2757
|
+
const o = n.small.max + 1;
|
|
2758
2758
|
n.medium = {
|
|
2759
2759
|
max: t,
|
|
2760
|
-
min:
|
|
2761
|
-
default:
|
|
2760
|
+
min: o,
|
|
2761
|
+
default: o + 1
|
|
2762
2762
|
};
|
|
2763
|
-
const
|
|
2763
|
+
const i = n.medium.max + 1;
|
|
2764
2764
|
return n.large = {
|
|
2765
2765
|
max: 2e3,
|
|
2766
2766
|
// TODO: decide upper limit
|
|
2767
|
-
min:
|
|
2768
|
-
default:
|
|
2767
|
+
min: i,
|
|
2768
|
+
default: i + 1
|
|
2769
2769
|
}, n;
|
|
2770
|
-
},
|
|
2770
|
+
}, Ho = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), pe = (e) => e != null, br = (e) => Object.entries(e).map(([n, r]) => {
|
|
2771
2771
|
if (typeof r == "string")
|
|
2772
|
-
return `${
|
|
2773
|
-
}).filter(pe),
|
|
2772
|
+
return `${Ho(n)}: ${r};`;
|
|
2773
|
+
}).filter(pe), Ko = (e) => br(e).join(`
|
|
2774
2774
|
`), Dt = ({
|
|
2775
2775
|
mediaQuery: e,
|
|
2776
2776
|
className: t,
|
|
2777
2777
|
styles: n
|
|
2778
2778
|
}) => {
|
|
2779
2779
|
const r = `.${t} {
|
|
2780
|
-
${
|
|
2780
|
+
${Ko(n)}
|
|
2781
2781
|
}`;
|
|
2782
2782
|
return e ? `${e} {
|
|
2783
2783
|
${r}
|
|
@@ -2788,7 +2788,7 @@ function dt(e) {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
function sn(e) {
|
|
2790
2790
|
const t = function() {
|
|
2791
|
-
const
|
|
2791
|
+
const o = ct({
|
|
2792
2792
|
block: e.block,
|
|
2793
2793
|
localState: e.context.localState,
|
|
2794
2794
|
rootState: e.context.rootState,
|
|
@@ -2796,47 +2796,47 @@ function sn(e) {
|
|
|
2796
2796
|
context: e.context.context,
|
|
2797
2797
|
shouldEvaluateBindings: !0
|
|
2798
2798
|
});
|
|
2799
|
-
return pe(
|
|
2799
|
+
return pe(o.hide) ? !o.hide : pe(o.show) ? o.show : !0;
|
|
2800
2800
|
}, n = function() {
|
|
2801
|
-
var
|
|
2802
|
-
const
|
|
2801
|
+
var b;
|
|
2802
|
+
const o = ct({
|
|
2803
2803
|
block: e.block,
|
|
2804
2804
|
localState: e.context.localState,
|
|
2805
2805
|
rootState: e.context.rootState,
|
|
2806
2806
|
rootSetState: e.context.rootSetState,
|
|
2807
2807
|
context: e.context.context,
|
|
2808
2808
|
shouldEvaluateBindings: !0
|
|
2809
|
-
}),
|
|
2810
|
-
((
|
|
2811
|
-
), d =
|
|
2812
|
-
if (!
|
|
2809
|
+
}), i = o.responsiveStyles, s = e.context.content, u = vr(
|
|
2810
|
+
((b = s == null ? void 0 : s.meta) == null ? void 0 : b.breakpoints) || {}
|
|
2811
|
+
), d = i == null ? void 0 : i.large, E = i == null ? void 0 : i.medium, k = i == null ? void 0 : i.small, w = o.id;
|
|
2812
|
+
if (!w)
|
|
2813
2813
|
return "";
|
|
2814
|
-
const
|
|
2815
|
-
className:
|
|
2814
|
+
const B = d ? Dt({
|
|
2815
|
+
className: w,
|
|
2816
2816
|
styles: d
|
|
2817
2817
|
}) : "", O = E ? Dt({
|
|
2818
|
-
className:
|
|
2818
|
+
className: w,
|
|
2819
2819
|
styles: E,
|
|
2820
2820
|
mediaQuery: zn(
|
|
2821
2821
|
"medium",
|
|
2822
2822
|
u
|
|
2823
2823
|
)
|
|
2824
2824
|
}) : "", S = k ? Dt({
|
|
2825
|
-
className:
|
|
2825
|
+
className: w,
|
|
2826
2826
|
styles: k,
|
|
2827
2827
|
mediaQuery: zn(
|
|
2828
2828
|
"small",
|
|
2829
2829
|
u
|
|
2830
2830
|
)
|
|
2831
2831
|
}) : "";
|
|
2832
|
-
return [
|
|
2832
|
+
return [B, O, S].join(" ");
|
|
2833
2833
|
};
|
|
2834
2834
|
return /* @__PURE__ */ C(D, { children: n() && t() ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(dt, { styles: n() }) }) : null });
|
|
2835
2835
|
}
|
|
2836
|
-
function
|
|
2836
|
+
function Go(e) {
|
|
2837
2837
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2838
2838
|
}
|
|
2839
|
-
const
|
|
2839
|
+
const Xo = (e) => `on${Go(e)}`, Yo = (e, t) => (n) => an({
|
|
2840
2840
|
code: e,
|
|
2841
2841
|
context: t.context,
|
|
2842
2842
|
localState: t.localState,
|
|
@@ -2850,49 +2850,55 @@ function Ea(e) {
|
|
|
2850
2850
|
for (const r in n) {
|
|
2851
2851
|
if (!n.hasOwnProperty(r))
|
|
2852
2852
|
continue;
|
|
2853
|
-
const
|
|
2854
|
-
let
|
|
2853
|
+
const o = n[r];
|
|
2854
|
+
let i = Xo(r);
|
|
2855
2855
|
if (e.stripPrefix)
|
|
2856
|
-
switch (
|
|
2856
|
+
switch (be) {
|
|
2857
2857
|
case "vue2":
|
|
2858
2858
|
case "vue3":
|
|
2859
|
-
|
|
2859
|
+
i = i.replace("v-on:", "");
|
|
2860
2860
|
break;
|
|
2861
2861
|
case "svelte":
|
|
2862
|
-
|
|
2862
|
+
i = i.replace("on:", "");
|
|
2863
2863
|
break;
|
|
2864
2864
|
}
|
|
2865
|
-
t[
|
|
2865
|
+
t[i] = Yo(o, e);
|
|
2866
2866
|
}
|
|
2867
2867
|
return t;
|
|
2868
2868
|
}
|
|
2869
|
-
function
|
|
2869
|
+
function Jo({
|
|
2870
|
+
properties: e
|
|
2871
|
+
}) {
|
|
2870
2872
|
return e.className = e.class, delete e.class, e;
|
|
2871
2873
|
}
|
|
2872
|
-
const
|
|
2874
|
+
const zo = (e) => ({
|
|
2873
2875
|
href: e.href
|
|
2874
2876
|
});
|
|
2875
|
-
function
|
|
2877
|
+
function qo({
|
|
2876
2878
|
block: e,
|
|
2877
2879
|
context: t
|
|
2878
2880
|
}) {
|
|
2879
2881
|
var r;
|
|
2880
2882
|
const n = {
|
|
2881
|
-
...
|
|
2883
|
+
...zo(e),
|
|
2882
2884
|
...e.properties,
|
|
2883
2885
|
"builder-id": e.id,
|
|
2884
|
-
style: e.style ?
|
|
2886
|
+
style: e.style ? Zo(e.style) : void 0,
|
|
2885
2887
|
class: [e.id, "builder-block", e.class, (r = e.properties) == null ? void 0 : r.class].filter(Boolean).join(" ")
|
|
2886
2888
|
};
|
|
2887
|
-
return
|
|
2889
|
+
return Jo({
|
|
2890
|
+
properties: n,
|
|
2891
|
+
context: t,
|
|
2892
|
+
block: e
|
|
2893
|
+
});
|
|
2888
2894
|
}
|
|
2889
|
-
function
|
|
2890
|
-
switch (
|
|
2895
|
+
function Zo(e) {
|
|
2896
|
+
switch (be) {
|
|
2891
2897
|
case "svelte":
|
|
2892
2898
|
case "vue2":
|
|
2893
2899
|
case "vue3":
|
|
2894
2900
|
case "solid":
|
|
2895
|
-
return
|
|
2901
|
+
return br(e).join(" ");
|
|
2896
2902
|
case "qwik":
|
|
2897
2903
|
case "reactNative":
|
|
2898
2904
|
case "react":
|
|
@@ -2900,15 +2906,15 @@ function qi(e) {
|
|
|
2900
2906
|
return e;
|
|
2901
2907
|
}
|
|
2902
2908
|
}
|
|
2903
|
-
const
|
|
2909
|
+
const Qo = ({
|
|
2904
2910
|
componentOptions: e,
|
|
2905
2911
|
builderBlock: t,
|
|
2906
2912
|
context: n,
|
|
2907
2913
|
componentRef: r,
|
|
2908
|
-
includeBlockProps:
|
|
2909
|
-
isInteractive:
|
|
2914
|
+
includeBlockProps: o,
|
|
2915
|
+
isInteractive: i,
|
|
2910
2916
|
contextValue: s
|
|
2911
|
-
}) =>
|
|
2917
|
+
}) => i ? {
|
|
2912
2918
|
Wrapper: r,
|
|
2913
2919
|
block: t,
|
|
2914
2920
|
context: n,
|
|
@@ -2919,8 +2925,8 @@ const Zi = ({
|
|
|
2919
2925
|
* If `noWrap` is set to `true`, then the block's props/attributes are provided to the
|
|
2920
2926
|
* component itself directly. Otherwise, they are provided to the wrapper element.
|
|
2921
2927
|
*/
|
|
2922
|
-
...
|
|
2923
|
-
attributes:
|
|
2928
|
+
...o ? {
|
|
2929
|
+
attributes: qo({
|
|
2924
2930
|
block: t,
|
|
2925
2931
|
context: s
|
|
2926
2932
|
})
|
|
@@ -2928,11 +2934,11 @@ const Zi = ({
|
|
|
2928
2934
|
};
|
|
2929
2935
|
function qn(e) {
|
|
2930
2936
|
var n, r;
|
|
2931
|
-
const t = e.isInteractive ?
|
|
2937
|
+
const t = e.isInteractive ? to : e.componentRef;
|
|
2932
2938
|
return /* @__PURE__ */ C(D, { children: e.componentRef ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ ue(
|
|
2933
2939
|
t,
|
|
2934
2940
|
{
|
|
2935
|
-
...
|
|
2941
|
+
...Qo({
|
|
2936
2942
|
componentOptions: e.componentOptions,
|
|
2937
2943
|
builderBlock: e.builderBlock,
|
|
2938
2944
|
context: e.context,
|
|
@@ -2942,28 +2948,28 @@ function qn(e) {
|
|
|
2942
2948
|
contextValue: e.context
|
|
2943
2949
|
}),
|
|
2944
2950
|
children: [
|
|
2945
|
-
(n = e.blockChildren) == null ? void 0 : n.map((
|
|
2951
|
+
(n = e.blockChildren) == null ? void 0 : n.map((o) => /* @__PURE__ */ C(
|
|
2946
2952
|
ht,
|
|
2947
2953
|
{
|
|
2948
|
-
block:
|
|
2954
|
+
block: o,
|
|
2949
2955
|
context: e.context,
|
|
2950
2956
|
registeredComponents: e.registeredComponents
|
|
2951
2957
|
},
|
|
2952
|
-
"block-" +
|
|
2958
|
+
"block-" + o.id
|
|
2953
2959
|
)),
|
|
2954
|
-
(r = e.blockChildren) == null ? void 0 : r.map((
|
|
2960
|
+
(r = e.blockChildren) == null ? void 0 : r.map((o) => /* @__PURE__ */ C(
|
|
2955
2961
|
sn,
|
|
2956
2962
|
{
|
|
2957
|
-
block:
|
|
2963
|
+
block: o,
|
|
2958
2964
|
context: e.context
|
|
2959
2965
|
},
|
|
2960
|
-
"block-style-" +
|
|
2966
|
+
"block-style-" + o.id
|
|
2961
2967
|
))
|
|
2962
2968
|
]
|
|
2963
2969
|
}
|
|
2964
2970
|
) }) : null });
|
|
2965
2971
|
}
|
|
2966
|
-
function
|
|
2972
|
+
function ei(e) {
|
|
2967
2973
|
const t = e.repeatContext;
|
|
2968
2974
|
return /* @__PURE__ */ C(
|
|
2969
2975
|
ht,
|
|
@@ -2975,15 +2981,15 @@ function Qi(e) {
|
|
|
2975
2981
|
);
|
|
2976
2982
|
}
|
|
2977
2983
|
function ht(e) {
|
|
2978
|
-
var E, k,
|
|
2984
|
+
var E, k, w, B;
|
|
2979
2985
|
const t = function() {
|
|
2980
|
-
return
|
|
2986
|
+
return Wo({
|
|
2981
2987
|
block: e.block,
|
|
2982
2988
|
context: e.context,
|
|
2983
2989
|
registeredComponents: e.registeredComponents
|
|
2984
2990
|
});
|
|
2985
2991
|
}, n = function() {
|
|
2986
|
-
return $
|
|
2992
|
+
return $o({
|
|
2987
2993
|
block: e.block,
|
|
2988
2994
|
context: e.context
|
|
2989
2995
|
});
|
|
@@ -2997,26 +3003,26 @@ function ht(e) {
|
|
|
2997
3003
|
context: e.context.context,
|
|
2998
3004
|
shouldEvaluateBindings: !0
|
|
2999
3005
|
});
|
|
3000
|
-
},
|
|
3006
|
+
}, o = function() {
|
|
3001
3007
|
return e.block.tagName || "div";
|
|
3002
|
-
},
|
|
3008
|
+
}, i = function() {
|
|
3003
3009
|
var N, F;
|
|
3004
3010
|
if ((N = e.block.repeat) != null && N.collection)
|
|
3005
3011
|
return !!((F = n()) != null && F.length);
|
|
3006
3012
|
const S = "hide" in r() ? r().hide : !1;
|
|
3007
3013
|
return ("show" in r() ? r().show : !0) && !S;
|
|
3008
3014
|
}, s = function() {
|
|
3009
|
-
var
|
|
3010
|
-
return !((
|
|
3015
|
+
var b;
|
|
3016
|
+
return !((b = t()) != null && b.component) && !n() ? r().children ?? [] : [];
|
|
3011
3017
|
}, u = function() {
|
|
3012
|
-
var S,
|
|
3018
|
+
var S, b, N, F, m;
|
|
3013
3019
|
return {
|
|
3014
3020
|
blockChildren: r().children ?? [],
|
|
3015
3021
|
componentRef: (S = t()) == null ? void 0 : S.component,
|
|
3016
3022
|
componentOptions: {
|
|
3017
|
-
...
|
|
3023
|
+
...po(r()),
|
|
3018
3024
|
builderContext: e.context,
|
|
3019
|
-
...((
|
|
3025
|
+
...((b = t()) == null ? void 0 : b.name) === "Symbol" || ((N = t()) == null ? void 0 : N.name) === "Columns" ? {
|
|
3020
3026
|
builderComponents: e.registeredComponents
|
|
3021
3027
|
} : {}
|
|
3022
3028
|
},
|
|
@@ -3027,7 +3033,7 @@ function ht(e) {
|
|
|
3027
3033
|
isInteractive: !((m = t()) != null && m.isRSC)
|
|
3028
3034
|
};
|
|
3029
3035
|
}, d = e.context;
|
|
3030
|
-
return /* @__PURE__ */ C(D, { children:
|
|
3036
|
+
return /* @__PURE__ */ C(D, { children: i() ? /* @__PURE__ */ C(D, { children: (E = t()) != null && E.noWrap ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(
|
|
3031
3037
|
qn,
|
|
3032
3038
|
{
|
|
3033
3039
|
componentRef: u().componentRef,
|
|
@@ -3040,17 +3046,17 @@ function ht(e) {
|
|
|
3040
3046
|
isInteractive: u().isInteractive
|
|
3041
3047
|
}
|
|
3042
3048
|
) }) : /* @__PURE__ */ ue(D, { children: [
|
|
3043
|
-
_t(
|
|
3044
|
-
|
|
3049
|
+
_t(o()) ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(
|
|
3050
|
+
$n,
|
|
3045
3051
|
{
|
|
3046
|
-
Wrapper:
|
|
3052
|
+
Wrapper: o(),
|
|
3047
3053
|
block: r(),
|
|
3048
3054
|
context: e.context,
|
|
3049
3055
|
hasChildren: !1
|
|
3050
3056
|
}
|
|
3051
3057
|
) }) : null,
|
|
3052
|
-
!_t(
|
|
3053
|
-
|
|
3058
|
+
!_t(o()) && n() ? /* @__PURE__ */ C(D, { children: (k = n()) == null ? void 0 : k.map((O, S) => /* @__PURE__ */ C(
|
|
3059
|
+
ei,
|
|
3054
3060
|
{
|
|
3055
3061
|
repeatContext: O.context,
|
|
3056
3062
|
block: O.block,
|
|
@@ -3058,10 +3064,10 @@ function ht(e) {
|
|
|
3058
3064
|
},
|
|
3059
3065
|
S
|
|
3060
3066
|
)) }) : null,
|
|
3061
|
-
!_t(
|
|
3062
|
-
|
|
3067
|
+
!_t(o()) && !n() ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ ue(
|
|
3068
|
+
$n,
|
|
3063
3069
|
{
|
|
3064
|
-
Wrapper:
|
|
3070
|
+
Wrapper: o(),
|
|
3065
3071
|
block: r(),
|
|
3066
3072
|
context: e.context,
|
|
3067
3073
|
hasChildren: !0,
|
|
@@ -3079,7 +3085,7 @@ function ht(e) {
|
|
|
3079
3085
|
isInteractive: u().isInteractive
|
|
3080
3086
|
}
|
|
3081
3087
|
),
|
|
3082
|
-
(
|
|
3088
|
+
(w = s()) == null ? void 0 : w.map((O) => /* @__PURE__ */ C(
|
|
3083
3089
|
ht,
|
|
3084
3090
|
{
|
|
3085
3091
|
block: O,
|
|
@@ -3088,7 +3094,7 @@ function ht(e) {
|
|
|
3088
3094
|
},
|
|
3089
3095
|
"block-" + O.id
|
|
3090
3096
|
)),
|
|
3091
|
-
(
|
|
3097
|
+
(B = s()) == null ? void 0 : B.map((O) => /* @__PURE__ */ C(
|
|
3092
3098
|
sn,
|
|
3093
3099
|
{
|
|
3094
3100
|
block: O,
|
|
@@ -3102,54 +3108,56 @@ function ht(e) {
|
|
|
3102
3108
|
] }) }) : null });
|
|
3103
3109
|
}
|
|
3104
3110
|
function ln(e) {
|
|
3105
|
-
var t, n;
|
|
3111
|
+
var t, n, r, o;
|
|
3106
3112
|
return /* @__PURE__ */ ue(
|
|
3107
|
-
|
|
3113
|
+
no,
|
|
3108
3114
|
{
|
|
3109
3115
|
blocks: e.blocks,
|
|
3110
3116
|
parent: e.parent,
|
|
3111
3117
|
path: e.path,
|
|
3112
3118
|
styleProp: e.styleProp,
|
|
3119
|
+
BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
|
|
3120
|
+
BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
|
|
3113
3121
|
children: [
|
|
3114
|
-
e.blocks ? /* @__PURE__ */ C(D, { children: (
|
|
3122
|
+
e.blocks ? /* @__PURE__ */ C(D, { children: (r = e.blocks) == null ? void 0 : r.map((i) => /* @__PURE__ */ C(
|
|
3115
3123
|
ht,
|
|
3116
3124
|
{
|
|
3117
|
-
block:
|
|
3125
|
+
block: i,
|
|
3118
3126
|
context: e.context,
|
|
3119
3127
|
registeredComponents: e.registeredComponents
|
|
3120
3128
|
},
|
|
3121
|
-
"render-block-" +
|
|
3129
|
+
"render-block-" + i.id
|
|
3122
3130
|
)) }) : null,
|
|
3123
|
-
e.blocks ? /* @__PURE__ */ C(D, { children: (
|
|
3131
|
+
e.blocks ? /* @__PURE__ */ C(D, { children: (o = e.blocks) == null ? void 0 : o.map((i) => /* @__PURE__ */ C(
|
|
3124
3132
|
sn,
|
|
3125
3133
|
{
|
|
3126
|
-
block:
|
|
3134
|
+
block: i,
|
|
3127
3135
|
context: e.context
|
|
3128
3136
|
},
|
|
3129
|
-
"block-style-" +
|
|
3137
|
+
"block-style-" + i.id
|
|
3130
3138
|
)) }) : null
|
|
3131
3139
|
]
|
|
3132
3140
|
}
|
|
3133
3141
|
);
|
|
3134
3142
|
}
|
|
3135
|
-
function
|
|
3143
|
+
function ti(e) {
|
|
3136
3144
|
var O;
|
|
3137
|
-
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet",
|
|
3145
|
+
const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], r = e.stackColumnsAt || "tablet", o = function(b) {
|
|
3138
3146
|
var N;
|
|
3139
|
-
return ((N = n[
|
|
3140
|
-
},
|
|
3147
|
+
return ((N = n[b]) == null ? void 0 : N.width) || 100 / n.length;
|
|
3148
|
+
}, i = function(b) {
|
|
3141
3149
|
const N = t * (n.length - 1) / n.length;
|
|
3142
|
-
return `calc(${
|
|
3150
|
+
return `calc(${o(b)}% - ${N}px)`;
|
|
3143
3151
|
}, s = function({
|
|
3144
|
-
stackedStyle:
|
|
3152
|
+
stackedStyle: b,
|
|
3145
3153
|
desktopStyle: N
|
|
3146
3154
|
}) {
|
|
3147
|
-
return r === "tablet" ?
|
|
3155
|
+
return r === "tablet" ? b : N;
|
|
3148
3156
|
}, u = function({
|
|
3149
|
-
stackedStyle:
|
|
3157
|
+
stackedStyle: b,
|
|
3150
3158
|
desktopStyle: N
|
|
3151
3159
|
}) {
|
|
3152
|
-
return r === "never" ? N :
|
|
3160
|
+
return r === "never" ? N : b;
|
|
3153
3161
|
}, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", E = function() {
|
|
3154
3162
|
return {
|
|
3155
3163
|
"--flex-dir": d,
|
|
@@ -3158,8 +3166,8 @@ function eo(e) {
|
|
|
3158
3166
|
desktopStyle: "row"
|
|
3159
3167
|
})
|
|
3160
3168
|
};
|
|
3161
|
-
}, k = function(
|
|
3162
|
-
const N =
|
|
3169
|
+
}, k = function(b) {
|
|
3170
|
+
const N = b === 0 ? 0 : t, F = i(b), m = `${N}px`, de = "100%", he = 0;
|
|
3163
3171
|
return {
|
|
3164
3172
|
width: F,
|
|
3165
3173
|
["marginLeft"]: m,
|
|
@@ -3180,14 +3188,14 @@ function eo(e) {
|
|
|
3180
3188
|
desktopStyle: m
|
|
3181
3189
|
})
|
|
3182
3190
|
};
|
|
3183
|
-
},
|
|
3191
|
+
}, w = function(b) {
|
|
3184
3192
|
var F, m;
|
|
3185
3193
|
return vr(
|
|
3186
3194
|
((m = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : m.breakpoints) || {}
|
|
3187
|
-
)[
|
|
3188
|
-
},
|
|
3195
|
+
)[b].max;
|
|
3196
|
+
}, B = function() {
|
|
3189
3197
|
return `
|
|
3190
|
-
@media (max-width: ${
|
|
3198
|
+
@media (max-width: ${w("medium")}px) {
|
|
3191
3199
|
.${e.builderBlock.id}-breakpoints {
|
|
3192
3200
|
flex-direction: var(--flex-dir-tablet);
|
|
3193
3201
|
align-items: stretch;
|
|
@@ -3199,7 +3207,7 @@ function eo(e) {
|
|
|
3199
3207
|
}
|
|
3200
3208
|
}
|
|
3201
3209
|
|
|
3202
|
-
@media (max-width: ${
|
|
3210
|
+
@media (max-width: ${w("small")}px) {
|
|
3203
3211
|
.${e.builderBlock.id}-breakpoints {
|
|
3204
3212
|
flex-direction: var(--flex-dir);
|
|
3205
3213
|
align-items: stretch;
|
|
@@ -3219,18 +3227,18 @@ function eo(e) {
|
|
|
3219
3227
|
className: `builder-columns ${e.builderBlock.id}-breakpoints div-0d69fe26`,
|
|
3220
3228
|
style: E(),
|
|
3221
3229
|
children: [
|
|
3222
|
-
/* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(dt, { styles:
|
|
3223
|
-
(O = e.columns) == null ? void 0 : O.map((S,
|
|
3230
|
+
/* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(dt, { styles: B() }) }),
|
|
3231
|
+
(O = e.columns) == null ? void 0 : O.map((S, b) => /* @__PURE__ */ eo(
|
|
3224
3232
|
"div",
|
|
3225
3233
|
{
|
|
3226
3234
|
className: "builder-column div-0d69fe26-2",
|
|
3227
|
-
style: k(
|
|
3228
|
-
key:
|
|
3235
|
+
style: k(b),
|
|
3236
|
+
key: b
|
|
3229
3237
|
},
|
|
3230
3238
|
/* @__PURE__ */ C(
|
|
3231
3239
|
ln,
|
|
3232
3240
|
{
|
|
3233
|
-
path: `component.options.columns.${
|
|
3241
|
+
path: `component.options.columns.${b}.blocks`,
|
|
3234
3242
|
parent: e.builderBlock.id,
|
|
3235
3243
|
styleProp: {
|
|
3236
3244
|
flexGrow: "1"
|
|
@@ -3257,19 +3265,19 @@ function eo(e) {
|
|
|
3257
3265
|
function Zn(e) {
|
|
3258
3266
|
return e.replace(/http(s)?:/, "");
|
|
3259
3267
|
}
|
|
3260
|
-
function
|
|
3261
|
-
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"),
|
|
3262
|
-
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e +
|
|
3268
|
+
function ni(e = "", t, n) {
|
|
3269
|
+
const r = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
|
|
3270
|
+
return e.match(r) ? e.replace(r, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
|
|
3263
3271
|
}
|
|
3264
|
-
function
|
|
3272
|
+
function ri(e, t) {
|
|
3265
3273
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
3266
3274
|
return e;
|
|
3267
3275
|
if (t === "master")
|
|
3268
3276
|
return Zn(e);
|
|
3269
3277
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
3270
3278
|
if (n) {
|
|
3271
|
-
const r = e.split(n[0]),
|
|
3272
|
-
return Zn(`${r[0]}_${
|
|
3279
|
+
const r = e.split(n[0]), o = n[3], i = t.match("x") ? t : `${t}x`;
|
|
3280
|
+
return Zn(`${r[0]}_${i}${o}`);
|
|
3273
3281
|
}
|
|
3274
3282
|
return null;
|
|
3275
3283
|
}
|
|
@@ -3280,16 +3288,16 @@ function Ia(e) {
|
|
|
3280
3288
|
if (e.match(/builder\.io/)) {
|
|
3281
3289
|
let n = e;
|
|
3282
3290
|
const r = Number(e.split("?width=")[1]);
|
|
3283
|
-
return isNaN(r) || (n = `${n} ${r}w`), t.filter((
|
|
3291
|
+
return isNaN(r) || (n = `${n} ${r}w`), t.filter((o) => o !== r).map((o) => `${ni(e, "width", o)} ${o}w`).concat([n]).join(", ");
|
|
3284
3292
|
}
|
|
3285
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
3293
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [ri(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, r]) => `${n} ${r}w`).concat([e]).join(", ") : e;
|
|
3286
3294
|
}
|
|
3287
|
-
const
|
|
3295
|
+
const oi = (e) => {
|
|
3288
3296
|
if (e === "localhost" || e === "127.0.0.1")
|
|
3289
3297
|
return e;
|
|
3290
3298
|
const t = e.split(".");
|
|
3291
3299
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
3292
|
-
},
|
|
3300
|
+
}, xr = ({
|
|
3293
3301
|
name: e,
|
|
3294
3302
|
canTrack: t
|
|
3295
3303
|
}) => {
|
|
@@ -3300,13 +3308,13 @@ const ro = (e) => {
|
|
|
3300
3308
|
q.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
|
|
3301
3309
|
return;
|
|
3302
3310
|
}
|
|
3303
|
-
},
|
|
3311
|
+
}, wr = async (e) => xr(e), ii = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(pe).join("; "), ai = [["secure", ""], ["SameSite", "None"]], si = ({
|
|
3304
3312
|
name: e,
|
|
3305
3313
|
value: t,
|
|
3306
3314
|
expires: n
|
|
3307
3315
|
}) => {
|
|
3308
|
-
const
|
|
3309
|
-
return
|
|
3316
|
+
const o = (G() ? location.protocol === "https:" : !0) ? ai : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", oi(window.location.hostname)], ...o];
|
|
3317
|
+
return ii(s);
|
|
3310
3318
|
}, Sr = async ({
|
|
3311
3319
|
name: e,
|
|
3312
3320
|
value: t,
|
|
@@ -3316,48 +3324,48 @@ const ro = (e) => {
|
|
|
3316
3324
|
try {
|
|
3317
3325
|
if (!r)
|
|
3318
3326
|
return;
|
|
3319
|
-
const
|
|
3327
|
+
const o = si({
|
|
3320
3328
|
name: e,
|
|
3321
3329
|
value: t,
|
|
3322
3330
|
expires: n
|
|
3323
3331
|
});
|
|
3324
|
-
document.cookie =
|
|
3325
|
-
} catch (
|
|
3326
|
-
q.warn("[COOKIE] SET error: ", (
|
|
3332
|
+
document.cookie = o;
|
|
3333
|
+
} catch (o) {
|
|
3334
|
+
q.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
|
|
3327
3335
|
}
|
|
3328
|
-
},
|
|
3336
|
+
}, li = "builder.tests", cn = (e) => `${li}.${e}`, ci = ({
|
|
3329
3337
|
contentId: e
|
|
3330
|
-
}) =>
|
|
3338
|
+
}) => wr({
|
|
3331
3339
|
name: cn(e),
|
|
3332
3340
|
canTrack: !0
|
|
3333
|
-
}),
|
|
3341
|
+
}), ui = ({
|
|
3334
3342
|
contentId: e
|
|
3335
|
-
}) =>
|
|
3343
|
+
}) => xr({
|
|
3336
3344
|
name: cn(e),
|
|
3337
3345
|
canTrack: !0
|
|
3338
|
-
}),
|
|
3346
|
+
}), fi = ({
|
|
3339
3347
|
contentId: e,
|
|
3340
3348
|
value: t
|
|
3341
3349
|
}) => Sr({
|
|
3342
3350
|
name: cn(e),
|
|
3343
3351
|
value: t,
|
|
3344
3352
|
canTrack: !0
|
|
3345
|
-
}), kr = (e) => pe(e.id) && pe(e.variations) && Object.keys(e.variations).length > 0,
|
|
3353
|
+
}), kr = (e) => pe(e.id) && pe(e.variations) && Object.keys(e.variations).length > 0, pi = ({
|
|
3346
3354
|
id: e,
|
|
3347
3355
|
variations: t
|
|
3348
3356
|
}) => {
|
|
3349
|
-
var
|
|
3357
|
+
var o;
|
|
3350
3358
|
let n = 0;
|
|
3351
3359
|
const r = Math.random();
|
|
3352
|
-
for (const
|
|
3353
|
-
const s = (
|
|
3360
|
+
for (const i in t) {
|
|
3361
|
+
const s = (o = t[i]) == null ? void 0 : o.testRatio;
|
|
3354
3362
|
if (n += s, r < n)
|
|
3355
|
-
return
|
|
3363
|
+
return i;
|
|
3356
3364
|
}
|
|
3357
3365
|
return e;
|
|
3358
3366
|
}, Cr = (e) => {
|
|
3359
|
-
const t =
|
|
3360
|
-
return
|
|
3367
|
+
const t = pi(e);
|
|
3368
|
+
return fi({
|
|
3361
3369
|
contentId: e.id,
|
|
3362
3370
|
value: t
|
|
3363
3371
|
}).catch((n) => {
|
|
@@ -3377,7 +3385,7 @@ const ro = (e) => {
|
|
|
3377
3385
|
testVariationId: n.id,
|
|
3378
3386
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
3379
3387
|
};
|
|
3380
|
-
},
|
|
3388
|
+
}, di = ({
|
|
3381
3389
|
item: e,
|
|
3382
3390
|
canTrack: t
|
|
3383
3391
|
}) => {
|
|
@@ -3387,7 +3395,7 @@ const ro = (e) => {
|
|
|
3387
3395
|
return;
|
|
3388
3396
|
if (!kr(e))
|
|
3389
3397
|
return e;
|
|
3390
|
-
const n =
|
|
3398
|
+
const n = ui({
|
|
3391
3399
|
contentId: e.id
|
|
3392
3400
|
}) || Cr({
|
|
3393
3401
|
variations: e.variations,
|
|
@@ -3400,26 +3408,26 @@ const ro = (e) => {
|
|
|
3400
3408
|
...e,
|
|
3401
3409
|
...r
|
|
3402
3410
|
};
|
|
3403
|
-
},
|
|
3411
|
+
}, hi = async ({
|
|
3404
3412
|
item: e,
|
|
3405
3413
|
canTrack: t
|
|
3406
3414
|
}) => {
|
|
3407
3415
|
if (!t || !kr(e))
|
|
3408
3416
|
return e;
|
|
3409
|
-
const r = await
|
|
3417
|
+
const r = await ci({
|
|
3410
3418
|
contentId: e.id
|
|
3411
3419
|
}) || Cr({
|
|
3412
3420
|
variations: e.variations,
|
|
3413
3421
|
id: e.id
|
|
3414
|
-
}),
|
|
3422
|
+
}), o = Er({
|
|
3415
3423
|
item: e,
|
|
3416
3424
|
testGroupId: r
|
|
3417
3425
|
});
|
|
3418
3426
|
return {
|
|
3419
3427
|
...e,
|
|
3420
|
-
...
|
|
3428
|
+
...o
|
|
3421
3429
|
};
|
|
3422
|
-
}, Ht = (e) => pe(e) ? e : !0,
|
|
3430
|
+
}, Ht = (e) => pe(e) ? e : !0, mi = {
|
|
3423
3431
|
name: "Core:Button",
|
|
3424
3432
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
3425
3433
|
defaultStyles: {
|
|
@@ -3452,7 +3460,7 @@ const ro = (e) => {
|
|
|
3452
3460
|
}],
|
|
3453
3461
|
static: !0,
|
|
3454
3462
|
noWrap: !0
|
|
3455
|
-
},
|
|
3463
|
+
}, gi = {
|
|
3456
3464
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
3457
3465
|
name: "Columns",
|
|
3458
3466
|
isRSC: !0,
|
|
@@ -3631,7 +3639,7 @@ const ro = (e) => {
|
|
|
3631
3639
|
});
|
|
3632
3640
|
}
|
|
3633
3641
|
const n = e.get("columns");
|
|
3634
|
-
Array.isArray(n) && n.find((
|
|
3642
|
+
Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((u, d) => u + d.get("width"), 0) !== 100) && t();
|
|
3635
3643
|
}
|
|
3636
3644
|
}, {
|
|
3637
3645
|
name: "space",
|
|
@@ -3653,7 +3661,7 @@ const ro = (e) => {
|
|
|
3653
3661
|
helperText: "When stacking columns for mobile devices, reverse the ordering",
|
|
3654
3662
|
advanced: !0
|
|
3655
3663
|
}]
|
|
3656
|
-
},
|
|
3664
|
+
}, yi = {
|
|
3657
3665
|
name: "Custom Code",
|
|
3658
3666
|
static: !0,
|
|
3659
3667
|
requiredPermissions: ["editCode"],
|
|
@@ -3675,7 +3683,7 @@ const ro = (e) => {
|
|
|
3675
3683
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3676
3684
|
advanced: !0
|
|
3677
3685
|
}]
|
|
3678
|
-
},
|
|
3686
|
+
}, vi = {
|
|
3679
3687
|
name: "Embed",
|
|
3680
3688
|
static: !0,
|
|
3681
3689
|
inputs: [{
|
|
@@ -3700,13 +3708,13 @@ const ro = (e) => {
|
|
|
3700
3708
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3701
3709
|
hideFromUI: !0
|
|
3702
3710
|
}]
|
|
3703
|
-
},
|
|
3711
|
+
}, bi = ["text/javascript", "application/javascript", "application/ecmascript"], Ta = (e) => bi.includes(e.type), xi = {
|
|
3704
3712
|
name: "Fragment",
|
|
3705
3713
|
static: !0,
|
|
3706
3714
|
hidden: !0,
|
|
3707
3715
|
canHaveChildren: !0,
|
|
3708
3716
|
noWrap: !0
|
|
3709
|
-
},
|
|
3717
|
+
}, wi = {
|
|
3710
3718
|
name: "Image",
|
|
3711
3719
|
static: !0,
|
|
3712
3720
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -3729,26 +3737,26 @@ const ro = (e) => {
|
|
|
3729
3737
|
function n(s, u = 6e4) {
|
|
3730
3738
|
return new Promise((d, E) => {
|
|
3731
3739
|
const k = document.createElement("img");
|
|
3732
|
-
let
|
|
3740
|
+
let w = !1;
|
|
3733
3741
|
k.onload = () => {
|
|
3734
|
-
|
|
3735
|
-
}, k.addEventListener("error", (
|
|
3736
|
-
console.warn("Image load failed",
|
|
3742
|
+
w = !0, d(k);
|
|
3743
|
+
}, k.addEventListener("error", (B) => {
|
|
3744
|
+
console.warn("Image load failed", B.error), E(B.error);
|
|
3737
3745
|
}), k.src = s, setTimeout(() => {
|
|
3738
|
-
|
|
3746
|
+
w || E(new Error("Image load timed out"));
|
|
3739
3747
|
}, u);
|
|
3740
3748
|
});
|
|
3741
3749
|
}
|
|
3742
3750
|
function r(s) {
|
|
3743
3751
|
return Math.round(s * 1e3) / 1e3;
|
|
3744
3752
|
}
|
|
3745
|
-
const
|
|
3746
|
-
if (fetch(
|
|
3753
|
+
const o = e.get("image"), i = e.get("aspectRatio");
|
|
3754
|
+
if (fetch(o).then((s) => s.blob()).then((s) => {
|
|
3747
3755
|
s.type.includes("svg") && e.set("noWebp", !0);
|
|
3748
|
-
}),
|
|
3749
|
-
return n(
|
|
3756
|
+
}), o && (!i || i === 0.7041))
|
|
3757
|
+
return n(o).then((s) => {
|
|
3750
3758
|
const u = e.get("aspectRatio");
|
|
3751
|
-
e.get("image") ===
|
|
3759
|
+
e.get("image") === o && (!u || u === 0.7041) && s.width && s.height && (e.set("aspectRatio", r(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
|
|
3752
3760
|
});
|
|
3753
3761
|
}
|
|
3754
3762
|
}, {
|
|
@@ -3806,7 +3814,7 @@ const ro = (e) => {
|
|
|
3806
3814
|
advanced: !0,
|
|
3807
3815
|
defaultValue: 0.7041
|
|
3808
3816
|
}]
|
|
3809
|
-
},
|
|
3817
|
+
}, Si = {
|
|
3810
3818
|
// friendlyName?
|
|
3811
3819
|
name: "Raw:Img",
|
|
3812
3820
|
hideFromInsertMenu: !0,
|
|
@@ -3820,7 +3828,7 @@ const ro = (e) => {
|
|
|
3820
3828
|
}],
|
|
3821
3829
|
noWrap: !0,
|
|
3822
3830
|
static: !0
|
|
3823
|
-
},
|
|
3831
|
+
}, ki = {
|
|
3824
3832
|
name: "Core:Section",
|
|
3825
3833
|
static: !0,
|
|
3826
3834
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3859,7 +3867,7 @@ const ro = (e) => {
|
|
|
3859
3867
|
}
|
|
3860
3868
|
}
|
|
3861
3869
|
}]
|
|
3862
|
-
},
|
|
3870
|
+
}, Ci = {
|
|
3863
3871
|
name: "Symbol",
|
|
3864
3872
|
noWrap: !0,
|
|
3865
3873
|
static: !0,
|
|
@@ -3892,7 +3900,7 @@ const ro = (e) => {
|
|
|
3892
3900
|
hideFromUI: !0,
|
|
3893
3901
|
type: "boolean"
|
|
3894
3902
|
}]
|
|
3895
|
-
},
|
|
3903
|
+
}, Ei = {
|
|
3896
3904
|
name: "Text",
|
|
3897
3905
|
static: !0,
|
|
3898
3906
|
isRSC: !0,
|
|
@@ -3911,7 +3919,7 @@ const ro = (e) => {
|
|
|
3911
3919
|
textAlign: "center"
|
|
3912
3920
|
}
|
|
3913
3921
|
};
|
|
3914
|
-
function
|
|
3922
|
+
function Ii(e) {
|
|
3915
3923
|
var t;
|
|
3916
3924
|
return /* @__PURE__ */ C(
|
|
3917
3925
|
"div",
|
|
@@ -3924,7 +3932,7 @@ function Io(e) {
|
|
|
3924
3932
|
}
|
|
3925
3933
|
);
|
|
3926
3934
|
}
|
|
3927
|
-
const
|
|
3935
|
+
const Ti = {
|
|
3928
3936
|
name: "Video",
|
|
3929
3937
|
canHaveChildren: !0,
|
|
3930
3938
|
defaultStyles: {
|
|
@@ -4006,54 +4014,54 @@ const To = {
|
|
|
4006
4014
|
advanced: !0
|
|
4007
4015
|
}]
|
|
4008
4016
|
}, Qn = () => [{
|
|
4009
|
-
component:
|
|
4010
|
-
...
|
|
4017
|
+
component: ro,
|
|
4018
|
+
...mi
|
|
4011
4019
|
}, {
|
|
4012
|
-
component:
|
|
4013
|
-
...
|
|
4020
|
+
component: ti,
|
|
4021
|
+
...gi
|
|
4014
4022
|
}, {
|
|
4015
|
-
component:
|
|
4016
|
-
...
|
|
4023
|
+
component: oo,
|
|
4024
|
+
...yi
|
|
4017
4025
|
}, {
|
|
4018
|
-
component:
|
|
4019
|
-
...
|
|
4026
|
+
component: io,
|
|
4027
|
+
...vi
|
|
4020
4028
|
}, {
|
|
4021
|
-
component:
|
|
4022
|
-
...
|
|
4029
|
+
component: ao,
|
|
4030
|
+
...xi
|
|
4023
4031
|
}, {
|
|
4024
|
-
component:
|
|
4025
|
-
...
|
|
4032
|
+
component: so,
|
|
4033
|
+
...wi
|
|
4026
4034
|
}, {
|
|
4027
|
-
component:
|
|
4028
|
-
...
|
|
4035
|
+
component: lo,
|
|
4036
|
+
...Si
|
|
4029
4037
|
}, {
|
|
4030
|
-
component:
|
|
4031
|
-
...
|
|
4038
|
+
component: co,
|
|
4039
|
+
...ki
|
|
4032
4040
|
}, {
|
|
4033
|
-
component:
|
|
4034
|
-
...
|
|
4041
|
+
component: ba,
|
|
4042
|
+
...Ci
|
|
4035
4043
|
}, {
|
|
4036
|
-
component:
|
|
4037
|
-
...
|
|
4044
|
+
component: Ii,
|
|
4045
|
+
...Ei
|
|
4038
4046
|
}, {
|
|
4039
|
-
component:
|
|
4040
|
-
...
|
|
4047
|
+
component: uo,
|
|
4048
|
+
...Ti
|
|
4041
4049
|
}], er = [], Aa = (e) => ({
|
|
4042
4050
|
type: "builder.registerComponent",
|
|
4043
4051
|
data: Kt(e)
|
|
4044
|
-
}),
|
|
4052
|
+
}), Ai = (e) => {
|
|
4045
4053
|
const t = e.toString().trim();
|
|
4046
4054
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
4047
|
-
},
|
|
4055
|
+
}, Oi = (e) => typeof e == "function" ? Ai(e) : pt(e), Kt = ({
|
|
4048
4056
|
inputs: e,
|
|
4049
4057
|
...t
|
|
4050
4058
|
}) => ({
|
|
4051
4059
|
...pt(t),
|
|
4052
|
-
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [
|
|
4060
|
+
inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
|
|
4053
4061
|
...r,
|
|
4054
|
-
[
|
|
4062
|
+
[o]: Oi(i)
|
|
4055
4063
|
}), {}))
|
|
4056
|
-
}),
|
|
4064
|
+
}), ji = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4057
4065
|
function getAndSetVariantId() {
|
|
4058
4066
|
function setCookie(name, value, days) {
|
|
4059
4067
|
let expires = '';
|
|
@@ -4109,7 +4117,7 @@ const To = {
|
|
|
4109
4117
|
}).join('');
|
|
4110
4118
|
styleEl.innerHTML = newStyleStr;
|
|
4111
4119
|
}
|
|
4112
|
-
}`,
|
|
4120
|
+
}`, Ri = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4113
4121
|
if (!navigator.cookieEnabled) {
|
|
4114
4122
|
return;
|
|
4115
4123
|
}
|
|
@@ -4147,16 +4155,16 @@ const To = {
|
|
|
4147
4155
|
...t,
|
|
4148
4156
|
testVariationId: t.id,
|
|
4149
4157
|
id: e == null ? void 0 : e.id
|
|
4150
|
-
})),
|
|
4158
|
+
})), Pi = ({
|
|
4151
4159
|
canTrack: e,
|
|
4152
4160
|
content: t
|
|
4153
|
-
}) => !(!(st(t).length > 0) || !e || G()),
|
|
4154
|
-
window.${Ir} = ${
|
|
4155
|
-
window.${Tr} = ${
|
|
4156
|
-
`,
|
|
4161
|
+
}) => !(!(st(t).length > 0) || !e || G()), Ni = (e) => e === "react" || e === "reactNative", Ar = Ni(be), Bi = () => `
|
|
4162
|
+
window.${Ir} = ${ji}
|
|
4163
|
+
window.${Tr} = ${Ri}
|
|
4164
|
+
`, Mi = (e, t) => `
|
|
4157
4165
|
window.${Ir}(
|
|
4158
4166
|
"${t}",${JSON.stringify(e)}, ${Ar}
|
|
4159
|
-
)`,
|
|
4167
|
+
)`, Ui = ({
|
|
4160
4168
|
contentId: e,
|
|
4161
4169
|
variationId: t
|
|
4162
4170
|
}) => `window.${Tr}(
|
|
@@ -4171,46 +4179,46 @@ function Gt(e) {
|
|
|
4171
4179
|
}
|
|
4172
4180
|
);
|
|
4173
4181
|
}
|
|
4174
|
-
const
|
|
4182
|
+
const Fi = (e) => {
|
|
4175
4183
|
const t = e.get("preview"), n = e.get("overrides." + t);
|
|
4176
4184
|
return n || q.warn("No previewed ID found in search params."), n;
|
|
4177
4185
|
};
|
|
4178
|
-
function
|
|
4186
|
+
function Vi() {
|
|
4179
4187
|
globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Qr({
|
|
4180
4188
|
max: 500,
|
|
4181
4189
|
// how long to live in ms
|
|
4182
4190
|
ttl: 1e3 * 60 * 5
|
|
4183
4191
|
}));
|
|
4184
4192
|
}
|
|
4185
|
-
function
|
|
4186
|
-
|
|
4187
|
-
const t =
|
|
4193
|
+
function _i(e) {
|
|
4194
|
+
Vi();
|
|
4195
|
+
const t = Fi(e);
|
|
4188
4196
|
return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
|
|
4189
4197
|
}
|
|
4190
|
-
function
|
|
4198
|
+
function Di() {
|
|
4191
4199
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
4192
4200
|
}
|
|
4193
|
-
function
|
|
4194
|
-
const e =
|
|
4201
|
+
function Li() {
|
|
4202
|
+
const e = Di().fetch;
|
|
4195
4203
|
if (typeof e > "u")
|
|
4196
4204
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
4197
4205
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
4198
4206
|
return e;
|
|
4199
4207
|
}
|
|
4200
|
-
const
|
|
4208
|
+
const Wi = Li();
|
|
4201
4209
|
function lt(e, t = null, n = ".") {
|
|
4202
|
-
return Object.keys(e).reduce((r,
|
|
4203
|
-
const
|
|
4204
|
-
return [typeof
|
|
4210
|
+
return Object.keys(e).reduce((r, o) => {
|
|
4211
|
+
const i = e[o], s = [t, o].filter(Boolean).join(n);
|
|
4212
|
+
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
4205
4213
|
...r,
|
|
4206
|
-
...lt(
|
|
4214
|
+
...lt(i, s, n)
|
|
4207
4215
|
} : {
|
|
4208
4216
|
...r,
|
|
4209
|
-
[s]:
|
|
4217
|
+
[s]: i
|
|
4210
4218
|
};
|
|
4211
4219
|
}, {});
|
|
4212
4220
|
}
|
|
4213
|
-
const
|
|
4221
|
+
const $i = "v3", tr = "builder.", Hi = "options.", Ki = (e) => {
|
|
4214
4222
|
const t = {};
|
|
4215
4223
|
return e.forEach((n, r) => {
|
|
4216
4224
|
t[r] = n;
|
|
@@ -4221,34 +4229,34 @@ const Wo = "v3", tr = "builder.", Ho = "options.", Ko = (e) => {
|
|
|
4221
4229
|
const t = jr(e), n = {};
|
|
4222
4230
|
return Object.keys(t).forEach((r) => {
|
|
4223
4231
|
if (r.startsWith(tr)) {
|
|
4224
|
-
const
|
|
4225
|
-
n[
|
|
4232
|
+
const o = r.replace(tr, "").replace(Hi, "");
|
|
4233
|
+
n[o] = t[r];
|
|
4226
4234
|
}
|
|
4227
4235
|
}), n;
|
|
4228
|
-
},
|
|
4236
|
+
}, Gi = () => {
|
|
4229
4237
|
if (!G())
|
|
4230
4238
|
return {};
|
|
4231
4239
|
const e = new URLSearchParams(window.location.search);
|
|
4232
4240
|
return Or(e);
|
|
4233
|
-
}, jr = (e) => e instanceof URLSearchParams ?
|
|
4241
|
+
}, jr = (e) => e instanceof URLSearchParams ? Ki(e) : e, nr = (e) => typeof e == "number" && !isNaN(e) && e >= 0, un = (e) => {
|
|
4234
4242
|
let {
|
|
4235
4243
|
noTraverse: t = !1
|
|
4236
4244
|
} = e;
|
|
4237
4245
|
const {
|
|
4238
4246
|
limit: n = 30,
|
|
4239
4247
|
userAttributes: r,
|
|
4240
|
-
query:
|
|
4241
|
-
model:
|
|
4248
|
+
query: o,
|
|
4249
|
+
model: i,
|
|
4242
4250
|
apiKey: s,
|
|
4243
4251
|
includeRefs: u = !0,
|
|
4244
4252
|
enrich: d,
|
|
4245
4253
|
locale: E,
|
|
4246
|
-
apiVersion: k =
|
|
4247
|
-
fields:
|
|
4248
|
-
omit:
|
|
4254
|
+
apiVersion: k = $i,
|
|
4255
|
+
fields: w,
|
|
4256
|
+
omit: B,
|
|
4249
4257
|
offset: O,
|
|
4250
4258
|
cacheSeconds: S,
|
|
4251
|
-
staleCacheSeconds:
|
|
4259
|
+
staleCacheSeconds: b,
|
|
4252
4260
|
sort: N,
|
|
4253
4261
|
includeUnpublished: F
|
|
4254
4262
|
} = e;
|
|
@@ -4257,68 +4265,68 @@ const Wo = "v3", tr = "builder.", Ho = "options.", Ko = (e) => {
|
|
|
4257
4265
|
if (!["v2", "v3"].includes(k))
|
|
4258
4266
|
throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${k}'`);
|
|
4259
4267
|
(e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
|
|
4260
|
-
const m = new URL(`https://cdn.builder.io/api/${k}/content/${
|
|
4261
|
-
if (m.searchParams.set("omit",
|
|
4268
|
+
const m = new URL(`https://cdn.builder.io/api/${k}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${E ? `&locale=${E}` : ""}${d ? `&enrich=${d}` : ""}`);
|
|
4269
|
+
if (m.searchParams.set("omit", B || "meta.componentsUsed"), w && m.searchParams.set("fields", w), Number.isFinite(O) && O > -1 && m.searchParams.set("offset", String(Math.floor(O))), typeof F == "boolean" && m.searchParams.set("includeUnpublished", String(F)), S && nr(S) && m.searchParams.set("cacheSeconds", String(S)), b && nr(b) && m.searchParams.set("staleCacheSeconds", String(b)), N) {
|
|
4262
4270
|
const Z = lt({
|
|
4263
4271
|
sort: N
|
|
4264
4272
|
});
|
|
4265
|
-
for (const
|
|
4266
|
-
m.searchParams.set(
|
|
4273
|
+
for (const M in Z)
|
|
4274
|
+
m.searchParams.set(M, JSON.stringify(Z[M]));
|
|
4267
4275
|
}
|
|
4268
4276
|
const de = {
|
|
4269
|
-
...
|
|
4277
|
+
...Gi(),
|
|
4270
4278
|
...jr(e.options || {})
|
|
4271
4279
|
}, he = lt(de);
|
|
4272
4280
|
for (const Z in he)
|
|
4273
4281
|
m.searchParams.set(Z, String(he[Z]));
|
|
4274
|
-
if (r && m.searchParams.set("userAttributes", JSON.stringify(r)),
|
|
4282
|
+
if (r && m.searchParams.set("userAttributes", JSON.stringify(r)), o) {
|
|
4275
4283
|
const Z = lt({
|
|
4276
|
-
query:
|
|
4284
|
+
query: o
|
|
4277
4285
|
});
|
|
4278
|
-
for (const
|
|
4279
|
-
m.searchParams.set(
|
|
4286
|
+
for (const M in Z)
|
|
4287
|
+
m.searchParams.set(M, JSON.stringify(Z[M]));
|
|
4280
4288
|
}
|
|
4281
4289
|
return m;
|
|
4282
|
-
},
|
|
4290
|
+
}, Xi = (e) => "results" in e;
|
|
4283
4291
|
async function fn(e) {
|
|
4284
4292
|
const t = await Rr({
|
|
4285
4293
|
...e,
|
|
4286
4294
|
limit: 1
|
|
4287
4295
|
});
|
|
4288
|
-
return t && t
|
|
4296
|
+
return t && t[0] || null;
|
|
4289
4297
|
}
|
|
4290
|
-
const Oa = fn,
|
|
4298
|
+
const Oa = fn, Yi = async (e) => {
|
|
4291
4299
|
const t = un(e);
|
|
4292
|
-
return await (await
|
|
4293
|
-
},
|
|
4300
|
+
return await (await Wi(t.href)).json();
|
|
4301
|
+
}, Ji = async (e, t, n = un(e)) => {
|
|
4294
4302
|
const r = Ht(e.canTrack);
|
|
4295
4303
|
if (n.search.includes("preview=")) {
|
|
4296
|
-
const
|
|
4304
|
+
const i = [];
|
|
4297
4305
|
for (const s of t.results) {
|
|
4298
|
-
const u =
|
|
4299
|
-
|
|
4306
|
+
const u = _i(n.searchParams);
|
|
4307
|
+
i.push(u || s);
|
|
4300
4308
|
}
|
|
4301
|
-
t.results =
|
|
4309
|
+
t.results = i;
|
|
4302
4310
|
}
|
|
4303
|
-
if (!r || !(G() ||
|
|
4304
|
-
return t;
|
|
4311
|
+
if (!r || !(G() || be === "reactNative"))
|
|
4312
|
+
return t.results;
|
|
4305
4313
|
try {
|
|
4306
|
-
const
|
|
4314
|
+
const i = [];
|
|
4307
4315
|
for (const s of t.results)
|
|
4308
|
-
|
|
4316
|
+
i.push(await hi({
|
|
4309
4317
|
item: s,
|
|
4310
4318
|
canTrack: r
|
|
4311
4319
|
}));
|
|
4312
|
-
t.results =
|
|
4313
|
-
} catch (
|
|
4314
|
-
q.error("Could not process A/B tests. ",
|
|
4320
|
+
t.results = i;
|
|
4321
|
+
} catch (i) {
|
|
4322
|
+
q.error("Could not process A/B tests. ", i);
|
|
4315
4323
|
}
|
|
4316
|
-
return t;
|
|
4324
|
+
return t.results;
|
|
4317
4325
|
};
|
|
4318
4326
|
async function Rr(e) {
|
|
4319
4327
|
try {
|
|
4320
|
-
const t = un(e), n = await
|
|
4321
|
-
return
|
|
4328
|
+
const t = un(e), n = await Yi(e);
|
|
4329
|
+
return Xi(n) ? Ji(e, n) : (q.error("Error fetching data. ", {
|
|
4322
4330
|
url: t,
|
|
4323
4331
|
content: n,
|
|
4324
4332
|
options: e
|
|
@@ -4331,47 +4339,47 @@ const ja = Rr;
|
|
|
4331
4339
|
function Ra() {
|
|
4332
4340
|
return !G() || Xt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
|
|
4333
4341
|
}
|
|
4334
|
-
function
|
|
4342
|
+
function zi() {
|
|
4335
4343
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
4336
4344
|
const t = Math.random() * 16 | 0;
|
|
4337
4345
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
4338
4346
|
});
|
|
4339
4347
|
}
|
|
4340
4348
|
function Pr() {
|
|
4341
|
-
return
|
|
4349
|
+
return zi().replace(/-/g, "");
|
|
4342
4350
|
}
|
|
4343
|
-
const Nr = "builderSessionId",
|
|
4351
|
+
const Nr = "builderSessionId", qi = async ({
|
|
4344
4352
|
canTrack: e
|
|
4345
4353
|
}) => {
|
|
4346
4354
|
if (!e)
|
|
4347
4355
|
return;
|
|
4348
|
-
const t = await
|
|
4356
|
+
const t = await wr({
|
|
4349
4357
|
name: Nr,
|
|
4350
4358
|
canTrack: e
|
|
4351
4359
|
});
|
|
4352
4360
|
if (pe(t))
|
|
4353
4361
|
return t;
|
|
4354
4362
|
{
|
|
4355
|
-
const n =
|
|
4356
|
-
return
|
|
4363
|
+
const n = Zi();
|
|
4364
|
+
return Qi({
|
|
4357
4365
|
id: n,
|
|
4358
4366
|
canTrack: e
|
|
4359
4367
|
}), n;
|
|
4360
4368
|
}
|
|
4361
|
-
},
|
|
4369
|
+
}, Zi = () => Pr(), Qi = ({
|
|
4362
4370
|
id: e,
|
|
4363
4371
|
canTrack: t
|
|
4364
4372
|
}) => Sr({
|
|
4365
4373
|
name: Nr,
|
|
4366
4374
|
value: e,
|
|
4367
4375
|
canTrack: t
|
|
4368
|
-
}),
|
|
4376
|
+
}), Br = () => G() && typeof localStorage < "u" ? localStorage : void 0, ea = ({
|
|
4369
4377
|
key: e,
|
|
4370
4378
|
canTrack: t
|
|
4371
4379
|
}) => {
|
|
4372
4380
|
var n;
|
|
4373
4381
|
try {
|
|
4374
|
-
return t ? (n =
|
|
4382
|
+
return t ? (n = Br()) == null ? void 0 : n.getItem(e) : void 0;
|
|
4375
4383
|
} catch (r) {
|
|
4376
4384
|
console.debug("[LocalStorage] GET error: ", r);
|
|
4377
4385
|
return;
|
|
@@ -4383,36 +4391,36 @@ const Nr = "builderSessionId", qo = async ({
|
|
|
4383
4391
|
}) => {
|
|
4384
4392
|
var r;
|
|
4385
4393
|
try {
|
|
4386
|
-
t && ((r =
|
|
4387
|
-
} catch (
|
|
4388
|
-
console.debug("[LocalStorage] SET error: ",
|
|
4394
|
+
t && ((r = Br()) == null || r.setItem(e, n));
|
|
4395
|
+
} catch (o) {
|
|
4396
|
+
console.debug("[LocalStorage] SET error: ", o);
|
|
4389
4397
|
}
|
|
4390
|
-
},
|
|
4398
|
+
}, Mr = "builderVisitorId", na = ({
|
|
4391
4399
|
canTrack: e
|
|
4392
4400
|
}) => {
|
|
4393
4401
|
if (!e)
|
|
4394
4402
|
return;
|
|
4395
4403
|
const t = ea({
|
|
4396
|
-
key:
|
|
4404
|
+
key: Mr,
|
|
4397
4405
|
canTrack: e
|
|
4398
4406
|
});
|
|
4399
4407
|
if (pe(t))
|
|
4400
4408
|
return t;
|
|
4401
4409
|
{
|
|
4402
4410
|
const n = ra();
|
|
4403
|
-
return
|
|
4411
|
+
return oa({
|
|
4404
4412
|
id: n,
|
|
4405
4413
|
canTrack: e
|
|
4406
4414
|
}), n;
|
|
4407
4415
|
}
|
|
4408
|
-
}, ra = () => Pr(),
|
|
4416
|
+
}, ra = () => Pr(), oa = ({
|
|
4409
4417
|
id: e,
|
|
4410
4418
|
canTrack: t
|
|
4411
4419
|
}) => ta({
|
|
4412
|
-
key:
|
|
4420
|
+
key: Mr,
|
|
4413
4421
|
value: e,
|
|
4414
4422
|
canTrack: t
|
|
4415
|
-
}),
|
|
4423
|
+
}), ia = async ({
|
|
4416
4424
|
canTrack: e
|
|
4417
4425
|
}) => {
|
|
4418
4426
|
if (!e)
|
|
@@ -4420,7 +4428,7 @@ const Nr = "builderSessionId", qo = async ({
|
|
|
4420
4428
|
visitorId: void 0,
|
|
4421
4429
|
sessionId: void 0
|
|
4422
4430
|
};
|
|
4423
|
-
const t = await
|
|
4431
|
+
const t = await qi({
|
|
4424
4432
|
canTrack: e
|
|
4425
4433
|
}), n = na({
|
|
4426
4434
|
canTrack: e
|
|
@@ -4434,16 +4442,16 @@ const Nr = "builderSessionId", qo = async ({
|
|
|
4434
4442
|
canTrack: t,
|
|
4435
4443
|
apiKey: n,
|
|
4436
4444
|
metadata: r,
|
|
4437
|
-
...
|
|
4445
|
+
...o
|
|
4438
4446
|
}) => ({
|
|
4439
4447
|
type: e,
|
|
4440
4448
|
data: {
|
|
4441
|
-
...
|
|
4449
|
+
...o,
|
|
4442
4450
|
metadata: {
|
|
4443
4451
|
url: location.href,
|
|
4444
4452
|
...r
|
|
4445
4453
|
},
|
|
4446
|
-
...await
|
|
4454
|
+
...await ia({
|
|
4447
4455
|
canTrack: t
|
|
4448
4456
|
}),
|
|
4449
4457
|
userAttributes: cr(),
|
|
@@ -4455,7 +4463,7 @@ async function sa(e) {
|
|
|
4455
4463
|
q.error("Missing API key for track call. Please provide your API key.");
|
|
4456
4464
|
return;
|
|
4457
4465
|
}
|
|
4458
|
-
if (e.canTrack && !Xt() && (G() ||
|
|
4466
|
+
if (e.canTrack && !Xt() && (G() || be === "reactNative"))
|
|
4459
4467
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
4460
4468
|
method: "POST",
|
|
4461
4469
|
body: JSON.stringify({
|
|
@@ -4490,13 +4498,13 @@ const la = (e, t, n = !0) => {
|
|
|
4490
4498
|
}, ca = (e) => la(e, (t) => {
|
|
4491
4499
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4492
4500
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4493
|
-
}),
|
|
4501
|
+
}), or = ({
|
|
4494
4502
|
event: e,
|
|
4495
4503
|
target: t
|
|
4496
4504
|
}) => {
|
|
4497
|
-
const n = t.getBoundingClientRect(), r = e.clientX - n.left,
|
|
4505
|
+
const n = t.getBoundingClientRect(), r = e.clientX - n.left, o = e.clientY - n.top, i = rr(r / n.width), s = rr(o / n.height);
|
|
4498
4506
|
return {
|
|
4499
|
-
x:
|
|
4507
|
+
x: i,
|
|
4500
4508
|
y: s
|
|
4501
4509
|
};
|
|
4502
4510
|
}, Na = (e) => {
|
|
@@ -4504,21 +4512,21 @@ const la = (e, t, n = !0) => {
|
|
|
4504
4512
|
return {
|
|
4505
4513
|
targetBuilderElement: r || void 0,
|
|
4506
4514
|
metadata: {
|
|
4507
|
-
targetOffset: t ?
|
|
4515
|
+
targetOffset: t ? or({
|
|
4508
4516
|
event: e,
|
|
4509
4517
|
target: t
|
|
4510
4518
|
}) : void 0,
|
|
4511
|
-
builderTargetOffset: n ?
|
|
4519
|
+
builderTargetOffset: n ? or({
|
|
4512
4520
|
event: e,
|
|
4513
4521
|
target: n
|
|
4514
4522
|
}) : void 0,
|
|
4515
4523
|
builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
|
|
4516
4524
|
}
|
|
4517
4525
|
};
|
|
4518
|
-
}, ua = "0.
|
|
4526
|
+
}, ua = "0.10.0", ir = {};
|
|
4519
4527
|
function fa(e, t) {
|
|
4520
|
-
let n =
|
|
4521
|
-
if (n || (n =
|
|
4528
|
+
let n = ir[e];
|
|
4529
|
+
if (n || (n = ir[e] = []), n.push(t), G()) {
|
|
4522
4530
|
const r = {
|
|
4523
4531
|
type: "builder.register",
|
|
4524
4532
|
data: {
|
|
@@ -4528,12 +4536,12 @@ function fa(e, t) {
|
|
|
4528
4536
|
};
|
|
4529
4537
|
try {
|
|
4530
4538
|
parent.postMessage(r, "*"), parent !== window && window.postMessage(r, "*");
|
|
4531
|
-
} catch (
|
|
4532
|
-
console.debug("Could not postmessage",
|
|
4539
|
+
} catch (o) {
|
|
4540
|
+
console.debug("Could not postmessage", o);
|
|
4533
4541
|
}
|
|
4534
4542
|
}
|
|
4535
4543
|
}
|
|
4536
|
-
const
|
|
4544
|
+
const Ba = () => {
|
|
4537
4545
|
fa("insertMenu", {
|
|
4538
4546
|
name: "_default",
|
|
4539
4547
|
default: !0,
|
|
@@ -4557,12 +4565,12 @@ const Ma = () => {
|
|
|
4557
4565
|
});
|
|
4558
4566
|
};
|
|
4559
4567
|
let ar = !1;
|
|
4560
|
-
const
|
|
4568
|
+
const Ma = (e = {}) => {
|
|
4561
4569
|
var t, n;
|
|
4562
4570
|
ar || (ar = !0, G() && ((t = window.parent) == null || t.postMessage({
|
|
4563
4571
|
type: "builder.sdkInfo",
|
|
4564
4572
|
data: {
|
|
4565
|
-
target:
|
|
4573
|
+
target: be,
|
|
4566
4574
|
version: ua,
|
|
4567
4575
|
supportsPatchUpdates: !1,
|
|
4568
4576
|
// Supports builder-model="..." attribute which is needed to
|
|
@@ -4578,33 +4586,33 @@ const Ua = (e = {}) => {
|
|
|
4578
4586
|
}, "*"), window.addEventListener("message", ({
|
|
4579
4587
|
data: r
|
|
4580
4588
|
}) => {
|
|
4581
|
-
var
|
|
4589
|
+
var o, i;
|
|
4582
4590
|
if (r != null && r.type)
|
|
4583
4591
|
switch (r.type) {
|
|
4584
4592
|
case "builder.evaluate": {
|
|
4585
4593
|
const s = r.data.text, u = r.data.arguments || [], d = r.data.id, E = new Function(s);
|
|
4586
|
-
let k,
|
|
4594
|
+
let k, w = null;
|
|
4587
4595
|
try {
|
|
4588
4596
|
k = E.apply(null, u);
|
|
4589
|
-
} catch (
|
|
4590
|
-
|
|
4597
|
+
} catch (B) {
|
|
4598
|
+
w = B;
|
|
4591
4599
|
}
|
|
4592
|
-
|
|
4600
|
+
w ? (o = window.parent) == null || o.postMessage({
|
|
4593
4601
|
type: "builder.evaluateError",
|
|
4594
4602
|
data: {
|
|
4595
4603
|
id: d,
|
|
4596
|
-
error:
|
|
4604
|
+
error: w.message
|
|
4597
4605
|
}
|
|
4598
|
-
}, "*") : k && typeof k.then == "function" ? k.then((
|
|
4606
|
+
}, "*") : k && typeof k.then == "function" ? k.then((B) => {
|
|
4599
4607
|
var O;
|
|
4600
4608
|
(O = window.parent) == null || O.postMessage({
|
|
4601
4609
|
type: "builder.evaluateResult",
|
|
4602
4610
|
data: {
|
|
4603
4611
|
id: d,
|
|
4604
|
-
result:
|
|
4612
|
+
result: B
|
|
4605
4613
|
}
|
|
4606
4614
|
}, "*");
|
|
4607
|
-
}).catch(console.error) : (
|
|
4615
|
+
}).catch(console.error) : (i = window.parent) == null || i.postMessage({
|
|
4608
4616
|
type: "builder.evaluateResult",
|
|
4609
4617
|
data: {
|
|
4610
4618
|
result: k,
|
|
@@ -4616,10 +4624,10 @@ const Ua = (e = {}) => {
|
|
|
4616
4624
|
}
|
|
4617
4625
|
})));
|
|
4618
4626
|
}, pa = (e) => {
|
|
4619
|
-
var
|
|
4620
|
-
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((
|
|
4621
|
-
let
|
|
4622
|
-
if (r && t && n && (
|
|
4627
|
+
var i;
|
|
4628
|
+
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4629
|
+
let o = "";
|
|
4630
|
+
if (r && t && n && (o += `
|
|
4623
4631
|
@font-face {
|
|
4624
4632
|
font-family: "${t}";
|
|
4625
4633
|
src: local("${n}"), url('${r}') format('woff2');
|
|
@@ -4631,7 +4639,7 @@ font-weight: 400;
|
|
|
4631
4639
|
if (!(String(Number(s)) === s))
|
|
4632
4640
|
continue;
|
|
4633
4641
|
const d = e.files[s];
|
|
4634
|
-
d && d !== r && (
|
|
4642
|
+
d && d !== r && (o += `
|
|
4635
4643
|
@font-face {
|
|
4636
4644
|
font-family: "${t}";
|
|
4637
4645
|
src: url('${d}') format('woff2');
|
|
@@ -4640,7 +4648,7 @@ font-weight: ${s};
|
|
|
4640
4648
|
}
|
|
4641
4649
|
`.trim());
|
|
4642
4650
|
}
|
|
4643
|
-
return
|
|
4651
|
+
return o;
|
|
4644
4652
|
}, da = ({
|
|
4645
4653
|
customFonts: e
|
|
4646
4654
|
}) => {
|
|
@@ -4680,13 +4688,13 @@ const ga = ({
|
|
|
4680
4688
|
data: t,
|
|
4681
4689
|
locale: n
|
|
4682
4690
|
}) => {
|
|
4683
|
-
var
|
|
4684
|
-
const r = {},
|
|
4691
|
+
var i, s, u;
|
|
4692
|
+
const r = {}, o = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
|
|
4685
4693
|
return (u = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || u.forEach((d) => {
|
|
4686
4694
|
d.name && d.defaultValue !== void 0 && (r[d.name] = d.defaultValue);
|
|
4687
4695
|
}), {
|
|
4688
4696
|
...r,
|
|
4689
|
-
...
|
|
4697
|
+
...o,
|
|
4690
4698
|
...t,
|
|
4691
4699
|
...n ? {
|
|
4692
4700
|
locale: n
|
|
@@ -4704,12 +4712,12 @@ const ga = ({
|
|
|
4704
4712
|
meta: e == null ? void 0 : e.meta
|
|
4705
4713
|
} : void 0;
|
|
4706
4714
|
function sr(e) {
|
|
4707
|
-
var
|
|
4708
|
-
const t =
|
|
4715
|
+
var o, i, s, u, d, E, k, w, B;
|
|
4716
|
+
const t = Ui({
|
|
4709
4717
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4710
|
-
variationId: (
|
|
4718
|
+
variationId: (o = e.content) == null ? void 0 : o.testVariationId,
|
|
4711
4719
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4712
|
-
contentId: (
|
|
4720
|
+
contentId: (i = e.content) == null ? void 0 : i.id
|
|
4713
4721
|
}), n = [
|
|
4714
4722
|
...Qn(),
|
|
4715
4723
|
// While this `components` object is deprecated, we must maintain support for it.
|
|
@@ -4720,11 +4728,11 @@ function sr(e) {
|
|
|
4720
4728
|
...er,
|
|
4721
4729
|
...e.customComponents || []
|
|
4722
4730
|
].reduce(
|
|
4723
|
-
(O, { component: S, ...
|
|
4731
|
+
(O, { component: S, ...b }) => ({
|
|
4724
4732
|
...O,
|
|
4725
|
-
[
|
|
4733
|
+
[b.name]: {
|
|
4726
4734
|
component: S,
|
|
4727
|
-
...Kt(
|
|
4735
|
+
...Kt(b)
|
|
4728
4736
|
}
|
|
4729
4737
|
}),
|
|
4730
4738
|
{}
|
|
@@ -4753,16 +4761,18 @@ function sr(e) {
|
|
|
4753
4761
|
...er,
|
|
4754
4762
|
...e.customComponents || []
|
|
4755
4763
|
].reduce(
|
|
4756
|
-
(O, { component: S, ...
|
|
4764
|
+
(O, { component: S, ...b }) => ({
|
|
4757
4765
|
...O,
|
|
4758
|
-
[
|
|
4766
|
+
[b.name]: Kt(b)
|
|
4759
4767
|
}),
|
|
4760
4768
|
{}
|
|
4761
4769
|
),
|
|
4762
|
-
inheritedStyles: {}
|
|
4770
|
+
inheritedStyles: {},
|
|
4771
|
+
BlocksWrapper: e.blocksWrapper || "div",
|
|
4772
|
+
BlocksWrapperProps: e.blocksWrapperProps || {}
|
|
4763
4773
|
};
|
|
4764
4774
|
return /* @__PURE__ */ ue(
|
|
4765
|
-
|
|
4775
|
+
fo,
|
|
4766
4776
|
{
|
|
4767
4777
|
content: e.content,
|
|
4768
4778
|
model: e.model,
|
|
@@ -4774,6 +4784,8 @@ function sr(e) {
|
|
|
4774
4784
|
enrich: e.enrich,
|
|
4775
4785
|
showContent: e.showContent,
|
|
4776
4786
|
builderContextSignal: r,
|
|
4787
|
+
contentWrapper: e.contentWrapper,
|
|
4788
|
+
contentWrapperProps: e.contentWrapperProps,
|
|
4777
4789
|
children: [
|
|
4778
4790
|
e.isSsrAbTest ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(Gt, { scriptStr: t }) }) : null,
|
|
4779
4791
|
/* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(
|
|
@@ -4787,7 +4799,7 @@ function sr(e) {
|
|
|
4787
4799
|
/* @__PURE__ */ C(
|
|
4788
4800
|
ln,
|
|
4789
4801
|
{
|
|
4790
|
-
blocks: (
|
|
4802
|
+
blocks: (B = (w = r.content) == null ? void 0 : w.data) == null ? void 0 : B.blocks,
|
|
4791
4803
|
context: r,
|
|
4792
4804
|
registeredComponents: n
|
|
4793
4805
|
}
|
|
@@ -4796,14 +4808,14 @@ function sr(e) {
|
|
|
4796
4808
|
}
|
|
4797
4809
|
);
|
|
4798
4810
|
}
|
|
4799
|
-
function
|
|
4800
|
-
var
|
|
4801
|
-
const t =
|
|
4811
|
+
function Ur(e) {
|
|
4812
|
+
var i, s;
|
|
4813
|
+
const t = Pi({
|
|
4802
4814
|
canTrack: Ht(e.canTrack),
|
|
4803
4815
|
content: e.content
|
|
4804
4816
|
}), n = function() {
|
|
4805
4817
|
var d;
|
|
4806
|
-
return
|
|
4818
|
+
return Mi(
|
|
4807
4819
|
st(e.content).map((E) => ({
|
|
4808
4820
|
id: E.testVariationId,
|
|
4809
4821
|
testRatio: E.testRatio
|
|
@@ -4812,23 +4824,23 @@ function Br(e) {
|
|
|
4812
4824
|
);
|
|
4813
4825
|
}, r = function() {
|
|
4814
4826
|
return st(e.content).map((d) => `.variant-${d.testVariationId} { display: none; } `).join("");
|
|
4815
|
-
},
|
|
4827
|
+
}, o = function() {
|
|
4816
4828
|
var d;
|
|
4817
4829
|
return t ? {
|
|
4818
4830
|
...e.content,
|
|
4819
4831
|
testVariationId: (d = e.content) == null ? void 0 : d.id
|
|
4820
|
-
} :
|
|
4832
|
+
} : di({
|
|
4821
4833
|
item: e.content,
|
|
4822
4834
|
canTrack: Ht(e.canTrack)
|
|
4823
4835
|
});
|
|
4824
4836
|
};
|
|
4825
4837
|
return /* @__PURE__ */ ue(D, { children: [
|
|
4826
|
-
!e.__isNestedRender &&
|
|
4838
|
+
!e.__isNestedRender && be !== "reactNative" ? /* @__PURE__ */ C(D, { children: /* @__PURE__ */ C(Gt, { scriptStr: Bi() }) }) : null,
|
|
4827
4839
|
t ? /* @__PURE__ */ ue(D, { children: [
|
|
4828
4840
|
/* @__PURE__ */ C(
|
|
4829
4841
|
dt,
|
|
4830
4842
|
{
|
|
4831
|
-
id: `variants-styles-${(
|
|
4843
|
+
id: `variants-styles-${(i = e.content) == null ? void 0 : i.id}`,
|
|
4832
4844
|
styles: r()
|
|
4833
4845
|
}
|
|
4834
4846
|
),
|
|
@@ -4848,7 +4860,11 @@ function Br(e) {
|
|
|
4848
4860
|
locale: e.locale,
|
|
4849
4861
|
includeRefs: e.includeRefs,
|
|
4850
4862
|
enrich: e.enrich,
|
|
4851
|
-
isSsrAbTest: t
|
|
4863
|
+
isSsrAbTest: t,
|
|
4864
|
+
blocksWrapper: e.blocksWrapper,
|
|
4865
|
+
blocksWrapperProps: e.blocksWrapperProps,
|
|
4866
|
+
contentWrapper: e.contentWrapper,
|
|
4867
|
+
contentWrapperProps: e.contentWrapperProps
|
|
4852
4868
|
},
|
|
4853
4869
|
u.testVariationId
|
|
4854
4870
|
))
|
|
@@ -4856,7 +4872,7 @@ function Br(e) {
|
|
|
4856
4872
|
/* @__PURE__ */ C(
|
|
4857
4873
|
sr,
|
|
4858
4874
|
{
|
|
4859
|
-
content:
|
|
4875
|
+
content: o(),
|
|
4860
4876
|
showContent: !0,
|
|
4861
4877
|
model: e.model,
|
|
4862
4878
|
data: e.data,
|
|
@@ -4868,7 +4884,11 @@ function Br(e) {
|
|
|
4868
4884
|
locale: e.locale,
|
|
4869
4885
|
includeRefs: e.includeRefs,
|
|
4870
4886
|
enrich: e.enrich,
|
|
4871
|
-
isSsrAbTest: t
|
|
4887
|
+
isSsrAbTest: t,
|
|
4888
|
+
blocksWrapper: e.blocksWrapper,
|
|
4889
|
+
blocksWrapperProps: e.blocksWrapperProps,
|
|
4890
|
+
contentWrapper: e.contentWrapper,
|
|
4891
|
+
contentWrapperProps: e.contentWrapperProps
|
|
4872
4892
|
}
|
|
4873
4893
|
)
|
|
4874
4894
|
] });
|
|
@@ -4892,8 +4912,8 @@ const va = async ({
|
|
|
4892
4912
|
q.error("Could not fetch symbol content: ", n);
|
|
4893
4913
|
});
|
|
4894
4914
|
};
|
|
4895
|
-
async function
|
|
4896
|
-
var r,
|
|
4915
|
+
async function ba(e) {
|
|
4916
|
+
var r, o, i, s;
|
|
4897
4917
|
const t = function() {
|
|
4898
4918
|
var d, E;
|
|
4899
4919
|
return [
|
|
@@ -4907,7 +4927,7 @@ async function xa(e) {
|
|
|
4907
4927
|
builderContextValue: e.builderContext
|
|
4908
4928
|
});
|
|
4909
4929
|
return /* @__PURE__ */ C("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ C(
|
|
4910
|
-
|
|
4930
|
+
Ur,
|
|
4911
4931
|
{
|
|
4912
4932
|
__isNestedRender: !0,
|
|
4913
4933
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -4915,16 +4935,16 @@ async function xa(e) {
|
|
|
4915
4935
|
context: e.builderContext.context,
|
|
4916
4936
|
customComponents: Object.values(e.builderComponents),
|
|
4917
4937
|
data: {
|
|
4918
|
-
...(
|
|
4938
|
+
...(o = e.symbol) == null ? void 0 : o.data,
|
|
4919
4939
|
...e.builderContext.localState,
|
|
4920
|
-
...(
|
|
4940
|
+
...(i = n == null ? void 0 : n.data) == null ? void 0 : i.state
|
|
4921
4941
|
},
|
|
4922
4942
|
model: (s = e.symbol) == null ? void 0 : s.model,
|
|
4923
4943
|
content: n
|
|
4924
4944
|
}
|
|
4925
4945
|
) });
|
|
4926
4946
|
}
|
|
4927
|
-
const
|
|
4947
|
+
const Ua = ln, Fa = Ur, lr = {};
|
|
4928
4948
|
function Va(e) {
|
|
4929
4949
|
if (G()) {
|
|
4930
4950
|
Object.assign(lr, e);
|
|
@@ -4936,8 +4956,8 @@ function Va(e) {
|
|
|
4936
4956
|
}
|
|
4937
4957
|
}
|
|
4938
4958
|
const _a = async (e) => {
|
|
4939
|
-
var r,
|
|
4940
|
-
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((
|
|
4959
|
+
var r, o, i;
|
|
4960
|
+
const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
|
|
4941
4961
|
...e,
|
|
4942
4962
|
apiKey: e.apiKey,
|
|
4943
4963
|
model: e.model || "page",
|
|
@@ -4947,7 +4967,7 @@ const _a = async (e) => {
|
|
|
4947
4967
|
urlPath: t
|
|
4948
4968
|
} : {}
|
|
4949
4969
|
},
|
|
4950
|
-
options: Or(e.searchParams || ((
|
|
4970
|
+
options: Or(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
4951
4971
|
};
|
|
4952
4972
|
return {
|
|
4953
4973
|
apiKey: n.apiKey,
|
|
@@ -4958,12 +4978,12 @@ const _a = async (e) => {
|
|
|
4958
4978
|
export {
|
|
4959
4979
|
Or as A,
|
|
4960
4980
|
ln as B,
|
|
4961
|
-
|
|
4981
|
+
Ur as C,
|
|
4962
4982
|
Pa as D,
|
|
4963
4983
|
_a as E,
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4984
|
+
Ua as R,
|
|
4985
|
+
ba as S,
|
|
4986
|
+
Ii as T,
|
|
4967
4987
|
sa as _,
|
|
4968
4988
|
Ea as a,
|
|
4969
4989
|
Ia as b,
|
|
@@ -4971,7 +4991,7 @@ export {
|
|
|
4971
4991
|
G as d,
|
|
4972
4992
|
Ht as e,
|
|
4973
4993
|
Ra as f,
|
|
4974
|
-
|
|
4994
|
+
qo as g,
|
|
4975
4995
|
an as h,
|
|
4976
4996
|
Xt as i,
|
|
4977
4997
|
Na as j,
|
|
@@ -4979,15 +4999,15 @@ export {
|
|
|
4979
4999
|
q as l,
|
|
4980
5000
|
Aa as m,
|
|
4981
5001
|
fn as n,
|
|
4982
|
-
|
|
4983
|
-
|
|
5002
|
+
Wi as o,
|
|
5003
|
+
Vi as p,
|
|
4984
5004
|
Fa as q,
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
5005
|
+
Ba as r,
|
|
5006
|
+
Ma as s,
|
|
5007
|
+
ti as t,
|
|
4988
5008
|
fa as u,
|
|
4989
5009
|
Va as v,
|
|
4990
|
-
|
|
5010
|
+
Ji as w,
|
|
4991
5011
|
Rr as x,
|
|
4992
5012
|
ja as y,
|
|
4993
5013
|
Oa as z
|