@soma-vertical-web/multi-lib 1.0.26 → 1.0.28
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/{index-C3vJ4G_S.mjs → index-BM8vTUKg.mjs} +703 -748
- package/index-By2TIGCS.js +4 -0
- package/index-CZjoMPpQ.js +4 -0
- package/{index-BhiCzrut.mjs → index-CrmS0qoM.mjs} +890 -838
- package/index.js +17 -17
- package/index.mjs +3841 -3829
- package/index2.js +2 -2
- package/index2.mjs +44 -44
- package/package.json +1 -1
- package/style.css +1 -1
- package/cms/ContentTypes/LPLojas/typing.d.ts +0 -33
- package/contexts/contexts/search/QueryFacets.d.ts +0 -5
- package/contexts/contexts/search/QueryProducts.d.ts +0 -5
- package/contexts/contexts/search/RootTank.d.ts +0 -9
- package/index-4tOP7lCS.js +0 -4
- package/index-67k__dSl.mjs +0 -1908
- package/index-BFX4NpXJ.js +0 -4
- package/index-BlwJMBFA.mjs +0 -1890
- package/index-Bq0pOeo_.js +0 -4
- package/index-ByhWQJ9Z.mjs +0 -1844
- package/index-CkpbvnLx.mjs +0 -1830
- package/index-CpUjW-m9.mjs +0 -1877
- package/index-D0LSqsck.js +0 -4
- package/index-D61YFVi9.mjs +0 -2261
- package/index-DZ1MbO8M.js +0 -4
- package/index-Dj1bg0lu.mjs +0 -1826
- package/index-DvhdPe3b.js +0 -4
- package/index-DyKuIyRP.js +0 -4
- package/index-dtcYsqh-.js +0 -4
- package/index-xWhZ_YcF.js +0 -4
- package/layout/template/LPLojas/Composite/Details/interfaces.d.ts +0 -18
- package/layout/template/LPLojas/Composite/DropDown/interfaces.d.ts +0 -10
- package/layout/template/LPLojas/constant.d.ts +0 -1
- package/layout/template/LPLojas/interfaces.d.ts +0 -18
- package/layout/template/SearchResult/Composite/Products.d.ts +0 -7
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import * as x from "yup";
|
|
2
|
+
import { jsxs as ht, Fragment as kr, jsx as L } from "react/jsx-runtime";
|
|
3
|
+
import { Utils as jr } from "@soma-vertical-web/core-components";
|
|
4
|
+
const Ze = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
4
5
|
style: "currency",
|
|
5
6
|
currency: "BRL",
|
|
6
7
|
minimumFractionDigits: e ? 2 : 0
|
|
7
|
-
}).format(t),
|
|
8
|
+
}).format(t), Xr = ({ valueInCents: t, hasFree: e, freeTaxMessage: r }) => t === 0 ? e ? r : Ze(0) : Ze(t / 100), Wr = (t, e) => {
|
|
8
9
|
const n = (t - e) * 100 / t;
|
|
9
10
|
return Math.floor(n);
|
|
10
|
-
},
|
|
11
|
+
}, Kt = (t, e) => {
|
|
11
12
|
const [r, n] = t.split(e);
|
|
12
13
|
return { name: r.trim(), size: n ? n.trim() : "" };
|
|
13
|
-
},
|
|
14
|
+
}, qr = (t, e) => {
|
|
14
15
|
if (!t)
|
|
15
16
|
return {};
|
|
16
17
|
const [r, n] = t.split(e);
|
|
17
18
|
return { color: r == null ? void 0 : r.trim(), size: n == null ? void 0 : n.trim() };
|
|
18
|
-
},
|
|
19
|
+
}, Vr = (t, e = "tamanho") => {
|
|
19
20
|
if (t.additionalProperty) {
|
|
20
21
|
const [r] = t.additionalProperty;
|
|
21
22
|
return r != null && r.name ? r.name.toLocaleLowerCase() === e ? r.value : t.name : "";
|
|
22
23
|
}
|
|
23
24
|
return t.name;
|
|
24
|
-
},
|
|
25
|
+
}, zr = (t, e) => t.replace(e, "").trim(), Kr = (t) => t.replace(/\//g, ""), Yr = ({ items: t, NAME_SPLIT_SYMBOL: e }) => {
|
|
25
26
|
const r = {
|
|
26
27
|
price: 0,
|
|
27
28
|
listPrice: 0,
|
|
@@ -53,7 +54,7 @@ const Qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
|
53
54
|
const c = {
|
|
54
55
|
name: l.name,
|
|
55
56
|
sku: l.itemId,
|
|
56
|
-
value: ((u = l.Tamanho) == null ? void 0 : u[0]) ??
|
|
57
|
+
value: ((u = l.Tamanho) == null ? void 0 : u[0]) ?? Kt(l.nameComplete ?? l.name, e).size,
|
|
57
58
|
available: !1,
|
|
58
59
|
sellerId: "",
|
|
59
60
|
sellerName: "",
|
|
@@ -70,26 +71,26 @@ const Qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
|
70
71
|
sizes: a,
|
|
71
72
|
allSizesAvailable: o
|
|
72
73
|
};
|
|
73
|
-
},
|
|
74
|
+
}, Qr = (t) => t ? !t.offers.offers.find(({ quantity: e = 0 }) => e > 0) : !1, Jr = (t, e) => {
|
|
74
75
|
const r = t.find(
|
|
75
76
|
(n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0 && n.seller.identifier === e
|
|
76
77
|
);
|
|
77
78
|
return r || t.find(
|
|
78
79
|
(n) => n.availability.includes("InStock") && n.quantity && n.listPrice > 0
|
|
79
80
|
);
|
|
80
|
-
},
|
|
81
|
+
}, Zr = ({ images: t, TEXTURE_IMAGE: e }) => t.find((r) => e.includes(r.imageLabel)) ?? t[0], en = (t, e) => {
|
|
81
82
|
const r = /\/ids\/(\d+)\//, n = t.match(r);
|
|
82
83
|
return n ? t.replace(
|
|
83
84
|
`/${n[1]}/`,
|
|
84
85
|
`/${n[1]}-${e.width}-${e.height}/`
|
|
85
86
|
) : t;
|
|
86
|
-
},
|
|
87
|
+
}, tn = (t, e) => {
|
|
87
88
|
const r = /\/ids\/(\d+)-(\d+)-(\d+)\//, n = t.match(r);
|
|
88
89
|
return n ? t.replace(
|
|
89
90
|
`/${n[1]}-${n[2]}-${n[3]}/`,
|
|
90
91
|
`/${n[1]}-${e.width}-${e.height}/`
|
|
91
92
|
) : t;
|
|
92
|
-
},
|
|
93
|
+
}, rn = ({
|
|
93
94
|
images: t,
|
|
94
95
|
label: e
|
|
95
96
|
}) => {
|
|
@@ -97,35 +98,35 @@ const Qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
|
97
98
|
(n) => n.keywords === e.first || n.keywords === e.second || n.alternateName === e.first || n.alternateName === e.second
|
|
98
99
|
);
|
|
99
100
|
return r.length === 0 ? t.slice(0, 2) : r;
|
|
100
|
-
},
|
|
101
|
+
}, nn = (t) => {
|
|
101
102
|
const [e, r] = t.split("/").map(Number);
|
|
102
103
|
if (Number.isNaN(e) || Number.isNaN(r))
|
|
103
104
|
throw new Error("[ERROR ASPECT RATIO IMAGE]: Invalid aspect ratio format");
|
|
104
105
|
return r / e;
|
|
105
|
-
},
|
|
106
|
+
}, on = (t, e, r) => {
|
|
106
107
|
e && (t ? (e.getAttribute("src") || (e.src = r ?? ""), e.play()) : e.pause());
|
|
107
|
-
},
|
|
108
|
+
}, wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
108
109
|
__proto__: null,
|
|
109
|
-
disableSKU:
|
|
110
|
-
formatPriceToCurrency:
|
|
111
|
-
freightParsePrice:
|
|
112
|
-
getAspectRatio:
|
|
113
|
-
getColorAndSizeFromSkuName:
|
|
114
|
-
getDiscountPercent:
|
|
115
|
-
getFirstImages:
|
|
116
|
-
getProductNameWithoutSku:
|
|
117
|
-
getSKUName:
|
|
118
|
-
getSkuInfos:
|
|
119
|
-
getThumbImage:
|
|
120
|
-
getValidOffer:
|
|
121
|
-
removeSlashes:
|
|
122
|
-
resizingImg:
|
|
123
|
-
setVideoPlay:
|
|
124
|
-
splitNameAndSizeFromFullName:
|
|
125
|
-
updatedResizedImg:
|
|
126
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
110
|
+
disableSKU: Qr,
|
|
111
|
+
formatPriceToCurrency: Ze,
|
|
112
|
+
freightParsePrice: Xr,
|
|
113
|
+
getAspectRatio: nn,
|
|
114
|
+
getColorAndSizeFromSkuName: qr,
|
|
115
|
+
getDiscountPercent: Wr,
|
|
116
|
+
getFirstImages: rn,
|
|
117
|
+
getProductNameWithoutSku: zr,
|
|
118
|
+
getSKUName: Vr,
|
|
119
|
+
getSkuInfos: Yr,
|
|
120
|
+
getThumbImage: Zr,
|
|
121
|
+
getValidOffer: Jr,
|
|
122
|
+
removeSlashes: Kr,
|
|
123
|
+
resizingImg: en,
|
|
124
|
+
setVideoPlay: on,
|
|
125
|
+
splitNameAndSizeFromFullName: Kt,
|
|
126
|
+
updatedResizedImg: tn
|
|
127
|
+
}, Symbol.toStringTag, { value: "Module" })), gt = "fuzzy", mt = "operator", an = (t) => ({
|
|
127
128
|
isDepartment: t != null && t.length ? t[0].key === "category-1" : !1
|
|
128
|
-
}),
|
|
129
|
+
}), Ci = (t, e) => {
|
|
129
130
|
const r = decodeURIComponent(e ?? "").slice(1).split("/");
|
|
130
131
|
return t.map((n) => {
|
|
131
132
|
if (n.key === "category-2" && n.__typename === "FacetBoolean") {
|
|
@@ -141,7 +142,7 @@ const Qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
|
141
142
|
}
|
|
142
143
|
return n;
|
|
143
144
|
});
|
|
144
|
-
},
|
|
145
|
+
}, Yt = (t, e) => e ? t === "category-1" : !1, ln = (t) => t.key === "operator" && (t.value === "and" || t.value === "or"), cn = (t) => t.type === "TEXT", un = (t) => t.key === "fuzzy" && (t.value === "0" || t.value === "1" || t.value === "auto"), fn = (t) => {
|
|
145
146
|
const { key: e, name: r, values: n } = t;
|
|
146
147
|
return {
|
|
147
148
|
__typename: "FacetBoolean",
|
|
@@ -149,54 +150,54 @@ const Qe = (t, e = !0) => Intl.NumberFormat("pt-BR", {
|
|
|
149
150
|
label: r,
|
|
150
151
|
values: n.slice().sort((o, a) => o.name.localeCompare(a.name))
|
|
151
152
|
};
|
|
152
|
-
},
|
|
153
|
+
}, sn = ({ key: t, values: e }) => ({
|
|
153
154
|
__typename: "FacetRange",
|
|
154
155
|
key: t,
|
|
155
156
|
values: e
|
|
156
|
-
}),
|
|
157
|
+
}), Ni = (t, e, r) => {
|
|
157
158
|
if (!(t instanceof Object) || !("facets" in t))
|
|
158
159
|
return [];
|
|
159
160
|
const { facets: n = [] } = t, o = e != null && e.length ? e[0].key === "category-1" : !1;
|
|
160
161
|
return n.filter(
|
|
161
|
-
(i) => !r || !
|
|
162
|
+
(i) => !r || !Yt(i.key, o)
|
|
162
163
|
).map(
|
|
163
|
-
(i) =>
|
|
164
|
+
(i) => cn(i) ? fn(i) : sn(i)
|
|
164
165
|
);
|
|
165
|
-
},
|
|
166
|
-
const r = t.find(({ key: o }) => o ===
|
|
167
|
-
r &&
|
|
168
|
-
},
|
|
166
|
+
}, Di = (t, e) => {
|
|
167
|
+
const r = t.find(({ key: o }) => o === gt) ?? null, n = t.find(({ key: o }) => o === mt) ?? null;
|
|
168
|
+
r && un(r) && e.append(gt, r.value), n && ln(n) && e.append(mt, n.value);
|
|
169
|
+
}, pn = (t) => t.map((e) => {
|
|
169
170
|
const [r, n] = e.split("/");
|
|
170
171
|
return { key: r, value: n };
|
|
171
|
-
}),
|
|
172
|
+
}), $i = (t, e) => {
|
|
172
173
|
const r = decodeURIComponent(e ?? "").slice(1).split("/"), n = t.filter(({ value: a }) => !r.includes(decodeURIComponent(a))).map((a) => ({
|
|
173
174
|
...a,
|
|
174
175
|
value: decodeURIComponent(a.value)
|
|
175
|
-
})), { isDepartment: o } =
|
|
176
|
-
return n == null ? void 0 : n.filter((a) => !
|
|
177
|
-
},
|
|
176
|
+
})), { isDepartment: o } = an(n);
|
|
177
|
+
return n == null ? void 0 : n.filter((a) => !Yt(a.key, o));
|
|
178
|
+
}, Fi = ({ pathname: t, searchParams: e }, r) => {
|
|
178
179
|
const n = e.get("sort") ?? "", o = e.get("query") ?? null, a = parseInt(e.get("page") ?? "1", 10);
|
|
179
180
|
return {
|
|
180
181
|
sort: n,
|
|
181
|
-
facets:
|
|
182
|
+
facets: pn(r),
|
|
182
183
|
term: o,
|
|
183
184
|
base: o ? "" : t,
|
|
184
185
|
page: a
|
|
185
186
|
};
|
|
186
|
-
},
|
|
187
|
+
}, xi = (t) => {
|
|
187
188
|
const e = new URLSearchParams();
|
|
188
189
|
return Object.entries(t).forEach(([r, n]) => {
|
|
189
190
|
Array.isArray(n) ? n.forEach((o) => e.append(r, o)) : n !== void 0 && e.append(r, n);
|
|
190
191
|
}), e;
|
|
191
|
-
},
|
|
192
|
+
}, Li = (t, e, r = 24, n = 1, o) => {
|
|
192
193
|
const a = `/search?query=${e ?? ""}&count=${r}&page=${n}${o ? `&sort=${o.replace("_", ":")}` : ""}`;
|
|
193
194
|
t.push(a);
|
|
194
195
|
};
|
|
195
|
-
var
|
|
196
|
-
function
|
|
196
|
+
var Et = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
197
|
+
function yn(t) {
|
|
197
198
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
198
199
|
}
|
|
199
|
-
function
|
|
200
|
+
function dn(t) {
|
|
200
201
|
if (t.__esModule) return t;
|
|
201
202
|
var e = t.default;
|
|
202
203
|
if (typeof e == "function") {
|
|
@@ -215,7 +216,7 @@ function fn(t) {
|
|
|
215
216
|
});
|
|
216
217
|
}), r;
|
|
217
218
|
}
|
|
218
|
-
var
|
|
219
|
+
var vn = {};
|
|
219
220
|
(function(t) {
|
|
220
221
|
Object.defineProperty(t, "__esModule", {
|
|
221
222
|
value: !0
|
|
@@ -228,8 +229,8 @@ var pn = {};
|
|
|
228
229
|
function e(r) {
|
|
229
230
|
return r.replace(/\/$/, "") || "/";
|
|
230
231
|
}
|
|
231
|
-
})(
|
|
232
|
-
var
|
|
232
|
+
})(vn);
|
|
233
|
+
var it = {};
|
|
233
234
|
(function(t) {
|
|
234
235
|
Object.defineProperty(t, "__esModule", {
|
|
235
236
|
value: !0
|
|
@@ -251,8 +252,8 @@ var ot = {};
|
|
|
251
252
|
hash: ""
|
|
252
253
|
};
|
|
253
254
|
}
|
|
254
|
-
})(
|
|
255
|
-
var
|
|
255
|
+
})(it);
|
|
256
|
+
var Qt = {};
|
|
256
257
|
(function(t) {
|
|
257
258
|
Object.defineProperty(t, "__esModule", {
|
|
258
259
|
value: !0
|
|
@@ -262,23 +263,23 @@ var Vt = {};
|
|
|
262
263
|
return r;
|
|
263
264
|
}
|
|
264
265
|
});
|
|
265
|
-
const e =
|
|
266
|
+
const e = it;
|
|
266
267
|
function r(n, o) {
|
|
267
268
|
if (typeof n != "string")
|
|
268
269
|
return !1;
|
|
269
270
|
const { pathname: a } = (0, e.parsePath)(n);
|
|
270
271
|
return a === o || a.startsWith(o + "/");
|
|
271
272
|
}
|
|
272
|
-
})(
|
|
273
|
-
var
|
|
273
|
+
})(Qt);
|
|
274
|
+
var hn = {};
|
|
274
275
|
(function(t) {
|
|
275
276
|
Object.defineProperty(t, "__esModule", {
|
|
276
277
|
value: !0
|
|
277
278
|
});
|
|
278
|
-
function e(
|
|
279
|
-
for (var
|
|
279
|
+
function e(Hr, dt) {
|
|
280
|
+
for (var vt in dt) Object.defineProperty(Hr, vt, {
|
|
280
281
|
enumerable: !0,
|
|
281
|
-
get:
|
|
282
|
+
get: dt[vt]
|
|
282
283
|
});
|
|
283
284
|
}
|
|
284
285
|
e(t, {
|
|
@@ -286,61 +287,61 @@ var yn = {};
|
|
|
286
287
|
return c;
|
|
287
288
|
},
|
|
288
289
|
APP_DIR_ALIAS: function() {
|
|
289
|
-
return
|
|
290
|
+
return K;
|
|
290
291
|
},
|
|
291
292
|
CACHE_ONE_YEAR: function() {
|
|
292
|
-
return
|
|
293
|
+
return I;
|
|
293
294
|
},
|
|
294
295
|
DOT_NEXT_ALIAS: function() {
|
|
295
|
-
return
|
|
296
|
+
return F;
|
|
296
297
|
},
|
|
297
298
|
ESLINT_DEFAULT_DIRS: function() {
|
|
298
|
-
return
|
|
299
|
+
return Mr;
|
|
299
300
|
},
|
|
300
301
|
GSP_NO_RETURNED_VALUE: function() {
|
|
301
|
-
return
|
|
302
|
+
return Nr;
|
|
302
303
|
},
|
|
303
304
|
GSSP_COMPONENT_MEMBER_ERROR: function() {
|
|
304
|
-
return
|
|
305
|
+
return Fr;
|
|
305
306
|
},
|
|
306
307
|
GSSP_NO_RETURNED_VALUE: function() {
|
|
307
|
-
return
|
|
308
|
+
return Dr;
|
|
308
309
|
},
|
|
309
310
|
INSTRUMENTATION_HOOK_FILENAME: function() {
|
|
310
|
-
return
|
|
311
|
+
return U;
|
|
311
312
|
},
|
|
312
313
|
MIDDLEWARE_FILENAME: function() {
|
|
313
|
-
return
|
|
314
|
+
return T;
|
|
314
315
|
},
|
|
315
316
|
MIDDLEWARE_LOCATION_REGEXP: function() {
|
|
316
|
-
return
|
|
317
|
+
return k;
|
|
317
318
|
},
|
|
318
319
|
NEXT_BODY_SUFFIX: function() {
|
|
319
320
|
return p;
|
|
320
321
|
},
|
|
321
322
|
NEXT_CACHE_IMPLICIT_TAG_ID: function() {
|
|
322
|
-
return
|
|
323
|
+
return h;
|
|
323
324
|
},
|
|
324
325
|
NEXT_CACHE_REVALIDATED_TAGS_HEADER: function() {
|
|
325
326
|
return y;
|
|
326
327
|
},
|
|
327
328
|
NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER: function() {
|
|
328
|
-
return
|
|
329
|
+
return g;
|
|
329
330
|
},
|
|
330
331
|
NEXT_CACHE_SOFT_TAGS_HEADER: function() {
|
|
331
332
|
return d;
|
|
332
333
|
},
|
|
333
334
|
NEXT_CACHE_SOFT_TAG_MAX_LENGTH: function() {
|
|
334
|
-
return
|
|
335
|
+
return b;
|
|
335
336
|
},
|
|
336
337
|
NEXT_CACHE_TAGS_HEADER: function() {
|
|
337
338
|
return s;
|
|
338
339
|
},
|
|
339
340
|
NEXT_CACHE_TAG_MAX_ITEMS: function() {
|
|
340
|
-
return
|
|
341
|
+
return E;
|
|
341
342
|
},
|
|
342
343
|
NEXT_CACHE_TAG_MAX_LENGTH: function() {
|
|
343
|
-
return
|
|
344
|
+
return R;
|
|
344
345
|
},
|
|
345
346
|
NEXT_DATA_SUFFIX: function() {
|
|
346
347
|
return f;
|
|
@@ -355,10 +356,10 @@ var yn = {};
|
|
|
355
356
|
return r;
|
|
356
357
|
},
|
|
357
358
|
NON_STANDARD_NODE_ENV: function() {
|
|
358
|
-
return
|
|
359
|
+
return xr;
|
|
359
360
|
},
|
|
360
361
|
PAGES_DIR_ALIAS: function() {
|
|
361
|
-
return
|
|
362
|
+
return z;
|
|
362
363
|
},
|
|
363
364
|
PRERENDER_REVALIDATE_HEADER: function() {
|
|
364
365
|
return o;
|
|
@@ -367,25 +368,25 @@ var yn = {};
|
|
|
367
368
|
return a;
|
|
368
369
|
},
|
|
369
370
|
PUBLIC_DIR_MIDDLEWARE_CONFLICT: function() {
|
|
370
|
-
return
|
|
371
|
+
return ne;
|
|
371
372
|
},
|
|
372
373
|
ROOT_DIR_ALIAS: function() {
|
|
373
374
|
return w;
|
|
374
375
|
},
|
|
375
376
|
RSC_ACTION_CLIENT_WRAPPER_ALIAS: function() {
|
|
376
|
-
return
|
|
377
|
+
return j;
|
|
377
378
|
},
|
|
378
379
|
RSC_ACTION_ENCRYPTION_ALIAS: function() {
|
|
379
|
-
return
|
|
380
|
+
return O;
|
|
380
381
|
},
|
|
381
382
|
RSC_ACTION_PROXY_ALIAS: function() {
|
|
382
|
-
return
|
|
383
|
+
return C;
|
|
383
384
|
},
|
|
384
385
|
RSC_ACTION_VALIDATE_ALIAS: function() {
|
|
385
|
-
return
|
|
386
|
+
return P;
|
|
386
387
|
},
|
|
387
388
|
RSC_MOD_REF_PROXY_ALIAS: function() {
|
|
388
|
-
return
|
|
389
|
+
return B;
|
|
389
390
|
},
|
|
390
391
|
RSC_PREFETCH_SUFFIX: function() {
|
|
391
392
|
return i;
|
|
@@ -394,47 +395,47 @@ var yn = {};
|
|
|
394
395
|
return l;
|
|
395
396
|
},
|
|
396
397
|
SERVER_PROPS_EXPORT_ERROR: function() {
|
|
397
|
-
return
|
|
398
|
+
return Cr;
|
|
398
399
|
},
|
|
399
400
|
SERVER_PROPS_GET_INIT_PROPS_CONFLICT: function() {
|
|
400
|
-
return
|
|
401
|
+
return ve;
|
|
401
402
|
},
|
|
402
403
|
SERVER_PROPS_SSG_CONFLICT: function() {
|
|
403
|
-
return
|
|
404
|
+
return oe;
|
|
404
405
|
},
|
|
405
406
|
SERVER_RUNTIME: function() {
|
|
406
|
-
return
|
|
407
|
+
return Ur;
|
|
407
408
|
},
|
|
408
409
|
SSG_FALLBACK_EXPORT_ERROR: function() {
|
|
409
|
-
return
|
|
410
|
+
return Lr;
|
|
410
411
|
},
|
|
411
412
|
SSG_GET_INITIAL_PROPS_CONFLICT: function() {
|
|
412
|
-
return
|
|
413
|
+
return Ne;
|
|
413
414
|
},
|
|
414
415
|
STATIC_STATUS_PAGE_GET_INITIAL_PROPS_ERROR: function() {
|
|
415
|
-
return
|
|
416
|
+
return wr;
|
|
416
417
|
},
|
|
417
418
|
UNSTABLE_REVALIDATE_RENAME_ERROR: function() {
|
|
418
|
-
return
|
|
419
|
+
return $r;
|
|
419
420
|
},
|
|
420
421
|
WEBPACK_LAYERS: function() {
|
|
421
|
-
return
|
|
422
|
+
return Br;
|
|
422
423
|
},
|
|
423
424
|
WEBPACK_RESOURCE_QUERIES: function() {
|
|
424
|
-
return
|
|
425
|
+
return Gr;
|
|
425
426
|
}
|
|
426
427
|
});
|
|
427
|
-
const r = "nxtP", n = "nxtI", o = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", i = ".prefetch.rsc", l = ".rsc", c = ".action", f = ".json", u = ".meta", p = ".body", s = "x-next-cache-tags", d = "x-next-cache-soft-tags", y = "x-next-revalidated-tags",
|
|
428
|
+
const r = "nxtP", n = "nxtI", o = "x-prerender-revalidate", a = "x-prerender-revalidate-if-generated", i = ".prefetch.rsc", l = ".rsc", c = ".action", f = ".json", u = ".meta", p = ".body", s = "x-next-cache-tags", d = "x-next-cache-soft-tags", y = "x-next-revalidated-tags", g = "x-next-revalidate-tag-token", E = 128, R = 256, b = 1024, h = "_N_T_", I = 31536e3, T = "middleware", k = `(?:src/)?${T}`, U = "instrumentation", z = "private-next-pages", F = "private-dot-next", w = "private-next-root-dir", K = "private-next-app-dir", B = "private-next-rsc-mod-ref-proxy", P = "private-next-rsc-action-validate", C = "private-next-rsc-server-reference", O = "private-next-rsc-action-encryption", j = "private-next-rsc-action-client-wrapper", ne = "You can not have a '_next' folder inside of your public folder. This conflicts with the internal '/_next' route. https://nextjs.org/docs/messages/public-next-folder-conflict", Ne = "You can not use getInitialProps with getStaticProps. To use SSG, please remove your getInitialProps", ve = "You can not use getInitialProps with getServerSideProps. Please remove getInitialProps.", oe = "You can not use getStaticProps or getStaticPaths with getServerSideProps. To use SSG, please remove getServerSideProps", wr = "can not have getInitialProps/getServerSideProps, https://nextjs.org/docs/messages/404-get-initial-props", Cr = "pages with `getServerSideProps` can not be exported. See more info here: https://nextjs.org/docs/messages/gssp-export", Nr = "Your `getStaticProps` function did not return an object. Did you forget to add a `return`?", Dr = "Your `getServerSideProps` function did not return an object. Did you forget to add a `return`?", $r = "The `unstable_revalidate` property is available for general use.\nPlease use `revalidate` instead.", Fr = "can not be attached to a page's component and must be exported from the page. See more info here: https://nextjs.org/docs/messages/gssp-component-member", xr = 'You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env', Lr = "Pages with `fallback` enabled in `getStaticPaths` can not be exported. See more info here: https://nextjs.org/docs/messages/ssg-fallback-true-export", Mr = [
|
|
428
429
|
"app",
|
|
429
430
|
"pages",
|
|
430
431
|
"components",
|
|
431
432
|
"lib",
|
|
432
433
|
"src"
|
|
433
|
-
],
|
|
434
|
+
], Ur = {
|
|
434
435
|
edge: "edge",
|
|
435
436
|
experimentalEdge: "experimental-edge",
|
|
436
437
|
nodejs: "nodejs"
|
|
437
|
-
},
|
|
438
|
+
}, S = {
|
|
438
439
|
/**
|
|
439
440
|
* The layer for the shared code between the client and server bundles.
|
|
440
441
|
*/
|
|
@@ -479,44 +480,44 @@ var yn = {};
|
|
|
479
480
|
* The layer for the server bundle for App Route handlers.
|
|
480
481
|
*/
|
|
481
482
|
appRouteHandler: "app-route-handler"
|
|
482
|
-
},
|
|
483
|
-
...
|
|
483
|
+
}, Br = {
|
|
484
|
+
...S,
|
|
484
485
|
GROUP: {
|
|
485
486
|
serverOnly: [
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
487
|
+
S.reactServerComponents,
|
|
488
|
+
S.actionBrowser,
|
|
489
|
+
S.appMetadataRoute,
|
|
490
|
+
S.appRouteHandler,
|
|
491
|
+
S.instrument
|
|
491
492
|
],
|
|
492
493
|
clientOnly: [
|
|
493
|
-
|
|
494
|
-
|
|
494
|
+
S.serverSideRendering,
|
|
495
|
+
S.appPagesBrowser
|
|
495
496
|
],
|
|
496
497
|
nonClientServerTarget: [
|
|
497
498
|
// middleware and pages api
|
|
498
|
-
|
|
499
|
-
|
|
499
|
+
S.middleware,
|
|
500
|
+
S.api
|
|
500
501
|
],
|
|
501
502
|
app: [
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
503
|
+
S.reactServerComponents,
|
|
504
|
+
S.actionBrowser,
|
|
505
|
+
S.appMetadataRoute,
|
|
506
|
+
S.appRouteHandler,
|
|
507
|
+
S.serverSideRendering,
|
|
508
|
+
S.appPagesBrowser,
|
|
509
|
+
S.shared,
|
|
510
|
+
S.instrument
|
|
510
511
|
]
|
|
511
512
|
}
|
|
512
|
-
},
|
|
513
|
+
}, Gr = {
|
|
513
514
|
edgeSSREntry: "__next_edge_ssr_entry__",
|
|
514
515
|
metadata: "__next_metadata__",
|
|
515
516
|
metadataRoute: "__next_metadata_route__",
|
|
516
517
|
metadataImageMeta: "__next_metadata_image_meta__"
|
|
517
518
|
};
|
|
518
|
-
})(
|
|
519
|
-
var
|
|
519
|
+
})(hn);
|
|
520
|
+
var gn = {}, Jt = {};
|
|
520
521
|
(function(t) {
|
|
521
522
|
Object.defineProperty(t, "__esModule", {
|
|
522
523
|
value: !0
|
|
@@ -526,14 +527,14 @@ var dn = {}, qt = {};
|
|
|
526
527
|
return r;
|
|
527
528
|
}
|
|
528
529
|
});
|
|
529
|
-
const e =
|
|
530
|
+
const e = it;
|
|
530
531
|
function r(n, o) {
|
|
531
532
|
if (!n.startsWith("/") || !o)
|
|
532
533
|
return n;
|
|
533
534
|
const { pathname: a, query: i, hash: l } = (0, e.parsePath)(n);
|
|
534
535
|
return "" + o + a + i + l;
|
|
535
536
|
}
|
|
536
|
-
})(
|
|
537
|
+
})(Jt);
|
|
537
538
|
(function(t) {
|
|
538
539
|
Object.defineProperty(t, "__esModule", {
|
|
539
540
|
value: !0
|
|
@@ -543,14 +544,14 @@ var dn = {}, qt = {};
|
|
|
543
544
|
return n;
|
|
544
545
|
}
|
|
545
546
|
});
|
|
546
|
-
const e =
|
|
547
|
+
const e = Jt, r = Qt;
|
|
547
548
|
function n(o, a, i, l) {
|
|
548
549
|
if (!a || a === i) return o;
|
|
549
550
|
const c = o.toLowerCase();
|
|
550
551
|
return !l && ((0, r.pathHasPrefix)(c, "/api") || (0, r.pathHasPrefix)(c, "/" + a.toLowerCase())) ? o : (0, e.addPathPrefix)(o, "/" + a);
|
|
551
552
|
}
|
|
552
|
-
})(
|
|
553
|
-
var
|
|
553
|
+
})(gn);
|
|
554
|
+
var mn = {};
|
|
554
555
|
(function(t) {
|
|
555
556
|
Object.defineProperty(t, "__esModule", {
|
|
556
557
|
value: !0
|
|
@@ -568,8 +569,8 @@ var vn = {};
|
|
|
568
569
|
detectedLocale: o
|
|
569
570
|
};
|
|
570
571
|
}
|
|
571
|
-
})(
|
|
572
|
-
var
|
|
572
|
+
})(mn);
|
|
573
|
+
var En = {};
|
|
573
574
|
(function(t) {
|
|
574
575
|
Object.defineProperty(t, "__esModule", {
|
|
575
576
|
value: !0
|
|
@@ -590,74 +591,147 @@ var _n = {};
|
|
|
590
591
|
}
|
|
591
592
|
}
|
|
592
593
|
}
|
|
593
|
-
})(
|
|
594
|
-
const
|
|
594
|
+
})(En);
|
|
595
|
+
const _n = (t = "") => t.charAt(0).toUpperCase() + t.slice(1), _t = (t, e = " ") => !t || typeof t == "string" && t.length === 0 ? t : (Array.isArray(t) ? t : t.split("-")).map(_n).join(e), Sn = ({ canonical: t, seo: e, slug: r }) => {
|
|
596
|
+
const n = Array.isArray(r) ? r.join(", ") : r;
|
|
597
|
+
return {
|
|
598
|
+
id: 0,
|
|
599
|
+
Title: `${Array.isArray(r) ? r.map((a) => _t(a)).join(",") : _t(r)} - ${e.title}`,
|
|
600
|
+
MetaTagDescription: e.description,
|
|
601
|
+
name: n,
|
|
602
|
+
hasChildren: !1,
|
|
603
|
+
url: t,
|
|
604
|
+
children: []
|
|
605
|
+
};
|
|
606
|
+
}, An = ({ canonical: t, category: e, previousImages: r, seo: n }) => ({
|
|
607
|
+
category: String(e == null ? void 0 : e.id),
|
|
608
|
+
title: (e == null ? void 0 : e.Title) ?? n.title,
|
|
609
|
+
description: (e == null ? void 0 : e.MetaTagDescription) ?? n.description,
|
|
610
|
+
alternates: { canonical: t },
|
|
611
|
+
openGraph: {
|
|
612
|
+
type: "website",
|
|
613
|
+
title: (e == null ? void 0 : e.Title) ?? n.title,
|
|
614
|
+
description: (e == null ? void 0 : e.MetaTagDescription) ?? n.description,
|
|
615
|
+
images: Array.isArray(r) ? [...r] : []
|
|
616
|
+
}
|
|
617
|
+
}), Rn = ({ items: t, parent: e, apiUrl: r, find: n }) => {
|
|
618
|
+
const o = t.find(
|
|
619
|
+
(i) => i.url.replace(r, "") === decodeURIComponent(e.toLowerCase())
|
|
620
|
+
);
|
|
621
|
+
return (o == null ? void 0 : o.children.find(
|
|
622
|
+
(i) => i.name.toLowerCase() === decodeURIComponent(String(n))
|
|
623
|
+
)) ?? o;
|
|
624
|
+
}, Pn = (t) => {
|
|
625
|
+
t instanceof Error ? (console.error(`[ERROR CATEGORY INFO]: ${t.message}`), console.error(t.stack)) : console.error("[ERROR CATEGORY INFO]: Unknown error", t);
|
|
626
|
+
}, On = /* @__PURE__ */ new Set([
|
|
627
|
+
"brand",
|
|
628
|
+
"category",
|
|
629
|
+
"department",
|
|
630
|
+
"subcategory",
|
|
631
|
+
"collection",
|
|
632
|
+
"cluster"
|
|
633
|
+
]), bn = (t) => typeof (t == null ? void 0 : t.pageType) == "string" && On.has(t == null ? void 0 : t.pageType.toLowerCase()), In = (t) => ({
|
|
634
|
+
collection: t.Coleção,
|
|
635
|
+
categoryId: t.categoryId,
|
|
636
|
+
current_collection: t["Coleção Atual"],
|
|
637
|
+
items: t.items
|
|
638
|
+
}), Tn = (t, e) => t.reduce((r, n) => {
|
|
639
|
+
if (n.items.filter(
|
|
640
|
+
(i) => i.sellers.find((l) => l.commertialOffer.IsAvailable)
|
|
641
|
+
).length === 0 || (r == null ? void 0 : r.find((i) => (i == null ? void 0 : i.productId) === (n == null ? void 0 : n.productId))) !== void 0)
|
|
642
|
+
return r;
|
|
643
|
+
const a = n.items[0].images.find(
|
|
644
|
+
(i) => e.includes(i.imageLabel)
|
|
645
|
+
);
|
|
646
|
+
return r.push({
|
|
647
|
+
slug: `/${n.linkText}/p`,
|
|
648
|
+
productId: n == null ? void 0 : n.productId,
|
|
649
|
+
textureImage: (a == null ? void 0 : a.imageUrl) ?? "",
|
|
650
|
+
textureAlt: (a == null ? void 0 : a.imageText) ?? ""
|
|
651
|
+
}), r;
|
|
652
|
+
}, []), Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
653
|
+
__proto__: null,
|
|
654
|
+
createEmptySeoCategory: Sn,
|
|
655
|
+
createSeoCategory: An,
|
|
656
|
+
findCategory: Rn,
|
|
657
|
+
formattedSimilars: Tn,
|
|
658
|
+
isCollectionPageType: bn,
|
|
659
|
+
notFindCategoryError: Pn,
|
|
660
|
+
responseAdapter: In
|
|
661
|
+
}, Symbol.toStringTag, { value: "Module" })), he = {
|
|
595
662
|
"responsive-mobile-flex": "_responsive-mobile-flex_1e0ai_1",
|
|
596
663
|
"responsive-desktop-flex": "_responsive-desktop-flex_1e0ai_15",
|
|
597
664
|
"responsive-mobile-block": "_responsive-mobile-block_1e0ai_30",
|
|
598
665
|
"responsive-desktop-block": "_responsive-desktop-block_1e0ai_41"
|
|
599
|
-
},
|
|
600
|
-
"
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
666
|
+
}, Zt = async (t, e = {}) => {
|
|
667
|
+
const { method: r = "GET", body: n, headers: o = {}, priority: a = "auto", cache: i = "default" } = e;
|
|
668
|
+
return fetch(t, {
|
|
669
|
+
method: r,
|
|
670
|
+
headers: {
|
|
671
|
+
...o,
|
|
672
|
+
Accept: "application/json",
|
|
673
|
+
"Content-Type": "application/json"
|
|
674
|
+
},
|
|
675
|
+
priority: a,
|
|
676
|
+
cache: i,
|
|
677
|
+
...n ? { body: JSON.stringify(n) } : {}
|
|
678
|
+
// not body in get
|
|
679
|
+
}).then((l) => l.json()).catch((l) => {
|
|
680
|
+
console.error("[ERROR FETCH VTEX]", l);
|
|
681
|
+
});
|
|
682
|
+
}, ae = /* @__PURE__ */ new Map();
|
|
683
|
+
async function Ui(t, e = {}) {
|
|
684
|
+
var r;
|
|
685
|
+
try {
|
|
686
|
+
const { abort: n = !1 } = e, o = new AbortController();
|
|
687
|
+
n && (ae.has(t) && ((r = ae.get(t)) == null || r.abort(), ae.delete(t)), ae.set(t, o));
|
|
688
|
+
const a = Zt(t, {
|
|
689
|
+
...e,
|
|
690
|
+
...n ? { signal: o.signal } : {}
|
|
691
|
+
});
|
|
692
|
+
return n && ae.delete(t), a;
|
|
693
|
+
} catch (n) {
|
|
694
|
+
if (n.name === "AbortError") {
|
|
695
|
+
console.log(`[REQUEST CANCELLED]: ${t}`);
|
|
696
|
+
return;
|
|
697
|
+
}
|
|
698
|
+
throw console.error(`[ERROR API]: ${n.message}`), n;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
const wn = x.object({
|
|
702
|
+
orderFormId: x.string().required(),
|
|
703
|
+
coupon: x.string().nullable(),
|
|
704
|
+
utmSource: x.string().optional(),
|
|
705
|
+
utmMedium: x.string().optional(),
|
|
706
|
+
utmCampaign: x.string().optional(),
|
|
707
|
+
utmiCampaign: x.string().optional(),
|
|
708
|
+
utmiPart: x.string().optional(),
|
|
709
|
+
utmipage: x.string().optional()
|
|
710
|
+
});
|
|
711
|
+
async function Cn({
|
|
712
|
+
apiUrl: t,
|
|
713
|
+
body: e
|
|
714
|
+
}) {
|
|
715
|
+
if (!e) {
|
|
716
|
+
console.error("[ERROR FETCHING] Body is required");
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
await wn.validate(e);
|
|
720
|
+
const { orderFormId: r, utmiPart: n, coupon: o, ...a } = e, i = `${t}/api/checkout/pub/orderForm/${r}/attachments/marketingData`;
|
|
721
|
+
return Zt(i, {
|
|
722
|
+
method: "POST",
|
|
723
|
+
body: {
|
|
724
|
+
orderFormId: r,
|
|
725
|
+
utmiPart: n ?? r,
|
|
726
|
+
coupon: o ?? null,
|
|
727
|
+
...a
|
|
728
|
+
}
|
|
729
|
+
});
|
|
730
|
+
}
|
|
731
|
+
const Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
732
|
+
__proto__: null,
|
|
733
|
+
postMediaData: Cn
|
|
734
|
+
}, Symbol.toStringTag, { value: "Module" })), Gi = ({
|
|
661
735
|
children: t,
|
|
662
736
|
data: e,
|
|
663
737
|
SectionZone: r,
|
|
@@ -671,49 +745,49 @@ const de = {
|
|
|
671
745
|
var d, y;
|
|
672
746
|
return ((y = (d = s.config) == null ? void 0 : d.responsive) == null ? void 0 : y.deviceType) === "desktop";
|
|
673
747
|
})[0]) == null ? void 0 : p.sections) || [], i = o.slice(0, 1), l = o.slice(1, o.length), c = a.slice(0, 1), f = a.slice(1, a.length);
|
|
674
|
-
return /* @__PURE__ */
|
|
675
|
-
/* @__PURE__ */
|
|
676
|
-
/* @__PURE__ */ L("div", { className:
|
|
677
|
-
/* @__PURE__ */ L("div", { className:
|
|
748
|
+
return /* @__PURE__ */ ht(kr, { children: [
|
|
749
|
+
/* @__PURE__ */ ht("div", { className: n, children: [
|
|
750
|
+
/* @__PURE__ */ L("div", { className: he["responsive-mobile-flex"], children: /* @__PURE__ */ L(r, { data: i ?? [] }) }),
|
|
751
|
+
/* @__PURE__ */ L("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ L(r, { data: c ?? [] }) })
|
|
678
752
|
] }),
|
|
679
753
|
t,
|
|
680
|
-
/* @__PURE__ */ L("div", { className:
|
|
681
|
-
/* @__PURE__ */ L("div", { className:
|
|
682
|
-
/* @__PURE__ */ L(
|
|
754
|
+
/* @__PURE__ */ L("div", { className: he["responsive-mobile-flex"], children: /* @__PURE__ */ L(r, { data: l ?? [] }) }),
|
|
755
|
+
/* @__PURE__ */ L("div", { className: he["responsive-desktop-flex"], children: /* @__PURE__ */ L(r, { data: f ?? [] }) }),
|
|
756
|
+
/* @__PURE__ */ L(jr.Divider, {})
|
|
683
757
|
] });
|
|
684
758
|
};
|
|
685
|
-
var
|
|
686
|
-
const
|
|
759
|
+
var re = TypeError;
|
|
760
|
+
const Nn = {}, Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
687
761
|
__proto__: null,
|
|
688
|
-
default:
|
|
689
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
690
|
-
var
|
|
762
|
+
default: Nn
|
|
763
|
+
}, Symbol.toStringTag, { value: "Module" })), $n = /* @__PURE__ */ dn(Dn);
|
|
764
|
+
var lt = typeof Map == "function" && Map.prototype, De = Object.getOwnPropertyDescriptor && lt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ae = lt && De && typeof De.get == "function" ? De.get : null, St = lt && Map.prototype.forEach, ct = typeof Set == "function" && Set.prototype, $e = Object.getOwnPropertyDescriptor && ct ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Re = ct && $e && typeof $e.get == "function" ? $e.get : null, At = ct && Set.prototype.forEach, Fn = typeof WeakMap == "function" && WeakMap.prototype, le = Fn ? WeakMap.prototype.has : null, xn = typeof WeakSet == "function" && WeakSet.prototype, ce = xn ? WeakSet.prototype.has : null, Ln = typeof WeakRef == "function" && WeakRef.prototype, Rt = Ln ? WeakRef.prototype.deref : null, Mn = Boolean.prototype.valueOf, Un = Object.prototype.toString, Bn = Function.prototype.toString, Gn = String.prototype.match, ut = String.prototype.slice, G = String.prototype.replace, Hn = String.prototype.toUpperCase, Pt = String.prototype.toLowerCase, er = RegExp.prototype.test, Ot = Array.prototype.concat, $ = Array.prototype.join, kn = Array.prototype.slice, bt = Math.floor, et = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Fe = Object.getOwnPropertySymbols, tt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, ee = typeof Symbol == "function" && typeof Symbol.iterator == "object", ue = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === ee || !0) ? Symbol.toStringTag : null, tr = Object.prototype.propertyIsEnumerable, It = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
691
765
|
return t.__proto__;
|
|
692
766
|
} : null);
|
|
693
|
-
function
|
|
694
|
-
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 ||
|
|
767
|
+
function Tt(t, e) {
|
|
768
|
+
if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || er.call(/e/, e))
|
|
695
769
|
return e;
|
|
696
770
|
var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
697
771
|
if (typeof t == "number") {
|
|
698
|
-
var n = t < 0 ? -
|
|
772
|
+
var n = t < 0 ? -bt(-t) : bt(t);
|
|
699
773
|
if (n !== t) {
|
|
700
|
-
var o = String(n), a =
|
|
701
|
-
return
|
|
774
|
+
var o = String(n), a = ut.call(e, o.length + 1);
|
|
775
|
+
return G.call(o, r, "$&_") + "." + G.call(G.call(a, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
702
776
|
}
|
|
703
777
|
}
|
|
704
|
-
return
|
|
778
|
+
return G.call(e, r, "$&_");
|
|
705
779
|
}
|
|
706
|
-
var
|
|
780
|
+
var rt = $n, wt = rt.custom, Ct = or(wt) ? wt : null, rr = {
|
|
707
781
|
__proto__: null,
|
|
708
782
|
double: '"',
|
|
709
783
|
single: "'"
|
|
710
|
-
},
|
|
784
|
+
}, jn = {
|
|
711
785
|
__proto__: null,
|
|
712
786
|
double: /(["\\])/g,
|
|
713
787
|
single: /(['\\])/g
|
|
714
|
-
},
|
|
788
|
+
}, be = function t(e, r, n, o) {
|
|
715
789
|
var a = r || {};
|
|
716
|
-
if (M(a, "quoteStyle") && !M(
|
|
790
|
+
if (M(a, "quoteStyle") && !M(rr, a.quoteStyle))
|
|
717
791
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
718
792
|
if (M(a, "maxStringLength") && (typeof a.maxStringLength == "number" ? a.maxStringLength < 0 && a.maxStringLength !== 1 / 0 : a.maxStringLength !== null))
|
|
719
793
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
@@ -732,168 +806,168 @@ var et = Gn, xt = et.custom, It = Zt(xt) ? xt : null, Qt = {
|
|
|
732
806
|
if (typeof e == "boolean")
|
|
733
807
|
return e ? "true" : "false";
|
|
734
808
|
if (typeof e == "string")
|
|
735
|
-
return
|
|
809
|
+
return ir(e, a);
|
|
736
810
|
if (typeof e == "number") {
|
|
737
811
|
if (e === 0)
|
|
738
812
|
return 1 / 0 / e > 0 ? "0" : "-0";
|
|
739
813
|
var c = String(e);
|
|
740
|
-
return l ?
|
|
814
|
+
return l ? Tt(e, c) : c;
|
|
741
815
|
}
|
|
742
816
|
if (typeof e == "bigint") {
|
|
743
817
|
var f = String(e) + "n";
|
|
744
|
-
return l ?
|
|
818
|
+
return l ? Tt(e, f) : f;
|
|
745
819
|
}
|
|
746
820
|
var u = typeof a.depth > "u" ? 5 : a.depth;
|
|
747
821
|
if (typeof n > "u" && (n = 0), n >= u && u > 0 && typeof e == "object")
|
|
748
|
-
return
|
|
749
|
-
var p =
|
|
822
|
+
return nt(e) ? "[Array]" : "[Object]";
|
|
823
|
+
var p = lo(a, n);
|
|
750
824
|
if (typeof o > "u")
|
|
751
825
|
o = [];
|
|
752
|
-
else if (
|
|
826
|
+
else if (ar(o, e) >= 0)
|
|
753
827
|
return "[Circular]";
|
|
754
|
-
function s(
|
|
755
|
-
if (
|
|
756
|
-
var
|
|
828
|
+
function s(P, C, O) {
|
|
829
|
+
if (C && (o = kn.call(o), o.push(C)), O) {
|
|
830
|
+
var j = {
|
|
757
831
|
depth: a.depth
|
|
758
832
|
};
|
|
759
|
-
return M(a, "quoteStyle") && (
|
|
833
|
+
return M(a, "quoteStyle") && (j.quoteStyle = a.quoteStyle), t(P, j, n + 1, o);
|
|
760
834
|
}
|
|
761
|
-
return t(
|
|
835
|
+
return t(P, a, n + 1, o);
|
|
762
836
|
}
|
|
763
|
-
if (typeof e == "function" && !
|
|
764
|
-
var d =
|
|
765
|
-
return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " +
|
|
837
|
+
if (typeof e == "function" && !Nt(e)) {
|
|
838
|
+
var d = Jn(e), y = ge(e, s);
|
|
839
|
+
return "[Function" + (d ? ": " + d : " (anonymous)") + "]" + (y.length > 0 ? " { " + $.call(y, ", ") + " }" : "");
|
|
766
840
|
}
|
|
767
|
-
if (
|
|
768
|
-
var
|
|
769
|
-
return typeof e == "object" && !
|
|
841
|
+
if (or(e)) {
|
|
842
|
+
var g = ee ? G.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : tt.call(e);
|
|
843
|
+
return typeof e == "object" && !ee ? ie(g) : g;
|
|
770
844
|
}
|
|
771
|
-
if (
|
|
772
|
-
for (var
|
|
773
|
-
|
|
774
|
-
return
|
|
845
|
+
if (oo(e)) {
|
|
846
|
+
for (var E = "<" + Pt.call(String(e.nodeName)), R = e.attributes || [], b = 0; b < R.length; b++)
|
|
847
|
+
E += " " + R[b].name + "=" + nr(Xn(R[b].value), "double", a);
|
|
848
|
+
return E += ">", e.childNodes && e.childNodes.length && (E += "..."), E += "</" + Pt.call(String(e.nodeName)) + ">", E;
|
|
775
849
|
}
|
|
776
|
-
if (
|
|
850
|
+
if (nt(e)) {
|
|
777
851
|
if (e.length === 0)
|
|
778
852
|
return "[]";
|
|
779
|
-
var
|
|
780
|
-
return p && !
|
|
853
|
+
var h = ge(e, s);
|
|
854
|
+
return p && !io(h) ? "[" + ot(h, p) + "]" : "[ " + $.call(h, ", ") + " ]";
|
|
781
855
|
}
|
|
782
|
-
if (
|
|
783
|
-
var
|
|
784
|
-
return !("cause" in Error.prototype) && "cause" in e && !
|
|
856
|
+
if (qn(e)) {
|
|
857
|
+
var I = ge(e, s);
|
|
858
|
+
return !("cause" in Error.prototype) && "cause" in e && !tr.call(e, "cause") ? "{ [" + String(e) + "] " + $.call(Ot.call("[cause]: " + s(e.cause), I), ", ") + " }" : I.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + $.call(I, ", ") + " }";
|
|
785
859
|
}
|
|
786
860
|
if (typeof e == "object" && i) {
|
|
787
|
-
if (
|
|
788
|
-
return
|
|
861
|
+
if (Ct && typeof e[Ct] == "function" && rt)
|
|
862
|
+
return rt(e, { depth: u - n });
|
|
789
863
|
if (i !== "symbol" && typeof e.inspect == "function")
|
|
790
864
|
return e.inspect();
|
|
791
865
|
}
|
|
792
|
-
if (
|
|
793
|
-
var
|
|
794
|
-
return
|
|
795
|
-
|
|
796
|
-
}),
|
|
797
|
-
}
|
|
798
|
-
if (
|
|
799
|
-
var
|
|
800
|
-
return
|
|
801
|
-
|
|
802
|
-
}),
|
|
803
|
-
}
|
|
804
|
-
if (
|
|
805
|
-
return
|
|
806
|
-
if (po(e))
|
|
807
|
-
return Me("WeakSet");
|
|
808
|
-
if (so(e))
|
|
809
|
-
return Me("WeakRef");
|
|
866
|
+
if (Zn(e)) {
|
|
867
|
+
var T = [];
|
|
868
|
+
return St && St.call(e, function(P, C) {
|
|
869
|
+
T.push(s(C, e, !0) + " => " + s(P, e));
|
|
870
|
+
}), Dt("Map", Ae.call(e), T, p);
|
|
871
|
+
}
|
|
872
|
+
if (ro(e)) {
|
|
873
|
+
var k = [];
|
|
874
|
+
return At && At.call(e, function(P) {
|
|
875
|
+
k.push(s(P, e));
|
|
876
|
+
}), Dt("Set", Re.call(e), k, p);
|
|
877
|
+
}
|
|
878
|
+
if (eo(e))
|
|
879
|
+
return xe("WeakMap");
|
|
810
880
|
if (no(e))
|
|
811
|
-
return
|
|
812
|
-
if (
|
|
813
|
-
return
|
|
814
|
-
if (
|
|
815
|
-
return
|
|
816
|
-
if (
|
|
817
|
-
return
|
|
881
|
+
return xe("WeakSet");
|
|
882
|
+
if (to(e))
|
|
883
|
+
return xe("WeakRef");
|
|
884
|
+
if (zn(e))
|
|
885
|
+
return ie(s(Number(e)));
|
|
886
|
+
if (Yn(e))
|
|
887
|
+
return ie(s(et.call(e)));
|
|
888
|
+
if (Kn(e))
|
|
889
|
+
return ie(Mn.call(e));
|
|
890
|
+
if (Vn(e))
|
|
891
|
+
return ie(s(String(e)));
|
|
818
892
|
if (typeof window < "u" && e === window)
|
|
819
893
|
return "{ [object Window] }";
|
|
820
|
-
if (typeof globalThis < "u" && e === globalThis || typeof
|
|
894
|
+
if (typeof globalThis < "u" && e === globalThis || typeof Et < "u" && e === Et)
|
|
821
895
|
return "{ [object globalThis] }";
|
|
822
|
-
if (!
|
|
823
|
-
var
|
|
824
|
-
return
|
|
896
|
+
if (!Wn(e) && !Nt(e)) {
|
|
897
|
+
var U = ge(e, s), z = It ? It(e) === Object.prototype : e instanceof Object || e.constructor === Object, F = e instanceof Object ? "" : "null prototype", w = !z && ue && Object(e) === e && ue in e ? ut.call(H(e), 8, -1) : F ? "Object" : "", K = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", B = K + (w || F ? "[" + $.call(Ot.call([], w || [], F || []), ": ") + "] " : "");
|
|
898
|
+
return U.length === 0 ? B + "{}" : p ? B + "{" + ot(U, p) + "}" : B + "{ " + $.call(U, ", ") + " }";
|
|
825
899
|
}
|
|
826
900
|
return String(e);
|
|
827
901
|
};
|
|
828
|
-
function
|
|
829
|
-
var n = r.quoteStyle || e, o =
|
|
902
|
+
function nr(t, e, r) {
|
|
903
|
+
var n = r.quoteStyle || e, o = rr[n];
|
|
830
904
|
return o + t + o;
|
|
831
905
|
}
|
|
832
|
-
function
|
|
833
|
-
return
|
|
906
|
+
function Xn(t) {
|
|
907
|
+
return G.call(String(t), /"/g, """);
|
|
834
908
|
}
|
|
835
|
-
function
|
|
836
|
-
return !
|
|
909
|
+
function V(t) {
|
|
910
|
+
return !ue || !(typeof t == "object" && (ue in t || typeof t[ue] < "u"));
|
|
837
911
|
}
|
|
838
|
-
function
|
|
839
|
-
return
|
|
912
|
+
function nt(t) {
|
|
913
|
+
return H(t) === "[object Array]" && V(t);
|
|
840
914
|
}
|
|
841
|
-
function
|
|
842
|
-
return
|
|
915
|
+
function Wn(t) {
|
|
916
|
+
return H(t) === "[object Date]" && V(t);
|
|
843
917
|
}
|
|
844
|
-
function
|
|
845
|
-
return
|
|
918
|
+
function Nt(t) {
|
|
919
|
+
return H(t) === "[object RegExp]" && V(t);
|
|
846
920
|
}
|
|
847
|
-
function
|
|
848
|
-
return
|
|
921
|
+
function qn(t) {
|
|
922
|
+
return H(t) === "[object Error]" && V(t);
|
|
849
923
|
}
|
|
850
|
-
function
|
|
851
|
-
return
|
|
924
|
+
function Vn(t) {
|
|
925
|
+
return H(t) === "[object String]" && V(t);
|
|
852
926
|
}
|
|
853
|
-
function
|
|
854
|
-
return
|
|
927
|
+
function zn(t) {
|
|
928
|
+
return H(t) === "[object Number]" && V(t);
|
|
855
929
|
}
|
|
856
|
-
function
|
|
857
|
-
return
|
|
930
|
+
function Kn(t) {
|
|
931
|
+
return H(t) === "[object Boolean]" && V(t);
|
|
858
932
|
}
|
|
859
|
-
function
|
|
860
|
-
if (
|
|
933
|
+
function or(t) {
|
|
934
|
+
if (ee)
|
|
861
935
|
return t && typeof t == "object" && t instanceof Symbol;
|
|
862
936
|
if (typeof t == "symbol")
|
|
863
937
|
return !0;
|
|
864
|
-
if (!t || typeof t != "object" || !
|
|
938
|
+
if (!t || typeof t != "object" || !tt)
|
|
865
939
|
return !1;
|
|
866
940
|
try {
|
|
867
|
-
return
|
|
941
|
+
return tt.call(t), !0;
|
|
868
942
|
} catch {
|
|
869
943
|
}
|
|
870
944
|
return !1;
|
|
871
945
|
}
|
|
872
|
-
function
|
|
873
|
-
if (!t || typeof t != "object" || !
|
|
946
|
+
function Yn(t) {
|
|
947
|
+
if (!t || typeof t != "object" || !et)
|
|
874
948
|
return !1;
|
|
875
949
|
try {
|
|
876
|
-
return
|
|
950
|
+
return et.call(t), !0;
|
|
877
951
|
} catch {
|
|
878
952
|
}
|
|
879
953
|
return !1;
|
|
880
954
|
}
|
|
881
|
-
var
|
|
955
|
+
var Qn = Object.prototype.hasOwnProperty || function(t) {
|
|
882
956
|
return t in this;
|
|
883
957
|
};
|
|
884
958
|
function M(t, e) {
|
|
885
|
-
return
|
|
959
|
+
return Qn.call(t, e);
|
|
886
960
|
}
|
|
887
|
-
function
|
|
888
|
-
return
|
|
961
|
+
function H(t) {
|
|
962
|
+
return Un.call(t);
|
|
889
963
|
}
|
|
890
|
-
function
|
|
964
|
+
function Jn(t) {
|
|
891
965
|
if (t.name)
|
|
892
966
|
return t.name;
|
|
893
|
-
var e =
|
|
967
|
+
var e = Gn.call(Bn.call(t), /^function\s*([\w$]+)/);
|
|
894
968
|
return e ? e[1] : null;
|
|
895
969
|
}
|
|
896
|
-
function
|
|
970
|
+
function ar(t, e) {
|
|
897
971
|
if (t.indexOf)
|
|
898
972
|
return t.indexOf(e);
|
|
899
973
|
for (var r = 0, n = t.length; r < n; r++)
|
|
@@ -901,13 +975,13 @@ function er(t, e) {
|
|
|
901
975
|
return r;
|
|
902
976
|
return -1;
|
|
903
977
|
}
|
|
904
|
-
function
|
|
905
|
-
if (!
|
|
978
|
+
function Zn(t) {
|
|
979
|
+
if (!Ae || !t || typeof t != "object")
|
|
906
980
|
return !1;
|
|
907
981
|
try {
|
|
908
|
-
|
|
982
|
+
Ae.call(t);
|
|
909
983
|
try {
|
|
910
|
-
|
|
984
|
+
Re.call(t);
|
|
911
985
|
} catch {
|
|
912
986
|
return !0;
|
|
913
987
|
}
|
|
@@ -916,13 +990,13 @@ function co(t) {
|
|
|
916
990
|
}
|
|
917
991
|
return !1;
|
|
918
992
|
}
|
|
919
|
-
function
|
|
920
|
-
if (!
|
|
993
|
+
function eo(t) {
|
|
994
|
+
if (!le || !t || typeof t != "object")
|
|
921
995
|
return !1;
|
|
922
996
|
try {
|
|
923
|
-
|
|
997
|
+
le.call(t, le);
|
|
924
998
|
try {
|
|
925
|
-
|
|
999
|
+
ce.call(t, ce);
|
|
926
1000
|
} catch {
|
|
927
1001
|
return !0;
|
|
928
1002
|
}
|
|
@@ -931,22 +1005,22 @@ function uo(t) {
|
|
|
931
1005
|
}
|
|
932
1006
|
return !1;
|
|
933
1007
|
}
|
|
934
|
-
function
|
|
935
|
-
if (!
|
|
1008
|
+
function to(t) {
|
|
1009
|
+
if (!Rt || !t || typeof t != "object")
|
|
936
1010
|
return !1;
|
|
937
1011
|
try {
|
|
938
|
-
return
|
|
1012
|
+
return Rt.call(t), !0;
|
|
939
1013
|
} catch {
|
|
940
1014
|
}
|
|
941
1015
|
return !1;
|
|
942
1016
|
}
|
|
943
|
-
function
|
|
944
|
-
if (!
|
|
1017
|
+
function ro(t) {
|
|
1018
|
+
if (!Re || !t || typeof t != "object")
|
|
945
1019
|
return !1;
|
|
946
1020
|
try {
|
|
947
|
-
|
|
1021
|
+
Re.call(t);
|
|
948
1022
|
try {
|
|
949
|
-
|
|
1023
|
+
Ae.call(t);
|
|
950
1024
|
} catch {
|
|
951
1025
|
return !0;
|
|
952
1026
|
}
|
|
@@ -955,13 +1029,13 @@ function fo(t) {
|
|
|
955
1029
|
}
|
|
956
1030
|
return !1;
|
|
957
1031
|
}
|
|
958
|
-
function
|
|
959
|
-
if (!
|
|
1032
|
+
function no(t) {
|
|
1033
|
+
if (!ce || !t || typeof t != "object")
|
|
960
1034
|
return !1;
|
|
961
1035
|
try {
|
|
962
|
-
|
|
1036
|
+
ce.call(t, ce);
|
|
963
1037
|
try {
|
|
964
|
-
|
|
1038
|
+
le.call(t, le);
|
|
965
1039
|
} catch {
|
|
966
1040
|
return !0;
|
|
967
1041
|
}
|
|
@@ -970,20 +1044,20 @@ function po(t) {
|
|
|
970
1044
|
}
|
|
971
1045
|
return !1;
|
|
972
1046
|
}
|
|
973
|
-
function
|
|
1047
|
+
function oo(t) {
|
|
974
1048
|
return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
|
|
975
1049
|
}
|
|
976
|
-
function
|
|
1050
|
+
function ir(t, e) {
|
|
977
1051
|
if (t.length > e.maxStringLength) {
|
|
978
1052
|
var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
|
|
979
|
-
return
|
|
1053
|
+
return ir(ut.call(t, 0, e.maxStringLength), e) + n;
|
|
980
1054
|
}
|
|
981
|
-
var o =
|
|
1055
|
+
var o = jn[e.quoteStyle || "single"];
|
|
982
1056
|
o.lastIndex = 0;
|
|
983
|
-
var a =
|
|
984
|
-
return
|
|
1057
|
+
var a = G.call(G.call(t, o, "\\$1"), /[\x00-\x1f]/g, ao);
|
|
1058
|
+
return nr(a, "single", e);
|
|
985
1059
|
}
|
|
986
|
-
function
|
|
1060
|
+
function ao(t) {
|
|
987
1061
|
var e = t.charCodeAt(0), r = {
|
|
988
1062
|
8: "b",
|
|
989
1063
|
9: "t",
|
|
@@ -991,78 +1065,78 @@ function vo(t) {
|
|
|
991
1065
|
12: "f",
|
|
992
1066
|
13: "r"
|
|
993
1067
|
}[e];
|
|
994
|
-
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") +
|
|
1068
|
+
return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + Hn.call(e.toString(16));
|
|
995
1069
|
}
|
|
996
|
-
function
|
|
1070
|
+
function ie(t) {
|
|
997
1071
|
return "Object(" + t + ")";
|
|
998
1072
|
}
|
|
999
|
-
function
|
|
1073
|
+
function xe(t) {
|
|
1000
1074
|
return t + " { ? }";
|
|
1001
1075
|
}
|
|
1002
|
-
function
|
|
1003
|
-
var o = n ?
|
|
1076
|
+
function Dt(t, e, r, n) {
|
|
1077
|
+
var o = n ? ot(r, n) : $.call(r, ", ");
|
|
1004
1078
|
return t + " (" + e + ") {" + o + "}";
|
|
1005
1079
|
}
|
|
1006
|
-
function
|
|
1080
|
+
function io(t) {
|
|
1007
1081
|
for (var e = 0; e < t.length; e++)
|
|
1008
|
-
if (
|
|
1082
|
+
if (ar(t[e], `
|
|
1009
1083
|
`) >= 0)
|
|
1010
1084
|
return !1;
|
|
1011
1085
|
return !0;
|
|
1012
1086
|
}
|
|
1013
|
-
function
|
|
1087
|
+
function lo(t, e) {
|
|
1014
1088
|
var r;
|
|
1015
1089
|
if (t.indent === " ")
|
|
1016
1090
|
r = " ";
|
|
1017
1091
|
else if (typeof t.indent == "number" && t.indent > 0)
|
|
1018
|
-
r =
|
|
1092
|
+
r = $.call(Array(t.indent + 1), " ");
|
|
1019
1093
|
else
|
|
1020
1094
|
return null;
|
|
1021
1095
|
return {
|
|
1022
1096
|
base: r,
|
|
1023
|
-
prev:
|
|
1097
|
+
prev: $.call(Array(e + 1), r)
|
|
1024
1098
|
};
|
|
1025
1099
|
}
|
|
1026
|
-
function
|
|
1100
|
+
function ot(t, e) {
|
|
1027
1101
|
if (t.length === 0)
|
|
1028
1102
|
return "";
|
|
1029
1103
|
var r = `
|
|
1030
1104
|
` + e.prev + e.base;
|
|
1031
|
-
return r +
|
|
1105
|
+
return r + $.call(t, "," + r) + `
|
|
1032
1106
|
` + e.prev;
|
|
1033
1107
|
}
|
|
1034
|
-
function
|
|
1035
|
-
var r =
|
|
1108
|
+
function ge(t, e) {
|
|
1109
|
+
var r = nt(t), n = [];
|
|
1036
1110
|
if (r) {
|
|
1037
1111
|
n.length = t.length;
|
|
1038
1112
|
for (var o = 0; o < t.length; o++)
|
|
1039
1113
|
n[o] = M(t, o) ? e(t[o], t) : "";
|
|
1040
1114
|
}
|
|
1041
|
-
var a = typeof
|
|
1042
|
-
if (
|
|
1115
|
+
var a = typeof Fe == "function" ? Fe(t) : [], i;
|
|
1116
|
+
if (ee) {
|
|
1043
1117
|
i = {};
|
|
1044
1118
|
for (var l = 0; l < a.length; l++)
|
|
1045
1119
|
i["$" + a[l]] = a[l];
|
|
1046
1120
|
}
|
|
1047
1121
|
for (var c in t)
|
|
1048
|
-
M(t, c) && (r && String(Number(c)) === c && c < t.length ||
|
|
1049
|
-
if (typeof
|
|
1122
|
+
M(t, c) && (r && String(Number(c)) === c && c < t.length || ee && i["$" + c] instanceof Symbol || (er.call(/[^\w$]/, c) ? n.push(e(c, t) + ": " + e(t[c], t)) : n.push(c + ": " + e(t[c], t))));
|
|
1123
|
+
if (typeof Fe == "function")
|
|
1050
1124
|
for (var f = 0; f < a.length; f++)
|
|
1051
|
-
|
|
1125
|
+
tr.call(t, a[f]) && n.push("[" + e(a[f]) + "]: " + e(t[a[f]], t));
|
|
1052
1126
|
return n;
|
|
1053
1127
|
}
|
|
1054
|
-
var
|
|
1128
|
+
var co = be, uo = re, Ie = function(t, e, r) {
|
|
1055
1129
|
for (var n = t, o; (o = n.next) != null; n = o)
|
|
1056
1130
|
if (o.key === e)
|
|
1057
1131
|
return n.next = o.next, r || (o.next = /** @type {NonNullable<typeof list.next>} */
|
|
1058
1132
|
t.next, t.next = o), o;
|
|
1059
|
-
},
|
|
1133
|
+
}, fo = function(t, e) {
|
|
1060
1134
|
if (t) {
|
|
1061
|
-
var r =
|
|
1135
|
+
var r = Ie(t, e);
|
|
1062
1136
|
return r && r.value;
|
|
1063
1137
|
}
|
|
1064
|
-
},
|
|
1065
|
-
var n =
|
|
1138
|
+
}, so = function(t, e, r) {
|
|
1139
|
+
var n = Ie(t, e);
|
|
1066
1140
|
n ? n.value = r : t.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */
|
|
1067
1141
|
{
|
|
1068
1142
|
// eslint-disable-line no-param-reassign, no-extra-parens
|
|
@@ -1070,31 +1144,31 @@ var go = Pe, ho = te, xe = function(t, e, r) {
|
|
|
1070
1144
|
next: t.next,
|
|
1071
1145
|
value: r
|
|
1072
1146
|
};
|
|
1073
|
-
},
|
|
1074
|
-
return t ? !!
|
|
1075
|
-
},
|
|
1147
|
+
}, po = function(t, e) {
|
|
1148
|
+
return t ? !!Ie(t, e) : !1;
|
|
1149
|
+
}, yo = function(t, e) {
|
|
1076
1150
|
if (t)
|
|
1077
|
-
return
|
|
1078
|
-
},
|
|
1151
|
+
return Ie(t, e, !0);
|
|
1152
|
+
}, vo = function() {
|
|
1079
1153
|
var e, r = {
|
|
1080
1154
|
assert: function(n) {
|
|
1081
1155
|
if (!r.has(n))
|
|
1082
|
-
throw new
|
|
1156
|
+
throw new uo("Side channel does not contain " + co(n));
|
|
1083
1157
|
},
|
|
1084
1158
|
delete: function(n) {
|
|
1085
|
-
var o = e && e.next, a =
|
|
1159
|
+
var o = e && e.next, a = yo(e, n);
|
|
1086
1160
|
return a && o && o === a && (e = void 0), !!a;
|
|
1087
1161
|
},
|
|
1088
1162
|
get: function(n) {
|
|
1089
|
-
return
|
|
1163
|
+
return fo(e, n);
|
|
1090
1164
|
},
|
|
1091
1165
|
has: function(n) {
|
|
1092
|
-
return
|
|
1166
|
+
return po(e, n);
|
|
1093
1167
|
},
|
|
1094
1168
|
set: function(n, o) {
|
|
1095
1169
|
e || (e = {
|
|
1096
1170
|
next: void 0
|
|
1097
|
-
}),
|
|
1171
|
+
}), so(
|
|
1098
1172
|
/** @type {NonNullable<typeof $o>} */
|
|
1099
1173
|
e,
|
|
1100
1174
|
n,
|
|
@@ -1103,27 +1177,27 @@ var go = Pe, ho = te, xe = function(t, e, r) {
|
|
|
1103
1177
|
}
|
|
1104
1178
|
};
|
|
1105
1179
|
return r;
|
|
1106
|
-
},
|
|
1180
|
+
}, lr = Object, ho = Error, go = EvalError, mo = RangeError, Eo = ReferenceError, _o = SyntaxError, So = URIError, Ao = Math.abs, Ro = Math.floor, Po = Math.max, Oo = Math.min, bo = Math.pow, Io = Math.round, To = Number.isNaN || function(e) {
|
|
1107
1181
|
return e !== e;
|
|
1108
|
-
},
|
|
1109
|
-
return
|
|
1110
|
-
},
|
|
1111
|
-
if (
|
|
1182
|
+
}, wo = To, Co = function(e) {
|
|
1183
|
+
return wo(e) || e === 0 ? e : e < 0 ? -1 : 1;
|
|
1184
|
+
}, No = Object.getOwnPropertyDescriptor, Ee = No;
|
|
1185
|
+
if (Ee)
|
|
1112
1186
|
try {
|
|
1113
|
-
|
|
1187
|
+
Ee([], "length");
|
|
1114
1188
|
} catch {
|
|
1115
|
-
|
|
1189
|
+
Ee = null;
|
|
1116
1190
|
}
|
|
1117
|
-
var
|
|
1118
|
-
if (
|
|
1191
|
+
var cr = Ee, _e = Object.defineProperty || !1;
|
|
1192
|
+
if (_e)
|
|
1119
1193
|
try {
|
|
1120
|
-
|
|
1194
|
+
_e({}, "a", { value: 1 });
|
|
1121
1195
|
} catch {
|
|
1122
|
-
|
|
1196
|
+
_e = !1;
|
|
1123
1197
|
}
|
|
1124
|
-
var
|
|
1125
|
-
function
|
|
1126
|
-
return
|
|
1198
|
+
var Do = _e, Le, $t;
|
|
1199
|
+
function $o() {
|
|
1200
|
+
return $t || ($t = 1, Le = function() {
|
|
1127
1201
|
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
1128
1202
|
return !1;
|
|
1129
1203
|
if (typeof Symbol.iterator == "symbol")
|
|
@@ -1149,79 +1223,97 @@ function Go() {
|
|
|
1149
1223
|
return !1;
|
|
1150
1224
|
}
|
|
1151
1225
|
return !0;
|
|
1152
|
-
}),
|
|
1226
|
+
}), Le;
|
|
1153
1227
|
}
|
|
1154
|
-
var
|
|
1155
|
-
function
|
|
1156
|
-
if (
|
|
1157
|
-
|
|
1158
|
-
var t = typeof Symbol < "u" && Symbol, e =
|
|
1159
|
-
return
|
|
1228
|
+
var Me, Ft;
|
|
1229
|
+
function Fo() {
|
|
1230
|
+
if (Ft) return Me;
|
|
1231
|
+
Ft = 1;
|
|
1232
|
+
var t = typeof Symbol < "u" && Symbol, e = $o();
|
|
1233
|
+
return Me = function() {
|
|
1160
1234
|
return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
|
|
1161
|
-
},
|
|
1235
|
+
}, Me;
|
|
1162
1236
|
}
|
|
1163
|
-
var
|
|
1164
|
-
function
|
|
1165
|
-
return
|
|
1237
|
+
var Ue, xt;
|
|
1238
|
+
function ur() {
|
|
1239
|
+
return xt || (xt = 1, Ue = typeof Reflect < "u" && Reflect.getPrototypeOf || null), Ue;
|
|
1166
1240
|
}
|
|
1167
|
-
var
|
|
1168
|
-
function
|
|
1169
|
-
if (
|
|
1170
|
-
|
|
1171
|
-
var t =
|
|
1172
|
-
return
|
|
1241
|
+
var Be, Lt;
|
|
1242
|
+
function fr() {
|
|
1243
|
+
if (Lt) return Be;
|
|
1244
|
+
Lt = 1;
|
|
1245
|
+
var t = lr;
|
|
1246
|
+
return Be = t.getPrototypeOf || null, Be;
|
|
1173
1247
|
}
|
|
1174
|
-
var
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
},
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
},
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1248
|
+
var Ge, Mt;
|
|
1249
|
+
function xo() {
|
|
1250
|
+
if (Mt) return Ge;
|
|
1251
|
+
Mt = 1;
|
|
1252
|
+
var t = "Function.prototype.bind called on incompatible ", e = Object.prototype.toString, r = Math.max, n = "[object Function]", o = function(c, f) {
|
|
1253
|
+
for (var u = [], p = 0; p < c.length; p += 1)
|
|
1254
|
+
u[p] = c[p];
|
|
1255
|
+
for (var s = 0; s < f.length; s += 1)
|
|
1256
|
+
u[s + c.length] = f[s];
|
|
1257
|
+
return u;
|
|
1258
|
+
}, a = function(c, f) {
|
|
1259
|
+
for (var u = [], p = f, s = 0; p < c.length; p += 1, s += 1)
|
|
1260
|
+
u[s] = c[p];
|
|
1261
|
+
return u;
|
|
1262
|
+
}, i = function(l, c) {
|
|
1263
|
+
for (var f = "", u = 0; u < l.length; u += 1)
|
|
1264
|
+
f += l[u], u + 1 < l.length && (f += c);
|
|
1265
|
+
return f;
|
|
1266
|
+
};
|
|
1267
|
+
return Ge = function(c) {
|
|
1268
|
+
var f = this;
|
|
1269
|
+
if (typeof f != "function" || e.apply(f) !== n)
|
|
1270
|
+
throw new TypeError(t + f);
|
|
1271
|
+
for (var u = a(arguments, 1), p, s = function() {
|
|
1272
|
+
if (this instanceof p) {
|
|
1273
|
+
var R = f.apply(
|
|
1274
|
+
this,
|
|
1275
|
+
o(u, arguments)
|
|
1276
|
+
);
|
|
1277
|
+
return Object(R) === R ? R : this;
|
|
1278
|
+
}
|
|
1279
|
+
return f.apply(
|
|
1280
|
+
c,
|
|
1281
|
+
o(u, arguments)
|
|
1197
1282
|
);
|
|
1198
|
-
|
|
1283
|
+
}, d = r(0, f.length - u.length), y = [], g = 0; g < d; g++)
|
|
1284
|
+
y[g] = "$" + g;
|
|
1285
|
+
if (p = Function("binder", "return function (" + i(y, ",") + "){ return binder.apply(this,arguments); }")(s), f.prototype) {
|
|
1286
|
+
var E = function() {
|
|
1287
|
+
};
|
|
1288
|
+
E.prototype = f.prototype, p.prototype = new E(), E.prototype = null;
|
|
1199
1289
|
}
|
|
1200
|
-
return
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
f.prototype = r.prototype, o.prototype = new f(), f.prototype = null;
|
|
1210
|
-
}
|
|
1211
|
-
return o;
|
|
1212
|
-
}, Qo = Yo, Ie = Function.prototype.bind || Qo, ct = Function.prototype.call, Be, Mt;
|
|
1213
|
-
function ir() {
|
|
1214
|
-
return Mt || (Mt = 1, Be = Function.prototype.apply), Be;
|
|
1290
|
+
return p;
|
|
1291
|
+
}, Ge;
|
|
1292
|
+
}
|
|
1293
|
+
var He, Ut;
|
|
1294
|
+
function Te() {
|
|
1295
|
+
if (Ut) return He;
|
|
1296
|
+
Ut = 1;
|
|
1297
|
+
var t = xo();
|
|
1298
|
+
return He = Function.prototype.bind || t, He;
|
|
1215
1299
|
}
|
|
1216
|
-
var
|
|
1300
|
+
var ke, Bt;
|
|
1301
|
+
function ft() {
|
|
1302
|
+
return Bt || (Bt = 1, ke = Function.prototype.call), ke;
|
|
1303
|
+
}
|
|
1304
|
+
var je, Gt;
|
|
1305
|
+
function sr() {
|
|
1306
|
+
return Gt || (Gt = 1, je = Function.prototype.apply), je;
|
|
1307
|
+
}
|
|
1308
|
+
var Lo = typeof Reflect < "u" && Reflect && Reflect.apply, Mo = Te(), Uo = sr(), Bo = ft(), Go = Lo, Ho = Go || Mo.call(Bo, Uo), ko = Te(), jo = re, Xo = ft(), Wo = Ho, pr = function(e) {
|
|
1217
1309
|
if (e.length < 1 || typeof e[0] != "function")
|
|
1218
|
-
throw new
|
|
1219
|
-
return
|
|
1220
|
-
},
|
|
1221
|
-
function
|
|
1222
|
-
if (
|
|
1223
|
-
|
|
1224
|
-
var t =
|
|
1310
|
+
throw new jo("a function is required");
|
|
1311
|
+
return Wo(ko, Xo, e);
|
|
1312
|
+
}, Xe, Ht;
|
|
1313
|
+
function qo() {
|
|
1314
|
+
if (Ht) return Xe;
|
|
1315
|
+
Ht = 1;
|
|
1316
|
+
var t = pr, e = cr, r;
|
|
1225
1317
|
try {
|
|
1226
1318
|
r = /** @type {{ __proto__?: typeof Array.prototype }} */
|
|
1227
1319
|
[].__proto__ === Array.prototype;
|
|
@@ -1234,19 +1326,19 @@ function ca() {
|
|
|
1234
1326
|
/** @type {keyof typeof Object.prototype} */
|
|
1235
1327
|
"__proto__"
|
|
1236
1328
|
), o = Object, a = o.getPrototypeOf;
|
|
1237
|
-
return
|
|
1329
|
+
return Xe = n && typeof n.get == "function" ? t([n.get]) : typeof a == "function" ? (
|
|
1238
1330
|
/** @type {import('./get')} */
|
|
1239
1331
|
function(l) {
|
|
1240
1332
|
return a(l == null ? l : o(l));
|
|
1241
1333
|
}
|
|
1242
|
-
) : !1,
|
|
1334
|
+
) : !1, Xe;
|
|
1243
1335
|
}
|
|
1244
|
-
var
|
|
1245
|
-
function
|
|
1246
|
-
if (kt) return
|
|
1336
|
+
var We, kt;
|
|
1337
|
+
function Vo() {
|
|
1338
|
+
if (kt) return We;
|
|
1247
1339
|
kt = 1;
|
|
1248
|
-
var t =
|
|
1249
|
-
return
|
|
1340
|
+
var t = ur(), e = fr(), r = qo();
|
|
1341
|
+
return We = t ? function(o) {
|
|
1250
1342
|
return t(o);
|
|
1251
1343
|
} : e ? function(o) {
|
|
1252
1344
|
if (!o || typeof o != "object" && typeof o != "function")
|
|
@@ -1254,43 +1346,43 @@ function ua() {
|
|
|
1254
1346
|
return e(o);
|
|
1255
1347
|
} : r ? function(o) {
|
|
1256
1348
|
return r(o);
|
|
1257
|
-
} : null,
|
|
1349
|
+
} : null, We;
|
|
1258
1350
|
}
|
|
1259
|
-
var
|
|
1260
|
-
function
|
|
1261
|
-
if (jt) return
|
|
1351
|
+
var qe, jt;
|
|
1352
|
+
function zo() {
|
|
1353
|
+
if (jt) return qe;
|
|
1262
1354
|
jt = 1;
|
|
1263
|
-
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r =
|
|
1264
|
-
return
|
|
1355
|
+
var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = Te();
|
|
1356
|
+
return qe = r.call(t, e), qe;
|
|
1265
1357
|
}
|
|
1266
|
-
var v,
|
|
1358
|
+
var v, Ko = lr, Yo = ho, Qo = go, Jo = mo, Zo = Eo, te = _o, Z = re, ea = So, ta = Ao, ra = Ro, na = Po, oa = Oo, aa = bo, ia = Io, la = Co, yr = Function, Ve = function(t) {
|
|
1267
1359
|
try {
|
|
1268
|
-
return
|
|
1360
|
+
return yr('"use strict"; return (' + t + ").constructor;")();
|
|
1269
1361
|
} catch {
|
|
1270
1362
|
}
|
|
1271
|
-
},
|
|
1272
|
-
throw new
|
|
1273
|
-
},
|
|
1363
|
+
}, se = cr, ca = Do, ze = function() {
|
|
1364
|
+
throw new Z();
|
|
1365
|
+
}, ua = se ? function() {
|
|
1274
1366
|
try {
|
|
1275
1367
|
return arguments.callee, ze;
|
|
1276
1368
|
} catch {
|
|
1277
1369
|
try {
|
|
1278
|
-
return
|
|
1370
|
+
return se(arguments, "callee").get;
|
|
1279
1371
|
} catch {
|
|
1280
1372
|
return ze;
|
|
1281
1373
|
}
|
|
1282
1374
|
}
|
|
1283
|
-
}() : ze,
|
|
1375
|
+
}() : ze, Y = Fo()(), A = Vo(), fa = fr(), sa = ur(), dr = sr(), pe = ft(), J = {}, pa = typeof Uint8Array > "u" || !A ? v : A(Uint8Array), W = {
|
|
1284
1376
|
__proto__: null,
|
|
1285
1377
|
"%AggregateError%": typeof AggregateError > "u" ? v : AggregateError,
|
|
1286
1378
|
"%Array%": Array,
|
|
1287
1379
|
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? v : ArrayBuffer,
|
|
1288
|
-
"%ArrayIteratorPrototype%":
|
|
1380
|
+
"%ArrayIteratorPrototype%": Y && A ? A([][Symbol.iterator]()) : v,
|
|
1289
1381
|
"%AsyncFromSyncIteratorPrototype%": v,
|
|
1290
|
-
"%AsyncFunction%":
|
|
1291
|
-
"%AsyncGenerator%":
|
|
1292
|
-
"%AsyncGeneratorFunction%":
|
|
1293
|
-
"%AsyncIteratorPrototype%":
|
|
1382
|
+
"%AsyncFunction%": J,
|
|
1383
|
+
"%AsyncGenerator%": J,
|
|
1384
|
+
"%AsyncGeneratorFunction%": J,
|
|
1385
|
+
"%AsyncIteratorPrototype%": J,
|
|
1294
1386
|
"%Atomics%": typeof Atomics > "u" ? v : Atomics,
|
|
1295
1387
|
"%BigInt%": typeof BigInt > "u" ? v : BigInt,
|
|
1296
1388
|
"%BigInt64Array%": typeof BigInt64Array > "u" ? v : BigInt64Array,
|
|
@@ -1302,92 +1394,92 @@ var v, fa = rr, pa = Oo, ya = Po, da = xo, va = Io, ee = wo, J = te, _a = To, ma
|
|
|
1302
1394
|
"%decodeURIComponent%": decodeURIComponent,
|
|
1303
1395
|
"%encodeURI%": encodeURI,
|
|
1304
1396
|
"%encodeURIComponent%": encodeURIComponent,
|
|
1305
|
-
"%Error%":
|
|
1397
|
+
"%Error%": Yo,
|
|
1306
1398
|
"%eval%": eval,
|
|
1307
1399
|
// eslint-disable-line no-eval
|
|
1308
|
-
"%EvalError%":
|
|
1400
|
+
"%EvalError%": Qo,
|
|
1309
1401
|
"%Float16Array%": typeof Float16Array > "u" ? v : Float16Array,
|
|
1310
1402
|
"%Float32Array%": typeof Float32Array > "u" ? v : Float32Array,
|
|
1311
1403
|
"%Float64Array%": typeof Float64Array > "u" ? v : Float64Array,
|
|
1312
1404
|
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? v : FinalizationRegistry,
|
|
1313
|
-
"%Function%":
|
|
1314
|
-
"%GeneratorFunction%":
|
|
1405
|
+
"%Function%": yr,
|
|
1406
|
+
"%GeneratorFunction%": J,
|
|
1315
1407
|
"%Int8Array%": typeof Int8Array > "u" ? v : Int8Array,
|
|
1316
1408
|
"%Int16Array%": typeof Int16Array > "u" ? v : Int16Array,
|
|
1317
1409
|
"%Int32Array%": typeof Int32Array > "u" ? v : Int32Array,
|
|
1318
1410
|
"%isFinite%": isFinite,
|
|
1319
1411
|
"%isNaN%": isNaN,
|
|
1320
|
-
"%IteratorPrototype%":
|
|
1412
|
+
"%IteratorPrototype%": Y && A ? A(A([][Symbol.iterator]())) : v,
|
|
1321
1413
|
"%JSON%": typeof JSON == "object" ? JSON : v,
|
|
1322
1414
|
"%Map%": typeof Map > "u" ? v : Map,
|
|
1323
|
-
"%MapIteratorPrototype%": typeof Map > "u" || !
|
|
1415
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !Y || !A ? v : A((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
1324
1416
|
"%Math%": Math,
|
|
1325
1417
|
"%Number%": Number,
|
|
1326
|
-
"%Object%":
|
|
1327
|
-
"%Object.getOwnPropertyDescriptor%":
|
|
1418
|
+
"%Object%": Ko,
|
|
1419
|
+
"%Object.getOwnPropertyDescriptor%": se,
|
|
1328
1420
|
"%parseFloat%": parseFloat,
|
|
1329
1421
|
"%parseInt%": parseInt,
|
|
1330
1422
|
"%Promise%": typeof Promise > "u" ? v : Promise,
|
|
1331
1423
|
"%Proxy%": typeof Proxy > "u" ? v : Proxy,
|
|
1332
|
-
"%RangeError%":
|
|
1333
|
-
"%ReferenceError%":
|
|
1424
|
+
"%RangeError%": Jo,
|
|
1425
|
+
"%ReferenceError%": Zo,
|
|
1334
1426
|
"%Reflect%": typeof Reflect > "u" ? v : Reflect,
|
|
1335
1427
|
"%RegExp%": RegExp,
|
|
1336
1428
|
"%Set%": typeof Set > "u" ? v : Set,
|
|
1337
|
-
"%SetIteratorPrototype%": typeof Set > "u" || !
|
|
1429
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !Y || !A ? v : A((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
1338
1430
|
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? v : SharedArrayBuffer,
|
|
1339
1431
|
"%String%": String,
|
|
1340
|
-
"%StringIteratorPrototype%":
|
|
1341
|
-
"%Symbol%":
|
|
1342
|
-
"%SyntaxError%":
|
|
1343
|
-
"%ThrowTypeError%":
|
|
1344
|
-
"%TypedArray%":
|
|
1345
|
-
"%TypeError%":
|
|
1432
|
+
"%StringIteratorPrototype%": Y && A ? A(""[Symbol.iterator]()) : v,
|
|
1433
|
+
"%Symbol%": Y ? Symbol : v,
|
|
1434
|
+
"%SyntaxError%": te,
|
|
1435
|
+
"%ThrowTypeError%": ua,
|
|
1436
|
+
"%TypedArray%": pa,
|
|
1437
|
+
"%TypeError%": Z,
|
|
1346
1438
|
"%Uint8Array%": typeof Uint8Array > "u" ? v : Uint8Array,
|
|
1347
1439
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? v : Uint8ClampedArray,
|
|
1348
1440
|
"%Uint16Array%": typeof Uint16Array > "u" ? v : Uint16Array,
|
|
1349
1441
|
"%Uint32Array%": typeof Uint32Array > "u" ? v : Uint32Array,
|
|
1350
|
-
"%URIError%":
|
|
1442
|
+
"%URIError%": ea,
|
|
1351
1443
|
"%WeakMap%": typeof WeakMap > "u" ? v : WeakMap,
|
|
1352
1444
|
"%WeakRef%": typeof WeakRef > "u" ? v : WeakRef,
|
|
1353
1445
|
"%WeakSet%": typeof WeakSet > "u" ? v : WeakSet,
|
|
1354
|
-
"%Function.prototype.call%":
|
|
1355
|
-
"%Function.prototype.apply%":
|
|
1356
|
-
"%Object.defineProperty%":
|
|
1357
|
-
"%Object.getPrototypeOf%":
|
|
1358
|
-
"%Math.abs%":
|
|
1359
|
-
"%Math.floor%":
|
|
1360
|
-
"%Math.max%":
|
|
1361
|
-
"%Math.min%":
|
|
1362
|
-
"%Math.pow%":
|
|
1363
|
-
"%Math.round%":
|
|
1364
|
-
"%Math.sign%":
|
|
1365
|
-
"%Reflect.getPrototypeOf%":
|
|
1446
|
+
"%Function.prototype.call%": pe,
|
|
1447
|
+
"%Function.prototype.apply%": dr,
|
|
1448
|
+
"%Object.defineProperty%": ca,
|
|
1449
|
+
"%Object.getPrototypeOf%": fa,
|
|
1450
|
+
"%Math.abs%": ta,
|
|
1451
|
+
"%Math.floor%": ra,
|
|
1452
|
+
"%Math.max%": na,
|
|
1453
|
+
"%Math.min%": oa,
|
|
1454
|
+
"%Math.pow%": aa,
|
|
1455
|
+
"%Math.round%": ia,
|
|
1456
|
+
"%Math.sign%": la,
|
|
1457
|
+
"%Reflect.getPrototypeOf%": sa
|
|
1366
1458
|
};
|
|
1367
|
-
if (
|
|
1459
|
+
if (A)
|
|
1368
1460
|
try {
|
|
1369
1461
|
null.error;
|
|
1370
1462
|
} catch (t) {
|
|
1371
|
-
var
|
|
1372
|
-
W["%Error.prototype%"] =
|
|
1463
|
+
var ya = A(A(t));
|
|
1464
|
+
W["%Error.prototype%"] = ya;
|
|
1373
1465
|
}
|
|
1374
|
-
var
|
|
1466
|
+
var da = function t(e) {
|
|
1375
1467
|
var r;
|
|
1376
1468
|
if (e === "%AsyncFunction%")
|
|
1377
|
-
r =
|
|
1469
|
+
r = Ve("async function () {}");
|
|
1378
1470
|
else if (e === "%GeneratorFunction%")
|
|
1379
|
-
r =
|
|
1471
|
+
r = Ve("function* () {}");
|
|
1380
1472
|
else if (e === "%AsyncGeneratorFunction%")
|
|
1381
|
-
r =
|
|
1473
|
+
r = Ve("async function* () {}");
|
|
1382
1474
|
else if (e === "%AsyncGenerator%") {
|
|
1383
1475
|
var n = t("%AsyncGeneratorFunction%");
|
|
1384
1476
|
n && (r = n.prototype);
|
|
1385
1477
|
} else if (e === "%AsyncIteratorPrototype%") {
|
|
1386
1478
|
var o = t("%AsyncGenerator%");
|
|
1387
|
-
o &&
|
|
1479
|
+
o && A && (r = A(o.prototype));
|
|
1388
1480
|
}
|
|
1389
1481
|
return W[e] = r, r;
|
|
1390
|
-
},
|
|
1482
|
+
}, Xt = {
|
|
1391
1483
|
__proto__: null,
|
|
1392
1484
|
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
1393
1485
|
"%ArrayPrototype%": ["Array", "prototype"],
|
|
@@ -1440,127 +1532,127 @@ var Ta = function t(e) {
|
|
|
1440
1532
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1441
1533
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1442
1534
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1443
|
-
},
|
|
1444
|
-
var r =
|
|
1535
|
+
}, ye = Te(), Pe = zo(), va = ye.call(pe, Array.prototype.concat), ha = ye.call(dr, Array.prototype.splice), Wt = ye.call(pe, String.prototype.replace), Oe = ye.call(pe, String.prototype.slice), ga = ye.call(pe, RegExp.prototype.exec), ma = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Ea = /\\(\\)?/g, _a = function(e) {
|
|
1536
|
+
var r = Oe(e, 0, 1), n = Oe(e, -1);
|
|
1445
1537
|
if (r === "%" && n !== "%")
|
|
1446
|
-
throw new
|
|
1538
|
+
throw new te("invalid intrinsic syntax, expected closing `%`");
|
|
1447
1539
|
if (n === "%" && r !== "%")
|
|
1448
|
-
throw new
|
|
1540
|
+
throw new te("invalid intrinsic syntax, expected opening `%`");
|
|
1449
1541
|
var o = [];
|
|
1450
|
-
return
|
|
1451
|
-
o[o.length] = l ?
|
|
1542
|
+
return Wt(e, ma, function(a, i, l, c) {
|
|
1543
|
+
o[o.length] = l ? Wt(c, Ea, "$1") : i || a;
|
|
1452
1544
|
}), o;
|
|
1453
|
-
},
|
|
1545
|
+
}, Sa = function(e, r) {
|
|
1454
1546
|
var n = e, o;
|
|
1455
|
-
if (
|
|
1547
|
+
if (Pe(Xt, n) && (o = Xt[n], n = "%" + o[0] + "%"), Pe(W, n)) {
|
|
1456
1548
|
var a = W[n];
|
|
1457
|
-
if (a ===
|
|
1458
|
-
throw new
|
|
1549
|
+
if (a === J && (a = da(n)), typeof a > "u" && !r)
|
|
1550
|
+
throw new Z("intrinsic " + e + " exists, but is not available. Please file an issue!");
|
|
1459
1551
|
return {
|
|
1460
1552
|
alias: o,
|
|
1461
1553
|
name: n,
|
|
1462
1554
|
value: a
|
|
1463
1555
|
};
|
|
1464
1556
|
}
|
|
1465
|
-
throw new
|
|
1466
|
-
},
|
|
1557
|
+
throw new te("intrinsic " + e + " does not exist!");
|
|
1558
|
+
}, st = function(e, r) {
|
|
1467
1559
|
if (typeof e != "string" || e.length === 0)
|
|
1468
|
-
throw new
|
|
1560
|
+
throw new Z("intrinsic name must be a non-empty string");
|
|
1469
1561
|
if (arguments.length > 1 && typeof r != "boolean")
|
|
1470
|
-
throw new
|
|
1471
|
-
if (
|
|
1472
|
-
throw new
|
|
1473
|
-
var n =
|
|
1474
|
-
f && (o = f[0],
|
|
1562
|
+
throw new Z('"allowMissing" argument must be a boolean');
|
|
1563
|
+
if (ga(/^%?[^%]*%?$/, e) === null)
|
|
1564
|
+
throw new te("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
1565
|
+
var n = _a(e), o = n.length > 0 ? n[0] : "", a = Sa("%" + o + "%", r), i = a.name, l = a.value, c = !1, f = a.alias;
|
|
1566
|
+
f && (o = f[0], ha(n, va([0, 1], f)));
|
|
1475
1567
|
for (var u = 1, p = !0; u < n.length; u += 1) {
|
|
1476
|
-
var s = n[u], d =
|
|
1568
|
+
var s = n[u], d = Oe(s, 0, 1), y = Oe(s, -1);
|
|
1477
1569
|
if ((d === '"' || d === "'" || d === "`" || y === '"' || y === "'" || y === "`") && d !== y)
|
|
1478
|
-
throw new
|
|
1479
|
-
if ((s === "constructor" || !p) && (c = !0), o += "." + s, i = "%" + o + "%",
|
|
1570
|
+
throw new te("property names with quotes must have matching quotes");
|
|
1571
|
+
if ((s === "constructor" || !p) && (c = !0), o += "." + s, i = "%" + o + "%", Pe(W, i))
|
|
1480
1572
|
l = W[i];
|
|
1481
1573
|
else if (l != null) {
|
|
1482
1574
|
if (!(s in l)) {
|
|
1483
1575
|
if (!r)
|
|
1484
|
-
throw new
|
|
1576
|
+
throw new Z("base intrinsic for " + e + " exists, but the property is not available.");
|
|
1485
1577
|
return;
|
|
1486
1578
|
}
|
|
1487
|
-
if (
|
|
1488
|
-
var
|
|
1489
|
-
p = !!
|
|
1579
|
+
if (se && u + 1 >= n.length) {
|
|
1580
|
+
var g = se(l, s);
|
|
1581
|
+
p = !!g, p && "get" in g && !("originalValue" in g.get) ? l = g.get : l = l[s];
|
|
1490
1582
|
} else
|
|
1491
|
-
p =
|
|
1583
|
+
p = Pe(l, s), l = l[s];
|
|
1492
1584
|
p && !c && (W[i] = l);
|
|
1493
1585
|
}
|
|
1494
1586
|
}
|
|
1495
1587
|
return l;
|
|
1496
|
-
},
|
|
1588
|
+
}, vr = st, hr = pr, Aa = hr([vr("%String.prototype.indexOf%")]), gr = function(e, r) {
|
|
1497
1589
|
var n = (
|
|
1498
1590
|
/** @type {(this: unknown, ...args: unknown[]) => unknown} */
|
|
1499
|
-
|
|
1591
|
+
vr(e, !!r)
|
|
1500
1592
|
);
|
|
1501
|
-
return typeof n == "function" &&
|
|
1593
|
+
return typeof n == "function" && Aa(e, ".prototype.") > -1 ? hr(
|
|
1502
1594
|
/** @type {const} */
|
|
1503
1595
|
[n]
|
|
1504
1596
|
) : n;
|
|
1505
|
-
},
|
|
1597
|
+
}, Ra = st, de = gr, Pa = be, Oa = re, qt = Ra("%Map%", !0), ba = de("Map.prototype.get", !0), Ia = de("Map.prototype.set", !0), Ta = de("Map.prototype.has", !0), wa = de("Map.prototype.delete", !0), Ca = de("Map.prototype.size", !0), mr = !!qt && /** @type {Exclude<import('.'), false>} */
|
|
1506
1598
|
function() {
|
|
1507
1599
|
var e, r = {
|
|
1508
1600
|
assert: function(n) {
|
|
1509
1601
|
if (!r.has(n))
|
|
1510
|
-
throw new
|
|
1602
|
+
throw new Oa("Side channel does not contain " + Pa(n));
|
|
1511
1603
|
},
|
|
1512
1604
|
delete: function(n) {
|
|
1513
1605
|
if (e) {
|
|
1514
|
-
var o =
|
|
1515
|
-
return
|
|
1606
|
+
var o = wa(e, n);
|
|
1607
|
+
return Ca(e) === 0 && (e = void 0), o;
|
|
1516
1608
|
}
|
|
1517
1609
|
return !1;
|
|
1518
1610
|
},
|
|
1519
1611
|
get: function(n) {
|
|
1520
1612
|
if (e)
|
|
1521
|
-
return
|
|
1613
|
+
return ba(e, n);
|
|
1522
1614
|
},
|
|
1523
1615
|
has: function(n) {
|
|
1524
|
-
return e ?
|
|
1616
|
+
return e ? Ta(e, n) : !1;
|
|
1525
1617
|
},
|
|
1526
1618
|
set: function(n, o) {
|
|
1527
|
-
e || (e = new
|
|
1619
|
+
e || (e = new qt()), Ia(e, n, o);
|
|
1528
1620
|
}
|
|
1529
1621
|
};
|
|
1530
1622
|
return r;
|
|
1531
|
-
},
|
|
1623
|
+
}, Na = st, we = gr, Da = be, me = mr, $a = re, Q = Na("%WeakMap%", !0), Fa = we("WeakMap.prototype.get", !0), xa = we("WeakMap.prototype.set", !0), La = we("WeakMap.prototype.has", !0), Ma = we("WeakMap.prototype.delete", !0), Ua = Q ? (
|
|
1532
1624
|
/** @type {Exclude<import('.'), false>} */
|
|
1533
1625
|
function() {
|
|
1534
1626
|
var e, r, n = {
|
|
1535
1627
|
assert: function(o) {
|
|
1536
1628
|
if (!n.has(o))
|
|
1537
|
-
throw new
|
|
1629
|
+
throw new $a("Side channel does not contain " + Da(o));
|
|
1538
1630
|
},
|
|
1539
1631
|
delete: function(o) {
|
|
1540
|
-
if (
|
|
1632
|
+
if (Q && o && (typeof o == "object" || typeof o == "function")) {
|
|
1541
1633
|
if (e)
|
|
1542
|
-
return
|
|
1543
|
-
} else if (
|
|
1634
|
+
return Ma(e, o);
|
|
1635
|
+
} else if (me && r)
|
|
1544
1636
|
return r.delete(o);
|
|
1545
1637
|
return !1;
|
|
1546
1638
|
},
|
|
1547
1639
|
get: function(o) {
|
|
1548
|
-
return
|
|
1640
|
+
return Q && o && (typeof o == "object" || typeof o == "function") && e ? Fa(e, o) : r && r.get(o);
|
|
1549
1641
|
},
|
|
1550
1642
|
has: function(o) {
|
|
1551
|
-
return
|
|
1643
|
+
return Q && o && (typeof o == "object" || typeof o == "function") && e ? La(e, o) : !!r && r.has(o);
|
|
1552
1644
|
},
|
|
1553
1645
|
set: function(o, a) {
|
|
1554
|
-
|
|
1646
|
+
Q && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Q()), xa(e, o, a)) : me && (r || (r = me()), r.set(o, a));
|
|
1555
1647
|
}
|
|
1556
1648
|
};
|
|
1557
1649
|
return n;
|
|
1558
1650
|
}
|
|
1559
|
-
) :
|
|
1651
|
+
) : me, Ba = re, Ga = be, Ha = vo, ka = mr, ja = Ua, Xa = ja || ka || Ha, Wa = function() {
|
|
1560
1652
|
var e, r = {
|
|
1561
1653
|
assert: function(n) {
|
|
1562
1654
|
if (!r.has(n))
|
|
1563
|
-
throw new
|
|
1655
|
+
throw new Ba("Side channel does not contain " + Ga(n));
|
|
1564
1656
|
},
|
|
1565
1657
|
delete: function(n) {
|
|
1566
1658
|
return !!e && e.delete(n);
|
|
@@ -1572,38 +1664,30 @@ function() {
|
|
|
1572
1664
|
return !!e && e.has(n);
|
|
1573
1665
|
},
|
|
1574
1666
|
set: function(n, o) {
|
|
1575
|
-
e || (e =
|
|
1667
|
+
e || (e = Xa()), e.set(n, o);
|
|
1576
1668
|
}
|
|
1577
1669
|
};
|
|
1578
1670
|
return r;
|
|
1579
|
-
},
|
|
1671
|
+
}, qa = String.prototype.replace, Va = /%20/g, Ke = {
|
|
1580
1672
|
RFC1738: "RFC1738",
|
|
1581
1673
|
RFC3986: "RFC3986"
|
|
1582
|
-
},
|
|
1583
|
-
default:
|
|
1674
|
+
}, pt = {
|
|
1675
|
+
default: Ke.RFC3986,
|
|
1584
1676
|
formatters: {
|
|
1585
1677
|
RFC1738: function(t) {
|
|
1586
|
-
return
|
|
1678
|
+
return qa.call(t, Va, "+");
|
|
1587
1679
|
},
|
|
1588
1680
|
RFC3986: function(t) {
|
|
1589
1681
|
return String(t);
|
|
1590
1682
|
}
|
|
1591
1683
|
},
|
|
1592
|
-
RFC1738:
|
|
1593
|
-
RFC3986:
|
|
1594
|
-
},
|
|
1595
|
-
return Te.set(e, r), e;
|
|
1596
|
-
}, Oe = function(e) {
|
|
1597
|
-
return Te.has(e);
|
|
1598
|
-
}, nt = function(e) {
|
|
1599
|
-
return Te.get(e);
|
|
1600
|
-
}, _r = function(e, r) {
|
|
1601
|
-
Te.set(e, r);
|
|
1602
|
-
}, N = function() {
|
|
1684
|
+
RFC1738: Ke.RFC1738,
|
|
1685
|
+
RFC3986: Ke.RFC3986
|
|
1686
|
+
}, za = pt, Ye = Object.prototype.hasOwnProperty, X = Array.isArray, N = function() {
|
|
1603
1687
|
for (var t = [], e = 0; e < 256; ++e)
|
|
1604
1688
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
1605
1689
|
return t;
|
|
1606
|
-
}(),
|
|
1690
|
+
}(), Ka = function(e) {
|
|
1607
1691
|
for (; e.length > 1; ) {
|
|
1608
1692
|
var r = e.pop(), n = r.obj[r.prop];
|
|
1609
1693
|
if (X(n)) {
|
|
@@ -1612,51 +1696,40 @@ function() {
|
|
|
1612
1696
|
r.obj[r.prop] = o;
|
|
1613
1697
|
}
|
|
1614
1698
|
}
|
|
1615
|
-
},
|
|
1699
|
+
}, Er = function(e, r) {
|
|
1616
1700
|
for (var n = r && r.plainObjects ? { __proto__: null } : {}, o = 0; o < e.length; ++o)
|
|
1617
1701
|
typeof e[o] < "u" && (n[o] = e[o]);
|
|
1618
1702
|
return n;
|
|
1619
|
-
},
|
|
1703
|
+
}, Ya = function t(e, r, n) {
|
|
1620
1704
|
if (!r)
|
|
1621
1705
|
return e;
|
|
1622
1706
|
if (typeof r != "object" && typeof r != "function") {
|
|
1623
1707
|
if (X(e))
|
|
1624
1708
|
e.push(r);
|
|
1625
1709
|
else if (e && typeof e == "object")
|
|
1626
|
-
|
|
1627
|
-
var o = nt(e) + 1;
|
|
1628
|
-
e[o] = r, _r(e, o);
|
|
1629
|
-
} else (n && (n.plainObjects || n.allowPrototypes) || !qe.call(Object.prototype, r)) && (e[r] = !0);
|
|
1710
|
+
(n && (n.plainObjects || n.allowPrototypes) || !Ye.call(Object.prototype, r)) && (e[r] = !0);
|
|
1630
1711
|
else
|
|
1631
1712
|
return [e, r];
|
|
1632
1713
|
return e;
|
|
1633
1714
|
}
|
|
1634
|
-
if (!e || typeof e != "object")
|
|
1635
|
-
if (Oe(r)) {
|
|
1636
|
-
for (var a = Object.keys(r), i = n && n.plainObjects ? { __proto__: null, 0: e } : { 0: e }, l = 0; l < a.length; l++) {
|
|
1637
|
-
var c = parseInt(a[l], 10);
|
|
1638
|
-
i[c + 1] = r[a[l]];
|
|
1639
|
-
}
|
|
1640
|
-
return vr(i, nt(r) + 1);
|
|
1641
|
-
}
|
|
1715
|
+
if (!e || typeof e != "object")
|
|
1642
1716
|
return [e].concat(r);
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
s && typeof s == "object" && u && typeof u == "object" ? e[p] = t(s, u, n) : e.push(u);
|
|
1717
|
+
var o = e;
|
|
1718
|
+
return X(e) && !X(r) && (o = Er(e, n)), X(e) && X(r) ? (r.forEach(function(a, i) {
|
|
1719
|
+
if (Ye.call(e, i)) {
|
|
1720
|
+
var l = e[i];
|
|
1721
|
+
l && typeof l == "object" && a && typeof a == "object" ? e[i] = t(l, a, n) : e.push(a);
|
|
1649
1722
|
} else
|
|
1650
|
-
e[
|
|
1651
|
-
}), e) : Object.keys(r).reduce(function(
|
|
1652
|
-
var
|
|
1653
|
-
return
|
|
1654
|
-
},
|
|
1655
|
-
},
|
|
1723
|
+
e[i] = a;
|
|
1724
|
+
}), e) : Object.keys(r).reduce(function(a, i) {
|
|
1725
|
+
var l = r[i];
|
|
1726
|
+
return Ye.call(a, i) ? a[i] = t(a[i], l, n) : a[i] = l, a;
|
|
1727
|
+
}, o);
|
|
1728
|
+
}, Qa = function(e, r) {
|
|
1656
1729
|
return Object.keys(r).reduce(function(n, o) {
|
|
1657
1730
|
return n[o] = r[o], n;
|
|
1658
1731
|
}, e);
|
|
1659
|
-
},
|
|
1732
|
+
}, Ja = function(t, e, r) {
|
|
1660
1733
|
var n = t.replace(/\+/g, " ");
|
|
1661
1734
|
if (r === "iso-8859-1")
|
|
1662
1735
|
return n.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
@@ -1665,7 +1738,7 @@ function() {
|
|
|
1665
1738
|
} catch {
|
|
1666
1739
|
return n;
|
|
1667
1740
|
}
|
|
1668
|
-
},
|
|
1741
|
+
}, Qe = 1024, Za = function(e, r, n, o, a) {
|
|
1669
1742
|
if (e.length === 0)
|
|
1670
1743
|
return e;
|
|
1671
1744
|
var i = e;
|
|
@@ -1673,10 +1746,10 @@ function() {
|
|
|
1673
1746
|
return escape(i).replace(/%u[0-9a-f]{4}/gi, function(d) {
|
|
1674
1747
|
return "%26%23" + parseInt(d.slice(2), 16) + "%3B";
|
|
1675
1748
|
});
|
|
1676
|
-
for (var l = "", c = 0; c < i.length; c +=
|
|
1677
|
-
for (var f = i.length >=
|
|
1749
|
+
for (var l = "", c = 0; c < i.length; c += Qe) {
|
|
1750
|
+
for (var f = i.length >= Qe ? i.slice(c, c + Qe) : i, u = [], p = 0; p < f.length; ++p) {
|
|
1678
1751
|
var s = f.charCodeAt(p);
|
|
1679
|
-
if (s === 45 || s === 46 || s === 95 || s === 126 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122 || a ===
|
|
1752
|
+
if (s === 45 || s === 46 || s === 95 || s === 126 || s >= 48 && s <= 57 || s >= 65 && s <= 90 || s >= 97 && s <= 122 || a === za.RFC1738 && (s === 40 || s === 41)) {
|
|
1680
1753
|
u[u.length] = f.charAt(p);
|
|
1681
1754
|
continue;
|
|
1682
1755
|
}
|
|
@@ -1697,44 +1770,38 @@ function() {
|
|
|
1697
1770
|
l += u.join("");
|
|
1698
1771
|
}
|
|
1699
1772
|
return l;
|
|
1700
|
-
},
|
|
1773
|
+
}, ei = function(e) {
|
|
1701
1774
|
for (var r = [{ obj: { o: e }, prop: "o" }], n = [], o = 0; o < r.length; ++o)
|
|
1702
1775
|
for (var a = r[o], i = a.obj[a.prop], l = Object.keys(i), c = 0; c < l.length; ++c) {
|
|
1703
1776
|
var f = l[c], u = i[f];
|
|
1704
1777
|
typeof u == "object" && u !== null && n.indexOf(u) === -1 && (r.push({ obj: i, prop: f }), n.push(u));
|
|
1705
1778
|
}
|
|
1706
|
-
return
|
|
1707
|
-
},
|
|
1779
|
+
return Ka(r), e;
|
|
1780
|
+
}, ti = function(e) {
|
|
1708
1781
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
1709
|
-
},
|
|
1782
|
+
}, ri = function(e) {
|
|
1710
1783
|
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
|
|
1711
|
-
},
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
return e[a] = r, _r(e, a), e;
|
|
1715
|
-
}
|
|
1716
|
-
var i = [].concat(e, r);
|
|
1717
|
-
return i.length > n ? vr(ft(i, { plainObjects: o }), i.length - 1) : i;
|
|
1718
|
-
}, Ei = function(e, r) {
|
|
1784
|
+
}, ni = function(e, r) {
|
|
1785
|
+
return [].concat(e, r);
|
|
1786
|
+
}, oi = function(e, r) {
|
|
1719
1787
|
if (X(e)) {
|
|
1720
1788
|
for (var n = [], o = 0; o < e.length; o += 1)
|
|
1721
1789
|
n.push(r(e[o]));
|
|
1722
1790
|
return n;
|
|
1723
1791
|
}
|
|
1724
1792
|
return r(e);
|
|
1725
|
-
},
|
|
1726
|
-
arrayToObject:
|
|
1727
|
-
assign:
|
|
1728
|
-
combine:
|
|
1729
|
-
compact:
|
|
1730
|
-
decode:
|
|
1731
|
-
encode:
|
|
1732
|
-
isBuffer:
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
}, gr = dr, he = mr, ce = st, Si = Object.prototype.hasOwnProperty, hr = {
|
|
1793
|
+
}, _r = {
|
|
1794
|
+
arrayToObject: Er,
|
|
1795
|
+
assign: Qa,
|
|
1796
|
+
combine: ni,
|
|
1797
|
+
compact: ei,
|
|
1798
|
+
decode: Ja,
|
|
1799
|
+
encode: Za,
|
|
1800
|
+
isBuffer: ri,
|
|
1801
|
+
isRegExp: ti,
|
|
1802
|
+
maybeMap: oi,
|
|
1803
|
+
merge: Ya
|
|
1804
|
+
}, Sr = Wa, Se = _r, fe = pt, ai = Object.prototype.hasOwnProperty, Ar = {
|
|
1738
1805
|
brackets: function(e) {
|
|
1739
1806
|
return e + "[]";
|
|
1740
1807
|
},
|
|
@@ -1745,9 +1812,9 @@ function() {
|
|
|
1745
1812
|
repeat: function(e) {
|
|
1746
1813
|
return e;
|
|
1747
1814
|
}
|
|
1748
|
-
},
|
|
1749
|
-
|
|
1750
|
-
},
|
|
1815
|
+
}, D = Array.isArray, ii = Array.prototype.push, Rr = function(t, e) {
|
|
1816
|
+
ii.apply(t, D(e) ? e : [e]);
|
|
1817
|
+
}, li = Date.prototype.toISOString, Vt = fe.default, _ = {
|
|
1751
1818
|
addQueryPrefix: !1,
|
|
1752
1819
|
allowDots: !1,
|
|
1753
1820
|
allowEmptyArrays: !1,
|
|
@@ -1758,144 +1825,144 @@ function() {
|
|
|
1758
1825
|
delimiter: "&",
|
|
1759
1826
|
encode: !0,
|
|
1760
1827
|
encodeDotInKeys: !1,
|
|
1761
|
-
encoder:
|
|
1828
|
+
encoder: Se.encode,
|
|
1762
1829
|
encodeValuesOnly: !1,
|
|
1763
1830
|
filter: void 0,
|
|
1764
|
-
format:
|
|
1765
|
-
formatter:
|
|
1831
|
+
format: Vt,
|
|
1832
|
+
formatter: fe.formatters[Vt],
|
|
1766
1833
|
// deprecated
|
|
1767
1834
|
indices: !1,
|
|
1768
1835
|
serializeDate: function(e) {
|
|
1769
|
-
return
|
|
1836
|
+
return li.call(e);
|
|
1770
1837
|
},
|
|
1771
1838
|
skipNulls: !1,
|
|
1772
1839
|
strictNullHandling: !1
|
|
1773
|
-
},
|
|
1840
|
+
}, ci = function(e) {
|
|
1774
1841
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
|
|
1775
|
-
},
|
|
1776
|
-
for (var
|
|
1777
|
-
var
|
|
1778
|
-
if (
|
|
1779
|
-
if (
|
|
1842
|
+
}, Je = {}, ui = function t(e, r, n, o, a, i, l, c, f, u, p, s, d, y, g, E, R, b) {
|
|
1843
|
+
for (var h = e, I = b, T = 0, k = !1; (I = I.get(Je)) !== void 0 && !k; ) {
|
|
1844
|
+
var U = I.get(e);
|
|
1845
|
+
if (T += 1, typeof U < "u") {
|
|
1846
|
+
if (U === T)
|
|
1780
1847
|
throw new RangeError("Cyclic object value");
|
|
1781
|
-
|
|
1848
|
+
k = !0;
|
|
1782
1849
|
}
|
|
1783
|
-
typeof
|
|
1850
|
+
typeof I.get(Je) > "u" && (T = 0);
|
|
1784
1851
|
}
|
|
1785
|
-
if (typeof u == "function" ?
|
|
1786
|
-
return
|
|
1787
|
-
})),
|
|
1852
|
+
if (typeof u == "function" ? h = u(r, h) : h instanceof Date ? h = d(h) : n === "comma" && D(h) && (h = Se.maybeMap(h, function(oe) {
|
|
1853
|
+
return oe instanceof Date ? d(oe) : oe;
|
|
1854
|
+
})), h === null) {
|
|
1788
1855
|
if (i)
|
|
1789
|
-
return f && !
|
|
1790
|
-
|
|
1856
|
+
return f && !E ? f(r, _.encoder, R, "key", y) : r;
|
|
1857
|
+
h = "";
|
|
1791
1858
|
}
|
|
1792
|
-
if (
|
|
1859
|
+
if (ci(h) || Se.isBuffer(h)) {
|
|
1793
1860
|
if (f) {
|
|
1794
|
-
var
|
|
1795
|
-
return [
|
|
1861
|
+
var z = E ? r : f(r, _.encoder, R, "key", y);
|
|
1862
|
+
return [g(z) + "=" + g(f(h, _.encoder, R, "value", y))];
|
|
1796
1863
|
}
|
|
1797
|
-
return [
|
|
1864
|
+
return [g(r) + "=" + g(String(h))];
|
|
1798
1865
|
}
|
|
1799
|
-
var
|
|
1800
|
-
if (typeof
|
|
1801
|
-
return
|
|
1866
|
+
var F = [];
|
|
1867
|
+
if (typeof h > "u")
|
|
1868
|
+
return F;
|
|
1802
1869
|
var w;
|
|
1803
|
-
if (n === "comma" &&
|
|
1804
|
-
|
|
1805
|
-
else if (
|
|
1870
|
+
if (n === "comma" && D(h))
|
|
1871
|
+
E && f && (h = Se.maybeMap(h, f)), w = [{ value: h.length > 0 ? h.join(",") || null : void 0 }];
|
|
1872
|
+
else if (D(u))
|
|
1806
1873
|
w = u;
|
|
1807
1874
|
else {
|
|
1808
|
-
var
|
|
1809
|
-
w = p ?
|
|
1810
|
-
}
|
|
1811
|
-
var
|
|
1812
|
-
if (a &&
|
|
1813
|
-
return
|
|
1814
|
-
for (var
|
|
1815
|
-
var
|
|
1816
|
-
if (!(l &&
|
|
1817
|
-
var
|
|
1818
|
-
|
|
1819
|
-
var
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1875
|
+
var K = Object.keys(h);
|
|
1876
|
+
w = p ? K.sort(p) : K;
|
|
1877
|
+
}
|
|
1878
|
+
var B = c ? String(r).replace(/\./g, "%2E") : String(r), P = o && D(h) && h.length === 1 ? B + "[]" : B;
|
|
1879
|
+
if (a && D(h) && h.length === 0)
|
|
1880
|
+
return P + "[]";
|
|
1881
|
+
for (var C = 0; C < w.length; ++C) {
|
|
1882
|
+
var O = w[C], j = typeof O == "object" && O && typeof O.value < "u" ? O.value : h[O];
|
|
1883
|
+
if (!(l && j === null)) {
|
|
1884
|
+
var ne = s && c ? String(O).replace(/\./g, "%2E") : String(O), Ne = D(h) ? typeof n == "function" ? n(P, ne) : P : P + (s ? "." + ne : "[" + ne + "]");
|
|
1885
|
+
b.set(e, T);
|
|
1886
|
+
var ve = Sr();
|
|
1887
|
+
ve.set(Je, b), Rr(F, t(
|
|
1888
|
+
j,
|
|
1889
|
+
Ne,
|
|
1823
1890
|
n,
|
|
1824
1891
|
o,
|
|
1825
1892
|
a,
|
|
1826
1893
|
i,
|
|
1827
1894
|
l,
|
|
1828
1895
|
c,
|
|
1829
|
-
n === "comma" &&
|
|
1896
|
+
n === "comma" && E && D(h) ? null : f,
|
|
1830
1897
|
u,
|
|
1831
1898
|
p,
|
|
1832
1899
|
s,
|
|
1833
1900
|
d,
|
|
1834
1901
|
y,
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1902
|
+
g,
|
|
1903
|
+
E,
|
|
1904
|
+
R,
|
|
1905
|
+
ve
|
|
1839
1906
|
));
|
|
1840
1907
|
}
|
|
1841
1908
|
}
|
|
1842
|
-
return
|
|
1843
|
-
},
|
|
1909
|
+
return F;
|
|
1910
|
+
}, fi = function(e) {
|
|
1844
1911
|
if (!e)
|
|
1845
|
-
return
|
|
1912
|
+
return _;
|
|
1846
1913
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
1847
1914
|
throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
|
|
1848
1915
|
if (typeof e.encodeDotInKeys < "u" && typeof e.encodeDotInKeys != "boolean")
|
|
1849
1916
|
throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
|
|
1850
1917
|
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
|
|
1851
1918
|
throw new TypeError("Encoder has to be a function.");
|
|
1852
|
-
var r = e.charset ||
|
|
1919
|
+
var r = e.charset || _.charset;
|
|
1853
1920
|
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
|
|
1854
1921
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
|
1855
|
-
var n =
|
|
1922
|
+
var n = fe.default;
|
|
1856
1923
|
if (typeof e.format < "u") {
|
|
1857
|
-
if (!
|
|
1924
|
+
if (!ai.call(fe.formatters, e.format))
|
|
1858
1925
|
throw new TypeError("Unknown format option provided.");
|
|
1859
1926
|
n = e.format;
|
|
1860
1927
|
}
|
|
1861
|
-
var o =
|
|
1862
|
-
(typeof e.filter == "function" ||
|
|
1928
|
+
var o = fe.formatters[n], a = _.filter;
|
|
1929
|
+
(typeof e.filter == "function" || D(e.filter)) && (a = e.filter);
|
|
1863
1930
|
var i;
|
|
1864
|
-
if (e.arrayFormat in
|
|
1931
|
+
if (e.arrayFormat in Ar ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = _.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
1865
1932
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
1866
|
-
var l = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 :
|
|
1933
|
+
var l = typeof e.allowDots > "u" ? e.encodeDotInKeys === !0 ? !0 : _.allowDots : !!e.allowDots;
|
|
1867
1934
|
return {
|
|
1868
|
-
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix :
|
|
1935
|
+
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : _.addQueryPrefix,
|
|
1869
1936
|
allowDots: l,
|
|
1870
|
-
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays :
|
|
1937
|
+
allowEmptyArrays: typeof e.allowEmptyArrays == "boolean" ? !!e.allowEmptyArrays : _.allowEmptyArrays,
|
|
1871
1938
|
arrayFormat: i,
|
|
1872
1939
|
charset: r,
|
|
1873
|
-
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel :
|
|
1940
|
+
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : _.charsetSentinel,
|
|
1874
1941
|
commaRoundTrip: !!e.commaRoundTrip,
|
|
1875
|
-
delimiter: typeof e.delimiter > "u" ?
|
|
1876
|
-
encode: typeof e.encode == "boolean" ? e.encode :
|
|
1877
|
-
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys :
|
|
1878
|
-
encoder: typeof e.encoder == "function" ? e.encoder :
|
|
1879
|
-
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly :
|
|
1942
|
+
delimiter: typeof e.delimiter > "u" ? _.delimiter : e.delimiter,
|
|
1943
|
+
encode: typeof e.encode == "boolean" ? e.encode : _.encode,
|
|
1944
|
+
encodeDotInKeys: typeof e.encodeDotInKeys == "boolean" ? e.encodeDotInKeys : _.encodeDotInKeys,
|
|
1945
|
+
encoder: typeof e.encoder == "function" ? e.encoder : _.encoder,
|
|
1946
|
+
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : _.encodeValuesOnly,
|
|
1880
1947
|
filter: a,
|
|
1881
1948
|
format: n,
|
|
1882
1949
|
formatter: o,
|
|
1883
|
-
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate :
|
|
1884
|
-
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls :
|
|
1950
|
+
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : _.serializeDate,
|
|
1951
|
+
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : _.skipNulls,
|
|
1885
1952
|
sort: typeof e.sort == "function" ? e.sort : null,
|
|
1886
|
-
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling :
|
|
1953
|
+
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : _.strictNullHandling
|
|
1887
1954
|
};
|
|
1888
|
-
},
|
|
1889
|
-
var r = t, n =
|
|
1890
|
-
typeof n.filter == "function" ? (a = n.filter, r = a("", r)) :
|
|
1955
|
+
}, si = function(t, e) {
|
|
1956
|
+
var r = t, n = fi(e), o, a;
|
|
1957
|
+
typeof n.filter == "function" ? (a = n.filter, r = a("", r)) : D(n.filter) && (a = n.filter, o = a);
|
|
1891
1958
|
var i = [];
|
|
1892
1959
|
if (typeof r != "object" || r === null)
|
|
1893
1960
|
return "";
|
|
1894
|
-
var l =
|
|
1961
|
+
var l = Ar[n.arrayFormat], c = l === "comma" && n.commaRoundTrip;
|
|
1895
1962
|
o || (o = Object.keys(r)), n.sort && o.sort(n.sort);
|
|
1896
|
-
for (var f =
|
|
1963
|
+
for (var f = Sr(), u = 0; u < o.length; ++u) {
|
|
1897
1964
|
var p = o[u], s = r[p];
|
|
1898
|
-
n.skipNulls && s === null ||
|
|
1965
|
+
n.skipNulls && s === null || Rr(i, ui(
|
|
1899
1966
|
s,
|
|
1900
1967
|
p,
|
|
1901
1968
|
l,
|
|
@@ -1918,7 +1985,7 @@ function() {
|
|
|
1918
1985
|
}
|
|
1919
1986
|
var d = i.join(n.delimiter), y = n.addQueryPrefix === !0 ? "?" : "";
|
|
1920
1987
|
return n.charsetSentinel && (n.charset === "iso-8859-1" ? y += "utf8=%26%2310003%3B&" : y += "utf8=%E2%9C%93&"), d.length > 0 ? y + d : "";
|
|
1921
|
-
},
|
|
1988
|
+
}, q = _r, at = Object.prototype.hasOwnProperty, zt = Array.isArray, m = {
|
|
1922
1989
|
allowDots: !1,
|
|
1923
1990
|
allowEmptyArrays: !1,
|
|
1924
1991
|
allowPrototypes: !1,
|
|
@@ -1928,7 +1995,7 @@ function() {
|
|
|
1928
1995
|
charsetSentinel: !1,
|
|
1929
1996
|
comma: !1,
|
|
1930
1997
|
decodeDotInKeys: !1,
|
|
1931
|
-
decoder:
|
|
1998
|
+
decoder: q.decode,
|
|
1932
1999
|
delimiter: "&",
|
|
1933
2000
|
depth: 5,
|
|
1934
2001
|
duplicates: "combine",
|
|
@@ -1940,17 +2007,17 @@ function() {
|
|
|
1940
2007
|
strictDepth: !1,
|
|
1941
2008
|
strictNullHandling: !1,
|
|
1942
2009
|
throwOnLimitExceeded: !1
|
|
1943
|
-
},
|
|
2010
|
+
}, pi = function(t) {
|
|
1944
2011
|
return t.replace(/&#(\d+);/g, function(e, r) {
|
|
1945
2012
|
return String.fromCharCode(parseInt(r, 10));
|
|
1946
2013
|
});
|
|
1947
|
-
},
|
|
2014
|
+
}, Pr = function(t, e, r) {
|
|
1948
2015
|
if (t && typeof t == "string" && e.comma && t.indexOf(",") > -1)
|
|
1949
2016
|
return t.split(",");
|
|
1950
2017
|
if (e.throwOnLimitExceeded && r >= e.arrayLimit)
|
|
1951
2018
|
throw new RangeError("Array limit exceeded. Only " + e.arrayLimit + " element" + (e.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
|
|
1952
2019
|
return t;
|
|
1953
|
-
},
|
|
2020
|
+
}, yi = "utf8=%26%2310003%3B", di = "utf8=%E2%9C%93", vi = function(e, r) {
|
|
1954
2021
|
var n = { __proto__: null }, o = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
|
|
1955
2022
|
o = o.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
1956
2023
|
var a = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, i = o.split(
|
|
@@ -1962,45 +2029,34 @@ function() {
|
|
|
1962
2029
|
var l = -1, c, f = r.charset;
|
|
1963
2030
|
if (r.charsetSentinel)
|
|
1964
2031
|
for (c = 0; c < i.length; ++c)
|
|
1965
|
-
i[c].indexOf("utf8=") === 0 && (i[c] ===
|
|
2032
|
+
i[c].indexOf("utf8=") === 0 && (i[c] === di ? f = "utf-8" : i[c] === yi && (f = "iso-8859-1"), l = c, c = i.length);
|
|
1966
2033
|
for (c = 0; c < i.length; ++c)
|
|
1967
2034
|
if (c !== l) {
|
|
1968
2035
|
var u = i[c], p = u.indexOf("]="), s = p === -1 ? u.indexOf("=") : p + 1, d, y;
|
|
1969
|
-
|
|
1970
|
-
|
|
2036
|
+
s === -1 ? (d = r.decoder(u, m.decoder, f, "key"), y = r.strictNullHandling ? null : "") : (d = r.decoder(u.slice(0, s), m.decoder, f, "key"), y = q.maybeMap(
|
|
2037
|
+
Pr(
|
|
1971
2038
|
u.slice(s + 1),
|
|
1972
2039
|
r,
|
|
1973
|
-
|
|
2040
|
+
zt(n[d]) ? n[d].length : 0
|
|
1974
2041
|
),
|
|
1975
|
-
function(
|
|
1976
|
-
return r.decoder(
|
|
2042
|
+
function(E) {
|
|
2043
|
+
return r.decoder(E, m.decoder, f, "value");
|
|
1977
2044
|
}
|
|
1978
|
-
))
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
n[d],
|
|
1982
|
-
y,
|
|
1983
|
-
r.arrayLimit,
|
|
1984
|
-
r.plainObjects
|
|
1985
|
-
) : (!h || r.duplicates === "last") && (n[d] = y);
|
|
1986
|
-
}
|
|
2045
|
+
)), y && r.interpretNumericEntities && f === "iso-8859-1" && (y = pi(String(y))), u.indexOf("[]=") > -1 && (y = zt(y) ? [y] : y);
|
|
2046
|
+
var g = at.call(n, d);
|
|
2047
|
+
g && r.duplicates === "combine" ? n[d] = q.combine(n[d], y) : (!g || r.duplicates === "last") && (n[d] = y);
|
|
1987
2048
|
}
|
|
1988
2049
|
return n;
|
|
1989
|
-
},
|
|
2050
|
+
}, hi = function(t, e, r, n) {
|
|
1990
2051
|
var o = 0;
|
|
1991
2052
|
if (t.length > 0 && t[t.length - 1] === "[]") {
|
|
1992
2053
|
var a = t.slice(0, -1).join("");
|
|
1993
2054
|
o = Array.isArray(e) && e[a] ? e[a].length : 0;
|
|
1994
2055
|
}
|
|
1995
|
-
for (var i = n ? e :
|
|
2056
|
+
for (var i = n ? e : Pr(e, r, o), l = t.length - 1; l >= 0; --l) {
|
|
1996
2057
|
var c, f = t[l];
|
|
1997
2058
|
if (f === "[]" && r.parseArrays)
|
|
1998
|
-
|
|
1999
|
-
[],
|
|
2000
|
-
i,
|
|
2001
|
-
r.arrayLimit,
|
|
2002
|
-
r.plainObjects
|
|
2003
|
-
);
|
|
2059
|
+
c = r.allowEmptyArrays && (i === "" || r.strictNullHandling && i === null) ? [] : q.combine([], i);
|
|
2004
2060
|
else {
|
|
2005
2061
|
c = r.plainObjects ? { __proto__: null } : {};
|
|
2006
2062
|
var u = f.charAt(0) === "[" && f.charAt(f.length - 1) === "]" ? f.slice(1, -1) : f, p = r.decodeDotInKeys ? u.replace(/%2E/g, ".") : u, s = parseInt(p, 10);
|
|
@@ -2009,36 +2065,27 @@ function() {
|
|
|
2009
2065
|
i = c;
|
|
2010
2066
|
}
|
|
2011
2067
|
return i;
|
|
2012
|
-
},
|
|
2013
|
-
var n = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e;
|
|
2014
|
-
if (r.depth <= 0)
|
|
2015
|
-
return !r.plainObjects && Ee.call(Object.prototype, n) && !r.allowPrototypes ? void 0 : [n];
|
|
2016
|
-
var o = /(\[[^[\]]*])/, a = /(\[[^[\]]*])/g, i = o.exec(n), l = i ? n.slice(0, i.index) : n, c = [];
|
|
2017
|
-
if (l) {
|
|
2018
|
-
if (!r.plainObjects && Ee.call(Object.prototype, l) && !r.allowPrototypes)
|
|
2019
|
-
return;
|
|
2020
|
-
c.push(l);
|
|
2021
|
-
}
|
|
2022
|
-
for (var f = 0; (i = a.exec(n)) !== null && f < r.depth; ) {
|
|
2023
|
-
f += 1;
|
|
2024
|
-
var u = i[1].slice(1, -1);
|
|
2025
|
-
if (!r.plainObjects && Ee.call(Object.prototype, u) && !r.allowPrototypes)
|
|
2026
|
-
return;
|
|
2027
|
-
c.push(i[1]);
|
|
2028
|
-
}
|
|
2029
|
-
if (i) {
|
|
2030
|
-
if (r.strictDepth === !0)
|
|
2031
|
-
throw new RangeError("Input depth exceeded depth option of " + r.depth + " and strictDepth is true");
|
|
2032
|
-
c.push("[" + n.slice(i.index) + "]");
|
|
2033
|
-
}
|
|
2034
|
-
return c;
|
|
2035
|
-
}, $i = function(e, r, n, o) {
|
|
2068
|
+
}, gi = function(e, r, n, o) {
|
|
2036
2069
|
if (e) {
|
|
2037
|
-
var a =
|
|
2038
|
-
if (
|
|
2039
|
-
|
|
2070
|
+
var a = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, i = /(\[[^[\]]*])/, l = /(\[[^[\]]*])/g, c = n.depth > 0 && i.exec(a), f = c ? a.slice(0, c.index) : a, u = [];
|
|
2071
|
+
if (f) {
|
|
2072
|
+
if (!n.plainObjects && at.call(Object.prototype, f) && !n.allowPrototypes)
|
|
2073
|
+
return;
|
|
2074
|
+
u.push(f);
|
|
2075
|
+
}
|
|
2076
|
+
for (var p = 0; n.depth > 0 && (c = l.exec(a)) !== null && p < n.depth; ) {
|
|
2077
|
+
if (p += 1, !n.plainObjects && at.call(Object.prototype, c[1].slice(1, -1)) && !n.allowPrototypes)
|
|
2078
|
+
return;
|
|
2079
|
+
u.push(c[1]);
|
|
2080
|
+
}
|
|
2081
|
+
if (c) {
|
|
2082
|
+
if (n.strictDepth === !0)
|
|
2083
|
+
throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
|
|
2084
|
+
u.push("[" + a.slice(c.index) + "]");
|
|
2085
|
+
}
|
|
2086
|
+
return hi(u, r, n, o);
|
|
2040
2087
|
}
|
|
2041
|
-
},
|
|
2088
|
+
}, mi = function(e) {
|
|
2042
2089
|
if (!e)
|
|
2043
2090
|
return m;
|
|
2044
2091
|
if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
|
|
@@ -2066,7 +2113,7 @@ function() {
|
|
|
2066
2113
|
comma: typeof e.comma == "boolean" ? e.comma : m.comma,
|
|
2067
2114
|
decodeDotInKeys: typeof e.decodeDotInKeys == "boolean" ? e.decodeDotInKeys : m.decodeDotInKeys,
|
|
2068
2115
|
decoder: typeof e.decoder == "function" ? e.decoder : m.decoder,
|
|
2069
|
-
delimiter: typeof e.delimiter == "string" ||
|
|
2116
|
+
delimiter: typeof e.delimiter == "string" || q.isRegExp(e.delimiter) ? e.delimiter : m.delimiter,
|
|
2070
2117
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
2071
2118
|
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : m.depth,
|
|
2072
2119
|
duplicates: n,
|
|
@@ -2079,24 +2126,24 @@ function() {
|
|
|
2079
2126
|
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : m.strictNullHandling,
|
|
2080
2127
|
throwOnLimitExceeded: typeof e.throwOnLimitExceeded == "boolean" ? e.throwOnLimitExceeded : !1
|
|
2081
2128
|
};
|
|
2082
|
-
},
|
|
2083
|
-
var r =
|
|
2129
|
+
}, Ei = function(t, e) {
|
|
2130
|
+
var r = mi(e);
|
|
2084
2131
|
if (t === "" || t === null || typeof t > "u")
|
|
2085
2132
|
return r.plainObjects ? { __proto__: null } : {};
|
|
2086
|
-
for (var n = typeof t == "string" ?
|
|
2087
|
-
var l = a[i], c =
|
|
2088
|
-
o =
|
|
2089
|
-
}
|
|
2090
|
-
return r.allowSparse === !0 ? o :
|
|
2091
|
-
},
|
|
2092
|
-
formats:
|
|
2093
|
-
parse:
|
|
2094
|
-
stringify:
|
|
2133
|
+
for (var n = typeof t == "string" ? vi(t, r) : t, o = r.plainObjects ? { __proto__: null } : {}, a = Object.keys(n), i = 0; i < a.length; ++i) {
|
|
2134
|
+
var l = a[i], c = gi(l, n[l], r, typeof t == "string");
|
|
2135
|
+
o = q.merge(o, c, r);
|
|
2136
|
+
}
|
|
2137
|
+
return r.allowSparse === !0 ? o : q.compact(o);
|
|
2138
|
+
}, _i = si, Si = Ei, Ai = pt, Ri = {
|
|
2139
|
+
formats: Ai,
|
|
2140
|
+
parse: Si,
|
|
2141
|
+
stringify: _i
|
|
2095
2142
|
};
|
|
2096
|
-
const
|
|
2097
|
-
async function
|
|
2143
|
+
const Pi = /* @__PURE__ */ yn(Ri);
|
|
2144
|
+
async function Ce(t, e = {}, r) {
|
|
2098
2145
|
const { cms: n = "cms" } = e;
|
|
2099
|
-
return fetch(`${t.href}?${
|
|
2146
|
+
return fetch(`${t.href}?${Pi.stringify(e)}`, {
|
|
2100
2147
|
method: "GET",
|
|
2101
2148
|
cache: r ? "no-store" : "default",
|
|
2102
2149
|
headers: {
|
|
@@ -2107,18 +2154,18 @@ async function Ne(t, e = {}, r) {
|
|
|
2107
2154
|
}
|
|
2108
2155
|
});
|
|
2109
2156
|
}
|
|
2110
|
-
function
|
|
2157
|
+
function yt(t, e) {
|
|
2111
2158
|
return !(e != null && e.cms) || (e == null ? void 0 : e.cms) === "vtex" ? `https://${e == null ? void 0 : e.storeId}.myvtex.com/_v/cms/api/${e == null ? void 0 : e.name}/${t}` : String(
|
|
2112
2159
|
new URL(`api/${t}`, process.env.NEXT_PUBLIC_API_URL)
|
|
2113
2160
|
);
|
|
2114
2161
|
}
|
|
2115
|
-
function
|
|
2162
|
+
function Or(t) {
|
|
2116
2163
|
return Array.isArray(t) && t.length > 0 ? t[0] : Array.isArray(t) ? null : t;
|
|
2117
2164
|
}
|
|
2118
2165
|
async function br(t, e = [], r = {}) {
|
|
2119
2166
|
var n;
|
|
2120
2167
|
if ((r == null ? void 0 : r.contentType) === t) {
|
|
2121
|
-
const o = (r == null ? void 0 : r.previewMode) === "true", a = (r == null ? void 0 : r.documentId) ?? "", i = a && ((n = String(a)) != null && n.length) ? `/${r.documentId}` : "", l = new URL(
|
|
2168
|
+
const o = (r == null ? void 0 : r.previewMode) === "true", a = (r == null ? void 0 : r.documentId) ?? "", i = a && ((n = String(a)) != null && n.length) ? `/${r.documentId}` : "", l = new URL(yt(`${t}${i}`, r)), c = await Ce(l, r, o);
|
|
2122
2169
|
if (!c.ok)
|
|
2123
2170
|
return console.error(`[Error fetching preview data]: ${t} - status: ${c.statusText}`), [];
|
|
2124
2171
|
const f = await c.json(), u = e.findIndex((p) => p.documentId === f.id);
|
|
@@ -2126,15 +2173,15 @@ async function br(t, e = [], r = {}) {
|
|
|
2126
2173
|
}
|
|
2127
2174
|
return e;
|
|
2128
2175
|
}
|
|
2129
|
-
const
|
|
2176
|
+
const Hi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2130
2177
|
__proto__: null,
|
|
2131
|
-
createUrl:
|
|
2132
|
-
fetchCMS:
|
|
2178
|
+
createUrl: yt,
|
|
2179
|
+
fetchCMS: Ce,
|
|
2133
2180
|
mergePreviewDocument: br,
|
|
2134
|
-
spreadStrapiData:
|
|
2181
|
+
spreadStrapiData: Or
|
|
2135
2182
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2136
|
-
async function
|
|
2137
|
-
const n = !!(e != null && e.previewMode), o = await
|
|
2183
|
+
async function Ir(t, e = {}, r) {
|
|
2184
|
+
const n = !!(e != null && e.previewMode), o = await Ce(t, e, n);
|
|
2138
2185
|
if (!o.ok)
|
|
2139
2186
|
return console.log(
|
|
2140
2187
|
`Failed to fetch Strapi (url=${String(t)}, status=${o.status})`
|
|
@@ -2142,15 +2189,15 @@ async function Rr(t, e = {}, r) {
|
|
|
2142
2189
|
const { data: a } = await o.json();
|
|
2143
2190
|
return a ? {
|
|
2144
2191
|
status: 200,
|
|
2145
|
-
data: r ?
|
|
2192
|
+
data: r ? Or(a) : a
|
|
2146
2193
|
} : { status: 404, data: [], error: "No data found" };
|
|
2147
2194
|
}
|
|
2148
|
-
async function
|
|
2195
|
+
async function Tr(t, e, r = {}) {
|
|
2149
2196
|
const n = (r == null ? void 0 : r.previewId) ?? "", o = (r == null ? void 0 : r.previewMode) === "true", a = { ...r, versionId: n }, i = [];
|
|
2150
2197
|
let l = 1, c = 0, f = !0;
|
|
2151
2198
|
try {
|
|
2152
2199
|
do {
|
|
2153
|
-
const u = await
|
|
2200
|
+
const u = await Ce(e, { ...a, page: l }, o).then((p) => p.json()).catch((p) => (console.error("Error fetching VTEX CMS data:", p), console.error("Error URL:", e.toString()), null));
|
|
2154
2201
|
l === 1 && (c = u.totalItems), Array.isArray(u == null ? void 0 : u.data) && i.push(...u.data), f = !!(u != null && u.hasNextPage), l++;
|
|
2155
2202
|
} while (f && i.length < c);
|
|
2156
2203
|
if (o && i.length > 0) {
|
|
@@ -2180,12 +2227,12 @@ async function Or(t, e, r = {}) {
|
|
|
2180
2227
|
};
|
|
2181
2228
|
}
|
|
2182
2229
|
}
|
|
2183
|
-
const
|
|
2230
|
+
const ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2184
2231
|
__proto__: null,
|
|
2185
|
-
strapiCMSData:
|
|
2186
|
-
vtexCMSData:
|
|
2232
|
+
strapiCMSData: Ir,
|
|
2233
|
+
vtexCMSData: Tr
|
|
2187
2234
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2188
|
-
async function
|
|
2235
|
+
async function Oi({
|
|
2189
2236
|
contentType: t,
|
|
2190
2237
|
documentId: e,
|
|
2191
2238
|
versionId: r,
|
|
@@ -2198,58 +2245,63 @@ async function Gi({
|
|
|
2198
2245
|
{ cache: "no-cache" }
|
|
2199
2246
|
);
|
|
2200
2247
|
}
|
|
2201
|
-
async function
|
|
2248
|
+
async function bi(t, e = {}, r) {
|
|
2202
2249
|
const { cms: n = "vtex" } = e ?? {};
|
|
2203
2250
|
try {
|
|
2204
|
-
const o = new URL(
|
|
2205
|
-
return n !== "vtex" ?
|
|
2251
|
+
const o = new URL(yt(t, e));
|
|
2252
|
+
return n !== "vtex" ? Ir(o, e, r) : Tr(t, o, e);
|
|
2206
2253
|
} catch (o) {
|
|
2207
2254
|
return console.error(`[Fetch ContentType Error CMS ${n}]`, o), r ? { status: 400, data: null } : { status: 200, data: [] };
|
|
2208
2255
|
}
|
|
2209
2256
|
}
|
|
2210
|
-
const
|
|
2257
|
+
const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2211
2258
|
__proto__: null,
|
|
2212
|
-
fetchContentType:
|
|
2213
|
-
getCMSContentType:
|
|
2259
|
+
fetchContentType: bi,
|
|
2260
|
+
getCMSContentType: Oi
|
|
2214
2261
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2215
2262
|
export {
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2263
|
+
zr as A,
|
|
2264
|
+
en as B,
|
|
2265
|
+
$i as C,
|
|
2266
|
+
Ci as D,
|
|
2267
|
+
Li as E,
|
|
2268
|
+
Cn as F,
|
|
2269
|
+
bi as G,
|
|
2270
|
+
Zt as H,
|
|
2271
|
+
Di as I,
|
|
2272
|
+
Ui as J,
|
|
2273
|
+
Ni as K,
|
|
2274
|
+
xi as L,
|
|
2275
|
+
Bi as M,
|
|
2276
|
+
ji as N,
|
|
2277
|
+
Hi as O,
|
|
2278
|
+
ki as P,
|
|
2279
|
+
Mi as Q,
|
|
2280
|
+
Gi as S,
|
|
2281
|
+
Yr as a,
|
|
2282
|
+
Zr as b,
|
|
2283
|
+
Vr as c,
|
|
2284
|
+
Qr as d,
|
|
2285
|
+
wi as e,
|
|
2286
|
+
Ze as f,
|
|
2287
|
+
qr as g,
|
|
2288
|
+
Xr as h,
|
|
2289
|
+
Jr as i,
|
|
2290
|
+
it as j,
|
|
2291
|
+
Qt as k,
|
|
2292
|
+
hn as l,
|
|
2293
|
+
gn as m,
|
|
2294
|
+
mn as n,
|
|
2295
|
+
En as o,
|
|
2296
|
+
Fi as p,
|
|
2297
|
+
Jt as q,
|
|
2298
|
+
vn as r,
|
|
2299
|
+
Kt as s,
|
|
2300
|
+
yn as t,
|
|
2301
|
+
tn as u,
|
|
2302
|
+
Tn as v,
|
|
2303
|
+
Wr as w,
|
|
2304
|
+
rn as x,
|
|
2305
|
+
on as y,
|
|
2306
|
+
he as z
|
|
2255
2307
|
};
|