UNPKG

vue-i18n

Version:
7 lines • 58 kB
/*!
  * vue-i18n v11.4.23
  * (c) 2026 kazuya kawaguchi
  * Released under the MIT License.
  */
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),s=(e,t,n)=>l({l:e,k:t,s:n}),l=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]"===I(e),u=e=>"[object RegExp]"===I(e),f=e=>C(e)&&0===Object.keys(e).length,m=Object.assign,p=Object.create,d=(e=null)=>p(e),_=Object.prototype.hasOwnProperty;function g(e,t){return _.call(e,t)}function h(e,t){const n=e[t];return g(e,t)?n:void 0}function b(e){return g(Object.prototype,e)}const E=Array.isArray,k=e=>"function"==typeof e,L=e=>"string"==typeof e,y=e=>"boolean"==typeof e,v=e=>null!==e&&"object"==typeof e,N=e=>v(e)&&k(e.then)&&k(e.catch),T=Object.prototype.toString,I=e=>T.call(e),C=e=>"[object Object]"===I(e),O=e=>null==e?"":E(e)||C(e)&&e.toString===T?JSON.stringify(e,null,2):String(e);function A(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function x(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function P(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 R=/^javascript:/i,S=/^(?:href|xlink:href|src|action|formaction)$/i,F=/&#(?:x([0-9a-f]+)|(\d+));?/gi,w=/&(?:Tab|NewLine);/g,D=/&colon;?/gi,M=/[\u0000-\u0020\u007f-\u009f]/g,$=/^on\w/i,W=/^srcdoc$/i,U=/^(?:base|animate|set|script|plaintext)$/i,j=/^(?:iframe|noembed|noframes|noscript|style|textarea|title|xmp)$/i,H=/<(\/?)([a-z][^\t\n\f\r />]*)/iy,V=/([\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,X=/<!--(?:>|->|[\s\S]*?--!?>)/y;function Y(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 G(e){const t=e.replace(F,Y).replace(w,"").replace(D,":").replace(M,"");return R.test(t)}function K(e,t){if(S.test(e)&&G(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,s=t.lastIndex-1;let l=s+1,c=1,i=null;for(;l<e.length;l++){const t=e[l];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(s+1,l).trim(),f=u.startsWith('"')&&u.endsWith('"')||u.startsWith("'")&&u.endsWith("'")?u.slice(1,-1).trim():u;r+=e.slice(a,o),r+=G(f)?"url(about:blank)":e.slice(o,l+1),a=l+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 z(e){return e.replace(/</g,"&lt;")}function B(e,t,n,r){let a=e;if($.test(e)?(r.eventHandler=!0,a=`&#111;n${e.slice(2)}`):W.test(e)&&(r.srcdoc=!0,a=`&#115;${e.slice(1)}`),void 0===t)return a;const o=n||"";return`${a}=${o}${K(e,t)}${o}`}const J=0,q=1,Q=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)$/,ee=/^(?: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)$/,te=/^(?: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)$/,ne=/^(?:applet|caption|html|table|td|th|marquee|object|template|button)$/,re=/^(?:foreignobject|desc|title)$/,ae=/^(?:foreignobject|desc|mi|mo|mn|ms|mtext|annotation-xml)$/,oe=/^(?:mi|mo|mn|ms|mtext)$/,se=/^(?:text\/html|application\/xhtml\+xml)$/i;function le(e){return e.replace(/[A-Z]+/g,(e=>e.toLowerCase()))}function ce(e,t,n){let r="";for(let a=e.length-1;a>=t;a--){const t=e[a];t.namespace===J&&"form"===t.name?n[t.part]=z(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!==J&&!e[n-1].integration;)n--;return ce(e,n,t)}function ue(e,t,n,r,a){const o=t.length+1;let s="";const l=e[e.length-1];if(function(e,t){return!!e&&e.namespace!==J&&(!e.integration||oe.test(e.name)&&("mglyph"===t||"malignmark"===t))&&!("annotation-xml"===e.name&&"svg"===t)}(l,n)){if(!function(e,t){return ee.test(e)||"font"===e&&(t.has("color")||t.has("face")||t.has("size"))}(n,r))return a||e.push({name:n,namespace:l.namespace,integration:l.namespace===q?re.test(n):oe.test(n)||"annotation-xml"===n&&se.test((r.get("encoding")||"").replace(F,Y)),part:o}),s;s=ie(e,t)}if(te.test(n))for(let c=e.length-1;c>=0;c--){const n=e[c];if(n.namespace===J?ne.test(n.name):n.integration)break;if(n.namespace===J&&"p"===n.name){s+=ce(e,c,t);break}}if(!ae.test(n))return"svg"===n||"math"===n?a||e.push({name:n,namespace:"svg"===n?q:Q,integration:!1,part:o}):Z.test(n)||e.push({name:n,namespace:J,integration:!1,part:o}),s}function fe(e,t,n){let r="";"p"!==n&&"br"!==n||(r=ie(e,t));let a=e.length-1;for(;a>=0&&e[a].namespace!==J&&e[a].name!==n;)a--;if(a>=0&&e[a].namespace!==J);else for(;a>=0&&(e[a].namespace!==J||e[a].name!==n);)a--;return a<0?"br"===n||"p"===n?r:void 0:(r+=ce(e,a+1,t),e.length=a,r)}function me(e,t,n){H.lastIndex=t;const r=H.exec(e);if(!r)return;const[,a,o]=r;let s=r[0];const l=new Map;let c;for(V.lastIndex=H.lastIndex;c=V.exec(e);){const[r,i,u,f,m,p,d,_]=c;if(u){const n=V.lastIndex;return[a?e.slice(t,n):s+r,o,n,!a&&i.endsWith("/"),l]}if(m&&!d)break;if(!a){const e=m?p:_,t=le(f);l.has(t)||l.set(t,e||""),s+=i+B(f,e,m,n)}}return[s,o,-1,!1,l]}function pe(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 de=e=>!v(e)||E(e);function _e(e,t){if(de(e)||de(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(E(a)){const e=[];e.length=a.length,t[r]=e,n.push({src:a,des:e})}else v(a)?(v(t[r])&&!E(t[r])||(t[r]=d()),n.push({src:a,des:t[r]})):t[r]=a}))}}function ge(e,t,n){return{start:e,end:t}}const he={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14};function be(e){throw e}const Ee=" ",ke="\r",Le="\n",ye=String.fromCharCode(8232),ve=String.fromCharCode(8233);function Ne(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>t[e]===ke&&t[e+1]===Le,l=e=>t[e]===ve,c=e=>t[e]===ye,i=e=>s(e)||(e=>t[e]===Le)(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?Le:t[e];function f(){return o=0,i(n)&&(r++,a=0),s(n)&&n++,n++,a++,t[n]}return{index:()=>n,line:()=>r,column:()=>a,peekOffset:()=>o,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+o),next:f,peek:function(){return s(n+o)&&o++,o++,t[n+o]},reset:function(){n=0,r=1,a=1,o=0},resetPeek:function(e=0){o=e},skipToPeek:function(){const e=n+o;for(;e!==n;)f();o=0}}}const Te=void 0,Ie="\t",Ce="'";function Oe(e,t={}){const n=!1!==t.location,r=Ne(e),a=()=>r.index(),o=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},s=o(),l=a(),c={currentType:13,offset:l,startLoc:s,endLoc:s,lastType:13,lastOffset:l,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},i=()=>c,{onError:u}=t;function f(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=ge(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,13);function p(e,t){return e.currentChar()===t?(e.next(),t):(he.EXPECTED_TOKEN,o(),"")}function d(e){let t="";for(;e.currentPeek()===Ee||e.currentPeek()===Le;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=d(e);return e.skipToPeek(),t}function g(e){if(e===Te)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function h(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===Te)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function E(e,t=!0){const n=(t=!1,r="")=>{const a=e.currentPeek();return"{"===a?t:"@"!==a&&a?"|"===a?!(r===Ee||r===Le):a===Ee?(e.peek(),n(!0,Ee)):a!==Le||(e.peek(),n(!0,Le)):t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===Te?Te:t(n)?(e.next(),n):null}function L(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function y(e){return k(e,L)}function v(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function N(e){return k(e,v)}function T(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function I(e){return k(e,T)}function C(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function O(e){return k(e,C)}function A(e){let t="",n="";for(;t=I(e);)n+=t;return n}function x(e){return e!==Ce&&e!==Le}function P(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return R(e,t,4);case"U":return R(e,t,6);default:return he.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function R(e,t,n){p(e,t);let r="";for(let a=0;a<n;a++){const t=O(e);if(!t){he.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function S(e){return"{"!==e&&"}"!==e&&e!==Ee&&e!==Le}function F(e){_(e);let t="",n="";for(;t=k(e,S);)n+=t;return n}function w(e){return!("{"===e||"@"===e||"|"===e||"("===e||")"===e||e===Ee||e===Ie||e===Le)}function D(e){_(e);const t=p(e,"|");return _(e),t}function M(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(he.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(he.EMPTY_PLACEHOLDER,o()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(he.UNTERMINATED_CLOSING_BRACE,o()),n=$(e,t)||m(t),t.braceNest=0,n;default:{let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&(he.UNTERMINATED_CLOSING_BRACE,o()),n=f(t,1,D(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return he.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,W(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,4,function(e){_(e);let t="",n="";for(;t=N(e);)n+=t;const r=e.currentChar();if(r&&"}"!==r&&r!==Te&&r!==Ee&&r!==Le&&" "!==r){const t=F(e);return he.INVALID_TOKEN_IN_PLACEHOLDER,o(),n+t}return e.currentChar()===Te&&(he.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),_(e),n;if(a=h(e,t))return n=f(t,5,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${A(e)}`):t+=A(e),e.currentChar()===Te&&(he.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),_(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=e.currentPeek()===Ce;return e.resetPeek(),r}(e,t))return n=f(t,6,function(e){_(e),p(e,"'");let t="",n="";for(;t=k(e,x);)n+="\\"===t?P(e):t;const r=e.currentChar();return r===Le||r===Te?(he.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),r===Le&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!s)return n=f(t,12,F(e)),he.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,_(e),n;break}}return n}function $(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||a!==Le&&a!==Ee||(he.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=f(t,7,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),f(t,8,".");case":":return _(e),e.next(),f(t,9,":");default:return b(e)?(r=f(t,1,D(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(7!==n&&11!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),$(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),f(t,11,function(e){let t="",n="";for(;t=y(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(9!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?g(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===Ee||!t)&&(t===Le?(e.peek(),r()):E(e,!1))},a=r();return e.resetPeek(),a}(e,t)?(_(e),"{"===a?M(e,t)||r:f(t,10,function(e){for(;e.currentChar()===Ie;)e.next();let t,n="";for(;(t=e.currentChar())&&w(t);)n+=t,e.next();return n}(e))):(7===n&&(he.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,W(e,t))}}function W(e,t){let n={type:13};if(t.braceNest>0)return M(e,t)||m(t);if(t.inLinked)return $(e,t)||m(t);switch(e.currentChar()){case"{":return M(e,t)||m(t);case"}":return he.UNBALANCED_CLOSING_BRACE,o(),e.next(),f(t,3,"}");case"@":return $(e,t)||m(t);default:if(b(e))return n=f(t,1,D(e)),t.braceNest=0,t.inLinked=!1,n;if(E(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("\\"===n){const r=e.peek();"{"===r||"}"===r||"@"===r||"|"===r||"\\"===r?(t+=n+r,e.next(),e.next()):(e.resetPeek(),t+=n,e.next())}else{if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===Ee||n===Le)if(E(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}}return t}(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:s}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=s,c.offset=a(),c.startLoc=o(),r.currentChar()===Te?f(c,13):W(r,c)},currentOffset:a,currentPosition:o,context:i}}const Ae=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,xe=/\\([\\@{}|])/g;function Pe(e,t){return t}function Re(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function Se(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e};return t&&(a.start=n,a.end=n,a.loc={start:r,end:r}),a}function a(e,n,r,a){t&&(e.end=n,e.loc&&(e.loc.end=r))}function o(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t.replace(xe,Pe),a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(5,o,s);return l.index=parseInt(t,10),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(4,o,s);return l.key=t,e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(9,o,s);return l.value=t.replace(Ae,Re),e.nextToken(),a(l,e.currentOffset(),e.currentPosition()),l}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(8===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:s}=n,l=r(8,o,s);return 11!==t.type?(he.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(he.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,Fe(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(9!==o.type&&(he.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Fe(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 10:null==o.value&&(he.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Fe(o)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}(e,o.value||"");break;case 4:null==o.value&&(he.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Fe(o)),n.key=l(e,o.value||"");break;case 5:null==o.value&&(he.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Fe(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(he.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Fe(o)),n.key=c(e,o.value||"");break;default:{he.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const s=e.context(),l=r(7,s.offset,s.startLoc);return l.value="",a(l,s.offset,s.startLoc),n.key=l,a(n,s.offset,s.startLoc),{nextConsumeToken:o,node:n}}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function u(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let u=null;do{const r=u||e.nextToken();switch(u=null,r.type){case 0:null==r.value&&(he.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Fe(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(he.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Fe(r)),n.items.push(s(e,r.value||""));break;case 4:null==r.value&&(he.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Fe(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&(he.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,Fe(r)),n.items.push(c(e,r.value||""));break;case 7:{const t=i(e);n.items.push(t.node),u=t.nextConsumeToken||null;break}}}while(13!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e){const t=e.context(),{offset:n,startLoc:o}=t,s=u(e);return 13===t.currentType?s:function(e,t,n,o){const s=e.context();let l=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=u(e);l||(l=0===t.items.length),c.cases.push(t)}while(13!==s.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,s)}return{parse:function(n){const o=Oe(n,m({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=f(o),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==s.currentType&&(he.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function Fe(e){if(13===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function we(e,t){for(let n=0;n<e.length;n++)De(e[n],t)}function De(e,t){switch(e.type){case 1:we(e.cases,t),t.helper("plural");break;case 2:we(e.items,t);break;case 6:De(e.key,t),t.helper("linked"),t.helper("type");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function Me(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&De(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function $e(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=A(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}function We(e){switch(e.t=e.type,e.type){case 0:{const t=e;We(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)We(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)We(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;We(t.key),t.k=t.key,delete t.key,t.modifier&&(We(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function Ue(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?Ue(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const a=t.cases.length;for(let n=0;n<a&&(Ue(e,t.cases[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const a=t.items.length;for(let o=0;o<a&&(Ue(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ue(e,t.key),t.modifier?(e.push(", "),Ue(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}const je=(e,t={})=>{const n=L(t.mode)?t.mode:"normal",r=L(t.filename)?t.filename:"message.intl";t.sourceMap;const a=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=function(e,t){const{filename:n,breakLineCode:r,needIndent:a}=t,o=!1!==t.location,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};function l(e,t){s.code+=e}function c(e,t=!0){const n=t?r:"";l(a?n+"  ".repeat(e):n)}return o&&e.loc&&(s.source=e.loc.source),{context:()=>s,push:l,indent:function(e=!0){const t=++s.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--s.indentLevel;e&&c(t)},newline:function(){c(s.indentLevel)},helper:e=>`_${e}`,needIndent:()=>s.needIndent}}(e,{filename:r,breakLineCode:a,needIndent:o});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${A(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),Ue(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:c,map:i}=l.context();return{ast:e,code:c,map:i?i.toJSON():void 0}};function He(e,t={}){const n=m({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,s=Se(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?$e(t):t.cases.forEach((e=>$e(e)))}(s),a&&We(s),{ast:s,code:""}):(Me(s,n),je(s,n))}function Ve(e){return v(e)&&0===Be(e)&&(g(e,"b")||g(e,"body"))}const Xe=["b","body"];const Ye=["c","cases"];const Ge=["s","static"];const Ke=["i","items"];const ze=["t","type"];function Be(e){return et(e,ze)}const Je=["v","value"];function qe(e,t){const n=et(e,Je);if(null!=n)return n;throw nt(t)}const Qe=["m","modifier"];const Ze=["k","key"];function et(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];if(g(e,n)&&null!=e[n])return e[n]}return n}const tt=[...Xe,...Ye,...Ge,...Ke,...Ze,...Qe,...Je,...ze];function nt(e){return new Error(`unhandled node type: ${e}`)}function rt(e){return t=>function(e,t){const n=(r=t,et(r,Xe));var r;if(null==n)throw nt(0);if(1===Be(n)){const t=function(e){return et(e,Ye,[])}(n);return e.plural(t.reduce(((t,n)=>[...t,at(e,n)]),[]))}return at(e,n)}(t,e)}function at(e,t){const n=function(e){return et(e,Ge)}(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=function(e){return et(e,Ke,[])}(t).reduce(((t,n)=>[...t,ot(e,n)]),[]);return e.normalize(n)}}function ot(e,t){const n=Be(t);switch(n){case 3:case 9:case 7:case 8:return qe(t,n);case 4:{const r=t;if(g(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(g(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw nt(n)}case 5:{const r=t;if(g(r,"i")&&c(r.i))return e.interpolate(e.list(r.i));if(g(r,"index")&&c(r.index))return e.interpolate(e.list(r.index));throw nt(n)}case 6:{const n=t,r=function(e){return et(e,Qe)}(n),a=function(e){const t=et(e,Ze);if(t)return t;throw nt(6)}(n);return e.linked(ot(e,a),r?ot(e,r):void 0,e.type)}default:throw new Error(`unhandled node on format message part: ${n}`)}}const st=e=>e;let lt=d();const ct={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 it(e,t){return null!=t.locale?ft(t.locale):ft(e.locale)}let ut;function ft(e){if(L(e))return e;if(k(e)){if(e.resolvedOnce&&null!=ut)return ut;if("Function"===e.constructor.name){const t=e();if(N(t))throw Error(ct.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return ut=t}throw Error(ct.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(ct.NOT_SUPPORT_LOCALE_TYPE)}function mt(e,t,n){return[...new Set([n,...E(t)?t:v(t)?Object.keys(t).filter((e=>"default"!==e)):L(t)?[t]:[n]])]}function pt(e,t,n){let r=!0;for(let a=0;a<t.length&&y(r);a++){const o=t[a];L(o)&&(r=dt(e,t[a],n))}return r}function dt(e,t,n){let r;const a=t.split("-");do{r=_t(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function _t(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),(E(n)||C(n))&&n[a]&&(r=n[a])}return r}const gt=[];gt[0]={w:[0],i:[3,0],"[":[4],o:[7]},gt[1]={w:[1],".":[2],"[":[4],o:[7]},gt[2]={w:[2],i:[3,0],0:[3,0]},gt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},gt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},gt[5]={"'":[4,0],o:8,l:[5,0]},gt[6]={'"':[4,0],o:8,l:[6,0]};const ht=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function bt(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 Et(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,ht.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 kt=new Map;function Lt(e,t){return v(e)?h(e,t):null}const yt="11.4.23",vt=-1,Nt="en-US",Tt="",It=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let Ct,Ot,At;let xt=null;const Pt=e=>{xt=e},Rt=()=>xt;let St=0;function Ft(e={}){const t=k(e.onWarn)?e.onWarn:x,n=L(e.version)?e.version:yt,r=L(e.locale)||k(e.locale)?e.locale:Nt,a=k(r)?Nt:r,o=E(e.fallbackLocale)||C(e.fallbackLocale)||L(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=C(e.messages)?e.messages:wt(a),l=C(e.datetimeFormats)?e.datetimeFormats:wt(a),c=C(e.numberFormats)?e.numberFormats:wt(a),i=m(d(),e.modifiers,{upper:(e,t)=>"text"===t&&L(e)?e.toUpperCase():"vnode"===t&&v(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&L(e)?e.toLowerCase():"vnode"===t&&v(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&L(e)?It(e):"vnode"===t&&v(e)&&"__v_isVNode"in e?It(e.children):e}),f=e.pluralRules||d(),p=k(e.missing)?e.missing:null,_=!y(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,g=!y(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,b=!!e.unresolving,N=k(e.postTranslation)?e.postTranslation:null,T=C(e.processor)?e.processor:null,I=!y(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,A=k(e.messageCompiler)?e.messageCompiler:Ct,P=k(e.messageResolver)?e.messageResolver:Ot||Lt,R=k(e.localeFallbacker)?e.localeFallbacker:At||mt,S=v(e.fallbackContext)?e.fallbackContext:void 0,F=e,w=v(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,D=v(F.__numberFormatters)?F.__numberFormatters:new Map,M=v(F.__meta)?F.__meta:{};St++;const $={version:n,cid:St,locale:r,fallbackLocale:o,messages:s,modifiers:i,pluralRules:f,missing:p,missingWarn:_,fallbackWarn:g,fallbackFormat:h,unresolving:b,postTranslation:N,processor:T,warnHtmlMessage:I,escapeParameter:O,messageCompiler:A,messageResolver:P,localeFallbacker:R,fallbackContext:S,onWarn:t,__meta:M};return $.datetimeFormats=l,$.numberFormats=c,$.__datetimeFormatters=w,$.__numberFormatters=D,$}const wt=e=>({[e]:d()});function Dt(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return L(r)?r:t}return t}function Mt(e,t){const n=e;v(t)?n.__localeChainObjectCache?.delete(t):n.__localeChainCache?.delete(t)}function $t(e,t,n){Mt(e,n),e.fallbackContext&&Mt(e.fallbackContext,n),e.localeFallbacker(e,n,t)}function Wt(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 Ut(e,t,n,r,a,o,s){const{fallbackLocale:l,localeFallbacker:c,onWarn:i}=e,u=c(e,l,n);for(let f=0;f<u.length;f++){const n=u[f],a=h(h(r,n)||{},t);if(C(a)&&L(n))return n;Dt(e,t,n,0,s)}return null}function jt(e,t,n){let r=`${e}__${t}`;return C(n)&&!f(n)&&(r=`${r}__${JSON.stringify(n)}`),r}function Ht(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 Vt(e,t,n,r){const[,a,o,s]=e;let l=n;return L(a)?t.key=a:C(a)&&Object.keys(a).forEach((e=>{r.includes(e)?l[e]=a[e]:t[e]=a[e]})),L(o)?t.locale=o:C(o)&&(l=o),C(s)&&(l=s),l}function Xt(e,...t){const{datetimeFormats:n,unresolving:r,onWarn:a}=e,{__datetimeFormatters:o}=e;if(!L(t[0])&&!i(t[0])&&!c(t[0]))return Tt;const[s,l,u,f]=Gt(...t),p=(y(u.missingWarn)?u.missingWarn:e.missingWarn,y(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,!!u.part),d=it(e,u);if(!L(s)||""===s){const e=new Intl.DateTimeFormat(d.replace(/!/g,""),f);return p?e.formatToParts(l):e.format(l)}const _=Ut(e,s,d,n,0,0,"datetime format");if(!L(_))return r?vt:s;const g=n[_][s],h=jt(_,s,f);let b=o.get(h);return b||(b=new Intl.DateTimeFormat(_,m({},g,f)),o.set(h,b)),p?b.formatToParts(l):b.format(l)}const Yt=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Gt(...e){const[t]=e,n=d(),r=d();let a;if(L(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ct.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(ct.INVALID_ISO_DATE_ARGUMENT)}}else if(i(t)){if(isNaN(t.getTime()))throw Error(ct.INVALID_DATE_ARGUMENT);a=t}else{if(!c(t))throw Error(ct.INVALID_ARGUMENT);a=t}const o=Vt(e,n,r,Yt);return[n.key||"",a,n,o]}function Kt(e,t,n){Ht(e.__datetimeFormatters,t,n)}function zt(e,...t){const{numberFormats:n,unresolving:r,onWarn:a}=e,{__numberFormatters:o}=e;if(!c(t[0]))return Tt;const[s,l,i,u]=Jt(...t),f=(y(i.missingWarn)?i.missingWarn:e.missingWarn,y(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,!!i.part),p=it(e,i);if(!L(s)||""===s){const e=new Intl.NumberFormat(p.replace(/!/g,""),u);return f?e.formatToParts(l):e.format(l)}const d=Ut(e,s,p,n,0,0,"number format");if(!L(d))return r?vt:s;const _=n[d][s],g=jt(d,s,u);let h=o.get(g);return h||(h=new Intl.NumberFormat(d,m({},_,u)),o.set(g,h)),f?h.formatToParts(l):h.format(l)}const Bt=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Jt(...e){const[t]=e,n=d(),r=d();if(!c(t))throw Error(ct.INVALID_ARGUMENT);const a=t,o=Vt(e,n,r,Bt);return[n.key||"",a,n,o]}function qt(e,t,n){Ht(e.__numberFormatters,t,n)}const Qt=e=>e,Zt=e=>"",en="text",tn=e=>0===e.length?"":A(e),nn=O;function rn(e,t){return e=Math.abs(e),2===t?1===e?0:1:Math.min(e,2)}function an(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=L(t)&&e.pluralRules&&k(h(e.pluralRules,t))?e.pluralRules[t]:rn,a=r===rn?void 0:rn,o=e.list||[],s=e.named||d(),l=c(e.pluralIndex),i=t=>{const n=b(t)?h(s,t):s[t];return!l||n||"count"!==t&&"n"!==t?n:e.pluralIndex};function u(t,n){const r=k(e.messages)?e.messages(t,!!n):!!v(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):Zt)}const f=k(e.processor?.normalize)?e.processor.normalize:tn,p=k(e.processor?.interpolate)?e.processor.interpolate:nn,_={list:e=>o[e],named:i,plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",s="";1===n.length?v(r)?(s=r.modifier||s,o=r.type||o):L(r)&&(s=r||s):2===n.length&&(L(r)&&(s=r||s),L(a)&&(o=a||o));const l=u(t,!0)(_),c=""===l||void 0===l?t:l,i="vnode"===o&&E(c)&&s?c[0]:c;if(!s)return i;const f=(m=s,e.modifiers?h(e.modifiers,m):Qt);var m;return k(f)?f(i,o):i},message:u,type:L(e.processor?.type)?e.processor.type:en,interpolate:p,normalize:f,values:m(d(),o,s,l?{count:i("count"),n:i("n")}:{})};return _}const on=()=>"",sn=e=>k(e),ln=e=>L(e)||Ve(e)||sn(e);function cn(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:l}=e,[i,u]=pn(...t),f=y(u.missingWarn)?u.missingWarn:e.missingWarn,p=y(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,_=y(u.escapeParameter)?u.escapeParameter:e.escapeParameter,g=!!u.resolvedMessage,b=L(u.default)||y(u.default)?y(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:null,N=n||null!=b&&(L(b)||k(b)),T=it(e,u);_&&function(e){E(e.list)&&(e.list=e.list.map((e=>L(e)?P(e):e)));if(v(e.named)){const t=e.named,n=d();for(const e of Object.keys(t)){const r=t[e];n[e]=L(r)?P(r):r}e.named=n}}(u);let[I,C,O]=g?[i,T,h(l,T)||d()]:fn(e,i,T,s,p,f),A=I,x=i;if(g||ln(A)||N&&(A=b,x=A),!(g||ln(A)&&L(C)))return a?vt:i;let R=!1;const S=sn(A)?A:mn(e,i,C,A,x,(()=>{R=!0}));if(R)return A;const F=function(e,t,n,r,a){const{modifiers:o,pluralRules:s,messageResolver:l,fallbackLocale:i,fallbackWarn:u,missingWarn:f,fallbackContext:p}=e,d=(r,a)=>{let o=l(n,r);if(null==o&&(p||a)){const[n,,a]=fn(p||e,r,t,i,u,f);o=n??l(a,r)}if(L(o)||Ve(o)){let n=!1;const a=mn(e,r,t,o,r,(()=>{n=!0}));return n?on:a}return sn(o)?o:on},_={locale:t,modifiers:o,pluralRules:s,messages:d},g=function(e,t){if(!t||k(e?.interpolate))return e;return m({},e,{interpolate:un})}(e.processor,a);g&&(_.processor=g);r.list&&(_.list=r.list);r.named&&(_.named=r.named);c(r.plural)&&(_.pluralIndex=r.plural);return _}(e,C,O,u,_),w=function(e,t,n){const r=t(n);return r}(0,S,an(F));let D=r?r(w,i):w;return _&&L(D)&&(D=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 s=me(e,a,t);if(s){const[l,c,i,u,f]=s;if(-1===i){t.unclosed=!0,n.push(z(e.slice(a))),o=e.length;break}if(o=i,"/"===l[1]){const e=fe(r,n,le(c));void 0===e?t.closed=!0:(e&&(t.closed=!0),n.push(e+l))}else if(U.test(c))t.element=!0,n.push(z(l));else{let a="";if(j.test(c)){const r=pe(e,i,c);if(-1===r){t.unclosed=!0,n.push(z(l));continue}a=z(e.slice(i,r)),o=r}const s=ue(r,n,le(c),f,u);void 0===s?(t.closed=!0,n.push(z(l)+a)):n.push(s,l+a)}}else X.lastIndex=a,X.test(e)?(n.push(e.slice(a,X.lastIndex)),o=X.lastIndex):(e.startsWith("\x3c!--",a)&&(t.unclosed=!0),n.push("&lt;"))}n.push(e.slice(o));for(let s=r.length-1;s>=0;s--){const e=r[s];t.closed=!0,e.namespace===J&&"form"===e.name?n[e.part]=z(n[e.part]):n.push(`</${e.name}>`)}return n.join("")}(D)),D}function un(e){return L(e)?e:P(O(e))}function fn(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m=d(),p=null;for(let _=0;_<u.length&&(f=u[_],m=h(s,f)||d(),null===(p=c(m,t))&&(p=h(m,t)),!ln(p));_++)if(!Wt(f,u)){const n=Dt(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,m]}function mn(e,t,n,r,a,o){const{messageCompiler:l,warnHtmlMessage:c}=e;if(sn(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==l){const e=()=>r;return e.locale=n,e.key=t,e}const i=l(r,function(e,t,n,r,a,o){return{locale:t,key:n,warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>s(t,n,e)}}(0,n,a,0,c,o));return i.locale=n,i.key=t,i.source=r,i}function pn(...e){const[t,n,r]=e,a=d();if(!(L(t)||c(t)||sn(t)||Ve(t)))throw Error(ct.INVALID_ARGUMENT);const o=c(t)?String(t):(sn(t),t);return c(n)?a.plural=n:L(n)?a.default=n:C(n)&&!f(n)?a.named=n:E(n)&&(a.list=n),c(r)?a.plural=r:L(r)?a.default=r:C(r)&&m(a,r),[o,a]}const dn="11.4.23",_n={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},gn=o("__translateVNode"),hn=o("__datetimeParts"),bn=o("__numberParts"),En=o("__setPluralRules"),kn=o("__injectWithOption"),Ln=o("__dispose");function yn(e){return!!b(e)}function vn(e){if(!v(e))return e;if(Ve(e))return e;for(const t in e)if(g(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]]=d()),!v(a[n[e]])){o=!0;break}if(Ve(a[n[e]])&&(tt.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 s=a[n[r]];v(s)&&vn(s)}else v(e[t])&&vn(e[t]);return e}function Nn(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=C(n)?n:E(r)?d():{[e]:d()};if(E(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;if(t){if(yn(t))return;s[t]=h(s,t)||d(),_e(n,s[t])}else _e(n,s)}else L(e)&&_e(JSON.parse(e),s)})),null==a&&o)for(const l in s)g(s,l)&&vn(s[l]);return s}function Tn(e){return e.type}function In(e,t,n){let r=v(t.messages)?t.messages:d();"__i18nGlobal"in n&&(r=Nn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),v(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(v(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function Cn(e){return t.createVNode(t.Text,null,e,0)}function On(){{const e="currentInstance";return e in r?r[e]:t.getCurrentInstance()}}function An(e){return e.scope}function xn(e,n){const r=An(e);r.active?r.run((()=>t.onScopeDispose(n))):n()}const Pn=()=>[],Rn=()=>!1;let Sn=0;function Fn(e){return(t,n,r,a)=>e(n,r,On()||void 0,a)}function wn(e={}){const{__root:n,__injectWithOption:r}=e,o=void 0===n,s=e.flatJson,l=a?t.ref:t.shallowRef;let i=!y(e.inheritLocale)||e.inheritLocale;const f=l(n&&i?n.locale.value:L(e.locale)?e.locale:Nt),p=l(n&&i?n.fallbackLocale.value:L(e.fallbackLocale)||E(e.fallbackLocale)||C(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:f.value),d=l(Nn(f.value,e)),_=l(C(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),g=l(C(e.numberFormats)?e.numberFormats:{[f.value]:{}});let b=n?n.missingWarn:!y(e.missingWarn)&&!u(e.missingWarn)||e.missingWarn,N=n?n.fallbackWarn:!y(e.fallbackWarn)&&!u(e.fallbackWarn)||e.fallbackWarn,T=n?n.fallbackRoot:!y(e.fallbackRoot)||e.fallbackRoot,I=!!e.fallbackFormat,O=k(e.missing)?e.missing:null,A=k(e.missing)?Fn(e.missing):null,x=k(e.postTranslation)?e.postTranslation:null,P=n?n.warnHtmlMessage:!y(e.warnHtmlMessage)||e.warnHtmlMessage,R=!!e.escapeParameter;const S=n?n.modifiers:C(e.modifiers)?e.modifiers:{};let F,w=e.pluralRules||n&&n.pluralRules;F=(()=>{o&&Pt(null);const t={version:dn,locale:f.value,fallbackLocale:p.value,messages:d.value,modifiers:S,pluralRules:w,missing:null===A?void 0:A,missingWarn:b,fallbackWarn:N,fallbackFormat:I,unresolving:!0,postTranslation:null===x?void 0:x,warnHtmlMessage:P,escapeParameter:R,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=_.value,t.numberFormats=g.value;const n=Ft(t);return o&&Pt(n),n})(),$t(F,f.value,p.value);const D=t.computed({get:()=>f.value,set:e=>{F.locale=e,f.value=e}});function M(e){o||(F.fallbackContext=Rt());try{return e()}finally{o||(F.fallbackContext=void 0)}}function $(e){M((()=>$t(F,f.value,e)))}const W=t.computed({get:()=>p.value,set:e=>{p.value=e,F.fallbackLocale=p.value,$(p.value)}}),U=t.computed((()=>d.value)),j=t.computed((()=>_.value)),H=t.computed((()=>g.value));const V=(e,t,r,a,o,s)=>{let l;f.value,p.value,d.value,_.value,g.value;try{0,l=M((()=>e(F)))}finally{}if("translate exists"!==r&&c(l)&&l===vt||"translate exists"===r&&!l){const[e,r]=t();return n&&T?a(n):o(e)}if(s(l))return l;throw Error(_n.UNEXPECTED_RETURN_TYPE)};function X(...e){return V((t=>Reflect.apply(cn,null,[t,...e])),(()=>pn(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>L(e)))}const Y={normalize:function(e){return e.map((e=>L(e)||c(e)||y(e)?Cn(String(e)):e))},interpolate:e=>e,type:"vnode"};function G(e,t){const n=K(e),r=F.messageResolver(n,t);return null===r?h(n,t):r}function K(e){return h(d.value,e)||{}}Sn++,t.watch(p,(()=>$(p.value)),{deep:!0,flush:"sync"}),n&&a&&(t.watch(n.locale,(e=>{i&&(f.value=e,F.locale=e,$t(F,f.value,p.value))})),t.watch(n.fallbackLocale,(e=>{i&&(p.value=e,F.fallbackLocale=p.value,$t(F,f.value,p.value))})));const z={id:Sn,locale:D,fallbackLocale:W,get inheritLocale(){return i},set inheritLocale(e){i=e,e&&n&&(D.value=n.locale.value,W.value=n.fallbackLocale.value)},get availableLocales(){return Object.keys(d.value).sort()},messages:U,get modifiers(){return S},get pluralRules(){return w||{}},get isGlobal(){return o},get missingWarn(){return b},set missingWarn(e){b=e,F.missingWarn=b},get fallbackWarn(){return N},set fallbackWarn(e){N=e,F.fallbackWarn=N},get fallbackRoot(){return T},set fallbackRoot(e){T=e},get fallbackFormat(){return I},set fallbackFormat(e){I=e,F.fallbackFormat=I},get warnHtmlMessage(){return P},set warnHtmlMessage(e){P=e,F.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,F.escapeParameter=e},t:X,getLocaleMessage:K,setLocaleMessage:function(e,t){yn(e)||(s&&vn(t),d.value[e]=t,F.messages=d.value)},mergeLocaleMessage:function(e,t){yn(e)||(d.value[e]=h(d.value,e)||{},s&&vn(t),_e(t,d.value[e]),F.messages=d.value)},getPostTranslationHandler:function(){return k(x)?x:null},setPostTranslationHandler:function(e){x=e,F.postTranslation=e},getMissingHandler:function(){return O},setMissingHandler:function(e){null!==e&&(A=Fn(e)),O=e,F.missing=A},[En]:function(e){w=e,F.pluralRules=w}};return z.datetimeFormats=j,z.numberFormats=H,z.rt=function(...e){const[t,n,r]=e;if(r&&!v(r))throw Error(_n.INVALID_ARGUMENT);return X(t,n,m({resolvedMessage:!0},r||{}))},z.te=function(e,t){return V((()=>{if(!e)return!1;const n=L(t)?t:f.value,r=L(t)?[n]:F.localeFallbacker(F,p.value,n);for(let t=0;t<r.length;t++)if(ln(G(r[t],e)))return!0;return!1}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Rn,(e=>y(e)))},z.tm=function(e){const t=function(e){let t=null;const n=F.localeFallbacker(F,p.value,f.value);for(let r=0;r<n.length;r++){const a=G(n[r],e);if(null!=a){t=a;break}}return t}(e);return null!=t?t:n&&n.tm(e)||{}},z.d=function(...e){return V((t=>Reflect.apply(Xt,null,[t,...e])),(()=>Gt(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Tt),(e=>L(e)||E(e)))},z.n=function(...e){return V((t=>Reflect.apply(zt,null,[t,...e])),(()=>Jt(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Tt),(e=>L(e)||E(e)))},z.getDateTimeFormat=function(e){return h(_.value,e)||{}},z.setDateTimeFormat=function(e,t){yn(e)||(_.value[e]=t,F.datetimeFormats=_.value,Kt(F,e,t))},z.mergeDateTimeFormat=function(e,t){yn(e)||(_.value[e]=m(h(_.value,e)||{},t),F.datetimeFormats=_.value,Kt(F,e,t))},z.getNumberFormat=function(e){return h(g.value,e)||{}},z.setNumberFormat=function(e,t){yn(e)||(g.value[e]=t,F.numberFormats=g.value,qt(F,e,t))},z.mergeNumberFormat=function(e,t){yn(e)||(g.value[e]=m(h(g.value,e)||{},t),F.numberFormats=g.value,qt(F,e,t))},z[kn]=r,z[gn]=function(...e){return V((t=>{let n;const r=t;try{r.processor=Y,n=Reflect.apply(cn,null,[r,...e])}finally{r.processor=null}return n}),(()=>pn(...e)),"translate",(t=>t[gn](...e)),(e=>[Cn(e)]),(e=>E(e)))},z[hn]=function(...e){return V((t=>Reflect.apply(Xt,null,[t,...e])),(()=>Gt(...e)),"datetime format",(t=>t[hn](...e)),Pn,(e=>L(e)||E(e)))},z[bn]=function(...e){return V((t=>Reflect.apply(zt,null,[t,...e])),(()=>Jt(...e)),"number format",(t=>t[bn](...e)),Pn,(e=>L(e)||E(e)))},z}const Dn=new WeakMap;function Mn(e){if(!u(e))return!e;let t=Dn.get(e);return t||(t=new RegExp(`^(?![\\s\\S]*(?:${e.source}))`,e.flags.replace(/[gy]/g,"")),Dn.set(e,t),Dn.set(t,e)),t}function $n(e={}){const t=wn(function(e){const t=L(e.locale)?e.locale:Nt,n=L(e.fallbackLocale)||E(e.fallbackLocale)||C(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=k(e.missing)?e.missing:void 0,a=!y(e.silentTranslationWarn)&&!u(e.silentTranslationWarn)||Mn(e.silentTranslationWarn),o=!y(e.silentFallbackWarn)&&!u(e.silentFallbackWarn)||Mn(e.silentFallbackWarn),s=!y(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,c=C(e.modifiers)?e.modifiers:{},i=e.pluralizationRules,f=k(e.postTranslation)?e.postTranslation:void 0,p=!L(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,d=!!e.escapeParameterHtml,_=!y(e.sync)||e.sync;let g=e.messages;if(C(e.sharedMessages)){const t=e.sharedMessages;g=Object.keys(t).reduce(((e,n)=>{if(yn(n))return e;const r=h(e,n)||(e[n]={});return m(r,t[n]),e}),g||{})}const{__i18n:b,__root:v,__injectWithOption:N}=e,T=e.datetimeFormats,I=e.numberFormats;return{locale:t,fallbackLocale:n,messages:g,flatJson:e.flatJson,datetimeFormats:T,numberFormats:I,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:c,pluralRules:i,postTranslation:f,warnHtmlMessage:p,escapeParameter:d,messageResolver:e.messageResolver,inheritLocale:_,__i18n:b,__root:v,__injectWithOption:N}}(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 Mn(t.missingWarn)},set silentTranslationWarn(e){t.missingWarn=Mn(e)},get silentFallbackWarn(){return Mn(t.fallbackWarn)},set silentFallbackWarn(e){t.fallbackWarn=Mn(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 Wn(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[En](t.pluralizationRules||e.pluralizationRules);const n=Nn(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 Un={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function jn(){return t.Fragment}const Hn=t.defineComponent({name:"i18n-t",props:m({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>c(e)||!isNaN(e)}},Un),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||qn({useScope:e.scope,__useComponent:!0});return()=>{const s=()=>{const a=Object.keys(r).filter((e=>"_"!==e[0])),s=d();e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=L(e.plural)?+e.plural:e.plural);const l=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}),d())}(n,a);return o[gn](e.keypath,l,s)},l=m(d(),a),c=L(e.tag)||v(e.tag)?e.tag:jn();return v(c)?t.h(c,l,{default:s}):t.h(c,l,s())}}}),Vn=Hn;function Xn(e,n,r,a){const{slots:o,attrs:s}=n;return()=>{const n=()=>{const t={part:!0};let n=d();e.locale&&(t.locale=e.locale),L(e.format)?t.key=e.format:v(e.format)&&(L(e.format.key)&&(t.key=e.format.key),n=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?m(d(),t,{[n]:e.format[n]}):t),d()));const s=a(e.value,t,n);let l=[t.key];return E(s)?l=s.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];var a;return E(a=r)&&!L(a[0])&&(r[0].key=`${e.type}-${t}`),r})):L(s)&&(l=[s]),l},l=m(d(),s),c=L(e.tag)||v(e.tag)?e.tag:jn();return v(c)?t.h(c,l,{default:n}):t.h(c,l,n())}}const Yn=t.defineComponent({name:"i18n-n",props:m({value:{type:Number,required:!0},format:{type:[String,Object]}},Un),setup(e,t){const n=e.i18n||qn({useScope:e.scope,__useComponent:!0});return Xn(e,t,Bt,((...e)=>n[bn](...e)))}}),Gn=Yn;function Kn(e){const n=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Error(_n.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=zn(r);return[Reflect.apply(a.t,a,[...Bn(o)]),a]};return{created:(e,r)=>{const[o,s]=n(r);if(a){const n=An(r.instance.$);n.active&&(e.__i18nWatcher=n.run((()=>t.watch(s.locale,(()=>{r.instance&&r.instance.$forceUpdate()})))))}e.__composer=s,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=zn(t);e.textContent=Reflect.apply(n.t,n,[...Bn(r)])}},getSSRProps:e=>{const[t]=n(e);return{textContent:t}}}}function zn(e){if(L(e))return{path:e};if(C(e)){if(!("path"in e))throw Error(_n.REQUIRED_VALUE,"path");return e}throw Error(_n.INVALID_VALUE)}function Bn(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,s={},l=r||{};return L(n)&&(s.locale=n),c(a)&&(s.plural=a),c(o)&&(s.plural=o),[t,l,s]}const Jn=o("global-vue-i18n");function qn(e={}){const n=On();if(null==n)throw Error(_n.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(_n.NOT_INSTALLED);const r=function(e){const n=t.inject(e.isCE?Jn:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?_n.NOT_INSTALLED_WITH_PROVIDE:_n.UNEXPECTED_ERROR);return n}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),o=Tn(n),s=function(e,t){return f(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===s)return In(a,e,o),a;if("parent"===s){let t=Qn(r,n,e.__useComponent);return null==t&&(t=a),t}if("isolated"===s){if("composition"!==r.mode)throw Error(_n.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const o=r,s=m({},e),l=Qn(r,n);s.__root=l||a;const c=wn(s);o.__composerExtend&&(c[Ln]=o.__composerExtend(c));return t.getCurrentScope()&&t.onScopeDispose((()=>{const e=c[Ln];e&&(e(),delete c[Ln])})),c}const l=r;let c=l.__getInstance(n);if(null==c){const r=m({},e);"__i18n"in o&&(r.__i18n=o.__i18n),a&&(r.__root=a),c=wn(r),l.__composerExtend&&(c[Ln]=l.__composerExtend(c)),l.__setInstance(n,c),function(e,n,r){t.onMounted((()=>{}),n),xn(n,(()=>{const t=r;e.__deleteInstance(n);const a=t[Ln];a&&(a(),delete t[Ln])}))}(l,n,c)}return c}function Qn(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[kn]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}const Zn=["locale","fallbackLocale","availableLocales"],er=["t","rt","d","n","tm","te"];const tr=t.defineComponent({name:"i18n-d",props:m({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Un),setup(e,t){const n=e.i18n||qn({useScope:e.scope,__useComponent:!0});return Xn(e,t,Yt,((...e)=>n[hn](...e)))}}),nr=tr;return Ct=function(e,t){if(L(e)){!y(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||st)(e),r=lt[n];if(r)return r;const{ast:a,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||be;return t.onError=e=>{n=!0,r(e)},{...He(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),s=rt(a);return o?s:lt[n]=s}{if(!Ve(e))return()=>e;const t=e.cacheKey;if(t){const n=lt[t];return n||(lt[t]=rt(e))}return rt(e)}},Ot=function(e,t){if(!v(e))return null;let n=kt.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,s,l,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=Et(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=bt(n),c=gt[u],s=c[o]||c.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(l=m[s[1]],l&&(a=n,!1===l())))return;if(7===u)return t}}(t),n&&kt.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=n[o];if(tt.includes(e)&&Ve(a))return null;if(!v(a))return null;if(!g(a,e))return null;const t=a[e];if(void 0===t)return null;if(k(a))return null;a=t,o++}return a},At=function(e,t,n){const r=L(n)?n:Nt,a=e;let o;v(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 s=o.get(r);if(s)return s;const l=[];let c=[n];for(;E(c);)c=pt(l,c,t);const i=E(t)||!C(t)?t:t.default?t.default:null;return c=L(i)?[i]:i,E(c)&&pt(l,c,!1),o.set(r,l),l},e.DatetimeFormat=tr,e.I18nD=nr,e.I18nInjectionKey=Jn,e.I18nN=Gn,e.I18nT=Vn,e.NumberFormat=Yn,e.Translation=Hn,e.VERSION=dn,e.createI18n=function(e={}){const n=!y(e.legacy)||e.legacy,r=!y(e.globalInjection)||e.globalInjection,a=new Map,[s,l]=function(e,n){const r=t.effectScope(),a=n?r.run((()=>$n(e))):r.run((()=>wn(e)));if(null==a)throw Error(_n.UNEXPECTED_ERROR);return[r,a]}(e,n),c=o(""),i={get mode(){return n?"legacy":"composition"},install(e,...a){if(e.__VUE_I18N_SYMBOL__=c,e.provide(e.__VUE_I18N_SYMBOL__,i),C(a[0])){const e=a[0];i.__composerExtend=e.__composerExtend,i.__vueI18nExtend=e.__vueI18nExtend}let o=null;!n&&r&&(o=function(e,n){const r=Object.create(null);Zn.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(_n.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,er.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(_n.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}));const a=()=>{delete e.config.globalProperties.$i18n,er.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return a}(e,i.global)),function(e,t,...n){const r=C(n[0])?n[0]:{};(!y(r.globalInstall)||r.globalInstall)&&([Hn.name,"I18nT"].forEach((t=>e.component(t,Hn))),[Yn.name,"I18nN"].forEach((t=>e.component(t,Yn))),[tr.name,"I18nD"].forEach((t=>e.component(t,tr)))),e.directive("t",Kn(t))}(e,i,...a),n&&e.mixin(function(e,t,n){return{beforeCreate(){const r=On();if(!r)throw Error(_n.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=Wn(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=$n(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=Wn(e,a);else{this.$i18n=$n({__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&&In(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);const o=this.$i18n;xn(r,(()=>{o.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(r)}))},mounted(){},unmounted(){const e=On();if(!e)throw Error(_n.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)}}}(l,l.__composer,i));const s=e.unmount;e.unmount=()=>{o&&o(),i.dispose(),s()}},get global(){return l},dispose(){s.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=qn,e.vTDirective=Kn,e}({},Vue);