@intlify/core 12.0.0-alpha.13 → 12.0.0-alpha.14

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @intlify/core v12.0.0-alpha.13
2
+ * @intlify/core v12.0.0-alpha.14
3
3
  * (c) 2016-present kazuya kawaguchi and contributors
4
4
  * @license MIT
5
5
  **/ const e = /\{([0-9a-z]+)\}/gi;
@@ -41,11 +41,11 @@ function le(e, t, n) {
41
41
  let i = Number.parseInt(r, t ? 16 : 10);
42
42
  return i <= 127 ? String.fromCharCode(i) : e;
43
43
  }
44
- function ue(e) {
44
+ function N(e) {
45
45
  let t = e.replace(O, le).replace(k, ``).replace(re, `:`).replace(ie, ``);
46
46
  return te.test(t);
47
47
  }
48
- function de(e) {
48
+ function ue(e) {
49
49
  let t = /url\s*\(/gi, n = ``, r = 0, i;
50
50
  for (; (i = t.exec(e)) !== null;) {
51
51
  let a = i.index, o = t.lastIndex - 1, s = o + 1, c = 1, l = null;
@@ -58,85 +58,85 @@ function de(e) {
58
58
  }
59
59
  if (c !== 0) break;
60
60
  let u = e.slice(o + 1, s).trim(), d = u.startsWith(`"`) && u.endsWith(`"`) || u.startsWith(`'`) && u.endsWith(`'`) ? u.slice(1, -1).trim() : u;
61
- n += e.slice(r, a), n += ue(d) ? `url(about:blank)` : e.slice(a, s + 1), r = s + 1;
61
+ n += e.slice(r, a), n += N(d) ? `url(about:blank)` : e.slice(a, s + 1), r = s + 1;
62
62
  }
63
63
  return n + e.slice(r);
64
64
  }
65
- function fe(e, t) {
66
- return ne.test(e) && ue(t) ? `about:blank` : ee(e.toLowerCase() === `style` ? de(t) : t);
65
+ function de(e, t) {
66
+ return ne.test(e) && N(t) ? `about:blank` : ee(e.toLowerCase() === `style` ? ue(t) : t);
67
67
  }
68
- function N(e) {
68
+ function P(e) {
69
69
  return e.replace(/</g, `&lt;`);
70
70
  }
71
- function pe(e, t, n, r) {
71
+ function fe(e, t, n, r) {
72
72
  let i = e;
73
73
  if (ae.test(e) ? (r.eventHandler = !0, i = `&#111;n${e.slice(2)}`) : oe.test(e) && (r.srcdoc = !0, i = `&#115;${e.slice(1)}`), t === void 0) return i;
74
74
  let a = n || ``;
75
- return `${i}=${a}${fe(e, t)}${a}`;
75
+ return `${i}=${a}${de(e, t)}${a}`;
76
76
  }
77
- const me = /^(?:area|base|basefont|bgsound|br|col|embed|frame|hr|image|img|input|keygen|link|meta|param|source|track|wbr|html|head|body|frameset)$/, P = /^(?:[bipsu]|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h[1-6]|head|hr|img|li|listing|menu|meta|nobr|ol|pre|ruby|small|span|strong|strike|sub|sup|table|tt|ul|var)$/, F = /^(?:address|article|aside|blockquote|center|details|dialog|dir|div|dl|fieldset|figcaption|figure|footer|header|hgroup|main|menu|nav|ol|p|search|section|summary|ul|h[1-6]|pre|listing|form|li|dd|dt|plaintext|table|hr|xmp)$/, I = /^(?:applet|caption|html|table|td|th|marquee|object|template|button)$/, L = /^(?:foreignobject|desc|title)$/, he = /^(?:foreignobject|desc|mi|mo|mn|ms|mtext|annotation-xml)$/, ge = /^(?:mi|mo|mn|ms|mtext)$/, _e = /^(?:text\/html|application\/xhtml\+xml)$/i;
78
- function ve(e) {
77
+ const pe = /^(?:area|base|basefont|bgsound|br|col|embed|frame|hr|image|img|input|keygen|link|meta|param|source|track|wbr|html|head|body|frameset)$/, F = /^(?:[bipsu]|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h[1-6]|head|hr|img|li|listing|menu|meta|nobr|ol|pre|ruby|small|span|strong|strike|sub|sup|table|tt|ul|var)$/, I = /^(?:address|article|aside|blockquote|center|details|dialog|dir|div|dl|fieldset|figcaption|figure|footer|header|hgroup|main|menu|nav|ol|p|search|section|summary|ul|h[1-6]|pre|listing|form|li|dd|dt|plaintext|table|hr|xmp)$/, L = /^(?:applet|caption|html|table|td|th|marquee|object|template|button)$/, R = /^(?:foreignobject|desc|title)$/, me = /^(?:foreignobject|desc|mi|mo|mn|ms|mtext|annotation-xml)$/, he = /^(?:mi|mo|mn|ms|mtext)$/, ge = /^(?:text\/html|application\/xhtml\+xml)$/i;
78
+ function _e(e) {
79
79
  return e.replace(/[A-Z]+/g, (e) => e.toLowerCase());
80
80
  }
81
- function ye(e, t) {
82
- return !!e && e.namespace !== 0 && (!e.integration || ge.test(e.name) && (t === `mglyph` || t === `malignmark`)) && (e.name !== `annotation-xml` || t !== `svg`);
81
+ function ve(e, t) {
82
+ return !!e && e.namespace !== 0 && (!e.integration || he.test(e.name) && (t === `mglyph` || t === `malignmark`)) && (e.name !== `annotation-xml` || t !== `svg`);
83
83
  }
84
- function be(e, t) {
85
- return P.test(e) || e === `font` && (t.has(`color`) || t.has(`face`) || t.has(`size`));
84
+ function ye(e, t) {
85
+ return F.test(e) || e === `font` && (t.has(`color`) || t.has(`face`) || t.has(`size`));
86
86
  }
87
- function xe(e, t, n) {
87
+ function be(e, t, n) {
88
88
  let r = ``;
89
89
  for (let i = e.length - 1; i >= t; i--) {
90
90
  let t = e[i];
91
- t.namespace === 0 && t.name === `form` ? n[t.part] = N(n[t.part]) : r += `</${t.name}>`;
91
+ t.namespace === 0 && t.name === `form` ? n[t.part] = P(n[t.part]) : r += `</${t.name}>`;
92
92
  }
93
93
  return e.length = t, r;
94
94
  }
95
- function Se(e, t) {
95
+ function xe(e, t) {
96
96
  let n = e.length;
97
97
  for (; n > 0 && e[n - 1].namespace !== 0 && !e[n - 1].integration;) n--;
98
- return xe(e, n, t);
98
+ return be(e, n, t);
99
99
  }
100
- function Ce(e, t, n, r, i) {
100
+ function Se(e, t, n, r, i) {
101
101
  let a = t.length + 1, o = ``, s = e[e.length - 1];
102
- if (ye(s, n)) {
103
- if (!be(n, r)) return i || e.push({
102
+ if (ve(s, n)) {
103
+ if (!ye(n, r)) return i || e.push({
104
104
  name: n,
105
105
  namespace: s.namespace,
106
- integration: s.namespace === 1 ? L.test(n) : ge.test(n) || n === `annotation-xml` && _e.test((r.get(`encoding`) || ``).replace(O, le)),
106
+ integration: s.namespace === 1 ? R.test(n) : he.test(n) || n === `annotation-xml` && ge.test((r.get(`encoding`) || ``).replace(O, le)),
107
107
  part: a
108
108
  }), o;
109
- o = Se(e, t);
109
+ o = xe(e, t);
110
110
  }
111
- if (F.test(n)) for (let n = e.length - 1; n >= 0; n--) {
111
+ if (I.test(n)) for (let n = e.length - 1; n >= 0; n--) {
112
112
  let r = e[n];
113
- if (r.namespace === 0 ? I.test(r.name) : r.integration) break;
113
+ if (r.namespace === 0 ? L.test(r.name) : r.integration) break;
114
114
  if (r.namespace === 0 && r.name === `p`) {
115
- o += xe(e, n, t);
115
+ o += be(e, n, t);
116
116
  break;
117
117
  }
118
118
  }
119
- if (!he.test(n)) return n === `svg` || n === `math` ? i || e.push({
119
+ if (!me.test(n)) return n === `svg` || n === `math` ? i || e.push({
120
120
  name: n,
121
121
  namespace: n === `svg` ? 1 : 2,
122
122
  integration: !1,
123
123
  part: a
124
- }) : me.test(n) || e.push({
124
+ }) : pe.test(n) || e.push({
125
125
  name: n,
126
126
  namespace: 0,
127
127
  integration: !1,
128
128
  part: a
129
129
  }), o;
130
130
  }
131
- function we(e, t, n) {
131
+ function Ce(e, t, n) {
132
132
  let r = ``;
133
- (n === `p` || n === `br`) && (r = Se(e, t));
133
+ (n === `p` || n === `br`) && (r = xe(e, t));
134
134
  let i = e.length - 1;
135
135
  for (; i >= 0 && e[i].namespace !== 0 && e[i].name !== n;) i--;
136
136
  if (!(i >= 0 && e[i].namespace !== 0)) for (; i >= 0 && (e[i].namespace !== 0 || e[i].name !== n);) i--;
137
- return i < 0 ? n === `br` || n === `p` ? r : void 0 : (r += xe(e, i + 1, t), e.length = i, r);
137
+ return i < 0 ? n === `br` || n === `p` ? r : void 0 : (r += be(e, i + 1, t), e.length = i, r);
138
138
  }
139
- function Te(e, t, n) {
139
+ function we(e, t, n) {
140
140
  A.lastIndex = t;
141
141
  let r = A.exec(e);
142
142
  if (!r) return;
@@ -155,8 +155,8 @@ function Te(e, t, n) {
155
155
  }
156
156
  if (f && !m) break;
157
157
  if (!i) {
158
- let e = f ? p : h, t = ve(d);
159
- s.has(t) || s.set(t, e || ``), o += l + pe(d, e, f, n);
158
+ let e = f ? p : h, t = _e(d);
159
+ s.has(t) || s.set(t, e || ``), o += l + fe(d, e, f, n);
160
160
  }
161
161
  }
162
162
  return [
@@ -167,53 +167,53 @@ function Te(e, t, n) {
167
167
  s
168
168
  ];
169
169
  }
170
- function Ee(e, t, n) {
170
+ function Te(e, t, n) {
171
171
  for (let r = e.indexOf(`</`, t); r !== -1; r = e.indexOf(`</`, r + 2)) {
172
- let t = Te(e, r, {});
172
+ let t = we(e, r, {});
173
173
  if (t && t[1].toLowerCase() === n.toLowerCase()) return t[2] === -1 ? -1 : r;
174
174
  }
175
175
  return -1;
176
176
  }
177
- function De(e) {
177
+ function Ee(e) {
178
178
  let t = {}, n = [], r = [], i = 0, a;
179
179
  for (; (a = e.indexOf(`<`, i)) !== -1;) {
180
180
  n.push(e.slice(i, a)), i = a + 1;
181
- let o = Te(e, a, t);
181
+ let o = we(e, a, t);
182
182
  if (o) {
183
183
  let [s, c, l, u, d] = o;
184
184
  if (l === -1) {
185
- t.unclosed = !0, n.push(N(e.slice(a))), i = e.length;
185
+ t.unclosed = !0, n.push(P(e.slice(a))), i = e.length;
186
186
  break;
187
187
  }
188
188
  if (i = l, s[1] === `/`) {
189
- let e = we(r, n, ve(c));
189
+ let e = Ce(r, n, _e(c));
190
190
  e === void 0 ? t.closed = !0 : (e && (t.closed = !0), n.push(e + s));
191
- } else if (se.test(c)) t.element = !0, n.push(N(s));
191
+ } else if (se.test(c)) t.element = !0, n.push(P(s));
192
192
  else {
193
193
  let a = ``;
194
194
  if (ce.test(c)) {
195
- let r = Ee(e, l, c);
195
+ let r = Te(e, l, c);
196
196
  if (r === -1) {
197
- t.unclosed = !0, n.push(N(s));
197
+ t.unclosed = !0, n.push(P(s));
198
198
  continue;
199
199
  }
200
- a = N(e.slice(l, r)), i = r;
200
+ a = P(e.slice(l, r)), i = r;
201
201
  }
202
- let o = Ce(r, n, ve(c), d, u);
203
- o === void 0 ? (t.closed = !0, n.push(N(s) + a)) : n.push(o, s + a);
202
+ let o = Se(r, n, _e(c), d, u);
203
+ o === void 0 ? (t.closed = !0, n.push(P(s) + a)) : n.push(o, s + a);
204
204
  }
205
205
  } else M.lastIndex = a, M.test(e) ? (n.push(e.slice(a, M.lastIndex)), i = M.lastIndex) : (e.startsWith(`<!--`, a) && (t.unclosed = !0), n.push(`&lt;`));
206
206
  }
207
207
  n.push(e.slice(i));
208
208
  for (let e = r.length - 1; e >= 0; e--) {
209
209
  let i = r[e];
210
- t.closed = !0, i.namespace === 0 && i.name === `form` ? n[i.part] = N(n[i.part]) : n.push(`</${i.name}>`);
210
+ t.closed = !0, i.namespace === 0 && i.name === `form` ? n[i.part] = P(n[i.part]) : n.push(`</${i.name}>`);
211
211
  }
212
212
  return n.join(``);
213
213
  }
214
- const Oe = (e) => !y(e) || h(e);
215
- function ke(e, t) {
216
- if (Oe(e) || Oe(t) || t === Object.prototype) throw Error(`Invalid value`);
214
+ const De = (e) => !y(e) || h(e);
215
+ function Oe(e, t) {
216
+ if (De(e) || De(t) || t === Object.prototype) throw Error(`Invalid value`);
217
217
  let n = [e, t];
218
218
  for (; n.length;) {
219
219
  let e = n.pop(), t = n.pop(), r = Object.keys(t);
@@ -235,21 +235,21 @@ function ke(e, t) {
235
235
  }
236
236
  }
237
237
  }
238
- function Ae(e, t, n) {
238
+ function ke(e, t, n) {
239
239
  return {
240
240
  line: e,
241
241
  column: t,
242
242
  offset: n
243
243
  };
244
244
  }
245
- function je(e, t, n) {
245
+ function Ae(e, t, n) {
246
246
  let r = {
247
247
  start: e,
248
248
  end: t
249
249
  };
250
250
  return n != null && (r.source = n), r;
251
251
  }
252
- const R = {
252
+ const z = {
253
253
  EXPECTED_TOKEN: 1,
254
254
  INVALID_TOKEN_IN_PLACEHOLDER: 2,
255
255
  UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
@@ -267,30 +267,30 @@ const R = {
267
267
  UNHANDLED_CODEGEN_NODE_TYPE: 15,
268
268
  UNHANDLED_MINIFIER_NODE_TYPE: 16
269
269
  };
270
- R.EXPECTED_TOKEN, R.INVALID_TOKEN_IN_PLACEHOLDER, R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, R.UNKNOWN_ESCAPE_SEQUENCE, R.INVALID_UNICODE_ESCAPE_SEQUENCE, R.UNBALANCED_CLOSING_BRACE, R.UNTERMINATED_CLOSING_BRACE, R.EMPTY_PLACEHOLDER, R.NOT_ALLOW_NEST_PLACEHOLDER, R.INVALID_LINKED_FORMAT, R.MUST_HAVE_MESSAGES_IN_PLURAL, R.UNEXPECTED_EMPTY_LINKED_MODIFIER, R.UNEXPECTED_EMPTY_LINKED_KEY, R.UNEXPECTED_LEXICAL_ANALYSIS, R.UNHANDLED_CODEGEN_NODE_TYPE, R.UNHANDLED_MINIFIER_NODE_TYPE;
271
- function Me(e, t, n = {}) {
270
+ z.EXPECTED_TOKEN, z.INVALID_TOKEN_IN_PLACEHOLDER, z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, z.UNKNOWN_ESCAPE_SEQUENCE, z.INVALID_UNICODE_ESCAPE_SEQUENCE, z.UNBALANCED_CLOSING_BRACE, z.UNTERMINATED_CLOSING_BRACE, z.EMPTY_PLACEHOLDER, z.NOT_ALLOW_NEST_PLACEHOLDER, z.INVALID_LINKED_FORMAT, z.MUST_HAVE_MESSAGES_IN_PLURAL, z.UNEXPECTED_EMPTY_LINKED_MODIFIER, z.UNEXPECTED_EMPTY_LINKED_KEY, z.UNEXPECTED_LEXICAL_ANALYSIS, z.UNHANDLED_CODEGEN_NODE_TYPE, z.UNHANDLED_MINIFIER_NODE_TYPE;
271
+ function je(e, t, n = {}) {
272
272
  let { domain: r, messages: i, args: a } = n, o = SyntaxError(String(e));
273
273
  return o.code = e, t && (o.location = t), o.domain = r, o;
274
274
  }
275
- function Ne(e) {
275
+ function Me(e) {
276
276
  throw e;
277
277
  }
278
- function z(e) {
278
+ function B(e) {
279
279
  switch (e.t = e.type, e.type) {
280
280
  case 0: {
281
281
  let t = e;
282
- z(t.body), t.b = t.body, delete t.body;
282
+ B(t.body), t.b = t.body, delete t.body;
283
283
  break;
284
284
  }
285
285
  case 1: {
286
286
  let t = e, n = t.cases;
287
- for (let e = 0; e < n.length; e++) z(n[e]);
287
+ for (let e = 0; e < n.length; e++) B(n[e]);
288
288
  t.c = n, delete t.cases;
289
289
  break;
290
290
  }
291
291
  case 2: {
292
292
  let t = e, n = t.items;
293
- for (let e = 0; e < n.length; e++) z(n[e]);
293
+ for (let e = 0; e < n.length; e++) B(n[e]);
294
294
  t.i = n, delete t.items, t.static && (t.s = t.static, delete t.static);
295
295
  break;
296
296
  }
@@ -304,7 +304,7 @@ function z(e) {
304
304
  }
305
305
  case 6: {
306
306
  let t = e;
307
- z(t.key), t.k = t.key, delete t.key, t.modifier && (z(t.modifier), t.m = t.modifier, delete t.modifier);
307
+ B(t.key), t.k = t.key, delete t.key, t.modifier && (B(t.modifier), t.m = t.modifier, delete t.modifier);
308
308
  break;
309
309
  }
310
310
  case 5: {
@@ -320,11 +320,11 @@ function z(e) {
320
320
  }
321
321
  delete e.type;
322
322
  }
323
- function Pe(e) {
323
+ function Ne(e) {
324
324
  let t = e.body;
325
- return t.type === 2 ? Fe(t) : t.cases.forEach((e) => Fe(e)), e;
325
+ return t.type === 2 ? Pe(t) : t.cases.forEach((e) => Pe(e)), e;
326
326
  }
327
- function Fe(e) {
327
+ function Pe(e) {
328
328
  if (e.items.length === 1) {
329
329
  let t = e.items[0];
330
330
  (t.type === 3 || t.type === 9) && (e.static = t.value, delete t.value);
@@ -344,7 +344,7 @@ function Fe(e) {
344
344
  }
345
345
  }
346
346
  }
347
- function Ie(e) {
347
+ function Fe(e) {
348
348
  let t = e, n = 0, r = 1, i = 1, a = 0, o = (e) => t[e] === `\r` && t[e + 1] === `
349
349
  `, s = (e) => t[e] === `
350
350
  `, c = (e) => t[e] === `\u2029`, l = (e) => t[e] === `\u2028`, u = (e) => o(e) || s(e) || c(e) || l(e), d = () => n, f = () => r, p = () => i, m = () => a, h = (e) => o(e) || c(e) || l(e) ? `
@@ -381,8 +381,8 @@ function Ie(e) {
381
381
  skipToPeek: S
382
382
  };
383
383
  }
384
- function Le(e, t = {}) {
385
- let n = t.location !== !1, r = Ie(e), i = () => r.index(), a = () => Ae(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
384
+ function Ie(e, t = {}) {
385
+ let n = t.location !== !1, r = Fe(e), i = () => r.index(), a = () => ke(r.line(), r.column(), r.index()), o = a(), s = i(), c = {
386
386
  currentType: 13,
387
387
  offset: s,
388
388
  startLoc: o,
@@ -398,11 +398,11 @@ function Le(e, t = {}) {
398
398
  function d(e, t, r) {
399
399
  e.endLoc = a(), e.currentType = t;
400
400
  let i = { type: t };
401
- return n && (i.loc = je(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
401
+ return n && (i.loc = Ae(e.startLoc, e.endLoc)), r != null && (i.value = r), i;
402
402
  }
403
403
  let f = (e) => d(e, 13);
404
404
  function p(e, t) {
405
- return e.currentChar() === t ? (e.next(), t) : (R.EXPECTED_TOKEN, a(), ``);
405
+ return e.currentChar() === t ? (e.next(), t) : (z.EXPECTED_TOKEN, a(), ``);
406
406
  }
407
407
  function m(e) {
408
408
  let t = ``;
@@ -552,15 +552,15 @@ function Le(e, t = {}) {
552
552
  let r = e.currentChar();
553
553
  if (r && r !== `}` && r !== void 0 && r !== ` ` && r !== `
554
554
  ` && r !== ` `) {
555
- let t = fe(e);
556
- return R.INVALID_TOKEN_IN_PLACEHOLDER, a(), n + t, n + t;
555
+ let t = de(e);
556
+ return z.INVALID_TOKEN_IN_PLACEHOLDER, a(), n + t, n + t;
557
557
  }
558
- return e.currentChar() === void 0 && (R.UNTERMINATED_CLOSING_BRACE, a()), n;
558
+ return e.currentChar() === void 0 && (z.UNTERMINATED_CLOSING_BRACE, a()), n;
559
559
  }
560
560
  function A(e) {
561
561
  h(e);
562
562
  let t = ``;
563
- return e.currentChar() === `-` ? (e.next(), t += `-${oe(e)}`) : t += oe(e), e.currentChar() === void 0 && (R.UNTERMINATED_CLOSING_BRACE, a()), t;
563
+ return e.currentChar() === `-` ? (e.next(), t += `-${oe(e)}`) : t += oe(e), e.currentChar() === void 0 && (z.UNTERMINATED_CLOSING_BRACE, a()), t;
564
564
  }
565
565
  function j(e) {
566
566
  return e !== `'` && e !== `
@@ -572,7 +572,7 @@ function Le(e, t = {}) {
572
572
  for (; t = D(e, j);) n += t === `\\` ? le(e) : t;
573
573
  let r = e.currentChar();
574
574
  return r === `
575
- ` || r === void 0 ? (R.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), r === `
575
+ ` || r === void 0 ? (z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, a(), r === `
576
576
  ` && (e.next(), p(e, `'`)), n) : (p(e, `'`), n);
577
577
  }
578
578
  function le(e) {
@@ -580,113 +580,113 @@ function Le(e, t = {}) {
580
580
  switch (t) {
581
581
  case `\\`:
582
582
  case `'`: return e.next(), `\\${t}`;
583
- case `u`: return ue(e, t, 4);
584
- case `U`: return ue(e, t, 6);
585
- default: return R.UNKNOWN_ESCAPE_SEQUENCE, a(), ``;
583
+ case `u`: return N(e, t, 4);
584
+ case `U`: return N(e, t, 6);
585
+ default: return z.UNKNOWN_ESCAPE_SEQUENCE, a(), ``;
586
586
  }
587
587
  }
588
- function ue(e, t, n) {
588
+ function N(e, t, n) {
589
589
  p(e, t);
590
590
  let r = ``;
591
591
  for (let i = 0; i < n; i++) {
592
592
  let n = ae(e);
593
593
  if (!n) {
594
- R.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), `${t}${r}${e.currentChar()}`;
594
+ z.INVALID_UNICODE_ESCAPE_SEQUENCE, a(), `${t}${r}${e.currentChar()}`;
595
595
  break;
596
596
  }
597
597
  r += n;
598
598
  }
599
599
  return `\\${t}${r}`;
600
600
  }
601
- function de(e) {
601
+ function ue(e) {
602
602
  return e !== `{` && e !== `}` && e !== ` ` && e !== `
603
603
  `;
604
604
  }
605
- function fe(e) {
605
+ function de(e) {
606
606
  h(e);
607
607
  let t = ``, n = ``;
608
- for (; t = D(e, de);) n += t;
608
+ for (; t = D(e, ue);) n += t;
609
609
  return n;
610
610
  }
611
- function N(e) {
611
+ function P(e) {
612
612
  let t = ``, n = ``;
613
613
  for (; t = te(e);) n += t;
614
614
  return n;
615
615
  }
616
- function pe(e) {
616
+ function fe(e) {
617
617
  return e !== `{` && e !== `@` && e !== `|` && e !== `(` && e !== `)` && e !== ` ` && e !== ` ` && e !== `
618
618
  `;
619
619
  }
620
- function me(e) {
620
+ function pe(e) {
621
621
  for (; e.currentChar() === ` `;) e.next();
622
622
  let t = ``, n;
623
- for (; (n = e.currentChar()) && pe(n);) t += n, e.next();
623
+ for (; (n = e.currentChar()) && fe(n);) t += n, e.next();
624
624
  return t;
625
625
  }
626
- function P(e) {
626
+ function F(e) {
627
627
  h(e);
628
628
  let t = p(e, `|`);
629
629
  return h(e), t;
630
630
  }
631
- function F(e, t) {
631
+ function I(e, t) {
632
632
  let n = null;
633
633
  switch (e.currentChar()) {
634
- case `{`: return t.braceNest >= 1 && (R.NOT_ALLOW_NEST_PLACEHOLDER, a()), e.next(), n = d(t, 2, `{`), h(e), t.braceNest++, n;
635
- case `}`: return t.braceNest > 0 && t.currentType === 2 && (R.EMPTY_PLACEHOLDER, a()), e.next(), n = d(t, 3, `}`), t.braceNest--, t.braceNest > 0 && h(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
636
- case `@`: return t.braceNest > 0 && (R.UNTERMINATED_CLOSING_BRACE, a()), n = I(e, t) || f(t), t.braceNest = 0, n;
634
+ case `{`: return t.braceNest >= 1 && (z.NOT_ALLOW_NEST_PLACEHOLDER, a()), e.next(), n = d(t, 2, `{`), h(e), t.braceNest++, n;
635
+ case `}`: return t.braceNest > 0 && t.currentType === 2 && (z.EMPTY_PLACEHOLDER, a()), e.next(), n = d(t, 3, `}`), t.braceNest--, t.braceNest > 0 && h(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), n;
636
+ case `@`: return t.braceNest > 0 && (z.UNTERMINATED_CLOSING_BRACE, a()), n = L(e, t) || f(t), t.braceNest = 0, n;
637
637
  default: {
638
638
  let r = !0, i = !0, o = !0;
639
- if (T(e)) return t.braceNest > 0 && (R.UNTERMINATED_CLOSING_BRACE, a()), n = d(t, 1, P(e)), t.braceNest = 0, t.inLinked = !1, n;
640
- if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return R.UNTERMINATED_CLOSING_BRACE, a(), t.braceNest = 0, L(e, t);
639
+ if (T(e)) return t.braceNest > 0 && (z.UNTERMINATED_CLOSING_BRACE, a()), n = d(t, 1, F(e)), t.braceNest = 0, t.inLinked = !1, n;
640
+ if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6)) return z.UNTERMINATED_CLOSING_BRACE, a(), t.braceNest = 0, R(e, t);
641
641
  if (r = v(e, t)) return n = d(t, 4, ce(e)), h(e), n;
642
642
  if (i = y(e, t)) return n = d(t, 5, A(e)), h(e), n;
643
643
  if (o = b(e, t)) return n = d(t, 6, M(e)), h(e), n;
644
- if (!r && !i && !o) return n = d(t, 12, fe(e)), R.INVALID_TOKEN_IN_PLACEHOLDER, a(), n.value, h(e), n;
644
+ if (!r && !i && !o) return n = d(t, 12, de(e)), z.INVALID_TOKEN_IN_PLACEHOLDER, a(), n.value, h(e), n;
645
645
  break;
646
646
  }
647
647
  }
648
648
  return n;
649
649
  }
650
- function I(e, t) {
650
+ function L(e, t) {
651
651
  let { currentType: n } = t, r = null, i = e.currentChar();
652
652
  switch (n !== 7 && n !== 8 && n !== 11 && n !== 9 || i !== `
653
- ` && i !== ` ` || (R.INVALID_LINKED_FORMAT, a()), i) {
653
+ ` && i !== ` ` || (z.INVALID_LINKED_FORMAT, a()), i) {
654
654
  case `@`: return e.next(), r = d(t, 7, `@`), t.inLinked = !0, r;
655
655
  case `.`: return h(e), e.next(), d(t, 8, `.`);
656
656
  case `:`: return h(e), e.next(), d(t, 9, `:`);
657
- default: return T(e) ? (r = d(t, 1, P(e)), t.braceNest = 0, t.inLinked = !1, r) : x(e, t) || C(e, t) ? (h(e), I(e, t)) : S(e, t) ? (h(e), d(t, 11, N(e))) : w(e, t) ? (h(e), i === `{` ? F(e, t) || r : d(t, 10, me(e))) : (n === 7 && (R.INVALID_LINKED_FORMAT, a()), t.braceNest = 0, t.inLinked = !1, L(e, t));
657
+ default: return T(e) ? (r = d(t, 1, F(e)), t.braceNest = 0, t.inLinked = !1, r) : x(e, t) || C(e, t) ? (h(e), L(e, t)) : S(e, t) ? (h(e), d(t, 11, P(e))) : w(e, t) ? (h(e), i === `{` ? I(e, t) || r : d(t, 10, pe(e))) : (n === 7 && (z.INVALID_LINKED_FORMAT, a()), t.braceNest = 0, t.inLinked = !1, R(e, t));
658
658
  }
659
659
  }
660
- function L(e, t) {
660
+ function R(e, t) {
661
661
  let n = { type: 13 };
662
- if (t.braceNest > 0) return F(e, t) || f(t);
663
- if (t.inLinked) return I(e, t) || f(t);
662
+ if (t.braceNest > 0) return I(e, t) || f(t);
663
+ if (t.inLinked) return L(e, t) || f(t);
664
664
  switch (e.currentChar()) {
665
- case `{`: return F(e, t) || f(t);
666
- case `}`: return R.UNBALANCED_CLOSING_BRACE, a(), e.next(), d(t, 3, `}`);
667
- case `@`: return I(e, t) || f(t);
665
+ case `{`: return I(e, t) || f(t);
666
+ case `}`: return z.UNBALANCED_CLOSING_BRACE, a(), e.next(), d(t, 3, `}`);
667
+ case `@`: return L(e, t) || f(t);
668
668
  default:
669
- if (T(e)) return n = d(t, 1, P(e)), t.braceNest = 0, t.inLinked = !1, n;
669
+ if (T(e)) return n = d(t, 1, F(e)), t.braceNest = 0, t.inLinked = !1, n;
670
670
  if (E(e)) return d(t, 0, se(e));
671
671
  }
672
672
  return n;
673
673
  }
674
- function he() {
674
+ function me() {
675
675
  let { currentType: e, offset: t, startLoc: n, endLoc: o } = c;
676
- return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === void 0 ? d(c, 13) : L(r, c);
676
+ return c.lastType = e, c.lastOffset = t, c.lastStartLoc = n, c.lastEndLoc = o, c.offset = i(), c.startLoc = a(), r.currentChar() === void 0 ? d(c, 13) : R(r, c);
677
677
  }
678
678
  return {
679
- nextToken: he,
679
+ nextToken: me,
680
680
  currentOffset: i,
681
681
  currentPosition: a,
682
682
  context: l
683
683
  };
684
684
  }
685
- const Re = /\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6})/g, ze = /\\([\\@{}|])/g;
686
- function Be(e, t) {
685
+ const Le = /\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6})/g, Re = /\\([\\@{}|])/g;
686
+ function ze(e, t) {
687
687
  return t;
688
688
  }
689
- function Ve(e, t, n) {
689
+ function Be(e, t, n) {
690
690
  switch (e) {
691
691
  case `\\\\`: return `\\`;
692
692
  case `\\'`: return `'`;
@@ -696,7 +696,7 @@ function Ve(e, t, n) {
696
696
  }
697
697
  }
698
698
  }
699
- function He(e = {}) {
699
+ function Ve(e = {}) {
700
700
  let t = e.location !== !1, { onError: n } = e;
701
701
  function r(e, n, r) {
702
702
  let i = { type: e };
@@ -710,7 +710,7 @@ function He(e = {}) {
710
710
  }
711
711
  function a(e, t) {
712
712
  let n = e.context(), a = r(3, n.offset, n.startLoc);
713
- return a.value = t.replace(ze, Be), i(a, e.currentOffset(), e.currentPosition()), a;
713
+ return a.value = t.replace(Re, ze), i(a, e.currentOffset(), e.currentPosition()), a;
714
714
  }
715
715
  function o(e, t) {
716
716
  let { lastOffset: n, lastStartLoc: a } = e.context(), o = r(5, n, a);
@@ -722,11 +722,11 @@ function He(e = {}) {
722
722
  }
723
723
  function l(e, t) {
724
724
  let { lastOffset: n, lastStartLoc: a } = e.context(), o = r(9, n, a);
725
- return o.value = t.replace(Re, Ve), e.nextToken(), i(o, e.currentOffset(), e.currentPosition()), o;
725
+ return o.value = t.replace(Le, Be), e.nextToken(), i(o, e.currentOffset(), e.currentPosition()), o;
726
726
  }
727
727
  function u(e) {
728
728
  let t = e.nextToken(), n = e.context(), { lastOffset: a, lastStartLoc: o } = n, s = r(8, a, o);
729
- return t.type === 11 ? (t.value == null && (R.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, B(t)), s.value = t.value || ``, i(s, e.currentOffset(), e.currentPosition()), { node: s }) : (R.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, s.value = ``, i(s, a, o), {
729
+ return t.type === 11 ? (t.value == null && (z.UNEXPECTED_LEXICAL_ANALYSIS, n.lastStartLoc, V(t)), s.value = t.value || ``, i(s, e.currentOffset(), e.currentPosition()), { node: s }) : (z.UNEXPECTED_EMPTY_LINKED_MODIFIER, n.lastStartLoc, s.value = ``, i(s, a, o), {
730
730
  nextConsumeToken: t,
731
731
  node: s
732
732
  });
@@ -741,21 +741,21 @@ function He(e = {}) {
741
741
  let t = u(e);
742
742
  n.modifier = t.node, a = t.nextConsumeToken || e.nextToken();
743
743
  }
744
- switch (a.type !== 9 && (R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, B(a)), a = e.nextToken(), a.type === 2 && (a = e.nextToken()), a.type) {
744
+ switch (a.type !== 9 && (z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, V(a)), a = e.nextToken(), a.type === 2 && (a = e.nextToken()), a.type) {
745
745
  case 10:
746
- a.value == null && (R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, B(a)), n.key = d(e, a.value || ``);
746
+ a.value == null && (z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, V(a)), n.key = d(e, a.value || ``);
747
747
  break;
748
748
  case 4:
749
- a.value == null && (R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, B(a)), n.key = s(e, a.value || ``);
749
+ a.value == null && (z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, V(a)), n.key = s(e, a.value || ``);
750
750
  break;
751
751
  case 5:
752
- a.value == null && (R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, B(a)), n.key = o(e, a.value || ``);
752
+ a.value == null && (z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, V(a)), n.key = o(e, a.value || ``);
753
753
  break;
754
754
  case 6:
755
- a.value == null && (R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, B(a)), n.key = l(e, a.value || ``);
755
+ a.value == null && (z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, V(a)), n.key = l(e, a.value || ``);
756
756
  break;
757
757
  default: {
758
- R.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc;
758
+ z.UNEXPECTED_EMPTY_LINKED_KEY, t.lastStartLoc;
759
759
  let o = e.context(), s = r(7, o.offset, o.startLoc);
760
760
  return s.value = ``, i(s, o.offset, o.startLoc), n.key = s, i(n, o.offset, o.startLoc), {
761
761
  nextConsumeToken: a,
@@ -773,16 +773,16 @@ function He(e = {}) {
773
773
  let r = c || e.nextToken();
774
774
  switch (c = null, r.type) {
775
775
  case 0:
776
- r.value == null && (R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, B(r)), n.items.push(a(e, r.value || ``));
776
+ r.value == null && (z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, V(r)), n.items.push(a(e, r.value || ``));
777
777
  break;
778
778
  case 5:
779
- r.value == null && (R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, B(r)), n.items.push(o(e, r.value || ``));
779
+ r.value == null && (z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, V(r)), n.items.push(o(e, r.value || ``));
780
780
  break;
781
781
  case 4:
782
- r.value == null && (R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, B(r)), n.items.push(s(e, r.value || ``));
782
+ r.value == null && (z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, V(r)), n.items.push(s(e, r.value || ``));
783
783
  break;
784
784
  case 6:
785
- r.value == null && (R.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, B(r)), n.items.push(l(e, r.value || ``));
785
+ r.value == null && (z.UNEXPECTED_LEXICAL_ANALYSIS, t.lastStartLoc, V(r)), n.items.push(l(e, r.value || ``));
786
786
  break;
787
787
  case 7: {
788
788
  let t = f(e);
@@ -800,49 +800,49 @@ function He(e = {}) {
800
800
  let t = p(e);
801
801
  s || (s = t.items.length === 0), c.cases.push(t);
802
802
  } while (o.currentType !== 13);
803
- return s && R.MUST_HAVE_MESSAGES_IN_PLURAL, i(c, e.currentOffset(), e.currentPosition()), c;
803
+ return s && z.MUST_HAVE_MESSAGES_IN_PLURAL, i(c, e.currentOffset(), e.currentPosition()), c;
804
804
  }
805
805
  function h(e) {
806
806
  let t = e.context(), { offset: n, startLoc: r } = t, i = p(e);
807
807
  return t.currentType === 13 ? i : m(e, n, r, i);
808
808
  }
809
809
  function g(n) {
810
- let a = Le(n, c({}, e)), o = a.context(), s = r(0, o.offset, o.startLoc);
811
- return t && s.loc && (s.loc.source = n), s.body = h(a), e.onCacheKey && (s.cacheKey = e.onCacheKey(n)), o.currentType !== 13 && (R.UNEXPECTED_LEXICAL_ANALYSIS, o.lastStartLoc, n[o.offset]), i(s, a.currentOffset(), a.currentPosition()), s;
810
+ let a = Ie(n, c({}, e)), o = a.context(), s = r(0, o.offset, o.startLoc);
811
+ return t && s.loc && (s.loc.source = n), s.body = h(a), e.onCacheKey && (s.cacheKey = e.onCacheKey(n)), o.currentType !== 13 && (z.UNEXPECTED_LEXICAL_ANALYSIS, o.lastStartLoc, n[o.offset]), i(s, a.currentOffset(), a.currentPosition()), s;
812
812
  }
813
813
  return { parse: g };
814
814
  }
815
- function B(e) {
815
+ function V(e) {
816
816
  if (e.type === 13) return `EOF`;
817
817
  let t = (e.value || ``).replace(/\r?\n/gu, `\\n`);
818
818
  return t.length > 10 ? t.slice(0, 9) + `…` : t;
819
819
  }
820
- function V(e) {
821
- return y(e) && Qe(e) === 0 && (f(e, `b`) || f(e, `body`));
820
+ function H(e) {
821
+ return y(e) && Ze(e) === 0 && (f(e, `b`) || f(e, `body`));
822
822
  }
823
- const Ue = [`b`, `body`];
824
- function We(e) {
825
- return U(e, Ue);
823
+ const He = [`b`, `body`];
824
+ function Ue(e) {
825
+ return U(e, He);
826
826
  }
827
- const Ge = [`c`, `cases`];
828
- function Ke(e) {
829
- return U(e, Ge, []);
827
+ const We = [`c`, `cases`];
828
+ function Ge(e) {
829
+ return U(e, We, []);
830
830
  }
831
- const qe = [`s`, `static`];
832
- function Je(e) {
833
- return U(e, qe);
831
+ const Ke = [`s`, `static`];
832
+ function qe(e) {
833
+ return U(e, Ke);
834
834
  }
835
- const Ye = [`i`, `items`];
836
- function Xe(e) {
837
- return U(e, Ye, []);
835
+ const Je = [`i`, `items`];
836
+ function Ye(e) {
837
+ return U(e, Je, []);
838
838
  }
839
- const Ze = [`t`, `type`];
840
- function Qe(e) {
841
- return U(e, Ze);
839
+ const Xe = [`t`, `type`];
840
+ function Ze(e) {
841
+ return U(e, Xe);
842
842
  }
843
- const $e = [`v`, `value`];
844
- function H(e, t) {
845
- let n = U(e, $e);
843
+ const Qe = [`v`, `value`];
844
+ function $e(e, t) {
845
+ let n = U(e, Qe);
846
846
  if (n != null) return n;
847
847
  throw W(t);
848
848
  }
@@ -864,14 +864,14 @@ function U(e, t, n) {
864
864
  return n;
865
865
  }
866
866
  const it = [
867
- ...Ue,
868
- ...Ge,
869
- ...qe,
870
- ...Ye,
867
+ ...He,
868
+ ...We,
869
+ ...Ke,
870
+ ...Je,
871
871
  ...nt,
872
872
  ...et,
873
- ...$e,
874
- ...Ze
873
+ ...Qe,
874
+ ...Xe
875
875
  ];
876
876
  function W(e) {
877
877
  return Error(`unhandled node type: ${e}`);
@@ -880,27 +880,27 @@ function at(e) {
880
880
  return (t) => ot(t, e);
881
881
  }
882
882
  function ot(e, t) {
883
- let n = We(t);
883
+ let n = Ue(t);
884
884
  if (n == null) throw W(0);
885
- if (Qe(n) === 1) {
886
- let t = Ke(n);
885
+ if (Ze(n) === 1) {
886
+ let t = Ge(n);
887
887
  return e.plural(t.reduce((t, n) => [...h(t) ? t : [t], st(e, n)], []));
888
888
  }
889
889
  return st(e, n);
890
890
  }
891
891
  function st(e, t) {
892
- let n = Je(t);
892
+ let n = qe(t);
893
893
  if (n != null) return e.type === `text` ? n : e.normalize([n]);
894
894
  {
895
- let n = Xe(t).reduce((t, n) => [...t, ct(e, n)], []);
895
+ let n = Ye(t).reduce((t, n) => [...t, ct(e, n)], []);
896
896
  return e.normalize(n);
897
897
  }
898
898
  }
899
899
  function ct(e, t) {
900
- let n = Qe(t);
900
+ let n = Ze(t);
901
901
  switch (n) {
902
- case 3: return H(t, n);
903
- case 9: return H(t, n);
902
+ case 3:
903
+ case 9: return $e(t, n);
904
904
  case 4: {
905
905
  let r = t;
906
906
  if (f(r, `k`) && r.k) return e.interpolate(e.named(r.k));
@@ -917,8 +917,8 @@ function ct(e, t) {
917
917
  let n = t, r = tt(n), i = rt(n);
918
918
  return e.linked(ct(e, i), r ? ct(e, r) : void 0, e.type);
919
919
  }
920
- case 7: return H(t, n);
921
- case 8: return H(t, n);
920
+ case 7:
921
+ case 8: return $e(t, n);
922
922
  default: throw Error(`unhandled node on format message part: ${n}`);
923
923
  }
924
924
  }
@@ -928,12 +928,12 @@ function ut() {
928
928
  G = u();
929
929
  }
930
930
  function dt(e, t = {}) {
931
- let n = !1, r = t.onError || Ne;
931
+ let n = !1, r = t.onError || Me;
932
932
  t.onError = (e) => {
933
933
  n = !0, r(e);
934
934
  };
935
- let i = He(t).parse(e);
936
- return t.optimize && Pe(i), t.mangle && z(i), {
935
+ let i = Ve(t).parse(e);
936
+ return t.optimize && Ne(i), t.mangle && B(i), {
937
937
  ast: i,
938
938
  detectError: n,
939
939
  code: ``
@@ -953,7 +953,7 @@ function ft(e, t) {
953
953
  return a ? o : G[n] = o;
954
954
  }
955
955
  {
956
- if (!V(e)) return (() => e);
956
+ if (!H(e)) return (() => e);
957
957
  let t = e.cacheKey;
958
958
  return t ? G[t] || (G[t] = at(e)) : at(e);
959
959
  }
@@ -967,7 +967,7 @@ const K = {
967
967
  NOT_SUPPORT_LOCALE_TYPE: 22
968
968
  }, pt = 23;
969
969
  function mt(e) {
970
- return Me(e, null, void 0);
970
+ return je(e, null, void 0);
971
971
  }
972
972
  K.INVALID_ARGUMENT, K.INVALID_DATE_ARGUMENT, K.INVALID_ISO_DATE_ARGUMENT, K.NOT_SUPPORT_LOCALE_PROMISE_VALUE, K.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION, K.NOT_SUPPORT_LOCALE_TYPE;
973
973
  function ht(e, t) {
@@ -1130,8 +1130,8 @@ function jt(e, t) {
1130
1130
  let r = n.length, i = e, a = 0;
1131
1131
  for (; a < r;) {
1132
1132
  let e = n[a];
1133
- if (it.includes(e) && V(i) || !y(i) || !f(i, e)) return null;
1134
- let t = i[e];
1133
+ if (it.includes(e) && H(i) || !y(i)) return null;
1134
+ let t = p(i, e);
1135
1135
  if (t === void 0 || g(i)) return null;
1136
1136
  i = t, a++;
1137
1137
  }
@@ -1167,7 +1167,7 @@ const J = {
1167
1167
  function Pt(e, ...n) {
1168
1168
  return t(Nt[e], ...n);
1169
1169
  }
1170
- const Ft = `12.0.0-alpha.13`, It = -1, Y = `en-US`, Lt = ``, Rt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1170
+ const Ft = `12.0.0-alpha.14`, It = -1, Y = `en-US`, Lt = ``, Rt = (e) => `${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;
1171
1171
  function zt() {
1172
1172
  return {
1173
1173
  upper: (e, t) => t === `text` && _(e) ? e.toUpperCase() : t === `vnode` && y(e) && `__v_isVNode` in e ? e.children.toUpperCase() : e,
@@ -1221,7 +1221,7 @@ function Yt(e, t) {
1221
1221
  let n = p(e.messages, t);
1222
1222
  if (n == null) return;
1223
1223
  let r = u();
1224
- return ke(n, r), r;
1224
+ return Oe(n, r), r;
1225
1225
  }
1226
1226
  function Xt(e, t, n) {
1227
1227
  m(t) || (e.messages[t] = n);
@@ -1482,7 +1482,7 @@ function jn(e = {}) {
1482
1482
  };
1483
1483
  return w;
1484
1484
  }
1485
- const Mn = () => ``, Q = (e) => g(e), $ = (e) => _(e) || V(e) || Q(e);
1485
+ const Mn = () => ``, Q = (e) => g(e), $ = (e) => _(e) || H(e) || Q(e);
1486
1486
  function Nn(e, ...t) {
1487
1487
  let [n, r] = zn(...t), i = ht(e, r), a = v(r.escapeParameter) ? r.escapeParameter : e.escapeParameter;
1488
1488
  a && Pn(r);
@@ -1501,7 +1501,7 @@ function Nn(e, ...t) {
1501
1501
  });
1502
1502
  if (f) return s;
1503
1503
  let h = m(jn(Vn(e, c, l, r, a))), y = e.postTranslation ? e.postTranslation(h, n) : h;
1504
- return a && _(y) && (y = De(y)), y;
1504
+ return a && _(y) && (y = Ee(y)), y;
1505
1505
  }
1506
1506
  function Pn(e) {
1507
1507
  if (h(e.list) && (e.list = e.list.map((e) => _(e) ? D(e) : e)), y(e.named)) {
@@ -1545,7 +1545,7 @@ function Rn(e, t, n, r, i, a) {
1545
1545
  }
1546
1546
  function zn(...e) {
1547
1547
  let [t, n, r] = e;
1548
- if (!_(t) && !i(t) && !Q(t) && !V(t)) throw Error(K.INVALID_ARGUMENT);
1548
+ if (!_(t) && !i(t) && !Q(t) && !H(t)) throw Error(K.INVALID_ARGUMENT);
1549
1549
  let a = i(t) ? String(t) : (Q(t), t), o = u();
1550
1550
  return i(n) ? o.plural = n : _(n) ? o.default = n : C(n) && !s(n) ? o.named = n : h(n) && (o.list = n), i(r) ? o.plural = r : _(r) ? o.default = r : C(r) && c(o, r), [a, o];
1551
1551
  }
@@ -1572,7 +1572,7 @@ function Vn(e, t, n, r, a) {
1572
1572
  let [n, , i] = Ln(f || e, r, t, l, u, d);
1573
1573
  a = n ?? c(i, r);
1574
1574
  }
1575
- if (_(a) || V(a)) {
1575
+ if (_(a) || H(a)) {
1576
1576
  let n = !1, i = Rn(e, r, t, a, r, () => {
1577
1577
  n = !0;
1578
1578
  });
@@ -1586,4 +1586,4 @@ function Vn(e, t, n, r, a) {
1586
1586
  pluralIndex: i(r.plural) ? r.plural : void 0
1587
1587
  };
1588
1588
  }
1589
- export { it as AST_NODE_PROPS_KEYS, pt as CORE_ERROR_CODES_EXTEND_POINT, Mt as CORE_WARN_CODES_EXTEND_POINT, J as CoreWarnCodes, hn as DATETIME_FORMAT_OPTIONS_KEYS, Y as DEFAULT_LOCALE, wn as DEFAULT_MESSAGE_DATA_TYPE, Lt as MISSING_RESOLVE_VALUE, It as NOT_RESOLVED, yn as NUMBER_FORMAT_OPTIONS_KEYS, Ft as VERSION, ut as clearCompileCache, _n as clearDateTimeFormat, xn as clearNumberFormat, ft as compile, Me as createCompileError, qt as createCoreContext, mt as createCoreError, jn as createMessageContext, mn as datetime, yt as fallbackWithLocaleChain, vt as fallbackWithSimple, ht as getLocale, Yt as getLocaleMessage, Pt as getWarnMessage, tn as handleMissing, an as isAlmostSameLocale, Zt as isFallbackLocale, on as isImplicitFallback, V as isMessageAST, $ as isMessageFormat, Q as isMessageFunction, $t as isTranslateFallbackWarn, en as isTranslateMissingWarn, Qt as isWarnOption, vn as number, Ot as parse, gn as parseDateTimeArgs, bn as parseNumberArgs, zn as parseTranslateArgs, Gt as registerLocaleFallbacker, Vt as registerMessageCompiler, Ut as registerMessageResolver, _t as resolveLocale, jt as resolveValue, At as resolveWithKeyValue, Xt as setLocaleMessage, Nn as translate, rn as updateFallbackLocale };
1589
+ export { it as AST_NODE_PROPS_KEYS, pt as CORE_ERROR_CODES_EXTEND_POINT, Mt as CORE_WARN_CODES_EXTEND_POINT, J as CoreWarnCodes, hn as DATETIME_FORMAT_OPTIONS_KEYS, Y as DEFAULT_LOCALE, wn as DEFAULT_MESSAGE_DATA_TYPE, Lt as MISSING_RESOLVE_VALUE, It as NOT_RESOLVED, yn as NUMBER_FORMAT_OPTIONS_KEYS, Ft as VERSION, ut as clearCompileCache, _n as clearDateTimeFormat, xn as clearNumberFormat, ft as compile, je as createCompileError, qt as createCoreContext, mt as createCoreError, jn as createMessageContext, mn as datetime, yt as fallbackWithLocaleChain, vt as fallbackWithSimple, ht as getLocale, Yt as getLocaleMessage, Pt as getWarnMessage, tn as handleMissing, an as isAlmostSameLocale, Zt as isFallbackLocale, on as isImplicitFallback, H as isMessageAST, $ as isMessageFormat, Q as isMessageFunction, $t as isTranslateFallbackWarn, en as isTranslateMissingWarn, Qt as isWarnOption, vn as number, Ot as parse, gn as parseDateTimeArgs, bn as parseNumberArgs, zn as parseTranslateArgs, Gt as registerLocaleFallbacker, Vt as registerMessageCompiler, Ut as registerMessageResolver, _t as resolveLocale, jt as resolveValue, At as resolveWithKeyValue, Xt as setLocaleMessage, Nn as translate, rn as updateFallbackLocale };