@wix/blog 1.0.708 → 1.0.709

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/_sdk-exports/context-blog-feed/runtime.js +4 -4
  2. package/_sdk-exports/context-post/runtime.d.ts +36 -1
  3. package/_sdk-exports/context-post-by-id/runtime.js +4 -4
  4. package/_sdk-exports/context-post-by-slug/runtime.js +4 -4
  5. package/_sdk-exports/context-post-list-item/runtime.js +4 -4
  6. package/_sdk-exports/context-related-posts/runtime.js +4 -4
  7. package/build/cjs/context-blog-feed.js +972 -944
  8. package/build/cjs/context-blog-feed.js.map +1 -1
  9. package/build/cjs/context-post-by-id.js +1060 -1032
  10. package/build/cjs/context-post-by-id.js.map +1 -1
  11. package/build/cjs/context-post-by-slug.js +266 -238
  12. package/build/cjs/context-post-by-slug.js.map +1 -1
  13. package/build/cjs/context-post-list-item.js +260 -232
  14. package/build/cjs/context-post-list-item.js.map +1 -1
  15. package/build/cjs/context-post.d.ts +36 -1
  16. package/build/cjs/context-related-posts.js +263 -235
  17. package/build/cjs/context-related-posts.js.map +1 -1
  18. package/build/es/context-blog-feed.mjs +972 -944
  19. package/build/es/context-blog-feed.mjs.map +1 -1
  20. package/build/es/context-post-by-id.mjs +1060 -1032
  21. package/build/es/context-post-by-id.mjs.map +1 -1
  22. package/build/es/context-post-by-slug.mjs +266 -238
  23. package/build/es/context-post-by-slug.mjs.map +1 -1
  24. package/build/es/context-post-list-item.mjs +260 -232
  25. package/build/es/context-post-list-item.mjs.map +1 -1
  26. package/build/es/context-post.d.mts +36 -1
  27. package/build/es/context-related-posts.mjs +263 -235
  28. package/build/es/context-related-posts.mjs.map +1 -1
  29. package/build/internal/cjs/context-post.d.ts +36 -1
  30. package/build/internal/es/context-post.d.mts +36 -1
  31. package/package.json +2 -2
@@ -1834,7 +1834,8 @@ var pi = class {
1834
1834
  e7 && (this.isSupportedCode(e7) ? l2.push(e7) : this.logger.warn(`rejecting language code not found in supportedLngs: ${e7}`));
1835
1835
  };
1836
1836
  return R(e6) && (e6.includes(`-`) || e6.includes(`_`)) ? (this.options.load !== `languageOnly` && u2(this.formatLanguageCode(e6)), this.options.load !== `languageOnly` && this.options.load !== `currentOnly` && u2(this.getScriptPartFromCode(e6)), this.options.load !== `currentOnly` && u2(this.getLanguagePartFromCode(e6))) : R(e6) && u2(this.formatLanguageCode(e6)), c2.forEach((e7) => {
1837
- l2.includes(e7) || u2(this.formatLanguageCode(e7));
1837
+ let t3 = this.formatLanguageCode(e7);
1838
+ l2.includes(t3) || u2(t3);
1838
1839
  }), s2 === null ? l2 : (this.resolveHierarchyCache[s2] = l2, l2.slice());
1839
1840
  }
1840
1841
  };
@@ -2279,7 +2280,9 @@ var J = class e4 extends G {
2279
2280
  let e7 = t2.precheck(this, a2);
2280
2281
  if (e7 !== void 0) return e7;
2281
2282
  }
2282
- return !!(this.hasResourceBundle(n2, e6) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a2(n2, e6) && (!r2 || a2(i2, e6)));
2283
+ if (this.hasResourceBundle(n2, e6) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages) return true;
2284
+ let { languageUtils: o2 } = this.services, s2 = t2.lng ? o2.isSupportedCode(n2) && o2.toResolveHierarchy(n2, false)[0] : n2;
2285
+ return !(s2 && !a2(s2, e6) || r2 && !a2(i2, e6));
2283
2286
  }
2284
2287
  loadNamespaces(e6, t2) {
2285
2288
  let n2 = z();
@@ -2317,7 +2320,7 @@ var J = class e4 extends G {
2317
2320
  cloneInstance(t2 = {}, n2 = q) {
2318
2321
  let r2 = t2.forkResourceStore;
2319
2322
  r2 && delete t2.forkResourceStore;
2320
- let i2 = { ...this.options, ...t2, isClone: true }, a2 = new e4(i2);
2323
+ let i2 = { ...this.options, preload: false, ...t2, isClone: true }, a2 = new e4(i2);
2321
2324
  if ((t2.debug !== void 0 || t2.prefix !== void 0) && (a2.logger = a2.logger.clone(t2)), [`store`, `services`, `language`].forEach((e6) => {
2322
2325
  a2[e6] = this[e6];
2323
2326
  }), 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) {
@@ -2343,75 +2346,38 @@ var ki = ({ locale: e6, asyncMessagesLoader: t2, messages: n2, useSuspense: r2 =
2343
2346
  }
2344
2347
  } }), n2 && (s2.resources = { [e6]: { translation: n2 } }), i2 || c2.init(s2), c2;
2345
2348
  };
2346
- var Ai = [`__proto__`, `constructor`, `prototype`];
2347
- function ji(e6, t2, n2) {
2348
- function r2(e7) {
2349
- return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
2350
- }
2351
- function i2() {
2352
- return !e6 || typeof e6 == `string`;
2353
- }
2354
- for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
2355
- if (i2()) return {};
2356
- var o2 = r2(a2.shift());
2357
- if (Ai.indexOf(o2) > -1) return {};
2358
- !e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
2359
- }
2360
- if (i2()) return {};
2361
- var s2 = r2(a2.shift());
2362
- return Ai.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
2349
+ function Ai(e6, t2) {
2350
+ let n2 = t2 && t2.cache ? t2.cache : Bi, r2 = t2 && t2.serializer ? t2.serializer : Ri;
2351
+ return (t2 && t2.strategy ? t2.strategy : Fi)(e6, { cache: n2, serializer: r2 });
2363
2352
  }
2364
- function Mi(e6, t2, n2) {
2365
- var r2 = ji(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
2366
- i2 !== void 0 && (i2[a2] = n2);
2367
- }
2368
- function Ni(e6, t2) {
2369
- var n2 = ji(e6, t2), r2 = n2.obj, i2 = n2.k;
2370
- if (r2) return r2[i2];
2371
- }
2372
- var Pi = [];
2373
- var Fi = Pi.forEach;
2374
- var Ii = Pi.slice;
2375
- function Li(e6) {
2376
- return Fi.call(Ii.call(arguments, 1), function(t2) {
2377
- if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
2378
- var i2 = r2[n2];
2379
- Ai.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
2380
- }
2381
- }), e6;
2382
- }
2383
- function Ri(e6, t2) {
2384
- let n2 = t2 && t2.cache ? t2.cache : Ji, r2 = t2 && t2.serializer ? t2.serializer : Ki;
2385
- return (t2 && t2.strategy ? t2.strategy : Ui)(e6, { cache: n2, serializer: r2 });
2386
- }
2387
- function zi(e6) {
2353
+ function ji(e6) {
2388
2354
  return e6 == null || typeof e6 == `number` || typeof e6 == `boolean`;
2389
2355
  }
2390
- function Bi(e6, t2, n2, r2) {
2391
- let i2 = zi(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2356
+ function Mi(e6, t2, n2, r2) {
2357
+ let i2 = ji(r2) ? r2 : n2(r2), a2 = t2.get(i2);
2392
2358
  return a2 === void 0 && (a2 = e6.call(this, r2), t2.set(i2, a2)), a2;
2393
2359
  }
2394
- function Vi(e6, t2, n2) {
2360
+ function Ni(e6, t2, n2) {
2395
2361
  let r2 = Array.prototype.slice.call(arguments, 3), i2 = n2(r2), a2 = t2.get(i2);
2396
2362
  return a2 === void 0 && (a2 = e6.apply(this, r2), t2.set(i2, a2)), a2;
2397
2363
  }
2398
- function Hi(e6, t2, n2, r2, i2) {
2364
+ function Pi(e6, t2, n2, r2, i2) {
2399
2365
  return n2.bind(t2, e6, r2, i2);
2400
2366
  }
2401
- function Ui(e6, t2) {
2402
- let n2 = e6.length === 1 ? Bi : Vi;
2403
- return Hi(e6, this, n2, t2.cache.create(), t2.serializer);
2367
+ function Fi(e6, t2) {
2368
+ let n2 = e6.length === 1 ? Mi : Ni;
2369
+ return Pi(e6, this, n2, t2.cache.create(), t2.serializer);
2404
2370
  }
2405
- function Wi(e6, t2) {
2406
- return Hi(e6, this, Vi, t2.cache.create(), t2.serializer);
2371
+ function Ii(e6, t2) {
2372
+ return Pi(e6, this, Ni, t2.cache.create(), t2.serializer);
2407
2373
  }
2408
- function Gi(e6, t2) {
2409
- return Hi(e6, this, Bi, t2.cache.create(), t2.serializer);
2374
+ function Li(e6, t2) {
2375
+ return Pi(e6, this, Mi, t2.cache.create(), t2.serializer);
2410
2376
  }
2411
- var Ki = function() {
2377
+ var Ri = function() {
2412
2378
  return JSON.stringify(arguments);
2413
2379
  };
2414
- var qi = class {
2380
+ var zi = class {
2415
2381
  constructor() {
2416
2382
  this.cache = /* @__PURE__ */ Object.create(null);
2417
2383
  }
@@ -2422,14 +2388,14 @@ var qi = class {
2422
2388
  this.cache[e6] = t2;
2423
2389
  }
2424
2390
  };
2425
- var Ji = { create: function() {
2426
- return new qi();
2391
+ var Bi = { create: function() {
2392
+ return new zi();
2427
2393
  } };
2428
- var Yi = { variadic: Wi, monadic: Gi };
2429
- var Xi = /(?:[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;
2430
- function Zi(e6) {
2394
+ var Vi = { variadic: Ii, monadic: Li };
2395
+ 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;
2396
+ function Ui(e6) {
2431
2397
  let t2 = {};
2432
- return e6.replace(Xi, (e7) => {
2398
+ return e6.replace(Hi, (e7) => {
2433
2399
  let n2 = e7.length;
2434
2400
  switch (e7[0]) {
2435
2401
  case `G`:
@@ -2516,10 +2482,10 @@ function Zi(e6) {
2516
2482
  return ``;
2517
2483
  }), t2;
2518
2484
  }
2519
- var Qi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2520
- function $i(e6) {
2485
+ var Wi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
2486
+ function Gi(e6) {
2521
2487
  if (e6.length === 0) throw Error(`Number skeleton cannot be empty`);
2522
- let t2 = e6.split(Qi).filter((e7) => e7.length > 0), n2 = [];
2488
+ let t2 = e6.split(Wi).filter((e7) => e7.length > 0), n2 = [];
2523
2489
  for (let e7 of t2) {
2524
2490
  let t3 = e7.split(`/`);
2525
2491
  if (t3.length === 0) throw Error(`Invalid number skeleton`);
@@ -2529,20 +2495,20 @@ function $i(e6) {
2529
2495
  }
2530
2496
  return n2;
2531
2497
  }
2532
- function ea(e6) {
2498
+ function Ki(e6) {
2533
2499
  return e6.replace(/^(.*?)-/, ``);
2534
2500
  }
2535
- var ta = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2536
- var na = /^(@+)?(\+|#+)?[rs]?$/g;
2537
- var ra = /(\*)(0+)|(#+)(0+)|(0+)/g;
2538
- var ia = /^(0+)$/;
2539
- function aa(e6) {
2501
+ var qi = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g;
2502
+ var Ji = /^(@+)?(\+|#+)?[rs]?$/g;
2503
+ var Yi = /(\*)(0+)|(#+)(0+)|(0+)/g;
2504
+ var Xi = /^(0+)$/;
2505
+ function Zi(e6) {
2540
2506
  let t2 = {};
2541
- return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(na, function(e7, n2, r2) {
2507
+ return e6[e6.length - 1] === `r` ? t2.roundingPriority = `morePrecision` : e6[e6.length - 1] === `s` && (t2.roundingPriority = `lessPrecision`), e6.replace(Ji, function(e7, n2, r2) {
2542
2508
  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), ``;
2543
2509
  }), t2;
2544
2510
  }
2545
- function oa(e6) {
2511
+ function Qi(e6) {
2546
2512
  switch (e6) {
2547
2513
  case `sign-auto`:
2548
2514
  return { signDisplay: `auto` };
@@ -2566,19 +2532,19 @@ function oa(e6) {
2566
2532
  return { signDisplay: `never` };
2567
2533
  }
2568
2534
  }
2569
- function sa(e6) {
2535
+ function $i(e6) {
2570
2536
  let t2;
2571
2537
  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) {
2572
2538
  let n2 = e6.slice(0, 2);
2573
- if (n2 === `+!` ? (t2.signDisplay = `always`, e6 = e6.slice(2)) : n2 === `+?` && (t2.signDisplay = `exceptZero`, e6 = e6.slice(2)), !ia.test(e6)) throw Error(`Malformed concise eng/scientific notation`);
2539
+ 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`);
2574
2540
  t2.minimumIntegerDigits = e6.length;
2575
2541
  }
2576
2542
  return t2;
2577
2543
  }
2578
- function ca(e6) {
2579
- return oa(e6) || {};
2544
+ function ea(e6) {
2545
+ return Qi(e6) || {};
2580
2546
  }
2581
- function la(e6) {
2547
+ function ta(e6) {
2582
2548
  let t2 = {};
2583
2549
  for (let n2 of e6) {
2584
2550
  switch (n2.stem) {
@@ -2602,7 +2568,7 @@ function la(e6) {
2602
2568
  continue;
2603
2569
  case `measure-unit`:
2604
2570
  case `unit`:
2605
- t2.style = `unit`, t2.unit = ea(n2.options[0]);
2571
+ t2.style = `unit`, t2.unit = Ki(n2.options[0]);
2606
2572
  continue;
2607
2573
  case `compact-short`:
2608
2574
  case `K`:
@@ -2613,10 +2579,10 @@ function la(e6) {
2613
2579
  t2.notation = `compact`, t2.compactDisplay = `long`;
2614
2580
  continue;
2615
2581
  case `scientific`:
2616
- t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ca(t3) }), {}) };
2582
+ t2 = { ...t2, notation: `scientific`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ea(t3) }), {}) };
2617
2583
  continue;
2618
2584
  case `engineering`:
2619
- t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ca(t3) }), {}) };
2585
+ t2 = { ...t2, notation: `engineering`, ...n2.options.reduce((e8, t3) => ({ ...e8, ...ea(t3) }), {}) };
2620
2586
  continue;
2621
2587
  case `notation-simple`:
2622
2588
  t2.notation = `standard`;
@@ -2659,7 +2625,7 @@ function la(e6) {
2659
2625
  continue;
2660
2626
  case `integer-width`:
2661
2627
  if (n2.options.length > 1) throw RangeError(`integer-width stems only accept a single optional option`);
2662
- n2.options[0].replace(ra, function(e8, n3, r3, i2, a2, o2) {
2628
+ n2.options[0].replace(Yi, function(e8, n3, r3, i2, a2, o2) {
2663
2629
  if (n3) t2.minimumIntegerDigits = r3.length;
2664
2630
  else if (i2 && a2) throw Error(`We currently do not support maximum integer digits`);
2665
2631
  else if (o2) throw Error(`We currently do not support exact integer digits`);
@@ -2667,83 +2633,83 @@ function la(e6) {
2667
2633
  });
2668
2634
  continue;
2669
2635
  }
2670
- if (ia.test(n2.stem)) {
2636
+ if (Xi.test(n2.stem)) {
2671
2637
  t2.minimumIntegerDigits = n2.stem.length;
2672
2638
  continue;
2673
2639
  }
2674
- if (ta.test(n2.stem)) {
2640
+ if (qi.test(n2.stem)) {
2675
2641
  if (n2.options.length > 1) throw RangeError(`Fraction-precision stems only accept a single optional option`);
2676
- n2.stem.replace(ta, function(e9, n3, r3, i2, a2, o2) {
2642
+ n2.stem.replace(qi, function(e9, n3, r3, i2, a2, o2) {
2677
2643
  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), ``;
2678
2644
  });
2679
2645
  let e8 = n2.options[0];
2680
- e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...aa(e8) });
2646
+ e8 === `w` ? t2 = { ...t2, trailingZeroDisplay: `stripIfInteger` } : e8 && (t2 = { ...t2, ...Zi(e8) });
2681
2647
  continue;
2682
2648
  }
2683
- if (na.test(n2.stem)) {
2684
- t2 = { ...t2, ...aa(n2.stem) };
2649
+ if (Ji.test(n2.stem)) {
2650
+ t2 = { ...t2, ...Zi(n2.stem) };
2685
2651
  continue;
2686
2652
  }
2687
- let e7 = oa(n2.stem);
2653
+ let e7 = Qi(n2.stem);
2688
2654
  e7 && (t2 = { ...t2, ...e7 });
2689
- let r2 = sa(n2.stem);
2655
+ let r2 = $i(n2.stem);
2690
2656
  r2 && (t2 = { ...t2, ...r2 });
2691
2657
  }
2692
2658
  return t2;
2693
2659
  }
2694
- var ua = function(e6) {
2660
+ var na = function(e6) {
2695
2661
  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;
2696
2662
  }({});
2697
- function da(e6) {
2663
+ function ra(e6) {
2698
2664
  return e6.type === 0;
2699
2665
  }
2700
- function fa(e6) {
2666
+ function ia(e6) {
2701
2667
  return e6.type === 1;
2702
2668
  }
2703
- function pa(e6) {
2669
+ function aa(e6) {
2704
2670
  return e6.type === 2;
2705
2671
  }
2706
- function ma(e6) {
2672
+ function oa(e6) {
2707
2673
  return e6.type === 3;
2708
2674
  }
2709
- function ha(e6) {
2675
+ function sa(e6) {
2710
2676
  return e6.type === 4;
2711
2677
  }
2712
- function ga(e6) {
2678
+ function ca(e6) {
2713
2679
  return e6.type === 5;
2714
2680
  }
2715
- function _a(e6) {
2681
+ function la(e6) {
2716
2682
  return e6.type === 6;
2717
2683
  }
2718
- function va(e6) {
2684
+ function ua(e6) {
2719
2685
  return e6.type === 7;
2720
2686
  }
2721
- function ya(e6) {
2687
+ function da(e6) {
2722
2688
  return e6.type === 8;
2723
2689
  }
2724
- function ba(e6) {
2690
+ function fa(e6) {
2725
2691
  return !!(e6 && typeof e6 == `object` && e6.type === 0);
2726
2692
  }
2727
- function xa(e6) {
2693
+ function pa(e6) {
2728
2694
  return !!(e6 && typeof e6 == `object` && e6.type === 1);
2729
2695
  }
2730
- var Sa = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2696
+ var ma = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/;
2731
2697
  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`] };
2732
- function Ca(e6, t2) {
2698
+ function ha(e6, t2) {
2733
2699
  let n2 = ``;
2734
2700
  for (let r2 = 0; r2 < e6.length; r2++) {
2735
2701
  let i2 = e6.charAt(r2);
2736
2702
  if (i2 === `j`) {
2737
2703
  let a2 = 0;
2738
2704
  for (; r2 + 1 < e6.length && e6.charAt(r2 + 1) === i2; ) a2++, r2++;
2739
- let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = wa(t2);
2705
+ let o2 = 1 + (a2 & 1), s2 = a2 < 2 ? 1 : 3 + (a2 >> 1), c2 = ga(t2);
2740
2706
  for ((c2 == `H` || c2 == `k`) && (s2 = 0); s2-- > 0; ) n2 += `a`;
2741
2707
  for (; o2-- > 0; ) n2 = c2 + n2;
2742
2708
  } else n2 += i2 === `J` ? `H` : i2;
2743
2709
  }
2744
2710
  return n2;
2745
2711
  }
2746
- function wa(e6) {
2712
+ function ga(e6) {
2747
2713
  let t2 = e6.hourCycle;
2748
2714
  if (t2 === void 0) {
2749
2715
  let n3 = e6;
@@ -2764,34 +2730,34 @@ function wa(e6) {
2764
2730
  let n2 = e6.language, r2;
2765
2731
  return n2 !== `root` && (r2 = e6.maximize().region), (Y[`${n2}-${r2}`] || Y[r2 || ``] || Y[n2 || ``] || Y[`${n2}-001`] || Y[`001`])[0].charAt(0);
2766
2732
  }
2767
- var Ta = RegExp(`^${Sa.source}*`);
2768
- var Ea = RegExp(`${Sa.source}*$`);
2733
+ var _a = RegExp(`^${ma.source}*`);
2734
+ var va = RegExp(`${ma.source}*$`);
2769
2735
  function X(e6, t2) {
2770
2736
  return { start: e6, end: t2 };
2771
2737
  }
2772
- var Da = !!Object.fromEntries;
2773
- var Oa = !!String.prototype.trimStart;
2774
- var ka = !!String.prototype.trimEnd;
2775
- var Aa = Da ? Object.fromEntries : function(e6) {
2738
+ var ya = !!Object.fromEntries;
2739
+ var ba = !!String.prototype.trimStart;
2740
+ var xa = !!String.prototype.trimEnd;
2741
+ var Sa = ya ? Object.fromEntries : function(e6) {
2776
2742
  let t2 = {};
2777
2743
  for (let [n2, r2] of e6) t2[n2] = r2;
2778
2744
  return t2;
2779
2745
  };
2780
- var ja = Oa ? function(e6) {
2746
+ var Ca = ba ? function(e6) {
2781
2747
  return e6.trimStart();
2782
2748
  } : function(e6) {
2783
- return e6.replace(Ta, ``);
2749
+ return e6.replace(_a, ``);
2784
2750
  };
2785
- var Ma = ka ? function(e6) {
2751
+ var wa = xa ? function(e6) {
2786
2752
  return e6.trimEnd();
2787
2753
  } : function(e6) {
2788
- return e6.replace(Ea, ``);
2754
+ return e6.replace(va, ``);
2789
2755
  };
2790
- var Na = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2791
- function Pa(e6, t2) {
2792
- return Na.lastIndex = t2, Na.exec(e6)[1] ?? ``;
2756
+ var Ta = RegExp(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`, `yu`);
2757
+ function Ea(e6, t2) {
2758
+ return Ta.lastIndex = t2, Ta.exec(e6)[1] ?? ``;
2793
2759
  }
2794
- function Fa(e6) {
2760
+ function Da(e6) {
2795
2761
  if (e6.length === 0) return null;
2796
2762
  let t2 = 1, n2 = 1;
2797
2763
  for (let r2 = 0; r2 < e6.length; ) {
@@ -2812,7 +2778,7 @@ function Fa(e6) {
2812
2778
  }
2813
2779
  return { offset: e6.length, line: t2, column: n2 };
2814
2780
  }
2815
- var Ia = class {
2781
+ var Oa = class {
2816
2782
  constructor(e6, t2 = {}) {
2817
2783
  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;
2818
2784
  }
@@ -2821,7 +2787,7 @@ var Ia = class {
2821
2787
  if (this.message.length > 0) {
2822
2788
  let e6 = this.message.charCodeAt(0);
2823
2789
  if (e6 !== 35 && e6 !== 39 && e6 !== 60 && e6 !== 123 && e6 !== 125) {
2824
- let e7 = Fa(this.message);
2790
+ let e7 = Da(this.message);
2825
2791
  if (e7) {
2826
2792
  let t2 = this.clonePosition();
2827
2793
  return this.position = e7, { val: [{ type: 0, value: this.message, location: X(t2, this.clonePosition()) }], err: null };
@@ -2845,7 +2811,7 @@ var Ia = class {
2845
2811
  } else if (i2 === 60 && !this.ignoreTag && this.peek() === 47) {
2846
2812
  if (n2) break;
2847
2813
  return this.error(26, X(this.clonePosition(), this.clonePosition()));
2848
- } else if (i2 === 60 && !this.ignoreTag && La(this.peek() || 0)) {
2814
+ } else if (i2 === 60 && !this.ignoreTag && ka(this.peek() || 0)) {
2849
2815
  let n3 = this.parseTag(e6, t2);
2850
2816
  if (n3.err) return n3;
2851
2817
  r2.push(n3.val);
@@ -2867,7 +2833,7 @@ var Ia = class {
2867
2833
  if (i2.err) return i2;
2868
2834
  let a2 = i2.val, o2 = this.clonePosition();
2869
2835
  if (this.bumpIf(`</`)) {
2870
- if (this.isEOF() || !La(this.char())) return this.error(23, X(o2, this.clonePosition()));
2836
+ if (this.isEOF() || !ka(this.char())) return this.error(23, X(o2, this.clonePosition()));
2871
2837
  let e7 = this.clonePosition();
2872
2838
  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()));
2873
2839
  }
@@ -2877,7 +2843,7 @@ var Ia = class {
2877
2843
  }
2878
2844
  parseTagName() {
2879
2845
  let e6 = this.offset();
2880
- for (this.bump(); !this.isEOF() && za(this.char()); ) this.bump();
2846
+ for (this.bump(); !this.isEOF() && ja(this.char()); ) this.bump();
2881
2847
  return this.message.slice(e6, this.offset());
2882
2848
  }
2883
2849
  parseLiteral(e6, t2) {
@@ -2901,7 +2867,7 @@ var Ia = class {
2901
2867
  return { val: { type: 0, value: r2, location: i2 }, err: null };
2902
2868
  }
2903
2869
  tryParseLeftAngleBracket() {
2904
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Ra(this.peek() || 0)) ? (this.bump(), `<`) : null;
2870
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Aa(this.peek() || 0)) ? (this.bump(), `<`) : null;
2905
2871
  }
2906
2872
  tryParseQuote(e6) {
2907
2873
  if (this.isEOF() || this.char() !== 39) return null;
@@ -2956,7 +2922,7 @@ var Ia = class {
2956
2922
  }
2957
2923
  }
2958
2924
  parseIdentifierIfPossible() {
2959
- let e6 = this.clonePosition(), t2 = this.offset(), n2 = Pa(this.message, t2), r2 = t2 + n2.length;
2925
+ let e6 = this.clonePosition(), t2 = this.offset(), n2 = Ea(this.message, t2), r2 = t2 + n2.length;
2960
2926
  return this.bumpTo(r2), { value: n2, location: X(e6, this.clonePosition()) };
2961
2927
  }
2962
2928
  parseArgumentOptions(e6, t2, n2, r2) {
@@ -2973,7 +2939,7 @@ var Ia = class {
2973
2939
  this.bumpSpace();
2974
2940
  let t4 = this.clonePosition(), n3 = this.parseSimpleArgStyleIfPossible();
2975
2941
  if (n3.err) return n3;
2976
- let r3 = Ma(n3.val);
2942
+ let r3 = wa(n3.val);
2977
2943
  if (r3.length === 0) return this.error(6, X(this.clonePosition(), this.clonePosition()));
2978
2944
  e7 = { style: r3, styleLocation: X(t4, this.clonePosition()) };
2979
2945
  }
@@ -2981,7 +2947,7 @@ var Ia = class {
2981
2947
  if (t3.err) return t3;
2982
2948
  let i3 = X(r2, this.clonePosition());
2983
2949
  if (e7 && e7.style.startsWith(`::`)) {
2984
- let t4 = ja(e7.style.slice(2));
2950
+ let t4 = Ca(e7.style.slice(2));
2985
2951
  if (a2 === `number`) {
2986
2952
  let r3 = this.parseNumberSkeletonFromString(t4, e7.styleLocation);
2987
2953
  return r3.err ? r3 : { val: { type: 2, value: n2, location: i3, style: r3.val }, err: null };
@@ -2989,8 +2955,8 @@ var Ia = class {
2989
2955
  {
2990
2956
  if (t4.length === 0) return this.error(10, i3);
2991
2957
  let r3 = t4;
2992
- this.locale && (r3 = Ca(t4, this.locale));
2993
- let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Zi(r3) : {} };
2958
+ this.locale && (r3 = ha(t4, this.locale));
2959
+ let o3 = { type: 1, pattern: r3, location: e7.styleLocation, parsedOptions: this.shouldParseSkeletons ? Ui(r3) : {} };
2994
2960
  return { val: { type: a2 === `date` ? 3 : 4, value: n2, location: i3, style: o3 }, err: null };
2995
2961
  }
2996
2962
  }
@@ -3015,7 +2981,7 @@ var Ia = class {
3015
2981
  let l2 = this.tryParseArgumentClose(r2);
3016
2982
  if (l2.err) return l2;
3017
2983
  let u2 = X(r2, this.clonePosition());
3018
- return a2 === `select` ? { val: { type: 5, value: n2, options: Aa(c2.val), location: u2 }, err: null } : { val: { type: 6, value: n2, options: Aa(c2.val), offset: s2, pluralType: a2 === `plural` ? `cardinal` : `ordinal`, location: u2 }, err: null };
2984
+ 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 };
3019
2985
  }
3020
2986
  default:
3021
2987
  return this.error(5, X(i2, o2));
@@ -3049,11 +3015,11 @@ var Ia = class {
3049
3015
  parseNumberSkeletonFromString(e6, t2) {
3050
3016
  let n2 = [];
3051
3017
  try {
3052
- n2 = $i(e6);
3018
+ n2 = Gi(e6);
3053
3019
  } catch {
3054
3020
  return this.error(7, t2);
3055
3021
  }
3056
- return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? la(n2) : {} }, err: null };
3022
+ return { val: { type: 0, tokens: n2, location: t2, parsedOptions: this.shouldParseSkeletons ? ta(n2) : {} }, err: null };
3057
3023
  }
3058
3024
  tryParsePluralOrSelectOptions(e6, t2, n2, r2) {
3059
3025
  let i2 = false, a2 = [], o2 = /* @__PURE__ */ new Set(), { value: s2, location: c2 } = r2;
@@ -3135,7 +3101,7 @@ var Ia = class {
3135
3101
  }
3136
3102
  }
3137
3103
  bumpSpace() {
3138
- for (; !this.isEOF() && Ba(this.char()); ) this.bump();
3104
+ for (; !this.isEOF() && Ma(this.char()); ) this.bump();
3139
3105
  }
3140
3106
  peek() {
3141
3107
  if (this.isEOF()) return null;
@@ -3143,34 +3109,34 @@ var Ia = class {
3143
3109
  return this.message.charCodeAt(t2 + (e6 >= 65536 ? 2 : 1)) ?? null;
3144
3110
  }
3145
3111
  };
3146
- function La(e6) {
3112
+ function ka(e6) {
3147
3113
  return e6 >= 97 && e6 <= 122 || e6 >= 65 && e6 <= 90;
3148
3114
  }
3149
- function Ra(e6) {
3150
- return La(e6) || e6 === 47;
3115
+ function Aa(e6) {
3116
+ return ka(e6) || e6 === 47;
3151
3117
  }
3152
- function za(e6) {
3118
+ function ja(e6) {
3153
3119
  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;
3154
3120
  }
3155
- function Ba(e6) {
3121
+ function Ma(e6) {
3156
3122
  return e6 >= 9 && e6 <= 13 || e6 === 32 || e6 === 133 || e6 >= 8206 && e6 <= 8207 || e6 === 8232 || e6 === 8233;
3157
3123
  }
3158
- function Va(e6) {
3124
+ function Na(e6) {
3159
3125
  e6.forEach((e7) => {
3160
- if (delete e7.location, ga(e7) || _a(e7)) for (let t2 in e7.options) delete e7.options[t2].location, Va(e7.options[t2].value);
3161
- else pa(e7) && ba(e7.style) || (ma(e7) || ha(e7)) && xa(e7.style) ? delete e7.style.location : ya(e7) && Va(e7.children);
3126
+ if (delete e7.location, ca(e7) || la(e7)) for (let t2 in e7.options) delete e7.options[t2].location, Na(e7.options[t2].value);
3127
+ else aa(e7) && fa(e7.style) || (oa(e7) || sa(e7)) && pa(e7.style) ? delete e7.style.location : da(e7) && Na(e7.children);
3162
3128
  });
3163
3129
  }
3164
- function Ha(e6, t2 = {}) {
3130
+ function Pa(e6, t2 = {}) {
3165
3131
  t2 = { shouldParseSkeletons: true, requiresOtherClause: true, ...t2 };
3166
- let n2 = new Ia(e6, t2).parse();
3132
+ let n2 = new Oa(e6, t2).parse();
3167
3133
  if (n2.err) {
3168
- let e7 = SyntaxError(ua[n2.err.kind]);
3134
+ let e7 = SyntaxError(na[n2.err.kind]);
3169
3135
  throw e7.location = n2.err.location, e7.originalMessage = n2.err.message, e7;
3170
3136
  }
3171
- return t2?.captureLocation || Va(n2.val), n2.val;
3137
+ return t2?.captureLocation || Na(n2.val), n2.val;
3172
3138
  }
3173
- var Ua = class extends Error {
3139
+ var Fa = class extends Error {
3174
3140
  constructor(e6, t2, n2) {
3175
3141
  super(e6), this.code = t2, this.originalMessage = n2;
3176
3142
  }
@@ -3178,54 +3144,54 @@ var Ua = class extends Error {
3178
3144
  return `[formatjs Error: ${this.code}] ${this.message}`;
3179
3145
  }
3180
3146
  };
3181
- var Wa = class extends Ua {
3147
+ var Ia = class extends Fa {
3182
3148
  constructor(e6, t2, n2, r2) {
3183
3149
  super(`Invalid values for "${e6}": "${t2}". Options are "${Object.keys(n2).join(`", "`)}"`, `INVALID_VALUE`, r2);
3184
3150
  }
3185
3151
  };
3186
- var Ga = class extends Ua {
3152
+ var La = class extends Fa {
3187
3153
  constructor(e6, t2, n2) {
3188
3154
  super(`Value for "${e6}" must be of type ${t2}`, `INVALID_VALUE`, n2);
3189
3155
  }
3190
3156
  };
3191
- var Ka = class extends Ua {
3157
+ var Ra = class extends Fa {
3192
3158
  constructor(e6, t2) {
3193
3159
  super(`The intl string context variable "${e6}" was not provided to the string "${t2}"`, `MISSING_VALUE`, t2);
3194
3160
  }
3195
3161
  };
3196
- function qa(e6) {
3162
+ function za(e6) {
3197
3163
  return e6.length < 2 ? e6 : e6.reduce((e7, t2) => {
3198
3164
  let n2 = e7[e7.length - 1];
3199
3165
  return !n2 || n2.type !== 0 || t2.type !== 0 ? e7.push(t2) : n2.value += t2.value, e7;
3200
3166
  }, []);
3201
3167
  }
3202
- function Ja(e6) {
3168
+ function Ba(e6) {
3203
3169
  return typeof e6 == `function`;
3204
3170
  }
3205
- function Ya(e6, t2, n2, r2, i2, a2, o2) {
3206
- if (e6.length === 1 && da(e6[0])) return [{ type: 0, value: e6[0].value }];
3171
+ function Va(e6, t2, n2, r2, i2, a2, o2) {
3172
+ if (e6.length === 1 && ra(e6[0])) return [{ type: 0, value: e6[0].value }];
3207
3173
  let s2 = [];
3208
3174
  for (let c2 of e6) {
3209
- if (da(c2)) {
3175
+ if (ra(c2)) {
3210
3176
  s2.push({ type: 0, value: c2.value });
3211
3177
  continue;
3212
3178
  }
3213
- if (va(c2)) {
3179
+ if (ua(c2)) {
3214
3180
  typeof a2 == `number` && s2.push({ type: 0, value: n2.getNumberFormat(t2).format(a2) });
3215
3181
  continue;
3216
3182
  }
3217
3183
  let { value: e7 } = c2;
3218
- if (!(i2 && e7 in i2)) throw new Ka(e7, o2);
3184
+ if (!(i2 && e7 in i2)) throw new Ra(e7, o2);
3219
3185
  let l2 = i2[e7];
3220
- if (fa(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 });
3221
- else if (ma(c2)) {
3222
- let e8 = typeof c2.style == `string` ? r2.date[c2.style] : xa(c2.style) ? c2.style.parsedOptions : void 0;
3186
+ 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 });
3187
+ else if (oa(c2)) {
3188
+ let e8 = typeof c2.style == `string` ? r2.date[c2.style] : pa(c2.style) ? c2.style.parsedOptions : void 0;
3223
3189
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3224
- } else if (ha(c2)) {
3225
- let e8 = typeof c2.style == `string` ? r2.time[c2.style] : xa(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3190
+ } else if (sa(c2)) {
3191
+ let e8 = typeof c2.style == `string` ? r2.time[c2.style] : pa(c2.style) ? c2.style.parsedOptions : r2.time.medium;
3226
3192
  s2.push({ type: 0, value: n2.getDateTimeFormat(t2, e8).format(l2) });
3227
- } else if (pa(c2)) {
3228
- let e8 = typeof c2.style == `string` ? r2.number[c2.style] : ba(c2.style) ? c2.style.parsedOptions : void 0;
3193
+ } else if (aa(c2)) {
3194
+ let e8 = typeof c2.style == `string` ? r2.number[c2.style] : fa(c2.style) ? c2.style.parsedOptions : void 0;
3229
3195
  if (e8 && e8.scale) {
3230
3196
  let t3 = e8.scale || 1;
3231
3197
  if (typeof l2 == `bigint`) {
@@ -3235,40 +3201,40 @@ function Ya(e6, t2, n2, r2, i2, a2, o2) {
3235
3201
  }
3236
3202
  s2.push({ type: 0, value: n2.getNumberFormat(t2, e8).format(l2) });
3237
3203
  } else {
3238
- if (ya(c2)) {
3204
+ if (da(c2)) {
3239
3205
  let { children: e8, value: l3 } = c2, u2 = i2[l3];
3240
- if (!Ja(u2)) throw new Ga(l3, `function`, o2);
3241
- let d2 = u2(Ya(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3206
+ if (!Ba(u2)) throw new La(l3, `function`, o2);
3207
+ let d2 = u2(Va(e8, t2, n2, r2, i2, a2).map((e9) => e9.value));
3242
3208
  Array.isArray(d2) || (d2 = [d2]), s2.push(...d2.map((e9) => ({ type: typeof e9 == `string` ? 0 : 1, value: e9 })));
3243
3209
  }
3244
- if (ga(c2)) {
3210
+ if (ca(c2)) {
3245
3211
  let e8 = l2, a3 = (Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0) || c2.options.other;
3246
- if (!a3) throw new Wa(c2.value, l2, Object.keys(c2.options), o2);
3247
- s2.push(...Ya(a3.value, t2, n2, r2, i2));
3248
- } else if (_a(c2)) {
3212
+ if (!a3) throw new Ia(c2.value, l2, Object.keys(c2.options), o2);
3213
+ s2.push(...Va(a3.value, t2, n2, r2, i2));
3214
+ } else if (la(c2)) {
3249
3215
  let e8 = `=${l2}`, a3 = Object.prototype.hasOwnProperty.call(c2.options, e8) ? c2.options[e8] : void 0;
3250
3216
  if (!a3) {
3251
- if (!Intl.PluralRules) throw new Ua(`Intl.PluralRules is not available in this environment.
3217
+ if (!Intl.PluralRules) throw new Fa(`Intl.PluralRules is not available in this environment.
3252
3218
  Try polyfilling it using "@formatjs/intl-pluralrules"
3253
3219
  `, `MISSING_INTL_API`, o2);
3254
3220
  let e9 = typeof l2 == `bigint` ? Number(l2) : l2, r3 = n2.getPluralRules(t2, { type: c2.pluralType }).select(e9 - (c2.offset || 0));
3255
3221
  a3 = (Object.prototype.hasOwnProperty.call(c2.options, r3) ? c2.options[r3] : void 0) || c2.options.other;
3256
3222
  }
3257
- if (!a3) throw new Wa(c2.value, l2, Object.keys(c2.options), o2);
3223
+ if (!a3) throw new Ia(c2.value, l2, Object.keys(c2.options), o2);
3258
3224
  let u2 = typeof l2 == `bigint` ? Number(l2) : l2;
3259
- s2.push(...Ya(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3225
+ s2.push(...Va(a3.value, t2, n2, r2, i2, u2 - (c2.offset || 0)));
3260
3226
  }
3261
3227
  }
3262
3228
  }
3263
- return qa(s2);
3229
+ return za(s2);
3264
3230
  }
3265
- function Xa(e6, t2) {
3231
+ function Ha(e6, t2) {
3266
3232
  return t2 ? { ...e6, ...t2, ...Object.keys(e6).reduce((n2, r2) => (n2[r2] = { ...e6[r2], ...t2[r2] }, n2), {}) } : e6;
3267
3233
  }
3268
- function Za(e6, t2) {
3269
- return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Xa(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3234
+ function Ua(e6, t2) {
3235
+ return t2 ? Object.keys(e6).reduce((n2, r2) => (n2[r2] = Ha(e6[r2], t2[r2]), n2), { ...e6 }) : e6;
3270
3236
  }
3271
- function Qa(e6) {
3237
+ function Wa(e6) {
3272
3238
  return { create() {
3273
3239
  return { get(t2) {
3274
3240
  return e6[t2];
@@ -3277,23 +3243,23 @@ function Qa(e6) {
3277
3243
  } };
3278
3244
  } };
3279
3245
  }
3280
- function $a(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3281
- return { getNumberFormat: Ri((...e7) => new Intl.NumberFormat(...e7), { cache: Qa(e6.number), strategy: Yi.variadic }), getDateTimeFormat: Ri((...e7) => new Intl.DateTimeFormat(...e7), { cache: Qa(e6.dateTime), strategy: Yi.variadic }), getPluralRules: Ri((...e7) => new Intl.PluralRules(...e7), { cache: Qa(e6.pluralRules), strategy: Yi.variadic }) };
3246
+ function Ga(e6 = { number: {}, dateTime: {}, pluralRules: {} }) {
3247
+ 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 }) };
3282
3248
  }
3283
- var eo = class e5 {
3249
+ var Ka = class e5 {
3284
3250
  constructor(t2, n2 = e5.defaultLocale, r2, i2) {
3285
3251
  if (this.formatterCache = { number: {}, dateTime: {}, pluralRules: {} }, this.format = (e6) => {
3286
3252
  let t3 = this.formatToParts(e6);
3287
3253
  if (t3.length === 1) return t3[0].value;
3288
3254
  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), []);
3289
3255
  return n3.length <= 1 ? n3[0] || `` : n3;
3290
- }, this.formatToParts = (e6) => Ya(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`) {
3256
+ }, 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`) {
3291
3257
  if (this.message = t2, !e5.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3292
3258
  let { ...n3 } = i2 || {};
3293
3259
  this.ast = e5.__parse(t2, { ...n3, locale: this.resolvedLocale });
3294
3260
  } else this.ast = t2;
3295
3261
  if (!Array.isArray(this.ast)) throw TypeError(`A message must be provided as a String or AST.`);
3296
- this.formats = Za(e5.formats, r2), this.formatters = i2 && i2.formatters || $a(this.formatterCache);
3262
+ this.formats = Ua(e5.formats, r2), this.formatters = i2 && i2.formatters || Ga(this.formatterCache);
3297
3263
  }
3298
3264
  static {
3299
3265
  this.memoizedDefaultLocale = null;
@@ -3309,32 +3275,66 @@ var eo = class e5 {
3309
3275
  };
3310
3276
  }
3311
3277
  static {
3312
- this.__parse = Ha;
3278
+ this.__parse = Pa;
3313
3279
  }
3314
3280
  static {
3315
3281
  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` } } };
3316
3282
  }
3317
3283
  };
3318
- function to(e6, t2) {
3319
- return oo(e6) || ao(e6, t2) || ro(e6, t2) || no();
3284
+ var qa = [`__proto__`, `constructor`, `prototype`];
3285
+ function Ja(e6, t2, n2) {
3286
+ function r2(e7) {
3287
+ return e7 && e7.indexOf(`###`) > -1 ? e7.replace(/###/g, `.`) : e7;
3288
+ }
3289
+ function i2() {
3290
+ return !e6 || typeof e6 == `string`;
3291
+ }
3292
+ for (var a2 = typeof t2 == `string` ? t2.split(`.`) : [].concat(t2); a2.length > 1; ) {
3293
+ if (i2()) return {};
3294
+ var o2 = r2(a2.shift());
3295
+ if (qa.indexOf(o2) > -1) return {};
3296
+ !e6[o2] && n2 && (e6[o2] = new n2()), e6 = e6[o2];
3297
+ }
3298
+ if (i2()) return {};
3299
+ var s2 = r2(a2.shift());
3300
+ return qa.indexOf(s2) > -1 ? {} : { obj: e6, k: s2 };
3320
3301
  }
3321
- function no() {
3302
+ function Ya(e6, t2, n2) {
3303
+ var r2 = Ja(e6, t2, Object), i2 = r2.obj, a2 = r2.k;
3304
+ i2 !== void 0 && (i2[a2] = n2);
3305
+ }
3306
+ function Xa(e6, t2) {
3307
+ var n2 = Ja(e6, t2), r2 = n2.obj, i2 = n2.k;
3308
+ if (r2) return r2[i2];
3309
+ }
3310
+ function Za(e6) {
3311
+ return [...arguments].slice(1).forEach(function(t2) {
3312
+ if (t2) for (var n2 = 0, r2 = Object.keys(t2); n2 < r2.length; n2++) {
3313
+ var i2 = r2[n2];
3314
+ qa.indexOf(i2) > -1 || e6[i2] === void 0 && (e6[i2] = t2[i2]);
3315
+ }
3316
+ }), e6;
3317
+ }
3318
+ function Qa(e6, t2) {
3319
+ return ro(e6) || no(e6, t2) || eo(e6, t2) || $a();
3320
+ }
3321
+ function $a() {
3322
3322
  throw TypeError(`Invalid attempt to destructure non-iterable instance.
3323
3323
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
3324
3324
  }
3325
- function ro(e6, t2) {
3325
+ function eo(e6, t2) {
3326
3326
  if (e6) {
3327
- if (typeof e6 == `string`) return io(e6, t2);
3327
+ if (typeof e6 == `string`) return to(e6, t2);
3328
3328
  var n2 = {}.toString.call(e6).slice(8, -1);
3329
- 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) ? io(e6, t2) : void 0;
3329
+ 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;
3330
3330
  }
3331
3331
  }
3332
- function io(e6, t2) {
3332
+ function to(e6, t2) {
3333
3333
  (t2 == null || t2 > e6.length) && (t2 = e6.length);
3334
3334
  for (var n2 = 0, r2 = Array(t2); n2 < t2; n2++) r2[n2] = e6[n2];
3335
3335
  return r2;
3336
3336
  }
3337
- function ao(e6, t2) {
3337
+ function no(e6, t2) {
3338
3338
  var n2 = e6 == null ? null : typeof Symbol < `u` && e6[Symbol.iterator] || e6[`@@iterator`];
3339
3339
  if (n2 != null) {
3340
3340
  var r2, i2, a2, o2, s2 = [], c2 = true, l2 = false;
@@ -3355,18 +3355,10 @@ function ao(e6, t2) {
3355
3355
  return s2;
3356
3356
  }
3357
3357
  }
3358
- function oo(e6) {
3358
+ function ro(e6) {
3359
3359
  if (Array.isArray(e6)) return e6;
3360
3360
  }
3361
- function Z(e6) {
3362
- "@babel/helpers - typeof";
3363
- return Z = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
3364
- return typeof e7;
3365
- } : function(e7) {
3366
- return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3367
- }, Z(e6);
3368
- }
3369
- function so(e6, t2) {
3361
+ function io(e6, t2) {
3370
3362
  var n2 = Object.keys(e6);
3371
3363
  if (Object.getOwnPropertySymbols) {
3372
3364
  var r2 = Object.getOwnPropertySymbols(e6);
@@ -3376,37 +3368,37 @@ function so(e6, t2) {
3376
3368
  }
3377
3369
  return n2;
3378
3370
  }
3379
- function co(e6) {
3371
+ function ao(e6) {
3380
3372
  for (var t2 = 1; t2 < arguments.length; t2++) {
3381
3373
  var n2 = arguments[t2] == null ? {} : arguments[t2];
3382
- t2 % 2 ? so(Object(n2), true).forEach(function(t3) {
3383
- lo(e6, t3, n2[t3]);
3384
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : so(Object(n2)).forEach(function(t3) {
3374
+ t2 % 2 ? io(Object(n2), true).forEach(function(t3) {
3375
+ oo(e6, t3, n2[t3]);
3376
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e6, Object.getOwnPropertyDescriptors(n2)) : io(Object(n2)).forEach(function(t3) {
3385
3377
  Object.defineProperty(e6, t3, Object.getOwnPropertyDescriptor(n2, t3));
3386
3378
  });
3387
3379
  }
3388
3380
  return e6;
3389
3381
  }
3390
- function lo(e6, t2, n2) {
3391
- return (t2 = mo(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3382
+ function oo(e6, t2, n2) {
3383
+ return (t2 = uo(t2)) in e6 ? Object.defineProperty(e6, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e6[t2] = n2, e6;
3392
3384
  }
3393
- function uo(e6, t2) {
3385
+ function so(e6, t2) {
3394
3386
  if (!(e6 instanceof t2)) throw TypeError(`Cannot call a class as a function`);
3395
3387
  }
3396
- function fo(e6, t2) {
3388
+ function co(e6, t2) {
3397
3389
  for (var n2 = 0; n2 < t2.length; n2++) {
3398
3390
  var r2 = t2[n2];
3399
- r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, mo(r2.key), r2);
3391
+ r2.enumerable = r2.enumerable || false, r2.configurable = true, `value` in r2 && (r2.writable = true), Object.defineProperty(e6, uo(r2.key), r2);
3400
3392
  }
3401
3393
  }
3402
- function po(e6, t2, n2) {
3403
- return t2 && fo(e6.prototype, t2), n2 && fo(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3394
+ function lo(e6, t2, n2) {
3395
+ return t2 && co(e6.prototype, t2), n2 && co(e6, n2), Object.defineProperty(e6, "prototype", { writable: false }), e6;
3404
3396
  }
3405
- function mo(e6) {
3406
- var t2 = ho(e6, `string`);
3397
+ function uo(e6) {
3398
+ var t2 = fo(e6, `string`);
3407
3399
  return Z(t2) == `symbol` ? t2 : t2 + ``;
3408
3400
  }
3409
- function ho(e6, t2) {
3401
+ function fo(e6, t2) {
3410
3402
  if (Z(e6) != `object` || !e6) return e6;
3411
3403
  var n2 = e6[Symbol.toPrimitive];
3412
3404
  if (n2 !== void 0) {
@@ -3416,45 +3408,81 @@ function ho(e6, t2) {
3416
3408
  }
3417
3409
  return (t2 === `string` ? String : Number)(e6);
3418
3410
  }
3419
- function go() {
3411
+ function Z(e6) {
3412
+ "@babel/helpers - typeof";
3413
+ return Z = typeof Symbol == `function` && typeof Symbol.iterator == `symbol` ? function(e7) {
3414
+ return typeof e7;
3415
+ } : function(e7) {
3416
+ return e7 && typeof Symbol == `function` && e7.constructor === Symbol && e7 !== Symbol.prototype ? `symbol` : typeof e7;
3417
+ }, Z(e6);
3418
+ }
3419
+ var po = `https://www.i18next.com/how-to/using-icu-or-mf2`;
3420
+ var mo = [`zero`, `one`, `two`, `few`, `many`, `other`];
3421
+ function ho() {
3420
3422
  return { memoize: true, memoizeFallback: false, bindI18n: ``, bindI18nStore: ``, parseErrorHandler: function(e6, t2, n2, r2) {
3421
3423
  return n2;
3422
3424
  }, parseLngForICU: function(e6) {
3423
3425
  return e6;
3424
3426
  }, escapeVariables: false };
3425
3427
  }
3428
+ function go(e6, t2, n2, r2) {
3429
+ 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}`;
3430
+ }
3426
3431
  var _o = function() {
3427
3432
  function e6(t2) {
3428
- uo(this, e6), this.type = `i18nFormat`, this.mem = {}, this.init(null, t2);
3433
+ so(this, e6), this.type = `i18nFormat`, this.mem = {}, this.warned = /* @__PURE__ */ new Set(), this.init(null, t2);
3429
3434
  }
3430
- return po(e6, [{ key: `init`, value: function(e7, t2) {
3435
+ return lo(e6, [{ key: `init`, value: function(e7, t2) {
3431
3436
  var n2 = this, r2 = e7 && e7.options && e7.options.i18nFormat || {};
3432
- if (this.options = Li(r2, t2, this.options || {}, go()), this.formats = this.options.formats, e7) {
3437
+ if (this.options = Za(r2, t2, this.options || {}, ho()), this.formats = this.options.formats, e7) {
3433
3438
  var i2 = this.options, a2 = i2.bindI18n, o2 = i2.bindI18nStore, s2 = i2.memoize;
3434
- e7.IntlMessageFormat = eo, e7.ICU = this, s2 && (a2 && e7.on(a2, function() {
3439
+ 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() {
3435
3440
  return n2.clearCache();
3436
3441
  }), o2 && e7.store.on(o2, function() {
3437
3442
  return n2.clearCache();
3438
3443
  }));
3439
3444
  }
3440
3445
  } }, { key: `addUserDefinedFormats`, value: function(e7) {
3441
- this.formats = this.formats ? co(co({}, this.formats), e7) : e7;
3446
+ this.formats = this.formats ? ao(ao({}, this.formats), e7) : e7, this.clearCache();
3442
3447
  } }, { key: `parse`, value: function(e7, t2, n2, r2, i2, a2) {
3443
- var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && `${n2}.${r2}.${i2.replace(/\./g, `###`)}`, c2;
3444
- this.options.memoize && (c2 = Ni(this.mem, s2));
3448
+ var o2 = a2 && a2.resolved && a2.resolved.res, s2 = this.options.memoize && [n2, r2, i2], c2;
3449
+ if (this.options.memoize) {
3450
+ var l2 = Xa(this.mem, s2);
3451
+ l2 && l2.res === e7 && (c2 = l2.fc);
3452
+ }
3445
3453
  try {
3446
- return c2 || (c2 = new eo(e7, this.options.parseLngForICU(n2), this.formats, { ignoreTag: true }), this.options.memoize && (this.options.memoizeFallback || !a2 || o2) && Mi(this.mem, s2, c2)), c2.format(this.escapeVariableValues(t2));
3447
- } catch (n3) {
3448
- return this.options.parseErrorHandler(n3, i2, e7, t2);
3454
+ 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 }));
3455
+ var u2 = t2 && t2.replace && Z(t2.replace) === `object` ? ao(ao({}, t2), t2.replace) : t2;
3456
+ return c2.format(this.escapeVariableValues(u2));
3457
+ } catch (a3) {
3458
+ 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);
3449
3459
  }
3450
3460
  } }, { key: `addLookupKeys`, value: function(e7, t2, n2, r2, i2) {
3451
- return e7;
3461
+ return this.debug && i2 && this.checkSuffixKeys(t2, n2, r2, i2), e7;
3462
+ } }, { key: `checkSuffixKeys`, value: function(e7, t2, n2, r2) {
3463
+ 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})`;
3464
+ if (i2 !== void 0 && this.firstTime(`plural ${t2} ${n2} ${e7}`)) {
3465
+ var p2 = mo.concat(mo.map(function(e8) {
3466
+ return `ordinal${c2}${e8}`;
3467
+ })).map(function(t3) {
3468
+ return `${e7}${c2}${t3}`;
3469
+ }).filter(function(e8) {
3470
+ return d2.getResource(t2, n2, e8) !== void 0;
3471
+ });
3472
+ p2.length && this.warn(`${f2} was called with count, but i18next-icu does not look up plural suffix keys (${p2.join(`, `)}). Put the plural into the message: {count, plural, one {# item} other {# items}}.`);
3473
+ }
3474
+ var m2 = `${e7}${u2}${a2}`;
3475
+ a2 !== void 0 && a2 !== `` && this.firstTime(`context ${t2} ${n2} ${m2}`) && d2.getResource(t2, n2, m2) !== void 0 && this.warn(`${f2} was called with context "${a2}", but i18next-icu does not look up context keys (${m2}). Use a select in the message: {context, select, ${a2} {...} other {...}}.`);
3476
+ } }, { key: `firstTime`, value: function(e7) {
3477
+ return !this.warned.has(e7) && (this.warned.add(e7), true);
3478
+ } }, { key: `warn`, value: function(e7) {
3479
+ this.i18next.services.logger.warn(`i18next-icu: ${e7} See ${po}`);
3452
3480
  } }, { key: `clearCache`, value: function() {
3453
3481
  this.mem = {};
3454
3482
  } }, { key: `escapeVariableValues`, value: function(e7) {
3455
3483
  if (!this.options.escapeVariables || !e7 || Z(e7) !== `object`) return e7;
3456
3484
  for (var t2 = {}, n2 = 0, r2 = Object.entries(e7); n2 < r2.length; n2++) {
3457
- var i2 = to(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3485
+ var i2 = Qa(r2[n2], 2), a2 = i2[0], o2 = i2[1];
3458
3486
  t2[a2] = typeof o2 == `string` ? o2.replace(/&/g, `&amp;`).replace(/</g, `&lt;`).replace(/>/g, `&gt;`).replace(/"/g, `&quot;`).replace(/'/g, `&#39;`) : o2;
3459
3487
  }
3460
3488
  return t2;