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

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