@soma-vertical-web/multi-lib 1.0.32 → 1.0.34

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