@soma-vertical-web/multi-lib 1.0.26 → 1.0.27

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