vue-i18n 11.4.21 → 11.4.22

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
- * vue-i18n v11.4.21
2
+ * vue-i18n v11.4.22
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -334,6 +334,169 @@ var VueI18n = (function (exports, Vue) {
334
334
  const valueQuote = quote || '';
335
335
  return `${name}=${valueQuote}${sanitizeAttributeValue(attrName, value)}${valueQuote}`;
336
336
  }
337
+ const HTML = 0;
338
+ const SVG = 1;
339
+ const MATHML = 2;
340
+ // Elements that have no end tag, and elements that the HTML parser does not open in the body
341
+ const notOpenedElementPattern = /^(?:area|base|basefont|bgsound|br|col|embed|frame|hr|image|img|input|keygen|link|meta|param|source|track|wbr|html|head|body|frameset)$/;
342
+ // Start tags that end SVG and MathML content (and `<font>` with `color`, `face` or `size`)
343
+ const breakoutElementPattern = /^(?:b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h[1-6]|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var)$/;
344
+ // Start tags that close an open `<p>`, and the elements that they do not close a `<p>` through
345
+ const paragraphClosingElementPattern = /^(?: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)$/;
346
+ const buttonScopeElementPattern = /^(?:applet|caption|html|table|td|th|marquee|object|template|button)$/;
347
+ const svgIntegrationPattern = /^(?:foreignobject|desc|title)$/;
348
+ // The names of SVG and MathML integration points (except `title`, whose content is text in HTML). Read with the
349
+ // HTML rules, they are unknown HTML elements, and their start tags become text: if the browser closed such an
350
+ // element early (for example, `<button>` of the translation closes the `<button>` that the translation is
351
+ // rendered in), its end tag would close an integration point of the page, and the rest of the page would be read
352
+ // as SVG or MathML
353
+ const integrationNamePattern = /^(?:foreignobject|desc|mi|mo|mn|ms|mtext|annotation-xml)$/;
354
+ const mathmlIntegrationPattern = /^(?:mi|mo|mn|ms|mtext)$/;
355
+ const htmlEncodingPattern = /^(?:text\/html|application\/xhtml\+xml)$/i;
356
+ function asciiLowercase(text) {
357
+ return text.replace(/[A-Z]+/g, upper => upper.toLowerCase());
358
+ }
359
+ // Whether a start tag is read with the rules of SVG and MathML content, rather than with the HTML rules
360
+ function isForeignContext(top, name) {
361
+ return (!!top &&
362
+ top.namespace !== HTML &&
363
+ (!top.integration ||
364
+ (mathmlIntegrationPattern.test(top.name) &&
365
+ (name === 'mglyph' || name === 'malignmark'))) &&
366
+ !(top.name === 'annotation-xml' && name === 'svg'));
367
+ }
368
+ function isBreakout(name, attributes) {
369
+ return (breakoutElementPattern.test(name) ||
370
+ (name === 'font' &&
371
+ (attributes.has('color') ||
372
+ attributes.has('face') ||
373
+ attributes.has('size'))));
374
+ }
375
+ // Pop the elements down to `length`, and return their end tags (innermost first).
376
+ // A `<form>` becomes text instead: in a form of the page, browsers ignore the `<form>`,
377
+ // and `</form>` would close the form of the page
378
+ function closeDownTo(stack, length, parts) {
379
+ let endTags = '';
380
+ for (let index = stack.length - 1; index >= length; index--) {
381
+ const element = stack[index];
382
+ if (element.namespace === HTML && element.name === 'form') {
383
+ parts[element.part] = escapeLessThan(parts[element.part]);
384
+ }
385
+ else {
386
+ endTags += `</${element.name}>`;
387
+ }
388
+ }
389
+ stack.length = length;
390
+ return endTags;
391
+ }
392
+ // Pop SVG and MathML elements down to an HTML element or an integration point, as the tree builder does,
393
+ // and return their end tags
394
+ function closeForeign(stack, parts) {
395
+ let length = stack.length;
396
+ while (length > 0 &&
397
+ stack[length - 1].namespace !== HTML &&
398
+ !stack[length - 1].integration) {
399
+ length--;
400
+ }
401
+ return closeDownTo(stack, length, parts);
402
+ }
403
+ /**
404
+ * Open an element for a start tag, as the tree builder does
405
+ *
406
+ * @returns The end tags to write before the start tag: the SVG and MathML elements that it ends, and a `<p>`
407
+ * of the translation that it closes, with the elements in the `<p>` (so that no formatting element in it is
408
+ * made again after it), or `undefined` when the start tag becomes text
409
+ */
410
+ function openElement(stack, parts, name, attributes, selfClosing) {
411
+ // the start tag is written after the end tags
412
+ const part = parts.length + 1;
413
+ let endTags = '';
414
+ const top = stack[stack.length - 1];
415
+ if (isForeignContext(top, name)) {
416
+ if (!isBreakout(name, attributes)) {
417
+ if (!selfClosing) {
418
+ stack.push({
419
+ name,
420
+ namespace: top.namespace,
421
+ integration: top.namespace === SVG
422
+ ? svgIntegrationPattern.test(name)
423
+ : mathmlIntegrationPattern.test(name) ||
424
+ (name === 'annotation-xml' &&
425
+ htmlEncodingPattern.test((attributes.get('encoding') || '').replace(numericCharacterReferencePattern, decodeNumericCharacterReference))),
426
+ part
427
+ });
428
+ }
429
+ return endTags;
430
+ }
431
+ endTags = closeForeign(stack, parts);
432
+ }
433
+ if (paragraphClosingElementPattern.test(name)) {
434
+ for (let index = stack.length - 1; index >= 0; index--) {
435
+ const element = stack[index];
436
+ if (element.namespace === HTML
437
+ ? buttonScopeElementPattern.test(element.name)
438
+ : element.integration) {
439
+ break;
440
+ }
441
+ if (element.namespace === HTML && element.name === 'p') {
442
+ endTags += closeDownTo(stack, index, parts);
443
+ break;
444
+ }
445
+ }
446
+ }
447
+ if (integrationNamePattern.test(name)) {
448
+ return;
449
+ }
450
+ if (name === 'svg' || name === 'math') {
451
+ if (!selfClosing) {
452
+ stack.push({
453
+ name,
454
+ namespace: name === 'svg' ? SVG : MATHML,
455
+ integration: false,
456
+ part
457
+ });
458
+ }
459
+ }
460
+ else if (!notOpenedElementPattern.test(name)) {
461
+ // HTML elements ignore `/>`
462
+ stack.push({ name, namespace: HTML, integration: false, part });
463
+ }
464
+ return endTags;
465
+ }
466
+ /**
467
+ * Close the element of an end tag: an SVG or MathML element with the same name above the innermost HTML
468
+ * element, or else an HTML element with the same name
469
+ *
470
+ * @returns The end tags to write before the end tag (of the elements in the closed element), or `undefined`
471
+ * when the end tag closes nothing in the translation, and is removed
472
+ */
473
+ function closeElement(stack, parts, name) {
474
+ let endTags = '';
475
+ if (name === 'p' || name === 'br') {
476
+ // they end SVG and MathML content
477
+ endTags = closeForeign(stack, parts);
478
+ }
479
+ let index = stack.length - 1;
480
+ while (index >= 0 &&
481
+ stack[index].namespace !== HTML &&
482
+ stack[index].name !== name) {
483
+ index--;
484
+ }
485
+ if (index >= 0 && stack[index].namespace !== HTML) ;
486
+ else {
487
+ while (index >= 0 &&
488
+ !(stack[index].namespace === HTML && stack[index].name === name)) {
489
+ index--;
490
+ }
491
+ }
492
+ if (index < 0) {
493
+ // browsers read `</br>` as `<br>`, and `</p>` without an open `<p>` as `<p></p>`
494
+ return name === 'br' || name === 'p' ? endTags : undefined;
495
+ }
496
+ endTags += closeDownTo(stack, index + 1, parts);
497
+ stack.length = index;
498
+ return endTags;
499
+ }
337
500
  /**
338
501
  * Read a tag with the rules of the HTML tokenizer.
339
502
  * A start tag is written again with its attributes sanitized, and an end tag is kept as it is
@@ -341,7 +504,8 @@ var VueI18n = (function (exports, Vue) {
341
504
  * @param html - The HTML
342
505
  * @param start - The index of `<`
343
506
  * @param neutralized - What has been neutralized
344
- * @returns The tag, the tag name, and the index after the tag (-1 when the tag is not closed),
507
+ * @returns The tag, the tag name, the index after the tag (-1 when the tag is not closed),
508
+ * whether the start tag is self-closing (`/>`), and the attributes of the start tag,
345
509
  * or `undefined` when `<` does not start a tag
346
510
  */
347
511
  function readTag(html, start, neutralized) {
@@ -352,6 +516,7 @@ var VueI18n = (function (exports, Vue) {
352
516
  }
353
517
  const [, slash, tagName] = tagStart;
354
518
  let tag = tagStart[0];
519
+ const attributes = new Map();
355
520
  let step;
356
521
  tagStepPattern.lastIndex = tagStartPattern.lastIndex;
357
522
  while ((step = tagStepPattern.exec(html))) {
@@ -359,17 +524,27 @@ var VueI18n = (function (exports, Vue) {
359
524
  if (close) {
360
525
  const end = tagStepPattern.lastIndex;
361
526
  // browsers ignore the attributes of end tags
362
- return [slash ? html.slice(start, end) : tag + raw, tagName, end];
527
+ return [
528
+ slash ? html.slice(start, end) : tag + raw,
529
+ tagName,
530
+ end,
531
+ !slash && separator.endsWith('/'),
532
+ attributes
533
+ ];
363
534
  }
364
535
  if (quote && !closingQuote) {
365
536
  break;
366
537
  }
367
538
  if (!slash) {
368
539
  const value = quote ? quotedValue : unquotedValue;
540
+ const name = asciiLowercase(attrName);
541
+ if (!attributes.has(name)) {
542
+ attributes.set(name, value || '');
543
+ }
369
544
  tag += separator + serializeAttribute(attrName, value, quote, neutralized);
370
545
  }
371
546
  }
372
- return [tag, tagName, -1];
547
+ return [tag, tagName, -1, false, attributes];
373
548
  }
374
549
  /**
375
550
  * Find the end tag of an element whose content is text, as the HTML tokenizer does:
@@ -394,57 +569,79 @@ var VueI18n = (function (exports, Vue) {
394
569
  * where each tag and each attribute starts and ends, and every attribute of every start tag is checked.
395
570
  * What is still open at the end of the string (a tag, a comment, or an element whose content is text,
396
571
  * like `<textarea>`) becomes text: on the server (SSR), the rest of the page follows the translation,
397
- * and it would be read as a part of what is open
572
+ * and it would be read as a part of what is open.
573
+ * For the same reason, the elements are followed as the tree builder of browsers opens and closes them,
574
+ * including SVG and MathML: an end tag that closes no element of the translation is removed, the elements
575
+ * in the element that an end tag closes are closed before it, and the elements still open at the end are
576
+ * closed. A `<form>` that the translation does not close becomes text, because browsers ignore it in a form
577
+ * of the page, and `</form>` would close that form
398
578
  *
399
579
  * @param html - The translated HTML
400
580
  * @returns The sanitized HTML
401
581
  */
402
582
  function sanitizeTranslatedHtml(html) {
403
583
  const neutralized = {};
404
- let result = '';
584
+ const parts = [];
585
+ const stack = [];
405
586
  let index = 0;
406
587
  let lessThan;
407
588
  while ((lessThan = html.indexOf('<', index)) !== -1) {
408
- result += html.slice(index, lessThan);
589
+ parts.push(html.slice(index, lessThan));
409
590
  index = lessThan + 1;
410
591
  const read = readTag(html, lessThan, neutralized);
411
592
  if (read) {
412
- const [tag, tagName, end] = read;
593
+ const [tag, tagName, end, selfClosing, attributes] = read;
413
594
  if (end === -1) {
414
595
  neutralized.unclosed = true;
415
- result += escapeLessThan(html.slice(lessThan));
596
+ parts.push(escapeLessThan(html.slice(lessThan)));
416
597
  index = html.length;
417
598
  break;
418
599
  }
419
600
  index = end;
420
601
  if (tag[1] === '/') {
421
- result += tag;
602
+ const endTags = closeElement(stack, parts, asciiLowercase(tagName));
603
+ if (endTags === undefined) {
604
+ neutralized.closed = true;
605
+ }
606
+ else {
607
+ if (endTags) {
608
+ neutralized.closed = true;
609
+ }
610
+ parts.push(endTags + tag);
611
+ }
422
612
  }
423
613
  else if (dangerousElementPattern.test(tagName)) {
424
614
  // the start tag becomes text
425
615
  neutralized.element = true;
426
- result += escapeLessThan(tag);
616
+ parts.push(escapeLessThan(tag));
427
617
  }
428
- else if (textContentElementPattern.test(tagName)) {
429
- const contentEnd = findTextContentEnd(html, end, tagName);
430
- if (contentEnd === -1) {
431
- // the start tag becomes text, and the content is read as HTML, as browsers do then
432
- neutralized.unclosed = true;
433
- result += escapeLessThan(tag);
618
+ else {
619
+ let content = '';
620
+ if (textContentElementPattern.test(tagName)) {
621
+ const contentEnd = findTextContentEnd(html, end, tagName);
622
+ if (contentEnd === -1) {
623
+ // the start tag becomes text, and the content is read as HTML, as browsers do then
624
+ neutralized.unclosed = true;
625
+ parts.push(escapeLessThan(tag));
626
+ continue;
627
+ }
628
+ content = escapeLessThan(html.slice(end, contentEnd));
629
+ index = contentEnd;
630
+ }
631
+ const endTags = openElement(stack, parts, asciiLowercase(tagName), attributes, selfClosing);
632
+ if (endTags === undefined) {
633
+ neutralized.closed = true;
634
+ parts.push(escapeLessThan(tag) + content);
434
635
  }
435
636
  else {
436
- result += tag + escapeLessThan(html.slice(end, contentEnd));
437
- index = contentEnd;
637
+ parts.push(endTags, tag + content);
438
638
  }
439
639
  }
440
- else {
441
- result += tag;
442
- }
443
640
  continue;
444
641
  }
445
642
  commentPattern.lastIndex = lessThan;
446
643
  if (commentPattern.test(html)) {
447
- result += html.slice(lessThan, commentPattern.lastIndex);
644
+ parts.push(html.slice(lessThan, commentPattern.lastIndex));
448
645
  index = commentPattern.lastIndex;
449
646
  continue;
450
647
  }
@@ -452,9 +649,21 @@ var VueI18n = (function (exports, Vue) {
452
649
  neutralized.unclosed = true;
453
650
  }
454
651
  // `<!DOCTYPE`, `<![CDATA[`, `<?`, `</` without a tag name, `<` at the end and any other `<` become text
455
- result += '&lt;';
652
+ parts.push('&lt;');
653
+ }
654
+ parts.push(html.slice(index));
655
+ // close the elements that are still open
656
+ for (let open = stack.length - 1; open >= 0; open--) {
657
+ const element = stack[open];
658
+ neutralized.closed = true;
659
+ if (element.namespace === HTML && element.name === 'form') {
660
+ // the browser ignores `<form>` in a form of the page, and `</form>` would close that form
661
+ parts[element.part] = escapeLessThan(parts[element.part]);
662
+ }
663
+ else {
664
+ parts.push(`</${element.name}>`);
665
+ }
456
666
  }
457
- result += html.slice(index);
458
667
  {
459
668
  if (neutralized.eventHandler) {
460
669
  warn('Potentially dangerous event handlers detected in translation. ' +
@@ -472,8 +681,12 @@ var VueI18n = (function (exports, Vue) {
472
681
  warn('Unclosed tag, comment or element (such as <textarea>) detected in translation. ' +
473
682
  'Consider closing it in your translation messages.');
474
683
  }
684
+ if (neutralized.closed) {
685
+ warn('Unclosed or misnested elements detected in translation. ' +
686
+ 'Consider closing every element in the right order in your translation messages.');
687
+ }
475
688
  }
476
- return result;
689
+ return parts.join('');
477
690
  }
478
691
 
479
692
  /**
@@ -1335,7 +1548,7 @@ var VueI18n = (function (exports, Vue) {
1335
1548
  * Intlify core-base version
1336
1549
  * @internal
1337
1550
  */
1338
- const VERSION$1 = '11.4.21';
1551
+ const VERSION$1 = '11.4.22';
1339
1552
  const NOT_REOSLVED = -1;
1340
1553
  const DEFAULT_LOCALE = 'en-US';
1341
1554
  const MISSING_RESOLVE_VALUE = '';
@@ -2473,7 +2686,7 @@ var VueI18n = (function (exports, Vue) {
2473
2686
  *
2474
2687
  * @VueI18nGeneral
2475
2688
  */
2476
- const VERSION = '11.4.21';
2689
+ const VERSION = '11.4.22';
2477
2690
  /**
2478
2691
  * This is only called development env
2479
2692
  * istanbul-ignore-next
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * vue-i18n v11.4.21
2
+ * vue-i18n v11.4.22
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
6
- var VueI18n=function(e,t){"use strict";function n(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var r=n(t);const a="undefined"!=typeof window,l=(e,t=!1)=>t?Symbol.for(e):Symbol(e),o=(e,t,n)=>s({l:e,k:t,s:n}),s=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),c=e=>"number"==typeof e&&isFinite(e),i=e=>"[object Date]"===L(e),u=e=>"[object RegExp]"===L(e),f=e=>R(e)&&0===Object.keys(e).length,m=Object.assign,p=Object.create,_=(e=null)=>p(e),g=Object.prototype.hasOwnProperty;function d(e,t){return g.call(e,t)}function b(e,t){const n=e[t];return d(e,t)?n:void 0}function h(e){return d(Object.prototype,e)}const v=Array.isArray,k=e=>"function"==typeof e,E=e=>"string"==typeof e,y=e=>"boolean"==typeof e,F=e=>null!==e&&"object"==typeof e,T=e=>F(e)&&k(e.then)&&k(e.catch),I=Object.prototype.toString,L=e=>I.call(e),R=e=>"[object Object]"===L(e),O=e=>null==e?"":v(e)||R(e)&&e.toString===I?JSON.stringify(e,null,2):String(e);function w(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function N(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}const W=/^javascript:/i,C=/^(?:href|xlink:href|src|action|formaction)$/i,M=/&#(?:x([0-9a-f]+)|(\d+));?/gi,x=/&(?:Tab|NewLine);/g,P=/&colon;?/gi,$=/[\u0000-\u0020\u007f-\u009f]/g,D=/^on\w/i,S=/^srcdoc$/i,A=/^(?:base|animate|set|script|plaintext)$/i,j=/^(?:iframe|noembed|noframes|noscript|style|textarea|title|xmp)$/i,U=/<(\/?)([a-z][^\t\n\f\r />]*)/iy,H=/([\t\n\f\r /]*)(?:(>)|([^\t\n\f\r />][^\t\n\f\r />=]*)(?:[\t\n\f\r ]*=[\t\n\f\r ]*(?:(["'])([\s\S]*?)(\4|$)|([^\t\n\f\r >]*)))?)/y,V=/<!--(?:>|->|[\s\S]*?--!?>)/y;function G(e,t,n){const r=t||n;if(!r)return e;const a=Number.parseInt(r,t?16:10);return a<=127?String.fromCharCode(a):e}function z(e){const t=e.replace(M,G).replace(x,"").replace(P,":").replace($,"");return W.test(t)}function Y(e,t){if(C.test(e)&&z(t))return"about:blank";const n="style"===e.toLowerCase()?function(e){const t=/url\s*\(/gi;let n,r="",a=0;for(;null!==(n=t.exec(e));){const l=n.index,o=t.lastIndex-1;let s=o+1,c=1,i=null;for(;s<e.length;s++){const t=e[s];if(i)t===i&&(i=null);else if('"'===t||"'"===t)i=t;else if("("===t)c++;else if(")"===t&&(c--,0===c))break}if(0!==c)break;const u=e.slice(o+1,s).trim(),f=u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u.slice(1,-1).trim():u;r+=e.slice(a,l),r+=z(f)?"url(about:blank)":e.slice(l,s+1),a=s+1}return r+e.slice(a)}(t):t;return function(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(n)}function X(e){return e.replace(/</g,"&lt;")}function B(e,t,n,r){let a=e;if(D.test(e)?(r.eventHandler=!0,a=`&#111;n${e.slice(2)}`):S.test(e)&&(r.srcdoc=!0,a=`&#115;${e.slice(1)}`),void 0===t)return a;const l=n||"";return`${a}=${l}${Y(e,t)}${l}`}function J(e,t,n){U.lastIndex=t;const r=U.exec(e);if(!r)return;const[,a,l]=r;let o,s=r[0];for(H.lastIndex=U.lastIndex;o=H.exec(e);){const[r,c,i,u,f,m,p,_]=o;if(i){const n=H.lastIndex;return[a?e.slice(t,n):s+r,l,n]}if(f&&!p)break;if(!a){s+=c+B(u,f?m:_,f,n)}}return[s,l,-1]}function q(e,t,n){for(let r=e.indexOf("</",t);-1!==r;r=e.indexOf("</",r+2)){const t=J(e,r,{});if(t&&t[1].toLowerCase()===n.toLowerCase())return-1===t[2]?-1:r}return-1}const K=e=>!F(e)||v(e);function Z(e,t){if(K(e)||K(t)||t===Object.prototype)throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{if("__proto__"===r)return;const a=e[r];if(v(a)){const e=[];e.length=a.length,t[r]=e,n.push({src:a,des:e})}else F(a)?(F(t[r])&&!v(t[r])||(t[r]=_()),n.push({src:a,des:t[r]})):t[r]=a}))}}function Q(e){return F(e)&&0===le(e)&&(d(e,"b")||d(e,"body"))}const ee=["b","body"];const te=["c","cases"];const ne=["s","static"];const re=["i","items"];const ae=["t","type"];function le(e){return ue(e,ae)}const oe=["v","value"];function se(e,t){const n=ue(e,oe);if(null!=n)return n;throw me(t)}const ce=["m","modifier"];const ie=["k","key"];function ue(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(d(e,n)&&null!=e[n])return e[n]}return n}const fe=[...ee,...te,...ne,...re,...ie,...ce,...oe,...ae];function me(e){return new Error(`unhandled node type: ${e}`)}function pe(e){return t=>function(e,t){const n=(r=t,ue(r,ee));var r;if(null==n)throw me(0);if(1===le(n)){const t=function(e){return ue(e,te,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,_e(e,n)]),[]))}return _e(e,n)}(t,e)}function _e(e,t){const n=function(e){return ue(e,ne)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return ue(e,re,[])}(t).reduce(((t,n)=>[...t,ge(e,n)]),[]);return e.normalize(n)}}function ge(e,t){const n=le(t);switch(n){case 3:case 9:case 7:case 8:return se(t,n);case 4:{const r=t;if(d(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(d(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw me(n)}case 5:{const r=t;if(d(r,"i")&&c(r.i))return e.interpolate(e.list(r.i));if(d(r,"index")&&c(r.index))return e.interpolate(e.list(r.index));throw me(n)}case 6:{const n=t,r=function(e){return ue(e,ce)}(n),a=function(e){const t=ue(e,ie);if(t)return t;throw me(6)}(n);return e.linked(ge(e,a),r?ge(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}let de=_();const be={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function he(e,t){return null!=t.locale?ke(t.locale):ke(e.locale)}let ve;function ke(e){if(E(e))return e;if(k(e)){if(e.resolvedOnce&&null!=ve)return ve;if("Function"===e.constructor.name){const t=e();if(T(t))throw Error(be.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ve=t}throw Error(be.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(be.NOT_SUPPORT_LOCALE_TYPE)}function Ee(e,t,n){return[...new Set([n,...v(t)?t:F(t)?Object.keys(t).filter((e=>"default"!==e)):E(t)?[t]:[n]])]}function ye(e,t,n){let r=!0;for(let a=0;a<t.length&&y(r);a++){const l=t[a];E(l)&&(r=Fe(e,t[a],n))}return r}function Fe(e,t,n){let r;const a=t.split("-");do{r=Te(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function Te(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(v(n)||R(n))&&n[a]&&(r=n[a])}return r}const Ie=[];Ie[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ie[1]={w:[1],".":[2],"[":[4],o:[7]},Ie[2]={w:[2],i:[3,0],0:[3,0]},Ie[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ie[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ie[5]={"'":[4,0],o:8,l:[5,0]},Ie[6]={'"':[4,0],o:8,l:[6,0]};const Le=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Re(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Oe(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Le.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const we=new Map;function Ne(e,t){return F(e)?b(e,t):null}const We="11.4.21",Ce=-1,Me="en-US",xe="",Pe=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let $e,De,Se;let Ae=null;const je=e=>{Ae=e},Ue=()=>Ae;let He=0;function Ve(e={}){const t=k(e.onWarn)?e.onWarn:w,n=E(e.version)?e.version:We,r=E(e.locale)||k(e.locale)?e.locale:Me,a=k(r)?Me:r,l=v(e.fallbackLocale)||R(e.fallbackLocale)||E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,o=R(e.messages)?e.messages:Ge(a),s=R(e.datetimeFormats)?e.datetimeFormats:Ge(a),c=R(e.numberFormats)?e.numberFormats:Ge(a),i=m(_(),e.modifiers,{upper:(e,t)=>"text"===t&&E(e)?e.toUpperCase():"vnode"===t&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&E(e)?e.toLowerCase():"vnode"===t&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&E(e)?Pe(e):"vnode"===t&&F(e)&&"__v_isVNode"in e?Pe(e.children):e}),f=e.pluralRules||_(),p=k(e.missing)?e.missing:null,g=!y(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,d=!y(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,h=!!e.unresolving,T=k(e.postTranslation)?e.postTranslation:null,I=R(e.processor)?e.processor:null,L=!y(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,N=k(e.messageCompiler)?e.messageCompiler:$e,W=k(e.messageResolver)?e.messageResolver:De||Ne,C=k(e.localeFallbacker)?e.localeFallbacker:Se||Ee,M=F(e.fallbackContext)?e.fallbackContext:void 0,x=e,P=F(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,$=F(x.__numberFormatters)?x.__numberFormatters:new Map,D=F(x.__meta)?x.__meta:{};He++;const S={version:n,cid:He,locale:r,fallbackLocale:l,messages:o,modifiers:i,pluralRules:f,missing:p,missingWarn:g,fallbackWarn:d,fallbackFormat:b,unresolving:h,postTranslation:T,processor:I,warnHtmlMessage:L,escapeParameter:O,messageCompiler:N,messageResolver:W,localeFallbacker:C,fallbackContext:M,onWarn:t,__meta:D};return S.datetimeFormats=s,S.numberFormats=c,S.__datetimeFormatters=P,S.__numberFormatters=$,S}const Ge=e=>({[e]:_()});function ze(e,t,n,r,a){const{missing:l,onWarn:o}=e;if(null!==l){const r=l(e,n,t,a);return E(r)?r:t}return t}function Ye(e,t){const n=e;F(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function Xe(e,t,n){Ye(e,n),e.fallbackContext&&Ye(e.fallbackContext,n),e.localeFallbacker(e,n,t)}function Be(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let l=n+1;l<t.length;l++)if(r=e,a=t[l],r!==a&&r.split("-")[0]===a.split("-")[0])return!0;var r,a;return!1}function Je(e,t,n,r,a,l,o){const{fallbackLocale:s,localeFallbacker:c,onWarn:i}=e,u=c(e,s,n);for(let f=0;f<u.length;f++){const n=u[f],a=b(b(r,n)||{},t);if(R(a)&&E(n))return n;ze(e,t,n,0,o)}return null}function qe(e,t,n){let r=`${e}__${t}`;return R(n)&&!f(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function Ke(e,t,n){for(const r in n){const n=`${t}__${r}`;for(const t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function Ze(e,t,n,r){const[,a,l,o]=e;let s=n;return E(a)?t.key=a:R(a)&&Object.keys(a).forEach((e=>{r.includes(e)?s[e]=a[e]:t[e]=a[e]})),E(l)?t.locale=l:R(l)&&(s=l),R(o)&&(s=o),s}function Qe(e,...t){const{datetimeFormats:n,unresolving:r,onWarn:a}=e,{__datetimeFormatters:l}=e;if(!E(t[0])&&!i(t[0])&&!c(t[0]))return xe;const[o,s,u,f]=tt(...t),p=(y(u.missingWarn)?u.missingWarn:e.missingWarn,y(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),_=he(e,u);if(!E(o)||""===o){const e=new Intl.DateTimeFormat(_.replace(/!/g,""),f);return p?e.formatToParts(s):e.format(s)}const g=Je(e,o,_,n,0,0,"datetime format");if(!E(g))return r?Ce:o;const d=n[g][o],b=qe(g,o,f);let h=l.get(b);return h||(h=new Intl.DateTimeFormat(g,m({},d,f)),l.set(b,h)),p?h.formatToParts(s):h.format(s)}const et=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function tt(...e){const[t]=e,n=_(),r=_();let a;if(E(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(be.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();a=new Date(n);try{a.toISOString()}catch{throw Error(be.INVALID_ISO_DATE_ARGUMENT)}}else if(i(t)){if(isNaN(t.getTime()))throw Error(be.INVALID_DATE_ARGUMENT);a=t}else{if(!c(t))throw Error(be.INVALID_ARGUMENT);a=t}const l=Ze(e,n,r,et);return[n.key||"",a,n,l]}function nt(e,t,n){Ke(e.__datetimeFormatters,t,n)}function rt(e,...t){const{numberFormats:n,unresolving:r,onWarn:a}=e,{__numberFormatters:l}=e;if(!c(t[0]))return xe;const[o,s,i,u]=lt(...t),f=(y(i.missingWarn)?i.missingWarn:e.missingWarn,y(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,!!i.part),p=he(e,i);if(!E(o)||""===o){const e=new Intl.NumberFormat(p.replace(/!/g,""),u);return f?e.formatToParts(s):e.format(s)}const _=Je(e,o,p,n,0,0,"number format");if(!E(_))return r?Ce:o;const g=n[_][o],d=qe(_,o,u);let b=l.get(d);return b||(b=new Intl.NumberFormat(_,m({},g,u)),l.set(d,b)),f?b.formatToParts(s):b.format(s)}const at=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function lt(...e){const[t]=e,n=_(),r=_();if(!c(t))throw Error(be.INVALID_ARGUMENT);const a=t,l=Ze(e,n,r,at);return[n.key||"",a,n,l]}function ot(e,t,n){Ke(e.__numberFormatters,t,n)}const st=e=>e,ct=e=>"",it="text",ut=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}(e),ft=O;function mt(e,t){return e=Math.abs(e),2===t?1===e?0:1:Math.min(e,2)}function pt(e={}){const t=e.locale,n=function(e){const t=c(e.pluralIndex)?e.pluralIndex:-1;return c(e.named?.count)?e.named.count:c(e.named?.n)?e.named.n:t}(e),r=E(t)&&e.pluralRules&&k(b(e.pluralRules,t))?e.pluralRules[t]:mt,a=r===mt?void 0:mt,l=e.list||[],o=e.named||_(),s=c(e.pluralIndex),i=t=>{const n=h(t)?b(o,t):o[t];return!s||n||"count"!==t&&"n"!==t?n:e.pluralIndex};function u(t,n){const r=k(e.messages)?e.messages(t,!!n):!!F(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):ct)}const f=k(e.processor?.normalize)?e.processor.normalize:ut,p=k(e.processor?.interpolate)?e.processor.interpolate:ft,g={list:e=>l[e],named:i,plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let l="text",o="";1===n.length?F(r)?(o=r.modifier||o,l=r.type||l):E(r)&&(o=r||o):2===n.length&&(E(r)&&(o=r||o),E(a)&&(l=a||l));const s=u(t,!0)(g),c=""===s||void 0===s?t:s,i="vnode"===l&&v(c)&&o?c[0]:c;if(!o)return i;const f=(m=o,e.modifiers?b(e.modifiers,m):st);var m;return k(f)?f(i,l):i},message:u,type:E(e.processor?.type)?e.processor.type:it,interpolate:p,normalize:f,values:m(_(),l,o,s?{count:i("count"),n:i("n")}:{})};return g}const _t=()=>"",gt=e=>k(e),dt=e=>E(e)||Q(e)||gt(e);function bt(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:l,fallbackLocale:o,messages:s}=e,[i,u]=Et(...t),f=y(u.missingWarn)?u.missingWarn:e.missingWarn,p=y(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,g=y(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,h=E(u.default)||y(u.default)?y(u.default)?l?i:()=>i:u.default:n?l?i:()=>i:null,T=n||null!=h&&(E(h)||k(h)),I=he(e,u);g&&function(e){v(e.list)&&(e.list=e.list.map((e=>E(e)?N(e):e)));if(F(e.named)){const t=e.named,n=_();for(const e of Object.keys(t)){const r=t[e];n[e]=E(r)?N(r):r}e.named=n}}(u);let[L,R,O]=d?[i,I,b(s,I)||_()]:vt(e,i,I,o,p,f),w=L,W=i;if(d||dt(w)||T&&(w=h,W=w),!(d||dt(w)&&E(R)))return a?Ce:i;let C=!1;const M=gt(w)?w:kt(e,i,R,w,W,(()=>{C=!0}));if(C)return w;const x=function(e,t,n,r,a){const{modifiers:l,pluralRules:o,messageResolver:s,fallbackLocale:i,fallbackWarn:u,missingWarn:f,fallbackContext:p}=e,_=(r,a)=>{let l=s(n,r);if(null==l&&(p||a)){const[n,,a]=vt(p||e,r,t,i,u,f);l=n??s(a,r)}if(E(l)||Q(l)){let n=!1;const a=kt(e,r,t,l,r,(()=>{n=!0}));return n?_t:a}return gt(l)?l:_t},g={locale:t,modifiers:l,pluralRules:o,messages:_},d=function(e,t){if(!t||k(e?.interpolate))return e;return m({},e,{interpolate:ht})}(e.processor,a);d&&(g.processor=d);r.list&&(g.list=r.list);r.named&&(g.named=r.named);c(r.plural)&&(g.pluralIndex=r.plural);return g}(e,R,O,u,g),P=function(e,t,n){const r=t(n);return r}(0,M,pt(x));let $=r?r(P,i):P;return g&&E($)&&($=function(e){const t={};let n,r="",a=0;for(;-1!==(n=e.indexOf("<",a));){r+=e.slice(a,n),a=n+1;const l=J(e,n,t);if(l){const[o,s,c]=l;if(-1===c){t.unclosed=!0,r+=X(e.slice(n)),a=e.length;break}if(a=c,"/"===o[1])r+=o;else if(A.test(s))t.element=!0,r+=X(o);else if(j.test(s)){const n=q(e,c,s);-1===n?(t.unclosed=!0,r+=X(o)):(r+=o+X(e.slice(c,n)),a=n)}else r+=o}else V.lastIndex=n,V.test(e)?(r+=e.slice(n,V.lastIndex),a=V.lastIndex):(e.startsWith("\x3c!--",n)&&(t.unclosed=!0),r+="&lt;")}return r+=e.slice(a),r}($)),$}function ht(e){return E(e)?e:N(O(e))}function vt(e,t,n,r,a,l){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m=_(),p=null;for(let g=0;g<u.length&&(f=u[g],m=b(o,f)||_(),null===(p=c(m,t))&&(p=b(m,t)),!dt(p));g++)if(!Be(f,u)){const n=ze(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,m]}function kt(e,t,n,r,a,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(gt(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const i=s(r,function(e,t,n,r,a,l){return{locale:t,key:n,warnHtmlMessage:a,onError:e=>{throw l&&l(e),e},onCacheKey:e=>o(t,n,e)}}(0,n,a,0,c,l));return i.locale=n,i.key=t,i.source=r,i}function Et(...e){const[t,n,r]=e,a=_();if(!(E(t)||c(t)||gt(t)||Q(t)))throw Error(be.INVALID_ARGUMENT);const l=c(t)?String(t):(gt(t),t);return c(n)?a.plural=n:E(n)?a.default=n:R(n)&&!f(n)?a.named=n:v(n)&&(a.list=n),c(r)?a.plural=r:E(r)?a.default=r:R(r)&&m(a,r),[l,a]}const yt="11.4.21",Ft={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},Tt=l("__translateVNode"),It=l("__datetimeParts"),Lt=l("__numberParts"),Rt=l("__setPluralRules"),Ot=l("__injectWithOption"),wt=l("__dispose");function Nt(e){return!!h(e)}function Wt(e){if(!F(e))return e;if(Q(e))return e;for(const t in e)if(d(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e,l=!1;for(let e=0;e<r;e++){if("__proto__"===n[e])throw new Error(`unsafe key: ${n[e]}`);if(n[e]in a||(a[n[e]]=_()),!F(a[n[e]])){l=!0;break}if(Q(a[n[e]])&&(fe.includes(n[e+1])||"cacheKey"===n[e+1])){l=!0;break}a=a[n[e]]}l||(a[n[r]]=e[t],delete e[t]);const o=a[n[r]];F(o)&&Wt(o)}else F(e[t])&&Wt(e[t]);return e}function Ct(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:l}=t,o=R(n)?n:v(r)?_():{[e]:_()};if(v(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;if(t){if(Nt(t))return;o[t]=b(o,t)||_(),Z(n,o[t])}else Z(n,o)}else E(e)&&Z(JSON.parse(e),o)})),null==a&&l)for(const s in o)d(o,s)&&Wt(o[s]);return o}function Mt(e){return e.type}function xt(e,t,n){let r=F(t.messages)?t.messages:_();"__i18nGlobal"in n&&(r=Ct(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),F(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(F(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Pt(e){return t.createVNode(t.Text,null,e,0)}function $t(){{const e="currentInstance";return e in r?r[e]:t.getCurrentInstance()}}const Dt=()=>[],St=()=>!1;let At=0;function jt(e){return(t,n,r,a)=>e(n,r,$t()||void 0,a)}function Ut(e={}){const{__root:n,__injectWithOption:r}=e,l=void 0===n,o=e.flatJson,s=a?t.ref:t.shallowRef;let i=!y(e.inheritLocale)||e.inheritLocale;const f=s(n&&i?n.locale.value:E(e.locale)?e.locale:Me),p=s(n&&i?n.fallbackLocale.value:E(e.fallbackLocale)||v(e.fallbackLocale)||R(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:f.value),_=s(Ct(f.value,e)),g=s(R(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),d=s(R(e.numberFormats)?e.numberFormats:{[f.value]:{}});let h=n?n.missingWarn:!y(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,T=n?n.fallbackWarn:!y(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,I=n?n.fallbackRoot:!y(e.fallbackRoot)||e.fallbackRoot,L=!!e.fallbackFormat,O=k(e.missing)?e.missing:null,w=k(e.missing)?jt(e.missing):null,N=k(e.postTranslation)?e.postTranslation:null,W=n?n.warnHtmlMessage:!y(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter;const M=n?n.modifiers:R(e.modifiers)?e.modifiers:{};let x,P=e.pluralRules||n&&n.pluralRules;x=(()=>{l&&je(null);const t={version:yt,locale:f.value,fallbackLocale:p.value,messages:_.value,modifiers:M,pluralRules:P,missing:null===w?void 0:w,missingWarn:h,fallbackWarn:T,fallbackFormat:L,unresolving:!0,postTranslation:null===N?void 0:N,warnHtmlMessage:W,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=g.value,t.numberFormats=d.value;const n=Ve(t);return l&&je(n),n})(),Xe(x,f.value,p.value);const $=t.computed({get:()=>f.value,set:e=>{x.locale=e,f.value=e}});function D(e){l||(x.fallbackContext=Ue());try{return e()}finally{l||(x.fallbackContext=void 0)}}function S(e){D((()=>Xe(x,f.value,e)))}const A=t.computed({get:()=>p.value,set:e=>{p.value=e,x.fallbackLocale=p.value,S(p.value)}}),j=t.computed((()=>_.value)),U=t.computed((()=>g.value)),H=t.computed((()=>d.value));const V=(e,t,r,a,l,o)=>{let s;f.value,p.value,_.value,g.value,d.value;try{0,s=D((()=>e(x)))}finally{}if("translate exists"!==r&&c(s)&&s===Ce||"translate exists"===r&&!s){const[e,r]=t();return n&&I?a(n):l(e)}if(o(s))return s;throw Error(Ft.UNEXPECTED_RETURN_TYPE)};function G(...e){return V((t=>Reflect.apply(bt,null,[t,...e])),(()=>Et(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>E(e)))}const z={normalize:function(e){return e.map((e=>E(e)||c(e)||y(e)?Pt(String(e)):e))},interpolate:e=>e,type:"vnode"};function Y(e,t){const n=X(e),r=x.messageResolver(n,t);return null===r?b(n,t):r}function X(e){return b(_.value,e)||{}}At++,t.watch(p,(()=>S(p.value)),{deep:!0,flush:"sync"}),n&&a&&(t.watch(n.locale,(e=>{i&&(f.value=e,x.locale=e,Xe(x,f.value,p.value))})),t.watch(n.fallbackLocale,(e=>{i&&(p.value=e,x.fallbackLocale=p.value,Xe(x,f.value,p.value))})));const B={id:At,locale:$,fallbackLocale:A,get inheritLocale(){return i},set inheritLocale(e){i=e,e&&n&&($.value=n.locale.value,A.value=n.fallbackLocale.value)},get availableLocales(){return Object.keys(_.value).sort()},messages:j,get modifiers(){return M},get pluralRules(){return P||{}},get isGlobal(){return l},get missingWarn(){return h},set missingWarn(e){h=e,x.missingWarn=h},get fallbackWarn(){return T},set fallbackWarn(e){T=e,x.fallbackWarn=T},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return L},set fallbackFormat(e){L=e,x.fallbackFormat=L},get warnHtmlMessage(){return W},set warnHtmlMessage(e){W=e,x.warnHtmlMessage=e},get escapeParameter(){return C},set escapeParameter(e){C=e,x.escapeParameter=e},t:G,getLocaleMessage:X,setLocaleMessage:function(e,t){Nt(e)||(o&&Wt(t),_.value[e]=t,x.messages=_.value)},mergeLocaleMessage:function(e,t){Nt(e)||(_.value[e]=b(_.value,e)||{},o&&Wt(t),Z(t,_.value[e]),x.messages=_.value)},getPostTranslationHandler:function(){return k(N)?N:null},setPostTranslationHandler:function(e){N=e,x.postTranslation=e},getMissingHandler:function(){return O},setMissingHandler:function(e){null!==e&&(w=jt(e)),O=e,x.missing=w},[Rt]:function(e){P=e,x.pluralRules=P}};return B.datetimeFormats=U,B.numberFormats=H,B.rt=function(...e){const[t,n,r]=e;if(r&&!F(r))throw Error(Ft.INVALID_ARGUMENT);return G(t,n,m({resolvedMessage:!0},r||{}))},B.te=function(e,t){return V((()=>{if(!e)return!1;const n=E(t)?t:f.value,r=E(t)?[n]:x.localeFallbacker(x,p.value,n);for(let t=0;t<r.length;t++)if(dt(Y(r[t],e)))return!0;return!1}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),St,(e=>y(e)))},B.tm=function(e){const t=function(e){let t=null;const n=x.localeFallbacker(x,p.value,f.value);for(let r=0;r<n.length;r++){const a=Y(n[r],e);if(null!=a){t=a;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},B.d=function(...e){return V((t=>Reflect.apply(Qe,null,[t,...e])),(()=>tt(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>xe),(e=>E(e)||v(e)))},B.n=function(...e){return V((t=>Reflect.apply(rt,null,[t,...e])),(()=>lt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>xe),(e=>E(e)||v(e)))},B.getDateTimeFormat=function(e){return b(g.value,e)||{}},B.setDateTimeFormat=function(e,t){Nt(e)||(g.value[e]=t,x.datetimeFormats=g.value,nt(x,e,t))},B.mergeDateTimeFormat=function(e,t){Nt(e)||(g.value[e]=m(b(g.value,e)||{},t),x.datetimeFormats=g.value,nt(x,e,t))},B.getNumberFormat=function(e){return b(d.value,e)||{}},B.setNumberFormat=function(e,t){Nt(e)||(d.value[e]=t,x.numberFormats=d.value,ot(x,e,t))},B.mergeNumberFormat=function(e,t){Nt(e)||(d.value[e]=m(b(d.value,e)||{},t),x.numberFormats=d.value,ot(x,e,t))},B[Ot]=r,B[Tt]=function(...e){return V((t=>{let n;const r=t;try{r.processor=z,n=Reflect.apply(bt,null,[r,...e])}finally{r.processor=null}return n}),(()=>Et(...e)),"translate",(t=>t[Tt](...e)),(e=>[Pt(e)]),(e=>v(e)))},B[It]=function(...e){return V((t=>Reflect.apply(Qe,null,[t,...e])),(()=>tt(...e)),"datetime format",(t=>t[It](...e)),Dt,(e=>E(e)||v(e)))},B[Lt]=function(...e){return V((t=>Reflect.apply(rt,null,[t,...e])),(()=>lt(...e)),"number format",(t=>t[Lt](...e)),Dt,(e=>E(e)||v(e)))},B}const Ht=new WeakMap;function Vt(e){if(!u(e))return!e;let t=Ht.get(e);return t||(t=new RegExp(`^(?![\\s\\S]*(?:${e.source}))`,e.flags.replace(/[gy]/g,"")),Ht.set(e,t),Ht.set(t,e)),t}function Gt(e={}){const t=Ut(function(e){const t=E(e.locale)?e.locale:Me,n=E(e.fallbackLocale)||v(e.fallbackLocale)||R(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=k(e.missing)?e.missing:void 0,a=!y(e.silentTranslationWarn)&&!u(e.silentTranslationWarn)||Vt(e.silentTranslationWarn),l=!y(e.silentFallbackWarn)&&!u(e.silentFallbackWarn)||Vt(e.silentFallbackWarn),o=!y(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,c=R(e.modifiers)?e.modifiers:{},i=e.pluralizationRules,f=k(e.postTranslation)?e.postTranslation:void 0,p=!E(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,_=!!e.escapeParameterHtml,g=!y(e.sync)||e.sync;let d=e.messages;if(R(e.sharedMessages)){const t=e.sharedMessages;d=Object.keys(t).reduce(((e,n)=>{if(Nt(n))return e;const r=b(e,n)||(e[n]={});return m(r,t[n]),e}),d||{})}const{__i18n:h,__root:F,__injectWithOption:T}=e,I=e.datetimeFormats,L=e.numberFormats;return{locale:t,fallbackLocale:n,messages:d,flatJson:e.flatJson,datetimeFormats:I,numberFormats:L,missing:r,missingWarn:a,fallbackWarn:l,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:i,postTranslation:f,warnHtmlMessage:p,escapeParameter:_,messageResolver:e.messageResolver,inheritLocale:g,__i18n:h,__root:F,__injectWithOption:T}}(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return Vt(t.missingWarn)},set silentTranslationWarn(e){t.missingWarn=Vt(e)},get silentFallbackWarn(){return Vt(t.fallbackWarn)},set silentFallbackWarn(e){t.fallbackWarn=Vt(e)},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t:(...e)=>Reflect.apply(t.t,t,[...e]),rt:(...e)=>Reflect.apply(t.rt,t,[...e]),te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,r}function zt(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Rt](t.pluralizationRules||e.pluralizationRules);const n=Ct(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const Yt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Xt(){return t.Fragment}const Bt=t.defineComponent({name:"i18n-t",props:m({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>c(e)||!isNaN(e)}},Yt),setup(e,n){const{slots:r,attrs:a}=n,l=e.i18n||rn({useScope:e.scope,__useComponent:!0});return()=>{const o=()=>{const a=Object.keys(r).filter((e=>"_"!==e[0])),o=_();e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=E(e.plural)?+e.plural:e.plural);const s=function({slots:e},n){if(1===n.length&&"default"===n[0])return(e.default?e.default():[]).reduce(((e,n)=>[...e,...n.type===t.Fragment?n.children:[n]]),[]);return n.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),_())}(n,a);return l[Tt](e.keypath,s,o)},s=m(_(),a),c=E(e.tag)||F(e.tag)?e.tag:Xt();return F(c)?t.h(c,s,{default:o}):t.h(c,s,o())}}}),Jt=Bt;function qt(e,n,r,a){const{slots:l,attrs:o}=n;return()=>{const n=()=>{const t={part:!0};let n=_();e.locale&&(t.locale=e.locale),E(e.format)?t.key=e.format:F(e.format)&&(E(e.format.key)&&(t.key=e.format.key),n=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?m(_(),t,{[n]:e.format[n]}):t),_()));const o=a(e.value,t,n);let s=[t.key];return v(o)?s=o.map(((e,t)=>{const n=l[e.type],r=n?n({[e.type]:e.value,index:t,parts:o}):[e.value];var a;return v(a=r)&&!E(a[0])&&(r[0].key=`${e.type}-${t}`),r})):E(o)&&(s=[o]),s},s=m(_(),o),c=E(e.tag)||F(e.tag)?e.tag:Xt();return F(c)?t.h(c,s,{default:n}):t.h(c,s,n())}}const Kt=t.defineComponent({name:"i18n-n",props:m({value:{type:Number,required:!0},format:{type:[String,Object]}},Yt),setup(e,t){const n=e.i18n||rn({useScope:e.scope,__useComponent:!0});return qt(e,t,at,((...e)=>n[Lt](...e)))}}),Zt=Kt;function Qt(e){const n=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Error(Ft.UNEXPECTED_ERROR);const a=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),l=en(r);return[Reflect.apply(a.t,a,[...tn(l)]),a]};return{created:(e,r)=>{const[l,o]=n(r);a&&(e.__i18nWatcher=t.watch(o.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),e.__composer=o,e.textContent=l},unmounted:e=>{a&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=en(t);e.textContent=Reflect.apply(n.t,n,[...tn(r)])}},getSSRProps:e=>{const[t]=n(e);return{textContent:t}}}}function en(e){if(E(e))return{path:e};if(R(e)){if(!("path"in e))throw Error(Ft.REQUIRED_VALUE,"path");return e}throw Error(Ft.INVALID_VALUE)}function tn(e){const{path:t,locale:n,args:r,choice:a,plural:l}=e,o={},s=r||{};return E(n)&&(o.locale=n),c(a)&&(o.plural=a),c(l)&&(o.plural=l),[t,s,o]}const nn=l("global-vue-i18n");function rn(e={}){const n=$t();if(null==n)throw Error(Ft.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(Ft.NOT_INSTALLED);const r=function(e){const n=t.inject(e.isCE?nn:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?Ft.NOT_INSTALLED_WITH_PROVIDE:Ft.UNEXPECTED_ERROR);return n}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),l=Mt(n),o=function(e,t){return f(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===o)return xt(a,e,l),a;if("parent"===o){let t=an(r,n,e.__useComponent);return null==t&&(t=a),t}if("isolated"===o){if("composition"!==r.mode)throw Error(Ft.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const l=r,o=m({},e),s=an(r,n);o.__root=s||a;const c=Ut(o);l.__composerExtend&&(c[wt]=l.__composerExtend(c));return t.getCurrentScope()&&t.onScopeDispose((()=>{const e=c[wt];e&&(e(),delete c[wt])})),c}const s=r;let c=s.__getInstance(n);if(null==c){const r=m({},e);"__i18n"in l&&(r.__i18n=l.__i18n),a&&(r.__root=a),c=Ut(r),s.__composerExtend&&(c[wt]=s.__composerExtend(c)),function(e,n,r){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=r;e.__deleteInstance(n);const a=t[wt];a&&(a(),delete t[wt])}),n)}(s,n,c),s.__setInstance(n,c)}return c}function an(e,t,n=!1){let r=null;const a=t.root;let l=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=l;){const t=e;if("composition"===e.mode)r=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(r=e.__composer,n&&r&&!r[Ot]&&(r=null))}if(null!=r)break;if(a===l)break;l=l.parent}return r}const ln=["locale","fallbackLocale","availableLocales"],on=["t","rt","d","n","tm","te"];const sn=t.defineComponent({name:"i18n-d",props:m({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Yt),setup(e,t){const n=e.i18n||rn({useScope:e.scope,__useComponent:!0});return qt(e,t,et,((...e)=>n[It](...e)))}}),cn=sn;return $e=function(e,t){{if(!Q(e))return()=>e;const t=e.cacheKey;if(t){const n=de[t];return n||(de[t]=pe(e))}return pe(e)}},De=function(e,t){if(!F(e))return null;let n=we.get(t);if(n||(n=function(e){const t=[];let n,r,a,l,o,s,c,i=-1,u=0,f=0;const m=[];function p(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=Oe(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(l=Re(n),c=Ie[u],o=c[l]||c.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=m[o[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&we.set(t,n)),!n)return null;const r=n.length;let a=e,l=0;for(;l<r;){const e=n[l];if(fe.includes(e)&&Q(a))return null;if(!F(a))return null;if(!d(a,e))return null;const t=a[e];if(void 0===t)return null;if(k(a))return null;a=t,l++}return a},Se=function(e,t,n){const r=E(n)?n:Me,a=e;let l;F(t)?(a.__localeChainObjectCache||(a.__localeChainObjectCache=new WeakMap),l=a.__localeChainObjectCache.get(t),l||(l=new Map,a.__localeChainObjectCache.set(t,l))):(a.__localeChainCache||(a.__localeChainCache=new Map),l=a.__localeChainCache.get(t),l||(l=new Map,a.__localeChainCache.set(t,l)));const o=l.get(r);if(o)return o;const s=[];let c=[n];for(;v(c);)c=ye(s,c,t);const i=v(t)||!R(t)?t:t.default?t.default:null;return c=E(i)?[i]:i,v(c)&&ye(s,c,!1),l.set(r,s),s},e.DatetimeFormat=sn,e.I18nD=cn,e.I18nInjectionKey=nn,e.I18nN=Zt,e.I18nT=Jt,e.NumberFormat=Kt,e.Translation=Bt,e.VERSION=yt,e.createI18n=function(e={}){const n=!y(e.legacy)||e.legacy,r=!y(e.globalInjection)||e.globalInjection,a=new Map,[o,s]=function(e,n){const r=t.effectScope(),a=n?r.run((()=>Gt(e))):r.run((()=>Ut(e)));if(null==a)throw Error(Ft.UNEXPECTED_ERROR);return[r,a]}(e,n),c=l(""),i={get mode(){return n?"legacy":"composition"},install(e,...a){if(e.__VUE_I18N_SYMBOL__=c,e.provide(e.__VUE_I18N_SYMBOL__,i),R(a[0])){const e=a[0];i.__composerExtend=e.__composerExtend,i.__vueI18nExtend=e.__vueI18nExtend}let l=null;!n&&r&&(l=function(e,n){const r=Object.create(null);ln.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(Ft.UNEXPECTED_ERROR);const l=t.isRef(a.value)?{get:()=>a.value.value,set(e){a.value.value=e}}:{get:()=>a.get&&a.get()};Object.defineProperty(r,e,l)})),e.config.globalProperties.$i18n=r,on.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(Ft.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}));const a=()=>{delete e.config.globalProperties.$i18n,on.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return a}(e,i.global)),function(e,t,...n){const r=R(n[0])?n[0]:{};(!y(r.globalInstall)||r.globalInstall)&&([Bt.name,"I18nT"].forEach((t=>e.component(t,Bt))),[Kt.name,"I18nN"].forEach((t=>e.component(t,Kt))),[sn.name,"I18nD"].forEach((t=>e.component(t,sn)))),e.directive("t",Qt(t))}(e,i,...a),n&&e.mixin(function(e,t,n){return{beforeCreate(){const r=$t();if(!r)throw Error(Ft.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=m({},a.i18n);if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=zt(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=Gt(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=zt(e,a);else{this.$i18n=Gt({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&xt(t,a,a),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const e=$t();if(!e)throw Error(Ft.UNEXPECTED_ERROR);const t=this.$i18n;t&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t?.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n)}}}(s,s.__composer,i));const o=e.unmount;e.unmount=()=>{l&&l(),i.dispose(),o()}},get global(){return s},dispose(){o.stop()},__instances:a,__getInstance:function(e){return a.get(e)||null},__setInstance:function(e,t){a.set(e,t)},__deleteInstance:function(e){a.delete(e)}};return i},e.useI18n=rn,e.vTDirective=Qt,e}({},Vue);
6
+ var VueI18n=function(e,t){"use strict";function n(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var r=n(t);const a="undefined"!=typeof window,o=(e,t=!1)=>t?Symbol.for(e):Symbol(e),l=(e,t,n)=>s({l:e,k:t,s:n}),s=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),i=e=>"number"==typeof e&&isFinite(e),c=e=>"[object Date]"===L(e),u=e=>"[object RegExp]"===L(e),m=e=>R(e)&&0===Object.keys(e).length,f=Object.assign,p=Object.create,g=(e=null)=>p(e),_=Object.prototype.hasOwnProperty;function d(e,t){return _.call(e,t)}function b(e,t){const n=e[t];return d(e,t)?n:void 0}function h(e){return d(Object.prototype,e)}const v=Array.isArray,k=e=>"function"==typeof e,y=e=>"string"==typeof e,E=e=>"boolean"==typeof e,F=e=>null!==e&&"object"==typeof e,T=e=>F(e)&&k(e.then)&&k(e.catch),I=Object.prototype.toString,L=e=>I.call(e),R=e=>"[object Object]"===L(e),O=e=>null==e?"":v(e)||R(e)&&e.toString===I?JSON.stringify(e,null,2):String(e);function w(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function N(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}const W=/^javascript:/i,C=/^(?:href|xlink:href|src|action|formaction)$/i,x=/&#(?:x([0-9a-f]+)|(\d+));?/gi,M=/&(?:Tab|NewLine);/g,$=/&colon;?/gi,P=/[\u0000-\u0020\u007f-\u009f]/g,D=/^on\w/i,S=/^srcdoc$/i,A=/^(?:base|animate|set|script|plaintext)$/i,j=/^(?:iframe|noembed|noframes|noscript|style|textarea|title|xmp)$/i,U=/<(\/?)([a-z][^\t\n\f\r />]*)/iy,H=/([\t\n\f\r /]*)(?:(>)|([^\t\n\f\r />][^\t\n\f\r />=]*)(?:[\t\n\f\r ]*=[\t\n\f\r ]*(?:(["'])([\s\S]*?)(\4|$)|([^\t\n\f\r >]*)))?)/y,V=/<!--(?:>|->|[\s\S]*?--!?>)/y;function G(e,t,n){const r=t||n;if(!r)return e;const a=Number.parseInt(r,t?16:10);return a<=127?String.fromCharCode(a):e}function z(e){const t=e.replace(x,G).replace(M,"").replace($,":").replace(P,"");return W.test(t)}function Y(e,t){if(C.test(e)&&z(t))return"about:blank";const n="style"===e.toLowerCase()?function(e){const t=/url\s*\(/gi;let n,r="",a=0;for(;null!==(n=t.exec(e));){const o=n.index,l=t.lastIndex-1;let s=l+1,i=1,c=null;for(;s<e.length;s++){const t=e[s];if(c)t===c&&(c=null);else if('"'===t||"'"===t)c=t;else if("("===t)i++;else if(")"===t&&(i--,0===i))break}if(0!==i)break;const u=e.slice(l+1,s).trim(),m=u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u.slice(1,-1).trim():u;r+=e.slice(a,o),r+=z(m)?"url(about:blank)":e.slice(o,s+1),a=s+1}return r+e.slice(a)}(t):t;return function(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(n)}function X(e){return e.replace(/</g,"&lt;")}function q(e,t,n,r){let a=e;if(D.test(e)?(r.eventHandler=!0,a=`&#111;n${e.slice(2)}`):S.test(e)&&(r.srcdoc=!0,a=`&#115;${e.slice(1)}`),void 0===t)return a;const o=n||"";return`${a}=${o}${Y(e,t)}${o}`}const B=0,J=1,K=2,Z=/^(?:area|base|basefont|bgsound|br|col|embed|frame|hr|image|img|input|keygen|link|meta|param|source|track|wbr|html|head|body|frameset)$/,Q=/^(?:b|big|blockquote|body|br|center|code|dd|div|dl|dt|em|embed|h[1-6]|head|hr|i|img|li|listing|menu|meta|nobr|ol|p|pre|ruby|s|small|span|strong|strike|sub|sup|table|tt|u|ul|var)$/,ee=/^(?: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)$/,te=/^(?:applet|caption|html|table|td|th|marquee|object|template|button)$/,ne=/^(?:foreignobject|desc|title)$/,re=/^(?:foreignobject|desc|mi|mo|mn|ms|mtext|annotation-xml)$/,ae=/^(?:mi|mo|mn|ms|mtext)$/,oe=/^(?:text\/html|application\/xhtml\+xml)$/i;function le(e){return e.replace(/[A-Z]+/g,(e=>e.toLowerCase()))}function se(e,t,n){let r="";for(let a=e.length-1;a>=t;a--){const t=e[a];t.namespace===B&&"form"===t.name?n[t.part]=X(n[t.part]):r+=`</${t.name}>`}return e.length=t,r}function ie(e,t){let n=e.length;for(;n>0&&e[n-1].namespace!==B&&!e[n-1].integration;)n--;return se(e,n,t)}function ce(e,t,n,r,a){const o=t.length+1;let l="";const s=e[e.length-1];if(function(e,t){return!!e&&e.namespace!==B&&(!e.integration||ae.test(e.name)&&("mglyph"===t||"malignmark"===t))&&!("annotation-xml"===e.name&&"svg"===t)}(s,n)){if(!function(e,t){return Q.test(e)||"font"===e&&(t.has("color")||t.has("face")||t.has("size"))}(n,r))return a||e.push({name:n,namespace:s.namespace,integration:s.namespace===J?ne.test(n):ae.test(n)||"annotation-xml"===n&&oe.test((r.get("encoding")||"").replace(x,G)),part:o}),l;l=ie(e,t)}if(ee.test(n))for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.namespace===B?te.test(n.name):n.integration)break;if(n.namespace===B&&"p"===n.name){l+=se(e,i,t);break}}if(!re.test(n))return"svg"===n||"math"===n?a||e.push({name:n,namespace:"svg"===n?J:K,integration:!1,part:o}):Z.test(n)||e.push({name:n,namespace:B,integration:!1,part:o}),l}function ue(e,t,n){let r="";"p"!==n&&"br"!==n||(r=ie(e,t));let a=e.length-1;for(;a>=0&&e[a].namespace!==B&&e[a].name!==n;)a--;if(a>=0&&e[a].namespace!==B);else for(;a>=0&&(e[a].namespace!==B||e[a].name!==n);)a--;return a<0?"br"===n||"p"===n?r:void 0:(r+=se(e,a+1,t),e.length=a,r)}function me(e,t,n){U.lastIndex=t;const r=U.exec(e);if(!r)return;const[,a,o]=r;let l=r[0];const s=new Map;let i;for(H.lastIndex=U.lastIndex;i=H.exec(e);){const[r,c,u,m,f,p,g,_]=i;if(u){const n=H.lastIndex;return[a?e.slice(t,n):l+r,o,n,!a&&c.endsWith("/"),s]}if(f&&!g)break;if(!a){const e=f?p:_,t=le(m);s.has(t)||s.set(t,e||""),l+=c+q(m,e,f,n)}}return[l,o,-1,!1,s]}function fe(e,t,n){for(let r=e.indexOf("</",t);-1!==r;r=e.indexOf("</",r+2)){const t=me(e,r,{});if(t&&t[1].toLowerCase()===n.toLowerCase())return-1===t[2]?-1:r}return-1}const pe=e=>!F(e)||v(e);function ge(e,t){if(pe(e)||pe(t)||t===Object.prototype)throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{if("__proto__"===r)return;const a=e[r];if(v(a)){const e=[];e.length=a.length,t[r]=e,n.push({src:a,des:e})}else F(a)?(F(t[r])&&!v(t[r])||(t[r]=g()),n.push({src:a,des:t[r]})):t[r]=a}))}}function _e(e){return F(e)&&0===ye(e)&&(d(e,"b")||d(e,"body"))}const de=["b","body"];const be=["c","cases"];const he=["s","static"];const ve=["i","items"];const ke=["t","type"];function ye(e){return Le(e,ke)}const Ee=["v","value"];function Fe(e,t){const n=Le(e,Ee);if(null!=n)return n;throw Oe(t)}const Te=["m","modifier"];const Ie=["k","key"];function Le(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(d(e,n)&&null!=e[n])return e[n]}return n}const Re=[...de,...be,...he,...ve,...Ie,...Te,...Ee,...ke];function Oe(e){return new Error(`unhandled node type: ${e}`)}function we(e){return t=>function(e,t){const n=(r=t,Le(r,de));var r;if(null==n)throw Oe(0);if(1===ye(n)){const t=function(e){return Le(e,be,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,Ne(e,n)]),[]))}return Ne(e,n)}(t,e)}function Ne(e,t){const n=function(e){return Le(e,he)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return Le(e,ve,[])}(t).reduce(((t,n)=>[...t,We(e,n)]),[]);return e.normalize(n)}}function We(e,t){const n=ye(t);switch(n){case 3:case 9:case 7:case 8:return Fe(t,n);case 4:{const r=t;if(d(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(d(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Oe(n)}case 5:{const r=t;if(d(r,"i")&&i(r.i))return e.interpolate(e.list(r.i));if(d(r,"index")&&i(r.index))return e.interpolate(e.list(r.index));throw Oe(n)}case 6:{const n=t,r=function(e){return Le(e,Te)}(n),a=function(e){const t=Le(e,Ie);if(t)return t;throw Oe(6)}(n);return e.linked(We(e,a),r?We(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}let Ce=g();const xe={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function Me(e,t){return null!=t.locale?Pe(t.locale):Pe(e.locale)}let $e;function Pe(e){if(y(e))return e;if(k(e)){if(e.resolvedOnce&&null!=$e)return $e;if("Function"===e.constructor.name){const t=e();if(T(t))throw Error(xe.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return $e=t}throw Error(xe.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(xe.NOT_SUPPORT_LOCALE_TYPE)}function De(e,t,n){return[...new Set([n,...v(t)?t:F(t)?Object.keys(t).filter((e=>"default"!==e)):y(t)?[t]:[n]])]}function Se(e,t,n){let r=!0;for(let a=0;a<t.length&&E(r);a++){const o=t[a];y(o)&&(r=Ae(e,t[a],n))}return r}function Ae(e,t,n){let r;const a=t.split("-");do{r=je(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function je(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const a=t.replace(/!/g,"");e.push(a),(v(n)||R(n))&&n[a]&&(r=n[a])}return r}const Ue=[];Ue[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ue[1]={w:[1],".":[2],"[":[4],o:[7]},Ue[2]={w:[2],i:[3,0],0:[3,0]},Ue[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ue[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ue[5]={"'":[4,0],o:8,l:[5,0]},Ue[6]={'"':[4,0],o:8,l:[6,0]};const He=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ve(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Ge(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,He.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const ze=new Map;function Ye(e,t){return F(e)?b(e,t):null}const Xe="11.4.22",qe=-1,Be="en-US",Je="",Ke=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Ze,Qe,et;let tt=null;const nt=e=>{tt=e},rt=()=>tt;let at=0;function ot(e={}){const t=k(e.onWarn)?e.onWarn:w,n=y(e.version)?e.version:Xe,r=y(e.locale)||k(e.locale)?e.locale:Be,a=k(r)?Be:r,o=v(e.fallbackLocale)||R(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,l=R(e.messages)?e.messages:lt(a),s=R(e.datetimeFormats)?e.datetimeFormats:lt(a),i=R(e.numberFormats)?e.numberFormats:lt(a),c=f(g(),e.modifiers,{upper:(e,t)=>"text"===t&&y(e)?e.toUpperCase():"vnode"===t&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&y(e)?e.toLowerCase():"vnode"===t&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&y(e)?Ke(e):"vnode"===t&&F(e)&&"__v_isVNode"in e?Ke(e.children):e}),m=e.pluralRules||g(),p=k(e.missing)?e.missing:null,_=!E(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,d=!E(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,b=!!e.fallbackFormat,h=!!e.unresolving,T=k(e.postTranslation)?e.postTranslation:null,I=R(e.processor)?e.processor:null,L=!E(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,N=k(e.messageCompiler)?e.messageCompiler:Ze,W=k(e.messageResolver)?e.messageResolver:Qe||Ye,C=k(e.localeFallbacker)?e.localeFallbacker:et||De,x=F(e.fallbackContext)?e.fallbackContext:void 0,M=e,$=F(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,P=F(M.__numberFormatters)?M.__numberFormatters:new Map,D=F(M.__meta)?M.__meta:{};at++;const S={version:n,cid:at,locale:r,fallbackLocale:o,messages:l,modifiers:c,pluralRules:m,missing:p,missingWarn:_,fallbackWarn:d,fallbackFormat:b,unresolving:h,postTranslation:T,processor:I,warnHtmlMessage:L,escapeParameter:O,messageCompiler:N,messageResolver:W,localeFallbacker:C,fallbackContext:x,onWarn:t,__meta:D};return S.datetimeFormats=s,S.numberFormats=i,S.__datetimeFormatters=$,S.__numberFormatters=P,S}const lt=e=>({[e]:g()});function st(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return y(r)?r:t}return t}function it(e,t){const n=e;F(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function ct(e,t,n){it(e,n),e.fallbackContext&&it(e.fallbackContext,n),e.localeFallbacker(e,n,t)}function ut(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let o=n+1;o<t.length;o++)if(r=e,a=t[o],r!==a&&r.split("-")[0]===a.split("-")[0])return!0;var r,a;return!1}function mt(e,t,n,r,a,o,l){const{fallbackLocale:s,localeFallbacker:i,onWarn:c}=e,u=i(e,s,n);for(let m=0;m<u.length;m++){const n=u[m],a=b(b(r,n)||{},t);if(R(a)&&y(n))return n;st(e,t,n,0,l)}return null}function ft(e,t,n){let r=`${e}__${t}`;return R(n)&&!m(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function pt(e,t,n){for(const r in n){const n=`${t}__${r}`;for(const t of e.keys())(t===n||t.startsWith(`${n}__`))&&e.delete(t)}}function gt(e,t,n,r){const[,a,o,l]=e;let s=n;return y(a)?t.key=a:R(a)&&Object.keys(a).forEach((e=>{r.includes(e)?s[e]=a[e]:t[e]=a[e]})),y(o)?t.locale=o:R(o)&&(s=o),R(l)&&(s=l),s}function _t(e,...t){const{datetimeFormats:n,unresolving:r,onWarn:a}=e,{__datetimeFormatters:o}=e;if(!y(t[0])&&!c(t[0])&&!i(t[0]))return Je;const[l,s,u,m]=bt(...t),p=(E(u.missingWarn)?u.missingWarn:e.missingWarn,E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),g=Me(e,u);if(!y(l)||""===l){const e=new Intl.DateTimeFormat(g.replace(/!/g,""),m);return p?e.formatToParts(s):e.format(s)}const _=mt(e,l,g,n,0,0,"datetime format");if(!y(_))return r?qe:l;const d=n[_][l],b=ft(_,l,m);let h=o.get(b);return h||(h=new Intl.DateTimeFormat(_,f({},d,m)),o.set(b,h)),p?h.formatToParts(s):h.format(s)}const dt=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function bt(...e){const[t]=e,n=g(),r=g();let a;if(y(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(xe.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();a=new Date(n);try{a.toISOString()}catch{throw Error(xe.INVALID_ISO_DATE_ARGUMENT)}}else if(c(t)){if(isNaN(t.getTime()))throw Error(xe.INVALID_DATE_ARGUMENT);a=t}else{if(!i(t))throw Error(xe.INVALID_ARGUMENT);a=t}const o=gt(e,n,r,dt);return[n.key||"",a,n,o]}function ht(e,t,n){pt(e.__datetimeFormatters,t,n)}function vt(e,...t){const{numberFormats:n,unresolving:r,onWarn:a}=e,{__numberFormatters:o}=e;if(!i(t[0]))return Je;const[l,s,c,u]=yt(...t),m=(E(c.missingWarn)?c.missingWarn:e.missingWarn,E(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,!!c.part),p=Me(e,c);if(!y(l)||""===l){const e=new Intl.NumberFormat(p.replace(/!/g,""),u);return m?e.formatToParts(s):e.format(s)}const g=mt(e,l,p,n,0,0,"number format");if(!y(g))return r?qe:l;const _=n[g][l],d=ft(g,l,u);let b=o.get(d);return b||(b=new Intl.NumberFormat(g,f({},_,u)),o.set(d,b)),m?b.formatToParts(s):b.format(s)}const kt=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function yt(...e){const[t]=e,n=g(),r=g();if(!i(t))throw Error(xe.INVALID_ARGUMENT);const a=t,o=gt(e,n,r,kt);return[n.key||"",a,n,o]}function Et(e,t,n){pt(e.__numberFormatters,t,n)}const Ft=e=>e,Tt=e=>"",It="text",Lt=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}(e),Rt=O;function Ot(e,t){return e=Math.abs(e),2===t?1===e?0:1:Math.min(e,2)}function wt(e={}){const t=e.locale,n=function(e){const t=i(e.pluralIndex)?e.pluralIndex:-1;return i(e.named?.count)?e.named.count:i(e.named?.n)?e.named.n:t}(e),r=y(t)&&e.pluralRules&&k(b(e.pluralRules,t))?e.pluralRules[t]:Ot,a=r===Ot?void 0:Ot,o=e.list||[],l=e.named||g(),s=i(e.pluralIndex),c=t=>{const n=h(t)?b(l,t):l[t];return!s||n||"count"!==t&&"n"!==t?n:e.pluralIndex};function u(t,n){const r=k(e.messages)?e.messages(t,!!n):!!F(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):Tt)}const m=k(e.processor?.normalize)?e.processor.normalize:Lt,p=k(e.processor?.interpolate)?e.processor.interpolate:Rt,_={list:e=>o[e],named:c,plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",l="";1===n.length?F(r)?(l=r.modifier||l,o=r.type||o):y(r)&&(l=r||l):2===n.length&&(y(r)&&(l=r||l),y(a)&&(o=a||o));const s=u(t,!0)(_),i=""===s||void 0===s?t:s,c="vnode"===o&&v(i)&&l?i[0]:i;if(!l)return c;const m=(f=l,e.modifiers?b(e.modifiers,f):Ft);var f;return k(m)?m(c,o):c},message:u,type:y(e.processor?.type)?e.processor.type:It,interpolate:p,normalize:m,values:f(g(),o,l,s?{count:c("count"),n:c("n")}:{})};return _}const Nt=()=>"",Wt=e=>k(e),Ct=e=>y(e)||_e(e)||Wt(e);function xt(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:l,messages:s}=e,[c,u]=Dt(...t),m=E(u.missingWarn)?u.missingWarn:e.missingWarn,p=E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,_=E(u.escapeParameter)?u.escapeParameter:e.escapeParameter,d=!!u.resolvedMessage,h=y(u.default)||E(u.default)?E(u.default)?o?c:()=>c:u.default:n?o?c:()=>c:null,T=n||null!=h&&(y(h)||k(h)),I=Me(e,u);_&&function(e){v(e.list)&&(e.list=e.list.map((e=>y(e)?N(e):e)));if(F(e.named)){const t=e.named,n=g();for(const e of Object.keys(t)){const r=t[e];n[e]=y(r)?N(r):r}e.named=n}}(u);let[L,R,O]=d?[c,I,b(s,I)||g()]:$t(e,c,I,l,p,m),w=L,W=c;if(d||Ct(w)||T&&(w=h,W=w),!(d||Ct(w)&&y(R)))return a?qe:c;let C=!1;const x=Wt(w)?w:Pt(e,c,R,w,W,(()=>{C=!0}));if(C)return w;const M=function(e,t,n,r,a){const{modifiers:o,pluralRules:l,messageResolver:s,fallbackLocale:c,fallbackWarn:u,missingWarn:m,fallbackContext:p}=e,g=(r,a)=>{let o=s(n,r);if(null==o&&(p||a)){const[n,,a]=$t(p||e,r,t,c,u,m);o=n??s(a,r)}if(y(o)||_e(o)){let n=!1;const a=Pt(e,r,t,o,r,(()=>{n=!0}));return n?Nt:a}return Wt(o)?o:Nt},_={locale:t,modifiers:o,pluralRules:l,messages:g},d=function(e,t){if(!t||k(e?.interpolate))return e;return f({},e,{interpolate:Mt})}(e.processor,a);d&&(_.processor=d);r.list&&(_.list=r.list);r.named&&(_.named=r.named);i(r.plural)&&(_.pluralIndex=r.plural);return _}(e,R,O,u,_),$=function(e,t,n){const r=t(n);return r}(0,x,wt(M));let P=r?r($,c):$;return _&&y(P)&&(P=function(e){const t={},n=[],r=[];let a,o=0;for(;-1!==(a=e.indexOf("<",o));){n.push(e.slice(o,a)),o=a+1;const l=me(e,a,t);if(l){const[s,i,c,u,m]=l;if(-1===c){t.unclosed=!0,n.push(X(e.slice(a))),o=e.length;break}if(o=c,"/"===s[1]){const e=ue(r,n,le(i));void 0===e?t.closed=!0:(e&&(t.closed=!0),n.push(e+s))}else if(A.test(i))t.element=!0,n.push(X(s));else{let a="";if(j.test(i)){const r=fe(e,c,i);if(-1===r){t.unclosed=!0,n.push(X(s));continue}a=X(e.slice(c,r)),o=r}const l=ce(r,n,le(i),m,u);void 0===l?(t.closed=!0,n.push(X(s)+a)):n.push(l,s+a)}}else V.lastIndex=a,V.test(e)?(n.push(e.slice(a,V.lastIndex)),o=V.lastIndex):(e.startsWith("\x3c!--",a)&&(t.unclosed=!0),n.push("&lt;"))}n.push(e.slice(o));for(let l=r.length-1;l>=0;l--){const e=r[l];t.closed=!0,e.namespace===B&&"form"===e.name?n[e.part]=X(n[e.part]):n.push(`</${e.name}>`)}return n.join("")}(P)),P}function Mt(e){return y(e)?e:N(O(e))}function $t(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,r,n);let m,f=g(),p=null;for(let _=0;_<u.length&&(m=u[_],f=b(l,m)||g(),null===(p=i(f,t))&&(p=b(f,t)),!Ct(p));_++)if(!ut(m,u)){const n=st(e,t,m,0,"translate");n!==t&&(p=n)}return[p,m,f]}function Pt(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(Wt(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const c=s(r,function(e,t,n,r,a,o){return{locale:t,key:n,warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>l(t,n,e)}}(0,n,a,0,i,o));return c.locale=n,c.key=t,c.source=r,c}function Dt(...e){const[t,n,r]=e,a=g();if(!(y(t)||i(t)||Wt(t)||_e(t)))throw Error(xe.INVALID_ARGUMENT);const o=i(t)?String(t):(Wt(t),t);return i(n)?a.plural=n:y(n)?a.default=n:R(n)&&!m(n)?a.named=n:v(n)&&(a.list=n),i(r)?a.plural=r:y(r)?a.default=r:R(r)&&f(a,r),[o,a]}const St="11.4.22",At={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},jt=o("__translateVNode"),Ut=o("__datetimeParts"),Ht=o("__numberParts"),Vt=o("__setPluralRules"),Gt=o("__injectWithOption"),zt=o("__dispose");function Yt(e){return!!h(e)}function Xt(e){if(!F(e))return e;if(_e(e))return e;for(const t in e)if(d(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e,o=!1;for(let e=0;e<r;e++){if("__proto__"===n[e])throw new Error(`unsafe key: ${n[e]}`);if(n[e]in a||(a[n[e]]=g()),!F(a[n[e]])){o=!0;break}if(_e(a[n[e]])&&(Re.includes(n[e+1])||"cacheKey"===n[e+1])){o=!0;break}a=a[n[e]]}o||(a[n[r]]=e[t],delete e[t]);const l=a[n[r]];F(l)&&Xt(l)}else F(e[t])&&Xt(e[t]);return e}function qt(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=R(n)?n:v(r)?g():{[e]:g()};if(v(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;if(t){if(Yt(t))return;l[t]=b(l,t)||g(),ge(n,l[t])}else ge(n,l)}else y(e)&&ge(JSON.parse(e),l)})),null==a&&o)for(const s in l)d(l,s)&&Xt(l[s]);return l}function Bt(e){return e.type}function Jt(e,t,n){let r=F(t.messages)?t.messages:g();"__i18nGlobal"in n&&(r=qt(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),F(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(F(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Kt(e){return t.createVNode(t.Text,null,e,0)}function Zt(){{const e="currentInstance";return e in r?r[e]:t.getCurrentInstance()}}const Qt=()=>[],en=()=>!1;let tn=0;function nn(e){return(t,n,r,a)=>e(n,r,Zt()||void 0,a)}function rn(e={}){const{__root:n,__injectWithOption:r}=e,o=void 0===n,l=e.flatJson,s=a?t.ref:t.shallowRef;let c=!E(e.inheritLocale)||e.inheritLocale;const m=s(n&&c?n.locale.value:y(e.locale)?e.locale:Be),p=s(n&&c?n.fallbackLocale.value:y(e.fallbackLocale)||v(e.fallbackLocale)||R(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:m.value),g=s(qt(m.value,e)),_=s(R(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),d=s(R(e.numberFormats)?e.numberFormats:{[m.value]:{}});let h=n?n.missingWarn:!E(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,T=n?n.fallbackWarn:!E(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,I=n?n.fallbackRoot:!E(e.fallbackRoot)||e.fallbackRoot,L=!!e.fallbackFormat,O=k(e.missing)?e.missing:null,w=k(e.missing)?nn(e.missing):null,N=k(e.postTranslation)?e.postTranslation:null,W=n?n.warnHtmlMessage:!E(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter;const x=n?n.modifiers:R(e.modifiers)?e.modifiers:{};let M,$=e.pluralRules||n&&n.pluralRules;M=(()=>{o&&nt(null);const t={version:St,locale:m.value,fallbackLocale:p.value,messages:g.value,modifiers:x,pluralRules:$,missing:null===w?void 0:w,missingWarn:h,fallbackWarn:T,fallbackFormat:L,unresolving:!0,postTranslation:null===N?void 0:N,warnHtmlMessage:W,escapeParameter:C,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=_.value,t.numberFormats=d.value;const n=ot(t);return o&&nt(n),n})(),ct(M,m.value,p.value);const P=t.computed({get:()=>m.value,set:e=>{M.locale=e,m.value=e}});function D(e){o||(M.fallbackContext=rt());try{return e()}finally{o||(M.fallbackContext=void 0)}}function S(e){D((()=>ct(M,m.value,e)))}const A=t.computed({get:()=>p.value,set:e=>{p.value=e,M.fallbackLocale=p.value,S(p.value)}}),j=t.computed((()=>g.value)),U=t.computed((()=>_.value)),H=t.computed((()=>d.value));const V=(e,t,r,a,o,l)=>{let s;m.value,p.value,g.value,_.value,d.value;try{0,s=D((()=>e(M)))}finally{}if("translate exists"!==r&&i(s)&&s===qe||"translate exists"===r&&!s){const[e,r]=t();return n&&I?a(n):o(e)}if(l(s))return s;throw Error(At.UNEXPECTED_RETURN_TYPE)};function G(...e){return V((t=>Reflect.apply(xt,null,[t,...e])),(()=>Dt(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>y(e)))}const z={normalize:function(e){return e.map((e=>y(e)||i(e)||E(e)?Kt(String(e)):e))},interpolate:e=>e,type:"vnode"};function Y(e,t){const n=X(e),r=M.messageResolver(n,t);return null===r?b(n,t):r}function X(e){return b(g.value,e)||{}}tn++,t.watch(p,(()=>S(p.value)),{deep:!0,flush:"sync"}),n&&a&&(t.watch(n.locale,(e=>{c&&(m.value=e,M.locale=e,ct(M,m.value,p.value))})),t.watch(n.fallbackLocale,(e=>{c&&(p.value=e,M.fallbackLocale=p.value,ct(M,m.value,p.value))})));const q={id:tn,locale:P,fallbackLocale:A,get inheritLocale(){return c},set inheritLocale(e){c=e,e&&n&&(P.value=n.locale.value,A.value=n.fallbackLocale.value)},get availableLocales(){return Object.keys(g.value).sort()},messages:j,get modifiers(){return x},get pluralRules(){return $||{}},get isGlobal(){return o},get missingWarn(){return h},set missingWarn(e){h=e,M.missingWarn=h},get fallbackWarn(){return T},set fallbackWarn(e){T=e,M.fallbackWarn=T},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return L},set fallbackFormat(e){L=e,M.fallbackFormat=L},get warnHtmlMessage(){return W},set warnHtmlMessage(e){W=e,M.warnHtmlMessage=e},get escapeParameter(){return C},set escapeParameter(e){C=e,M.escapeParameter=e},t:G,getLocaleMessage:X,setLocaleMessage:function(e,t){Yt(e)||(l&&Xt(t),g.value[e]=t,M.messages=g.value)},mergeLocaleMessage:function(e,t){Yt(e)||(g.value[e]=b(g.value,e)||{},l&&Xt(t),ge(t,g.value[e]),M.messages=g.value)},getPostTranslationHandler:function(){return k(N)?N:null},setPostTranslationHandler:function(e){N=e,M.postTranslation=e},getMissingHandler:function(){return O},setMissingHandler:function(e){null!==e&&(w=nn(e)),O=e,M.missing=w},[Vt]:function(e){$=e,M.pluralRules=$}};return q.datetimeFormats=U,q.numberFormats=H,q.rt=function(...e){const[t,n,r]=e;if(r&&!F(r))throw Error(At.INVALID_ARGUMENT);return G(t,n,f({resolvedMessage:!0},r||{}))},q.te=function(e,t){return V((()=>{if(!e)return!1;const n=y(t)?t:m.value,r=y(t)?[n]:M.localeFallbacker(M,p.value,n);for(let t=0;t<r.length;t++)if(Ct(Y(r[t],e)))return!0;return!1}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),en,(e=>E(e)))},q.tm=function(e){const t=function(e){let t=null;const n=M.localeFallbacker(M,p.value,m.value);for(let r=0;r<n.length;r++){const a=Y(n[r],e);if(null!=a){t=a;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},q.d=function(...e){return V((t=>Reflect.apply(_t,null,[t,...e])),(()=>bt(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Je),(e=>y(e)||v(e)))},q.n=function(...e){return V((t=>Reflect.apply(vt,null,[t,...e])),(()=>yt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Je),(e=>y(e)||v(e)))},q.getDateTimeFormat=function(e){return b(_.value,e)||{}},q.setDateTimeFormat=function(e,t){Yt(e)||(_.value[e]=t,M.datetimeFormats=_.value,ht(M,e,t))},q.mergeDateTimeFormat=function(e,t){Yt(e)||(_.value[e]=f(b(_.value,e)||{},t),M.datetimeFormats=_.value,ht(M,e,t))},q.getNumberFormat=function(e){return b(d.value,e)||{}},q.setNumberFormat=function(e,t){Yt(e)||(d.value[e]=t,M.numberFormats=d.value,Et(M,e,t))},q.mergeNumberFormat=function(e,t){Yt(e)||(d.value[e]=f(b(d.value,e)||{},t),M.numberFormats=d.value,Et(M,e,t))},q[Gt]=r,q[jt]=function(...e){return V((t=>{let n;const r=t;try{r.processor=z,n=Reflect.apply(xt,null,[r,...e])}finally{r.processor=null}return n}),(()=>Dt(...e)),"translate",(t=>t[jt](...e)),(e=>[Kt(e)]),(e=>v(e)))},q[Ut]=function(...e){return V((t=>Reflect.apply(_t,null,[t,...e])),(()=>bt(...e)),"datetime format",(t=>t[Ut](...e)),Qt,(e=>y(e)||v(e)))},q[Ht]=function(...e){return V((t=>Reflect.apply(vt,null,[t,...e])),(()=>yt(...e)),"number format",(t=>t[Ht](...e)),Qt,(e=>y(e)||v(e)))},q}const an=new WeakMap;function on(e){if(!u(e))return!e;let t=an.get(e);return t||(t=new RegExp(`^(?![\\s\\S]*(?:${e.source}))`,e.flags.replace(/[gy]/g,"")),an.set(e,t),an.set(t,e)),t}function ln(e={}){const t=rn(function(e){const t=y(e.locale)?e.locale:Be,n=y(e.fallbackLocale)||v(e.fallbackLocale)||R(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=k(e.missing)?e.missing:void 0,a=!E(e.silentTranslationWarn)&&!u(e.silentTranslationWarn)||on(e.silentTranslationWarn),o=!E(e.silentFallbackWarn)&&!u(e.silentFallbackWarn)||on(e.silentFallbackWarn),l=!E(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,i=R(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,m=k(e.postTranslation)?e.postTranslation:void 0,p=!y(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,g=!!e.escapeParameterHtml,_=!E(e.sync)||e.sync;let d=e.messages;if(R(e.sharedMessages)){const t=e.sharedMessages;d=Object.keys(t).reduce(((e,n)=>{if(Yt(n))return e;const r=b(e,n)||(e[n]={});return f(r,t[n]),e}),d||{})}const{__i18n:h,__root:F,__injectWithOption:T}=e,I=e.datetimeFormats,L=e.numberFormats;return{locale:t,fallbackLocale:n,messages:d,flatJson:e.flatJson,datetimeFormats:I,numberFormats:L,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:l,fallbackFormat:s,modifiers:i,pluralRules:c,postTranslation:m,warnHtmlMessage:p,escapeParameter:g,messageResolver:e.messageResolver,inheritLocale:_,__i18n:h,__root:F,__injectWithOption:T}}(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return on(t.missingWarn)},set silentTranslationWarn(e){t.missingWarn=on(e)},get silentFallbackWarn(){return on(t.fallbackWarn)},set silentFallbackWarn(e){t.fallbackWarn=on(e)},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t:(...e)=>Reflect.apply(t.t,t,[...e]),rt:(...e)=>Reflect.apply(t.rt,t,[...e]),te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)}};return r.__extender=n,r}function sn(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Vt](t.pluralizationRules||e.pluralizationRules);const n=qt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const cn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function un(){return t.Fragment}const mn=t.defineComponent({name:"i18n-t",props:f({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>i(e)||!isNaN(e)}},cn),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||kn({useScope:e.scope,__useComponent:!0});return()=>{const l=()=>{const a=Object.keys(r).filter((e=>"_"!==e[0])),l=g();e.locale&&(l.locale=e.locale),void 0!==e.plural&&(l.plural=y(e.plural)?+e.plural:e.plural);const s=function({slots:e},n){if(1===n.length&&"default"===n[0])return(e.default?e.default():[]).reduce(((e,n)=>[...e,...n.type===t.Fragment?n.children:[n]]),[]);return n.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),g())}(n,a);return o[jt](e.keypath,s,l)},s=f(g(),a),i=y(e.tag)||F(e.tag)?e.tag:un();return F(i)?t.h(i,s,{default:l}):t.h(i,s,l())}}}),fn=mn;function pn(e,n,r,a){const{slots:o,attrs:l}=n;return()=>{const n=()=>{const t={part:!0};let n=g();e.locale&&(t.locale=e.locale),y(e.format)?t.key=e.format:F(e.format)&&(y(e.format.key)&&(t.key=e.format.key),n=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?f(g(),t,{[n]:e.format[n]}):t),g()));const l=a(e.value,t,n);let s=[t.key];return v(l)?s=l.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:l}):[e.value];var a;return v(a=r)&&!y(a[0])&&(r[0].key=`${e.type}-${t}`),r})):y(l)&&(s=[l]),s},s=f(g(),l),i=y(e.tag)||F(e.tag)?e.tag:un();return F(i)?t.h(i,s,{default:n}):t.h(i,s,n())}}const gn=t.defineComponent({name:"i18n-n",props:f({value:{type:Number,required:!0},format:{type:[String,Object]}},cn),setup(e,t){const n=e.i18n||kn({useScope:e.scope,__useComponent:!0});return pn(e,t,kt,((...e)=>n[Ht](...e)))}}),_n=gn;function dn(e){const n=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Error(At.UNEXPECTED_ERROR);const a=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),o=bn(r);return[Reflect.apply(a.t,a,[...hn(o)]),a]};return{created:(e,r)=>{const[o,l]=n(r);a&&(e.__i18nWatcher=t.watch(l.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),e.__composer=l,e.textContent=o},unmounted:e=>{a&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},beforeUpdate:(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=bn(t);e.textContent=Reflect.apply(n.t,n,[...hn(r)])}},getSSRProps:e=>{const[t]=n(e);return{textContent:t}}}}function bn(e){if(y(e))return{path:e};if(R(e)){if(!("path"in e))throw Error(At.REQUIRED_VALUE,"path");return e}throw Error(At.INVALID_VALUE)}function hn(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,l={},s=r||{};return y(n)&&(l.locale=n),i(a)&&(l.plural=a),i(o)&&(l.plural=o),[t,s,l]}const vn=o("global-vue-i18n");function kn(e={}){const n=Zt();if(null==n)throw Error(At.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(At.NOT_INSTALLED);const r=function(e){const n=t.inject(e.isCE?vn:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?At.NOT_INSTALLED_WITH_PROVIDE:At.UNEXPECTED_ERROR);return n}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),o=Bt(n),l=function(e,t){return m(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===l)return Jt(a,e,o),a;if("parent"===l){let t=yn(r,n,e.__useComponent);return null==t&&(t=a),t}if("isolated"===l){if("composition"!==r.mode)throw Error(At.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const o=r,l=f({},e),s=yn(r,n);l.__root=s||a;const i=rn(l);o.__composerExtend&&(i[zt]=o.__composerExtend(i));return t.getCurrentScope()&&t.onScopeDispose((()=>{const e=i[zt];e&&(e(),delete i[zt])})),i}const s=r;let i=s.__getInstance(n);if(null==i){const r=f({},e);"__i18n"in o&&(r.__i18n=o.__i18n),a&&(r.__root=a),i=rn(r),s.__composerExtend&&(i[zt]=s.__composerExtend(i)),function(e,n,r){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=r;e.__deleteInstance(n);const a=t[zt];a&&(a(),delete t[zt])}),n)}(s,n,i),s.__setInstance(n,i)}return i}function yn(e,t,n=!1){let r=null;const a=t.root;let o=function(e,t=!1){if(null==e)return null;return t&&e.vnode.ctx||e.parent}(t,n);for(;null!=o;){const t=e;if("composition"===e.mode)r=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(r=e.__composer,n&&r&&!r[Gt]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}const En=["locale","fallbackLocale","availableLocales"],Fn=["t","rt","d","n","tm","te"];const Tn=t.defineComponent({name:"i18n-d",props:f({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},cn),setup(e,t){const n=e.i18n||kn({useScope:e.scope,__useComponent:!0});return pn(e,t,dt,((...e)=>n[Ut](...e)))}}),In=Tn;return Ze=function(e,t){{if(!_e(e))return()=>e;const t=e.cacheKey;if(t){const n=Ce[t];return n||(Ce[t]=we(e))}return we(e)}},Qe=function(e,t){if(!F(e))return null;let n=ze.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,i,c=-1,u=0,m=0;const f=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,a="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===r?r=a:r+=a},f[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===r)return!1;if(r=Ge(r),!1===r)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!p()){if(o=Ve(n),i=Ue[u],l=i[o]||i.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=f[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&ze.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=n[o];if(Re.includes(e)&&_e(a))return null;if(!F(a))return null;if(!d(a,e))return null;const t=a[e];if(void 0===t)return null;if(k(a))return null;a=t,o++}return a},et=function(e,t,n){const r=y(n)?n:Be,a=e;let o;F(t)?(a.__localeChainObjectCache||(a.__localeChainObjectCache=new WeakMap),o=a.__localeChainObjectCache.get(t),o||(o=new Map,a.__localeChainObjectCache.set(t,o))):(a.__localeChainCache||(a.__localeChainCache=new Map),o=a.__localeChainCache.get(t),o||(o=new Map,a.__localeChainCache.set(t,o)));const l=o.get(r);if(l)return l;const s=[];let i=[n];for(;v(i);)i=Se(s,i,t);const c=v(t)||!R(t)?t:t.default?t.default:null;return i=y(c)?[c]:c,v(i)&&Se(s,i,!1),o.set(r,s),s},e.DatetimeFormat=Tn,e.I18nD=In,e.I18nInjectionKey=vn,e.I18nN=_n,e.I18nT=fn,e.NumberFormat=gn,e.Translation=mn,e.VERSION=St,e.createI18n=function(e={}){const n=!E(e.legacy)||e.legacy,r=!E(e.globalInjection)||e.globalInjection,a=new Map,[l,s]=function(e,n){const r=t.effectScope(),a=n?r.run((()=>ln(e))):r.run((()=>rn(e)));if(null==a)throw Error(At.UNEXPECTED_ERROR);return[r,a]}(e,n),i=o(""),c={get mode(){return n?"legacy":"composition"},install(e,...a){if(e.__VUE_I18N_SYMBOL__=i,e.provide(e.__VUE_I18N_SYMBOL__,c),R(a[0])){const e=a[0];c.__composerExtend=e.__composerExtend,c.__vueI18nExtend=e.__vueI18nExtend}let o=null;!n&&r&&(o=function(e,n){const r=Object.create(null);En.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(At.UNEXPECTED_ERROR);const o=t.isRef(a.value)?{get:()=>a.value.value,set(e){a.value.value=e}}:{get:()=>a.get&&a.get()};Object.defineProperty(r,e,o)})),e.config.globalProperties.$i18n=r,Fn.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(At.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}));const a=()=>{delete e.config.globalProperties.$i18n,Fn.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return a}(e,c.global)),function(e,t,...n){const r=R(n[0])?n[0]:{};(!E(r.globalInstall)||r.globalInstall)&&([mn.name,"I18nT"].forEach((t=>e.component(t,mn))),[gn.name,"I18nN"].forEach((t=>e.component(t,gn))),[Tn.name,"I18nD"].forEach((t=>e.component(t,Tn)))),e.directive("t",dn(t))}(e,c,...a),n&&e.mixin(function(e,t,n){return{beforeCreate(){const r=Zt();if(!r)throw Error(At.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=f({},a.i18n);if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=sn(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=ln(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=sn(e,a);else{this.$i18n=ln({__i18n:a.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;a.__i18nGlobal&&Jt(t,a,a),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const e=Zt();if(!e)throw Error(At.UNEXPECTED_ERROR);const t=this.$i18n;t&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t?.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n)}}}(s,s.__composer,c));const l=e.unmount;e.unmount=()=>{o&&o(),c.dispose(),l()}},get global(){return s},dispose(){l.stop()},__instances:a,__getInstance:function(e){return a.get(e)||null},__setInstance:function(e,t){a.set(e,t)},__deleteInstance:function(e){a.delete(e)}};return c},e.useI18n=kn,e.vTDirective=dn,e}({},Vue);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-i18n v11.4.21
2
+ * vue-i18n v11.4.22
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -16,7 +16,7 @@ import { setupDevtoolsPlugin } from '@vue/devtools-api';
16
16
  *
17
17
  * @VueI18nGeneral
18
18
  */
19
- const VERSION = '11.4.21';
19
+ const VERSION = '11.4.22';
20
20
  /**
21
21
  * This is only called in esm-bundler builds.
22
22
  * istanbul-ignore-next
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * vue-i18n v11.4.21
2
+ * vue-i18n v11.4.22
3
3
  * (c) 2026 kazuya kawaguchi
4
4
  * Released under the MIT License.
5
5
  */
@@ -15,7 +15,7 @@ import { getCurrentInstance as getCurrentInstance$1, createVNode, Text, computed
15
15
  *
16
16
  * @VueI18nGeneral
17
17
  */
18
- const VERSION = '11.4.21';
18
+ const VERSION = '11.4.22';
19
19
  /**
20
20
  * This is only called in esm-bundler builds.
21
21
  * istanbul-ignore-next
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-i18n",
3
- "version": "11.4.21",
3
+ "version": "11.4.22",
4
4
  "description": "Internationalization plugin for Vue.js",
5
5
  "keywords": [
6
6
  "i18n",
@@ -36,9 +36,9 @@
36
36
  "types": "dist/vue-i18n.d.ts",
37
37
  "dependencies": {
38
38
  "@vue/devtools-api": "^6.5.0",
39
- "@intlify/devtools-types": "11.4.21",
40
- "@intlify/core-base": "11.4.21",
41
- "@intlify/shared": "11.4.21"
39
+ "@intlify/shared": "11.4.22",
40
+ "@intlify/core-base": "11.4.22",
41
+ "@intlify/devtools-types": "11.4.22"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "vue": "^3.0.0"