@kong-ui-public/i18n 2.2.4-pr.1660.5c204a5c7.0 → 2.2.4

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.
package/dist/i18n.es.js CHANGED
@@ -1,76 +1,96 @@
1
- import { defineComponent as Xe, h as We } from "vue";
2
- var q = function(e, t) {
3
- return q = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
4
- n.__proto__ = r;
5
- } || function(n, r) {
6
- for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
7
- }, q(e, t);
1
+ import { defineComponent as Ue, h as Ve } from "vue";
2
+ var z = function(e, t) {
3
+ return z = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
4
+ r.__proto__ = n;
5
+ } || function(r, n) {
6
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (r[a] = n[a]);
7
+ }, z(e, t);
8
8
  };
9
- function M(e, t) {
9
+ function _(e, t) {
10
10
  if (typeof t != "function" && t !== null)
11
11
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
12
- q(e, t);
13
- function n() {
12
+ z(e, t);
13
+ function r() {
14
14
  this.constructor = e;
15
15
  }
16
- e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
16
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
17
17
  }
18
- var m = function() {
19
- return m = Object.assign || function(t) {
20
- for (var n, r = 1, a = arguments.length; r < a; r++) {
21
- n = arguments[r];
22
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
18
+ var f = function() {
19
+ return f = Object.assign || function(t) {
20
+ for (var r, n = 1, a = arguments.length; n < a; n++) {
21
+ r = arguments[n];
22
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (t[i] = r[i]);
23
23
  }
24
24
  return t;
25
- }, m.apply(this, arguments);
25
+ }, f.apply(this, arguments);
26
26
  };
27
- function w(e, t, n) {
28
- if (n || arguments.length === 2) for (var r = 0, a = t.length, i; r < a; r++)
29
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
27
+ function ke(e, t) {
28
+ var r = {};
29
+ for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
30
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
31
+ for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++)
32
+ t.indexOf(n[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
33
+ return r;
34
+ }
35
+ function N(e, t, r) {
36
+ if (r || arguments.length === 2) for (var n = 0, a = t.length, i; n < a; n++)
37
+ (i || !(n in t)) && (i || (i = Array.prototype.slice.call(t, 0, n)), i[n] = t[n]);
30
38
  return e.concat(i || Array.prototype.slice.call(t));
31
39
  }
32
- var Q = function(e, t) {
33
- return Q = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
34
- n.__proto__ = r;
35
- } || function(n, r) {
36
- for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (n[a] = r[a]);
37
- }, Q(e, t);
38
- };
39
- function X(e, t) {
40
- if (typeof t != "function" && t !== null)
41
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
42
- Q(e, t);
43
- function n() {
44
- this.constructor = e;
45
- }
46
- e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
40
+ function H(e, t) {
41
+ var r = t && t.cache ? t.cache : Je, n = t && t.serializer ? t.serializer : ze, a = t && t.strategy ? t.strategy : Xe;
42
+ return a(e, {
43
+ cache: r,
44
+ serializer: n
45
+ });
46
+ }
47
+ function je(e) {
48
+ return e == null || typeof e == "number" || typeof e == "boolean";
49
+ }
50
+ function de(e, t, r, n) {
51
+ var a = je(n) ? n : r(n), i = t.get(a);
52
+ return typeof i > "u" && (i = e.call(this, n), t.set(a, i)), i;
53
+ }
54
+ function be(e, t, r) {
55
+ var n = Array.prototype.slice.call(arguments, 3), a = r(n), i = t.get(a);
56
+ return typeof i > "u" && (i = e.apply(this, n), t.set(a, i)), i;
57
+ }
58
+ function ee(e, t, r, n, a) {
59
+ return r.bind(t, e, n, a);
60
+ }
61
+ function Xe(e, t) {
62
+ var r = e.length === 1 ? de : be;
63
+ return ee(e, this, r, t.cache.create(), t.serializer);
64
+ }
65
+ function We(e, t) {
66
+ return ee(e, this, be, t.cache.create(), t.serializer);
47
67
  }
48
- var N = function() {
49
- return N = Object.assign || function(t) {
50
- for (var n, r = 1, a = arguments.length; r < a; r++) {
51
- n = arguments[r];
52
- for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
53
- }
54
- return t;
55
- }, N.apply(this, arguments);
56
- };
57
68
  function Ze(e, t) {
58
- var n = {};
59
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
60
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
61
- for (var a = 0, r = Object.getOwnPropertySymbols(e); a < r.length; a++)
62
- t.indexOf(r[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[a]) && (n[r[a]] = e[r[a]]);
63
- return n;
69
+ return ee(e, this, de, t.cache.create(), t.serializer);
64
70
  }
65
- function Z(e, t, n) {
66
- if (n || arguments.length === 2) for (var r = 0, a = t.length, i; r < a; r++)
67
- (i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
68
- return e.concat(i || Array.prototype.slice.call(t));
71
+ var ze = function() {
72
+ return JSON.stringify(arguments);
73
+ };
74
+ function te() {
75
+ this.cache = /* @__PURE__ */ Object.create(null);
69
76
  }
70
- var p;
77
+ te.prototype.get = function(e) {
78
+ return this.cache[e];
79
+ };
80
+ te.prototype.set = function(e, t) {
81
+ this.cache[e] = t;
82
+ };
83
+ var Je = {
84
+ create: function() {
85
+ return new te();
86
+ }
87
+ }, I = {
88
+ variadic: We,
89
+ monadic: Ze
90
+ }, g;
71
91
  (function(e) {
72
92
  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";
73
- })(p || (p = {}));
93
+ })(g || (g = {}));
74
94
  var b;
75
95
  (function(e) {
76
96
  e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
@@ -79,50 +99,50 @@ var D;
79
99
  (function(e) {
80
100
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
81
101
  })(D || (D = {}));
82
- function ue(e) {
102
+ function ae(e) {
83
103
  return e.type === b.literal;
84
104
  }
85
- function ze(e) {
105
+ function qe(e) {
86
106
  return e.type === b.argument;
87
107
  }
88
- function Te(e) {
108
+ function ye(e) {
89
109
  return e.type === b.number;
90
110
  }
91
- function Se(e) {
111
+ function xe(e) {
92
112
  return e.type === b.date;
93
113
  }
94
- function He(e) {
114
+ function Te(e) {
95
115
  return e.type === b.time;
96
116
  }
97
- function Ie(e) {
117
+ function Se(e) {
98
118
  return e.type === b.select;
99
119
  }
100
- function Ae(e) {
120
+ function He(e) {
101
121
  return e.type === b.plural;
102
122
  }
103
- function $e(e) {
123
+ function Qe(e) {
104
124
  return e.type === b.pound;
105
125
  }
106
- function _e(e) {
126
+ function Ie(e) {
107
127
  return e.type === b.tag;
108
128
  }
109
129
  function Ne(e) {
110
130
  return !!(e && typeof e == "object" && e.type === D.number);
111
131
  }
112
- function Y(e) {
132
+ function J(e) {
113
133
  return !!(e && typeof e == "object" && e.type === D.dateTime);
114
134
  }
115
- var Be = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Je = /(?:[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;
116
- function qe(e) {
135
+ var Ae = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ye = /(?:[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;
136
+ function $e(e) {
117
137
  var t = {};
118
- return e.replace(Je, function(n) {
119
- var r = n.length;
120
- switch (n[0]) {
138
+ return e.replace(Ye, function(r) {
139
+ var n = r.length;
140
+ switch (r[0]) {
121
141
  case "G":
122
- t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
142
+ t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
123
143
  break;
124
144
  case "y":
125
- t.year = r === 2 ? "2-digit" : "numeric";
145
+ t.year = n === 2 ? "2-digit" : "numeric";
126
146
  break;
127
147
  case "Y":
128
148
  case "u":
@@ -134,30 +154,30 @@ function qe(e) {
134
154
  throw new RangeError("`q/Q` (quarter) patterns are not supported");
135
155
  case "M":
136
156
  case "L":
137
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
157
+ t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
138
158
  break;
139
159
  case "w":
140
160
  case "W":
141
161
  throw new RangeError("`w/W` (week) patterns are not supported");
142
162
  case "d":
143
- t.day = ["numeric", "2-digit"][r - 1];
163
+ t.day = ["numeric", "2-digit"][n - 1];
144
164
  break;
145
165
  case "D":
146
166
  case "F":
147
167
  case "g":
148
168
  throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
149
169
  case "E":
150
- t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
170
+ t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
151
171
  break;
152
172
  case "e":
153
- if (r < 4)
173
+ if (n < 4)
154
174
  throw new RangeError("`e..eee` (weekday) patterns are not supported");
155
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
175
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
156
176
  break;
157
177
  case "c":
158
- if (r < 4)
178
+ if (n < 4)
159
179
  throw new RangeError("`c..ccc` (weekday) patterns are not supported");
160
- t.weekday = ["short", "long", "narrow", "short"][r - 4];
180
+ t.weekday = ["short", "long", "narrow", "short"][n - 4];
161
181
  break;
162
182
  case "a":
163
183
  t.hour12 = !0;
@@ -166,32 +186,32 @@ function qe(e) {
166
186
  case "B":
167
187
  throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
168
188
  case "h":
169
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
189
+ t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
170
190
  break;
171
191
  case "H":
172
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
192
+ t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
173
193
  break;
174
194
  case "K":
175
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
195
+ t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
176
196
  break;
177
197
  case "k":
178
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
198
+ t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
179
199
  break;
180
200
  case "j":
181
201
  case "J":
182
202
  case "C":
183
203
  throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
184
204
  case "m":
185
- t.minute = ["numeric", "2-digit"][r - 1];
205
+ t.minute = ["numeric", "2-digit"][n - 1];
186
206
  break;
187
207
  case "s":
188
- t.second = ["numeric", "2-digit"][r - 1];
208
+ t.second = ["numeric", "2-digit"][n - 1];
189
209
  break;
190
210
  case "S":
191
211
  case "A":
192
212
  throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
193
213
  case "z":
194
- t.timeZoneName = r < 4 ? "short" : "long";
214
+ t.timeZoneName = n < 4 ? "short" : "long";
195
215
  break;
196
216
  case "Z":
197
217
  case "O":
@@ -204,36 +224,36 @@ function qe(e) {
204
224
  return "";
205
225
  }), t;
206
226
  }
207
- var Qe = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
208
- function Ye(e) {
227
+ var Ke = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
228
+ function et(e) {
209
229
  if (e.length === 0)
210
230
  throw new Error("Number skeleton cannot be empty");
211
- for (var t = e.split(Qe).filter(function(c) {
231
+ for (var t = e.split(Ke).filter(function(c) {
212
232
  return c.length > 0;
213
- }), n = [], r = 0, a = t; r < a.length; r++) {
214
- var i = a[r], o = i.split("/");
233
+ }), r = [], n = 0, a = t; n < a.length; n++) {
234
+ var i = a[n], o = i.split("/");
215
235
  if (o.length === 0)
216
236
  throw new Error("Invalid number skeleton");
217
237
  for (var s = o[0], u = o.slice(1), l = 0, h = u; l < h.length; l++) {
218
- var f = h[l];
219
- if (f.length === 0)
238
+ var m = h[l];
239
+ if (m.length === 0)
220
240
  throw new Error("Invalid number skeleton");
221
241
  }
222
- n.push({ stem: s, options: u });
242
+ r.push({ stem: s, options: u });
223
243
  }
224
- return n;
244
+ return r;
225
245
  }
226
- function Ke(e) {
246
+ function tt(e) {
227
247
  return e.replace(/^(.*?)-/, "");
228
248
  }
229
- var he = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Pe = /^(@+)?(\+|#+)?[rs]?$/g, et = /(\*)(0+)|(#+)(0+)|(0+)/g, Oe = /^(0+)$/;
230
- function le(e) {
249
+ var ie = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Be = /^(@+)?(\+|#+)?[rs]?$/g, rt = /(\*)(0+)|(#+)(0+)|(0+)/g, _e = /^(0+)$/;
250
+ function oe(e) {
231
251
  var t = {};
232
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Pe, function(n, r, a) {
233
- return typeof a != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : a === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof a == "string" ? a.length : 0)), "";
252
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Be, function(r, n, a) {
253
+ return typeof a != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : a === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof a == "string" ? a.length : 0)), "";
234
254
  }), t;
235
255
  }
236
- function Re(e) {
256
+ function Pe(e) {
237
257
  switch (e) {
238
258
  case "sign-auto":
239
259
  return {
@@ -273,27 +293,27 @@ function Re(e) {
273
293
  };
274
294
  }
275
295
  }
276
- function tt(e) {
296
+ function nt(e) {
277
297
  var t;
278
298
  if (e[0] === "E" && e[1] === "E" ? (t = {
279
299
  notation: "engineering"
280
300
  }, e = e.slice(2)) : e[0] === "E" && (t = {
281
301
  notation: "scientific"
282
302
  }, e = e.slice(1)), t) {
283
- var n = e.slice(0, 2);
284
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Oe.test(e))
303
+ var r = e.slice(0, 2);
304
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !_e.test(e))
285
305
  throw new Error("Malformed concise eng/scientific notation");
286
306
  t.minimumIntegerDigits = e.length;
287
307
  }
288
308
  return t;
289
309
  }
290
- function fe(e) {
291
- var t = {}, n = Re(e);
292
- return n || t;
310
+ function se(e) {
311
+ var t = {}, r = Pe(e);
312
+ return r || t;
293
313
  }
294
- function rt(e) {
295
- for (var t = {}, n = 0, r = e; n < r.length; n++) {
296
- var a = r[n];
314
+ function at(e) {
315
+ for (var t = {}, r = 0, n = e; r < n.length; r++) {
316
+ var a = n[r];
297
317
  switch (a.stem) {
298
318
  case "percent":
299
319
  case "%":
@@ -315,7 +335,7 @@ function rt(e) {
315
335
  continue;
316
336
  case "measure-unit":
317
337
  case "unit":
318
- t.style = "unit", t.unit = Ke(a.options[0]);
338
+ t.style = "unit", t.unit = tt(a.options[0]);
319
339
  continue;
320
340
  case "compact-short":
321
341
  case "K":
@@ -326,13 +346,13 @@ function rt(e) {
326
346
  t.notation = "compact", t.compactDisplay = "long";
327
347
  continue;
328
348
  case "scientific":
329
- t = m(m(m({}, t), { notation: "scientific" }), a.options.reduce(function(u, l) {
330
- return m(m({}, u), fe(l));
349
+ t = f(f(f({}, t), { notation: "scientific" }), a.options.reduce(function(u, l) {
350
+ return f(f({}, u), se(l));
331
351
  }, {}));
332
352
  continue;
333
353
  case "engineering":
334
- t = m(m(m({}, t), { notation: "engineering" }), a.options.reduce(function(u, l) {
335
- return m(m({}, u), fe(l));
354
+ t = f(f(f({}, t), { notation: "engineering" }), a.options.reduce(function(u, l) {
355
+ return f(f({}, u), se(l));
336
356
  }, {}));
337
357
  continue;
338
358
  case "notation-simple":
@@ -377,11 +397,11 @@ function rt(e) {
377
397
  case "integer-width":
378
398
  if (a.options.length > 1)
379
399
  throw new RangeError("integer-width stems only accept a single optional option");
380
- a.options[0].replace(et, function(u, l, h, f, c, E) {
400
+ a.options[0].replace(rt, function(u, l, h, m, c, E) {
381
401
  if (l)
382
402
  t.minimumIntegerDigits = h.length;
383
403
  else {
384
- if (f && c)
404
+ if (m && c)
385
405
  throw new Error("We currently do not support maximum integer digits");
386
406
  if (E)
387
407
  throw new Error("We currently do not support exact integer digits");
@@ -390,32 +410,32 @@ function rt(e) {
390
410
  });
391
411
  continue;
392
412
  }
393
- if (Oe.test(a.stem)) {
413
+ if (_e.test(a.stem)) {
394
414
  t.minimumIntegerDigits = a.stem.length;
395
415
  continue;
396
416
  }
397
- if (he.test(a.stem)) {
417
+ if (ie.test(a.stem)) {
398
418
  if (a.options.length > 1)
399
419
  throw new RangeError("Fraction-precision stems only accept a single optional option");
400
- a.stem.replace(he, function(u, l, h, f, c, E) {
401
- return h === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && E ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + E.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
420
+ a.stem.replace(ie, function(u, l, h, m, c, E) {
421
+ return h === "*" ? t.minimumFractionDigits = l.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : c && E ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + E.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
402
422
  });
403
423
  var i = a.options[0];
404
- i === "w" ? t = m(m({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = m(m({}, t), le(i)));
424
+ i === "w" ? t = f(f({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = f(f({}, t), oe(i)));
405
425
  continue;
406
426
  }
407
- if (Pe.test(a.stem)) {
408
- t = m(m({}, t), le(a.stem));
427
+ if (Be.test(a.stem)) {
428
+ t = f(f({}, t), oe(a.stem));
409
429
  continue;
410
430
  }
411
- var o = Re(a.stem);
412
- o && (t = m(m({}, t), o));
413
- var s = tt(a.stem);
414
- s && (t = m(m({}, t), s));
431
+ var o = Pe(a.stem);
432
+ o && (t = f(f({}, t), o));
433
+ var s = nt(a.stem);
434
+ s && (t = f(f({}, t), s));
415
435
  }
416
436
  return t;
417
437
  }
418
- var V = {
438
+ var U = {
419
439
  "001": [
420
440
  "H",
421
441
  "h"
@@ -1824,22 +1844,22 @@ var V = {
1824
1844
  "h"
1825
1845
  ]
1826
1846
  };
1827
- function nt(e, t) {
1828
- for (var n = "", r = 0; r < e.length; r++) {
1829
- var a = e.charAt(r);
1847
+ function it(e, t) {
1848
+ for (var r = "", n = 0; n < e.length; n++) {
1849
+ var a = e.charAt(n);
1830
1850
  if (a === "j") {
1831
- for (var i = 0; r + 1 < e.length && e.charAt(r + 1) === a; )
1832
- i++, r++;
1833
- var o = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), u = "a", l = at(t);
1851
+ for (var i = 0; n + 1 < e.length && e.charAt(n + 1) === a; )
1852
+ i++, n++;
1853
+ var o = 1 + (i & 1), s = i < 2 ? 1 : 3 + (i >> 1), u = "a", l = ot(t);
1834
1854
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
1835
- n += u;
1855
+ r += u;
1836
1856
  for (; o-- > 0; )
1837
- n = l + n;
1838
- } else a === "J" ? n += "H" : n += a;
1857
+ r = l + r;
1858
+ } else a === "J" ? r += "H" : r += a;
1839
1859
  }
1840
- return n;
1860
+ return r;
1841
1861
  }
1842
- function at(e) {
1862
+ function ot(e) {
1843
1863
  var t = e.hourCycle;
1844
1864
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
1845
1865
  e.hourCycles && // @ts-ignore
@@ -1856,73 +1876,73 @@ function at(e) {
1856
1876
  default:
1857
1877
  throw new Error("Invalid hourCycle");
1858
1878
  }
1859
- var n = e.language, r;
1860
- n !== "root" && (r = e.maximize().region);
1861
- var a = V[r || ""] || V[n || ""] || V["".concat(n, "-001")] || V["001"];
1879
+ var r = e.language, n;
1880
+ r !== "root" && (n = e.maximize().region);
1881
+ var a = U[n || ""] || U[r || ""] || U["".concat(r, "-001")] || U["001"];
1862
1882
  return a[0];
1863
1883
  }
1864
- var z, it = new RegExp("^".concat(Be.source, "*")), ot = new RegExp("".concat(Be.source, "*$"));
1884
+ var X, st = new RegExp("^".concat(Ae.source, "*")), ut = new RegExp("".concat(Ae.source, "*$"));
1865
1885
  function v(e, t) {
1866
1886
  return { start: e, end: t };
1867
1887
  }
1868
- var st = !!String.prototype.startsWith && "_a".startsWith("a", 1), ut = !!String.fromCodePoint, ht = !!Object.fromEntries, lt = !!String.prototype.codePointAt, ft = !!String.prototype.trimStart, ct = !!String.prototype.trimEnd, mt = !!Number.isSafeInteger, pt = mt ? Number.isSafeInteger : function(e) {
1888
+ var ht = !!String.prototype.startsWith && "_a".startsWith("a", 1), lt = !!String.fromCodePoint, ft = !!Object.fromEntries, mt = !!String.prototype.codePointAt, ct = !!String.prototype.trimStart, gt = !!String.prototype.trimEnd, pt = !!Number.isSafeInteger, vt = pt ? Number.isSafeInteger : function(e) {
1869
1889
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
1870
- }, K = !0;
1890
+ }, q = !0;
1871
1891
  try {
1872
- var gt = Me("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1873
- K = ((z = gt.exec("a")) === null || z === void 0 ? void 0 : z[0]) === "a";
1892
+ var Et = Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1893
+ q = ((X = Et.exec("a")) === null || X === void 0 ? void 0 : X[0]) === "a";
1874
1894
  } catch {
1875
- K = !1;
1895
+ q = !1;
1876
1896
  }
1877
- var ce = st ? (
1897
+ var ue = ht ? (
1878
1898
  // Native
1879
- function(t, n, r) {
1880
- return t.startsWith(n, r);
1899
+ function(t, r, n) {
1900
+ return t.startsWith(r, n);
1881
1901
  }
1882
1902
  ) : (
1883
1903
  // For IE11
1884
- function(t, n, r) {
1885
- return t.slice(r, r + n.length) === n;
1904
+ function(t, r, n) {
1905
+ return t.slice(n, n + r.length) === r;
1886
1906
  }
1887
- ), ee = ut ? String.fromCodePoint : (
1907
+ ), Q = lt ? String.fromCodePoint : (
1888
1908
  // IE11
1889
1909
  function() {
1890
- for (var t = [], n = 0; n < arguments.length; n++)
1891
- t[n] = arguments[n];
1892
- for (var r = "", a = t.length, i = 0, o; a > i; ) {
1910
+ for (var t = [], r = 0; r < arguments.length; r++)
1911
+ t[r] = arguments[r];
1912
+ for (var n = "", a = t.length, i = 0, o; a > i; ) {
1893
1913
  if (o = t[i++], o > 1114111)
1894
1914
  throw RangeError(o + " is not a valid code point");
1895
- r += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
1915
+ n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
1896
1916
  }
1897
- return r;
1917
+ return n;
1898
1918
  }
1899
- ), me = (
1919
+ ), he = (
1900
1920
  // native
1901
- ht ? Object.fromEntries : (
1921
+ ft ? Object.fromEntries : (
1902
1922
  // Ponyfill
1903
1923
  function(t) {
1904
- for (var n = {}, r = 0, a = t; r < a.length; r++) {
1905
- var i = a[r], o = i[0], s = i[1];
1906
- n[o] = s;
1924
+ for (var r = {}, n = 0, a = t; n < a.length; n++) {
1925
+ var i = a[n], o = i[0], s = i[1];
1926
+ r[o] = s;
1907
1927
  }
1908
- return n;
1928
+ return r;
1909
1929
  }
1910
1930
  )
1911
- ), Le = lt ? (
1931
+ ), Le = mt ? (
1912
1932
  // Native
1913
- function(t, n) {
1914
- return t.codePointAt(n);
1933
+ function(t, r) {
1934
+ return t.codePointAt(r);
1915
1935
  }
1916
1936
  ) : (
1917
1937
  // IE 11
1918
- function(t, n) {
1919
- var r = t.length;
1920
- if (!(n < 0 || n >= r)) {
1921
- var a = t.charCodeAt(n), i;
1922
- return a < 55296 || a > 56319 || n + 1 === r || (i = t.charCodeAt(n + 1)) < 56320 || i > 57343 ? a : (a - 55296 << 10) + (i - 56320) + 65536;
1938
+ function(t, r) {
1939
+ var n = t.length;
1940
+ if (!(r < 0 || r >= n)) {
1941
+ var a = t.charCodeAt(r), i;
1942
+ return a < 55296 || a > 56319 || r + 1 === n || (i = t.charCodeAt(r + 1)) < 56320 || i > 57343 ? a : (a - 55296 << 10) + (i - 56320) + 65536;
1923
1943
  }
1924
1944
  }
1925
- ), vt = ft ? (
1945
+ ), dt = ct ? (
1926
1946
  // Native
1927
1947
  function(t) {
1928
1948
  return t.trimStart();
@@ -1930,9 +1950,9 @@ var ce = st ? (
1930
1950
  ) : (
1931
1951
  // Ponyfill
1932
1952
  function(t) {
1933
- return t.replace(it, "");
1953
+ return t.replace(st, "");
1934
1954
  }
1935
- ), Et = ct ? (
1955
+ ), bt = gt ? (
1936
1956
  // Native
1937
1957
  function(t) {
1938
1958
  return t.trimEnd();
@@ -1940,69 +1960,69 @@ var ce = st ? (
1940
1960
  ) : (
1941
1961
  // Ponyfill
1942
1962
  function(t) {
1943
- return t.replace(ot, "");
1963
+ return t.replace(ut, "");
1944
1964
  }
1945
1965
  );
1946
- function Me(e, t) {
1966
+ function Re(e, t) {
1947
1967
  return new RegExp(e, t);
1948
1968
  }
1949
- var te;
1950
- if (K) {
1951
- var pe = Me("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1952
- te = function(t, n) {
1953
- var r;
1954
- pe.lastIndex = n;
1955
- var a = pe.exec(t);
1956
- return (r = a[1]) !== null && r !== void 0 ? r : "";
1969
+ var Y;
1970
+ if (q) {
1971
+ var le = Re("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
1972
+ Y = function(t, r) {
1973
+ var n;
1974
+ le.lastIndex = r;
1975
+ var a = le.exec(t);
1976
+ return (n = a[1]) !== null && n !== void 0 ? n : "";
1957
1977
  };
1958
1978
  } else
1959
- te = function(t, n) {
1960
- for (var r = []; ; ) {
1961
- var a = Le(t, n);
1962
- if (a === void 0 || Ce(a) || xt(a))
1979
+ Y = function(t, r) {
1980
+ for (var n = []; ; ) {
1981
+ var a = Le(t, r);
1982
+ if (a === void 0 || Oe(a) || St(a))
1963
1983
  break;
1964
- r.push(a), n += a >= 65536 ? 2 : 1;
1984
+ n.push(a), r += a >= 65536 ? 2 : 1;
1965
1985
  }
1966
- return ee.apply(void 0, r);
1986
+ return Q.apply(void 0, n);
1967
1987
  };
1968
- var dt = (
1988
+ var yt = (
1969
1989
  /** @class */
1970
1990
  function() {
1971
- function e(t, n) {
1972
- n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
1991
+ function e(t, r) {
1992
+ r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
1973
1993
  }
1974
1994
  return e.prototype.parse = function() {
1975
1995
  if (this.offset() !== 0)
1976
1996
  throw Error("parser can only be used once");
1977
1997
  return this.parseMessage(0, "", !1);
1978
- }, e.prototype.parseMessage = function(t, n, r) {
1998
+ }, e.prototype.parseMessage = function(t, r, n) {
1979
1999
  for (var a = []; !this.isEOF(); ) {
1980
2000
  var i = this.char();
1981
2001
  if (i === 123) {
1982
- var o = this.parseArgument(t, r);
2002
+ var o = this.parseArgument(t, n);
1983
2003
  if (o.err)
1984
2004
  return o;
1985
2005
  a.push(o.val);
1986
2006
  } else {
1987
2007
  if (i === 125 && t > 0)
1988
2008
  break;
1989
- if (i === 35 && (n === "plural" || n === "selectordinal")) {
2009
+ if (i === 35 && (r === "plural" || r === "selectordinal")) {
1990
2010
  var s = this.clonePosition();
1991
2011
  this.bump(), a.push({
1992
2012
  type: b.pound,
1993
2013
  location: v(s, this.clonePosition())
1994
2014
  });
1995
2015
  } else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
1996
- if (r)
2016
+ if (n)
1997
2017
  break;
1998
- return this.error(p.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
1999
- } else if (i === 60 && !this.ignoreTag && re(this.peek() || 0)) {
2000
- var o = this.parseTag(t, n);
2018
+ return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
2019
+ } else if (i === 60 && !this.ignoreTag && $(this.peek() || 0)) {
2020
+ var o = this.parseTag(t, r);
2001
2021
  if (o.err)
2002
2022
  return o;
2003
2023
  a.push(o.val);
2004
2024
  } else {
2005
- var o = this.parseLiteral(t, n);
2025
+ var o = this.parseLiteral(t, r);
2006
2026
  if (o.err)
2007
2027
  return o;
2008
2028
  a.push(o.val);
@@ -2010,8 +2030,8 @@ var dt = (
2010
2030
  }
2011
2031
  }
2012
2032
  return { val: a, err: null };
2013
- }, e.prototype.parseTag = function(t, n) {
2014
- var r = this.clonePosition();
2033
+ }, e.prototype.parseTag = function(t, r) {
2034
+ var n = this.clonePosition();
2015
2035
  this.bump();
2016
2036
  var a = this.parseTagName();
2017
2037
  if (this.bumpSpace(), this.bumpIf("/>"))
@@ -2019,45 +2039,45 @@ var dt = (
2019
2039
  val: {
2020
2040
  type: b.literal,
2021
2041
  value: "<".concat(a, "/>"),
2022
- location: v(r, this.clonePosition())
2042
+ location: v(n, this.clonePosition())
2023
2043
  },
2024
2044
  err: null
2025
2045
  };
2026
2046
  if (this.bumpIf(">")) {
2027
- var i = this.parseMessage(t + 1, n, !0);
2047
+ var i = this.parseMessage(t + 1, r, !0);
2028
2048
  if (i.err)
2029
2049
  return i;
2030
2050
  var o = i.val, s = this.clonePosition();
2031
2051
  if (this.bumpIf("</")) {
2032
- if (this.isEOF() || !re(this.char()))
2033
- return this.error(p.INVALID_TAG, v(s, this.clonePosition()));
2052
+ if (this.isEOF() || !$(this.char()))
2053
+ return this.error(g.INVALID_TAG, v(s, this.clonePosition()));
2034
2054
  var u = this.clonePosition(), l = this.parseTagName();
2035
- return a !== l ? this.error(p.UNMATCHED_CLOSING_TAG, v(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2055
+ return a !== l ? this.error(g.UNMATCHED_CLOSING_TAG, v(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2036
2056
  val: {
2037
2057
  type: b.tag,
2038
2058
  value: a,
2039
2059
  children: o,
2040
- location: v(r, this.clonePosition())
2060
+ location: v(n, this.clonePosition())
2041
2061
  },
2042
2062
  err: null
2043
- } : this.error(p.INVALID_TAG, v(s, this.clonePosition())));
2063
+ } : this.error(g.INVALID_TAG, v(s, this.clonePosition())));
2044
2064
  } else
2045
- return this.error(p.UNCLOSED_TAG, v(r, this.clonePosition()));
2065
+ return this.error(g.UNCLOSED_TAG, v(n, this.clonePosition()));
2046
2066
  } else
2047
- return this.error(p.INVALID_TAG, v(r, this.clonePosition()));
2067
+ return this.error(g.INVALID_TAG, v(n, this.clonePosition()));
2048
2068
  }, e.prototype.parseTagName = function() {
2049
2069
  var t = this.offset();
2050
- for (this.bump(); !this.isEOF() && yt(this.char()); )
2070
+ for (this.bump(); !this.isEOF() && Tt(this.char()); )
2051
2071
  this.bump();
2052
2072
  return this.message.slice(t, this.offset());
2053
- }, e.prototype.parseLiteral = function(t, n) {
2054
- for (var r = this.clonePosition(), a = ""; ; ) {
2055
- var i = this.tryParseQuote(n);
2073
+ }, e.prototype.parseLiteral = function(t, r) {
2074
+ for (var n = this.clonePosition(), a = ""; ; ) {
2075
+ var i = this.tryParseQuote(r);
2056
2076
  if (i) {
2057
2077
  a += i;
2058
2078
  continue;
2059
2079
  }
2060
- var o = this.tryParseUnquoted(t, n);
2080
+ var o = this.tryParseUnquoted(t, r);
2061
2081
  if (o) {
2062
2082
  a += o;
2063
2083
  continue;
@@ -2069,14 +2089,14 @@ var dt = (
2069
2089
  }
2070
2090
  break;
2071
2091
  }
2072
- var u = v(r, this.clonePosition());
2092
+ var u = v(n, this.clonePosition());
2073
2093
  return {
2074
2094
  val: { type: b.literal, value: a, location: u },
2075
2095
  err: null
2076
2096
  };
2077
2097
  }, e.prototype.tryParseLeftAngleBracket = function() {
2078
2098
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2079
- !bt(this.peek() || 0)) ? (this.bump(), "<") : null;
2099
+ !xt(this.peek() || 0)) ? (this.bump(), "<") : null;
2080
2100
  }, e.prototype.tryParseQuote = function(t) {
2081
2101
  if (this.isEOF() || this.char() !== 39)
2082
2102
  return null;
@@ -2096,37 +2116,37 @@ var dt = (
2096
2116
  return null;
2097
2117
  }
2098
2118
  this.bump();
2099
- var n = [this.char()];
2119
+ var r = [this.char()];
2100
2120
  for (this.bump(); !this.isEOF(); ) {
2101
- var r = this.char();
2102
- if (r === 39)
2121
+ var n = this.char();
2122
+ if (n === 39)
2103
2123
  if (this.peek() === 39)
2104
- n.push(39), this.bump();
2124
+ r.push(39), this.bump();
2105
2125
  else {
2106
2126
  this.bump();
2107
2127
  break;
2108
2128
  }
2109
2129
  else
2110
- n.push(r);
2130
+ r.push(n);
2111
2131
  this.bump();
2112
2132
  }
2113
- return ee.apply(void 0, n);
2114
- }, e.prototype.tryParseUnquoted = function(t, n) {
2133
+ return Q.apply(void 0, r);
2134
+ }, e.prototype.tryParseUnquoted = function(t, r) {
2115
2135
  if (this.isEOF())
2116
2136
  return null;
2117
- var r = this.char();
2118
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), ee(r));
2119
- }, e.prototype.parseArgument = function(t, n) {
2120
- var r = this.clonePosition();
2137
+ var n = this.char();
2138
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Q(n));
2139
+ }, e.prototype.parseArgument = function(t, r) {
2140
+ var n = this.clonePosition();
2121
2141
  if (this.bump(), this.bumpSpace(), this.isEOF())
2122
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2142
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
2123
2143
  if (this.char() === 125)
2124
- return this.bump(), this.error(p.EMPTY_ARGUMENT, v(r, this.clonePosition()));
2144
+ return this.bump(), this.error(g.EMPTY_ARGUMENT, v(n, this.clonePosition()));
2125
2145
  var a = this.parseIdentifierIfPossible().value;
2126
2146
  if (!a)
2127
- return this.error(p.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2147
+ return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
2128
2148
  if (this.bumpSpace(), this.isEOF())
2129
- return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition()));
2149
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
2130
2150
  switch (this.char()) {
2131
2151
  case 125:
2132
2152
  return this.bump(), {
@@ -2134,25 +2154,25 @@ var dt = (
2134
2154
  type: b.argument,
2135
2155
  // value does not include the opening and closing braces.
2136
2156
  value: a,
2137
- location: v(r, this.clonePosition())
2157
+ location: v(n, this.clonePosition())
2138
2158
  },
2139
2159
  err: null
2140
2160
  };
2141
2161
  case 44:
2142
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(r, this.clonePosition())) : this.parseArgumentOptions(t, n, a, r);
2162
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, a, n);
2143
2163
  default:
2144
- return this.error(p.MALFORMED_ARGUMENT, v(r, this.clonePosition()));
2164
+ return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
2145
2165
  }
2146
2166
  }, e.prototype.parseIdentifierIfPossible = function() {
2147
- var t = this.clonePosition(), n = this.offset(), r = te(this.message, n), a = n + r.length;
2167
+ var t = this.clonePosition(), r = this.offset(), n = Y(this.message, r), a = r + n.length;
2148
2168
  this.bumpTo(a);
2149
2169
  var i = this.clonePosition(), o = v(t, i);
2150
- return { value: r, location: o };
2151
- }, e.prototype.parseArgumentOptions = function(t, n, r, a) {
2170
+ return { value: n, location: o };
2171
+ }, e.prototype.parseArgumentOptions = function(t, r, n, a) {
2152
2172
  var i, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
2153
2173
  switch (s) {
2154
2174
  case "":
2155
- return this.error(p.EXPECT_ARGUMENT_TYPE, v(o, u));
2175
+ return this.error(g.EXPECT_ARGUMENT_TYPE, v(o, u));
2156
2176
  case "number":
2157
2177
  case "date":
2158
2178
  case "time": {
@@ -2160,40 +2180,40 @@ var dt = (
2160
2180
  var l = null;
2161
2181
  if (this.bumpIf(",")) {
2162
2182
  this.bumpSpace();
2163
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2164
- if (f.err)
2165
- return f;
2166
- var c = Et(f.val);
2183
+ var h = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
2184
+ if (m.err)
2185
+ return m;
2186
+ var c = bt(m.val);
2167
2187
  if (c.length === 0)
2168
- return this.error(p.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2188
+ return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
2169
2189
  var E = v(h, this.clonePosition());
2170
2190
  l = { style: c, styleLocation: E };
2171
2191
  }
2172
2192
  var x = this.tryParseArgumentClose(a);
2173
2193
  if (x.err)
2174
2194
  return x;
2175
- var g = v(a, this.clonePosition());
2176
- if (l && ce(l == null ? void 0 : l.style, "::", 0)) {
2177
- var d = vt(l.style.slice(2));
2195
+ var p = v(a, this.clonePosition());
2196
+ if (l && ue(l == null ? void 0 : l.style, "::", 0)) {
2197
+ var d = dt(l.style.slice(2));
2178
2198
  if (s === "number") {
2179
- var f = this.parseNumberSkeletonFromString(d, l.styleLocation);
2180
- return f.err ? f : {
2181
- val: { type: b.number, value: r, location: g, style: f.val },
2199
+ var m = this.parseNumberSkeletonFromString(d, l.styleLocation);
2200
+ return m.err ? m : {
2201
+ val: { type: b.number, value: n, location: p, style: m.val },
2182
2202
  err: null
2183
2203
  };
2184
2204
  } else {
2185
2205
  if (d.length === 0)
2186
- return this.error(p.EXPECT_DATE_TIME_SKELETON, g);
2206
+ return this.error(g.EXPECT_DATE_TIME_SKELETON, p);
2187
2207
  var y = d;
2188
- this.locale && (y = nt(d, this.locale));
2208
+ this.locale && (y = it(d, this.locale));
2189
2209
  var c = {
2190
2210
  type: D.dateTime,
2191
2211
  pattern: y,
2192
2212
  location: l.styleLocation,
2193
- parsedOptions: this.shouldParseSkeletons ? qe(y) : {}
2194
- }, H = s === "date" ? b.date : b.time;
2213
+ parsedOptions: this.shouldParseSkeletons ? $e(y) : {}
2214
+ }, A = s === "date" ? b.date : b.time;
2195
2215
  return {
2196
- val: { type: H, value: r, location: g, style: c },
2216
+ val: { type: A, value: n, location: p, style: c },
2197
2217
  err: null
2198
2218
  };
2199
2219
  }
@@ -2201,8 +2221,8 @@ var dt = (
2201
2221
  return {
2202
2222
  val: {
2203
2223
  type: s === "number" ? b.number : s === "date" ? b.date : b.time,
2204
- value: r,
2205
- location: g,
2224
+ value: n,
2225
+ location: p,
2206
2226
  style: (i = l == null ? void 0 : l.style) !== null && i !== void 0 ? i : null
2207
2227
  },
2208
2228
  err: null
@@ -2213,59 +2233,59 @@ var dt = (
2213
2233
  case "select": {
2214
2234
  var T = this.clonePosition();
2215
2235
  if (this.bumpSpace(), !this.bumpIf(","))
2216
- return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, m({}, T)));
2236
+ return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, v(T, f({}, T)));
2217
2237
  this.bumpSpace();
2218
- var F = this.parseIdentifierIfPossible(), O = 0;
2219
- if (s !== "select" && F.value === "offset") {
2238
+ var w = this.parseIdentifierIfPossible(), R = 0;
2239
+ if (s !== "select" && w.value === "offset") {
2220
2240
  if (!this.bumpIf(":"))
2221
- return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2241
+ return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
2222
2242
  this.bumpSpace();
2223
- var f = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2224
- if (f.err)
2225
- return f;
2226
- this.bumpSpace(), F = this.parseIdentifierIfPossible(), O = f.val;
2243
+ var m = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2244
+ if (m.err)
2245
+ return m;
2246
+ this.bumpSpace(), w = this.parseIdentifierIfPossible(), R = m.val;
2227
2247
  }
2228
- var U = this.tryParsePluralOrSelectOptions(t, s, n, F);
2229
- if (U.err)
2230
- return U;
2248
+ var G = this.tryParsePluralOrSelectOptions(t, s, r, w);
2249
+ if (G.err)
2250
+ return G;
2231
2251
  var x = this.tryParseArgumentClose(a);
2232
2252
  if (x.err)
2233
2253
  return x;
2234
- var se = v(a, this.clonePosition());
2254
+ var ne = v(a, this.clonePosition());
2235
2255
  return s === "select" ? {
2236
2256
  val: {
2237
2257
  type: b.select,
2238
- value: r,
2239
- options: me(U.val),
2240
- location: se
2258
+ value: n,
2259
+ options: he(G.val),
2260
+ location: ne
2241
2261
  },
2242
2262
  err: null
2243
2263
  } : {
2244
2264
  val: {
2245
2265
  type: b.plural,
2246
- value: r,
2247
- options: me(U.val),
2248
- offset: O,
2266
+ value: n,
2267
+ options: he(G.val),
2268
+ offset: R,
2249
2269
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2250
- location: se
2270
+ location: ne
2251
2271
  },
2252
2272
  err: null
2253
2273
  };
2254
2274
  }
2255
2275
  default:
2256
- return this.error(p.INVALID_ARGUMENT_TYPE, v(o, u));
2276
+ return this.error(g.INVALID_ARGUMENT_TYPE, v(o, u));
2257
2277
  }
2258
2278
  }, e.prototype.tryParseArgumentClose = function(t) {
2259
- return this.isEOF() || this.char() !== 125 ? this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2279
+ return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2260
2280
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2261
- for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2262
- var r = this.char();
2263
- switch (r) {
2281
+ for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
2282
+ var n = this.char();
2283
+ switch (n) {
2264
2284
  case 39: {
2265
2285
  this.bump();
2266
2286
  var a = this.clonePosition();
2267
2287
  if (!this.bumpUntil("'"))
2268
- return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(a, this.clonePosition()));
2288
+ return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(a, this.clonePosition()));
2269
2289
  this.bump();
2270
2290
  break;
2271
2291
  }
@@ -2278,7 +2298,7 @@ var dt = (
2278
2298
  t -= 1;
2279
2299
  else
2280
2300
  return {
2281
- val: this.message.slice(n.offset, this.offset()),
2301
+ val: this.message.slice(r.offset, this.offset()),
2282
2302
  err: null
2283
2303
  };
2284
2304
  break;
@@ -2289,49 +2309,49 @@ var dt = (
2289
2309
  }
2290
2310
  }
2291
2311
  return {
2292
- val: this.message.slice(n.offset, this.offset()),
2312
+ val: this.message.slice(r.offset, this.offset()),
2293
2313
  err: null
2294
2314
  };
2295
- }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2296
- var r = [];
2315
+ }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
2316
+ var n = [];
2297
2317
  try {
2298
- r = Ye(t);
2318
+ n = et(t);
2299
2319
  } catch {
2300
- return this.error(p.INVALID_NUMBER_SKELETON, n);
2320
+ return this.error(g.INVALID_NUMBER_SKELETON, r);
2301
2321
  }
2302
2322
  return {
2303
2323
  val: {
2304
2324
  type: D.number,
2305
- tokens: r,
2306
- location: n,
2307
- parsedOptions: this.shouldParseSkeletons ? rt(r) : {}
2325
+ tokens: n,
2326
+ location: r,
2327
+ parsedOptions: this.shouldParseSkeletons ? at(n) : {}
2308
2328
  },
2309
2329
  err: null
2310
2330
  };
2311
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, a) {
2331
+ }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, a) {
2312
2332
  for (var i, o = !1, s = [], u = /* @__PURE__ */ new Set(), l = a.value, h = a.location; ; ) {
2313
2333
  if (l.length === 0) {
2314
- var f = this.clonePosition();
2315
- if (n !== "select" && this.bumpIf("=")) {
2316
- var c = this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR, p.INVALID_PLURAL_ARGUMENT_SELECTOR);
2334
+ var m = this.clonePosition();
2335
+ if (r !== "select" && this.bumpIf("=")) {
2336
+ var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
2317
2337
  if (c.err)
2318
2338
  return c;
2319
- h = v(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
2339
+ h = v(m, this.clonePosition()), l = this.message.slice(m.offset, this.offset());
2320
2340
  } else
2321
2341
  break;
2322
2342
  }
2323
2343
  if (u.has(l))
2324
- return this.error(n === "select" ? p.DUPLICATE_SELECT_ARGUMENT_SELECTOR : p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2344
+ return this.error(r === "select" ? g.DUPLICATE_SELECT_ARGUMENT_SELECTOR : g.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
2325
2345
  l === "other" && (o = !0), this.bumpSpace();
2326
2346
  var E = this.clonePosition();
2327
2347
  if (!this.bumpIf("{"))
2328
- return this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2329
- var x = this.parseMessage(t + 1, n, r);
2348
+ return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
2349
+ var x = this.parseMessage(t + 1, r, n);
2330
2350
  if (x.err)
2331
2351
  return x;
2332
- var g = this.tryParseArgumentClose(E);
2333
- if (g.err)
2334
- return g;
2352
+ var p = this.tryParseArgumentClose(E);
2353
+ if (p.err)
2354
+ return p;
2335
2355
  s.push([
2336
2356
  l,
2337
2357
  {
@@ -2340,10 +2360,10 @@ var dt = (
2340
2360
  }
2341
2361
  ]), u.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, h = i.location;
2342
2362
  }
2343
- return s.length === 0 ? this.error(n === "select" ? p.EXPECT_SELECT_ARGUMENT_SELECTOR : p.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(p.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2344
- }, e.prototype.tryParseDecimalInteger = function(t, n) {
2345
- var r = 1, a = this.clonePosition();
2346
- this.bumpIf("+") || this.bumpIf("-") && (r = -1);
2363
+ return s.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(g.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
2364
+ }, e.prototype.tryParseDecimalInteger = function(t, r) {
2365
+ var n = 1, a = this.clonePosition();
2366
+ this.bumpIf("+") || this.bumpIf("-") && (n = -1);
2347
2367
  for (var i = !1, o = 0; !this.isEOF(); ) {
2348
2368
  var s = this.char();
2349
2369
  if (s >= 48 && s <= 57)
@@ -2352,7 +2372,7 @@ var dt = (
2352
2372
  break;
2353
2373
  }
2354
2374
  var u = v(a, this.clonePosition());
2355
- return i ? (o *= r, pt(o) ? { val: o, err: null } : this.error(n, u)) : this.error(t, u);
2375
+ return i ? (o *= n, vt(o) ? { val: o, err: null } : this.error(r, u)) : this.error(t, u);
2356
2376
  }, e.prototype.offset = function() {
2357
2377
  return this.position.offset;
2358
2378
  }, e.prototype.isEOF = function() {
@@ -2367,17 +2387,17 @@ var dt = (
2367
2387
  var t = this.position.offset;
2368
2388
  if (t >= this.message.length)
2369
2389
  throw Error("out of bound");
2370
- var n = Le(this.message, t);
2371
- if (n === void 0)
2390
+ var r = Le(this.message, t);
2391
+ if (r === void 0)
2372
2392
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2373
- return n;
2374
- }, e.prototype.error = function(t, n) {
2393
+ return r;
2394
+ }, e.prototype.error = function(t, r) {
2375
2395
  return {
2376
2396
  val: null,
2377
2397
  err: {
2378
2398
  kind: t,
2379
2399
  message: this.message,
2380
- location: n
2400
+ location: r
2381
2401
  }
2382
2402
  };
2383
2403
  }, e.prototype.bump = function() {
@@ -2386,178 +2406,128 @@ var dt = (
2386
2406
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
2387
2407
  }
2388
2408
  }, e.prototype.bumpIf = function(t) {
2389
- if (ce(this.message, t, this.offset())) {
2390
- for (var n = 0; n < t.length; n++)
2409
+ if (ue(this.message, t, this.offset())) {
2410
+ for (var r = 0; r < t.length; r++)
2391
2411
  this.bump();
2392
2412
  return !0;
2393
2413
  }
2394
2414
  return !1;
2395
2415
  }, e.prototype.bumpUntil = function(t) {
2396
- var n = this.offset(), r = this.message.indexOf(t, n);
2397
- return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
2416
+ var r = this.offset(), n = this.message.indexOf(t, r);
2417
+ return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
2398
2418
  }, e.prototype.bumpTo = function(t) {
2399
2419
  if (this.offset() > t)
2400
2420
  throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
2401
2421
  for (t = Math.min(t, this.message.length); ; ) {
2402
- var n = this.offset();
2403
- if (n === t)
2422
+ var r = this.offset();
2423
+ if (r === t)
2404
2424
  break;
2405
- if (n > t)
2425
+ if (r > t)
2406
2426
  throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
2407
2427
  if (this.bump(), this.isEOF())
2408
2428
  break;
2409
2429
  }
2410
2430
  }, e.prototype.bumpSpace = function() {
2411
- for (; !this.isEOF() && Ce(this.char()); )
2431
+ for (; !this.isEOF() && Oe(this.char()); )
2412
2432
  this.bump();
2413
2433
  }, e.prototype.peek = function() {
2414
2434
  if (this.isEOF())
2415
2435
  return null;
2416
- var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
2417
- return r ?? null;
2436
+ var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
2437
+ return n ?? null;
2418
2438
  }, e;
2419
2439
  }()
2420
2440
  );
2421
- function re(e) {
2441
+ function $(e) {
2422
2442
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
2423
2443
  }
2424
- function bt(e) {
2425
- return re(e) || e === 47;
2444
+ function xt(e) {
2445
+ return $(e) || e === 47;
2426
2446
  }
2427
- function yt(e) {
2447
+ function Tt(e) {
2428
2448
  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;
2429
2449
  }
2430
- function Ce(e) {
2450
+ function Oe(e) {
2431
2451
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
2432
2452
  }
2433
- function xt(e) {
2453
+ function St(e) {
2434
2454
  return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
2435
2455
  }
2436
- function ne(e) {
2456
+ function K(e) {
2437
2457
  e.forEach(function(t) {
2438
- if (delete t.location, Ie(t) || Ae(t))
2439
- for (var n in t.options)
2440
- delete t.options[n].location, ne(t.options[n].value);
2441
- else Te(t) && Ne(t.style) || (Se(t) || He(t)) && Y(t.style) ? delete t.style.location : _e(t) && ne(t.children);
2458
+ if (delete t.location, Se(t) || He(t))
2459
+ for (var r in t.options)
2460
+ delete t.options[r].location, K(t.options[r].value);
2461
+ else ye(t) && Ne(t.style) || (xe(t) || Te(t)) && J(t.style) ? delete t.style.location : Ie(t) && K(t.children);
2442
2462
  });
2443
2463
  }
2444
- function Tt(e, t) {
2445
- t === void 0 && (t = {}), t = m({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2446
- var n = new dt(e, t).parse();
2447
- if (n.err) {
2448
- var r = SyntaxError(p[n.err.kind]);
2449
- throw r.location = n.err.location, r.originalMessage = n.err.message, r;
2450
- }
2451
- return t != null && t.captureLocation || ne(n.val), n.val;
2452
- }
2453
- function A(e, t) {
2454
- var n = t && t.cache ? t.cache : Nt, r = t && t.serializer ? t.serializer : _t, a = t && t.strategy ? t.strategy : Ht;
2455
- return a(e, {
2456
- cache: n,
2457
- serializer: r
2458
- });
2459
- }
2460
- function St(e) {
2461
- return e == null || typeof e == "number" || typeof e == "boolean";
2462
- }
2463
- function we(e, t, n, r) {
2464
- var a = St(r) ? r : n(r), i = t.get(a);
2465
- return typeof i > "u" && (i = e.call(this, r), t.set(a, i)), i;
2466
- }
2467
- function De(e, t, n) {
2468
- var r = Array.prototype.slice.call(arguments, 3), a = n(r), i = t.get(a);
2469
- return typeof i > "u" && (i = e.apply(this, r), t.set(a, i)), i;
2470
- }
2471
- function ae(e, t, n, r, a) {
2472
- return n.bind(t, e, r, a);
2473
- }
2474
2464
  function Ht(e, t) {
2475
- var n = e.length === 1 ? we : De;
2476
- return ae(e, this, n, t.cache.create(), t.serializer);
2477
- }
2478
- function It(e, t) {
2479
- return ae(e, this, De, t.cache.create(), t.serializer);
2480
- }
2481
- function At(e, t) {
2482
- return ae(e, this, we, t.cache.create(), t.serializer);
2483
- }
2484
- var _t = function() {
2485
- return JSON.stringify(arguments);
2486
- };
2487
- function ie() {
2488
- this.cache = /* @__PURE__ */ Object.create(null);
2489
- }
2490
- ie.prototype.get = function(e) {
2491
- return this.cache[e];
2492
- };
2493
- ie.prototype.set = function(e, t) {
2494
- this.cache[e] = t;
2495
- };
2496
- var Nt = {
2497
- create: function() {
2498
- return new ie();
2465
+ t === void 0 && (t = {}), t = f({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
2466
+ var r = new yt(e, t).parse();
2467
+ if (r.err) {
2468
+ var n = SyntaxError(g[r.err.kind]);
2469
+ throw n.location = r.err.location, n.originalMessage = r.err.message, n;
2499
2470
  }
2500
- }, _ = {
2501
- variadic: It,
2502
- monadic: At
2503
- }, B;
2471
+ return t != null && t.captureLocation || K(r.val), r.val;
2472
+ }
2473
+ var P;
2504
2474
  (function(e) {
2505
2475
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
2506
- })(B || (B = {}));
2507
- var P = (
2476
+ })(P || (P = {}));
2477
+ var L = (
2508
2478
  /** @class */
2509
2479
  function(e) {
2510
- X(t, e);
2511
- function t(n, r, a) {
2512
- var i = e.call(this, n) || this;
2513
- return i.code = r, i.originalMessage = a, i;
2480
+ _(t, e);
2481
+ function t(r, n, a) {
2482
+ var i = e.call(this, r) || this;
2483
+ return i.code = n, i.originalMessage = a, i;
2514
2484
  }
2515
2485
  return t.prototype.toString = function() {
2516
2486
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
2517
2487
  }, t;
2518
2488
  }(Error)
2519
- ), ge = (
2489
+ ), fe = (
2520
2490
  /** @class */
2521
2491
  function(e) {
2522
- X(t, e);
2523
- function t(n, r, a, i) {
2524
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(a).join('", "'), '"'), B.INVALID_VALUE, i) || this;
2492
+ _(t, e);
2493
+ function t(r, n, a, i) {
2494
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(a).join('", "'), '"'), P.INVALID_VALUE, i) || this;
2525
2495
  }
2526
2496
  return t;
2527
- }(P)
2528
- ), Bt = (
2497
+ }(L)
2498
+ ), It = (
2529
2499
  /** @class */
2530
2500
  function(e) {
2531
- X(t, e);
2532
- function t(n, r, a) {
2533
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), B.INVALID_VALUE, a) || this;
2501
+ _(t, e);
2502
+ function t(r, n, a) {
2503
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), P.INVALID_VALUE, a) || this;
2534
2504
  }
2535
2505
  return t;
2536
- }(P)
2537
- ), Pt = (
2506
+ }(L)
2507
+ ), Nt = (
2538
2508
  /** @class */
2539
2509
  function(e) {
2540
- X(t, e);
2541
- function t(n, r) {
2542
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), B.MISSING_VALUE, r) || this;
2510
+ _(t, e);
2511
+ function t(r, n) {
2512
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), P.MISSING_VALUE, n) || this;
2543
2513
  }
2544
2514
  return t;
2545
- }(P)
2515
+ }(L)
2546
2516
  ), S;
2547
2517
  (function(e) {
2548
2518
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
2549
2519
  })(S || (S = {}));
2550
- function Ot(e) {
2551
- return e.length < 2 ? e : e.reduce(function(t, n) {
2552
- var r = t[t.length - 1];
2553
- return !r || r.type !== S.literal || n.type !== S.literal ? t.push(n) : r.value += n.value, t;
2520
+ function At(e) {
2521
+ return e.length < 2 ? e : e.reduce(function(t, r) {
2522
+ var n = t[t.length - 1];
2523
+ return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
2554
2524
  }, []);
2555
2525
  }
2556
- function Rt(e) {
2526
+ function Bt(e) {
2557
2527
  return typeof e == "function";
2558
2528
  }
2559
- function k(e, t, n, r, a, i, o) {
2560
- if (e.length === 1 && ue(e[0]))
2529
+ function k(e, t, r, n, a, i, o) {
2530
+ if (e.length === 1 && ae(e[0]))
2561
2531
  return [
2562
2532
  {
2563
2533
  type: S.literal,
@@ -2566,156 +2536,157 @@ function k(e, t, n, r, a, i, o) {
2566
2536
  ];
2567
2537
  for (var s = [], u = 0, l = e; u < l.length; u++) {
2568
2538
  var h = l[u];
2569
- if (ue(h)) {
2539
+ if (ae(h)) {
2570
2540
  s.push({
2571
2541
  type: S.literal,
2572
2542
  value: h.value
2573
2543
  });
2574
2544
  continue;
2575
2545
  }
2576
- if ($e(h)) {
2546
+ if (Qe(h)) {
2577
2547
  typeof i == "number" && s.push({
2578
2548
  type: S.literal,
2579
- value: n.getNumberFormat(t).format(i)
2549
+ value: r.getNumberFormat(t).format(i)
2580
2550
  });
2581
2551
  continue;
2582
2552
  }
2583
- var f = h.value;
2584
- if (!(a && f in a))
2585
- throw new Pt(f, o);
2586
- var c = a[f];
2587
- if (ze(h)) {
2553
+ var m = h.value;
2554
+ if (!(a && m in a))
2555
+ throw new Nt(m, o);
2556
+ var c = a[m];
2557
+ if (qe(h)) {
2588
2558
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
2589
2559
  type: typeof c == "string" ? S.literal : S.object,
2590
2560
  value: c
2591
2561
  });
2592
2562
  continue;
2593
2563
  }
2594
- if (Se(h)) {
2595
- var E = typeof h.style == "string" ? r.date[h.style] : Y(h.style) ? h.style.parsedOptions : void 0;
2564
+ if (xe(h)) {
2565
+ var E = typeof h.style == "string" ? n.date[h.style] : J(h.style) ? h.style.parsedOptions : void 0;
2596
2566
  s.push({
2597
2567
  type: S.literal,
2598
- value: n.getDateTimeFormat(t, E).format(c)
2568
+ value: r.getDateTimeFormat(t, E).format(c)
2599
2569
  });
2600
2570
  continue;
2601
2571
  }
2602
- if (He(h)) {
2603
- var E = typeof h.style == "string" ? r.time[h.style] : Y(h.style) ? h.style.parsedOptions : r.time.medium;
2572
+ if (Te(h)) {
2573
+ var E = typeof h.style == "string" ? n.time[h.style] : J(h.style) ? h.style.parsedOptions : n.time.medium;
2604
2574
  s.push({
2605
2575
  type: S.literal,
2606
- value: n.getDateTimeFormat(t, E).format(c)
2576
+ value: r.getDateTimeFormat(t, E).format(c)
2607
2577
  });
2608
2578
  continue;
2609
2579
  }
2610
- if (Te(h)) {
2611
- var E = typeof h.style == "string" ? r.number[h.style] : Ne(h.style) ? h.style.parsedOptions : void 0;
2580
+ if (ye(h)) {
2581
+ var E = typeof h.style == "string" ? n.number[h.style] : Ne(h.style) ? h.style.parsedOptions : void 0;
2612
2582
  E && E.scale && (c = c * (E.scale || 1)), s.push({
2613
2583
  type: S.literal,
2614
- value: n.getNumberFormat(t, E).format(c)
2584
+ value: r.getNumberFormat(t, E).format(c)
2615
2585
  });
2616
2586
  continue;
2617
2587
  }
2618
- if (_e(h)) {
2619
- var x = h.children, g = h.value, d = a[g];
2620
- if (!Rt(d))
2621
- throw new Bt(g, "function", o);
2622
- var y = k(x, t, n, r, a, i), H = d(y.map(function(O) {
2623
- return O.value;
2588
+ if (Ie(h)) {
2589
+ var x = h.children, p = h.value, d = a[p];
2590
+ if (!Bt(d))
2591
+ throw new It(p, "function", o);
2592
+ var y = k(x, t, r, n, a, i), A = d(y.map(function(R) {
2593
+ return R.value;
2624
2594
  }));
2625
- Array.isArray(H) || (H = [H]), s.push.apply(s, H.map(function(O) {
2595
+ Array.isArray(A) || (A = [A]), s.push.apply(s, A.map(function(R) {
2626
2596
  return {
2627
- type: typeof O == "string" ? S.literal : S.object,
2628
- value: O
2597
+ type: typeof R == "string" ? S.literal : S.object,
2598
+ value: R
2629
2599
  };
2630
2600
  }));
2631
2601
  }
2632
- if (Ie(h)) {
2602
+ if (Se(h)) {
2633
2603
  var T = h.options[c] || h.options.other;
2634
2604
  if (!T)
2635
- throw new ge(h.value, c, Object.keys(h.options), o);
2636
- s.push.apply(s, k(T.value, t, n, r, a));
2605
+ throw new fe(h.value, c, Object.keys(h.options), o);
2606
+ s.push.apply(s, k(T.value, t, r, n, a));
2637
2607
  continue;
2638
2608
  }
2639
- if (Ae(h)) {
2609
+ if (He(h)) {
2640
2610
  var T = h.options["=".concat(c)];
2641
2611
  if (!T) {
2642
2612
  if (!Intl.PluralRules)
2643
- throw new P(`Intl.PluralRules is not available in this environment.
2613
+ throw new L(`Intl.PluralRules is not available in this environment.
2644
2614
  Try polyfilling it using "@formatjs/intl-pluralrules"
2645
- `, B.MISSING_INTL_API, o);
2646
- var F = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
2647
- T = h.options[F] || h.options.other;
2615
+ `, P.MISSING_INTL_API, o);
2616
+ var w = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
2617
+ T = h.options[w] || h.options.other;
2648
2618
  }
2649
2619
  if (!T)
2650
- throw new ge(h.value, c, Object.keys(h.options), o);
2651
- s.push.apply(s, k(T.value, t, n, r, a, c - (h.offset || 0)));
2620
+ throw new fe(h.value, c, Object.keys(h.options), o);
2621
+ s.push.apply(s, k(T.value, t, r, n, a, c - (h.offset || 0)));
2652
2622
  continue;
2653
2623
  }
2654
2624
  }
2655
- return Ot(s);
2625
+ return At(s);
2656
2626
  }
2657
- function Lt(e, t) {
2658
- return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
2659
- return n[r] = N(N({}, e[r]), t[r] || {}), n;
2627
+ function _t(e, t) {
2628
+ return t ? f(f(f({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
2629
+ return r[n] = f(f({}, e[n]), t[n] || {}), r;
2660
2630
  }, {})) : e;
2661
2631
  }
2662
- function Mt(e, t) {
2663
- return t ? Object.keys(e).reduce(function(n, r) {
2664
- return n[r] = Lt(e[r], t[r]), n;
2665
- }, N({}, e)) : e;
2632
+ function Pt(e, t) {
2633
+ return t ? Object.keys(e).reduce(function(r, n) {
2634
+ return r[n] = _t(e[n], t[n]), r;
2635
+ }, f({}, e)) : e;
2666
2636
  }
2667
- function $(e) {
2637
+ function W(e) {
2668
2638
  return {
2669
2639
  create: function() {
2670
2640
  return {
2671
2641
  get: function(t) {
2672
2642
  return e[t];
2673
2643
  },
2674
- set: function(t, n) {
2675
- e[t] = n;
2644
+ set: function(t, r) {
2645
+ e[t] = r;
2676
2646
  }
2677
2647
  };
2678
2648
  }
2679
2649
  };
2680
2650
  }
2681
- function Ct(e) {
2651
+ function Lt(e) {
2682
2652
  return e === void 0 && (e = {
2683
2653
  number: {},
2684
2654
  dateTime: {},
2685
2655
  pluralRules: {}
2686
2656
  }), {
2687
- getNumberFormat: A(function() {
2688
- for (var t, n = [], r = 0; r < arguments.length; r++)
2689
- n[r] = arguments[r];
2690
- return new ((t = Intl.NumberFormat).bind.apply(t, Z([void 0], n, !1)))();
2657
+ getNumberFormat: H(function() {
2658
+ for (var t, r = [], n = 0; n < arguments.length; n++)
2659
+ r[n] = arguments[n];
2660
+ return new ((t = Intl.NumberFormat).bind.apply(t, N([void 0], r, !1)))();
2691
2661
  }, {
2692
- cache: $(e.number),
2693
- strategy: _.variadic
2662
+ cache: W(e.number),
2663
+ strategy: I.variadic
2694
2664
  }),
2695
- getDateTimeFormat: A(function() {
2696
- for (var t, n = [], r = 0; r < arguments.length; r++)
2697
- n[r] = arguments[r];
2698
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Z([void 0], n, !1)))();
2665
+ getDateTimeFormat: H(function() {
2666
+ for (var t, r = [], n = 0; n < arguments.length; n++)
2667
+ r[n] = arguments[n];
2668
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, N([void 0], r, !1)))();
2699
2669
  }, {
2700
- cache: $(e.dateTime),
2701
- strategy: _.variadic
2670
+ cache: W(e.dateTime),
2671
+ strategy: I.variadic
2702
2672
  }),
2703
- getPluralRules: A(function() {
2704
- for (var t, n = [], r = 0; r < arguments.length; r++)
2705
- n[r] = arguments[r];
2706
- return new ((t = Intl.PluralRules).bind.apply(t, Z([void 0], n, !1)))();
2673
+ getPluralRules: H(function() {
2674
+ for (var t, r = [], n = 0; n < arguments.length; n++)
2675
+ r[n] = arguments[n];
2676
+ return new ((t = Intl.PluralRules).bind.apply(t, N([void 0], r, !1)))();
2707
2677
  }, {
2708
- cache: $(e.pluralRules),
2709
- strategy: _.variadic
2678
+ cache: W(e.pluralRules),
2679
+ strategy: I.variadic
2710
2680
  })
2711
2681
  };
2712
2682
  }
2713
- var Fe = (
2683
+ var Me = (
2714
2684
  /** @class */
2715
2685
  function() {
2716
- function e(t, n, r, a) {
2686
+ function e(t, r, n, a) {
2687
+ r === void 0 && (r = e.defaultLocale);
2717
2688
  var i = this;
2718
- if (n === void 0 && (n = e.defaultLocale), this.formatterCache = {
2689
+ if (this.formatterCache = {
2719
2690
  number: {},
2720
2691
  dateTime: {},
2721
2692
  pluralRules: {}
@@ -2723,8 +2694,8 @@ var Fe = (
2723
2694
  var l = i.formatToParts(u);
2724
2695
  if (l.length === 1)
2725
2696
  return l[0].value;
2726
- var h = l.reduce(function(f, c) {
2727
- return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
2697
+ var h = l.reduce(function(m, c) {
2698
+ return !m.length || c.type !== S.literal || typeof m[m.length - 1] != "string" ? m.push(c.value) : m[m.length - 1] += c.value, m;
2728
2699
  }, []);
2729
2700
  return h.length <= 1 ? h[0] || "" : h;
2730
2701
  }, this.formatToParts = function(u) {
@@ -2736,18 +2707,18 @@ var Fe = (
2736
2707
  };
2737
2708
  }, this.getAst = function() {
2738
2709
  return i.ast;
2739
- }, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
2710
+ }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
2740
2711
  if (this.message = t, !e.__parse)
2741
2712
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
2742
2713
  var o = a || {};
2743
2714
  o.formatters;
2744
- var s = Ze(o, ["formatters"]);
2745
- this.ast = e.__parse(t, N(N({}, s), { locale: this.resolvedLocale }));
2715
+ var s = ke(o, ["formatters"]);
2716
+ this.ast = e.__parse(t, f(f({}, s), { locale: this.resolvedLocale }));
2746
2717
  } else
2747
2718
  this.ast = t;
2748
2719
  if (!Array.isArray(this.ast))
2749
2720
  throw new TypeError("A message must be provided as a String or AST.");
2750
- this.formats = Mt(e.formats, r), this.formatters = a && a.formatters || Ct(this.formatterCache);
2721
+ this.formats = Pt(e.formats, n), this.formatters = a && a.formatters || Lt(this.formatterCache);
2751
2722
  }
2752
2723
  return Object.defineProperty(e, "defaultLocale", {
2753
2724
  get: function() {
@@ -2757,10 +2728,10 @@ var Fe = (
2757
2728
  configurable: !0
2758
2729
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
2759
2730
  if (!(typeof Intl.Locale > "u")) {
2760
- var n = Intl.NumberFormat.supportedLocalesOf(t);
2761
- return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
2731
+ var r = Intl.NumberFormat.supportedLocalesOf(t);
2732
+ return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
2762
2733
  }
2763
- }, e.__parse = Tt, e.formats = {
2734
+ }, e.__parse = Ht, e.formats = {
2764
2735
  number: {
2765
2736
  integer: {
2766
2737
  maximumFractionDigits: 0
@@ -2820,110 +2791,110 @@ var Fe = (
2820
2791
  }
2821
2792
  }, e;
2822
2793
  }()
2823
- ), L;
2794
+ ), M;
2824
2795
  (function(e) {
2825
2796
  e.FORMAT_ERROR = "FORMAT_ERROR", e.UNSUPPORTED_FORMATTER = "UNSUPPORTED_FORMATTER", e.INVALID_CONFIG = "INVALID_CONFIG", e.MISSING_DATA = "MISSING_DATA", e.MISSING_TRANSLATION = "MISSING_TRANSLATION";
2826
- })(L || (L = {}));
2827
- var G = (
2797
+ })(M || (M = {}));
2798
+ var F = (
2828
2799
  /** @class */
2829
2800
  function(e) {
2830
- M(t, e);
2831
- function t(n, r, a) {
2801
+ _(t, e);
2802
+ function t(r, n, a) {
2832
2803
  var i = this, o = a ? a instanceof Error ? a : new Error(String(a)) : void 0;
2833
- return i = e.call(this, "[@formatjs/intl Error ".concat(n, "] ").concat(r, `
2804
+ return i = e.call(this, "[@formatjs/intl Error ".concat(r, "] ").concat(n, `
2834
2805
  `).concat(o ? `
2835
2806
  `.concat(o.message, `
2836
- `).concat(o.stack) : "")) || this, i.code = n, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(i, t), i;
2807
+ `).concat(o.stack) : "")) || this, i.code = r, typeof Error.captureStackTrace == "function" && Error.captureStackTrace(i, t), i;
2837
2808
  }
2838
2809
  return t;
2839
2810
  }(Error)
2840
- ), wt = (
2811
+ ), Rt = (
2841
2812
  /** @class */
2842
2813
  function(e) {
2843
- M(t, e);
2844
- function t(n, r) {
2845
- return e.call(this, L.UNSUPPORTED_FORMATTER, n, r) || this;
2814
+ _(t, e);
2815
+ function t(r, n) {
2816
+ return e.call(this, M.UNSUPPORTED_FORMATTER, r, n) || this;
2846
2817
  }
2847
2818
  return t;
2848
- }(G)
2849
- ), Dt = (
2819
+ }(F)
2820
+ ), Ot = (
2850
2821
  /** @class */
2851
2822
  function(e) {
2852
- M(t, e);
2853
- function t(n, r) {
2854
- return e.call(this, L.INVALID_CONFIG, n, r) || this;
2823
+ _(t, e);
2824
+ function t(r, n) {
2825
+ return e.call(this, M.INVALID_CONFIG, r, n) || this;
2855
2826
  }
2856
2827
  return t;
2857
- }(G)
2858
- ), ve = (
2828
+ }(F)
2829
+ ), me = (
2859
2830
  /** @class */
2860
2831
  function(e) {
2861
- M(t, e);
2862
- function t(n, r) {
2863
- return e.call(this, L.MISSING_DATA, n, r) || this;
2832
+ _(t, e);
2833
+ function t(r, n) {
2834
+ return e.call(this, M.MISSING_DATA, r, n) || this;
2864
2835
  }
2865
2836
  return t;
2866
- }(G)
2867
- ), I = (
2837
+ }(F)
2838
+ ), B = (
2868
2839
  /** @class */
2869
2840
  function(e) {
2870
- M(t, e);
2871
- function t(n, r, a) {
2872
- var i = e.call(this, L.FORMAT_ERROR, "".concat(n, `
2873
- Locale: `).concat(r, `
2841
+ _(t, e);
2842
+ function t(r, n, a) {
2843
+ var i = e.call(this, M.FORMAT_ERROR, "".concat(r, `
2844
+ Locale: `).concat(n, `
2874
2845
  `), a) || this;
2875
- return i.locale = r, i;
2846
+ return i.locale = n, i;
2876
2847
  }
2877
2848
  return t;
2878
- }(G)
2879
- ), J = (
2849
+ }(F)
2850
+ ), Z = (
2880
2851
  /** @class */
2881
2852
  function(e) {
2882
- M(t, e);
2883
- function t(n, r, a, i) {
2884
- var o = e.call(this, "".concat(n, `
2853
+ _(t, e);
2854
+ function t(r, n, a, i) {
2855
+ var o = e.call(this, "".concat(r, `
2885
2856
  MessageID: `).concat(a == null ? void 0 : a.id, `
2886
2857
  Default Message: `).concat(a == null ? void 0 : a.defaultMessage, `
2887
2858
  Description: `).concat(a == null ? void 0 : a.description, `
2888
- `), r, i) || this;
2889
- return o.descriptor = a, o.locale = r, o;
2859
+ `), n, i) || this;
2860
+ return o.descriptor = a, o.locale = n, o;
2890
2861
  }
2891
2862
  return t;
2892
- }(I)
2893
- ), Ft = (
2863
+ }(B)
2864
+ ), Mt = (
2894
2865
  /** @class */
2895
2866
  function(e) {
2896
- M(t, e);
2897
- function t(n, r) {
2898
- var a = e.call(this, L.MISSING_TRANSLATION, 'Missing message: "'.concat(n.id, '" for locale "').concat(r, '", using ').concat(n.defaultMessage ? "default message (".concat(typeof n.defaultMessage == "string" ? n.defaultMessage : n.defaultMessage.map(function(i) {
2867
+ _(t, e);
2868
+ function t(r, n) {
2869
+ var a = e.call(this, M.MISSING_TRANSLATION, 'Missing message: "'.concat(r.id, '" for locale "').concat(n, '", using ').concat(r.defaultMessage ? "default message (".concat(typeof r.defaultMessage == "string" ? r.defaultMessage : r.defaultMessage.map(function(i) {
2899
2870
  var o;
2900
2871
  return (o = i.value) !== null && o !== void 0 ? o : JSON.stringify(i);
2901
2872
  }).join(), ")") : "id", " as fallback.")) || this;
2902
- return a.descriptor = n, a;
2873
+ return a.descriptor = r, a;
2903
2874
  }
2904
2875
  return t;
2905
- }(G)
2876
+ }(F)
2906
2877
  );
2907
- function C(e, t, n) {
2908
- return n === void 0 && (n = {}), t.reduce(function(r, a) {
2909
- return a in e ? r[a] = e[a] : a in n && (r[a] = n[a]), r;
2878
+ function C(e, t, r) {
2879
+ return r === void 0 && (r = {}), t.reduce(function(n, a) {
2880
+ return a in e ? n[a] = e[a] : a in r && (n[a] = r[a]), n;
2910
2881
  }, {});
2911
2882
  }
2912
- var Gt = function(e) {
2883
+ var Ct = function(e) {
2913
2884
  process.env.NODE_ENV !== "production" && console.error(e);
2914
- }, Ut = function(e) {
2885
+ }, Dt = function(e) {
2915
2886
  process.env.NODE_ENV !== "production" && console.warn(e);
2916
- }, Vt = {
2887
+ }, wt = {
2917
2888
  formats: {},
2918
2889
  messages: {},
2919
2890
  timeZone: void 0,
2920
2891
  defaultLocale: "en",
2921
2892
  defaultFormats: {},
2922
2893
  fallbackOnEmptyString: !0,
2923
- onError: Gt,
2924
- onWarn: Ut
2894
+ onError: Ct,
2895
+ onWarn: Dt
2925
2896
  };
2926
- function Ge() {
2897
+ function Ce() {
2927
2898
  return {
2928
2899
  dateTime: {},
2929
2900
  number: {},
@@ -2934,116 +2905,151 @@ function Ge() {
2934
2905
  displayNames: {}
2935
2906
  };
2936
2907
  }
2937
- function R(e) {
2908
+ function O(e) {
2938
2909
  return {
2939
2910
  create: function() {
2940
2911
  return {
2941
2912
  get: function(t) {
2942
2913
  return e[t];
2943
2914
  },
2944
- set: function(t, n) {
2945
- e[t] = n;
2915
+ set: function(t, r) {
2916
+ e[t] = r;
2946
2917
  }
2947
2918
  };
2948
2919
  }
2949
2920
  };
2950
2921
  }
2951
- function jt(e) {
2952
- e === void 0 && (e = Ge());
2953
- var t = Intl.RelativeTimeFormat, n = Intl.ListFormat, r = Intl.DisplayNames, a = A(function() {
2922
+ function Ft(e) {
2923
+ e === void 0 && (e = Ce());
2924
+ var t = Intl.RelativeTimeFormat, r = Intl.ListFormat, n = Intl.DisplayNames, a = H(function() {
2954
2925
  for (var s, u = [], l = 0; l < arguments.length; l++)
2955
2926
  u[l] = arguments[l];
2956
- return new ((s = Intl.DateTimeFormat).bind.apply(s, w([void 0], u, !1)))();
2927
+ return new ((s = Intl.DateTimeFormat).bind.apply(s, N([void 0], u, !1)))();
2957
2928
  }, {
2958
- cache: R(e.dateTime),
2959
- strategy: _.variadic
2960
- }), i = A(function() {
2929
+ cache: O(e.dateTime),
2930
+ strategy: I.variadic
2931
+ }), i = H(function() {
2961
2932
  for (var s, u = [], l = 0; l < arguments.length; l++)
2962
2933
  u[l] = arguments[l];
2963
- return new ((s = Intl.NumberFormat).bind.apply(s, w([void 0], u, !1)))();
2934
+ return new ((s = Intl.NumberFormat).bind.apply(s, N([void 0], u, !1)))();
2964
2935
  }, {
2965
- cache: R(e.number),
2966
- strategy: _.variadic
2967
- }), o = A(function() {
2936
+ cache: O(e.number),
2937
+ strategy: I.variadic
2938
+ }), o = H(function() {
2968
2939
  for (var s, u = [], l = 0; l < arguments.length; l++)
2969
2940
  u[l] = arguments[l];
2970
- return new ((s = Intl.PluralRules).bind.apply(s, w([void 0], u, !1)))();
2941
+ return new ((s = Intl.PluralRules).bind.apply(s, N([void 0], u, !1)))();
2971
2942
  }, {
2972
- cache: R(e.pluralRules),
2973
- strategy: _.variadic
2943
+ cache: O(e.pluralRules),
2944
+ strategy: I.variadic
2974
2945
  });
2975
2946
  return {
2976
2947
  getDateTimeFormat: a,
2977
2948
  getNumberFormat: i,
2978
- getMessageFormat: A(function(s, u, l, h) {
2979
- return new Fe(s, u, l, m({ formatters: {
2949
+ getMessageFormat: H(function(s, u, l, h) {
2950
+ return new Me(s, u, l, f({ formatters: {
2980
2951
  getNumberFormat: i,
2981
2952
  getDateTimeFormat: a,
2982
2953
  getPluralRules: o
2983
2954
  } }, h || {}));
2984
2955
  }, {
2985
- cache: R(e.message),
2986
- strategy: _.variadic
2956
+ cache: O(e.message),
2957
+ strategy: I.variadic
2987
2958
  }),
2988
- getRelativeTimeFormat: A(function() {
2959
+ getRelativeTimeFormat: H(function() {
2989
2960
  for (var s = [], u = 0; u < arguments.length; u++)
2990
2961
  s[u] = arguments[u];
2991
- return new (t.bind.apply(t, w([void 0], s, !1)))();
2962
+ return new (t.bind.apply(t, N([void 0], s, !1)))();
2992
2963
  }, {
2993
- cache: R(e.relativeTime),
2994
- strategy: _.variadic
2964
+ cache: O(e.relativeTime),
2965
+ strategy: I.variadic
2995
2966
  }),
2996
2967
  getPluralRules: o,
2997
- getListFormat: A(function() {
2968
+ getListFormat: H(function() {
2998
2969
  for (var s = [], u = 0; u < arguments.length; u++)
2999
2970
  s[u] = arguments[u];
3000
- return new (n.bind.apply(n, w([void 0], s, !1)))();
2971
+ return new (r.bind.apply(r, N([void 0], s, !1)))();
3001
2972
  }, {
3002
- cache: R(e.list),
3003
- strategy: _.variadic
2973
+ cache: O(e.list),
2974
+ strategy: I.variadic
3004
2975
  }),
3005
- getDisplayNames: A(function() {
2976
+ getDisplayNames: H(function() {
3006
2977
  for (var s = [], u = 0; u < arguments.length; u++)
3007
2978
  s[u] = arguments[u];
3008
- return new (r.bind.apply(r, w([void 0], s, !1)))();
2979
+ return new (n.bind.apply(n, N([void 0], s, !1)))();
3009
2980
  }, {
3010
- cache: R(e.displayNames),
3011
- strategy: _.variadic
2981
+ cache: O(e.displayNames),
2982
+ strategy: I.variadic
3012
2983
  })
3013
2984
  };
3014
2985
  }
3015
- function oe(e, t, n, r) {
2986
+ function re(e, t, r, n) {
3016
2987
  var a = e && e[t], i;
3017
- if (a && (i = a[n]), i)
2988
+ if (a && (i = a[r]), i)
3018
2989
  return i;
3019
- r(new wt("No ".concat(t, " format named: ").concat(n)));
3020
- }
3021
- function kt(e, t, n) {
3022
- if (n === void 0 && (n = Error), !e)
3023
- throw new n(t);
3024
- }
3025
- function j(e, t) {
3026
- return Object.keys(e).reduce(function(n, r) {
3027
- return n[r] = m({ timeZone: t }, e[r]), n;
2990
+ n(new Rt("No ".concat(t, " format named: ").concat(r)));
2991
+ }
2992
+ function Gt(e, t, r) {
2993
+ if (r === void 0 && (r = Error), !e)
2994
+ throw new r(t);
2995
+ }
2996
+ H(function() {
2997
+ for (var e, t = [], r = 0; r < arguments.length; r++)
2998
+ t[r] = arguments[r];
2999
+ return new ((e = Intl.NumberFormat).bind.apply(e, N([void 0], t, !1)))();
3000
+ }, {
3001
+ strategy: I.variadic
3002
+ });
3003
+ H(function() {
3004
+ for (var e, t = [], r = 0; r < arguments.length; r++)
3005
+ t[r] = arguments[r];
3006
+ return new ((e = Intl.DateTimeFormat).bind.apply(e, N([void 0], t, !1)))();
3007
+ }, {
3008
+ strategy: I.variadic
3009
+ });
3010
+ H(function() {
3011
+ for (var e, t = [], r = 0; r < arguments.length; r++)
3012
+ t[r] = arguments[r];
3013
+ return new ((e = Intl.PluralRules).bind.apply(e, N([void 0], t, !1)))();
3014
+ }, {
3015
+ strategy: I.variadic
3016
+ });
3017
+ H(function() {
3018
+ for (var e, t = [], r = 0; r < arguments.length; r++)
3019
+ t[r] = arguments[r];
3020
+ return new ((e = Intl.Locale).bind.apply(e, N([void 0], t, !1)))();
3021
+ }, {
3022
+ strategy: I.variadic
3023
+ });
3024
+ H(function() {
3025
+ for (var e, t = [], r = 0; r < arguments.length; r++)
3026
+ t[r] = arguments[r];
3027
+ return new ((e = Intl.ListFormat).bind.apply(e, N([void 0], t, !1)))();
3028
+ }, {
3029
+ strategy: I.variadic
3030
+ });
3031
+ function V(e, t) {
3032
+ return Object.keys(e).reduce(function(r, n) {
3033
+ return r[n] = f({ timeZone: t }, e[n]), r;
3028
3034
  }, {});
3029
3035
  }
3030
- function Ee(e, t) {
3031
- var n = Object.keys(m(m({}, e), t));
3032
- return n.reduce(function(r, a) {
3033
- return r[a] = m(m({}, e[a] || {}), t[a] || {}), r;
3036
+ function ce(e, t) {
3037
+ var r = Object.keys(f(f({}, e), t));
3038
+ return r.reduce(function(n, a) {
3039
+ return n[a] = f(f({}, e[a] || {}), t[a] || {}), n;
3034
3040
  }, {});
3035
3041
  }
3036
- function de(e, t) {
3042
+ function ge(e, t) {
3037
3043
  if (!t)
3038
3044
  return e;
3039
- var n = Fe.formats;
3040
- return m(m(m({}, n), e), { date: Ee(j(n.date, t), j(e.date || {}, t)), time: Ee(j(n.time, t), j(e.time || {}, t)) });
3041
- }
3042
- var be = function(e, t, n, r, a) {
3043
- var i = e.locale, o = e.formats, s = e.messages, u = e.defaultLocale, l = e.defaultFormats, h = e.fallbackOnEmptyString, f = e.onError, c = e.timeZone, E = e.defaultRichTextElements;
3044
- n === void 0 && (n = { id: "" });
3045
- var x = n.id, g = n.defaultMessage;
3046
- kt(!!x, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
3045
+ var r = Me.formats;
3046
+ return f(f(f({}, r), e), { date: ce(V(r.date, t), V(e.date || {}, t)), time: ce(V(r.time, t), V(e.time || {}, t)) });
3047
+ }
3048
+ var pe = function(e, t, r, n, a) {
3049
+ var i = e.locale, o = e.formats, s = e.messages, u = e.defaultLocale, l = e.defaultFormats, h = e.fallbackOnEmptyString, m = e.onError, c = e.timeZone, E = e.defaultRichTextElements;
3050
+ r === void 0 && (r = { id: "" });
3051
+ var x = r.id, p = r.defaultMessage;
3052
+ Gt(!!x, "[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");
3047
3053
  var d = String(x), y = (
3048
3054
  // In case messages is Object.create(null)
3049
3055
  // e.g import('foo.json') from webpack)
@@ -3052,35 +3058,35 @@ var be = function(e, t, n, r, a) {
3052
3058
  );
3053
3059
  if (Array.isArray(y) && y.length === 1 && y[0].type === b.literal)
3054
3060
  return y[0].value;
3055
- if (!r && y && typeof y == "string" && !E)
3061
+ if (!n && y && typeof y == "string" && !E)
3056
3062
  return y.replace(/'\{(.*?)\}'/gi, "{$1}");
3057
- if (r = m(m({}, E), r || {}), o = de(o, c), l = de(l, c), !y) {
3063
+ if (n = f(f({}, E), n || {}), o = ge(o, c), l = ge(l, c), !y) {
3058
3064
  if (h === !1 && y === "")
3059
3065
  return y;
3060
- if ((!g || i && i.toLowerCase() !== u.toLowerCase()) && f(new Ft(n, i)), g)
3066
+ if ((!p || i && i.toLowerCase() !== u.toLowerCase()) && m(new Mt(r, i)), p)
3061
3067
  try {
3062
- var H = t.getMessageFormat(g, u, l, a);
3063
- return H.format(r);
3068
+ var A = t.getMessageFormat(p, u, l, a);
3069
+ return A.format(n);
3064
3070
  } catch (T) {
3065
- return f(new J('Error formatting default message for: "'.concat(d, '", rendering default message verbatim'), i, n, T)), typeof g == "string" ? g : d;
3071
+ return m(new Z('Error formatting default message for: "'.concat(d, '", rendering default message verbatim'), i, r, T)), typeof p == "string" ? p : d;
3066
3072
  }
3067
3073
  return d;
3068
3074
  }
3069
3075
  try {
3070
- var H = t.getMessageFormat(y, i, o, m({ formatters: t }, a || {}));
3071
- return H.format(r);
3076
+ var A = t.getMessageFormat(y, i, o, f({ formatters: t }, a || {}));
3077
+ return A.format(n);
3072
3078
  } catch (T) {
3073
- f(new J('Error formatting message: "'.concat(d, '", using ').concat(g ? "default message" : "id", " as fallback."), i, n, T));
3079
+ m(new Z('Error formatting message: "'.concat(d, '", using ').concat(p ? "default message" : "id", " as fallback."), i, r, T));
3074
3080
  }
3075
- if (g)
3081
+ if (p)
3076
3082
  try {
3077
- var H = t.getMessageFormat(g, u, l, a);
3078
- return H.format(r);
3083
+ var A = t.getMessageFormat(p, u, l, a);
3084
+ return A.format(n);
3079
3085
  } catch (T) {
3080
- f(new J('Error formatting the default message for: "'.concat(d, '", rendering message verbatim'), i, n, T));
3086
+ m(new Z('Error formatting the default message for: "'.concat(d, '", rendering message verbatim'), i, r, T));
3081
3087
  }
3082
- return typeof y == "string" ? y : typeof g == "string" ? g : d;
3083
- }, Ue = [
3088
+ return typeof y == "string" ? y : typeof p == "string" ? p : d;
3089
+ }, De = [
3084
3090
  "formatMatcher",
3085
3091
  "timeZone",
3086
3092
  "hour12",
@@ -3101,159 +3107,159 @@ var be = function(e, t, n, r, a) {
3101
3107
  "numberingSystem",
3102
3108
  "fractionalSecondDigits"
3103
3109
  ];
3104
- function W(e, t, n, r) {
3110
+ function j(e, t, r, n) {
3105
3111
  var a = e.locale, i = e.formats, o = e.onError, s = e.timeZone;
3106
- r === void 0 && (r = {});
3107
- var u = r.format, l = m(m({}, s && { timeZone: s }), u && oe(i, t, u, o)), h = C(r, Ue, l);
3108
- return t === "time" && !h.hour && !h.minute && !h.second && !h.timeStyle && !h.dateStyle && (h = m(m({}, h), { hour: "numeric", minute: "numeric" })), n(a, h);
3112
+ n === void 0 && (n = {});
3113
+ var u = n.format, l = f(f({}, s && { timeZone: s }), u && re(i, t, u, o)), h = C(n, De, l);
3114
+ return t === "time" && !h.hour && !h.minute && !h.second && !h.timeStyle && !h.dateStyle && (h = f(f({}, h), { hour: "numeric", minute: "numeric" })), r(a, h);
3109
3115
  }
3110
- function Xt(e, t) {
3111
- for (var n = [], r = 2; r < arguments.length; r++)
3112
- n[r - 2] = arguments[r];
3113
- var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3116
+ function Ut(e, t) {
3117
+ for (var r = [], n = 2; n < arguments.length; n++)
3118
+ r[n - 2] = arguments[n];
3119
+ var a = r[0], i = r[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3114
3120
  try {
3115
- return W(e, "date", t, o).format(s);
3121
+ return j(e, "date", t, o).format(s);
3116
3122
  } catch (u) {
3117
- e.onError(new I("Error formatting date.", e.locale, u));
3123
+ e.onError(new B("Error formatting date.", e.locale, u));
3118
3124
  }
3119
3125
  return String(s);
3120
3126
  }
3121
- function Wt(e, t) {
3122
- for (var n = [], r = 2; r < arguments.length; r++)
3123
- n[r - 2] = arguments[r];
3124
- var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3127
+ function Vt(e, t) {
3128
+ for (var r = [], n = 2; n < arguments.length; n++)
3129
+ r[n - 2] = arguments[n];
3130
+ var a = r[0], i = r[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3125
3131
  try {
3126
- return W(e, "time", t, o).format(s);
3132
+ return j(e, "time", t, o).format(s);
3127
3133
  } catch (u) {
3128
- e.onError(new I("Error formatting time.", e.locale, u));
3134
+ e.onError(new B("Error formatting time.", e.locale, u));
3129
3135
  }
3130
3136
  return String(s);
3131
3137
  }
3132
- function Zt(e, t) {
3133
- for (var n = [], r = 2; r < arguments.length; r++)
3134
- n[r - 2] = arguments[r];
3135
- var a = n[0], i = n[1], o = n[2], s = o === void 0 ? {} : o, u = e.timeZone, l = e.locale, h = e.onError, f = C(s, Ue, u ? { timeZone: u } : {});
3138
+ function kt(e, t) {
3139
+ for (var r = [], n = 2; n < arguments.length; n++)
3140
+ r[n - 2] = arguments[n];
3141
+ var a = r[0], i = r[1], o = r[2], s = o === void 0 ? {} : o, u = e.timeZone, l = e.locale, h = e.onError, m = C(s, De, u ? { timeZone: u } : {});
3136
3142
  try {
3137
- return t(l, f).formatRange(a, i);
3143
+ return t(l, m).formatRange(a, i);
3138
3144
  } catch (c) {
3139
- h(new I("Error formatting date time range.", e.locale, c));
3145
+ h(new B("Error formatting date time range.", e.locale, c));
3140
3146
  }
3141
3147
  return String(a);
3142
3148
  }
3143
- function zt(e, t) {
3144
- for (var n = [], r = 2; r < arguments.length; r++)
3145
- n[r - 2] = arguments[r];
3146
- var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3149
+ function jt(e, t) {
3150
+ for (var r = [], n = 2; n < arguments.length; n++)
3151
+ r[n - 2] = arguments[n];
3152
+ var a = r[0], i = r[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3147
3153
  try {
3148
- return W(e, "date", t, o).formatToParts(s);
3154
+ return j(e, "date", t, o).formatToParts(s);
3149
3155
  } catch (u) {
3150
- e.onError(new I("Error formatting date.", e.locale, u));
3156
+ e.onError(new B("Error formatting date.", e.locale, u));
3151
3157
  }
3152
3158
  return [];
3153
3159
  }
3154
- function $t(e, t) {
3155
- for (var n = [], r = 2; r < arguments.length; r++)
3156
- n[r - 2] = arguments[r];
3157
- var a = n[0], i = n[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3160
+ function Xt(e, t) {
3161
+ for (var r = [], n = 2; n < arguments.length; n++)
3162
+ r[n - 2] = arguments[n];
3163
+ var a = r[0], i = r[1], o = i === void 0 ? {} : i, s = typeof a == "string" ? new Date(a || 0) : a;
3158
3164
  try {
3159
- return W(e, "time", t, o).formatToParts(s);
3165
+ return j(e, "time", t, o).formatToParts(s);
3160
3166
  } catch (u) {
3161
- e.onError(new I("Error formatting time.", e.locale, u));
3167
+ e.onError(new B("Error formatting time.", e.locale, u));
3162
3168
  }
3163
3169
  return [];
3164
3170
  }
3165
- var Jt = [
3171
+ var Wt = [
3166
3172
  "style",
3167
3173
  "type",
3168
3174
  "fallback",
3169
3175
  "languageDisplay"
3170
3176
  ];
3171
- function qt(e, t, n, r) {
3177
+ function Zt(e, t, r, n) {
3172
3178
  var a = e.locale, i = e.onError, o = Intl.DisplayNames;
3173
- o || i(new P(`Intl.DisplayNames is not available in this environment.
3179
+ o || i(new L(`Intl.DisplayNames is not available in this environment.
3174
3180
  Try polyfilling it using "@formatjs/intl-displaynames"
3175
- `, B.MISSING_INTL_API));
3176
- var s = C(r, Jt);
3181
+ `, P.MISSING_INTL_API));
3182
+ var s = C(n, Wt);
3177
3183
  try {
3178
- return t(a, s).of(n);
3184
+ return t(a, s).of(r);
3179
3185
  } catch (u) {
3180
- i(new I("Error formatting display name.", a, u));
3186
+ i(new B("Error formatting display name.", a, u));
3181
3187
  }
3182
3188
  }
3183
- var Qt = [
3189
+ var zt = [
3184
3190
  "type",
3185
3191
  "style"
3186
- ], ye = Date.now();
3187
- function Yt(e) {
3188
- return "".concat(ye, "_").concat(e, "_").concat(ye);
3192
+ ], ve = Date.now();
3193
+ function Jt(e) {
3194
+ return "".concat(ve, "_").concat(e, "_").concat(ve);
3189
3195
  }
3190
- function Kt(e, t, n, r) {
3191
- r === void 0 && (r = {});
3192
- var a = Ve(e, t, n, r).reduce(function(i, o) {
3196
+ function qt(e, t, r, n) {
3197
+ n === void 0 && (n = {});
3198
+ var a = we(e, t, r, n).reduce(function(i, o) {
3193
3199
  var s = o.value;
3194
3200
  return typeof s != "string" ? i.push(s) : typeof i[i.length - 1] == "string" ? i[i.length - 1] += s : i.push(s), i;
3195
3201
  }, []);
3196
3202
  return a.length === 1 ? a[0] : a.length === 0 ? "" : a;
3197
3203
  }
3198
- function Ve(e, t, n, r) {
3204
+ function we(e, t, r, n) {
3199
3205
  var a = e.locale, i = e.onError;
3200
- r === void 0 && (r = {});
3206
+ n === void 0 && (n = {});
3201
3207
  var o = Intl.ListFormat;
3202
- o || i(new P(`Intl.ListFormat is not available in this environment.
3208
+ o || i(new L(`Intl.ListFormat is not available in this environment.
3203
3209
  Try polyfilling it using "@formatjs/intl-listformat"
3204
- `, B.MISSING_INTL_API));
3205
- var s = C(r, Qt);
3210
+ `, P.MISSING_INTL_API));
3211
+ var s = C(n, zt);
3206
3212
  try {
3207
- var u = {}, l = n.map(function(h, f) {
3213
+ var u = {}, l = r.map(function(h, m) {
3208
3214
  if (typeof h == "object") {
3209
- var c = Yt(f);
3215
+ var c = Jt(m);
3210
3216
  return u[c] = h, c;
3211
3217
  }
3212
3218
  return String(h);
3213
3219
  });
3214
3220
  return t(a, s).formatToParts(l).map(function(h) {
3215
- return h.type === "literal" ? h : m(m({}, h), { value: u[h.value] || h.value });
3221
+ return h.type === "literal" ? h : f(f({}, h), { value: u[h.value] || h.value });
3216
3222
  });
3217
3223
  } catch (h) {
3218
- i(new I("Error formatting list.", a, h));
3224
+ i(new B("Error formatting list.", a, h));
3219
3225
  }
3220
- return n;
3226
+ return r;
3221
3227
  }
3222
- var er = ["type"];
3223
- function tr(e, t, n, r) {
3228
+ var Qt = ["type"];
3229
+ function Yt(e, t, r, n) {
3224
3230
  var a = e.locale, i = e.onError;
3225
- r === void 0 && (r = {}), Intl.PluralRules || i(new P(`Intl.PluralRules is not available in this environment.
3231
+ n === void 0 && (n = {}), Intl.PluralRules || i(new L(`Intl.PluralRules is not available in this environment.
3226
3232
  Try polyfilling it using "@formatjs/intl-pluralrules"
3227
- `, B.MISSING_INTL_API));
3228
- var o = C(r, er);
3233
+ `, P.MISSING_INTL_API));
3234
+ var o = C(n, Qt);
3229
3235
  try {
3230
- return t(a, o).select(n);
3236
+ return t(a, o).select(r);
3231
3237
  } catch (s) {
3232
- i(new I("Error formatting plural.", a, s));
3238
+ i(new B("Error formatting plural.", a, s));
3233
3239
  }
3234
3240
  return "other";
3235
3241
  }
3236
- var rr = ["numeric", "style"];
3237
- function nr(e, t, n) {
3238
- var r = e.locale, a = e.formats, i = e.onError;
3239
- n === void 0 && (n = {});
3240
- var o = n.format, s = !!o && oe(a, "relative", o, i) || {}, u = C(n, rr, s);
3241
- return t(r, u);
3242
+ var $t = ["numeric", "style"];
3243
+ function Kt(e, t, r) {
3244
+ var n = e.locale, a = e.formats, i = e.onError;
3245
+ r === void 0 && (r = {});
3246
+ var o = r.format, s = !!o && re(a, "relative", o, i) || {}, u = C(r, $t, s);
3247
+ return t(n, u);
3242
3248
  }
3243
- function ar(e, t, n, r, a) {
3244
- a === void 0 && (a = {}), r || (r = "second");
3249
+ function er(e, t, r, n, a) {
3250
+ a === void 0 && (a = {}), n || (n = "second");
3245
3251
  var i = Intl.RelativeTimeFormat;
3246
- i || e.onError(new P(`Intl.RelativeTimeFormat is not available in this environment.
3252
+ i || e.onError(new L(`Intl.RelativeTimeFormat is not available in this environment.
3247
3253
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
3248
- `, B.MISSING_INTL_API));
3254
+ `, P.MISSING_INTL_API));
3249
3255
  try {
3250
- return nr(e, t, a).format(n, r);
3256
+ return Kt(e, t, a).format(r, n);
3251
3257
  } catch (o) {
3252
- e.onError(new I("Error formatting relative time.", e.locale, o));
3258
+ e.onError(new B("Error formatting relative time.", e.locale, o));
3253
3259
  }
3254
- return String(n);
3260
+ return String(r);
3255
3261
  }
3256
- var ir = [
3262
+ var tr = [
3257
3263
  "style",
3258
3264
  "currency",
3259
3265
  "unit",
@@ -3279,135 +3285,135 @@ var ir = [
3279
3285
  "roundingIncrement",
3280
3286
  "roundingMode"
3281
3287
  ];
3282
- function je(e, t, n) {
3283
- var r = e.locale, a = e.formats, i = e.onError;
3284
- n === void 0 && (n = {});
3285
- var o = n.format, s = o && oe(a, "number", o, i) || {}, u = C(n, ir, s);
3286
- return t(r, u);
3287
- }
3288
- function or(e, t, n, r) {
3288
+ function Fe(e, t, r) {
3289
+ var n = e.locale, a = e.formats, i = e.onError;
3289
3290
  r === void 0 && (r = {});
3291
+ var o = r.format, s = o && re(a, "number", o, i) || {}, u = C(r, tr, s);
3292
+ return t(n, u);
3293
+ }
3294
+ function rr(e, t, r, n) {
3295
+ n === void 0 && (n = {});
3290
3296
  try {
3291
- return je(e, t, r).format(n);
3297
+ return Fe(e, t, n).format(r);
3292
3298
  } catch (a) {
3293
- e.onError(new I("Error formatting number.", e.locale, a));
3299
+ e.onError(new B("Error formatting number.", e.locale, a));
3294
3300
  }
3295
- return String(n);
3301
+ return String(r);
3296
3302
  }
3297
- function sr(e, t, n, r) {
3298
- r === void 0 && (r = {});
3303
+ function nr(e, t, r, n) {
3304
+ n === void 0 && (n = {});
3299
3305
  try {
3300
- return je(e, t, r).formatToParts(n);
3306
+ return Fe(e, t, n).formatToParts(r);
3301
3307
  } catch (a) {
3302
- e.onError(new I("Error formatting number.", e.locale, a));
3308
+ e.onError(new B("Error formatting number.", e.locale, a));
3303
3309
  }
3304
3310
  return [];
3305
3311
  }
3306
- function ur(e) {
3312
+ function ar(e) {
3307
3313
  var t = e ? e[Object.keys(e)[0]] : void 0;
3308
3314
  return typeof t == "string";
3309
3315
  }
3310
- function hr(e) {
3311
- e.onWarn && e.defaultRichTextElements && ur(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
3316
+ function ir(e) {
3317
+ e.onWarn && e.defaultRichTextElements && ar(e.messages || {}) && e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
3312
3318
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
3313
3319
  For more details see https://formatjs.io/docs/getting-started/message-distribution`);
3314
3320
  }
3315
- function lr(e, t) {
3316
- var n = jt(t), r = m(m({}, Vt), e), a = r.locale, i = r.defaultLocale, o = r.onError;
3317
- return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && o ? o(new ve('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && o && o(new ve('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new Dt('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), r.locale = r.defaultLocale || "en"), hr(r), m(m({}, r), {
3318
- formatters: n,
3319
- formatNumber: or.bind(null, r, n.getNumberFormat),
3320
- formatNumberToParts: sr.bind(null, r, n.getNumberFormat),
3321
- formatRelativeTime: ar.bind(null, r, n.getRelativeTimeFormat),
3322
- formatDate: Xt.bind(null, r, n.getDateTimeFormat),
3323
- formatDateToParts: zt.bind(null, r, n.getDateTimeFormat),
3324
- formatTime: Wt.bind(null, r, n.getDateTimeFormat),
3325
- formatDateTimeRange: Zt.bind(null, r, n.getDateTimeFormat),
3326
- formatTimeToParts: $t.bind(null, r, n.getDateTimeFormat),
3327
- formatPlural: tr.bind(null, r, n.getPluralRules),
3321
+ function or(e, t) {
3322
+ var r = Ft(t), n = f(f({}, wt), e), a = n.locale, i = n.defaultLocale, o = n.onError;
3323
+ return a ? !Intl.NumberFormat.supportedLocalesOf(a).length && o ? o(new me('Missing locale data for locale: "'.concat(a, '" in Intl.NumberFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : !Intl.DateTimeFormat.supportedLocalesOf(a).length && o && o(new me('Missing locale data for locale: "'.concat(a, '" in Intl.DateTimeFormat. Using default locale: "').concat(i, '" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))) : (o && o(new Ot('"locale" was not configured, using "'.concat(i, '" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))), n.locale = n.defaultLocale || "en"), ir(n), f(f({}, n), {
3324
+ formatters: r,
3325
+ formatNumber: rr.bind(null, n, r.getNumberFormat),
3326
+ formatNumberToParts: nr.bind(null, n, r.getNumberFormat),
3327
+ formatRelativeTime: er.bind(null, n, r.getRelativeTimeFormat),
3328
+ formatDate: Ut.bind(null, n, r.getDateTimeFormat),
3329
+ formatDateToParts: jt.bind(null, n, r.getDateTimeFormat),
3330
+ formatTime: Vt.bind(null, n, r.getDateTimeFormat),
3331
+ formatDateTimeRange: kt.bind(null, n, r.getDateTimeFormat),
3332
+ formatTimeToParts: Xt.bind(null, n, r.getDateTimeFormat),
3333
+ formatPlural: Yt.bind(null, n, r.getPluralRules),
3328
3334
  // @ts-expect-error TODO: will get to this later
3329
- formatMessage: be.bind(null, r, n),
3335
+ formatMessage: pe.bind(null, n, r),
3330
3336
  // @ts-expect-error TODO: will get to this later
3331
- $t: be.bind(null, r, n),
3332
- formatList: Kt.bind(null, r, n.getListFormat),
3333
- formatListToParts: Ve.bind(null, r, n.getListFormat),
3334
- formatDisplayName: qt.bind(null, r, n.getDisplayNames)
3337
+ $t: pe.bind(null, n, r),
3338
+ formatList: qt.bind(null, n, r.getListFormat),
3339
+ formatListToParts: we.bind(null, n, r.getListFormat),
3340
+ formatDisplayName: Zt.bind(null, n, r.getDisplayNames)
3335
3341
  });
3336
3342
  }
3337
- function fr(e) {
3343
+ function sr(e) {
3338
3344
  return e && e.constructor && typeof e.constructor.isBuffer == "function" && e.constructor.isBuffer(e);
3339
3345
  }
3340
- function cr(e) {
3346
+ function ur(e) {
3341
3347
  return e;
3342
3348
  }
3343
- function mr(e, t) {
3349
+ function hr(e, t) {
3344
3350
  t = t || {};
3345
- const n = t.delimiter || ".", r = t.maxDepth, a = t.transformKey || cr, i = {};
3351
+ const r = t.delimiter || ".", n = t.maxDepth, a = t.transformKey || ur, i = {};
3346
3352
  function o(s, u, l) {
3347
3353
  l = l || 1, Object.keys(s).forEach(function(h) {
3348
- const f = s[h], c = t.safe && Array.isArray(f), E = Object.prototype.toString.call(f), x = fr(f), g = E === "[object Object]" || E === "[object Array]", d = u ? u + n + a(h) : a(h);
3349
- if (!c && !x && g && Object.keys(f).length && (!t.maxDepth || l < r))
3350
- return o(f, d, l + 1);
3351
- i[d] = f;
3354
+ const m = s[h], c = t.safe && Array.isArray(m), E = Object.prototype.toString.call(m), x = sr(m), p = E === "[object Object]" || E === "[object Array]", d = u ? u + r + a(h) : a(h);
3355
+ if (!c && !x && p && Object.keys(m).length && (!t.maxDepth || l < n))
3356
+ return o(m, d, l + 1);
3357
+ i[d] = m;
3352
3358
  });
3353
3359
  }
3354
3360
  return o(e), i;
3355
3361
  }
3356
- const pr = Ge();
3357
- let ke;
3358
- const xe = {
3362
+ const lr = Ce();
3363
+ let Ge;
3364
+ const Ee = {
3359
3365
  year: "numeric",
3360
3366
  month: "short",
3361
3367
  day: "numeric",
3362
3368
  hour: "numeric",
3363
3369
  minute: "numeric"
3364
- }, Er = (e, t, n = !1) => {
3370
+ }, cr = (e, t, r = !1) => {
3365
3371
  var x;
3366
- const r = typeof n == "boolean", a = lr(
3372
+ const n = typeof r == "boolean", a = or(
3367
3373
  {
3368
- ...r ? null : n,
3374
+ ...n ? null : r,
3369
3375
  locale: e,
3370
- messages: mr(t, {
3376
+ messages: hr(t, {
3371
3377
  safe: !0
3372
3378
  // Preserve arrays
3373
3379
  }),
3374
3380
  formats: {
3375
- ...r ? null : n.formats,
3381
+ ...n ? null : r.formats,
3376
3382
  date: {
3377
- ...r ? null : (x = n.formats) == null ? void 0 : x.date,
3378
- datetime: xe
3383
+ ...n ? null : (x = r.formats) == null ? void 0 : x.date,
3384
+ datetime: Ee
3379
3385
  }
3380
3386
  }
3381
3387
  },
3382
- pr
3383
- ), { $t: i, ...o } = a, s = o, u = (g) => {
3388
+ lr
3389
+ ), { $t: i, ...o } = a, s = o, u = (p) => {
3384
3390
  const d = "Invalid Date";
3385
- if (!g)
3391
+ if (!p)
3386
3392
  return d;
3387
3393
  try {
3388
- const y = new Date(g * 1e3);
3389
- return s.formatDate(y, xe);
3394
+ const y = new Date(p * 1e3);
3395
+ return s.formatDate(y, Ee);
3390
3396
  } catch {
3391
3397
  return d;
3392
3398
  }
3393
3399
  }, E = {
3394
3400
  formatUnixTimeStamp: u,
3395
- formatIsoDate: (g) => {
3396
- const d = Date.parse(g) / 1e3;
3401
+ formatIsoDate: (p) => {
3402
+ const d = Date.parse(p) / 1e3;
3397
3403
  return u(d);
3398
3404
  },
3399
- t: (g, d, y) => s.formatMessage({ id: g }, d, y),
3400
- te: (g) => !!s.messages[g],
3401
- tm: (g) => s.messages[g] || [],
3405
+ t: (p, d, y) => s.formatMessage({ id: p }, d, y),
3406
+ te: (p) => !!s.messages[p],
3407
+ tm: (p) => s.messages[p] || [],
3402
3408
  ...s,
3403
3409
  source: t
3404
3410
  };
3405
- return (typeof n == "boolean" && n === !0 || typeof n != "boolean" && n.isGlobal === !0) && (ke = E), E;
3411
+ return (typeof r == "boolean" && r === !0 || typeof r != "boolean" && r.isGlobal === !0) && (Ge = E), E;
3406
3412
  };
3407
- function dr() {
3408
- return ke;
3413
+ function gr() {
3414
+ return Ge;
3409
3415
  }
3410
- const gr = (e = null) => Xe({
3416
+ const fr = (e = null) => Ue({
3411
3417
  name: "I18nT",
3412
3418
  props: {
3413
3419
  i18n: {
@@ -3424,8 +3430,8 @@ const gr = (e = null) => Xe({
3424
3430
  default: "span"
3425
3431
  }
3426
3432
  },
3427
- setup(t, { slots: n }) {
3428
- const r = (a) => {
3433
+ setup(t, { slots: r }) {
3434
+ const n = (a) => {
3429
3435
  if (!a)
3430
3436
  return [];
3431
3437
  const i = /(\{[^}]+\})/g;
@@ -3433,25 +3439,25 @@ const gr = (e = null) => Xe({
3433
3439
  };
3434
3440
  return () => {
3435
3441
  var s;
3436
- const a = Object.keys(n).filter((u) => u !== "_"), i = ((s = (e || t.i18n).messages[t.keypath]) == null ? void 0 : s.toString()) || "";
3437
- let o = r(i);
3442
+ const a = Object.keys(r).filter((u) => u !== "_"), i = ((s = (e || t.i18n).messages[t.keypath]) == null ? void 0 : s.toString()) || "";
3443
+ let o = n(i);
3438
3444
  return o = o.filter((u) => u !== ""), o.forEach((u, l) => {
3439
3445
  if (!u.startsWith("{") && !u.endsWith("}"))
3440
3446
  return;
3441
3447
  const h = u.replace(/[\{\}]/g, "");
3442
- h === "0" && n.default ? o[l] = n.default() : a.includes(h) && n[h] && (o[l] = n[h]());
3443
- }), We(t.tag, t, o);
3448
+ h === "0" && r.default ? o[l] = r.default() : a.includes(h) && r[h] && (o[l] = r[h]());
3449
+ }), Ve(t.tag, t, o);
3444
3450
  };
3445
3451
  }
3446
- }), br = {
3452
+ }), pr = {
3447
3453
  install(e, t) {
3448
- const { i18n: n } = t;
3449
- e.component("I18nT", gr(n));
3454
+ const { i18n: r } = t;
3455
+ e.component("I18nT", fr(r));
3450
3456
  }
3451
3457
  };
3452
3458
  export {
3453
- br as Translation,
3454
- Er as createI18n,
3455
- gr as i18nTComponent,
3456
- dr as useI18n
3459
+ pr as Translation,
3460
+ cr as createI18n,
3461
+ fr as i18nTComponent,
3462
+ gr as useI18n
3457
3463
  };