@nxgt/material 3.83.0 → 3.84.1

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 (115) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +2 -2
  3. package/dist/{alert-dialog-DXLJ4AZP.js → alert-dialog-1t6ULy5i.js} +1 -1
  4. package/dist/{async-slice-BfVokA46.js → async-slice-xyA9Uzct.js} +1 -1
  5. package/dist/{background-Q4Ek3rNy.js → background-DHjdFbNo.js} +86 -86
  6. package/dist/backgrounds.js +1 -1
  7. package/dist/{button-CSKUtMI3.js → button-DhiNGrdT.js} +1 -1
  8. package/dist/{calculator-Cv00UQgR.js → calculator-BcgxxScL.js} +10 -10
  9. package/dist/calculator-field.js +6 -6
  10. package/dist/{calculator-segment-CwnC2cV_.js → calculator-segment-C4WQAHcN.js} +1 -1
  11. package/dist/calculator.js +1 -1
  12. package/dist/charts.js +3 -3
  13. package/dist/{chip-BGn0V6Pt.js → chip-m0_usuzd.js} +2 -2
  14. package/dist/{code-editor-B25-mWhb.js → code-editor-BgKFrcld.js} +4 -4
  15. package/dist/code-editor.js +4 -4
  16. package/dist/{code-language-items-oRjtO3qV.js → code-language-items-BWw17W9s.js} +2 -2
  17. package/dist/components/theme-tokens.css +3 -3
  18. package/dist/components/ui/collections/server-table/server-table-phone-row.css +12 -0
  19. package/dist/{components-C22jCW4C.js → components-BRJM9hd1.js} +10691 -10624
  20. package/dist/components.js +23 -23
  21. package/dist/{conversion-variant-wZd-G6xR.js → conversion-variant-DultZZQm.js} +3 -3
  22. package/dist/{currency-field-DizBTAat.js → currency-field-CPbaM7ay.js} +4 -4
  23. package/dist/{dialog-B-3s-oXt.js → dialog-DmlG9opW.js} +3 -3
  24. package/dist/dnd.js +1 -1
  25. package/dist/{dropdown-menu-C6rcYGB9.js → dropdown-menu-CDKev8dk.js} +1 -1
  26. package/dist/editor.js +7 -7
  27. package/dist/{empty-state-CSkghnD9.js → empty-state-C56000TB.js} +1 -1
  28. package/dist/{financial-variant-igpGRbGw.js → financial-variant-BYjQ690K.js} +5 -5
  29. package/dist/{hooks-k8_f3B0k.js → hooks-BTwLAy_A.js} +119 -83
  30. package/dist/hooks.js +3 -3
  31. package/dist/{hover-card-DuaVVKMb.js → hover-card-CDtW6utN.js} +1 -1
  32. package/dist/i18n.js +3 -3
  33. package/dist/{icon-badge-3ThP6EOl.js → icon-badge-ec7MmUGA.js} +1 -1
  34. package/dist/{icon-button-4PKlaI1g.js → icon-button-CG4aO8Gh.js} +1 -1
  35. package/dist/lib/components/ui/fields/contacts/placeholders.d.ts +1 -1
  36. package/dist/lib/components/ui/widgets/event-calendar/event-calendar-context.d.ts +6 -1
  37. package/dist/lib/components/ui/widgets/event-calendar/event-calendar-shell.d.ts +1 -1
  38. package/dist/lib/components/ui/widgets/event-calendar/index.d.ts +1 -1
  39. package/dist/lib/components/ui/widgets/event-calendar/partials/event-preview-title.d.ts +6 -2
  40. package/dist/lib/components/ui/widgets/event-calendar/partials/event-preview.d.ts +3 -1
  41. package/dist/lib/components/ui/widgets/event-calendar/template.types.d.ts +5 -1
  42. package/dist/lib/components/ui/widgets/event-calendar/types.d.ts +20 -0
  43. package/dist/lib/components/ui/widgets/event-calendar/use-template-calendar.d.ts +3 -1
  44. package/dist/lib/hooks/index.d.ts +1 -0
  45. package/dist/lib/hooks/poll.d.ts +26 -0
  46. package/dist/lib/hooks/use-poll.d.ts +30 -0
  47. package/dist/lib/i18n/resources/en/en.d.ts +1 -0
  48. package/dist/lib/i18n/resources/en/material.json.d.ts +1 -0
  49. package/dist/lib/i18n/resources/fr/fr.d.ts +1 -0
  50. package/dist/lib/i18n/resources/fr/material.json.d.ts +1 -0
  51. package/dist/lib/i18n/resources/resources.d.ts +2 -0
  52. package/dist/lib/i18n/translator.d.ts +1 -1
  53. package/dist/lib.js +1 -1
  54. package/dist/main.js +30 -30
  55. package/dist/map.js +7 -7
  56. package/dist/material.css +1 -1
  57. package/dist/pdf-reader.js +1 -1
  58. package/dist/{percent-field-QwU1l2Q4.js → percent-field-8_pILs15.js} +1 -1
  59. package/dist/{picker-surface-CiTycWgV.js → picker-surface-pyGv-Qh9.js} +4 -4
  60. package/dist/{popover-YmbzbKQG.js → popover-3EF4q2CT.js} +1 -1
  61. package/dist/{pos-types-BFrapNmx.js → pos-types-Dv2UxKSN.js} +1 -1
  62. package/dist/{pos-variant-CctfqieO.js → pos-variant-DJvtN9N8.js} +4 -4
  63. package/dist/print.js +1 -1
  64. package/dist/{programmer-variant-Dd0YOixn.js → programmer-variant-Bmcq2KzC.js} +2 -2
  65. package/dist/{public-CshR_aW7.js → public-BNebh4z0.js} +9 -9
  66. package/dist/{rich-code-block-BuJLDoBu.js → rich-code-block-DmX7d58S.js} +5 -5
  67. package/dist/{scientific-variant-CjErQxuZ.js → scientific-variant-DijUrpP8.js} +2 -2
  68. package/dist/{sortable-provider-DU2nvpFc.js → sortable-provider-Cnmt_gWu.js} +2 -2
  69. package/dist/{spinner-DH1mm8hH.js → spinner-C6LP2Rw8.js} +1 -1
  70. package/dist/{tabs-Um0SFyf1.js → tabs-Bj1zOe7-.js} +1 -1
  71. package/dist/theme-picker.js +2 -2
  72. package/dist/{theme-toggle-C-Ih4uQU.js → theme-toggle-Cxku5iBP.js} +1 -1
  73. package/dist/{toolbar-items-BoEY5bkt.js → toolbar-items-CEIuSxU_.js} +4 -4
  74. package/dist/{translate-material-D4rn5UaQ.js → translate-material-DI3nmQ6I.js} +1 -1
  75. package/dist/{translator-CcEgQ-H7.js → translator-BstxG_hN.js} +177 -163
  76. package/dist/{use-chat-composer-DG9YkB4L.js → use-chat-composer-BqLkk_iH.js} +15 -15
  77. package/dist/{use-heading-spy-gDNtK1sU.js → use-heading-spy-nFyb9_KE.js} +4 -4
  78. package/dist/{use-material-translation-DYrfV_JJ.js → use-material-translation-1kCHtB0p.js} +1 -1
  79. package/dist/{use-return-focus-C_Qz_yTk.js → use-return-focus-Hv8rn55-.js} +1 -1
  80. package/docs/components/rich-widgets.md +22 -1
  81. package/docs/guides/helpers.md +40 -0
  82. package/docs/guides/theming.md +2 -2
  83. package/docs/previews/backgrounds-background-from-theme.webp +0 -0
  84. package/docs/previews/backgrounds-celestial.webp +0 -0
  85. package/docs/previews/backgrounds-geometry-more.webp +0 -0
  86. package/docs/previews/backgrounds-geometry.webp +0 -0
  87. package/docs/previews/backgrounds-icons.webp +0 -0
  88. package/docs/previews/backgrounds-illustrated-scenes.webp +0 -0
  89. package/docs/previews/backgrounds-light-more.webp +0 -0
  90. package/docs/previews/backgrounds-light.webp +0 -0
  91. package/docs/previews/backgrounds-material-more.webp +0 -0
  92. package/docs/previews/backgrounds-matrix.webp +0 -0
  93. package/docs/previews/backgrounds-moon.webp +0 -0
  94. package/docs/previews/backgrounds-motif-shapes.webp +0 -0
  95. package/docs/previews/backgrounds-motifs.webp +0 -0
  96. package/docs/previews/backgrounds-sky-overlay.webp +0 -0
  97. package/docs/roadmap.md +6 -0
  98. package/docs/troubleshooting.md +2 -2
  99. package/lib/components/theme-tokens.css +3 -3
  100. package/lib/components/ui/collections/server-table/server-table-phone-row.css +12 -0
  101. package/lib/themes/ambre.css +2 -2
  102. package/lib/themes/ardoise.css +2 -2
  103. package/lib/themes/bleumono.css +2 -2
  104. package/lib/themes/bluemoon.css +2 -2
  105. package/lib/themes/corail.css +2 -2
  106. package/lib/themes/foret.css +2 -2
  107. package/lib/themes/lavande.css +2 -2
  108. package/lib/themes/menthe.css +2 -2
  109. package/lib/themes/ocean.css +2 -2
  110. package/lib/themes/pink.css +2 -2
  111. package/lib/themes/prune.css +1 -1
  112. package/lib/themes/sable.css +2 -2
  113. package/lib/themes/slate.css +1 -1
  114. package/lib/themes/teal.css +2 -2
  115. package/package.json +4 -4
@@ -1755,6 +1755,7 @@ var r = {
1755
1755
  title: "Title",
1756
1756
  description: "Add description",
1757
1757
  color: "Color",
1758
+ edit: "Edit event",
1758
1759
  delete: "Delete event",
1759
1760
  "delete-confirm": "This event will be removed.",
1760
1761
  "open-day": "Open {date}",
@@ -5199,6 +5200,7 @@ var r = {
5199
5200
  title: "Titre",
5200
5201
  description: "Ajouter une description",
5201
5202
  color: "Couleur",
5203
+ edit: "Modifier l'événement",
5202
5204
  delete: "Supprimer l'événement",
5203
5205
  "delete-confirm": "Cet événement sera retiré.",
5204
5206
  "open-day": "Ouvrir le {date}",
@@ -6902,8 +6904,8 @@ function s(e, n, r) {
6902
6904
  //#endregion
6903
6905
  //#region ../../node_modules/@formatjs/fast-memoize/index.js
6904
6906
  function c(e, t) {
6905
- let n = t && t.cache ? t.cache : re, r = t && t.serializer ? t.serializer : te;
6906
- return (t && t.strategy ? t.strategy : p)(e, {
6907
+ let n = t && t.cache ? t.cache : ae, r = t && t.serializer ? t.serializer : re;
6908
+ return (t && t.strategy ? t.strategy : ee)(e, {
6907
6909
  cache: n,
6908
6910
  serializer: r
6909
6911
  });
@@ -6922,19 +6924,19 @@ function d(e, t, n) {
6922
6924
  function f(e, t, n, r, i) {
6923
6925
  return n.bind(t, e, r, i);
6924
6926
  }
6925
- function p(e, t) {
6927
+ function ee(e, t) {
6926
6928
  let n = e.length === 1 ? u : d;
6927
6929
  return f(e, this, n, t.cache.create(), t.serializer);
6928
6930
  }
6929
- function m(e, t) {
6931
+ function te(e, t) {
6930
6932
  return f(e, this, d, t.cache.create(), t.serializer);
6931
6933
  }
6932
- function ee(e, t) {
6934
+ function ne(e, t) {
6933
6935
  return f(e, this, u, t.cache.create(), t.serializer);
6934
6936
  }
6935
- var te = function() {
6937
+ var re = function() {
6936
6938
  return JSON.stringify(arguments);
6937
- }, ne = class {
6939
+ }, ie = class {
6938
6940
  constructor() {
6939
6941
  this.cache = Object.create(null);
6940
6942
  }
@@ -6944,15 +6946,15 @@ var te = function() {
6944
6946
  set(e, t) {
6945
6947
  this.cache[e] = t;
6946
6948
  }
6947
- }, re = { create: function() {
6948
- return new ne();
6949
- } }, h = {
6950
- variadic: m,
6951
- monadic: ee
6952
- }, ie = /(?:[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;
6953
- function ae(e) {
6949
+ }, ae = { create: function() {
6950
+ return new ie();
6951
+ } }, p = {
6952
+ variadic: te,
6953
+ monadic: ne
6954
+ }, oe = /(?:[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;
6955
+ function se(e) {
6954
6956
  let t = {};
6955
- return e.replace(ie, (e) => {
6957
+ return e.replace(oe, (e) => {
6956
6958
  let n = e.length;
6957
6959
  switch (e[0]) {
6958
6960
  case "G":
@@ -7047,10 +7049,10 @@ function ae(e) {
7047
7049
  return "";
7048
7050
  }), t;
7049
7051
  }
7050
- var oe = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
7051
- function se(e) {
7052
+ var ce = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
7053
+ function le(e) {
7052
7054
  if (e.length === 0) throw Error("Number skeleton cannot be empty");
7053
- let t = e.split(oe).filter((e) => e.length > 0), n = [];
7055
+ let t = e.split(ce).filter((e) => e.length > 0), n = [];
7054
7056
  for (let e of t) {
7055
7057
  let t = e.split("/");
7056
7058
  if (t.length === 0) throw Error("Invalid number skeleton");
@@ -7063,17 +7065,17 @@ function se(e) {
7063
7065
  }
7064
7066
  return n;
7065
7067
  }
7066
- function ce(e) {
7068
+ function ue(e) {
7067
7069
  return e.replace(/^(.*?)-/, "");
7068
7070
  }
7069
- var g = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, _ = /^(@+)?(\+|#+)?[rs]?$/g, le = /(\*)(0+)|(#+)(0+)|(0+)/g, v = /^(0+)$/;
7070
- function y(e) {
7071
+ var m = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, h = /^(@+)?(\+|#+)?[rs]?$/g, de = /(\*)(0+)|(#+)(0+)|(0+)/g, g = /^(0+)$/;
7072
+ function _(e) {
7071
7073
  let t = {};
7072
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(_, function(e, n, r) {
7074
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(h, function(e, n, r) {
7073
7075
  return typeof r == "string" ? r === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof r == "string" ? r.length : 0)) : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length), "";
7074
7076
  }), t;
7075
7077
  }
7076
- function b(e) {
7078
+ function v(e) {
7077
7079
  switch (e) {
7078
7080
  case "sign-auto": return { signDisplay: "auto" };
7079
7081
  case "sign-accounting":
@@ -7096,19 +7098,19 @@ function b(e) {
7096
7098
  case "+_": return { signDisplay: "never" };
7097
7099
  }
7098
7100
  }
7099
- function ue(e) {
7101
+ function y(e) {
7100
7102
  let t;
7101
7103
  if (e[0] === "E" && e[1] === "E" ? (t = { notation: "engineering" }, e = e.slice(2)) : e[0] === "E" && (t = { notation: "scientific" }, e = e.slice(1)), t) {
7102
7104
  let n = e.slice(0, 2);
7103
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !v.test(e)) throw Error("Malformed concise eng/scientific notation");
7105
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !g.test(e)) throw Error("Malformed concise eng/scientific notation");
7104
7106
  t.minimumIntegerDigits = e.length;
7105
7107
  }
7106
7108
  return t;
7107
7109
  }
7108
- function x(e) {
7109
- return b(e) || {};
7110
+ function b(e) {
7111
+ return v(e) || {};
7110
7112
  }
7111
- function de(e) {
7113
+ function fe(e) {
7112
7114
  let t = {};
7113
7115
  for (let n of e) {
7114
7116
  switch (n.stem) {
@@ -7132,7 +7134,7 @@ function de(e) {
7132
7134
  continue;
7133
7135
  case "measure-unit":
7134
7136
  case "unit":
7135
- t.style = "unit", t.unit = ce(n.options[0]);
7137
+ t.style = "unit", t.unit = ue(n.options[0]);
7136
7138
  continue;
7137
7139
  case "compact-short":
7138
7140
  case "K":
@@ -7148,7 +7150,7 @@ function de(e) {
7148
7150
  notation: "scientific",
7149
7151
  ...n.options.reduce((e, t) => ({
7150
7152
  ...e,
7151
- ...x(t)
7153
+ ...b(t)
7152
7154
  }), {})
7153
7155
  };
7154
7156
  continue;
@@ -7158,7 +7160,7 @@ function de(e) {
7158
7160
  notation: "engineering",
7159
7161
  ...n.options.reduce((e, t) => ({
7160
7162
  ...e,
7161
- ...x(t)
7163
+ ...b(t)
7162
7164
  }), {})
7163
7165
  };
7164
7166
  continue;
@@ -7203,7 +7205,7 @@ function de(e) {
7203
7205
  continue;
7204
7206
  case "integer-width":
7205
7207
  if (n.options.length > 1) throw RangeError("integer-width stems only accept a single optional option");
7206
- n.options[0].replace(le, function(e, n, r, i, a, o) {
7208
+ n.options[0].replace(de, function(e, n, r, i, a, o) {
7207
7209
  if (n) t.minimumIntegerDigits = r.length;
7208
7210
  else if (i && a) throw Error("We currently do not support maximum integer digits");
7209
7211
  else if (o) throw Error("We currently do not support exact integer digits");
@@ -7211,13 +7213,13 @@ function de(e) {
7211
7213
  });
7212
7214
  continue;
7213
7215
  }
7214
- if (v.test(n.stem)) {
7216
+ if (g.test(n.stem)) {
7215
7217
  t.minimumIntegerDigits = n.stem.length;
7216
7218
  continue;
7217
7219
  }
7218
- if (g.test(n.stem)) {
7220
+ if (m.test(n.stem)) {
7219
7221
  if (n.options.length > 1) throw RangeError("Fraction-precision stems only accept a single optional option");
7220
- n.stem.replace(g, function(e, n, r, i, a, o) {
7222
+ n.stem.replace(m, function(e, n, r, i, a, o) {
7221
7223
  return r === "*" ? t.minimumFractionDigits = n.length : i && i[0] === "#" ? t.maximumFractionDigits = i.length : a && o ? (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length + o.length) : (t.minimumFractionDigits = n.length, t.maximumFractionDigits = n.length), "";
7222
7224
  });
7223
7225
  let e = n.options[0];
@@ -7226,23 +7228,23 @@ function de(e) {
7226
7228
  trailingZeroDisplay: "stripIfInteger"
7227
7229
  } : e && (t = {
7228
7230
  ...t,
7229
- ...y(e)
7231
+ ..._(e)
7230
7232
  });
7231
7233
  continue;
7232
7234
  }
7233
- if (_.test(n.stem)) {
7235
+ if (h.test(n.stem)) {
7234
7236
  t = {
7235
7237
  ...t,
7236
- ...y(n.stem)
7238
+ ..._(n.stem)
7237
7239
  };
7238
7240
  continue;
7239
7241
  }
7240
- let e = b(n.stem);
7242
+ let e = v(n.stem);
7241
7243
  e && (t = {
7242
7244
  ...t,
7243
7245
  ...e
7244
7246
  });
7245
- let r = ue(n.stem);
7247
+ let r = y(n.stem);
7246
7248
  r && (t = {
7247
7249
  ...t,
7248
7250
  ...r
@@ -7252,43 +7254,43 @@ function de(e) {
7252
7254
  }
7253
7255
  //#endregion
7254
7256
  //#region ../../node_modules/@formatjs/icu-messageformat-parser/index.js
7255
- var fe = /* @__PURE__ */ function(e) {
7257
+ var pe = /* @__PURE__ */ function(e) {
7256
7258
  return e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG", e;
7257
7259
  }({});
7258
- function S(e) {
7260
+ function x(e) {
7259
7261
  return e.type === 0;
7260
7262
  }
7261
- function pe(e) {
7263
+ function me(e) {
7262
7264
  return e.type === 1;
7263
7265
  }
7264
- function C(e) {
7266
+ function S(e) {
7265
7267
  return e.type === 2;
7266
7268
  }
7267
- function w(e) {
7269
+ function C(e) {
7268
7270
  return e.type === 3;
7269
7271
  }
7270
- function T(e) {
7272
+ function w(e) {
7271
7273
  return e.type === 4;
7272
7274
  }
7273
- function E(e) {
7275
+ function T(e) {
7274
7276
  return e.type === 5;
7275
7277
  }
7276
- function D(e) {
7278
+ function E(e) {
7277
7279
  return e.type === 6;
7278
7280
  }
7279
- function me(e) {
7281
+ function he(e) {
7280
7282
  return e.type === 7;
7281
7283
  }
7282
- function O(e) {
7284
+ function D(e) {
7283
7285
  return e.type === 8;
7284
7286
  }
7285
- function k(e) {
7287
+ function O(e) {
7286
7288
  return !!(e && typeof e == "object" && e.type === 0);
7287
7289
  }
7288
- function A(e) {
7290
+ function k(e) {
7289
7291
  return !!(e && typeof e == "object" && e.type === 1);
7290
7292
  }
7291
- var j = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, M = {
7293
+ var A = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ge = /([^\t-\r -\/:-@\[-\^`\{-~\x85\xA0-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u1680\u2000-\u200A\u2010-\u2029\u202F-\u203E\u2041-\u2053\u2055-\u205F\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3000-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]*)/g, j = {
7292
7294
  "001": ["H", "h"],
7293
7295
  419: [
7294
7296
  "h",
@@ -8451,23 +8453,27 @@ var j = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, M = {
8451
8453
  "h"
8452
8454
  ]
8453
8455
  };
8454
- function he(e, t) {
8456
+ function _e(e, t) {
8455
8457
  let n = "";
8456
8458
  for (let r = 0; r < e.length; r++) {
8457
8459
  let i = e.charAt(r);
8458
8460
  if (i === "j") {
8459
8461
  let a = 0;
8460
8462
  for (; r + 1 < e.length && e.charAt(r + 1) === i;) a++, r++;
8461
- let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = ge(t);
8463
+ let o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = M(t);
8462
8464
  for ((c == "H" || c == "k") && (s = 0); s-- > 0;) n += "a";
8463
8465
  for (; o-- > 0;) n = c + n;
8464
8466
  } else i === "J" ? n += "H" : n += i;
8465
8467
  }
8466
8468
  return n;
8467
8469
  }
8468
- function ge(e) {
8470
+ function M(e) {
8469
8471
  let t = e.hourCycle;
8470
- if (t === void 0 && e.hourCycles && e.hourCycles.length && (t = e.hourCycles[0]), t) switch (t) {
8472
+ if (t === void 0) {
8473
+ let n = e;
8474
+ t = n.getHourCycles?.()[0] ?? n.hourCycles?.[0];
8475
+ }
8476
+ if (t) switch (t) {
8471
8477
  case "h24": return "k";
8472
8478
  case "h23": return "H";
8473
8479
  case "h12": return "h";
@@ -8475,32 +8481,39 @@ function ge(e) {
8475
8481
  default: throw Error("Invalid hourCycle");
8476
8482
  }
8477
8483
  let n = e.language, r;
8478
- return n !== "root" && (r = e.maximize().region), (M[r || ""] || M[n || ""] || M[`${n}-001`] || M["001"])[0];
8484
+ return n !== "root" && (r = e.maximize().region), (j[`${n}-${r}`] || j[r || ""] || j[n || ""] || j[`${n}-001`] || j["001"])[0].charAt(0);
8479
8485
  }
8480
- var N = RegExp(`^${j.source}*`), P = RegExp(`${j.source}*$`);
8486
+ var N = RegExp(`^${A.source}*`), P = RegExp(`${A.source}*$`);
8481
8487
  function F(e, t) {
8482
8488
  return {
8483
8489
  start: e,
8484
8490
  end: t
8485
8491
  };
8486
8492
  }
8487
- var I = !!Object.fromEntries, L = !!String.prototype.trimStart, _e = !!String.prototype.trimEnd, R = I ? Object.fromEntries : function(e) {
8493
+ var I = !!Object.fromEntries, ve = !!String.prototype.trimStart, ye = !!String.prototype.trimEnd, L = I ? Object.fromEntries : function(e) {
8488
8494
  let t = {};
8489
8495
  for (let [n, r] of e) t[n] = r;
8490
8496
  return t;
8491
- }, ve = L ? function(e) {
8497
+ }, be = ve ? function(e) {
8492
8498
  return e.trimStart();
8493
8499
  } : function(e) {
8494
8500
  return e.replace(N, "");
8495
- }, ye = _e ? function(e) {
8501
+ }, xe = ye ? function(e) {
8496
8502
  return e.trimEnd();
8497
8503
  } : function(e) {
8498
8504
  return e.replace(P, "");
8499
- }, z = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
8500
- function be(e, t) {
8501
- return z.lastIndex = t, z.exec(e)[1] ?? "";
8505
+ }, R = Se();
8506
+ function Se() {
8507
+ try {
8508
+ let e = /* @__PURE__ */ RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
8509
+ if (e.exec("a ")?.[1] === "a") return e;
8510
+ } catch {}
8511
+ return ge;
8502
8512
  }
8503
- function xe(e) {
8513
+ function Ce(e, t) {
8514
+ return R.lastIndex = t, R.exec(e)[1] ?? "";
8515
+ }
8516
+ function we(e) {
8504
8517
  if (e.length === 0) return null;
8505
8518
  let t = 1, n = 1;
8506
8519
  for (let r = 0; r < e.length;) {
@@ -8524,7 +8537,7 @@ function xe(e) {
8524
8537
  column: n
8525
8538
  };
8526
8539
  }
8527
- var Se = class {
8540
+ var Te = class {
8528
8541
  constructor(e, t = {}) {
8529
8542
  this.message = e, this.position = {
8530
8543
  offset: 0,
@@ -8537,7 +8550,7 @@ var Se = class {
8537
8550
  if (this.message.length > 0) {
8538
8551
  let e = this.message.charCodeAt(0);
8539
8552
  if (e !== 35 && e !== 39 && e !== 60 && e !== 123 && e !== 125) {
8540
- let e = xe(this.message);
8553
+ let e = we(this.message);
8541
8554
  if (e) {
8542
8555
  let t = this.clonePosition();
8543
8556
  return this.position = e, {
@@ -8571,7 +8584,7 @@ var Se = class {
8571
8584
  } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
8572
8585
  if (n) break;
8573
8586
  return this.error(26, F(this.clonePosition(), this.clonePosition()));
8574
- } else if (i === 60 && !this.ignoreTag && B(this.peek() || 0)) {
8587
+ } else if (i === 60 && !this.ignoreTag && z(this.peek() || 0)) {
8575
8588
  let n = this.parseTag(e, t);
8576
8589
  if (n.err) return n;
8577
8590
  r.push(n.val);
@@ -8603,7 +8616,7 @@ var Se = class {
8603
8616
  if (i.err) return i;
8604
8617
  let a = i.val, o = this.clonePosition();
8605
8618
  if (this.bumpIf("</")) {
8606
- if (this.isEOF() || !B(this.char())) return this.error(23, F(o, this.clonePosition()));
8619
+ if (this.isEOF() || !z(this.char())) return this.error(23, F(o, this.clonePosition()));
8607
8620
  let e = this.clonePosition();
8608
8621
  return r === this.parseTagName() ? (this.bumpSpace(), this.bumpIf(">") ? {
8609
8622
  val: {
@@ -8619,7 +8632,7 @@ var Se = class {
8619
8632
  }
8620
8633
  parseTagName() {
8621
8634
  let e = this.offset();
8622
- for (this.bump(); !this.isEOF() && we(this.char());) this.bump();
8635
+ for (this.bump(); !this.isEOF() && De(this.char());) this.bump();
8623
8636
  return this.message.slice(e, this.offset());
8624
8637
  }
8625
8638
  parseLiteral(e, t) {
@@ -8653,7 +8666,7 @@ var Se = class {
8653
8666
  };
8654
8667
  }
8655
8668
  tryParseLeftAngleBracket() {
8656
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Ce(this.peek() || 0)) ? (this.bump(), "<") : null;
8669
+ return !this.isEOF() && this.char() === 60 && (this.ignoreTag || !Ee(this.peek() || 0)) ? (this.bump(), "<") : null;
8657
8670
  }
8658
8671
  tryParseQuote(e) {
8659
8672
  if (this.isEOF() || this.char() !== 39) return null;
@@ -8708,7 +8721,7 @@ var Se = class {
8708
8721
  }
8709
8722
  }
8710
8723
  parseIdentifierIfPossible() {
8711
- let e = this.clonePosition(), t = this.offset(), n = be(this.message, t), r = t + n.length;
8724
+ let e = this.clonePosition(), t = this.offset(), n = Ce(this.message, t), r = t + n.length;
8712
8725
  return this.bumpTo(r), {
8713
8726
  value: n,
8714
8727
  location: F(e, this.clonePosition())
@@ -8727,7 +8740,7 @@ var Se = class {
8727
8740
  this.bumpSpace();
8728
8741
  let t = this.clonePosition(), n = this.parseSimpleArgStyleIfPossible();
8729
8742
  if (n.err) return n;
8730
- let r = ye(n.val);
8743
+ let r = xe(n.val);
8731
8744
  if (r.length === 0) return this.error(6, F(this.clonePosition(), this.clonePosition()));
8732
8745
  e = {
8733
8746
  style: r,
@@ -8738,7 +8751,7 @@ var Se = class {
8738
8751
  if (t.err) return t;
8739
8752
  let i = F(r, this.clonePosition());
8740
8753
  if (e && e.style.startsWith("::")) {
8741
- let t = ve(e.style.slice(2));
8754
+ let t = be(e.style.slice(2));
8742
8755
  if (a === "number") {
8743
8756
  let r = this.parseNumberSkeletonFromString(t, e.styleLocation);
8744
8757
  return r.err ? r : {
@@ -8753,12 +8766,12 @@ var Se = class {
8753
8766
  } else {
8754
8767
  if (t.length === 0) return this.error(10, i);
8755
8768
  let r = t;
8756
- this.locale && (r = he(t, this.locale));
8769
+ this.locale && (r = _e(t, this.locale));
8757
8770
  let o = {
8758
8771
  type: 1,
8759
8772
  pattern: r,
8760
8773
  location: e.styleLocation,
8761
- parsedOptions: this.shouldParseSkeletons ? ae(r) : {}
8774
+ parsedOptions: this.shouldParseSkeletons ? se(r) : {}
8762
8775
  };
8763
8776
  return {
8764
8777
  val: {
@@ -8804,7 +8817,7 @@ var Se = class {
8804
8817
  val: {
8805
8818
  type: 5,
8806
8819
  value: n,
8807
- options: R(c.val),
8820
+ options: L(c.val),
8808
8821
  location: u
8809
8822
  },
8810
8823
  err: null
@@ -8812,7 +8825,7 @@ var Se = class {
8812
8825
  val: {
8813
8826
  type: 6,
8814
8827
  value: n,
8815
- options: R(c.val),
8828
+ options: L(c.val),
8816
8829
  offset: s,
8817
8830
  pluralType: a === "plural" ? "cardinal" : "ordinal",
8818
8831
  location: u
@@ -8859,7 +8872,7 @@ var Se = class {
8859
8872
  parseNumberSkeletonFromString(e, t) {
8860
8873
  let n = [];
8861
8874
  try {
8862
- n = se(e);
8875
+ n = le(e);
8863
8876
  } catch {
8864
8877
  return this.error(7, t);
8865
8878
  }
@@ -8868,7 +8881,7 @@ var Se = class {
8868
8881
  type: 0,
8869
8882
  tokens: n,
8870
8883
  location: t,
8871
- parsedOptions: this.shouldParseSkeletons ? de(n) : {}
8884
+ parsedOptions: this.shouldParseSkeletons ? fe(n) : {}
8872
8885
  },
8873
8886
  err: null
8874
8887
  };
@@ -8953,7 +8966,8 @@ var Se = class {
8953
8966
  e === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += e < 65536 ? 1 : 2);
8954
8967
  }
8955
8968
  bumpIf(e) {
8956
- if (this.message.startsWith(e, this.offset())) {
8969
+ let t = this.offset();
8970
+ if (this.message.slice(t, t + e.length) === e) {
8957
8971
  for (let t = 0; t < e.length; t++) this.bump();
8958
8972
  return !0;
8959
8973
  }
@@ -8973,7 +8987,7 @@ var Se = class {
8973
8987
  }
8974
8988
  }
8975
8989
  bumpSpace() {
8976
- for (; !this.isEOF() && Te(this.char());) this.bump();
8990
+ for (; !this.isEOF() && Oe(this.char());) this.bump();
8977
8991
  }
8978
8992
  peek() {
8979
8993
  if (this.isEOF()) return null;
@@ -8981,85 +8995,85 @@ var Se = class {
8981
8995
  return this.message.charCodeAt(t + (e >= 65536 ? 2 : 1)) ?? null;
8982
8996
  }
8983
8997
  };
8984
- function B(e) {
8998
+ function z(e) {
8985
8999
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
8986
9000
  }
8987
- function Ce(e) {
8988
- return B(e) || e === 47;
9001
+ function Ee(e) {
9002
+ return z(e) || e === 47;
8989
9003
  }
8990
- function we(e) {
9004
+ function De(e) {
8991
9005
  return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
8992
9006
  }
8993
- function Te(e) {
9007
+ function Oe(e) {
8994
9008
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
8995
9009
  }
8996
- function V(e) {
9010
+ function B(e) {
8997
9011
  e.forEach((e) => {
8998
- if (delete e.location, E(e) || D(e)) for (let t in e.options) delete e.options[t].location, V(e.options[t].value);
8999
- else C(e) && k(e.style) || (w(e) || T(e)) && A(e.style) ? delete e.style.location : O(e) && V(e.children);
9012
+ if (delete e.location, T(e) || E(e)) for (let t in e.options) delete e.options[t].location, B(e.options[t].value);
9013
+ else S(e) && O(e.style) || (C(e) || w(e)) && k(e.style) ? delete e.style.location : D(e) && B(e.children);
9000
9014
  });
9001
9015
  }
9002
- function Ee(e, t = {}) {
9016
+ function ke(e, t = {}) {
9003
9017
  t = {
9004
9018
  shouldParseSkeletons: !0,
9005
9019
  requiresOtherClause: !0,
9006
9020
  ...t
9007
9021
  };
9008
- let n = new Se(e, t).parse();
9022
+ let n = new Te(e, t).parse();
9009
9023
  if (n.err) {
9010
- let e = SyntaxError(fe[n.err.kind]);
9024
+ let e = SyntaxError(pe[n.err.kind]);
9011
9025
  throw e.location = n.err.location, e.originalMessage = n.err.message, e;
9012
9026
  }
9013
- return t?.captureLocation || V(n.val), n.val;
9027
+ return t?.captureLocation || B(n.val), n.val;
9014
9028
  }
9015
9029
  //#endregion
9016
9030
  //#region ../../node_modules/intl-messageformat/index.js
9017
- var H = /* @__PURE__ */ function(e) {
9031
+ var V = /* @__PURE__ */ function(e) {
9018
9032
  return e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API", e;
9019
- }({}), U = class extends Error {
9033
+ }({}), H = class extends Error {
9020
9034
  constructor(e, t, n) {
9021
9035
  super(e), this.code = t, this.originalMessage = n;
9022
9036
  }
9023
9037
  toString() {
9024
9038
  return `[formatjs Error: ${this.code}] ${this.message}`;
9025
9039
  }
9026
- }, W = class extends U {
9040
+ }, U = class extends H {
9027
9041
  constructor(e, t, n, r) {
9028
9042
  super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(n).join("\", \"")}"`, "INVALID_VALUE", r);
9029
9043
  }
9030
- }, De = class extends U {
9044
+ }, Ae = class extends H {
9031
9045
  constructor(e, t, n) {
9032
9046
  super(`Value for "${e}" must be of type ${t}`, "INVALID_VALUE", n);
9033
9047
  }
9034
- }, Oe = class extends U {
9048
+ }, je = class extends H {
9035
9049
  constructor(e, t) {
9036
9050
  super(`The intl string context variable "${e}" was not provided to the string "${t}"`, "MISSING_VALUE", t);
9037
9051
  }
9038
9052
  };
9039
- function ke(e) {
9053
+ function Me(e) {
9040
9054
  return e.length < 2 ? e : e.reduce((e, t) => {
9041
9055
  let n = e[e.length - 1];
9042
9056
  return !n || n.type !== 0 || t.type !== 0 ? e.push(t) : n.value += t.value, e;
9043
9057
  }, []);
9044
9058
  }
9045
- function Ae(e) {
9059
+ function Ne(e) {
9046
9060
  return typeof e == "function";
9047
9061
  }
9048
- function G(e, t, n, r, i, a, o) {
9049
- if (e.length === 1 && S(e[0])) return [{
9062
+ function W(e, t, n, r, i, a, o) {
9063
+ if (e.length === 1 && x(e[0])) return [{
9050
9064
  type: 0,
9051
9065
  value: e[0].value
9052
9066
  }];
9053
9067
  let s = [];
9054
9068
  for (let c of e) {
9055
- if (S(c)) {
9069
+ if (x(c)) {
9056
9070
  s.push({
9057
9071
  type: 0,
9058
9072
  value: c.value
9059
9073
  });
9060
9074
  continue;
9061
9075
  }
9062
- if (me(c)) {
9076
+ if (he(c)) {
9063
9077
  typeof a == "number" && s.push({
9064
9078
  type: 0,
9065
9079
  value: n.getNumberFormat(t).format(a)
@@ -9067,33 +9081,33 @@ function G(e, t, n, r, i, a, o) {
9067
9081
  continue;
9068
9082
  }
9069
9083
  let { value: e } = c;
9070
- if (!(i && e in i)) throw new Oe(e, o);
9084
+ if (!(i && e in i)) throw new je(e, o);
9071
9085
  let l = i[e];
9072
- if (pe(c)) {
9086
+ if (me(c)) {
9073
9087
  (!l || typeof l == "string" || typeof l == "number" || typeof l == "bigint") && (l = typeof l == "string" || typeof l == "number" || typeof l == "bigint" ? String(l) : ""), s.push({
9074
9088
  type: typeof l == "string" ? 0 : 1,
9075
9089
  value: l
9076
9090
  });
9077
9091
  continue;
9078
9092
  }
9079
- if (w(c)) {
9080
- let e = typeof c.style == "string" ? r.date[c.style] : A(c.style) ? c.style.parsedOptions : void 0;
9093
+ if (C(c)) {
9094
+ let e = typeof c.style == "string" ? r.date[c.style] : k(c.style) ? c.style.parsedOptions : void 0;
9081
9095
  s.push({
9082
9096
  type: 0,
9083
9097
  value: n.getDateTimeFormat(t, e).format(l)
9084
9098
  });
9085
9099
  continue;
9086
9100
  }
9087
- if (T(c)) {
9088
- let e = typeof c.style == "string" ? r.time[c.style] : A(c.style) ? c.style.parsedOptions : r.time.medium;
9101
+ if (w(c)) {
9102
+ let e = typeof c.style == "string" ? r.time[c.style] : k(c.style) ? c.style.parsedOptions : r.time.medium;
9089
9103
  s.push({
9090
9104
  type: 0,
9091
9105
  value: n.getDateTimeFormat(t, e).format(l)
9092
9106
  });
9093
9107
  continue;
9094
9108
  }
9095
- if (C(c)) {
9096
- let e = typeof c.style == "string" ? r.number[c.style] : k(c.style) ? c.style.parsedOptions : void 0;
9109
+ if (S(c)) {
9110
+ let e = typeof c.style == "string" ? r.number[c.style] : O(c.style) ? c.style.parsedOptions : void 0;
9097
9111
  if (e && e.scale) {
9098
9112
  let t = e.scale || 1;
9099
9113
  if (typeof l == "bigint") {
@@ -9107,37 +9121,37 @@ function G(e, t, n, r, i, a, o) {
9107
9121
  });
9108
9122
  continue;
9109
9123
  }
9110
- if (O(c)) {
9124
+ if (D(c)) {
9111
9125
  let { children: e, value: l } = c, u = i[l];
9112
- if (!Ae(u)) throw new De(l, "function", o);
9113
- let d = u(G(e, t, n, r, i, a).map((e) => e.value));
9126
+ if (!Ne(u)) throw new Ae(l, "function", o);
9127
+ let d = u(W(e, t, n, r, i, a).map((e) => e.value));
9114
9128
  Array.isArray(d) || (d = [d]), s.push(...d.map((e) => ({
9115
9129
  type: typeof e == "string" ? 0 : 1,
9116
9130
  value: e
9117
9131
  })));
9118
9132
  }
9119
- if (E(c)) {
9133
+ if (T(c)) {
9120
9134
  let e = l, a = (Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0) || c.options.other;
9121
- if (!a) throw new W(c.value, l, Object.keys(c.options), o);
9122
- s.push(...G(a.value, t, n, r, i));
9135
+ if (!a) throw new U(c.value, l, Object.keys(c.options), o);
9136
+ s.push(...W(a.value, t, n, r, i));
9123
9137
  continue;
9124
9138
  }
9125
- if (D(c)) {
9139
+ if (E(c)) {
9126
9140
  let e = `=${l}`, a = Object.prototype.hasOwnProperty.call(c.options, e) ? c.options[e] : void 0;
9127
9141
  if (!a) {
9128
- if (!Intl.PluralRules) throw new U("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
9142
+ if (!Intl.PluralRules) throw new H("Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n", "MISSING_INTL_API", o);
9129
9143
  let e = typeof l == "bigint" ? Number(l) : l, r = n.getPluralRules(t, { type: c.pluralType }).select(e - (c.offset || 0));
9130
9144
  a = (Object.prototype.hasOwnProperty.call(c.options, r) ? c.options[r] : void 0) || c.options.other;
9131
9145
  }
9132
- if (!a) throw new W(c.value, l, Object.keys(c.options), o);
9146
+ if (!a) throw new U(c.value, l, Object.keys(c.options), o);
9133
9147
  let u = typeof l == "bigint" ? Number(l) : l;
9134
- s.push(...G(a.value, t, n, r, i, u - (c.offset || 0)));
9148
+ s.push(...W(a.value, t, n, r, i, u - (c.offset || 0)));
9135
9149
  continue;
9136
9150
  }
9137
9151
  }
9138
- return ke(s);
9152
+ return Me(s);
9139
9153
  }
9140
- function je(e, t) {
9154
+ function Pe(e, t) {
9141
9155
  return t ? {
9142
9156
  ...e,
9143
9157
  ...t,
@@ -9147,10 +9161,10 @@ function je(e, t) {
9147
9161
  }, n), {})
9148
9162
  } : e;
9149
9163
  }
9150
- function Me(e, t) {
9151
- return t ? Object.keys(e).reduce((n, r) => (n[r] = je(e[r], t[r]), n), { ...e }) : e;
9164
+ function Fe(e, t) {
9165
+ return t ? Object.keys(e).reduce((n, r) => (n[r] = Pe(e[r], t[r]), n), { ...e }) : e;
9152
9166
  }
9153
- function K(e) {
9167
+ function G(e) {
9154
9168
  return { create() {
9155
9169
  return {
9156
9170
  get(t) {
@@ -9162,38 +9176,38 @@ function K(e) {
9162
9176
  };
9163
9177
  } };
9164
9178
  }
9165
- function Ne(e = {
9179
+ function Ie(e = {
9166
9180
  number: {},
9167
9181
  dateTime: {},
9168
9182
  pluralRules: {}
9169
9183
  }) {
9170
9184
  return {
9171
9185
  getNumberFormat: c((...e) => new Intl.NumberFormat(...e), {
9172
- cache: K(e.number),
9173
- strategy: h.variadic
9186
+ cache: G(e.number),
9187
+ strategy: p.variadic
9174
9188
  }),
9175
9189
  getDateTimeFormat: c((...e) => new Intl.DateTimeFormat(...e), {
9176
- cache: K(e.dateTime),
9177
- strategy: h.variadic
9190
+ cache: G(e.dateTime),
9191
+ strategy: p.variadic
9178
9192
  }),
9179
9193
  getPluralRules: c((...e) => new Intl.PluralRules(...e), {
9180
- cache: K(e.pluralRules),
9181
- strategy: h.variadic
9194
+ cache: G(e.pluralRules),
9195
+ strategy: p.variadic
9182
9196
  })
9183
9197
  };
9184
9198
  }
9185
- var Pe = class e {
9199
+ var Le = class e {
9186
9200
  constructor(t, n = e.defaultLocale, r, i) {
9187
9201
  if (this.formatterCache = {
9188
9202
  number: {},
9189
9203
  dateTime: {},
9190
9204
  pluralRules: {}
9191
- }, this.format = (e) => {
9205
+ }, this.format = ((e) => {
9192
9206
  let t = this.formatToParts(e);
9193
9207
  if (t.length === 1) return t[0].value;
9194
9208
  let n = t.reduce((e, t) => (!e.length || t.type !== 0 || typeof e[e.length - 1] != "string" ? e.push(t.value) : e[e.length - 1] += t.value, e), []);
9195
9209
  return n.length <= 1 ? n[0] || "" : n;
9196
- }, this.formatToParts = (e) => G(this.ast, this.locales, this.formatters, this.formats, e, void 0, this.message), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
9210
+ }), this.formatToParts = ((e) => W(this.ast, this.locales, this.formatters, this.formats, e, void 0, this.message)), this.resolvedOptions = () => ({ locale: this.resolvedLocale?.toString() || Intl.NumberFormat.supportedLocalesOf(this.locales)[0] }), this.getAst = () => this.ast, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
9197
9211
  if (this.message = t, !e.__parse) throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
9198
9212
  let { ...n } = i || {};
9199
9213
  this.ast = e.__parse(t, {
@@ -9202,7 +9216,7 @@ var Pe = class e {
9202
9216
  });
9203
9217
  } else this.ast = t;
9204
9218
  if (!Array.isArray(this.ast)) throw TypeError("A message must be provided as a String or AST.");
9205
- this.formats = Me(e.formats, r), this.formatters = i && i.formatters || Ne(this.formatterCache);
9219
+ this.formats = Fe(e.formats, r), this.formatters = i && i.formatters || Ie(this.formatterCache);
9206
9220
  }
9207
9221
  static {
9208
9222
  this.memoizedDefaultLocale = null;
@@ -9218,7 +9232,7 @@ var Pe = class e {
9218
9232
  };
9219
9233
  }
9220
9234
  static {
9221
- this.__parse = Ee;
9235
+ this.__parse = ke;
9222
9236
  }
9223
9237
  static {
9224
9238
  this.formats = {
@@ -9275,12 +9289,12 @@ var Pe = class e {
9275
9289
  }
9276
9290
  };
9277
9291
  }
9278
- }, Fe = 500, q = /* @__PURE__ */ new Map();
9279
- function J(e, t) {
9280
- let n = `${t}\u0000${e}`, r = q.get(n);
9281
- return r || (r = new Pe(e, t), q.size >= Fe && q.clear(), q.set(n, r)), r;
9292
+ }, Re = 500, K = /* @__PURE__ */ new Map();
9293
+ function q(e, t) {
9294
+ let n = `${t}\u0000${e}`, r = K.get(n);
9295
+ return r || (r = new Le(e, t), K.size >= Re && K.clear(), K.set(n, r)), r;
9282
9296
  }
9283
- var Y = class extends Error {
9297
+ var J = class extends Error {
9284
9298
  name = "FormatMessageError";
9285
9299
  reason;
9286
9300
  source;
@@ -9290,48 +9304,48 @@ var Y = class extends Error {
9290
9304
  constructor(e, t, n, r, i) {
9291
9305
  super(`Could not format the message (${e}${i ? `, "${i}"` : ""}): ${r instanceof Error ? r.message : String(r)}`), this.cause = r, this.reason = e, this.source = t, this.language = n, this.key = i;
9292
9306
  }
9293
- }, Ie = 0, Le = 5, Re = 6, ze = 7, Be = 8;
9307
+ }, Y = 0, ze = 5, Be = 6, Ve = 7, He = 8;
9294
9308
  function X(e, t) {
9295
9309
  for (let n of e) {
9296
- if (n.type === Ie || n.type === ze) continue;
9310
+ if (n.type === Y || n.type === Ve) continue;
9297
9311
  let e = n.value;
9298
9312
  if (!(t && e in t)) return e;
9299
- if (n.type === Re || n.type === Le) {
9313
+ if (n.type === Be || n.type === ze) {
9300
9314
  let e = n.options;
9301
9315
  for (let n of Object.values(e)) {
9302
9316
  let e = X(n.value, t);
9303
9317
  if (e) return e;
9304
9318
  }
9305
- } else if (n.type === Be) {
9319
+ } else if (n.type === He) {
9306
9320
  let e = X(n.children, t);
9307
9321
  if (e) return e;
9308
9322
  }
9309
9323
  }
9310
9324
  }
9311
- function Ve(e, t, n, r) {
9312
- if (e instanceof U && e.code === H.MISSING_VALUE) {
9325
+ function Ue(e, t, n, r) {
9326
+ if (e instanceof H && e.code === V.MISSING_VALUE) {
9313
9327
  let i;
9314
9328
  try {
9315
- i = X(J(t, n).getAst(), r);
9329
+ i = X(q(t, n).getAst(), r);
9316
9330
  } catch {}
9317
- return new Y("missing-value", t, n, e, i);
9331
+ return new J("missing-value", t, n, e, i);
9318
9332
  }
9319
- return e instanceof U && e.code === H.INVALID_VALUE ? new Y("invalid-value", t, n, e) : new Y(e instanceof SyntaxError ? "parse" : "format", t, n, e);
9333
+ return e instanceof H && e.code === V.INVALID_VALUE ? new J("invalid-value", t, n, e) : new J(e instanceof SyntaxError ? "parse" : "format", t, n, e);
9320
9334
  }
9321
9335
  function Z(e, t, n, r) {
9322
9336
  try {
9323
- return J(e, t).format(n);
9337
+ return q(e, t).format(n);
9324
9338
  } catch (i) {
9325
- return r?.onError ? r.onError(Ve(i, e, t, n)) : console.error(i), e;
9339
+ return r?.onError ? r.onError(Ue(i, e, t, n)) : console.error(i), e;
9326
9340
  }
9327
9341
  }
9328
- var He = () => !e();
9329
- function Ue(e, t, n) {
9342
+ var We = () => !e();
9343
+ function Ge(e, t, n) {
9330
9344
  if (!n && !e.includes("{")) return e;
9331
9345
  try {
9332
- return J(e, t).format(n);
9346
+ return q(e, t).format(n);
9333
9347
  } catch (t) {
9334
- return He() && console.warn(`[@nxgt/material] Could not format the fallback "${e}":`, t), e;
9348
+ return We() && console.warn(`[@nxgt/material] Could not format the fallback "${e}":`, t), e;
9335
9349
  }
9336
9350
  }
9337
9351
  //#endregion
@@ -9345,6 +9359,6 @@ function $(e = {}, t = Q) {
9345
9359
  return Z(n(e[o], r) ?? r, o, i);
9346
9360
  };
9347
9361
  }
9348
- var We = $(r);
9362
+ var Ke = $(r);
9349
9363
  //#endregion
9350
- export { Ue as a, a as c, r as d, Y as i, i as l, Q as n, Z as o, We as r, s, $ as t, o as u };
9364
+ export { Ge as a, a as c, r as d, J as i, i as l, Q as n, Z as o, Ke as r, s, $ as t, o as u };