@soma-vertical-web/multi-lib 1.0.21 → 1.0.22

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