@wix/blog 1.0.712 → 1.0.714

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.
@@ -30,10 +30,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // context-post-list-item.ts
31
31
  var context_post_list_item_exports = {};
32
32
  __export(context_post_list_item_exports, {
33
- PostItemContextProvider: () => ms,
34
- default: () => ms,
35
- injectAccessTokenGetter: () => hs,
36
- usePostListItemContext: () => fs
33
+ PostItemContextProvider: () => hs,
34
+ default: () => hs,
35
+ injectAccessTokenGetter: () => gs,
36
+ usePostListItemContext: () => ps
37
37
  });
38
38
  module.exports = __toCommonJS(context_post_list_item_exports);
39
39
 
@@ -157,45 +157,45 @@ var he = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -
157
157
  function ge(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
158
158
  if (typeof e6 != `object` || !e6) throw e6;
159
159
  if (pe(e6)) return _e(e6, t2, n2);
160
- if (me(e6)) return ye(e6);
160
+ if (me(e6)) return ve(e6);
161
161
  if (he(e6)) {
162
162
  let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: se(n3), data: {} }, requestId: e6.requestId };
163
- return ve(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
163
+ return E(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
164
164
  }
165
- return be(e6);
165
+ return ye(e6);
166
166
  }
167
167
  var _e = (e6, t2, n2) => {
168
- let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = xe(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
169
- return ve(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
168
+ let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = be(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
169
+ return E(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
170
170
  };
171
- var ve = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
172
- var ye = (e6) => {
171
+ var E = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
172
+ var ve = (e6) => {
173
173
  let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? se(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
174
- return ve(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
174
+ return E(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
175
175
  };
176
- var be = (e6) => ve(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: se(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
177
- var xe = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
176
+ var ye = (e6) => E(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: se(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
177
+ var be = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
178
178
  let a2 = { ...e6, ...t2 }, o2 = Object.keys(a2);
179
179
  return r2?.filter((e7) => !r2.some((t3) => t3.field.length > e7.field.length && t3.field.startsWith(e7.field) && o2.includes(t3.field))).map((e7) => {
180
180
  let r3 = t2[e7.field];
181
- if (r3) return { ...e7, field: Se(r3, i2) };
181
+ if (r3) return { ...e7, field: xe(r3, i2) };
182
182
  let s2 = o2?.sort((e8, t3) => t3.length - e8.length)?.find((t3) => e7.field.startsWith(t3));
183
183
  if (s2) {
184
184
  let t3 = a2[s2];
185
- if (t3) return { ...e7, field: e7.field.replace(s2, Se(t3, i2)) };
185
+ if (t3) return { ...e7, field: e7.field.replace(s2, xe(t3, i2)) };
186
186
  }
187
187
  return n2 ? { ...e7, field: `${i2[0]}.${e7.field}` } : e7;
188
188
  });
189
189
  };
190
- var Se = (e6, t2) => {
191
- let n2 = Ce(e6);
190
+ var xe = (e6, t2) => {
191
+ let n2 = Se(e6);
192
192
  return n2 == null ? e6 : e6.replace(`$[${n2}]`, t2[n2]);
193
193
  };
194
- var Ce = (e6) => {
194
+ var Se = (e6) => {
195
195
  let t2 = e6.match(/\$\[(?<argIndex>\d+)\]/);
196
196
  return t2 && t2.groups && Number(t2.groups.argIndex);
197
197
  };
198
- function we(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
198
+ function Ce(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
199
199
  return ae(() => e6({ request: async (e7) => {
200
200
  let i3 = e7({ host: s2?.HTTPHost || `www.wixapis.com` }), a3 = i3;
201
201
  a3.method === `GET` && a3.fallback?.length && (a3.params?.toString().length ?? 0) > 4e3 && (a3 = i3.fallback[0]);
@@ -209,7 +209,7 @@ function we(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
209
209
  e9 = await s3.json();
210
210
  } catch {
211
211
  }
212
- let t3 = Ee(s3.status, e9?.message ?? s3.statusText, e9?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e9 }), n3 = ge(t3);
212
+ let t3 = Te(s3.status, e9?.message ?? s3.statusText, e9?.details, { requestId: s3.headers.get(`X-Wix-Request-Id`), details: e9 }), n3 = ge(t3);
213
213
  throw r2?.handleError(n3, { requestOptions: { url: a3.url, method: a3.method, entityFqdn: i3.entityFqdn, methodFqn: i3.methodFqn } }), t3;
214
214
  }
215
215
  let l3 = await s3.json();
@@ -219,18 +219,18 @@ function we(e6, t2, n2, r2, i2, a2, o2, s2, c2, l2, u2) {
219
219
  }
220
220
  }, fetchWithAuth: n2, wixAPIFetch: i2, getActiveToken: a2, getAuthHeaders: o2 }, { validateRequestSchema: u2 }));
221
221
  }
222
- var Te = class extends Error {
222
+ var we = class extends Error {
223
223
  response;
224
224
  requestId;
225
225
  constructor(e6) {
226
226
  super(), this.response = e6.response, this.requestId = e6.requestId;
227
227
  }
228
228
  };
229
- var Ee = (e6, t2, n2, r2) => new Te({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2 }, status: e6 }, requestId: r2?.requestId });
230
- var De = `.`;
231
- function Oe(e6, t2, n2) {
229
+ var Te = (e6, t2, n2, r2) => new we({ response: { data: { details: { ...!n2?.validationError && { applicationError: { description: t2, code: e6, data: r2 } }, ...n2 }, message: t2 }, status: e6 }, requestId: r2?.requestId });
230
+ var Ee = `.`;
231
+ function De(e6, t2, n2) {
232
232
  if (e6 == null) throw Error(`Cannot set value on null or undefined`);
233
- let r2 = ke(t2), i2 = e6;
233
+ let r2 = Oe(t2), i2 = e6;
234
234
  for (let e7 = 0; e7 < r2.length; e7++) {
235
235
  let t3 = r2[e7];
236
236
  if (e7 === r2.length - 1) {
@@ -242,21 +242,21 @@ function Oe(e6, t2, n2) {
242
242
  }
243
243
  return e6;
244
244
  }
245
- function ke(e6) {
246
- return Array.isArray(e6) ? e6 : e6.split(De).map((e7) => Ae(e7) ? Number(e7) : e7);
245
+ function Oe(e6) {
246
+ return Array.isArray(e6) ? e6 : e6.split(Ee).map((e7) => ke(e7) ? Number(e7) : e7);
247
247
  }
248
- function Ae(e6) {
248
+ function ke(e6) {
249
249
  return /^\d+$/.test(e6);
250
250
  }
251
- function je(e6) {
251
+ function Ae(e6) {
252
252
  let t2 = {};
253
- for (let [n2, r2] of Object.entries(e6)) Me(n2) || Oe(t2, ke(n2), r2);
253
+ for (let [n2, r2] of Object.entries(e6)) je(n2) || De(t2, Oe(n2), r2);
254
254
  return t2;
255
255
  }
256
- function Me(e6) {
256
+ function je(e6) {
257
257
  return e6 === `__proto__` || e6 === `constructor` || e6 === `prototype`;
258
258
  }
259
- var Ne = class {
259
+ var Me = class {
260
260
  BRACKET_PATTERN = /\[(\d+)\]/g;
261
261
  NUMERIC_PATTERN = /^\d+$/;
262
262
  ESCAPED_DOT_PATTERN = /\\\./g;
@@ -279,7 +279,7 @@ var Ne = class {
279
279
  return e6.replace(this.ESCAPED_DOT_PLACEHOLDER, `\\.`).replace(this.ESCAPED_RIGHT_BRACKET_PLACEHOLDER, `\\]`).replace(this.ESCAPED_LEFT_BRACKET_PLACEHOLDER, `\\[`);
280
280
  }
281
281
  unflatten() {
282
- return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e6, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e6)), t2])), je(this.cleanedModifiedFields);
282
+ return this.cleanedModifiedFields = Object.fromEntries(Object.entries(this.modifiedFields).map(([e6, t2]) => [this.replaceEscapedCharacters(this.bracketToDotNotation(e6)), t2])), Ae(this.cleanedModifiedFields);
283
283
  }
284
284
  flatten(e6) {
285
285
  let t2 = {};
@@ -304,7 +304,7 @@ var Ne = class {
304
304
  r2.push(i3), n2 = t3[i3];
305
305
  return;
306
306
  }
307
- let a3 = Le(e7);
307
+ let a3 = Ie(e7);
308
308
  if (a3 && a3 in t3) r2.push(a3), n2 = t3[a3];
309
309
  else throw Error(`Cannot find key '${e7}' or its transformations at path ${this.buildPathString(r2)}`);
310
310
  }, o2 = (e7, t3) => {
@@ -328,28 +328,28 @@ var Ne = class {
328
328
  return e6.replace(this.BRACKET_PATTERN, (t2, n2, r2) => r2 > 0 && e6[r2 - 1] === `\\` ? t2 : `.` + n2);
329
329
  }
330
330
  };
331
- function Pe(e6, t2) {
331
+ function Ne(e6, t2) {
332
332
  let n2 = e6?.modifiedFields;
333
333
  if (!n2) return null;
334
- let r2 = Fe(n2);
334
+ let r2 = Pe(n2);
335
335
  if (!r2) return null;
336
336
  let { unflattenedModifiedFields: i2, modifiedFieldsManipulator: a2 } = r2;
337
337
  e6 = { ...e6, modifiedFields: i2 };
338
338
  let o2 = t2(e6), s2 = o2?.modifiedFields;
339
339
  if (!s2) return null;
340
- let c2 = Ie(s2, a2);
340
+ let c2 = Fe(s2, a2);
341
341
  return c2 === null ? null : (o2.modifiedFields = c2, o2);
342
342
  }
343
- function Fe(e6) {
343
+ function Pe(e6) {
344
344
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) try {
345
- let t2 = new Ne(e6);
345
+ let t2 = new Me(e6);
346
346
  return { unflattenedModifiedFields: t2.unflatten(), modifiedFieldsManipulator: t2 };
347
347
  } catch {
348
348
  return null;
349
349
  }
350
350
  return null;
351
351
  }
352
- function Ie(e6, t2) {
352
+ function Fe(e6, t2) {
353
353
  if (typeof e6 == `object` && e6 && !Array.isArray(e6)) try {
354
354
  return t2.flatten(e6);
355
355
  } catch {
@@ -357,10 +357,10 @@ function Ie(e6, t2) {
357
357
  }
358
358
  return null;
359
359
  }
360
- function Le(e6) {
360
+ function Ie(e6) {
361
361
  return e6.replace(/[-_\s]+(.)?/g, (e7, t2) => t2 ? t2.toUpperCase() : ``).replace(/^./, (e7) => e7.toLowerCase());
362
362
  }
363
- function Re() {
363
+ function Le() {
364
364
  return { emit(e6, ...t2) {
365
365
  for (let n2 = 0, r2 = this.events[e6] || [], i2 = r2.length; n2 < i2; n2++) r2[n2](...t2);
366
366
  }, events: {}, on(e6, t2) {
@@ -369,8 +369,8 @@ function Re() {
369
369
  };
370
370
  } };
371
371
  }
372
- var ze = (e6) => e6.__type === `event-definition`;
373
- function Be(e6, t2, n2, r2) {
372
+ var Re = (e6) => e6.__type === `event-definition`;
373
+ function ze(e6, t2, n2, r2) {
374
374
  let i2;
375
375
  if (e6.isDomainEvent) {
376
376
  let { deletedEvent: e7, actionEvent: t3, createdEvent: a3, updatedEvent: o3, ...s3 } = n2, c2 = { ...r2, ...s3 };
@@ -381,14 +381,14 @@ function Be(e6, t2, n2, r2) {
381
381
  let e7 = s2.modifiedFields;
382
382
  if (typeof e7 == `object` && e7 && !Array.isArray(e7)) {
383
383
  o2 = structuredClone(i2);
384
- let e8 = Pe(s2, a2);
384
+ let e8 = Ne(s2, a2);
385
385
  if (e8) return t2(e8);
386
386
  }
387
387
  }
388
388
  return t2(a2(o2));
389
389
  }
390
- function Ve(e6) {
391
- let t2 = /* @__PURE__ */ new Map(), n2 = Re();
390
+ function Be(e6) {
391
+ let t2 = /* @__PURE__ */ new Map(), n2 = Le();
392
392
  return { initModule(e7) {
393
393
  return (r2) => {
394
394
  let i2 = t2.get(e7.type) ?? [];
@@ -398,7 +398,7 @@ function Ve(e6) {
398
398
  let { eventType: r2, identity: i2, instanceId: a2, payload: o2, accountInfo: s2 } = await this.parseJWT(e7), c2 = [...n3.expectedEvents, ...Array.from(t2.keys()).map((e8) => ({ type: e8 }))];
399
399
  if (c2.length > 0 && !c2.some(({ type: e8 }) => e8 === r2)) throw Error(`Unexpected event type: ${r2}. Expected one of: ${c2.map((e8) => e8.type).join(`, `)}`);
400
400
  let l2 = t2.get(r2) ?? [];
401
- return await Promise.all(l2.map(({ eventDefinition: e8, handler: t3 }) => Be(e8, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
401
+ return await Promise.all(l2.map(({ eventDefinition: e8, handler: t3 }) => ze(e8, t3, o2, { instanceId: a2, identity: i2, accountInfo: s2 }))), { instanceId: a2, eventType: r2, payload: o2, identity: i2, accountInfo: s2 };
402
402
  }, async processRequest(e7, t3) {
403
403
  let n3 = await e7.text();
404
404
  return this.process(n3, t3);
@@ -417,12 +417,12 @@ function Ve(e6) {
417
417
  let n3 = Array.from(t2.keys()).map((e8) => ({ type: e8 }));
418
418
  if (n3.length > 0 && !n3.some(({ type: t3 }) => t3 === e7.eventType)) throw Error(`Unexpected event type: ${e7.eventType}. Expected one of: ${n3.map((e8) => e8.type).join(`, `)}`);
419
419
  let r2 = t2.get(e7.eventType) ?? [];
420
- await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Be(t3, n4, e7.payload, { instanceId: e7.instanceId, identity: e7.identity })));
420
+ await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => ze(t3, n4, e7.payload, { instanceId: e7.instanceId, identity: e7.identity })));
421
421
  }, apps: { AppInstalled: g(`AppInstalled`)(), AppRemoved: g(`AppRemoved`)() } } };
422
422
  }
423
- var He = (e6) => e6.__type === `service-plugin-definition`;
424
- function Ue(e6) {
425
- let t2 = /* @__PURE__ */ new Map(), n2 = Re();
423
+ var Ve = (e6) => e6.__type === `service-plugin-definition`;
424
+ function He(e6) {
425
+ let t2 = /* @__PURE__ */ new Map(), n2 = Le();
426
426
  return { initModule(e7) {
427
427
  return (r2) => {
428
428
  let i2 = t2.get(e7.componentType.toLowerCase()) ?? [];
@@ -463,38 +463,38 @@ function Ue(e6) {
463
463
  return s2.transformations.toREST(await c2(s2.transformations.fromREST(e7)));
464
464
  } } };
465
465
  }
466
- var E = `X-Wix-Consistent`;
467
- function We(e6) {
466
+ var D = `X-Wix-Consistent`;
467
+ function Ue(e6) {
468
468
  let t2 = e6.headers || { Authorization: `` }, n2 = { getAuthHeaders: (e7) => Promise.resolve({ headers: {} }) }, r2 = e6.auth, i2 = typeof r2 == `function` ? r2 : () => r2 ?? n2, a2 = () => i2().getAuthHeaders(e6.host), o2 = () => e6.fetch ?? fetch, s2 = async (n3, r3) => {
469
- let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [E]: t2[E] } : {} }, l3 = e6.host?.getErrorHandler?.();
469
+ let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [D]: t2[D] } : {} }, l3 = e6.host?.getErrorHandler?.();
470
470
  try {
471
471
  if (typeof n3 == `string` || n3 instanceof URL) {
472
472
  let e7 = await i3(n3, { ...r3, headers: c3 });
473
473
  l3?.handleError(e7, { requestOptions: { url: n3.toString(), method: r3?.method } });
474
- let a3 = Ge(e7);
475
- return a3 && (t2[E] = a3), e7;
474
+ let a3 = We(e7);
475
+ return a3 && (t2[D] = a3), e7;
476
476
  }
477
477
  {
478
478
  for (let [e8, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e8, t3);
479
479
  let e7 = await i3(n3, r3);
480
480
  l3?.handleError(e7, { requestOptions: { url: n3.url, method: r3?.method } });
481
- let a3 = Ge(e7);
482
- return a3 && (t2[E] = a3), e7;
481
+ let a3 = We(e7);
482
+ return a3 && (t2[D] = a3), e7;
483
483
  }
484
484
  } catch (e7) {
485
485
  throw l3?.handleError(e7, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e7;
486
486
  }
487
- }, { client: c2, initModule: l2 } = Ue(i2), { client: u2, initModule: d2 } = Ve(i2), f2 = async (n3, r3) => {
488
- let i3 = o2(), s3 = await a2(), c3 = ee(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [E]: t2[E] } : {} } }), u3 = Ge(l3);
489
- return u3 && (t2[E] = u3), l3;
487
+ }, { client: c2, initModule: l2 } = He(i2), { client: u2, initModule: d2 } = Be(i2), f2 = async (n3, r3) => {
488
+ let i3 = o2(), s3 = await a2(), c3 = ee(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e6.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [D]: t2[D] } : {} } }), u3 = We(l3);
489
+ return u3 && (t2[D] = u3), l3;
490
490
  }, p2 = (t3, n3) => {
491
- if (ze(t3)) return d2(t3);
492
- if (He(t3)) return l2(t3);
491
+ if (Re(t3)) return d2(t3);
492
+ if (Ve(t3)) return l2(t3);
493
493
  if (T(t3) && e6.host) return te(t3, e6.host);
494
494
  if (typeof t3 == `function`) {
495
495
  if (`__type` in t3 && t3.__type === `wix_spi_error`) return t3;
496
496
  let r3 = e6.host?.apiBaseUrl ?? `www.wixapis.com`, o3 = e6.useCDN === void 0 ? i2().shouldUseCDN : e6.useCDN;
497
- return we(ae(() => y(t3)) ? v(t3) : t3, n3 ?? {}, f2, e6.host?.getErrorHandler?.(), (e7, t4) => {
497
+ return Ce(ae(() => y(t3)) ? v(t3) : t3, n3 ?? {}, f2, e6.host?.getErrorHandler?.(), (e7, t4) => {
498
498
  let n4 = new URL(e7, `https://${r3}`);
499
499
  return n4.host = r3, n4.protocol = `https`, f2(n4.toString(), t4);
500
500
  }, i2().getActiveToken, async () => a2(), { HTTPHost: r3 }, e6.host?.name, o3, e6.validateRequestSchema);
@@ -518,22 +518,22 @@ function We(e6) {
518
518
  return { data: o3 ?? {}, errors: s3 };
519
519
  }, webhooks: u2, servicePlugins: c2 };
520
520
  }
521
- function Ge(e6) {
521
+ function We(e6) {
522
522
  return e6.headers?.get(`X-Wix-Consistent`) ?? e6.headers?.get(`x-wix-consistent`);
523
523
  }
524
- var Ke = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
525
- var qe = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
526
- var Je = `items`;
527
- var Ye = `pagingMetadata`;
528
- var Xe = Ke;
529
- function Ze(e6, t2) {
524
+ var Ge = { _id: `id`, _createdDate: `createdDate`, _updatedDate: `updatedDate` };
525
+ var Ke = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
526
+ var qe = `items`;
527
+ var Je = `pagingMetadata`;
528
+ var Ye = Ge;
529
+ function Xe(e6, t2) {
530
530
  return e6?.split(`.`).map((e7) => t2?.[e7] ?? e7).join(`.`);
531
531
  }
532
- var Qe = `sort.fieldName`;
533
- function $e(e6, t2, n2) {
534
- return (e6 === Qe || e6.endsWith(`.${Qe}`)) && typeof t2 == `string` ? Ze(t2, n2) : t2;
532
+ var Ze = `sort.fieldName`;
533
+ function Qe(e6, t2, n2) {
534
+ return (e6 === Ze || e6.endsWith(`.${Ze}`)) && typeof t2 == `string` ? Xe(t2, n2) : t2;
535
535
  }
536
- function et(e6, t2, n2) {
536
+ function $e(e6, t2, n2) {
537
537
  let r2 = (e7) => n2.includes(e7), i2 = (e7, n3) => {
538
538
  if (Array.isArray(e7)) e7.forEach((e8) => {
539
539
  i2(e8, n3);
@@ -543,122 +543,122 @@ function et(e6, t2, n2) {
543
543
  Object.keys(a2).forEach((e8) => {
544
544
  let o2 = n3 === `` ? e8 : `${n3}.${e8}`;
545
545
  if (r2(o2)) return;
546
- let s2 = tt(e8, t2);
547
- s2 !== e8 && !(s2 in a2) && (a2[s2] = a2[e8], delete a2[e8]), a2[s2] = $e(o2, a2[s2], t2), i2(a2[s2], o2);
546
+ let s2 = et(e8, t2);
547
+ s2 !== e8 && !(s2 in a2) && (a2[s2] = a2[e8], delete a2[e8]), a2[s2] = Qe(o2, a2[s2], t2), i2(a2[s2], o2);
548
548
  });
549
549
  }
550
550
  };
551
551
  return i2(e6, ``), e6;
552
552
  }
553
- function tt(e6, t2) {
553
+ function et(e6, t2) {
554
554
  let n2;
555
555
  return n2 = e6.includes(`.`) ? e6.split(`.`).map((e7) => t2[e7] ?? e7).join(`.`) : t2[e6] ?? e6, n2;
556
556
  }
557
- function D(e6, t2 = []) {
558
- return et(e6, Ke, t2);
559
- }
560
557
  function O(e6, t2 = []) {
561
- return et(e6, qe, t2);
558
+ return $e(e6, Ge, t2);
562
559
  }
563
- function nt(e6) {
560
+ function k(e6, t2 = []) {
561
+ return $e(e6, Ke, t2);
562
+ }
563
+ function tt(e6) {
564
564
  return e6?.toISOString();
565
565
  }
566
- function rt(e6) {
566
+ function nt(e6) {
567
567
  return e6 ? new Date(e6) : void 0;
568
568
  }
569
- var it = /* @__PURE__ */ new WeakMap();
570
- function at() {
569
+ var rt = /* @__PURE__ */ new WeakMap();
570
+ function it() {
571
571
  return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
572
572
  }
573
- function ot(e6, t2) {
573
+ function at(e6, t2) {
574
574
  let n2 = e6.get(t2);
575
- return n2 || (n2 = at(), e6.set(t2, n2)), n2;
575
+ return n2 || (n2 = it(), e6.set(t2, n2)), n2;
576
576
  }
577
- function st(e6, t2) {
578
- return t2 === `*` ? (e6.anyField ??= at(), e6.anyField) : t2.endsWith(`{}`) ? (e6.mapFields ??= /* @__PURE__ */ new Map(), ot(e6.mapFields, t2.slice(0, -2))) : (e6.fields ??= /* @__PURE__ */ new Map(), ot(e6.fields, t2));
577
+ function ot(e6, t2) {
578
+ return t2 === `*` ? (e6.anyField ??= it(), e6.anyField) : t2.endsWith(`{}`) ? (e6.mapFields ??= /* @__PURE__ */ new Map(), at(e6.mapFields, t2.slice(0, -2))) : (e6.fields ??= /* @__PURE__ */ new Map(), at(e6.fields, t2));
579
579
  }
580
- function ct(e6) {
581
- let t2 = at();
580
+ function st(e6) {
581
+ let t2 = it();
582
582
  for (let n2 of e6) {
583
- let e7 = n2.path.split(`.`).reduce(st, t2);
583
+ let e7 = n2.path.split(`.`).reduce(ot, t2);
584
584
  e7.leaves ??= [], e7.leaves.push(n2);
585
585
  }
586
586
  return t2;
587
587
  }
588
- function lt(e6) {
589
- let t2 = it.get(e6);
590
- return t2 || (t2 = ct(e6), it.set(e6, t2)), t2;
588
+ function ct(e6) {
589
+ let t2 = rt.get(e6);
590
+ return t2 || (t2 = st(e6), rt.set(e6, t2)), t2;
591
591
  }
592
- function k(e6) {
592
+ function A(e6) {
593
593
  return typeof e6 == `object` && !!e6;
594
594
  }
595
- function ut(e6, { isRepeated: t2, isMap: n2 }, r2) {
596
- return t2 ? Array.isArray(e6) ? e6.map(r2) : e6 : n2 ? k(e6) ? Object.fromEntries(Object.entries(e6).map(([e7, t3]) => [e7, r2(t3)])) : e6 : r2(e6);
595
+ function lt(e6, { isRepeated: t2, isMap: n2 }, r2) {
596
+ return t2 ? Array.isArray(e6) ? e6.map(r2) : e6 : n2 ? A(e6) ? Object.fromEntries(Object.entries(e6).map(([e7, t3]) => [e7, r2(t3)])) : e6 : r2(e6);
597
597
  }
598
- function A(e6, t2, n2) {
599
- k(e6) && pt(e6, t2, n2);
598
+ function j(e6, t2, n2) {
599
+ A(e6) && ft(e6, t2, n2);
600
600
  }
601
- function dt(e6, t2, n2) {
601
+ function ut(e6, t2, n2) {
602
602
  for (let [r2, i2] of t2) {
603
603
  if (!(r2 in e6)) continue;
604
- if (i2.leaves) for (let t4 of i2.leaves) e6[r2] = ut(e6[r2], t4, n2);
604
+ if (i2.leaves) for (let t4 of i2.leaves) e6[r2] = lt(e6[r2], t4, n2);
605
605
  let t3 = e6[r2];
606
- Array.isArray(t3) ? t3.forEach((e7) => A(e7, i2, n2)) : A(t3, i2, n2);
606
+ Array.isArray(t3) ? t3.forEach((e7) => j(e7, i2, n2)) : j(t3, i2, n2);
607
607
  }
608
608
  }
609
- function ft(e6, t2, n2) {
609
+ function dt(e6, t2, n2) {
610
610
  for (let [r2, i2] of t2) {
611
611
  let t3 = e6[r2];
612
- k(t3) && Object.values(t3).forEach((e7) => A(e7, i2, n2));
612
+ A(t3) && Object.values(t3).forEach((e7) => j(e7, i2, n2));
613
613
  }
614
614
  }
615
- function pt(e6, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
616
- t2 && dt(e6, t2, i2), n2 && ft(e6, n2, i2), r2 && Object.values(e6).forEach((e7) => A(e7, r2, i2));
615
+ function ft(e6, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
616
+ t2 && ut(e6, t2, i2), n2 && dt(e6, n2, i2), r2 && Object.values(e6).forEach((e7) => j(e7, r2, i2));
617
617
  }
618
- function j(e6, t2) {
619
- if (!k(e6)) return e6;
620
- for (let { paths: n2, transformFn: r2 } of t2) pt(e6, lt(n2), r2);
618
+ function M(e6, t2) {
619
+ if (!A(e6)) return e6;
620
+ for (let { paths: n2, transformFn: r2 } of t2) ft(e6, ct(n2), r2);
621
621
  return e6;
622
622
  }
623
- function mt(e6) {
624
- return yt(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
623
+ function pt(e6) {
624
+ return vt(e6).map((e7) => e7.toLocaleUpperCase()).join(`_`);
625
625
  }
626
- var ht = /([\p{Ll}\d])(\p{Lu})/gu;
627
- var gt = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
628
- var _t = `$1\0$2`;
629
- var vt = /[^\p{L}\d]+/giu;
630
- function yt(e6) {
626
+ var mt = /([\p{Ll}\d])(\p{Lu})/gu;
627
+ var ht = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
628
+ var gt = `$1\0$2`;
629
+ var _t = /[^\p{L}\d]+/giu;
630
+ function vt(e6) {
631
631
  let t2 = e6.trim();
632
- t2 = t2.replace(ht, _t).replace(gt, _t), t2 = t2.replace(vt, `\0`);
632
+ t2 = t2.replace(mt, gt).replace(ht, gt), t2 = t2.replace(_t, `\0`);
633
633
  let n2 = 0, r2 = t2.length;
634
634
  for (; t2.charAt(n2) === `\0`; ) n2++;
635
635
  if (n2 === r2) return [];
636
636
  for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
637
637
  return t2.slice(n2, r2).split(/\0/g);
638
638
  }
639
- var bt = (e6) => `validationError` in (e6.response?.data?.details ?? {});
640
- var xt = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
641
- var St = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
642
- function M(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
639
+ var yt = (e6) => `validationError` in (e6.response?.data?.details ?? {});
640
+ var bt = (e6) => `applicationError` in (e6.response?.data?.details ?? {});
641
+ var xt = (e6) => (e6.response?.status ?? -1) >= 400 && (e6.response?.status ?? -1) < 500;
642
+ function N(e6, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
643
643
  if (typeof e6 != `object` || !e6) throw e6;
644
- if (bt(e6)) return Ct(e6, t2, n2);
645
- if (xt(e6)) return wt(e6);
646
- if (St(e6)) {
647
- let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: mt(n3), data: {} }, requestId: e6.requestId };
648
- return N(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
644
+ if (yt(e6)) return St(e6, t2, n2);
645
+ if (bt(e6)) return wt(e6);
646
+ if (xt(e6)) {
647
+ let t3 = e6.response?.status, n3 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: pt(n3), data: {} }, requestId: e6.requestId };
648
+ return Ct(e6, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
649
649
  }
650
650
  return Tt(e6);
651
651
  }
652
- var Ct = (e6, t2, n2) => {
652
+ var St = (e6, t2, n2) => {
653
653
  let r2 = e6.response?.data, i2 = e6.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Et(t2, a2, n2)?.sort((e7, t3) => e7.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e7, description: t3 }) => `"${e7}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
654
- return N(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
654
+ return Ct(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e6.response?.status, requestId: i2 } });
655
655
  };
656
- var N = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
656
+ var Ct = (e6, { message: t2, extraProperties: n2 }) => Object.assign(e6, { ...n2, message: t2 });
657
657
  var wt = (e6) => {
658
- let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? mt(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
659
- return N(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
658
+ let t2 = e6.response?.status, n2 = e6.response?.statusText ?? `UNKNOWN`, r2 = e6.response?.data?.message ?? n2, i2 = e6.response?.data?.details?.applicationError?.description ?? n2, a2 = e6.response?.data?.details?.applicationError?.code ?? pt(n2), o2 = e6.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e6.requestId };
659
+ return Ct(e6, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e6.requestId } });
660
660
  };
661
- var Tt = (e6) => N(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: mt(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
661
+ var Tt = (e6) => Ct(e6, { message: e6.requestId ? `System error occurred, request-id: ${e6.requestId}` : `System error occurred: ${JSON.stringify(e6)}`, extraProperties: { requestId: e6.requestId, status: e6.response?.status, code: pt(e6.response?.statusText ?? `UNKNOWN`), ...!e6.response && { runtimeError: e6 } } });
662
662
  var Et = ({ spreadPathsToArguments: e6, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
663
663
  let a2 = { ...e6, ...t2 }, o2 = Object.keys(a2);
664
664
  return r2?.filter((e7) => !r2.some((t3) => t3.field.length > e7.field.length && t3.field.startsWith(e7.field) && o2.includes(t3.field))).map((e7) => {
@@ -942,7 +942,7 @@ var Tn = xn({ createHost: function(e6) {
942
942
  } });
943
943
  var En = (e6, t2) => {
944
944
  let n2 = Tn.host({ applicationId: e6, componentId: t2 }), r2 = Tn.auth();
945
- return We({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
945
+ return Ue({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
946
946
  };
947
947
  var Dn = (e6) => En(`14bcded7-0066-7c35-14d7-466cb3f09103`, e6);
948
948
  var On = { post: `post`, feed: `feed`, relatedPosts: `related-posts`, comments: `comments`, seo: `seo`, likes: `likes` };
@@ -1041,7 +1041,7 @@ var Rn = class extends In {
1041
1041
  function zn(e6) {
1042
1042
  let t2 = (n2) => ({ query: n2, async find() {
1043
1043
  try {
1044
- let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [Je]: a2, [Ye]: o2 } = e6.responseTransformer(i2);
1044
+ let r2 = e6.requestTransformer(e6.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e6.func(r2), { [qe]: a2, [Je]: o2 } = e6.responseTransformer(i2);
1045
1045
  if (e6.pagingMethod === `OFFSET`) {
1046
1046
  let e7 = n2;
1047
1047
  return new Rn({ items: a2 ?? [], fetchNextPage: () => t2({ ...e7, paging: { offset: e7.paging.offset + e7.paging.limit, limit: e7.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e7.paging.offset - e7.paging.limit, 0), limit: e7.paging.limit } }).find(), offset: e7.paging.offset, limit: e7.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
@@ -1122,7 +1122,7 @@ function zn(e6) {
1122
1122
  }
1123
1123
  function F(e6, t2) {
1124
1124
  let n2 = Object.entries(e6).find(([e7]) => e7 === t2 || t2.startsWith(`${e7}.`))?.[0];
1125
- return n2 ? t2.replace(n2, e6[n2]) : Ze(t2, { ...e6, ...Xe });
1125
+ return n2 ? t2.replace(n2, e6[n2]) : Xe(t2, { ...e6, ...Ye });
1126
1126
  }
1127
1127
  var Bn = `filter`;
1128
1128
  var Vn = `sort`;
@@ -1166,14 +1166,14 @@ function er(e6) {
1166
1166
  var tr = `@wix/auto_sdk_blog_likes`;
1167
1167
  function nr(e6) {
1168
1168
  function t2({ host: t3 }) {
1169
- let n2 = j(e6, [{ transformFn: nt, paths: Qn }]);
1170
- return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.CreateLike`, packageName: tr, migrationOptions: { optInTransformResponse: true }, url: er({ protoPath: `/v1/likes`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => j(e7, [{ transformFn: rt, paths: Qn }]) };
1169
+ let n2 = M(e6, [{ transformFn: tt, paths: Qn }]);
1170
+ return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.CreateLike`, packageName: tr, migrationOptions: { optInTransformResponse: true }, url: er({ protoPath: `/v1/likes`, data: n2, host: t3 }), data: n2, transformResponse: (e7) => M(e7, [{ transformFn: nt, paths: Qn }]) };
1171
1171
  }
1172
1172
  return t2;
1173
1173
  }
1174
1174
  function rr(e6) {
1175
1175
  function t2({ host: t3 }) {
1176
- return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.QueryLikes`, packageName: tr, migrationOptions: { optInTransformResponse: true }, url: er({ protoPath: `/v1/likes/query`, data: e6, host: t3 }), data: e6, transformResponse: (e7) => j(e7, [{ transformFn: rt, paths: $n }]) };
1176
+ return { entityFqdn: `wix.blog.v1.like`, method: `POST`, methodFqn: `wix.blog.v1.LikeService.QueryLikes`, packageName: tr, migrationOptions: { optInTransformResponse: true }, url: er({ protoPath: `/v1/likes/query`, data: e6, host: t3 }), data: e6, transformResponse: (e7) => M(e7, [{ transformFn: nt, paths: $n }]) };
1177
1177
  }
1178
1178
  return t2;
1179
1179
  }
@@ -1184,13 +1184,13 @@ function ir(e6) {
1184
1184
  return t2;
1185
1185
  }
1186
1186
  async function ar(e6) {
1187
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = nr(D({ like: e6?.like }));
1187
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = nr(O({ like: e6?.like }));
1188
1188
  n2?.onSiteCall?.();
1189
1189
  try {
1190
1190
  let e7 = await t2.request(r2);
1191
- return n2?.onSuccess?.(e7), O(e7.data)?.like;
1191
+ return n2?.onSuccess?.(e7), k(e7.data)?.like;
1192
1192
  } catch (e7) {
1193
- let t3 = M(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { like: `$[0].like` }, singleArgumentUnchanged: false }, [`options`]);
1193
+ let t3 = N(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { like: `$[0].like` }, singleArgumentUnchanged: false }, [`options`]);
1194
1194
  throw n2?.onError?.(e7), t3;
1195
1195
  }
1196
1196
  }
@@ -1207,33 +1207,33 @@ function or() {
1207
1207
  }
1208
1208
  }, requestTransformer: (e7) => {
1209
1209
  let t3 = [e7, {}];
1210
- return D({ ...t3?.[1], query: t3?.[0] });
1210
+ return O({ ...t3?.[1], query: t3?.[0] });
1211
1211
  }, responseTransformer: ({ data: e7 }) => {
1212
- let t3 = O(j(e7, []));
1212
+ let t3 = k(M(e7, []));
1213
1213
  return { items: t3?.likes, pagingMetadata: t3?.pagingMetadata };
1214
1214
  }, errorTransformer: (e7) => {
1215
- throw M(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
1215
+ throw N(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
1216
1216
  }, pagingMethod: `CURSOR`, transformationPaths: {} });
1217
1217
  }
1218
1218
  async function sr(e6) {
1219
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = rr(D({ query: e6 }));
1219
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = rr(O({ query: e6 }));
1220
1220
  n2?.onSiteCall?.();
1221
1221
  try {
1222
1222
  let e7 = await t2.request(r2);
1223
- return n2?.onSuccess?.(e7), O(e7.data);
1223
+ return n2?.onSuccess?.(e7), k(e7.data);
1224
1224
  } catch (e7) {
1225
- let t3 = M(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
1225
+ let t3 = N(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
1226
1226
  throw n2?.onError?.(e7), t3;
1227
1227
  }
1228
1228
  }
1229
1229
  async function cr(e6) {
1230
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ir(D({ fqdn: e6?.fqdn, entityId: e6?.entityId }));
1230
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ir(O({ fqdn: e6?.fqdn, entityId: e6?.entityId }));
1231
1231
  n2?.onSiteCall?.();
1232
1232
  try {
1233
1233
  let e7 = await t2.request(r2);
1234
1234
  n2?.onSuccess?.(e7);
1235
1235
  } catch (e7) {
1236
- let t3 = M(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { fqdn: `$[0].fqdn`, entityId: `$[0].entityId` }, singleArgumentUnchanged: false }, [`identifiers`]);
1236
+ let t3 = N(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { fqdn: `$[0].fqdn`, entityId: `$[0].entityId` }, singleArgumentUnchanged: false }, [`identifiers`]);
1237
1237
  throw n2?.onError?.(e7), t3;
1238
1238
  }
1239
1239
  }
@@ -1266,18 +1266,18 @@ function vr(e6) {
1266
1266
  var yr = `@wix/auto_sdk_blog_posts`;
1267
1267
  function br(e6) {
1268
1268
  function t2({ host: t3 }) {
1269
- return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: yr, migrationOptions: { optInTransformResponse: true }, url: vr({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: Nt(e6), transformResponse: (e7) => j(e7, [{ transformFn: sn, paths: _r }]) };
1269
+ return { entityFqdn: `wix.blog.v3.post`, method: `GET`, methodFqn: `com.wixpress.npm.communities.platformized.blog.v3.PostService.GetPostMetrics`, packageName: yr, migrationOptions: { optInTransformResponse: true }, url: vr({ protoPath: `/v3/posts/{postId}/metrics`, data: e6, host: t3 }), params: Nt(e6), transformResponse: (e7) => M(e7, [{ transformFn: sn, paths: _r }]) };
1270
1270
  }
1271
1271
  return t2;
1272
1272
  }
1273
1273
  async function xr(e6) {
1274
- let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = br(D({ postId: e6 }, []));
1274
+ let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = br(O({ postId: e6 }, []));
1275
1275
  n2?.onSiteCall?.();
1276
1276
  try {
1277
1277
  let e7 = await t2.request(r2);
1278
- return n2?.onSuccess?.(e7), O(e7.data, []);
1278
+ return n2?.onSuccess?.(e7), k(e7.data, []);
1279
1279
  } catch (e7) {
1280
- let t3 = M(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { postId: `$[0]` }, singleArgumentUnchanged: false }, [`postId`]);
1280
+ let t3 = N(e7, { spreadPathsToArguments: {}, explicitPathsToArguments: { postId: `$[0]` }, singleArgumentUnchanged: false }, [`postId`]);
1281
1281
  throw n2?.onError?.(e7), t3;
1282
1282
  }
1283
1283
  }
@@ -1387,21 +1387,28 @@ var Lr = (e6, t2, n2 = false, a2) => {
1387
1387
  return { ...Ir(d2, t2), toggleLike: ee2, liveLikes: C2 };
1388
1388
  };
1389
1389
  var Rr = I(`@wix/site-service-locale`);
1390
- var zr = () => {
1390
+ var zr = I(`@wix/viewer-service-multilingual`);
1391
+ var Br = () => {
1392
+ let e6;
1391
1393
  try {
1392
- let { locale: e6, language: t2 } = (0, import_services_manager_react.useService)(Rr);
1393
- return e6 || t2;
1394
+ let { multilingualEnabled: t3, currentLocale: n3 } = (0, import_services_manager_react.useService)(zr);
1395
+ t3 && n3 && !n3.primaryLocale && (e6 = n3.regionalFormat);
1396
+ } catch {
1397
+ }
1398
+ let t2, n2;
1399
+ try {
1400
+ ({ locale: t2, language: n2 } = (0, import_services_manager_react.useService)(Rr));
1394
1401
  } catch {
1395
- return;
1396
1402
  }
1403
+ return e6 || t2 || n2;
1397
1404
  };
1398
- var Br = () => {
1405
+ var Vr = () => {
1399
1406
  let e6 = /* @__PURE__ */ new Map();
1400
1407
  return { getOrInsert: (t2, n2) => (e6.has(t2) || e6.set(t2, n2().finally(() => {
1401
1408
  e6.delete(t2);
1402
1409
  })), e6.get(t2)) };
1403
1410
  };
1404
- var Vr = async (e6) => {
1411
+ var Hr = async (e6) => {
1405
1412
  try {
1406
1413
  let { default: t2 } = await e6();
1407
1414
  return t2;
@@ -1409,9 +1416,9 @@ var Vr = async (e6) => {
1409
1416
  return;
1410
1417
  }
1411
1418
  };
1412
- var Hr = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1413
- let r2 = Br(), i2 = async (r3) => {
1414
- let [i3, a2] = await Promise.all([Vr(() => t2(r3)), !e6 || !n2 ? void 0 : Vr(() => n2(r3))]);
1419
+ var Ur = ({ isDev: e6, loadMessages: t2, loadDevMessages: n2 }) => {
1420
+ let r2 = Vr(), i2 = async (r3) => {
1421
+ let [i3, a2] = await Promise.all([Hr(() => t2(r3)), !e6 || !n2 ? void 0 : Hr(() => n2(r3))]);
1415
1422
  if (i3 && a2) return { ...i3, ...a2 };
1416
1423
  if (i3) return i3;
1417
1424
  if (a2) return a2;
@@ -1426,25 +1433,25 @@ var z = () => {
1426
1433
  });
1427
1434
  return n2.resolve = e6, n2.reject = t2, n2;
1428
1435
  };
1429
- var Ur = (e6) => e6 == null ? `` : String(e6);
1430
- var Wr = (e6, t2, n2) => {
1436
+ var Wr = (e6) => e6 == null ? `` : String(e6);
1437
+ var Gr = (e6, t2, n2) => {
1431
1438
  e6.forEach((e7) => {
1432
1439
  t2[e7] && (n2[e7] = t2[e7]);
1433
1440
  });
1434
1441
  };
1435
- var Gr = /###/g;
1436
- var Kr = (e6) => e6 && e6.includes(`###`) ? e6.replace(Gr, `.`) : e6;
1437
- var qr = (e6) => !e6 || R(e6);
1442
+ var Kr = /###/g;
1443
+ var qr = (e6) => e6 && e6.includes(`###`) ? e6.replace(Kr, `.`) : e6;
1444
+ var Jr = (e6) => !e6 || R(e6);
1438
1445
  var B = (e6, t2, n2) => {
1439
1446
  let r2 = R(t2) ? t2.split(`.`) : t2, i2 = 0;
1440
1447
  for (; i2 < r2.length - 1; ) {
1441
- if (qr(e6)) return {};
1442
- let t3 = Kr(r2[i2]);
1448
+ if (Jr(e6)) return {};
1449
+ let t3 = qr(r2[i2]);
1443
1450
  !e6[t3] && n2 && (e6[t3] = new n2()), e6 = Object.prototype.hasOwnProperty.call(e6, t3) ? e6[t3] : {}, ++i2;
1444
1451
  }
1445
- return qr(e6) ? {} : { obj: e6, k: Kr(r2[i2]) };
1452
+ return Jr(e6) ? {} : { obj: e6, k: qr(r2[i2]) };
1446
1453
  };
1447
- var Jr = (e6, t2, n2) => {
1454
+ var Yr = (e6, t2, n2) => {
1448
1455
  let { obj: r2, k: i2 } = B(e6, t2, Object);
1449
1456
  if (r2 !== void 0 || t2.length === 1) {
1450
1457
  r2[i2] = n2;
@@ -1454,7 +1461,7 @@ var Jr = (e6, t2, n2) => {
1454
1461
  for (; s2.obj === void 0 && o2.length; ) a2 = `${o2[o2.length - 1]}.${a2}`, o2 = o2.slice(0, o2.length - 1), s2 = B(e6, o2, Object), s2?.obj && s2.obj[`${s2.k}.${a2}`] !== void 0 && (s2.obj = void 0);
1455
1462
  s2.obj[`${s2.k}.${a2}`] = n2;
1456
1463
  };
1457
- var Yr = (e6, t2, n2, r2) => {
1464
+ var Xr = (e6, t2, n2, r2) => {
1458
1465
  let { obj: i2, k: a2 } = B(e6, t2, Object);
1459
1466
  i2[a2] = i2[a2] || [], i2[a2].push(n2);
1460
1467
  };
@@ -1462,18 +1469,18 @@ var V = (e6, t2) => {
1462
1469
  let { obj: n2, k: r2 } = B(e6, t2);
1463
1470
  if (n2 && Object.prototype.hasOwnProperty.call(n2, r2)) return n2[r2];
1464
1471
  };
1465
- var Xr = (e6, t2, n2) => {
1472
+ var Zr = (e6, t2, n2) => {
1466
1473
  let r2 = V(e6, n2);
1467
1474
  return r2 === void 0 ? V(t2, n2) : r2;
1468
1475
  };
1469
- var Zr = (e6, t2, n2) => {
1470
- for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? R(e6[r2]) || e6[r2] instanceof String || R(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Zr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1476
+ var Qr = (e6, t2, n2) => {
1477
+ for (let r2 in t2) r2 !== `__proto__` && r2 !== `constructor` && (Object.prototype.hasOwnProperty.call(e6, r2) ? R(e6[r2]) || e6[r2] instanceof String || R(t2[r2]) || t2[r2] instanceof String ? n2 && (e6[r2] = t2[r2]) : Qr(e6[r2], t2[r2], n2) : e6[r2] = t2[r2]);
1471
1478
  return e6;
1472
1479
  };
1473
1480
  var H = (e6) => e6.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, `\\$&`);
1474
- var Qr = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1475
- var $r = (e6) => R(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => Qr[e7]) : e6;
1476
- var ei = class {
1481
+ var $r = { "&": `&amp;`, "<": `&lt;`, ">": `&gt;`, '"': `&quot;`, "'": `&#39;`, "/": `&#x2F;` };
1482
+ var ei = (e6) => R(e6) ? e6.replace(/[&<>"'\/]/g, (e7) => $r[e7]) : e6;
1483
+ var ti = class {
1477
1484
  constructor(e6) {
1478
1485
  this.capacity = e6, this.regExpMap = /* @__PURE__ */ new Map(), this.regExpQueue = [];
1479
1486
  }
@@ -1484,20 +1491,20 @@ var ei = class {
1484
1491
  return this.regExpQueue.length === this.capacity && this.regExpMap.delete(this.regExpQueue.shift()), this.regExpMap.set(e6, n2), this.regExpQueue.push(e6), n2;
1485
1492
  }
1486
1493
  };
1487
- var ti = [` `, `,`, `?`, `!`, `;`];
1488
- var ni = new ei(20);
1489
- var ri = (e6, t2, n2) => {
1494
+ var ni = [` `, `,`, `?`, `!`, `;`];
1495
+ var ri = new ti(20);
1496
+ var ii = (e6, t2, n2) => {
1490
1497
  t2 ||= ``, n2 ||= ``;
1491
- let r2 = ti.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1498
+ let r2 = ni.filter((e7) => !t2.includes(e7) && !n2.includes(e7));
1492
1499
  if (r2.length === 0) return true;
1493
- let i2 = ni.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1500
+ let i2 = ri.getRegExp(`(${r2.map((e7) => e7 === `?` ? `\\?` : e7).join(`|`)})`), a2 = !i2.test(e6);
1494
1501
  if (!a2) {
1495
1502
  let t3 = e6.indexOf(n2);
1496
1503
  t3 > 0 && !i2.test(e6.substring(0, t3)) && (a2 = true);
1497
1504
  }
1498
1505
  return a2;
1499
1506
  };
1500
- var ii = (e6, t2, n2 = `.`) => {
1507
+ var ai = (e6, t2, n2 = `.`) => {
1501
1508
  if (!e6) return;
1502
1509
  if (e6[t2]) return Object.prototype.hasOwnProperty.call(e6, t2) ? e6[t2] : void 0;
1503
1510
  let r2 = t2.split(n2), i2 = e6;
@@ -1514,7 +1521,7 @@ var ii = (e6, t2, n2 = `.`) => {
1514
1521
  return i2;
1515
1522
  };
1516
1523
  var U = (e6) => e6?.replace(/_/g, `-`);
1517
- var ai = { type: `logger`, log(e6) {
1524
+ var oi = { type: `logger`, log(e6) {
1518
1525
  this.output(`log`, e6);
1519
1526
  }, warn(e6) {
1520
1527
  this.output(`warn`, e6);
@@ -1528,7 +1535,7 @@ var W = new class e2 {
1528
1535
  this.init(e6, t2);
1529
1536
  }
1530
1537
  init(e6, t2 = {}) {
1531
- this.prefix = t2.prefix || `i18next:`, this.logger = e6 || ai, this.options = t2, this.debug = t2.debug;
1538
+ this.prefix = t2.prefix || `i18next:`, this.logger = e6 || oi, this.options = t2, this.debug = t2.debug;
1532
1539
  }
1533
1540
  log(...e6) {
1534
1541
  return this.forward(e6, `log`, ``, true);
@@ -1552,7 +1559,7 @@ var W = new class e2 {
1552
1559
  return t2 ||= this.options, t2.prefix = t2.prefix || this.prefix, new e2(this.logger, t2);
1553
1560
  }
1554
1561
  }();
1555
- var G = class {
1562
+ var si = class {
1556
1563
  constructor() {
1557
1564
  this.observers = {};
1558
1565
  }
@@ -1580,8 +1587,8 @@ var G = class {
1580
1587
  });
1581
1588
  }
1582
1589
  };
1583
- var oi = /* @__PURE__ */ new WeakSet();
1584
- var si = class extends G {
1590
+ var ci = /* @__PURE__ */ new WeakSet();
1591
+ var li = class extends si {
1585
1592
  constructor(e6, t2 = { ns: [`translation`], defaultNS: `translation` }) {
1586
1593
  super(), this.data = e6 || {}, this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.options.ignoreJSONStructure === void 0 && (this.options.ignoreJSONStructure = true);
1587
1594
  }
@@ -1596,11 +1603,11 @@ var si = class extends G {
1596
1603
  let i2 = r2.keySeparator === void 0 ? this.options.keySeparator : r2.keySeparator, a2 = r2.ignoreJSONStructure === void 0 ? this.options.ignoreJSONStructure : r2.ignoreJSONStructure, o2;
1597
1604
  e6.includes(`.`) ? o2 = e6.split(`.`) : (o2 = [e6, t2], n2 && (Array.isArray(n2) ? o2.push(...n2) : R(n2) && i2 ? o2.push(...n2.split(i2)) : o2.push(n2)));
1598
1605
  let s2 = V(this.data, o2);
1599
- return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !R(n2) ? s2 : ii(this.data?.[e6]?.[t2], n2, i2);
1606
+ return !s2 && !t2 && !n2 && e6.includes(`.`) && (e6 = o2[0], t2 = o2[1], n2 = o2.slice(2).join(`.`)), s2 || !a2 || !R(n2) ? s2 : ai(this.data?.[e6]?.[t2], n2, i2);
1600
1607
  }
1601
1608
  addResource(e6, t2, n2, r2, i2 = { silent: false }) {
1602
1609
  let a2 = i2.keySeparator === void 0 ? this.options.keySeparator : i2.keySeparator, o2 = [e6, t2];
1603
- n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Jr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1610
+ n2 && (o2 = o2.concat(a2 ? n2.split(a2) : n2)), e6.includes(`.`) && (o2 = e6.split(`.`), r2 = t2, t2 = o2[1]), this.addNamespaces(t2), Yr(this.data, o2, r2), i2.silent || this.emit(`added`, e6, t2, n2, r2);
1604
1611
  }
1605
1612
  addResources(e6, t2, n2, r2 = { silent: false }) {
1606
1613
  for (let r3 in n2) (R(n2[r3]) || Array.isArray(n2[r3])) && this.addResource(e6, t2, r3, n2[r3], { silent: true });
@@ -1610,7 +1617,7 @@ var si = class extends G {
1610
1617
  let o2 = [e6, t2];
1611
1618
  e6.includes(`.`) && (o2 = e6.split(`.`), r2 = n2, n2 = t2, t2 = o2[1]), this.addNamespaces(t2);
1612
1619
  let s2 = V(this.data, o2) || {};
1613
- a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Zr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Jr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1620
+ a2.skipCopy || (n2 = JSON.parse(JSON.stringify(n2))), r2 ? Qr(s2, n2, i2) : s2 = { ...s2, ...n2 }, Yr(this.data, o2, s2), a2.silent || this.emit(`added`, e6, t2, n2);
1614
1621
  }
1615
1622
  removeResourceBundle(e6, t2) {
1616
1623
  this.hasResourceBundle(e6, t2) && delete this.data[e6][t2], this.removeNamespaces(t2), this.emit(`removed`, e6, t2);
@@ -1628,37 +1635,37 @@ var si = class extends G {
1628
1635
  let t2 = this.getDataByLanguage(e6);
1629
1636
  return !!(t2 && Object.keys(t2) || []).find((e7) => {
1630
1637
  let n2 = t2[e7];
1631
- return oi.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && oi.add(n2), true);
1638
+ return ci.has(n2) ? true : !n2 || Object.keys(n2).length === 0 ? false : (typeof n2 == `object` && ci.add(n2), true);
1632
1639
  });
1633
1640
  }
1634
1641
  toJSON() {
1635
1642
  return this.data;
1636
1643
  }
1637
1644
  };
1638
- var ci = { processors: {}, addPostProcessor(e6) {
1645
+ var ui = { processors: {}, addPostProcessor(e6) {
1639
1646
  this.processors[e6.name] = e6;
1640
1647
  }, handle(e6, t2, n2, r2, i2) {
1641
1648
  return e6.forEach((e7) => {
1642
1649
  t2 = this.processors[e7]?.process(t2, n2, r2, i2) ?? t2;
1643
1650
  }), t2;
1644
1651
  } };
1645
- var li = Symbol(`i18next/PATH_KEY`);
1646
- function ui() {
1652
+ var di = Symbol(`i18next/PATH_KEY`);
1653
+ function fi() {
1647
1654
  let e6 = [], t2 = /* @__PURE__ */ Object.create(null), n2;
1648
- return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === li ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1655
+ return t2.get = (r2, i2) => (n2?.revoke?.(), i2 === di ? e6 : (e6.push(i2), n2 = Proxy.revocable(r2, t2), n2.proxy)), Proxy.revocable(/* @__PURE__ */ Object.create(null), t2).proxy;
1649
1656
  }
1650
- function K(e6, t2) {
1651
- let { [li]: n2 } = e6(ui()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1657
+ function G(e6, t2) {
1658
+ let { [di]: n2 } = e6(fi()), r2 = t2?.keySeparator ?? `.`, i2 = t2?.nsSeparator ?? `:`, a2 = t2?.enableSelector === `strict`;
1652
1659
  if (n2.length > 1 && i2) {
1653
1660
  let e7 = t2?.ns, o2 = a2 ? Array.isArray(e7) ? e7 : e7 ? [e7] : null : Array.isArray(e7) ? e7 : null;
1654
1661
  if (o2 && (a2 ? o2 : o2.length > 1 ? o2.slice(1) : []).includes(n2[0])) return `${n2[0]}${i2}${n2.slice(1).join(r2)}`;
1655
1662
  }
1656
1663
  return n2.join(r2);
1657
1664
  }
1658
- var di = (e6) => !R(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1659
- var fi = class e3 extends G {
1665
+ var pi = (e6) => !R(e6) && typeof e6 != `boolean` && typeof e6 != `number`;
1666
+ var mi = class e3 extends si {
1660
1667
  constructor(e6, t2 = {}) {
1661
- super(), Wr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = W.create(`translator`), this.checkedLoadedFor = {};
1668
+ super(), Gr([`resourceStore`, `languageUtils`, `pluralResolver`, `interpolator`, `backendConnector`, `i18nFormat`, `utils`], e6, this), this.options = t2, this.options.keySeparator === void 0 && (this.options.keySeparator = `.`), this.logger = W.create(`translator`), this.checkedLoadedFor = {};
1662
1669
  }
1663
1670
  changeLanguage(e6) {
1664
1671
  e6 && (this.language = e6);
@@ -1668,13 +1675,13 @@ var fi = class e3 extends G {
1668
1675
  if (e6 == null) return false;
1669
1676
  let r2 = this.resolve(e6, n2);
1670
1677
  if (r2?.res === void 0) return false;
1671
- let i2 = di(r2.res);
1678
+ let i2 = pi(r2.res);
1672
1679
  return !(n2.returnObjects === false && i2);
1673
1680
  }
1674
1681
  extractFromKey(e6, t2) {
1675
1682
  let n2 = t2.nsSeparator === void 0 ? this.options.nsSeparator : t2.nsSeparator;
1676
1683
  n2 === void 0 && (n2 = `:`);
1677
- let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !ri(e6, n2, r2);
1684
+ let r2 = t2.keySeparator === void 0 ? this.options.keySeparator : t2.keySeparator, i2 = t2.ns || this.options.defaultNS || [], a2 = n2 && e6.includes(n2), o2 = !this.options.userDefinedKeySeparator && !t2.keySeparator && !this.options.userDefinedNsSeparator && !t2.nsSeparator && !ii(e6, n2, r2);
1678
1685
  if (a2 && !o2) {
1679
1686
  let t3 = e6.match(this.interpolator.nestingRegexp);
1680
1687
  if (t3 && t3.length > 0) return { key: e6, namespaces: R(i2) ? [i2] : i2 };
@@ -1686,14 +1693,14 @@ var fi = class e3 extends G {
1686
1693
  translate(t2, n2, r2) {
1687
1694
  let i2 = typeof n2 == `object` ? { ...n2 } : n2;
1688
1695
  if (typeof i2 != `object` && this.options.overloadTranslationOptionHandler && (i2 = this.options.overloadTranslationOptionHandler(arguments)), typeof i2 == `object` && (i2 = { ...i2 }), i2 ||= {}, t2 == null) return ``;
1689
- typeof t2 == `function` && (t2 = K(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? K(e6, { ...this.options, ...i2 }) : String(e6));
1696
+ typeof t2 == `function` && (t2 = G(t2, { ...this.options, ...i2 })), Array.isArray(t2) || (t2 = [String(t2)]), t2 = t2.map((e6) => typeof e6 == `function` ? G(e6, { ...this.options, ...i2 }) : String(e6));
1690
1697
  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;
1691
1698
  u2 === void 0 && (u2 = `:`);
1692
1699
  let d2 = i2.lng || this.language, f2 = i2.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
1693
1700
  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;
1694
1701
  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 && !R(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 }) : ``, ee2 = b2 && !i2.ordinal && i2.count === 0, w2 = ee2 && i2[`defaultValue${this.options.pluralSeparator}zero`] || i2[`defaultValue${S2}`] || i2[`defaultValue${C2}`] || i2.defaultValue, T2 = m2;
1695
1702
  y2 && !m2 && x2 && (T2 = w2);
1696
- let te2 = di(T2), ne2 = Object.prototype.toString.apply(T2);
1703
+ let te2 = pi(T2), ne2 = Object.prototype.toString.apply(T2);
1697
1704
  if (y2 && T2 && te2 && !_2.includes(ne2) && !(R(v2) && Array.isArray(T2))) {
1698
1705
  if (!i2.returnObjects && !this.options.returnObjects) {
1699
1706
  this.options.returnedObjectHandler || this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);
@@ -1704,7 +1711,7 @@ var fi = class e3 extends G {
1704
1711
  let e6 = Array.isArray(T2), t3 = e6 ? [] : {}, n3 = e6 ? g2 : h2;
1705
1712
  for (let e7 in T2) if (Object.prototype.hasOwnProperty.call(T2, e7)) {
1706
1713
  let r3 = `${n3}${o2}${e7}`;
1707
- t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: di(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
1714
+ t3[e7] = x2 && !m2 ? this.translate(r3, { ...i2, defaultValue: pi(w2) ? w2[e7] : void 0, joinArrays: false, ns: c2 }) : this.translate(r3, { ...i2, joinArrays: false, ns: c2 }), t3[e7] === r3 && (t3[e7] = T2[e7]);
1708
1715
  }
1709
1716
  m2 = t3;
1710
1717
  }
@@ -1753,11 +1760,11 @@ var fi = class e3 extends G {
1753
1760
  !n2.lng && r2 && r2.res && (n2.lng = this.language || r2.usedLng), n2.nest !== false && (e6 = this.interpolator.nest(e6, (...e7) => i2?.[0] === e7[0] && !n2.context ? (this.logger.warn(`It seems you are nesting recursively key: ${e7[0]} in key: ${t2[0]}`), null) : this.translate(...e7, t2), n2)), n2.interpolation && this.interpolator.reset();
1754
1761
  }
1755
1762
  let a2 = n2.postProcess || this.options.postProcess, o2 = R(a2) ? [a2] : a2;
1756
- return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = ci.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1763
+ return e6 != null && o2?.length && n2.applyPostProcessor !== false && (e6 = ui.handle(o2, e6, t2, this.options && this.options.postProcessPassResolved ? { i18nResolved: { ...r2, usedParams: this.getUsedParamsDetails(n2) }, ...n2 } : n2, this)), e6;
1757
1764
  }
1758
1765
  resolve(e6, t2 = {}) {
1759
1766
  let n2, r2, i2, a2, o2;
1760
- return R(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? K(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1767
+ return R(e6) && (e6 = [e6]), Array.isArray(e6) && (e6 = e6.map((e7) => typeof e7 == `function` ? G(e7, { ...this.options, ...t2 }) : e7)), e6.forEach((e7) => {
1761
1768
  if (this.isValidLookup(n2)) return;
1762
1769
  let s2 = this.extractFromKey(e7, t2), c2 = s2.key;
1763
1770
  r2 = c2;
@@ -1804,7 +1811,7 @@ var fi = class e3 extends G {
1804
1811
  return false;
1805
1812
  }
1806
1813
  };
1807
- var pi = class {
1814
+ var hi = class {
1808
1815
  constructor(e6) {
1809
1816
  this.options = e6, this.supportedLngs = this.options.supportedLngs || false, this.logger = W.create(`languageUtils`), this.resolveHierarchyCache = {};
1810
1817
  }
@@ -1879,9 +1886,9 @@ var pi = class {
1879
1886
  }), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
1880
1887
  }
1881
1888
  };
1882
- var mi = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1883
- var hi = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1884
- var gi = class {
1889
+ var gi = { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 };
1890
+ var _i = { select: (e6) => e6 === 1 ? `one` : `other`, resolvedOptions: () => ({ pluralCategories: [`one`, `other`] }) };
1891
+ var vi = class {
1885
1892
  constructor(e6, t2 = {}) {
1886
1893
  this.languageUtils = e6, this.options = t2, this.logger = W.create(`pluralResolver`), this.pluralRulesCache = {};
1887
1894
  }
@@ -1895,8 +1902,8 @@ var gi = class {
1895
1902
  try {
1896
1903
  a2 = new Intl.PluralRules(n2, { type: r2 });
1897
1904
  } catch {
1898
- if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), hi;
1899
- if (!e6.match(/-|_/)) return hi;
1905
+ if (typeof Intl > `u`) return this.logger.error(`No Intl support, please use an Intl polyfill!`), _i;
1906
+ if (!e6.match(/-|_/)) return _i;
1900
1907
  let n3 = this.languageUtils.getLanguagePartFromCode(e6);
1901
1908
  a2 = this.getRule(n3, t2);
1902
1909
  }
@@ -1911,26 +1918,26 @@ var gi = class {
1911
1918
  }
1912
1919
  getSuffixes(e6, t2 = {}) {
1913
1920
  let n2 = this.getRule(e6, t2);
1914
- return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => mi[e7] - mi[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
1921
+ return n2 ||= this.getRule(`dev`, t2), n2 ? n2.resolvedOptions().pluralCategories.sort((e7, t3) => gi[e7] - gi[t3]).map((e7) => `${this.options.prepend}${t2.ordinal ? `ordinal${this.options.prepend}` : ``}${e7}`) : [];
1915
1922
  }
1916
1923
  getSuffix(e6, t2, n2 = {}) {
1917
1924
  let r2 = this.getRule(e6, n2);
1918
1925
  return r2 ? `${this.options.prepend}${n2.ordinal ? `ordinal${this.options.prepend}` : ``}${r2.select(t2)}` : (this.logger.warn(`no plural rule found for: ${e6}`), this.getSuffix(`dev`, t2, n2));
1919
1926
  }
1920
1927
  };
1921
- var _i = (e6, t2, n2, r2 = `.`, i2 = true) => {
1922
- let a2 = Xr(e6, t2, n2);
1923
- return !a2 && i2 && R(n2) && (a2 = ii(e6, n2, r2), a2 === void 0 && (a2 = ii(t2, n2, r2))), a2;
1928
+ var yi = (e6, t2, n2, r2 = `.`, i2 = true) => {
1929
+ let a2 = Zr(e6, t2, n2);
1930
+ return !a2 && i2 && R(n2) && (a2 = ai(e6, n2, r2), a2 === void 0 && (a2 = ai(t2, n2, r2))), a2;
1924
1931
  };
1925
- var vi = (e6) => e6.replace(/\$/g, `$$$$`);
1926
- var yi = class {
1932
+ var bi = (e6) => e6.replace(/\$/g, `$$$$`);
1933
+ var xi = class {
1927
1934
  constructor(e6 = {}) {
1928
1935
  this.logger = W.create(`interpolator`), this.options = e6, this.format = e6?.interpolation?.format || ((e7) => e7), this.init(e6);
1929
1936
  }
1930
1937
  init(e6 = {}) {
1931
1938
  e6.interpolation ||= { escapeValue: true };
1932
1939
  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 } = e6.interpolation;
1933
- this.escape = t2 === void 0 ? $r : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? H(i2) : a2 || `{{`, this.suffix = o2 ? H(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? H(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? H(l2) : ``, this.nestingPrefix = d2 ? H(d2) : f2 || H(`$t(`), this.nestingSuffix = p2 ? H(p2) : m2 || H(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1940
+ this.escape = t2 === void 0 ? ei : t2, this.escapeValue = n2 === void 0 || n2, this.useRawValueToEscape = r2 !== void 0 && r2, this.prefix = i2 ? H(i2) : a2 || `{{`, this.suffix = o2 ? H(o2) : s2 || `}}`, this.formatSeparator = c2 || `,`, this.unescapePrefix = l2 ? `` : u2 ? H(u2) : `-`, this.unescapeSuffix = this.unescapePrefix ? `` : l2 ? H(l2) : ``, this.nestingPrefix = d2 ? H(d2) : f2 || H(`$t(`), this.nestingSuffix = p2 ? H(p2) : m2 || H(`)`), this.nestingOptionsSeparator = h2 || `,`, this.maxReplaces = g2 || 1e3, this.alwaysFormat = _2 !== void 0 && _2, this.resetRegExp();
1934
1941
  }
1935
1942
  reset() {
1936
1943
  this.options && this.init(this.options);
@@ -1942,11 +1949,11 @@ var yi = class {
1942
1949
  interpolate(e6, t2, n2, r2) {
1943
1950
  let i2, a2, o2, s2 = this.options && this.options.interpolation && this.options.interpolation.defaultVariables || {}, c2 = (e7) => {
1944
1951
  if (!e7.includes(this.formatSeparator)) {
1945
- let i4 = _i(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
1952
+ let i4 = yi(t2, s2, e7, this.options.keySeparator, this.options.ignoreJSONStructure);
1946
1953
  return this.alwaysFormat ? this.format(i4, void 0, n2, { ...r2, ...t2, interpolationkey: e7 }) : i4;
1947
1954
  }
1948
1955
  let i3 = e7.split(this.formatSeparator), a3 = i3.shift().trim(), o3 = i3.join(this.formatSeparator).trim();
1949
- return this.format(_i(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1956
+ return this.format(yi(t2, s2, a3, this.options.keySeparator, this.options.ignoreJSONStructure), o3, n2, { ...r2, ...t2, interpolationkey: a3 });
1950
1957
  };
1951
1958
  this.resetRegExp(), !this.escapeValue && typeof e6 == `string` && /\$t\([^)]*\{[^}]*\{\{/.test(e6) && this.logger.warn(`nesting options string contains interpolated variables with escapeValue: false \u2014 if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.`);
1952
1959
  let l2 = r2?.missingInterpolationHandler || this.options.missingInterpolationHandler, u2 = r2?.interpolation?.skipOnVariables === void 0 ? this.options.interpolation.skipOnVariables : r2.interpolation.skipOnVariables;
@@ -1962,9 +1969,9 @@ var yi = class {
1962
1969
  a2 = i2[0];
1963
1970
  continue;
1964
1971
  } else this.logger.warn(`missed to pass in variable ${n3} for interpolating ${e6}`), a2 = ``;
1965
- } else !R(a2) && !this.useRawValueToEscape && (a2 = Ur(a2));
1972
+ } else !R(a2) && !this.useRawValueToEscape && (a2 = Wr(a2));
1966
1973
  let s3 = t3.safeValue(a2);
1967
- if (e6 = e6.replace(i2[0], vi(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1974
+ if (e6 = e6.replace(i2[0], bi(s3)), u2 ? (t3.regex.lastIndex += s3.length, t3.regex.lastIndex -= i2[0].length) : t3.regex.lastIndex = 0, o2++, o2 >= this.maxReplaces) break;
1968
1975
  }
1969
1976
  }), e6;
1970
1977
  }
@@ -1988,12 +1995,12 @@ var yi = class {
1988
1995
  a2 = { ...n2 }, a2 = a2.replace && !R(a2.replace) ? a2.replace : a2, a2.applyPostProcessor = false, delete a2.defaultValue;
1989
1996
  let d2 = /{.*}/s.test(r2[1]) ? r2[1].lastIndexOf(`}`) + 1 : r2[1].indexOf(this.formatSeparator);
1990
1997
  if (d2 !== -1 && (u2 = r2[1].slice(d2).split(this.formatSeparator).map((e7) => e7.trim()).filter(Boolean), r2[1] = r2[1].slice(0, d2)), i2 = t2(o2.call(this, r2[1].trim(), a2), a2), i2 && r2[0] === e6 && !R(i2)) return i2;
1991
- R(i2) || (i2 = Ur(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + Ur(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1998
+ R(i2) || (i2 = Wr(i2)), i2 ||= (this.logger.warn(`missed to resolve ${r2[1]} for nesting ${e6}`), ``), u2.length && (i2 = u2.reduce((e7, t3) => this.format(e7, t3, n2.lng, { ...n2, interpolationkey: r2[1].trim() }), i2.trim())), c2 += e6.slice(l2, r2.index) + Wr(i2), l2 = s2.lastIndex, this.regexp.lastIndex = 0;
1992
1999
  }
1993
2000
  return l2 ? c2 + e6.slice(l2) : e6;
1994
2001
  }
1995
2002
  };
1996
- var bi = (e6) => {
2003
+ var Si = (e6) => {
1997
2004
  let t2 = e6.toLowerCase().trim(), n2 = {};
1998
2005
  if (e6.includes(`(`)) {
1999
2006
  let r2 = e6.split(`(`);
@@ -2008,7 +2015,7 @@ var bi = (e6) => {
2008
2015
  }
2009
2016
  return { formatName: t2, formatOptions: n2 };
2010
2017
  };
2011
- var xi = (e6) => {
2018
+ var Ci = (e6) => {
2012
2019
  let t2 = {};
2013
2020
  return (n2, r2, i2) => {
2014
2021
  let a2 = i2;
@@ -2017,14 +2024,14 @@ var xi = (e6) => {
2017
2024
  return s2 || (s2 = e6(U(r2), i2), t2[o2] = s2), s2(n2);
2018
2025
  };
2019
2026
  };
2020
- var Si = (e6) => (t2, n2, r2) => e6(U(n2), r2)(t2);
2021
- var Ci = class {
2027
+ var wi = (e6) => (t2, n2, r2) => e6(U(n2), r2)(t2);
2028
+ var Ti = class {
2022
2029
  constructor(e6 = {}) {
2023
2030
  this.logger = W.create(`formatter`), this.options = e6, this.init(e6);
2024
2031
  }
2025
2032
  init(e6, t2 = { interpolation: {} }) {
2026
2033
  this.formatSeparator = t2.interpolation.formatSeparator || `,`;
2027
- let n2 = t2.cacheInBuiltFormats ? xi : Si;
2034
+ let n2 = t2.cacheInBuiltFormats ? Ci : wi;
2028
2035
  this.formats = { number: n2((e7, t3) => {
2029
2036
  let n3 = new Intl.NumberFormat(e7, { ...t3 });
2030
2037
  return (e8) => n3.format(e8);
@@ -2046,7 +2053,7 @@ var Ci = class {
2046
2053
  this.formats[e6.toLowerCase().trim()] = t2;
2047
2054
  }
2048
2055
  addCached(e6, t2) {
2049
- this.formats[e6.toLowerCase().trim()] = xi(t2);
2056
+ this.formats[e6.toLowerCase().trim()] = Ci(t2);
2050
2057
  }
2051
2058
  format(e6, t2, n2, r2 = {}) {
2052
2059
  if (!t2 || e6 == null) return e6;
@@ -2057,7 +2064,7 @@ var Ci = class {
2057
2064
  a2.push(t3);
2058
2065
  }
2059
2066
  return a2.reduce((e7, t3) => {
2060
- let { formatName: i3, formatOptions: a3 } = bi(t3);
2067
+ let { formatName: i3, formatOptions: a3 } = Si(t3);
2061
2068
  if (this.formats[i3]) {
2062
2069
  let t4 = e7;
2063
2070
  try {
@@ -2072,10 +2079,10 @@ var Ci = class {
2072
2079
  }, e6);
2073
2080
  }
2074
2081
  };
2075
- var wi = (e6, t2) => {
2082
+ var Ei = (e6, t2) => {
2076
2083
  e6.pending[t2] !== void 0 && (delete e6.pending[t2], e6.pendingCount--);
2077
2084
  };
2078
- var Ti = class extends G {
2085
+ var Di = class extends si {
2079
2086
  constructor(e6, t2, n2, r2 = {}) {
2080
2087
  super(), this.backend = e6, this.store = t2, this.services = n2, this.languageUtils = n2.languageUtils, this.options = r2, this.logger = W.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);
2081
2088
  }
@@ -2094,7 +2101,7 @@ var Ti = class extends G {
2094
2101
  t2 && this.emit(`failedLoading`, i2, a2, t2), !t2 && n2 && this.store.addResourceBundle(i2, a2, n2, void 0, void 0, { skipCopy: true }), this.state[e6] = t2 ? -1 : 2, t2 && n2 && (this.state[e6] = 0);
2095
2102
  let o2 = {};
2096
2103
  this.queue.forEach((n3) => {
2097
- Yr(n3.loaded, [i2], a2), wi(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
2104
+ Xr(n3.loaded, [i2], a2), Ei(n3, e6), t2 && n3.errors.push(t2), n3.pendingCount === 0 && !n3.done && (Object.keys(n3.loaded).forEach((e7) => {
2098
2105
  o2[e7] || (o2[e7] = {});
2099
2106
  let t3 = n3.loaded[e7];
2100
2107
  t3.length && t3.forEach((t4) => {
@@ -2166,7 +2173,7 @@ var Ti = class extends G {
2166
2173
  }
2167
2174
  }
2168
2175
  };
2169
- var Ei = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, enableSelector: false, 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: (e6) => {
2176
+ var Oi = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS: [`translation`], fallbackLng: [`dev`], fallbackNS: false, supportedLngs: false, nonExplicitSupportedLngs: false, load: `all`, preload: false, keySeparator: `.`, nsSeparator: `:`, pluralSeparator: `_`, contextSeparator: `_`, enableSelector: false, 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: (e6) => {
2170
2177
  let t2 = {};
2171
2178
  if (typeof e6[1] == `object` && (t2 = e6[1]), R(e6[1]) && (t2.defaultValue = e6[1]), R(e6[2]) && (t2.tDescription = e6[2]), typeof e6[2] == `object` || typeof e6[3] == `object`) {
2172
2179
  let n2 = e6[3] || e6[2];
@@ -2176,17 +2183,17 @@ var Ei = () => ({ debug: false, initAsync: true, ns: [`translation`], defaultNS:
2176
2183
  }
2177
2184
  return t2;
2178
2185
  }, interpolation: { escapeValue: true, prefix: `{{`, suffix: `}}`, formatSeparator: `,`, unescapePrefix: `-`, nestingPrefix: `$t(`, nestingSuffix: `)`, nestingOptionsSeparator: `,`, maxReplaces: 1e3, skipOnVariables: true }, cacheInBuiltFormats: true });
2179
- var Di = (e6) => (R(e6.ns) && (e6.ns = [e6.ns]), R(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), R(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
2180
- var q = () => {
2186
+ var ki = (e6) => (R(e6.ns) && (e6.ns = [e6.ns]), R(e6.fallbackLng) && (e6.fallbackLng = [e6.fallbackLng]), R(e6.fallbackNS) && (e6.fallbackNS = [e6.fallbackNS]), e6.supportedLngs && !e6.supportedLngs.includes(`cimode`) && (e6.supportedLngs = e6.supportedLngs.concat([`cimode`])), e6);
2187
+ var Ai = () => {
2181
2188
  };
2182
- var Oi = (e6) => {
2189
+ var ji = (e6) => {
2183
2190
  Object.getOwnPropertyNames(Object.getPrototypeOf(e6)).forEach((t2) => {
2184
2191
  typeof e6[t2] == `function` && (e6[t2] = e6[t2].bind(e6));
2185
2192
  });
2186
2193
  };
2187
- var J = class e4 extends G {
2194
+ var K = class e4 extends si {
2188
2195
  constructor(e6 = {}, t2) {
2189
- if (super(), this.options = Di(e6), this.services = {}, this.logger = W, this.modules = { external: [] }, Oi(this), t2 && !this.isInitialized && !e6.isClone) {
2196
+ if (super(), this.options = ki(e6), this.services = {}, this.logger = W, this.modules = { external: [] }, ji(this), t2 && !this.isInitialized && !e6.isClone) {
2190
2197
  if (!this.options.initAsync) return this.init(e6, t2), this;
2191
2198
  setTimeout(() => {
2192
2199
  this.init(e6, t2);
@@ -2195,25 +2202,25 @@ var J = class e4 extends G {
2195
2202
  }
2196
2203
  init(e6 = {}, t2) {
2197
2204
  this.isInitializing = true, typeof e6 == `function` && (t2 = e6, e6 = {}), e6.defaultNS == null && e6.ns && (R(e6.ns) ? e6.defaultNS = e6.ns : e6.ns.includes(`translation`) || (e6.defaultNS = e6.ns[0]));
2198
- let n2 = Ei();
2199
- this.options = { ...n2, ...this.options, ...Di(e6) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e6.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e6.keySeparator), e6.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e6.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler);
2205
+ let n2 = Oi();
2206
+ this.options = { ...n2, ...this.options, ...ki(e6) }, this.options.interpolation = { ...n2.interpolation, ...this.options.interpolation }, e6.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = e6.keySeparator), e6.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = e6.nsSeparator), typeof this.options.overloadTranslationOptionHandler != `function` && (this.options.overloadTranslationOptionHandler = n2.overloadTranslationOptionHandler);
2200
2207
  let r2 = (e7) => e7 ? typeof e7 == `function` ? new e7() : e7 : null;
2201
2208
  if (!this.options.isClone) {
2202
2209
  this.modules.logger ? W.init(r2(this.modules.logger), this.options) : W.init(null, this.options);
2203
2210
  let e7;
2204
- e7 = this.modules.formatter ? this.modules.formatter : Ci;
2205
- let t3 = new pi(this.options);
2206
- this.store = new si(this.options.resources, this.options);
2211
+ e7 = this.modules.formatter ? this.modules.formatter : Ti;
2212
+ let t3 = new hi(this.options);
2213
+ this.store = new li(this.options.resources, this.options);
2207
2214
  let n3 = this.services;
2208
- n3.logger = W, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new gi(t3, { prepend: this.options.pluralSeparator }), e7 && (n3.formatter = r2(e7), n3.formatter.init && n3.formatter.init(n3, this.options), this.options.interpolation.format = n3.formatter.format.bind(n3.formatter)), n3.interpolator = new yi(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new Ti(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
2215
+ n3.logger = W, n3.resourceStore = this.store, n3.languageUtils = t3, n3.pluralResolver = new vi(t3, { prepend: this.options.pluralSeparator }), e7 && (n3.formatter = r2(e7), n3.formatter.init && n3.formatter.init(n3, this.options), this.options.interpolation.format = n3.formatter.format.bind(n3.formatter)), n3.interpolator = new xi(this.options), n3.utils = { hasLoadedNamespace: this.hasLoadedNamespace.bind(this) }, n3.backendConnector = new Di(r2(this.modules.backend), n3.resourceStore, n3, this.options), n3.backendConnector.on(`*`, (e8, ...t4) => {
2209
2216
  this.emit(e8, ...t4);
2210
- }), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new fi(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
2217
+ }), this.modules.languageDetector && (n3.languageDetector = r2(this.modules.languageDetector), n3.languageDetector.init && n3.languageDetector.init(n3, this.options.detection, this.options)), this.modules.i18nFormat && (n3.i18nFormat = r2(this.modules.i18nFormat), n3.i18nFormat.init && n3.i18nFormat.init(this)), this.translator = new mi(this.services, this.options), this.translator.on(`*`, (e8, ...t4) => {
2211
2218
  this.emit(e8, ...t4);
2212
2219
  }), this.modules.external.forEach((e8) => {
2213
2220
  e8.init && e8.init(this);
2214
2221
  });
2215
2222
  }
2216
- if (this.format = this.options.interpolation.format, t2 ||= q, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2223
+ if (this.format = this.options.interpolation.format, t2 ||= Ai, this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
2217
2224
  let e7 = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
2218
2225
  e7.length > 0 && e7[0] !== `dev` && (this.options.lng = e7[0]);
2219
2226
  }
@@ -2231,7 +2238,7 @@ var J = class e4 extends G {
2231
2238
  };
2232
2239
  return this.options.resources || !this.options.initAsync ? a2() : setTimeout(a2, 0), i2;
2233
2240
  }
2234
- loadResources(e6, t2 = q) {
2241
+ loadResources(e6, t2 = Ai) {
2235
2242
  let n2 = t2, r2 = R(e6) ? e6 : this.language;
2236
2243
  if (typeof e6 == `function` && (n2 = e6), !this.options.resources || this.options.partialBundledLanguages) {
2237
2244
  if (r2?.toLowerCase() === `cimode` && (!this.options.preload || this.options.preload.length === 0)) return n2();
@@ -2247,14 +2254,14 @@ var J = class e4 extends G {
2247
2254
  }
2248
2255
  reloadResources(e6, t2, n2) {
2249
2256
  let r2 = z();
2250
- return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||= q, this.services.backendConnector.reload(e6, t2, (e7) => {
2257
+ return typeof e6 == `function` && (n2 = e6, e6 = void 0), typeof t2 == `function` && (n2 = t2, t2 = void 0), e6 ||= this.languages, t2 ||= this.options.ns, n2 ||= Ai, this.services.backendConnector.reload(e6, t2, (e7) => {
2251
2258
  r2.resolve(), n2(e7);
2252
2259
  }), r2;
2253
2260
  }
2254
2261
  use(e6) {
2255
2262
  if (!e6) throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);
2256
2263
  if (!e6.type) throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);
2257
- return e6.type === `backend` && (this.modules.backend = e6), (e6.type === `logger` || e6.log && e6.warn && e6.error) && (this.modules.logger = e6), e6.type === `languageDetector` && (this.modules.languageDetector = e6), e6.type === `i18nFormat` && (this.modules.i18nFormat = e6), e6.type === `postProcessor` && ci.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
2264
+ return e6.type === `backend` && (this.modules.backend = e6), (e6.type === `logger` || e6.log && e6.warn && e6.error) && (this.modules.logger = e6), e6.type === `languageDetector` && (this.modules.languageDetector = e6), e6.type === `i18nFormat` && (this.modules.i18nFormat = e6), e6.type === `postProcessor` && ui.addPostProcessor(e6), e6.type === `formatter` && (this.modules.formatter = e6), e6.type === `3rdParty` && this.modules.external.push(e6), this;
2258
2265
  }
2259
2266
  setResolvedLanguage(e6) {
2260
2267
  if (e6 && this.languages && ![`cimode`, `dev`].includes(e6)) {
@@ -2292,9 +2299,9 @@ var J = class e4 extends G {
2292
2299
  let s2 = o2.ns !== void 0 && o2.ns !== null;
2293
2300
  o2.ns = o2.ns || a2.ns, o2.keyPrefix !== `` && (o2.keyPrefix = o2.keyPrefix || n2 || a2.keyPrefix);
2294
2301
  let c2 = { ...this.options, ...o2 };
2295
- Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = K(o2.keyPrefix, c2));
2302
+ Array.isArray(i2) && !s2 && (c2.ns = i2), typeof o2.keyPrefix == `function` && (o2.keyPrefix = G(o2.keyPrefix, c2));
2296
2303
  let l2 = this.options.keySeparator || `.`, u2;
2297
- return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = K(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = K(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2304
+ return o2.keyPrefix && Array.isArray(e7) ? u2 = e7.map((e8) => (typeof e8 == `function` && (e8 = G(e8, c2)), `${o2.keyPrefix}${l2}${e8}`)) : (typeof e7 == `function` && (e7 = G(e7, c2)), u2 = o2.keyPrefix ? `${o2.keyPrefix}${l2}${e7}` : e7), this.t(u2, o2);
2298
2305
  };
2299
2306
  return R(e6) ? a2.lng = e6 : a2.lngs = e6, a2.ns = t2, a2.keyPrefix = n2, a2;
2300
2307
  }
@@ -2350,24 +2357,24 @@ var J = class e4 extends G {
2350
2357
  }
2351
2358
  } catch {
2352
2359
  }
2353
- 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 pi(Ei());
2360
+ 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 hi(Oi());
2354
2361
  return e6.toLowerCase().indexOf(`-latn`) > 1 ? `ltr` : t2.includes(n2.getLanguagePartFromCode(e6)) || e6.toLowerCase().indexOf(`-arab`) > 1 ? `rtl` : `ltr`;
2355
2362
  }
2356
2363
  static createInstance(t2 = {}, n2) {
2357
2364
  let r2 = new e4(t2, n2);
2358
2365
  return r2.createInstance = e4.createInstance, r2;
2359
2366
  }
2360
- cloneInstance(t2 = {}, n2 = q) {
2367
+ cloneInstance(t2 = {}, n2 = Ai) {
2361
2368
  let r2 = t2.forkResourceStore;
2362
2369
  r2 && delete t2.forkResourceStore;
2363
2370
  let i2 = { ...this.options, preload: false, ...t2, isClone: true }, a2 = new e4(i2);
2364
2371
  if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e6) => {
2365
2372
  a2[e6] = this[e6];
2366
- }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new si(Object.keys(this.store.data).reduce((e6, t3) => (e6[t3] = { ...this.store.data[t3] }, e6[t3] = Object.keys(e6[t3]).reduce((n3, r3) => (n3[r3] = { ...e6[t3][r3] }, n3), e6[t3]), e6), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
2367
- let e6 = { ...Ei().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
2368
- a2.services.interpolator = new yi(n3);
2373
+ }), a2.services = { ...this.services }, a2.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, r2 && (a2.store = new li(Object.keys(this.store.data).reduce((e6, t3) => (e6[t3] = { ...this.store.data[t3] }, e6[t3] = Object.keys(e6[t3]).reduce((n3, r3) => (n3[r3] = { ...e6[t3][r3] }, n3), e6[t3]), e6), {}), i2), a2.services.resourceStore = a2.store), t2.interpolation) {
2374
+ let e6 = { ...Oi().interpolation, ...this.options.interpolation, ...t2.interpolation }, n3 = { ...i2, interpolation: e6 };
2375
+ a2.services.interpolator = new xi(n3);
2369
2376
  }
2370
- return a2.translator = new fi(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
2377
+ return a2.translator = new mi(a2.services, i2), a2.translator.on(`*`, (e6, ...t3) => {
2371
2378
  a2.emit(e6, ...t3);
2372
2379
  }), a2.init(i2, n2), a2.translator.options = i2, a2.translator.backendConnector.services.utils = { hasLoadedNamespace: a2.hasLoadedNamespace.bind(a2) }, a2;
2373
2380
  }
@@ -2375,9 +2382,9 @@ var J = class e4 extends G {
2375
2382
  return { options: this.options, store: this.store, language: this.language, languages: this.languages, resolvedLanguage: this.resolvedLanguage };
2376
2383
  }
2377
2384
  }.createInstance();
2378
- J.createInstance, J.dir, J.init, J.loadResources, J.reloadResources, J.use, J.changeLanguage, J.getFixedT, J.t, J.exists, J.setDefaultNamespace, J.hasLoadedNamespace, J.loadNamespaces, J.loadLanguages;
2379
- var ki = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2380
- let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = J.createInstance(i2 ? s2 : void 0);
2385
+ K.createInstance, K.dir, K.init, K.loadResources, K.reloadResources, K.use, K.changeLanguage, K.getFixedT, K.t, K.exists, K.setDefaultNamespace, K.hasLoadedNamespace, K.loadNamespaces, K.loadLanguages;
2386
+ var Mi = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 = false, disableAutoInit: i2 = false, bindI18n: a2 }, { icu: o2 } = {}) => {
2387
+ let s2 = { lng: e6, fallbackLng: `en`, keySeparator: false, react: { useSuspense: r2, bindI18n: a2 }, _polyfill: { isLoading: false } }, c2 = K.createInstance(i2 ? s2 : void 0);
2381
2388
  return o2 && c2.use(o2), t2 && c2.use({ type: `backend`, read: async (e7, n3, r3) => {
2382
2389
  try {
2383
2390
  return r3(null, await t2(e7));
@@ -2386,38 +2393,38 @@ var ki = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 =
2386
2393
  }
2387
2394
  } }), n2 && (s2.resources = { [e6]: { translation: n2 } }), i2 || c2.init(s2), c2;
2388
2395
  };
2389
- function Ai(e6, t2) {
2390
- let n2 = t2 && t2.cache ? t2.cache : Bi, r2 = t2 && t2.serializer ? t2.serializer : Ri;
2391
- return (t2 && t2.strategy ? t2.strategy : Fi)(e6, { cache: n2, serializer: r2 });
2396
+ function Ni(e6, t2) {
2397
+ let n2 = t2 && t2.cache ? t2.cache : Ui, r2 = t2 && t2.serializer ? t2.serializer : Vi;
2398
+ return (t2 && t2.strategy ? t2.strategy : Ri)(e6, { cache: n2, serializer: r2 });
2392
2399
  }
2393
- function ji(e6) {
2400
+ function Pi(e6) {
2394
2401
  return e6 == null || typeof e6 == `number` || typeof e6 == `boolean`;
2395
2402
  }
2396
- function Mi(e6, t2, n2, r2) {
2397
- let i2 = ji(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2403
+ function Fi(e6, t2, n2, r2) {
2404
+ let i2 = Pi(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2398
2405
  return a2 === void 0 && (a2 = e6.call(this, r2), t2.set(i2, a2)), a2;
2399
2406
  }
2400
- function Ni(e6, t2, n2) {
2407
+ function Ii(e6, t2, n2) {
2401
2408
  let r2 = Array.prototype.slice.call(arguments, 3), i2 = n2(r2), a2 = t2.get(i2);
2402
2409
  return a2 === void 0 && (a2 = e6.apply(this, r2), t2.set(i2, a2)), a2;
2403
2410
  }
2404
- function Pi(e6, t2, n2, r2, i2) {
2411
+ function Li(e6, t2, n2, r2, i2) {
2405
2412
  return n2.bind(t2, e6, r2, i2);
2406
2413
  }
2407
- function Fi(e6, t2) {
2408
- let n2 = e6.length === 1 ? Mi : Ni;
2409
- return Pi(e6, this, n2, t2.cache.create(), t2.serializer);
2414
+ function Ri(e6, t2) {
2415
+ let n2 = e6.length === 1 ? Fi : Ii;
2416
+ return Li(e6, this, n2, t2.cache.create(), t2.serializer);
2410
2417
  }
2411
- function Ii(e6, t2) {
2412
- return Pi(e6, this, Ni, t2.cache.create(), t2.serializer);
2418
+ function zi(e6, t2) {
2419
+ return Li(e6, this, Ii, t2.cache.create(), t2.serializer);
2413
2420
  }
2414
- function Li(e6, t2) {
2415
- return Pi(e6, this, Mi, t2.cache.create(), t2.serializer);
2421
+ function Bi(e6, t2) {
2422
+ return Li(e6, this, Fi, t2.cache.create(), t2.serializer);
2416
2423
  }
2417
- var Ri = function() {
2424
+ var Vi = function() {
2418
2425
  return JSON.stringify(arguments);
2419
2426
  };
2420
- var zi = class {
2427
+ var Hi = class {
2421
2428
  constructor() {
2422
2429
  this.cache = /* @__PURE__ */ Object.create(null);
2423
2430
  }
@@ -2428,14 +2435,14 @@ var zi = class {
2428
2435
  this.cache[e6] = t2;
2429
2436
  }
2430
2437
  };
2431
- var Bi = { create: function() {
2432
- return new zi();
2438
+ var Ui = { create: function() {
2439
+ return new Hi();
2433
2440
  } };
2434
- var Vi = { variadic: Ii, monadic: Li };
2435
- var Hi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
2436
- function Ui(e6) {
2441
+ var Wi = { variadic: zi, monadic: Bi };
2442
+ var Gi = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
2443
+ function Ki(e6) {
2437
2444
  let t2 = {};
2438
- return e6.replace(Hi, (e7) => {
2445
+ return e6.replace(Gi, (e7) => {
2439
2446
  let n2 = e7.length;
2440
2447
  switch (e7[0]) {
2441
2448
  case `G`:
@@ -2522,10 +2529,10 @@ function Ui(e6) {
2522
2529
  return ``;
2523
2530
  }), t2;
2524
2531
  }
2525
- var Wi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2526
- function Gi(e6) {
2532
+ var qi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2533
+ function Ji(e6) {
2527
2534
  if (e6.length === 0) throw Error(`Number skeleton cannot be empty`);
2528
- let t2 = e6.split(Wi).filter((e7) => e7.length > 0), n2 = [];
2535
+ let t2 = e6.split(qi).filter((e7) => e7.length > 0), n2 = [];
2529
2536
  for (let e7 of t2) {
2530
2537
  let t3 = e7.split(`/`);
2531
2538
  if (t3.length === 0) throw Error(`Invalid number skeleton`);
@@ -2535,20 +2542,20 @@ function Gi(e6) {
2535
2542
  }
2536
2543
  return n2;
2537
2544
  }
2538
- function Ki(e6) {
2545
+ function Yi(e6) {
2539
2546
  return e6.replace(/^(.*?)-/, ``);
2540
2547
  }
2541
- var qi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2542
- var Ji = /^(@+)?(\+|#+)?[rs]?$/g;
2543
- var Yi = /(\*)(0+)|(#+)(0+)|(0+)/g;
2544
- var Xi = /^(0+)$/;
2545
- function Zi(e6) {
2548
+ var Xi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2549
+ var Zi = /^(@+)?(\+|#+)?[rs]?$/g;
2550
+ var Qi = /(\*)(0+)|(#+)(0+)|(0+)/g;
2551
+ var $i = /^(0+)$/;
2552
+ function ea(e6) {
2546
2553
  let t2 = {};
2547
- return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Ji, function(e7, n2, r2) {
2554
+ return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Zi, function(e7, n2, r2) {
2548
2555
  return typeof r2 == `string` ? r2 === `+` ? t2.minimumSignificantDigits = n2.length : n2[0] === `#` ? t2.maximumSignificantDigits = n2.length : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length + (typeof r2 == `string` ? r2.length : 0)) : (t2.minimumSignificantDigits = n2.length, t2.maximumSignificantDigits = n2.length), ``;
2549
2556
  }), t2;
2550
2557
  }
2551
- function Qi(e6) {
2558
+ function ta(e6) {
2552
2559
  switch (e6) {
2553
2560
  case `sign-auto`:
2554
2561
  return { signDisplay: `auto` };
@@ -2572,19 +2579,19 @@ function Qi(e6) {
2572
2579
  return { signDisplay: `never` };
2573
2580
  }
2574
2581
  }
2575
- function $i(e6) {
2582
+ function na(e6) {
2576
2583
  let t2;
2577
2584
  if (e6[0] === `E` && e6[1] === `E` ? (t2 = { notation: `engineering` }, e6 = e6.slice(2)) : e6[0] === `E` && (t2 = { notation: `scientific` }, e6 = e6.slice(1)), t2) {
2578
2585
  let n2 = e6.slice(0, 2);
2579
- if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !Xi.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2586
+ if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !$i.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2580
2587
  t2.minimumIntegerDigits = e6.length;
2581
2588
  }
2582
2589
  return t2;
2583
2590
  }
2584
- function ea(e6) {
2585
- return Qi(e6) || {};
2591
+ function ra(e6) {
2592
+ return ta(e6) || {};
2586
2593
  }
2587
- function ta(e6) {
2594
+ function ia(e6) {
2588
2595
  let t2 = {};
2589
2596
  for (let n2 of e6) {
2590
2597
  switch (n2.stem) {
@@ -2608,7 +2615,7 @@ function ta(e6) {
2608
2615
  continue;
2609
2616
  case `measure-unit`:
2610
2617
  case `unit`:
2611
- t2.style = `unit`, t2.unit = Ki(n2.options[0]);
2618
+ t2.style = `unit`, t2.unit = Yi(n2.options[0]);
2612
2619
  continue;
2613
2620
  case `compact-short`:
2614
2621
  case `K`:
@@ -2619,10 +2626,10 @@ function ta(e6) {
2619
2626
  t2.notation = `compact`, t2.compactDisplay = `long`;
2620
2627
  continue;
2621
2628
  case `scientific`:
2622
- t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ea(t3) }), {}) };
2629
+ t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ra(t3) }), {}) };
2623
2630
  continue;
2624
2631
  case `engineering`:
2625
- t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ea(t3) }), {}) };
2632
+ t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ra(t3) }), {}) };
2626
2633
  continue;
2627
2634
  case `notation-simple`:
2628
2635
  t2.notation = `standard`;
@@ -2665,7 +2672,7 @@ function ta(e6) {
2665
2672
  continue;
2666
2673
  case `integer-width`:
2667
2674
  if (n2.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);
2668
- n2.options[0].replace(Yi, function(e8, n3, r3, i2, a2, o2) {
2675
+ n2.options[0].replace(Qi, function(e8, n3, r3, i2, a2, o2) {
2669
2676
  if (n3) t2.minimumIntegerDigits = r3.length;
2670
2677
  else if (i2 && a2) throw Error(`We currently do not support maximum integer digits`);
2671
2678
  else if (o2) throw Error(`We currently do not support exact integer digits`);
@@ -2673,83 +2680,83 @@ function ta(e6) {
2673
2680
  });
2674
2681
  continue;
2675
2682
  }
2676
- if (Xi.test(n2.stem)) {
2683
+ if ($i.test(n2.stem)) {
2677
2684
  t2.minimumIntegerDigits = n2.stem.length;
2678
2685
  continue;
2679
2686
  }
2680
- if (qi.test(n2.stem)) {
2687
+ if (Xi.test(n2.stem)) {
2681
2688
  if (n2.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);
2682
- n2.stem.replace(qi, function(e9, n3, r3, i2, a2, o2) {
2689
+ n2.stem.replace(Xi, function(e9, n3, r3, i2, a2, o2) {
2683
2690
  return r3 === `*` ? t2.minimumFractionDigits = n3.length : i2 && i2[0] === `#` ? t2.maximumFractionDigits = i2.length : a2 && o2 ? (t2.minimumFractionDigits = a2.length, t2.maximumFractionDigits = a2.length + o2.length) : (t2.minimumFractionDigits = n3.length, t2.maximumFractionDigits = n3.length), ``;
2684
2691
  });
2685
2692
  let e8 = n2.options[0];
2686
- e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...Zi(e8) });
2693
+ e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...ea(e8) });
2687
2694
  continue;
2688
2695
  }
2689
- if (Ji.test(n2.stem)) {
2690
- t2 = { ...t2, ...Zi(n2.stem) };
2696
+ if (Zi.test(n2.stem)) {
2697
+ t2 = { ...t2, ...ea(n2.stem) };
2691
2698
  continue;
2692
2699
  }
2693
- let e7 = Qi(n2.stem);
2700
+ let e7 = ta(n2.stem);
2694
2701
  e7 && (t2 = { ...t2, ...e7 });
2695
- let r2 = $i(n2.stem);
2702
+ let r2 = na(n2.stem);
2696
2703
  r2 && (t2 = { ...t2, ...r2 });
2697
2704
  }
2698
2705
  return t2;
2699
2706
  }
2700
- var na = function(e6) {
2707
+ var aa = function(e6) {
2701
2708
  return e6[e6.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = `EXPECT_ARGUMENT_CLOSING_BRACE`, e6[e6.EMPTY_ARGUMENT = 2] = `EMPTY_ARGUMENT`, e6[e6.MALFORMED_ARGUMENT = 3] = `MALFORMED_ARGUMENT`, e6[e6.EXPECT_ARGUMENT_TYPE = 4] = `EXPECT_ARGUMENT_TYPE`, e6[e6.INVALID_ARGUMENT_TYPE = 5] = `INVALID_ARGUMENT_TYPE`, e6[e6.EXPECT_ARGUMENT_STYLE = 6] = `EXPECT_ARGUMENT_STYLE`, e6[e6.INVALID_NUMBER_SKELETON = 7] = `INVALID_NUMBER_SKELETON`, e6[e6.INVALID_DATE_TIME_SKELETON = 8] = `INVALID_DATE_TIME_SKELETON`, e6[e6.EXPECT_NUMBER_SKELETON = 9] = `EXPECT_NUMBER_SKELETON`, e6[e6.EXPECT_DATE_TIME_SKELETON = 10] = `EXPECT_DATE_TIME_SKELETON`, e6[e6.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = `UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`, e6[e6.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = `EXPECT_SELECT_ARGUMENT_OPTIONS`, e6[e6.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = `EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = `INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = `EXPECT_SELECT_ARGUMENT_SELECTOR`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = `EXPECT_PLURAL_ARGUMENT_SELECTOR`, e6[e6.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = `EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = `EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`, e6[e6.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = `INVALID_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = `DUPLICATE_PLURAL_ARGUMENT_SELECTOR`, e6[e6.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = `DUPLICATE_SELECT_ARGUMENT_SELECTOR`, e6[e6.MISSING_OTHER_CLAUSE = 22] = `MISSING_OTHER_CLAUSE`, e6[e6.INVALID_TAG = 23] = `INVALID_TAG`, e6[e6.INVALID_TAG_NAME = 25] = `INVALID_TAG_NAME`, e6[e6.UNMATCHED_CLOSING_TAG = 26] = `UNMATCHED_CLOSING_TAG`, e6[e6.UNCLOSED_TAG = 27] = `UNCLOSED_TAG`, e6;
2702
2709
  }({});
2703
- function ra(e6) {
2710
+ function oa(e6) {
2704
2711
  return e6.type === 0;
2705
2712
  }
2706
- function ia(e6) {
2713
+ function sa(e6) {
2707
2714
  return e6.type === 1;
2708
2715
  }
2709
- function aa(e6) {
2716
+ function ca(e6) {
2710
2717
  return e6.type === 2;
2711
2718
  }
2712
- function oa(e6) {
2719
+ function la(e6) {
2713
2720
  return e6.type === 3;
2714
2721
  }
2715
- function sa(e6) {
2722
+ function ua(e6) {
2716
2723
  return e6.type === 4;
2717
2724
  }
2718
- function ca(e6) {
2725
+ function da(e6) {
2719
2726
  return e6.type === 5;
2720
2727
  }
2721
- function la(e6) {
2728
+ function fa(e6) {
2722
2729
  return e6.type === 6;
2723
2730
  }
2724
- function ua(e6) {
2731
+ function pa(e6) {
2725
2732
  return e6.type === 7;
2726
2733
  }
2727
- function da(e6) {
2734
+ function ma(e6) {
2728
2735
  return e6.type === 8;
2729
2736
  }
2730
- function fa(e6) {
2737
+ function ha(e6) {
2731
2738
  return !!(e6 && typeof e6 == `object` && e6.type === 0);
2732
2739
  }
2733
- function pa(e6) {
2740
+ function ga(e6) {
2734
2741
  return !!(e6 && typeof e6 == `object` && e6.type === 1);
2735
2742
  }
2736
- var ma = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2737
- var Y = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
2738
- function ha(e6, t2) {
2743
+ var _a = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2744
+ var q = { "001": [`H`, `h`], 419: [`h`, `H`, `hB`, `hb`], AC: [`H`, `h`, `hb`, `hB`], AD: [`H`, `hB`], AE: [`h`, `hB`, `hb`, `H`], AF: [`H`, `hb`, `hB`, `h`], AG: [`h`, `hb`, `H`, `hB`], AI: [`H`, `h`, `hb`, `hB`], AL: [`h`, `H`, `hB`], AM: [`H`, `hB`], AO: [`H`, `hB`], AR: [`h`, `H`, `hB`, `hb`], AS: [`h`, `H`], AT: [`H`, `hB`], AU: [`h`, `hb`, `H`, `hB`], AW: [`H`, `hB`], AX: [`H`], AZ: [`H`, `hB`, `h`], BA: [`H`, `hB`, `h`], BB: [`h`, `hb`, `H`, `hB`], BD: [`h`, `hB`, `H`], BE: [`H`, `hB`], BF: [`H`, `hB`], BG: [`H`, `hB`, `h`], BH: [`h`, `hB`, `hb`, `H`], BI: [`H`, `h`], BJ: [`H`, `hB`], BL: [`H`, `hB`], BM: [`h`, `hb`, `H`, `hB`], BN: [`hb`, `hB`, `h`, `H`], BO: [`h`, `H`, `hB`, `hb`], BQ: [`H`], BR: [`H`, `hB`], BS: [`h`, `hb`, `H`, `hB`], BT: [`h`, `H`], BW: [`H`, `h`, `hb`, `hB`], BY: [`H`, `h`], BZ: [`H`, `h`, `hb`, `hB`], CA: [`h`, `hb`, `H`, `hB`], CC: [`H`, `h`, `hb`, `hB`], CD: [`hB`, `H`], CF: [`H`, `h`, `hB`], CG: [`H`, `hB`], CH: [`H`, `hB`, `h`], CI: [`H`, `hB`], CK: [`H`, `h`, `hb`, `hB`], CL: [`h`, `H`, `hB`, `hb`], CM: [`H`, `h`, `hB`], CN: [`H`, `hB`, `hb`, `h`], CO: [`h`, `H`, `hB`, `hb`], CP: [`H`], CR: [`h`, `H`, `hB`, `hb`], CU: [`h`, `H`, `hB`, `hb`], CV: [`H`, `hB`], CW: [`H`, `hB`], CX: [`H`, `h`, `hb`, `hB`], CY: [`h`, `H`, `hb`, `hB`], CZ: [`H`], DE: [`H`, `hB`], DG: [`H`, `h`, `hb`, `hB`], DJ: [`h`, `H`], DK: [`H`], DM: [`h`, `hb`, `H`, `hB`], DO: [`h`, `H`, `hB`, `hb`], DZ: [`h`, `hB`, `hb`, `H`], EA: [`H`, `h`, `hB`, `hb`], EC: [`h`, `H`, `hB`, `hb`], EE: [`H`, `hB`], EG: [`h`, `hB`, `hb`, `H`], EH: [`h`, `hB`, `hb`, `H`], ER: [`h`, `H`], ES: [`H`, `hB`, `h`, `hb`], ET: [`hB`, `hb`, `h`, `H`], FI: [`H`], FJ: [`h`, `hb`, `H`, `hB`], FK: [`H`, `h`, `hb`, `hB`], FM: [`h`, `hb`, `H`, `hB`], FO: [`H`, `h`], FR: [`H`, `hB`], GA: [`H`, `hB`], GB: [`H`, `h`, `hb`, `hB`], GD: [`h`, `hb`, `H`, `hB`], GE: [`H`, `hB`, `h`], GF: [`H`, `hB`], GG: [`H`, `h`, `hb`, `hB`], GH: [`h`, `H`], GI: [`H`, `h`, `hb`, `hB`], GL: [`H`, `h`], GM: [`h`, `hb`, `H`, `hB`], GN: [`H`, `hB`], GP: [`H`, `hB`], GQ: [`H`, `hB`, `h`, `hb`], GR: [`h`, `H`, `hb`, `hB`], GS: [`H`, `h`, `hb`, `hB`], GT: [`h`, `H`, `hB`, `hb`], GU: [`h`, `hb`, `H`, `hB`], GW: [`H`, `hB`], GY: [`h`, `hb`, `H`, `hB`], HK: [`h`, `hB`, `hb`, `H`], HN: [`h`, `H`, `hB`, `hb`], HR: [`H`, `hB`], HU: [`H`, `h`], IC: [`H`, `h`, `hB`, `hb`], ID: [`H`], IE: [`H`, `h`, `hb`, `hB`], IL: [`H`, `hB`], IM: [`H`, `h`, `hb`, `hB`], IN: [`h`, `H`], IO: [`H`, `h`, `hb`, `hB`], IQ: [`h`, `hB`, `hb`, `H`], IR: [`hB`, `H`], IS: [`H`], IT: [`H`, `hB`], JE: [`H`, `h`, `hb`, `hB`], JM: [`h`, `hb`, `H`, `hB`], JO: [`h`, `hB`, `hb`, `H`], JP: [`H`, `K`, `h`], KE: [`hB`, `hb`, `H`, `h`], KG: [`H`, `h`, `hB`, `hb`], KH: [`hB`, `h`, `H`, `hb`], KI: [`h`, `hb`, `H`, `hB`], KM: [`H`, `h`, `hB`, `hb`], KN: [`h`, `hb`, `H`, `hB`], KP: [`h`, `H`, `hB`, `hb`], KR: [`h`, `H`, `hB`, `hb`], KW: [`h`, `hB`, `hb`, `H`], KY: [`h`, `hb`, `H`, `hB`], KZ: [`H`, `hB`], LA: [`H`, `hb`, `hB`, `h`], LB: [`h`, `hB`, `hb`, `H`], LC: [`h`, `hb`, `H`, `hB`], LI: [`H`, `hB`, `h`], LK: [`H`, `h`, `hB`, `hb`], LR: [`h`, `hb`, `H`, `hB`], LS: [`h`, `H`], LT: [`H`, `h`, `hb`, `hB`], LU: [`H`, `h`, `hB`], LV: [`H`, `hB`, `hb`, `h`], LY: [`h`, `hB`, `hb`, `H`], MA: [`H`, `h`, `hB`, `hb`], MC: [`H`, `hB`], MD: [`H`, `hB`], ME: [`H`, `hB`, `h`], MF: [`H`, `hB`], MG: [`H`, `h`], MH: [`h`, `hb`, `H`, `hB`], MK: [`H`, `h`, `hb`, `hB`], ML: [`H`], MM: [`hB`, `hb`, `H`, `h`], MN: [`H`, `h`, `hb`, `hB`], MO: [`h`, `hB`, `hb`, `H`], MP: [`h`, `hb`, `H`, `hB`], MQ: [`H`, `hB`], MR: [`h`, `hB`, `hb`, `H`], MS: [`H`, `h`, `hb`, `hB`], MT: [`H`, `h`], MU: [`H`, `h`], MV: [`H`, `h`], MW: [`h`, `hb`, `H`, `hB`], MX: [`h`, `H`, `hB`, `hb`], MY: [`hb`, `hB`, `h`, `H`], MZ: [`H`, `hB`], NA: [`h`, `H`, `hB`, `hb`], NC: [`H`, `hB`], NE: [`H`], NF: [`H`, `h`, `hb`, `hB`], NG: [`H`, `h`, `hb`, `hB`], NI: [`h`, `H`, `hB`, `hb`], NL: [`H`, `hB`], NO: [`H`, `h`], NP: [`H`, `h`, `hB`], NR: [`H`, `h`, `hb`, `hB`], NU: [`H`, `h`, `hb`, `hB`], NZ: [`h`, `hb`, `H`, `hB`], OM: [`h`, `hB`, `hb`, `H`], PA: [`h`, `H`, `hB`, `hb`], PE: [`h`, `H`, `hB`, `hb`], PF: [`H`, `h`, `hB`], PG: [`h`, `H`], PH: [`h`, `hB`, `hb`, `H`], PK: [`h`, `hB`, `H`], PL: [`H`, `h`], PM: [`H`, `hB`], PN: [`H`, `h`, `hb`, `hB`], PR: [`h`, `H`, `hB`, `hb`], PS: [`h`, `hB`, `hb`, `H`], PT: [`H`, `hB`], PW: [`h`, `H`], PY: [`h`, `H`, `hB`, `hb`], QA: [`h`, `hB`, `hb`, `H`], RE: [`H`, `hB`], RO: [`H`, `hB`], RS: [`H`, `hB`, `h`], RU: [`H`], RW: [`H`, `h`], SA: [`h`, `hB`, `hb`, `H`], SB: [`h`, `hb`, `H`, `hB`], SC: [`H`, `h`, `hB`], SD: [`h`, `hB`, `hb`, `H`], SE: [`H`], SG: [`h`, `hb`, `H`, `hB`], SH: [`H`, `h`, `hb`, `hB`], SI: [`H`, `hB`], SJ: [`H`], SK: [`H`], SL: [`h`, `hb`, `H`, `hB`], SM: [`H`, `h`, `hB`], SN: [`H`, `h`, `hB`], SO: [`h`, `H`], SR: [`H`, `hB`], SS: [`h`, `hb`, `H`, `hB`], ST: [`H`, `hB`], SV: [`h`, `H`, `hB`, `hb`], SX: [`H`, `h`, `hb`, `hB`], SY: [`h`, `hB`, `hb`, `H`], SZ: [`h`, `hb`, `H`, `hB`], TA: [`H`, `h`, `hb`, `hB`], TC: [`h`, `hb`, `H`, `hB`], TD: [`h`, `H`, `hB`], TF: [`H`, `h`, `hB`], TG: [`H`, `hB`], TH: [`H`, `h`], TJ: [`H`, `h`], TL: [`H`, `hB`, `hb`, `h`], TM: [`H`, `h`], TN: [`h`, `hB`, `hb`, `H`], TO: [`h`, `H`], TR: [`H`, `hB`], TT: [`h`, `hb`, `H`, `hB`], TW: [`hB`, `hb`, `h`, `H`], TZ: [`hB`, `hb`, `H`, `h`], UA: [`H`, `hB`, `h`], UG: [`hB`, `hb`, `H`, `h`], UM: [`h`, `hb`, `H`, `hB`], US: [`h`, `hb`, `H`, `hB`], UY: [`h`, `H`, `hB`, `hb`], UZ: [`H`, `hB`, `h`], VA: [`H`, `h`, `hB`], VC: [`h`, `hb`, `H`, `hB`], VE: [`h`, `H`, `hB`, `hb`], VG: [`h`, `hb`, `H`, `hB`], VI: [`h`, `hb`, `H`, `hB`], VN: [`H`, `h`], VU: [`h`, `H`], WF: [`H`, `hB`], WS: [`h`, `H`], XK: [`H`, `hB`, `h`], YE: [`h`, `hB`, `hb`, `H`], YT: [`H`, `hB`], ZA: [`H`, `h`, `hb`, `hB`], ZM: [`h`, `hb`, `H`, `hB`], ZW: [`H`, `h`], "af-ZA": [`H`, `h`, `hB`, `hb`], "ar-001": [`h`, `hB`, `hb`, `H`], "ca-ES": [`H`, `h`, `hB`], "en-001": [`h`, `hb`, `H`, `hB`], "en-HK": [`h`, `hb`, `H`, `hB`], "en-IL": [`H`, `h`, `hb`, `hB`], "en-MY": [`h`, `hb`, `H`, `hB`], "es-BR": [`H`, `h`, `hB`, `hb`], "es-ES": [`H`, `h`, `hB`, `hb`], "es-GQ": [`H`, `h`, `hB`, `hb`], "fr-CA": [`H`, `h`, `hB`], "gl-ES": [`H`, `h`, `hB`], "gu-IN": [`hB`, `hb`, `h`, `H`], "hi-IN": [`hB`, `h`, `H`], "it-CH": [`H`, `h`, `hB`], "it-IT": [`H`, `h`, `hB`], "kn-IN": [`hB`, `h`, `H`], "ku-SY": [`H`, `hB`], "ml-IN": [`hB`, `h`, `H`], "mr-IN": [`hB`, `hb`, `h`, `H`], "pa-IN": [`hB`, `hb`, `h`, `H`], "ta-IN": [`hB`, `h`, `hb`, `H`], "te-IN": [`hB`, `h`, `H`], "zu-ZA": [`H`, `hB`, `hb`, `h`] };
2745
+ function va(e6, t2) {
2739
2746
  let n2 = ``;
2740
2747
  for (let r2 = 0; r2 < e6.length; r2++) {
2741
2748
  let i2 = e6.charAt(r2);
2742
2749
  if (i2 === `j`) {
2743
2750
  let a2 = 0;
2744
2751
  for (; r2 + 1 < e6.length && e6.charAt(r2 + 1) === i2; ) a2++, r2++;
2745
- let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = ga(t2);
2752
+ let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = ya(t2);
2746
2753
  for ((c2 == `H` || c2 == `k`) && (s2 = 0); s2-- > 0; ) n2 += `a`;
2747
2754
  for (; o2-- > 0; ) n2 = c2 + n2;
2748
2755
  } else n2 += i2 === `J` ? `H` : i2;
2749
2756
  }
2750
2757
  return n2;
2751
2758
  }
2752
- function ga(e6) {
2759
+ function ya(e6) {
2753
2760
  let t2 = e6.hourCycle;
2754
2761
  if (t2 === void 0) {
2755
2762
  let n3 = e6;
@@ -2768,36 +2775,36 @@ function ga(e6) {
2768
2775
  throw Error(`Invalid hourCycle`);
2769
2776
  }
2770
2777
  let n2 = e6.language, r2;
2771
- return n2 !== `root` && (r2 = e6.maximize().region), (Y[`${n2}-${r2}`] || Y[r2 || ``] || Y[n2 || ``] || Y[`${n2}-001`] || Y[`001`])[0].charAt(0);
2778
+ return n2 !== `root` && (r2 = e6.maximize().region), (q[`${n2}-${r2}`] || q[r2 || ``] || q[n2 || ``] || q[`${n2}-001`] || q[`001`])[0].charAt(0);
2772
2779
  }
2773
- var _a = RegExp(`^${ma.source}*`);
2774
- var va = RegExp(`${ma.source}*$`);
2775
- function X(e6, t2) {
2780
+ var ba = RegExp(`^${_a.source}*`);
2781
+ var xa = RegExp(`${_a.source}*$`);
2782
+ function J(e6, t2) {
2776
2783
  return { start: e6, end: t2 };
2777
2784
  }
2778
- var ya = !!Object.fromEntries;
2779
- var ba = !!String.prototype.trimStart;
2780
- var xa = !!String.prototype.trimEnd;
2781
- var Sa = ya ? Object.fromEntries : function(e6) {
2785
+ var Sa = !!Object.fromEntries;
2786
+ var Ca = !!String.prototype.trimStart;
2787
+ var wa = !!String.prototype.trimEnd;
2788
+ var Ta = Sa ? Object.fromEntries : function(e6) {
2782
2789
  let t2 = {};
2783
2790
  for (let [n2, r2] of e6) t2[n2] = r2;
2784
2791
  return t2;
2785
2792
  };
2786
- var Ca = ba ? function(e6) {
2793
+ var Ea = Ca ? function(e6) {
2787
2794
  return e6.trimStart();
2788
2795
  } : function(e6) {
2789
- return e6.replace(_a, ``);
2796
+ return e6.replace(ba, ``);
2790
2797
  };
2791
- var wa = xa ? function(e6) {
2798
+ var Da = wa ? function(e6) {
2792
2799
  return e6.trimEnd();
2793
2800
  } : function(e6) {
2794
- return e6.replace(va, ``);
2801
+ return e6.replace(xa, ``);
2795
2802
  };
2796
- var Ta = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2797
- function Ea(e6, t2) {
2798
- return Ta.lastIndex = t2, Ta.exec(e6)[1] ?? ``;
2803
+ var Oa = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2804
+ function ka(e6, t2) {
2805
+ return Oa.lastIndex = t2, Oa.exec(e6)[1] ?? ``;
2799
2806
  }
2800
- function Da(e6) {
2807
+ function Aa(e6) {
2801
2808
  if (e6.length === 0) return null;
2802
2809
  let t2 = 1, n2 = 1;
2803
2810
  for (let r2 = 0; r2 < e6.length; ) {
@@ -2818,7 +2825,7 @@ function Da(e6) {
2818
2825
  }
2819
2826
  return { offset: e6.length, line: t2, column: n2 };
2820
2827
  }
2821
- var Oa = class {
2828
+ var ja = class {
2822
2829
  constructor(e6, t2 = {}) {
2823
2830
  this.message = e6, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!t2.ignoreTag, this.locale = t2.locale, this.requiresOtherClause = !!t2.requiresOtherClause, this.shouldParseSkeletons = !!t2.shouldParseSkeletons;
2824
2831
  }
@@ -2827,10 +2834,10 @@ var Oa = class {
2827
2834
  if (this.message.length > 0) {
2828
2835
  let e6 = this.message.charCodeAt(0);
2829
2836
  if (e6 !== 35 && e6 !== 39 && e6 !== 60 && e6 !== 123 && e6 !== 125) {
2830
- let e7 = Da(this.message);
2837
+ let e7 = Aa(this.message);
2831
2838
  if (e7) {
2832
2839
  let t2 = this.clonePosition();
2833
- return this.position = e7, { val: [{ type: 0, value: this.message, location: X(t2, this.clonePosition()) }], err: null };
2840
+ return this.position = e7, { val: [{ type: 0, value: this.message, location: J(t2, this.clonePosition()) }], err: null };
2834
2841
  }
2835
2842
  }
2836
2843
  }
@@ -2847,11 +2854,11 @@ var Oa = class {
2847
2854
  } else if (i2 === 125 && e6 > 0) break;
2848
2855
  else if (i2 === 35 && (t2 === `plural` || t2 === `selectordinal`)) {
2849
2856
  let e7 = this.clonePosition();
2850
- this.bump(), r2.push({ type: 7, location: X(e7, this.clonePosition()) });
2857
+ this.bump(), r2.push({ type: 7, location: J(e7, this.clonePosition()) });
2851
2858
  } else if (i2 === 60 && !this.ignoreTag && this.peek() === 47) {
2852
2859
  if (n2) break;
2853
- return this.error(26, X(this.clonePosition(), this.clonePosition()));
2854
- } else if (i2 === 60 && !this.ignoreTag && ka(this.peek() || 0)) {
2860
+ return this.error(26, J(this.clonePosition(), this.clonePosition()));
2861
+ } else if (i2 === 60 && !this.ignoreTag && Ma(this.peek() || 0)) {
2855
2862
  let n3 = this.parseTag(e6, t2);
2856
2863
  if (n3.err) return n3;
2857
2864
  r2.push(n3.val);
@@ -2867,23 +2874,23 @@ var Oa = class {
2867
2874
  let n2 = this.clonePosition();
2868
2875
  this.bump();
2869
2876
  let r2 = this.parseTagName();
2870
- if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: X(n2, this.clonePosition()) }, err: null };
2877
+ if (this.bumpSpace(), this.bumpIf(`/>`)) return { val: { type: 0, value: `<${r2}/>`, location: J(n2, this.clonePosition()) }, err: null };
2871
2878
  if (this.bumpIf(`>`)) {
2872
2879
  let i2 = this.parseMessage(e6 + 1, t2, true);
2873
2880
  if (i2.err) return i2;
2874
2881
  let a2 = i2.val, o2 = this.clonePosition();
2875
2882
  if (this.bumpIf(`</`)) {
2876
- if (this.isEOF() || !ka(this.char())) return this.error(23, X(o2, this.clonePosition()));
2883
+ if (this.isEOF() || !Ma(this.char())) return this.error(23, J(o2, this.clonePosition()));
2877
2884
  let e7 = this.clonePosition();
2878
- return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: X(n2, this.clonePosition()) }, err: null } : this.error(23, X(o2, this.clonePosition()))) : this.error(26, X(e7, this.clonePosition()));
2885
+ return r2 === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(`>`) ? { val: { type: 8, value: r2, children: a2, location: J(n2, this.clonePosition()) }, err: null } : this.error(23, J(o2, this.clonePosition()))) : this.error(26, J(e7, this.clonePosition()));
2879
2886
  }
2880
- return this.error(27, X(n2, this.clonePosition()));
2887
+ return this.error(27, J(n2, this.clonePosition()));
2881
2888
  }
2882
- return this.error(23, X(n2, this.clonePosition()));
2889
+ return this.error(23, J(n2, this.clonePosition()));
2883
2890
  }
2884
2891
  parseTagName() {
2885
2892
  let e6 = this.offset();
2886
- for (this.bump(); !this.isEOF() && ja(this.char()); ) this.bump();
2893
+ for (this.bump(); !this.isEOF() && Pa(this.char()); ) this.bump();
2887
2894
  return this.message.slice(e6, this.offset());
2888
2895
  }
2889
2896
  parseLiteral(e6, t2) {
@@ -2903,11 +2910,11 @@ var Oa = class {
2903
2910
  if (a2) r2 += a2;
2904
2911
  else break;
2905
2912
  }
2906
- let i2 = X(n2, this.clonePosition());
2913
+ let i2 = J(n2, this.clonePosition());
2907
2914
  return { val: { type: 0, value: r2, location: i2 }, err: null };
2908
2915
  }
2909
2916
  tryParseLeftAngleBracket() {
2910
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Aa(this.peek() || 0)) ? (this.bump(), `<`) : null;
2917
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Na(this.peek() || 0)) ? (this.bump(), `<`) : null;
2911
2918
  }
2912
2919
  tryParseQuote(e6) {
2913
2920
  if (this.isEOF() || this.char() !== 39) return null;
@@ -2947,29 +2954,29 @@ var Oa = class {
2947
2954
  }
2948
2955
  parseArgument(e6, t2) {
2949
2956
  let n2 = this.clonePosition();
2950
- if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, X(n2, this.clonePosition()));
2951
- if (this.char() === 125) return this.bump(), this.error(2, X(n2, this.clonePosition()));
2957
+ if (this.bump(), this.bumpSpace(), this.isEOF()) return this.error(1, J(n2, this.clonePosition()));
2958
+ if (this.char() === 125) return this.bump(), this.error(2, J(n2, this.clonePosition()));
2952
2959
  let r2 = this.parseIdentifierIfPossible().value;
2953
- if (!r2) return this.error(3, X(n2, this.clonePosition()));
2954
- if (this.bumpSpace(), this.isEOF()) return this.error(1, X(n2, this.clonePosition()));
2960
+ if (!r2) return this.error(3, J(n2, this.clonePosition()));
2961
+ if (this.bumpSpace(), this.isEOF()) return this.error(1, J(n2, this.clonePosition()));
2955
2962
  switch (this.char()) {
2956
2963
  case 125:
2957
- return this.bump(), { val: { type: 1, value: r2, location: X(n2, this.clonePosition()) }, err: null };
2964
+ return this.bump(), { val: { type: 1, value: r2, location: J(n2, this.clonePosition()) }, err: null };
2958
2965
  case 44:
2959
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, X(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
2966
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(1, J(n2, this.clonePosition())) : this.parseArgumentOptions(e6, t2, r2, n2);
2960
2967
  default:
2961
- return this.error(3, X(n2, this.clonePosition()));
2968
+ return this.error(3, J(n2, this.clonePosition()));
2962
2969
  }
2963
2970
  }
2964
2971
  parseIdentifierIfPossible() {
2965
- let e6 = this.clonePosition(), t2 = this.offset(), n2 = Ea(this.message, t2), r2 = t2 + n2.length;
2966
- return this.bumpTo(r2), { value: n2, location: X(e6, this.clonePosition()) };
2972
+ let e6 = this.clonePosition(), t2 = this.offset(), n2 = ka(this.message, t2), r2 = t2 + n2.length;
2973
+ return this.bumpTo(r2), { value: n2, location: J(e6, this.clonePosition()) };
2967
2974
  }
2968
2975
  parseArgumentOptions(e6, t2, n2, r2) {
2969
2976
  let i2 = this.clonePosition(), a2 = this.parseIdentifierIfPossible().value, o2 = this.clonePosition();
2970
2977
  switch (a2) {
2971
2978
  case ``:
2972
- return this.error(4, X(i2, o2));
2979
+ return this.error(4, J(i2, o2));
2973
2980
  case `number`:
2974
2981
  case `date`:
2975
2982
  case `time`: {
@@ -2979,15 +2986,15 @@ var Oa = class {
2979
2986
  this.bumpSpace();
2980
2987
  let t4 = this.clonePosition(), n3 = this.parseSimpleArgStyleIfPossible();
2981
2988
  if (n3.err) return n3;
2982
- let r3 = wa(n3.val);
2983
- if (r3.length === 0) return this.error(6, X(this.clonePosition(), this.clonePosition()));
2984
- e7 = { style: r3, styleLocation: X(t4, this.clonePosition()) };
2989
+ let r3 = Da(n3.val);
2990
+ if (r3.length === 0) return this.error(6, J(this.clonePosition(), this.clonePosition()));
2991
+ e7 = { style: r3, styleLocation: J(t4, this.clonePosition()) };
2985
2992
  }
2986
2993
  let t3 = this.tryParseArgumentClose(r2);
2987
2994
  if (t3.err) return t3;
2988
- let i3 = X(r2, this.clonePosition());
2995
+ let i3 = J(r2, this.clonePosition());
2989
2996
  if (e7 && e7.style.startsWith(`::`)) {
2990
- let t4 = Ca(e7.style.slice(2));
2997
+ let t4 = Ea(e7.style.slice(2));
2991
2998
  if (a2 === `number`) {
2992
2999
  let r3 = this.parseNumberSkeletonFromString(t4, e7.styleLocation);
2993
3000
  return r3.err ? r3 : { val: { type: 2, value: n2, location: i3, style: r3.val }, err: null };
@@ -2995,8 +3002,8 @@ var Oa = class {
2995
3002
  {
2996
3003
  if (t4.length === 0) return this.error(10, i3);
2997
3004
  let r3 = t4;
2998
- this.locale && (r3 = ha(t4, this.locale));
2999
- let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Ui(r3) : {} };
3005
+ this.locale && (r3 = va(t4, this.locale));
3006
+ let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Ki(r3) : {} };
3000
3007
  return { val: { type: a2 === `date` ? 3 : 4, value: n2, location: i3, style: o3 }, err: null };
3001
3008
  }
3002
3009
  }
@@ -3006,11 +3013,11 @@ var Oa = class {
3006
3013
  case `selectordinal`:
3007
3014
  case `select`: {
3008
3015
  let i3 = this.clonePosition();
3009
- if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, X(i3, { ...i3 }));
3016
+ if (this.bumpSpace(), !this.bumpIf(`,`)) return this.error(12, J(i3, { ...i3 }));
3010
3017
  this.bumpSpace();
3011
3018
  let o3 = this.parseIdentifierIfPossible(), s2 = 0;
3012
3019
  if (a2 !== `select` && o3.value === `offset`) {
3013
- if (!this.bumpIf(`:`)) return this.error(13, X(this.clonePosition(), this.clonePosition()));
3020
+ if (!this.bumpIf(`:`)) return this.error(13, J(this.clonePosition(), this.clonePosition()));
3014
3021
  this.bumpSpace();
3015
3022
  let e7 = this.tryParseDecimalInteger(13, 14);
3016
3023
  if (e7.err) return e7;
@@ -3020,15 +3027,15 @@ var Oa = class {
3020
3027
  if (c2.err) return c2;
3021
3028
  let l2 = this.tryParseArgumentClose(r2);
3022
3029
  if (l2.err) return l2;
3023
- let u2 = X(r2, this.clonePosition());
3024
- return a2 === `select` ? { val: { type: 5, value: n2, options: Sa(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: Sa(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
3030
+ let u2 = J(r2, this.clonePosition());
3031
+ return a2 === `select` ? { val: { type: 5, value: n2, options: Ta(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: Ta(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
3025
3032
  }
3026
3033
  default:
3027
- return this.error(5, X(i2, o2));
3034
+ return this.error(5, J(i2, o2));
3028
3035
  }
3029
3036
  }
3030
3037
  tryParseArgumentClose(e6) {
3031
- return this.isEOF() || this.char() !== 125 ? this.error(1, X(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
3038
+ return this.isEOF() || this.char() !== 125 ? this.error(1, J(e6, this.clonePosition())) : (this.bump(), { val: true, err: null });
3032
3039
  }
3033
3040
  parseSimpleArgStyleIfPossible() {
3034
3041
  let e6 = 0, t2 = this.clonePosition();
@@ -3036,7 +3043,7 @@ var Oa = class {
3036
3043
  case 39: {
3037
3044
  this.bump();
3038
3045
  let e7 = this.clonePosition();
3039
- if (!this.bumpUntil(`'`)) return this.error(11, X(e7, this.clonePosition()));
3046
+ if (!this.bumpUntil(`'`)) return this.error(11, J(e7, this.clonePosition()));
3040
3047
  this.bump();
3041
3048
  break;
3042
3049
  }
@@ -3055,11 +3062,11 @@ var Oa = class {
3055
3062
  parseNumberSkeletonFromString(e6, t2) {
3056
3063
  let n2 = [];
3057
3064
  try {
3058
- n2 = Gi(e6);
3065
+ n2 = Ji(e6);
3059
3066
  } catch {
3060
3067
  return this.error(7, t2);
3061
3068
  }
3062
- return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? ta(n2) : {} }, err: null };
3069
+ return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? ia(n2) : {} }, err: null };
3063
3070
  }
3064
3071
  tryParsePluralOrSelectOptions(e6, t2, n2, r2) {
3065
3072
  let i2 = false, a2 = [], o2 = /* @__PURE__ */ new Set(), { value: s2, location: c2 } = r2;
@@ -3069,20 +3076,20 @@ var Oa = class {
3069
3076
  if (t2 !== `select` && this.bumpIf(`=`)) {
3070
3077
  let t3 = this.tryParseDecimalInteger(16, 19);
3071
3078
  if (t3.err) return t3;
3072
- c2 = X(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
3079
+ c2 = J(e7, this.clonePosition()), s2 = this.message.slice(e7.offset, this.offset());
3073
3080
  } else break;
3074
3081
  }
3075
3082
  if (o2.has(s2)) return this.error(t2 === `select` ? 21 : 20, c2);
3076
3083
  s2 === `other` && (i2 = true), this.bumpSpace();
3077
3084
  let r3 = this.clonePosition();
3078
- if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, X(this.clonePosition(), this.clonePosition()));
3085
+ if (!this.bumpIf(`{`)) return this.error(t2 === `select` ? 17 : 18, J(this.clonePosition(), this.clonePosition()));
3079
3086
  let l2 = this.parseMessage(e6 + 1, t2, n2);
3080
3087
  if (l2.err) return l2;
3081
3088
  let u2 = this.tryParseArgumentClose(r3);
3082
3089
  if (u2.err) return u2;
3083
- a2.push([s2, { value: l2.val, location: X(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
3090
+ a2.push([s2, { value: l2.val, location: J(r3, this.clonePosition()) }]), o2.add(s2), this.bumpSpace(), { value: s2, location: c2 } = this.parseIdentifierIfPossible();
3084
3091
  }
3085
- return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, X(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, X(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
3092
+ return a2.length === 0 ? this.error(t2 === `select` ? 15 : 16, J(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !i2 ? this.error(22, J(this.clonePosition(), this.clonePosition())) : { val: a2, err: null };
3086
3093
  }
3087
3094
  tryParseDecimalInteger(e6, t2) {
3088
3095
  let n2 = 1, r2 = this.clonePosition();
@@ -3093,7 +3100,7 @@ var Oa = class {
3093
3100
  if (e7 >= 48 && e7 <= 57) i2 = true, a2 = a2 * 10 + (e7 - 48), this.bump();
3094
3101
  else break;
3095
3102
  }
3096
- let o2 = X(r2, this.clonePosition());
3103
+ let o2 = J(r2, this.clonePosition());
3097
3104
  return i2 ? (a2 *= n2, Number.isSafeInteger(a2) ? { val: a2, err: null } : this.error(t2, o2)) : this.error(e6, o2);
3098
3105
  }
3099
3106
  offset() {
@@ -3141,7 +3148,7 @@ var Oa = class {
3141
3148
  }
3142
3149
  }
3143
3150
  bumpSpace() {
3144
- for (; !this.isEOF() && Ma(this.char()); ) this.bump();
3151
+ for (; !this.isEOF() && Fa(this.char()); ) this.bump();
3145
3152
  }
3146
3153
  peek() {
3147
3154
  if (this.isEOF()) return null;
@@ -3149,34 +3156,34 @@ var Oa = class {
3149
3156
  return this.message.charCodeAt(t2 + (e6 >= 65536 ? 2 : 1)) ?? null;
3150
3157
  }
3151
3158
  };
3152
- function ka(e6) {
3159
+ function Ma(e6) {
3153
3160
  return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
3154
3161
  }
3155
- function Aa(e6) {
3156
- return ka(e6) || e6 === 47;
3162
+ function Na(e6) {
3163
+ return Ma(e6) || e6 === 47;
3157
3164
  }
3158
- function ja(e6) {
3165
+ function Pa(e6) {
3159
3166
  return e6 === 45 || e6 === 46 || e6 >= 48 && e6 <= 57 || e6 === 95 || e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90 || e6 == 183 || e6 >= 192 && e6 <= 214 || e6 >= 216 && e6 <= 246 || e6 >= 248 && e6 <= 893 || e6 >= 895 && e6 <= 8191 || e6 >= 8204 && e6 <= 8205 || e6 >= 8255 && e6 <= 8256 || e6 >= 8304 && e6 <= 8591 || e6 >= 11264 && e6 <= 12271 || e6 >= 12289 && e6 <= 55295 || e6 >= 63744 && e6 <= 64975 || e6 >= 65008 && e6 <= 65533 || e6 >= 65536 && e6 <= 983039;
3160
3167
  }
3161
- function Ma(e6) {
3168
+ function Fa(e6) {
3162
3169
  return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
3163
3170
  }
3164
- function Na(e6) {
3171
+ function Ia(e6) {
3165
3172
  e6.forEach((e7) => {
3166
- if (delete e7.location, ca(e7) || la(e7)) for (let t2 in e7.options) delete e7.options[t2].location, Na(e7.options[t2].value);
3167
- else aa(e7) && fa(e7.style) || (oa(e7) || sa(e7)) && pa(e7.style) ? delete e7.style.location : da(e7) && Na(e7.children);
3173
+ if (delete e7.location, da(e7) || fa(e7)) for (let t2 in e7.options) delete e7.options[t2].location, Ia(e7.options[t2].value);
3174
+ else ca(e7) && ha(e7.style) || (la(e7) || ua(e7)) && ga(e7.style) ? delete e7.style.location : ma(e7) && Ia(e7.children);
3168
3175
  });
3169
3176
  }
3170
- function Pa(e6, t2 = {}) {
3177
+ function La(e6, t2 = {}) {
3171
3178
  t2 = { shouldParseSkeletons: true, requiresOtherClause: true, ...t2 };
3172
- let n2 = new Oa(e6, t2).parse();
3179
+ let n2 = new ja(e6, t2).parse();
3173
3180
  if (n2.err) {
3174
- let e7 = SyntaxError(na[n2.err.kind]);
3181
+ let e7 = SyntaxError(aa[n2.err.kind]);
3175
3182
  throw e7.location = n2.err.location, e7.originalMessage = n2.err.message, e7;
3176
3183
  }
3177
- return t2?.captureLocation || Na(n2.val), n2.val;
3184
+ return t2?.captureLocation || Ia(n2.val), n2.val;
3178
3185
  }
3179
- var Fa = class extends Error {
3186
+ var Ra = class extends Error {
3180
3187
  constructor(e6, t2, n2) {
3181
3188
  super(e6), this.code = t2, this.originalMessage = n2;
3182
3189
  }
@@ -3184,54 +3191,54 @@ var Fa = class extends Error {
3184
3191
  return `[formatjs Error: ${this.code}] ${this.message}`;
3185
3192
  }
3186
3193
  };
3187
- var Ia = class extends Fa {
3194
+ var za = class extends Ra {
3188
3195
  constructor(e6, t2, n2, r2) {
3189
3196
  super(`Invalid values for "${e6}": "${t2}". Options are "${Object.keys(n2).join(`", "`)}"`, `INVALID_VALUE`, r2);
3190
3197
  }
3191
3198
  };
3192
- var La = class extends Fa {
3199
+ var Ba = class extends Ra {
3193
3200
  constructor(e6, t2, n2) {
3194
3201
  super(`Value for "${e6}" must be of type ${t2}`, `INVALID_VALUE`, n2);
3195
3202
  }
3196
3203
  };
3197
- var Ra = class extends Fa {
3204
+ var Va = class extends Ra {
3198
3205
  constructor(e6, t2) {
3199
3206
  super(`The intl string context variable "${e6}" was not provided to the string "${t2}"`, `MISSING_VALUE`, t2);
3200
3207
  }
3201
3208
  };
3202
- function za(e6) {
3209
+ function Ha(e6) {
3203
3210
  return e6.length < 2 ? e6 : e6.reduce((e7, t2) => {
3204
3211
  let n2 = e7[e7.length - 1];
3205
3212
  return !n2 || n2.type !== 0 || t2.type !== 0 ? e7.push(t2) : n2.value += t2.value, e7;
3206
3213
  }, []);
3207
3214
  }
3208
- function Ba(e6) {
3215
+ function Ua(e6) {
3209
3216
  return typeof e6 == `function`;
3210
3217
  }
3211
- function Va(e6, t2, n2, r2, i2, a2, o2) {
3212
- if (e6.length === 1 && ra(e6[0])) return [{ type: 0, value: e6[0].value }];
3218
+ function Y(e6, t2, n2, r2, i2, a2, o2) {
3219
+ if (e6.length === 1 && oa(e6[0])) return [{ type: 0, value: e6[0].value }];
3213
3220
  let s2 = [];
3214
3221
  for (let c2 of e6) {
3215
- if (ra(c2)) {
3222
+ if (oa(c2)) {
3216
3223
  s2.push({ type: 0, value: c2.value });
3217
3224
  continue;
3218
3225
  }
3219
- if (ua(c2)) {
3226
+ if (pa(c2)) {
3220
3227
  typeof a2 == `number` && s2.push({ type: 0, value: n2.getNumberFormat(t2).format(a2) });
3221
3228
  continue;
3222
3229
  }
3223
3230
  let { value: e7 } = c2;
3224
- if (!(i2 && e7 in i2)) throw new Ra(e7, o2);
3231
+ if (!(i2 && e7 in i2)) throw new Va(e7, o2);
3225
3232
  let l2 = i2[e7];
3226
- if (ia(c2)) (!l2 || typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint`) && (l2 = typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint` ? String(l2) : ``), s2.push({ type: typeof l2 == `string` ? 0 : 1, value: l2 });
3227
- else if (oa(c2)) {
3228
- let e8 = typeof c2.style == `string` ? r2.date[c2.style] : pa(c2.style) ? c2.style.parsedOptions : void 0;
3233
+ if (sa(c2)) (!l2 || typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint`) && (l2 = typeof l2 == `string` || typeof l2 == `number` || typeof l2 == `bigint` ? String(l2) : ``), s2.push({ type: typeof l2 == `string` ? 0 : 1, value: l2 });
3234
+ else if (la(c2)) {
3235
+ let e8 = typeof c2.style == `string` ? r2.date[c2.style] : ga(c2.style) ? c2.style.parsedOptions : void 0;
3229
3236
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3230
- } else if (sa(c2)) {
3231
- let e8 = typeof c2.style == `string` ? r2.time[c2.style] : pa(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3237
+ } else if (ua(c2)) {
3238
+ let e8 = typeof c2.style == `string` ? r2.time[c2.style] : ga(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3232
3239
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3233
- } else if (aa(c2)) {
3234
- let e8 = typeof c2.style == `string` ? r2.number[c2.style] : fa(c2.style) ? c2.style.parsedOptions : void 0;
3240
+ } else if (ca(c2)) {
3241
+ let e8 = typeof c2.style == `string` ? r2.number[c2.style] : ha(c2.style) ? c2.style.parsedOptions : void 0;
3235
3242
  if (e8 && e8.scale) {
3236
3243
  let t3 = e8.scale || 1;
3237
3244
  if (typeof l2 == `bigint`) {
@@ -3241,40 +3248,40 @@ function Va(e6, t2, n2, r2, i2, a2, o2) {
3241
3248
  }
3242
3249
  s2.push({ type: 0, value: n2.getNumberFormat(t2, e8).format(l2) });
3243
3250
  } else {
3244
- if (da(c2)) {
3251
+ if (ma(c2)) {
3245
3252
  let { children: e8, value: l3 } = c2, u2 = i2[l3];
3246
- if (!Ba(u2)) throw new La(l3, `function`, o2);
3247
- let d2 = u2(Va(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3253
+ if (!Ua(u2)) throw new Ba(l3, `function`, o2);
3254
+ let d2 = u2(Y(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3248
3255
  Array.isArray(d2) || (d2 = [d2]), s2.push(...d2.map((e9) => ({ type: typeof e9 == `string` ? 0 : 1, value: e9 })));
3249
3256
  }
3250
- if (ca(c2)) {
3257
+ if (da(c2)) {
3251
3258
  let e8 = l2, a3 = (Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0) || c2.options.other;
3252
- if (!a3) throw new Ia(c2.value, l2, Object.keys(c2.options), o2);
3253
- s2.push(...Va(a3.value, t2, n2, r2, i2));
3254
- } else if (la(c2)) {
3259
+ if (!a3) throw new za(c2.value, l2, Object.keys(c2.options), o2);
3260
+ s2.push(...Y(a3.value, t2, n2, r2, i2));
3261
+ } else if (fa(c2)) {
3255
3262
  let e8 = `=${l2}`, a3 = Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0;
3256
3263
  if (!a3) {
3257
- if (!Intl.PluralRules) throw new Fa(`Intl.PluralRules is not available in this environment.
3264
+ if (!Intl.PluralRules) throw new Ra(`Intl.PluralRules is not available in this environment.
3258
3265
  Try polyfilling it using "@formatjs/intl-pluralrules"
3259
3266
  `, `MISSING_INTL_API`, o2);
3260
3267
  let e9 = typeof l2 == `bigint` ? Number(l2) : l2, r3 = n2.getPluralRules(t2, { type: c2.pluralType }).select(e9 - (c2.offset || 0));
3261
3268
  a3 = (Object.prototype.hasOwnProperty.call(c2.options, r3) ? c2.options[r3] : void 0) || c2.options.other;
3262
3269
  }
3263
- if (!a3) throw new Ia(c2.value, l2, Object.keys(c2.options), o2);
3270
+ if (!a3) throw new za(c2.value, l2, Object.keys(c2.options), o2);
3264
3271
  let u2 = typeof l2 == `bigint` ? Number(l2) : l2;
3265
- s2.push(...Va(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3272
+ s2.push(...Y(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3266
3273
  }
3267
3274
  }
3268
3275
  }
3269
- return za(s2);
3276
+ return Ha(s2);
3270
3277
  }
3271
- function Ha(e6, t2) {
3278
+ function Wa(e6, t2) {
3272
3279
  return t2 ? { ...e6, ...t2, ...Object.keys(e6).reduce((n2, r2) => (n2[r2] = { ...e6[r2], ...t2[r2] }, n2), {}) } : e6;
3273
3280
  }
3274
- function Ua(e6, t2) {
3275
- return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Ha(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3281
+ function Ga(e6, t2) {
3282
+ return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Wa(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3276
3283
  }
3277
- function Wa(e6) {
3284
+ function Ka(e6) {
3278
3285
  return { create() {
3279
3286
  return { get(t2) {
3280
3287
  return e6[t2];
@@ -3283,23 +3290,23 @@ function Wa(e6) {
3283
3290
  } };
3284
3291
  } };
3285
3292
  }
3286
- function Ga(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3287
- return { getNumberFormat: Ai((...e7) => new Intl.NumberFormat(...e7), { cache: Wa(e6.number), strategy: Vi.variadic }), getDateTimeFormat: Ai((...e7) => new Intl.DateTimeFormat(...e7), { cache: Wa(e6.dateTime), strategy: Vi.variadic }), getPluralRules: Ai((...e7) => new Intl.PluralRules(...e7), { cache: Wa(e6.pluralRules), strategy: Vi.variadic }) };
3293
+ function qa(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3294
+ return { getNumberFormat: Ni((...e7) => new Intl.NumberFormat(...e7), { cache: Ka(e6.number), strategy: Wi.variadic }), getDateTimeFormat: Ni((...e7) => new Intl.DateTimeFormat(...e7), { cache: Ka(e6.dateTime), strategy: Wi.variadic }), getPluralRules: Ni((...e7) => new Intl.PluralRules(...e7), { cache: Ka(e6.pluralRules), strategy: Wi.variadic }) };
3288
3295
  }
3289
- var Ka = class e5 {
3296
+ var Ja = class e5 {
3290
3297
  constructor(t2, n2 = e5.defaultLocale, r2, i2) {
3291
3298
  if (this.formatterCache = { number: {}, dateTime: {}, pluralRules: {} }, this.format = (e6) => {
3292
3299
  let t3 = this.formatToParts(e6);
3293
3300
  if (t3.length === 1) return t3[0].value;
3294
3301
  let n3 = t3.reduce((e7, t4) => (!e7.length || t4.type !== 0 || typeof e7[e7.length - 1] != `string` ? e7.push(t4.value) : e7[e7.length - 1] += t4.value, e7), []);
3295
3302
  return n3.length <= 1 ? n3[0] || `` : n3;
3296
- }, this.formatToParts = (e6) => Va(this.ast, this.locales, this.formatters, this.formats, e6, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n2, this.resolvedLocale = e5.resolveLocale(n2), typeof t2 == `string`) {
3303
+ }, this.formatToParts = (e6) => Y(this.ast, this.locales, this.formatters, this.formats, e6, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n2, this.resolvedLocale = e5.resolveLocale(n2), typeof t2 == `string`) {
3297
3304
  if (this.message = t2, !e5.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3298
3305
  let { ...n3 } = i2 || {};
3299
3306
  this.ast = e5.__parse(t2, { ...n3, locale: this.resolvedLocale });
3300
3307
  } else this.ast = t2;
3301
3308
  if (!Array.isArray(this.ast)) throw TypeError(`A message must be provided as a String or AST.`);
3302
- this.formats = Ua(e5.formats, r2), this.formatters = i2 && i2.formatters || Ga(this.formatterCache);
3309
+ this.formats = Ga(e5.formats, r2), this.formatters = i2 && i2.formatters || qa(this.formatterCache);
3303
3310
  }
3304
3311
  static {
3305
3312
  this.memoizedDefaultLocale = null;
@@ -3315,14 +3322,14 @@ var Ka = class e5 {
3315
3322
  };
3316
3323
  }
3317
3324
  static {
3318
- this.__parse = Pa;
3325
+ this.__parse = La;
3319
3326
  }
3320
3327
  static {
3321
3328
  this.formats = { number: { integer: { maximumFractionDigits: 0 }, currency: { style: `currency` }, percent: { style: `percent` } }, date: { short: { month: `numeric`, day: `numeric`, year: `2-digit` }, medium: { month: `short`, day: `numeric`, year: `numeric` }, long: { month: `long`, day: `numeric`, year: `numeric` }, full: { weekday: `long`, month: `long`, day: `numeric`, year: `numeric` } }, time: { short: { hour: `numeric`, minute: `numeric` }, medium: { hour: `numeric`, minute: `numeric`, second: `numeric` }, long: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` }, full: { hour: `numeric`, minute: `numeric`, second: `numeric`, timeZoneName: `short` } } };
3322
3329
  }
3323
3330
  };
3324
- var qa = [`__proto__`, `constructor`, `prototype`];
3325
- function Ja(e6, t2, n2) {
3331
+ var Ya = [`__proto__`, `constructor`, `prototype`];
3332
+ function Xa(e6, t2, n2) {
3326
3333
  function r2(e7) {
3327
3334
  return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
3328
3335
  }
@@ -3332,49 +3339,49 @@ function Ja(e6, t2, n2) {
3332
3339
  for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
3333
3340
  if (i2()) return {};
3334
3341
  var o2 = r2(a2.shift());
3335
- if (qa.indexOf(o2) > -1) return {};
3342
+ if (Ya.indexOf(o2) > -1) return {};
3336
3343
  !e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
3337
3344
  }
3338
3345
  if (i2()) return {};
3339
3346
  var s2 = r2(a2.shift());
3340
- return qa.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
3347
+ return Ya.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
3341
3348
  }
3342
- function Ya(e6, t2, n2) {
3343
- var r2 = Ja(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
3349
+ function Za(e6, t2, n2) {
3350
+ var r2 = Xa(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
3344
3351
  i2 !== void 0 && (i2[a2] = n2);
3345
3352
  }
3346
- function Xa(e6, t2) {
3347
- var n2 = Ja(e6, t2), r2 = n2.obj, i2 = n2.k;
3353
+ function Qa(e6, t2) {
3354
+ var n2 = Xa(e6, t2), r2 = n2.obj, i2 = n2.k;
3348
3355
  if (r2) return r2[i2];
3349
3356
  }
3350
- function Za(e6) {
3357
+ function $a(e6) {
3351
3358
  return [...arguments].slice(1).forEach(function(t2) {
3352
3359
  if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
3353
3360
  var i2 = r2[n2];
3354
- qa.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
3361
+ Ya.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
3355
3362
  }
3356
3363
  }), e6;
3357
3364
  }
3358
- function Qa(e6, t2) {
3359
- return ro(e6) || no(e6, t2) || eo(e6, t2) || $a();
3365
+ function eo(e6, t2) {
3366
+ return ao(e6) || io(e6, t2) || no(e6, t2) || to();
3360
3367
  }
3361
- function $a() {
3368
+ function to() {
3362
3369
  throw TypeError(`Invalid attempt to destructure non-iterable instance.
3363
3370
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3364
3371
  }
3365
- function eo(e6, t2) {
3372
+ function no(e6, t2) {
3366
3373
  if (e6) {
3367
- if (typeof e6 == `string`) return to(e6, t2);
3374
+ if (typeof e6 == `string`) return ro(e6, t2);
3368
3375
  var n2 = {}.toString.call(e6).slice(8, -1);
3369
- return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? to(e6, t2) : void 0;
3376
+ return n2 === `Object` && e6.constructor && (n2 = e6.constructor.name), n2 === `Map` || n2 === `Set` ? Array.from(e6) : n2 === `Arguments` || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2) ? ro(e6, t2) : void 0;
3370
3377
  }
3371
3378
  }
3372
- function to(e6, t2) {
3379
+ function ro(e6, t2) {
3373
3380
  (t2 == null || t2 > e6.length) && (t2 = e6.length);
3374
3381
  for (var n2 = 0, r2 = Array(t2); n2 < t2; n2++) r2[n2] = e6[n2];
3375
3382
  return r2;
3376
3383
  }
3377
- function no(e6, t2) {
3384
+ function io(e6, t2) {
3378
3385
  var n2 = e6 == null ? null : typeof Symbol < `u` && e6[Symbol.iterator] || e6[`@@iterator`];
3379
3386
  if (n2 != null) {
3380
3387
  var r2, i2, a2, o2, s2 = [], c2 = true, l2 = false;
@@ -3395,10 +3402,10 @@ function no(e6, t2) {
3395
3402
  return s2;
3396
3403
  }
3397
3404
  }
3398
- function ro(e6) {
3405
+ function ao(e6) {
3399
3406
  if (Array.isArray(e6)) return e6;
3400
3407
  }
3401
- function io(e6, t2) {
3408
+ function oo(e6, t2) {
3402
3409
  var n2 = Object.keys(e6);
3403
3410
  if (Object.getOwnPropertySymbols) {
3404
3411
  var r2 = Object.getOwnPropertySymbols(e6);
@@ -3408,37 +3415,37 @@ function io(e6, t2) {
3408
3415
  }
3409
3416
  return n2;
3410
3417
  }
3411
- function ao(e6) {
3418
+ function X(e6) {
3412
3419
  for (var t2 = 1; t2 < arguments.length; t2++) {
3413
3420
  var n2 = arguments[t2] == null ? {} : arguments[t2];
3414
- t2 % 2 ? io(Object(n2), true).forEach(function(t3) {
3415
- oo(e6, t3, n2[t3]);
3416
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : io(Object(n2)).forEach(function(t3) {
3421
+ t2 % 2 ? oo(Object(n2), true).forEach(function(t3) {
3422
+ so(e6, t3, n2[t3]);
3423
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : oo(Object(n2)).forEach(function(t3) {
3417
3424
  Object.defineProperty(e6, t3, Object.getOwnPropertyDescriptor(n2, t3));
3418
3425
  });
3419
3426
  }
3420
3427
  return e6;
3421
3428
  }
3422
- function oo(e6, t2, n2) {
3423
- return (t2 = uo(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3429
+ function so(e6, t2, n2) {
3430
+ return (t2 = fo(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3424
3431
  }
3425
- function so(e6, t2) {
3432
+ function co(e6, t2) {
3426
3433
  if (!(e6 instanceof t2)) throw TypeError(`Cannot call a class as a function`);
3427
3434
  }
3428
- function co(e6, t2) {
3435
+ function lo(e6, t2) {
3429
3436
  for (var n2 = 0; n2 < t2.length; n2++) {
3430
3437
  var r2 = t2[n2];
3431
- r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, uo(r2.key), r2);
3438
+ r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, fo(r2.key), r2);
3432
3439
  }
3433
3440
  }
3434
- function lo(e6, t2, n2) {
3435
- return t2 && co(e6.prototype, t2), n2 && co(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3441
+ function uo(e6, t2, n2) {
3442
+ return t2 && lo(e6.prototype, t2), n2 && lo(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3436
3443
  }
3437
- function uo(e6) {
3438
- var t2 = fo(e6, `string`);
3444
+ function fo(e6) {
3445
+ var t2 = po(e6, `string`);
3439
3446
  return Z(t2) == `symbol` ? t2 : t2 + ``;
3440
3447
  }
3441
- function fo(e6, t2) {
3448
+ function po(e6, t2) {
3442
3449
  if (Z(e6) != `object` || !e6) return e6;
3443
3450
  var n2 = e6[Symbol.toPrimitive];
3444
3451
  if (n2 !== void 0) {
@@ -3456,53 +3463,53 @@ function Z(e6) {
3456
3463
  return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3457
3464
  }, Z(e6);
3458
3465
  }
3459
- var po = `https://www.i18next.com/how-to/using-icu-or-mf2`;
3460
- var mo = [`zero`, `one`, `two`, `few`, `many`, `other`];
3461
- function ho() {
3466
+ var mo = `https://www.i18next.com/how-to/using-icu-or-mf2`;
3467
+ var ho = [`zero`, `one`, `two`, `few`, `many`, `other`];
3468
+ function go() {
3462
3469
  return { memoize: true, memoizeFallback: false, bindI18n: ``, bindI18nStore: ``, parseErrorHandler: function(e6, t2, n2, r2) {
3463
3470
  return n2;
3464
3471
  }, parseLngForICU: function(e6) {
3465
3472
  return e6;
3466
3473
  }, escapeVariables: false };
3467
3474
  }
3468
- function go(e6, t2, n2, r2) {
3475
+ function _o(e6, t2, n2, r2) {
3469
3476
  return n2 && t2 && Z(t2) === `object` ? `${r2} resolved to an object or array, but i18next-icu does not support returnObjects or joinArrays and returns the raw value unformatted.` : n2 && typeof t2 == `string` && t2.indexOf(`{{`) > -1 ? `${r2} could not be parsed (${e6.message}). It contains "{{": i18next interpolation like {{name}} does not work with ICU, use {name}.` : `${r2} could not be ${n2 ? `parsed` : `formatted`}: ${e6.message}`;
3470
3477
  }
3471
- var _o = function() {
3478
+ var vo = function() {
3472
3479
  function e6(t2) {
3473
- so(this, e6), this.type = `i18nFormat`, this.mem = {}, this.warned = /* @__PURE__ */ new Set(), this.init(null, t2);
3480
+ co(this, e6), this.type = `i18nFormat`, this.mem = {}, this.warned = /* @__PURE__ */ new Set(), this.init(null, t2);
3474
3481
  }
3475
- return lo(e6, [{ key: `init`, value: function(e7, t2) {
3482
+ return uo(e6, [{ key: `init`, value: function(e7, t2) {
3476
3483
  var n2 = this, r2 = e7 && e7.options && e7.options.i18nFormat || {};
3477
- if (this.options = Za(r2, t2, this.options || {}, ho()), this.formats = this.options.formats, e7) {
3484
+ if (this.options = $a(r2, t2, this.options || {}, go()), this.formats = this.options.formats, e7) {
3478
3485
  var i2 = this.options, a2 = i2.bindI18n, o2 = i2.bindI18nStore, s2 = i2.memoize;
3479
- e7.IntlMessageFormat = Ka, e7.ICU = this, this.i18next = e7, this.debug = !!(e7.options && e7.options.debug), this.debug && e7.options.interpolation && e7.options.interpolation.escapeValue !== false && !this.options.escapeVariables && this.warn(`interpolation.escapeValue is not applied, values are inserted without HTML escaping. Set the i18next-icu option escapeVariables: true to escape them, or interpolation.escapeValue: false if your output is escaped elsewhere (e.g. by React).`), s2 && (a2 && e7.on(a2, function() {
3486
+ e7.IntlMessageFormat = Ja, e7.ICU = this, this.i18next = e7, this.debug = !!(e7.options && e7.options.debug), this.debug && e7.options.interpolation && e7.options.interpolation.escapeValue !== false && !this.options.escapeVariables && this.warn(`interpolation.escapeValue is not applied, values are inserted without HTML escaping. Set the i18next-icu option escapeVariables: true to escape them, or interpolation.escapeValue: false if your output is escaped elsewhere (e.g. by React).`), s2 && (a2 && e7.on(a2, function() {
3480
3487
  return n2.clearCache();
3481
3488
  }), o2 && e7.store.on(o2, function() {
3482
3489
  return n2.clearCache();
3483
3490
  }));
3484
3491
  }
3485
3492
  } }, { key: `addUserDefinedFormats`, value: function(e7) {
3486
- this.formats = this.formats ? ao(ao({}, this.formats), e7) : e7, this.clearCache();
3493
+ this.formats = this.formats ? X(X({}, this.formats), e7) : e7, this.clearCache();
3487
3494
  } }, { key: `parse`, value: function(e7, t2, n2, r2, i2, a2) {
3488
3495
  var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && [n2, r2, i2], c2;
3489
3496
  if (this.options.memoize) {
3490
- var l2 = Xa(this.mem, s2);
3497
+ var l2 = Qa(this.mem, s2);
3491
3498
  l2 && l2.res === e7 && (c2 = l2.fc);
3492
3499
  }
3493
3500
  try {
3494
- c2 || (this.debug && typeof e7 == `string` && e7.indexOf(`$t(`) > -1 && this.firstTime(`nesting ${n2} ${r2} ${i2}`) && this.warn(`key "${i2}" (${n2}/${r2}) contains "$t(", but i18next-icu does not support nesting, the text is output as is.`), c2 = new Ka(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Ya(this.mem, s2, { res: e7, fc: c2 }));
3495
- var u2 = t2 && t2.replace && Z(t2.replace) === `object` ? ao(ao({}, t2), t2.replace) : t2;
3501
+ c2 || (this.debug && typeof e7 == `string` && e7.indexOf(`$t(`) > -1 && this.firstTime(`nesting ${n2} ${r2} ${i2}`) && this.warn(`key "${i2}" (${n2}/${r2}) contains "$t(", but i18next-icu does not support nesting, the text is output as is.`), c2 = new Ja(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Za(this.mem, s2, { res: e7, fc: c2 }));
3502
+ var u2 = t2 && t2.replace && Z(t2.replace) === `object` ? X(X({}, t2), t2.replace) : t2;
3496
3503
  return c2.format(this.escapeVariableValues(u2));
3497
3504
  } catch (a3) {
3498
- return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(go(a3, e7, !c2, `key "${i2}" (${n2}/${r2})`)), this.options.parseErrorHandler(a3, i2, e7, t2);
3505
+ return this.debug && this.firstTime(`error ${n2} ${r2} ${i2}`) && this.warn(_o(a3, e7, !c2, `key "${i2}" (${n2}/${r2})`)), this.options.parseErrorHandler(a3, i2, e7, t2);
3499
3506
  }
3500
3507
  } }, { key: `addLookupKeys`, value: function(e7, t2, n2, r2, i2) {
3501
3508
  return this.debug && i2 && this.checkSuffixKeys(t2, n2, r2, i2), e7;
3502
3509
  } }, { key: `checkSuffixKeys`, value: function(e7, t2, n2, r2) {
3503
3510
  var i2 = r2.count, a2 = r2.context, o2 = this.i18next.options, s2 = o2.pluralSeparator, c2 = s2 === void 0 ? `_` : s2, l2 = o2.contextSeparator, u2 = l2 === void 0 ? `_` : l2, d2 = this.i18next.services.resourceStore, f2 = `key "${e7}" (${t2}/${n2})`;
3504
3511
  if (i2 !== void 0 && this.firstTime(`plural ${t2} ${n2} ${e7}`)) {
3505
- var p2 = mo.concat(mo.map(function(e8) {
3512
+ var p2 = ho.concat(ho.map(function(e8) {
3506
3513
  return `ordinal${c2}${e8}`;
3507
3514
  })).map(function(t3) {
3508
3515
  return `${e7}${c2}${t3}`;
@@ -3516,33 +3523,33 @@ var _o = function() {
3516
3523
  } }, { key: `firstTime`, value: function(e7) {
3517
3524
  return !this.warned.has(e7) && (this.warned.add(e7), true);
3518
3525
  } }, { key: `warn`, value: function(e7) {
3519
- this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${po}`);
3526
+ this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${mo}`);
3520
3527
  } }, { key: `clearCache`, value: function() {
3521
3528
  this.mem = {};
3522
3529
  } }, { key: `escapeVariableValues`, value: function(e7) {
3523
3530
  if (!this.options.escapeVariables || !e7 || Z(e7) !== `object`) return e7;
3524
3531
  for (var t2 = {}, n2 = 0, r2 = Object.entries(e7); n2 < r2.length; n2++) {
3525
- var i2 = Qa(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3532
+ var i2 = eo(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3526
3533
  t2[a2] = typeof o2 == `string` ? o2.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`) : o2;
3527
3534
  }
3528
3535
  return t2;
3529
3536
  } }]), e6;
3530
3537
  }();
3531
- _o.type = `i18nFormat`;
3532
- function vo({ icuOptions: e6 = {}, ...t2 }) {
3538
+ vo.type = `i18nFormat`;
3539
+ function yo({ icuOptions: e6 = {}, ...t2 }) {
3533
3540
  let { parseErrorHandler: n2 = void 0 } = t2;
3534
- return ki(t2, { icu: new _o({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
3541
+ return Mi(t2, { icu: new vo({ parseErrorHandler: n2, bindI18n: t2.bindI18n, ...e6 }) });
3535
3542
  }
3536
- var yo = (e6, t2, n2, r2) => {
3543
+ var bo = (e6, t2, n2, r2) => {
3537
3544
  let i2 = [n2, { code: t2, ...r2 || {} }];
3538
3545
  if (e6?.services?.logger?.forward) return e6.services.logger.forward(i2, `warn`, `react-i18next::`, true);
3539
3546
  Q(i2[0]) && (i2[0] = `react-i18next:: ${i2[0]}`), e6?.services?.logger?.warn ? e6.services.logger.warn(...i2) : console?.warn && console.warn(...i2);
3540
3547
  };
3541
- var bo = {};
3542
- var xo = (e6, t2, n2, r2) => {
3543
- Q(n2) && bo[n2] || (Q(n2) && (bo[n2] = /* @__PURE__ */ new Date()), yo(e6, t2, n2, r2));
3548
+ var xo = {};
3549
+ var So = (e6, t2, n2, r2) => {
3550
+ Q(n2) && xo[n2] || (Q(n2) && (xo[n2] = /* @__PURE__ */ new Date()), bo(e6, t2, n2, r2));
3544
3551
  };
3545
- var So = (e6, t2) => () => {
3552
+ var Co = (e6, t2) => () => {
3546
3553
  if (e6.isInitialized) t2();
3547
3554
  else {
3548
3555
  let n2 = () => {
@@ -3553,29 +3560,29 @@ var So = (e6, t2) => () => {
3553
3560
  e6.on(`initialized`, n2);
3554
3561
  }
3555
3562
  };
3556
- var Co = (e6, t2, n2) => {
3557
- e6.loadNamespaces(t2, So(e6, n2));
3563
+ var wo = (e6, t2, n2) => {
3564
+ e6.loadNamespaces(t2, Co(e6, n2));
3558
3565
  };
3559
- var wo = (e6, t2, n2, r2) => {
3560
- if (Q(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return Co(e6, n2, r2);
3566
+ var To = (e6, t2, n2, r2) => {
3567
+ if (Q(n2) && (n2 = [n2]), e6.options.preload && e6.options.preload.indexOf(t2) > -1) return wo(e6, n2, r2);
3561
3568
  n2.forEach((t3) => {
3562
3569
  e6.options.ns.indexOf(t3) < 0 && e6.options.ns.push(t3);
3563
- }), e6.loadLanguages(t2, So(e6, r2));
3570
+ }), e6.loadLanguages(t2, Co(e6, r2));
3564
3571
  };
3565
- var To = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (xo(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3572
+ var Eo = (e6, t2, n2 = {}) => !t2.languages || !t2.languages.length ? (So(t2, `NO_LANGUAGES`, `i18n.languages were undefined or empty`, { languages: t2.languages }), true) : t2.hasLoadedNamespace(e6, { lng: n2.lng, precheck: (t3, r2) => {
3566
3573
  if (n2.bindI18n && n2.bindI18n.indexOf(`languageChanging`) > -1 && t3.services.backendConnector.backend && t3.isLanguageChangingTo && !r2(t3.isLanguageChangingTo, e6)) return false;
3567
3574
  } });
3568
3575
  var Q = (e6) => typeof e6 == `string`;
3569
- var Eo = (e6) => typeof e6 == `object` && !!e6;
3570
- var Do = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3571
- var Oo = { "&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;": `/` };
3572
- var ko = (e6) => Oo[e6];
3573
- var Ao = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(Do, ko) };
3574
- var jo = () => Ao;
3575
- var Mo;
3576
- var No = () => Mo;
3577
- var Po = (0, import_react.createContext)();
3578
- var Fo = class {
3576
+ var Do = (e6) => typeof e6 == `object` && !!e6;
3577
+ var Oo = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g;
3578
+ var ko = { "&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;": `/` };
3579
+ var Ao = (e6) => ko[e6];
3580
+ var jo = { bindI18n: `languageChanged`, bindI18nStore: ``, transEmptyNodeValue: ``, transSupportBasicHtmlNodes: true, transWrapTextNodes: ``, transKeepBasicHtmlNodesFor: [`br`, `strong`, `i`, `p`], useSuspense: true, unescape: (e6) => e6.replace(Oo, Ao) };
3581
+ var Mo = () => jo;
3582
+ var No;
3583
+ var Po = () => No;
3584
+ var Fo = (0, import_react.createContext)();
3585
+ var Io = class {
3579
3586
  constructor() {
3580
3587
  this.usedNamespaces = {};
3581
3588
  }
@@ -3588,32 +3595,32 @@ var Fo = class {
3588
3595
  return Object.keys(this.usedNamespaces);
3589
3596
  }
3590
3597
  };
3591
- var Io = (e6, t2) => {
3598
+ var Lo = (e6, t2) => {
3592
3599
  let n2 = (0, import_react.useRef)();
3593
3600
  return (0, import_react.useEffect)(() => {
3594
3601
  n2.current = t2 ? n2.current : e6;
3595
3602
  }, [e6, t2]), n2.current;
3596
3603
  };
3597
- var Lo = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
3598
- var Ro = (e6, t2, n2, r2) => (0, import_react.useCallback)(Lo(e6, t2, n2, r2), [e6, t2, n2, r2]);
3599
- var zo = (e6, t2 = {}) => {
3600
- let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = (0, import_react.useContext)(Po) || {}, s2 = n2 || r2 || No();
3601
- if (s2 && !s2.reportNamespaces && (s2.reportNamespaces = new Fo()), !s2) {
3602
- xo(s2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3603
- let e7 = (e8, t4) => Q(t4) ? t4 : Eo(t4) && Q(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3604
+ var Ro = (e6, t2, n2, r2) => e6.getFixedT(t2, n2, r2);
3605
+ var zo = (e6, t2, n2, r2) => (0, import_react.useCallback)(Ro(e6, t2, n2, r2), [e6, t2, n2, r2]);
3606
+ var Bo = (e6, t2 = {}) => {
3607
+ let { i18n: n2 } = t2, { i18n: r2, defaultNS: i2 } = (0, import_react.useContext)(Fo) || {}, s2 = n2 || r2 || Po();
3608
+ if (s2 && !s2.reportNamespaces && (s2.reportNamespaces = new Io()), !s2) {
3609
+ So(s2, `NO_I18NEXT_INSTANCE`, `useTranslation: You will need to pass in an i18next instance by using initReactI18next`);
3610
+ let e7 = (e8, t4) => Q(t4) ? t4 : Do(t4) && Q(t4.defaultValue) ? t4.defaultValue : Array.isArray(e8) ? e8[e8.length - 1] : e8, t3 = [e7, {}, false];
3604
3611
  return t3.t = e7, t3.i18n = {}, t3.ready = false, t3;
3605
3612
  }
3606
- s2.options.react?.wait && xo(s2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3607
- let u2 = { ...jo(), ...s2.options.react, ...t2 }, { useSuspense: d2, keyPrefix: f2 } = u2, p2 = e6 || i2 || s2.options?.defaultNS;
3613
+ s2.options.react?.wait && So(s2, `DEPRECATED_OPTION`, `useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);
3614
+ let u2 = { ...Mo(), ...s2.options.react, ...t2 }, { useSuspense: d2, keyPrefix: f2 } = u2, p2 = e6 || i2 || s2.options?.defaultNS;
3608
3615
  p2 = Q(p2) ? [p2] : p2 || [`translation`], s2.reportNamespaces.addUsedNamespaces?.(p2);
3609
- let m2 = (s2.isInitialized || s2.initializedStoreOnce) && p2.every((e7) => To(e7, s2, u2)), h2 = Ro(s2, t2.lng || null, u2.nsMode === `fallback` ? p2 : p2[0], f2), g2 = () => h2, _2 = () => Lo(s2, t2.lng || null, u2.nsMode === `fallback` ? p2 : p2[0], f2), [v2, y2] = (0, import_react.useState)(g2), b2 = p2.join();
3616
+ let m2 = (s2.isInitialized || s2.initializedStoreOnce) && p2.every((e7) => Eo(e7, s2, u2)), h2 = zo(s2, t2.lng || null, u2.nsMode === `fallback` ? p2 : p2[0], f2), g2 = () => h2, _2 = () => Ro(s2, t2.lng || null, u2.nsMode === `fallback` ? p2 : p2[0], f2), [v2, y2] = (0, import_react.useState)(g2), b2 = p2.join();
3610
3617
  t2.lng && (b2 = `${t2.lng}${b2}`);
3611
- let x2 = Io(b2), S2 = (0, import_react.useRef)(true);
3618
+ let x2 = Lo(b2), S2 = (0, import_react.useRef)(true);
3612
3619
  (0, import_react.useEffect)(() => {
3613
3620
  let { bindI18n: e7, bindI18nStore: n3 } = u2;
3614
- S2.current = true, !m2 && !d2 && (t2.lng ? wo(s2, t2.lng, p2, () => {
3621
+ S2.current = true, !m2 && !d2 && (t2.lng ? To(s2, t2.lng, p2, () => {
3615
3622
  S2.current && y2(_2);
3616
- }) : Co(s2, p2, () => {
3623
+ }) : wo(s2, p2, () => {
3617
3624
  S2.current && y2(_2);
3618
3625
  })), m2 && x2 && x2 !== b2 && S2.current && y2(_2);
3619
3626
  let r3 = () => {
@@ -3628,18 +3635,18 @@ var zo = (e6, t2 = {}) => {
3628
3635
  let C2 = [v2, s2, m2];
3629
3636
  if (C2.t = v2, C2.i18n = s2, C2.ready = m2, m2 || !m2 && !d2) return C2;
3630
3637
  throw new Promise((e7) => {
3631
- t2.lng ? wo(s2, t2.lng, p2, () => e7()) : Co(s2, p2, () => e7());
3638
+ t2.lng ? To(s2, t2.lng, p2, () => e7()) : wo(s2, p2, () => e7());
3632
3639
  });
3633
3640
  };
3634
- function Bo({ i18n: e6, defaultNS: t2, children: r2 }) {
3641
+ function Vo({ i18n: e6, defaultNS: t2, children: r2 }) {
3635
3642
  let i2 = (0, import_react.useMemo)(() => ({ i18n: e6, defaultNS: t2 }), [e6, t2]);
3636
- return (0, import_react.createElement)(Po.Provider, { value: i2 }, r2);
3643
+ return (0, import_react.createElement)(Fo.Provider, { value: i2 }, r2);
3637
3644
  }
3638
- var Vo = I(`@wix/site-service-renderer-configuration`);
3639
- var Ho = () => {
3645
+ var Ho = I(`@wix/site-service-renderer-configuration`);
3646
+ var Uo = () => {
3640
3647
  let e6, t2;
3641
3648
  try {
3642
- e6 = (0, import_services_manager_react.useService)(Vo).languageCode;
3649
+ e6 = (0, import_services_manager_react.useService)(Ho).languageCode;
3643
3650
  } catch {
3644
3651
  }
3645
3652
  try {
@@ -3648,73 +3655,73 @@ var Ho = () => {
3648
3655
  }
3649
3656
  return e6 || t2;
3650
3657
  };
3651
- var Uo = `wix-warmup-data`;
3652
- var Wo = null;
3653
- function Go(e6) {
3658
+ var Wo = `wix-warmup-data`;
3659
+ var Go = null;
3660
+ function Ko(e6) {
3654
3661
  if (typeof document < `u`) try {
3655
- let t2 = document.getElementById(Uo)?.textContent;
3656
- return t2 ? (Wo?.text !== t2 && (Wo = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Wo.data[e6] ?? void 0) : void 0;
3662
+ let t2 = document.getElementById(Wo)?.textContent;
3663
+ return t2 ? (Go?.text !== t2 && (Go = { text: t2, data: JSON.parse(t2).builderComponentsWarmupData ?? {} }), Go.data[e6] ?? void 0) : void 0;
3657
3664
  } catch {
3658
3665
  return;
3659
3666
  }
3660
3667
  }
3661
- var Ko = `blog-builder:i18n`;
3662
- var qo = () => Go(Ko);
3663
- var Jo = /* @__PURE__ */ new Map();
3664
- function Yo(e6, t2) {
3665
- let n2 = Jo.get(e6);
3668
+ var qo = `blog-builder:i18n`;
3669
+ var Jo = () => Ko(qo);
3670
+ var Yo = /* @__PURE__ */ new Map();
3671
+ function Xo(e6, t2) {
3672
+ let n2 = Yo.get(e6);
3666
3673
  if (n2) return n2;
3667
- let r2 = qo(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = vo({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
3668
- return Jo.set(e6, a2), a2;
3674
+ let r2 = Jo(), i2 = r2?.locale === e6 ? r2.messages : void 0, a2 = yo({ locale: e6, useSuspense: true, ...i2 ? { messages: i2 } : { asyncMessagesLoader: t2 } });
3675
+ return Yo.set(e6, a2), a2;
3669
3676
  }
3670
- var Xo = (e6, t2, n2) => {
3677
+ var Zo = (e6, t2, n2) => {
3671
3678
  let r2 = t2.lastIndexOf(`?`), i2 = e6[r2 === -1 || r2 < t2.lastIndexOf(`/`) ? t2 : t2.slice(0, r2)];
3672
3679
  return i2 ? typeof i2 == `function` ? i2() : Promise.resolve(i2) : new Promise((e7, r3) => {
3673
3680
  (typeof queueMicrotask == `function` ? queueMicrotask : setTimeout)(r3.bind(null, Error(`Unknown variable dynamic import: ` + t2 + (t2.split(`/`).length === n2 ? `` : `. Note that variables only represent file names one level deep.`))));
3674
3681
  });
3675
3682
  };
3676
- var Zo = (e6) => e6.split(`-`)[0] ?? e6;
3677
- Hr({ isDev: false, loadMessages: (e6) => Xo(Object.assign({ "../assets/locale/messages_en.dev.json": () => pn(() => Promise.resolve().then(() => $o), void 0, import_meta.url), "../assets/locale/messages_en.json": () => pn(() => Promise.resolve().then(() => ts), void 0, import_meta.url) }), `../assets/locale/messages_${Zo(e6)}.json`, 4), loadDevMessages: (e6) => Xo(Object.assign({ "../assets/locale/messages_en.dev.json": () => pn(() => Promise.resolve().then(() => $o), void 0, import_meta.url) }), `../assets/locale/messages_${Zo(e6)}.dev.json`, 4) });
3678
- function Qo(e6) {
3679
- let t2 = Ho(), n2 = qo()?.locale ?? t2 ?? `en`;
3680
- return { i18n: Yo(n2, e6), locale: n2 };
3681
- }
3682
- var $o = m({ default: () => es });
3683
- var es = { "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "post-list.empty-state.title": `No posts yet`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "related-posts.empty-state.title": `No related posts yet`, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "post-actions.like": `Like post`, "post-actions.unlike": `Unlike post`, "post-actions.share": `Share post`, "post-actions.share-dialog": `Share post`, "post-actions.link-copied": `Link copied`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.link-label": `Post link`, "post-actions.copy-link": `Copy link`, "post-actions.close": `Close`, "post-counters.loading-likes": `Loading likes`, "cover-media.play": `Play video`, "cover-media.placeholder-alt": `Post cover image`, "post-comments.loading": `Loading comments\u2026`, "post-comments.no-post": `No post resolved for this URL yet.`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, "canvas.post-title": `Post Title`, "canvas.author-name": `Author Name`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "canvas.category": `Category`, "canvas.category-numbered": `Category {number}`, "canvas.tag-numbered": `Tag {number}`, "canvas.author-photo-alt": `Author photo`, "category-header.all-posts": `All Posts` };
3684
- var ts = m({ default: () => rs, title: () => ns });
3685
- var ns = `My App`;
3686
- var rs = { "canvas.category": `Category`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "canvas.tag-numbered": `Tag {number}`, "cover-media.play": `Play video`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-counters.loading-likes": `Loading likes`, "post-comments.loading": `Loading comments\u2026`, "post-actions.like": `Like post`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "related-posts.empty-state.title": `No related posts yet`, "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post-actions.link-copied": `Link copied`, "category-header.all-posts": `All Posts`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.copy-link": `Copy link`, "cover-media.placeholder-alt": `Post cover image`, "post-actions.link-label": `Post link`, "post-list.empty-state.title": `No posts yet`, "post-actions.share-dialog": `Share post`, "canvas.post-title": `Post Title`, "post-actions.unlike": `Unlike post`, "post-comments.no-post": `No post resolved for this URL yet.`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "canvas.category-numbered": `Category {number}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post-actions.share": `Share post`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post-actions.close": `Close`, "canvas.category-description": `Add a short description of this category so readers know what they will find here. It shows under the category title, above the posts.`, "canvas.author-photo-alt": `Author photo`, "canvas.author-name": `Author Name`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, title: ns, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.` };
3687
- var is = Object.assign({ "../assets/locale/messages_en.dev.json": $o, "../assets/locale/messages_en.json": ts });
3688
- var as = (e6, t2) => {
3689
- let n2 = is[`../assets/locale/messages_${Zo(e6)}${t2}.json`];
3683
+ var Qo = (e6) => e6.split(`-`)[0] ?? e6;
3684
+ Ur({ isDev: false, loadMessages: (e6) => Zo(Object.assign({ "../assets/locale/messages_en.dev.json": () => pn(() => Promise.resolve().then(() => es), void 0, import_meta.url), "../assets/locale/messages_en.json": () => pn(() => Promise.resolve().then(() => ns), void 0, import_meta.url) }), `../assets/locale/messages_${Qo(e6)}.json`, 4), loadDevMessages: (e6) => Zo(Object.assign({ "../assets/locale/messages_en.dev.json": () => pn(() => Promise.resolve().then(() => es), void 0, import_meta.url) }), `../assets/locale/messages_${Qo(e6)}.dev.json`, 4) });
3685
+ function $o(e6) {
3686
+ let t2 = Uo(), n2 = Jo()?.locale ?? t2 ?? `en`;
3687
+ return { i18n: Xo(n2, e6), locale: n2 };
3688
+ }
3689
+ var es = m({ default: () => ts });
3690
+ var ts = { "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "post-list.empty-state.title": `No posts yet`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "related-posts.empty-state.title": `No related posts yet`, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "post-actions.like": `Like post`, "post-actions.unlike": `Unlike post`, "post-actions.share": `Share post`, "post-actions.share-dialog": `Share post`, "post-actions.link-copied": `Link copied`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.link-label": `Post link`, "post-actions.copy-link": `Copy link`, "post-actions.close": `Close`, "post-counters.loading-likes": `Loading likes`, "cover-media.play": `Play video`, "cover-media.placeholder-alt": `Post cover image`, "post-comments.loading": `Loading comments\u2026`, "post-comments.no-post": `No post resolved for this URL yet.`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, "canvas.post-title": `Post Title`, "canvas.author-name": `Author Name`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "canvas.category": `Category`, "canvas.category-numbered": `Category {number}`, "canvas.tag-numbered": `Tag {number}`, "canvas.author-photo-alt": `Author photo`, "category-header.all-posts": `All Posts` };
3691
+ var ns = m({ default: () => is, title: () => rs });
3692
+ var rs = `My App`;
3693
+ var is = { "canvas.category": `Category`, "post-list.empty-state.description": `Once posts are published, they will appear here.`, "canvas.tag-numbered": `Tag {number}`, "cover-media.play": `Play video`, "post-comments.unavailable": `Comments are unavailable \u2014 no app instance.`, "post-counters.loading-likes": `Loading likes`, "post-comments.loading": `Loading comments\u2026`, "post-actions.like": `Like post`, "canvas.content": `This is where the full post appears. Write your story here, add images, galleries and video from the dashboard, and use headings and quotes to keep it easy to read.`, "related-posts.empty-state.title": `No related posts yet`, "post.time-to-read": `{count, plural, one {# min read} other {# min read}}`, "post-actions.link-copied": `Link copied`, "category-header.all-posts": `All Posts`, "post-actions.copy-manually": `Copy the link below to share this post.`, "post-actions.copy-link": `Copy link`, "cover-media.placeholder-alt": `Post cover image`, "post-actions.link-label": `Post link`, "post-list.empty-state.title": `No posts yet`, "post-actions.share-dialog": `Share post`, "canvas.post-title": `Post Title`, "post-actions.unlike": `Unlike post`, "post-comments.no-post": `No post resolved for this URL yet.`, "post.like-count": `{count, plural, one {{formatted} like} other {{formatted} likes}}`, "canvas.category-numbered": `Category {number}`, "post.comment-count": `{count, plural, one {{formatted} comment} other {{formatted} comments}}`, "post-actions.share": `Share post`, "post.view-count": `{count, plural, one {{formatted} view} other {{formatted} views}}`, "post-actions.close": `Close`, "canvas.category-description": `Add a short description of this category so readers know what they will find here. It shows under the category title, above the posts.`, "canvas.author-photo-alt": `Author photo`, "canvas.author-name": `Author Name`, "post-comments.demo-notice": `Sample comments are shown while editing. Visitors will see real comments.`, title: rs, "related-posts.empty-state.description": `Once more posts are published, they will appear here.`, "canvas.excerpt": `Share the key idea of your post here. This short summary shows on feed cards and in search results, and tells readers why the post is worth their time.` };
3694
+ var as = Object.assign({ "../assets/locale/messages_en.dev.json": es, "../assets/locale/messages_en.json": ns });
3695
+ var os = (e6, t2) => {
3696
+ let n2 = as[`../assets/locale/messages_${Qo(e6)}${t2}.json`];
3690
3697
  return n2 ? Promise.resolve(n2) : Promise.reject(Error(`no messages file`));
3691
3698
  };
3692
- var os = Hr({ isDev: false, loadMessages: (e6) => as(e6, ``), loadDevMessages: (e6) => as(e6, `.dev`) });
3693
- var ss = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
3699
+ var ss = Ur({ isDev: false, loadMessages: (e6) => os(e6, ``), loadDevMessages: (e6) => os(e6, `.dev`) });
3700
+ var cs = (e6, t2, n2) => typeof e6 != `number` || !Number.isFinite(e6) || e6 < 0 ? `` : new Intl.NumberFormat(n2, t2 === `compact` ? { notation: `compact`, maximumFractionDigits: 1 } : void 0).format(e6);
3694
3701
  var $ = { timeToRead: `post.time-to-read`, viewCount: `post.view-count`, commentCount: `post.comment-count`, likeCount: `post.like-count`, noPostsTitle: `post-list.empty-state.title`, noPostsDescription: `post-list.empty-state.description`, noRelatedPostsTitle: `related-posts.empty-state.title`, noRelatedPostsDescription: `related-posts.empty-state.description`, canvasPostTitle: `canvas.post-title`, canvasAuthorName: `canvas.author-name`, canvasExcerpt: `canvas.excerpt`, canvasContent: `canvas.content`, canvasCategory: `canvas.category`, canvasCategoryNumbered: `canvas.category-numbered`, canvasTagNumbered: `canvas.tag-numbered`, canvasCoverAlt: `cover-media.placeholder-alt`, canvasAuthorPhotoAlt: `canvas.author-photo-alt` };
3695
- var cs = (e6, t2) => {
3696
- let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: ss(r2, `full`, t2) });
3702
+ var ls = (e6, t2) => {
3703
+ let n2 = (n3) => (r2) => e6(n3, { count: r2, formatted: cs(r2, `full`, t2) });
3697
3704
  return { timeToRead: (t3) => e6($.timeToRead, { count: t3 }), viewCount: n2($.viewCount), commentCount: n2($.commentCount), likeCount: n2($.likeCount), noPostsEmptyState: () => ({ title: e6($.noPostsTitle), description: e6($.noPostsDescription) }), noRelatedPostsEmptyState: () => ({ title: e6($.noRelatedPostsTitle), description: e6($.noRelatedPostsDescription) }), canvas: { postTitle: () => e6($.canvasPostTitle), authorName: () => e6($.canvasAuthorName), excerpt: () => e6($.canvasExcerpt), content: () => e6($.canvasContent), category: () => e6($.canvasCategory), categoryNumbered: (t3) => e6($.canvasCategoryNumbered, { number: t3 }), tagNumbered: (t3) => e6($.canvasTagNumbered, { number: t3 }), coverAlt: () => e6($.canvasCoverAlt), authorPhotoAlt: () => e6($.canvasAuthorPhotoAlt) } };
3698
3705
  };
3699
- var ls = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
3700
- var us = (e6) => ({ text: e6, html: `<p>${ls(e6)}</p>`, linkList: [] });
3701
- var ds = (0, import_react.createContext)(null);
3702
- ds.displayName = `PostItemContext`;
3703
- function fs() {
3704
- return (0, import_react.useContext)(ds);
3706
+ var us = (e6) => e6.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`);
3707
+ var ds = (e6) => ({ text: e6, html: `<p>${us(e6)}</p>`, linkList: [] });
3708
+ var fs = (0, import_react.createContext)(null);
3709
+ fs.displayName = `PostItemContext`;
3710
+ function ps() {
3711
+ return (0, import_react.useContext)(fs);
3705
3712
  }
3706
- function ps({ postData: t2, children: n2 }) {
3707
- let r2 = zr(), { t: i2, ready: a2 } = zo(void 0, { useSuspense: false }), o2 = (0, import_react.useMemo)(() => cs(i2, r2), [i2, r2]), { isLiked: c2, likeCount: l2, isLikeCountLoaded: u2, viewCount: d2, commentCount: p2, toggleLike: m2, liveLikes: h2 } = Lr(t2.recentPostItem.slug ? t2._id : void 0, 0), g2 = (0, import_react.useMemo)(() => ({ ...t2, isLiked: c2, isLikeCountLoaded: u2, toggleLike: m2, liveLikes: h2, likeCountValue: l2, viewCountValue: d2 ?? t2.initialViewCount, commentCountValue: p2 ?? t2.initialCommentCount, likeCount: us(a2 ? o2.likeCount(l2) : ``), viewCount: d2 === void 0 || !a2 ? t2.viewCount : us(o2.viewCount(d2)), commentCount: p2 === void 0 || !a2 ? t2.commentCount : us(o2.commentCount(p2)) }), [t2, c2, l2, u2, d2, p2, m2, h2, o2, a2]), _2 = (0, import_react.useMemo)(() => ({ currentPostId: t2.recentPostItem.slug ? t2._id : void 0, categoryIds: void 0, relatedPostIds: void 0 }), [t2]), v2 = (0, import_react.useMemo)(() => {
3713
+ function ms({ postData: t2, children: n2 }) {
3714
+ let r2 = Br(), { t: i2, ready: a2 } = Bo(void 0, { useSuspense: false }), o2 = (0, import_react.useMemo)(() => ls(i2, r2), [i2, r2]), { isLiked: c2, likeCount: l2, isLikeCountLoaded: u2, viewCount: d2, commentCount: p2, toggleLike: m2, liveLikes: h2 } = Lr(t2.recentPostItem.slug ? t2._id : void 0, 0), g2 = (0, import_react.useMemo)(() => ({ ...t2, isLiked: c2, isLikeCountLoaded: u2, toggleLike: m2, liveLikes: h2, likeCountValue: l2, viewCountValue: d2 ?? t2.initialViewCount, commentCountValue: p2 ?? t2.initialCommentCount, likeCount: ds(a2 ? o2.likeCount(l2) : ``), viewCount: d2 === void 0 || !a2 ? t2.viewCount : ds(o2.viewCount(d2)), commentCount: p2 === void 0 || !a2 ? t2.commentCount : ds(o2.commentCount(p2)) }), [t2, c2, l2, u2, d2, p2, m2, h2, o2, a2]), _2 = (0, import_react.useMemo)(() => ({ currentPostId: t2.recentPostItem.slug ? t2._id : void 0, categoryIds: void 0, relatedPostIds: void 0 }), [t2]), v2 = (0, import_react.useMemo)(() => {
3708
3715
  let e6 = g2.itemCategoryLabel.text;
3709
3716
  return { title: g2.itemTitle, excerpt: g2.itemExcerpt, coverImage: g2.itemCoverImage, coverMedia: g2.itemCoverMedia, richContent: { nodes: [] }, authorName: g2.authorName, authorImage: g2.authorImage, timeToRead: g2.timeToRead, publishedDate: g2.itemPublishedDate, viewCount: g2.viewCount, commentCount: g2.commentCount, likeCount: g2.likeCount, postCategories: e6 ? [{ _id: e6, label: e6, itemCategoryLabel: g2.itemCategoryLabel, itemCategoryLink: void 0, categoryItem: { label: e6, slug: `` } }] : [], itemCategoryLabel: g2.itemCategoryLabel, postTags: [], hasCoverImage: g2.itemCoverMedia !== void 0 && g2.itemCoverImage !== void 0, hasExcerpt: !!g2.itemExcerpt.text.trim(), hasTags: false, publishedDateValue: g2.publishedDateValue, minutesToReadValue: g2.minutesToReadValue, viewCountValue: g2.viewCountValue, commentCountValue: g2.commentCountValue, isLiked: g2.isLiked, likeCountValue: g2.likeCountValue, isLikeCountLoaded: g2.isLikeCountLoaded, toggleLike: g2.toggleLike, liveLikes: g2.liveLikes, clockValue: g2.clockValue, postUrl: g2.itemLink?.href, itemLink: g2.itemLink, commentingEnabled: g2.commentingEnabled, relatedPostsSource: _2, isLoadingPost: false, hasError: false, isEmpty: false };
3710
3717
  }, [g2, _2]);
3711
- return (0, import_jsx_runtime.jsx)(ds.Provider, { value: g2, children: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: v2, children: n2 }) });
3718
+ return (0, import_jsx_runtime.jsx)(fs.Provider, { value: g2, children: (0, import_jsx_runtime.jsx)(import_post_context_provider.default, { value: v2, children: n2 }) });
3712
3719
  }
3713
- function ms({ postData: e6, children: t2 }) {
3714
- let { i18n: n2 } = Qo(os);
3715
- return e6 === void 0 ? (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: t2 }) : (0, import_jsx_runtime.jsx)(Bo, { i18n: n2, children: (0, import_jsx_runtime.jsx)(ps, { postData: e6, children: t2 }) });
3720
+ function hs({ postData: e6, children: t2 }) {
3721
+ let { i18n: n2 } = $o(ss);
3722
+ return e6 === void 0 ? (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: t2 }) : (0, import_jsx_runtime.jsx)(Vo, { i18n: n2, children: (0, import_jsx_runtime.jsx)(ms, { postData: e6, children: t2 }) });
3716
3723
  }
3717
- var hs = Dn(`e26c0f39-8db2-4b56-8c9b-fd1457f917e0`);
3724
+ var gs = Dn(`e26c0f39-8db2-4b56-8c9b-fd1457f917e0`);
3718
3725
  // Annotate the CommonJS export names for ESM import in node:
3719
3726
  0 && (module.exports = {
3720
3727
  PostItemContextProvider,