@wix/bookings 1.0.1790 → 1.0.1792

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 (31) hide show
  1. package/build/cjs/context-booking-checkout.js +1 -1
  2. package/build/cjs/context-booking-checkout.js.map +1 -1
  3. package/build/cjs/context-service-addons.js +123 -134
  4. package/build/cjs/context-service-addons.js.map +1 -1
  5. package/build/cjs/context-service.d.ts +16 -6
  6. package/build/cjs/context-service.js +728 -724
  7. package/build/cjs/context-service.js.map +1 -1
  8. package/build/cjs/context-services.js +801 -812
  9. package/build/cjs/context-services.js.map +1 -1
  10. package/build/cjs/context-time-slots.js +1300 -1267
  11. package/build/cjs/context-time-slots.js.map +1 -1
  12. package/build/es/context-booking-checkout.mjs +1 -1
  13. package/build/es/context-booking-checkout.mjs.map +1 -1
  14. package/build/es/context-service-addons.mjs +123 -134
  15. package/build/es/context-service-addons.mjs.map +1 -1
  16. package/build/es/context-service.d.mts +16 -6
  17. package/build/es/context-service.mjs +728 -724
  18. package/build/es/context-service.mjs.map +1 -1
  19. package/build/es/context-services.mjs +801 -812
  20. package/build/es/context-services.mjs.map +1 -1
  21. package/build/es/context-time-slots.mjs +1300 -1267
  22. package/build/es/context-time-slots.mjs.map +1 -1
  23. package/build/internal/cjs/context-service.d.ts +16 -6
  24. package/build/internal/es/context-service.d.mts +16 -6
  25. package/context-runtime/context-booking-checkout/runtime.js +2 -2
  26. package/context-runtime/context-service/runtime.d.ts +16 -6
  27. package/context-runtime/context-service/runtime.js +2 -2
  28. package/context-runtime/context-service-addons/runtime.js +2 -2
  29. package/context-runtime/context-services/runtime.js +3 -3
  30. package/context-runtime/context-time-slots/runtime.js +3 -3
  31. package/package.json +3 -3
@@ -20,12 +20,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // context-services.ts
21
21
  var context_services_exports = {};
22
22
  __export(context_services_exports, {
23
- SERVICES_CONTEXT_MISSING_PROVIDER_ERROR: () => Yc,
24
- ServicesContextProvider: () => tl,
25
- default: () => tl,
26
- injectAccessTokenGetter: () => nl,
27
- servicesContext: () => Jc,
28
- useServicesContext: () => Xc
23
+ SERVICES_CONTEXT_MISSING_PROVIDER_ERROR: () => Jc,
24
+ ServicesContextProvider: () => el,
25
+ default: () => el,
26
+ injectAccessTokenGetter: () => tl,
27
+ servicesContext: () => qc,
28
+ useServicesContext: () => Yc
29
29
  });
30
30
  module.exports = __toCommonJS(context_services_exports);
31
31
 
@@ -119,67 +119,67 @@ function ne(e5) {
119
119
  }
120
120
  }
121
121
  var re = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
122
- function A(e5) {
123
- return ce(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
124
- }
125
- var ie = /([\p{Ll}\d])(\p{Lu})/gu;
126
- var ae = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
127
- var oe = `$1\0$2`;
128
- var se = /[^\p{L}\d]+/giu;
129
- function ce(e5) {
122
+ function ie(e5) {
123
+ return le(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
124
+ }
125
+ var ae = /([\p{Ll}\d])(\p{Lu})/gu;
126
+ var oe = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
127
+ var se = `$1\0$2`;
128
+ var ce = /[^\p{L}\d]+/giu;
129
+ function le(e5) {
130
130
  let t2 = e5.trim();
131
- t2 = t2.replace(ie, oe).replace(ae, oe), t2 = t2.replace(se, `\0`);
131
+ t2 = t2.replace(ae, se).replace(oe, se), t2 = t2.replace(ce, `\0`);
132
132
  let n2 = 0, r2 = t2.length;
133
133
  for (; t2.charAt(n2) === `\0`; ) n2++;
134
134
  if (n2 === r2) return [];
135
135
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
136
136
  return t2.slice(n2, r2).split(/\0/g);
137
137
  }
138
- var le = (e5) => `validationError` in (e5.response?.data?.details ?? {});
139
- var ue = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
140
- var de = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
141
- function fe(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
138
+ var ue = (e5) => `validationError` in (e5.response?.data?.details ?? {});
139
+ var de = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
140
+ var fe = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
141
+ function pe(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
142
142
  if (typeof e5 != `object` || !e5) throw e5;
143
- if (le(e5)) return pe(e5, t2, n2);
144
- if (ue(e5)) return he(e5);
145
- if (de(e5)) {
146
- let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: A(n3), data: {} }, requestId: e5.requestId };
147
- return me(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
143
+ if (ue(e5)) return me(e5, t2, n2);
144
+ if (de(e5)) return ge(e5);
145
+ if (fe(e5)) {
146
+ let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: ie(n3), data: {} }, requestId: e5.requestId };
147
+ return he(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
148
148
  }
149
- return ge(e5);
149
+ return _e(e5);
150
150
  }
151
- var pe = (e5, t2, n2) => {
152
- let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = _e(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
153
- return me(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
151
+ var me = (e5, t2, n2) => {
152
+ let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = ve(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
153
+ return he(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
154
154
  };
155
- var me = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
156
- var he = (e5) => {
157
- let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? A(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
158
- return me(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
155
+ var he = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
156
+ var ge = (e5) => {
157
+ let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? ie(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
158
+ return he(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
159
159
  };
160
- var ge = (e5) => me(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: A(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
161
- var _e = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
160
+ var _e = (e5) => he(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: ie(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
161
+ var ve = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
162
162
  let a2 = { ...e5, ...t2 }, o2 = Object.keys(a2);
163
163
  return r2?.filter((e6) => !r2.some((t3) => t3.field.length > e6.field.length && t3.field.startsWith(e6.field) && o2.includes(t3.field))).map((e6) => {
164
164
  let r3 = t2[e6.field];
165
- if (r3) return { ...e6, field: ve(r3, i2) };
165
+ if (r3) return { ...e6, field: ye(r3, i2) };
166
166
  let s2 = o2?.sort((e7, t3) => t3.length - e7.length)?.find((t3) => e6.field.startsWith(t3));
167
167
  if (s2) {
168
168
  let t3 = a2[s2];
169
- if (t3) return { ...e6, field: e6.field.replace(s2, ve(t3, i2)) };
169
+ if (t3) return { ...e6, field: e6.field.replace(s2, ye(t3, i2)) };
170
170
  }
171
171
  return n2 ? { ...e6, field: `${i2[0]}.${e6.field}` } : e6;
172
172
  });
173
173
  };
174
- var ve = (e5, t2) => {
175
- let n2 = ye(e5);
174
+ var ye = (e5, t2) => {
175
+ let n2 = be(e5);
176
176
  return n2 == null ? e5 : e5.replace(`$[${n2}]`, t2[n2]);
177
177
  };
178
- var ye = (e5) => {
178
+ var be = (e5) => {
179
179
  let t2 = e5.match(/\$\[(?<argIndex>\d+)\]/);
180
180
  return t2 && t2.groups && Number(t2.groups.argIndex);
181
181
  };
182
- function be(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
182
+ function xe(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
183
183
  return ne(() => e5({ request: async (e6) => {
184
184
  let i3 = e6({ host: s2?.HTTPHost || `www.wixapis.com` }), a3 = i3;
185
185
  a3.method === `GET` && a3.fallback?.length && (a3.params?.toString().length ?? 0) > 4e3 && (a3 = i3.fallback[0]);
@@ -193,7 +193,7 @@ function be(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
193
193
  e8 = await s3.json();
194
194
  } catch {
195
195
  }
196
- let t3 = Se(s3.status, e8?.message ?? s3.statusText, e8?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e8 }), n3 = fe(t3);
196
+ let t3 = Ce(s3.status, e8?.message ?? s3.statusText, e8?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e8 }), n3 = pe(t3);
197
197
  throw r2?.handleError(n3, { requestOptions: { url: a3.url, method: a3.method, entityFqdn: i3.entityFqdn, methodFqn: i3.methodFqn } }), t3;
198
198
  }
199
199
  let l3 = await s3.json();
@@ -203,18 +203,18 @@ function be(e5, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
203
203
  }
204
204
  }, fetchWithAuth: n2, wixAPIFetch: i2, getActiveToken: a2, getAuthHeaders: o2 }, { validateRequestSchema: u2 }));
205
205
  }
206
- var xe = class extends Error {
206
+ var Se = class extends Error {
207
207
  response;
208
208
  requestId;
209
209
  constructor(e5) {
210
210
  super(), this.response = e5.response, this.requestId = e5.requestId;
211
211
  }
212
212
  };
213
- var Se = (e5, t2, n2, r2) => new xe({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e5, data: r2 } }, ...n2 }, message: t2 }, status: e5 }, requestId: r2?.requestId });
214
- var Ce = `.`;
215
- function we(e5, t2, n2) {
213
+ var Ce = (e5, t2, n2, r2) => new Se({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e5, data: r2 } }, ...n2 }, message: t2 }, status: e5 }, requestId: r2?.requestId });
214
+ var we = `.`;
215
+ function Te(e5, t2, n2) {
216
216
  if (e5 == null) throw Error(`Cannot set value on null or undefined`);
217
- let r2 = Te(t2), i2 = e5;
217
+ let r2 = Ee(t2), i2 = e5;
218
218
  for (let e6 = 0; e6 < r2.length; e6++) {
219
219
  let t3 = r2[e6];
220
220
  if (e6 === r2.length - 1) {
@@ -226,21 +226,21 @@ function we(e5, t2, n2) {
226
226
  }
227
227
  return e5;
228
228
  }
229
- function Te(e5) {
230
- return Array.isArray(e5) ? e5 : e5.split(Ce).map((e6) => Ee(e6) ? Number(e6) : e6);
231
- }
232
229
  function Ee(e5) {
233
- return /^\d+$/.test(e5);
230
+ return Array.isArray(e5) ? e5 : e5.split(we).map((e6) => De(e6) ? Number(e6) : e6);
234
231
  }
235
232
  function De(e5) {
233
+ return /^\d+$/.test(e5);
234
+ }
235
+ function Oe(e5) {
236
236
  let t2 = {};
237
- for (let [n2, r2] of Object.entries(e5)) Oe(n2) || we(t2, Te(n2), r2);
237
+ for (let [n2, r2] of Object.entries(e5)) ke(n2) || Te(t2, Ee(n2), r2);
238
238
  return t2;
239
239
  }
240
- function Oe(e5) {
240
+ function ke(e5) {
241
241
  return e5 === `__proto__` || e5 === `constructor` || e5 === `prototype`;
242
242
  }
243
- var ke = class {
243
+ var Ae = class {
244
244
  BRACKET_PATTERN = /\[(\d+)\]/g;
245
245
  NUMERIC_PATTERN = /^\d+$/;
246
246
  ESCAPED_DOT_PATTERN = /\\\./g;
@@ -263,7 +263,7 @@ var ke = class {
263
263
  return e5.replace(this.ESCAPED_DOT_PLACEHOLDER, `\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER, `\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER, `\\[`);
264
264
  }
265
265
  unflatten() {
266
- return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e5, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e5)), t2])), De(this.cleanedModifiedFields);
266
+ return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e5, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e5)), t2])), Oe(this.cleanedModifiedFields);
267
267
  }
268
268
  flatten(e5) {
269
269
  let t2 = {};
@@ -288,7 +288,7 @@ var ke = class {
288
288
  r2.push(i3), n2 = t3[i3];
289
289
  return;
290
290
  }
291
- let a3 = Ne(e6);
291
+ let a3 = Pe(e6);
292
292
  if (a3 && a3 in t3) {
293
293
  r2.push(a3), n2 = t3[a3];
294
294
  return;
@@ -319,28 +319,28 @@ var ke = class {
319
319
  return e5.replace(this.BRACKET_PATTERN, (t2, n2, r2) => r2 > 0 && e5[r2 - 1] === `\\` ? t2 : `.` + n2);
320
320
  }
321
321
  };
322
- function Ae(e5, t2) {
322
+ function je(e5, t2) {
323
323
  let n2 = e5?.modifiedFields;
324
324
  if (!n2) return null;
325
- let r2 = je(n2);
325
+ let r2 = Me(n2);
326
326
  if (!r2) return null;
327
327
  let { unflattenedModifiedFields: i2, modifiedFieldsManipulator: a2 } = r2;
328
328
  e5 = { ...e5, modifiedFields: i2 };
329
329
  let o2 = t2(e5), s2 = o2?.modifiedFields;
330
330
  if (!s2) return null;
331
- let c2 = Me(s2, a2);
331
+ let c2 = Ne(s2, a2);
332
332
  return c2 === null ? null : (o2.modifiedFields = c2, o2);
333
333
  }
334
- function je(e5) {
334
+ function Me(e5) {
335
335
  if (typeof e5 == `object` && e5 && !Array.isArray(e5)) try {
336
- let t2 = new ke(e5);
336
+ let t2 = new Ae(e5);
337
337
  return { unflattenedModifiedFields: t2.unflatten(), modifiedFieldsManipulator: t2 };
338
338
  } catch {
339
339
  return null;
340
340
  }
341
341
  return null;
342
342
  }
343
- function Me(e5, t2) {
343
+ function Ne(e5, t2) {
344
344
  if (typeof e5 == `object` && e5 && !Array.isArray(e5)) try {
345
345
  return t2.flatten(e5);
346
346
  } catch {
@@ -348,10 +348,10 @@ function Me(e5, t2) {
348
348
  }
349
349
  return null;
350
350
  }
351
- function Ne(e5) {
351
+ function Pe(e5) {
352
352
  return e5.replace(/[-_\s]+(.)?/g, (e6, t2) => t2 ? t2.toUpperCase() : ``).replace(/^./, (e6) => e6.toLowerCase());
353
353
  }
354
- function Pe() {
354
+ function Fe() {
355
355
  return { emit(e5, ...t2) {
356
356
  for (let n2 = 0, r2 = this.events[e5] || [], i2 = r2.length; n2 < i2; n2++) r2[n2](...t2);
357
357
  }, events: {}, on(e5, t2) {
@@ -360,8 +360,8 @@ function Pe() {
360
360
  };
361
361
  } };
362
362
  }
363
- var Fe = (e5) => e5.__type === `event-definition`;
364
- function Ie(e5, t2, n2, r2) {
363
+ var Ie = (e5) => e5.__type === `event-definition`;
364
+ function Le(e5, t2, n2, r2) {
365
365
  let i2;
366
366
  if (e5.isDomainEvent) {
367
367
  let { deletedEvent: e6, actionEvent: t3, createdEvent: a3, updatedEvent: o3, ...s3 } = n2, c2 = { ...r2, ...s3 };
@@ -372,14 +372,14 @@ function Ie(e5, t2, n2, r2) {
372
372
  let e6 = s2.modifiedFields;
373
373
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) {
374
374
  o2 = structuredClone(i2);
375
- let e7 = Ae(s2, a2);
375
+ let e7 = je(s2, a2);
376
376
  if (e7) return t2(e7);
377
377
  }
378
378
  }
379
379
  return t2(a2(o2));
380
380
  }
381
- function Le(e5) {
382
- let t2 = /* @__PURE__ */ new Map(), n2 = Pe();
381
+ function Re(e5) {
382
+ let t2 = /* @__PURE__ */ new Map(), n2 = Fe();
383
383
  return { initModule(e6) {
384
384
  return (r2) => {
385
385
  let i2 = t2.get(e6.type) ?? [];
@@ -389,7 +389,7 @@ function Le(e5) {
389
389
  let { eventType: r2, identity: i2, instanceId: a2, payload: o2, accountInfo: s2 } = await this.parseJWT(e6), c2 = [...n3.expectedEvents, ...Array.from(t2.keys()).map((e7) => ({ type: e7 }))];
390
390
  if (c2.length > 0 && !c2.some(({ type: e7 }) => e7 === r2)) throw Error(`Unexpected event type: ${r2}. Expected one of: ${c2.map((e7) => e7.type).join(`, `)}`);
391
391
  let l2 = t2.get(r2) ?? [];
392
- return await Promise.all(l2.map(({ eventDefinition: e7, handler: t3 }) => Ie(e7, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
392
+ return await Promise.all(l2.map(({ eventDefinition: e7, handler: t3 }) => Le(e7, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
393
393
  }, async processRequest(e6, t3) {
394
394
  let n3 = await e6.text();
395
395
  return this.process(n3, t3);
@@ -408,12 +408,12 @@ function Le(e5) {
408
408
  let n3 = Array.from(t2.keys()).map((e7) => ({ type: e7 }));
409
409
  if (n3.length > 0 && !n3.some(({ type: t3 }) => t3 === e6.eventType)) throw Error(`Unexpected event type: ${e6.eventType}. Expected one of: ${n3.map((e7) => e7.type).join(`, `)}`);
410
410
  let r2 = t2.get(e6.eventType) ?? [];
411
- await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Ie(t3, n4, e6.payload, { instanceId: e6.instanceId, identity: e6.identity })));
411
+ await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Le(t3, n4, e6.payload, { instanceId: e6.instanceId, identity: e6.identity })));
412
412
  }, apps: { AppInstalled: _(`AppInstalled`)(), AppRemoved: _(`AppRemoved`)() } } };
413
413
  }
414
- var Re = (e5) => e5.__type === `service-plugin-definition`;
415
- function ze(e5) {
416
- let t2 = /* @__PURE__ */ new Map(), n2 = Pe();
414
+ var ze = (e5) => e5.__type === `service-plugin-definition`;
415
+ function Be(e5) {
416
+ let t2 = /* @__PURE__ */ new Map(), n2 = Fe();
417
417
  return { initModule(e6) {
418
418
  return (r2) => {
419
419
  let i2 = t2.get(e6.componentType.toLowerCase()) ?? [];
@@ -454,38 +454,38 @@ function ze(e5) {
454
454
  return s2.transformations.toREST(await c2(s2.transformations.fromREST(e6)));
455
455
  } } };
456
456
  }
457
- var j = `X-Wix-Consistent`;
458
- function Be(e5) {
457
+ var A = `X-Wix-Consistent`;
458
+ function Ve(e5) {
459
459
  let t2 = e5.headers || { Authorization: `` }, n2 = { getAuthHeaders: (e6) => Promise.resolve({ headers: {} }) }, r2 = e5.auth, i2 = typeof r2 == `function` ? r2 : () => r2 ?? n2, a2 = () => i2().getAuthHeaders(e5.host), o2 = () => e5.fetch ?? fetch, s2 = async (n3, r3) => {
460
- let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [j]: t2[j] } : {} }, l3 = e5.host?.getErrorHandler?.();
460
+ let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [A]: t2[A] } : {} }, l3 = e5.host?.getErrorHandler?.();
461
461
  try {
462
462
  if (typeof n3 == `string` || n3 instanceof URL) {
463
463
  let e6 = await i3(n3, { ...r3, headers: c3 });
464
464
  l3?.handleError(e6, { requestOptions: { url: n3.toString(), method: r3?.method } });
465
- let a3 = Ve(e6);
466
- return a3 && (t2[j] = a3), e6;
465
+ let a3 = He(e6);
466
+ return a3 && (t2[A] = a3), e6;
467
467
  }
468
468
  {
469
469
  for (let [e7, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e7, t3);
470
470
  let e6 = await i3(n3, r3);
471
471
  l3?.handleError(e6, { requestOptions: { url: n3.url, method: r3?.method } });
472
- let a3 = Ve(e6);
473
- return a3 && (t2[j] = a3), e6;
472
+ let a3 = He(e6);
473
+ return a3 && (t2[A] = a3), e6;
474
474
  }
475
475
  } catch (e6) {
476
476
  throw l3?.handleError(e6, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e6;
477
477
  }
478
- }, { client: c2, initModule: l2 } = ze(i2), { client: u2, initModule: d2 } = Le(i2), f2 = async (n3, r3) => {
479
- let i3 = o2(), s3 = await a2(), c3 = T(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [j]: t2[j] } : {} } }), u3 = Ve(l3);
480
- return u3 && (t2[j] = u3), l3;
478
+ }, { client: c2, initModule: l2 } = Be(i2), { client: u2, initModule: d2 } = Re(i2), f2 = async (n3, r3) => {
479
+ let i3 = o2(), s3 = await a2(), c3 = T(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e5.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [A]: t2[A] } : {} } }), u3 = He(l3);
480
+ return u3 && (t2[A] = u3), l3;
481
481
  }, p2 = (t3, n3) => {
482
- if (Fe(t3)) return d2(t3);
483
- if (Re(t3)) return l2(t3);
482
+ if (Ie(t3)) return d2(t3);
483
+ if (ze(t3)) return l2(t3);
484
484
  if (D(t3) && e5.host) return O(t3, e5.host);
485
485
  if (typeof t3 == `function`) {
486
486
  if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
487
487
  let r3 = e5.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e5.useCDN === void 0 ? i2().shouldUseCDN : e5.useCDN;
488
- return be(ne(() => b(t3)) ? y(t3) : t3, n3 ?? {}, f2, e5.host?.getErrorHandler?.(), (e6, t4) => {
488
+ return xe(ne(() => b(t3)) ? y(t3) : t3, n3 ?? {}, f2, e5.host?.getErrorHandler?.(), (e6, t4) => {
489
489
  let n4 = new URL(e6, `https://${r3}`);
490
490
  return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
491
491
  }, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e5.host?.name, o3, e5.validateRequestSchema);
@@ -509,25 +509,25 @@ function Be(e5) {
509
509
  return { data: o3 ?? {}, errors: s3 };
510
510
  }, webhooks: u2, servicePlugins: c2 };
511
511
  }
512
- function Ve(e5) {
512
+ function He(e5) {
513
513
  return e5.headers?.get(`X-Wix-Consistent`) ?? e5.headers?.get(`x-wix-consistent`);
514
514
  }
515
- var He = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
516
- var Ue = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
517
- var We = `items`;
518
- var Ge = `pagingMetadata`;
519
- var Ke = He;
520
- function qe(e5, t2) {
515
+ var Ue = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
516
+ var We = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
517
+ var Ge = `items`;
518
+ var Ke = `pagingMetadata`;
519
+ var qe = Ue;
520
+ function Je(e5, t2) {
521
521
  return e5?.split(`.`).map((e6) => t2?.[e6] ?? e6).join(`.`);
522
522
  }
523
- function Je(e5, { transformSystemFields: t2 = true } = {}) {
524
- return t2 ? qe(e5, Ke) : e5;
525
- }
526
- var Ye = `sort.fieldName`;
527
- function Xe(e5, t2, n2) {
528
- return (e5 === Ye || e5.endsWith(`.${Ye}`)) && typeof t2 == `string` ? qe(t2, n2) : t2;
523
+ function Ye(e5, { transformSystemFields: t2 = true } = {}) {
524
+ return t2 ? Je(e5, qe) : e5;
529
525
  }
526
+ var Xe = `sort.fieldName`;
530
527
  function Ze(e5, t2, n2) {
528
+ return (e5 === Xe || e5.endsWith(`.${Xe}`)) && typeof t2 == `string` ? Je(t2, n2) : t2;
529
+ }
530
+ function Qe(e5, t2, n2) {
531
531
  let r2 = (e6) => n2.includes(e6), i2 = (e6, n3) => {
532
532
  if (Array.isArray(e6)) e6.forEach((e7) => {
533
533
  i2(e7, n3);
@@ -537,147 +537,147 @@ function Ze(e5, t2, n2) {
537
537
  Object.keys(a2).forEach((e7) => {
538
538
  let o2 = n3 === `` ? e7 : `${n3}.${e7}`;
539
539
  if (r2(o2)) return;
540
- let s2 = Qe(e7, t2);
541
- s2 !== e7 && !(s2 in a2) && (a2[s2] = a2[e7], delete a2[e7]), a2[s2] = Xe(o2, a2[s2], t2), i2(a2[s2], o2);
540
+ let s2 = $e(e7, t2);
541
+ s2 !== e7 && !(s2 in a2) && (a2[s2] = a2[e7], delete a2[e7]), a2[s2] = Ze(o2, a2[s2], t2), i2(a2[s2], o2);
542
542
  });
543
543
  }
544
544
  };
545
545
  return i2(e5, ``), e5;
546
546
  }
547
- function Qe(e5, t2) {
547
+ function $e(e5, t2) {
548
548
  let n2;
549
549
  return n2 = e5.includes(`.`) ? e5.split(`.`).map((e6) => t2[e6] ?? e6).join(`.`) : t2[e5] ?? e5, n2;
550
550
  }
551
- function M(e5, t2 = []) {
552
- return Ze(e5, He, t2);
551
+ function j(e5, t2 = []) {
552
+ return Qe(e5, Ue, t2);
553
553
  }
554
- function N(e5, t2 = []) {
555
- return Ze(e5, Ue, t2);
554
+ function M(e5, t2 = []) {
555
+ return Qe(e5, We, t2);
556
556
  }
557
- function P(e5) {
557
+ function N(e5) {
558
558
  return e5 ? new Date(e5) : void 0;
559
559
  }
560
- var $e = /* @__PURE__ */ new WeakMap();
561
- function et() {
560
+ var et = /* @__PURE__ */ new WeakMap();
561
+ function tt() {
562
562
  return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
563
563
  }
564
- function tt(e5, t2) {
564
+ function nt(e5, t2) {
565
565
  let n2 = e5.get(t2);
566
- return n2 || (n2 = et(), e5.set(t2, n2)), n2;
566
+ return n2 || (n2 = tt(), e5.set(t2, n2)), n2;
567
567
  }
568
- function nt(e5, t2) {
569
- return t2 === `*` ? (e5.anyField ??= et(), e5.anyField) : t2.endsWith(`{}`) ? (e5.mapFields ??= /* @__PURE__ */ new Map(), tt(e5.mapFields, t2.slice(0, -2))) : (e5.fields ??= /* @__PURE__ */ new Map(), tt(e5.fields, t2));
568
+ function rt(e5, t2) {
569
+ return t2 === `*` ? (e5.anyField ??= tt(), e5.anyField) : t2.endsWith(`{}`) ? (e5.mapFields ??= /* @__PURE__ */ new Map(), nt(e5.mapFields, t2.slice(0, -2))) : (e5.fields ??= /* @__PURE__ */ new Map(), nt(e5.fields, t2));
570
570
  }
571
- function rt(e5) {
572
- let t2 = et();
571
+ function it(e5) {
572
+ let t2 = tt();
573
573
  for (let n2 of e5) {
574
- let e6 = n2.path.split(`.`).reduce(nt, t2);
574
+ let e6 = n2.path.split(`.`).reduce(rt, t2);
575
575
  e6.leaves ??= [], e6.leaves.push(n2);
576
576
  }
577
577
  return t2;
578
578
  }
579
- function it(e5) {
580
- let t2 = $e.get(e5);
581
- return t2 || (t2 = rt(e5), $e.set(e5, t2)), t2;
582
- }
583
579
  function at(e5) {
584
- return typeof e5 == `object` && !!e5;
580
+ let t2 = et.get(e5);
581
+ return t2 || (t2 = it(e5), et.set(e5, t2)), t2;
585
582
  }
586
- function ot(e5, { isRepeated: t2, isMap: n2 }, r2) {
587
- return t2 ? Array.isArray(e5) ? e5.map(r2) : e5 : n2 ? at(e5) ? Object.fromEntries(Object.entries(e5).map(([e6, t3]) => [e6, r2(t3)])) : e5 : r2(e5);
583
+ function ot(e5) {
584
+ return typeof e5 == `object` && !!e5;
588
585
  }
589
- function st(e5, t2, n2) {
590
- at(e5) && ut(e5, t2, n2);
586
+ function st(e5, { isRepeated: t2, isMap: n2 }, r2) {
587
+ return t2 ? Array.isArray(e5) ? e5.map(r2) : e5 : n2 ? ot(e5) ? Object.fromEntries(Object.entries(e5).map(([e6, t3]) => [e6, r2(t3)])) : e5 : r2(e5);
591
588
  }
592
589
  function ct(e5, t2, n2) {
590
+ ot(e5) && dt(e5, t2, n2);
591
+ }
592
+ function lt(e5, t2, n2) {
593
593
  for (let [r2, i2] of t2) {
594
594
  if (!(r2 in e5)) continue;
595
- if (i2.leaves) for (let t4 of i2.leaves) e5[r2] = ot(e5[r2], t4, n2);
595
+ if (i2.leaves) for (let t4 of i2.leaves) e5[r2] = st(e5[r2], t4, n2);
596
596
  let t3 = e5[r2];
597
- Array.isArray(t3) ? t3.forEach((e6) => st(e6, i2, n2)) : st(t3, i2, n2);
597
+ Array.isArray(t3) ? t3.forEach((e6) => ct(e6, i2, n2)) : ct(t3, i2, n2);
598
598
  }
599
599
  }
600
- function lt(e5, t2, n2) {
600
+ function ut(e5, t2, n2) {
601
601
  for (let [r2, i2] of t2) {
602
602
  let t3 = e5[r2];
603
- at(t3) && Object.values(t3).forEach((e6) => st(e6, i2, n2));
603
+ ot(t3) && Object.values(t3).forEach((e6) => ct(e6, i2, n2));
604
604
  }
605
605
  }
606
- function ut(e5, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
607
- t2 && ct(e5, t2, i2), n2 && lt(e5, n2, i2), r2 && Object.values(e5).forEach((e6) => st(e6, r2, i2));
606
+ function dt(e5, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
607
+ t2 && lt(e5, t2, i2), n2 && ut(e5, n2, i2), r2 && Object.values(e5).forEach((e6) => ct(e6, r2, i2));
608
608
  }
609
- function F(e5, t2) {
610
- if (!at(e5)) return e5;
611
- for (let { paths: n2, transformFn: r2 } of t2) ut(e5, it(n2), r2);
609
+ function P(e5, t2) {
610
+ if (!ot(e5)) return e5;
611
+ for (let { paths: n2, transformFn: r2 } of t2) dt(e5, at(n2), r2);
612
612
  return e5;
613
613
  }
614
- function dt(e5) {
614
+ function ft(e5) {
615
615
  return Object.fromEntries(Object.entries(e5).filter(([, e6]) => e6 !== void 0));
616
616
  }
617
- function ft(e5) {
618
- return _t(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
617
+ function pt(e5) {
618
+ return vt(e5).map((e6) => e6.toLocaleUpperCase()).join(`_`);
619
619
  }
620
- var pt = /([\p{Ll}\d])(\p{Lu})/gu;
621
- var mt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
622
- var ht = `$1\0$2`;
623
- var gt = /[^\p{L}\d]+/giu;
624
- function _t(e5) {
620
+ var mt = /([\p{Ll}\d])(\p{Lu})/gu;
621
+ var ht = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
622
+ var gt = `$1\0$2`;
623
+ var _t = /[^\p{L}\d]+/giu;
624
+ function vt(e5) {
625
625
  let t2 = e5.trim();
626
- t2 = t2.replace(pt, ht).replace(mt, ht), t2 = t2.replace(gt, `\0`);
626
+ t2 = t2.replace(mt, gt).replace(ht, gt), t2 = t2.replace(_t, `\0`);
627
627
  let n2 = 0, r2 = t2.length;
628
628
  for (; t2.charAt(n2) === `\0`; ) n2++;
629
629
  if (n2 === r2) return [];
630
630
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
631
631
  return t2.slice(n2, r2).split(/\0/g);
632
632
  }
633
- var vt = (e5) => `validationError` in (e5.response?.data?.details ?? {});
634
- var yt = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
635
- var bt = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
636
- function I(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
633
+ var yt = (e5) => `validationError` in (e5.response?.data?.details ?? {});
634
+ var bt = (e5) => `applicationError` in (e5.response?.data?.details ?? {});
635
+ var xt = (e5) => (e5.response?.status ?? -1) >= 400 && (e5.response?.status ?? -1) < 500;
636
+ function F(e5, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
637
637
  if (typeof e5 != `object` || !e5) throw e5;
638
- if (vt(e5)) return xt(e5, t2, n2);
639
- if (yt(e5)) return Ct(e5);
640
- if (bt(e5)) {
641
- let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: ft(n3), data: {} }, requestId: e5.requestId };
642
- return St(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
638
+ if (yt(e5)) return St(e5, t2, n2);
639
+ if (bt(e5)) return wt(e5);
640
+ if (xt(e5)) {
641
+ let t3 = e5.response?.status, n3 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: pt(n3), data: {} }, requestId: e5.requestId };
642
+ return Ct(e5, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
643
643
  }
644
- return wt(e5);
644
+ return Tt(e5);
645
645
  }
646
- var xt = (e5, t2, n2) => {
647
- let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Tt(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
648
- return St(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
646
+ var St = (e5, t2, n2) => {
647
+ let r2 = e5.response?.data, i2 = e5.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Et(t2, a2, n2)?.sort((e6, t3) => e6.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e6, description: t3 }) => `"${e6}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
648
+ return Ct(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e5.response?.status, requestId: i2 } });
649
649
  };
650
- var St = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
651
- var Ct = (e5) => {
652
- let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? ft(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
653
- return St(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
650
+ var Ct = (e5, { message: t2, extraProperties: n2 }) => Object.assign(e5, { ...n2, message: t2 });
651
+ var wt = (e5) => {
652
+ let t2 = e5.response?.status, n2 = e5.response?.statusText ?? `UNKNOWN`, r2 = e5.response?.data?.message ?? n2, i2 = e5.response?.data?.details?.applicationError?.description ?? n2, a2 = e5.response?.data?.details?.applicationError?.code ?? pt(n2), o2 = e5.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e5.requestId };
653
+ return Ct(e5, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e5.requestId } });
654
654
  };
655
- var wt = (e5) => St(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: ft(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
656
- var Tt = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
655
+ var Tt = (e5) => Ct(e5, { message: e5.requestId ? `System error occurred, request-id: ${e5.requestId}` : `System error occurred: ${JSON.stringify(e5)}`, extraProperties: { requestId: e5.requestId, status: e5.response?.status, code: pt(e5.response?.statusText ?? `UNKNOWN`), ...!e5.response && { runtimeError: e5 } } });
656
+ var Et = ({ spreadPathsToArguments: e5, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
657
657
  let a2 = { ...e5, ...t2 }, o2 = Object.keys(a2);
658
658
  return r2?.filter((e6) => !r2.some((t3) => t3.field.length > e6.field.length && t3.field.startsWith(e6.field) && o2.includes(t3.field))).map((e6) => {
659
659
  let r3 = t2[e6.field];
660
- if (r3) return { ...e6, field: Et(r3, i2) };
660
+ if (r3) return { ...e6, field: Dt(r3, i2) };
661
661
  let s2 = o2?.sort((e7, t3) => t3.length - e7.length)?.find((t3) => e6.field.startsWith(t3));
662
662
  if (s2) {
663
663
  let t3 = a2[s2];
664
- if (t3) return { ...e6, field: e6.field.replace(s2, Et(t3, i2)) };
664
+ if (t3) return { ...e6, field: e6.field.replace(s2, Dt(t3, i2)) };
665
665
  }
666
666
  return n2 ? { ...e6, field: `${i2[0]}.${e6.field}` } : e6;
667
667
  });
668
668
  };
669
- var Et = (e5, t2) => {
670
- let n2 = Dt(e5);
669
+ var Dt = (e5, t2) => {
670
+ let n2 = Ot(e5);
671
671
  return n2 == null ? e5 : e5.replace(`$[${n2}]`, t2[n2]);
672
672
  };
673
- var Dt = (e5) => {
673
+ var Ot = (e5) => {
674
674
  let t2 = e5.match(/\$\[(?<argIndex>\d+)\]/);
675
675
  return t2 && t2.groups && Number(t2.groups.argIndex);
676
676
  };
677
- function Ot() {
677
+ function kt() {
678
678
  let e5 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
679
679
  if (e5) return { initWixModules(t3, n3) {
680
- return kt(() => e5(t3, n3));
680
+ return At(() => e5(t3, n3));
681
681
  }, fetchWithAuth() {
682
682
  throw Error(`fetchWithAuth is not available in this context`);
683
683
  }, graphql() {
@@ -687,10 +687,10 @@ function Ot() {
687
687
  if (t2 || n2) return { initWixModules(e6, r2) {
688
688
  if (r2) {
689
689
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
690
- return kt(() => n2.use(e6));
690
+ return At(() => n2.use(e6));
691
691
  }
692
692
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
693
- return kt(() => t2.use(e6));
693
+ return At(() => t2.use(e6));
694
694
  }, fetchWithAuth: (e6, n3) => {
695
695
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
696
696
  return t2.fetchWithAuth(e6, n3);
@@ -702,7 +702,7 @@ function Ot() {
702
702
  return t2.graphql(e6, n3, r2);
703
703
  } };
704
704
  }
705
- function kt(e5) {
705
+ function At(e5) {
706
706
  let t2 = globalThis.__wix_context__, n2 = { client: g.client, elevatedClient: g.elevatedClient }, r2;
707
707
  globalThis.__wix_context__ = void 0, g.client = void 0, g.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
708
708
  try {
@@ -711,108 +711,108 @@ function kt(e5) {
711
711
  globalThis.__wix_context__ = t2, g.client = n2.client, g.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
712
712
  }
713
713
  }
714
- function At(e5, t2) {
714
+ function jt(e5, t2) {
715
715
  return (...n2) => {
716
- let r2 = Ot();
716
+ let r2 = kt();
717
717
  return r2 ? r2.initWixModules(e5, t2).apply(void 0, n2) : e5.apply(void 0, n2);
718
718
  };
719
719
  }
720
- function jt(e5) {
720
+ function Mt(e5) {
721
721
  let t2 = (...t3) => {
722
- let n2 = Ot();
722
+ let n2 = kt();
723
723
  return n2 ? n2.initWixModules(e5).apply(void 0, t3) : () => ({ slug: e5.type });
724
724
  };
725
725
  return t2.__type = e5.__type, t2.type = e5.type, t2.isDomainEvent = e5.isDomainEvent, t2.transformations = e5.transformations, t2;
726
726
  }
727
- function Mt(e5, t2 = false) {
728
- return At(e5, t2);
727
+ function Nt(e5, t2 = false) {
728
+ return jt(e5, t2);
729
729
  }
730
- function Nt(e5, t2) {
731
- let n2 = Ft(e5), r2 = Object.entries(n2).some(([e6, t3]) => e6.includes(`.`) || Array.isArray(t3) && t3.some((e7) => typeof e7 == `object`));
732
- return t2 && r2 ? new URLSearchParams({ ".r": Lt(JSON.stringify(e5)) }) : Object.entries(n2).reduce((e6, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
730
+ function Pt(e5, t2) {
731
+ let n2 = It(e5), r2 = Object.entries(n2).some(([e6, t3]) => e6.includes(`.`) || Array.isArray(t3) && t3.some((e7) => typeof e7 == `object`));
732
+ return t2 && r2 ? new URLSearchParams({ ".r": Rt(JSON.stringify(e5)) }) : Object.entries(n2).reduce((e6, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
733
733
  r3 == null || Array.isArray(n3) && typeof r3 == `object` || e6.append(t3, r3);
734
734
  }), e6), new URLSearchParams());
735
735
  }
736
- function Pt(e5) {
737
- let t2 = Xt(Jt(e5.host), e5.domainToMappings);
738
- return on(nn(e5.protoPath, e5.data || {}), t2);
736
+ function Ft(e5) {
737
+ let t2 = Zt(Yt(e5.host), e5.domainToMappings);
738
+ return sn(rn(e5.protoPath, e5.data || {}), t2);
739
739
  }
740
- function Ft(e5, t2 = ``) {
740
+ function It(e5, t2 = ``) {
741
741
  let n2 = {};
742
742
  return Object.entries(e5).forEach(([e6, r2]) => {
743
- let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = It(t2, e6);
743
+ let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Lt(t2, e6);
744
744
  if (i2) {
745
- let e7 = Ft(r2, a2);
745
+ let e7 = It(r2, a2);
746
746
  Object.assign(n2, e7);
747
747
  } else n2[a2] = r2;
748
748
  }), n2;
749
749
  }
750
- function It(e5, t2) {
750
+ function Lt(e5, t2) {
751
751
  return `${e5}${e5 ? `.` : ``}${t2}`;
752
752
  }
753
- var Lt = (e5) => {
753
+ var Rt = (e5) => {
754
754
  let t2 = new TextEncoder().encode(e5);
755
755
  return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e5, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
756
756
  };
757
- var Rt = [`wix.com`, `editorx.com`];
758
- var zt = `_`;
759
- var Bt = `*.`;
760
- var Vt = RegExp(`\\.(${Rt.join(`|`)})$`);
761
- var Ht = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
762
- var Ut = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
763
- var Wt = `dev.wix-code.com`;
764
- var Gt = /{(.*)}/;
765
- var Kt = RegExp(`\\.(${Ht.join(`|`)})$`);
766
- var qt = RegExp(`.*\\.${Wt}$`);
767
- function Jt(e5) {
768
- return Yt(e5).replace(Vt, `._base_domain_`).replace(Kt, `._api_base_domain_`).replace(qt, `*.dev.wix-code.com`);
769
- }
757
+ var zt = [`wix.com`, `editorx.com`];
758
+ var Bt = `_`;
759
+ var Vt = `*.`;
760
+ var Ht = RegExp(`\\.(${zt.join(`|`)})$`);
761
+ var Ut = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
762
+ var Wt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
763
+ var Gt = `dev.wix-code.com`;
764
+ var Kt = /{(.*)}/;
765
+ var qt = RegExp(`\\.(${Ut.join(`|`)})$`);
766
+ var Jt = RegExp(`.*\\.${Gt}$`);
770
767
  function Yt(e5) {
771
- return Ut[e5] ?? e5;
768
+ return Xt(e5).replace(Ht, `._base_domain_`).replace(qt, `._api_base_domain_`).replace(Jt, `*.dev.wix-code.com`);
772
769
  }
773
- function Xt(e5, t2) {
770
+ function Xt(e5) {
771
+ return Wt[e5] ?? e5;
772
+ }
773
+ function Zt(e5, t2) {
774
774
  let n2 = t2[e5];
775
775
  if (n2) return n2;
776
- let r2 = Zt(e5, t2) ?? Qt(e5, t2);
776
+ let r2 = Qt(e5, t2) ?? $t(e5, t2);
777
777
  if (!r2) {
778
- if (en(e5)) {
779
- let e6 = t2[tn];
778
+ if (tn(e5)) {
779
+ let e6 = t2[nn];
780
780
  if (e6) return e6;
781
781
  }
782
- let n3 = t2[zt];
782
+ let n3 = t2[Bt];
783
783
  if (n3) return n3;
784
784
  }
785
785
  return r2 ?? [];
786
786
  }
787
- function Zt(e5, t2) {
787
+ function Qt(e5, t2) {
788
788
  return Object.entries(t2).find(([t3]) => {
789
789
  let [, ...n2] = e5.split(`.`);
790
790
  return n2.join(`.`) === t3;
791
791
  })?.[1];
792
792
  }
793
- function Qt(e5, t2) {
794
- let [n2] = Object.entries(t2).filter(([t3]) => $t(e5, t3)).sort(([e6], [t3]) => t3.length - e6.length);
793
+ function $t(e5, t2) {
794
+ let [n2] = Object.entries(t2).filter(([t3]) => en(e5, t3)).sort(([e6], [t3]) => t3.length - e6.length);
795
795
  if (!n2) return;
796
796
  let [, r2] = n2;
797
797
  return r2;
798
798
  }
799
- function $t(e5, t2) {
800
- if (!t2.startsWith(Bt)) return false;
799
+ function en(e5, t2) {
800
+ if (!t2.startsWith(Vt)) return false;
801
801
  let n2 = t2.slice(1);
802
802
  return e5.length > n2.length && e5.endsWith(n2);
803
803
  }
804
- function en(e5) {
804
+ function tn(e5) {
805
805
  return !!e5.match(/\._base_domain_$/);
806
806
  }
807
- var tn = `www._base_domain_`;
808
- function nn(e5, t2) {
809
- return e5.split(`/`).map((e6) => rn(e6, t2)).join(`/`);
810
- }
807
+ var nn = `www._base_domain_`;
811
808
  function rn(e5, t2) {
812
- let n2 = e5.match(Gt) || [], r2 = n2[1];
813
- return r2 ? an(t2, r2, e5, e5.replace(n2[0], ``)) : e5;
809
+ return e5.split(`/`).map((e6) => an(e6, t2)).join(`/`);
810
+ }
811
+ function an(e5, t2) {
812
+ let n2 = e5.match(Kt) || [], r2 = n2[1];
813
+ return r2 ? on(t2, r2, e5, e5.replace(n2[0], ``)) : e5;
814
814
  }
815
- function an(e5, t2, n2, r2) {
815
+ function on(e5, t2, n2, r2) {
816
816
  let i2 = e5;
817
817
  for (let e6 of t2.split(`.`)) {
818
818
  if (!i2) return n2;
@@ -820,40 +820,40 @@ function an(e5, t2, n2, r2) {
820
820
  }
821
821
  return `${i2}${r2}`;
822
822
  }
823
- function on(e5, t2) {
823
+ function sn(e5, t2) {
824
824
  let n2 = t2?.find((t3) => e5.startsWith(t3.destPath));
825
825
  return n2 ? n2.srcPath + e5.slice(n2.destPath.length) : e5;
826
826
  }
827
- function sn(e5) {
828
- return jt(e5);
829
- }
830
827
  function cn(e5) {
831
- return e5 === `NaN` ? NaN : e5 === `Infinity` ? 1 / 0 : e5 === `-Infinity` ? -1 / 0 : e5;
828
+ return Mt(e5);
832
829
  }
833
830
  function ln(e5) {
834
- return e5 && dt({ formatted: e5.formattedAddress, location: e5.geocode, addressLine1: e5.addressLine, addressLine2: e5.addressLine2, streetAddress: e5.streetAddress && { name: e5.streetAddress.name, number: e5.streetAddress.number, apt: e5.streetAddress.apt, formattedAddressLine: e5.streetAddress.formattedAddressLine }, hint: e5.hint, city: e5.city, subdivision: e5.subdivision, country: e5.country, postalCode: e5.postalCode, countryFullname: e5.countryFullname, subdivisionFullname: e5.subdivisionFullname });
831
+ return e5 === `NaN` ? NaN : e5 === `Infinity` ? 1 / 0 : e5 === `-Infinity` ? -1 / 0 : e5;
835
832
  }
836
- var un;
833
+ function un(e5) {
834
+ return e5 && ft({ formatted: e5.formattedAddress, location: e5.geocode, addressLine1: e5.addressLine, addressLine2: e5.addressLine2, streetAddress: e5.streetAddress && { name: e5.streetAddress.name, number: e5.streetAddress.number, apt: e5.streetAddress.apt, formattedAddressLine: e5.streetAddress.formattedAddressLine }, hint: e5.hint, city: e5.city, subdivision: e5.subdivision, country: e5.country, postalCode: e5.postalCode, countryFullname: e5.countryFullname, subdivisionFullname: e5.subdivisionFullname });
835
+ }
836
+ var dn;
837
837
  (function(e5) {
838
838
  e5.QUERY_PARAM = `QUERY_PARAM`, e5.SUBDOMAIN = `SUBDOMAIN`, e5.SUBDIRECTORY = `SUBDIRECTORY`;
839
- })(un ||= {});
840
- var dn = { cs: `\u010Ce\u0161tina`, da: `Dansk`, de: `Deutsch`, en: `English`, es: `Espa\xF1ol`, fr: `Fran\xE7ais`, hi: `\u0939\u093F\u0928\u094D\u0926\u0940`, id: `Bahasa Indonesia`, it: `Italiano`, ja: `\u65E5\u672C\u8A9E`, ko: `\uD55C\uAD6D\uC5B4`, nl: `Nederlands`, no: `Norsk`, pl: `Polski`, pt: `Portugu\xEAs`, ru: `\u0420\u0443\u0441\u0441\u043A\u0438\u0439`, sv: `Svenska`, th: `\u0E44\u0E17\u0E22`, tr: `T\xFCrk\xE7e`, uk: `\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430`, vi: `Ti\u1EBFng Vi\u1EC7t`, zh: `\u7E41\u9AD4\u4E2D\u6587`, sq: `Shqip`, am: `\u12A0\u121B\u122D\u129B`, ar: `\u0627\u0644\u0639\u0631\u0628\u064A\u0629`, hy: `\u0540\u0561\u0575\u0565\u0580\u0565\u0576`, az: `Az\u0259rbaycan dili`, eu: `Euskara`, be: `\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F`, bn: `\u09AC\u09BE\u0982\u09B2\u09BE`, bs: `Bosanski`, bg: `\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438`, ca: `Catal\xE0`, ny: `ChiChe\u0175a`, co: `Corsu`, hr: `Hrvatski`, et: `Eesti`, fj: `Vosa Vakaviti`, fi: `Suomi`, ga: `Gaeilge`, gl: `Galego`, ka: `\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8`, el: `\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC`, gu: `\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0`, ht: `Krey\xF2l Ayisyen`, ha: `Hausa`, he: `\u05E2\u05D1\u05E8\u05D9\u05EA`, hu: `Magyar`, is: `\xCDslenska`, ig: `Igbo`, kn: `\u0C95\u0CA8\u0CCD\u0CA8\u0CA1`, kk: `\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456`, km: `\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A`, ku: `Kurd\xEE`, ky: `\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430`, lb: `L\xEBtzebuergesch`, lo: `\u0EA5\u0EB2\u0EA7`, la: `Latina`, lv: `Latvie\u0161u`, lt: `Lietuvi\u0173`, mk: `\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438`, mg: `Malagasy`, ms: `Bahasa Melayu`, ml: `\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02`, mt: `Malti`, mn: `\u041C\u043E\u043D\u0433\u043E\u043B`, ne: `\u0928\u0947\u092A\u093E\u0932\u0940`, ps: `\u067E\u069A\u062A\u0648`, fa: `\u0641\u0627\u0631\u0633\u06CC`, ro: `Rom\xE2n\u0103`, sm: `Gagana Samoa`, sr: `\u0421\u0440\u043F\u0441\u043A\u0438`, sn: `Shona`, sd: `\u0633\u0646\u068C\u064A`, si: `\u0DC3\u0DD2\u0D82\u0DC4\u0DBD`, sk: `Sloven\u010Dina`, sl: `Sloven\u0161\u010Dina`, so: `Soomaaliga`, su: `Basa Sunda`, sw: `Kiswahili`, tl: `Filipino`, tg: `\u0422\u043E\u04B7\u0438\u043A\u04E3`, ta: `\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD`, te: `\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41`, tk: `T\xFCrkmen`, ur: `\u0627\u0631\u062F\u0648`, uz: `O'zbek`, cy: `Cymraeg`, xh: `isiXhosa`, yi: `\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9`, yo: `Yor\xF9b\xE1`, zu: `isiZulu`, kl: `Kalaallisut`, fo: `F\xF8royskt`, ln: `Ling\xE1la`, mi: `M\u0101ori`, mr: `\u092E\u0930\u093E\u0920\u0940`, my: `\u1019\u103C\u1014\u103A\u1019\u102C`, se: `S\xE1megiella`, ug: `\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5`, qu: `Runa Simi`, aa: `Afar`, ab: `\u0410\u04A7\u0441\u0443\u0430`, ae: `Avestan`, ak: `Akan`, an: `Aragon\xE9s`, as: `\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE`, av: `\u0410\u0432\u0430\u0440`, ay: `Aymar aru`, ba: `\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430`, bh: `\u092D\u094B\u091C\u092A\u0941\u0930\u0940`, bi: `Bislama`, bm: `Bamanankan`, bo: `\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B`, br: `Brezhoneg`, ce: `\u041D\u043E\u0445\u0447\u0438\u0439\u043D`, ch: `Chamoru`, cr: `\u14C0\u1426\u1403\u152D\u140D\u140F\u1423`, cu: `\u0426\u0440\u044C\u043A\u044A\u0432\u044C\u043D\u043E\u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A`, cv: `\u0427\u04D1\u0432\u0430\u0448\u043B\u0430`, dv: `\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0784\u07A6\u0790\u07B0`, dz: `\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41`, ee: `E\u028Begbe`, eo: `Esperanto`, ff: `Fulah`, fy: `Frysk`, gd: `G\xE0idhlig`, gn: `Ava\xF1e'\u1EBD`, gv: `Gaelg`, ho: `Hiri Motu`, hz: `Otjiherero`, ia: `Interlingua`, ie: `Interlingue`, ii: `\uA188\uA320\uA259`, ik: `I\xF1upiaq`, io: `Ido`, iu: `\u1403\u14C4\u1483\u144E\u1450\u1466`, jv: `Basa Jawa`, ki: `Gikuyu`, kr: `Kanuri`, ks: `\u06A9\u0672\u0634\u064F\u0631`, kw: `Kernewek`, lg: `Luganda`, li: `Limburgs`, lu: `Tshiluba`, mh: `Kajin M\u0327aje\u013C`, na: `Dorerin Naoero`, nb: `Norsk Bokm\xE5l`, nd: `isiNdebele`, ng: `Oshiwambo`, nn: `Norsk Nynorsk`, nr: `isiNdebele (South)`, nv: `Din\xE9 Bizaad`, oc: `Occitan`, oj: `Anishinaabemowin`, om: `Afaan Oromoo`, or: `\u0B13\u0B21\u0B3C\u0B3F\u0B06`, os: `\u0418\u0440\u043E\u043D`, pa: `\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40`, pi: `\u{11005}\u{1102F}\u{11022}`, rm: `Rumantsch`, rn: `Ikirundi`, rw: `Kinyarwanda`, sa: `\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D`, sc: `Sardu`, sg: `S\xE4ng\xF6`, ss: `SiSwati`, st: `Sesotho`, ti: `\u1275\u130D\u122D\u129B`, tn: `Setswana`, to: `Faka Tonga`, ts: `Xitsonga`, tt: `\u0422\u0430\u0442\u0430\u0440\u0447\u0430`, tw: `Twi`, ty: `Reo Tahiti`, ve: `Tshiven\u1E13a`, vo: `Volap\xFCk`, wa: `Walon`, wo: `Wolof`, za: `Sa\u026F cue\u014B\u0185` };
841
- var fn = (e5, t2) => {
839
+ })(dn ||= {});
840
+ var fn = { cs: `\u010Ce\u0161tina`, da: `Dansk`, de: `Deutsch`, en: `English`, es: `Espa\xF1ol`, fr: `Fran\xE7ais`, hi: `\u0939\u093F\u0928\u094D\u0926\u0940`, id: `Bahasa Indonesia`, it: `Italiano`, ja: `\u65E5\u672C\u8A9E`, ko: `\uD55C\uAD6D\uC5B4`, nl: `Nederlands`, no: `Norsk`, pl: `Polski`, pt: `Portugu\xEAs`, ru: `\u0420\u0443\u0441\u0441\u043A\u0438\u0439`, sv: `Svenska`, th: `\u0E44\u0E17\u0E22`, tr: `T\xFCrk\xE7e`, uk: `\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430`, vi: `Ti\u1EBFng Vi\u1EC7t`, zh: `\u7E41\u9AD4\u4E2D\u6587`, sq: `Shqip`, am: `\u12A0\u121B\u122D\u129B`, ar: `\u0627\u0644\u0639\u0631\u0628\u064A\u0629`, hy: `\u0540\u0561\u0575\u0565\u0580\u0565\u0576`, az: `Az\u0259rbaycan dili`, eu: `Euskara`, be: `\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0430\u044F`, bn: `\u09AC\u09BE\u0982\u09B2\u09BE`, bs: `Bosanski`, bg: `\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438`, ca: `Catal\xE0`, ny: `ChiChe\u0175a`, co: `Corsu`, hr: `Hrvatski`, et: `Eesti`, fj: `Vosa Vakaviti`, fi: `Suomi`, ga: `Gaeilge`, gl: `Galego`, ka: `\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8`, el: `\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC`, gu: `\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0`, ht: `Krey\xF2l Ayisyen`, ha: `Hausa`, he: `\u05E2\u05D1\u05E8\u05D9\u05EA`, hu: `Magyar`, is: `\xCDslenska`, ig: `Igbo`, kn: `\u0C95\u0CA8\u0CCD\u0CA8\u0CA1`, kk: `\u049A\u0430\u0437\u0430\u049B \u0442\u0456\u043B\u0456`, km: `\u1797\u17B6\u179F\u17B6\u1781\u17D2\u1798\u17C2\u179A`, ku: `Kurd\xEE`, ky: `\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430`, lb: `L\xEBtzebuergesch`, lo: `\u0EA5\u0EB2\u0EA7`, la: `Latina`, lv: `Latvie\u0161u`, lt: `Lietuvi\u0173`, mk: `\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438`, mg: `Malagasy`, ms: `Bahasa Melayu`, ml: `\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02`, mt: `Malti`, mn: `\u041C\u043E\u043D\u0433\u043E\u043B`, ne: `\u0928\u0947\u092A\u093E\u0932\u0940`, ps: `\u067E\u069A\u062A\u0648`, fa: `\u0641\u0627\u0631\u0633\u06CC`, ro: `Rom\xE2n\u0103`, sm: `Gagana Samoa`, sr: `\u0421\u0440\u043F\u0441\u043A\u0438`, sn: `Shona`, sd: `\u0633\u0646\u068C\u064A`, si: `\u0DC3\u0DD2\u0D82\u0DC4\u0DBD`, sk: `Sloven\u010Dina`, sl: `Sloven\u0161\u010Dina`, so: `Soomaaliga`, su: `Basa Sunda`, sw: `Kiswahili`, tl: `Filipino`, tg: `\u0422\u043E\u04B7\u0438\u043A\u04E3`, ta: `\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD`, te: `\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41`, tk: `T\xFCrkmen`, ur: `\u0627\u0631\u062F\u0648`, uz: `O'zbek`, cy: `Cymraeg`, xh: `isiXhosa`, yi: `\u05D9\u05D9\u05B4\u05D3\u05D9\u05E9`, yo: `Yor\xF9b\xE1`, zu: `isiZulu`, kl: `Kalaallisut`, fo: `F\xF8royskt`, ln: `Ling\xE1la`, mi: `M\u0101ori`, mr: `\u092E\u0930\u093E\u0920\u0940`, my: `\u1019\u103C\u1014\u103A\u1019\u102C`, se: `S\xE1megiella`, ug: `\u0626\u06C7\u064A\u063A\u06C7\u0631\u0686\u06D5`, qu: `Runa Simi`, aa: `Afar`, ab: `\u0410\u04A7\u0441\u0443\u0430`, ae: `Avestan`, ak: `Akan`, an: `Aragon\xE9s`, as: `\u0985\u09B8\u09AE\u09C0\u09AF\u09BC\u09BE`, av: `\u0410\u0432\u0430\u0440`, ay: `Aymar aru`, ba: `\u0411\u0430\u0448\u04A1\u043E\u0440\u0442\u0441\u0430`, bh: `\u092D\u094B\u091C\u092A\u0941\u0930\u0940`, bi: `Bislama`, bm: `Bamanankan`, bo: `\u0F56\u0F7C\u0F51\u0F0B\u0F66\u0F90\u0F51\u0F0B`, br: `Brezhoneg`, ce: `\u041D\u043E\u0445\u0447\u0438\u0439\u043D`, ch: `Chamoru`, cr: `\u14C0\u1426\u1403\u152D\u140D\u140F\u1423`, cu: `\u0426\u0440\u044C\u043A\u044A\u0432\u044C\u043D\u043E\u0441\u043B\u043E\u0432\u0463\u043D\u044C\u0441\u043A\u044A`, cv: `\u0427\u04D1\u0432\u0430\u0448\u043B\u0430`, dv: `\u078B\u07A8\u0788\u07AC\u0780\u07A8\u0784\u07A6\u0790\u07B0`, dz: `\u0F62\u0FAB\u0F7C\u0F44\u0F0B\u0F41`, ee: `E\u028Begbe`, eo: `Esperanto`, ff: `Fulah`, fy: `Frysk`, gd: `G\xE0idhlig`, gn: `Ava\xF1e'\u1EBD`, gv: `Gaelg`, ho: `Hiri Motu`, hz: `Otjiherero`, ia: `Interlingua`, ie: `Interlingue`, ii: `\uA188\uA320\uA259`, ik: `I\xF1upiaq`, io: `Ido`, iu: `\u1403\u14C4\u1483\u144E\u1450\u1466`, jv: `Basa Jawa`, ki: `Gikuyu`, kr: `Kanuri`, ks: `\u06A9\u0672\u0634\u064F\u0631`, kw: `Kernewek`, lg: `Luganda`, li: `Limburgs`, lu: `Tshiluba`, mh: `Kajin M\u0327aje\u013C`, na: `Dorerin Naoero`, nb: `Norsk Bokm\xE5l`, nd: `isiNdebele`, ng: `Oshiwambo`, nn: `Norsk Nynorsk`, nr: `isiNdebele (South)`, nv: `Din\xE9 Bizaad`, oc: `Occitan`, oj: `Anishinaabemowin`, om: `Afaan Oromoo`, or: `\u0B13\u0B21\u0B3C\u0B3F\u0B06`, os: `\u0418\u0440\u043E\u043D`, pa: `\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40`, pi: `\u{11005}\u{1102F}\u{11022}`, rm: `Rumantsch`, rn: `Ikirundi`, rw: `Kinyarwanda`, sa: `\u0938\u0902\u0938\u094D\u0915\u0943\u0924\u092E\u094D`, sc: `Sardu`, sg: `S\xE4ng\xF6`, ss: `SiSwati`, st: `Sesotho`, ti: `\u1275\u130D\u122D\u129B`, tn: `Setswana`, to: `Faka Tonga`, ts: `Xitsonga`, tt: `\u0422\u0430\u0442\u0430\u0440\u0447\u0430`, tw: `Twi`, ty: `Reo Tahiti`, ve: `Tshiven\u1E13a`, vo: `Volap\xFCk`, wa: `Walon`, wo: `Wolof`, za: `Sa\u026F cue\u014B\u0185` };
841
+ var pn = (e5, t2) => {
842
842
  e5.searchParams.set(`lang`, t2);
843
843
  };
844
- var pn = (e5, t2) => {
844
+ var mn = (e5, t2) => {
845
845
  let n2 = e5.hostname.split(`.`);
846
846
  n2[0] === `www` && (n2 = n2.slice(1)), n2 = [t2, ...n2], e5.hostname = n2.join(`.`);
847
847
  };
848
- var mn = (e5, t2) => {
848
+ var hn = (e5, t2) => {
849
849
  e5.pathname = `/${t2}${e5.pathname}`;
850
850
  };
851
- var hn = (e5, t2) => {
851
+ var gn = (e5, t2) => {
852
852
  if (!t2.languageCode || !t2?.resolutionMethod) return e5;
853
853
  let n2 = new URL(e5);
854
- return (t2?.resolutionMethod === `QUERY_PARAM` ? fn : t2?.resolutionMethod === `SUBDOMAIN` ? pn : mn)(n2, t2.languageCode), n2.href;
854
+ return (t2?.resolutionMethod === `QUERY_PARAM` ? pn : t2?.resolutionMethod === `SUBDOMAIN` ? mn : hn)(n2, t2.languageCode), n2.href;
855
855
  };
856
- var gn = (e5, t2) => {
856
+ var _n = (e5, t2) => {
857
857
  if (!e5?.length) return e5;
858
858
  let n2;
859
859
  try {
@@ -874,97 +874,97 @@ var gn = (e5, t2) => {
874
874
  }
875
875
  return n2.href;
876
876
  };
877
- function _n() {
878
- let e5 = vn();
879
- return e5 ? yn(e5) : [];
880
- }
881
877
  function vn() {
878
+ let e5 = yn();
879
+ return e5 ? bn(e5) : [];
880
+ }
881
+ function yn() {
882
882
  let e5 = typeof globals < `u` ? globals?.$ns?.[`wix-window`]?.multilingual : void 0, t2 = typeof window < `u` ? window?.essentials?.multilingual : void 0;
883
883
  return e5 ?? t2 ?? globalThis?.__wix_site_metadata__?.multilingual;
884
884
  }
885
- function yn(e5) {
885
+ function bn(e5) {
886
886
  try {
887
887
  if (e5?.supportedLanguages?.length) {
888
- let t2 = e5.supportedLanguages, n2 = t2.map((e6) => e6.languageCode).filter(Boolean), r2 = e5.cleanUrl ?? Cn(n2);
889
- return t2.map((e6) => ({ id: e6.languageCode, displayName: bn(e6), regionalFormat: [e6.locale?.languageCode, e6.locale?.country].filter(Boolean).join(`-`), url: xn(e6, r2), primary: e6.isPrimary, resolutionMethod: e6.resolutionMethod }));
888
+ let t2 = e5.supportedLanguages, n2 = t2.map((e6) => e6.languageCode).filter(Boolean), r2 = e5.cleanUrl ?? wn(n2);
889
+ return t2.map((e6) => ({ id: e6.languageCode, displayName: xn(e6), regionalFormat: [e6.locale?.languageCode, e6.locale?.country].filter(Boolean).join(`-`), url: Sn(e6, r2), primary: e6.isPrimary, resolutionMethod: e6.resolutionMethod }));
890
890
  }
891
891
  if (e5?.siteLanguages?.length) {
892
- let t2 = e5.siteLanguages, n2 = Cn(t2.map((e6) => e6.languageCode).filter(Boolean));
893
- return t2.map((e6) => ({ id: e6.languageCode, displayName: bn(e6), regionalFormat: e6.locale, url: xn(e6, n2), primary: e6.isPrimaryLanguage, resolutionMethod: e6.resolutionMethod ? Sn(e6.resolutionMethod) : void 0 }));
892
+ let t2 = e5.siteLanguages, n2 = wn(t2.map((e6) => e6.languageCode).filter(Boolean));
893
+ return t2.map((e6) => ({ id: e6.languageCode, displayName: xn(e6), regionalFormat: e6.locale, url: Sn(e6, n2), primary: e6.isPrimaryLanguage, resolutionMethod: e6.resolutionMethod ? Cn(e6.resolutionMethod) : void 0 }));
894
894
  }
895
895
  } catch (e6) {
896
896
  return console.warn(`[Multilingual Manager] listSupportedLanguages failed`, e6), [];
897
897
  }
898
898
  return console.warn(`[Multilingual Manager] listSupportedLanguages is not available`), [];
899
899
  }
900
- function bn(e5) {
901
- let t2 = dn[e5.languageCode];
900
+ function xn(e5) {
901
+ let t2 = fn[e5.languageCode];
902
902
  if (t2) return t2;
903
903
  let n2 = e5.name ?? e5.countryCode;
904
904
  if (n2) return n2;
905
905
  }
906
- function xn(e5, t2) {
906
+ function Sn(e5, t2) {
907
907
  if (e5.url || !t2 || !e5.resolutionMethod) return e5.url;
908
908
  if (e5.languageCode) try {
909
- return hn(t2, { languageCode: e5.languageCode, countryCode: e5.countryCode, resolutionMethod: Sn(e5.resolutionMethod), locale: { languageCode: e5.languageCode, country: e5.countryCode } });
909
+ return gn(t2, { languageCode: e5.languageCode, countryCode: e5.countryCode, resolutionMethod: Cn(e5.resolutionMethod), locale: { languageCode: e5.languageCode, country: e5.countryCode } });
910
910
  } catch (e6) {
911
911
  console.warn(`[Multilingual Manager] buildUrlForLanguage failed`, e6);
912
912
  return;
913
913
  }
914
914
  }
915
- function Sn(e5) {
915
+ function Cn(e5) {
916
916
  switch (e5) {
917
917
  case `QUERY_PARAM`:
918
918
  case `QueryParam`:
919
- return un.QUERY_PARAM;
919
+ return dn.QUERY_PARAM;
920
920
  case `SUBDOMAIN`:
921
921
  case `Subdomain`:
922
- return un.SUBDOMAIN;
922
+ return dn.SUBDOMAIN;
923
923
  case `SUBDIRECTORY`:
924
924
  case `Subdirectory`:
925
- return un.SUBDIRECTORY;
925
+ return dn.SUBDIRECTORY;
926
926
  default:
927
927
  return;
928
928
  }
929
929
  }
930
- function Cn(e5) {
930
+ function wn(e5) {
931
931
  let t2 = typeof window < `u` && window.location?.href ? window.location.href : ``;
932
932
  try {
933
- return gn(t2, e5);
933
+ return _n(t2, e5);
934
934
  } catch (e6) {
935
935
  return console.warn(`[Multilingual Manager] cleanCurrentUrl failed`, e6), t2;
936
936
  }
937
937
  }
938
- var wn = `x-wix-currency`;
939
- var Tn = () => {
940
- let e5 = Mn(`currency`);
941
- if (e5) return { [wn]: e5 };
938
+ var Tn = `x-wix-currency`;
939
+ var En = () => {
940
+ let e5 = Nn(`currency`);
941
+ if (e5) return { [Tn]: e5 };
942
942
  };
943
- var En = `x-wix-linguist`;
944
- var Dn = `00000000-0000-0000-0000-000000000000`;
945
- var On = `false`;
946
- var kn = () => {
947
- let e5 = Mn(`language`), t2 = Mn(`locale`);
948
- if (e5) return { [En]: [e5, t2 || e5, On, Dn].join(`|`) };
943
+ var Dn = `x-wix-linguist`;
944
+ var On = `00000000-0000-0000-0000-000000000000`;
945
+ var kn = `false`;
946
+ var An = () => {
947
+ let e5 = Nn(`language`), t2 = Nn(`locale`);
948
+ if (e5) return { [Dn]: [e5, t2 || e5, kn, On].join(`|`) };
949
949
  };
950
- function An() {
950
+ function jn() {
951
951
  let e5 = null, t2 = null;
952
952
  return { promise: new Promise((n2, r2) => {
953
953
  e5 = n2, t2 = r2;
954
954
  }), resolve: e5, reject: t2 };
955
955
  }
956
- var jn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
957
- var Mn = (e5) => jn()?.[e5];
958
- var Nn = ({ createHost: e5 }) => ({ __type: `host`, create: (e6) => ({}), host: (t2) => {
959
- let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e5(t2), o2 = Fn();
960
- return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Mn(`language`), locale: Mn(`locale`), get passThroughHeaders() {
961
- let e6 = { ...kn(), ...Tn() };
956
+ var Mn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
957
+ var Nn = (e5) => Mn()?.[e5];
958
+ var Pn = ({ createHost: e5 }) => ({ __type: `host`, create: (e6) => ({}), host: (t2) => {
959
+ let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e5(t2), o2 = In();
960
+ return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Nn(`language`), locale: Nn(`locale`), get passThroughHeaders() {
961
+ let e6 = { ...An(), ...En() };
962
962
  return Object.keys(e6).length > 0 ? e6 : void 0;
963
963
  } } };
964
964
  }, auth: (e6) => {
965
965
  let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
966
- !e6 && Pn() && (e6 = t2?.getAccessTokenFunction?.());
967
- let n2 = false, { resolve: r2, promise: i2 } = An();
966
+ !e6 && Fn() && (e6 = t2?.getAccessTokenFunction?.());
967
+ let n2 = false, { resolve: r2, promise: i2 } = jn();
968
968
  return { getAuthHeaders: async () => {
969
969
  if (!e6 && n2 && (e6 = await i2), !e6) throw Error(`Failed to resolve auth token`);
970
970
  return { headers: { Authorization: await e6() } };
@@ -972,37 +972,37 @@ var Nn = ({ createHost: e5 }) => ({ __type: `host`, create: (e6) => ({}), host:
972
972
  r2(e7);
973
973
  }) };
974
974
  } });
975
- function Pn() {
975
+ function Fn() {
976
976
  return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
977
977
  }
978
- function Fn() {
978
+ function In() {
979
979
  let e5 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
980
980
  if (!e5) return;
981
981
  let t2 = new URL(e5);
982
982
  return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
983
983
  }
984
- var In = ({ clientSdk: e5, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
984
+ var Ln = ({ clientSdk: e5, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
985
985
  if (!e5) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
986
986
  return e5.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
987
987
  }, getAccessToken: () => {
988
988
  throw Error(`Not implemented`);
989
989
  }, observeState: () => ({ disconnect: () => {
990
990
  } }) });
991
- var Ln = Nn({ createHost: function(e5) {
991
+ var Rn = Pn({ createHost: function(e5) {
992
992
  let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e5?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e5 || {};
993
993
  if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
994
- return { channel: In({ clientSdk: t2, applicationId: n2 }), close: () => {
994
+ return { channel: Ln({ clientSdk: t2, applicationId: n2 }), close: () => {
995
995
  } };
996
996
  } });
997
- var Rn = (e5, t2) => {
998
- let n2 = Ln.host({ applicationId: e5, componentId: t2 }), r2 = Ln.auth();
999
- return Be({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
997
+ var zn = (e5, t2) => {
998
+ let n2 = Rn.host({ applicationId: e5, componentId: t2 }), r2 = Rn.auth();
999
+ return Ve({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
1000
1000
  };
1001
- var zn = (e5) => Rn(`13d21c63-b5ec-5912-8397-c3a5ddb27a97`, e5);
1002
- function Bn() {
1001
+ var Bn = (e5) => zn(`13d21c63-b5ec-5912-8397-c3a5ddb27a97`, e5);
1002
+ function Vn() {
1003
1003
  let e5 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
1004
1004
  if (e5) return { initWixModules(t3, n3) {
1005
- return Vn(() => e5(t3, n3));
1005
+ return Hn(() => e5(t3, n3));
1006
1006
  }, fetchWithAuth() {
1007
1007
  throw Error(`fetchWithAuth is not available in this context`);
1008
1008
  }, graphql() {
@@ -1012,10 +1012,10 @@ function Bn() {
1012
1012
  if (t2 || n2) return { initWixModules(e6, r2) {
1013
1013
  if (r2) {
1014
1014
  if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
1015
- return Vn(() => n2.use(e6));
1015
+ return Hn(() => n2.use(e6));
1016
1016
  }
1017
1017
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
1018
- return Vn(() => t2.use(e6));
1018
+ return Hn(() => t2.use(e6));
1019
1019
  }, fetchWithAuth: (e6, n3) => {
1020
1020
  if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
1021
1021
  return t2.fetchWithAuth(e6, n3);
@@ -1027,7 +1027,7 @@ function Bn() {
1027
1027
  return t2.graphql(e6, n3, r2);
1028
1028
  } };
1029
1029
  }
1030
- function Vn(e5) {
1030
+ function Hn(e5) {
1031
1031
  let t2 = globalThis.__wix_context__, n2 = { client: g.client, elevatedClient: g.elevatedClient }, r2;
1032
1032
  globalThis.__wix_context__ = void 0, g.client = void 0, g.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
1033
1033
  try {
@@ -1036,71 +1036,71 @@ function Vn(e5) {
1036
1036
  globalThis.__wix_context__ = t2, g.client = n2.client, g.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
1037
1037
  }
1038
1038
  }
1039
- function Hn(e5, t2) {
1039
+ function Un(e5, t2) {
1040
1040
  return { ...e5, ...Object.fromEntries(t2.map((t3) => [t3, (...n2) => {
1041
- let r2 = Bn();
1041
+ let r2 = Vn();
1042
1042
  if (!r2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
1043
1043
  return r2.initWixModules(e5)[t3].apply(void 0, n2);
1044
1044
  }])) };
1045
1045
  }
1046
- function Un(e5) {
1047
- return Hn({ __type: `host`, create: (t2) => Object.entries(e5).reduce((e6, [n2, r2]) => ({ ...e6, [n2]: r2(t2) }), {}) }, Object.keys(e5));
1046
+ function Wn(e5) {
1047
+ return Un({ __type: `host`, create: (t2) => Object.entries(e5).reduce((e6, [n2, r2]) => ({ ...e6, [n2]: r2(t2) }), {}) }, Object.keys(e5));
1048
1048
  }
1049
- var L = (e5) => typeof e5 == `string`;
1050
- var Wn = () => {
1049
+ var I = (e5) => typeof e5 == `string`;
1050
+ var Gn = () => {
1051
1051
  let e5, t2, n2 = new Promise((n3, r2) => {
1052
1052
  e5 = n3, t2 = r2;
1053
1053
  });
1054
1054
  return n2.resolve = e5, n2.reject = t2, n2;
1055
1055
  };
1056
- var Gn = (e5) => e5 == null ? `` : `` + e5;
1057
- var Kn = (e5, t2, n2) => {
1056
+ var Kn = (e5) => e5 == null ? `` : `` + e5;
1057
+ var qn = (e5, t2, n2) => {
1058
1058
  e5.forEach((e6) => {
1059
1059
  t2[e6] && (n2[e6] = t2[e6]);
1060
1060
  });
1061
1061
  };
1062
- var qn = /###/g;
1063
- var Jn = (e5) => e5 && e5.indexOf(`###`) > -1 ? e5.replace(qn, `.`) : e5;
1064
- var Yn = (e5) => !e5 || L(e5);
1065
- var Xn = (e5, t2, n2) => {
1066
- let r2 = L(t2) ? t2.split(`.`) : t2, i2 = 0;
1062
+ var Jn = /###/g;
1063
+ var Yn = (e5) => e5 && e5.indexOf(`###`) > -1 ? e5.replace(Jn, `.`) : e5;
1064
+ var Xn = (e5) => !e5 || I(e5);
1065
+ var Zn = (e5, t2, n2) => {
1066
+ let r2 = I(t2) ? t2.split(`.`) : t2, i2 = 0;
1067
1067
  for (; i2 < r2.length - 1; ) {
1068
- if (Yn(e5)) return {};
1069
- let t3 = Jn(r2[i2]);
1068
+ if (Xn(e5)) return {};
1069
+ let t3 = Yn(r2[i2]);
1070
1070
  !e5[t3] && n2 && (e5[t3] = new n2()), e5 = Object.prototype.hasOwnProperty.call(e5, t3) ? e5[t3] : {}, ++i2;
1071
1071
  }
1072
- return Yn(e5) ? {} : { obj: e5, k: Jn(r2[i2]) };
1072
+ return Xn(e5) ? {} : { obj: e5, k: Yn(r2[i2]) };
1073
1073
  };
1074
- var Zn = (e5, t2, n2) => {
1075
- let { obj: r2, k: i2 } = Xn(e5, t2, Object);
1074
+ var Qn = (e5, t2, n2) => {
1075
+ let { obj: r2, k: i2 } = Zn(e5, t2, Object);
1076
1076
  if (r2 !== void 0 || t2.length === 1) {
1077
1077
  r2[i2] = n2;
1078
1078
  return;
1079
1079
  }
1080
- let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = Xn(e5, o2, Object);
1081
- for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = Xn(e5, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1080
+ let a2 = t2[t2.length - 1], o2 = t2.slice(0, t2.length - 1), s2 = Zn(e5, o2, Object);
1081
+ for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = Zn(e5, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1082
1082
  s2.obj[`${s2.k}.${a2}`] = n2;
1083
1083
  };
1084
- var Qn = (e5, t2, n2, r2) => {
1085
- let { obj: i2, k: a2 } = Xn(e5, t2, Object);
1084
+ var $n = (e5, t2, n2, r2) => {
1085
+ let { obj: i2, k: a2 } = Zn(e5, t2, Object);
1086
1086
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1087
1087
  };
1088
- var $n = (e5, t2) => {
1089
- let { obj: n2, k: r2 } = Xn(e5, t2);
1088
+ var er = (e5, t2) => {
1089
+ let { obj: n2, k: r2 } = Zn(e5, t2);
1090
1090
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1091
1091
  };
1092
- var er = (e5, t2, n2) => {
1093
- let r2 = $n(e5, n2);
1094
- return r2 === void 0 ? $n(t2, n2) : r2;
1095
- };
1096
1092
  var tr = (e5, t2, n2) => {
1097
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (r2 in e5 ? L(e5[r2]) || e5[r2] instanceof String || L(t2[r2]) || t2[r2] instanceof String ? n2 && (e5[r2] = t2[r2]) : tr(e5[r2], t2[r2], n2) : e5[r2] = t2[r2]);
1093
+ let r2 = er(e5, n2);
1094
+ return r2 === void 0 ? er(t2, n2) : r2;
1095
+ };
1096
+ var nr = (e5, t2, n2) => {
1097
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (r2 in e5 ? I(e5[r2]) || e5[r2] instanceof String || I(t2[r2]) || t2[r2] instanceof String ? n2 && (e5[r2] = t2[r2]) : nr(e5[r2], t2[r2], n2) : e5[r2] = t2[r2]);
1098
1098
  return e5;
1099
1099
  };
1100
- var R = (e5) => e5.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1101
- var nr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1102
- var rr = (e5) => L(e5) ? e5.replace(/[&<>"'\/]/g, (e6) => nr[e6]) : e5;
1103
- var ir = class {
1100
+ var L = (e5) => e5.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1101
+ var rr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1102
+ var ir = (e5) => I(e5) ? e5.replace(/[&<>"'\/]/g, (e6) => rr[e6]) : e5;
1103
+ var ar = class {
1104
1104
  constructor(e5) {
1105
1105
  this.capacity = e5, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1106
1106
  }
@@ -1111,20 +1111,20 @@ var ir = class {
1111
1111
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e5, n2), this.regExpQueue.push(e5), n2;
1112
1112
  }
1113
1113
  };
1114
- var ar = [` `, `,`, `?`, `!`, `;`];
1115
- var or = new ir(20);
1116
- var sr = (e5, t2, n2) => {
1114
+ var or = [` `, `,`, `?`, `!`, `;`];
1115
+ var sr = new ar(20);
1116
+ var cr = (e5, t2, n2) => {
1117
1117
  t2 ||= ``, n2 ||= ``;
1118
- let r2 = ar.filter((e6) => t2.indexOf(e6) < 0 && n2.indexOf(e6) < 0);
1118
+ let r2 = or.filter((e6) => t2.indexOf(e6) < 0 && n2.indexOf(e6) < 0);
1119
1119
  if (r2.length === 0) return true;
1120
- let i2 = or.getRegExp(`(${r2.map((e6) => e6 === `?` ? `\\?` : e6).join(`|`)})`), a2 = !i2.test(e5);
1120
+ let i2 = sr.getRegExp(`(${r2.map((e6) => e6 === `?` ? `\\?` : e6).join(`|`)})`), a2 = !i2.test(e5);
1121
1121
  if (!a2) {
1122
1122
  let t3 = e5.indexOf(n2);
1123
1123
  t3 > 0 && !i2.test(e5.substring(0, t3)) && (a2 = true);
1124
1124
  }
1125
1125
  return a2;
1126
1126
  };
1127
- var cr = (e5, t2, n2 = `.`) => {
1127
+ var lr = (e5, t2, n2 = `.`) => {
1128
1128
  if (!e5) return;
1129
1129
  if (e5[t2]) return Object.prototype.hasOwnProperty.call(e5, t2) ? e5[t2] : void 0;
1130
1130
  let r2 = t2.split(n2), i2 = e5;
@@ -1140,8 +1140,8 @@ var cr = (e5, t2, n2 = `.`) => {
1140
1140
  }
1141
1141
  return i2;
1142
1142
  };
1143
- var lr = (e5) => e5?.replace(/_/g, `-`);
1144
- var ur = { type: `logger`, log(e5) {
1143
+ var ur = (e5) => e5?.replace(/_/g, `-`);
1144
+ var dr = { type: `logger`, log(e5) {
1145
1145
  this.output(`log`, e5);
1146
1146
  }, warn(e5) {
1147
1147
  this.output(`warn`, e5);
@@ -1150,12 +1150,12 @@ var ur = { type: `logger`, log(e5) {
1150
1150
  }, output(e5, t2) {
1151
1151
  console?.[e5]?.apply?.(console, t2);
1152
1152
  } };
1153
- var z = new class e2 {
1153
+ var R = new class e2 {
1154
1154
  constructor(e5, t2 = {}) {
1155
1155
  this.init(e5, t2);
1156
1156
  }
1157
1157
  init(e5, t2 = {}) {
1158
- this.prefix = t2.prefix || `i18next:`, this.logger = e5 || ur, this.options = t2, this.debug = t2.debug;
1158
+ this.prefix = t2.prefix || `i18next:`, this.logger = e5 || dr, this.options = t2, this.debug = t2.debug;
1159
1159
  }
1160
1160
  log(...e5) {
1161
1161
  return this.forward(e5, `log`, ``, true);
@@ -1170,7 +1170,7 @@ var z = new class e2 {
1170
1170
  return this.forward(e5, `warn`, `WARNING DEPRECATED: `, true);
1171
1171
  }
1172
1172
  forward(e5, t2, n2, r2) {
1173
- return r2 && !this.debug ? null : (L(e5[0]) && (e5[0] = `${n2}${this.prefix} ${e5[0]}`), this.logger[t2](e5));
1173
+ return r2 && !this.debug ? null : (I(e5[0]) && (e5[0] = `${n2}${this.prefix} ${e5[0]}`), this.logger[t2](e5));
1174
1174
  }
1175
1175
  create(t2) {
1176
1176
  return new e2(this.logger, { prefix: `${this.prefix}:${t2}:`, ...this.options });
@@ -1179,7 +1179,7 @@ var z = new class e2 {
1179
1179
  return t2 ||= this.options, t2.prefix = t2.prefix || this.prefix, new e2(this.logger, t2);
1180
1180
  }
1181
1181
  }();
1182
- var dr = class {
1182
+ var fr = class {
1183
1183
  constructor() {
1184
1184
  this.observers = {};
1185
1185
  }
@@ -1207,7 +1207,7 @@ var dr = class {
1207
1207
  });
1208
1208
  }
1209
1209
  };
1210
- var fr = class extends dr {
1210
+ var pr = class extends fr {
1211
1211
  constructor(e5, t2 = { ns: [`translation`], defaultNS: `translation` }) {
1212
1212
  super(), this.data = e5 || {}, this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = true);
1213
1213
  }
@@ -1220,23 +1220,23 @@ var fr = class extends dr {
1220
1220
  }
1221
1221
  getResource(e5, t2, n2, r2 = {}) {
1222
1222
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1223
- e5.indexOf(`.`) > -1 ? o2 = e5.split(`.`) : (o2 = [e5, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : L(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1224
- let s2 = $n(this.data, o2);
1225
- return !s2 && !t2 && !n2 && e5.indexOf(`.`) > -1 && (e5 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !L(n2) ? s2 : cr(this.data?.[e5]?.[t2], n2, i2);
1223
+ e5.indexOf(`.`) > -1 ? o2 = e5.split(`.`) : (o2 = [e5, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : I(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1224
+ let s2 = er(this.data, o2);
1225
+ return !s2 && !t2 && !n2 && e5.indexOf(`.`) > -1 && (e5 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !I(n2) ? s2 : lr(this.data?.[e5]?.[t2], n2, i2);
1226
1226
  }
1227
1227
  addResource(e5, t2, n2, r2, i2 = { silent: false }) {
1228
1228
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e5, t2];
1229
- n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e5.indexOf(`.`) > -1 && (o2 = e5.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Zn(this.data, o2, r2), i2.silent || this.emit(`added`, e5, t2, n2, r2);
1229
+ n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e5.indexOf(`.`) > -1 && (o2 = e5.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Qn(this.data, o2, r2), i2.silent || this.emit(`added`, e5, t2, n2, r2);
1230
1230
  }
1231
1231
  addResources(e5, t2, n2, r2 = { silent: false }) {
1232
- for (let r3 in n2) (L(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e5, t2, r3, n2[r3], { silent: true });
1232
+ for (let r3 in n2) (I(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e5, t2, r3, n2[r3], { silent: true });
1233
1233
  r2.silent || this.emit(`added`, e5, t2, n2);
1234
1234
  }
1235
1235
  addResourceBundle(e5, t2, n2, r2, i2, a2 = { silent: false, skipCopy: false }) {
1236
1236
  let o2 = [e5, t2];
1237
1237
  e5.indexOf(`.`) > -1 && (o2 = e5.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
1238
- let s2 = $n(this.data, o2) || {};
1239
- a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? tr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Zn(this.data, o2, s2), a2.silent || this.emit(`added`, e5, t2, n2);
1238
+ let s2 = er(this.data, o2) || {};
1239
+ a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? nr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Qn(this.data, o2, s2), a2.silent || this.emit(`added`, e5, t2, n2);
1240
1240
  }
1241
1241
  removeResourceBundle(e5, t2) {
1242
1242
  this.hasResourceBundle(e5, t2) && delete this.data[e5][t2], this.removeNamespaces(t2), this.emit(`removed`, e5, t2);
@@ -1258,31 +1258,31 @@ var fr = class extends dr {
1258
1258
  return this.data;
1259
1259
  }
1260
1260
  };
1261
- var pr = { processors: {}, addPostProcessor(e5) {
1261
+ var mr = { processors: {}, addPostProcessor(e5) {
1262
1262
  this.processors[e5.name] = e5;
1263
1263
  }, handle(e5, t2, n2, r2, i2) {
1264
1264
  return e5.forEach((e6) => {
1265
1265
  t2 = this.processors[e6]?.process(t2, n2, r2, i2) ?? t2;
1266
1266
  }), t2;
1267
1267
  } };
1268
- var mr = Symbol(`i18next/PATH_KEY`);
1269
- function hr() {
1268
+ var hr = Symbol(`i18next/PATH_KEY`);
1269
+ function gr() {
1270
1270
  let e5 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
1271
- return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === mr ? e5 : (e5.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1271
+ return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === hr ? e5 : (e5.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1272
1272
  }
1273
- function B(e5, t2) {
1274
- let { [mr]: n2 } = e5(hr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`;
1273
+ function z(e5, t2) {
1274
+ let { [hr]: n2 } = e5(gr()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`;
1275
1275
  if (n2.length > 1 && i2) {
1276
1276
  let e6 = t2?.ns, a2 = Array.isArray(e6) ? e6 : null;
1277
1277
  if (a2 && a2.length > 1 && a2.slice(1).includes(n2[0])) return `${n2[0]}${i2}${n2.slice(1).join(r2)}`;
1278
1278
  }
1279
1279
  return n2.join(r2);
1280
1280
  }
1281
- var gr = {};
1282
- var _r = (e5) => !L(e5) && typeof e5 != `boolean` && typeof e5 != `number`;
1283
- var vr = class e3 extends dr {
1281
+ var _r = {};
1282
+ var vr = (e5) => !I(e5) && typeof e5 != `boolean` && typeof e5 != `number`;
1283
+ var yr = class e3 extends fr {
1284
1284
  constructor(e5, t2 = {}) {
1285
- super(), Kn([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e5, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = z.create(`translator`);
1285
+ super(), qn([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e5, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = R.create(`translator`);
1286
1286
  }
1287
1287
  changeLanguage(e5) {
1288
1288
  e5 && (this.language = e5);
@@ -1292,33 +1292,33 @@ var vr = class e3 extends dr {
1292
1292
  if (e5 == null) return false;
1293
1293
  let r2 = this.resolve(e5, n2);
1294
1294
  if (r2?.res === void 0) return false;
1295
- let i2 = _r(r2.res);
1295
+ let i2 = vr(r2.res);
1296
1296
  return !(n2.returnObjects === false && i2);
1297
1297
  }
1298
1298
  extractFromKey(e5, t2) {
1299
1299
  let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
1300
1300
  n2 === void 0 && (n2 = `:`);
1301
- let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e5.indexOf(n2) > -1, o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !sr(e5, n2, r2);
1301
+ let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e5.indexOf(n2) > -1, o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !cr(e5, n2, r2);
1302
1302
  if (a2 && !o2) {
1303
1303
  let t3 = e5.match(this.interpolator.nestingRegexp);
1304
- if (t3 && t3.length > 0) return { key: e5, namespaces: L(i2) ? [i2] : i2 };
1304
+ if (t3 && t3.length > 0) return { key: e5, namespaces: I(i2) ? [i2] : i2 };
1305
1305
  let a3 = e5.split(n2);
1306
1306
  (n2 !== r2 || n2 === r2 && this.options.ns.indexOf(a3[0]) > -1) && (i2 = a3.shift()), e5 = a3.join(r2);
1307
1307
  }
1308
- return { key: e5, namespaces: L(i2) ? [i2] : i2 };
1308
+ return { key: e5, namespaces: I(i2) ? [i2] : i2 };
1309
1309
  }
1310
1310
  translate(t2, n2, r2) {
1311
1311
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
1312
1312
  if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
1313
- typeof t2 == `function` && (t2 = B(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e5) => typeof e5 == `function` ? B(e5, { ...this.options, ...i2 }) : String(e5));
1313
+ typeof t2 == `function` && (t2 = z(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e5) => typeof e5 == `function` ? z(e5, { ...this.options, ...i2 }) : String(e5));
1314
1314
  let a2 = i2.returnDetails === void 0 ? this.options.returnDetails : i2.returnDetails, o2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, { key: s2, namespaces: c2 } = this.extractFromKey(t2[t2.length - 1], i2), l2 = c2[c2.length - 1], u2 = i2.nsSeparator === void 0 ? this.options.nsSeparator : i2.nsSeparator;
1315
1315
  u2 === void 0 && (u2 = `:`);
1316
1316
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1317
1317
  if (d2?.toLowerCase() === `cimode`) return f2 ? a2 ? { res: `${l2}${u2}${s2}`, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : `${l2}${u2}${s2}` : a2 ? { res: s2, usedKey: s2, exactUsedKey: s2, usedLng: d2, usedNS: l2, usedParams: this.getUsedParamsDetails(i2) } : s2;
1318
- let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !L(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, w2 = b2 && !i2.ordinal && i2.count === 0, T2 = w2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, E2 = m2;
1318
+ let p2 = this.resolve(t2, i2), m2 = p2?.res, h2 = p2?.usedKey || s2, g2 = p2?.exactUsedKey || s2, _2 = [`[object Number]`, `[object Function]`, `[object RegExp]`], v2 = i2.joinArrays === void 0 ? this.options.joinArrays : i2.joinArrays, y2 = !this.i18nFormat || this.i18nFormat.handleAsObject, b2 = i2.count !== void 0 && !I(i2.count), x2 = e3.hasDefaultValue(i2), S2 = b2 ? this.pluralResolver.getSuffix(d2, i2.count, i2) : ``, C2 = i2.ordinal && b2 ? this.pluralResolver.getSuffix(d2, i2.count, { ordinal: false }) : ``, w2 = b2 && !i2.ordinal && i2.count === 0, T2 = w2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, E2 = m2;
1319
1319
  y2 && !m2 && x2 && (E2 = T2);
1320
- let D2 = _r(E2), O2 = Object.prototype.toString.apply(E2);
1321
- if (y2 && E2 && D2 && _2.indexOf(O2) < 0 && !(L(v2) && Array.isArray(E2))) {
1320
+ let D2 = vr(E2), O2 = Object.prototype.toString.apply(E2);
1321
+ if (y2 && E2 && D2 && _2.indexOf(O2) < 0 && !(I(v2) && Array.isArray(E2))) {
1322
1322
  if (!i2.returnObjects && !this.options.returnObjects) {
1323
1323
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
1324
1324
  let e5 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(h2, E2, { ...i2, ns: c2 }) : `key '${s2} (${this.language})' returned an object instead of string.`;
@@ -1328,11 +1328,11 @@ var vr = class e3 extends dr {
1328
1328
  let e5 = Array.isArray(E2), t3 = e5 ? [] : {}, n3 = e5 ? g2 : h2;
1329
1329
  for (let e6 in E2) if (Object.prototype.hasOwnProperty.call(E2, e6)) {
1330
1330
  let r3 = `${n3}${o2}${e6}`;
1331
- t3[e6] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: _r(T2) ? T2[e6] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e6] === r3 && (t3[e6] = E2[e6]);
1331
+ t3[e6] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: vr(T2) ? T2[e6] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e6] === r3 && (t3[e6] = E2[e6]);
1332
1332
  }
1333
1333
  m2 = t3;
1334
1334
  }
1335
- } else if (y2 && L(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1335
+ } else if (y2 && I(v2) && Array.isArray(m2)) m2 = m2.join(v2), m2 &&= this.extendTranslation(m2, t2, i2, r2);
1336
1336
  else {
1337
1337
  let e5 = false, n3 = false;
1338
1338
  !this.isValidLookup(m2) && x2 && (e5 = true, m2 = T2), this.isValidLookup(m2) || (n3 = true, m2 = s2);
@@ -1364,32 +1364,32 @@ var vr = class e3 extends dr {
1364
1364
  if (this.i18nFormat?.parse) e5 = this.i18nFormat.parse(e5, { ...this.options.interpolation.defaultVariables, ...n2 }, n2.lng || this.language || r2.usedLng, r2.usedNS, r2.usedKey, { resolved: r2 });
1365
1365
  else if (!n2.skipInterpolation) {
1366
1366
  n2.interpolation && this.interpolator.init({ ...n2, interpolation: { ...this.options.interpolation, ...n2.interpolation } });
1367
- let a3 = L(e5) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1367
+ let a3 = I(e5) && (n2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : n2.interpolation.skipOnVariables), o3;
1368
1368
  if (a3) {
1369
1369
  let t3 = e5.match(this.interpolator.nestingRegexp);
1370
1370
  o3 = t3 && t3.length;
1371
1371
  }
1372
- let s2 = n2.replace && !L(n2.replace) ? n2.replace : n2;
1372
+ let s2 = n2.replace && !I(n2.replace) ? n2.replace : n2;
1373
1373
  if (this.options.interpolation.defaultVariables && (s2 = { ...this.options.interpolation.defaultVariables, ...s2 }), e5 = this.interpolator.interpolate(e5, s2, n2.lng || this.language || r2.usedLng, n2), a3) {
1374
1374
  let t3 = e5.match(this.interpolator.nestingRegexp), r3 = t3 && t3.length;
1375
1375
  o3 < r3 && (n2.nest = false);
1376
1376
  }
1377
1377
  !n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e5 = this.interpolator.nest(e5, (...e6) => i2?.[0] === e6[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e6[0]} in key: ${t2[0]}`), null) : this.translate(...e6, t2), n2)), n2.interpolation && this.interpolator.reset();
1378
1378
  }
1379
- let a2 = n2.postProcess || this.options.postProcess, o2 = L(a2) ? [a2] : a2;
1380
- return e5 != null && o2?.length && n2.applyPostProcessor !== false && (e5 = pr.handle(o2, e5, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e5;
1379
+ let a2 = n2.postProcess || this.options.postProcess, o2 = I(a2) ? [a2] : a2;
1380
+ return e5 != null && o2?.length && n2.applyPostProcessor !== false && (e5 = mr.handle(o2, e5, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e5;
1381
1381
  }
1382
1382
  resolve(e5, t2 = {}) {
1383
1383
  let n2, r2, i2, a2, o2;
1384
- return L(e5) && (e5 = [e5]), Array.isArray(e5) && (e5 = e5.map((e6) => typeof e6 == `function` ? B(e6, { ...this.options, ...t2 }) : e6)), e5.forEach((e6) => {
1384
+ return I(e5) && (e5 = [e5]), Array.isArray(e5) && (e5 = e5.map((e6) => typeof e6 == `function` ? z(e6, { ...this.options, ...t2 }) : e6)), e5.forEach((e6) => {
1385
1385
  if (this.isValidLookup(n2)) return;
1386
1386
  let s2 = this.extractFromKey(e6, t2), c2 = s2.key;
1387
1387
  r2 = c2;
1388
1388
  let l2 = s2.namespaces;
1389
1389
  this.options.fallbackNS && (l2 = l2.concat(this.options.fallbackNS));
1390
- let u2 = t2.count !== void 0 && !L(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (L(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1390
+ let u2 = t2.count !== void 0 && !I(t2.count), d2 = u2 && !t2.ordinal && t2.count === 0, f2 = t2.context !== void 0 && (I(t2.context) || typeof t2.context == `number`) && t2.context !== ``, p2 = t2.lngs ? t2.lngs : this.languageUtils.toResolveHierarchy(t2.lng || this.language, t2.fallbackLng);
1391
1391
  l2.forEach((e7) => {
1392
- this.isValidLookup(n2) || (o2 = e7, !gr[`${p2[0]}-${e7}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o2) && (gr[`${p2[0]}-${e7}`] = true, this.logger.warn(`key "${r2}" for languages "${p2.join(`, `)}" won't get resolved as namespace "${o2}" was not yet loaded`, `This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)), p2.forEach((r3) => {
1392
+ this.isValidLookup(n2) || (o2 = e7, !_r[`${p2[0]}-${e7}`] && this.utils?.hasLoadedNamespace && !this.utils?.hasLoadedNamespace(o2) && (_r[`${p2[0]}-${e7}`] = true, this.logger.warn(`key "${r2}" for languages "${p2.join(`, `)}" won't get resolved as namespace "${o2}" was not yet loaded`, `This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)), p2.forEach((r3) => {
1393
1393
  if (this.isValidLookup(n2)) return;
1394
1394
  a2 = r3;
1395
1395
  let o3 = [c2];
@@ -1416,7 +1416,7 @@ var vr = class e3 extends dr {
1416
1416
  return this.i18nFormat?.getResource ? this.i18nFormat.getResource(e5, t2, n2, r2) : this.resourceStore.getResource(e5, t2, n2, r2);
1417
1417
  }
1418
1418
  getUsedParamsDetails(e5 = {}) {
1419
- let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e5.replace && !L(e5.replace), r2 = n2 ? e5.replace : e5;
1419
+ let t2 = [`defaultValue`, `ordinal`, `context`, `replace`, `lng`, `lngs`, `fallbackLng`, `ns`, `keySeparator`, `nsSeparator`, `returnObjects`, `returnDetails`, `joinArrays`, `postProcess`, `interpolation`], n2 = e5.replace && !I(e5.replace), r2 = n2 ? e5.replace : e5;
1420
1420
  if (n2 && e5.count !== void 0 && (r2.count = e5.count), this.options.interpolation.defaultVariables && (r2 = { ...this.options.interpolation.defaultVariables, ...r2 }), !n2) {
1421
1421
  r2 = { ...r2 };
1422
1422
  for (let e6 of t2) delete r2[e6];
@@ -1428,22 +1428,22 @@ var vr = class e3 extends dr {
1428
1428
  return false;
1429
1429
  }
1430
1430
  };
1431
- var yr = class {
1431
+ var br = class {
1432
1432
  constructor(e5) {
1433
- this.options = e5, this.supportedLngs = this.options.supportedLngs || false, this.logger = z.create(`languageUtils`);
1433
+ this.options = e5, this.supportedLngs = this.options.supportedLngs || false, this.logger = R.create(`languageUtils`);
1434
1434
  }
1435
1435
  getScriptPartFromCode(e5) {
1436
- if (e5 = lr(e5), !e5 || e5.indexOf(`-`) < 0) return null;
1436
+ if (e5 = ur(e5), !e5 || e5.indexOf(`-`) < 0) return null;
1437
1437
  let t2 = e5.split(`-`);
1438
1438
  return t2.length === 2 || (t2.pop(), t2[t2.length - 1].toLowerCase() === `x`) ? null : this.formatLanguageCode(t2.join(`-`));
1439
1439
  }
1440
1440
  getLanguagePartFromCode(e5) {
1441
- if (e5 = lr(e5), !e5 || e5.indexOf(`-`) < 0) return e5;
1441
+ if (e5 = ur(e5), !e5 || e5.indexOf(`-`) < 0) return e5;
1442
1442
  let t2 = e5.split(`-`);
1443
1443
  return this.formatLanguageCode(t2[0]);
1444
1444
  }
1445
1445
  formatLanguageCode(e5) {
1446
- if (L(e5) && e5.indexOf(`-`) > -1) {
1446
+ if (I(e5) && e5.indexOf(`-`) > -1) {
1447
1447
  let t2;
1448
1448
  try {
1449
1449
  t2 = Intl.getCanonicalLocales(e5)[0];
@@ -1476,7 +1476,7 @@ var yr = class {
1476
1476
  }
1477
1477
  getFallbackCodes(e5, t2) {
1478
1478
  if (!e5) return [];
1479
- if (typeof e5 == `function` && (e5 = e5(t2)), L(e5) && (e5 = [e5]), Array.isArray(e5)) return e5;
1479
+ if (typeof e5 == `function` && (e5 = e5(t2)), I(e5) && (e5 = [e5]), Array.isArray(e5)) return e5;
1480
1480
  if (!t2) return e5.default || [];
1481
1481
  let n2 = e5[t2];
1482
1482
  return n2 ||= e5[this.getScriptPartFromCode(t2)], n2 ||= e5[this.formatLanguageCode(t2)], n2 ||= e5[this.getLanguagePartFromCode(t2)], n2 ||= e5.default, n2 || [];
@@ -1485,29 +1485,29 @@ var yr = class {
1485
1485
  let n2 = this.getFallbackCodes((t2 === false ? [] : t2) || this.options.fallbackLng || [], e5), r2 = [], i2 = (e6) => {
1486
1486
  e6 && (this.isSupportedCode(e6) ? r2.push(e6) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e6}`));
1487
1487
  };
1488
- return L(e5) && (e5.indexOf(`-`) > -1 || e5.indexOf(`_`) > -1) ? (this.options.load !== `languageOnly` && i2(this.formatLanguageCode(e5)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && i2(this.getScriptPartFromCode(e5)), this.options.load !== `currentOnly` && i2(this.getLanguagePartFromCode(e5))) : L(e5) && i2(this.formatLanguageCode(e5)), n2.forEach((e6) => {
1488
+ return I(e5) && (e5.indexOf(`-`) > -1 || e5.indexOf(`_`) > -1) ? (this.options.load !== `languageOnly` && i2(this.formatLanguageCode(e5)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && i2(this.getScriptPartFromCode(e5)), this.options.load !== `currentOnly` && i2(this.getLanguagePartFromCode(e5))) : I(e5) && i2(this.formatLanguageCode(e5)), n2.forEach((e6) => {
1489
1489
  r2.indexOf(e6) < 0 && i2(this.formatLanguageCode(e6));
1490
1490
  }), r2;
1491
1491
  }
1492
1492
  };
1493
- var br = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1494
- var xr = { select: (e5) => e5 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1495
- var Sr = class {
1493
+ var xr = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1494
+ var Sr = { select: (e5) => e5 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1495
+ var Cr = class {
1496
1496
  constructor(e5, t2 = {}) {
1497
- this.languageUtils = e5, this.options = t2, this.logger = z.create(`pluralResolver`), this.pluralRulesCache = {};
1497
+ this.languageUtils = e5, this.options = t2, this.logger = R.create(`pluralResolver`), this.pluralRulesCache = {};
1498
1498
  }
1499
1499
  clearCache() {
1500
1500
  this.pluralRulesCache = {};
1501
1501
  }
1502
1502
  getRule(e5, t2 = {}) {
1503
- let n2 = lr(e5 === `dev` ? `en` : e5), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1503
+ let n2 = ur(e5 === `dev` ? `en` : e5), r2 = t2.ordinal ? `ordinal` : `cardinal`, i2 = JSON.stringify({ cleanedCode: n2, type: r2 });
1504
1504
  if (i2 in this.pluralRulesCache) return this.pluralRulesCache[i2];
1505
1505
  let a2;
1506
1506
  try {
1507
1507
  a2 = new Intl.PluralRules(n2, { type: r2 });
1508
1508
  } catch {
1509
- if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), xr;
1510
- if (!e5.match(/-|_/)) return xr;
1509
+ if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), Sr;
1510
+ if (!e5.match(/-|_/)) return Sr;
1511
1511
  let n3 = this.languageUtils.getLanguagePartFromCode(e5);
1512
1512
  a2 = this.getRule(n3, t2);
1513
1513
  }
@@ -1522,26 +1522,26 @@ var Sr = class {
1522
1522
  }
1523
1523
  getSuffixes(e5, t2 = {}) {
1524
1524
  let n2 = this.getRule(e5, t2);
1525
- return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e6, t3) => br[e6] - br[t3]).map((e6) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e6}`) : [];
1525
+ return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e6, t3) => xr[e6] - xr[t3]).map((e6) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e6}`) : [];
1526
1526
  }
1527
1527
  getSuffix(e5, t2, n2 = {}) {
1528
1528
  let r2 = this.getRule(e5, n2);
1529
1529
  return r2 ? `${this.options.prepend}${n2.ordinal ? `ordinal${this.options.prepend}` : ``}${r2.select(t2)}` : (this.logger.warn(`no plural rule found for: ${e5}`), this.getSuffix(`dev`, t2, n2));
1530
1530
  }
1531
1531
  };
1532
- var Cr = (e5, t2, n2, r2 = `.`, i2 = true) => {
1533
- let a2 = er(e5, t2, n2);
1534
- return !a2 && i2 && L(n2) && (a2 = cr(e5, n2, r2), a2 === void 0 && (a2 = cr(t2, n2, r2))), a2;
1532
+ var wr = (e5, t2, n2, r2 = `.`, i2 = true) => {
1533
+ let a2 = tr(e5, t2, n2);
1534
+ return !a2 && i2 && I(n2) && (a2 = lr(e5, n2, r2), a2 === void 0 && (a2 = lr(t2, n2, r2))), a2;
1535
1535
  };
1536
- var wr = (e5) => e5.replace(/\$/g, `$$$$`);
1537
- var Tr = class {
1536
+ var Tr = (e5) => e5.replace(/\$/g, `$$$$`);
1537
+ var Er = class {
1538
1538
  constructor(e5 = {}) {
1539
- this.logger = z.create(`interpolator`), this.options = e5, this.format = e5?.interpolation?.format || ((e6) => e6), this.init(e5);
1539
+ this.logger = R.create(`interpolator`), this.options = e5, this.format = e5?.interpolation?.format || ((e6) => e6), this.init(e5);
1540
1540
  }
1541
1541
  init(e5 = {}) {
1542
1542
  e5.interpolation ||= { escapeValue: true };
1543
1543
  let { escape: t2, escapeValue: n2, useRawValueToEscape: r2, prefix: i2, prefixEscaped: a2, suffix: o2, suffixEscaped: s2, formatSeparator: c2, unescapeSuffix: l2, unescapePrefix: u2, nestingPrefix: d2, nestingPrefixEscaped: f2, nestingSuffix: p2, nestingSuffixEscaped: m2, nestingOptionsSeparator: h2, maxReplaces: g2, alwaysFormat: _2 } = e5.interpolation;
1544
- this.escape = t2 === void 0 ? rr : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? R(i2) : a2 || `{{`, this.suffix = o2 ? R(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 || `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 || ``, this.nestingPrefix = d2 ? R(d2) : f2 || R(`$t(`), this.nestingSuffix = p2 ? R(p2) : m2 || R(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1544
+ this.escape = t2 === void 0 ? ir : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? L(i2) : a2 || `{{`, this.suffix = o2 ? L(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 || `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 || ``, this.nestingPrefix = d2 ? L(d2) : f2 || L(`$t(`), this.nestingSuffix = p2 ? L(p2) : m2 || L(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1545
1545
  }
1546
1546
  reset() {
1547
1547
  this.options && this.init(this.options);
@@ -1553,27 +1553,27 @@ var Tr = class {
1553
1553
  interpolate(e5, t2, n2, r2) {
1554
1554
  let i2, a2, o2, s2 = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c2 = (e6) => {
1555
1555
  if (e6.indexOf(this.formatSeparator) < 0) {
1556
- let i4 = Cr(t2, s2, e6, this.options.keySeparator, this.options.ignoreJSONStructure);
1556
+ let i4 = wr(t2, s2, e6, this.options.keySeparator, this.options.ignoreJSONStructure);
1557
1557
  return this.alwaysFormat ? this.format(i4, void 0, n2, { ...r2, ...t2, interpolationkey: e6 }) : i4;
1558
1558
  }
1559
1559
  let i3 = e6.split(this.formatSeparator), a3 = i3.shift().trim(), o3 = i3.join(this.formatSeparator).trim();
1560
- return this.format(Cr(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1560
+ return this.format(wr(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1561
1561
  };
1562
1562
  this.resetRegExp();
1563
1563
  let l2 = r2?.missingInterpolationHandler || this.options.missingInterpolationHandler, u2 = r2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r2.interpolation.skipOnVariables;
1564
- return [{ regex: this.regexpUnescape, safeValue: (e6) => wr(e6) }, { regex: this.regexp, safeValue: (e6) => this.escapeValue ? wr(this.escape(e6)) : wr(e6) }].forEach((t3) => {
1564
+ return [{ regex: this.regexpUnescape, safeValue: (e6) => Tr(e6) }, { regex: this.regexp, safeValue: (e6) => this.escapeValue ? Tr(this.escape(e6)) : Tr(e6) }].forEach((t3) => {
1565
1565
  for (o2 = 0; i2 = t3.regex.exec(e5); ) {
1566
1566
  let n3 = i2[1].trim();
1567
1567
  if (a2 = c2(n3), a2 === void 0) {
1568
1568
  if (typeof l2 == `function`) {
1569
1569
  let t4 = l2(e5, i2, r2);
1570
- a2 = L(t4) ? t4 : ``;
1570
+ a2 = I(t4) ? t4 : ``;
1571
1571
  } else if (r2 && Object.prototype.hasOwnProperty.call(r2, n3)) a2 = ``;
1572
1572
  else if (u2) {
1573
1573
  a2 = i2[0];
1574
1574
  continue;
1575
1575
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e5}`), a2 = ``;
1576
- } else !L(a2) && !this.useRawValueToEscape && (a2 = Gn(a2));
1576
+ } else !I(a2) && !this.useRawValueToEscape && (a2 = Kn(a2));
1577
1577
  let s3 = t3.safeValue(a2);
1578
1578
  if (e5 = e5.replace(i2[0], s3), u2 ? (t3.regex.lastIndex += a2.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1579
1579
  }
@@ -1583,7 +1583,7 @@ var Tr = class {
1583
1583
  let r2, i2, a2, o2 = (e6, t3) => {
1584
1584
  let n3 = this.nestingOptionsSeparator;
1585
1585
  if (e6.indexOf(n3) < 0) return e6;
1586
- let r3 = e6.split(RegExp(`${R(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1586
+ let r3 = e6.split(RegExp(`${L(n3)}[ ]*{`)), i3 = `{${r3[1]}`;
1587
1587
  e6 = r3[0], i3 = this.interpolate(i3, a2);
1588
1588
  let o3 = i3.match(/'/g), s2 = i3.match(/"/g);
1589
1589
  ((o3?.length ?? 0) % 2 == 0 && !s2 || (s2?.length ?? 0) % 2 != 0) && (i3 = i3.replace(/'/g, `"`));
@@ -1596,15 +1596,15 @@ var Tr = class {
1596
1596
  };
1597
1597
  for (; r2 = this.nestingRegexp.exec(e5); ) {
1598
1598
  let s2 = [];
1599
- a2 = { ...n2 }, a2 = a2.replace && !L(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1599
+ a2 = { ...n2 }, a2 = a2.replace && !I(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1600
1600
  let c2 = /{.*}/.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1601
- if (c2 !== -1 && (s2 = r2[1].slice(c2).split(this.formatSeparator).map((e6) => e6.trim()).filter(Boolean), r2[1] = r2[1].slice(0, c2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e5 && !L(i2)) return i2;
1602
- L(i2) || (i2 = Gn(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e5}`), ``), s2.length && (i2 = s2.reduce((e6, t3) => this.format(e6, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), e5 = e5.replace(r2[0], i2), this.regexp.lastIndex = 0;
1601
+ if (c2 !== -1 && (s2 = r2[1].slice(c2).split(this.formatSeparator).map((e6) => e6.trim()).filter(Boolean), r2[1] = r2[1].slice(0, c2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e5 && !I(i2)) return i2;
1602
+ I(i2) || (i2 = Kn(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e5}`), ``), s2.length && (i2 = s2.reduce((e6, t3) => this.format(e6, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), e5 = e5.replace(r2[0], i2), this.regexp.lastIndex = 0;
1603
1603
  }
1604
1604
  return e5;
1605
1605
  }
1606
1606
  };
1607
- var Er = (e5) => {
1607
+ var Dr = (e5) => {
1608
1608
  let t2 = e5.toLowerCase().trim(), n2 = {};
1609
1609
  if (e5.indexOf(`(`) > -1) {
1610
1610
  let r2 = e5.split(`(`);
@@ -1619,23 +1619,23 @@ var Er = (e5) => {
1619
1619
  }
1620
1620
  return { formatName: t2, formatOptions: n2 };
1621
1621
  };
1622
- var Dr = (e5) => {
1622
+ var Or = (e5) => {
1623
1623
  let t2 = {};
1624
1624
  return (n2, r2, i2) => {
1625
1625
  let a2 = i2;
1626
1626
  i2 && i2.interpolationkey && i2.formatParams && i2.formatParams[i2.interpolationkey] && i2[i2.interpolationkey] && (a2 = { ...a2, [i2.interpolationkey]: void 0 });
1627
1627
  let o2 = r2 + JSON.stringify(a2), s2 = t2[o2];
1628
- return s2 || (s2 = e5(lr(r2), i2), t2[o2] = s2), s2(n2);
1628
+ return s2 || (s2 = e5(ur(r2), i2), t2[o2] = s2), s2(n2);
1629
1629
  };
1630
1630
  };
1631
- var Or = (e5) => (t2, n2, r2) => e5(lr(n2), r2)(t2);
1632
- var kr = class {
1631
+ var kr = (e5) => (t2, n2, r2) => e5(ur(n2), r2)(t2);
1632
+ var Ar = class {
1633
1633
  constructor(e5 = {}) {
1634
- this.logger = z.create(`formatter`), this.options = e5, this.init(e5);
1634
+ this.logger = R.create(`formatter`), this.options = e5, this.init(e5);
1635
1635
  }
1636
1636
  init(e5, t2 = { interpolation: {} }) {
1637
1637
  this.formatSeparator = t2.interpolation.formatSeparator || `,`;
1638
- let n2 = t2.cacheInBuiltFormats ? Dr : Or;
1638
+ let n2 = t2.cacheInBuiltFormats ? Or : kr;
1639
1639
  this.formats = { number: n2((e6, t3) => {
1640
1640
  let n3 = new Intl.NumberFormat(e6, { ...t3 });
1641
1641
  return (e7) => n3.format(e7);
@@ -1657,7 +1657,7 @@ var kr = class {
1657
1657
  this.formats[e5.toLowerCase().trim()] = t2;
1658
1658
  }
1659
1659
  addCached(e5, t2) {
1660
- this.formats[e5.toLowerCase().trim()] = Dr(t2);
1660
+ this.formats[e5.toLowerCase().trim()] = Or(t2);
1661
1661
  }
1662
1662
  format(e5, t2, n2, r2 = {}) {
1663
1663
  let i2 = t2.split(this.formatSeparator);
@@ -1666,7 +1666,7 @@ var kr = class {
1666
1666
  i2[0] = [i2[0], ...i2.splice(1, e6)].join(this.formatSeparator);
1667
1667
  }
1668
1668
  return i2.reduce((e6, t3) => {
1669
- let { formatName: i3, formatOptions: a2 } = Er(t3);
1669
+ let { formatName: i3, formatOptions: a2 } = Dr(t3);
1670
1670
  if (this.formats[i3]) {
1671
1671
  let t4 = e6;
1672
1672
  try {
@@ -1681,12 +1681,12 @@ var kr = class {
1681
1681
  }, e5);
1682
1682
  }
1683
1683
  };
1684
- var Ar = (e5, t2) => {
1684
+ var jr = (e5, t2) => {
1685
1685
  e5.pending[t2] !== void 0 && (delete e5.pending[t2], e5.pendingCount--);
1686
1686
  };
1687
- var jr = class extends dr {
1687
+ var Mr = class extends fr {
1688
1688
  constructor(e5, t2, n2, r2 = {}) {
1689
- super(), this.backend = e5, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = z.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1689
+ super(), this.backend = e5, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = R.create(`backendConnector`), this.waitingReads = [], this.maxParallelReads = r2.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = r2.maxRetries >= 0 ? r2.maxRetries : 5, this.retryTimeout = r2.retryTimeout >= 1 ? r2.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n2, r2.backend, r2);
1690
1690
  }
1691
1691
  queueLoad(e5, t2, n2, r2) {
1692
1692
  let i2 = {}, a2 = {}, o2 = {}, s2 = {};
@@ -1703,7 +1703,7 @@ var jr = class extends dr {
1703
1703
  t2 && this.emit(`failedLoading`, i2, a2, t2), !t2 && n2 && this.store.addResourceBundle(i2, a2, n2, void 0, void 0, { skipCopy: true }), this.state[e5] = t2 ? -1 : 2, t2 && n2 && (this.state[e5] = 0);
1704
1704
  let o2 = {};
1705
1705
  this.queue.forEach((n3) => {
1706
- Qn(n3.loaded, [i2], a2), Ar(n3, e5), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e6) => {
1706
+ $n(n3.loaded, [i2], a2), jr(n3, e5), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e6) => {
1707
1707
  o2[e6] || (o2[e6] = {});
1708
1708
  let t3 = n3.loaded[e6];
1709
1709
  t3.length && t3.forEach((t4) => {
@@ -1745,7 +1745,7 @@ var jr = class extends dr {
1745
1745
  }
1746
1746
  prepareLoading(e5, t2, n2 = {}, r2) {
1747
1747
  if (!this.backend) return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`), r2 && r2();
1748
- L(e5) && (e5 = this.languageUtils.toResolveHierarchy(e5)), L(t2) && (t2 = [t2]);
1748
+ I(e5) && (e5 = this.languageUtils.toResolveHierarchy(e5)), I(t2) && (t2 = [t2]);
1749
1749
  let i2 = this.queueLoad(e5, t2, n2, r2);
1750
1750
  if (!i2.toLoad.length) return i2.pending.length || r2(), null;
1751
1751
  i2.toLoad.forEach((e6) => {
@@ -1785,9 +1785,9 @@ var jr = class extends dr {
1785
1785
  }
1786
1786
  }
1787
1787
  };
1788
- var Mr = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, simplifyPluralSuffix: true, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e5) => {
1788
+ var Nr = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, simplifyPluralSuffix: true, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, partialBundledLanguages: false, saveMissing: false, updateMissing: false, saveMissingTo: `fallback`, saveMissingPlurals: true, missingKeyHandler: false, missingInterpolationHandler: false, postProcess: false, postProcessPassResolved: false, returnNull: false, returnEmptyString: true, returnObjects: false, joinArrays: false, returnedObjectHandler: false, parseMissingKeyHandler: false, appendNamespaceToMissingKey: false, appendNamespaceToCIMode: false, overloadTranslationOptionHandler: (e5) => {
1789
1789
  let t2 = {};
1790
- if (typeof e5[1] == `object` && (t2 = e5[1]), L(e5[1]) && (t2.defaultValue = e5[1]), L(e5[2]) && (t2.tDescription = e5[2]), typeof e5[2] == `object` || typeof e5[3] == `object`) {
1790
+ if (typeof e5[1] == `object` && (t2 = e5[1]), I(e5[1]) && (t2.defaultValue = e5[1]), I(e5[2]) && (t2.tDescription = e5[2]), typeof e5[2] == `object` || typeof e5[3] == `object`) {
1791
1791
  let n2 = e5[3] || e5[2];
1792
1792
  Object.keys(n2).forEach((e6) => {
1793
1793
  t2[e6] = n2[e6];
@@ -1795,23 +1795,23 @@ var Mr = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
1795
1795
  }
1796
1796
  return t2;
1797
1797
  }, interpolation: { escapeValue: true, format: (e5) => e5, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
1798
- var Nr = (e5) => (L(e5.ns) && (e5.ns = [e5.ns]), L(e5.fallbackLng) && (e5.fallbackLng = [e5.fallbackLng]), L(e5.fallbackNS) && (e5.fallbackNS = [e5.fallbackNS]), e5.supportedLngs?.indexOf?.(`cimode`) < 0 && (e5.supportedLngs = e5.supportedLngs.concat([`cimode`])), typeof e5.initImmediate == `boolean` && (e5.initAsync = e5.initImmediate), e5);
1799
- var Pr = () => {
1798
+ var Pr = (e5) => (I(e5.ns) && (e5.ns = [e5.ns]), I(e5.fallbackLng) && (e5.fallbackLng = [e5.fallbackLng]), I(e5.fallbackNS) && (e5.fallbackNS = [e5.fallbackNS]), e5.supportedLngs?.indexOf?.(`cimode`) < 0 && (e5.supportedLngs = e5.supportedLngs.concat([`cimode`])), typeof e5.initImmediate == `boolean` && (e5.initAsync = e5.initImmediate), e5);
1799
+ var Fr = () => {
1800
1800
  };
1801
- var Fr = (e5) => {
1801
+ var Ir = (e5) => {
1802
1802
  Object.getOwnPropertyNames(Object.getPrototypeOf(e5)).forEach((t2) => {
1803
1803
  typeof e5[t2] == `function` && (e5[t2] = e5[t2].bind(e5));
1804
1804
  });
1805
1805
  };
1806
- var Ir = `__i18next_supportNoticeShown`;
1807
- var Lr = () => !!(typeof globalThis < `u` && globalThis[Ir] || typeof process < `u` && {}.I18NEXT_NO_SUPPORT_NOTICE || typeof process < `u`);
1808
- var Rr = () => {
1809
- typeof globalThis < `u` && (globalThis[Ir] = true);
1806
+ var Lr = `__i18next_supportNoticeShown`;
1807
+ var Rr = () => !!(typeof globalThis < `u` && globalThis[Lr] || typeof process < `u` && {}.I18NEXT_NO_SUPPORT_NOTICE || typeof process < `u`);
1808
+ var zr = () => {
1809
+ typeof globalThis < `u` && (globalThis[Lr] = true);
1810
1810
  };
1811
- var zr = (e5) => !!(e5?.modules?.backend?.name?.indexOf(`Locize`) > 0 || e5?.modules?.backend?.constructor?.name?.indexOf(`Locize`) > 0 || e5?.options?.backend?.backends && e5.options.backend.backends.some((e6) => e6?.name?.indexOf(`Locize`) > 0 || e6?.constructor?.name?.indexOf(`Locize`) > 0) || e5?.options?.backend?.projectId || e5?.options?.backend?.backendOptions && e5.options.backend.backendOptions.some((e6) => e6?.projectId));
1812
- var V = class e4 extends dr {
1811
+ var Br = (e5) => !!(e5?.modules?.backend?.name?.indexOf(`Locize`) > 0 || e5?.modules?.backend?.constructor?.name?.indexOf(`Locize`) > 0 || e5?.options?.backend?.backends && e5.options.backend.backends.some((e6) => e6?.name?.indexOf(`Locize`) > 0 || e6?.constructor?.name?.indexOf(`Locize`) > 0) || e5?.options?.backend?.projectId || e5?.options?.backend?.backendOptions && e5.options.backend.backendOptions.some((e6) => e6?.projectId));
1812
+ var B = class e4 extends fr {
1813
1813
  constructor(e5 = {}, t2) {
1814
- if (super(), this.options = Nr(e5), this.services = {}, this.logger = z, this.modules = { external: [] }, Fr(this), t2 && !this.isInitialized && !e5.isClone) {
1814
+ if (super(), this.options = Pr(e5), this.services = {}, this.logger = R, this.modules = { external: [] }, Ir(this), t2 && !this.isInitialized && !e5.isClone) {
1815
1815
  if (!this.options.initAsync) return this.init(e5, t2), this;
1816
1816
  setTimeout(() => {
1817
1817
  this.init(e5, t2);
@@ -1819,26 +1819,26 @@ var V = class e4 extends dr {
1819
1819
  }
1820
1820
  }
1821
1821
  init(e5 = {}, t2) {
1822
- this.isInitializing = true, typeof e5 == `function` && (t2 = e5, e5 = {}), e5.defaultNS == null && e5.ns && (L(e5.ns) ? e5.defaultNS = e5.ns : e5.ns.indexOf(`translation`) < 0 && (e5.defaultNS = e5.ns[0]));
1823
- let n2 = Mr();
1824
- this.options = { ...n2, ...this.options, ...Nr(e5) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e5.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e5.keySeparator), e5.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e5.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler), this.options.showSupportNotice !== false && !zr(this) && !Lr() && (typeof console < `u` && console.info !== void 0 && console.info(`\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}`), Rr());
1822
+ this.isInitializing = true, typeof e5 == `function` && (t2 = e5, e5 = {}), e5.defaultNS == null && e5.ns && (I(e5.ns) ? e5.defaultNS = e5.ns : e5.ns.indexOf(`translation`) < 0 && (e5.defaultNS = e5.ns[0]));
1823
+ let n2 = Nr();
1824
+ this.options = { ...n2, ...this.options, ...Pr(e5) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e5.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e5.keySeparator), e5.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e5.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler), this.options.showSupportNotice !== false && !Br(this) && !Rr() && (typeof console < `u` && console.info !== void 0 && console.info(`\u{1F310} i18next is made possible by our own product, Locize \u2014 consider powering your project with managed localization (AI, CDN, integrations): https://locize.com \u{1F499}`), zr());
1825
1825
  let r2 = (e6) => e6 ? typeof e6 == `function` ? new e6() : e6 : null;
1826
1826
  if (!this.options.isClone) {
1827
- this.modules.logger ? z.init(r2(this.modules.logger), this.options) : z.init(null, this.options);
1827
+ this.modules.logger ? R.init(r2(this.modules.logger), this.options) : R.init(null, this.options);
1828
1828
  let e6;
1829
- e6 = this.modules.formatter ? this.modules.formatter : kr;
1830
- let t3 = new yr(this.options);
1831
- this.store = new fr(this.options.resources, this.options);
1829
+ e6 = this.modules.formatter ? this.modules.formatter : Ar;
1830
+ let t3 = new br(this.options);
1831
+ this.store = new pr(this.options.resources, this.options);
1832
1832
  let i3 = this.services;
1833
- i3.logger = z, i3.resourceStore = this.store, i3.languageUtils = t3, i3.pluralResolver = new Sr(t3, { prepend: this.options.pluralSeparator, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), this.options.interpolation.format && this.options.interpolation.format !== n2.interpolation.format && this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`), e6 && (!this.options.interpolation.format || this.options.interpolation.format === n2.interpolation.format) && (i3.formatter = r2(e6), i3.formatter.init && i3.formatter.init(i3, this.options), this.options.interpolation.format = i3.formatter.format.bind(i3.formatter)), i3.interpolator = new Tr(this.options), i3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i3.backendConnector = new jr(r2(this.modules.backend), i3.resourceStore, i3, this.options), i3.backendConnector.on(`*`, (e7, ...t4) => {
1833
+ i3.logger = R, i3.resourceStore = this.store, i3.languageUtils = t3, i3.pluralResolver = new Cr(t3, { prepend: this.options.pluralSeparator, simplifyPluralSuffix: this.options.simplifyPluralSuffix }), this.options.interpolation.format && this.options.interpolation.format !== n2.interpolation.format && this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`), e6 && (!this.options.interpolation.format || this.options.interpolation.format === n2.interpolation.format) && (i3.formatter = r2(e6), i3.formatter.init && i3.formatter.init(i3, this.options), this.options.interpolation.format = i3.formatter.format.bind(i3.formatter)), i3.interpolator = new Er(this.options), i3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, i3.backendConnector = new Mr(r2(this.modules.backend), i3.resourceStore, i3, this.options), i3.backendConnector.on(`*`, (e7, ...t4) => {
1834
1834
  this.emit(e7, ...t4);
1835
- }), this.modules.languageDetector && (i3.languageDetector = r2(this.modules.languageDetector), i3.languageDetector.init && i3.languageDetector.init(i3, this.options.detection, this.options)), this.modules.i18nFormat && (i3.i18nFormat = r2(this.modules.i18nFormat), i3.i18nFormat.init && i3.i18nFormat.init(this)), this.translator = new vr(this.services, this.options), this.translator.on(`*`, (e7, ...t4) => {
1835
+ }), this.modules.languageDetector && (i3.languageDetector = r2(this.modules.languageDetector), i3.languageDetector.init && i3.languageDetector.init(i3, this.options.detection, this.options)), this.modules.i18nFormat && (i3.i18nFormat = r2(this.modules.i18nFormat), i3.i18nFormat.init && i3.i18nFormat.init(this)), this.translator = new yr(this.services, this.options), this.translator.on(`*`, (e7, ...t4) => {
1836
1836
  this.emit(e7, ...t4);
1837
1837
  }), this.modules.external.forEach((e7) => {
1838
1838
  e7.init && e7.init(this);
1839
1839
  });
1840
1840
  }
1841
- if (this.format = this.options.interpolation.format, t2 ||= Pr, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1841
+ if (this.format = this.options.interpolation.format, t2 ||= Fr, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
1842
1842
  let e6 = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
1843
1843
  e6.length > 0 && e6[0] !== `dev` && (this.options.lng = e6[0]);
1844
1844
  }
@@ -1847,7 +1847,7 @@ var V = class e4 extends dr {
1847
1847
  }), [`addResource`, `addResources`, `addResourceBundle`, `removeResourceBundle`].forEach((e6) => {
1848
1848
  this[e6] = (...t3) => (this.store[e6](...t3), this);
1849
1849
  });
1850
- let i2 = Wn(), a2 = () => {
1850
+ let i2 = Gn(), a2 = () => {
1851
1851
  let e6 = (e7, n3) => {
1852
1852
  this.isInitializing = false, this.isInitialized && !this.initializedStoreOnce && this.logger.warn(`init: i18next is already initialized. You should call init just once!`), this.isInitialized = true, this.options.isClone || this.logger.log(`initialized`, this.options), this.emit(`initialized`, this.options), i2.resolve(n3), t2(e7, n3);
1853
1853
  };
@@ -1856,8 +1856,8 @@ var V = class e4 extends dr {
1856
1856
  };
1857
1857
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
1858
1858
  }
1859
- loadResources(e5, t2 = Pr) {
1860
- let n2 = t2, r2 = L(e5) ? e5 : this.language;
1859
+ loadResources(e5, t2 = Fr) {
1860
+ let n2 = t2, r2 = I(e5) ? e5 : this.language;
1861
1861
  if (typeof e5 == `function` && (n2 = e5), !this.options.resources || this.options.partialBundledLanguages) {
1862
1862
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
1863
1863
  let e6 = [], t3 = (t4) => {
@@ -1871,15 +1871,15 @@ var V = class e4 extends dr {
1871
1871
  } else n2(null);
1872
1872
  }
1873
1873
  reloadResources(e5, t2, n2) {
1874
- let r2 = Wn();
1875
- return typeof e5 == `function` && (n2 = e5, e5 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e5 ||= this.languages, t2 ||= this.options.ns, n2 ||= Pr, this.services.backendConnector.reload(e5, t2, (e6) => {
1874
+ let r2 = Gn();
1875
+ return typeof e5 == `function` && (n2 = e5, e5 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e5 ||= this.languages, t2 ||= this.options.ns, n2 ||= Fr, this.services.backendConnector.reload(e5, t2, (e6) => {
1876
1876
  r2.resolve(), n2(e6);
1877
1877
  }), r2;
1878
1878
  }
1879
1879
  use(e5) {
1880
1880
  if (!e5) throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
1881
1881
  if (!e5.type) throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);
1882
- return e5.type === `backend` && (this.modules.backend = e5), (e5.type === `logger` || e5.log && e5.warn && e5.error) && (this.modules.logger = e5), e5.type === `languageDetector` && (this.modules.languageDetector = e5), e5.type === `i18nFormat` && (this.modules.i18nFormat = e5), e5.type === `postProcessor` && pr.addPostProcessor(e5), e5.type === `formatter` && (this.modules.formatter = e5), e5.type === `3rdParty` && this.modules.external.push(e5), this;
1882
+ return e5.type === `backend` && (this.modules.backend = e5), (e5.type === `logger` || e5.log && e5.warn && e5.error) && (this.modules.logger = e5), e5.type === `languageDetector` && (this.modules.languageDetector = e5), e5.type === `i18nFormat` && (this.modules.i18nFormat = e5), e5.type === `postProcessor` && mr.addPostProcessor(e5), e5.type === `formatter` && (this.modules.formatter = e5), e5.type === `3rdParty` && this.modules.external.push(e5), this;
1883
1883
  }
1884
1884
  setResolvedLanguage(e5) {
1885
1885
  if (e5 && this.languages && !([`cimode`, `dev`].indexOf(e5) > -1)) {
@@ -1895,7 +1895,7 @@ var V = class e4 extends dr {
1895
1895
  }
1896
1896
  changeLanguage(e5, t2) {
1897
1897
  this.isLanguageChangingTo = e5;
1898
- let n2 = Wn();
1898
+ let n2 = Gn();
1899
1899
  this.emit(`languageChanging`, e5);
1900
1900
  let r2 = (e6) => {
1901
1901
  this.language = e6, this.languages = this.services.languageUtils.toResolveHierarchy(e6), this.resolvedLanguage = void 0, this.setResolvedLanguage(e6);
@@ -1903,7 +1903,7 @@ var V = class e4 extends dr {
1903
1903
  a3 ? this.isLanguageChangingTo === e5 && (r2(a3), this.translator.changeLanguage(a3), this.isLanguageChangingTo = void 0, this.emit(`languageChanged`, a3), this.logger.log(`languageChanged`, a3)) : this.isLanguageChangingTo = void 0, n2.resolve((...e6) => this.t(...e6)), t2 && t2(i3, (...e6) => this.t(...e6));
1904
1904
  }, a2 = (t3) => {
1905
1905
  !e5 && !t3 && this.services.languageDetector && (t3 = []);
1906
- let n3 = L(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(L(t3) ? [t3] : t3);
1906
+ let n3 = I(t3) ? t3 : t3 && t3[0], a3 = this.store.hasLanguageSomeTranslations(n3) ? n3 : this.services.languageUtils.getBestMatchFromCodes(I(t3) ? [t3] : t3);
1907
1907
  a3 && (this.language || r2(a3), this.translator.language || this.translator.changeLanguage(a3), this.services.languageDetector?.cacheUserLanguage?.(a3)), this.loadResources(a3, (e6) => {
1908
1908
  i2(e6, a3);
1909
1909
  });
@@ -1915,11 +1915,11 @@ var V = class e4 extends dr {
1915
1915
  let a2;
1916
1916
  a2 = typeof t3 == `object` ? { ...t3 } : this.options.overloadTranslationOptionHandler([e6, t3].concat(i2)), a2.lng = a2.lng || r2.lng, a2.lngs = a2.lngs || r2.lngs, a2.ns = a2.ns || r2.ns, a2.keyPrefix !== `` && (a2.keyPrefix = a2.keyPrefix || n2 || r2.keyPrefix);
1917
1917
  let o2 = { ...this.options, ...a2 };
1918
- typeof a2.keyPrefix == `function` && (a2.keyPrefix = B(a2.keyPrefix, o2));
1918
+ typeof a2.keyPrefix == `function` && (a2.keyPrefix = z(a2.keyPrefix, o2));
1919
1919
  let s2 = this.options.keySeparator || `.`, c2;
1920
- return a2.keyPrefix && Array.isArray(e6) ? c2 = e6.map((e7) => (typeof e7 == `function` && (e7 = B(e7, o2)), `${a2.keyPrefix}${s2}${e7}`)) : (typeof e6 == `function` && (e6 = B(e6, o2)), c2 = a2.keyPrefix ? `${a2.keyPrefix}${s2}${e6}` : e6), this.t(c2, a2);
1920
+ return a2.keyPrefix && Array.isArray(e6) ? c2 = e6.map((e7) => (typeof e7 == `function` && (e7 = z(e7, o2)), `${a2.keyPrefix}${s2}${e7}`)) : (typeof e6 == `function` && (e6 = z(e6, o2)), c2 = a2.keyPrefix ? `${a2.keyPrefix}${s2}${e6}` : e6), this.t(c2, a2);
1921
1921
  };
1922
- return L(e5) ? r2.lng = e5 : r2.lngs = e5, r2.ns = t2, r2.keyPrefix = n2, r2;
1922
+ return I(e5) ? r2.lng = e5 : r2.lngs = e5, r2.ns = t2, r2.keyPrefix = n2, r2;
1923
1923
  }
1924
1924
  t(...e5) {
1925
1925
  return this.translator?.translate(...e5);
@@ -1946,16 +1946,16 @@ var V = class e4 extends dr {
1946
1946
  return !!(this.hasResourceBundle(n2, e5) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a2(n2, e5) && (!r2 || a2(i2, e5)));
1947
1947
  }
1948
1948
  loadNamespaces(e5, t2) {
1949
- let n2 = Wn();
1950
- return this.options.ns ? (L(e5) && (e5 = [e5]), e5.forEach((e6) => {
1949
+ let n2 = Gn();
1950
+ return this.options.ns ? (I(e5) && (e5 = [e5]), e5.forEach((e6) => {
1951
1951
  this.options.ns.indexOf(e6) < 0 && this.options.ns.push(e6);
1952
1952
  }), this.loadResources((e6) => {
1953
1953
  n2.resolve(), t2 && t2(e6);
1954
1954
  }), n2) : (t2 && t2(), Promise.resolve());
1955
1955
  }
1956
1956
  loadLanguages(e5, t2) {
1957
- let n2 = Wn();
1958
- L(e5) && (e5 = [e5]);
1957
+ let n2 = Gn();
1958
+ I(e5) && (e5 = [e5]);
1959
1959
  let r2 = this.options.preload || [], i2 = e5.filter((e6) => r2.indexOf(e6) < 0 && this.services.languageUtils.isSupportedCode(e6));
1960
1960
  return i2.length ? (this.options.preload = r2.concat(i2), this.loadResources((e6) => {
1961
1961
  n2.resolve(), t2 && t2(e6);
@@ -1971,24 +1971,24 @@ var V = class e4 extends dr {
1971
1971
  }
1972
1972
  } catch {
1973
1973
  }
1974
- let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new yr(Mr());
1974
+ let t2 = `ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`), n2 = this.services?.languageUtils || new br(Nr());
1975
1975
  return e5.toLowerCase().indexOf(`-latn`) > 1 ? `ltr` : t2.indexOf(n2.getLanguagePartFromCode(e5)) > -1 || e5.toLowerCase().indexOf(`-arab`) > 1 ? `rtl` : `ltr`;
1976
1976
  }
1977
1977
  static createInstance(t2 = {}, n2) {
1978
1978
  let r2 = new e4(t2, n2);
1979
1979
  return r2.createInstance = e4.createInstance, r2;
1980
1980
  }
1981
- cloneInstance(t2 = {}, n2 = Pr) {
1981
+ cloneInstance(t2 = {}, n2 = Fr) {
1982
1982
  let r2 = t2.forkResourceStore;
1983
1983
  r2 && delete t2.forkResourceStore;
1984
1984
  let i2 = { ...this.options, ...t2, isClone: true }, a2 = new e4(i2);
1985
1985
  if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e5) => {
1986
1986
  a2[e5] = this[e5];
1987
- }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new fr(Object.keys(this.store.data).reduce((e5, t3) => (e5[t3] = { ...this.store.data[t3] }, e5[t3] = Object.keys(e5[t3]).reduce((n3, r3) => (n3[r3] = { ...e5[t3][r3] }, n3), e5[t3]), e5), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
1988
- let e5 = { ...Mr().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e5 };
1989
- a2.services.interpolator = new Tr(n3);
1987
+ }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new pr(Object.keys(this.store.data).reduce((e5, t3) => (e5[t3] = { ...this.store.data[t3] }, e5[t3] = Object.keys(e5[t3]).reduce((n3, r3) => (n3[r3] = { ...e5[t3][r3] }, n3), e5[t3]), e5), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
1988
+ let e5 = { ...Nr().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e5 };
1989
+ a2.services.interpolator = new Er(n3);
1990
1990
  }
1991
- return a2.translator = new vr(a2.services, i2), a2.translator.on(`*`, (e5, ...t3) => {
1991
+ return a2.translator = new yr(a2.services, i2), a2.translator.on(`*`, (e5, ...t3) => {
1992
1992
  a2.emit(e5, ...t3);
1993
1993
  }), a2.init(i2, n2), a2.translator.options = i2, a2.translator.backendConnector.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, a2;
1994
1994
  }
@@ -1996,14 +1996,14 @@ var V = class e4 extends dr {
1996
1996
  return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage };
1997
1997
  }
1998
1998
  }.createInstance();
1999
- V.createInstance, V.dir, V.init, V.loadResources, V.reloadResources, V.use, V.changeLanguage, V.getFixedT, V.t, V.exists, V.setDefaultNamespace, V.hasLoadedNamespace, V.loadNamespaces, V.loadLanguages;
2000
- var Br = function() {
2001
- return Br = Object.assign || function(e5) {
1999
+ B.createInstance, B.dir, B.init, B.loadResources, B.reloadResources, B.use, B.changeLanguage, B.getFixedT, B.t, B.exists, B.setDefaultNamespace, B.hasLoadedNamespace, B.loadNamespaces, B.loadLanguages;
2000
+ var Vr = function() {
2001
+ return Vr = Object.assign || function(e5) {
2002
2002
  for (var t2, n2 = 1, r2 = arguments.length; n2 < r2; n2++) for (var i2 in t2 = arguments[n2], t2) Object.prototype.hasOwnProperty.call(t2, i2) && (e5[i2] = t2[i2]);
2003
2003
  return e5;
2004
- }, Br.apply(this, arguments);
2004
+ }, Vr.apply(this, arguments);
2005
2005
  };
2006
- function Vr(e5) {
2006
+ function Hr(e5) {
2007
2007
  var t2 = typeof Symbol == `function` && Symbol.iterator, n2 = t2 && e5[t2], r2 = 0;
2008
2008
  if (n2) return n2.call(e5);
2009
2009
  if (e5 && typeof e5.length == `number`) return { next: function() {
@@ -2011,7 +2011,7 @@ function Vr(e5) {
2011
2011
  } };
2012
2012
  throw TypeError(t2 ? `Object is not iterable.` : `Symbol.iterator is not defined.`);
2013
2013
  }
2014
- function H(e5, t2) {
2014
+ function V(e5, t2) {
2015
2015
  var n2 = typeof Symbol == `function` && e5[Symbol.iterator];
2016
2016
  if (!n2) return e5;
2017
2017
  var r2 = n2.call(e5), i2, a2 = [], o2;
@@ -2028,57 +2028,57 @@ function H(e5, t2) {
2028
2028
  }
2029
2029
  return a2;
2030
2030
  }
2031
- function Hr(e5, t2, n2) {
2031
+ function Ur(e5, t2, n2) {
2032
2032
  if (n2 || arguments.length === 2) for (var r2 = 0, i2 = t2.length, a2; r2 < i2; r2++) (a2 || !(r2 in t2)) && (a2 ||= Array.prototype.slice.call(t2, 0, r2), a2[r2] = t2[r2]);
2033
2033
  return e5.concat(a2 || Array.prototype.slice.call(t2));
2034
2034
  }
2035
- var Ur = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
2036
- var Wr = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
2037
- var Gr = (e5) => Wr[e5];
2038
- var Kr = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e5) => e5.replace(Ur, Gr), transDefaultProps: void 0 };
2039
- var qr = (e5 = {}) => {
2040
- Kr = { ...Kr, ...e5 };
2035
+ var Wr = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
2036
+ var Gr = { "&amp;": `&`, "&#38;": `&`, "&lt;": `<`, "&#60;": `<`, "&gt;": `>`, "&#62;": `>`, "&apos;": `'`, "&#39;": `'`, "&quot;": `"`, "&#34;": `"`, "&nbsp;": ` `, "&#160;": ` `, "&copy;": `\xA9`, "&#169;": `\xA9`, "&reg;": `\xAE`, "&#174;": `\xAE`, "&hellip;": `\u2026`, "&#8230;": `\u2026`, "&#x2F;": `/`, "&#47;": `/` };
2037
+ var Kr = (e5) => Gr[e5];
2038
+ var qr = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e5) => e5.replace(Wr, Kr), transDefaultProps: void 0 };
2039
+ var Jr = (e5 = {}) => {
2040
+ qr = { ...qr, ...e5 };
2041
2041
  };
2042
- var Jr = { type: `3rdParty`, init(e5) {
2043
- qr(e5.options.react);
2042
+ var Yr = { type: `3rdParty`, init(e5) {
2043
+ Jr(e5.options.react);
2044
2044
  } };
2045
- var Yr = /* @__PURE__ */ new Map();
2046
- var Xr = 500;
2047
- var Zr;
2048
- function Qr() {
2049
- if (Zr === void 0) try {
2050
- Zr = new Intl.NumberFormat(`en-US`, { useGrouping: false, maximumFractionDigits: 0 }).format(`9007199254740993`) === `9007199254740993`;
2045
+ var Xr = /* @__PURE__ */ new Map();
2046
+ var Zr = 500;
2047
+ var Qr;
2048
+ function $r() {
2049
+ if (Qr === void 0) try {
2050
+ Qr = new Intl.NumberFormat(`en-US`, { useGrouping: false, maximumFractionDigits: 0 }).format(`9007199254740993`) === `9007199254740993`;
2051
2051
  } catch {
2052
- Zr = false;
2052
+ Qr = false;
2053
2053
  }
2054
- return Zr;
2055
- }
2056
- var $r = 15;
2057
- function ei(e5) {
2058
- if (!(typeof e5 != `string` || Qr()) && e5.replace(/[^0-9]/g, ``).replace(/^0+/, ``).length > $r) throw Error(`Cannot format the amount '${e5}' exactly: this runtime's Intl implementation predates ES2023 string support and would lose precision. Use a runtime with ES2023 Intl support (for example Node 20+), or pass a value within 15 significant digits.`);
2054
+ return Qr;
2059
2055
  }
2060
- function ti(e5, t2, n2) {
2061
- return `${e5}|${t2}|${Object.entries(n2).filter(([, e6]) => e6 !== void 0).sort(([e6], [t3]) => e6 < t3 ? -1 : 1).map(([e6, t3]) => `${e6}=${String(t3)}`).join(`&`)}`;
2056
+ var ei = 15;
2057
+ function ti(e5) {
2058
+ if (!(typeof e5 != `string` || $r()) && e5.replace(/[^0-9]/g, ``).replace(/^0+/, ``).length > ei) throw Error(`Cannot format the amount '${e5}' exactly: this runtime's Intl implementation predates ES2023 string support and would lose precision. Use a runtime with ES2023 Intl support (for example Node 20+), or pass a value within 15 significant digits.`);
2062
2059
  }
2063
2060
  function ni(e5, t2, n2) {
2064
- let r2 = ti(e5, t2, n2), i2 = Yr.get(r2);
2065
- return i2 || (i2 = new Intl.NumberFormat(e5, { ...n2, style: `currency`, currency: t2 }), Yr.size >= Xr && Yr.clear(), Yr.set(r2, i2)), i2;
2061
+ return `${e5}|${t2}|${Object.entries(n2).filter(([, e6]) => e6 !== void 0).sort(([e6], [t3]) => e6 < t3 ? -1 : 1).map(([e6, t3]) => `${e6}=${String(t3)}`).join(`&`)}`;
2066
2062
  }
2067
- function ri(e5, { value: t2, currency: n2 }, r2 = {}) {
2068
- return ei(t2), ni(e5, n2, r2).format(t2);
2063
+ function ri(e5, t2, n2) {
2064
+ let r2 = ni(e5, t2, n2), i2 = Xr.get(r2);
2065
+ return i2 || (i2 = new Intl.NumberFormat(e5, { ...n2, style: `currency`, currency: t2 }), Xr.size >= Zr && Xr.clear(), Xr.set(r2, i2)), i2;
2069
2066
  }
2070
2067
  function ii(e5, { value: t2, currency: n2 }, r2 = {}) {
2071
- return ei(t2), ni(e5, n2, r2).formatToParts(t2);
2068
+ return ti(t2), ri(e5, n2, r2).format(t2);
2069
+ }
2070
+ function ai(e5, { value: t2, currency: n2 }, r2 = {}) {
2071
+ return ti(t2), ri(e5, n2, r2).formatToParts(t2);
2072
2072
  }
2073
- function ai(e5) {
2074
- return _n().find((e6) => e6.primary)?.id ?? e5;
2073
+ function oi(e5) {
2074
+ return vn().find((e6) => e6.primary)?.id ?? e5;
2075
2075
  }
2076
- function oi(e5, t2) {
2076
+ function si(e5, t2) {
2077
2077
  let { locale: n2, ...r2 } = t2 ?? {}, i2 = n2 ?? e5.essentials?.locale;
2078
2078
  if (!i2) throw Error(`Host locale is not available on the current host. Make sure to use an updated version of the host initialization package.`);
2079
2079
  return { locale: i2, formatOptions: r2 };
2080
2080
  }
2081
- var si = Un({ getLanguage: (e5) => () => {
2081
+ var ci = Wn({ getLanguage: (e5) => () => {
2082
2082
  let t2 = e5.essentials?.language;
2083
2083
  if (!t2) throw Error(`Host language is not available on the current host. Make sure to use an updated version of the host initialization package.`);
2084
2084
  return t2;
@@ -2087,20 +2087,20 @@ var si = Un({ getLanguage: (e5) => () => {
2087
2087
  if (!t2) throw Error(`Host locale is not available on the current host. Make sure to use an updated version of the host initialization package.`);
2088
2088
  return t2;
2089
2089
  }, formatCurrency: (e5) => (t2, n2) => {
2090
- let { locale: r2, formatOptions: i2 } = oi(e5, n2);
2091
- return ri(r2, t2, i2);
2092
- }, formatCurrencyToParts: (e5) => (t2, n2) => {
2093
- let { locale: r2, formatOptions: i2 } = oi(e5, n2);
2090
+ let { locale: r2, formatOptions: i2 } = si(e5, n2);
2094
2091
  return ii(r2, t2, i2);
2092
+ }, formatCurrencyToParts: (e5) => (t2, n2) => {
2093
+ let { locale: r2, formatOptions: i2 } = si(e5, n2);
2094
+ return ai(r2, t2, i2);
2095
2095
  }, getTranslationFunction: (e5) => () => {
2096
2096
  let t2 = e5.translations?.();
2097
2097
  if (!t2) throw Error(`Host translation resources are not available.`);
2098
- let n2 = V.createInstance(), r2 = ai(e5.essentials?.language) || `en`, i2 = { lng: e5.essentials?.language || r2, fallbackLng: r2, resources: t2 };
2099
- return n2.use(Jr).init(i2, (e6) => {
2098
+ let n2 = B.createInstance(), r2 = oi(e5.essentials?.language) || `en`, i2 = { lng: e5.essentials?.language || r2, fallbackLng: r2, resources: t2 };
2099
+ return n2.use(Yr).init(i2, (e6) => {
2100
2100
  if (e6) throw e6;
2101
2101
  }), n2.t.bind(n2);
2102
2102
  } });
2103
- var ci = class {
2103
+ var li = class {
2104
2104
  constructor(e5) {
2105
2105
  this.message = e5, this.captureException = () => {
2106
2106
  console.error(this.message);
@@ -2115,42 +2115,42 @@ var ci = class {
2115
2115
  };
2116
2116
  }
2117
2117
  };
2118
- var li = (e5) => new ci(e5);
2119
- var ui = Un({ getMonitoringClient: (e5) => () => e5.getMonitoringClient ? e5.getMonitoringClient() : li(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
2120
- var U = { service: `service`, services: `services`, categories: `categories`, locations: `locations`, sessions: `sessions`, timeSlots: `time-slots`, serviceAddOns: `service-addons`, bookingsSettings: `bookings-settings`, serviceCta: `service-cta`, preferences: `preferences`, bookingSummary: `booking-summary`, bookingCheckout: `booking-checkout`, formValues: `form-values`, paymentOptions: `payment-options`, seo: `seo`, warmup: `warmup`, reschedule: `reschedule` };
2121
- function di(e5) {
2118
+ var ui = (e5) => new li(e5);
2119
+ var di = Wn({ getMonitoringClient: (e5) => () => e5.getMonitoringClient ? e5.getMonitoringClient() : ui(`Host monitoring client is not available on the current host. Make sure to use an updated version of the host initialization package.`) });
2120
+ var H = { service: `service`, services: `services`, categories: `categories`, locations: `locations`, sessions: `sessions`, timeSlots: `time-slots`, serviceAddOns: `service-addons`, bookingsSettings: `bookings-settings`, serviceCta: `service-cta`, preferences: `preferences`, bookingSummary: `booking-summary`, bookingCheckout: `booking-checkout`, formValues: `form-values`, paymentOptions: `payment-options`, seo: `seo`, warmup: `warmup`, reschedule: `reschedule` };
2121
+ function fi(e5) {
2122
2122
  try {
2123
- let t2 = ui.getMonitoringClient?.();
2123
+ let t2 = di.getMonitoringClient?.();
2124
2124
  return t2 && typeof t2[e5] == `function` ? t2 : null;
2125
2125
  } catch {
2126
2126
  return null;
2127
2127
  }
2128
2128
  }
2129
- function fi(e5, { feature: t2, action: n2, level: r2 = `error`, contexts: i2 }) {
2130
- let a2 = di(`captureException`);
2129
+ function pi(e5, { feature: t2, action: n2, level: r2 = `error`, contexts: i2 }) {
2130
+ let a2 = fi(`captureException`);
2131
2131
  if (!a2) return;
2132
2132
  let o2 = e5 instanceof Error ? e5 : Error(String(e5));
2133
2133
  a2.captureException(o2, { level: r2, tags: { feature: t2, action: n2 }, ...i2 ? { contexts: i2 } : {} });
2134
2134
  }
2135
- function pi(e5, { feature: t2, tags: n2 }, r2) {
2136
- let i2 = di(`startSpanManual`);
2135
+ function mi(e5, { feature: t2, tags: n2 }, r2) {
2136
+ let i2 = fi(`startSpanManual`);
2137
2137
  if (!i2) return r2;
2138
2138
  let a2 = i2.startSpanManual({ name: e5, tags: { feature: t2, ...n2 } });
2139
2139
  return r2.then(() => a2.end(), (e6) => a2.fail(e6)), r2;
2140
2140
  }
2141
- var mi = class extends import_react.Component {
2141
+ var hi = class extends import_react.Component {
2142
2142
  state = { hasError: false };
2143
2143
  static getDerivedStateFromError() {
2144
2144
  return { hasError: true };
2145
2145
  }
2146
2146
  componentDidCatch(e5, t2) {
2147
- fi(e5, { feature: this.props.feature ?? `service`, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
2147
+ pi(e5, { feature: this.props.feature ?? `service`, action: `render`, contexts: { react: { componentStack: t2.componentStack } } });
2148
2148
  }
2149
2149
  render() {
2150
2150
  return this.state.hasError ? this.props.fallback : this.props.children;
2151
2151
  }
2152
2152
  };
2153
- function hi(e5) {
2153
+ function gi(e5) {
2154
2154
  let t2 = e5;
2155
2155
  return t2.__state || (t2.__state = { status: `pending` }, t2.then((e6) => {
2156
2156
  t2.__state = { status: `fulfilled`, value: e6 };
@@ -2158,42 +2158,42 @@ function hi(e5) {
2158
2158
  t2.__state = { status: `rejected`, reason: e6 };
2159
2159
  })), t2.__state;
2160
2160
  }
2161
- function gi(e5) {
2162
- let t2 = hi(e5);
2161
+ function _i(e5) {
2162
+ let t2 = gi(e5);
2163
2163
  if (t2.status === `fulfilled`) return t2.value;
2164
2164
  throw t2.status === `rejected` ? t2.reason : e5;
2165
2165
  }
2166
- function _i(e5) {
2166
+ function vi(e5) {
2167
2167
  let t2 = Promise.resolve(e5);
2168
2168
  return t2.__state = { status: `fulfilled`, value: e5 }, t2;
2169
2169
  }
2170
- var vi = /* @__PURE__ */ new WeakMap();
2171
- function yi(e5, t2, n2) {
2172
- let r2 = vi.get(e5);
2173
- r2 || (r2 = /* @__PURE__ */ new WeakMap(), vi.set(e5, r2));
2170
+ var yi = /* @__PURE__ */ new WeakMap();
2171
+ function bi(e5, t2, n2) {
2172
+ let r2 = yi.get(e5);
2173
+ r2 || (r2 = /* @__PURE__ */ new WeakMap(), yi.set(e5, r2));
2174
2174
  let i2 = r2.get(t2);
2175
2175
  i2 || (i2 = /* @__PURE__ */ new WeakMap(), r2.set(t2, i2));
2176
2176
  let a2 = i2.get(n2);
2177
2177
  if (!a2) {
2178
2178
  let r3 = e5;
2179
- a2 = r3.__state?.status === `fulfilled` ? _i(t2(r3.__state.value)) : r3.__state?.status === `rejected` ? _i(n2(r3.__state.reason)) : e5.then(t2, n2), i2.set(n2, a2);
2179
+ a2 = r3.__state?.status === `fulfilled` ? vi(t2(r3.__state.value)) : r3.__state?.status === `rejected` ? vi(n2(r3.__state.reason)) : e5.then(t2, n2), i2.set(n2, a2);
2180
2180
  }
2181
2181
  return a2;
2182
2182
  }
2183
- function W(e5) {
2183
+ function U(e5) {
2184
2184
  return e5;
2185
2185
  }
2186
- var bi = W(`@wix/site-service-url`);
2187
- var xi = `appSectionParams`;
2188
- function Si(e5) {
2189
- let t2 = e5.searchParams.get(xi);
2186
+ var xi = U(`@wix/site-service-url`);
2187
+ var Si = `appSectionParams`;
2188
+ function Ci(e5) {
2189
+ let t2 = e5.searchParams.get(Si);
2190
2190
  if (t2 === null) return e5;
2191
2191
  let n2 = new URL(e5);
2192
- n2.searchParams.delete(xi);
2193
- for (let [e6, r2] of Object.entries(Ci(t2))) typeof r2 == `string` && !n2.searchParams.has(e6) && n2.searchParams.set(e6, r2);
2192
+ n2.searchParams.delete(Si);
2193
+ for (let [e6, r2] of Object.entries(wi(t2))) typeof r2 == `string` && !n2.searchParams.has(e6) && n2.searchParams.set(e6, r2);
2194
2194
  return n2;
2195
2195
  }
2196
- function Ci(e5) {
2196
+ function wi(e5) {
2197
2197
  try {
2198
2198
  let t2 = JSON.parse(e5);
2199
2199
  return t2 && typeof t2 == `object` && !Array.isArray(t2) ? t2 : {};
@@ -2201,16 +2201,16 @@ function Ci(e5) {
2201
2201
  return {};
2202
2202
  }
2203
2203
  }
2204
- var wi = `bookings-uou:url-change`;
2205
- var Ti = (e5) => {
2204
+ var Ti = `bookings-uou:url-change`;
2205
+ var Ei = (e5) => {
2206
2206
  let t2 = new URL(e5);
2207
2207
  return t2.searchParams.sort(), t2.href;
2208
2208
  };
2209
- function Ei(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2209
+ function Di(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2210
2210
  let r2 = globalThis.window;
2211
2211
  if (!r2?.history) return;
2212
2212
  let i2 = new URL(r2.location.href);
2213
- if (Ti(i2) === Ti(e5)) return;
2213
+ if (Ei(i2) === Ei(e5)) return;
2214
2214
  let a2 = { scrollY: r2.scrollY };
2215
2215
  if (n2) r2.history.replaceState(a2, ``, e5.href);
2216
2216
  else {
@@ -2221,71 +2221,71 @@ function Ei(e5, { disableScrollToTop: t2, skipHistory: n2 } = {}) {
2221
2221
  return;
2222
2222
  }
2223
2223
  }
2224
- r2.dispatchEvent(new Event(wi));
2224
+ r2.dispatchEvent(new Event(Ti));
2225
2225
  }
2226
- function Di(e5) {
2226
+ function Oi(e5) {
2227
2227
  let t2 = globalThis.window;
2228
- return t2 ? (t2.addEventListener(wi, e5), t2.addEventListener(`popstate`, e5), () => {
2229
- t2.removeEventListener(wi, e5), t2.removeEventListener(`popstate`, e5);
2228
+ return t2 ? (t2.addEventListener(Ti, e5), t2.addEventListener(`popstate`, e5), () => {
2229
+ t2.removeEventListener(Ti, e5), t2.removeEventListener(`popstate`, e5);
2230
2230
  }) : () => {
2231
2231
  };
2232
2232
  }
2233
- var Oi = (e5) => {
2233
+ var ki = (e5) => {
2234
2234
  try {
2235
2235
  return decodeURIComponent(e5);
2236
2236
  } catch {
2237
2237
  return e5;
2238
2238
  }
2239
2239
  };
2240
- function ki(e5, t2) {
2240
+ function Ai(e5, t2) {
2241
2241
  let n2 = t2 ? new URL(t2).pathname : `/`;
2242
- return `./${Oi(new URL(e5).pathname.replace(n2, ``).replace(/^\/|\/$/g, ``))}`;
2243
- }
2244
- function Ai() {
2245
- let e5 = (0, import_services_manager_react.useService)(bi), t2 = (0, import_react.useCallback)(() => e5.currentUrl, [e5]), n2 = (0, import_react.useSyncExternalStore)(Di, t2, t2), r2 = (0, import_react.useMemo)(() => Si(new URL(n2)), [n2]), a2 = e5.siteUrl.replace(/\/$/, ``);
2246
- return { pathname: r2.pathname, search: r2.search, searchParams: r2.searchParams, href: r2.href, getParsedUrl: () => Si(new URL(e5.currentUrl)), getRelativeUrl: () => ki(e5.currentUrl, a2), getExternalBaseUrl: () => a2, pushUrl: Ei };
2247
- }
2248
- var ji = W(`@wix/site-service-editor-context`);
2249
- var Mi = W(`@wix/site-service-pages`);
2250
- var Ni = W(`@wix/site-service-router`);
2251
- var Pi = W(`@wix/site-service-renderer-configuration`);
2252
- var Fi = `13d21c63-b5ec-5912-8397-c3a5ddb27a97`;
2253
- var Ii = `shopping_cart`;
2254
- var Li = `thank_you_page`;
2255
- var G = function(e5) {
2242
+ return `./${ki(new URL(e5).pathname.replace(n2, ``).replace(/^\/|\/$/g, ``))}`;
2243
+ }
2244
+ function ji() {
2245
+ let e5 = (0, import_services_manager_react.useService)(xi), t2 = (0, import_react.useCallback)(() => e5.currentUrl, [e5]), n2 = (0, import_react.useSyncExternalStore)(Oi, t2, t2), r2 = (0, import_react.useMemo)(() => Ci(new URL(n2)), [n2]), a2 = e5.siteUrl.replace(/\/$/, ``);
2246
+ return { pathname: r2.pathname, search: r2.search, searchParams: r2.searchParams, href: r2.href, getParsedUrl: () => Ci(new URL(e5.currentUrl)), getRelativeUrl: () => Ai(e5.currentUrl, a2), getExternalBaseUrl: () => a2, pushUrl: Di };
2247
+ }
2248
+ var Mi = U(`@wix/site-service-editor-context`);
2249
+ var Ni = U(`@wix/site-service-pages`);
2250
+ var Pi = U(`@wix/site-service-router`);
2251
+ var Fi = U(`@wix/site-service-renderer-configuration`);
2252
+ var Ii = `13d21c63-b5ec-5912-8397-c3a5ddb27a97`;
2253
+ var Li = `shopping_cart`;
2254
+ var Ri = `thank_you_page`;
2255
+ var W = function(e5) {
2256
2256
  return e5.BOOK_ONLINE = `bookingsBookOnline`, e5.SERVICE_PAGE = `bookingsServicePage`, e5.CALENDAR_PAGE = `bookingsCalendar`, e5.FORM_PAGE = `bookingsForm`, e5;
2257
2257
  }({});
2258
- var Ri = `{{(.*?)}}`;
2259
- var zi = `[{{}}]`;
2260
- var Bi = `([^/]+)`;
2261
- var K;
2258
+ var zi = `{{(.*?)}}`;
2259
+ var Bi = `[{{}}]`;
2260
+ var Vi = `([^/]+)`;
2261
+ var G;
2262
2262
  (function(e5) {
2263
2263
  e5.product_page = `product_page`, e5.blog = `blog`, e5.post = `post`, e5.forum = `forum`, e5.group = `group`, e5.bookings = `Booking Service Page`, e5.challenges = `challenge_page`;
2264
- })(K ||= {});
2265
- var q;
2264
+ })(G ||= {});
2265
+ var K;
2266
2266
  (function(e5) {
2267
2267
  e5.PRODUCT_PAGE = `wix.stores.sub_pages.product`, e5.BLOG_POST = `wix.blog.sub_pages.post`, e5.BLOG_POST_EDIT = `wix.blog.sub_pages.post.edit`, e5.BLOG_POST_PREVIEW = `wix.blog.sub_pages.post.preview`, e5.BLOG_CATEGORY = `wix.blog.sub_pages.category`, e5.FORUM_CATEGORY = `wix.forum.sub_pages.category`, e5.FORUM_CATEGORY_PAGINATION = `wix.forum.sub_pages.category.pagination`, e5.FORUM_CATEGORY_CREATE_POST = `wix.forum.sub_pages.category.create-post`, e5.FORUM_CATEGORY_CREATE_QUESTION = `wix.forum.sub_pages.category.create-question`, e5.FORUM_POST = `wix.forum.sub_pages.post`, e5.FORUM_POST_EDIT = `wix.forum.sub_pages.post.edit`, e5.FORUM_POST_PAGINATION = `wix.forum.sub_pages.post.pagination`, e5.FORUM_POST_DEEP_LINK_DATA = `wix.forum.sub_pages.post.deep-link-data`, e5.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA = `wix.forum.sub_pages.post.pagination-and-deep-link-data`, e5.GROUP = `wix.groups.sub_pages.group`, e5.GROUP_POST = `wix.groups.sub_pages.post`, e5.BOOKINGS_SERVICE = `wix.bookings.sub_pages.service_page`, e5.CHALLENGES_PAGE = `wix.online_programs.sub_pages.online_program`;
2268
- })(q ||= {});
2269
- var Vi = {};
2270
- var Hi = (Vi[q.PRODUCT_PAGE] = { variables: [`slug`], required: [`slug`] }, Vi);
2271
- var J = `{{main-mapping}}`;
2272
- var Ui = {};
2273
- var Wi;
2274
- var Gi = (Ui[q.BLOG_POST] = { variables: [`slug`], required: [`slug`], subMappings: (Wi = {}, Wi[q.BLOG_POST_EDIT] = { defaultMapping: `${J}/edit` }, Wi[q.BLOG_POST_PREVIEW] = { required: [`instance`], defaultMapping: `${J}/preview/{{instance}}` }, Wi) }, Ui);
2275
- var Ki = {};
2276
- var qi = (Ki[q.BLOG_CATEGORY] = { variables: [`slug`], required: [`slug`], defaultPrefix: `categories` }, Ki);
2277
- var Ji = {};
2278
- var Yi;
2268
+ })(K ||= {});
2269
+ var Hi = {};
2270
+ var Ui = (Hi[K.PRODUCT_PAGE] = { variables: [`slug`], required: [`slug`] }, Hi);
2271
+ var q = `{{main-mapping}}`;
2272
+ var Wi = {};
2273
+ var Gi;
2274
+ var Ki = (Wi[K.BLOG_POST] = { variables: [`slug`], required: [`slug`], subMappings: (Gi = {}, Gi[K.BLOG_POST_EDIT] = { defaultMapping: `${q}/edit` }, Gi[K.BLOG_POST_PREVIEW] = { required: [`instance`], defaultMapping: `${q}/preview/{{instance}}` }, Gi) }, Wi);
2275
+ var qi = {};
2276
+ var Ji = (qi[K.BLOG_CATEGORY] = { variables: [`slug`], required: [`slug`], defaultPrefix: `categories` }, qi);
2277
+ var Yi = {};
2278
+ var J;
2279
2279
  var Xi;
2280
- var Zi = (Ji[q.FORUM_POST] = { variables: [`categorySlug`, `postSlug`], required: [`categorySlug`, `postSlug`], subMappings: (Yi = {}, Yi[q.FORUM_POST_EDIT] = { defaultMapping: `${J}/edit` }, Yi[q.FORUM_POST_PAGINATION] = { required: [`page`], defaultMapping: `${J}/p-{{page}}` }, Yi[q.FORUM_POST_DEEP_LINK_DATA] = { required: [`deepLinkData`], defaultMapping: `${J}/dl-{{deepLinkData}}` }, Yi[q.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA] = { required: [`page`, `deepLinkData`], defaultMapping: `${J}/p-{{page}}/dl-{{deepLinkData}}` }, Yi) }, Ji[q.FORUM_CATEGORY] = { variables: [`slug`], required: [`slug`], subMappings: (Xi = {}, Xi[q.FORUM_CATEGORY_CREATE_POST] = { defaultMapping: `${J}/create-post` }, Xi[q.FORUM_CATEGORY_CREATE_QUESTION] = { defaultMapping: `${J}/create-question` }, Xi[q.FORUM_CATEGORY_PAGINATION] = { required: [`page`], defaultMapping: `${J}/p-{{page}}` }, Xi) }, Ji);
2280
+ var Zi = (Yi[K.FORUM_POST] = { variables: [`categorySlug`, `postSlug`], required: [`categorySlug`, `postSlug`], subMappings: (J = {}, J[K.FORUM_POST_EDIT] = { defaultMapping: `${q}/edit` }, J[K.FORUM_POST_PAGINATION] = { required: [`page`], defaultMapping: `${q}/p-{{page}}` }, J[K.FORUM_POST_DEEP_LINK_DATA] = { required: [`deepLinkData`], defaultMapping: `${q}/dl-{{deepLinkData}}` }, J[K.FORUM_POST_PAGINATION_AND_DEEP_LINK_DATA] = { required: [`page`, `deepLinkData`], defaultMapping: `${q}/p-{{page}}/dl-{{deepLinkData}}` }, J) }, Yi[K.FORUM_CATEGORY] = { variables: [`slug`], required: [`slug`], subMappings: (Xi = {}, Xi[K.FORUM_CATEGORY_CREATE_POST] = { defaultMapping: `${q}/create-post` }, Xi[K.FORUM_CATEGORY_CREATE_QUESTION] = { defaultMapping: `${q}/create-question` }, Xi[K.FORUM_CATEGORY_PAGINATION] = { required: [`page`], defaultMapping: `${q}/p-{{page}}` }, Xi) }, Yi);
2281
2281
  var Qi = {};
2282
- var $i = (Qi[q.GROUP] = { variables: [`groupId`, `tabName`], required: [`groupId`, `tabName`] }, Qi[q.GROUP_POST] = { variables: [`groupId`, `tabName`, `postId`], required: [`groupId`, `tabName`, `postId`] }, Qi);
2282
+ var $i = (Qi[K.GROUP] = { variables: [`groupId`, `tabName`], required: [`groupId`, `tabName`] }, Qi[K.GROUP_POST] = { variables: [`groupId`, `tabName`, `postId`], required: [`groupId`, `tabName`, `postId`] }, Qi);
2283
2283
  var ea = {};
2284
- var ta = (ea[q.BOOKINGS_SERVICE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `service-page` }, ea);
2284
+ var ta = (ea[K.BOOKINGS_SERVICE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `service-page` }, ea);
2285
2285
  var na = {};
2286
- var ra = (na[q.CHALLENGES_PAGE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `challenge-page` }, na);
2286
+ var ra = (na[K.CHALLENGES_PAGE] = { variables: [`slug`], required: [`slug`], defaultPrefix: `challenge-page` }, na);
2287
2287
  var Y = {};
2288
- var ia = (Y[K.product_page] = Hi, Y[K.post] = Gi, Y[K.blog] = qi, Y[K.forum] = Zi, Y[K.group] = $i, Y[K.bookings] = ta, Y[K.challenges] = ra, Y);
2288
+ var ia = (Y[G.product_page] = Ui, Y[G.post] = Ki, Y[G.blog] = Ji, Y[G.forum] = Zi, Y[G.group] = $i, Y[G.bookings] = ta, Y[G.challenges] = ra, Y);
2289
2289
  var aa = function(e5) {
2290
2290
  return Object.values(oa()).some(function(t2) {
2291
2291
  return !!t2?.subMappings?.[e5];
@@ -2293,7 +2293,7 @@ var aa = function(e5) {
2293
2293
  };
2294
2294
  var oa = function() {
2295
2295
  return Object.values(ia).reduce(function(e5, t2) {
2296
- return Br(Br({}, e5), t2);
2296
+ return Vr(Vr({}, e5), t2);
2297
2297
  }, {}) || {};
2298
2298
  };
2299
2299
  var sa = function(e5) {
@@ -2302,26 +2302,26 @@ var sa = function(e5) {
2302
2302
  };
2303
2303
  var ca = function(e5) {
2304
2304
  return Object.entries(ia).filter(function(t2) {
2305
- var n2 = H(t2, 2)[1];
2305
+ var n2 = V(t2, 2)[1];
2306
2306
  return Object.keys(n2).includes(e5);
2307
2307
  }).map(function(e6) {
2308
- return H(e6, 1)[0];
2308
+ return V(e6, 1)[0];
2309
2309
  })[0];
2310
2310
  };
2311
2311
  var la = function(e5) {
2312
2312
  return Object.entries(oa()).find(function(t2) {
2313
- var n2 = H(t2, 2);
2313
+ var n2 = V(t2, 2);
2314
2314
  return n2[0], !!n2[1]?.subMappings?.[e5];
2315
2315
  });
2316
2316
  };
2317
2317
  var ua = function(e5) {
2318
2318
  var t2 = [];
2319
2319
  if (aa(e5)) {
2320
- var n2 = H(la(e5), 2);
2320
+ var n2 = V(la(e5), 2);
2321
2321
  n2[0];
2322
2322
  var r2 = n2[1];
2323
- t2.push.apply(t2, Hr(Hr([], H(r2?.required || []), false), H(r2?.subMappings?.[e5]?.required || []), false));
2324
- } else t2.push.apply(t2, Hr([], H(sa(e5)?.required || []), false));
2323
+ t2.push.apply(t2, Ur(Ur([], V(r2?.required || []), false), V(r2?.subMappings?.[e5]?.required || []), false));
2324
+ } else t2.push.apply(t2, Ur([], V(sa(e5)?.required || []), false));
2325
2325
  return t2;
2326
2326
  };
2327
2327
  var da = function(e5, t2) {
@@ -2333,7 +2333,7 @@ var da = function(e5, t2) {
2333
2333
  var fa = function(e5, t2) {
2334
2334
  return Error(`Url Mappings Error - [${e5}]: ${t2}`);
2335
2335
  };
2336
- var pa = Object.values(q);
2336
+ var pa = Object.values(K);
2337
2337
  var ma = fa(`key`, `must be one of: ${pa.toString()}`);
2338
2338
  var ha = function(e5) {
2339
2339
  if (typeof e5 != `string` || !pa.includes(e5)) return ma;
@@ -2361,7 +2361,7 @@ var ba = function(e5) {
2361
2361
  };
2362
2362
  var xa = function(e5) {
2363
2363
  return function(t2) {
2364
- var n2 = new RegExp(zi, `g`), r2 = t2.replace(n2, ``);
2364
+ var n2 = new RegExp(Bi, `g`), r2 = t2.replace(n2, ``);
2365
2365
  return e5?.[r2];
2366
2366
  };
2367
2367
  };
@@ -2371,13 +2371,13 @@ var Sa = function(e5, t2, n2, r2) {
2371
2371
  if (i2) throw i2;
2372
2372
  var a2 = (da(e5, t2) || {}).mapping, o2 = (r2 || {}).baseUrl;
2373
2373
  if (o2 ??= ``, o2 = o2.endsWith(`/`) ? o2?.slice(0, -1) : o2, a2 && typeof a2 == `string`) {
2374
- var s2 = new RegExp(Ri, `g`), c2 = a2.replace(s2, xa(n2));
2374
+ var s2 = new RegExp(zi, `g`), c2 = a2.replace(s2, xa(n2));
2375
2375
  return o2.concat(`/${c2}`);
2376
2376
  }
2377
2377
  };
2378
2378
  var Ca = /[.*+?^$()|]/g;
2379
2379
  var wa = function(e5) {
2380
- var t2 = e5.replace(Ca, `\\$&`).replace(new RegExp(Ri, `g`), Bi);
2380
+ var t2 = e5.replace(Ca, `\\$&`).replace(new RegExp(zi, `g`), Vi);
2381
2381
  return RegExp(`^${t2}$`);
2382
2382
  };
2383
2383
  var Ta = function(e5, t2) {
@@ -2405,7 +2405,7 @@ var ka = function(e5, t2) {
2405
2405
  });
2406
2406
  };
2407
2407
  var Aa = function(e5) {
2408
- return (e5.match(new RegExp(Ri, `g`))?.length || 0) <= 1;
2408
+ return (e5.match(new RegExp(zi, `g`))?.length || 0) <= 1;
2409
2409
  };
2410
2410
  var ja = function(e5) {
2411
2411
  return e5?.split(`/`).every(Aa);
@@ -2417,7 +2417,7 @@ var Na = function(e5, t2) {
2417
2417
  return t2 === void 0 && (t2 = []), function(n2, r2) {
2418
2418
  var i2 = n2.split(`/`), a2 = n2 === r2;
2419
2419
  if (i2.length < 1 || a2) return true;
2420
- var o2 = H(r2.split(`/`), 1)[0], s2 = H(i2, 1)[0];
2420
+ var o2 = V(r2.split(`/`), 1)[0], s2 = V(i2, 1)[0];
2421
2421
  return t2.includes(s2) ? true : e5.every(function(e6) {
2422
2422
  return e6 === o2 || e6 !== s2;
2423
2423
  });
@@ -2438,12 +2438,12 @@ var Fa = function(e5, t2) {
2438
2438
  }), e5);
2439
2439
  };
2440
2440
  var Ia = function(e5) {
2441
- e5 = e5.replace(new RegExp(Ri, `ig`), ``);
2441
+ e5 = e5.replace(new RegExp(zi, `ig`), ``);
2442
2442
  var t2 = new RegExp(/[^\]_.~!*'();:@&=+$,<>\\#^%?`"]/, `g`), n2 = !/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|[\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|[\ud83c[\ude32-\ude3a]|[\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g.test(e5), r2 = !e5.replace(t2, ``);
2443
2443
  return n2 && r2;
2444
2444
  };
2445
2445
  var La = function(e5) {
2446
- var t2 = H(e5, 1)[0], n2 = e5.slice(-1);
2446
+ var t2 = V(e5, 1)[0], n2 = e5.slice(-1);
2447
2447
  return t2 !== `/` && n2 !== `/`;
2448
2448
  };
2449
2449
  var Ra = function(e5, t2) {
@@ -2473,8 +2473,8 @@ var za = function() {
2473
2473
  }, enumerable: false, configurable: true }), e5.prototype.validate = function(e6) {
2474
2474
  var t2, n2;
2475
2475
  try {
2476
- for (var r2 = Vr(this.validators), i2 = r2.next(); !i2.done; i2 = r2.next()) {
2477
- var a2 = H(i2.value, 2), o2 = a2[0], s2 = a2[1], c2 = !!o2(e6, this.validatorProps);
2476
+ for (var r2 = Hr(this.validators), i2 = r2.next(); !i2.done; i2 = r2.next()) {
2477
+ var a2 = V(i2.value, 2), o2 = a2[0], s2 = a2[1], c2 = !!o2(e6, this.validatorProps);
2478
2478
  if (!c2) return { isValid: c2, error: s2 };
2479
2479
  }
2480
2480
  } catch (e7) {
@@ -2491,14 +2491,14 @@ var za = function() {
2491
2491
  }();
2492
2492
  var Ba = function(e5, t2) {
2493
2493
  var n2 = oa()[e5] || { required: [`slug`] }, r2 = n2.required, i2 = n2.defaultPrefix, a2 = {};
2494
- return t2 && typeof t2 == `object` ? (a2.savedPrefix = t2.savedPrefix ?? ``, a2.publishedPrefix = t2.publishedPrefix ?? ``) : (a2.savedPrefix = za.FALLBACK_PATH_PREFIX, a2.publishedPrefix = za.FALLBACK_PATH_PREFIX), { defaultSaved: Hr([a2.savedPrefix, i2], H(r2?.map(function(e6) {
2494
+ return t2 && typeof t2 == `object` ? (a2.savedPrefix = t2.savedPrefix ?? ``, a2.publishedPrefix = t2.publishedPrefix ?? ``) : (a2.savedPrefix = za.FALLBACK_PATH_PREFIX, a2.publishedPrefix = za.FALLBACK_PATH_PREFIX), { defaultSaved: Ur([a2.savedPrefix, i2], V(r2?.map(function(e6) {
2495
2495
  return `{{${e6}}}`;
2496
- })), false).filter(Boolean).join(`/`), defaultPublished: Hr([a2.publishedPrefix, i2], H(r2?.map(function(e6) {
2496
+ })), false).filter(Boolean).join(`/`), defaultPublished: Ur([a2.publishedPrefix, i2], V(r2?.map(function(e6) {
2497
2497
  return `{{${e6}}}`;
2498
2498
  })), false).filter(Boolean).join(`/`) };
2499
2499
  };
2500
2500
  function Va(e5, t2) {
2501
- return t2 ? Sa(e5, q.BOOKINGS_SERVICE, { slug: t2 }, { baseUrl: `` }) : void 0;
2501
+ return t2 ? Sa(e5, K.BOOKINGS_SERVICE, { slug: t2 }, { baseUrl: `` }) : void 0;
2502
2502
  }
2503
2503
  function Ha(e5) {
2504
2504
  if (!e5) return;
@@ -2593,7 +2593,7 @@ var Xa = class extends Ja {
2593
2593
  function Za(e5) {
2594
2594
  let t2 = (n2) => ({ query: n2, async find() {
2595
2595
  try {
2596
- let r2 = e5.requestTransformer(e5.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e5.func(r2), { [We]: a2, [Ge]: o2 } = e5.responseTransformer(i2);
2596
+ let r2 = e5.requestTransformer(e5.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e5.func(r2), { [Ge]: a2, [Ke]: o2 } = e5.responseTransformer(i2);
2597
2597
  if (e5.pagingMethod === `OFFSET`) {
2598
2598
  let e6 = n2;
2599
2599
  return new Xa({ items: a2 ?? [], fetchNextPage: () => t2({ ...e6, paging: { offset: e6.paging.offset + e6.paging.limit, limit: e6.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e6.paging.offset - e6.paging.limit, 0), limit: e6.paging.limit } }).find(), offset: e6.paging.offset, limit: e6.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
@@ -2674,10 +2674,10 @@ function Za(e5) {
2674
2674
  }
2675
2675
  function Q(e5, t2) {
2676
2676
  let n2 = Object.entries(e5).find(([e6]) => e6 === t2 || t2.startsWith(`${e6}.`))?.[0];
2677
- return n2 ? t2.replace(n2, e5[n2]) : qe(t2, { ...e5, ...Ke });
2677
+ return n2 ? t2.replace(n2, e5[n2]) : Je(t2, { ...e5, ...qe });
2678
2678
  }
2679
2679
  function Qa(e5, t2, n2 = {}) {
2680
- let r2 = (r3, i3) => Qa(e5, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [Je(e5, t2)]: n2 };
2680
+ let r2 = (r3, i3) => Qa(e5, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [Ye(e5, t2)]: n2 };
2681
2681
  return { get filter() {
2682
2682
  return i2();
2683
2683
  }, eq: (e6) => r2(`$eq`, e6), ne: (e6) => r2(`$ne`, e6), gt: (e6) => r2(`$gt`, e6), gte: (e6) => r2(`$gte`, e6), lt: (e6) => r2(`$lt`, e6), lte: (e6) => r2(`$lte`, e6), startsWith: (e6) => r2(`$startsWith`, e6), endsWith: (e6) => r2(`$endsWith`, e6), contains: (e6) => r2(`$contains`, e6), in: (e6) => r2(`$in`, e6), nin: (e6) => r2(`$nin`, e6), hasSome: (e6) => r2(`$hasSome`, e6), hasAll: (e6) => r2(`$hasAll`, e6), exists: (e6 = true) => r2(`$exists`, e6), isEmpty: (e6 = true) => r2(`$isEmpty`, e6), isNotEmpty: () => r2(`$ne`, null) };
@@ -2686,14 +2686,14 @@ function $a(e5) {
2686
2686
  return Object.assign((t2) => Qa(t2, e5), { and: (...e6) => ({ filter: { $and: e6.map((e7) => e7.filter) } }), or: (...e6) => ({ filter: { $or: e6.map((e7) => e7.filter) } }), not: (e6) => ({ filter: { $not: e6.filter } }) });
2687
2687
  }
2688
2688
  function eo(e5) {
2689
- return (t2) => ({ asc: () => ({ sort: { fieldName: Je(t2, e5), order: `ASC` } }), desc: () => ({ sort: { fieldName: Je(t2, e5), order: `DESC` } }) });
2689
+ return (t2) => ({ asc: () => ({ sort: { fieldName: Ye(t2, e5), order: `ASC` } }), desc: () => ({ sort: { fieldName: Ye(t2, e5), order: `DESC` } }) });
2690
2690
  }
2691
2691
  function to(e5) {
2692
2692
  return () => {
2693
2693
  let t2 = {}, n2 = { withFilter(e6) {
2694
2694
  return t2 = { ...t2, filter: e6.filter }, n2;
2695
2695
  }, withFields(...r2) {
2696
- return t2 = { ...t2, fields: r2.map((t3) => Je(t3, e5)) }, n2;
2696
+ return t2 = { ...t2, fields: r2.map((t3) => Ye(t3, e5)) }, n2;
2697
2697
  }, withSorting(...e6) {
2698
2698
  return t2 = { ...t2, sort: e6.map((e7) => e7.sort) }, n2;
2699
2699
  }, withPaging(e6) {
@@ -2742,7 +2742,7 @@ function ho(e5, t2) {
2742
2742
  }
2743
2743
  }
2744
2744
  function go(e5) {
2745
- return Pt(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], _: [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "*.dev.wix-code.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "editor._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/bookings/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "bo._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wixbo.ai": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wix-bo.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "www._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/service-options-and-variants` }] } }));
2745
+ return Ft(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], _: [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "*.dev.wix-code.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "editor._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }, { srcPath: `/_api/bookings/v1/service-options-and-variants`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/bookings/v1/serviceOptionsAndVariants`, destPath: `/v1/serviceOptionsAndVariants` }], "bo._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wixbo.ai": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "wix-bo.com": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/serviceOptionsAndVariants` }], "www._base_domain_": [{ srcPath: `/_api/v1/service-options-and-variants`, destPath: `/v1/service-options-and-variants` }] } }));
2746
2746
  }
2747
2747
  var _o = `@wix/auto_sdk_bookings_service-options-and-variants`;
2748
2748
  function vo(e5) {
@@ -2764,22 +2764,22 @@ function yo() {
2764
2764
  }
2765
2765
  }, requestTransformer: (e6) => {
2766
2766
  let t3 = [e6, {}];
2767
- return M({ ...t3?.[1], query: t3?.[0] });
2767
+ return j({ ...t3?.[1], query: t3?.[0] });
2768
2768
  }, responseTransformer: ({ data: e6 }) => {
2769
- let t3 = N(F(e6, []));
2769
+ let t3 = M(P(e6, []));
2770
2770
  return { items: t3?.serviceOptionsAndVariantsList, pagingMetadata: t3?.pagingMetadata };
2771
2771
  }, errorTransformer: (e6) => {
2772
- throw I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2772
+ throw F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2773
2773
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
2774
2774
  }
2775
2775
  async function bo(e5) {
2776
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = vo(M({ query: e5 }));
2776
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = vo(j({ query: e5 }));
2777
2777
  n2?.onSiteCall?.();
2778
2778
  try {
2779
2779
  let e6 = await t2.request(r2);
2780
- return n2?.onSuccess?.(e6), N(e6.data);
2780
+ return n2?.onSuccess?.(e6), M(e6.data);
2781
2781
  } catch (e6) {
2782
- let t3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
2782
+ let t3 = F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
2783
2783
  throw n2?.onError?.(e6), t3;
2784
2784
  }
2785
2785
  }
@@ -2796,19 +2796,19 @@ function Co(e5) {
2796
2796
  }
2797
2797
  return n2;
2798
2798
  }
2799
- var wo = Mt(Co);
2799
+ var wo = Nt(Co);
2800
2800
  function To(e5) {
2801
2801
  if (e5) return e5.url;
2802
2802
  }
2803
2803
  var Eo = [{ path: `services.createdDate` }, { path: `services.updatedDate` }, { path: `services.media.items.image.urlExpirationDate` }, { path: `services.media.mainMedia.image.urlExpirationDate` }, { path: `services.media.coverMedia.image.urlExpirationDate` }, { path: `services.payment.subscription.recurringStartDate` }, { path: `services.bookingPolicy.createdDate` }, { path: `services.bookingPolicy.updatedDate` }, { path: `services.schedule.firstSessionStart` }, { path: `services.schedule.lastSessionEnd` }, { path: `services.staffMembers.mainMedia.image.urlExpirationDate` }, { path: `services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate` }, { path: `services.supportedSlugs.createdDate` }, { path: `services.mainSlug.createdDate` }];
2804
2804
  var Do = [{ path: `services.locations.business.address.geocode.latitude` }, { path: `services.locations.business.address.geocode.longitude` }, { path: `services.locations.custom.address.geocode.latitude` }, { path: `services.locations.custom.address.geocode.longitude` }, { path: `services.locations.calculatedAddress.geocode.latitude` }, { path: `services.locations.calculatedAddress.geocode.longitude` }];
2805
2805
  function Oo(e5) {
2806
- return Pt(Object.assign(e5, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/services-2`, destPath: `` }, { srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www.wixapis.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }, { srcPath: `/bookings/services/v2/bulk/services`, destPath: `/v2/bulk/services` }], "manage._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "editor._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "create.editorx": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], _: [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "bo._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wixbo.ai": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wix-bo.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "api._api_base_domain_": [{ srcPath: `/services-2`, destPath: `` }] } }));
2806
+ return Ft(Object.assign(e5, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/services-2`, destPath: `` }, { srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www.wixapis.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }, { srcPath: `/bookings/services/v2/bulk/services`, destPath: `/v2/bulk/services` }], "manage._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "editor._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], "create.editorx": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }, { srcPath: `/_api/bookings/v2/bulk/services`, destPath: `/v2/bulk/services` }], _: [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "www._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "bo._base_domain_": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wixbo.ai": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "wix-bo.com": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings/v2/services`, destPath: `/v2/services` }], "api._api_base_domain_": [{ srcPath: `/services-2`, destPath: `` }] } }));
2807
2807
  }
2808
2808
  var ko = `@wix/auto_sdk_bookings_services`;
2809
2809
  function Ao(e5) {
2810
2810
  function t2({ host: t3 }) {
2811
- return { entityFqdn: `wix.bookings.services.v2.service`, method: `POST`, methodFqn: `wix.bookings.services.v2.ServicesService.QueryServices`, packageName: ko, migrationOptions: { optInTransformResponse: true }, url: Oo({ protoPath: `/v2/services/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => F(e6, [{ transformFn: P, paths: Eo }, { transformFn: cn, paths: Do }]) };
2811
+ return { entityFqdn: `wix.bookings.services.v2.service`, method: `POST`, methodFqn: `wix.bookings.services.v2.ServicesService.QueryServices`, packageName: ko, migrationOptions: { optInTransformResponse: true }, url: Oo({ protoPath: `/v2/services/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => P(e6, [{ transformFn: N, paths: Eo }, { transformFn: ln, paths: Do }]) };
2812
2812
  }
2813
2813
  return t2;
2814
2814
  }
@@ -2831,22 +2831,22 @@ function Lo(e5) {
2831
2831
  }
2832
2832
  }, requestTransformer: (t3) => {
2833
2833
  let n3 = [t3, e5];
2834
- return M({ ...n3?.[1], query: n3?.[0] });
2834
+ return j({ ...n3?.[1], query: n3?.[0] });
2835
2835
  }, responseTransformer: ({ data: e6 }) => {
2836
- let t3 = N(F(e6, [{ transformFn: Ha, paths: jo }, { transformFn: ln, paths: Mo }, { transformFn: To, paths: No }]));
2836
+ let t3 = M(P(e6, [{ transformFn: Ha, paths: jo }, { transformFn: un, paths: Mo }, { transformFn: To, paths: No }]));
2837
2837
  return { items: t3?.services, pagingMetadata: t3?.pagingMetadata };
2838
2838
  }, errorTransformer: (e6) => {
2839
- throw I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2839
+ throw F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
2840
2840
  }, pagingMethod: `OFFSET`, transformationPaths: {} });
2841
2841
  }
2842
2842
  async function Ro(e5, t2) {
2843
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ao(M({ query: e5, ...t2 }));
2843
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ao(j({ query: e5, ...t2 }));
2844
2844
  r2?.onSiteCall?.();
2845
2845
  try {
2846
2846
  let e6 = await n2.request(i2);
2847
- return r2?.onSuccess?.(e6), N(F(e6.data, [{ transformFn: Ha, paths: jo }, { transformFn: ln, paths: Mo }, { transformFn: To, paths: No }]));
2847
+ return r2?.onSuccess?.(e6), M(P(e6.data, [{ transformFn: Ha, paths: jo }, { transformFn: un, paths: Mo }, { transformFn: To, paths: No }]));
2848
2848
  } catch (e6) {
2849
- let t3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2849
+ let t3 = F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
2850
2850
  throw r2?.onError?.(e6), t3;
2851
2851
  }
2852
2852
  }
@@ -2863,40 +2863,40 @@ function Vo(e5) {
2863
2863
  }
2864
2864
  return n2;
2865
2865
  }
2866
- var Ho = Mt(Vo);
2866
+ var Ho = Nt(Vo);
2867
2867
  var Uo = [{ path: `bookingsSettings.createdDate` }, { path: `bookingsSettings.updatedDate` }];
2868
2868
  var Wo = [{ path: `bookingsSettings.siteProperties.address.coordinates.latitude` }, { path: `bookingsSettings.siteProperties.address.coordinates.longitude` }];
2869
2869
  function Go(e5) {
2870
- return Pt(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "dev._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], _: [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/bookings-settings`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }] } }));
2870
+ return Ft(Object.assign(e5, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "dev._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], _: [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/bookings-settings`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/bookings-settings`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/bookings-settings`, destPath: `` }] } }));
2871
2871
  }
2872
2872
  var Ko = `@wix/auto_sdk_bookings_bookings-settings`;
2873
2873
  function qo(e5) {
2874
2874
  function t2({ host: t3 }) {
2875
- return { entityFqdn: `wix.bookings.v2.bookings_settings`, method: `GET`, methodFqn: `wix.bookings.settings.v2.BookingsSettingsService.GetBookingsSettings`, packageName: Ko, migrationOptions: { optInTransformResponse: true }, url: Go({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Nt(e5), transformResponse: (e6) => F(e6, [{ transformFn: P, paths: Uo }, { transformFn: cn, paths: Wo }]), fallback: [{ method: `GET`, url: Go({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Nt(e5) }] };
2875
+ return { entityFqdn: `wix.bookings.v2.bookings_settings`, method: `GET`, methodFqn: `wix.bookings.settings.v2.BookingsSettingsService.GetBookingsSettings`, packageName: Ko, migrationOptions: { optInTransformResponse: true }, url: Go({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Pt(e5), transformResponse: (e6) => P(e6, [{ transformFn: N, paths: Uo }, { transformFn: ln, paths: Wo }]), fallback: [{ method: `GET`, url: Go({ protoPath: `/v2/settings`, data: e5, host: t3 }), params: Pt(e5) }] };
2876
2876
  }
2877
2877
  return t2;
2878
2878
  }
2879
2879
  var Jo = ((e5) => (e5.BUSINESS_TIME_ZONE = `BUSINESS_TIME_ZONE`, e5.CUSTOMER_TIME_ZONE = `CUSTOMER_TIME_ZONE`, e5))(Jo || {});
2880
2880
  async function Yo() {
2881
- let { httpClient: e5, sideEffects: t2 } = arguments[0], n2 = qo(M({}));
2881
+ let { httpClient: e5, sideEffects: t2 } = arguments[0], n2 = qo(j({}));
2882
2882
  t2?.onSiteCall?.();
2883
2883
  try {
2884
2884
  let r2 = await e5.request(n2);
2885
- return t2?.onSuccess?.(r2), N(r2.data)?.bookingsSettings;
2885
+ return t2?.onSuccess?.(r2), M(r2.data)?.bookingsSettings;
2886
2886
  } catch (e6) {
2887
- let n3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: {}, singleArgumentUnchanged: false }, []);
2887
+ let n3 = F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: {}, singleArgumentUnchanged: false }, []);
2888
2888
  throw t2?.onError?.(e6), n3;
2889
2889
  }
2890
2890
  }
2891
2891
  function Xo(e5) {
2892
2892
  return () => Yo({ httpClient: e5 });
2893
2893
  }
2894
- var Zo = Mt(Xo);
2894
+ var Zo = Nt(Xo);
2895
2895
  var Qo = (e5) => e5 === Po.APPOINTMENT;
2896
2896
  var $o = (e5) => e5.payment?.rateType === Fo.VARIED;
2897
2897
  var es = [`STAFF_MEMBER_DETAILS`, `STAFF_WORKING_HOURS_LOCATIONS`, `DISCOUNT_INFO_DETAILS`];
2898
2898
  function ts() {
2899
- return Ho({ conditionalFields: es }).eq(`appId`, Fi).eq(`hidden`, false);
2899
+ return Ho({ conditionalFields: es }).eq(`appId`, Ii).eq(`hidden`, false);
2900
2900
  }
2901
2901
  async function ns({ limit: e5, offset: t2, categoryId: n2, locationId: r2, serviceIds: i2, categoryIds: a2 }) {
2902
2902
  if (n2 && a2?.length && !a2.includes(n2)) return { services: [], hasMore: false, totalPages: 1 };
@@ -2917,11 +2917,11 @@ function as(e5, t2, n2) {
2917
2917
  function os(e5, t2) {
2918
2918
  switch (e5) {
2919
2919
  case `servicePage`:
2920
- return (t2.slug ? t2.buildCustomServiceUrl(t2.slug) : void 0) ?? as(t2.appSectionUrl, G.SERVICE_PAGE, t2.slug);
2920
+ return (t2.slug ? t2.buildCustomServiceUrl(t2.slug) : void 0) ?? as(t2.appSectionUrl, W.SERVICE_PAGE, t2.slug);
2921
2921
  case `bookingCalendar`:
2922
- return t2.isMultiService ? is(t2.appSectionUrl, G.CALENDAR_PAGE) : as(t2.appSectionUrl, G.CALENDAR_PAGE, t2.slug);
2922
+ return t2.isMultiService ? is(t2.appSectionUrl, W.CALENDAR_PAGE) : as(t2.appSectionUrl, W.CALENDAR_PAGE, t2.slug);
2923
2923
  case `bookingForm`:
2924
- return t2.serviceId ? as(t2.appSectionUrl, G.FORM_PAGE, t2.slug) : null;
2924
+ return t2.serviceId ? as(t2.appSectionUrl, W.FORM_PAGE, t2.slug) : null;
2925
2925
  default:
2926
2926
  return null;
2927
2927
  }
@@ -2931,24 +2931,24 @@ var cs = (e5, t2) => t2 === `/` ? e5 : new URL(`.${t2}`, `${e5}/`).href;
2931
2931
  var ls = (e5, t2, n2) => n2 ? `.${t2}` : us(e5, t2);
2932
2932
  var us = (e5, t2) => e5 ? cs(e5, t2) : t2;
2933
2933
  var ds = () => {
2934
- let { previewMode: e5 } = (0, import_services_manager_react.useService)(ji), t2 = (0, import_services_manager_react.useService)(bi), n2 = t2.siteUrl.replace(/\/$/, ``), { navigateTo: r2 } = (0, import_services_manager_react.useService)(Ni), a2 = (0, import_services_manager_react.useService)(Pi), o2 = (0, import_services_manager_react.useGetService)(), s2 = (0, import_react.useCallback)(async (t3) => {
2934
+ let { previewMode: e5 } = (0, import_services_manager_react.useService)(Mi), t2 = (0, import_services_manager_react.useService)(xi), n2 = t2.siteUrl.replace(/\/$/, ``), { navigateTo: r2 } = (0, import_services_manager_react.useService)(Pi), a2 = (0, import_services_manager_react.useService)(Fi), o2 = (0, import_services_manager_react.useGetService)(), s2 = (0, import_react.useCallback)(async (t3) => {
2935
2935
  let i2 = ls(n2, t3, e5);
2936
2936
  await r2({ href: i2 });
2937
2937
  }, [e5, n2, r2]), c2 = (0, import_react.useCallback)(async (e6) => {
2938
2938
  await r2(ss(e6) ? { href: e6.href, type: `ExternalLink`, target: `_blank` } : { href: e6.href });
2939
- }, [r2]), l2 = (0, import_react.useCallback)((e6) => us(n2, e6), [n2]), u2 = (0, import_react.useCallback)((e6) => t2.appSectionRelativeUrl(Fi, e6), [t2]), d2 = (0, import_react.useCallback)((e6) => Va(a2.urlMappings, e6), [a2]), m2 = (0, import_react.useCallback)((e6, t3) => os(e6, { ...t3, appSectionUrl: u2, buildCustomServiceUrl: d2 }), [u2, d2]), h2 = (0, import_react.useCallback)((e6, t3) => {
2939
+ }, [r2]), l2 = (0, import_react.useCallback)((e6) => us(n2, e6), [n2]), u2 = (0, import_react.useCallback)((e6) => t2.appSectionRelativeUrl(Ii, e6), [t2]), d2 = (0, import_react.useCallback)((e6) => Va(a2.urlMappings, e6), [a2]), m2 = (0, import_react.useCallback)((e6, t3) => os(e6, { ...t3, appSectionUrl: u2, buildCustomServiceUrl: d2 }), [u2, d2]), h2 = (0, import_react.useCallback)((e6, t3) => {
2940
2940
  let r3 = m2(e6, t3);
2941
2941
  return r3 && n2 ? cs(n2, r3) : null;
2942
2942
  }, [m2, n2]), g2 = (0, import_react.useCallback)((e6, t3) => {
2943
2943
  let n3 = m2(e6, t3);
2944
2944
  n3 && s2(n3);
2945
- }, [m2, s2]), _2 = (0, import_react.useCallback)(() => u2(G.FORM_PAGE) || void 0, [u2]), v2 = (0, import_react.useCallback)((e6) => Object.values(o2(Mi).pages).some((t3) => t3.appPageId === e6 && (!t3.appDefinitionId || t3.appDefinitionId === `1380b703-ce81-ff05-f115-39571d94dfcd`)) && t2.appSectionRelativeUrl(`1380b703-ce81-ff05-f115-39571d94dfcd`, e6) || void 0, [t2, o2]);
2946
- return { navigate: s2, navigateToHref: c2, resolvePath: m2, toHref: l2, resolveAbsoluteUrl: h2, navigateTo: g2, getBookingFormPath: _2, getCartPagePath: (0, import_react.useCallback)(() => v2(Ii), [v2]), getThankYouPagePath: (0, import_react.useCallback)((e6) => {
2947
- let t3 = v2(Li);
2945
+ }, [m2, s2]), _2 = (0, import_react.useCallback)(() => u2(W.FORM_PAGE) || void 0, [u2]), v2 = (0, import_react.useCallback)((e6) => Object.values(o2(Ni).pages).some((t3) => t3.appPageId === e6 && (!t3.appDefinitionId || t3.appDefinitionId === `1380b703-ce81-ff05-f115-39571d94dfcd`)) && t2.appSectionRelativeUrl(`1380b703-ce81-ff05-f115-39571d94dfcd`, e6) || void 0, [t2, o2]);
2946
+ return { navigate: s2, navigateToHref: c2, resolvePath: m2, toHref: l2, resolveAbsoluteUrl: h2, navigateTo: g2, getBookingFormPath: _2, getCartPagePath: (0, import_react.useCallback)(() => v2(Li), [v2]), getThankYouPagePath: (0, import_react.useCallback)((e6) => {
2947
+ let t3 = v2(Ri);
2948
2948
  return t3 ? `${t3}/${e6}?origin=bookings` : void 0;
2949
2949
  }, [v2]) };
2950
2950
  };
2951
- var fs = W(`@wix/site-service-warmup-data`);
2951
+ var fs = U(`@wix/site-service-warmup-data`);
2952
2952
  function ps() {
2953
2953
  try {
2954
2954
  return (0, import_services_manager_react.useGetService)();
@@ -2970,7 +2970,7 @@ function hs() {
2970
2970
  try {
2971
2971
  return await e5.get(n2);
2972
2972
  } catch (e6) {
2973
- return fi(e6, { feature: U.warmup, action: `read`, level: `warning`, contexts: { warmup: { key: n2 } } }), null;
2973
+ return pi(e6, { feature: H.warmup, action: `read`, level: `warning`, contexts: { warmup: { key: n2 } } }), null;
2974
2974
  }
2975
2975
  }, set: (n2, r2) => {
2976
2976
  if (t2 && e5) try {
@@ -2979,12 +2979,12 @@ function hs() {
2979
2979
  }
2980
2980
  } };
2981
2981
  }
2982
- var gs = W(`@wix/site-service-locale`);
2983
- var _s = W;
2982
+ var gs = U(`@wix/site-service-locale`);
2983
+ var _s = U;
2984
2984
  var vs = _s(`@wix/viewer-service-multilingual`);
2985
2985
  function ys() {
2986
2986
  try {
2987
- return si.getLanguage() ?? `en`;
2987
+ return ci.getLanguage() ?? `en`;
2988
2988
  } catch {
2989
2989
  return `en`;
2990
2990
  }
@@ -3001,96 +3001,85 @@ function xs() {
3001
3001
  return t2?.multilingualEnabled && t2.currentLocale?.languageCode || e5?.language || ys();
3002
3002
  }
3003
3003
  function Ss() {
3004
- return (0, import_services_manager_react.useService)(Pi).currency;
3004
+ return (0, import_services_manager_react.useService)(Fi).currency;
3005
3005
  }
3006
3006
  function Cs() {
3007
- return globalThis.commonConfig?.currency;
3007
+ return bs(gs)?.currency;
3008
3008
  }
3009
- function ws(e5) {
3010
- let t2 = globalThis.window;
3011
- if (!t2) return () => {
3012
- };
3013
- let n2 = t2.navigation, r2 = true, i2 = () => queueMicrotask(() => {
3014
- r2 && e5();
3015
- });
3016
- return n2?.addEventListener(`currententrychange`, i2), t2.addEventListener(`popstate`, e5), () => {
3017
- r2 = false, n2?.removeEventListener(`currententrychange`, i2), t2.removeEventListener(`popstate`, e5);
3018
- };
3009
+ var ws = /^[A-Z]{3}$/;
3010
+ function Ts(e5) {
3011
+ return ws.test(e5) ? typeof Intl.supportedValuesOf != `function` || Intl.supportedValuesOf(`currency`).includes(e5) : false;
3019
3012
  }
3020
- var Ts = /^[A-Z]{3}$/;
3021
3013
  function Es(e5) {
3022
- return Ts.test(e5) ? typeof Intl.supportedValuesOf != `function` || Intl.supportedValuesOf(`currency`).includes(e5) : false;
3023
- }
3024
- function Ds(e5) {
3025
3014
  let t2 = e5?.toUpperCase();
3026
- return t2 && Es(t2) ? t2 : null;
3015
+ return t2 && Ts(t2) ? t2 : null;
3027
3016
  }
3028
- function Os(e5, t2) {
3029
- let n2 = Ds(e5);
3030
- return n2 && n2 !== Ds(t2) ? n2 : null;
3017
+ function Ds(e5, t2) {
3018
+ let n2 = Es(e5);
3019
+ return n2 && n2 !== Es(t2) ? n2 : null;
3031
3020
  }
3032
- function ks() {
3033
- let e5 = (0, import_react.useSyncExternalStore)(ws, Cs, Cs), t2 = Ss();
3034
- return (0, import_react.useDeferredValue)(Os(e5, t2));
3021
+ function Os() {
3022
+ let e5 = Cs(), t2 = Ss();
3023
+ return (0, import_react.useDeferredValue)(Ds(e5, t2));
3035
3024
  }
3036
- var As = `bookings-uou`;
3037
- function js(e5) {
3025
+ var ks = `bookings-uou`;
3026
+ function As(e5) {
3038
3027
  return e5 ? `:currency-${e5}` : ``;
3039
3028
  }
3040
- function Ms(e5, t2, n2, r2, i2, a2, o2 = [], s2 = []) {
3029
+ function js(e5, t2, n2, r2, i2, a2, o2 = [], s2 = []) {
3041
3030
  let c2 = o2.length ? `:ids-${encodeURIComponent(JSON.stringify([...o2].sort()))}` : ``, l2 = s2.length ? `:cats-${encodeURIComponent(JSON.stringify([...s2].sort()))}` : ``;
3042
- return `${As}:${e5}:services:${n2 ?? `all`}:${r2 ?? `all`}:page-${i2}:limit-${a2}${c2}${l2}${js(t2)}`;
3031
+ return `${ks}:${e5}:services:${n2 ?? `all`}:${r2 ?? `all`}:page-${i2}:limit-${a2}${c2}${l2}${As(t2)}`;
3043
3032
  }
3044
- function Ns(e5, t2, n2, r2) {
3045
- return `${As}:${e5}:services-variants:ids-${encodeURIComponent(JSON.stringify([...n2].sort()))}:refresh-${r2}${js(t2)}`;
3033
+ function Ms(e5, t2, n2, r2) {
3034
+ return `${ks}:${e5}:services-variants:ids-${encodeURIComponent(JSON.stringify([...n2].sort()))}:refresh-${r2}${As(t2)}`;
3046
3035
  }
3047
- function Ps() {
3048
- return `${As}:bookings-settings`;
3036
+ function Ns() {
3037
+ return `${ks}:bookings-settings`;
3049
3038
  }
3050
- var Fs = 5e3;
3051
- var Is = 100;
3052
- var Ls = `wix-warmup-data`;
3053
- var Rs = null;
3054
- function zs(e5) {
3039
+ var Ps = 5e3;
3040
+ var Fs = 100;
3041
+ var Is = `wix-warmup-data`;
3042
+ var Ls = null;
3043
+ function Rs(e5) {
3055
3044
  if (typeof document < `u`) try {
3056
- let t2 = document.getElementById(Ls)?.textContent;
3057
- return t2 ? (Rs?.text !== t2 && (Rs = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Rs.data[e5] ?? void 0) : void 0;
3045
+ let t2 = document.getElementById(Is)?.textContent;
3046
+ return t2 ? (Ls?.text !== t2 && (Ls = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Ls.data[e5] ?? void 0) : void 0;
3058
3047
  } catch {
3059
3048
  return;
3060
3049
  }
3061
3050
  }
3062
- var Bs = () => ({ promises: /* @__PURE__ */ new Map(), invalidatedWarmup: /* @__PURE__ */ new Set() });
3063
- var Vs = Bs();
3051
+ var zs = () => ({ promises: /* @__PURE__ */ new Map(), invalidatedWarmup: /* @__PURE__ */ new Set() });
3052
+ var Bs = zs();
3053
+ var Vs = /* @__PURE__ */ new WeakMap();
3064
3054
  var Hs = /* @__PURE__ */ new WeakMap();
3065
- var Us = /* @__PURE__ */ new WeakMap();
3066
- function Ws(e5) {
3067
- if (!e5) return Vs;
3068
- let t2 = Hs.get(e5);
3069
- return t2 || (t2 = Bs(), Hs.set(e5, t2)), t2;
3055
+ function Us(e5) {
3056
+ if (!e5) return Bs;
3057
+ let t2 = Vs.get(e5);
3058
+ return t2 || (t2 = zs(), Vs.set(e5, t2)), t2;
3070
3059
  }
3071
- function Gs({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
3060
+ function Ws({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
3072
3061
  if (e5 === null) return n2();
3073
3062
  if (typeof window > `u`) {
3074
3063
  let r3 = () => n2().then((n3) => (t2.set(e5, n3), n3)), { scope: i3 } = t2;
3075
3064
  if (!i3) return r3();
3076
- let a3 = Us.get(i3);
3077
- a3 || (a3 = /* @__PURE__ */ new Map(), Us.set(i3, a3));
3065
+ let a3 = Hs.get(i3);
3066
+ a3 || (a3 = /* @__PURE__ */ new Map(), Hs.set(i3, a3));
3078
3067
  let o3 = a3.get(e5);
3079
3068
  if (o3) return o3;
3080
3069
  let s3 = r3();
3081
3070
  return a3.set(e5, s3), s3.catch(() => a3.delete(e5)), s3;
3082
3071
  }
3083
- let i2 = Ws(t2.scope), a2 = Date.now();
3072
+ let i2 = Us(t2.scope), a2 = Date.now();
3084
3073
  for (let [e6, t3] of i2.promises) t3.expiresAt <= a2 && i2.promises.delete(e6);
3085
3074
  let o2 = i2.promises.get(e5);
3086
3075
  if (o2 && !r2) return o2.promise;
3087
3076
  r2 && i2.invalidatedWarmup.add(e5);
3088
3077
  let s2 = !i2.invalidatedWarmup.has(e5);
3089
3078
  if (s2) {
3090
- let t3 = zs(e5);
3079
+ let t3 = Rs(e5);
3091
3080
  if (t3 !== void 0) {
3092
- let n3 = _i(t3);
3093
- return i2.promises.set(e5, { promise: n3, expiresAt: a2 + Fs }), n3;
3081
+ let n3 = vi(t3);
3082
+ return i2.promises.set(e5, { promise: n3, expiresAt: a2 + Ps }), n3;
3094
3083
  }
3095
3084
  }
3096
3085
  let c2 = (async () => {
@@ -3100,62 +3089,62 @@ function Gs({ key: e5, warmupData: t2, fetchData: n2, refresh: r2 = false }) {
3100
3089
  }
3101
3090
  return n2();
3102
3091
  })();
3103
- i2.promises.size >= Is && i2.promises.delete(i2.promises.keys().next().value);
3092
+ i2.promises.size >= Fs && i2.promises.delete(i2.promises.keys().next().value);
3104
3093
  let l2 = { promise: c2, expiresAt: 1 / 0 };
3105
3094
  return i2.promises.set(e5, l2), c2.then(() => {
3106
- l2.expiresAt = Date.now() + Fs;
3095
+ l2.expiresAt = Date.now() + Ps;
3107
3096
  }, () => {
3108
3097
  i2.promises.get(e5) === l2 && i2.promises.delete(e5);
3109
3098
  }), c2;
3110
3099
  }
3111
- var Ks = 100;
3112
- async function qs(e5) {
3100
+ var Gs = 100;
3101
+ async function Ks(e5) {
3113
3102
  if (e5.length === 0) return {};
3114
3103
  let t2 = [];
3115
- for (let n3 = 0; n3 < e5.length; n3 += Ks) t2.push(e5.slice(n3, n3 + Ks));
3116
- let n2 = await Promise.all(t2.map((e6) => wo().in(`serviceId`, e6).limit(Ks).find())), r2 = {};
3104
+ for (let n3 = 0; n3 < e5.length; n3 += Gs) t2.push(e5.slice(n3, n3 + Gs));
3105
+ let n2 = await Promise.all(t2.map((e6) => wo().in(`serviceId`, e6).limit(Gs).find())), r2 = {};
3117
3106
  for (let e6 of n2.flatMap((e7) => e7.items ?? [])) e6.serviceId && (r2[e6.serviceId] = e6);
3118
3107
  return r2;
3119
3108
  }
3120
- var Js = W(`@wix/site-service-rendering-context`);
3121
- var Ys = () => {
3122
- let { SSR: e5 } = (0, import_services_manager_react.useService)(Js);
3109
+ var qs = U(`@wix/site-service-rendering-context`);
3110
+ var Js = () => {
3111
+ let { SSR: e5 } = (0, import_services_manager_react.useService)(qs);
3123
3112
  return { isSSR: () => e5 };
3124
3113
  };
3125
- var Xs = _s(`@wix/site-service-business-logger`);
3126
- function Zs(e5) {
3114
+ var Ys = _s(`@wix/site-service-business-logger`);
3115
+ function Xs(e5) {
3127
3116
  return { evid: 1222, src: 16, endpoint: ``, params: e5 };
3128
3117
  }
3129
- function Qs(e5) {
3118
+ function Zs(e5) {
3130
3119
  return { evid: 32, src: 16, endpoint: ``, params: e5 };
3131
3120
  }
3132
- var $s = { SERVICES: `services_context`, SERVICE: `service_context`, TIME_SLOTS: `time_slots_context`, BOOKING_CHECKOUT: `booking_checkout_context`, CATEGORIES: `categories_context`, LOCATIONS: `locations_context`, SERVICE_ADD_ONS: `service_addons_context`, PREFERENCES: `preferences_context` };
3133
- var ec = G.BOOK_ONLINE;
3134
- var tc = `new_bookings_server`;
3135
- var nc = `load more`;
3136
- var rc = (e5) => {
3137
- let { reportBi: t2 } = (0, import_services_manager_react.useService)(Xs);
3121
+ var Qs = { SERVICES: `services_context`, SERVICE: `service_context`, TIME_SLOTS: `time_slots_context`, BOOKING_CHECKOUT: `booking_checkout_context`, CATEGORIES: `categories_context`, LOCATIONS: `locations_context`, SERVICE_ADD_ONS: `service_addons_context`, PREFERENCES: `preferences_context` };
3122
+ var $s = W.BOOK_ONLINE;
3123
+ var ec = `new_bookings_server`;
3124
+ var tc = `load more`;
3125
+ var nc = (e5) => {
3126
+ let { reportBi: t2 } = (0, import_services_manager_react.useService)(Ys);
3138
3127
  return (0, import_react.useCallback)((n2) => {
3139
- t2({ widget_name: e5, bookingsPlatform: tc, is_over_editor: false, ...n2.params, src: n2.src, evid: n2.evid }, { endpoint: n2.endpoint });
3128
+ t2({ widget_name: e5, bookingsPlatform: ec, is_over_editor: false, ...n2.params, src: n2.src, evid: n2.evid }, { endpoint: n2.endpoint });
3140
3129
  }, [t2, e5]);
3141
3130
  };
3142
- function ic(e5) {
3131
+ function rc(e5) {
3143
3132
  return { evid: 540, src: 16, endpoint: `wixboost-ugc`, params: e5 };
3144
3133
  }
3145
- var ac = W(`seo/seo-service`);
3146
- function oc() {
3134
+ var ic = U(`seo/seo-service`);
3135
+ function ac() {
3147
3136
  let e5 = (0, import_services_manager_react.useGetService)();
3148
3137
  try {
3149
- return e5(ac);
3138
+ return e5(ic);
3150
3139
  } catch {
3151
3140
  return null;
3152
3141
  }
3153
3142
  }
3154
- function sc() {
3155
- let e5 = oc();
3143
+ function oc() {
3144
+ let e5 = ac();
3156
3145
  return { resolved: !!e5, send: (t2) => {
3157
3146
  if (!e5) return Promise.resolve(`unavailable`);
3158
- let n2 = (e6) => fi(e6, { feature: U.seo, action: `send-seo-entity`, level: `warning`, contexts: { seo: { itemType: t2.itemType } } });
3147
+ let n2 = (e6) => pi(e6, { feature: H.seo, action: `send-seo-entity`, level: `warning`, contexts: { seo: { itemType: t2.itemType } } });
3159
3148
  try {
3160
3149
  return e5.setSeoEntity(t2).then(() => `sent`).catch((e6) => (n2(e6), `failed`));
3161
3150
  } catch (e6) {
@@ -3163,38 +3152,38 @@ function sc() {
3163
3152
  }
3164
3153
  } };
3165
3154
  }
3166
- var cc = `SERVICES_COMPONENT`;
3167
- var lc = `PAGINATED_COMPONENT`;
3168
- function uc(e5, t2, n2) {
3169
- return { itemType: cc, itemData: { services: e5.map((e6) => ({ ...e6, urls: { servicePage: { url: t2(e6) ?? `` } } })), pagination: n2 } };
3155
+ var sc = `SERVICES_COMPONENT`;
3156
+ var cc = `PAGINATED_COMPONENT`;
3157
+ function lc(e5, t2, n2) {
3158
+ return { itemType: sc, itemData: { services: e5.map((e6) => ({ ...e6, urls: { servicePage: { url: t2(e6) ?? `` } } })), pagination: n2 } };
3170
3159
  }
3171
- function dc(e5) {
3172
- return { itemType: lc, itemData: { pagination: e5 } };
3160
+ function uc(e5) {
3161
+ return { itemType: cc, itemData: { pagination: e5 } };
3173
3162
  }
3174
- var fc = /* @__PURE__ */ new WeakSet();
3175
- function pc({ servicesPromise: e5, currentPage: t2, pageQueryParam: n2 }) {
3176
- let { services: r2, totalPages: i2 } = gi(e5), { resolveAbsoluteUrl: a2 } = ds(), { send: o2 } = sc();
3163
+ var dc = /* @__PURE__ */ new WeakSet();
3164
+ function fc({ servicesPromise: e5, currentPage: t2, pageQueryParam: n2 }) {
3165
+ let { services: r2, totalPages: i2 } = _i(e5), { resolveAbsoluteUrl: a2 } = ds(), { send: o2 } = oc();
3177
3166
  return (0, import_react.useState)(() => {
3178
- if (fc.has(e5)) return true;
3179
- fc.add(e5);
3167
+ if (dc.has(e5)) return true;
3168
+ dc.add(e5);
3180
3169
  let s2 = { currentPage: t2, totalPages: i2, queryParam: n2 };
3181
- return o2(uc(r2, (e6) => a2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null }), s2)), i2 > 1 && o2(dc(s2)), true;
3170
+ return o2(lc(r2, (e6) => a2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null }), s2)), i2 > 1 && o2(uc(s2)), true;
3182
3171
  }), null;
3183
3172
  }
3184
- function mc(e5) {
3185
- return Pt(Object.assign(e5, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/events-3`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }, { srcPath: `/_api/calendar/v3/ro/events`, destPath: `/v3/events` }], "www.wixapis.com": [{ srcPath: `/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], _: [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "*.dev.wix-code.com": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "editor._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "blocks._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "create.editorx": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }] } }));
3173
+ function pc(e5) {
3174
+ return Ft(Object.assign(e5, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/events-3`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }, { srcPath: `/_api/calendar/v3/ro/events`, destPath: `/v3/events` }], "www.wixapis.com": [{ srcPath: `/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], _: [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "*.dev.wix-code.com": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "editor._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "blocks._base_domain_": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }], "create.editorx": [{ srcPath: `/_api/calendar/v3/events`, destPath: `/v3/events` }, { srcPath: `/_api/calendar/v3/bulk/events`, destPath: `/v3/bulk/events` }] } }));
3186
3175
  }
3187
- var hc = `@wix/auto_sdk_calendar_events`;
3188
- function gc(e5) {
3176
+ var mc = `@wix/auto_sdk_calendar_events`;
3177
+ function hc(e5) {
3189
3178
  function t2({ host: t3 }) {
3190
- return { entityFqdn: `wix.calendar.v3.event`, method: `POST`, methodFqn: `wix.calendar.events.v3.EventsService.QueryEvents`, packageName: hc, migrationOptions: { optInTransformResponse: true }, url: mc({ protoPath: `/v3/events/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => F(e6, [{ transformFn: P, paths: [{ path: `events.createdDate` }, { path: `events.updatedDate` }, { path: `events.start.utcDate` }, { path: `events.end.utcDate` }, { path: `events.adjustedStart.utcDate` }, { path: `events.adjustedEnd.utcDate` }, { path: `events.recurrenceRule.until.utcDate` }, { path: `events.recurrenceRule.adjustedUntil.utcDate` }] }]) };
3179
+ return { entityFqdn: `wix.calendar.v3.event`, method: `POST`, methodFqn: `wix.calendar.events.v3.EventsService.QueryEvents`, packageName: mc, migrationOptions: { optInTransformResponse: true }, url: pc({ protoPath: `/v3/events/query`, data: e5, host: t3 }), data: e5, transformResponse: (e6) => P(e6, [{ transformFn: N, paths: [{ path: `events.createdDate` }, { path: `events.updatedDate` }, { path: `events.start.utcDate` }, { path: `events.end.utcDate` }, { path: `events.adjustedStart.utcDate` }, { path: `events.adjustedEnd.utcDate` }, { path: `events.recurrenceRule.until.utcDate` }, { path: `events.recurrenceRule.adjustedUntil.utcDate` }] }]) };
3191
3180
  }
3192
3181
  return t2;
3193
3182
  }
3194
- function _c(e5) {
3183
+ function gc(e5) {
3195
3184
  let { httpClient: t2, sideEffects: n2 } = arguments[1];
3196
3185
  return Za({ func: async (r2) => {
3197
- let i2 = gc({ ...r2, ...e5 ?? {} });
3186
+ let i2 = hc({ ...r2, ...e5 ?? {} });
3198
3187
  n2?.onSiteCall?.();
3199
3188
  try {
3200
3189
  let e6 = await t2.request(i2);
@@ -3204,171 +3193,171 @@ function _c(e5) {
3204
3193
  }
3205
3194
  }, requestTransformer: (t3) => {
3206
3195
  let n3 = [t3, e5];
3207
- return M({ ...n3?.[1], query: n3?.[0] });
3196
+ return j({ ...n3?.[1], query: n3?.[0] });
3208
3197
  }, responseTransformer: ({ data: e6 }) => {
3209
- let t3 = N(F(e6, []));
3198
+ let t3 = M(P(e6, []));
3210
3199
  return { items: t3?.events, pagingMetadata: t3?.pagingMetadata };
3211
3200
  }, errorTransformer: (e6) => {
3212
- throw I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3201
+ throw F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
3213
3202
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
3214
3203
  }
3215
- async function vc(e5, t2) {
3216
- let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = gc(M({ query: e5, ...t2 }));
3204
+ async function _c(e5, t2) {
3205
+ let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = hc(j({ query: e5, ...t2 }));
3217
3206
  r2?.onSiteCall?.();
3218
3207
  try {
3219
3208
  let e6 = await n2.request(i2);
3220
- return r2?.onSuccess?.(e6), N(e6.data);
3209
+ return r2?.onSuccess?.(e6), M(e6.data);
3221
3210
  } catch (e6) {
3222
- let t3 = I(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3211
+ let t3 = F(e6, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
3223
3212
  throw r2?.onError?.(e6), t3;
3224
3213
  }
3225
3214
  }
3226
3215
  ({ ...no() });
3227
- function yc(e5) {
3228
- return (t2) => _c(t2, { httpClient: e5 });
3216
+ function vc(e5) {
3217
+ return (t2) => gc(t2, { httpClient: e5 });
3229
3218
  }
3230
- function bc(e5) {
3231
- return (t2, n2) => vc(t2, n2, { httpClient: e5 });
3232
- }
3233
- var xc = _(`wix.calendar.v3.event_cancelled`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `data.event.createdDate` }, { path: `data.event.updatedDate` }, { path: `data.event.start.utcDate` }, { path: `data.event.end.utcDate` }, { path: `data.event.adjustedStart.utcDate` }, { path: `data.event.adjustedEnd.utcDate` }, { path: `data.event.recurrenceRule.until.utcDate` }, { path: `data.event.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3234
- var Sc = _(`wix.calendar.v3.event_created`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3235
- var Cc = _(`wix.calendar.v3.event_recurring_split`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `data.updatedRecurringEventEndingBeforeSplit.createdDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.updatedDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.start.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.end.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedStart.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedEnd.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.until.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.createdDate` }, { path: `data.newRecurringEventStartingFromSplit.updatedDate` }, { path: `data.newRecurringEventStartingFromSplit.start.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.end.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedStart.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedEnd.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.until.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3236
- var wc = _(`wix.calendar.v3.event_updated`, true, (e5) => N(F(e5, [{ transformFn: P, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.start.utcDate` }, { path: `modifiedFields.end.utcDate` }, { path: `modifiedFields.adjustedStart.utcDate` }, { path: `modifiedFields.adjustedEnd.utcDate` }, { path: `modifiedFields.recurrenceRule.until.utcDate` }, { path: `modifiedFields.recurrenceRule.adjustedUntil.utcDate` }] }])))();
3237
- function Tc(e5) {
3238
- let t2 = po({ builderQueryFunction: (t3) => yc(e5)(t3), typedQueryFunction: (t3, n3) => bc(e5)(t3, n3), hasOptionsParameter: true });
3219
+ function yc(e5) {
3220
+ return (t2, n2) => _c(t2, n2, { httpClient: e5 });
3221
+ }
3222
+ var bc = _(`wix.calendar.v3.event_cancelled`, true, (e5) => M(P(e5, [{ transformFn: N, paths: [{ path: `data.event.createdDate` }, { path: `data.event.updatedDate` }, { path: `data.event.start.utcDate` }, { path: `data.event.end.utcDate` }, { path: `data.event.adjustedStart.utcDate` }, { path: `data.event.adjustedEnd.utcDate` }, { path: `data.event.recurrenceRule.until.utcDate` }, { path: `data.event.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3223
+ var xc = _(`wix.calendar.v3.event_created`, true, (e5) => M(P(e5, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3224
+ var Sc = _(`wix.calendar.v3.event_recurring_split`, true, (e5) => M(P(e5, [{ transformFn: N, paths: [{ path: `data.updatedRecurringEventEndingBeforeSplit.createdDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.updatedDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.start.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.end.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedStart.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.adjustedEnd.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.until.utcDate` }, { path: `data.updatedRecurringEventEndingBeforeSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.createdDate` }, { path: `data.newRecurringEventStartingFromSplit.updatedDate` }, { path: `data.newRecurringEventStartingFromSplit.start.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.end.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedStart.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.adjustedEnd.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.until.utcDate` }, { path: `data.newRecurringEventStartingFromSplit.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }] }])))();
3225
+ var Cc = _(`wix.calendar.v3.event_updated`, true, (e5) => M(P(e5, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.start.utcDate` }, { path: `entity.end.utcDate` }, { path: `entity.adjustedStart.utcDate` }, { path: `entity.adjustedEnd.utcDate` }, { path: `entity.recurrenceRule.until.utcDate` }, { path: `entity.recurrenceRule.adjustedUntil.utcDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.start.utcDate` }, { path: `modifiedFields.end.utcDate` }, { path: `modifiedFields.adjustedStart.utcDate` }, { path: `modifiedFields.adjustedEnd.utcDate` }, { path: `modifiedFields.recurrenceRule.until.utcDate` }, { path: `modifiedFields.recurrenceRule.adjustedUntil.utcDate` }] }])))();
3226
+ function wc(e5) {
3227
+ let t2 = po({ builderQueryFunction: (t3) => vc(e5)(t3), typedQueryFunction: (t3, n3) => yc(e5)(t3, n3), hasOptionsParameter: true });
3239
3228
  function n2(e6, n3) {
3240
3229
  return t2(...arguments);
3241
3230
  }
3242
3231
  return n2;
3243
3232
  }
3244
- var Ec = Mt(Tc);
3245
- sn(xc), sn(Sc), sn(Cc), sn(wc);
3246
- var Dc = (e5) => {
3233
+ var Tc = Nt(wc);
3234
+ cn(bc), cn(xc), cn(Sc), cn(Cc);
3235
+ var Ec = (e5) => {
3247
3236
  let t2 = (e6) => e6 < 10 ? `0${e6}` : `${e6}`;
3248
3237
  return `${e5.getFullYear()}-${t2(e5.getMonth() + 1)}-${t2(e5.getDate())}`;
3249
3238
  };
3250
- var Oc = (e5) => `${Dc(e5)}T00:00:00`;
3251
- var kc = 1e3;
3252
- async function Ac(e5, t2) {
3239
+ var Dc = (e5) => `${Ec(e5)}T00:00:00`;
3240
+ var Oc = 1e3;
3241
+ async function kc(e5, t2) {
3253
3242
  let n2 = [], r2;
3254
3243
  do {
3255
- let i2 = await Ec({ filter: e5, cursorPaging: { limit: kc, ...r2 ? { cursor: r2 } : {} } }, t2);
3244
+ let i2 = await Tc({ filter: e5, cursorPaging: { limit: Oc, ...r2 ? { cursor: r2 } : {} } }, t2);
3256
3245
  n2.push(...i2.events ?? []), r2 = i2.pagingMetadata?.hasNext ? i2.pagingMetadata.cursors?.next ?? void 0 : void 0;
3257
3246
  } while (r2);
3258
3247
  return n2;
3259
3248
  }
3260
- async function jc(e5, t2) {
3261
- return e5.length === 0 ? [] : Ac({ appId: Fi, scheduleId: { $in: e5 } }, { recurrenceType: [`MASTER`, `NONE`], fromLocalDate: Oc(/* @__PURE__ */ new Date()), ...t2 ? { timeZone: t2 } : {} });
3249
+ async function Ac(e5, t2) {
3250
+ return e5.length === 0 ? [] : kc({ appId: Ii, scheduleId: { $in: e5 } }, { recurrenceType: [`MASTER`, `NONE`], fromLocalDate: Dc(/* @__PURE__ */ new Date()), ...t2 ? { timeZone: t2 } : {} });
3262
3251
  }
3263
- function Mc(e5) {
3252
+ function jc(e5) {
3264
3253
  let t2 = {};
3265
3254
  for (let n2 of e5) n2.scheduleId && (t2[n2.scheduleId] ??= []).push(n2);
3266
3255
  return t2;
3267
3256
  }
3268
- var Nc = { displayTimeZonePolicy: { basedOn: Jo.BUSINESS_TIME_ZONE, customerCanChange: false }, multiServiceAppointmentsEnabled: false };
3269
- async function Pc() {
3257
+ var Mc = { displayTimeZonePolicy: { basedOn: Jo.BUSINESS_TIME_ZONE, customerCanChange: false }, multiServiceAppointmentsEnabled: false };
3258
+ async function Nc() {
3270
3259
  try {
3271
3260
  let e5 = await Zo();
3272
3261
  return { displayTimeZonePolicy: { basedOn: e5.displayTimeZone?.basedOn ?? Jo.BUSINESS_TIME_ZONE, customerCanChange: e5.displayTimeZone?.customerCanChange ?? false }, multiServiceAppointmentsEnabled: e5.multiServiceAppointments?.enabled ?? false };
3273
3262
  } catch (e5) {
3274
- return fi(e5, { feature: U.bookingsSettings, action: `fetch-bookings-settings`, level: `warning` }), Nc;
3263
+ return pi(e5, { feature: H.bookingsSettings, action: `fetch-bookings-settings`, level: `warning` }), Mc;
3275
3264
  }
3276
3265
  }
3277
3266
  (0, import_react.createContext)(null);
3278
- function Fc(e5) {
3267
+ function Pc(e5) {
3279
3268
  return e5.basedOn === Jo.CUSTOMER_TIME_ZONE ? Intl.DateTimeFormat().resolvedOptions().timeZone : void 0;
3280
3269
  }
3281
- function Ic({ categoryId: e5, locationId: t2, serviceItems: n2, isLoading: r2, hasError: i2, children: a2 }) {
3270
+ function Fc({ categoryId: e5, locationId: t2, serviceItems: n2, isLoading: r2, hasError: i2, children: a2 }) {
3282
3271
  let o2 = { serviceItems: n2, bookingsSettings: null, hasMore: false, isLoading: r2, hasError: i2, categoryId: e5, locationId: t2, loadMore: async () => {
3283
3272
  } };
3284
- return (0, import_jsx_runtime.jsx)(Jc.Provider, { value: o2, children: a2 });
3273
+ return (0, import_jsx_runtime.jsx)(qc.Provider, { value: o2, children: a2 });
3285
3274
  }
3286
- function Lc({ categoryId: e5, locationId: t2, children: n2 }) {
3287
- return (0, import_jsx_runtime.jsx)(Ic, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: true, hasError: false, children: n2 });
3275
+ function Ic({ categoryId: e5, locationId: t2, children: n2 }) {
3276
+ return (0, import_jsx_runtime.jsx)(Fc, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: true, hasError: false, children: n2 });
3288
3277
  }
3289
- function Rc({ categoryId: e5, locationId: t2, children: n2 }) {
3290
- return (0, import_jsx_runtime.jsx)(Ic, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: false, hasError: true, children: n2 });
3278
+ function Lc({ categoryId: e5, locationId: t2, children: n2 }) {
3279
+ return (0, import_jsx_runtime.jsx)(Fc, { categoryId: e5, locationId: t2, serviceItems: [], isLoading: false, hasError: true, children: n2 });
3291
3280
  }
3292
- function zc(e5) {
3281
+ function Rc(e5) {
3293
3282
  let t2 = e5?.$in ?? (e5?.$eq == null ? [] : [e5.$eq]);
3294
3283
  return [...new Set(t2.filter((e6) => typeof e6 == `string` && e6 !== ``))].sort().join(`,`);
3295
3284
  }
3296
3285
  function $(e5) {
3297
3286
  return e5 ? e5.split(`,`) : null;
3298
3287
  }
3288
+ var zc = [];
3299
3289
  var Bc = [];
3300
- var Vc = [];
3290
+ var Vc = {};
3301
3291
  var Hc = {};
3302
- var Uc = {};
3303
- function Wc(e5, t2) {
3292
+ function Uc(e5, t2) {
3304
3293
  return Object.keys(t2).length === 0 ? e5 : { ...e5, ...t2 };
3305
3294
  }
3306
- function Gc(e5, t2, n2, r2, i2, a2) {
3295
+ function Wc(e5, t2, n2, r2, i2, a2) {
3307
3296
  let o2 = [...new Set(e5.filter((e6) => !Qo(e6.type)).map((e6) => e6.schedule?._id).filter((e6) => !!e6))], s2 = e5.filter($o).map((e6) => e6._id).filter((e6) => !!e6);
3308
- return Promise.all([o2.length === 0 ? Hc : jc(o2, t2).then(Mc).catch(() => Hc), s2.length === 0 ? Uc : Gs({ key: Ns(r2, i2, s2, n2), warmupData: a2, fetchData: () => qs(s2) }).catch((e6) => (fi(e6, { feature: U.services, action: `fetch-service-variants`, level: `warning` }), null))]);
3297
+ return Promise.all([o2.length === 0 ? Vc : Ac(o2, t2).then(jc).catch(() => Vc), s2.length === 0 ? Hc : Ws({ key: Ms(r2, i2, s2, n2), warmupData: a2, fetchData: () => Ks(s2) }).catch((e6) => (pi(e6, { feature: H.services, action: `fetch-service-variants`, level: `warning` }), null))]);
3309
3298
  }
3310
- var Kc = { services: [], hasMore: false, totalPages: 1, hasError: true };
3311
- function qc(e5) {
3299
+ var Gc = { services: [], hasMore: false, totalPages: 1, hasError: true };
3300
+ function Kc(e5) {
3312
3301
  let t2 = Math.floor(Number(e5));
3313
3302
  return !e5 || !Number.isSafeInteger(t2) || t2 < 1 ? 1 : t2;
3314
3303
  }
3315
- var Jc = (0, import_react.createContext)(null);
3316
- var Yc = `useServicesContext must be used within ServicesContextProvider`;
3317
- function Xc() {
3318
- let e5 = (0, import_react.useContext)(Jc);
3319
- if (!e5) throw Error(Yc);
3304
+ var qc = (0, import_react.createContext)(null);
3305
+ var Jc = `useServicesContext must be used within ServicesContextProvider`;
3306
+ function Yc() {
3307
+ let e5 = (0, import_react.useContext)(qc);
3308
+ if (!e5) throw Error(Jc);
3320
3309
  return e5;
3321
3310
  }
3322
- function Zc(e5, t2) {
3311
+ function Xc(e5, t2) {
3323
3312
  return { firstPage: e5, services: e5.services, hasMore: e5.hasMore, isLoadingMore: false, cursor: { offset: (t2.paginationIndex - 1) * t2.safeLimit + e5.services.length, hasMore: e5.hasMore, pending: null, dropped: false } };
3324
3313
  }
3325
- function Qc({ query: e5, isQueryPending: t2, settingsPromise: n2, categoryId: a2, locationId: o2, children: d2 }) {
3326
- let { firstPagePromise: f2, safeLimit: p2, serviceIdsKey: h2, categoryIdsKey: g2, refreshSignal: _2, language: v2, currency: y2 } = e5, b2 = gi(f2), x2 = gi(n2), [S2, C2] = (0, import_react.useState)(() => Zc(b2, e5)), [w2, T2] = (0, import_react.useState)({}), [E2, D2] = (0, import_react.useState)({});
3327
- S2.firstPage !== b2 && (C2(Zc(b2, e5)), T2({}), D2({}));
3314
+ function Zc({ query: e5, isQueryPending: t2, settingsPromise: n2, categoryId: a2, locationId: o2, children: d2 }) {
3315
+ let { firstPagePromise: f2, safeLimit: p2, serviceIdsKey: h2, categoryIdsKey: g2, refreshSignal: _2, language: v2, currency: y2 } = e5, b2 = _i(f2), x2 = _i(n2), [S2, C2] = (0, import_react.useState)(() => Xc(b2, e5)), [w2, T2] = (0, import_react.useState)({}), [E2, D2] = (0, import_react.useState)({});
3316
+ S2.firstPage !== b2 && (C2(Xc(b2, e5)), T2({}), D2({}));
3328
3317
  let { cursor: O2 } = S2;
3329
3318
  (0, import_react.useEffect)(() => (O2.dropped = false, () => {
3330
3319
  O2.dropped = true;
3331
3320
  }), [O2]);
3332
- let ee2 = Fc(x2.displayTimeZonePolicy), k2 = rc($s.SERVICES), { getParsedUrl: te2 } = Ai(), ne2 = (0, import_react.useRef)(null), re2 = hs(), A2 = (0, import_react.useRef)(re2);
3333
- A2.current = re2, (0, import_react.useEffect)(() => {
3334
- ne2.current !== b2 && (ne2.current = b2, k2(Qs({ referralInfo: te2().searchParams.get(rs.referral) ?? void 0 })), k2(ic({ numOfServices: b2.services.length })));
3321
+ let ee2 = Pc(x2.displayTimeZonePolicy), k2 = nc(Qs.SERVICES), { getParsedUrl: te2 } = ji(), ne2 = (0, import_react.useRef)(null), re2 = hs(), ie2 = (0, import_react.useRef)(re2);
3322
+ ie2.current = re2, (0, import_react.useEffect)(() => {
3323
+ ne2.current !== b2 && (ne2.current = b2, k2(Zs({ referralInfo: te2().searchParams.get(rs.referral) ?? void 0 })), k2(rc({ numOfServices: b2.services.length })));
3335
3324
  }, [k2, te2, b2]), (0, import_react.useEffect)(() => {
3336
3325
  let e6 = false;
3337
- return Gc(b2.services, ee2, _2, v2, y2, A2.current).then(([t3, n3]) => {
3326
+ return Wc(b2.services, ee2, _2, v2, y2, ie2.current).then(([t3, n3]) => {
3338
3327
  e6 || (0, import_react.startTransition)(() => {
3339
- T2((e7) => Wc(e7, t3)), n3 && D2((e7) => Wc(e7, n3));
3328
+ T2((e7) => Uc(e7, t3)), n3 && D2((e7) => Uc(e7, n3));
3340
3329
  });
3341
3330
  }), () => {
3342
3331
  e6 = true;
3343
3332
  };
3344
3333
  }, [b2.services, ee2, _2, v2, y2]);
3345
- let ie2 = (0, import_react.useCallback)(async () => {
3346
- if (k2(Zs({ pageName: ec, buttonName: nc })), O2.pending) return O2.pending;
3334
+ let ae2 = (0, import_react.useCallback)(async () => {
3335
+ if (k2(Xs({ pageName: $s, buttonName: tc })), O2.pending) return O2.pending;
3347
3336
  if (!O2.hasMore) return;
3348
3337
  let t3 = (e6) => C2((t4) => t4.cursor === O2 ? e6(t4) : t4);
3349
3338
  return t3((e6) => ({ ...e6, isLoadingMore: true })), O2.pending = ns({ limit: p2, offset: O2.offset, categoryId: e5.categoryId, locationId: e5.locationId, serviceIds: $(h2), categoryIds: $(g2) }).then((e6) => {
3350
- O2.dropped || (O2.hasMore = e6.hasMore, O2.offset += e6.services.length, t3((t4) => ({ ...t4, services: [...t4.services, ...e6.services], hasMore: e6.hasMore })), Gc(e6.services, ee2, _2, v2, y2, A2.current).then(([e7, t4]) => {
3339
+ O2.dropped || (O2.hasMore = e6.hasMore, O2.offset += e6.services.length, t3((t4) => ({ ...t4, services: [...t4.services, ...e6.services], hasMore: e6.hasMore })), Wc(e6.services, ee2, _2, v2, y2, ie2.current).then(([e7, t4]) => {
3351
3340
  O2.dropped || (0, import_react.startTransition)(() => {
3352
- T2((t5) => Wc(t5, e7)), t4 && D2((e8) => Wc(e8, t4));
3341
+ T2((t5) => Uc(t5, e7)), t4 && D2((e8) => Uc(e8, t4));
3353
3342
  });
3354
3343
  }));
3355
3344
  }).catch(() => {
3356
3345
  }).finally(() => {
3357
3346
  O2.pending = null, t3((e6) => ({ ...e6, isLoadingMore: false }));
3358
3347
  }), O2.pending;
3359
- }, [O2, p2, e5.categoryId, e5.locationId, h2, g2, k2, ee2, _2, v2, y2]), { resolvePath: ae2, toHref: oe2 } = ds(), se2 = (0, import_react.useMemo)(() => S2.services.map((e6) => {
3360
- let t3 = ae2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null });
3361
- return { serviceId: e6._id ?? null, refreshSignal: _2, service: e6, masterEvents: w2[e6.schedule?._id ?? ``] ?? Bc, serviceOptionsAndVariants: E2[e6._id ?? ``] ?? null, bookingsSettings: x2, servicePageLink: t3 ? { href: oe2(t3), target: `_self` } : null };
3362
- }), [ae2, oe2, S2.services, _2, w2, E2, x2]), ce2 = (0, import_react.useMemo)(() => ({ serviceItems: t2 ? Vc : se2, bookingsSettings: x2, hasMore: !t2 && S2.hasMore, isLoading: t2 || S2.isLoadingMore, hasError: !t2 && b2.hasError, categoryId: a2, locationId: o2, loadMore: ie2 }), [t2, se2, x2, S2.hasMore, S2.isLoadingMore, b2.hasError, a2, o2, ie2]);
3363
- return (0, import_jsx_runtime.jsx)(Jc.Provider, { value: ce2, children: d2 });
3364
- }
3365
- var $c = (e5) => ({ ...e5, hasError: false });
3366
- var el = () => ({ ...Kc });
3367
- function tl({ categoryData: e5, limit: n2 = 9, servicesPicker: r2, categoriesPicker: i2, refreshSignal: a2 = 0, children: s2 }) {
3368
- let l2 = Math.min(n2 ?? 9, 100), { searchParams: d2 } = Ai(), f2 = e5?.categoryId, p2 = !!f2, g2 = f2 || d2.get(rs.category), _2 = d2.get(rs.location), v2 = p2 ? 1 : qc(d2.get(rs.page)), y2 = zc(r2?.serviceId), b2 = zc(i2?.categoryId), x2 = hs(), S2 = xs(), C2 = ks(), { isSSR: w2 } = Ys(), [T2] = (0, import_react.useState)(() => w2()), E2 = (0, import_react.useMemo)(() => ({ firstPagePromise: yi(Gs({ key: Ms(S2, C2, g2, _2, v2, l2, $(y2) ?? [], $(b2) ?? []), refresh: a2 !== 0, warmupData: x2, fetchData: () => pi(`services-context-load`, { feature: U.services }, ns({ limit: l2, offset: (v2 - 1) * l2, categoryId: g2, locationId: _2, serviceIds: $(y2), categoryIds: $(b2) })) }), $c, el), safeLimit: l2, paginationIndex: v2, categoryId: g2, locationId: _2, serviceIdsKey: y2, categoryIdsKey: b2, refreshSignal: a2, language: S2, currency: C2 }), [l2, g2, _2, v2, a2, y2, b2, S2, C2]), [D2] = (0, import_react.useState)(() => Gs({ key: Ps(), warmupData: x2, fetchData: Pc })), O2 = (0, import_react.useDeferredValue)(E2);
3369
- return (0, import_jsx_runtime.jsx)(mi, { fallback: (0, import_jsx_runtime.jsx)(Rc, { categoryId: g2, locationId: _2, children: s2 }), feature: U.services, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(Lc, { categoryId: g2, locationId: _2, children: s2 }), children: [T2 && !p2 && (0, import_jsx_runtime.jsx)(pc, { servicesPromise: E2.firstPagePromise, currentPage: v2, pageQueryParam: rs.page }), (0, import_jsx_runtime.jsx)(Qc, { query: O2, isQueryPending: O2 !== E2, settingsPromise: D2, categoryId: g2, locationId: _2, children: s2 })] }) });
3370
- }
3371
- var nl = zn(`117fa14c-cf9c-47f5-b2cb-7797094612ce`);
3348
+ }, [O2, p2, e5.categoryId, e5.locationId, h2, g2, k2, ee2, _2, v2, y2]), { resolvePath: oe2, toHref: se2 } = ds(), ce2 = (0, import_react.useMemo)(() => S2.services.map((e6) => {
3349
+ let t3 = oe2(`servicePage`, { slug: e6.mainSlug?.name ?? null, serviceId: e6._id ?? null });
3350
+ return { serviceId: e6._id ?? null, refreshSignal: _2, service: e6, masterEvents: w2[e6.schedule?._id ?? ``] ?? zc, serviceOptionsAndVariants: E2[e6._id ?? ``] ?? null, bookingsSettings: x2, servicePageLink: t3 ? { href: se2(t3), target: `_self` } : null };
3351
+ }), [oe2, se2, S2.services, _2, w2, E2, x2]), le2 = (0, import_react.useMemo)(() => ({ serviceItems: t2 ? Bc : ce2, bookingsSettings: x2, hasMore: !t2 && S2.hasMore, isLoading: t2 || S2.isLoadingMore, hasError: !t2 && b2.hasError, categoryId: a2, locationId: o2, loadMore: ae2 }), [t2, ce2, x2, S2.hasMore, S2.isLoadingMore, b2.hasError, a2, o2, ae2]);
3352
+ return (0, import_jsx_runtime.jsx)(qc.Provider, { value: le2, children: d2 });
3353
+ }
3354
+ var Qc = (e5) => ({ ...e5, hasError: false });
3355
+ var $c = () => ({ ...Gc });
3356
+ function el({ categoryData: e5, limit: n2 = 9, servicesPicker: r2, categoriesPicker: i2, refreshSignal: a2 = 0, children: s2 }) {
3357
+ let l2 = Math.min(n2 ?? 9, 100), { searchParams: d2 } = ji(), f2 = e5?.categoryId, p2 = !!f2, g2 = f2 || d2.get(rs.category), _2 = d2.get(rs.location), v2 = p2 ? 1 : Kc(d2.get(rs.page)), y2 = Rc(r2?.serviceId), b2 = Rc(i2?.categoryId), x2 = hs(), S2 = xs(), C2 = Os(), { isSSR: w2 } = Js(), [T2] = (0, import_react.useState)(() => w2()), E2 = (0, import_react.useMemo)(() => ({ firstPagePromise: bi(Ws({ key: js(S2, C2, g2, _2, v2, l2, $(y2) ?? [], $(b2) ?? []), refresh: a2 !== 0, warmupData: x2, fetchData: () => mi(`services-context-load`, { feature: H.services }, ns({ limit: l2, offset: (v2 - 1) * l2, categoryId: g2, locationId: _2, serviceIds: $(y2), categoryIds: $(b2) })) }), Qc, $c), safeLimit: l2, paginationIndex: v2, categoryId: g2, locationId: _2, serviceIdsKey: y2, categoryIdsKey: b2, refreshSignal: a2, language: S2, currency: C2 }), [l2, g2, _2, v2, a2, y2, b2, S2, C2]), [D2] = (0, import_react.useState)(() => Ws({ key: Ns(), warmupData: x2, fetchData: Nc })), O2 = (0, import_react.useDeferredValue)(E2);
3358
+ return (0, import_jsx_runtime.jsx)(hi, { fallback: (0, import_jsx_runtime.jsx)(Lc, { categoryId: g2, locationId: _2, children: s2 }), feature: H.services, children: (0, import_jsx_runtime.jsxs)(import_react.Suspense, { fallback: (0, import_jsx_runtime.jsx)(Ic, { categoryId: g2, locationId: _2, children: s2 }), children: [T2 && !p2 && (0, import_jsx_runtime.jsx)(fc, { servicesPromise: E2.firstPagePromise, currentPage: v2, pageQueryParam: rs.page }), (0, import_jsx_runtime.jsx)(Zc, { query: O2, isQueryPending: O2 !== E2, settingsPromise: D2, categoryId: g2, locationId: _2, children: s2 })] }) });
3359
+ }
3360
+ var tl = Bn(`117fa14c-cf9c-47f5-b2cb-7797094612ce`);
3372
3361
  // Annotate the CommonJS export names for ESM import in node:
3373
3362
  0 && (module.exports = {
3374
3363
  SERVICES_CONTEXT_MISSING_PROVIDER_ERROR,