@soma-vertical-web/multi-lib 1.0.33 → 1.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/constants.d.ts +1 -0
  2. package/contexts/contexts/newsletter/Context.d.ts +1 -1
  3. package/contexts/contexts/plp/FilterContext.d.ts +1 -1
  4. package/contexts/contexts/plp/PLPContext.d.ts +1 -1
  5. package/contexts/contexts/plp/PLPInfiniteContext.d.ts +6 -0
  6. package/contexts/contexts/plp/PLPInfiniteContext.tsx.d.ts +1 -1
  7. package/contexts/contexts/search/Search.d.ts +1 -1
  8. package/contexts/hooks/useScrollRestorationInfinite.d.ts +1 -1
  9. package/contexts/index.d.ts +4 -16
  10. package/contexts/store/plp.d.ts +2 -2
  11. package/data/api/DitoIngest/authorization/index.d.ts +1 -0
  12. package/data/api/DitoIngest/ditoIngestService.d.ts +3 -0
  13. package/data/helpers/plp/index.d.ts +4 -13
  14. package/data/helpers/search/facets.d.ts +1 -0
  15. package/data/helpers/search/index.d.ts +4 -0
  16. package/data/helpers/search/product/index.d.ts +13 -1
  17. package/data/helpers/search/search.d.ts +1 -0
  18. package/data/index.d.ts +2 -0
  19. package/index-AgO_aUeQ.mjs +2371 -0
  20. package/index-Cqk3VcE0.js +4 -0
  21. package/index-D0PGMDh5.js +4 -0
  22. package/index-DctCSt6v.mjs +2695 -0
  23. package/index.js +17 -17
  24. package/index.mjs +11380 -9243
  25. package/index2.js +2 -2
  26. package/index2.mjs +736 -653
  27. package/layout/index.d.ts +4 -4
  28. package/layout/team-component/Newsletter/index.d.ts +1 -1
  29. package/layout/template/PDC/Composite/InfiniteScroller/Banners/Banners.d.ts +1 -1
  30. package/layout/template/PDC/Composite/InfiniteScroller/Filters/Filters.d.ts +2 -6
  31. package/layout/template/PDC/Composite/InfiniteScroller/InfiniteScroller.d.ts +3 -1
  32. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Card.d.ts +1 -1
  33. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/Loader.d.ts +1 -1
  34. package/layout/template/PDC/Composite/InfiniteScroller/Page/Composite/NextPage.d.ts +4 -1
  35. package/layout/template/PDC/Composite/InfiniteScroller/Page/Page.d.ts +2 -2
  36. package/layout/template/PDC/Composite/InfiniteScroller/Page/index.d.ts +10 -3
  37. package/layout/template/PDC/Composite/Pagination/Pagination.d.ts +1 -1
  38. package/layout/template/PDC/PDC.d.ts +1 -1
  39. package/layout/template/PDC/index.d.ts +2 -2
  40. package/layout/template/PDP/Composite/Info/MainContent/Similars/index.d.ts +1 -1
  41. package/layout/template/SearchResult/Composite/Products.d.ts +1 -1
  42. package/package.json +1 -1
  43. package/server.d.ts +6 -0
  44. package/style.css +1 -1
  45. package/types/cms/Sections/Newsletter/index.d.ts +4 -0
  46. package/types/contexts/contexts/plp.d.ts +62 -20
  47. package/types/contexts/contexts/search.d.ts +29 -28
  48. package/types/contexts/hooks/index.d.ts +0 -2
  49. package/types/data/api/dito-ingest/index.d.ts +12 -1
  50. package/types/layout/team-components/Newsletter/index.d.ts +6 -0
  51. package/types/layout/team-components/PLPNavigation/index.d.ts +0 -2
  52. package/types/layout/templates/PDP/index.d.ts +0 -1
  53. package/types/layout/templates/PLP/index.d.ts +14 -4
package/index2.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import { jsx as O, jsxs as pe, Fragment as W } from "react/jsx-runtime";
2
- import { a0 as F, U as oe, a1 as yt, a2 as T, a3 as _t, a4 as Rt, a5 as It, a as xt, H as Pt, L as St, I as Ct, O as kt, J as Be, M as Et, N as At, K as Ot, Z as Tt, Y as qt, a6 as Nt, y as jt, a7 as Ft, a8 as $t, a9 as Lt, aa as Dt, B as Ut, ab as Ht } from "./index-ekZLWJ5-.mjs";
3
- import { Utils as se, helpers as le } from "@soma-vertical-web/core-components";
1
+ import { jsx as T, jsxs as pe, Fragment as W } from "react/jsx-runtime";
2
+ import { a3 as F, W as oe, a4 as _t, a5 as j, a6 as Rt, a7 as It, a8 as Pt, a as xt, J as St, N as Ct, K as kt, Q as Et, L as Be, O as Ot, P as At, M as Tt, B as jt, a9 as qt, aa as Nt, ab as Ft, ac as $t, D as Lt, ad as Dt, ae as Ut } from "./index-DctCSt6v.mjs";
3
+ import { Utils as se, helpers as ce } from "@soma-vertical-web/core-components";
4
4
  import * as l from "yup";
5
5
  import Mt from "sanitize-html";
6
- import { decodeJwt as Bt } from "jose";
7
- import zt from "axios";
8
- const Gt = async ({
6
+ import { decodeJwt as Ht } from "jose";
7
+ import Bt from "axios";
8
+ const zt = async ({
9
9
  children: e,
10
10
  ClientCartProvider: t,
11
11
  ...r
@@ -14,8 +14,8 @@ const Gt = async ({
14
14
  "mini_cart",
15
15
  r
16
16
  );
17
- return /* @__PURE__ */ O(t, { ...n ? Array.isArray(n) ? { data: n[0] } : { data: n } : {}, children: e });
18
- }, Vt = ({
17
+ return /* @__PURE__ */ T(t, { ...n ? Array.isArray(n) ? { data: n[0] } : { data: n } : {}, children: e });
18
+ }, Gt = ({
19
19
  slug: e,
20
20
  data: t,
21
21
  SectionZone: r,
@@ -23,41 +23,41 @@ const Gt = async ({
23
23
  identifyWhoIsFirst: a
24
24
  }) => {
25
25
  const o = t == null ? void 0 : t.find(
26
- (u) => {
27
- var w, v, y, _;
28
- return ((v = (w = u.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "desktop" && ((_ = (y = u.config) == null ? void 0 : y.seo) == null ? void 0 : _.slug) === e;
26
+ (d) => {
27
+ var w, v, y, R;
28
+ return ((v = (w = d.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "desktop" && ((R = (y = d.config) == null ? void 0 : y.seo) == null ? void 0 : R.slug) === e;
29
29
  }
30
- ), c = o == null ? void 0 : o.config.responsive.gapCustom, i = o == null ? void 0 : o.config.responsive.gapSections, d = t == null ? void 0 : t.find(
31
- (u) => {
32
- var w, v, y, _;
33
- return ((v = (w = u.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "mobile" && ((_ = (y = u.config) == null ? void 0 : y.seo) == null ? void 0 : _.slug) === e;
30
+ ), c = o == null ? void 0 : o.config.responsive.gapCustom, i = o == null ? void 0 : o.config.responsive.gapSections, u = t == null ? void 0 : t.find(
31
+ (d) => {
32
+ var w, v, y, R;
33
+ return ((v = (w = d.config) == null ? void 0 : w.responsive) == null ? void 0 : v.deviceType) === "mobile" && ((R = (y = d.config) == null ? void 0 : y.seo) == null ? void 0 : R.slug) === e;
34
34
  }
35
- ), g = d == null ? void 0 : d.config.responsive.gapCustom, s = d == null ? void 0 : d.config.responsive.gapSections;
35
+ ), g = u == null ? void 0 : u.config.responsive.gapCustom, s = u == null ? void 0 : u.config.responsive.gapSections;
36
36
  return /* @__PURE__ */ pe(W, { children: [
37
- /* @__PURE__ */ O(
37
+ /* @__PURE__ */ T(
38
38
  se.Column,
39
39
  {
40
40
  gap: c && i ? i : n,
41
- className: le.classNameConcat(
41
+ className: ce.classNameConcat(
42
42
  oe["responsive-desktop-flex"],
43
43
  "utils-column-modifier"
44
44
  ),
45
- children: /* @__PURE__ */ O(r, { data: (o == null ? void 0 : o.sections) ?? [], identifyWhoIsFirst: a })
45
+ children: /* @__PURE__ */ T(r, { data: (o == null ? void 0 : o.sections) ?? [], identifyWhoIsFirst: a })
46
46
  }
47
47
  ),
48
- /* @__PURE__ */ O(
48
+ /* @__PURE__ */ T(
49
49
  se.Column,
50
50
  {
51
51
  gap: g && s ? s : n,
52
- className: le.classNameConcat(
52
+ className: ce.classNameConcat(
53
53
  oe["responsive-mobile-flex"],
54
54
  "utils-column-modifier"
55
55
  ),
56
- children: /* @__PURE__ */ O(r, { data: (d == null ? void 0 : d.sections) ?? [], identifyWhoIsFirst: a })
56
+ children: /* @__PURE__ */ T(r, { data: (u == null ? void 0 : u.sections) ?? [], identifyWhoIsFirst: a })
57
57
  }
58
58
  )
59
59
  ] });
60
- }, Wt = async ({
60
+ }, Vt = async ({
61
61
  slug: e,
62
62
  SectionZone: t,
63
63
  COMMON_PAGE_COLUMN_GAP: r,
@@ -68,8 +68,8 @@ const Gt = async ({
68
68
  "common_page",
69
69
  a
70
70
  );
71
- return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ O(
72
- Vt,
71
+ return !o || !Array.isArray(o) || o.length === 0 ? null : /* @__PURE__ */ T(
72
+ Gt,
73
73
  {
74
74
  data: o,
75
75
  slug: e,
@@ -78,7 +78,7 @@ const Gt = async ({
78
78
  identifyWhoIsFirst: n
79
79
  }
80
80
  );
81
- }, Qt = async ({
81
+ }, Wt = async ({
82
82
  children: e,
83
83
  ClientFlagsAndTagsProvider: t,
84
84
  ...r
@@ -87,8 +87,8 @@ const Gt = async ({
87
87
  "flags_and_tags",
88
88
  r
89
89
  );
90
- return !n || !Array.isArray(n) ? null : /* @__PURE__ */ O(t, { data: n[0], children: e });
91
- }, Xt = async ({
90
+ return !n || !Array.isArray(n) ? null : /* @__PURE__ */ T(t, { data: n[0], children: e });
91
+ }, Qt = async ({
92
92
  className: e,
93
93
  PAYMENT_FLAGS_DICTIONARY: t,
94
94
  PAYMENT_FLAGS: r,
@@ -97,33 +97,33 @@ const Gt = async ({
97
97
  SectionZone: o,
98
98
  Footer: c,
99
99
  FooterSupport: i,
100
- hasFooterStamps: d,
100
+ hasFooterStamps: u,
101
101
  ...g
102
102
  }) => {
103
- var v, y, _, p, b, m, f, h, E, N, I;
104
- const { data: s } = await F("footer", g), u = Array.isArray(s) && ((v = s[0]) == null ? void 0 : v.type) === "footer" ? s[0] : null, w = {
105
- ...(y = u == null ? void 0 : u.paymentInfo) == null ? void 0 : y.paymentInfo,
103
+ var v, y, R, p, b, m, f, h, C, A, _;
104
+ const { data: s } = await F("footer", g), d = Array.isArray(s) && ((v = s[0]) == null ? void 0 : v.type) === "footer" ? s[0] : null, w = {
105
+ ...(y = d == null ? void 0 : d.paymentInfo) == null ? void 0 : y.paymentInfo,
106
106
  acceptedFlags: Array.isArray(
107
- (_ = u == null ? void 0 : u.paymentInfo) == null ? void 0 : _.paymentInfo.acceptedFlags
108
- ) ? (p = u == null ? void 0 : u.paymentInfo) == null ? void 0 : p.paymentInfo.acceptedFlags.filter((R) => !!t[R]).map(
109
- (R) => t[R]
107
+ (R = d == null ? void 0 : d.paymentInfo) == null ? void 0 : R.paymentInfo.acceptedFlags
108
+ ) ? (p = d == null ? void 0 : d.paymentInfo) == null ? void 0 : p.paymentInfo.acceptedFlags.filter((I) => !!t[I]).map(
109
+ (I) => t[I]
110
110
  ) : []
111
111
  };
112
- return u ? /* @__PURE__ */ O(
112
+ return d ? /* @__PURE__ */ T(
113
113
  c,
114
114
  {
115
115
  className: e,
116
- data: { ...u },
117
- socialInfo: (b = u.socialMedia) == null ? void 0 : b.socialMedia,
118
- socialMedias: (f = (m = u.socialMedia) == null ? void 0 : m.socialMedia) == null ? void 0 : f.medias,
116
+ data: { ...d },
117
+ socialInfo: (b = d.socialMedia) == null ? void 0 : b.socialMedia,
118
+ socialMedias: (f = (m = d.socialMedia) == null ? void 0 : m.socialMedia) == null ? void 0 : f.medias,
119
119
  payments: w,
120
- hasFooterStamps: d,
120
+ hasFooterStamps: u,
121
121
  adornment: {
122
- ...(E = (h = u.supportInfo) == null ? void 0 : h.supportInfo) != null && E.content ? {
123
- bottom: /* @__PURE__ */ O(
122
+ ...(C = (h = d.supportInfo) == null ? void 0 : h.supportInfo) != null && C.content ? {
123
+ bottom: /* @__PURE__ */ T(
124
124
  i,
125
125
  {
126
- content: (I = (N = u.supportInfo) == null ? void 0 : N.supportInfo) == null ? void 0 : I.content,
126
+ content: (_ = (A = d.supportInfo) == null ? void 0 : A.supportInfo) == null ? void 0 : _.content,
127
127
  CONSTANTS: {
128
128
  ICONS: a,
129
129
  PAYMENT_FLAGS: r,
@@ -132,35 +132,35 @@ const Gt = async ({
132
132
  }
133
133
  )
134
134
  } : {},
135
- ...u.sections.length ? { top: /* @__PURE__ */ O(o, { data: u.sections }) } : {}
135
+ ...d.sections.length ? { top: /* @__PURE__ */ T(o, { data: d.sections }) } : {}
136
136
  },
137
137
  LEGAL_INFORMATION_TEXT: n,
138
138
  ICONS: a
139
139
  }
140
140
  ) : null;
141
- }, Kt = async ({
141
+ }, Xt = async ({
142
142
  children: e,
143
143
  ClientHeaderProvider: t,
144
144
  ...r
145
145
  }) => {
146
- var o, c, i, d, g, s;
146
+ var o, c, i, u, g, s;
147
147
  const { data: n } = await F(
148
148
  "header",
149
149
  r
150
150
  ), a = Array.isArray(n) ? n[0] : void 0;
151
- return /* @__PURE__ */ O(
151
+ return /* @__PURE__ */ T(
152
152
  t,
153
153
  {
154
154
  headerData: {
155
155
  ...((o = a == null ? void 0 : a.layerConfig) == null ? void 0 : o.config) ?? {},
156
- subMenus: ((c = a == null ? void 0 : a.sections) == null ? void 0 : c.map((u) => u.data)) ?? [],
157
- categories: ((d = (i = a == null ? void 0 : a.categories) == null ? void 0 : i.categories) == null ? void 0 : d.items) ?? [],
156
+ subMenus: ((c = a == null ? void 0 : a.sections) == null ? void 0 : c.map((d) => d.data)) ?? [],
157
+ categories: ((u = (i = a == null ? void 0 : a.categories) == null ? void 0 : i.categories) == null ? void 0 : u.items) ?? [],
158
158
  navigationLinks: ((s = (g = a == null ? void 0 : a.navigationLinks) == null ? void 0 : g.navigationLinks) == null ? void 0 : s.items) ?? []
159
159
  },
160
160
  children: e
161
161
  }
162
162
  );
163
- }, Zt = (e) => {
163
+ }, Kt = (e) => {
164
164
  var c, i;
165
165
  const t = (i = (c = e[0]) == null ? void 0 : c.items) == null ? void 0 : i.items;
166
166
  if ((t == null ? void 0 : t.items.length) === 0 || e.length === 0)
@@ -170,17 +170,17 @@ const Gt = async ({
170
170
  content: []
171
171
  };
172
172
  const r = t == null ? void 0 : t.iconLabel, n = t == null ? void 0 : t.label, a = t == null ? void 0 : t.helpButtonSize, o = t.items.map(
173
- (d, g) => ({
174
- type: d.type,
175
- id: `${g.toString()}-${d.title.toLowerCase()}`,
176
- title: d.title,
177
- subtitle: d.subtitle,
178
- description: d.description,
179
- buttonLabel: d.buttonLabel,
180
- buttonHref: d.buttonHref,
181
- buttonMode: d.buttonMode,
182
- buttonSize: d.buttonSize,
183
- buttonIcon: d.buttonIcon
173
+ (u, g) => ({
174
+ type: u.type,
175
+ id: `${g.toString()}-${u.title.toLowerCase()}`,
176
+ title: u.title,
177
+ subtitle: u.subtitle,
178
+ description: u.description,
179
+ buttonLabel: u.buttonLabel,
180
+ buttonHref: u.buttonHref,
181
+ buttonMode: u.buttonMode,
182
+ buttonSize: u.buttonSize,
183
+ buttonIcon: u.buttonIcon
184
184
  })
185
185
  );
186
186
  return {
@@ -201,8 +201,8 @@ const Gt = async ({
201
201
  );
202
202
  if (!a || !Array.isArray(a) || a.length === 0)
203
203
  return null;
204
- const o = Zt(a);
205
- return /* @__PURE__ */ O(
204
+ const o = Kt(a);
205
+ return /* @__PURE__ */ T(
206
206
  e,
207
207
  {
208
208
  data: o,
@@ -210,24 +210,24 @@ const Gt = async ({
210
210
  className: r
211
211
  }
212
212
  );
213
- }, Yt = async ({
213
+ }, Zt = async ({
214
214
  SectionZone: e,
215
215
  LPCadastro: t,
216
216
  ...r
217
217
  }) => {
218
- var d;
218
+ var u;
219
219
  const { data: n } = await F(
220
220
  "lp_cadastro",
221
221
  r
222
222
  );
223
223
  if (!n || !Array.isArray(n) || n.length === 0)
224
224
  return null;
225
- const [a] = n, o = (a == null ? void 0 : a.sections) || [], c = ((d = a == null ? void 0 : a.content) == null ? void 0 : d.conteúdo) || {}, i = a == null ? void 0 : a.sections;
225
+ const [a] = n, o = (a == null ? void 0 : a.sections) || [], c = ((u = a == null ? void 0 : a.content) == null ? void 0 : u.conteúdo) || {}, i = a == null ? void 0 : a.sections;
226
226
  return /* @__PURE__ */ pe(W, { children: [
227
- /* @__PURE__ */ O(t, { sections: o, content: c }),
228
- /* @__PURE__ */ O(e, { data: i })
227
+ /* @__PURE__ */ T(t, { sections: o, content: c }),
228
+ /* @__PURE__ */ T(e, { data: i })
229
229
  ] });
230
- }, er = async ({
230
+ }, Yt = async ({
231
231
  LPLOJAS_TEMPLATE_RETURN_BUTTON: e,
232
232
  ICONS: t,
233
233
  entity: r,
@@ -236,19 +236,19 @@ const Gt = async ({
236
236
  ...o
237
237
  }) => {
238
238
  var g;
239
- const { data: c } = await F("lp_lojas", o), d = (g = (Array.isArray(c) ? c : [])[0]) == null ? void 0 : g.config.config;
240
- return /* @__PURE__ */ O(
239
+ const { data: c } = await F("lp_lojas", o), u = (g = (Array.isArray(c) ? c : [])[0]) == null ? void 0 : g.config.config;
240
+ return /* @__PURE__ */ T(
241
241
  a,
242
242
  {
243
243
  entity: r,
244
- content: d,
244
+ content: u,
245
245
  data: c,
246
246
  showVendor: n,
247
247
  ICONS: t,
248
248
  LPLOJAS_TEMPLATE_RETURN_BUTTON: e
249
249
  }
250
250
  );
251
- }, tr = async ({
251
+ }, er = async ({
252
252
  ERROR_TEMPLATE_RETURN_BUTTON: e,
253
253
  ErrorTemplate: t,
254
254
  ...r
@@ -258,14 +258,14 @@ const Gt = async ({
258
258
  "notfound_page",
259
259
  r
260
260
  ), a = Array.isArray(n) ? (o = n[0]) == null ? void 0 : o.config.config : null;
261
- return n && a ? /* @__PURE__ */ O(
261
+ return n && a ? /* @__PURE__ */ T(
262
262
  t,
263
263
  {
264
264
  data: a,
265
265
  ERROR_TEMPLATE_RETURN_BUTTON: e
266
266
  }
267
- ) : /* @__PURE__ */ O(W, {});
268
- }, rr = async ({
267
+ ) : /* @__PURE__ */ T(W, {});
268
+ }, tr = async ({
269
269
  children: e,
270
270
  productId: t,
271
271
  COMMON_PAGE_COLUMN_GAP: r,
@@ -277,7 +277,7 @@ const Gt = async ({
277
277
  "product_page",
278
278
  o
279
279
  );
280
- return !c || !Array.isArray(c) || c.length === 0 ? null : /* @__PURE__ */ O(
280
+ return !c || !Array.isArray(c) || c.length === 0 ? null : /* @__PURE__ */ T(
281
281
  a,
282
282
  {
283
283
  data: c[0],
@@ -287,9 +287,9 @@ const Gt = async ({
287
287
  children: e
288
288
  }
289
289
  );
290
- }, nr = {
290
+ }, rr = {
291
291
  "column-modifier": "_column-modifier_1tqap_1"
292
- }, ar = async ({
292
+ }, nr = async ({
293
293
  className: e,
294
294
  children: t,
295
295
  slug: r,
@@ -304,42 +304,42 @@ const Gt = async ({
304
304
  );
305
305
  if (!i || !Array.isArray(i))
306
306
  return null;
307
- const d = i.find(
307
+ const u = i.find(
308
308
  (v) => {
309
- var y, _, p;
310
- return ((y = v.config) == null ? void 0 : y.seo.slug) === r && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "desktop";
309
+ var y, R, p;
310
+ return ((y = v.config) == null ? void 0 : y.seo.slug) === r && ((p = (R = v.config) == null ? void 0 : R.responsive) == null ? void 0 : p.deviceType) === "desktop";
311
311
  }
312
312
  ), g = i.find(
313
313
  (v) => {
314
- var y, _, p;
315
- return ((y = v.config) == null ? void 0 : y.seo.slug) === r && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "mobile";
314
+ var y, R, p;
315
+ return ((y = v.config) == null ? void 0 : y.seo.slug) === r && ((p = (R = v.config) == null ? void 0 : R.responsive) == null ? void 0 : p.deviceType) === "mobile";
316
316
  }
317
317
  ), s = i.find(
318
318
  (v) => {
319
- var y, _, p;
320
- return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "desktop";
319
+ var y, R, p;
320
+ return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (R = v.config) == null ? void 0 : R.responsive) == null ? void 0 : p.deviceType) === "desktop";
321
321
  }
322
- ), u = i.find(
322
+ ), d = i.find(
323
323
  (v) => {
324
- var y, _, p;
325
- return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (_ = v.config) == null ? void 0 : _.responsive) == null ? void 0 : p.deviceType) === "mobile";
324
+ var y, R, p;
325
+ return ((y = v.config) == null ? void 0 : y.seo.slug) === "default" && ((p = (R = v.config) == null ? void 0 : R.responsive) == null ? void 0 : p.deviceType) === "mobile";
326
326
  }
327
327
  ), w = Array.isArray(e) ? e : [e];
328
328
  return /* @__PURE__ */ pe(W, { children: [
329
- /* @__PURE__ */ O(
329
+ /* @__PURE__ */ T(
330
330
  se.Column,
331
331
  {
332
- className: le.classNameConcat(
332
+ className: ce.classNameConcat(
333
333
  oe["responsive-desktop-flex"],
334
- [nr["column-modifier"], ...w]
334
+ [rr["column-modifier"], ...w]
335
335
  ),
336
336
  style: {
337
337
  minHeight: "100vh"
338
338
  },
339
- children: /* @__PURE__ */ O(
339
+ children: /* @__PURE__ */ T(
340
340
  o,
341
341
  {
342
- data: d ?? s,
342
+ data: u ?? s,
343
343
  device: "desktop",
344
344
  SectionZone: n,
345
345
  COMMON_PAGE_COLUMN_GAP_PDC: a,
@@ -348,10 +348,10 @@ const Gt = async ({
348
348
  )
349
349
  }
350
350
  ),
351
- /* @__PURE__ */ O(se.Column, { className: le.classNameConcat(oe["responsive-mobile-flex"], e), children: /* @__PURE__ */ O(
351
+ /* @__PURE__ */ T(se.Column, { className: ce.classNameConcat(oe["responsive-mobile-flex"], e), children: /* @__PURE__ */ T(
352
352
  o,
353
353
  {
354
- data: g ?? u,
354
+ data: g ?? d,
355
355
  device: "mobile",
356
356
  SectionZone: n,
357
357
  COMMON_PAGE_COLUMN_GAP_PDC: a,
@@ -359,8 +359,8 @@ const Gt = async ({
359
359
  }
360
360
  ) })
361
361
  ] });
362
- }, ir = async ({ slug: e, ...t }) => {
363
- var c, i, d;
362
+ }, ar = async ({ slug: e, ...t }) => {
363
+ var c, i, u;
364
364
  const { data: r } = await F(
365
365
  "redirect_to_search",
366
366
  t
@@ -371,7 +371,7 @@ const Gt = async ({
371
371
  query: null,
372
372
  redirect: !1
373
373
  };
374
- const n = ((d = (i = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
374
+ const n = ((u = (i = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : u.paths) ?? [];
375
375
  if (!!!n.length)
376
376
  return {
377
377
  slug: e,
@@ -380,8 +380,8 @@ const Gt = async ({
380
380
  };
381
381
  const o = n.find(
382
382
  (g) => {
383
- var s, u;
384
- return ((s = g.path) == null ? void 0 : s.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((u = g.path) == null ? void 0 : u.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
383
+ var s, d;
384
+ return ((s = g.path) == null ? void 0 : s.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((d = g.path) == null ? void 0 : d.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
385
385
  }
386
386
  );
387
387
  return o ? {
@@ -399,21 +399,21 @@ const Gt = async ({
399
399
  filters: null,
400
400
  sort: null
401
401
  };
402
- }, or = async ({ slug: e, ...t }) => {
403
- var c, i, d;
402
+ }, ir = async ({ slug: e, ...t }) => {
403
+ var c, i, u;
404
404
  const { data: r } = await F(
405
405
  "redirect_to_search",
406
406
  t
407
407
  );
408
408
  if (!r || !Array.isArray(r))
409
409
  return null;
410
- const n = ((d = (i = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : d.paths) ?? [];
410
+ const n = ((u = (i = (c = r[0]) == null ? void 0 : c.redirectToSearch) == null ? void 0 : i.redirectToSearch) == null ? void 0 : u.paths) ?? [];
411
411
  if (!!!n.length)
412
412
  return null;
413
413
  const o = n.find(
414
414
  (g) => {
415
- var s, u;
416
- return ((s = g.path) == null ? void 0 : s.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((u = g.path) == null ? void 0 : u.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
415
+ var s, d;
416
+ return ((s = g.path) == null ? void 0 : s.replace(/\//g, "-").toLowerCase()) === e.replace(/\//g, "-").toLowerCase() || ((d = g.path) == null ? void 0 : d.replace(/\//g, "-").toLowerCase()) === `/${e}`.replace(/\//g, "-").toLowerCase();
417
417
  }
418
418
  );
419
419
  return o ? {
@@ -421,7 +421,7 @@ const Gt = async ({
421
421
  title: o.pageTitle,
422
422
  description: o.pageDescription
423
423
  } : null;
424
- }, sr = async ({
424
+ }, or = async ({
425
425
  slug: e,
426
426
  Politicas: t,
427
427
  SectionZone: r,
@@ -434,20 +434,20 @@ const Gt = async ({
434
434
  ), { data: c } = await F(
435
435
  "policy_tab",
436
436
  a
437
- ), i = Array.isArray(o) ? o : null, d = Array.isArray(c) ? c : null, g = i ? i[0].sections : null;
438
- return !i || !d ? null : /* @__PURE__ */ pe(W, { children: [
439
- /* @__PURE__ */ O(
437
+ ), i = Array.isArray(o) ? o : null, u = Array.isArray(c) ? c : null, g = i ? i[0].sections : null;
438
+ return !i || !u ? null : /* @__PURE__ */ pe(W, { children: [
439
+ /* @__PURE__ */ T(
440
440
  t,
441
441
  {
442
442
  slug: e,
443
443
  pageData: i[0],
444
- tabsData: d,
444
+ tabsData: u,
445
445
  oneTrust: n
446
446
  }
447
447
  ),
448
- g && /* @__PURE__ */ O(r, { data: g })
448
+ g && /* @__PURE__ */ T(r, { data: g })
449
449
  ] });
450
- }, lr = async ({
450
+ }, sr = async ({
451
451
  children: e,
452
452
  SectionZone: t,
453
453
  className: r,
@@ -457,15 +457,15 @@ const Gt = async ({
457
457
  "search_page",
458
458
  n
459
459
  );
460
- return Array.isArray(a) && a.length > 0 ? /* @__PURE__ */ O(
461
- yt,
460
+ return Array.isArray(a) && a.length > 0 ? /* @__PURE__ */ T(
461
+ _t,
462
462
  {
463
463
  data: a,
464
464
  SectionZone: t,
465
465
  className: r,
466
466
  children: e
467
467
  }
468
- ) : /* @__PURE__ */ O(W, { children: "children" });
468
+ ) : /* @__PURE__ */ T(W, { children: "children" });
469
469
  }, cr = async ({
470
470
  ClientTipbarContent: e,
471
471
  ...t
@@ -474,8 +474,8 @@ const Gt = async ({
474
474
  "tipbar",
475
475
  t
476
476
  );
477
- return /* @__PURE__ */ O(e, { data: r });
478
- }, ur = async ({
477
+ return /* @__PURE__ */ T(e, { data: r });
478
+ }, lr = async ({
479
479
  children: e,
480
480
  SectionZone: t,
481
481
  WishlistScreening: r,
@@ -485,7 +485,7 @@ const Gt = async ({
485
485
  "wishlist_page",
486
486
  n
487
487
  );
488
- return /* @__PURE__ */ O(
488
+ return /* @__PURE__ */ T(
489
489
  r,
490
490
  {
491
491
  data: Array.isArray(a) ? a : [],
@@ -493,36 +493,36 @@ const Gt = async ({
493
493
  children: e
494
494
  }
495
495
  );
496
- }, dr = {
497
- CommonPageContent: Wt,
498
- CartContent: Gt,
499
- FlagsAndTagsContent: Qt,
500
- HeaderContent: Kt,
496
+ }, ur = {
497
+ CommonPageContent: Vt,
498
+ CartContent: zt,
499
+ FlagsAndTagsContent: Wt,
500
+ HeaderContent: Xt,
501
501
  TipbarContent: cr,
502
- FooterContent: Xt,
503
- PLPContent: ar,
504
- PDPContent: rr,
505
- getRedirectData: ir,
506
- getPLPSynteticMetaData: or,
507
- SearchPageContent: lr,
502
+ FooterContent: Qt,
503
+ PLPContent: nr,
504
+ PDPContent: tr,
505
+ getRedirectData: ar,
506
+ getPLPSynteticMetaData: ir,
507
+ SearchPageContent: sr,
508
508
  HelpButtonContent: Jt,
509
- LPCadastroContent: Yt,
510
- LPLojasContent: er,
511
- PolicyPageContent: sr,
512
- NotFoundContent: tr,
513
- WishlistContent: ur
514
- }, Ra = { Components: dr }, pr = l.object({
509
+ LPCadastroContent: Zt,
510
+ LPLojasContent: Yt,
511
+ PolicyPageContent: or,
512
+ NotFoundContent: er,
513
+ WishlistContent: lr
514
+ }, xa = { Components: ur }, dr = l.object({
515
515
  country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
516
516
  postalCode: l.string().nullable()
517
517
  });
518
- async function mr({ apiUrl: e, body: t, fetchOptions: r }) {
518
+ async function pr({ apiUrl: e, body: t, fetchOptions: r }) {
519
519
  if (!t) {
520
520
  console.error("[ERROR FETCHING] Body is required");
521
521
  return;
522
522
  }
523
- await pr.validate(t);
523
+ await dr.validate(t);
524
524
  const { country: n, postalCode: a } = t;
525
- return await T(
525
+ return await j(
526
526
  `${e}/api/checkout/pub/postal-code/${n}/${a}`,
527
527
  {
528
528
  method: "POST",
@@ -531,7 +531,7 @@ async function mr({ apiUrl: e, body: t, fetchOptions: r }) {
531
531
  }
532
532
  );
533
533
  }
534
- const fr = l.object({
534
+ const mr = l.object({
535
535
  orderFormId: l.string().nullable(),
536
536
  sellerCode: l.string().nullable(),
537
537
  sellerName: l.string().nullable()
@@ -545,9 +545,9 @@ async function ze({
545
545
  console.error("[ERROR FETCHING] Body is required");
546
546
  return;
547
547
  }
548
- await fr.validate(t);
548
+ await mr.validate(t);
549
549
  const { orderFormId: n, sellerCode: a, sellerName: o } = t, c = a ? `${a.trim()} - ${o}` : null;
550
- return T(
550
+ return j(
551
551
  `${e}/api/checkout/pub/orderForm/${n}/attachments/openTextField`,
552
552
  {
553
553
  method: "POST",
@@ -558,7 +558,7 @@ async function ze({
558
558
  }
559
559
  );
560
560
  }
561
- const hr = l.object({
561
+ const fr = l.object({
562
562
  orderFormId: l.string().nullable(),
563
563
  sellerCode: l.string().nullable(),
564
564
  marketingData: l.object()
@@ -573,12 +573,12 @@ async function Ge({
573
573
  console.error("[ERROR FETCHING] Body is required");
574
574
  return;
575
575
  }
576
- await hr.validate(t);
576
+ await fr.validate(t);
577
577
  const { orderFormId: a, sellerCode: o, marketingData: c } = t, i = o ? {
578
578
  utmCampaign: o ? o.toUpperCase() : "",
579
579
  utmiCampaign: o ? `${r.VENDOR_CODE}` : "semcodigo"
580
580
  } : {};
581
- return T(
581
+ return j(
582
582
  `${e}/api/checkout/pub/orderForm/${a}/attachments/marketingData`,
583
583
  {
584
584
  method: "POST",
@@ -590,17 +590,17 @@ async function Ge({
590
590
  }
591
591
  );
592
592
  }
593
- const gr = l.object({
593
+ const hr = l.object({
594
594
  orderFormId: l.string().nullable(),
595
595
  sellerCode: l.string().nullable(),
596
596
  sellerName: l.string().nullable()
597
597
  });
598
- async function br({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
598
+ async function gr({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
599
599
  if (!t) {
600
600
  console.error("[ERROR FETCHING] Body is required");
601
601
  return;
602
602
  }
603
- await gr.validate(t);
603
+ await hr.validate(t);
604
604
  const a = await ze({ apiUrl: e, body: t, fetchOptions: r });
605
605
  return Ge({
606
606
  apiUrl: e,
@@ -612,11 +612,11 @@ async function br({ apiUrl: e, body: t, fetchOptions: r, extraData: n }) {
612
612
  fetchOptions: r
613
613
  });
614
614
  }
615
- const wr = l.object({
615
+ const br = l.object({
616
616
  orderFormId: l.string().nullable(),
617
617
  coupon: l.string().nullable()
618
618
  });
619
- async function vr({
619
+ async function wr({
620
620
  apiUrl: e,
621
621
  body: t,
622
622
  fetchOptions: r
@@ -625,9 +625,9 @@ async function vr({
625
625
  console.error("[ERROR FETCHING] Body is required");
626
626
  return;
627
627
  }
628
- await wr.validate(t);
628
+ await br.validate(t);
629
629
  const { coupon: n = "", orderFormId: a } = t;
630
- return T(
630
+ return j(
631
631
  `${e}/api/checkout/pub/orderForm/${a}/coupons`,
632
632
  {
633
633
  method: "POST",
@@ -636,12 +636,12 @@ async function vr({
636
636
  }
637
637
  );
638
638
  }
639
- const yr = l.object({
639
+ const vr = l.object({
640
640
  appId: l.string().required("App ID is required"),
641
641
  orderFormId: l.string().nullable(),
642
642
  key: l.array().of(l.string())
643
643
  });
644
- async function _r({
644
+ async function yr({
645
645
  apiUrl: e,
646
646
  body: t,
647
647
  fetchOptions: r
@@ -650,9 +650,9 @@ async function _r({
650
650
  console.error("[ERROR FETCHING] Body is required");
651
651
  return;
652
652
  }
653
- await yr.validate(t);
653
+ await vr.validate(t);
654
654
  const { appId: n = "faststore", orderFormId: a, key: o } = t;
655
- return T(
655
+ return j(
656
656
  `${e}/api/checkout/pub/orderForm/${a}/customData/${n}/${o}`,
657
657
  {
658
658
  method: "PUT",
@@ -660,21 +660,21 @@ async function _r({
660
660
  }
661
661
  );
662
662
  }
663
- const Rr = l.object().shape({
663
+ const _r = l.object().shape({
664
664
  name: l.string().required("Attachment name is required"),
665
665
  content: l.object().nullable()
666
666
  });
667
- var He;
668
- const Ir = l.object().shape({
669
- attachments: (He = l.array().of(Rr)) == null ? void 0 : He.nullable(),
667
+ var Me;
668
+ const Rr = l.object().shape({
669
+ attachments: (Me = l.array().of(_r)) == null ? void 0 : Me.nullable(),
670
670
  id: l.string().required("ID of SKU is required"),
671
671
  index: l.number().integer().nullable(),
672
672
  quantity: l.number().integer().nullable(),
673
673
  seller: l.string().required("Seller is required"),
674
674
  price: l.number().integer()
675
- }), xr = l.object({
675
+ }), Ir = l.object({
676
676
  orderFormId: l.string().required("OrderFormId is required"),
677
- orderItems: l.array().of(Ir)
677
+ orderItems: l.array().of(Rr)
678
678
  });
679
679
  async function Pr({
680
680
  apiUrl: e,
@@ -685,9 +685,9 @@ async function Pr({
685
685
  console.error("[ERROR FETCHING] Body is required");
686
686
  return;
687
687
  }
688
- await xr.validate(t);
688
+ await Ir.validate(t);
689
689
  const { orderFormId: n, orderItems: a } = t;
690
- return T(
690
+ return j(
691
691
  `${e}/api/checkout/pub/orderForm/${n}/items`,
692
692
  {
693
693
  method: "POST",
@@ -696,10 +696,10 @@ async function Pr({
696
696
  }
697
697
  );
698
698
  }
699
- const Sr = l.object({
699
+ const xr = l.object({
700
700
  orderFormId: l.string().nullable()
701
701
  });
702
- async function Cr({
702
+ async function Sr({
703
703
  apiUrl: e,
704
704
  body: t,
705
705
  fetchOptions: r
@@ -708,9 +708,9 @@ async function Cr({
708
708
  console.error("[ERROR FETCHING] Body is required");
709
709
  return;
710
710
  }
711
- await Sr.validate(t);
711
+ await xr.validate(t);
712
712
  const { orderFormId: n } = t;
713
- return T(
713
+ return j(
714
714
  `${e}/api/checkout/pub/orderForm/${n}/items/removeAll`,
715
715
  {
716
716
  method: "POST",
@@ -718,21 +718,21 @@ async function Cr({
718
718
  }
719
719
  );
720
720
  }
721
- const kr = l.object().shape({
721
+ const Cr = l.object().shape({
722
722
  name: l.string().required("Attachment name is required"),
723
723
  content: l.object().nullable()
724
724
  });
725
- var Me;
726
- const Er = l.object().shape({
727
- attachments: (Me = l.array().of(kr)) == null ? void 0 : Me.nullable(),
725
+ var He;
726
+ const kr = l.object().shape({
727
+ attachments: (He = l.array().of(Cr)) == null ? void 0 : He.nullable(),
728
728
  id: l.string().required("ID of SKU is required"),
729
729
  index: l.number().integer().nullable(),
730
730
  quantity: l.number().integer().nullable(),
731
731
  seller: l.string().required("Seller is required"),
732
732
  price: l.number().integer()
733
- }), Ar = l.object({
733
+ }), Er = l.object({
734
734
  orderFormId: l.string().nullable(),
735
- orderItems: l.array().of(Er)
735
+ orderItems: l.array().of(kr)
736
736
  });
737
737
  async function Or({
738
738
  apiUrl: e,
@@ -743,9 +743,9 @@ async function Or({
743
743
  console.error("[ERROR FETCHING] Body is required");
744
744
  return;
745
745
  }
746
- await Ar.validate(t);
746
+ await Er.validate(t);
747
747
  const { orderFormId: n, orderItems: a } = t;
748
- return T(
748
+ return j(
749
749
  `${e}/api/checkout/pub/orderForm/${n}/items/update`,
750
750
  {
751
751
  method: "POST",
@@ -754,10 +754,10 @@ async function Or({
754
754
  }
755
755
  );
756
756
  }
757
- const Tr = l.object({
757
+ const Ar = l.object({
758
758
  orderFormId: l.string().nullable()
759
759
  });
760
- async function qr({
760
+ async function Tr({
761
761
  apiUrl: e,
762
762
  body: t,
763
763
  fetchOptions: r
@@ -766,9 +766,9 @@ async function qr({
766
766
  console.error("[ERROR FETCHING] Body is required");
767
767
  return;
768
768
  }
769
- await Tr.validate(t);
769
+ await Ar.validate(t);
770
770
  const { orderFormId: n } = t;
771
- return T(
771
+ return j(
772
772
  `${e}/api/checkout/pub/orderForm/${n}/messages/clear`,
773
773
  {
774
774
  method: "POST",
@@ -776,30 +776,30 @@ async function qr({
776
776
  }
777
777
  );
778
778
  }
779
- const Nr = l.object({
779
+ const jr = l.object({
780
780
  id: l.string().nullable(),
781
781
  // id offering
782
782
  itemIndex: l.number().nullable(),
783
783
  orderFormId: l.string().nullable(),
784
784
  remove: l.boolean().nullable()
785
785
  });
786
- async function jr({ apiUrl: e, body: t, fetchOptions: r }) {
786
+ async function qr({ apiUrl: e, body: t, fetchOptions: r }) {
787
787
  if (!t) {
788
788
  console.error("[ERROR FETCHING] Body is required");
789
789
  return;
790
790
  }
791
- await Nr.validate(t);
792
- const { itemIndex: n, orderFormId: a, id: o, remove: c } = t, i = c ? `/${o}/remove` : "", d = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${i}`;
793
- return T(d, {
791
+ await jr.validate(t);
792
+ const { itemIndex: n, orderFormId: a, id: o, remove: c } = t, i = c ? `/${o}/remove` : "", u = `${e}/api/checkout/pub/orderForm/${a}/items/${n}/offerings${i}`;
793
+ return j(u, {
794
794
  method: "POST",
795
795
  body: { id: o },
796
796
  ...r
797
797
  });
798
798
  }
799
- const Fr = l.object({
799
+ const Nr = l.object({
800
800
  orderFormId: l.string().nullable()
801
801
  });
802
- async function $r({
802
+ async function Fr({
803
803
  apiUrl: e,
804
804
  body: t,
805
805
  fetchOptions: r,
@@ -810,13 +810,13 @@ async function $r({
810
810
  console.error("[ERROR FETCHING] Body is required");
811
811
  return;
812
812
  }
813
- await Fr.validate(t);
813
+ await Nr.validate(t);
814
814
  const a = new URLSearchParams({
815
815
  refreshOutdatedData: "true"
816
816
  }), o = t.orderFormId && ((c = n.orderFormPurchaseId) == null ? void 0 : c.value) !== t.orderFormId ? `${e}/api/checkout/pub/orderForm/${t.orderFormId}?${String(a)}` : `${e}/api/checkout/pub/orderForm`;
817
- return T(o, { method: "GET", ...r });
817
+ return j(o, { method: "GET", ...r });
818
818
  }
819
- const Lr = l.object({
819
+ const $r = l.object({
820
820
  orderFormId: l.string().nullable(),
821
821
  email: l.string().email().required(),
822
822
  firstName: l.string().required(),
@@ -825,7 +825,7 @@ const Lr = l.object({
825
825
  document: l.string().required(),
826
826
  phone: l.string().matches(/^\+\d{1,3}\d{10,11}$/)
827
827
  });
828
- async function Dr({
828
+ async function Lr({
829
829
  apiUrl: e,
830
830
  body: t,
831
831
  fetchOptions: r
@@ -834,9 +834,9 @@ async function Dr({
834
834
  console.error("[ERROR FETCHING] Body is required");
835
835
  return;
836
836
  }
837
- await Lr.validate(t);
837
+ await $r.validate(t);
838
838
  const { orderFormId: n, ...a } = t;
839
- return T(
839
+ return j(
840
840
  `${e}/api/checkout/pub/orderForm/${n}/attachments/clientProfileData`,
841
841
  {
842
842
  method: "POST",
@@ -845,10 +845,10 @@ async function Dr({
845
845
  }
846
846
  );
847
847
  }
848
- const Ur = l.object({
848
+ const Dr = l.object({
849
849
  sellerCode: l.string().nullable()
850
850
  });
851
- async function Hr({
851
+ async function Ur({
852
852
  apiUrl: e,
853
853
  body: t,
854
854
  extraData: r,
@@ -858,9 +858,9 @@ async function Hr({
858
858
  console.error("[ERROR FETCHING] Body is required");
859
859
  return;
860
860
  }
861
- await Ur.validate(t);
861
+ await Dr.validate(t);
862
862
  const { sellerCode: a = "" } = t;
863
- return T(
863
+ return j(
864
864
  `${e}/api/dataentities/${r.ENTITIES}/search?_fields=${r.FIELDS}&${r.FILTER}=${a}`,
865
865
  {
866
866
  method: "GET",
@@ -876,7 +876,7 @@ const Mr = l.object().shape({
876
876
  orderFormId: l.string().nullable(),
877
877
  postalCode: l.string().nullable()
878
878
  });
879
- async function Br({
879
+ async function Hr({
880
880
  apiUrl: e,
881
881
  body: t,
882
882
  fetchOptions: r
@@ -896,7 +896,7 @@ async function Br({
896
896
  logisticsInfo: [],
897
897
  clearAddressIfPostalCodeNotFound: !0
898
898
  };
899
- return T(
899
+ return j(
900
900
  `${e}/api/checkout/pub/orderForm/${a}/attachments/shippingData`,
901
901
  {
902
902
  method: "POST",
@@ -905,7 +905,7 @@ async function Br({
905
905
  }
906
906
  );
907
907
  }
908
- const zr = l.object().shape({
908
+ const Br = l.object().shape({
909
909
  orderFormId: l.string().nullable(),
910
910
  options: l.array().of(
911
911
  l.object().shape({
@@ -933,14 +933,14 @@ const zr = l.object().shape({
933
933
  })
934
934
  )
935
935
  });
936
- async function Gr({ apiUrl: e, body: t, fetchOptions: r }) {
936
+ async function zr({ apiUrl: e, body: t, fetchOptions: r }) {
937
937
  if (!t) {
938
938
  console.error("[ERROR FETCHING] Body is required");
939
939
  return;
940
940
  }
941
- await zr.validate(t);
941
+ await Br.validate(t);
942
942
  const { orderFormId: n, options: a, selectedAddresses: o } = t;
943
- return T(
943
+ return j(
944
944
  `${e}/api/checkout/pub/orderForm/${n}/attachments/shippingData`,
945
945
  {
946
946
  method: "POST",
@@ -953,7 +953,7 @@ async function Gr({ apiUrl: e, body: t, fetchOptions: r }) {
953
953
  }
954
954
  );
955
955
  }
956
- const Vr = l.object({
956
+ const Gr = l.object({
957
957
  country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
958
958
  postalCode: l.string().nullable(),
959
959
  geoCoordinates: l.object().shape({
@@ -961,17 +961,17 @@ const Vr = l.object({
961
961
  latitude: l.number().required()
962
962
  })
963
963
  });
964
- async function Wr({ apiUrl: e, body: t, fetchOptions: r }) {
964
+ async function Vr({ apiUrl: e, body: t, fetchOptions: r }) {
965
965
  if (!t) {
966
966
  console.error("[ERROR FETCHING] Body is required");
967
967
  return;
968
968
  }
969
- await Vr.validate(t);
969
+ await Gr.validate(t);
970
970
  const { country: n = "", geoCoordinates: a, postalCode: o = "" } = t, c = new URLSearchParams({ country: String(n) });
971
971
  return o ? c.append("postalCode", o) : c.append(
972
972
  "geoCoordinates",
973
973
  `${a == null ? void 0 : a.longitude};${a == null ? void 0 : a.latitude}`
974
- ), await T(
974
+ ), await j(
975
975
  `${e}/api/checkout/pub/regions/?${c.toString()}`,
976
976
  {
977
977
  method: "GET",
@@ -979,22 +979,22 @@ async function Wr({ apiUrl: e, body: t, fetchOptions: r }) {
979
979
  }
980
980
  );
981
981
  }
982
- const Qr = l.object({
982
+ const Wr = l.object({
983
983
  id: l.string().required("ID of SKU is required"),
984
984
  quantity: l.number().integer().required("Quantity of item is required"),
985
985
  seller: l.string()
986
- }), Xr = l.object({
987
- items: l.array().of(Qr),
986
+ }), Qr = l.object({
987
+ items: l.array().of(Wr),
988
988
  country: l.string().length(3, "Country code must be 3 characters long").required("Country is required"),
989
989
  postalCode: l.string().nullable(),
990
990
  geoCoordinates: l.array().nullable().of(l.number()).length(2)
991
991
  });
992
- async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
992
+ async function Xr({ apiUrl: e, body: t, fetchOptions: r }) {
993
993
  if (!t) {
994
994
  console.error("[ERROR FETCHING] Body is required");
995
995
  return;
996
996
  }
997
- return await Xr.validate(t), T(
997
+ return await Qr.validate(t), j(
998
998
  `${e}/api/checkout/pub/orderForms/simulation`,
999
999
  {
1000
1000
  method: "POST",
@@ -1003,99 +1003,99 @@ async function Kr({ apiUrl: e, body: t, fetchOptions: r }) {
1003
1003
  }
1004
1004
  );
1005
1005
  }
1006
- const Zr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1006
+ const Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1007
1007
  __proto__: null,
1008
- getMasterDataSellerCode: Hr,
1009
- getOrderForm: $r,
1010
- postOrderFormAddCoupon: vr,
1011
- postOrderFormAttachClientProfileData: Dr,
1012
- postOrderFormAttachOrderFormData: br,
1013
- postOrderFormAttachShippingData: Br,
1008
+ getMasterDataSellerCode: Ur,
1009
+ getOrderForm: Fr,
1010
+ postOrderFormAddCoupon: wr,
1011
+ postOrderFormAttachClientProfileData: Lr,
1012
+ postOrderFormAttachOrderFormData: gr,
1013
+ postOrderFormAttachShippingData: Hr,
1014
1014
  postOrderFormAttachmentsMarketingData: Ge,
1015
1015
  postOrderFormAttachmentsOpenTextField: ze,
1016
- postOrderFormClearMessages: qr,
1017
- postOrderFormFreightSimulation: Kr,
1016
+ postOrderFormClearMessages: Tr,
1017
+ postOrderFormFreightSimulation: Xr,
1018
1018
  postOrderFormItems: Pr,
1019
- postOrderFormRegion: Wr,
1020
- postOrderFormRemoveAllItems: Cr,
1019
+ postOrderFormRegion: Vr,
1020
+ postOrderFormRemoveAllItems: Sr,
1021
1021
  postOrderFormUpdateItems: Or,
1022
- postOrderFormUpdateShippingData: Gr,
1023
- postOrderformAddress: mr,
1024
- putOrderFormCustomData: _r,
1025
- updateOrderFormOffering: jr
1022
+ postOrderFormUpdateShippingData: zr,
1023
+ postOrderformAddress: pr,
1024
+ putOrderFormCustomData: yr,
1025
+ updateOrderFormOffering: qr
1026
1026
  }, Symbol.toStringTag, { value: "Module" })), Jr = l.object({
1027
1027
  skuId: l.string()
1028
1028
  });
1029
- async function Yr({ apiUrl: e, body: t, fetchOptions: r }) {
1029
+ async function Zr({ apiUrl: e, body: t, fetchOptions: r }) {
1030
1030
  if (!t) {
1031
1031
  console.error("[ERROR FETCHING] Body is required");
1032
1032
  return;
1033
1033
  }
1034
1034
  await Jr.validate(t);
1035
1035
  const { skuId: n } = t;
1036
- return T(
1036
+ return j(
1037
1037
  `${e}/api/catalog/pvt/stockkeepingunitkit?parentSkuId=${n}`,
1038
1038
  {
1039
1039
  ...r
1040
1040
  }
1041
1041
  );
1042
1042
  }
1043
- const en = l.object({
1043
+ const Yr = l.object({
1044
1044
  ids: l.array().of(l.string().required("ID are required")).required("IDs are required")
1045
1045
  });
1046
- async function tn({ apiUrl: e, body: t, fetchOptions: r }) {
1046
+ async function en({ apiUrl: e, body: t, fetchOptions: r }) {
1047
1047
  if (!t) {
1048
1048
  console.error("[ERROR FETCHING] Body is required");
1049
1049
  return;
1050
1050
  }
1051
- await en.validate(t);
1051
+ await Yr.validate(t);
1052
1052
  const { ids: n } = t;
1053
- return T(
1053
+ return j(
1054
1054
  `${e}/api/catalog_system/pub/products/search?fq=${n.map((a) => `productId:${a}`).join("&fq=")}`,
1055
1055
  {
1056
1056
  ...r
1057
1057
  }
1058
1058
  );
1059
1059
  }
1060
- const rn = l.object({
1060
+ const tn = l.object({
1061
1061
  productId: l.number().required("Product ID is required")
1062
1062
  });
1063
- async function nn({ apiUrl: e, body: t, fetchOptions: r }) {
1063
+ async function rn({ apiUrl: e, body: t, fetchOptions: r }) {
1064
1064
  if (!t) {
1065
1065
  console.error("[ERROR FETCHING] Body is required");
1066
1066
  return;
1067
1067
  }
1068
- await rn.validate(t);
1068
+ await tn.validate(t);
1069
1069
  const { productId: n } = t;
1070
- return T(
1070
+ return j(
1071
1071
  `${e}/api/catalog_system/pub/products/crossselling/similars/${n.toString()}`,
1072
1072
  {
1073
1073
  ...r
1074
1074
  }
1075
1075
  );
1076
1076
  }
1077
- async function an({
1077
+ async function nn({
1078
1078
  apiUrl: e,
1079
1079
  params: t,
1080
1080
  fetchOptions: r
1081
1081
  }) {
1082
- return t != null && t.slug ? T(
1082
+ return t != null && t.slug ? j(
1083
1083
  `${e}/api/catalog_system/pub/portal/pagetype/${t.slug}`,
1084
1084
  {
1085
1085
  ...r
1086
1086
  }
1087
1087
  ) : (console.error("[ERROR FETCHING] slug is required"), null);
1088
1088
  }
1089
- const on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1089
+ const an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1090
1090
  __proto__: null,
1091
- getCatalogKitProducts: Yr,
1092
- getCatalogPageInfo: an,
1093
- getCatalogProducts: tn,
1094
- getCatalogSimilars: nn
1095
- }, Symbol.toStringTag, { value: "Module" })), sn = l.object({
1091
+ getCatalogKitProducts: Zr,
1092
+ getCatalogPageInfo: nn,
1093
+ getCatalogProducts: en,
1094
+ getCatalogSimilars: rn
1095
+ }, Symbol.toStringTag, { value: "Module" })), on = l.object({
1096
1096
  query: l.string()
1097
1097
  });
1098
- async function ln({
1098
+ async function sn({
1099
1099
  apiUrl: e,
1100
1100
  body: t,
1101
1101
  fetchOptions: r
@@ -1104,19 +1104,19 @@ async function ln({
1104
1104
  console.error("[ERROR FETCHING] Body is required");
1105
1105
  return;
1106
1106
  }
1107
- await sn.validate(t);
1107
+ await on.validate(t);
1108
1108
  const { query: n = "" } = t, a = new URLSearchParams({ query: n });
1109
- return T(
1109
+ return j(
1110
1110
  `${e}/api/io/_v/api/intelligent-search/autocomplete_suggestions?${a.toString()}`,
1111
1111
  {
1112
1112
  ...r
1113
1113
  }
1114
1114
  );
1115
1115
  }
1116
- const cn = (e, t) => Mt(e, t), un = (e) => ({
1116
+ const cn = (e, t) => Mt(e, t), ln = (e) => ({
1117
1117
  ...e,
1118
1118
  description: e.description ? cn(e.description) : e.description
1119
- }), dn = ({
1119
+ }), un = ({
1120
1120
  offer: e,
1121
1121
  seller: t,
1122
1122
  product: r
@@ -1126,8 +1126,8 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1126
1126
  seller: t
1127
1127
  }), Ve = (e, t) => ({
1128
1128
  ...e,
1129
- isVariantOf: un(t)
1130
- }), pn = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ie = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, mn = (e) => e.Price ?? 0, We = (e, t) => ie(e) && !ie(t) ? -1 : !ie(e) && ie(t) ? 1 : Le(e) - Le(t), fn = (e, t) => {
1129
+ isVariantOf: ln(t)
1130
+ }), dn = (e) => e ? "https://schema.org/InStock" : "https://schema.org/OutOfStock", ie = (e) => e.AvailableQuantity > 0, Le = (e) => e.spotPrice ?? 0, pn = (e) => e.Price ?? 0, We = (e, t) => ie(e) && !ie(t) ? -1 : !ie(e) && ie(t) ? 1 : Le(e) - Le(t), mn = (e, t) => {
1131
1131
  let r = 0;
1132
1132
  for (let n = 1; n < e.length; n++)
1133
1133
  t(e[r], e[n]) > 0 && (r = n);
@@ -1138,7 +1138,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1138
1138
  offer: a.commertialOffer,
1139
1139
  sku: n
1140
1140
  }))
1141
- ), r = fn(
1141
+ ), r = mn(
1142
1142
  t,
1143
1143
  ({ offer: n }, { offer: a }) => We(n, a)
1144
1144
  );
@@ -1149,49 +1149,49 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1149
1149
  url: t.replace("vteximg.com.br", "vtexassets.com"),
1150
1150
  keywords: n
1151
1151
  })
1152
- ), ce = {
1152
+ ), le = {
1153
1153
  attachment: "ATTACHMENT",
1154
1154
  specification: "SPECIFICATION",
1155
1155
  attribute: "ATTRIBUTE"
1156
- }, hn = (e) => ({
1156
+ }, fn = (e) => ({
1157
1157
  name: e.name,
1158
1158
  value: e.content,
1159
- valueReference: ce.attachment
1160
- }), gn = (e) => ({
1159
+ valueReference: le.attachment
1160
+ }), hn = (e) => ({
1161
1161
  propertyID: e.id,
1162
1162
  name: e.name,
1163
1163
  value: e.value,
1164
1164
  valueReference: {
1165
- valueReference: ce.attribute,
1165
+ valueReference: le.attribute,
1166
1166
  visible: e.visible
1167
1167
  }
1168
1168
  }), ue = (e, t, r) => {
1169
- const n = e.flatMap(({ name: c, values: i }) => i ? i.map((d) => ({
1169
+ const n = e.flatMap(({ name: c, values: i }) => i ? i.map((u) => ({
1170
1170
  name: c,
1171
- value: d,
1172
- valueReference: ce.specification
1171
+ value: u,
1172
+ valueReference: le.specification
1173
1173
  })) : {
1174
1174
  name: c,
1175
1175
  value: "",
1176
- valueReference: ce.specification
1177
- }), a = Array.isArray(r) ? r.map(hn) : [], o = t ? t.map(gn) : [];
1176
+ valueReference: le.specification
1177
+ }), a = Array.isArray(r) ? r.map(fn) : [], o = t ? t.map(hn) : [];
1178
1178
  return [
1179
1179
  ...n,
1180
1180
  ...a,
1181
1181
  ...o
1182
1182
  ];
1183
- }, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", bn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", wn = (e) => {
1183
+ }, De = "ÁÄÂÀÃÅČÇĆĎÉĚËÈÊẼĔȆÍÌÎÏŇÑÓÖÒÔÕØŘŔŠŤÚŮÜÙÛÝŸŽáäâàãåčçćďéěëèêẽĕȇíìîïňñóöòôõøðřŕšťúůüùûýÿžþÞĐđ߯a", gn = "AAAAAACCCDEEEEEEEEIIIINNOOOOOORRSTUUUUUYYZaaaaaacccdeeeeeeeeiiiinnooooooorrstuuuuuyyzbBDdBAa", bn = (e) => {
1184
1184
  let t = e.slice(0);
1185
1185
  for (let r = 0; r < De.length; r++)
1186
1186
  t = t.replace(
1187
1187
  new RegExp(De.charAt(r), "g"),
1188
- bn.charAt(r)
1188
+ gn.charAt(r)
1189
1189
  );
1190
1190
  return t;
1191
- }, vn = (e) => e.replace(/[·/_,:]/, "-"), Ke = (e) => {
1191
+ }, wn = (e) => e.replace(/[·/_,:]/, "-"), Ke = (e) => {
1192
1192
  const r = e.replace(/,/g, "").replace(/[*+~.()'"!:@&\[\]`/ %$#?{}|><=_^]/g, "-");
1193
- return vn(wn(r)).toLowerCase();
1194
- }, Ze = (e) => `/${e}/p`, Je = (e) => {
1193
+ return wn(bn(r)).toLowerCase();
1194
+ }, Je = (e) => `/${e}/p`, Ze = (e) => {
1195
1195
  const t = Math.max(
1196
1196
  ...e.map((n) => n.NumberOfInstallments)
1197
1197
  ), r = e.find(
@@ -1207,7 +1207,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1207
1207
  listPrice: 0,
1208
1208
  sellerDefault: !1
1209
1209
  }, a = e.map(
1210
- (o) => dn({
1210
+ (o) => un({
1211
1211
  offer: o.commertialOffer,
1212
1212
  seller: o,
1213
1213
  product: t
@@ -1215,7 +1215,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1215
1215
  ).sort(We).map((o) => (o.seller.sellerId === "1" && o.AvailableQuantity > 0 && (r.price = o.Price, r.listPrice = o.ListPrice, r.sellerDefault = !0), {
1216
1216
  availability: o.AvailableQuantity > 0,
1217
1217
  listPrice: o.ListPrice,
1218
- price: mn(o),
1218
+ price: pn(o),
1219
1219
  priceValidUntil: o.PriceValidUntil,
1220
1220
  priceCurrency: "BRL",
1221
1221
  installments: o.Installments,
@@ -1237,7 +1237,7 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1237
1237
  name: n,
1238
1238
  offers: {
1239
1239
  offers: a == null ? void 0 : a.map(({ sellerId: c, commertialOffer: i }) => ({
1240
- availability: pn(i.AvailableQuantity > 0),
1240
+ availability: dn(i.AvailableQuantity > 0),
1241
1241
  listPrice: i.ListPrice,
1242
1242
  price: i.Price,
1243
1243
  quantity: i.AvailableQuantity,
@@ -1249,8 +1249,8 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1249
1249
  sku: r
1250
1250
  // slug: getSlug('', itemId), // getSlug('', itemId) que tipo de slug é esse?
1251
1251
  };
1252
- }, yn = (e) => {
1253
- var R;
1252
+ }, vn = (e) => {
1253
+ var I;
1254
1254
  const {
1255
1255
  attributes: t,
1256
1256
  referenceId: r,
@@ -1259,73 +1259,73 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1259
1259
  itemId: o,
1260
1260
  name: c,
1261
1261
  sellers: i,
1262
- videos: d,
1262
+ videos: u,
1263
1263
  variations: g
1264
1264
  } = e, {
1265
1265
  brand: s,
1266
- categories: u,
1266
+ categories: d,
1267
1267
  categoriesIds: w,
1268
1268
  description: v,
1269
1269
  linkText: y,
1270
- productClusters: _,
1270
+ productClusters: R,
1271
1271
  clusterHighlights: p,
1272
1272
  productName: b,
1273
1273
  properties: m,
1274
1274
  productId: f,
1275
1275
  productReference: h
1276
- } = n, E = u.slice().reverse(), N = Ye(i, e.isVariantOf), I = Je(N.offers[0].installments);
1276
+ } = n, C = d.slice().reverse(), A = Ye(i, e.isVariantOf), _ = Ze(A.offers[0].installments);
1277
1277
  return {
1278
1278
  sku: o,
1279
- gtin: ((R = r == null ? void 0 : r[0]) == null ? void 0 : R.Value) ?? h ?? "",
1279
+ gtin: ((I = r == null ? void 0 : r[0]) == null ? void 0 : I.Value) ?? h ?? "",
1280
1280
  name: b ?? c,
1281
1281
  description: v,
1282
1282
  releaseDate: n.releaseDate ?? "",
1283
1283
  slug: y,
1284
- video: d[0],
1285
- categories: u,
1284
+ video: u[0],
1285
+ categories: d,
1286
1286
  categoriesIds: w,
1287
1287
  id: f,
1288
1288
  brand: { name: s, brandName: s },
1289
1289
  seo: {
1290
1290
  description: v,
1291
1291
  title: b,
1292
- canonical: Ze(y)
1292
+ canonical: Je(y)
1293
1293
  },
1294
1294
  cluster: {
1295
- generals: _,
1295
+ generals: R,
1296
1296
  highlights: p
1297
1297
  },
1298
1298
  properties: m,
1299
- availability: { status: N.offers[0].availability },
1299
+ availability: { status: A.offers[0].availability },
1300
1300
  breadcrumbList: {
1301
1301
  itemListElement: [
1302
- ...E.map((C, j) => {
1303
- const $ = C.split("/"), D = $[$.length - 2], U = $.map(Ke).join("/");
1302
+ ...C.map((k, N) => {
1303
+ const $ = k.split("/"), D = $[$.length - 2], U = $.map(Ke).join("/");
1304
1304
  return {
1305
1305
  name: D,
1306
1306
  item: U,
1307
- position: j + 1
1307
+ position: N + 1
1308
1308
  };
1309
1309
  }),
1310
1310
  {
1311
1311
  name: n.productName,
1312
1312
  item: y,
1313
- position: u.length + 1
1313
+ position: d.length + 1
1314
1314
  }
1315
1315
  ],
1316
- numberOfItems: u.length
1316
+ numberOfItems: d.length
1317
1317
  },
1318
1318
  image: Xe(a),
1319
- offers: N,
1319
+ offers: A,
1320
1320
  additionalProperty: ue(g, t, []),
1321
1321
  isVariantOf: {
1322
1322
  productGroupID: n.productId,
1323
- hasVariant: n.items.map((C) => et(C))
1323
+ hasVariant: n.items.map((k) => et(k))
1324
1324
  },
1325
- installments: I
1325
+ installments: _
1326
1326
  };
1327
- }, _n = (e) => {
1328
- var I;
1327
+ }, yn = (e) => {
1328
+ var _;
1329
1329
  const {
1330
1330
  attributes: t,
1331
1331
  referenceId: r,
@@ -1334,29 +1334,29 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1334
1334
  itemId: o,
1335
1335
  name: c,
1336
1336
  sellers: i,
1337
- Videos: d,
1337
+ Videos: u,
1338
1338
  variations: g
1339
1339
  } = e, {
1340
1340
  brand: s,
1341
- categories: u,
1341
+ categories: d,
1342
1342
  categoriesIds: w,
1343
1343
  description: v,
1344
1344
  linkText: y,
1345
- productClusters: _,
1345
+ productClusters: R,
1346
1346
  productName: p,
1347
1347
  Coleção: b,
1348
1348
  "ID Coleção": m,
1349
1349
  productId: f
1350
- } = n, h = u.slice().reverse(), E = Ye(i, e.isVariantOf), N = Je(E.offers[0].installments);
1350
+ } = n, h = d.slice().reverse(), C = Ye(i, e.isVariantOf), A = Ze(C.offers[0].installments);
1351
1351
  return {
1352
1352
  sku: o,
1353
- gtin: ((I = r[0]) == null ? void 0 : I.Value) ?? "",
1353
+ gtin: ((_ = r[0]) == null ? void 0 : _.Value) ?? "",
1354
1354
  name: p ?? c,
1355
1355
  description: v,
1356
1356
  releaseDate: n.releaseDate ?? "",
1357
1357
  slug: y,
1358
- video: d[0],
1359
- categories: u,
1358
+ video: u[0],
1359
+ categories: d,
1360
1360
  categoriesIds: w,
1361
1361
  collection: b,
1362
1362
  collectionId: m,
@@ -1365,61 +1365,61 @@ const cn = (e, t) => Mt(e, t), un = (e) => ({
1365
1365
  seo: {
1366
1366
  description: v,
1367
1367
  title: p,
1368
- canonical: Ze(y)
1368
+ canonical: Je(y)
1369
1369
  },
1370
1370
  cluster: {
1371
- generals: _,
1371
+ generals: R,
1372
1372
  highlights: []
1373
1373
  // TODO: add highlights
1374
1374
  },
1375
- availability: { status: E.offers[0].availability },
1375
+ availability: { status: C.offers[0].availability },
1376
1376
  breadcrumbList: {
1377
1377
  itemListElement: [
1378
- ...h.map((R, C) => {
1379
- const j = R.split("/"), $ = j[j.length - 2], D = j.map(Ke).join("/");
1378
+ ...h.map((I, k) => {
1379
+ const N = I.split("/"), $ = N[N.length - 2], D = N.map(Ke).join("/");
1380
1380
  return {
1381
1381
  name: $,
1382
1382
  item: D,
1383
- position: C + 1
1383
+ position: k + 1
1384
1384
  };
1385
1385
  }),
1386
1386
  {
1387
1387
  name: n.productName,
1388
1388
  item: y,
1389
- position: u.length + 1
1389
+ position: d.length + 1
1390
1390
  }
1391
1391
  ],
1392
- numberOfItems: u.length
1392
+ numberOfItems: d.length
1393
1393
  },
1394
1394
  image: Xe(a),
1395
- offers: E,
1395
+ offers: C,
1396
1396
  additionalProperty: ue(g, t, []),
1397
1397
  isVariantOf: {
1398
1398
  productGroupID: n.productId,
1399
- hasVariant: n.items.map((R) => {
1400
- const { variations: C } = R, j = C.map(($) => ({
1399
+ hasVariant: n.items.map((I) => {
1400
+ const { variations: k } = I, N = k.map(($) => ({
1401
1401
  name: $,
1402
- values: R[$]
1402
+ values: I[$]
1403
1403
  }));
1404
1404
  return {
1405
- ...et(R),
1405
+ ...et(I),
1406
1406
  additionalProperty: ue(
1407
- j,
1407
+ N,
1408
1408
  t,
1409
1409
  []
1410
1410
  )
1411
1411
  };
1412
1412
  })
1413
1413
  },
1414
- installments: N
1414
+ installments: A
1415
1415
  };
1416
- }, Rn = l.array().of(
1416
+ }, _n = l.array().of(
1417
1417
  l.object({
1418
1418
  key: l.string().required(),
1419
1419
  value: l.string().required()
1420
1420
  })
1421
1421
  ).required("Facets are required");
1422
- async function In({
1422
+ async function Rn({
1423
1423
  apiUrl: e,
1424
1424
  body: t,
1425
1425
  fetchOptions: r
@@ -1428,18 +1428,18 @@ async function In({
1428
1428
  console.error("[ERROR FETCHING] Body is required");
1429
1429
  return;
1430
1430
  }
1431
- await Rn.validate(t);
1431
+ await _n.validate(t);
1432
1432
  const n = new URLSearchParams({}), a = t.map(({ key: c, value: i }) => `${c}/${i}`).join("/");
1433
- _t(t, n);
1433
+ Rt(t, n);
1434
1434
  const o = `${e}/api/catalog_system/pub/products/crossselling/${a}`;
1435
- return T(o, {
1435
+ return j(o, {
1436
1436
  cache: "no-store",
1437
1437
  ...r
1438
- }).then((c) => c.map((d) => {
1439
- const g = Qe(d.items);
1440
- return g && Ve(g, d);
1441
- }).filter((d) => !!d).map((d) => ({
1442
- node: _n(d)
1438
+ }).then((c) => c.map((u) => {
1439
+ const g = Qe(u.items);
1440
+ return g && Ve(g, u);
1441
+ }).filter((u) => !!u).map((u) => ({
1442
+ node: yn(u)
1443
1443
  })));
1444
1444
  }
1445
1445
  const tt = ({
@@ -1457,20 +1457,20 @@ const tt = ({
1457
1457
  page: o = 1,
1458
1458
  count: c,
1459
1459
  sort: i = "",
1460
- facets: d = [],
1460
+ facets: u = [],
1461
1461
  type: g,
1462
1462
  hideUnavailableItems: s = !0,
1463
- locale: u = ""
1463
+ locale: d = ""
1464
1464
  } = t, w = new URLSearchParams({
1465
1465
  page: o.toString(),
1466
1466
  count: (c == null ? void 0 : c.toString()) ?? (n == null ? void 0 : n.ITEMS_PER_PAGE) ?? 24,
1467
1467
  query: a,
1468
1468
  sort: i,
1469
- locale: u
1469
+ locale: d
1470
1470
  });
1471
1471
  s !== void 0 && w.append("hideUnavailableItems", s.toString());
1472
- const v = d.map((y) => `${y.key}/${y.value}`).join("/") ?? "";
1473
- return Rt(
1472
+ const v = u.map((y) => `${y.key}/${y.value}`).join("/") ?? "";
1473
+ return It(
1474
1474
  `${e}/api/io/_v/api/intelligent-search/${g}/${v}?${w.toString()}`,
1475
1475
  {
1476
1476
  headers: {
@@ -1481,7 +1481,7 @@ const tt = ({
1481
1481
  }
1482
1482
  );
1483
1483
  };
1484
- async function xn({
1484
+ async function In({
1485
1485
  body: e,
1486
1486
  extraData: t,
1487
1487
  ...r
@@ -1498,8 +1498,8 @@ async function xn({
1498
1498
  extraData: t,
1499
1499
  ...r
1500
1500
  }), a = (n == null ? void 0 : n.products.map((i) => {
1501
- const d = Qe(i.items);
1502
- return d && Ve(d, i);
1501
+ const u = Qe(i.items);
1502
+ return u && Ve(u, i);
1503
1503
  }).filter((i) => !!i)) ?? [], { pagination: o, recordsFiltered: c } = n;
1504
1504
  return {
1505
1505
  data: {
@@ -1511,9 +1511,9 @@ async function xn({
1511
1511
  count: c,
1512
1512
  total: o.count
1513
1513
  },
1514
- products: a.map((i, d) => ({
1515
- node: yn(i),
1516
- cursor: d.toString()
1514
+ products: a.map((i, u) => ({
1515
+ node: vn(i),
1516
+ cursor: u.toString()
1517
1517
  }))
1518
1518
  }
1519
1519
  };
@@ -1534,40 +1534,40 @@ async function Pn({ body: e, extraData: t, ...r }) {
1534
1534
  return !n || !n.facets ? (console.error("[ERROR FETCHING] No facets found"), { data: { facets: [] } }) : {
1535
1535
  data: {
1536
1536
  ...n,
1537
- facets: It(n, e == null ? void 0 : e.selectedFacets, (e == null ? void 0 : e.query) ?? "")
1537
+ facets: Pt(n, e == null ? void 0 : e.selectedFacets, (e == null ? void 0 : e.query) ?? "")
1538
1538
  }
1539
1539
  };
1540
1540
  }
1541
- const Sn = l.object({
1541
+ const xn = l.object({
1542
1542
  query: l.string().optional(),
1543
1543
  locale: l.string().optional()
1544
1544
  });
1545
- async function Cn({ apiUrl: e, body: t, fetchOptions: r }) {
1545
+ async function Sn({ apiUrl: e, body: t, fetchOptions: r }) {
1546
1546
  if (!t) {
1547
1547
  console.error("[ERROR FETCHING] Body is required");
1548
1548
  return;
1549
1549
  }
1550
- await Sn.validate(t);
1550
+ await xn.validate(t);
1551
1551
  const { query: n = "", locale: a = "default_locale" } = t, o = new URLSearchParams({ query: n, locale: a });
1552
- return T(
1552
+ return j(
1553
1553
  `${e}/api/io/_v/api/intelligent-search/search_suggestions?${o.toString()}`,
1554
1554
  {
1555
1555
  ...r
1556
1556
  }
1557
1557
  );
1558
1558
  }
1559
- async function kn({ apiUrl: e }) {
1560
- return T(`${e}/api/io/_v/api/intelligent-search/top_searches`);
1559
+ async function Cn({ apiUrl: e }) {
1560
+ return j(`${e}/api/io/_v/api/intelligent-search/top_searches`);
1561
1561
  }
1562
- const En = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1562
+ const kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1563
1563
  __proto__: null,
1564
- getSearchAutoCompleteSuggestions: ln,
1565
- getSearchCrossellingProducts: In,
1564
+ getSearchAutoCompleteSuggestions: sn,
1565
+ getSearchCrossellingProducts: Rn,
1566
1566
  getSearchFacets: Pn,
1567
- getSearchProducts: xn,
1568
- getSearchSuggestedTerms: Cn,
1569
- getSearchTopSearchs: kn
1570
- }, Symbol.toStringTag, { value: "Module" })), An = l.object({
1567
+ getSearchProducts: In,
1568
+ getSearchSuggestedTerms: Sn,
1569
+ getSearchTopSearchs: Cn
1570
+ }, Symbol.toStringTag, { value: "Module" })), En = l.object({
1571
1571
  masterDataEntity: l.string().nonNullable(),
1572
1572
  payload: l.object().shape({}).nullable()
1573
1573
  });
@@ -1580,9 +1580,9 @@ async function On({
1580
1580
  console.error("[ERROR FETCHING] Body is required");
1581
1581
  return;
1582
1582
  }
1583
- await An.validate(t);
1583
+ await En.validate(t);
1584
1584
  const { masterDataEntity: n, payload: a } = t, o = `${e}/api/dataentities/${n}/documents`;
1585
- return T(o, {
1585
+ return j(o, {
1586
1586
  method: "POST",
1587
1587
  body: {
1588
1588
  payload: a
@@ -1590,21 +1590,21 @@ async function On({
1590
1590
  ...r
1591
1591
  });
1592
1592
  }
1593
- const Tn = l.object().shape({
1593
+ const An = l.object().shape({
1594
1594
  _where: l.string().optional(),
1595
1595
  _fields: l.string().optional(),
1596
1596
  _sort: l.string().optional(),
1597
1597
  _from: l.number().integer().min(0).optional(),
1598
1598
  _to: l.number().integer().min(0).optional(),
1599
1599
  _keyword: l.string().optional()
1600
- }), qn = l.object({
1600
+ }), Tn = l.object({
1601
1601
  masterDataEntity: l.string().required(),
1602
- searchFields: Tn,
1602
+ searchFields: An,
1603
1603
  headers: l.object().shape({
1604
1604
  "REST-Range": l.string().notRequired()
1605
1605
  })
1606
1606
  });
1607
- async function Nn({
1607
+ async function rt({
1608
1608
  apiUrl: e,
1609
1609
  body: t,
1610
1610
  fetchOptions: r
@@ -1614,14 +1614,14 @@ async function Nn({
1614
1614
  return;
1615
1615
  }
1616
1616
  const n = new URLSearchParams();
1617
- await qn.validate(t);
1617
+ await Tn.validate(t);
1618
1618
  const { masterDataEntity: a, searchFields: o, headers: c } = t;
1619
1619
  o && Object.entries(o).forEach(([g, s]) => {
1620
1620
  n.append(g, String(s));
1621
1621
  }), "_fields" in o || n == null || n.append("_fields", "_all");
1622
- let i = [], d = null;
1622
+ let i = [], u = null;
1623
1623
  do {
1624
- d && n.set("_scroll", d);
1624
+ u && n.set("_scroll", u);
1625
1625
  const g = await fetch(
1626
1626
  `${e}/api/dataentities/${a}/search?${n.toString()}`,
1627
1627
  {
@@ -1638,8 +1638,8 @@ async function Nn({
1638
1638
  `[MasterData] ${g.status} - ${g.statusText}`
1639
1639
  );
1640
1640
  const s = await g.json();
1641
- i.push(...s), d = g.headers.get("x-vtex-md-scroll");
1642
- } while (d);
1641
+ i.push(...s), u = g.headers.get("x-vtex-md-scroll");
1642
+ } while (u);
1643
1643
  return i;
1644
1644
  }
1645
1645
  const jn = l.object({
@@ -1647,7 +1647,7 @@ const jn = l.object({
1647
1647
  id: l.string().required(),
1648
1648
  fieldsToBeUpdated: l.object().shape({})
1649
1649
  });
1650
- async function Fn({
1650
+ async function qn({
1651
1651
  apiUrl: e,
1652
1652
  body: t,
1653
1653
  fetchOptions: r
@@ -1658,7 +1658,7 @@ async function Fn({
1658
1658
  }
1659
1659
  await jn.validate(t);
1660
1660
  const { dataEntityName: n, id: a, fieldsToBeUpdated: o } = t, c = `${e}/api/dataentities/${n}/documents/${a}`;
1661
- return T(c, {
1661
+ return j(c, {
1662
1662
  body: {
1663
1663
  fieldsToBeUpdated: o
1664
1664
  },
@@ -1666,28 +1666,28 @@ async function Fn({
1666
1666
  ...r
1667
1667
  });
1668
1668
  }
1669
- const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1669
+ const Nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1670
1670
  __proto__: null,
1671
- getSearchMasterdata: Nn,
1672
- patchUpdateMasterdata: Fn,
1671
+ getSearchMasterdata: rt,
1672
+ patchUpdateMasterdata: qn,
1673
1673
  postMasterdata: On
1674
1674
  }, Symbol.toStringTag, { value: "Module" }));
1675
- async function Ln({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1675
+ async function Fn({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1676
1676
  const { productIds: a } = e;
1677
1677
  if (!a)
1678
1678
  return console.error("[ERROR FETCHING] productIds is required"), [];
1679
1679
  const { NAME_SPLIT_SYMBOL: o } = r;
1680
1680
  if (!o)
1681
1681
  return console.error("[ERROR FETCHING] NAME_SPLIT_SYMBOL is required"), [];
1682
- const c = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), i = await T(
1682
+ const c = a.map((s) => typeof s == "string" || typeof s == "number" ? `productId:${s}` : "").join("&fq="), i = await j(
1683
1683
  `${t}/api/catalog_system/pub/products/search?fq=${c}`,
1684
1684
  {
1685
1685
  ...n
1686
1686
  }
1687
- ), d = (s) => Object.keys(s).map((u) => ({ id: u, name: s[u] }));
1688
- return i.map((s, u) => {
1687
+ ), u = (s) => Object.keys(s).map((d) => ({ id: d, name: s[d] }));
1688
+ return i.map((s, d) => {
1689
1689
  var f;
1690
- const { installments: w, price: v, listPrice: y, sizes: _, allSizesAvailable: p } = xt({ items: s.items, NAME_SPLIT_SYMBOL: o }), b = p ? !0 : _.some((h) => h.available), m = s.items[0].sellers[0].commertialOffer;
1690
+ const { installments: w, price: v, listPrice: y, sizes: R, allSizesAvailable: p } = xt({ items: s.items, NAME_SPLIT_SYMBOL: o }), b = p ? !0 : R.some((h) => h.available), m = s.items[0].sellers[0].commertialOffer;
1691
1691
  return {
1692
1692
  node: {
1693
1693
  sku: s.items[0].itemId,
@@ -1709,8 +1709,8 @@ async function Ln({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1709
1709
  canonical: `/${s.linkText}/p`
1710
1710
  },
1711
1711
  cluster: {
1712
- generals: d(s.productClusters),
1713
- highlights: d(s.clusterHighlights)
1712
+ generals: u(s.productClusters),
1713
+ highlights: u(s.clusterHighlights)
1714
1714
  },
1715
1715
  availability: {
1716
1716
  status: b
@@ -1718,10 +1718,10 @@ async function Ln({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1718
1718
  image: s.items[0].images.map(
1719
1719
  ({
1720
1720
  imageLabel: h,
1721
- imageUrl: E
1721
+ imageUrl: C
1722
1722
  }) => ({
1723
1723
  alternateName: h,
1724
- url: E,
1724
+ url: C,
1725
1725
  keywords: h
1726
1726
  })
1727
1727
  ),
@@ -1752,26 +1752,26 @@ async function Ln({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1752
1752
  isVariantOf: {
1753
1753
  productGroupID: s.productId,
1754
1754
  hasVariant: s.items.map((h) => {
1755
- var E;
1755
+ var C;
1756
1756
  return {
1757
1757
  additionalProperty: h == null ? void 0 : h.variations.map(() => {
1758
- var N, I, R;
1758
+ var A, _, I;
1759
1759
  return {
1760
- name: (N = h == null ? void 0 : h.variations) == null ? void 0 : N[0],
1761
- value: (R = h == null ? void 0 : h[(I = h == null ? void 0 : h.variations) == null ? void 0 : I[0]]) == null ? void 0 : R[0],
1760
+ name: (A = h == null ? void 0 : h.variations) == null ? void 0 : A[0],
1761
+ value: (I = h == null ? void 0 : h[(_ = h == null ? void 0 : h.variations) == null ? void 0 : _[0]]) == null ? void 0 : I[0],
1762
1762
  valueReference: "SPECIFICATION"
1763
1763
  };
1764
1764
  }),
1765
1765
  name: h.name,
1766
1766
  offers: {
1767
- offers: (E = h.sellers) == null ? void 0 : E.map(
1768
- ({ commertialOffer: N, sellerId: I }) => ({
1767
+ offers: (C = h.sellers) == null ? void 0 : C.map(
1768
+ ({ commertialOffer: A, sellerId: _ }) => ({
1769
1769
  availability: "https://schema.org/InStock",
1770
- listPrice: N.ListPrice,
1771
- price: N.Price,
1772
- quantity: N.AvailableQuantity,
1770
+ listPrice: A.ListPrice,
1771
+ price: A.Price,
1772
+ quantity: A.AvailableQuantity,
1773
1773
  seller: {
1774
- identifier: I
1774
+ identifier: _
1775
1775
  }
1776
1776
  })
1777
1777
  )
@@ -1783,15 +1783,15 @@ async function Ln({ body: e, apiUrl: t, extraData: r, fetchOptions: n }) {
1783
1783
  },
1784
1784
  installments: w
1785
1785
  },
1786
- cursor: u.toString()
1786
+ cursor: d.toString()
1787
1787
  };
1788
1788
  });
1789
1789
  }
1790
- const Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1790
+ const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1791
1791
  __proto__: null,
1792
- getWishlistProducts: Ln
1792
+ getWishlistProducts: Fn
1793
1793
  }, Symbol.toStringTag, { value: "Module" }));
1794
- var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
1794
+ var _e = { exports: {} }, nt = {}, Ie = {}, at = {}, it = {};
1795
1795
  (function(e) {
1796
1796
  Object.defineProperty(e, "__esModule", {
1797
1797
  value: !0
@@ -1801,14 +1801,14 @@ var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
1801
1801
  return r;
1802
1802
  }
1803
1803
  });
1804
- const t = Pt;
1804
+ const t = St;
1805
1805
  function r(n, a) {
1806
1806
  if (!n.startsWith("/") || !a)
1807
1807
  return n;
1808
1808
  const { pathname: o, query: c, hash: i } = (0, t.parsePath)(n);
1809
1809
  return "" + o + a + c + i;
1810
1810
  }
1811
- })(at);
1811
+ })(it);
1812
1812
  (function(e) {
1813
1813
  Object.defineProperty(e, "__esModule", {
1814
1814
  value: !0
@@ -1818,13 +1818,13 @@ var _e = { exports: {} }, rt = {}, Ie = {}, nt = {}, at = {};
1818
1818
  return o;
1819
1819
  }
1820
1820
  });
1821
- const t = Ct, r = kt, n = at, a = St;
1821
+ const t = kt, r = Et, n = it, a = Ct;
1822
1822
  function o(c) {
1823
1823
  let i = (0, a.addLocale)(c.pathname, c.locale, c.buildId ? void 0 : c.defaultLocale, c.ignorePrefix);
1824
1824
  return (c.buildId || !c.trailingSlash) && (i = (0, t.removeTrailingSlash)(i)), c.buildId && (i = (0, n.addPathSuffix)((0, r.addPathPrefix)(i, "/_next/data/" + c.buildId), c.pathname === "/" ? "index.json" : ".json")), i = (0, r.addPathPrefix)(i, c.basePath), !c.buildId && c.trailingSlash ? i.endsWith("/") ? i : (0, n.addPathSuffix)(i, "/") : (0, t.removeTrailingSlash)(i);
1825
1825
  }
1826
- })(nt);
1827
- var it = {};
1826
+ })(at);
1827
+ var ot = {};
1828
1828
  (function(e) {
1829
1829
  Object.defineProperty(e, "__esModule", {
1830
1830
  value: !0
@@ -1843,8 +1843,8 @@ var it = {};
1843
1843
  else return;
1844
1844
  return a.toLowerCase();
1845
1845
  }
1846
- })(it);
1847
- var ot = {}, st = {};
1846
+ })(ot);
1847
+ var st = {}, ct = {};
1848
1848
  (function(e) {
1849
1849
  Object.defineProperty(e, "__esModule", {
1850
1850
  value: !0
@@ -1861,7 +1861,7 @@ var ot = {}, st = {};
1861
1861
  const o = n.slice(a.length);
1862
1862
  return o.startsWith("/") ? o : "/" + o;
1863
1863
  }
1864
- })(st);
1864
+ })(ct);
1865
1865
  (function(e) {
1866
1866
  Object.defineProperty(e, "__esModule", {
1867
1867
  value: !0
@@ -1871,61 +1871,61 @@ var ot = {}, st = {};
1871
1871
  return a;
1872
1872
  }
1873
1873
  });
1874
- const t = Et, r = st, n = Be;
1874
+ const t = Ot, r = ct, n = Be;
1875
1875
  function a(o, c) {
1876
1876
  var i;
1877
- const { basePath: d, i18n: g, trailingSlash: s } = (i = c.nextConfig) != null ? i : {}, u = {
1877
+ const { basePath: u, i18n: g, trailingSlash: s } = (i = c.nextConfig) != null ? i : {}, d = {
1878
1878
  pathname: o,
1879
1879
  trailingSlash: o !== "/" ? o.endsWith("/") : s
1880
1880
  };
1881
- d && (0, n.pathHasPrefix)(u.pathname, d) && (u.pathname = (0, r.removePathPrefix)(u.pathname, d), u.basePath = d);
1882
- let w = u.pathname;
1883
- if (u.pathname.startsWith("/_next/data/") && u.pathname.endsWith(".json")) {
1884
- const y = u.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), _ = y[0];
1885
- u.buildId = _, w = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/", c.parseData === !0 && (u.pathname = w);
1881
+ u && (0, n.pathHasPrefix)(d.pathname, u) && (d.pathname = (0, r.removePathPrefix)(d.pathname, u), d.basePath = u);
1882
+ let w = d.pathname;
1883
+ if (d.pathname.startsWith("/_next/data/") && d.pathname.endsWith(".json")) {
1884
+ const y = d.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/"), R = y[0];
1885
+ d.buildId = R, w = y[1] !== "index" ? "/" + y.slice(1).join("/") : "/", c.parseData === !0 && (d.pathname = w);
1886
1886
  }
1887
1887
  if (g) {
1888
- let y = c.i18nProvider ? c.i18nProvider.analyze(u.pathname) : (0, t.normalizeLocalePath)(u.pathname, g.locales);
1889
- u.locale = y.detectedLocale;
1888
+ let y = c.i18nProvider ? c.i18nProvider.analyze(d.pathname) : (0, t.normalizeLocalePath)(d.pathname, g.locales);
1889
+ d.locale = y.detectedLocale;
1890
1890
  var v;
1891
- u.pathname = (v = y.pathname) != null ? v : u.pathname, !y.detectedLocale && u.buildId && (y = c.i18nProvider ? c.i18nProvider.analyze(w) : (0, t.normalizeLocalePath)(w, g.locales), y.detectedLocale && (u.locale = y.detectedLocale));
1891
+ d.pathname = (v = y.pathname) != null ? v : d.pathname, !y.detectedLocale && d.buildId && (y = c.i18nProvider ? c.i18nProvider.analyze(w) : (0, t.normalizeLocalePath)(w, g.locales), y.detectedLocale && (d.locale = y.detectedLocale));
1892
1892
  }
1893
- return u;
1893
+ return d;
1894
1894
  }
1895
- })(ot);
1895
+ })(st);
1896
1896
  (function(e) {
1897
1897
  Object.defineProperty(e, "__esModule", {
1898
1898
  value: !0
1899
1899
  }), Object.defineProperty(e, "NextURL", {
1900
1900
  enumerable: !0,
1901
1901
  get: function() {
1902
- return d;
1902
+ return u;
1903
1903
  }
1904
1904
  });
1905
- const t = At, r = nt, n = it, a = ot, o = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
1905
+ const t = At, r = at, n = ot, a = st, o = /(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;
1906
1906
  function c(g, s) {
1907
1907
  return new URL(String(g).replace(o, "localhost"), s && String(s).replace(o, "localhost"));
1908
1908
  }
1909
1909
  const i = Symbol("NextURLInternal");
1910
- class d {
1911
- constructor(s, u, w) {
1910
+ class u {
1911
+ constructor(s, d, w) {
1912
1912
  let v, y;
1913
- typeof u == "object" && "pathname" in u || typeof u == "string" ? (v = u, y = w || {}) : y = w || u || {}, this[i] = {
1913
+ typeof d == "object" && "pathname" in d || typeof d == "string" ? (v = d, y = w || {}) : y = w || d || {}, this[i] = {
1914
1914
  url: c(s, v ?? y.base),
1915
1915
  options: y,
1916
1916
  basePath: ""
1917
1917
  }, this.analyze();
1918
1918
  }
1919
1919
  analyze() {
1920
- var s, u, w, v, y;
1921
- const _ = (0, a.getNextPathnameInfo)(this[i].url.pathname, {
1920
+ var s, d, w, v, y;
1921
+ const R = (0, a.getNextPathnameInfo)(this[i].url.pathname, {
1922
1922
  nextConfig: this[i].options.nextConfig,
1923
1923
  parseData: !process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE,
1924
1924
  i18nProvider: this[i].options.i18nProvider
1925
1925
  }), p = (0, n.getHostname)(this[i].url, this[i].options.headers);
1926
- this[i].domainLocale = this[i].options.i18nProvider ? this[i].options.i18nProvider.detectDomainLocale(p) : (0, t.detectDomainLocale)((u = this[i].options.nextConfig) == null || (s = u.i18n) == null ? void 0 : s.domains, p);
1926
+ this[i].domainLocale = this[i].options.i18nProvider ? this[i].options.i18nProvider.detectDomainLocale(p) : (0, t.detectDomainLocale)((d = this[i].options.nextConfig) == null || (s = d.i18n) == null ? void 0 : s.domains, p);
1927
1927
  const b = ((w = this[i].domainLocale) == null ? void 0 : w.defaultLocale) || ((y = this[i].options.nextConfig) == null || (v = y.i18n) == null ? void 0 : v.defaultLocale);
1928
- this[i].url.pathname = _.pathname, this[i].defaultLocale = b, this[i].basePath = _.basePath ?? "", this[i].buildId = _.buildId, this[i].locale = _.locale ?? b, this[i].trailingSlash = _.trailingSlash;
1928
+ this[i].url.pathname = R.pathname, this[i].defaultLocale = b, this[i].basePath = R.basePath ?? "", this[i].buildId = R.buildId, this[i].locale = R.locale ?? b, this[i].trailingSlash = R.trailingSlash;
1929
1929
  }
1930
1930
  formatPathname() {
1931
1931
  return (0, r.formatNextPathnameInfo)({
@@ -1950,8 +1950,8 @@ var ot = {}, st = {};
1950
1950
  return this[i].locale ?? "";
1951
1951
  }
1952
1952
  set locale(s) {
1953
- var u, w;
1954
- if (!this[i].locale || !(!((w = this[i].options.nextConfig) == null || (u = w.i18n) == null) && u.locales.includes(s)))
1953
+ var d, w;
1954
+ if (!this[i].locale || !(!((w = this[i].options.nextConfig) == null || (d = w.i18n) == null) && d.locales.includes(s)))
1955
1955
  throw new TypeError(`The NextURL configuration includes no locale "${s}"`);
1956
1956
  this[i].locale = s;
1957
1957
  }
@@ -1989,8 +1989,8 @@ var ot = {}, st = {};
1989
1989
  this[i].url.protocol = s;
1990
1990
  }
1991
1991
  get href() {
1992
- const s = this.formatPathname(), u = this.formatSearch();
1993
- return `${this.protocol}//${this.host}${s}${u}${this.hash}`;
1992
+ const s = this.formatPathname(), d = this.formatSearch();
1993
+ return `${this.protocol}//${this.host}${s}${d}${this.hash}`;
1994
1994
  }
1995
1995
  set href(s) {
1996
1996
  this[i].url = c(s), this.analyze();
@@ -2057,17 +2057,17 @@ var ot = {}, st = {};
2057
2057
  };
2058
2058
  }
2059
2059
  clone() {
2060
- return new d(String(this), this[i].options);
2060
+ return new u(String(this), this[i].options);
2061
2061
  }
2062
2062
  }
2063
2063
  })(Ie);
2064
- var xe = {};
2064
+ var Pe = {};
2065
2065
  (function(e) {
2066
2066
  Object.defineProperty(e, "__esModule", {
2067
2067
  value: !0
2068
2068
  });
2069
- function t(d, g) {
2070
- for (var s in g) Object.defineProperty(d, s, {
2069
+ function t(u, g) {
2070
+ for (var s in g) Object.defineProperty(u, s, {
2071
2071
  enumerable: !0,
2072
2072
  get: g[s]
2073
2073
  });
@@ -2089,68 +2089,68 @@ var xe = {};
2089
2089
  return c;
2090
2090
  }
2091
2091
  });
2092
- const r = Ot;
2093
- function n(d) {
2092
+ const r = Tt;
2093
+ function n(u) {
2094
2094
  const g = new Headers();
2095
- for (let [s, u] of Object.entries(d)) {
2096
- const w = Array.isArray(u) ? u : [
2097
- u
2095
+ for (let [s, d] of Object.entries(u)) {
2096
+ const w = Array.isArray(d) ? d : [
2097
+ d
2098
2098
  ];
2099
2099
  for (let v of w)
2100
2100
  typeof v > "u" || (typeof v == "number" && (v = v.toString()), g.append(s, v));
2101
2101
  }
2102
2102
  return g;
2103
2103
  }
2104
- function a(d) {
2105
- var g = [], s = 0, u, w, v, y, _;
2104
+ function a(u) {
2105
+ var g = [], s = 0, d, w, v, y, R;
2106
2106
  function p() {
2107
- for (; s < d.length && /\s/.test(d.charAt(s)); )
2107
+ for (; s < u.length && /\s/.test(u.charAt(s)); )
2108
2108
  s += 1;
2109
- return s < d.length;
2109
+ return s < u.length;
2110
2110
  }
2111
2111
  function b() {
2112
- return w = d.charAt(s), w !== "=" && w !== ";" && w !== ",";
2112
+ return w = u.charAt(s), w !== "=" && w !== ";" && w !== ",";
2113
2113
  }
2114
- for (; s < d.length; ) {
2115
- for (u = s, _ = !1; p(); )
2116
- if (w = d.charAt(s), w === ",") {
2117
- for (v = s, s += 1, p(), y = s; s < d.length && b(); )
2114
+ for (; s < u.length; ) {
2115
+ for (d = s, R = !1; p(); )
2116
+ if (w = u.charAt(s), w === ",") {
2117
+ for (v = s, s += 1, p(), y = s; s < u.length && b(); )
2118
2118
  s += 1;
2119
- s < d.length && d.charAt(s) === "=" ? (_ = !0, s = y, g.push(d.substring(u, v)), u = s) : s = v + 1;
2119
+ s < u.length && u.charAt(s) === "=" ? (R = !0, s = y, g.push(u.substring(d, v)), d = s) : s = v + 1;
2120
2120
  } else
2121
2121
  s += 1;
2122
- (!_ || s >= d.length) && g.push(d.substring(u, d.length));
2122
+ (!R || s >= u.length) && g.push(u.substring(d, u.length));
2123
2123
  }
2124
2124
  return g;
2125
2125
  }
2126
- function o(d) {
2126
+ function o(u) {
2127
2127
  const g = {}, s = [];
2128
- if (d)
2129
- for (const [u, w] of d.entries())
2130
- u.toLowerCase() === "set-cookie" ? (s.push(...a(w)), g[u] = s.length === 1 ? s[0] : s) : g[u] = w;
2128
+ if (u)
2129
+ for (const [d, w] of u.entries())
2130
+ d.toLowerCase() === "set-cookie" ? (s.push(...a(w)), g[d] = s.length === 1 ? s[0] : s) : g[d] = w;
2131
2131
  return g;
2132
2132
  }
2133
- function c(d) {
2133
+ function c(u) {
2134
2134
  try {
2135
- return String(new URL(String(d)));
2135
+ return String(new URL(String(u)));
2136
2136
  } catch (g) {
2137
- throw new Error(`URL is malformed "${String(d)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
2137
+ throw new Error(`URL is malformed "${String(u)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`, {
2138
2138
  cause: g
2139
2139
  });
2140
2140
  }
2141
2141
  }
2142
- function i(d, g) {
2142
+ function i(u, g) {
2143
2143
  const s = [
2144
2144
  r.NEXT_QUERY_PARAM_PREFIX,
2145
2145
  r.NEXT_INTERCEPTION_MARKER_PREFIX
2146
2146
  ];
2147
- for (const u of s)
2148
- if (d !== u && d.startsWith(u)) {
2149
- const w = d.substring(u.length);
2147
+ for (const d of s)
2148
+ if (u !== d && u.startsWith(d)) {
2149
+ const w = u.substring(d.length);
2150
2150
  g(w);
2151
2151
  }
2152
2152
  }
2153
- })(xe);
2153
+ })(Pe);
2154
2154
  var lt = {};
2155
2155
  (function(e) {
2156
2156
  Object.defineProperty(e, "__esModule", {
@@ -2196,23 +2196,23 @@ var lt = {};
2196
2196
  }
2197
2197
  }
2198
2198
  })(lt);
2199
- var de = {}, Pe = Object.defineProperty, Un = Object.getOwnPropertyDescriptor, Hn = Object.getOwnPropertyNames, Mn = Object.prototype.hasOwnProperty, Bn = (e, t) => {
2199
+ var de = {}, xe = Object.defineProperty, Ln = Object.getOwnPropertyDescriptor, Dn = Object.getOwnPropertyNames, Un = Object.prototype.hasOwnProperty, Mn = (e, t) => {
2200
2200
  for (var r in t)
2201
- Pe(e, r, { get: t[r], enumerable: !0 });
2202
- }, zn = (e, t, r, n) => {
2201
+ xe(e, r, { get: t[r], enumerable: !0 });
2202
+ }, Hn = (e, t, r, n) => {
2203
2203
  if (t && typeof t == "object" || typeof t == "function")
2204
- for (let a of Hn(t))
2205
- !Mn.call(e, a) && a !== r && Pe(e, a, { get: () => t[a], enumerable: !(n = Un(t, a)) || n.enumerable });
2204
+ for (let a of Dn(t))
2205
+ !Un.call(e, a) && a !== r && xe(e, a, { get: () => t[a], enumerable: !(n = Ln(t, a)) || n.enumerable });
2206
2206
  return e;
2207
- }, Gn = (e) => zn(Pe({}, "__esModule", { value: !0 }), e), ct = {};
2208
- Bn(ct, {
2209
- RequestCookies: () => Yn,
2210
- ResponseCookies: () => ea,
2207
+ }, Bn = (e) => Hn(xe({}, "__esModule", { value: !0 }), e), ut = {};
2208
+ Mn(ut, {
2209
+ RequestCookies: () => Jn,
2210
+ ResponseCookies: () => Zn,
2211
2211
  parseCookie: () => Se,
2212
- parseSetCookie: () => ut,
2212
+ parseSetCookie: () => dt,
2213
2213
  stringifyCookie: () => K
2214
2214
  });
2215
- var Vn = Gn(ct);
2215
+ var zn = Bn(ut);
2216
2216
  function K(e) {
2217
2217
  var t;
2218
2218
  const r = [
@@ -2246,7 +2246,7 @@ function Se(e) {
2246
2246
  }
2247
2247
  return t;
2248
2248
  }
2249
- function ut(e) {
2249
+ function dt(e) {
2250
2250
  if (!e)
2251
2251
  return;
2252
2252
  const [[t, r], ...n] = Se(e), {
@@ -2254,13 +2254,13 @@ function ut(e) {
2254
2254
  expires: o,
2255
2255
  httponly: c,
2256
2256
  maxage: i,
2257
- path: d,
2257
+ path: u,
2258
2258
  samesite: g,
2259
2259
  secure: s,
2260
- partitioned: u,
2260
+ partitioned: d,
2261
2261
  priority: w
2262
2262
  } = Object.fromEntries(
2263
- n.map(([y, _]) => [y.toLowerCase(), _])
2263
+ n.map(([y, R]) => [y.toLowerCase(), R])
2264
2264
  ), v = {
2265
2265
  name: t,
2266
2266
  value: decodeURIComponent(r),
@@ -2268,33 +2268,33 @@ function ut(e) {
2268
2268
  ...o && { expires: new Date(o) },
2269
2269
  ...c && { httpOnly: !0 },
2270
2270
  ...typeof i == "string" && { maxAge: Number(i) },
2271
- path: d,
2272
- ...g && { sameSite: Xn(g) },
2271
+ path: u,
2272
+ ...g && { sameSite: Wn(g) },
2273
2273
  ...s && { secure: !0 },
2274
- ...w && { priority: Zn(w) },
2275
- ...u && { partitioned: !0 }
2274
+ ...w && { priority: Xn(w) },
2275
+ ...d && { partitioned: !0 }
2276
2276
  };
2277
- return Wn(v);
2277
+ return Gn(v);
2278
2278
  }
2279
- function Wn(e) {
2279
+ function Gn(e) {
2280
2280
  const t = {};
2281
2281
  for (const r in e)
2282
2282
  e[r] && (t[r] = e[r]);
2283
2283
  return t;
2284
2284
  }
2285
- var Qn = ["strict", "lax", "none"];
2285
+ var Vn = ["strict", "lax", "none"];
2286
+ function Wn(e) {
2287
+ return e = e.toLowerCase(), Vn.includes(e) ? e : void 0;
2288
+ }
2289
+ var Qn = ["low", "medium", "high"];
2286
2290
  function Xn(e) {
2287
2291
  return e = e.toLowerCase(), Qn.includes(e) ? e : void 0;
2288
2292
  }
2289
- var Kn = ["low", "medium", "high"];
2290
- function Zn(e) {
2291
- return e = e.toLowerCase(), Kn.includes(e) ? e : void 0;
2292
- }
2293
- function Jn(e) {
2293
+ function Kn(e) {
2294
2294
  if (!e)
2295
2295
  return [];
2296
2296
  var t = [], r = 0, n, a, o, c, i;
2297
- function d() {
2297
+ function u() {
2298
2298
  for (; r < e.length && /\s/.test(e.charAt(r)); )
2299
2299
  r += 1;
2300
2300
  return r < e.length;
@@ -2303,9 +2303,9 @@ function Jn(e) {
2303
2303
  return a = e.charAt(r), a !== "=" && a !== ";" && a !== ",";
2304
2304
  }
2305
2305
  for (; r < e.length; ) {
2306
- for (n = r, i = !1; d(); )
2306
+ for (n = r, i = !1; u(); )
2307
2307
  if (a = e.charAt(r), a === ",") {
2308
- for (o = r, r += 1, d(), c = r; r < e.length && g(); )
2308
+ for (o = r, r += 1, u(), c = r; r < e.length && g(); )
2309
2309
  r += 1;
2310
2310
  r < e.length && e.charAt(r) === "=" ? (i = !0, r = c, t.push(e.substring(n, o)), n = r) : r = o + 1;
2311
2311
  } else
@@ -2314,7 +2314,7 @@ function Jn(e) {
2314
2314
  }
2315
2315
  return t;
2316
2316
  }
2317
- var Yn = class {
2317
+ var Jn = class {
2318
2318
  constructor(e) {
2319
2319
  this._parsed = /* @__PURE__ */ new Map(), this._headers = e;
2320
2320
  const t = e.get("cookie");
@@ -2380,14 +2380,14 @@ var Yn = class {
2380
2380
  toString() {
2381
2381
  return [...this._parsed.values()].map((e) => `${e.name}=${encodeURIComponent(e.value)}`).join("; ");
2382
2382
  }
2383
- }, ea = class {
2383
+ }, Zn = class {
2384
2384
  constructor(e) {
2385
2385
  this._parsed = /* @__PURE__ */ new Map();
2386
2386
  var t, r, n;
2387
2387
  this._headers = e;
2388
- const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a : Jn(a);
2388
+ const a = (n = (r = (t = e.getSetCookie) == null ? void 0 : t.call(e)) != null ? r : e.get("set-cookie")) != null ? n : [], o = Array.isArray(a) ? a : Kn(a);
2389
2389
  for (const c of o) {
2390
- const i = ut(c);
2390
+ const i = dt(c);
2391
2391
  i && this._parsed.set(i.name, i);
2392
2392
  }
2393
2393
  }
@@ -2417,7 +2417,7 @@ var Yn = class {
2417
2417
  */
2418
2418
  set(...e) {
2419
2419
  const [t, r, n] = e.length === 1 ? [e[0].name, e[0].value, e[0]] : e, a = this._parsed;
2420
- return a.set(t, ra({ name: t, value: r, ...n })), ta(a, this._headers), this;
2420
+ return a.set(t, ea({ name: t, value: r, ...n })), Yn(a, this._headers), this;
2421
2421
  }
2422
2422
  /**
2423
2423
  * {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
@@ -2433,14 +2433,14 @@ var Yn = class {
2433
2433
  return [...this._parsed.values()].map(K).join("; ");
2434
2434
  }
2435
2435
  };
2436
- function ta(e, t) {
2436
+ function Yn(e, t) {
2437
2437
  t.delete("set-cookie");
2438
2438
  for (const [, r] of e) {
2439
2439
  const n = K(r);
2440
2440
  t.append("set-cookie", n);
2441
2441
  }
2442
2442
  }
2443
- function ra(e = { name: "", value: "" }) {
2443
+ function ea(e = { name: "", value: "" }) {
2444
2444
  return typeof e.expires == "number" && (e.expires = new Date(e.expires)), e.maxAge && (e.expires = new Date(Date.now() + e.maxAge * 1e3)), (e.path === null || e.path === void 0) && (e.path = "/"), e;
2445
2445
  }
2446
2446
  (function(e) {
@@ -2464,14 +2464,14 @@ function ra(e = { name: "", value: "" }) {
2464
2464
  return r.stringifyCookie;
2465
2465
  }
2466
2466
  });
2467
- const r = Vn;
2467
+ const r = zn;
2468
2468
  })(de);
2469
2469
  (function(e) {
2470
2470
  Object.defineProperty(e, "__esModule", {
2471
2471
  value: !0
2472
2472
  });
2473
- function t(d, g) {
2474
- for (var s in g) Object.defineProperty(d, s, {
2473
+ function t(u, g) {
2474
+ for (var s in g) Object.defineProperty(u, s, {
2475
2475
  enumerable: !0,
2476
2476
  get: g[s]
2477
2477
  });
@@ -2484,12 +2484,12 @@ function ra(e = { name: "", value: "" }) {
2484
2484
  return i;
2485
2485
  }
2486
2486
  });
2487
- const r = Ie, n = xe, a = lt, o = de, c = Symbol("internal request");
2487
+ const r = Ie, n = Pe, a = lt, o = de, c = Symbol("internal request");
2488
2488
  class i extends Request {
2489
2489
  constructor(g, s = {}) {
2490
- const u = typeof g != "string" && "url" in g ? g.url : String(g);
2491
- (0, n.validateURL)(u), g instanceof Request ? super(g, s) : super(u, s);
2492
- const w = new r.NextURL(u, {
2490
+ const d = typeof g != "string" && "url" in g ? g.url : String(g);
2491
+ (0, n.validateURL)(d), g instanceof Request ? super(g, s) : super(d, s);
2492
+ const w = new r.NextURL(d, {
2493
2493
  headers: (0, n.toNodeOutgoingHttpHeaders)(this.headers),
2494
2494
  nextConfig: s.nextConfig
2495
2495
  });
@@ -2498,7 +2498,7 @@ function ra(e = { name: "", value: "" }) {
2498
2498
  geo: s.geo || {},
2499
2499
  ip: s.ip,
2500
2500
  nextUrl: w,
2501
- url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? u : w.toString()
2501
+ url: process.env.__NEXT_NO_MIDDLEWARE_URL_NORMALIZE ? d : w.toString()
2502
2502
  };
2503
2503
  }
2504
2504
  [Symbol.for("edge-runtime.inspect.custom")]() {
@@ -2556,8 +2556,8 @@ function ra(e = { name: "", value: "" }) {
2556
2556
  return this[c].url;
2557
2557
  }
2558
2558
  }
2559
- })(rt);
2560
- var dt = {}, pt = {};
2559
+ })(nt);
2560
+ var pt = {}, mt = {};
2561
2561
  (function(e) {
2562
2562
  Object.defineProperty(e, "__esModule", {
2563
2563
  value: !0
@@ -2582,7 +2582,7 @@ var dt = {}, pt = {};
2582
2582
  return Reflect.deleteProperty(n, a);
2583
2583
  }
2584
2584
  }
2585
- })(pt);
2585
+ })(mt);
2586
2586
  (function(e) {
2587
2587
  Object.defineProperty(e, "__esModule", {
2588
2588
  value: !0
@@ -2592,35 +2592,35 @@ var dt = {}, pt = {};
2592
2592
  return g;
2593
2593
  }
2594
2594
  });
2595
- const t = de, r = Ie, n = xe, a = pt, o = de, c = Symbol("internal response"), i = /* @__PURE__ */ new Set([
2595
+ const t = de, r = Ie, n = Pe, a = mt, o = de, c = Symbol("internal response"), i = /* @__PURE__ */ new Set([
2596
2596
  301,
2597
2597
  302,
2598
2598
  303,
2599
2599
  307,
2600
2600
  308
2601
2601
  ]);
2602
- function d(s, u) {
2602
+ function u(s, d) {
2603
2603
  var w;
2604
2604
  if (!(s == null || (w = s.request) == null) && w.headers) {
2605
2605
  if (!(s.request.headers instanceof Headers))
2606
2606
  throw new Error("request.headers must be an instance of Headers");
2607
2607
  const v = [];
2608
- for (const [y, _] of s.request.headers)
2609
- u.set("x-middleware-request-" + y, _), v.push(y);
2610
- u.set("x-middleware-override-headers", v.join(","));
2608
+ for (const [y, R] of s.request.headers)
2609
+ d.set("x-middleware-request-" + y, R), v.push(y);
2610
+ d.set("x-middleware-override-headers", v.join(","));
2611
2611
  }
2612
2612
  }
2613
2613
  class g extends Response {
2614
- constructor(u, w = {}) {
2615
- super(u, w);
2616
- const v = this.headers, y = new o.ResponseCookies(v), _ = new Proxy(y, {
2614
+ constructor(d, w = {}) {
2615
+ super(d, w);
2616
+ const v = this.headers, y = new o.ResponseCookies(v), R = new Proxy(y, {
2617
2617
  get(p, b, m) {
2618
2618
  switch (b) {
2619
2619
  case "delete":
2620
2620
  case "set":
2621
2621
  return (...f) => {
2622
- const h = Reflect.apply(p[b], p, f), E = new Headers(v);
2623
- return h instanceof o.ResponseCookies && v.set("x-middleware-set-cookie", h.getAll().map((N) => (0, t.stringifyCookie)(N)).join(",")), d(w, E), h;
2622
+ const h = Reflect.apply(p[b], p, f), C = new Headers(v);
2623
+ return h instanceof o.ResponseCookies && v.set("x-middleware-set-cookie", h.getAll().map((A) => (0, t.stringifyCookie)(A)).join(",")), u(w, C), h;
2624
2624
  };
2625
2625
  default:
2626
2626
  return a.ReflectAdapter.get(p, b, m);
@@ -2628,7 +2628,7 @@ var dt = {}, pt = {};
2628
2628
  }
2629
2629
  });
2630
2630
  this[c] = {
2631
- cookies: _,
2631
+ cookies: R,
2632
2632
  url: w.url ? new r.NextURL(w.url, {
2633
2633
  headers: (0, n.toNodeOutgoingHttpHeaders)(v),
2634
2634
  nextConfig: w.nextConfig
@@ -2653,38 +2653,38 @@ var dt = {}, pt = {};
2653
2653
  get cookies() {
2654
2654
  return this[c].cookies;
2655
2655
  }
2656
- static json(u, w) {
2657
- const v = Response.json(u, w);
2656
+ static json(d, w) {
2657
+ const v = Response.json(d, w);
2658
2658
  return new g(v.body, v);
2659
2659
  }
2660
- static redirect(u, w) {
2660
+ static redirect(d, w) {
2661
2661
  const v = typeof w == "number" ? w : (w == null ? void 0 : w.status) ?? 307;
2662
2662
  if (!i.has(v))
2663
2663
  throw new RangeError('Failed to execute "redirect" on "response": Invalid status code');
2664
- const y = typeof w == "object" ? w : {}, _ = new Headers(y == null ? void 0 : y.headers);
2665
- return _.set("Location", (0, n.validateURL)(u)), new g(null, {
2664
+ const y = typeof w == "object" ? w : {}, R = new Headers(y == null ? void 0 : y.headers);
2665
+ return R.set("Location", (0, n.validateURL)(d)), new g(null, {
2666
2666
  ...y,
2667
- headers: _,
2667
+ headers: R,
2668
2668
  status: v
2669
2669
  });
2670
2670
  }
2671
- static rewrite(u, w) {
2671
+ static rewrite(d, w) {
2672
2672
  const v = new Headers(w == null ? void 0 : w.headers);
2673
- return v.set("x-middleware-rewrite", (0, n.validateURL)(u)), d(w, v), new g(null, {
2673
+ return v.set("x-middleware-rewrite", (0, n.validateURL)(d)), u(w, v), new g(null, {
2674
2674
  ...w,
2675
2675
  headers: v
2676
2676
  });
2677
2677
  }
2678
- static next(u) {
2679
- const w = new Headers(u == null ? void 0 : u.headers);
2680
- return w.set("x-middleware-next", "1"), d(u, w), new g(null, {
2681
- ...u,
2678
+ static next(d) {
2679
+ const w = new Headers(d == null ? void 0 : d.headers);
2680
+ return w.set("x-middleware-next", "1"), u(d, w), new g(null, {
2681
+ ...d,
2682
2682
  headers: w
2683
2683
  });
2684
2684
  }
2685
2685
  }
2686
- })(dt);
2687
- var mt = {};
2686
+ })(pt);
2687
+ var ft = {};
2688
2688
  (function(e) {
2689
2689
  Object.defineProperty(e, "__esModule", {
2690
2690
  value: !0
@@ -2697,75 +2697,75 @@ var mt = {};
2697
2697
  function t() {
2698
2698
  throw new Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead');
2699
2699
  }
2700
- })(mt);
2701
- var Re = {}, ft = { exports: {} };
2700
+ })(ft);
2701
+ var Re = {}, ht = { exports: {} };
2702
2702
  (() => {
2703
2703
  var e = { 226: function(a, o) {
2704
2704
  (function(c, i) {
2705
- var d = "1.0.35", g = "", s = "?", u = "function", w = "undefined", v = "object", y = "string", _ = "major", p = "model", b = "name", m = "type", f = "vendor", h = "version", E = "architecture", N = "console", I = "mobile", R = "tablet", C = "smarttv", j = "wearable", $ = "embedded", D = 350, U = "Amazon", B = "Apple", Z = "ASUS", Ce = "BlackBerry", G = "Browser", J = "Chrome", gt = "Edge", Y = "Firefox", ee = "Google", ke = "Huawei", me = "LG", fe = "Microsoft", Ee = "Motorola", te = "Opera", he = "Samsung", Ae = "Sharp", re = "Sony", ge = "Xiaomi", be = "Zebra", Oe = "Facebook", Te = "Chromium OS", qe = "Mac OS", bt = function(S, A) {
2706
- var P = {};
2705
+ var u = "1.0.35", g = "", s = "?", d = "function", w = "undefined", v = "object", y = "string", R = "major", p = "model", b = "name", m = "type", f = "vendor", h = "version", C = "architecture", A = "console", _ = "mobile", I = "tablet", k = "smarttv", N = "wearable", $ = "embedded", D = 350, U = "Amazon", B = "Apple", J = "ASUS", Ce = "BlackBerry", G = "Browser", Z = "Chrome", bt = "Edge", Y = "Firefox", ee = "Google", ke = "Huawei", me = "LG", fe = "Microsoft", Ee = "Motorola", te = "Opera", he = "Samsung", Oe = "Sharp", re = "Sony", ge = "Xiaomi", be = "Zebra", Ae = "Facebook", Te = "Chromium OS", je = "Mac OS", wt = function(S, O) {
2706
+ var x = {};
2707
2707
  for (var q in S)
2708
- A[q] && A[q].length % 2 === 0 ? P[q] = A[q].concat(S[q]) : P[q] = S[q];
2709
- return P;
2708
+ O[q] && O[q].length % 2 === 0 ? x[q] = O[q].concat(S[q]) : x[q] = S[q];
2709
+ return x;
2710
2710
  }, ne = function(S) {
2711
- for (var A = {}, P = 0; P < S.length; P++)
2712
- A[S[P].toUpperCase()] = S[P];
2713
- return A;
2714
- }, Ne = function(S, A) {
2715
- return typeof S === y ? Q(A).indexOf(Q(S)) !== -1 : !1;
2711
+ for (var O = {}, x = 0; x < S.length; x++)
2712
+ O[S[x].toUpperCase()] = S[x];
2713
+ return O;
2714
+ }, qe = function(S, O) {
2715
+ return typeof S === y ? Q(O).indexOf(Q(S)) !== -1 : !1;
2716
2716
  }, Q = function(S) {
2717
2717
  return S.toLowerCase();
2718
- }, wt = function(S) {
2718
+ }, vt = function(S) {
2719
2719
  return typeof S === y ? S.replace(/[^\d\.]/g, g).split(".")[0] : i;
2720
- }, we = function(S, A) {
2720
+ }, we = function(S, O) {
2721
2721
  if (typeof S === y)
2722
- return S = S.replace(/^\s\s*/, g), typeof A === w ? S : S.substring(0, D);
2723
- }, X = function(S, A) {
2724
- for (var P = 0, q, z, H, k, x, M; P < A.length && !x; ) {
2725
- var ye = A[P], $e = A[P + 1];
2726
- for (q = z = 0; q < ye.length && !x && ye[q]; )
2727
- if (x = ye[q++].exec(S), x)
2728
- for (H = 0; H < $e.length; H++)
2729
- M = x[++z], k = $e[H], typeof k === v && k.length > 0 ? k.length === 2 ? typeof k[1] == u ? this[k[0]] = k[1].call(this, M) : this[k[0]] = k[1] : k.length === 3 ? typeof k[1] === u && !(k[1].exec && k[1].test) ? this[k[0]] = M ? k[1].call(this, M, k[2]) : i : this[k[0]] = M ? M.replace(k[1], k[2]) : i : k.length === 4 && (this[k[0]] = M ? k[3].call(this, M.replace(k[1], k[2])) : i) : this[k] = M || i;
2730
- P += 2;
2722
+ return S = S.replace(/^\s\s*/, g), typeof O === w ? S : S.substring(0, D);
2723
+ }, X = function(S, O) {
2724
+ for (var x = 0, q, z, M, E, P, H; x < O.length && !P; ) {
2725
+ var ye = O[x], $e = O[x + 1];
2726
+ for (q = z = 0; q < ye.length && !P && ye[q]; )
2727
+ if (P = ye[q++].exec(S), P)
2728
+ for (M = 0; M < $e.length; M++)
2729
+ H = P[++z], E = $e[M], typeof E === v && E.length > 0 ? E.length === 2 ? typeof E[1] == d ? this[E[0]] = E[1].call(this, H) : this[E[0]] = E[1] : E.length === 3 ? typeof E[1] === d && !(E[1].exec && E[1].test) ? this[E[0]] = H ? E[1].call(this, H, E[2]) : i : this[E[0]] = H ? H.replace(E[1], E[2]) : i : E.length === 4 && (this[E[0]] = H ? E[3].call(this, H.replace(E[1], E[2])) : i) : this[E] = H || i;
2730
+ x += 2;
2731
2731
  }
2732
- }, ve = function(S, A) {
2733
- for (var P in A)
2734
- if (typeof A[P] === v && A[P].length > 0) {
2735
- for (var q = 0; q < A[P].length; q++)
2736
- if (Ne(A[P][q], S))
2737
- return P === s ? i : P;
2738
- } else if (Ne(A[P], S))
2739
- return P === s ? i : P;
2732
+ }, ve = function(S, O) {
2733
+ for (var x in O)
2734
+ if (typeof O[x] === v && O[x].length > 0) {
2735
+ for (var q = 0; q < O[x].length; q++)
2736
+ if (qe(O[x][q], S))
2737
+ return x === s ? i : x;
2738
+ } else if (qe(O[x], S))
2739
+ return x === s ? i : x;
2740
2740
  return S;
2741
- }, vt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, je = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [h, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [h, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, h], [/opios[\/ ]+([\w\.]+)/i], [h, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [h, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, h], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [h, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [h, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [h, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [h, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [h, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [h, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], h], [/\bfocus\/([\w\.]+)/i], [h, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [h, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [h, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [h, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [h, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [h, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [h, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], h], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], h], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, h], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Oe], h], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, h], [/\bgsa\/([\w\.]+) .*safari\//i], [h, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [h, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [h, [b, J + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, J + " WebView"], h], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [h, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, h], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [h, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [h, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [h, ve, vt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, h], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], h], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [h, [b, Y + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, h], [/(cobalt)\/([\w\.]+)/i], [b, [h, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[E, "amd64"]], [/(ia32(?=;))/i], [[E, Q]], [/((?:i[346]|x)86)[;\)]/i], [[E, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[E, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[E, "armhf"]], [/windows (ce|mobile); ppc;/i], [[E, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[E, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[E, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[E, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [f, he], [m, R]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [f, he], [m, I]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [f, B], [m, I]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [f, B], [m, R]], [/(macintosh);/i], [p, [f, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [f, Ae], [m, I]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [f, ke], [m, R]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [f, ke], [m, I]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, I]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, R]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [f, "OPPO"], [m, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [f, "Vivo"], [m, I]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [f, "Realme"], [m, I]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [f, Ee], [m, I]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [f, Ee], [m, R]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [f, me], [m, R]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [f, me], [m, I]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [f, "Lenovo"], [m, R]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [f, "Nokia"], [m, I]], [/(pixel c)\b/i], [p, [f, ee], [m, R]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [f, ee], [m, I]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [f, re], [m, I]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [f, re], [m, R]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [f, "OnePlus"], [m, I]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [f, U], [m, R]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [f, U], [m, I]], [/(playbook);[-\w\),; ]+(rim)/i], [p, f, [m, R]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [f, Ce], [m, I]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [f, Z], [m, R]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [f, Z], [m, I]], [/(nexus 9)/i], [p, [f, "HTC"], [m, R]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [p, /_/g, " "], [m, I]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [f, "Acer"], [m, R]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [f, "Meizu"], [m, I]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [f, p, [m, I]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [f, p, [m, R]], [/(surface duo)/i], [p, [f, fe], [m, R]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [f, "Fairphone"], [m, I]], [/(u304aa)/i], [p, [f, "AT&T"], [m, I]], [/\bsie-(\w*)/i], [p, [f, "Siemens"], [m, I]], [/\b(rct\w+) b/i], [p, [f, "RCA"], [m, R]], [/\b(venue[\d ]{2,7}) b/i], [p, [f, "Dell"], [m, R]], [/\b(q(?:mv|ta)\w+) b/i], [p, [f, "Verizon"], [m, R]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [f, "Barnes & Noble"], [m, R]], [/\b(tm\d{3}\w+) b/i], [p, [f, "NuVision"], [m, R]], [/\b(k88) b/i], [p, [f, "ZTE"], [m, R]], [/\b(nx\d{3}j) b/i], [p, [f, "ZTE"], [m, I]], [/\b(gen\d{3}) b.+49h/i], [p, [f, "Swiss"], [m, I]], [/\b(zur\d{3}) b/i], [p, [f, "Swiss"], [m, R]], [/\b((zeki)?tb.*\b) b/i], [p, [f, "Zeki"], [m, R]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], p, [m, R]], [/\b(ns-?\w{0,9}) b/i], [p, [f, "Insignia"], [m, R]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [f, "NextBook"], [m, R]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], p, [m, I]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], p, [m, I]], [/\b(ph-1) /i], [p, [f, "Essential"], [m, I]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [f, "Envizen"], [m, R]], [/\b(trio[-\w\. ]+) b/i], [p, [f, "MachSpeed"], [m, R]], [/\btu_(1491) b/i], [p, [f, "Rotor"], [m, R]], [/(shield[\w ]+) b/i], [p, [f, "Nvidia"], [m, R]], [/(sprint) (\w+)/i], [f, p, [m, I]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [f, fe], [m, I]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [f, be], [m, R]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [f, be], [m, I]], [/smart-tv.+(samsung)/i], [f, [m, C]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [f, he], [m, C]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, me], [m, C]], [/(apple) ?tv/i], [f, [p, B + " TV"], [m, C]], [/crkey/i], [[p, J + "cast"], [f, ee], [m, C]], [/droid.+aft(\w)( bui|\))/i], [p, [f, U], [m, C]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [f, Ae], [m, C]], [/(bravia[\w ]+)( bui|\))/i], [p, [f, re], [m, C]], [/(mitv-\w{5}) bui/i], [p, [f, ge], [m, C]], [/Hbbtv.*(technisat) (.*);/i], [f, p, [m, C]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, we], [p, we], [m, C]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, C]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, p, [m, N]], [/droid.+; (shield) bui/i], [p, [f, "Nvidia"], [m, N]], [/(playstation [345portablevi]+)/i], [p, [f, re], [m, N]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [f, fe], [m, N]], [/((pebble))app/i], [f, p, [m, j]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [f, B], [m, j]], [/droid.+; (glass) \d/i], [p, [f, ee], [m, j]], [/droid.+; (wt63?0{2,3})\)/i], [p, [f, be], [m, j]], [/(quest( 2| pro)?)/i], [p, [f, Oe], [m, j]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [m, $]], [/(aeobc)\b/i], [p, [f, U], [m, $]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, I]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, R]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, R]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, I]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [h, [b, gt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [h, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, h], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [h, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, h], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [h, ve, je]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [h, ve, je]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[h, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, qe], [h, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [h, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, h], [/\(bb(10);/i], [h, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [h, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [h, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [h, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [h, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [h, [b, J + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], h], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, h], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], h], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, h]] }, L = function(S, A) {
2742
- if (typeof S === v && (A = S, S = i), !(this instanceof L))
2743
- return new L(S, A).getResult();
2744
- var P = typeof c !== w && c.navigator ? c.navigator : i, q = S || (P && P.userAgent ? P.userAgent : g), z = P && P.userAgentData ? P.userAgentData : i, H = A ? bt(Fe, A) : Fe, k = P && P.userAgent == q;
2741
+ }, yt = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, Ne = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, Fe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [h, [b, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [h, [b, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [b, h], [/opios[\/ ]+([\w\.]+)/i], [h, [b, te + " Mini"]], [/\bopr\/([\w\.]+)/i], [h, [b, te]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [b, h], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [h, [b, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [h, [b, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [h, [b, "WeChat"]], [/konqueror\/([\w\.]+)/i], [h, [b, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [h, [b, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [h, [b, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[b, /(.+)/, "$1 Secure " + G], h], [/\bfocus\/([\w\.]+)/i], [h, [b, Y + " Focus"]], [/\bopt\/([\w\.]+)/i], [h, [b, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [h, [b, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [h, [b, "Dolphin"]], [/coast\/([\w\.]+)/i], [h, [b, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [h, [b, "MIUI " + G]], [/fxios\/([-\w\.]+)/i], [h, [b, Y]], [/\bqihu|(qi?ho?o?|360)browser/i], [[b, "360 " + G]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[b, /(.+)/, "$1 " + G], h], [/(comodo_dragon)\/([\w\.]+)/i], [[b, /_/g, " "], h], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [b, h], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [b], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[b, Ae], h], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [b, h], [/\bgsa\/([\w\.]+) .*safari\//i], [h, [b, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [h, [b, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [h, [b, Z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[b, Z + " WebView"], h], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [h, [b, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [b, h], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [h, [b, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [h, b], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [b, [h, ve, yt]], [/(webkit|khtml)\/([\w\.]+)/i], [b, h], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[b, "Netscape"], h], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [h, [b, Y + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [b, h], [/(cobalt)\/([\w\.]+)/i], [b, [h, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[C, "amd64"]], [/(ia32(?=;))/i], [[C, Q]], [/((?:i[346]|x)86)[;\)]/i], [[C, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[C, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[C, "armhf"]], [/windows (ce|mobile); ppc;/i], [[C, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[C, /ower/, g, Q]], [/(sun4\w)[;\)]/i], [[C, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[C, Q]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [f, he], [m, I]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [p, [f, he], [m, _]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [f, B], [m, _]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [f, B], [m, I]], [/(macintosh);/i], [p, [f, B]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [f, Oe], [m, _]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [f, ke], [m, I]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [f, ke], [m, _]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, _]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [f, ge], [m, I]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [f, "OPPO"], [m, _]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [f, "Vivo"], [m, _]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [p, [f, "Realme"], [m, _]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [f, Ee], [m, _]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [f, Ee], [m, I]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [f, me], [m, I]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [f, me], [m, _]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [f, "Lenovo"], [m, I]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [f, "Nokia"], [m, _]], [/(pixel c)\b/i], [p, [f, ee], [m, I]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [f, ee], [m, _]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [f, re], [m, _]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [f, re], [m, I]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [f, "OnePlus"], [m, _]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [f, U], [m, I]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [f, U], [m, _]], [/(playbook);[-\w\),; ]+(rim)/i], [p, f, [m, I]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [f, Ce], [m, _]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [f, J], [m, I]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [f, J], [m, _]], [/(nexus 9)/i], [p, [f, "HTC"], [m, I]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [p, /_/g, " "], [m, _]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [f, "Acer"], [m, I]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [f, "Meizu"], [m, _]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [f, p, [m, _]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [f, p, [m, I]], [/(surface duo)/i], [p, [f, fe], [m, I]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [f, "Fairphone"], [m, _]], [/(u304aa)/i], [p, [f, "AT&T"], [m, _]], [/\bsie-(\w*)/i], [p, [f, "Siemens"], [m, _]], [/\b(rct\w+) b/i], [p, [f, "RCA"], [m, I]], [/\b(venue[\d ]{2,7}) b/i], [p, [f, "Dell"], [m, I]], [/\b(q(?:mv|ta)\w+) b/i], [p, [f, "Verizon"], [m, I]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [f, "Barnes & Noble"], [m, I]], [/\b(tm\d{3}\w+) b/i], [p, [f, "NuVision"], [m, I]], [/\b(k88) b/i], [p, [f, "ZTE"], [m, I]], [/\b(nx\d{3}j) b/i], [p, [f, "ZTE"], [m, _]], [/\b(gen\d{3}) b.+49h/i], [p, [f, "Swiss"], [m, _]], [/\b(zur\d{3}) b/i], [p, [f, "Swiss"], [m, I]], [/\b((zeki)?tb.*\b) b/i], [p, [f, "Zeki"], [m, I]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], p, [m, I]], [/\b(ns-?\w{0,9}) b/i], [p, [f, "Insignia"], [m, I]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [f, "NextBook"], [m, I]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], p, [m, _]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], p, [m, _]], [/\b(ph-1) /i], [p, [f, "Essential"], [m, _]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [f, "Envizen"], [m, I]], [/\b(trio[-\w\. ]+) b/i], [p, [f, "MachSpeed"], [m, I]], [/\btu_(1491) b/i], [p, [f, "Rotor"], [m, I]], [/(shield[\w ]+) b/i], [p, [f, "Nvidia"], [m, I]], [/(sprint) (\w+)/i], [f, p, [m, _]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [f, fe], [m, _]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [f, be], [m, I]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [f, be], [m, _]], [/smart-tv.+(samsung)/i], [f, [m, k]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [f, he], [m, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, me], [m, k]], [/(apple) ?tv/i], [f, [p, B + " TV"], [m, k]], [/crkey/i], [[p, Z + "cast"], [f, ee], [m, k]], [/droid.+aft(\w)( bui|\))/i], [p, [f, U], [m, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [f, Oe], [m, k]], [/(bravia[\w ]+)( bui|\))/i], [p, [f, re], [m, k]], [/(mitv-\w{5}) bui/i], [p, [f, ge], [m, k]], [/Hbbtv.*(technisat) (.*);/i], [f, p, [m, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, we], [p, we], [m, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[m, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, p, [m, A]], [/droid.+; (shield) bui/i], [p, [f, "Nvidia"], [m, A]], [/(playstation [345portablevi]+)/i], [p, [f, re], [m, A]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [f, fe], [m, A]], [/((pebble))app/i], [f, p, [m, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [f, B], [m, N]], [/droid.+; (glass) \d/i], [p, [f, ee], [m, N]], [/droid.+; (wt63?0{2,3})\)/i], [p, [f, be], [m, N]], [/(quest( 2| pro)?)/i], [p, [f, Ae], [m, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [m, $]], [/(aeobc)\b/i], [p, [f, U], [m, $]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [p, [m, _]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [m, I]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[m, I]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[m, _]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [h, [b, bt + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [h, [b, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [b, h], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [h, b]], os: [[/microsoft (windows) (vista|xp)/i], [b, h], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [b, [h, ve, Ne]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[b, "Windows"], [h, ve, Ne]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[h, /_/g, "."], [b, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[b, je], [h, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [h, b], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [b, h], [/\(bb(10);/i], [h, [b, Ce]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [h, [b, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [h, [b, Y + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [h, [b, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [h, [b, "watchOS"]], [/crkey\/([\d\.]+)/i], [h, [b, Z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[b, Te], h], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [b, h], [/(sunos) ?([\w\.\d]*)/i], [[b, "Solaris"], h], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [b, h]] }, L = function(S, O) {
2742
+ if (typeof S === v && (O = S, S = i), !(this instanceof L))
2743
+ return new L(S, O).getResult();
2744
+ var x = typeof c !== w && c.navigator ? c.navigator : i, q = S || (x && x.userAgent ? x.userAgent : g), z = x && x.userAgentData ? x.userAgentData : i, M = O ? wt(Fe, O) : Fe, E = x && x.userAgent == q;
2745
2745
  return this.getBrowser = function() {
2746
- var x = {};
2747
- return x[b] = i, x[h] = i, X.call(x, q, H.browser), x[_] = wt(x[h]), k && P && P.brave && typeof P.brave.isBrave == u && (x[b] = "Brave"), x;
2746
+ var P = {};
2747
+ return P[b] = i, P[h] = i, X.call(P, q, M.browser), P[R] = vt(P[h]), E && x && x.brave && typeof x.brave.isBrave == d && (P[b] = "Brave"), P;
2748
2748
  }, this.getCPU = function() {
2749
- var x = {};
2750
- return x[E] = i, X.call(x, q, H.cpu), x;
2749
+ var P = {};
2750
+ return P[C] = i, X.call(P, q, M.cpu), P;
2751
2751
  }, this.getDevice = function() {
2752
- var x = {};
2753
- return x[f] = i, x[p] = i, x[m] = i, X.call(x, q, H.device), k && !x[m] && z && z.mobile && (x[m] = I), k && x[p] == "Macintosh" && P && typeof P.standalone !== w && P.maxTouchPoints && P.maxTouchPoints > 2 && (x[p] = "iPad", x[m] = R), x;
2752
+ var P = {};
2753
+ return P[f] = i, P[p] = i, P[m] = i, X.call(P, q, M.device), E && !P[m] && z && z.mobile && (P[m] = _), E && P[p] == "Macintosh" && x && typeof x.standalone !== w && x.maxTouchPoints && x.maxTouchPoints > 2 && (P[p] = "iPad", P[m] = I), P;
2754
2754
  }, this.getEngine = function() {
2755
- var x = {};
2756
- return x[b] = i, x[h] = i, X.call(x, q, H.engine), x;
2755
+ var P = {};
2756
+ return P[b] = i, P[h] = i, X.call(P, q, M.engine), P;
2757
2757
  }, this.getOS = function() {
2758
- var x = {};
2759
- return x[b] = i, x[h] = i, X.call(x, q, H.os), k && !x[b] && z && z.platform != "Unknown" && (x[b] = z.platform.replace(/chrome os/i, Te).replace(/macos/i, qe)), x;
2758
+ var P = {};
2759
+ return P[b] = i, P[h] = i, X.call(P, q, M.os), E && !P[b] && z && z.platform != "Unknown" && (P[b] = z.platform.replace(/chrome os/i, Te).replace(/macos/i, je)), P;
2760
2760
  }, this.getResult = function() {
2761
2761
  return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
2762
2762
  }, this.getUA = function() {
2763
2763
  return q;
2764
- }, this.setUA = function(x) {
2765
- return q = typeof x === y && x.length > D ? we(x, D) : x, this;
2764
+ }, this.setUA = function(P) {
2765
+ return q = typeof P === y && P.length > D ? we(P, D) : P, this;
2766
2766
  }, this.setUA(q), this;
2767
2767
  };
2768
- L.VERSION = d, L.BROWSER = ne([b, h, _]), L.CPU = ne([E]), L.DEVICE = ne([p, f, m, N, I, C, R, j, $]), L.ENGINE = L.OS = ne([b, h]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof c !== w && (c.UAParser = L);
2768
+ L.VERSION = u, L.BROWSER = ne([b, h, R]), L.CPU = ne([C]), L.DEVICE = ne([p, f, m, A, _, k, I, N, $]), L.ENGINE = L.OS = ne([b, h]), typeof o !== w ? (a.exports && (o = a.exports = L), o.UAParser = L) : typeof c !== w && (c.UAParser = L);
2769
2769
  var V = typeof c !== w && (c.jQuery || c.Zepto);
2770
2770
  if (V && !V.ua) {
2771
2771
  var ae = new L();
@@ -2773,9 +2773,9 @@ var Re = {}, ft = { exports: {} };
2773
2773
  return ae.getUA();
2774
2774
  }, V.ua.set = function(S) {
2775
2775
  ae.setUA(S);
2776
- var A = ae.getResult();
2777
- for (var P in A)
2778
- V.ua[P] = A[P];
2776
+ var O = ae.getResult();
2777
+ for (var x in O)
2778
+ V.ua[x] = O[x];
2779
2779
  };
2780
2780
  }
2781
2781
  })(typeof window == "object" ? window : this);
@@ -2794,17 +2794,17 @@ var Re = {}, ft = { exports: {} };
2794
2794
  }
2795
2795
  typeof r < "u" && (r.ab = __dirname + "/");
2796
2796
  var n = r(226);
2797
- ft.exports = n;
2797
+ ht.exports = n;
2798
2798
  })();
2799
- var na = ft.exports;
2799
+ var ta = ht.exports;
2800
2800
  (function(e) {
2801
2801
  Object.defineProperty(e, "__esModule", {
2802
2802
  value: !0
2803
2803
  });
2804
- function t(i, d) {
2805
- for (var g in d) Object.defineProperty(i, g, {
2804
+ function t(i, u) {
2805
+ for (var g in u) Object.defineProperty(i, g, {
2806
2806
  enumerable: !0,
2807
- get: d[g]
2807
+ get: u[g]
2808
2808
  });
2809
2809
  }
2810
2810
  t(e, {
@@ -2818,7 +2818,7 @@ var na = ft.exports;
2818
2818
  return o;
2819
2819
  }
2820
2820
  });
2821
- const r = /* @__PURE__ */ n(na);
2821
+ const r = /* @__PURE__ */ n(ta);
2822
2822
  function n(i) {
2823
2823
  return i && i.__esModule ? i : {
2824
2824
  default: i
@@ -2837,7 +2837,7 @@ var na = ft.exports;
2837
2837
  return o(i.get("user-agent") || void 0);
2838
2838
  }
2839
2839
  })(Re);
2840
- var ht = {};
2840
+ var gt = {};
2841
2841
  (function(e) {
2842
2842
  Object.defineProperty(e, "__esModule", {
2843
2843
  value: !0
@@ -2851,83 +2851,78 @@ var ht = {};
2851
2851
  // @ts-expect-error: URLPattern is not available in Node.js
2852
2852
  typeof URLPattern > "u" ? void 0 : URLPattern
2853
2853
  );
2854
- })(ht);
2854
+ })(gt);
2855
2855
  (function(e, t) {
2856
2856
  const r = {
2857
- NextRequest: rt.NextRequest,
2858
- NextResponse: dt.NextResponse,
2859
- ImageResponse: mt.ImageResponse,
2857
+ NextRequest: nt.NextRequest,
2858
+ NextResponse: pt.NextResponse,
2859
+ ImageResponse: ft.ImageResponse,
2860
2860
  userAgentFromString: Re.userAgentFromString,
2861
2861
  userAgent: Re.userAgent,
2862
- URLPattern: ht.URLPattern
2862
+ URLPattern: gt.URLPattern
2863
2863
  };
2864
2864
  e.exports = r, t.NextRequest = r.NextRequest, t.NextResponse = r.NextResponse, t.ImageResponse = r.ImageResponse, t.userAgentFromString = r.userAgentFromString, t.userAgent = r.userAgent, t.URLPattern = r.URLPattern;
2865
2865
  })(_e, _e.exports);
2866
2866
  var Ue = _e.exports;
2867
- async function aa({
2867
+ async function ra({
2868
2868
  apiUrl: e,
2869
2869
  extraData: t,
2870
2870
  fetchOptions: r
2871
2871
  }) {
2872
- var I, R;
2872
+ var _, I;
2873
2873
  const n = `${e}/api/dataentities`, a = `${e}/api/io/v1/extrato/get-total`, {
2874
2874
  MASTER_DATA_ENTITY: o,
2875
2875
  MASTER_DATA_FIELDS: c,
2876
2876
  AUTH_TOKEN_COOKIE: i,
2877
- requestHeaders: d,
2877
+ requestHeaders: u,
2878
2878
  cookies: g
2879
- } = t, { address: s, client: u } = o, { address: w, client: v } = c, y = ((I = g == null ? void 0 : g.find((C) => (C == null ? void 0 : C.name) === i)) == null ? void 0 : I.value) || "";
2879
+ } = t, { address: s, client: d } = o, { address: w, client: v } = c, y = ((_ = g == null ? void 0 : g.find((k) => (k == null ? void 0 : k.name) === i)) == null ? void 0 : _.value) || "";
2880
2880
  if (!y)
2881
2881
  return Ue.NextResponse.json(
2882
2882
  { error: "Token not found. Unauthorized" },
2883
2883
  { status: 200 }
2884
2884
  );
2885
- const { sub: _, userId: p } = Bt(y), b = Object.fromEntries(
2886
- Object.entries(d).map(([C, j]) => [C, String(j || "")])
2887
- ), m = async (C, j, $ = !1) => {
2885
+ const { sub: R, userId: p } = Ht(y), b = Object.fromEntries(
2886
+ Object.entries(u).map(([k, N]) => [k, String(N || "")])
2887
+ ), m = async (k, N, $ = !1) => {
2888
2888
  try {
2889
- const U = await fetch(`${$ ? a : n}${C}`, {
2889
+ const U = await fetch(`${$ ? a : n}${k}`, {
2890
2890
  headers: {
2891
- ...j,
2891
+ ...N,
2892
2892
  ...r == null ? void 0 : r.headers
2893
2893
  }
2894
- }).then((Z) => Z.json()), B = Array.isArray(U) ? U[0] : U;
2894
+ }).then((J) => J.json()), B = Array.isArray(U) ? U[0] : U;
2895
2895
  return Array.isArray(B) ? B[0] : B;
2896
2896
  } catch (D) {
2897
- return console.error(`Erro no fetch: ${C}`, D), null;
2897
+ return console.error(`Erro no fetch: ${k}`, D), null;
2898
2898
  }
2899
2899
  }, f = await m(
2900
- `/${u}/search?email=${_}&_fields=${v.join(",")}`,
2900
+ `/${d}/search?email=${R}&_fields=${v.join(",")}`,
2901
2901
  b
2902
2902
  );
2903
2903
  if (!(f != null && f.id))
2904
- return Ue.NextResponse.json({ sub: _ }, { status: 200 });
2905
- const h = (R = f.document) == null ? void 0 : R.replace(/\D/g, ""), E = await m(
2904
+ return Ue.NextResponse.json({ sub: R }, { status: 200 });
2905
+ const h = (I = f.document) == null ? void 0 : I.replace(/\D/g, ""), C = await m(
2906
2906
  `/${s}/search?userId=${f.id}&_fields=${w.join(
2907
2907
  ","
2908
2908
  )}&_sort=lastInteractionIn DESC`,
2909
2909
  { ...b, "REST-Range": "resources=0-1000" }
2910
- ), N = h ? await m(
2911
- `/${h}?user_code=${f.userId},${_}&per_page=1&page=1`,
2910
+ ), A = h ? await m(
2911
+ `/${h}?user_code=${f.userId},${R}&per_page=1&page=1`,
2912
2912
  b,
2913
2913
  !0
2914
2914
  ) : null;
2915
- return { ...f, ...E, userCredits: N, sub: _, userId: p };
2915
+ return { ...f, ...C, userCredits: A, sub: R, userId: p };
2916
2916
  }
2917
- const ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2917
+ const na = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2918
2918
  __proto__: null,
2919
- getUserData: aa
2920
- }, Symbol.toStringTag, { value: "Module" })), oa = {
2921
- parseSearchState: jt,
2922
- convertSearchParams: Nt,
2923
- filterNonRootFacets: qt,
2924
- filterNonCategorySelected: Tt
2925
- }, sa = l.object({
2919
+ getUserData: ra
2920
+ }, Symbol.toStringTag, { value: "Module" })), aa = l.object({
2926
2921
  userName: l.string().optional(),
2927
2922
  email: l.string().optional(),
2928
2923
  sku: l.string().optional()
2929
2924
  });
2930
- async function la({
2925
+ async function ia({
2931
2926
  apiUrl: e,
2932
2927
  body: t
2933
2928
  }) {
@@ -2935,7 +2930,7 @@ async function la({
2935
2930
  console.error("[ERROR FETCHING] Body is required");
2936
2931
  return;
2937
2932
  }
2938
- await sa.validate(t);
2933
+ await aa.validate(t);
2939
2934
  const r = `https://${e}.myvtex.com/no-cache/AviseMe.aspx`, n = await fetch(r, {
2940
2935
  method: "POST",
2941
2936
  headers: {
@@ -2949,11 +2944,11 @@ async function la({
2949
2944
  text: a
2950
2945
  };
2951
2946
  }
2952
- const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2947
+ const oa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2953
2948
  __proto__: null,
2954
- aviseMe: la
2949
+ aviseMe: ia
2955
2950
  }, Symbol.toStringTag, { value: "Module" }));
2956
- function ua({
2951
+ function sa({
2957
2952
  platformCMS: e,
2958
2953
  request: t
2959
2954
  }) {
@@ -2969,23 +2964,23 @@ function ua({
2969
2964
  } : null
2970
2965
  };
2971
2966
  }
2972
- const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2967
+ const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2973
2968
  __proto__: null,
2974
- getCMSPreviewData: ua
2969
+ getCMSPreviewData: sa
2975
2970
  }, Symbol.toStringTag, { value: "Module" }));
2976
- function pa(e) {
2971
+ function la(e) {
2977
2972
  return {
2978
2973
  redirectTo: e.nextUrl.searchParams.get("redirect") ?? "/",
2979
2974
  clearCookies: ["cms_preview_data"],
2980
2975
  disableDraft: !0
2981
2976
  };
2982
2977
  }
2983
- const ma = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2978
+ const ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2984
2979
  __proto__: null,
2985
- getCMSPreviewExitData: pa
2980
+ getCMSPreviewExitData: la
2986
2981
  }, Symbol.toStringTag, { value: "Module" }));
2987
- async function fa({ pathname: e }) {
2988
- return (await zt.get(
2982
+ async function da({ pathname: e }) {
2983
+ return (await Bt.get(
2989
2984
  `https://mariafilo.vtexcommercestable.com.br${e}`,
2990
2985
  {
2991
2986
  headers: {
@@ -2997,40 +2992,128 @@ async function fa({ pathname: e }) {
2997
2992
  "www.multimarcassoma"
2998
2993
  );
2999
2994
  }
3000
- const ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2995
+ const pa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3001
2996
  __proto__: null,
3002
- getVtexXmlProxyData: fa
3003
- }, Symbol.toStringTag, { value: "Module" })), Ia = {
3004
- checkout: Zr,
3005
- catalog: on,
3006
- cms: $t,
3007
- search: En,
3008
- masterdata: $n,
3009
- marketingdata: Ft,
3010
- user: ia,
3011
- aviseme: ca,
3012
- preview: da,
3013
- exitpreview: ma,
3014
- vtexXmlProxy: ha,
3015
- wishlist: {
3016
- ...Dn
2997
+ getVtexXmlProxyData: da
2998
+ }, Symbol.toStringTag, { value: "Module" })), ma = async (e) => await fetch(e, {
2999
+ method: "POST",
3000
+ cache: "force-cache",
3001
+ headers: {
3002
+ Authorization: `Bearer ${process.env.ditoUser}:${process.env.ditoPassword}`
3003
+ }
3004
+ }).then((r) => r.json());
3005
+ function fa(e) {
3006
+ return e.type === "TRACK";
3007
+ }
3008
+ function ha(e) {
3009
+ const t = {};
3010
+ for (const [r, n] of Object.entries(e))
3011
+ typeof n == "string" && (t[r] = n);
3012
+ return t;
3013
+ }
3014
+ function ga(e) {
3015
+ var i, u;
3016
+ const t = ((i = e["sec-ch-ua-platform"]) == null ? void 0 : i.toLowerCase()) || "", r = e["sec-ch-ua-mobile"], n = ((u = e["user-agent"]) == null ? void 0 : u.toLowerCase()) || "";
3017
+ let a = r === "?1" ? "Mobile" : "Desktop";
3018
+ r || (a = /Mobi|Android|iPhone|iPad|iPod/i.test(n) ? "Mobile" : "Desktop");
3019
+ const o = /iphone|ipad|ipod/.test(n) || t.includes("ios") ? "iOS" : /android/.test(n) || t.includes("android") ? "Android" : "Desktop", c = /chrome/.test(n) && !/edg|opr/.test(n) ? "Chrome" : /safari/.test(n) && !/chrome/.test(n) ? "Safari" : /firefox/.test(n) ? "Firefox" : /edg/.test(n) ? "Edge" : "Other";
3020
+ return { platform_name: a, os_name: o, browser_name: c };
3021
+ }
3022
+ async function ba({
3023
+ body: e,
3024
+ userToken: t,
3025
+ headers: r,
3026
+ dito: n,
3027
+ apiUrl: a
3028
+ }) {
3029
+ var d, w;
3030
+ const o = ha(r), c = await ma(n.authUrl), { platform_name: i, os_name: u, browser_name: g } = ga(o), s = e.findIndex(({ type: v }) => v === "IDENTIFY");
3031
+ if (s >= 0 && t) {
3032
+ const v = jt(t), y = e[s], R = await rt({
3033
+ apiUrl: a,
3034
+ body: {
3035
+ masterDataEntity: "CL",
3036
+ searchFields: {
3037
+ _where: `email=${v.email || ((d = y == null ? void 0 : y.traits) == null ? void 0 : d.email)}`
3038
+ },
3039
+ headers: {}
3040
+ },
3041
+ fetchOptions: {
3042
+ headers: o
3043
+ }
3044
+ }), p = Array.isArray(R) ? R[0] : null;
3045
+ if (p != null && p.userId) {
3046
+ const { gender: b, homePhone: m, birthDate: f, userId: h } = p, C = await fetch(
3047
+ `${a}/api/profile-system/pvt/profiles/${h}/addresses`,
3048
+ { headers: o }
3049
+ ).then((I) => I.json()), A = (w = Object.keys(C)) == null ? void 0 : w[0], _ = A ? JSON.parse(C[A]) : null;
3050
+ y.traits = {
3051
+ ...y.traits,
3052
+ birthday: f == null ? void 0 : f.split("T")[0],
3053
+ gender: b,
3054
+ phone: m,
3055
+ address: {
3056
+ city: _ == null ? void 0 : _.city,
3057
+ country: _ == null ? void 0 : _.country,
3058
+ postal_code: _ == null ? void 0 : _.postalCode,
3059
+ state: _ == null ? void 0 : _.state,
3060
+ street: _ == null ? void 0 : _.street
3061
+ }
3062
+ };
3063
+ }
3017
3064
  }
3018
- }, xa = {
3019
- catalog: Ht,
3020
- search: oa,
3021
- product: Ut,
3065
+ return e.forEach((v) => {
3066
+ fa(v) && (v.properties.custom_data = {
3067
+ platform_name: i,
3068
+ os_name: u,
3069
+ browser_name: g,
3070
+ authenticated: !!t,
3071
+ ...v.properties.custom_data
3072
+ });
3073
+ }), fetch(n.ingestUrl, {
3074
+ method: "POST",
3075
+ headers: {
3076
+ Authorization: `Bearer ${c.token}`,
3077
+ brand: n.brandName
3078
+ },
3079
+ body: JSON.stringify(e)
3080
+ });
3081
+ }
3082
+ const wa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3083
+ __proto__: null,
3084
+ ditoIngestService: ba
3085
+ }, Symbol.toStringTag, { value: "Module" })), Sa = {
3086
+ checkout: Kr,
3087
+ catalog: an,
3088
+ cms: Nt,
3089
+ search: kn,
3090
+ masterdata: Nn,
3091
+ marketingdata: qt,
3092
+ user: na,
3093
+ aviseme: oa,
3094
+ preview: ca,
3095
+ exitpreview: ua,
3096
+ vtexXmlProxy: pa,
3097
+ wishlist: {
3098
+ ...$n
3099
+ },
3100
+ ditoIngestService: wa
3101
+ }, Ca = {
3102
+ catalog: Ut,
3103
+ search: Dt,
3104
+ product: Lt,
3022
3105
  cms: {
3023
- ...Dt,
3024
- ...Lt
3106
+ ...$t,
3107
+ ...Ft
3025
3108
  }
3026
- }, Pa = {
3109
+ }, ka = {
3027
3110
  template: {
3028
3111
  pdp: {}
3029
3112
  }
3030
3113
  };
3031
3114
  export {
3032
- Ia as serverAPIs,
3033
- Ra as serverCMS,
3034
- Pa as serverComponents,
3035
- xa as serverHelpers
3115
+ Sa as serverAPIs,
3116
+ xa as serverCMS,
3117
+ ka as serverComponents,
3118
+ Ca as serverHelpers
3036
3119
  };