Comparing version 10.0.1 to 10.0.2
/*! | ||
* vue-i18n v10.0.1 | ||
* vue-i18n v10.0.2 | ||
* (c) 2024 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
import{createVNode,Text,computed,watch,getCurrentInstance,ref,shallowRef,Fragment,defineComponent,h,effectScope,inject,onMounted,onUnmounted,isRef}from"vue";const inBrowser="undefined"!=typeof window,makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,n)=>friendlyJSONstringify({l:e,k:t,s:n}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>"number"==typeof e&&isFinite(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length,assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isBoolean=e=>"boolean"==typeof e,isObject=e=>null!==e&&"object"==typeof e,isPromise=e=>isObject(e)&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},toDisplayString=e=>null==e?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))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=>{isNotObjectOrIsArray(e[r])||isNotObjectOrIsArray(t[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]})}))}}function createPosition(e,t,n){return{line:e,column:t,offset:n}}function createLocation(e,t,n){return{start:e,end:t}}const CompileErrorCodes={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,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},COMPILE_ERROR_CODES_EXTEND_POINT=17;function createCompileError(e,t,n={}){const{domain:r,messages:a,args:o}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function defaultOnError(e){throw e}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF="\n",CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>t[e]===CHAR_CR&&t[e+1]===CHAR_LF,i=e=>t[e]===CHAR_PS,l=e=>t[e]===CHAR_LS,c=e=>s(e)||(e=>t[e]===CHAR_LF)(e)||i(e)||l(e),u=e=>s(e)||i(e)||l(e)?CHAR_LF:t[e];function m(){return o=0,c(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:m,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;)m();o=0}}}const EOF=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$1="tokenizer";function createTokenizer(e,t={}){const n=!1!==t.location,r=createScanner(e),a=()=>r.index(),o=()=>createPosition(r.line(),r.column(),r.index()),s=o(),i=a(),l={currentType:13,offset:i,startLoc:s,endLoc:s,lastType:13,lastOffset:i,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function m(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=createLocation(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const f=e=>m(e,13);function p(e,t){return e.currentChar()===t?(e.next(),t):(CompileErrorCodes.EXPECTED_TOKEN,o(),"")}function g(e){let t="";for(;e.currentPeek()===CHAR_SP||e.currentPeek()===CHAR_LF;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=g(e);return e.skipToPeek(),t}function d(e){if(e===EOF)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=function(e){if(e===EOF)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){g(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function C(e,t=!0){const n=(t=!1,r="")=>{const a=e.currentPeek();return"{"===a?t:"@"!==a&&a?"|"===a?!(r===CHAR_SP||r===CHAR_LF):a===CHAR_SP?(e.peek(),n(!0,CHAR_SP)):a!==CHAR_LF||(e.peek(),n(!0,CHAR_LF)):t},r=n();return t&&e.resetPeek(),r}function L(e,t){const n=e.currentChar();return n===EOF?EOF:t(n)?(e.next(),n):null}function O(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function N(e){return L(e,O)}function T(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 h(e){return L(e,T)}function S(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function k(e){return L(e,S)}function y(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function I(e){return L(e,y)}function A(e){let t="",n="";for(;t=k(e);)n+=t;return n}function F(e){return e!==LITERAL_DELIMITER&&e!==CHAR_LF}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 CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function R(e,t,n){p(e,t);let r="";for(let a=0;a<n;a++){const t=I(e);if(!t){CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function v(e){return"{"!==e&&"}"!==e&&e!==CHAR_SP&&e!==CHAR_LF}function M(e){_(e);const t=p(e,"|");return _(e),t}function D(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=m(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(CompileErrorCodes.EMPTY_PLACEHOLDER,o()),e.next(),n=m(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n=x(e,t)||f(t),t.braceNest=0,n;default:{let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n=m(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,j(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t))return n=m(t,4,function(e){_(e);let t="",n="";for(;t=h(e);)n+=t;return e.currentChar()===EOF&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),_(e),n;if(a=E(e,t))return n=m(t,5,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${A(e)}`):t+=A(e),e.currentChar()===EOF&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),_(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=e.currentPeek()===LITERAL_DELIMITER;return e.resetPeek(),r}(e,t))return n=m(t,6,function(e){_(e),p(e,"'");let t="",n="";for(;t=L(e,F);)n+="\\"===t?P(e):t;const r=e.currentChar();return r===CHAR_LF||r===EOF?(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),r===CHAR_LF&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!s)return n=m(t,12,function(e){_(e);let t="",n="";for(;t=L(e,v);)n+=t;return n}(e)),CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,_(e),n;break}}return n}function x(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||a!==CHAR_LF&&a!==CHAR_SP||(CompileErrorCodes.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=m(t,7,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),m(t,8,".");case":":return _(e),e.next(),m(t,9,":");default:return b(e)?(r=m(t,1,M(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;g(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;g(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),x(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),m(t,11,function(e){let t="",n="";for(;t=N(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?d(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===CHAR_SP||!t)&&(t===CHAR_LF?(e.peek(),r()):C(e,!1))},a=r();return e.resetPeek(),a}(e,t)?(_(e),"{"===a?D(e,t)||r:m(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===CHAR_SP?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&(CompileErrorCodes.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,j(e,t))}}function j(e,t){let n={type:13};if(t.braceNest>0)return D(e,t)||f(t);if(t.inLinked)return x(e,t)||f(t);switch(e.currentChar()){case"{":return D(e,t)||f(t);case"}":return CompileErrorCodes.UNBALANCED_CLOSING_BRACE,o(),e.next(),m(t,3,"}");case"@":return x(e,t)||f(t);default:if(b(e))return n=m(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;if(C(e))return m(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===CHAR_SP||n===CHAR_LF)if(C(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}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=a(),l.startLoc=o(),r.currentChar()===EOF?m(l,13):j(r,l)},currentOffset:a,currentPosition:o,context:c}}const ERROR_DOMAIN="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(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 createParser(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,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,i=r(5,o,s);return i.index=parseInt(t,10),e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function i(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,i=r(4,o,s);return i.key=t,e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,i=r(9,o,s);return i.value=t.replace(KNOWN_ESCAPES,fromEscapeSequence),e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function c(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,i=r(8,o,s);return 11!==t.type?(CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,i.value="",a(i,o,s),{nextConsumeToken:t,node:i}):(null==t.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,getTokenCaption(t)),i.value=t.value||"",a(i,e.currentOffset(),e.currentPosition()),{node:i})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(9!==o.type&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 10:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(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&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=i(e,o.value||"");break;case 5:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=l(e,o.value||"");break;default:{CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const s=e.context(),i=r(7,s.offset,s.startLoc);return i.value="",a(i,s.offset,s.startLoc),n.key=i,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&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(s(e,r.value||""));break;case 4:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(i(e,r.value||""));break;case 6:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(l(e,r.value||""));break;case 7:{const t=c(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 m(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 i=0===o.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(o);do{const t=u(e);i||(i=0===t.items.length),l.cases.push(t)}while(13!==s.currentType);return a(l,e.currentOffset(),e.currentPosition()),l}(e,n,o,s)}return{parse:function(n){const o=createTokenizer(n,assign({},e)),s=o.context(),i=r(0,s.offset,s.startLoc);return t&&i.loc&&(i.loc.source=n),i.body=m(o),e.onCacheKey&&(i.cacheKey=e.onCacheKey(n)),13!==s.currentType&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(i,o.currentOffset(),o.currentPosition()),i}}}function getTokenCaption(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 createTransformer(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function traverseNodes(e,t){for(let n=0;n<e.length;n++)traverseNode(e[n],t)}function traverseNode(e,t){switch(e.type){case 1:traverseNodes(e.cases,t),t.helper("plural");break;case 2:traverseNodes(e.items,t);break;case 6:traverseNode(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 transform(e,t={}){const n=createTransformer(e);n.helper("normalize"),e.body&&traverseNode(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function optimize(e){const t=e.body;return 2===t.type?optimizeMessageNode(t):t.cases.forEach((e=>optimizeMessageNode(e))),e}function optimizeMessageNode(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=join(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 minify(e){switch(e.t=e.type,e.type){case 0:{const t=e;minify(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++)minify(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++)minify(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;minify(t.key),t.k=t.key,delete t.key,t.modifier&&(minify(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 createCodeGenerator(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s=!1!==t.location,i={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};s&&e.loc&&(i.source=e.loc.source);function l(e,t){i.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>i,push:l,indent:function(e=!0){const t=++i.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--i.indentLevel;e&&c(t)},newline:function(){c(i.indentLevel)},helper:e=>`_${e}`,needIndent:()=>i.needIndent}}function generateLinkedNode(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),generateNode(e,t.key),t.modifier?(e.push(", "),generateNode(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function generateMessageNode(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&&(generateNode(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function generatePluralNode(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&&(generateNode(e,t.cases[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}function generateResource(e,t){t.body?generateNode(e,t.body):e.push("null")}function generateNode(e,t){const{helper:n}=e;switch(t.type){case 0:generateResource(e,t);break;case 1:generatePluralNode(e,t);break;case 2:generateMessageNode(e,t);break;case 6:generateLinkedNode(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 generate=(e,t={})=>{const n=isString(t.mode)?t.mode:"normal",r=isString(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,i=e.helpers||[],l=createCodeGenerator(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),i.length>0&&(l.push(`const { ${join(i.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),generateNode(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function baseCompile$1(e,t={}){const n=assign({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,s=createParser(n).parse(e);return r?(o&&optimize(s),a&&minify(s),{ast:s,code:""}):(transform(s,n),generate(s,n))}function format(e){return t=>formatParts(t,e)}function formatParts(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,formatMessageParts(e,n)]),[]))}return formatMessageParts(e,n)}function formatMessageParts(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,formatMessagePart(e,n)]),[]);return e.normalize(n)}}function formatMessagePart(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,r=n.m||n.modifier;return e.linked(formatMessagePart(e,n.k||n.key),r?formatMessagePart(e,r):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const defaultOnCacheKey=e=>e;let compileCache=Object.create(null);const isMessageAST=e=>isObject(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);function baseCompile(e,t={}){let n=!1;const r=t.onError||defaultOnError;return t.onError=e=>{n=!0,r(e)},{...baseCompile$1(e,t),detectError:n}}function compile(e,t){if(isString(e)){!isBoolean(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||defaultOnCacheKey)(e),r=compileCache[n];if(r)return r;const{ast:a,detectError:o}=baseCompile(e,{...t,location:!1,jit:!0}),s=format(a);return o?s:compileCache[n]=s}{const t=e.cacheKey;if(t){const n=compileCache[t];return n||(compileCache[t]=format(e))}return format(e)}}const CoreErrorCodes={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},CORE_ERROR_CODES_EXTEND_POINT=24;function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){if(isString(e))return e;if(isFunction(e)){if(e.resolvedOnce&&null!=_resolveLocale)return _resolveLocale;if("Function"===e.constructor.name){const t=e();if(isPromise(t))throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=t}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(e,t,n){return[...new Set([n,...isArray(t)?t:isObject(t)?Object.keys(t):isString(t)?[t]:[n]])]}function fallbackWithLocaleChain(e,t,n){const r=isString(n)?n:DEFAULT_LOCALE,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;isArray(e);)e=appendBlockToChain(o,e,t);const s=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(s)?[s]:s,isArray(e)&&appendBlockToChain(o,e,!1),a.__localeChainCache.set(r,o)}return o}function appendBlockToChain(e,t,n){let r=!0;for(let a=0;a<t.length&&isBoolean(r);a++){const o=t[a];isString(o)&&(r=appendLocaleToChain(e,t[a],n))}return r}function appendLocaleToChain(e,t,n){let r;const a=t.split("-");do{r=appendItemToChain(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function appendItemToChain(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),(isArray(n)||isPlainObject(n))&&n[a]&&(r=n[a])}return r}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function getPathCharType(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 formatSubPath(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(isLiteral(t)?stripQuotes(t):"*"+t)}function parse(e){const t=[];let n,r,a,o,s,i,l,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=formatSubPath(r),!1===r)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!p()){if(o=getPathCharType(n),l=pathStateMachine[u],s=l[o]||l.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(i=f[s[1]],i&&(a=n,!1===i())))return;if(7===u)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject(e)?e[t]:null}function resolveValue(e,t){if(!isObject(e))return null;let n=cache.get(t);if(n||(n=parse(t),n&&cache.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;if(isFunction(a))return null;a=e,o++}return a}const VERSION$1="10.0.1",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>"text"===t&&isString(e)?e.toUpperCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&isString(e)?e.toLowerCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&isString(e)?capitalize(e):"vnode"===t&&isObject(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler,_resolver,_fallbacker;function registerMessageCompiler(e){_compiler=e}function registerMessageResolver(e){_resolver=e}function registerLocaleFallbacker(e){_fallbacker=e}const setAdditionalMeta=e=>{};let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,n=isString(e.version)?e.version:VERSION$1,r=isString(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,a=isFunction(r)?DEFAULT_LOCALE:r,o=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=isPlainObject(e.messages)?e.messages:{[a]:{}},i=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},l=isPlainObject(e.numberFormats)?e.numberFormats:{[a]:{}},c=assign({},e.modifiers||{},getDefaultLinkedModifiers()),u=e.pluralRules||{},m=isFunction(e.missing)?e.missing:null,f=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,_=!!e.unresolving,d=isFunction(e.postTranslation)?e.postTranslation:null,E=isPlainObject(e.processor)?e.processor:null,b=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter,L=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,O=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,N=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,T=isObject(e.fallbackContext)?e.fallbackContext:void 0,h=e,S=isObject(h.__datetimeFormatters)?h.__datetimeFormatters:new Map,k=isObject(h.__numberFormatters)?h.__numberFormatters:new Map,y=isObject(h.__meta)?h.__meta:{};_cid++;const I={version:n,cid:_cid,locale:r,fallbackLocale:o,messages:s,modifiers:c,pluralRules:u,missing:m,missingWarn:f,fallbackWarn:p,fallbackFormat:g,unresolving:_,postTranslation:d,processor:E,warnHtmlMessage:b,escapeParameter:C,messageCompiler:L,messageResolver:O,localeFallbacker:N,fallbackContext:T,onWarn:t,__meta:y};return I.datetimeFormats=i,I.numberFormats=l,I.__datetimeFormatters=S,I.__numberFormatters=k,I}function handleMissing(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return isString(r)?r:t}return t}function updateFallbackLocale(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function isAlmostSameLocale(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function isImplicitFallback(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(isAlmostSameLocale(e,t[r]))return!0;return!1}function datetime(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:i}=e,[l,c,u,m]=parseDateTimeArgs(...t),f=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=getLocale(e,u),_=s(e,a,g);if(!isString(l)||""===l)return new Intl.DateTimeFormat(g,m).format(c);let d,E={},b=null;for(let O=0;O<_.length&&(d=_[O],E=n[d]||{},b=E[l],!isPlainObject(b));O++)handleMissing(e,l,d,f,"datetime format");if(!isPlainObject(b)||!isString(d))return r?NOT_REOSLVED:l;let C=`${d}__${l}`;isEmptyObject(m)||(C=`${C}__${JSON.stringify(m)}`);let L=i.get(C);return L||(L=new Intl.DateTimeFormat(d,assign({},b,m)),i.set(C,L)),p?L.formatToParts(c):L.format(c)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,n,r,a]=e,o={};let s,i={};if(isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(CoreErrorCodes.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();s=new Date(n);try{s.toISOString()}catch{throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);s=t}return isString(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach((e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(e)?i[e]=n[e]:o[e]=n[e]})),isString(r)?o.locale=r:isPlainObject(r)&&(i=r),isPlainObject(a)&&(i=a),[o.key||"",s,o,i]}function clearDateTimeFormat(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function number(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:i}=e,[l,c,u,m]=parseNumberArgs(...t),f=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=getLocale(e,u),_=s(e,a,g);if(!isString(l)||""===l)return new Intl.NumberFormat(g,m).format(c);let d,E={},b=null;for(let O=0;O<_.length&&(d=_[O],E=n[d]||{},b=E[l],!isPlainObject(b));O++)handleMissing(e,l,d,f,"number format");if(!isPlainObject(b)||!isString(d))return r?NOT_REOSLVED:l;let C=`${d}__${l}`;isEmptyObject(m)||(C=`${C}__${JSON.stringify(m)}`);let L=i.get(C);return L||(L=new Intl.NumberFormat(d,assign({},b,m)),i.set(C,L)),p?L.formatToParts(c):L.format(c)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,n,r,a]=e,o={};let s={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const i=t;return isString(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach((e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(e)?s[e]=n[e]:o[e]=n[e]})),isString(r)?o.locale=r:isPlainObject(r)&&(s=r),isPlainObject(a)&&(s=a),[o.key||"",i,o,s]}function clearNumberFormat(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>0===e.length?"":join(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,n=getPluralIndex(e),r=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,a=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,o=e.list||[],s=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(n,s);function i(t,n){const r=isFunction(e.messages)?e.messages(t,!!n):!!isObject(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):DEFAULT_MESSAGE)}const l=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,c=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,u={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",s="";1===n.length?isObject(r)?(s=r.modifier||s,o=r.type||o):isString(r)&&(s=r||s):2===n.length&&(isString(r)&&(s=r||s),isString(a)&&(o=a||o));const l=i(t,!0)(u),c="vnode"===o&&isArray(l)&&s?l[0]:l;return s?(m=s,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,o):c;var m},message:i,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:l,values:assign({},o,s)};return u}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:i}=e,[l,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,m=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:null,_=n||null!=g&&(isString(g)||isFunction(g)),d=getLocale(e,c);f&&escapeParams(c);let[E,b,C]=p?[l,d,i[d]||{}]:resolveMessageFormat(e,l,d,s,m,u),L=E,O=l;if(p||isString(L)||isMessageAST(L)||isMessageFunction(L)||_&&(L=g,O=L),!(p||(isString(L)||isMessageAST(L)||isMessageFunction(L))&&isString(b)))return a?NOT_REOSLVED:l;let N=!1;const T=isMessageFunction(L)?L:compileMessageFormat(e,l,b,L,O,(()=>{N=!0}));if(N)return L;const h=evaluateMessage(e,T,createMessageContext(getMessageContextOptions(e,b,C,c)));return r?r(h,l):h}function escapeParams(e){isArray(e.list)?e.list=e.list.map((e=>isString(e)?escapeHtml(e):e)):isObject(e.named)&&Object.keys(e.named).forEach((t=>{isString(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))}))}function resolveMessageFormat(e,t,n,r,a,o){const{messages:s,onWarn:i,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let m,f={},p=null;for(let g=0;g<u.length&&(m=u[g],f=s[m]||{},null===(p=l(f,t))&&(p=f[t]),!(isString(p)||isMessageAST(p)||isMessageFunction(p)));g++)if(!isImplicitFallback(m,u)){const n=handleMissing(e,t,m,o,"translate");n!==t&&(p=n)}return[p,m,f]}function compileMessageFormat(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(isMessageFunction(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 l=s(r,getCompileContext(e,n,a,r,i,o));return l.locale=n,l.key=t,l.source=r,l}function evaluateMessage(e,t,n){return t(n)}function parseTranslateArgs(...e){const[t,n,r]=e,a={};if(!(isString(t)||isNumber(t)||isMessageFunction(t)||isMessageAST(t)))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const o=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(n)?a.plural=n:isString(n)?a.default=n:isPlainObject(n)&&!isEmptyObject(n)?a.named=n:isArray(n)&&(a.list=n),isNumber(r)?a.plural=r:isString(r)?a.default=r:isPlainObject(r)&&assign(a,r),[o,a]}function getCompileContext(e,t,n,r,a,o){return{locale:t,key:n,warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>generateFormatCacheKey(t,n,e)}}function getMessageContextOptions(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:i,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:a,pluralRules:o,messages:(r,a)=>{let o=s(n,r);if(null==o&&(u||a)){const[,,n]=resolveMessageFormat(u||e,r,t,i,l,c);o=s(n,r)}if(isString(o)||isMessageAST(o)){let n=!1;const a=compileMessageFormat(e,r,t,o,r,(()=>{n=!0}));return n?NOOP_MESSAGE_FUNCTION:a}return isMessageFunction(o)?o:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),r.list&&(m.list=r.list),r.named&&(m.named=r.named),isNumber(r.plural)&&(m.pluralIndex=r.plural),m}const VERSION="10.0.1",I18nErrorCodes={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(e){if(!isObject(e))return e;for(const t in e)if(hasOwn(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(n[e]in a||(a[n[e]]={}),!isObject(a[n[e]])){o=!0;break}a=a[n[e]]}o||(a[n[r]]=e[t],delete e[t]),isObject(a[n[r]])&&handleFlatJson(a[n[r]])}else isObject(e[t])&&handleFlatJson(e[t]);return e}function getLocaleMessages(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=isPlainObject(n)?n:isArray(r)?{}:{[e]:{}};if(isArray(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},deepCopy(n,s[t])):deepCopy(n,s)}else isString(e)&&deepCopy(JSON.parse(e),s)})),null==a&&o)for(const i in s)hasOwn(s,i)&&handleFlatJson(s[i]);return s}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,n){let r=isObject(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=getLocaleMessages(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),isObject(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(isObject(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function createTextNode(e){return createVNode(Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,n,r,a)=>e(n,r,getCurrentInstance()||void 0,a)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={}){const{__root:t,__injectWithOption:n}=e,r=void 0===t,a=e.flatJson,o=inBrowser?ref:shallowRef;let s=!isBoolean(e.inheritLocale)||e.inheritLocale;const i=o(t&&s?t.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),l=o(t&&s?t.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),c=o(getLocaleMessages(i.value,e)),u=o(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),m=o(isPlainObject(e.numberFormats)?e.numberFormats:{[i.value]:{}});let f=t?t.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=t?t.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,g=t?t.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,_=!!e.fallbackFormat,d=isFunction(e.missing)?e.missing:null,E=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,b=isFunction(e.postTranslation)?e.postTranslation:null,C=t?t.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,L=!!e.escapeParameter;const O=t?t.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let N,T=e.pluralRules||t&&t.pluralRules;N=(()=>{r&&setFallbackContext(null);const t={version:VERSION,locale:i.value,fallbackLocale:l.value,messages:c.value,modifiers:O,pluralRules:T,missing:null===E?void 0:E,missingWarn:f,fallbackWarn:p,fallbackFormat:_,unresolving:!0,postTranslation:null===b?void 0:b,warnHtmlMessage:C,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=m.value,t.__datetimeFormatters=isPlainObject(N)?N.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(N)?N.__numberFormatters:void 0;const n=createCoreContext(t);return r&&setFallbackContext(n),n})(),updateFallbackLocale(N,i.value,l.value);const h=computed({get:()=>i.value,set:e=>{i.value=e,N.locale=i.value}}),S=computed({get:()=>l.value,set:e=>{l.value=e,N.fallbackLocale=l.value,updateFallbackLocale(N,i.value,e)}}),k=computed((()=>c.value)),y=computed((()=>u.value)),I=computed((()=>m.value));const A=(e,n,a,o,s,f)=>{let p;i.value,l.value,c.value,u.value,m.value;try{0,r||(N.fallbackContext=t?getFallbackContext():void 0),p=e(N)}finally{r||(N.fallbackContext=void 0)}if("translate exists"!==a&&isNumber(p)&&p===NOT_REOSLVED||"translate exists"===a&&!p){const[e,r]=n();return t&&g?o(t):s(e)}if(f(p))return p;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function F(...e){return A((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const P={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function R(e){return c.value[e]||{}}composerID++,t&&inBrowser&&(watch(t.locale,(e=>{s&&(i.value=e,N.locale=e,updateFallbackLocale(N,i.value,l.value))})),watch(t.fallbackLocale,(e=>{s&&(l.value=e,N.fallbackLocale=e,updateFallbackLocale(N,i.value,l.value))})));const v={id:composerID,locale:h,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&t&&(i.value=t.locale.value,l.value=t.fallbackLocale.value,updateFallbackLocale(N,i.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:k,get modifiers(){return O},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,N.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,N.fallbackWarn=p},get fallbackRoot(){return g},set fallbackRoot(e){g=e},get fallbackFormat(){return _},set fallbackFormat(e){_=e,N.fallbackFormat=_},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,N.warnHtmlMessage=e},get escapeParameter(){return L},set escapeParameter(e){L=e,N.escapeParameter=e},t:F,getLocaleMessage:R,setLocaleMessage:function(e,t){if(a){const n={[e]:t};for(const e in n)hasOwn(n,e)&&handleFlatJson(n[e]);t=n[e]}c.value[e]=t,N.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{};const n={[e]:t};if(a)for(const r in n)hasOwn(n,r)&&handleFlatJson(n[r]);deepCopy(t=n[e],c.value[e]),N.messages=c.value},getPostTranslationHandler:function(){return isFunction(b)?b:null},setPostTranslationHandler:function(e){b=e,N.postTranslation=e},getMissingHandler:function(){return d},setMissingHandler:function(e){null!==e&&(E=defineCoreMissingHandler(e)),d=e,N.missing=E},[SetPluralRulesSymbol]:function(e){T=e,N.pluralRules=T}};return v.datetimeFormats=y,v.numberFormats=I,v.rt=function(...e){const[t,n,r]=e;if(r&&!isObject(r))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return F(t,n,assign({resolvedMessage:!0},r||{}))},v.te=function(e,t){return A((()=>{if(!e)return!1;const n=R(isString(t)?t:i.value),r=N.messageResolver(n,e);return isMessageAST(r)||isMessageFunction(r)||isString(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),NOOP_RETURN_FALSE,(e=>isBoolean(e)))},v.tm=function(e){const n=function(e){let t=null;const n=fallbackWithLocaleChain(N,l.value,i.value);for(let r=0;r<n.length;r++){const a=c.value[n[r]]||{},o=N.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=n?n:t&&t.tm(e)||{}},v.d=function(...e){return A((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},v.n=function(...e){return A((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},v.getDateTimeFormat=function(e){return u.value[e]||{}},v.setDateTimeFormat=function(e,t){u.value[e]=t,N.datetimeFormats=u.value,clearDateTimeFormat(N,e,t)},v.mergeDateTimeFormat=function(e,t){u.value[e]=assign(u.value[e]||{},t),N.datetimeFormats=u.value,clearDateTimeFormat(N,e,t)},v.getNumberFormat=function(e){return m.value[e]||{}},v.setNumberFormat=function(e,t){m.value[e]=t,N.numberFormats=m.value,clearNumberFormat(N,e,t)},v.mergeNumberFormat=function(e,t){m.value[e]=assign(m.value[e]||{},t),N.numberFormats=m.value,clearNumberFormat(N,e,t)},v[InejctWithOptionSymbol]=n,v[TranslateVNodeSymbol]=function(...e){return A((t=>{let n;const r=t;try{r.processor=P,n=Reflect.apply(translate,null,[r,...e])}finally{r.processor=null}return n}),(()=>parseTranslateArgs(...e)),"translate",(t=>t[TranslateVNodeSymbol](...e)),(e=>[createTextNode(e)]),(e=>isArray(e)))},v[DatetimePartsSymbol]=function(...e){return A((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},v[NumberPartsSymbol]=function(...e){return A((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},v}function convertComposerOptions(e){const t=isString(e.locale)?e.locale:DEFAULT_LOCALE,n=isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=isFunction(e.missing)?e.missing:void 0,a=!isBoolean(e.silentTranslationWarn)&&!isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!isBoolean(e.silentFallbackWarn)&&!isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!isBoolean(e.fallbackRoot)||e.fallbackRoot,i=!!e.formatFallbackMessages,l=isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=isFunction(e.postTranslation)?e.postTranslation:void 0,m=!isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,p=!isBoolean(e.sync)||e.sync;let g=e.messages;if(isPlainObject(e.sharedMessages)){const t=e.sharedMessages;g=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return assign(r,t[n]),e}),g||{})}const{__i18n:_,__root:d,__injectWithOption:E}=e,b=e.datetimeFormats,C=e.numberFormats;return{locale:t,fallbackLocale:n,messages:g,flatJson:e.flatJson,datetimeFormats:b,numberFormats:C,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:i,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:m,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:_,__root:d,__injectWithOption:E}}function createVueI18n(e={}){const t=createComposer(convertComposerOptions(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 isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=isBoolean(e)?!e:e},get silentFallbackWarn(){return isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=isBoolean(e)?!e: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]),tc(...e){const[n,r,a]=e,o={plural:1};let s=null,i=null;if(!isString(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const l=n;return isString(r)?o.locale=r:isNumber(r)?o.plural=r:isArray(r)?s=r:isPlainObject(r)&&(i=r),isString(a)?o.locale=a:isArray(a)?s=a:isPlainObject(a)&&(i=a),Reflect.apply(t.t,t,[l,s||i||{},o])},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 defineMixin(e,t,n){return{beforeCreate(){const r=getCurrentInstance();if(!r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=createVueI18n(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,a);else{this.$i18n=createVueI18n({__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&&adjustI18nResources(t,a,a),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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=getCurrentInstance();if(!e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,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}}}function mergeToGlobal(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[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const n=getLocaleMessages(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 baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Fragment?t.children:[t]]),[])}return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}function getFragmentableTag(){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=isString(e.plural)?+e.plural:e.plural);const i=getInterpolateArg(t,o),l=a[TranslateVNodeSymbol](e.keypath,i,s),c=assign({},r),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,l)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(e){return isArray(e)&&!isString(e[0])}function renderFormatter(e,t,n,r){const{slots:a,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),isString(e.format)?t.key=e.format:isObject(e.format)&&(isString(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?assign({},t,{[r]:e.format[r]}):t),{}));const i=r(e.value,t,s);let l=[t.key];isArray(i)?l=i.map(((e,t)=>{const n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:i}):[e.value];return isVNode(r)&&(r[0].key=`${e.type}-${t}`),r})):isString(i)&&(l=[i]);const c=assign({},o),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,l)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>n[NumberPartsSymbol](...e)))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>n[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$1(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}}function vTDirective(e){const t=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=getComposer$1(e,n.$),o=parseValue(r);return[Reflect.apply(a.t,a,[...makeParams(o)]),a]};return{created:(n,r)=>{const[a,o]=t(r);inBrowser&&e.global===o&&(n.__i18nWatcher=watch(o.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=o,n.textContent=a},unmounted:e=>{inBrowser&&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=parseValue(t);e.textContent=Reflect.apply(n.t,n,[...makeParams(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}function parseValue(e){if(isString(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw Error(I18nErrorCodes.REQUIRED_VALUE,"path");return e}throw Error(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,s={},i=r||{};return isString(n)&&(s.locale=n),isNumber(a)&&(s.plural=a),isNumber(o)&&(s.plural=o),[t,i,s]}function apply(e,t,...n){const r=isPlainObject(n[0])?n[0]:{};(!isBoolean(r.globalInstall)||r.globalInstall)&&([Translation.name,"I18nT"].forEach((t=>e.component(t,Translation))),[NumberFormat.name,"I18nN"].forEach((t=>e.component(t,NumberFormat))),[DatetimeFormat.name,"I18nD"].forEach((t=>e.component(t,DatetimeFormat)))),e.directive("t",vTDirective(t))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const n=!isBoolean(e.legacy)||e.legacy,r=!isBoolean(e.globalInjection)||e.globalInjection,a=new Map,[o,s]=createGlobal(e,n),i=makeSymbol("");const l={get mode(){return n?"legacy":"composition"},async install(e,...t){if(e.__VUE_I18N_SYMBOL__=i,e.provide(e.__VUE_I18N_SYMBOL__,l),isPlainObject(t[0])){const e=t[0];l.__composerExtend=e.__composerExtend,l.__vueI18nExtend=e.__vueI18nExtend}let a=null;!n&&r&&(a=injectGlobalFields(e,l.global)),apply(e,l,...t),n&&e.mixin(defineMixin(s,s.__composer,l));const o=e.unmount;e.unmount=()=>{a&&a(),l.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 l}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Error(I18nErrorCodes.NOT_INSTALLED);const n=getI18nInstance(t),r=getGlobalComposer(n),a=getComponentOptions(t),o=getScope(e,a);if("global"===o)return adjustI18nResources(r,e,a),r;if("parent"===o){let a=getComposer(n,t,e.__useComponent);return null==a&&(a=r),a}const s=n;let i=s.__getInstance(t);if(null==i){const n=assign({},e);"__i18n"in a&&(n.__i18n=a.__i18n),r&&(n.__root=r),i=createComposer(n),s.__composerExtend&&(i[DisposeSymbol]=s.__composerExtend(i)),setupLifeCycle(s,t,i),s.__setInstance(t,i)}return i}function createGlobal(e,t,n){const r=effectScope(),a=t?r.run((()=>createVueI18n(e))):r.run((()=>createComposer(e)));if(null==a)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[r,a]}function getI18nInstance(e){const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Error(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return"composition"===e.mode?e.global:e.global.__composer}function getComposer(e,t,n=!1){let r=null;const a=t.root;let o=getParentComponentInstance(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[InejctWithOptionSymbol]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}function getParentComponentInstance(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){onMounted((()=>{}),t),onUnmounted((()=>{const r=n;e.__deleteInstance(t);const a=r[DisposeSymbol];a&&(a(),delete r[DisposeSymbol])}),t)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const n=Object.create(null);globalExportProps.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=isRef(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,a)})),e.config.globalProperties.$i18n=n,globalExportMethods.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}));return()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}registerMessageCompiler(compile),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,createI18n,useI18n,vTDirective}; | ||
import{createVNode,Text,computed,watch,getCurrentInstance,ref,shallowRef,Fragment,defineComponent,h,effectScope,inject,onMounted,onUnmounted,isRef}from"vue";const inBrowser="undefined"!=typeof window,makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,n)=>friendlyJSONstringify({l:e,k:t,s:n}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>"number"==typeof e&&isFinite(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length,assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isBoolean=e=>"boolean"==typeof e,isObject=e=>null!==e&&"object"==typeof e,isPromise=e=>isObject(e)&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>"[object Object]"===toTypeString(e),toDisplayString=e=>null==e?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))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=>{isObject(e[r])&&!isObject(t[r])&&(t[r]=Array.isArray(e[r])?[]:{}),isNotObjectOrIsArray(t[r])||isNotObjectOrIsArray(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]})}))}}function createPosition(e,t,n){return{line:e,column:t,offset:n}}function createLocation(e,t,n){return{start:e,end:t}}const CompileErrorCodes={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,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},COMPILE_ERROR_CODES_EXTEND_POINT=17;function createCompileError(e,t,n={}){const{domain:r,messages:a,args:o}=n,s=new SyntaxError(String(e));return s.code=e,t&&(s.location=t),s.domain=r,s}function defaultOnError(e){throw e}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF="\n",CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>t[e]===CHAR_CR&&t[e+1]===CHAR_LF,i=e=>t[e]===CHAR_PS,l=e=>t[e]===CHAR_LS,c=e=>s(e)||(e=>t[e]===CHAR_LF)(e)||i(e)||l(e),u=e=>s(e)||i(e)||l(e)?CHAR_LF:t[e];function m(){return o=0,c(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:m,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;)m();o=0}}}const EOF=void 0,DOT=".",LITERAL_DELIMITER="'",ERROR_DOMAIN$1="tokenizer";function createTokenizer(e,t={}){const n=!1!==t.location,r=createScanner(e),a=()=>r.index(),o=()=>createPosition(r.line(),r.column(),r.index()),s=o(),i=a(),l={currentType:13,offset:i,startLoc:s,endLoc:s,lastType:13,lastOffset:i,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function m(e,t,r){e.endLoc=o(),e.currentType=t;const a={type:t};return n&&(a.loc=createLocation(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const f=e=>m(e,13);function p(e,t){return e.currentChar()===t?(e.next(),t):(CompileErrorCodes.EXPECTED_TOKEN,o(),"")}function g(e){let t="";for(;e.currentPeek()===CHAR_SP||e.currentPeek()===CHAR_LF;)t+=e.currentPeek(),e.peek();return t}function _(e){const t=g(e);return e.skipToPeek(),t}function d(e){if(e===EOF)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=function(e){if(e===EOF)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){g(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function C(e,t=!0){const n=(t=!1,r="")=>{const a=e.currentPeek();return"{"===a?t:"@"!==a&&a?"|"===a?!(r===CHAR_SP||r===CHAR_LF):a===CHAR_SP?(e.peek(),n(!0,CHAR_SP)):a!==CHAR_LF||(e.peek(),n(!0,CHAR_LF)):t},r=n();return t&&e.resetPeek(),r}function L(e,t){const n=e.currentChar();return n===EOF?EOF:t(n)?(e.next(),n):null}function O(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function N(e){return L(e,O)}function T(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 h(e){return L(e,T)}function S(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function k(e){return L(e,S)}function y(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function I(e){return L(e,y)}function A(e){let t="",n="";for(;t=k(e);)n+=t;return n}function F(e){return e!==LITERAL_DELIMITER&&e!==CHAR_LF}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 CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function R(e,t,n){p(e,t);let r="";for(let a=0;a<n;a++){const t=I(e);if(!t){CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function v(e){return"{"!==e&&"}"!==e&&e!==CHAR_SP&&e!==CHAR_LF}function M(e){_(e);const t=p(e,"|");return _(e),t}function D(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=m(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(CompileErrorCodes.EMPTY_PLACEHOLDER,o()),e.next(),n=m(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n=j(e,t)||f(t),t.braceNest=0,n;default:{let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n=m(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,x(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t))return n=m(t,4,function(e){_(e);let t="",n="";for(;t=h(e);)n+=t;return e.currentChar()===EOF&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),_(e),n;if(a=E(e,t))return n=m(t,5,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${A(e)}`):t+=A(e),e.currentChar()===EOF&&(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),_(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;g(e);const r=e.currentPeek()===LITERAL_DELIMITER;return e.resetPeek(),r}(e,t))return n=m(t,6,function(e){_(e),p(e,"'");let t="",n="";for(;t=L(e,F);)n+="\\"===t?P(e):t;const r=e.currentChar();return r===CHAR_LF||r===EOF?(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),r===CHAR_LF&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!s)return n=m(t,12,function(e){_(e);let t="",n="";for(;t=L(e,v);)n+=t;return n}(e)),CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,_(e),n;break}}return n}function j(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||a!==CHAR_LF&&a!==CHAR_SP||(CompileErrorCodes.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=m(t,7,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),m(t,8,".");case":":return _(e),e.next(),m(t,9,":");default:return b(e)?(r=m(t,1,M(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;g(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;g(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),j(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;g(e);const r=d(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),m(t,11,function(e){let t="",n="";for(;t=N(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?d(e.peek()):!("@"===t||"|"===t||":"===t||"."===t||t===CHAR_SP||!t)&&(t===CHAR_LF?(e.peek(),r()):C(e,!1))},a=r();return e.resetPeek(),a}(e,t)?(_(e),"{"===a?D(e,t)||r:m(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===CHAR_SP?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&(CompileErrorCodes.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,x(e,t))}}function x(e,t){let n={type:13};if(t.braceNest>0)return D(e,t)||f(t);if(t.inLinked)return j(e,t)||f(t);switch(e.currentChar()){case"{":return D(e,t)||f(t);case"}":return CompileErrorCodes.UNBALANCED_CLOSING_BRACE,o(),e.next(),m(t,3,"}");case"@":return j(e,t)||f(t);default:if(b(e))return n=m(t,1,M(e)),t.braceNest=0,t.inLinked=!1,n;if(C(e))return m(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===CHAR_SP||n===CHAR_LF)if(C(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}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=s,l.offset=a(),l.startLoc=o(),r.currentChar()===EOF?m(l,13):x(r,l)},currentOffset:a,currentPosition:o,context:c}}const ERROR_DOMAIN="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(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 createParser(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,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,i=r(5,o,s);return i.index=parseInt(t,10),e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function i(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,i=r(4,o,s);return i.key=t,e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:s}=n,i=r(9,o,s);return i.value=t.replace(KNOWN_ESCAPES,fromEscapeSequence),e.nextToken(),a(i,e.currentOffset(),e.currentPosition()),i}function c(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,i=r(8,o,s);return 11!==t.type?(CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,i.value="",a(i,o,s),{nextConsumeToken:t,node:i}):(null==t.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,getTokenCaption(t)),i.value=t.value||"",a(i,e.currentOffset(),e.currentPosition()),{node:i})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(9!==o.type&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 10:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(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&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=i(e,o.value||"");break;case 5:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(o)),n.key=l(e,o.value||"");break;default:{CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc;const s=e.context(),i=r(7,s.offset,s.startLoc);return i.value="",a(i,s.offset,s.startLoc),n.key=i,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&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(s(e,r.value||""));break;case 4:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(i(e,r.value||""));break;case 6:null==r.value&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,getTokenCaption(r)),n.items.push(l(e,r.value||""));break;case 7:{const t=c(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 m(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 i=0===o.items.length;const l=r(1,t,n);l.cases=[],l.cases.push(o);do{const t=u(e);i||(i=0===t.items.length),l.cases.push(t)}while(13!==s.currentType);return a(l,e.currentOffset(),e.currentPosition()),l}(e,n,o,s)}return{parse:function(n){const o=createTokenizer(n,assign({},e)),s=o.context(),i=r(0,s.offset,s.startLoc);return t&&i.loc&&(i.loc.source=n),i.body=m(o),e.onCacheKey&&(i.cacheKey=e.onCacheKey(n)),13!==s.currentType&&(CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(i,o.currentOffset(),o.currentPosition()),i}}}function getTokenCaption(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 createTransformer(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}function traverseNodes(e,t){for(let n=0;n<e.length;n++)traverseNode(e[n],t)}function traverseNode(e,t){switch(e.type){case 1:traverseNodes(e.cases,t),t.helper("plural");break;case 2:traverseNodes(e.items,t);break;case 6:traverseNode(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 transform(e,t={}){const n=createTransformer(e);n.helper("normalize"),e.body&&traverseNode(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function optimize(e){const t=e.body;return 2===t.type?optimizeMessageNode(t):t.cases.forEach((e=>optimizeMessageNode(e))),e}function optimizeMessageNode(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=join(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 minify(e){switch(e.t=e.type,e.type){case 0:{const t=e;minify(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++)minify(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++)minify(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;minify(t.key),t.k=t.key,delete t.key,t.modifier&&(minify(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 createCodeGenerator(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s=!1!==t.location,i={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};s&&e.loc&&(i.source=e.loc.source);function l(e,t){i.code+=e}function c(e,t=!0){const n=t?a:"";l(o?n+" ".repeat(e):n)}return{context:()=>i,push:l,indent:function(e=!0){const t=++i.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--i.indentLevel;e&&c(t)},newline:function(){c(i.indentLevel)},helper:e=>`_${e}`,needIndent:()=>i.needIndent}}function generateLinkedNode(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),generateNode(e,t.key),t.modifier?(e.push(", "),generateNode(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function generateMessageNode(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&&(generateNode(e,t.items[o]),o!==a-1);o++)e.push(", ");e.deindent(r()),e.push("])")}function generatePluralNode(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&&(generateNode(e,t.cases[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}}function generateResource(e,t){t.body?generateNode(e,t.body):e.push("null")}function generateNode(e,t){const{helper:n}=e;switch(t.type){case 0:generateResource(e,t);break;case 1:generatePluralNode(e,t);break;case 2:generateMessageNode(e,t);break;case 6:generateLinkedNode(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 generate=(e,t={})=>{const n=isString(t.mode)?t.mode:"normal",r=isString(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,i=e.helpers||[],l=createCodeGenerator(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(s),i.length>0&&(l.push(`const { ${join(i.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),generateNode(l,e),l.deindent(s),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function baseCompile$1(e,t={}){const n=assign({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,s=createParser(n).parse(e);return r?(o&&optimize(s),a&&minify(s),{ast:s,code:""}):(transform(s,n),generate(s,n))}function format(e){return t=>formatParts(t,e)}function formatParts(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,formatMessageParts(e,n)]),[]))}return formatMessageParts(e,n)}function formatMessageParts(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,formatMessagePart(e,n)]),[]);return e.normalize(n)}}function formatMessagePart(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,r=n.m||n.modifier;return e.linked(formatMessagePart(e,n.k||n.key),r?formatMessagePart(e,r):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const defaultOnCacheKey=e=>e;let compileCache=Object.create(null);const isMessageAST=e=>isObject(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);function baseCompile(e,t={}){let n=!1;const r=t.onError||defaultOnError;return t.onError=e=>{n=!0,r(e)},{...baseCompile$1(e,t),detectError:n}}function compile(e,t){if(isString(e)){!isBoolean(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||defaultOnCacheKey)(e),r=compileCache[n];if(r)return r;const{ast:a,detectError:o}=baseCompile(e,{...t,location:!1,jit:!0}),s=format(a);return o?s:compileCache[n]=s}{const t=e.cacheKey;if(t){const n=compileCache[t];return n||(compileCache[t]=format(e))}return format(e)}}const CoreErrorCodes={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},CORE_ERROR_CODES_EXTEND_POINT=24;function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){if(isString(e))return e;if(isFunction(e)){if(e.resolvedOnce&&null!=_resolveLocale)return _resolveLocale;if("Function"===e.constructor.name){const t=e();if(isPromise(t))throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=t}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(e,t,n){return[...new Set([n,...isArray(t)?t:isObject(t)?Object.keys(t):isString(t)?[t]:[n]])]}function fallbackWithLocaleChain(e,t,n){const r=isString(n)?n:DEFAULT_LOCALE,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;isArray(e);)e=appendBlockToChain(o,e,t);const s=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(s)?[s]:s,isArray(e)&&appendBlockToChain(o,e,!1),a.__localeChainCache.set(r,o)}return o}function appendBlockToChain(e,t,n){let r=!0;for(let a=0;a<t.length&&isBoolean(r);a++){const o=t[a];isString(o)&&(r=appendLocaleToChain(e,t[a],n))}return r}function appendLocaleToChain(e,t,n){let r;const a=t.split("-");do{r=appendItemToChain(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function appendItemToChain(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),(isArray(n)||isPlainObject(n))&&n[a]&&(r=n[a])}return r}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function getPathCharType(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 formatSubPath(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(isLiteral(t)?stripQuotes(t):"*"+t)}function parse(e){const t=[];let n,r,a,o,s,i,l,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=formatSubPath(r),!1===r)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!p()){if(o=getPathCharType(n),l=pathStateMachine[u],s=l[o]||l.l||8,8===s)return;if(u=s[0],void 0!==s[1]&&(i=f[s[1]],i&&(a=n,!1===i())))return;if(7===u)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject(e)?e[t]:null}function resolveValue(e,t){if(!isObject(e))return null;let n=cache.get(t);if(n||(n=parse(t),n&&cache.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;if(isFunction(a))return null;a=e,o++}return a}const VERSION$1="10.0.2",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>"text"===t&&isString(e)?e.toUpperCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&isString(e)?e.toLowerCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&isString(e)?capitalize(e):"vnode"===t&&isObject(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler,_resolver,_fallbacker;function registerMessageCompiler(e){_compiler=e}function registerMessageResolver(e){_resolver=e}function registerLocaleFallbacker(e){_fallbacker=e}const setAdditionalMeta=e=>{};let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,n=isString(e.version)?e.version:VERSION$1,r=isString(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,a=isFunction(r)?DEFAULT_LOCALE:r,o=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=isPlainObject(e.messages)?e.messages:{[a]:{}},i=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},l=isPlainObject(e.numberFormats)?e.numberFormats:{[a]:{}},c=assign({},e.modifiers||{},getDefaultLinkedModifiers()),u=e.pluralRules||{},m=isFunction(e.missing)?e.missing:null,f=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,g=!!e.fallbackFormat,_=!!e.unresolving,d=isFunction(e.postTranslation)?e.postTranslation:null,E=isPlainObject(e.processor)?e.processor:null,b=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter,L=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,O=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,N=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,T=isObject(e.fallbackContext)?e.fallbackContext:void 0,h=e,S=isObject(h.__datetimeFormatters)?h.__datetimeFormatters:new Map,k=isObject(h.__numberFormatters)?h.__numberFormatters:new Map,y=isObject(h.__meta)?h.__meta:{};_cid++;const I={version:n,cid:_cid,locale:r,fallbackLocale:o,messages:s,modifiers:c,pluralRules:u,missing:m,missingWarn:f,fallbackWarn:p,fallbackFormat:g,unresolving:_,postTranslation:d,processor:E,warnHtmlMessage:b,escapeParameter:C,messageCompiler:L,messageResolver:O,localeFallbacker:N,fallbackContext:T,onWarn:t,__meta:y};return I.datetimeFormats=i,I.numberFormats=l,I.__datetimeFormatters=S,I.__numberFormatters=k,I}function handleMissing(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return isString(r)?r:t}return t}function updateFallbackLocale(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function isAlmostSameLocale(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function isImplicitFallback(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(isAlmostSameLocale(e,t[r]))return!0;return!1}function datetime(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:i}=e,[l,c,u,m]=parseDateTimeArgs(...t),f=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=getLocale(e,u),_=s(e,a,g);if(!isString(l)||""===l)return new Intl.DateTimeFormat(g,m).format(c);let d,E={},b=null;for(let O=0;O<_.length&&(d=_[O],E=n[d]||{},b=E[l],!isPlainObject(b));O++)handleMissing(e,l,d,f,"datetime format");if(!isPlainObject(b)||!isString(d))return r?NOT_REOSLVED:l;let C=`${d}__${l}`;isEmptyObject(m)||(C=`${C}__${JSON.stringify(m)}`);let L=i.get(C);return L||(L=new Intl.DateTimeFormat(d,assign({},b,m)),i.set(C,L)),p?L.formatToParts(c):L.format(c)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,n,r,a]=e,o={};let s,i={};if(isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(CoreErrorCodes.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();s=new Date(n);try{s.toISOString()}catch{throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);s=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);s=t}return isString(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach((e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(e)?i[e]=n[e]:o[e]=n[e]})),isString(r)?o.locale=r:isPlainObject(r)&&(i=r),isPlainObject(a)&&(i=a),[o.key||"",s,o,i]}function clearDateTimeFormat(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function number(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:i}=e,[l,c,u,m]=parseNumberArgs(...t),f=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,g=getLocale(e,u),_=s(e,a,g);if(!isString(l)||""===l)return new Intl.NumberFormat(g,m).format(c);let d,E={},b=null;for(let O=0;O<_.length&&(d=_[O],E=n[d]||{},b=E[l],!isPlainObject(b));O++)handleMissing(e,l,d,f,"number format");if(!isPlainObject(b)||!isString(d))return r?NOT_REOSLVED:l;let C=`${d}__${l}`;isEmptyObject(m)||(C=`${C}__${JSON.stringify(m)}`);let L=i.get(C);return L||(L=new Intl.NumberFormat(d,assign({},b,m)),i.set(C,L)),p?L.formatToParts(c):L.format(c)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,n,r,a]=e,o={};let s={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const i=t;return isString(n)?o.key=n:isPlainObject(n)&&Object.keys(n).forEach((e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(e)?s[e]=n[e]:o[e]=n[e]})),isString(r)?o.locale=r:isPlainObject(r)&&(s=r),isPlainObject(a)&&(s=a),[o.key||"",i,o,s]}function clearNumberFormat(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>0===e.length?"":join(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,n=getPluralIndex(e),r=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,a=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,o=e.list||[],s=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(n,s);function i(t,n){const r=isFunction(e.messages)?e.messages(t,!!n):!!isObject(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):DEFAULT_MESSAGE)}const l=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,c=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,u={list:e=>o[e],named:e=>s[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",s="";1===n.length?isObject(r)?(s=r.modifier||s,o=r.type||o):isString(r)&&(s=r||s):2===n.length&&(isString(r)&&(s=r||s),isString(a)&&(o=a||o));const l=i(t,!0)(u),c="vnode"===o&&isArray(l)&&s?l[0]:l;return s?(m=s,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,o):c;var m},message:i,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:l,values:assign({},o,s)};return u}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:i}=e,[l,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,m=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,g=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:null,_=n||null!=g&&(isString(g)||isFunction(g)),d=getLocale(e,c);f&&escapeParams(c);let[E,b,C]=p?[l,d,i[d]||{}]:resolveMessageFormat(e,l,d,s,m,u),L=E,O=l;if(p||isString(L)||isMessageAST(L)||isMessageFunction(L)||_&&(L=g,O=L),!(p||(isString(L)||isMessageAST(L)||isMessageFunction(L))&&isString(b)))return a?NOT_REOSLVED:l;let N=!1;const T=isMessageFunction(L)?L:compileMessageFormat(e,l,b,L,O,(()=>{N=!0}));if(N)return L;const h=evaluateMessage(e,T,createMessageContext(getMessageContextOptions(e,b,C,c)));return r?r(h,l):h}function escapeParams(e){isArray(e.list)?e.list=e.list.map((e=>isString(e)?escapeHtml(e):e)):isObject(e.named)&&Object.keys(e.named).forEach((t=>{isString(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))}))}function resolveMessageFormat(e,t,n,r,a,o){const{messages:s,onWarn:i,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let m,f={},p=null;for(let g=0;g<u.length&&(m=u[g],f=s[m]||{},null===(p=l(f,t))&&(p=f[t]),!(isString(p)||isMessageAST(p)||isMessageFunction(p)));g++)if(!isImplicitFallback(m,u)){const n=handleMissing(e,t,m,o,"translate");n!==t&&(p=n)}return[p,m,f]}function compileMessageFormat(e,t,n,r,a,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(isMessageFunction(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 l=s(r,getCompileContext(e,n,a,r,i,o));return l.locale=n,l.key=t,l.source=r,l}function evaluateMessage(e,t,n){return t(n)}function parseTranslateArgs(...e){const[t,n,r]=e,a={};if(!(isString(t)||isNumber(t)||isMessageFunction(t)||isMessageAST(t)))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const o=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(n)?a.plural=n:isString(n)?a.default=n:isPlainObject(n)&&!isEmptyObject(n)?a.named=n:isArray(n)&&(a.list=n),isNumber(r)?a.plural=r:isString(r)?a.default=r:isPlainObject(r)&&assign(a,r),[o,a]}function getCompileContext(e,t,n,r,a,o){return{locale:t,key:n,warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>generateFormatCacheKey(t,n,e)}}function getMessageContextOptions(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:i,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:a,pluralRules:o,messages:(r,a)=>{let o=s(n,r);if(null==o&&(u||a)){const[,,n]=resolveMessageFormat(u||e,r,t,i,l,c);o=s(n,r)}if(isString(o)||isMessageAST(o)){let n=!1;const a=compileMessageFormat(e,r,t,o,r,(()=>{n=!0}));return n?NOOP_MESSAGE_FUNCTION:a}return isMessageFunction(o)?o:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),r.list&&(m.list=r.list),r.named&&(m.named=r.named),isNumber(r.plural)&&(m.pluralIndex=r.plural),m}const VERSION="10.0.2",I18nErrorCodes={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(e){if(!isObject(e))return e;for(const t in e)if(hasOwn(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(n[e]in a||(a[n[e]]={}),!isObject(a[n[e]])){o=!0;break}a=a[n[e]]}o||(a[n[r]]=e[t],delete e[t]),isObject(a[n[r]])&&handleFlatJson(a[n[r]])}else isObject(e[t])&&handleFlatJson(e[t]);return e}function getLocaleMessages(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=isPlainObject(n)?n:isArray(r)?{}:{[e]:{}};if(isArray(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},deepCopy(n,s[t])):deepCopy(n,s)}else isString(e)&&deepCopy(JSON.parse(e),s)})),null==a&&o)for(const i in s)hasOwn(s,i)&&handleFlatJson(s[i]);return s}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,n){let r=isObject(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=getLocaleMessages(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),isObject(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(isObject(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function createTextNode(e){return createVNode(Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,n,r,a)=>e(n,r,getCurrentInstance()||void 0,a)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={}){const{__root:t,__injectWithOption:n}=e,r=void 0===t,a=e.flatJson,o=inBrowser?ref:shallowRef;let s=!isBoolean(e.inheritLocale)||e.inheritLocale;const i=o(t&&s?t.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),l=o(t&&s?t.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),c=o(getLocaleMessages(i.value,e)),u=o(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),m=o(isPlainObject(e.numberFormats)?e.numberFormats:{[i.value]:{}});let f=t?t.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=t?t.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,g=t?t.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,_=!!e.fallbackFormat,d=isFunction(e.missing)?e.missing:null,E=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,b=isFunction(e.postTranslation)?e.postTranslation:null,C=t?t.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,L=!!e.escapeParameter;const O=t?t.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let N,T=e.pluralRules||t&&t.pluralRules;N=(()=>{r&&setFallbackContext(null);const t={version:VERSION,locale:i.value,fallbackLocale:l.value,messages:c.value,modifiers:O,pluralRules:T,missing:null===E?void 0:E,missingWarn:f,fallbackWarn:p,fallbackFormat:_,unresolving:!0,postTranslation:null===b?void 0:b,warnHtmlMessage:C,escapeParameter:L,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=m.value,t.__datetimeFormatters=isPlainObject(N)?N.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(N)?N.__numberFormatters:void 0;const n=createCoreContext(t);return r&&setFallbackContext(n),n})(),updateFallbackLocale(N,i.value,l.value);const h=computed({get:()=>i.value,set:e=>{i.value=e,N.locale=i.value}}),S=computed({get:()=>l.value,set:e=>{l.value=e,N.fallbackLocale=l.value,updateFallbackLocale(N,i.value,e)}}),k=computed((()=>c.value)),y=computed((()=>u.value)),I=computed((()=>m.value));const A=(e,n,a,o,s,f)=>{let p;i.value,l.value,c.value,u.value,m.value;try{0,r||(N.fallbackContext=t?getFallbackContext():void 0),p=e(N)}finally{r||(N.fallbackContext=void 0)}if("translate exists"!==a&&isNumber(p)&&p===NOT_REOSLVED||"translate exists"===a&&!p){const[e,r]=n();return t&&g?o(t):s(e)}if(f(p))return p;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function F(...e){return A((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const P={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function R(e){return c.value[e]||{}}composerID++,t&&inBrowser&&(watch(t.locale,(e=>{s&&(i.value=e,N.locale=e,updateFallbackLocale(N,i.value,l.value))})),watch(t.fallbackLocale,(e=>{s&&(l.value=e,N.fallbackLocale=e,updateFallbackLocale(N,i.value,l.value))})));const v={id:composerID,locale:h,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&t&&(i.value=t.locale.value,l.value=t.fallbackLocale.value,updateFallbackLocale(N,i.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:k,get modifiers(){return O},get pluralRules(){return T||{}},get isGlobal(){return r},get missingWarn(){return f},set missingWarn(e){f=e,N.missingWarn=f},get fallbackWarn(){return p},set fallbackWarn(e){p=e,N.fallbackWarn=p},get fallbackRoot(){return g},set fallbackRoot(e){g=e},get fallbackFormat(){return _},set fallbackFormat(e){_=e,N.fallbackFormat=_},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,N.warnHtmlMessage=e},get escapeParameter(){return L},set escapeParameter(e){L=e,N.escapeParameter=e},t:F,getLocaleMessage:R,setLocaleMessage:function(e,t){if(a){const n={[e]:t};for(const e in n)hasOwn(n,e)&&handleFlatJson(n[e]);t=n[e]}c.value[e]=t,N.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{};const n={[e]:t};if(a)for(const r in n)hasOwn(n,r)&&handleFlatJson(n[r]);deepCopy(t=n[e],c.value[e]),N.messages=c.value},getPostTranslationHandler:function(){return isFunction(b)?b:null},setPostTranslationHandler:function(e){b=e,N.postTranslation=e},getMissingHandler:function(){return d},setMissingHandler:function(e){null!==e&&(E=defineCoreMissingHandler(e)),d=e,N.missing=E},[SetPluralRulesSymbol]:function(e){T=e,N.pluralRules=T}};return v.datetimeFormats=y,v.numberFormats=I,v.rt=function(...e){const[t,n,r]=e;if(r&&!isObject(r))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return F(t,n,assign({resolvedMessage:!0},r||{}))},v.te=function(e,t){return A((()=>{if(!e)return!1;const n=R(isString(t)?t:i.value),r=N.messageResolver(n,e);return isMessageAST(r)||isMessageFunction(r)||isString(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),NOOP_RETURN_FALSE,(e=>isBoolean(e)))},v.tm=function(e){const n=function(e){let t=null;const n=fallbackWithLocaleChain(N,l.value,i.value);for(let r=0;r<n.length;r++){const a=c.value[n[r]]||{},o=N.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=n?n:t&&t.tm(e)||{}},v.d=function(...e){return A((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},v.n=function(...e){return A((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},v.getDateTimeFormat=function(e){return u.value[e]||{}},v.setDateTimeFormat=function(e,t){u.value[e]=t,N.datetimeFormats=u.value,clearDateTimeFormat(N,e,t)},v.mergeDateTimeFormat=function(e,t){u.value[e]=assign(u.value[e]||{},t),N.datetimeFormats=u.value,clearDateTimeFormat(N,e,t)},v.getNumberFormat=function(e){return m.value[e]||{}},v.setNumberFormat=function(e,t){m.value[e]=t,N.numberFormats=m.value,clearNumberFormat(N,e,t)},v.mergeNumberFormat=function(e,t){m.value[e]=assign(m.value[e]||{},t),N.numberFormats=m.value,clearNumberFormat(N,e,t)},v[InejctWithOptionSymbol]=n,v[TranslateVNodeSymbol]=function(...e){return A((t=>{let n;const r=t;try{r.processor=P,n=Reflect.apply(translate,null,[r,...e])}finally{r.processor=null}return n}),(()=>parseTranslateArgs(...e)),"translate",(t=>t[TranslateVNodeSymbol](...e)),(e=>[createTextNode(e)]),(e=>isArray(e)))},v[DatetimePartsSymbol]=function(...e){return A((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},v[NumberPartsSymbol]=function(...e){return A((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},v}function convertComposerOptions(e){const t=isString(e.locale)?e.locale:DEFAULT_LOCALE,n=isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=isFunction(e.missing)?e.missing:void 0,a=!isBoolean(e.silentTranslationWarn)&&!isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!isBoolean(e.silentFallbackWarn)&&!isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!isBoolean(e.fallbackRoot)||e.fallbackRoot,i=!!e.formatFallbackMessages,l=isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=isFunction(e.postTranslation)?e.postTranslation:void 0,m=!isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,p=!isBoolean(e.sync)||e.sync;let g=e.messages;if(isPlainObject(e.sharedMessages)){const t=e.sharedMessages;g=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return assign(r,t[n]),e}),g||{})}const{__i18n:_,__root:d,__injectWithOption:E}=e,b=e.datetimeFormats,C=e.numberFormats;return{locale:t,fallbackLocale:n,messages:g,flatJson:e.flatJson,datetimeFormats:b,numberFormats:C,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:i,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:m,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:p,__i18n:_,__root:d,__injectWithOption:E}}function createVueI18n(e={}){const t=createComposer(convertComposerOptions(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 isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=isBoolean(e)?!e:e},get silentFallbackWarn(){return isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=isBoolean(e)?!e: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]),tc(...e){const[n,r,a]=e,o={plural:1};let s=null,i=null;if(!isString(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const l=n;return isString(r)?o.locale=r:isNumber(r)?o.plural=r:isArray(r)?s=r:isPlainObject(r)&&(i=r),isString(a)?o.locale=a:isArray(a)?s=a:isPlainObject(a)&&(i=a),Reflect.apply(t.t,t,[l,s||i||{},o])},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 defineMixin(e,t,n){return{beforeCreate(){const r=getCurrentInstance();if(!r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=this.$options;if(a.i18n){const r=a.i18n;if(a.__i18n&&(r.__i18n=a.__i18n),r.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=createVueI18n(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(a.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,a);else{this.$i18n=createVueI18n({__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&&adjustI18nResources(t,a,a),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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=getCurrentInstance();if(!e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,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}}}function mergeToGlobal(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[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const n=getLocaleMessages(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 baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Fragment?t.children:[t]]),[])}return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}function getFragmentableTag(){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=isString(e.plural)?+e.plural:e.plural);const i=getInterpolateArg(t,o),l=a[TranslateVNodeSymbol](e.keypath,i,s),c=assign({},r),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,l)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(e){return isArray(e)&&!isString(e[0])}function renderFormatter(e,t,n,r){const{slots:a,attrs:o}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),isString(e.format)?t.key=e.format:isObject(e.format)&&(isString(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?assign({},t,{[r]:e.format[r]}):t),{}));const i=r(e.value,t,s);let l=[t.key];isArray(i)?l=i.map(((e,t)=>{const n=a[e.type],r=n?n({[e.type]:e.value,index:t,parts:i}):[e.value];return isVNode(r)&&(r[0].key=`${e.type}-${t}`),r})):isString(i)&&(l=[i]);const c=assign({},o),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,l)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>n[NumberPartsSymbol](...e)))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const n=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>n[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$1(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}}function vTDirective(e){const t=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=getComposer$1(e,n.$),o=parseValue(r);return[Reflect.apply(a.t,a,[...makeParams(o)]),a]};return{created:(n,r)=>{const[a,o]=t(r);inBrowser&&e.global===o&&(n.__i18nWatcher=watch(o.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=o,n.textContent=a},unmounted:e=>{inBrowser&&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=parseValue(t);e.textContent=Reflect.apply(n.t,n,[...makeParams(r)])}},getSSRProps:e=>{const[n]=t(e);return{textContent:n}}}}function parseValue(e){if(isString(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw Error(I18nErrorCodes.REQUIRED_VALUE,"path");return e}throw Error(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,s={},i=r||{};return isString(n)&&(s.locale=n),isNumber(a)&&(s.plural=a),isNumber(o)&&(s.plural=o),[t,i,s]}function apply(e,t,...n){const r=isPlainObject(n[0])?n[0]:{};(!isBoolean(r.globalInstall)||r.globalInstall)&&([Translation.name,"I18nT"].forEach((t=>e.component(t,Translation))),[NumberFormat.name,"I18nN"].forEach((t=>e.component(t,NumberFormat))),[DatetimeFormat.name,"I18nD"].forEach((t=>e.component(t,DatetimeFormat)))),e.directive("t",vTDirective(t))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const n=!isBoolean(e.legacy)||e.legacy,r=!isBoolean(e.globalInjection)||e.globalInjection,a=new Map,[o,s]=createGlobal(e,n),i=makeSymbol("");const l={get mode(){return n?"legacy":"composition"},async install(e,...t){if(e.__VUE_I18N_SYMBOL__=i,e.provide(e.__VUE_I18N_SYMBOL__,l),isPlainObject(t[0])){const e=t[0];l.__composerExtend=e.__composerExtend,l.__vueI18nExtend=e.__vueI18nExtend}let a=null;!n&&r&&(a=injectGlobalFields(e,l.global)),apply(e,l,...t),n&&e.mixin(defineMixin(s,s.__composer,l));const o=e.unmount;e.unmount=()=>{a&&a(),l.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 l}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Error(I18nErrorCodes.NOT_INSTALLED);const n=getI18nInstance(t),r=getGlobalComposer(n),a=getComponentOptions(t),o=getScope(e,a);if("global"===o)return adjustI18nResources(r,e,a),r;if("parent"===o){let a=getComposer(n,t,e.__useComponent);return null==a&&(a=r),a}const s=n;let i=s.__getInstance(t);if(null==i){const n=assign({},e);"__i18n"in a&&(n.__i18n=a.__i18n),r&&(n.__root=r),i=createComposer(n),s.__composerExtend&&(i[DisposeSymbol]=s.__composerExtend(i)),setupLifeCycle(s,t,i),s.__setInstance(t,i)}return i}function createGlobal(e,t,n){const r=effectScope(),a=t?r.run((()=>createVueI18n(e))):r.run((()=>createComposer(e)));if(null==a)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[r,a]}function getI18nInstance(e){const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Error(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return"composition"===e.mode?e.global:e.global.__composer}function getComposer(e,t,n=!1){let r=null;const a=t.root;let o=getParentComponentInstance(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[InejctWithOptionSymbol]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}function getParentComponentInstance(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,n){onMounted((()=>{}),t),onUnmounted((()=>{const r=n;e.__deleteInstance(t);const a=r[DisposeSymbol];a&&(a(),delete r[DisposeSymbol])}),t)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const n=Object.create(null);globalExportProps.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const a=isRef(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,a)})),e.config.globalProperties.$i18n=n,globalExportMethods.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}));return()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}registerMessageCompiler(compile),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,createI18n,useI18n,vTDirective}; |
/*! | ||
* vue-i18n v10.0.1 | ||
* vue-i18n v10.0.2 | ||
* (c) 2024 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>o({l:e,k:t,s:n}),o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),s=e=>"number"==typeof e&&isFinite(e),l=e=>"[object Date]"===L(e),c=e=>"[object RegExp]"===L(e),i=e=>N(e)&&0===Object.keys(e).length,u=Object.assign;function f(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const m=Object.prototype.hasOwnProperty;function _(e,t){return m.call(e,t)}const p=Array.isArray,d=e=>"function"==typeof e,g=e=>"string"==typeof e,E=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=e=>b(e)&&d(e.then)&&d(e.catch),k=Object.prototype.toString,L=e=>k.call(e),N=e=>{if(!b(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function y(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function T(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const v=e=>!b(e)||p(e);function I(e,t){if(v(e)||v(t))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=>{v(e[r])||v(t[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]})}))}}function C(e,t,n){return{start:e,end:t}}const O={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,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function A(e){throw e}const P=" ",R="\r",S="\n",F=String.fromCharCode(8232),D=String.fromCharCode(8233);function M(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>t[e]===R&&t[e+1]===S,l=e=>t[e]===D,c=e=>t[e]===F,i=e=>s(e)||(e=>t[e]===S)(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?S: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 x=void 0,w="'";function U(e,t={}){const n=!1!==t.location,r=M(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=C(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,13);function _(e,t){return e.currentChar()===t?(e.next(),t):(O.EXPECTED_TOKEN,o(),"")}function p(e){let t="";for(;e.currentPeek()===P||e.currentPeek()===S;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=p(e);return e.skipToPeek(),t}function g(e){if(e===x)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=function(e){if(e===x)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){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function h(e,t=!0){const n=(t=!1,r="")=>{const a=e.currentPeek();return"{"===a?t:"@"!==a&&a?"|"===a?!(r===P||r===S):a===P?(e.peek(),n(!0,P)):a!==S||(e.peek(),n(!0,S)):t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===x?x: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 N(e){return k(e,L)}function y(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 T(e){return k(e,y)}function v(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function I(e){return k(e,v)}function A(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function R(e){return k(e,A)}function F(e){let t="",n="";for(;t=I(e);)n+=t;return n}function D(e){return e!==w&&e!==S}function U(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return W(e,t,4);case"U":return W(e,t,6);default:return O.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function W(e,t,n){_(e,t);let r="";for(let a=0;a<n;a++){const t=R(e);if(!t){O.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function $(e){return"{"!==e&&"}"!==e&&e!==P&&e!==S}function H(e){d(e);const t=_(e,"|");return d(e),t}function j(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(O.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(O.EMPTY_PLACEHOLDER,o()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(O.UNTERMINATED_CLOSING_BRACE,o()),n=V(e,t)||m(t),t.braceNest=0,n;default:{let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&(O.UNTERMINATED_CLOSING_BRACE,o()),n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return O.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,X(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,4,function(e){d(e);let t="",n="";for(;t=T(e);)n+=t;return e.currentChar()===x&&(O.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),d(e),n;if(a=E(e,t))return n=f(t,5,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${F(e)}`):t+=F(e),e.currentChar()===x&&(O.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=e.currentPeek()===w;return e.resetPeek(),r}(e,t))return n=f(t,6,function(e){d(e),_(e,"'");let t="",n="";for(;t=k(e,D);)n+="\\"===t?U(e):t;const r=e.currentChar();return r===S||r===x?(O.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),r===S&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!s)return n=f(t,12,function(e){d(e);let t="",n="";for(;t=k(e,$);)n+=t;return n}(e)),O.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,d(e),n;break}}return n}function V(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||a!==S&&a!==P||(O.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=f(t,7,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,8,".");case":":return d(e),e.next(),f(t,9,":");default:return b(e)?(r=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;p(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;p(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(d(e),V(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,11,function(e){let t="",n="";for(;t=N(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===P||!t)&&(t===S?(e.peek(),r()):h(e,!1))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?j(e,t)||r:f(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===P?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&(O.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,X(e,t))}}function X(e,t){let n={type:13};if(t.braceNest>0)return j(e,t)||m(t);if(t.inLinked)return V(e,t)||m(t);switch(e.currentChar()){case"{":return j(e,t)||m(t);case"}":return O.UNBALANCED_CLOSING_BRACE,o(),e.next(),f(t,3,"}");case"@":return V(e,t)||m(t);default:if(b(e))return n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;if(h(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===P||n===S)if(h(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()===x?f(c,13):X(r,c)},currentOffset:a,currentPosition:o,context:i}}const W=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $(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 H(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,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(W,$),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?(O.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,j(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&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 10:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(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&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),n.key=l(e,o.value||"");break;case 5:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),n.key=c(e,o.value||"");break;default:{O.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 f(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&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(r)),n.items.push(s(e,r.value||""));break;case 4:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(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 m(e){const t=e.context(),{offset:n,startLoc:o}=t,s=f(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=f(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=U(n,u({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(o),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==s.currentType&&(O.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function j(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 V(e,t){for(let n=0;n<e.length;n++)X(e[n],t)}function X(e,t){switch(e.type){case 1:V(e.cases,t),t.helper("plural");break;case 2:V(e.items,t);break;case 6:X(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 G(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&&X(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Y(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=y(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 K(e){switch(e.t=e.type,e.type){case 0:{const t=e;K(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++)K(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++)K(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;K(t.key),t.k=t.key,delete t.key,t.modifier&&(K(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 B(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?B(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&&(B(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&&(B(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")}(`),B(e,t.key),t.modifier?(e.push(", "),B(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 z=(e,t={})=>{const n=g(t.mode)?t.mode:"normal",r=g(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s=!1!==t.location,l={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function c(e,t){l.code+=e}function i(e,t=!0){const n=t?a:"";c(o?n+" ".repeat(e):n)}return s&&e.loc&&(l.source=e.loc.source),{context:()=>l,push:c,indent:function(e=!0){const t=++l.indentLevel;e&&i(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&i(t)},newline:function(){i(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${y(l.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),B(c,e),c.deindent(s),c.push("}"),delete e.helpers;const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}};function J(e,t={}){const n=u({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,s=H(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?Y(t):t.cases.forEach((e=>Y(e)))}(s),a&&K(s),{ast:s,code:""}):(G(s,n),z(s,n))}function Q(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,q(e,n)]),[]))}return q(e,n)}(t,e)}function q(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,Z(e,n)]),[]);return e.normalize(n)}}function Z(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,r=n.m||n.modifier;return e.linked(Z(e,n.k||n.key),r?Z(e,r):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const ee=e=>e;let te=Object.create(null);const ne=e=>b(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);const re={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function ae(e,t){return null!=t.locale?se(t.locale):se(e.locale)}let oe;function se(e){if(g(e))return e;if(d(e)){if(e.resolvedOnce&&null!=oe)return oe;if("Function"===e.constructor.name){const t=e();if(h(t))throw Error(re.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return oe=t}throw Error(re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(re.NOT_SUPPORT_LOCALE_TYPE)}function le(e,t,n){return[...new Set([n,...p(t)?t:b(t)?Object.keys(t):g(t)?[t]:[n]])]}function ce(e,t,n){const r=g(n)?n:ke,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;p(e);)e=ie(o,e,t);const s=p(t)||!N(t)?t:t.default?t.default:null;e=g(s)?[s]:s,p(e)&&ie(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ie(e,t,n){let r=!0;for(let a=0;a<t.length&&E(r);a++){const o=t[a];g(o)&&(r=ue(e,t[a],n))}return r}function ue(e,t,n){let r;const a=t.split("-");do{r=fe(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function fe(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),(p(n)||N(n))&&n[a]&&(r=n[a])}return r}const me=[];me[0]={w:[0],i:[3,0],"[":[4],o:[7]},me[1]={w:[1],".":[2],"[":[4],o:[7]},me[2]={w:[2],i:[3,0],0:[3,0]},me[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},me[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},me[5]={"'":[4,0],o:8,l:[5,0]},me[6]={'"':[4,0],o:8,l:[6,0]};const _e=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function pe(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 de(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,_e.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 ge=new Map;function Ee(e,t){return b(e)?e[t]:null}const be="10.0.1",he=-1,ke="en-US",Le="",Ne=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let ye,Te,ve;let Ie=null;const Ce=e=>{Ie=e},Oe=()=>Ie;let Ae=0;function Pe(e={}){const t=d(e.onWarn)?e.onWarn:T,n=g(e.version)?e.version:be,r=g(e.locale)||d(e.locale)?e.locale:ke,a=d(r)?ke:r,o=p(e.fallbackLocale)||N(e.fallbackLocale)||g(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=N(e.messages)?e.messages:{[a]:{}},l=N(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},i=N(e.numberFormats)?e.numberFormats:{[a]:{}},f=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&g(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&g(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&g(e)?Ne(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?Ne(e.children):e}),m=e.pluralRules||{},_=d(e.missing)?e.missing:null,h=!E(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,k=!E(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,y=!!e.unresolving,v=d(e.postTranslation)?e.postTranslation:null,I=N(e.processor)?e.processor:null,C=!E(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,A=d(e.messageCompiler)?e.messageCompiler:ye,P=d(e.messageResolver)?e.messageResolver:Te||Ee,R=d(e.localeFallbacker)?e.localeFallbacker:ve||le,S=b(e.fallbackContext)?e.fallbackContext:void 0,F=e,D=b(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,M=b(F.__numberFormatters)?F.__numberFormatters:new Map,x=b(F.__meta)?F.__meta:{};Ae++;const w={version:n,cid:Ae,locale:r,fallbackLocale:o,messages:s,modifiers:f,pluralRules:m,missing:_,missingWarn:h,fallbackWarn:k,fallbackFormat:L,unresolving:y,postTranslation:v,processor:I,warnHtmlMessage:C,escapeParameter:O,messageCompiler:A,messageResolver:P,localeFallbacker:R,fallbackContext:S,onWarn:t,__meta:x};return w.datetimeFormats=l,w.numberFormats=i,w.__datetimeFormatters=D,w.__numberFormatters=M,w}function Re(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return g(r)?r:t}return t}function Se(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Fe(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 De(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e,[c,f,m,_]=xe(...t);E(m.missingWarn)?m.missingWarn:e.missingWarn;E(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=ae(e,m),b=s(e,a,d);if(!g(c)||""===c)return new Intl.DateTimeFormat(d,_).format(f);let h,k={},L=null;for(let i=0;i<b.length&&(h=b[i],k=n[h]||{},L=k[c],!N(L));i++)Re(e,c,h,0,"datetime format");if(!N(L)||!g(h))return r?he:c;let y=`${h}__${c}`;i(_)||(y=`${y}__${JSON.stringify(_)}`);let T=l.get(y);return T||(T=new Intl.DateTimeFormat(h,u({},L,_)),l.set(y,T)),p?T.formatToParts(f):T.format(f)}const Me=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function xe(...e){const[t,n,r,a]=e,o={};let c,i={};if(g(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(re.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();c=new Date(n);try{c.toISOString()}catch{throw Error(re.INVALID_ISO_DATE_ARGUMENT)}}else if(l(t)){if(isNaN(t.getTime()))throw Error(re.INVALID_DATE_ARGUMENT);c=t}else{if(!s(t))throw Error(re.INVALID_ARGUMENT);c=t}return g(n)?o.key=n:N(n)&&Object.keys(n).forEach((e=>{Me.includes(e)?i[e]=n[e]:o[e]=n[e]})),g(r)?o.locale=r:N(r)&&(i=r),N(a)&&(i=a),[o.key||"",c,o,i]}function we(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function Ue(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e,[c,f,m,_]=$e(...t);E(m.missingWarn)?m.missingWarn:e.missingWarn;E(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=ae(e,m),b=s(e,a,d);if(!g(c)||""===c)return new Intl.NumberFormat(d,_).format(f);let h,k={},L=null;for(let i=0;i<b.length&&(h=b[i],k=n[h]||{},L=k[c],!N(L));i++)Re(e,c,h,0,"number format");if(!N(L)||!g(h))return r?he:c;let y=`${h}__${c}`;i(_)||(y=`${y}__${JSON.stringify(_)}`);let T=l.get(y);return T||(T=new Intl.NumberFormat(h,u({},L,_)),l.set(y,T)),p?T.formatToParts(f):T.format(f)}const We=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function $e(...e){const[t,n,r,a]=e,o={};let l={};if(!s(t))throw Error(re.INVALID_ARGUMENT);const c=t;return g(n)?o.key=n:N(n)&&Object.keys(n).forEach((e=>{We.includes(e)?l[e]=n[e]:o[e]=n[e]})),g(r)?o.locale=r:N(r)&&(l=r),N(a)&&(l=a),[o.key||"",c,o,l]}function He(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const je=e=>e,Ve=e=>"",Xe="text",Ge=e=>0===e.length?"":y(e),Ye=e=>null==e?"":p(e)||N(e)&&e.toString===k?JSON.stringify(e,null,2):String(e);function Ke(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Be(e={}){const t=e.locale,n=function(e){const t=s(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(s(e.named.count)||s(e.named.n))?s(e.named.count)?e.named.count:s(e.named.n)?e.named.n:t:t}(e),r=b(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?e.pluralRules[t]:Ke,a=b(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?Ke:void 0,o=e.list||[],l=e.named||{};s(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,l);function c(t,n){const r=d(e.messages)?e.messages(t,!!n):!!b(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):Ve)}const i=N(e.processor)&&d(e.processor.normalize)?e.processor.normalize:Ge,f=N(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:Ye,m={list:e=>o[e],named:e=>l[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",s="";1===n.length?b(r)?(s=r.modifier||s,o=r.type||o):g(r)&&(s=r||s):2===n.length&&(g(r)&&(s=r||s),g(a)&&(o=a||o));const l=c(t,!0)(m),i="vnode"===o&&p(l)&&s?l[0]:l;return s?(u=s,e.modifiers?e.modifiers[u]:je)(i,o):i;var u},message:c,type:N(e.processor)&&g(e.processor.type)?e.processor.type:Xe,interpolate:f,normalize:i,values:u({},o,l)};return m}const ze=()=>"",Je=e=>d(e);function Qe(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:l,messages:c}=e,[i,u]=et(...t),m=E(u.missingWarn)?u.missingWarn:e.missingWarn,_=E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=E(u.escapeParameter)?u.escapeParameter:e.escapeParameter,k=!!u.resolvedMessage,L=g(u.default)||E(u.default)?E(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:null,N=n||null!=L&&(g(L)||d(L)),y=ae(e,u);h&&function(e){p(e.list)?e.list=e.list.map((e=>g(e)?f(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{g(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(u);let[T,v,I]=k?[i,y,c[y]||{}]:qe(e,i,y,l,_,m),C=T,O=i;if(k||g(C)||ne(C)||Je(C)||N&&(C=L,O=C),!(k||(g(C)||ne(C)||Je(C))&&g(v)))return a?he:i;let A=!1;const P=Je(C)?C:Ze(e,i,v,C,O,(()=>{A=!0}));if(A)return C;const R=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:l,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=(r,a)=>{let o=l(n,r);if(null==o&&(f||a)){const[,,n]=qe(f||e,r,t,c,i,u);o=l(n,r)}if(g(o)||ne(o)){let n=!1;const a=Ze(e,r,t,o,r,(()=>{n=!0}));return n?ze:a}return Je(o)?o:ze},_={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);s(r.plural)&&(_.pluralIndex=r.plural);return _}(e,v,I,u),S=function(e,t,n){const r=t(n);return r}(0,P,Be(R));return r?r(S,i):S}function qe(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},_=null;for(let p=0;p<u.length&&(f=u[p],m=s[f]||{},null===(_=c(m,t))&&(_=m[t]),!(g(_)||ne(_)||Je(_)));p++)if(!Fe(f,u)){const n=Re(e,t,f,0,"translate");n!==t&&(_=n)}return[_,f,m]}function Ze(e,t,n,r,o,s){const{messageCompiler:l,warnHtmlMessage:c}=e;if(Je(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,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,o,0,c,s));return i.locale=n,i.key=t,i.source=r,i}function et(...e){const[t,n,r]=e,a={};if(!(g(t)||s(t)||Je(t)||ne(t)))throw Error(re.INVALID_ARGUMENT);const o=s(t)?String(t):(Je(t),t);return s(n)?a.plural=n:g(n)?a.default=n:N(n)&&!i(n)?a.named=n:p(n)&&(a.list=n),s(r)?a.plural=r:g(r)?a.default=r:N(r)&&u(a,r),[o,a]}const tt="10.0.1",nt={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},rt=r("__translateVNode"),at=r("__datetimeParts"),ot=r("__numberParts"),st=r("__setPluralRules"),lt=r("__injectWithOption"),ct=r("__dispose");function it(e){if(!b(e))return e;for(const t in e)if(_(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(n[e]in a||(a[n[e]]={}),!b(a[n[e]])){o=!0;break}a=a[n[e]]}o||(a[n[r]]=e[t],delete e[t]),b(a[n[r]])&&it(a[n[r]])}else b(e[t])&&it(e[t]);return e}function ut(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=N(n)?n:p(r)?{}:{[e]:{}};if(p(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},I(n,s[t])):I(n,s)}else g(e)&&I(JSON.parse(e),s)})),null==a&&o)for(const l in s)_(s,l)&&it(s[l]);return s}function ft(e){return e.type}function mt(e,t,n){let r=b(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=ut(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),b(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(b(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function _t(e){return t.createVNode(t.Text,null,e,0)}const pt=()=>[],dt=()=>!1;let gt=0;function Et(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function bt(e={}){const{__root:r,__injectWithOption:a}=e,o=void 0===r,l=e.flatJson,i=n?t.ref:t.shallowRef;let f=!E(e.inheritLocale)||e.inheritLocale;const m=i(r&&f?r.locale.value:g(e.locale)?e.locale:ke),h=i(r&&f?r.fallbackLocale.value:g(e.fallbackLocale)||p(e.fallbackLocale)||N(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:m.value),k=i(ut(m.value,e)),L=i(N(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),y=i(N(e.numberFormats)?e.numberFormats:{[m.value]:{}});let T=r?r.missingWarn:!E(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,v=r?r.fallbackWarn:!E(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,C=r?r.fallbackRoot:!E(e.fallbackRoot)||e.fallbackRoot,O=!!e.fallbackFormat,A=d(e.missing)?e.missing:null,P=d(e.missing)?Et(e.missing):null,R=d(e.postTranslation)?e.postTranslation:null,S=r?r.warnHtmlMessage:!E(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter;const D=r?r.modifiers:N(e.modifiers)?e.modifiers:{};let M,x=e.pluralRules||r&&r.pluralRules;M=(()=>{o&&Ce(null);const t={version:tt,locale:m.value,fallbackLocale:h.value,messages:k.value,modifiers:D,pluralRules:x,missing:null===P?void 0:P,missingWarn:T,fallbackWarn:v,fallbackFormat:O,unresolving:!0,postTranslation:null===R?void 0:R,warnHtmlMessage:S,escapeParameter:F,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=L.value,t.numberFormats=y.value,t.__datetimeFormatters=N(M)?M.__datetimeFormatters:void 0,t.__numberFormatters=N(M)?M.__numberFormatters:void 0;const n=Pe(t);return o&&Ce(n),n})(),Se(M,m.value,h.value);const w=t.computed({get:()=>m.value,set:e=>{m.value=e,M.locale=m.value}}),U=t.computed({get:()=>h.value,set:e=>{h.value=e,M.fallbackLocale=h.value,Se(M,m.value,e)}}),W=t.computed((()=>k.value)),$=t.computed((()=>L.value)),H=t.computed((()=>y.value));const j=(e,t,n,a,l,c)=>{let i;m.value,h.value,k.value,L.value,y.value;try{0,o||(M.fallbackContext=r?Oe():void 0),i=e(M)}finally{o||(M.fallbackContext=void 0)}if("translate exists"!==n&&s(i)&&i===he||"translate exists"===n&&!i){const[e,n]=t();return r&&C?a(r):l(e)}if(c(i))return i;throw Error(nt.UNEXPECTED_RETURN_TYPE)};function V(...e){return j((t=>Reflect.apply(Qe,null,[t,...e])),(()=>et(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>g(e)))}const X={normalize:function(e){return e.map((e=>g(e)||s(e)||E(e)?_t(String(e)):e))},interpolate:e=>e,type:"vnode"};function G(e){return k.value[e]||{}}gt++,r&&n&&(t.watch(r.locale,(e=>{f&&(m.value=e,M.locale=e,Se(M,m.value,h.value))})),t.watch(r.fallbackLocale,(e=>{f&&(h.value=e,M.fallbackLocale=e,Se(M,m.value,h.value))})));const Y={id:gt,locale:w,fallbackLocale:U,get inheritLocale(){return f},set inheritLocale(e){f=e,e&&r&&(m.value=r.locale.value,h.value=r.fallbackLocale.value,Se(M,m.value,h.value))},get availableLocales(){return Object.keys(k.value).sort()},messages:W,get modifiers(){return D},get pluralRules(){return x||{}},get isGlobal(){return o},get missingWarn(){return T},set missingWarn(e){T=e,M.missingWarn=T},get fallbackWarn(){return v},set fallbackWarn(e){v=e,M.fallbackWarn=v},get fallbackRoot(){return C},set fallbackRoot(e){C=e},get fallbackFormat(){return O},set fallbackFormat(e){O=e,M.fallbackFormat=O},get warnHtmlMessage(){return S},set warnHtmlMessage(e){S=e,M.warnHtmlMessage=e},get escapeParameter(){return F},set escapeParameter(e){F=e,M.escapeParameter=e},t:V,getLocaleMessage:G,setLocaleMessage:function(e,t){if(l){const n={[e]:t};for(const e in n)_(n,e)&&it(n[e]);t=n[e]}k.value[e]=t,M.messages=k.value},mergeLocaleMessage:function(e,t){k.value[e]=k.value[e]||{};const n={[e]:t};if(l)for(const r in n)_(n,r)&&it(n[r]);I(t=n[e],k.value[e]),M.messages=k.value},getPostTranslationHandler:function(){return d(R)?R:null},setPostTranslationHandler:function(e){R=e,M.postTranslation=e},getMissingHandler:function(){return A},setMissingHandler:function(e){null!==e&&(P=Et(e)),A=e,M.missing=P},[st]:function(e){x=e,M.pluralRules=x}};return Y.datetimeFormats=$,Y.numberFormats=H,Y.rt=function(...e){const[t,n,r]=e;if(r&&!b(r))throw Error(nt.INVALID_ARGUMENT);return V(t,n,u({resolvedMessage:!0},r||{}))},Y.te=function(e,t){return j((()=>{if(!e)return!1;const n=G(g(t)?t:m.value),r=M.messageResolver(n,e);return ne(r)||Je(r)||g(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),dt,(e=>E(e)))},Y.tm=function(e){const t=function(e){let t=null;const n=ce(M,h.value,m.value);for(let r=0;r<n.length;r++){const a=k.value[n[r]]||{},o=M.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:r&&r.tm(e)||{}},Y.d=function(...e){return j((t=>Reflect.apply(De,null,[t,...e])),(()=>xe(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Le),(e=>g(e)))},Y.n=function(...e){return j((t=>Reflect.apply(Ue,null,[t,...e])),(()=>$e(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Le),(e=>g(e)))},Y.getDateTimeFormat=function(e){return L.value[e]||{}},Y.setDateTimeFormat=function(e,t){L.value[e]=t,M.datetimeFormats=L.value,we(M,e,t)},Y.mergeDateTimeFormat=function(e,t){L.value[e]=u(L.value[e]||{},t),M.datetimeFormats=L.value,we(M,e,t)},Y.getNumberFormat=function(e){return y.value[e]||{}},Y.setNumberFormat=function(e,t){y.value[e]=t,M.numberFormats=y.value,He(M,e,t)},Y.mergeNumberFormat=function(e,t){y.value[e]=u(y.value[e]||{},t),M.numberFormats=y.value,He(M,e,t)},Y[lt]=a,Y[rt]=function(...e){return j((t=>{let n;const r=t;try{r.processor=X,n=Reflect.apply(Qe,null,[r,...e])}finally{r.processor=null}return n}),(()=>et(...e)),"translate",(t=>t[rt](...e)),(e=>[_t(e)]),(e=>p(e)))},Y[at]=function(...e){return j((t=>Reflect.apply(De,null,[t,...e])),(()=>xe(...e)),"datetime format",(t=>t[at](...e)),pt,(e=>g(e)||p(e)))},Y[ot]=function(...e){return j((t=>Reflect.apply(Ue,null,[t,...e])),(()=>$e(...e)),"number format",(t=>t[ot](...e)),pt,(e=>g(e)||p(e)))},Y}function ht(e={}){const t=bt(function(e){const t=g(e.locale)?e.locale:ke,n=g(e.fallbackLocale)||p(e.fallbackLocale)||N(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=d(e.missing)?e.missing:void 0,a=!E(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!E(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!E(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,i=N(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,m=d(e.postTranslation)?e.postTranslation:void 0,_=!g(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,b=!!e.escapeParameterHtml,h=!E(e.sync)||e.sync;let k=e.messages;if(N(e.sharedMessages)){const t=e.sharedMessages;k=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return u(r,t[n]),e}),k||{})}const{__i18n:L,__root:y,__injectWithOption:T}=e,v=e.datetimeFormats,I=e.numberFormats;return{locale:t,fallbackLocale:n,messages:k,flatJson:e.flatJson,datetimeFormats:v,numberFormats:I,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:i,pluralRules:f,postTranslation:m,warnHtmlMessage:_,escapeParameter:b,messageResolver:e.messageResolver,inheritLocale:h,__i18n:L,__root:y,__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 E(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=E(e)?!e:e},get silentFallbackWarn(){return E(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=E(e)?!e: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]),tc(...e){const[n,r,a]=e,o={plural:1};let l=null,c=null;if(!g(n))throw Error(nt.INVALID_ARGUMENT);const i=n;return g(r)?o.locale=r:s(r)?o.plural=r:p(r)?l=r:N(r)&&(c=r),g(a)?o.locale=a:p(a)?l=a:N(a)&&(c=a),Reflect.apply(t.t,t,[i,l||c||{},o])},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 kt(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[st](t.pluralizationRules||e.pluralizationRules);const n=ut(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 Lt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Nt(){return t.Fragment}const yt=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>s(e)||!isNaN(e)}},Lt),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||Dt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(r).filter((e=>"_"!==e)),l={};e.locale&&(l.locale=e.locale),void 0!==e.plural&&(l.plural=g(e.plural)?+e.plural:e.plural);const c=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,s),i=o[rt](e.keypath,c,l),f=u({},a),m=g(e.tag)||b(e.tag)?e.tag:Nt();return t.h(m,f,i)}}}),Tt=yt;function vt(e,n,r,a){const{slots:o,attrs:s}=n;return()=>{const n={part:!0};let l={};e.locale&&(n.locale=e.locale),g(e.format)?n.key=e.format:b(e.format)&&(g(e.format.key)&&(n.key=e.format.key),l=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?u({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,l);let i=[n.key];p(c)?i=c.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return p(a=r)&&!g(a[0])&&(r[0].key=`${e.type}-${t}`),r})):g(c)&&(i=[c]);const f=u({},s),m=g(e.tag)||b(e.tag)?e.tag:Nt();return t.h(m,f,i)}}const It=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Lt),setup(e,t){const n=e.i18n||Dt({useScope:e.scope,__useComponent:!0});return vt(e,t,We,((...e)=>n[ot](...e)))}}),Ct=It,Ot=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Lt),setup(e,t){const n=e.i18n||Dt({useScope:e.scope,__useComponent:!0});return vt(e,t,Me,((...e)=>n[at](...e)))}}),At=Ot;function Pt(e){const r=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Error(nt.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=Rt(r);return[Reflect.apply(a.t,a,[...St(o)]),a]};return{created:(a,o)=>{const[s,l]=r(o);n&&e.global===l&&(a.__i18nWatcher=t.watch(l.locale,(()=>{o.instance&&o.instance.$forceUpdate()}))),a.__composer=l,a.textContent=s},unmounted:e=>{n&&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=Rt(t);e.textContent=Reflect.apply(n.t,n,[...St(r)])}},getSSRProps:e=>{const[t]=r(e);return{textContent:t}}}}function Rt(e){if(g(e))return{path:e};if(N(e)){if(!("path"in e))throw Error(nt.REQUIRED_VALUE,"path");return e}throw Error(nt.INVALID_VALUE)}function St(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,l={},c=r||{};return g(n)&&(l.locale=n),s(a)&&(l.plural=a),s(o)&&(l.plural=o),[t,c,l]}const Ft=r("global-vue-i18n");function Dt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(nt.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(nt.NOT_INSTALLED);const r=function(e){const n=t.inject(e.isCE?Ft:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?nt.NOT_INSTALLED_WITH_PROVIDE:nt.UNEXPECTED_ERROR);return n}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),o=ft(n),s=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===s)return mt(a,e,o),a;if("parent"===s){let t=function(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[lt]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}const l=r;let c=l.__getInstance(n);if(null==c){const r=u({},e);"__i18n"in o&&(r.__i18n=o.__i18n),a&&(r.__root=a),c=bt(r),l.__composerExtend&&(c[ct]=l.__composerExtend(c)),function(e,n,r){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=r;e.__deleteInstance(n);const a=t[ct];a&&(a(),delete t[ct])}),n)}(l,n,c),l.__setInstance(n,c)}return c}const Mt=["locale","fallbackLocale","availableLocales"],xt=["t","rt","d","n","tm","te"];return ye=function(e,t){if(g(e)){!E(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||ee)(e),r=te[n];if(r)return r;const{ast:a,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||A;return t.onError=e=>{n=!0,r(e)},{...J(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),s=Q(a);return o?s:te[n]=s}{const t=e.cacheKey;if(t){const n=te[t];return n||(te[t]=Q(e))}return Q(e)}},Te=function(e,t){if(!b(e))return null;let n=ge.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 _(){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=de(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=pe(n),c=me[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&&ge.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;if(d(a))return null;a=e,o++}return a},ve=ce,e.DatetimeFormat=Ot,e.I18nD=At,e.I18nInjectionKey=Ft,e.I18nN=Ct,e.I18nT=Tt,e.NumberFormat=It,e.Translation=yt,e.VERSION=tt,e.createI18n=function(e={},n){const a=!E(e.legacy)||e.legacy,o=!E(e.globalInjection)||e.globalInjection,s=new Map,[l,c]=function(e,n,r){const a=t.effectScope(),o=n?a.run((()=>ht(e))):a.run((()=>bt(e)));if(null==o)throw Error(nt.UNEXPECTED_ERROR);return[a,o]}(e,a),i=r(""),u={get mode(){return a?"legacy":"composition"},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=i,e.provide(e.__VUE_I18N_SYMBOL__,u),N(n[0])){const e=n[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let r=null;!a&&o&&(r=function(e,n){const r=Object.create(null);Mt.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(nt.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,xt.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(nt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}));const a=()=>{delete e.config.globalProperties.$i18n,xt.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return a}(e,u.global)),function(e,t,...n){const r=N(n[0])?n[0]:{};(!E(r.globalInstall)||r.globalInstall)&&([yt.name,"I18nT"].forEach((t=>e.component(t,yt))),[It.name,"I18nN"].forEach((t=>e.component(t,It))),[Ot.name,"I18nD"].forEach((t=>e.component(t,Ot)))),e.directive("t",Pt(t))}(e,u,...n),a&&e.mixin(function(e,n,r){return{beforeCreate(){const a=t.getCurrentInstance();if(!a)throw Error(nt.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const t=o.i18n;if(o.__i18n&&(t.__i18n=o.__i18n),t.__root=n,this===this.$root)this.$i18n=kt(e,t);else{t.__injectWithOption=!0,t.__extender=r.__vueI18nExtend,this.$i18n=ht(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=kt(e,o);else{this.$i18n=ht({__i18n:o.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:n});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&mt(n,o,o),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),r.__setInstance(a,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(nt.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),r.__deleteInstance(e),delete this.$i18n}}}(c,c.__composer,u));const s=e.unmount;e.unmount=()=>{r&&r(),u.dispose(),s()}},get global(){return c},dispose(){l.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return u},e.useI18n=Dt,e.vTDirective=Pt,e}({},Vue); | ||
var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,r=(e,t=!1)=>t?Symbol.for(e):Symbol(e),a=(e,t,n)=>o({l:e,k:t,s:n}),o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),s=e=>"number"==typeof e&&isFinite(e),l=e=>"[object Date]"===L(e),c=e=>"[object RegExp]"===L(e),i=e=>N(e)&&0===Object.keys(e).length,u=Object.assign;function f(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const m=Object.prototype.hasOwnProperty;function _(e,t){return m.call(e,t)}const p=Array.isArray,d=e=>"function"==typeof e,g=e=>"string"==typeof e,E=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=e=>b(e)&&d(e.then)&&d(e.catch),k=Object.prototype.toString,L=e=>k.call(e),N=e=>"[object Object]"===L(e);function y(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function T(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const v=e=>!b(e)||p(e);function I(e,t){if(v(e)||v(t))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=>{b(e[r])&&!b(t[r])&&(t[r]=Array.isArray(e[r])?[]:{}),v(t[r])||v(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]})}))}}function C(e,t,n){return{start:e,end:t}}const O={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,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16};function A(e){throw e}const P=" ",R="\r",S="\n",F=String.fromCharCode(8232),D=String.fromCharCode(8233);function M(e){const t=e;let n=0,r=1,a=1,o=0;const s=e=>t[e]===R&&t[e+1]===S,l=e=>t[e]===D,c=e=>t[e]===F,i=e=>s(e)||(e=>t[e]===S)(e)||l(e)||c(e),u=e=>s(e)||l(e)||c(e)?S: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 x=void 0,w="'";function U(e,t={}){const n=!1!==t.location,r=M(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=C(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,13);function _(e,t){return e.currentChar()===t?(e.next(),t):(O.EXPECTED_TOKEN,o(),"")}function p(e){let t="";for(;e.currentPeek()===P||e.currentPeek()===S;)t+=e.currentPeek(),e.peek();return t}function d(e){const t=p(e);return e.skipToPeek(),t}function g(e){if(e===x)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function E(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=function(e){if(e===x)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){p(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function h(e,t=!0){const n=(t=!1,r="")=>{const a=e.currentPeek();return"{"===a?t:"@"!==a&&a?"|"===a?!(r===P||r===S):a===P?(e.peek(),n(!0,P)):a!==S||(e.peek(),n(!0,S)):t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===x?x: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 N(e){return k(e,L)}function y(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 T(e){return k(e,y)}function v(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function I(e){return k(e,v)}function A(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function R(e){return k(e,A)}function F(e){let t="",n="";for(;t=I(e);)n+=t;return n}function D(e){return e!==w&&e!==S}function U(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return W(e,t,4);case"U":return W(e,t,6);default:return O.UNKNOWN_ESCAPE_SEQUENCE,o(),""}}function W(e,t,n){_(e,t);let r="";for(let a=0;a<n;a++){const t=R(e);if(!t){O.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function $(e){return"{"!==e&&"}"!==e&&e!==P&&e!==S}function H(e){d(e);const t=_(e,"|");return d(e),t}function j(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&(O.NOT_ALLOW_NEST_PLACEHOLDER,o()),e.next(),n=f(t,2,"{"),d(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&(O.EMPTY_PLACEHOLDER,o()),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&d(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&(O.UNTERMINATED_CLOSING_BRACE,o()),n=V(e,t)||m(t),t.braceNest=0,n;default:{let r=!0,a=!0,s=!0;if(b(e))return t.braceNest>0&&(O.UNTERMINATED_CLOSING_BRACE,o()),n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(4===t.currentType||5===t.currentType||6===t.currentType))return O.UNTERMINATED_CLOSING_BRACE,o(),t.braceNest=0,X(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,4,function(e){d(e);let t="",n="";for(;t=T(e);)n+=t;return e.currentChar()===x&&(O.UNTERMINATED_CLOSING_BRACE,o()),n}(e)),d(e),n;if(a=E(e,t))return n=f(t,5,function(e){d(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${F(e)}`):t+=F(e),e.currentChar()===x&&(O.UNTERMINATED_CLOSING_BRACE,o()),t}(e)),d(e),n;if(s=function(e,t){const{currentType:n}=t;if(2!==n)return!1;p(e);const r=e.currentPeek()===w;return e.resetPeek(),r}(e,t))return n=f(t,6,function(e){d(e),_(e,"'");let t="",n="";for(;t=k(e,D);)n+="\\"===t?U(e):t;const r=e.currentChar();return r===S||r===x?(O.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),r===S&&(e.next(),_(e,"'")),n):(_(e,"'"),n)}(e)),d(e),n;if(!r&&!a&&!s)return n=f(t,12,function(e){d(e);let t="",n="";for(;t=k(e,$);)n+=t;return n}(e)),O.INVALID_TOKEN_IN_PLACEHOLDER,o(),n.value,d(e),n;break}}return n}function V(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(7!==n&&8!==n&&11!==n&&9!==n||a!==S&&a!==P||(O.INVALID_LINKED_FORMAT,o()),a){case"@":return e.next(),r=f(t,7,"@"),t.inLinked=!0,r;case".":return d(e),e.next(),f(t,8,".");case":":return d(e),e.next(),f(t,9,":");default:return b(e)?(r=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(7!==n)return!1;p(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;p(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(d(e),V(e,t)):function(e,t){const{currentType:n}=t;if(8!==n)return!1;p(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(d(e),f(t,11,function(e){let t="",n="";for(;t=N(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===P||!t)&&(t===S?(e.peek(),r()):h(e,!1))},a=r();return e.resetPeek(),a}(e,t)?(d(e),"{"===a?j(e,t)||r:f(t,10,function(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===P?n:(n+=r,e.next(),t(n)):n};return t("")}(e))):(7===n&&(O.INVALID_LINKED_FORMAT,o()),t.braceNest=0,t.inLinked=!1,X(e,t))}}function X(e,t){let n={type:13};if(t.braceNest>0)return j(e,t)||m(t);if(t.inLinked)return V(e,t)||m(t);switch(e.currentChar()){case"{":return j(e,t)||m(t);case"}":return O.UNBALANCED_CLOSING_BRACE,o(),e.next(),f(t,3,"}");case"@":return V(e,t)||m(t);default:if(b(e))return n=f(t,1,H(e)),t.braceNest=0,t.inLinked=!1,n;if(h(e))return f(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if(n===P||n===S)if(h(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()===x?f(c,13):X(r,c)},currentOffset:a,currentPosition:o,context:i}}const W=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function $(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 H(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,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(W,$),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?(O.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,l.value="",a(l,o,s),{nextConsumeToken:t,node:l}):(null==t.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,j(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&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 10:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(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&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),n.key=l(e,o.value||"");break;case 5:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(o)),n.key=c(e,o.value||"");break;default:{O.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 f(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&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(r)),n.items.push(o(e,r.value||""));break;case 5:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(r)),n.items.push(s(e,r.value||""));break;case 4:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(r)),n.items.push(l(e,r.value||""));break;case 6:null==r.value&&(O.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,j(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 m(e){const t=e.context(),{offset:n,startLoc:o}=t,s=f(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=f(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=U(n,u({},e)),s=o.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=m(o),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),13!==s.currentType&&(O.UNEXPECTED_LEXICAL_ANALYSIS,s.lastStartLoc,n[s.offset]),a(l,o.currentOffset(),o.currentPosition()),l}}}function j(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 V(e,t){for(let n=0;n<e.length;n++)X(e[n],t)}function X(e,t){switch(e.type){case 1:V(e.cases,t),t.helper("plural");break;case 2:V(e.items,t);break;case 6:X(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 G(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&&X(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function Y(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=y(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 K(e){switch(e.t=e.type,e.type){case 0:{const t=e;K(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++)K(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++)K(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;K(t.key),t.k=t.key,delete t.key,t.modifier&&(K(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 B(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?B(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&&(B(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&&(B(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")}(`),B(e,t.key),t.modifier?(e.push(", "),B(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 z=(e,t={})=>{const n=g(t.mode)?t.mode:"normal",r=g(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",s=t.needIndent?t.needIndent:"arrow"!==n,l=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,s=!1!==t.location,l={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function c(e,t){l.code+=e}function i(e,t=!0){const n=t?a:"";c(o?n+" ".repeat(e):n)}return s&&e.loc&&(l.source=e.loc.source),{context:()=>l,push:c,indent:function(e=!0){const t=++l.indentLevel;e&&i(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&i(t)},newline:function(){i(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:s});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(s),l.length>0&&(c.push(`const { ${y(l.map((e=>`${e}: _${e}`)),", ")} } = ctx`),c.newline()),c.push("return "),B(c,e),c.deindent(s),c.push("}"),delete e.helpers;const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}};function J(e,t={}){const n=u({},t),r=!!n.jit,a=!!n.minify,o=null==n.optimize||n.optimize,s=H(n).parse(e);return r?(o&&function(e){const t=e.body;2===t.type?Y(t):t.cases.forEach((e=>Y(e)))}(s),a&&K(s),{ast:s,code:""}):(G(s,n),z(s,n))}function Q(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,r=t.c||t.cases;return e.plural(r.reduce(((t,n)=>[...t,q(e,n)]),[]))}return q(e,n)}(t,e)}function q(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,Z(e,n)]),[]);return e.normalize(n)}}function Z(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,r=n.m||n.modifier;return e.linked(Z(e,n.k||n.key),r?Z(e,r):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}const ee=e=>e;let te=Object.create(null);const ne=e=>b(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);const re={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function ae(e,t){return null!=t.locale?se(t.locale):se(e.locale)}let oe;function se(e){if(g(e))return e;if(d(e)){if(e.resolvedOnce&&null!=oe)return oe;if("Function"===e.constructor.name){const t=e();if(h(t))throw Error(re.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return oe=t}throw Error(re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(re.NOT_SUPPORT_LOCALE_TYPE)}function le(e,t,n){return[...new Set([n,...p(t)?t:b(t)?Object.keys(t):g(t)?[t]:[n]])]}function ce(e,t,n){const r=g(n)?n:ke,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;p(e);)e=ie(o,e,t);const s=p(t)||!N(t)?t:t.default?t.default:null;e=g(s)?[s]:s,p(e)&&ie(o,e,!1),a.__localeChainCache.set(r,o)}return o}function ie(e,t,n){let r=!0;for(let a=0;a<t.length&&E(r);a++){const o=t[a];g(o)&&(r=ue(e,t[a],n))}return r}function ue(e,t,n){let r;const a=t.split("-");do{r=fe(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function fe(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),(p(n)||N(n))&&n[a]&&(r=n[a])}return r}const me=[];me[0]={w:[0],i:[3,0],"[":[4],o:[7]},me[1]={w:[1],".":[2],"[":[4],o:[7]},me[2]={w:[2],i:[3,0],0:[3,0]},me[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},me[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},me[5]={"'":[4,0],o:8,l:[5,0]},me[6]={'"':[4,0],o:8,l:[6,0]};const _e=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function pe(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 de(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,_e.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 ge=new Map;function Ee(e,t){return b(e)?e[t]:null}const be="10.0.2",he=-1,ke="en-US",Le="",Ne=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let ye,Te,ve;let Ie=null;const Ce=e=>{Ie=e},Oe=()=>Ie;let Ae=0;function Pe(e={}){const t=d(e.onWarn)?e.onWarn:T,n=g(e.version)?e.version:be,r=g(e.locale)||d(e.locale)?e.locale:ke,a=d(r)?ke:r,o=p(e.fallbackLocale)||N(e.fallbackLocale)||g(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=N(e.messages)?e.messages:{[a]:{}},l=N(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},i=N(e.numberFormats)?e.numberFormats:{[a]:{}},f=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&g(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&g(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&g(e)?Ne(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?Ne(e.children):e}),m=e.pluralRules||{},_=d(e.missing)?e.missing:null,h=!E(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,k=!E(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,L=!!e.fallbackFormat,y=!!e.unresolving,v=d(e.postTranslation)?e.postTranslation:null,I=N(e.processor)?e.processor:null,C=!E(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,A=d(e.messageCompiler)?e.messageCompiler:ye,P=d(e.messageResolver)?e.messageResolver:Te||Ee,R=d(e.localeFallbacker)?e.localeFallbacker:ve||le,S=b(e.fallbackContext)?e.fallbackContext:void 0,F=e,D=b(F.__datetimeFormatters)?F.__datetimeFormatters:new Map,M=b(F.__numberFormatters)?F.__numberFormatters:new Map,x=b(F.__meta)?F.__meta:{};Ae++;const w={version:n,cid:Ae,locale:r,fallbackLocale:o,messages:s,modifiers:f,pluralRules:m,missing:_,missingWarn:h,fallbackWarn:k,fallbackFormat:L,unresolving:y,postTranslation:v,processor:I,warnHtmlMessage:C,escapeParameter:O,messageCompiler:A,messageResolver:P,localeFallbacker:R,fallbackContext:S,onWarn:t,__meta:x};return w.datetimeFormats=l,w.numberFormats=i,w.__datetimeFormatters=D,w.__numberFormatters=M,w}function Re(e,t,n,r,a){const{missing:o,onWarn:s}=e;if(null!==o){const r=o(e,n,t,a);return g(r)?r:t}return t}function Se(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Fe(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 De(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__datetimeFormatters:l}=e,[c,f,m,_]=xe(...t);E(m.missingWarn)?m.missingWarn:e.missingWarn;E(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=ae(e,m),b=s(e,a,d);if(!g(c)||""===c)return new Intl.DateTimeFormat(d,_).format(f);let h,k={},L=null;for(let i=0;i<b.length&&(h=b[i],k=n[h]||{},L=k[c],!N(L));i++)Re(e,c,h,0,"datetime format");if(!N(L)||!g(h))return r?he:c;let y=`${h}__${c}`;i(_)||(y=`${y}__${JSON.stringify(_)}`);let T=l.get(y);return T||(T=new Intl.DateTimeFormat(h,u({},L,_)),l.set(y,T)),p?T.formatToParts(f):T.format(f)}const Me=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function xe(...e){const[t,n,r,a]=e,o={};let c,i={};if(g(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(re.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();c=new Date(n);try{c.toISOString()}catch{throw Error(re.INVALID_ISO_DATE_ARGUMENT)}}else if(l(t)){if(isNaN(t.getTime()))throw Error(re.INVALID_DATE_ARGUMENT);c=t}else{if(!s(t))throw Error(re.INVALID_ARGUMENT);c=t}return g(n)?o.key=n:N(n)&&Object.keys(n).forEach((e=>{Me.includes(e)?i[e]=n[e]:o[e]=n[e]})),g(r)?o.locale=r:N(r)&&(i=r),N(a)&&(i=a),[o.key||"",c,o,i]}function we(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function Ue(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:s}=e,{__numberFormatters:l}=e,[c,f,m,_]=$e(...t);E(m.missingWarn)?m.missingWarn:e.missingWarn;E(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const p=!!m.part,d=ae(e,m),b=s(e,a,d);if(!g(c)||""===c)return new Intl.NumberFormat(d,_).format(f);let h,k={},L=null;for(let i=0;i<b.length&&(h=b[i],k=n[h]||{},L=k[c],!N(L));i++)Re(e,c,h,0,"number format");if(!N(L)||!g(h))return r?he:c;let y=`${h}__${c}`;i(_)||(y=`${y}__${JSON.stringify(_)}`);let T=l.get(y);return T||(T=new Intl.NumberFormat(h,u({},L,_)),l.set(y,T)),p?T.formatToParts(f):T.format(f)}const We=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function $e(...e){const[t,n,r,a]=e,o={};let l={};if(!s(t))throw Error(re.INVALID_ARGUMENT);const c=t;return g(n)?o.key=n:N(n)&&Object.keys(n).forEach((e=>{We.includes(e)?l[e]=n[e]:o[e]=n[e]})),g(r)?o.locale=r:N(r)&&(l=r),N(a)&&(l=a),[o.key||"",c,o,l]}function He(e,t,n){const r=e;for(const a in n){const e=`${t}__${a}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}const je=e=>e,Ve=e=>"",Xe="text",Ge=e=>0===e.length?"":y(e),Ye=e=>null==e?"":p(e)||N(e)&&e.toString===k?JSON.stringify(e,null,2):String(e);function Ke(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Be(e={}){const t=e.locale,n=function(e){const t=s(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(s(e.named.count)||s(e.named.n))?s(e.named.count)?e.named.count:s(e.named.n)?e.named.n:t:t}(e),r=b(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?e.pluralRules[t]:Ke,a=b(e.pluralRules)&&g(t)&&d(e.pluralRules[t])?Ke:void 0,o=e.list||[],l=e.named||{};s(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,l);function c(t,n){const r=d(e.messages)?e.messages(t,!!n):!!b(e.messages)&&e.messages[t];return r||(e.parent?e.parent.message(t):Ve)}const i=N(e.processor)&&d(e.processor.normalize)?e.processor.normalize:Ge,f=N(e.processor)&&d(e.processor.interpolate)?e.processor.interpolate:Ye,m={list:e=>o[e],named:e=>l[e],plural:e=>e[r(n,e.length,a)],linked:(t,...n)=>{const[r,a]=n;let o="text",s="";1===n.length?b(r)?(s=r.modifier||s,o=r.type||o):g(r)&&(s=r||s):2===n.length&&(g(r)&&(s=r||s),g(a)&&(o=a||o));const l=c(t,!0)(m),i="vnode"===o&&p(l)&&s?l[0]:l;return s?(u=s,e.modifiers?e.modifiers[u]:je)(i,o):i;var u},message:c,type:N(e.processor)&&g(e.processor.type)?e.processor.type:Xe,interpolate:f,normalize:i,values:u({},o,l)};return m}const ze=()=>"",Je=e=>d(e);function Qe(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:l,messages:c}=e,[i,u]=et(...t),m=E(u.missingWarn)?u.missingWarn:e.missingWarn,_=E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,h=E(u.escapeParameter)?u.escapeParameter:e.escapeParameter,k=!!u.resolvedMessage,L=g(u.default)||E(u.default)?E(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:null,N=n||null!=L&&(g(L)||d(L)),y=ae(e,u);h&&function(e){p(e.list)?e.list=e.list.map((e=>g(e)?f(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{g(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(u);let[T,v,I]=k?[i,y,c[y]||{}]:qe(e,i,y,l,_,m),C=T,O=i;if(k||g(C)||ne(C)||Je(C)||N&&(C=L,O=C),!(k||(g(C)||ne(C)||Je(C))&&g(v)))return a?he:i;let A=!1;const P=Je(C)?C:Ze(e,i,v,C,O,(()=>{A=!0}));if(A)return C;const R=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:l,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=(r,a)=>{let o=l(n,r);if(null==o&&(f||a)){const[,,n]=qe(f||e,r,t,c,i,u);o=l(n,r)}if(g(o)||ne(o)){let n=!1;const a=Ze(e,r,t,o,r,(()=>{n=!0}));return n?ze:a}return Je(o)?o:ze},_={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(_.processor=e.processor);r.list&&(_.list=r.list);r.named&&(_.named=r.named);s(r.plural)&&(_.pluralIndex=r.plural);return _}(e,v,I,u),S=function(e,t,n){const r=t(n);return r}(0,P,Be(R));return r?r(S,i):S}function qe(e,t,n,r,a,o){const{messages:s,onWarn:l,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},_=null;for(let p=0;p<u.length&&(f=u[p],m=s[f]||{},null===(_=c(m,t))&&(_=m[t]),!(g(_)||ne(_)||Je(_)));p++)if(!Fe(f,u)){const n=Re(e,t,f,0,"translate");n!==t&&(_=n)}return[_,f,m]}function Ze(e,t,n,r,o,s){const{messageCompiler:l,warnHtmlMessage:c}=e;if(Je(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,o,s){return{locale:t,key:n,warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>a(t,n,e)}}(0,n,o,0,c,s));return i.locale=n,i.key=t,i.source=r,i}function et(...e){const[t,n,r]=e,a={};if(!(g(t)||s(t)||Je(t)||ne(t)))throw Error(re.INVALID_ARGUMENT);const o=s(t)?String(t):(Je(t),t);return s(n)?a.plural=n:g(n)?a.default=n:N(n)&&!i(n)?a.named=n:p(n)&&(a.list=n),s(r)?a.plural=r:g(r)?a.default=r:N(r)&&u(a,r),[o,a]}const tt="10.0.2",nt={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},rt=r("__translateVNode"),at=r("__datetimeParts"),ot=r("__numberParts"),st=r("__setPluralRules"),lt=r("__injectWithOption"),ct=r("__dispose");function it(e){if(!b(e))return e;for(const t in e)if(_(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(n[e]in a||(a[n[e]]={}),!b(a[n[e]])){o=!0;break}a=a[n[e]]}o||(a[n[r]]=e[t],delete e[t]),b(a[n[r]])&&it(a[n[r]])}else b(e[t])&&it(e[t]);return e}function ut(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,s=N(n)?n:p(r)?{}:{[e]:{}};if(p(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(s[t]=s[t]||{},I(n,s[t])):I(n,s)}else g(e)&&I(JSON.parse(e),s)})),null==a&&o)for(const l in s)_(s,l)&&it(s[l]);return s}function ft(e){return e.type}function mt(e,t,n){let r=b(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=ut(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),b(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(b(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function _t(e){return t.createVNode(t.Text,null,e,0)}const pt=()=>[],dt=()=>!1;let gt=0;function Et(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function bt(e={}){const{__root:r,__injectWithOption:a}=e,o=void 0===r,l=e.flatJson,i=n?t.ref:t.shallowRef;let f=!E(e.inheritLocale)||e.inheritLocale;const m=i(r&&f?r.locale.value:g(e.locale)?e.locale:ke),h=i(r&&f?r.fallbackLocale.value:g(e.fallbackLocale)||p(e.fallbackLocale)||N(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:m.value),k=i(ut(m.value,e)),L=i(N(e.datetimeFormats)?e.datetimeFormats:{[m.value]:{}}),y=i(N(e.numberFormats)?e.numberFormats:{[m.value]:{}});let T=r?r.missingWarn:!E(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,v=r?r.fallbackWarn:!E(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,C=r?r.fallbackRoot:!E(e.fallbackRoot)||e.fallbackRoot,O=!!e.fallbackFormat,A=d(e.missing)?e.missing:null,P=d(e.missing)?Et(e.missing):null,R=d(e.postTranslation)?e.postTranslation:null,S=r?r.warnHtmlMessage:!E(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter;const D=r?r.modifiers:N(e.modifiers)?e.modifiers:{};let M,x=e.pluralRules||r&&r.pluralRules;M=(()=>{o&&Ce(null);const t={version:tt,locale:m.value,fallbackLocale:h.value,messages:k.value,modifiers:D,pluralRules:x,missing:null===P?void 0:P,missingWarn:T,fallbackWarn:v,fallbackFormat:O,unresolving:!0,postTranslation:null===R?void 0:R,warnHtmlMessage:S,escapeParameter:F,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=L.value,t.numberFormats=y.value,t.__datetimeFormatters=N(M)?M.__datetimeFormatters:void 0,t.__numberFormatters=N(M)?M.__numberFormatters:void 0;const n=Pe(t);return o&&Ce(n),n})(),Se(M,m.value,h.value);const w=t.computed({get:()=>m.value,set:e=>{m.value=e,M.locale=m.value}}),U=t.computed({get:()=>h.value,set:e=>{h.value=e,M.fallbackLocale=h.value,Se(M,m.value,e)}}),W=t.computed((()=>k.value)),$=t.computed((()=>L.value)),H=t.computed((()=>y.value));const j=(e,t,n,a,l,c)=>{let i;m.value,h.value,k.value,L.value,y.value;try{0,o||(M.fallbackContext=r?Oe():void 0),i=e(M)}finally{o||(M.fallbackContext=void 0)}if("translate exists"!==n&&s(i)&&i===he||"translate exists"===n&&!i){const[e,n]=t();return r&&C?a(r):l(e)}if(c(i))return i;throw Error(nt.UNEXPECTED_RETURN_TYPE)};function V(...e){return j((t=>Reflect.apply(Qe,null,[t,...e])),(()=>et(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>g(e)))}const X={normalize:function(e){return e.map((e=>g(e)||s(e)||E(e)?_t(String(e)):e))},interpolate:e=>e,type:"vnode"};function G(e){return k.value[e]||{}}gt++,r&&n&&(t.watch(r.locale,(e=>{f&&(m.value=e,M.locale=e,Se(M,m.value,h.value))})),t.watch(r.fallbackLocale,(e=>{f&&(h.value=e,M.fallbackLocale=e,Se(M,m.value,h.value))})));const Y={id:gt,locale:w,fallbackLocale:U,get inheritLocale(){return f},set inheritLocale(e){f=e,e&&r&&(m.value=r.locale.value,h.value=r.fallbackLocale.value,Se(M,m.value,h.value))},get availableLocales(){return Object.keys(k.value).sort()},messages:W,get modifiers(){return D},get pluralRules(){return x||{}},get isGlobal(){return o},get missingWarn(){return T},set missingWarn(e){T=e,M.missingWarn=T},get fallbackWarn(){return v},set fallbackWarn(e){v=e,M.fallbackWarn=v},get fallbackRoot(){return C},set fallbackRoot(e){C=e},get fallbackFormat(){return O},set fallbackFormat(e){O=e,M.fallbackFormat=O},get warnHtmlMessage(){return S},set warnHtmlMessage(e){S=e,M.warnHtmlMessage=e},get escapeParameter(){return F},set escapeParameter(e){F=e,M.escapeParameter=e},t:V,getLocaleMessage:G,setLocaleMessage:function(e,t){if(l){const n={[e]:t};for(const e in n)_(n,e)&&it(n[e]);t=n[e]}k.value[e]=t,M.messages=k.value},mergeLocaleMessage:function(e,t){k.value[e]=k.value[e]||{};const n={[e]:t};if(l)for(const r in n)_(n,r)&&it(n[r]);I(t=n[e],k.value[e]),M.messages=k.value},getPostTranslationHandler:function(){return d(R)?R:null},setPostTranslationHandler:function(e){R=e,M.postTranslation=e},getMissingHandler:function(){return A},setMissingHandler:function(e){null!==e&&(P=Et(e)),A=e,M.missing=P},[st]:function(e){x=e,M.pluralRules=x}};return Y.datetimeFormats=$,Y.numberFormats=H,Y.rt=function(...e){const[t,n,r]=e;if(r&&!b(r))throw Error(nt.INVALID_ARGUMENT);return V(t,n,u({resolvedMessage:!0},r||{}))},Y.te=function(e,t){return j((()=>{if(!e)return!1;const n=G(g(t)?t:m.value),r=M.messageResolver(n,e);return ne(r)||Je(r)||g(r)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),dt,(e=>E(e)))},Y.tm=function(e){const t=function(e){let t=null;const n=ce(M,h.value,m.value);for(let r=0;r<n.length;r++){const a=k.value[n[r]]||{},o=M.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:r&&r.tm(e)||{}},Y.d=function(...e){return j((t=>Reflect.apply(De,null,[t,...e])),(()=>xe(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Le),(e=>g(e)))},Y.n=function(...e){return j((t=>Reflect.apply(Ue,null,[t,...e])),(()=>$e(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Le),(e=>g(e)))},Y.getDateTimeFormat=function(e){return L.value[e]||{}},Y.setDateTimeFormat=function(e,t){L.value[e]=t,M.datetimeFormats=L.value,we(M,e,t)},Y.mergeDateTimeFormat=function(e,t){L.value[e]=u(L.value[e]||{},t),M.datetimeFormats=L.value,we(M,e,t)},Y.getNumberFormat=function(e){return y.value[e]||{}},Y.setNumberFormat=function(e,t){y.value[e]=t,M.numberFormats=y.value,He(M,e,t)},Y.mergeNumberFormat=function(e,t){y.value[e]=u(y.value[e]||{},t),M.numberFormats=y.value,He(M,e,t)},Y[lt]=a,Y[rt]=function(...e){return j((t=>{let n;const r=t;try{r.processor=X,n=Reflect.apply(Qe,null,[r,...e])}finally{r.processor=null}return n}),(()=>et(...e)),"translate",(t=>t[rt](...e)),(e=>[_t(e)]),(e=>p(e)))},Y[at]=function(...e){return j((t=>Reflect.apply(De,null,[t,...e])),(()=>xe(...e)),"datetime format",(t=>t[at](...e)),pt,(e=>g(e)||p(e)))},Y[ot]=function(...e){return j((t=>Reflect.apply(Ue,null,[t,...e])),(()=>$e(...e)),"number format",(t=>t[ot](...e)),pt,(e=>g(e)||p(e)))},Y}function ht(e={}){const t=bt(function(e){const t=g(e.locale)?e.locale:ke,n=g(e.fallbackLocale)||p(e.fallbackLocale)||N(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=d(e.missing)?e.missing:void 0,a=!E(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!E(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,s=!E(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,i=N(e.modifiers)?e.modifiers:{},f=e.pluralizationRules,m=d(e.postTranslation)?e.postTranslation:void 0,_=!g(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,b=!!e.escapeParameterHtml,h=!E(e.sync)||e.sync;let k=e.messages;if(N(e.sharedMessages)){const t=e.sharedMessages;k=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return u(r,t[n]),e}),k||{})}const{__i18n:L,__root:y,__injectWithOption:T}=e,v=e.datetimeFormats,I=e.numberFormats;return{locale:t,fallbackLocale:n,messages:k,flatJson:e.flatJson,datetimeFormats:v,numberFormats:I,missing:r,missingWarn:a,fallbackWarn:o,fallbackRoot:s,fallbackFormat:l,modifiers:i,pluralRules:f,postTranslation:m,warnHtmlMessage:_,escapeParameter:b,messageResolver:e.messageResolver,inheritLocale:h,__i18n:L,__root:y,__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 E(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=E(e)?!e:e},get silentFallbackWarn(){return E(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=E(e)?!e: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]),tc(...e){const[n,r,a]=e,o={plural:1};let l=null,c=null;if(!g(n))throw Error(nt.INVALID_ARGUMENT);const i=n;return g(r)?o.locale=r:s(r)?o.plural=r:p(r)?l=r:N(r)&&(c=r),g(a)?o.locale=a:p(a)?l=a:N(a)&&(c=a),Reflect.apply(t.t,t,[i,l||c||{},o])},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 kt(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[st](t.pluralizationRules||e.pluralizationRules);const n=ut(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 Lt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function Nt(){return t.Fragment}const yt=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>s(e)||!isNaN(e)}},Lt),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||Dt({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(r).filter((e=>"_"!==e)),l={};e.locale&&(l.locale=e.locale),void 0!==e.plural&&(l.plural=g(e.plural)?+e.plural:e.plural);const c=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,s),i=o[rt](e.keypath,c,l),f=u({},a),m=g(e.tag)||b(e.tag)?e.tag:Nt();return t.h(m,f,i)}}}),Tt=yt;function vt(e,n,r,a){const{slots:o,attrs:s}=n;return()=>{const n={part:!0};let l={};e.locale&&(n.locale=e.locale),g(e.format)?n.key=e.format:b(e.format)&&(g(e.format.key)&&(n.key=e.format.key),l=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?u({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,l);let i=[n.key];p(c)?i=c.map(((e,t)=>{const n=o[e.type],r=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var a;return p(a=r)&&!g(a[0])&&(r[0].key=`${e.type}-${t}`),r})):g(c)&&(i=[c]);const f=u({},s),m=g(e.tag)||b(e.tag)?e.tag:Nt();return t.h(m,f,i)}}const It=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Lt),setup(e,t){const n=e.i18n||Dt({useScope:e.scope,__useComponent:!0});return vt(e,t,We,((...e)=>n[ot](...e)))}}),Ct=It,Ot=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Lt),setup(e,t){const n=e.i18n||Dt({useScope:e.scope,__useComponent:!0});return vt(e,t,Me,((...e)=>n[at](...e)))}}),At=Ot;function Pt(e){const r=t=>{const{instance:n,value:r}=t;if(!n||!n.$)throw Error(nt.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=Rt(r);return[Reflect.apply(a.t,a,[...St(o)]),a]};return{created:(a,o)=>{const[s,l]=r(o);n&&e.global===l&&(a.__i18nWatcher=t.watch(l.locale,(()=>{o.instance&&o.instance.$forceUpdate()}))),a.__composer=l,a.textContent=s},unmounted:e=>{n&&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=Rt(t);e.textContent=Reflect.apply(n.t,n,[...St(r)])}},getSSRProps:e=>{const[t]=r(e);return{textContent:t}}}}function Rt(e){if(g(e))return{path:e};if(N(e)){if(!("path"in e))throw Error(nt.REQUIRED_VALUE,"path");return e}throw Error(nt.INVALID_VALUE)}function St(e){const{path:t,locale:n,args:r,choice:a,plural:o}=e,l={},c=r||{};return g(n)&&(l.locale=n),s(a)&&(l.plural=a),s(o)&&(l.plural=o),[t,c,l]}const Ft=r("global-vue-i18n");function Dt(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(nt.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(nt.NOT_INSTALLED);const r=function(e){const n=t.inject(e.isCE?Ft:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?nt.NOT_INSTALLED_WITH_PROVIDE:nt.UNEXPECTED_ERROR);return n}(n),a=function(e){return"composition"===e.mode?e.global:e.global.__composer}(r),o=ft(n),s=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("global"===s)return mt(a,e,o),a;if("parent"===s){let t=function(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[lt]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(r,n,e.__useComponent);return null==t&&(t=a),t}const l=r;let c=l.__getInstance(n);if(null==c){const r=u({},e);"__i18n"in o&&(r.__i18n=o.__i18n),a&&(r.__root=a),c=bt(r),l.__composerExtend&&(c[ct]=l.__composerExtend(c)),function(e,n,r){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=r;e.__deleteInstance(n);const a=t[ct];a&&(a(),delete t[ct])}),n)}(l,n,c),l.__setInstance(n,c)}return c}const Mt=["locale","fallbackLocale","availableLocales"],xt=["t","rt","d","n","tm","te"];return ye=function(e,t){if(g(e)){!E(t.warnHtmlMessage)||t.warnHtmlMessage;const n=(t.onCacheKey||ee)(e),r=te[n];if(r)return r;const{ast:a,detectError:o}=function(e,t={}){let n=!1;const r=t.onError||A;return t.onError=e=>{n=!0,r(e)},{...J(e,t),detectError:n}}(e,{...t,location:!1,jit:!0}),s=Q(a);return o?s:te[n]=s}{const t=e.cacheKey;if(t){const n=te[t];return n||(te[t]=Q(e))}return Q(e)}},Te=function(e,t){if(!b(e))return null;let n=ge.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 _(){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=de(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(o=pe(n),c=me[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&&ge.set(t,n)),!n)return null;const r=n.length;let a=e,o=0;for(;o<r;){const e=a[n[o]];if(void 0===e)return null;if(d(a))return null;a=e,o++}return a},ve=ce,e.DatetimeFormat=Ot,e.I18nD=At,e.I18nInjectionKey=Ft,e.I18nN=Ct,e.I18nT=Tt,e.NumberFormat=It,e.Translation=yt,e.VERSION=tt,e.createI18n=function(e={},n){const a=!E(e.legacy)||e.legacy,o=!E(e.globalInjection)||e.globalInjection,s=new Map,[l,c]=function(e,n,r){const a=t.effectScope(),o=n?a.run((()=>ht(e))):a.run((()=>bt(e)));if(null==o)throw Error(nt.UNEXPECTED_ERROR);return[a,o]}(e,a),i=r(""),u={get mode(){return a?"legacy":"composition"},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=i,e.provide(e.__VUE_I18N_SYMBOL__,u),N(n[0])){const e=n[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let r=null;!a&&o&&(r=function(e,n){const r=Object.create(null);Mt.forEach((e=>{const a=Object.getOwnPropertyDescriptor(n,e);if(!a)throw Error(nt.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,xt.forEach((t=>{const r=Object.getOwnPropertyDescriptor(n,t);if(!r||!r.value)throw Error(nt.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,r)}));const a=()=>{delete e.config.globalProperties.$i18n,xt.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return a}(e,u.global)),function(e,t,...n){const r=N(n[0])?n[0]:{};(!E(r.globalInstall)||r.globalInstall)&&([yt.name,"I18nT"].forEach((t=>e.component(t,yt))),[It.name,"I18nN"].forEach((t=>e.component(t,It))),[Ot.name,"I18nD"].forEach((t=>e.component(t,Ot)))),e.directive("t",Pt(t))}(e,u,...n),a&&e.mixin(function(e,n,r){return{beforeCreate(){const a=t.getCurrentInstance();if(!a)throw Error(nt.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const t=o.i18n;if(o.__i18n&&(t.__i18n=o.__i18n),t.__root=n,this===this.$root)this.$i18n=kt(e,t);else{t.__injectWithOption=!0,t.__extender=r.__vueI18nExtend,this.$i18n=ht(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=kt(e,o);else{this.$i18n=ht({__i18n:o.__i18n,__injectWithOption:!0,__extender:r.__vueI18nExtend,__root:n});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&mt(n,o,o),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),r.__setInstance(a,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(nt.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),r.__deleteInstance(e),delete this.$i18n}}}(c,c.__composer,u));const s=e.unmount;e.unmount=()=>{r&&r(),u.dispose(),s()}},get global(){return c},dispose(){l.stop()},__instances:s,__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return u},e.useI18n=Dt,e.vTDirective=Pt,e}({},Vue); |
/*! | ||
* vue-i18n v10.0.1 | ||
* vue-i18n v10.0.2 | ||
* (c) 2024 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
import{createVNode,Text,computed,watch,getCurrentInstance,ref,shallowRef,Fragment,defineComponent,h,effectScope,inject,onMounted,onUnmounted,isRef}from"vue";const inBrowser="undefined"!=typeof window,makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,a)=>friendlyJSONstringify({l:e,k:t,s:a}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>"number"==typeof e&&isFinite(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length,assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isBoolean=e=>"boolean"==typeof e,isObject=e=>null!==e&&"object"==typeof e,isPromise=e=>isObject(e)&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>{if(!isObject(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},toDisplayString=e=>null==e?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw new Error("Invalid value");const a=[{src:e,des:t}];for(;a.length;){const{src:e,des:t}=a.pop();Object.keys(e).forEach((n=>{isNotObjectOrIsArray(e[n])||isNotObjectOrIsArray(t[n])?t[n]=e[n]:a.push({src:e[n],des:t[n]})}))}}const COMPILE_ERROR_CODES_EXTEND_POINT=17;function format(e){return t=>formatParts(t,e)}function formatParts(e,t){const a=t.b||t.body;if(1===(a.t||a.type)){const t=a,n=t.c||t.cases;return e.plural(n.reduce(((t,a)=>[...t,formatMessageParts(e,a)]),[]))}return formatMessageParts(e,a)}function formatMessageParts(e,t){const a=t.s||t.static;if(a)return"text"===e.type?a:e.normalize([a]);{const a=(t.i||t.items).reduce(((t,a)=>[...t,formatMessagePart(e,a)]),[]);return e.normalize(a)}}function formatMessagePart(e,t){const a=t.t||t.type;switch(a){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const a=t;return e.interpolate(e.named(a.k||a.key))}case 5:{const a=t;return e.interpolate(e.list(null!=a.i?a.i:a.index))}case 6:{const a=t,n=a.m||a.modifier;return e.linked(formatMessagePart(e,a.k||a.key),n?formatMessagePart(e,n):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${a}`)}}let compileCache=Object.create(null);const isMessageAST=e=>isObject(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);function compile(e,t){{const t=e.cacheKey;if(t){const a=compileCache[t];return a||(compileCache[t]=format(e))}return format(e)}}const CoreErrorCodes={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},CORE_ERROR_CODES_EXTEND_POINT=24;function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){if(isString(e))return e;if(isFunction(e)){if(e.resolvedOnce&&null!=_resolveLocale)return _resolveLocale;if("Function"===e.constructor.name){const t=e();if(isPromise(t))throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=t}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(e,t,a){return[...new Set([a,...isArray(t)?t:isObject(t)?Object.keys(t):isString(t)?[t]:[a]])]}function fallbackWithLocaleChain(e,t,a){const n=isString(a)?a:DEFAULT_LOCALE,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(n);if(!s){s=[];let e=[a];for(;isArray(e);)e=appendBlockToChain(s,e,t);const o=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(o)?[o]:o,isArray(e)&&appendBlockToChain(s,e,!1),r.__localeChainCache.set(n,s)}return s}function appendBlockToChain(e,t,a){let n=!0;for(let r=0;r<t.length&&isBoolean(n);r++){const s=t[r];isString(s)&&(n=appendLocaleToChain(e,t[r],a))}return n}function appendLocaleToChain(e,t,a){let n;const r=t.split("-");do{n=appendItemToChain(e,r.join("-"),a),r.splice(-1,1)}while(r.length&&!0===n);return n}function appendItemToChain(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(isArray(a)||isPlainObject(a))&&a[r]&&(n=a[r])}return n}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function getPathCharType(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 formatSubPath(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(isLiteral(t)?stripQuotes(t):"*"+t)}function parse(e){const t=[];let a,n,r,s,o,l,i,c=-1,u=0,m=0;const g=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,g[0](),!0}for(g[0]=()=>{void 0===n?n=r:n+=r},g[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},g[2]=()=>{g[0](),m++},g[3]=()=>{if(m>0)m--,u=4,g[0]();else{if(m=0,void 0===n)return!1;if(n=formatSubPath(n),!1===n)return!1;g[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!p()){if(s=getPathCharType(a),i=pathStateMachine[u],o=i[s]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(l=g[o[1]],l&&(r=a,!1===l())))return;if(7===u)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject(e)?e[t]:null}function resolveValue(e,t){if(!isObject(e))return null;let a=cache.get(t);if(a||(a=parse(t),a&&cache.set(t,a)),!a)return null;const n=a.length;let r=e,s=0;for(;s<n;){const e=r[a[s]];if(void 0===e)return null;if(isFunction(r))return null;r=e,s++}return r}const VERSION$1="10.0.1",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>"text"===t&&isString(e)?e.toUpperCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&isString(e)?e.toLowerCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&isString(e)?capitalize(e):"vnode"===t&&isObject(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler,_resolver,_fallbacker;function registerMessageCompiler(e){_compiler=e}function registerMessageResolver(e){_resolver=e}function registerLocaleFallbacker(e){_fallbacker=e}const setAdditionalMeta=e=>{};let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,a=isString(e.version)?e.version:VERSION$1,n=isString(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,r=isFunction(n)?DEFAULT_LOCALE:n,s=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,o=isPlainObject(e.messages)?e.messages:{[r]:{}},l=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},i=isPlainObject(e.numberFormats)?e.numberFormats:{[r]:{}},c=assign({},e.modifiers||{},getDefaultLinkedModifiers()),u=e.pluralRules||{},m=isFunction(e.missing)?e.missing:null,g=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,_=!!e.unresolving,b=isFunction(e.postTranslation)?e.postTranslation:null,d=isPlainObject(e.processor)?e.processor:null,E=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,S=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,h=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,F=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,T=isObject(e.fallbackContext)?e.fallbackContext:void 0,y=e,N=isObject(y.__datetimeFormatters)?y.__datetimeFormatters:new Map,I=isObject(y.__numberFormatters)?y.__numberFormatters:new Map,L=isObject(y.__meta)?y.__meta:{};_cid++;const k={version:a,cid:_cid,locale:n,fallbackLocale:s,messages:o,modifiers:c,pluralRules:u,missing:m,missingWarn:g,fallbackWarn:p,fallbackFormat:f,unresolving:_,postTranslation:b,processor:d,warnHtmlMessage:E,escapeParameter:O,messageCompiler:S,messageResolver:h,localeFallbacker:F,fallbackContext:T,onWarn:t,__meta:L};return k.datetimeFormats=l,k.numberFormats=i,k.__datetimeFormatters=N,k.__numberFormatters=I,k}function handleMissing(e,t,a,n,r){const{missing:s,onWarn:o}=e;if(null!==s){const n=s(e,a,t,r);return isString(n)?n:t}return t}function updateFallbackLocale(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}function isAlmostSameLocale(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function isImplicitFallback(e,t){const a=t.indexOf(e);if(-1===a)return!1;for(let n=a+1;n<t.length;n++)if(isAlmostSameLocale(e,t[n]))return!0;return!1}function datetime(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:r,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:l}=e,[i,c,u,m]=parseDateTimeArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,f=getLocale(e,u),_=o(e,r,f);if(!isString(i)||""===i)return new Intl.DateTimeFormat(f,m).format(c);let b,d={},E=null;for(let h=0;h<_.length&&(b=_[h],d=a[b]||{},E=d[i],!isPlainObject(E));h++)handleMissing(e,i,b,g,"datetime format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let O=`${b}__${i}`;isEmptyObject(m)||(O=`${O}__${JSON.stringify(m)}`);let S=l.get(O);return S||(S=new Intl.DateTimeFormat(b,assign({},E,m)),l.set(O,S)),p?S.formatToParts(c):S.format(c)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,a,n,r]=e,s={};let o,l={};if(isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const a=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();o=new Date(a);try{o.toISOString()}catch{throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);o=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);o=t}return isString(a)?s.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(e)?l[e]=a[e]:s[e]=a[e]})),isString(n)?s.locale=n:isPlainObject(n)&&(l=n),isPlainObject(r)&&(l=r),[s.key||"",o,s,l]}function clearDateTimeFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function number(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:r,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:l}=e,[i,c,u,m]=parseNumberArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,f=getLocale(e,u),_=o(e,r,f);if(!isString(i)||""===i)return new Intl.NumberFormat(f,m).format(c);let b,d={},E=null;for(let h=0;h<_.length&&(b=_[h],d=a[b]||{},E=d[i],!isPlainObject(E));h++)handleMissing(e,i,b,g,"number format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let O=`${b}__${i}`;isEmptyObject(m)||(O=`${O}__${JSON.stringify(m)}`);let S=l.get(O);return S||(S=new Intl.NumberFormat(b,assign({},E,m)),l.set(O,S)),p?S.formatToParts(c):S.format(c)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,a,n,r]=e,s={};let o={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const l=t;return isString(a)?s.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(e)?o[e]=a[e]:s[e]=a[e]})),isString(n)?s.locale=n:isPlainObject(n)&&(o=n),isPlainObject(r)&&(o=r),[s.key||"",l,s,o]}function clearNumberFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>0===e.length?"":join(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,a=getPluralIndex(e),n=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,r=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,s=e.list||[],o=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(a,o);function l(t,a){const n=isFunction(e.messages)?e.messages(t,!!a):!!isObject(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):DEFAULT_MESSAGE)}const i=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,c=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,u={list:e=>s[e],named:e=>o[e],plural:e=>e[n(a,e.length,r)],linked:(t,...a)=>{const[n,r]=a;let s="text",o="";1===a.length?isObject(n)?(o=n.modifier||o,s=n.type||s):isString(n)&&(o=n||o):2===a.length&&(isString(n)&&(o=n||o),isString(r)&&(s=r||s));const i=l(t,!0)(u),c="vnode"===s&&isArray(i)&&o?i[0]:i;return o?(m=o,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,s):c;var m},message:l,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i,values:assign({},s,o)};return u}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:r,messageCompiler:s,fallbackLocale:o,messages:l}=e,[i,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,m=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,g=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,f=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?s?i:()=>i:c.default:a?s?i:()=>i:null,_=a||null!=f&&(isString(f)||isFunction(f)),b=getLocale(e,c);g&&escapeParams(c);let[d,E,O]=p?[i,b,l[b]||{}]:resolveMessageFormat(e,i,b,o,m,u),S=d,h=i;if(p||isString(S)||isMessageAST(S)||isMessageFunction(S)||_&&(S=f,h=S),!(p||(isString(S)||isMessageAST(S)||isMessageFunction(S))&&isString(E)))return r?NOT_REOSLVED:i;let F=!1;const T=isMessageFunction(S)?S:compileMessageFormat(e,i,E,S,h,(()=>{F=!0}));if(F)return S;const y=evaluateMessage(e,T,createMessageContext(getMessageContextOptions(e,E,O,c)));return n?n(y,i):y}function escapeParams(e){isArray(e.list)?e.list=e.list.map((e=>isString(e)?escapeHtml(e):e)):isObject(e.named)&&Object.keys(e.named).forEach((t=>{isString(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))}))}function resolveMessageFormat(e,t,a,n,r,s){const{messages:o,onWarn:l,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,g={},p=null;for(let f=0;f<u.length&&(m=u[f],g=o[m]||{},null===(p=i(g,t))&&(p=g[t]),!(isString(p)||isMessageAST(p)||isMessageFunction(p)));f++)if(!isImplicitFallback(m,u)){const a=handleMissing(e,t,m,s,"translate");a!==t&&(p=a)}return[p,m,g]}function compileMessageFormat(e,t,a,n,r,s){const{messageCompiler:o,warnHtmlMessage:l}=e;if(isMessageFunction(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==o){const e=()=>n;return e.locale=a,e.key=t,e}const i=o(n,getCompileContext(e,a,r,n,l,s));return i.locale=a,i.key=t,i.source=n,i}function evaluateMessage(e,t,a){return t(a)}function parseTranslateArgs(...e){const[t,a,n]=e,r={};if(!(isString(t)||isNumber(t)||isMessageFunction(t)||isMessageAST(t)))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const s=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(a)?r.plural=a:isString(a)?r.default=a:isPlainObject(a)&&!isEmptyObject(a)?r.named=a:isArray(a)&&(r.list=a),isNumber(n)?r.plural=n:isString(n)?r.default=n:isPlainObject(n)&&assign(r,n),[s,r]}function getCompileContext(e,t,a,n,r,s){return{locale:t,key:a,warnHtmlMessage:r,onError:e=>{throw s&&s(e),e},onCacheKey:e=>generateFormatCacheKey(t,a,e)}}function getMessageContextOptions(e,t,a,n){const{modifiers:r,pluralRules:s,messageResolver:o,fallbackLocale:l,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:s,messages:(n,r)=>{let s=o(a,n);if(null==s&&(u||r)){const[,,a]=resolveMessageFormat(u||e,n,t,l,i,c);s=o(a,n)}if(isString(s)||isMessageAST(s)){let a=!1;const r=compileMessageFormat(e,n,t,s,n,(()=>{a=!0}));return a?NOOP_MESSAGE_FUNCTION:r}return isMessageFunction(s)?s:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),n.list&&(m.list=n.list),n.named&&(m.named=n.named),isNumber(n.plural)&&(m.pluralIndex=n.plural),m}const VERSION="10.0.1",I18nErrorCodes={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(e){if(!isObject(e))return e;for(const t in e)if(hasOwn(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let r=e,s=!1;for(let e=0;e<n;e++){if(a[e]in r||(r[a[e]]={}),!isObject(r[a[e]])){s=!0;break}r=r[a[e]]}s||(r[a[n]]=e[t],delete e[t]),isObject(r[a[n]])&&handleFlatJson(r[a[n]])}else isObject(e[t])&&handleFlatJson(e[t]);return e}function getLocaleMessages(e,t){const{messages:a,__i18n:n,messageResolver:r,flatJson:s}=t,o=isPlainObject(a)?a:isArray(n)?{}:{[e]:{}};if(isArray(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||{},deepCopy(a,o[t])):deepCopy(a,o)}else isString(e)&&deepCopy(JSON.parse(e),o)})),null==r&&s)for(const l in o)hasOwn(o,l)&&handleFlatJson(o[l]);return o}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,a){let n=isObject(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=getLocaleMessages(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const r=Object.keys(n);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),isObject(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(isObject(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}function createTextNode(e){return createVNode(Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,a,n,r)=>e(a,n,getCurrentInstance()||void 0,r)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={}){const{__root:t,__injectWithOption:a}=e,n=void 0===t,r=e.flatJson,s=inBrowser?ref:shallowRef;let o=!isBoolean(e.inheritLocale)||e.inheritLocale;const l=s(t&&o?t.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),i=s(t&&o?t.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:l.value),c=s(getLocaleMessages(l.value,e)),u=s(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),m=s(isPlainObject(e.numberFormats)?e.numberFormats:{[l.value]:{}});let g=t?t.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=t?t.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=t?t.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,_=!!e.fallbackFormat,b=isFunction(e.missing)?e.missing:null,d=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,E=isFunction(e.postTranslation)?e.postTranslation:null,O=t?t.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,S=!!e.escapeParameter;const h=t?t.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let F,T=e.pluralRules||t&&t.pluralRules;F=(()=>{n&&setFallbackContext(null);const t={version:VERSION,locale:l.value,fallbackLocale:i.value,messages:c.value,modifiers:h,pluralRules:T,missing:null===d?void 0:d,missingWarn:g,fallbackWarn:p,fallbackFormat:_,unresolving:!0,postTranslation:null===E?void 0:E,warnHtmlMessage:O,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=m.value,t.__datetimeFormatters=isPlainObject(F)?F.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(F)?F.__numberFormatters:void 0;const a=createCoreContext(t);return n&&setFallbackContext(a),a})(),updateFallbackLocale(F,l.value,i.value);const y=computed({get:()=>l.value,set:e=>{l.value=e,F.locale=l.value}}),N=computed({get:()=>i.value,set:e=>{i.value=e,F.fallbackLocale=i.value,updateFallbackLocale(F,l.value,e)}}),I=computed((()=>c.value)),L=computed((()=>u.value)),k=computed((()=>m.value));const C=(e,a,r,s,o,g)=>{let p;l.value,i.value,c.value,u.value,m.value;try{0,n||(F.fallbackContext=t?getFallbackContext():void 0),p=e(F)}finally{n||(F.fallbackContext=void 0)}if("translate exists"!==r&&isNumber(p)&&p===NOT_REOSLVED||"translate exists"===r&&!p){const[e,n]=a();return t&&f?s(t):o(e)}if(g(p))return p;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function v(...e){return C((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const R={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function P(e){return c.value[e]||{}}composerID++,t&&inBrowser&&(watch(t.locale,(e=>{o&&(l.value=e,F.locale=e,updateFallbackLocale(F,l.value,i.value))})),watch(t.fallbackLocale,(e=>{o&&(i.value=e,F.fallbackLocale=e,updateFallbackLocale(F,l.value,i.value))})));const M={id:composerID,locale:y,fallbackLocale:N,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(l.value=t.locale.value,i.value=t.fallbackLocale.value,updateFallbackLocale(F,l.value,i.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:I,get modifiers(){return h},get pluralRules(){return T||{}},get isGlobal(){return n},get missingWarn(){return g},set missingWarn(e){g=e,F.missingWarn=g},get fallbackWarn(){return p},set fallbackWarn(e){p=e,F.fallbackWarn=p},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return _},set fallbackFormat(e){_=e,F.fallbackFormat=_},get warnHtmlMessage(){return O},set warnHtmlMessage(e){O=e,F.warnHtmlMessage=e},get escapeParameter(){return S},set escapeParameter(e){S=e,F.escapeParameter=e},t:v,getLocaleMessage:P,setLocaleMessage:function(e,t){if(r){const a={[e]:t};for(const e in a)hasOwn(a,e)&&handleFlatJson(a[e]);t=a[e]}c.value[e]=t,F.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{};const a={[e]:t};if(r)for(const n in a)hasOwn(a,n)&&handleFlatJson(a[n]);deepCopy(t=a[e],c.value[e]),F.messages=c.value},getPostTranslationHandler:function(){return isFunction(E)?E:null},setPostTranslationHandler:function(e){E=e,F.postTranslation=e},getMissingHandler:function(){return b},setMissingHandler:function(e){null!==e&&(d=defineCoreMissingHandler(e)),b=e,F.missing=d},[SetPluralRulesSymbol]:function(e){T=e,F.pluralRules=T}};return M.datetimeFormats=L,M.numberFormats=k,M.rt=function(...e){const[t,a,n]=e;if(n&&!isObject(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return v(t,a,assign({resolvedMessage:!0},n||{}))},M.te=function(e,t){return C((()=>{if(!e)return!1;const a=P(isString(t)?t:l.value),n=F.messageResolver(a,e);return isMessageAST(n)||isMessageFunction(n)||isString(n)}),(()=>[e]),"translate exists",(a=>Reflect.apply(a.te,a,[e,t])),NOOP_RETURN_FALSE,(e=>isBoolean(e)))},M.tm=function(e){const a=function(e){let t=null;const a=fallbackWithLocaleChain(F,i.value,l.value);for(let n=0;n<a.length;n++){const r=c.value[a[n]]||{},s=F.messageResolver(r,e);if(null!=s){t=s;break}}return t}(e);return null!=a?a:t&&t.tm(e)||{}},M.d=function(...e){return C((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},M.n=function(...e){return C((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},M.getDateTimeFormat=function(e){return u.value[e]||{}},M.setDateTimeFormat=function(e,t){u.value[e]=t,F.datetimeFormats=u.value,clearDateTimeFormat(F,e,t)},M.mergeDateTimeFormat=function(e,t){u.value[e]=assign(u.value[e]||{},t),F.datetimeFormats=u.value,clearDateTimeFormat(F,e,t)},M.getNumberFormat=function(e){return m.value[e]||{}},M.setNumberFormat=function(e,t){m.value[e]=t,F.numberFormats=m.value,clearNumberFormat(F,e,t)},M.mergeNumberFormat=function(e,t){m.value[e]=assign(m.value[e]||{},t),F.numberFormats=m.value,clearNumberFormat(F,e,t)},M[InejctWithOptionSymbol]=a,M[TranslateVNodeSymbol]=function(...e){return C((t=>{let a;const n=t;try{n.processor=R,a=Reflect.apply(translate,null,[n,...e])}finally{n.processor=null}return a}),(()=>parseTranslateArgs(...e)),"translate",(t=>t[TranslateVNodeSymbol](...e)),(e=>[createTextNode(e)]),(e=>isArray(e)))},M[DatetimePartsSymbol]=function(...e){return C((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},M[NumberPartsSymbol]=function(...e){return C((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},M}function convertComposerOptions(e){const t=isString(e.locale)?e.locale:DEFAULT_LOCALE,a=isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=isFunction(e.missing)?e.missing:void 0,r=!isBoolean(e.silentTranslationWarn)&&!isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,s=!isBoolean(e.silentFallbackWarn)&&!isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!isBoolean(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,i=isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=isFunction(e.postTranslation)?e.postTranslation:void 0,m=!isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,g=!!e.escapeParameterHtml,p=!isBoolean(e.sync)||e.sync;let f=e.messages;if(isPlainObject(e.sharedMessages)){const t=e.sharedMessages;f=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return assign(n,t[a]),e}),f||{})}const{__i18n:_,__root:b,__injectWithOption:d}=e,E=e.datetimeFormats,O=e.numberFormats;return{locale:t,fallbackLocale:a,messages:f,flatJson:e.flatJson,datetimeFormats:E,numberFormats:O,missing:n,missingWarn:r,fallbackWarn:s,fallbackRoot:o,fallbackFormat:l,modifiers:i,pluralRules:c,postTranslation:u,warnHtmlMessage:m,escapeParameter:g,messageResolver:e.messageResolver,inheritLocale:p,__i18n:_,__root:b,__injectWithOption:d}}function createVueI18n(e={}){const t=createComposer(convertComposerOptions(e)),{__extender:a}=e,n={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 isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=isBoolean(e)?!e:e},get silentFallbackWarn(){return isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=isBoolean(e)?!e: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]),tc(...e){const[a,n,r]=e,s={plural:1};let o=null,l=null;if(!isString(a))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=a;return isString(n)?s.locale=n:isNumber(n)?s.plural=n:isArray(n)?o=n:isPlainObject(n)&&(l=n),isString(r)?s.locale=r:isArray(r)?o=r:isPlainObject(r)&&(l=r),Reflect.apply(t.t,t,[i,o||l||{},s])},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)}};return n.__extender=a,n}function defineMixin(e,t,a){return{beforeCreate(){const n=getCurrentInstance();if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const n=r.i18n;if(r.__i18n&&(n.__i18n=r.__i18n),n.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,n);else{n.__injectWithOption=!0,n.__extender=a.__vueI18nExtend,this.$i18n=createVueI18n(n);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,r);else{this.$i18n=createVueI18n({__i18n:r.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&adjustI18nResources(t,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),a.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const e=getCurrentInstance();if(!e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),a.__deleteInstance(e),delete this.$i18n}}}function mergeToGlobal(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[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const a=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Fragment?t.children:[t]]),[])}return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}function getFragmentableTag(){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:a,attrs:n}=t,r=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(a).filter((e=>"_"!==e)),o={};e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=isString(e.plural)?+e.plural:e.plural);const l=getInterpolateArg(t,s),i=r[TranslateVNodeSymbol](e.keypath,l,o),c=assign({},n),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(e){return isArray(e)&&!isString(e[0])}function renderFormatter(e,t,a,n){const{slots:r,attrs:s}=t;return()=>{const t={part:!0};let o={};e.locale&&(t.locale=e.locale),isString(e.format)?t.key=e.format:isObject(e.format)&&(isString(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?assign({},t,{[n]:e.format[n]}):t),{}));const l=n(e.value,t,o);let i=[t.key];isArray(l)?i=l.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:l}):[e.value];return isVNode(n)&&(n[0].key=`${e.type}-${t}`),n})):isString(l)&&(i=[l]);const c=assign({},s),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>a[NumberPartsSymbol](...e)))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>a[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$1(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}function vTDirective(e){const t=t=>{const{instance:a,value:n}=t;if(!a||!a.$)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=getComposer$1(e,a.$),s=parseValue(n);return[Reflect.apply(r.t,r,[...makeParams(s)]),r]};return{created:(a,n)=>{const[r,s]=t(n);inBrowser&&e.global===s&&(a.__i18nWatcher=watch(s.locale,(()=>{n.instance&&n.instance.$forceUpdate()}))),a.__composer=s,a.textContent=r},unmounted:e=>{inBrowser&&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 a=e.__composer,n=parseValue(t);e.textContent=Reflect.apply(a.t,a,[...makeParams(n)])}},getSSRProps:e=>{const[a]=t(e);return{textContent:a}}}}function parseValue(e){if(isString(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw Error(I18nErrorCodes.REQUIRED_VALUE,"path");return e}throw Error(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:a,args:n,choice:r,plural:s}=e,o={},l=n||{};return isString(a)&&(o.locale=a),isNumber(r)&&(o.plural=r),isNumber(s)&&(o.plural=s),[t,l,o]}function apply(e,t,...a){const n=isPlainObject(a[0])?a[0]:{};(!isBoolean(n.globalInstall)||n.globalInstall)&&([Translation.name,"I18nT"].forEach((t=>e.component(t,Translation))),[NumberFormat.name,"I18nN"].forEach((t=>e.component(t,NumberFormat))),[DatetimeFormat.name,"I18nD"].forEach((t=>e.component(t,DatetimeFormat)))),e.directive("t",vTDirective(t))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const a=!isBoolean(e.legacy)||e.legacy,n=!isBoolean(e.globalInjection)||e.globalInjection,r=new Map,[s,o]=createGlobal(e,a),l=makeSymbol("");const i={get mode(){return a?"legacy":"composition"},async install(e,...t){if(e.__VUE_I18N_SYMBOL__=l,e.provide(e.__VUE_I18N_SYMBOL__,i),isPlainObject(t[0])){const e=t[0];i.__composerExtend=e.__composerExtend,i.__vueI18nExtend=e.__vueI18nExtend}let r=null;!a&&n&&(r=injectGlobalFields(e,i.global)),apply(e,i,...t),a&&e.mixin(defineMixin(o,o.__composer,i));const s=e.unmount;e.unmount=()=>{r&&r(),i.dispose(),s()}},get global(){return o},dispose(){s.stop()},__instances:r,__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,t){r.set(e,t)},__deleteInstance:function(e){r.delete(e)}};return i}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Error(I18nErrorCodes.NOT_INSTALLED);const a=getI18nInstance(t),n=getGlobalComposer(a),r=getComponentOptions(t),s=getScope(e,r);if("global"===s)return adjustI18nResources(n,e,r),n;if("parent"===s){let r=getComposer(a,t,e.__useComponent);return null==r&&(r=n),r}const o=a;let l=o.__getInstance(t);if(null==l){const a=assign({},e);"__i18n"in r&&(a.__i18n=r.__i18n),n&&(a.__root=n),l=createComposer(a),o.__composerExtend&&(l[DisposeSymbol]=o.__composerExtend(l)),setupLifeCycle(o,t,l),o.__setInstance(t,l)}return l}function createGlobal(e,t,a){const n=effectScope(),r=t?n.run((()=>createVueI18n(e))):n.run((()=>createComposer(e)));if(null==r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[n,r]}function getI18nInstance(e){const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Error(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return"composition"===e.mode?e.global:e.global.__composer}function getComposer(e,t,a=!1){let n=null;const r=t.root;let s=getParentComponentInstance(t,a);for(;null!=s;){const t=e;if("composition"===e.mode)n=t.__getInstance(s);else{const e=t.__getInstance(s);null!=e&&(n=e.__composer,a&&n&&!n[InejctWithOptionSymbol]&&(n=null))}if(null!=n)break;if(r===s)break;s=s.parent}return n}function getParentComponentInstance(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,a){onMounted((()=>{}),t),onUnmounted((()=>{const n=a;e.__deleteInstance(t);const r=n[DisposeSymbol];r&&(r(),delete n[DisposeSymbol])}),t)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const a=Object.create(null);globalExportProps.forEach((e=>{const n=Object.getOwnPropertyDescriptor(t,e);if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=isRef(n.value)?{get:()=>n.value.value,set(e){n.value.value=e}}:{get:()=>n.get&&n.get()};Object.defineProperty(a,e,r)})),e.config.globalProperties.$i18n=a,globalExportMethods.forEach((a=>{const n=Object.getOwnPropertyDescriptor(t,a);if(!n||!n.value)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,n)}));return()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}registerMessageCompiler(compile),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,createI18n,useI18n,vTDirective}; | ||
import{createVNode,Text,computed,watch,getCurrentInstance,ref,shallowRef,Fragment,defineComponent,h,effectScope,inject,onMounted,onUnmounted,isRef}from"vue";const inBrowser="undefined"!=typeof window,makeSymbol=(e,t=!1)=>t?Symbol.for(e):Symbol(e),generateFormatCacheKey=(e,t,a)=>friendlyJSONstringify({l:e,k:t,s:a}),friendlyJSONstringify=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber=e=>"number"==typeof e&&isFinite(e),isDate=e=>"[object Date]"===toTypeString(e),isRegExp=e=>"[object RegExp]"===toTypeString(e),isEmptyObject=e=>isPlainObject(e)&&0===Object.keys(e).length,assign=Object.assign;function escapeHtml(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(e,t){return hasOwnProperty.call(e,t)}const isArray=Array.isArray,isFunction=e=>"function"==typeof e,isString=e=>"string"==typeof e,isBoolean=e=>"boolean"==typeof e,isObject=e=>null!==e&&"object"==typeof e,isPromise=e=>isObject(e)&&isFunction(e.then)&&isFunction(e.catch),objectToString=Object.prototype.toString,toTypeString=e=>objectToString.call(e),isPlainObject=e=>"[object Object]"===toTypeString(e),toDisplayString=e=>null==e?"":isArray(e)||isPlainObject(e)&&e.toString===objectToString?JSON.stringify(e,null,2):String(e);function join(e,t=""){return e.reduce(((e,a,n)=>0===n?e+a:e+t+a),"")}function warn(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const isNotObjectOrIsArray=e=>!isObject(e)||isArray(e);function deepCopy(e,t){if(isNotObjectOrIsArray(e)||isNotObjectOrIsArray(t))throw new Error("Invalid value");const a=[{src:e,des:t}];for(;a.length;){const{src:e,des:t}=a.pop();Object.keys(e).forEach((n=>{isObject(e[n])&&!isObject(t[n])&&(t[n]=Array.isArray(e[n])?[]:{}),isNotObjectOrIsArray(t[n])||isNotObjectOrIsArray(e[n])?t[n]=e[n]:a.push({src:e[n],des:t[n]})}))}}const COMPILE_ERROR_CODES_EXTEND_POINT=17;function format(e){return t=>formatParts(t,e)}function formatParts(e,t){const a=t.b||t.body;if(1===(a.t||a.type)){const t=a,n=t.c||t.cases;return e.plural(n.reduce(((t,a)=>[...t,formatMessageParts(e,a)]),[]))}return formatMessageParts(e,a)}function formatMessageParts(e,t){const a=t.s||t.static;if(a)return"text"===e.type?a:e.normalize([a]);{const a=(t.i||t.items).reduce(((t,a)=>[...t,formatMessagePart(e,a)]),[]);return e.normalize(a)}}function formatMessagePart(e,t){const a=t.t||t.type;switch(a){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const a=t;return e.interpolate(e.named(a.k||a.key))}case 5:{const a=t;return e.interpolate(e.list(null!=a.i?a.i:a.index))}case 6:{const a=t,n=a.m||a.modifier;return e.linked(formatMessagePart(e,a.k||a.key),n?formatMessagePart(e,n):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${a}`)}}let compileCache=Object.create(null);const isMessageAST=e=>isObject(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);function compile(e,t){{const t=e.cacheKey;if(t){const a=compileCache[t];return a||(compileCache[t]=format(e))}return format(e)}}const CoreErrorCodes={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},CORE_ERROR_CODES_EXTEND_POINT=24;function getLocale(e,t){return null!=t.locale?resolveLocale(t.locale):resolveLocale(e.locale)}let _resolveLocale;function resolveLocale(e){if(isString(e))return e;if(isFunction(e)){if(e.resolvedOnce&&null!=_resolveLocale)return _resolveLocale;if("Function"===e.constructor.name){const t=e();if(isPromise(t))throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return _resolveLocale=t}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(CoreErrorCodes.NOT_SUPPORT_LOCALE_TYPE)}function fallbackWithSimple(e,t,a){return[...new Set([a,...isArray(t)?t:isObject(t)?Object.keys(t):isString(t)?[t]:[a]])]}function fallbackWithLocaleChain(e,t,a){const n=isString(a)?a:DEFAULT_LOCALE,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(n);if(!s){s=[];let e=[a];for(;isArray(e);)e=appendBlockToChain(s,e,t);const o=isArray(t)||!isPlainObject(t)?t:t.default?t.default:null;e=isString(o)?[o]:o,isArray(e)&&appendBlockToChain(s,e,!1),r.__localeChainCache.set(n,s)}return s}function appendBlockToChain(e,t,a){let n=!0;for(let r=0;r<t.length&&isBoolean(n);r++){const s=t[r];isString(s)&&(n=appendLocaleToChain(e,t[r],a))}return n}function appendLocaleToChain(e,t,a){let n;const r=t.split("-");do{n=appendItemToChain(e,r.join("-"),a),r.splice(-1,1)}while(r.length&&!0===n);return n}function appendItemToChain(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(isArray(a)||isPlainObject(a))&&a[r]&&(n=a[r])}return n}const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],"[":[4],o:[7]},pathStateMachine[1]={w:[1],".":[2],"[":[4],o:[7]},pathStateMachine[2]={w:[2],i:[3,0],0:[3,0]},pathStateMachine[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},pathStateMachine[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},pathStateMachine[5]={"'":[4,0],o:8,l:[5,0]},pathStateMachine[6]={'"':[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(e){return literalValueRE.test(e)}function stripQuotes(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}function getPathCharType(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 formatSubPath(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(isLiteral(t)?stripQuotes(t):"*"+t)}function parse(e){const t=[];let a,n,r,s,o,l,i,c=-1,u=0,m=0;const g=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,g[0](),!0}for(g[0]=()=>{void 0===n?n=r:n+=r},g[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},g[2]=()=>{g[0](),m++},g[3]=()=>{if(m>0)m--,u=4,g[0]();else{if(m=0,void 0===n)return!1;if(n=formatSubPath(n),!1===n)return!1;g[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!p()){if(s=getPathCharType(a),i=pathStateMachine[u],o=i[s]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(l=g[o[1]],l&&(r=a,!1===l())))return;if(7===u)return t}}const cache=new Map;function resolveWithKeyValue(e,t){return isObject(e)?e[t]:null}function resolveValue(e,t){if(!isObject(e))return null;let a=cache.get(t);if(a||(a=parse(t),a&&cache.set(t,a)),!a)return null;const n=a.length;let r=e,s=0;for(;s<n;){const e=r[a[s]];if(void 0===e)return null;if(isFunction(r))return null;r=e,s++}return r}const VERSION$1="10.0.2",NOT_REOSLVED=-1,DEFAULT_LOCALE="en-US",MISSING_RESOLVE_VALUE="",capitalize=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(e,t)=>"text"===t&&isString(e)?e.toUpperCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&isString(e)?e.toLowerCase():"vnode"===t&&isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&isString(e)?capitalize(e):"vnode"===t&&isObject(e)&&"__v_isVNode"in e?capitalize(e.children):e}}let _compiler,_resolver,_fallbacker;function registerMessageCompiler(e){_compiler=e}function registerMessageResolver(e){_resolver=e}function registerLocaleFallbacker(e){_fallbacker=e}const setAdditionalMeta=e=>{};let _fallbackContext=null;const setFallbackContext=e=>{_fallbackContext=e},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(e={}){const t=isFunction(e.onWarn)?e.onWarn:warn,a=isString(e.version)?e.version:VERSION$1,n=isString(e.locale)||isFunction(e.locale)?e.locale:DEFAULT_LOCALE,r=isFunction(n)?DEFAULT_LOCALE:n,s=isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||isString(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,o=isPlainObject(e.messages)?e.messages:{[r]:{}},l=isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},i=isPlainObject(e.numberFormats)?e.numberFormats:{[r]:{}},c=assign({},e.modifiers||{},getDefaultLinkedModifiers()),u=e.pluralRules||{},m=isFunction(e.missing)?e.missing:null,g=!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,_=!!e.unresolving,b=isFunction(e.postTranslation)?e.postTranslation:null,d=isPlainObject(e.processor)?e.processor:null,E=!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter,S=isFunction(e.messageCompiler)?e.messageCompiler:_compiler,h=isFunction(e.messageResolver)?e.messageResolver:_resolver||resolveWithKeyValue,F=isFunction(e.localeFallbacker)?e.localeFallbacker:_fallbacker||fallbackWithSimple,T=isObject(e.fallbackContext)?e.fallbackContext:void 0,y=e,N=isObject(y.__datetimeFormatters)?y.__datetimeFormatters:new Map,I=isObject(y.__numberFormatters)?y.__numberFormatters:new Map,L=isObject(y.__meta)?y.__meta:{};_cid++;const k={version:a,cid:_cid,locale:n,fallbackLocale:s,messages:o,modifiers:c,pluralRules:u,missing:m,missingWarn:g,fallbackWarn:p,fallbackFormat:f,unresolving:_,postTranslation:b,processor:d,warnHtmlMessage:E,escapeParameter:O,messageCompiler:S,messageResolver:h,localeFallbacker:F,fallbackContext:T,onWarn:t,__meta:L};return k.datetimeFormats=l,k.numberFormats=i,k.__datetimeFormatters=N,k.__numberFormatters=I,k}function handleMissing(e,t,a,n,r){const{missing:s,onWarn:o}=e;if(null!==s){const n=s(e,a,t,r);return isString(n)?n:t}return t}function updateFallbackLocale(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}function isAlmostSameLocale(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function isImplicitFallback(e,t){const a=t.indexOf(e);if(-1===a)return!1;for(let n=a+1;n<t.length;n++)if(isAlmostSameLocale(e,t[n]))return!0;return!1}function datetime(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:r,onWarn:s,localeFallbacker:o}=e,{__datetimeFormatters:l}=e,[i,c,u,m]=parseDateTimeArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,f=getLocale(e,u),_=o(e,r,f);if(!isString(i)||""===i)return new Intl.DateTimeFormat(f,m).format(c);let b,d={},E=null;for(let h=0;h<_.length&&(b=_[h],d=a[b]||{},E=d[i],!isPlainObject(E));h++)handleMissing(e,i,b,g,"datetime format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let O=`${b}__${i}`;isEmptyObject(m)||(O=`${O}__${JSON.stringify(m)}`);let S=l.get(O);return S||(S=new Intl.DateTimeFormat(b,assign({},E,m)),l.set(O,S)),p?S.formatToParts(c):S.format(c)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...e){const[t,a,n,r]=e,s={};let o,l={};if(isString(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const a=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();o=new Date(a);try{o.toISOString()}catch{throw Error(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate(t)){if(isNaN(t.getTime()))throw Error(CoreErrorCodes.INVALID_DATE_ARGUMENT);o=t}else{if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);o=t}return isString(a)?s.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(e)?l[e]=a[e]:s[e]=a[e]})),isString(n)?s.locale=n:isPlainObject(n)&&(l=n),isPlainObject(r)&&(l=r),[s.key||"",o,s,l]}function clearDateTimeFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__datetimeFormatters.has(e)&&n.__datetimeFormatters.delete(e)}}function number(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:r,onWarn:s,localeFallbacker:o}=e,{__numberFormatters:l}=e,[i,c,u,m]=parseNumberArgs(...t),g=isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn;isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,f=getLocale(e,u),_=o(e,r,f);if(!isString(i)||""===i)return new Intl.NumberFormat(f,m).format(c);let b,d={},E=null;for(let h=0;h<_.length&&(b=_[h],d=a[b]||{},E=d[i],!isPlainObject(E));h++)handleMissing(e,i,b,g,"number format");if(!isPlainObject(E)||!isString(b))return n?NOT_REOSLVED:i;let O=`${b}__${i}`;isEmptyObject(m)||(O=`${O}__${JSON.stringify(m)}`);let S=l.get(O);return S||(S=new Intl.NumberFormat(b,assign({},E,m)),l.set(O,S)),p?S.formatToParts(c):S.format(c)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...e){const[t,a,n,r]=e,s={};let o={};if(!isNumber(t))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const l=t;return isString(a)?s.key=a:isPlainObject(a)&&Object.keys(a).forEach((e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(e)?o[e]=a[e]:s[e]=a[e]})),isString(n)?s.locale=n:isPlainObject(n)&&(o=n),isPlainObject(r)&&(o=r),[s.key||"",l,s,o]}function clearNumberFormat(e,t,a){const n=e;for(const r in a){const e=`${t}__${r}`;n.__numberFormatters.has(e)&&n.__numberFormatters.delete(e)}}const DEFAULT_MODIFIER=e=>e,DEFAULT_MESSAGE=e=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=e=>0===e.length?"":join(e),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function getPluralIndex(e){const t=isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(isNumber(e.named.count)||isNumber(e.named.n))?isNumber(e.named.count)?e.named.count:isNumber(e.named.n)?e.named.n:t:t}function normalizeNamed(e,t){t.count||(t.count=e),t.n||(t.n=e)}function createMessageContext(e={}){const t=e.locale,a=getPluralIndex(e),n=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?e.pluralRules[t]:pluralDefault,r=isObject(e.pluralRules)&&isString(t)&&isFunction(e.pluralRules[t])?pluralDefault:void 0,s=e.list||[],o=e.named||{};isNumber(e.pluralIndex)&&normalizeNamed(a,o);function l(t,a){const n=isFunction(e.messages)?e.messages(t,!!a):!!isObject(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):DEFAULT_MESSAGE)}const i=isPlainObject(e.processor)&&isFunction(e.processor.normalize)?e.processor.normalize:DEFAULT_NORMALIZE,c=isPlainObject(e.processor)&&isFunction(e.processor.interpolate)?e.processor.interpolate:DEFAULT_INTERPOLATE,u={list:e=>s[e],named:e=>o[e],plural:e=>e[n(a,e.length,r)],linked:(t,...a)=>{const[n,r]=a;let s="text",o="";1===a.length?isObject(n)?(o=n.modifier||o,s=n.type||s):isString(n)&&(o=n||o):2===a.length&&(isString(n)&&(o=n||o),isString(r)&&(s=r||s));const i=l(t,!0)(u),c="vnode"===s&&isArray(i)&&o?i[0]:i;return o?(m=o,e.modifiers?e.modifiers[m]:DEFAULT_MODIFIER)(c,s):c;var m},message:l,type:isPlainObject(e.processor)&&isString(e.processor.type)?e.processor.type:DEFAULT_MESSAGE_DATA_TYPE,interpolate:c,normalize:i,values:assign({},s,o)};return u}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=e=>isFunction(e);function translate(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:r,messageCompiler:s,fallbackLocale:o,messages:l}=e,[i,c]=parseTranslateArgs(...t),u=isBoolean(c.missingWarn)?c.missingWarn:e.missingWarn,m=isBoolean(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,g=isBoolean(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,f=isString(c.default)||isBoolean(c.default)?isBoolean(c.default)?s?i:()=>i:c.default:a?s?i:()=>i:null,_=a||null!=f&&(isString(f)||isFunction(f)),b=getLocale(e,c);g&&escapeParams(c);let[d,E,O]=p?[i,b,l[b]||{}]:resolveMessageFormat(e,i,b,o,m,u),S=d,h=i;if(p||isString(S)||isMessageAST(S)||isMessageFunction(S)||_&&(S=f,h=S),!(p||(isString(S)||isMessageAST(S)||isMessageFunction(S))&&isString(E)))return r?NOT_REOSLVED:i;let F=!1;const T=isMessageFunction(S)?S:compileMessageFormat(e,i,E,S,h,(()=>{F=!0}));if(F)return S;const y=evaluateMessage(e,T,createMessageContext(getMessageContextOptions(e,E,O,c)));return n?n(y,i):y}function escapeParams(e){isArray(e.list)?e.list=e.list.map((e=>isString(e)?escapeHtml(e):e)):isObject(e.named)&&Object.keys(e.named).forEach((t=>{isString(e.named[t])&&(e.named[t]=escapeHtml(e.named[t]))}))}function resolveMessageFormat(e,t,a,n,r,s){const{messages:o,onWarn:l,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,g={},p=null;for(let f=0;f<u.length&&(m=u[f],g=o[m]||{},null===(p=i(g,t))&&(p=g[t]),!(isString(p)||isMessageAST(p)||isMessageFunction(p)));f++)if(!isImplicitFallback(m,u)){const a=handleMissing(e,t,m,s,"translate");a!==t&&(p=a)}return[p,m,g]}function compileMessageFormat(e,t,a,n,r,s){const{messageCompiler:o,warnHtmlMessage:l}=e;if(isMessageFunction(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==o){const e=()=>n;return e.locale=a,e.key=t,e}const i=o(n,getCompileContext(e,a,r,n,l,s));return i.locale=a,i.key=t,i.source=n,i}function evaluateMessage(e,t,a){return t(a)}function parseTranslateArgs(...e){const[t,a,n]=e,r={};if(!(isString(t)||isNumber(t)||isMessageFunction(t)||isMessageAST(t)))throw Error(CoreErrorCodes.INVALID_ARGUMENT);const s=isNumber(t)?String(t):(isMessageFunction(t),t);return isNumber(a)?r.plural=a:isString(a)?r.default=a:isPlainObject(a)&&!isEmptyObject(a)?r.named=a:isArray(a)&&(r.list=a),isNumber(n)?r.plural=n:isString(n)?r.default=n:isPlainObject(n)&&assign(r,n),[s,r]}function getCompileContext(e,t,a,n,r,s){return{locale:t,key:a,warnHtmlMessage:r,onError:e=>{throw s&&s(e),e},onCacheKey:e=>generateFormatCacheKey(t,a,e)}}function getMessageContextOptions(e,t,a,n){const{modifiers:r,pluralRules:s,messageResolver:o,fallbackLocale:l,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m={locale:t,modifiers:r,pluralRules:s,messages:(n,r)=>{let s=o(a,n);if(null==s&&(u||r)){const[,,a]=resolveMessageFormat(u||e,n,t,l,i,c);s=o(a,n)}if(isString(s)||isMessageAST(s)){let a=!1;const r=compileMessageFormat(e,n,t,s,n,(()=>{a=!0}));return a?NOOP_MESSAGE_FUNCTION:r}return isMessageFunction(s)?s:NOOP_MESSAGE_FUNCTION}};return e.processor&&(m.processor=e.processor),n.list&&(m.list=n.list),n.named&&(m.named=n.named),isNumber(n.plural)&&(m.pluralIndex=n.plural),m}const VERSION="10.0.2",I18nErrorCodes={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(e){if(!isObject(e))return e;for(const t in e)if(hasOwn(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let r=e,s=!1;for(let e=0;e<n;e++){if(a[e]in r||(r[a[e]]={}),!isObject(r[a[e]])){s=!0;break}r=r[a[e]]}s||(r[a[n]]=e[t],delete e[t]),isObject(r[a[n]])&&handleFlatJson(r[a[n]])}else isObject(e[t])&&handleFlatJson(e[t]);return e}function getLocaleMessages(e,t){const{messages:a,__i18n:n,messageResolver:r,flatJson:s}=t,o=isPlainObject(a)?a:isArray(n)?{}:{[e]:{}};if(isArray(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||{},deepCopy(a,o[t])):deepCopy(a,o)}else isString(e)&&deepCopy(JSON.parse(e),o)})),null==r&&s)for(const l in o)hasOwn(o,l)&&handleFlatJson(o[l]);return o}function getComponentOptions(e){return e.type}function adjustI18nResources(e,t,a){let n=isObject(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=getLocaleMessages(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const r=Object.keys(n);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),isObject(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(isObject(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}function createTextNode(e){return createVNode(Text,null,e,0)}const DEVTOOLS_META="__INTLIFY_META__",NOOP_RETURN_ARRAY=()=>[],NOOP_RETURN_FALSE=()=>!1;let composerID=0;function defineCoreMissingHandler(e){return(t,a,n,r)=>e(a,n,getCurrentInstance()||void 0,r)}const getMetaInfo=()=>{const e=getCurrentInstance();let t=null;return e&&(t=getComponentOptions(e)[DEVTOOLS_META])?{[DEVTOOLS_META]:t}:null};function createComposer(e={}){const{__root:t,__injectWithOption:a}=e,n=void 0===t,r=e.flatJson,s=inBrowser?ref:shallowRef;let o=!isBoolean(e.inheritLocale)||e.inheritLocale;const l=s(t&&o?t.locale.value:isString(e.locale)?e.locale:DEFAULT_LOCALE),i=s(t&&o?t.fallbackLocale.value:isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:l.value),c=s(getLocaleMessages(l.value,e)),u=s(isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),m=s(isPlainObject(e.numberFormats)?e.numberFormats:{[l.value]:{}});let g=t?t.missingWarn:!isBoolean(e.missingWarn)&&!isRegExp(e.missingWarn)||e.missingWarn,p=t?t.fallbackWarn:!isBoolean(e.fallbackWarn)&&!isRegExp(e.fallbackWarn)||e.fallbackWarn,f=t?t.fallbackRoot:!isBoolean(e.fallbackRoot)||e.fallbackRoot,_=!!e.fallbackFormat,b=isFunction(e.missing)?e.missing:null,d=isFunction(e.missing)?defineCoreMissingHandler(e.missing):null,E=isFunction(e.postTranslation)?e.postTranslation:null,O=t?t.warnHtmlMessage:!isBoolean(e.warnHtmlMessage)||e.warnHtmlMessage,S=!!e.escapeParameter;const h=t?t.modifiers:isPlainObject(e.modifiers)?e.modifiers:{};let F,T=e.pluralRules||t&&t.pluralRules;F=(()=>{n&&setFallbackContext(null);const t={version:VERSION,locale:l.value,fallbackLocale:i.value,messages:c.value,modifiers:h,pluralRules:T,missing:null===d?void 0:d,missingWarn:g,fallbackWarn:p,fallbackFormat:_,unresolving:!0,postTranslation:null===E?void 0:E,warnHtmlMessage:O,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=u.value,t.numberFormats=m.value,t.__datetimeFormatters=isPlainObject(F)?F.__datetimeFormatters:void 0,t.__numberFormatters=isPlainObject(F)?F.__numberFormatters:void 0;const a=createCoreContext(t);return n&&setFallbackContext(a),a})(),updateFallbackLocale(F,l.value,i.value);const y=computed({get:()=>l.value,set:e=>{l.value=e,F.locale=l.value}}),N=computed({get:()=>i.value,set:e=>{i.value=e,F.fallbackLocale=i.value,updateFallbackLocale(F,l.value,e)}}),I=computed((()=>c.value)),L=computed((()=>u.value)),k=computed((()=>m.value));const C=(e,a,r,s,o,g)=>{let p;l.value,i.value,c.value,u.value,m.value;try{0,n||(F.fallbackContext=t?getFallbackContext():void 0),p=e(F)}finally{n||(F.fallbackContext=void 0)}if("translate exists"!==r&&isNumber(p)&&p===NOT_REOSLVED||"translate exists"===r&&!p){const[e,n]=a();return t&&f?s(t):o(e)}if(g(p))return p;throw Error(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)};function v(...e){return C((t=>Reflect.apply(translate,null,[t,...e])),(()=>parseTranslateArgs(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>isString(e)))}const R={normalize:function(e){return e.map((e=>isString(e)||isNumber(e)||isBoolean(e)?createTextNode(String(e)):e))},interpolate:e=>e,type:"vnode"};function M(e){return c.value[e]||{}}composerID++,t&&inBrowser&&(watch(t.locale,(e=>{o&&(l.value=e,F.locale=e,updateFallbackLocale(F,l.value,i.value))})),watch(t.fallbackLocale,(e=>{o&&(i.value=e,F.fallbackLocale=e,updateFallbackLocale(F,l.value,i.value))})));const P={id:composerID,locale:y,fallbackLocale:N,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(l.value=t.locale.value,i.value=t.fallbackLocale.value,updateFallbackLocale(F,l.value,i.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:I,get modifiers(){return h},get pluralRules(){return T||{}},get isGlobal(){return n},get missingWarn(){return g},set missingWarn(e){g=e,F.missingWarn=g},get fallbackWarn(){return p},set fallbackWarn(e){p=e,F.fallbackWarn=p},get fallbackRoot(){return f},set fallbackRoot(e){f=e},get fallbackFormat(){return _},set fallbackFormat(e){_=e,F.fallbackFormat=_},get warnHtmlMessage(){return O},set warnHtmlMessage(e){O=e,F.warnHtmlMessage=e},get escapeParameter(){return S},set escapeParameter(e){S=e,F.escapeParameter=e},t:v,getLocaleMessage:M,setLocaleMessage:function(e,t){if(r){const a={[e]:t};for(const e in a)hasOwn(a,e)&&handleFlatJson(a[e]);t=a[e]}c.value[e]=t,F.messages=c.value},mergeLocaleMessage:function(e,t){c.value[e]=c.value[e]||{};const a={[e]:t};if(r)for(const n in a)hasOwn(a,n)&&handleFlatJson(a[n]);deepCopy(t=a[e],c.value[e]),F.messages=c.value},getPostTranslationHandler:function(){return isFunction(E)?E:null},setPostTranslationHandler:function(e){E=e,F.postTranslation=e},getMissingHandler:function(){return b},setMissingHandler:function(e){null!==e&&(d=defineCoreMissingHandler(e)),b=e,F.missing=d},[SetPluralRulesSymbol]:function(e){T=e,F.pluralRules=T}};return P.datetimeFormats=L,P.numberFormats=k,P.rt=function(...e){const[t,a,n]=e;if(n&&!isObject(n))throw Error(I18nErrorCodes.INVALID_ARGUMENT);return v(t,a,assign({resolvedMessage:!0},n||{}))},P.te=function(e,t){return C((()=>{if(!e)return!1;const a=M(isString(t)?t:l.value),n=F.messageResolver(a,e);return isMessageAST(n)||isMessageFunction(n)||isString(n)}),(()=>[e]),"translate exists",(a=>Reflect.apply(a.te,a,[e,t])),NOOP_RETURN_FALSE,(e=>isBoolean(e)))},P.tm=function(e){const a=function(e){let t=null;const a=fallbackWithLocaleChain(F,i.value,l.value);for(let n=0;n<a.length;n++){const r=c.value[a[n]]||{},s=F.messageResolver(r,e);if(null!=s){t=s;break}}return t}(e);return null!=a?a:t&&t.tm(e)||{}},P.d=function(...e){return C((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},P.n=function(...e){return C((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>MISSING_RESOLVE_VALUE),(e=>isString(e)))},P.getDateTimeFormat=function(e){return u.value[e]||{}},P.setDateTimeFormat=function(e,t){u.value[e]=t,F.datetimeFormats=u.value,clearDateTimeFormat(F,e,t)},P.mergeDateTimeFormat=function(e,t){u.value[e]=assign(u.value[e]||{},t),F.datetimeFormats=u.value,clearDateTimeFormat(F,e,t)},P.getNumberFormat=function(e){return m.value[e]||{}},P.setNumberFormat=function(e,t){m.value[e]=t,F.numberFormats=m.value,clearNumberFormat(F,e,t)},P.mergeNumberFormat=function(e,t){m.value[e]=assign(m.value[e]||{},t),F.numberFormats=m.value,clearNumberFormat(F,e,t)},P[InejctWithOptionSymbol]=a,P[TranslateVNodeSymbol]=function(...e){return C((t=>{let a;const n=t;try{n.processor=R,a=Reflect.apply(translate,null,[n,...e])}finally{n.processor=null}return a}),(()=>parseTranslateArgs(...e)),"translate",(t=>t[TranslateVNodeSymbol](...e)),(e=>[createTextNode(e)]),(e=>isArray(e)))},P[DatetimePartsSymbol]=function(...e){return C((t=>Reflect.apply(datetime,null,[t,...e])),(()=>parseDateTimeArgs(...e)),"datetime format",(t=>t[DatetimePartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},P[NumberPartsSymbol]=function(...e){return C((t=>Reflect.apply(number,null,[t,...e])),(()=>parseNumberArgs(...e)),"number format",(t=>t[NumberPartsSymbol](...e)),NOOP_RETURN_ARRAY,(e=>isString(e)||isArray(e)))},P}function convertComposerOptions(e){const t=isString(e.locale)?e.locale:DEFAULT_LOCALE,a=isString(e.fallbackLocale)||isArray(e.fallbackLocale)||isPlainObject(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=isFunction(e.missing)?e.missing:void 0,r=!isBoolean(e.silentTranslationWarn)&&!isRegExp(e.silentTranslationWarn)||!e.silentTranslationWarn,s=!isBoolean(e.silentFallbackWarn)&&!isRegExp(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!isBoolean(e.fallbackRoot)||e.fallbackRoot,l=!!e.formatFallbackMessages,i=isPlainObject(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=isFunction(e.postTranslation)?e.postTranslation:void 0,m=!isString(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,g=!!e.escapeParameterHtml,p=!isBoolean(e.sync)||e.sync;let f=e.messages;if(isPlainObject(e.sharedMessages)){const t=e.sharedMessages;f=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return assign(n,t[a]),e}),f||{})}const{__i18n:_,__root:b,__injectWithOption:d}=e,E=e.datetimeFormats,O=e.numberFormats;return{locale:t,fallbackLocale:a,messages:f,flatJson:e.flatJson,datetimeFormats:E,numberFormats:O,missing:n,missingWarn:r,fallbackWarn:s,fallbackRoot:o,fallbackFormat:l,modifiers:i,pluralRules:c,postTranslation:u,warnHtmlMessage:m,escapeParameter:g,messageResolver:e.messageResolver,inheritLocale:p,__i18n:_,__root:b,__injectWithOption:d}}function createVueI18n(e={}){const t=createComposer(convertComposerOptions(e)),{__extender:a}=e,n={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 isBoolean(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=isBoolean(e)?!e:e},get silentFallbackWarn(){return isBoolean(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=isBoolean(e)?!e: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]),tc(...e){const[a,n,r]=e,s={plural:1};let o=null,l=null;if(!isString(a))throw Error(I18nErrorCodes.INVALID_ARGUMENT);const i=a;return isString(n)?s.locale=n:isNumber(n)?s.plural=n:isArray(n)?o=n:isPlainObject(n)&&(l=n),isString(r)?s.locale=r:isArray(r)?o=r:isPlainObject(r)&&(l=r),Reflect.apply(t.t,t,[i,o||l||{},s])},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>Reflect.apply(t.d,t,[...e]),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>Reflect.apply(t.n,t,[...e]),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)}};return n.__extender=a,n}function defineMixin(e,t,a){return{beforeCreate(){const n=getCurrentInstance();if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const n=r.i18n;if(r.__i18n&&(n.__i18n=r.__i18n),n.__root=t,this===this.$root)this.$i18n=mergeToGlobal(e,n);else{n.__injectWithOption=!0,n.__extender=a.__vueI18nExtend,this.$i18n=createVueI18n(n);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=mergeToGlobal(e,r);else{this.$i18n=createVueI18n({__i18n:r.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&adjustI18nResources(t,r,r),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),a.__setInstance(n,this.$i18n)},mounted(){},unmounted(){const e=getCurrentInstance();if(!e)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),a.__deleteInstance(e),delete this.$i18n}}}function mergeToGlobal(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[SetPluralRulesSymbol](t.pluralizationRules||e.pluralizationRules);const a=getLocaleMessages(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:e},t){if(1===t.length&&"default"===t[0]){return(e.default?e.default():[]).reduce(((e,t)=>[...e,...t.type===Fragment?t.children:[t]]),[])}return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}function getFragmentableTag(){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>isNumber(e)||!isNaN(e)}},baseFormatProps),setup(e,t){const{slots:a,attrs:n}=t,r=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(a).filter((e=>"_"!==e)),o={};e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=isString(e.plural)?+e.plural:e.plural);const l=getInterpolateArg(t,s),i=r[TranslateVNodeSymbol](e.keypath,l,o),c=assign({},n),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}}),Translation=TranslationImpl,I18nT=Translation;function isVNode(e){return isArray(e)&&!isString(e[0])}function renderFormatter(e,t,a,n){const{slots:r,attrs:s}=t;return()=>{const t={part:!0};let o={};e.locale&&(t.locale=e.locale),isString(e.format)?t.key=e.format:isObject(e.format)&&(isString(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?assign({},t,{[n]:e.format[n]}):t),{}));const l=n(e.value,t,o);let i=[t.key];isArray(l)?i=l.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:l}):[e.value];return isVNode(n)&&(n[0].key=`${e.type}-${t}`),n})):isString(l)&&(i=[l]);const c=assign({},s),u=isString(e.tag)||isObject(e.tag)?e.tag:getFragmentableTag();return h(u,c,i)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,NUMBER_FORMAT_OPTIONS_KEYS,((...e)=>a[NumberPartsSymbol](...e)))}}),NumberFormat=NumberFormatImpl,I18nN=NumberFormat,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(e,t){const a=e.i18n||useI18n({useScope:e.scope,__useComponent:!0});return renderFormatter(e,t,DATETIME_FORMAT_OPTIONS_KEYS,((...e)=>a[DatetimePartsSymbol](...e)))}}),DatetimeFormat=DatetimeFormatImpl,I18nD=DatetimeFormat;function getComposer$1(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}function vTDirective(e){const t=t=>{const{instance:a,value:n}=t;if(!a||!a.$)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=getComposer$1(e,a.$),s=parseValue(n);return[Reflect.apply(r.t,r,[...makeParams(s)]),r]};return{created:(a,n)=>{const[r,s]=t(n);inBrowser&&e.global===s&&(a.__i18nWatcher=watch(s.locale,(()=>{n.instance&&n.instance.$forceUpdate()}))),a.__composer=s,a.textContent=r},unmounted:e=>{inBrowser&&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 a=e.__composer,n=parseValue(t);e.textContent=Reflect.apply(a.t,a,[...makeParams(n)])}},getSSRProps:e=>{const[a]=t(e);return{textContent:a}}}}function parseValue(e){if(isString(e))return{path:e};if(isPlainObject(e)){if(!("path"in e))throw Error(I18nErrorCodes.REQUIRED_VALUE,"path");return e}throw Error(I18nErrorCodes.INVALID_VALUE)}function makeParams(e){const{path:t,locale:a,args:n,choice:r,plural:s}=e,o={},l=n||{};return isString(a)&&(o.locale=a),isNumber(r)&&(o.plural=r),isNumber(s)&&(o.plural=s),[t,l,o]}function apply(e,t,...a){const n=isPlainObject(a[0])?a[0]:{};(!isBoolean(n.globalInstall)||n.globalInstall)&&([Translation.name,"I18nT"].forEach((t=>e.component(t,Translation))),[NumberFormat.name,"I18nN"].forEach((t=>e.component(t,NumberFormat))),[DatetimeFormat.name,"I18nD"].forEach((t=>e.component(t,DatetimeFormat)))),e.directive("t",vTDirective(t))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(e={},t){const a=!isBoolean(e.legacy)||e.legacy,n=!isBoolean(e.globalInjection)||e.globalInjection,r=new Map,[s,o]=createGlobal(e,a),l=makeSymbol("");const i={get mode(){return a?"legacy":"composition"},async install(e,...t){if(e.__VUE_I18N_SYMBOL__=l,e.provide(e.__VUE_I18N_SYMBOL__,i),isPlainObject(t[0])){const e=t[0];i.__composerExtend=e.__composerExtend,i.__vueI18nExtend=e.__vueI18nExtend}let r=null;!a&&n&&(r=injectGlobalFields(e,i.global)),apply(e,i,...t),a&&e.mixin(defineMixin(o,o.__composer,i));const s=e.unmount;e.unmount=()=>{r&&r(),i.dispose(),s()}},get global(){return o},dispose(){s.stop()},__instances:r,__getInstance:function(e){return r.get(e)||null},__setInstance:function(e,t){r.set(e,t)},__deleteInstance:function(e){r.delete(e)}};return i}function useI18n(e={}){const t=getCurrentInstance();if(null==t)throw Error(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Error(I18nErrorCodes.NOT_INSTALLED);const a=getI18nInstance(t),n=getGlobalComposer(a),r=getComponentOptions(t),s=getScope(e,r);if("global"===s)return adjustI18nResources(n,e,r),n;if("parent"===s){let r=getComposer(a,t,e.__useComponent);return null==r&&(r=n),r}const o=a;let l=o.__getInstance(t);if(null==l){const a=assign({},e);"__i18n"in r&&(a.__i18n=r.__i18n),n&&(a.__root=n),l=createComposer(a),o.__composerExtend&&(l[DisposeSymbol]=o.__composerExtend(l)),setupLifeCycle(o,t,l),o.__setInstance(t,l)}return l}function createGlobal(e,t,a){const n=effectScope(),r=t?n.run((()=>createVueI18n(e))):n.run((()=>createComposer(e)));if(null==r)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);return[n,r]}function getI18nInstance(e){const t=inject(e.isCE?I18nInjectionKey:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Error(e.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return t}function getScope(e,t){return isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function getGlobalComposer(e){return"composition"===e.mode?e.global:e.global.__composer}function getComposer(e,t,a=!1){let n=null;const r=t.root;let s=getParentComponentInstance(t,a);for(;null!=s;){const t=e;if("composition"===e.mode)n=t.__getInstance(s);else{const e=t.__getInstance(s);null!=e&&(n=e.__composer,a&&n&&!n[InejctWithOptionSymbol]&&(n=null))}if(null!=n)break;if(r===s)break;s=s.parent}return n}function getParentComponentInstance(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function setupLifeCycle(e,t,a){onMounted((()=>{}),t),onUnmounted((()=>{const n=a;e.__deleteInstance(t);const r=n[DisposeSymbol];r&&(r(),delete n[DisposeSymbol])}),t)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(e,t){const a=Object.create(null);globalExportProps.forEach((e=>{const n=Object.getOwnPropertyDescriptor(t,e);if(!n)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);const r=isRef(n.value)?{get:()=>n.value.value,set(e){n.value.value=e}}:{get:()=>n.get&&n.get()};Object.defineProperty(a,e,r)})),e.config.globalProperties.$i18n=a,globalExportMethods.forEach((a=>{const n=Object.getOwnPropertyDescriptor(t,a);if(!n||!n.value)throw Error(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,n)}));return()=>{delete e.config.globalProperties.$i18n,globalExportMethods.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))}}registerMessageCompiler(compile),registerMessageResolver(resolveValue),registerLocaleFallbacker(fallbackWithLocaleChain);export{DatetimeFormat,I18nD,I18nInjectionKey,I18nN,I18nT,NumberFormat,Translation,VERSION,createI18n,useI18n,vTDirective}; |
/*! | ||
* vue-i18n v10.0.1 | ||
* vue-i18n v10.0.2 | ||
* (c) 2024 kazuya kawaguchi | ||
* Released under the MIT License. | ||
*/ | ||
var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,a=(e,t=!1)=>t?Symbol.for(e):Symbol(e),r=(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"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===k(e),c=e=>"[object RegExp]"===k(e),i=e=>y(e)&&0===Object.keys(e).length,u=Object.assign;function m(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const f=Object.prototype.hasOwnProperty;function _(e,t){return f.call(e,t)}const p=Array.isArray,g=e=>"function"==typeof e,d=e=>"string"==typeof e,b=e=>"boolean"==typeof e,h=e=>null!==e&&"object"==typeof e,v=e=>h(e)&&g(e.then)&&g(e.catch),E=Object.prototype.toString,k=e=>E.call(e),y=e=>{if(!h(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object};function F(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const T=e=>!h(e)||p(e);function R(e,t){if(T(e)||T(t))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((a=>{T(e[a])||T(t[a])?t[a]=e[a]:n.push({src:e[a],des:t[a]})}))}}function L(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,a=t.c||t.cases;return e.plural(a.reduce(((t,n)=>[...t,I(e,n)]),[]))}return I(e,n)}(t,e)}function I(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,N(e,n)]),[]);return e.normalize(n)}}function N(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,a=n.m||n.modifier;return e.linked(N(e,n.k||n.key),a?N(e,a):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}let O=Object.create(null);const W=e=>h(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);const w={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function M(e,t){return null!=t.locale?P(t.locale):P(e.locale)}let C;function P(e){if(d(e))return e;if(g(e)){if(e.resolvedOnce&&null!=C)return C;if("Function"===e.constructor.name){const t=e();if(v(t))throw Error(w.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return C=t}throw Error(w.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(w.NOT_SUPPORT_LOCALE_TYPE)}function D(e,t,n){return[...new Set([n,...p(t)?t:h(t)?Object.keys(t):d(t)?[t]:[n]])]}function S(e,t,n){const a=d(n)?n:J,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(a);if(!l){l=[];let e=[n];for(;p(e);)e=$(l,e,t);const o=p(t)||!y(t)?t:t.default?t.default:null;e=d(o)?[o]:o,p(e)&&$(l,e,!1),r.__localeChainCache.set(a,l)}return l}function $(e,t,n){let a=!0;for(let r=0;r<t.length&&b(a);r++){const l=t[r];d(l)&&(a=A(e,t[r],n))}return a}function A(e,t,n){let a;const r=t.split("-");do{a=U(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===a);return a}function U(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(p(n)||y(n))&&n[r]&&(a=n[r])}return a}const x=[];x[0]={w:[0],i:[3,0],"[":[4],o:[7]},x[1]={w:[1],".":[2],"[":[4],o:[7]},x[2]={w:[2],i:[3,0],0:[3,0]},x[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},x[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},x[5]={"'":[4,0],o:8,l:[5,0]},x[6]={'"':[4,0],o:8,l:[6,0]};const j=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function H(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 V(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,j.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 G=new Map;function Y(e,t){return h(e)?e[t]:null}const z="10.0.1",X=-1,J="en-US",B="",q=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let K,Z,Q;let ee=null;const te=e=>{ee=e},ne=()=>ee;let ae=0;function re(e={}){const t=g(e.onWarn)?e.onWarn:F,n=d(e.version)?e.version:z,a=d(e.locale)||g(e.locale)?e.locale:J,r=g(a)?J:a,l=p(e.fallbackLocale)||y(e.fallbackLocale)||d(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,o=y(e.messages)?e.messages:{[r]:{}},s=y(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},i=y(e.numberFormats)?e.numberFormats:{[r]:{}},m=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&d(e)?e.toUpperCase():"vnode"===t&&h(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&d(e)?e.toLowerCase():"vnode"===t&&h(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&d(e)?q(e):"vnode"===t&&h(e)&&"__v_isVNode"in e?q(e.children):e}),f=e.pluralRules||{},_=g(e.missing)?e.missing:null,v=!b(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,E=!b(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,T=!!e.unresolving,R=g(e.postTranslation)?e.postTranslation:null,L=y(e.processor)?e.processor:null,I=!b(e.warnHtmlMessage)||e.warnHtmlMessage,N=!!e.escapeParameter,O=g(e.messageCompiler)?e.messageCompiler:K,W=g(e.messageResolver)?e.messageResolver:Z||Y,w=g(e.localeFallbacker)?e.localeFallbacker:Q||D,M=h(e.fallbackContext)?e.fallbackContext:void 0,C=e,P=h(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,S=h(C.__numberFormatters)?C.__numberFormatters:new Map,$=h(C.__meta)?C.__meta:{};ae++;const A={version:n,cid:ae,locale:a,fallbackLocale:l,messages:o,modifiers:m,pluralRules:f,missing:_,missingWarn:v,fallbackWarn:E,fallbackFormat:k,unresolving:T,postTranslation:R,processor:L,warnHtmlMessage:I,escapeParameter:N,messageCompiler:O,messageResolver:W,localeFallbacker:w,fallbackContext:M,onWarn:t,__meta:$};return A.datetimeFormats=s,A.numberFormats=i,A.__datetimeFormatters=P,A.__numberFormatters=S,A}function le(e,t,n,a,r){const{missing:l,onWarn:o}=e;if(null!==l){const a=l(e,n,t,r);return d(a)?a:t}return t}function oe(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function se(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let l=n+1;l<t.length;l++)if(a=e,r=t[l],a!==r&&a.split("-")[0]===r.split("-")[0])return!0;var a,r;return!1}function ce(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,m,f,_]=ue(...t);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,g=M(e,f),h=o(e,r,g);if(!d(c)||""===c)return new Intl.DateTimeFormat(g,_).format(m);let v,E={},k=null;for(let i=0;i<h.length&&(v=h[i],E=n[v]||{},k=E[c],!y(k));i++)le(e,c,v,0,"datetime format");if(!y(k)||!d(v))return a?X:c;let F=`${v}__${c}`;i(_)||(F=`${F}__${JSON.stringify(_)}`);let T=s.get(F);return T||(T=new Intl.DateTimeFormat(v,u({},k,_)),s.set(F,T)),p?T.formatToParts(m):T.format(m)}const ie=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ue(...e){const[t,n,a,r]=e,l={};let c,i={};if(d(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(w.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();c=new Date(n);try{c.toISOString()}catch{throw Error(w.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(w.INVALID_DATE_ARGUMENT);c=t}else{if(!o(t))throw Error(w.INVALID_ARGUMENT);c=t}return d(n)?l.key=n:y(n)&&Object.keys(n).forEach((e=>{ie.includes(e)?i[e]=n[e]:l[e]=n[e]})),d(a)?l.locale=a:y(a)&&(i=a),y(r)&&(i=r),[l.key||"",c,l,i]}function me(e,t,n){const a=e;for(const r in n){const e=`${t}__${r}`;a.__datetimeFormatters.has(e)&&a.__datetimeFormatters.delete(e)}}function fe(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,m,f,_]=pe(...t);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,g=M(e,f),h=o(e,r,g);if(!d(c)||""===c)return new Intl.NumberFormat(g,_).format(m);let v,E={},k=null;for(let i=0;i<h.length&&(v=h[i],E=n[v]||{},k=E[c],!y(k));i++)le(e,c,v,0,"number format");if(!y(k)||!d(v))return a?X:c;let F=`${v}__${c}`;i(_)||(F=`${F}__${JSON.stringify(_)}`);let T=s.get(F);return T||(T=new Intl.NumberFormat(v,u({},k,_)),s.set(F,T)),p?T.formatToParts(m):T.format(m)}const _e=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function pe(...e){const[t,n,a,r]=e,l={};let s={};if(!o(t))throw Error(w.INVALID_ARGUMENT);const c=t;return d(n)?l.key=n:y(n)&&Object.keys(n).forEach((e=>{_e.includes(e)?s[e]=n[e]:l[e]=n[e]})),d(a)?l.locale=a:y(a)&&(s=a),y(r)&&(s=r),[l.key||"",c,l,s]}function ge(e,t,n){const a=e;for(const r in n){const e=`${t}__${r}`;a.__numberFormatters.has(e)&&a.__numberFormatters.delete(e)}}const de=e=>e,be=e=>"",he="text",ve=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,n,a)=>0===a?e+n:e+t+n),"")}(e),Ee=e=>null==e?"":p(e)||y(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function ke(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ye(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),a=h(e.pluralRules)&&d(t)&&g(e.pluralRules[t])?e.pluralRules[t]:ke,r=h(e.pluralRules)&&d(t)&&g(e.pluralRules[t])?ke:void 0,l=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function c(t,n){const a=g(e.messages)?e.messages(t,!!n):!!h(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):be)}const i=y(e.processor)&&g(e.processor.normalize)?e.processor.normalize:ve,m=y(e.processor)&&g(e.processor.interpolate)?e.processor.interpolate:Ee,f={list:e=>l[e],named:e=>s[e],plural:e=>e[a(n,e.length,r)],linked:(t,...n)=>{const[a,r]=n;let l="text",o="";1===n.length?h(a)?(o=a.modifier||o,l=a.type||l):d(a)&&(o=a||o):2===n.length&&(d(a)&&(o=a||o),d(r)&&(l=r||l));const s=c(t,!0)(f),i="vnode"===l&&p(s)&&o?s[0]:s;return o?(u=o,e.modifiers?e.modifiers[u]:de)(i,l):i;var u},message:c,type:y(e.processor)&&d(e.processor.type)?e.processor.type:he,interpolate:m,normalize:i,values:u({},l,s)};return f}const Fe=()=>"",Te=e=>g(e);function Re(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:l,fallbackLocale:s,messages:c}=e,[i,u]=Ne(...t),f=b(u.missingWarn)?u.missingWarn:e.missingWarn,_=b(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,v=b(u.escapeParameter)?u.escapeParameter:e.escapeParameter,E=!!u.resolvedMessage,k=d(u.default)||b(u.default)?b(u.default)?l?i:()=>i:u.default:n?l?i:()=>i:null,y=n||null!=k&&(d(k)||g(k)),F=M(e,u);v&&function(e){p(e.list)?e.list=e.list.map((e=>d(e)?m(e):e)):h(e.named)&&Object.keys(e.named).forEach((t=>{d(e.named[t])&&(e.named[t]=m(e.named[t]))}))}(u);let[T,R,L]=E?[i,F,c[F]||{}]:Le(e,i,F,s,_,f),I=T,N=i;if(E||d(I)||W(I)||Te(I)||y&&(I=k,N=I),!(E||(d(I)||W(I)||Te(I))&&d(R)))return r?X:i;let O=!1;const w=Te(I)?I:Ie(e,i,R,I,N,(()=>{O=!0}));if(O)return I;const C=function(e,t,n,a){const{modifiers:r,pluralRules:l,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:m}=e,f=(a,r)=>{let l=s(n,a);if(null==l&&(m||r)){const[,,n]=Le(m||e,a,t,c,i,u);l=s(n,a)}if(d(l)||W(l)){let n=!1;const r=Ie(e,a,t,l,a,(()=>{n=!0}));return n?Fe:r}return Te(l)?l:Fe},_={locale:t,modifiers:r,pluralRules:l,messages:f};e.processor&&(_.processor=e.processor);a.list&&(_.list=a.list);a.named&&(_.named=a.named);o(a.plural)&&(_.pluralIndex=a.plural);return _}(e,R,L,u),P=function(e,t,n){const a=t(n);return a}(0,w,ye(C));return a?a(P,i):P}function Le(e,t,n,a,r,l){const{messages:o,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,a,n);let m,f={},_=null;for(let p=0;p<u.length&&(m=u[p],f=o[m]||{},null===(_=c(f,t))&&(_=f[t]),!(d(_)||W(_)||Te(_)));p++)if(!se(m,u)){const n=le(e,t,m,0,"translate");n!==t&&(_=n)}return[_,m,f]}function Ie(e,t,n,a,l,o){const{messageCompiler:s,warnHtmlMessage:c}=e;if(Te(a)){const e=a;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>a;return e.locale=n,e.key=t,e}const i=s(a,function(e,t,n,a,l,o){return{locale:t,key:n,warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>r(t,n,e)}}(0,n,l,0,c,o));return i.locale=n,i.key=t,i.source=a,i}function Ne(...e){const[t,n,a]=e,r={};if(!(d(t)||o(t)||Te(t)||W(t)))throw Error(w.INVALID_ARGUMENT);const l=o(t)?String(t):(Te(t),t);return o(n)?r.plural=n:d(n)?r.default=n:y(n)&&!i(n)?r.named=n:p(n)&&(r.list=n),o(a)?r.plural=a:d(a)?r.default=a:y(a)&&u(r,a),[l,r]}const Oe="10.0.1",We={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},we=a("__translateVNode"),Me=a("__datetimeParts"),Ce=a("__numberParts"),Pe=a("__setPluralRules"),De=a("__injectWithOption"),Se=a("__dispose");function $e(e){if(!h(e))return e;for(const t in e)if(_(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let r=e,l=!1;for(let e=0;e<a;e++){if(n[e]in r||(r[n[e]]={}),!h(r[n[e]])){l=!0;break}r=r[n[e]]}l||(r[n[a]]=e[t],delete e[t]),h(r[n[a]])&&$e(r[n[a]])}else h(e[t])&&$e(e[t]);return e}function Ae(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:l}=t,o=y(n)?n:p(a)?{}:{[e]:{}};if(p(a)&&a.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},R(n,o[t])):R(n,o)}else d(e)&&R(JSON.parse(e),o)})),null==r&&l)for(const s in o)_(o,s)&&$e(o[s]);return o}function Ue(e){return e.type}function xe(e,t,n){let a=h(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=Ae(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,a[t])})),h(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(h(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function je(e){return t.createVNode(t.Text,null,e,0)}const He=()=>[],Ve=()=>!1;let Ge=0;function Ye(e){return(n,a,r,l)=>e(a,r,t.getCurrentInstance()||void 0,l)}function ze(e={}){const{__root:a,__injectWithOption:r}=e,l=void 0===a,s=e.flatJson,i=n?t.ref:t.shallowRef;let m=!b(e.inheritLocale)||e.inheritLocale;const f=i(a&&m?a.locale.value:d(e.locale)?e.locale:J),v=i(a&&m?a.fallbackLocale.value:d(e.fallbackLocale)||p(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:f.value),E=i(Ae(f.value,e)),k=i(y(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),F=i(y(e.numberFormats)?e.numberFormats:{[f.value]:{}});let T=a?a.missingWarn:!b(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,L=a?a.fallbackWarn:!b(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,I=a?a.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,N=!!e.fallbackFormat,O=g(e.missing)?e.missing:null,w=g(e.missing)?Ye(e.missing):null,M=g(e.postTranslation)?e.postTranslation:null,C=a?a.warnHtmlMessage:!b(e.warnHtmlMessage)||e.warnHtmlMessage,P=!!e.escapeParameter;const D=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let $,A=e.pluralRules||a&&a.pluralRules;$=(()=>{l&&te(null);const t={version:Oe,locale:f.value,fallbackLocale:v.value,messages:E.value,modifiers:D,pluralRules:A,missing:null===w?void 0:w,missingWarn:T,fallbackWarn:L,fallbackFormat:N,unresolving:!0,postTranslation:null===M?void 0:M,warnHtmlMessage:C,escapeParameter:P,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=k.value,t.numberFormats=F.value,t.__datetimeFormatters=y($)?$.__datetimeFormatters:void 0,t.__numberFormatters=y($)?$.__numberFormatters:void 0;const n=re(t);return l&&te(n),n})(),oe($,f.value,v.value);const U=t.computed({get:()=>f.value,set:e=>{f.value=e,$.locale=f.value}}),x=t.computed({get:()=>v.value,set:e=>{v.value=e,$.fallbackLocale=v.value,oe($,f.value,e)}}),j=t.computed((()=>E.value)),H=t.computed((()=>k.value)),V=t.computed((()=>F.value));const G=(e,t,n,r,s,c)=>{let i;f.value,v.value,E.value,k.value,F.value;try{0,l||($.fallbackContext=a?ne():void 0),i=e($)}finally{l||($.fallbackContext=void 0)}if("translate exists"!==n&&o(i)&&i===X||"translate exists"===n&&!i){const[e,n]=t();return a&&I?r(a):s(e)}if(c(i))return i;throw Error(We.UNEXPECTED_RETURN_TYPE)};function Y(...e){return G((t=>Reflect.apply(Re,null,[t,...e])),(()=>Ne(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>d(e)))}const z={normalize:function(e){return e.map((e=>d(e)||o(e)||b(e)?je(String(e)):e))},interpolate:e=>e,type:"vnode"};function q(e){return E.value[e]||{}}Ge++,a&&n&&(t.watch(a.locale,(e=>{m&&(f.value=e,$.locale=e,oe($,f.value,v.value))})),t.watch(a.fallbackLocale,(e=>{m&&(v.value=e,$.fallbackLocale=e,oe($,f.value,v.value))})));const K={id:Ge,locale:U,fallbackLocale:x,get inheritLocale(){return m},set inheritLocale(e){m=e,e&&a&&(f.value=a.locale.value,v.value=a.fallbackLocale.value,oe($,f.value,v.value))},get availableLocales(){return Object.keys(E.value).sort()},messages:j,get modifiers(){return D},get pluralRules(){return A||{}},get isGlobal(){return l},get missingWarn(){return T},set missingWarn(e){T=e,$.missingWarn=T},get fallbackWarn(){return L},set fallbackWarn(e){L=e,$.fallbackWarn=L},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,$.fallbackFormat=N},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,$.warnHtmlMessage=e},get escapeParameter(){return P},set escapeParameter(e){P=e,$.escapeParameter=e},t:Y,getLocaleMessage:q,setLocaleMessage:function(e,t){if(s){const n={[e]:t};for(const e in n)_(n,e)&&$e(n[e]);t=n[e]}E.value[e]=t,$.messages=E.value},mergeLocaleMessage:function(e,t){E.value[e]=E.value[e]||{};const n={[e]:t};if(s)for(const a in n)_(n,a)&&$e(n[a]);R(t=n[e],E.value[e]),$.messages=E.value},getPostTranslationHandler:function(){return g(M)?M:null},setPostTranslationHandler:function(e){M=e,$.postTranslation=e},getMissingHandler:function(){return O},setMissingHandler:function(e){null!==e&&(w=Ye(e)),O=e,$.missing=w},[Pe]:function(e){A=e,$.pluralRules=A}};return K.datetimeFormats=H,K.numberFormats=V,K.rt=function(...e){const[t,n,a]=e;if(a&&!h(a))throw Error(We.INVALID_ARGUMENT);return Y(t,n,u({resolvedMessage:!0},a||{}))},K.te=function(e,t){return G((()=>{if(!e)return!1;const n=q(d(t)?t:f.value),a=$.messageResolver(n,e);return W(a)||Te(a)||d(a)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Ve,(e=>b(e)))},K.tm=function(e){const t=function(e){let t=null;const n=S($,v.value,f.value);for(let a=0;a<n.length;a++){const r=E.value[n[a]]||{},l=$.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},K.d=function(...e){return G((t=>Reflect.apply(ce,null,[t,...e])),(()=>ue(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>B),(e=>d(e)))},K.n=function(...e){return G((t=>Reflect.apply(fe,null,[t,...e])),(()=>pe(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>B),(e=>d(e)))},K.getDateTimeFormat=function(e){return k.value[e]||{}},K.setDateTimeFormat=function(e,t){k.value[e]=t,$.datetimeFormats=k.value,me($,e,t)},K.mergeDateTimeFormat=function(e,t){k.value[e]=u(k.value[e]||{},t),$.datetimeFormats=k.value,me($,e,t)},K.getNumberFormat=function(e){return F.value[e]||{}},K.setNumberFormat=function(e,t){F.value[e]=t,$.numberFormats=F.value,ge($,e,t)},K.mergeNumberFormat=function(e,t){F.value[e]=u(F.value[e]||{},t),$.numberFormats=F.value,ge($,e,t)},K[De]=r,K[we]=function(...e){return G((t=>{let n;const a=t;try{a.processor=z,n=Reflect.apply(Re,null,[a,...e])}finally{a.processor=null}return n}),(()=>Ne(...e)),"translate",(t=>t[we](...e)),(e=>[je(e)]),(e=>p(e)))},K[Me]=function(...e){return G((t=>Reflect.apply(ce,null,[t,...e])),(()=>ue(...e)),"datetime format",(t=>t[Me](...e)),He,(e=>d(e)||p(e)))},K[Ce]=function(...e){return G((t=>Reflect.apply(fe,null,[t,...e])),(()=>pe(...e)),"number format",(t=>t[Ce](...e)),He,(e=>d(e)||p(e)))},K}function Xe(e={}){const t=ze(function(e){const t=d(e.locale)?e.locale:J,n=d(e.fallbackLocale)||p(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,a=g(e.missing)?e.missing:void 0,r=!b(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,l=!b(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!b(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,i=y(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,f=g(e.postTranslation)?e.postTranslation:void 0,_=!d(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,h=!!e.escapeParameterHtml,v=!b(e.sync)||e.sync;let E=e.messages;if(y(e.sharedMessages)){const t=e.sharedMessages;E=Object.keys(t).reduce(((e,n)=>{const a=e[n]||(e[n]={});return u(a,t[n]),e}),E||{})}const{__i18n:k,__root:F,__injectWithOption:T}=e,R=e.datetimeFormats,L=e.numberFormats;return{locale:t,fallbackLocale:n,messages:E,flatJson:e.flatJson,datetimeFormats:R,numberFormats:L,missing:a,missingWarn:r,fallbackWarn:l,fallbackRoot:o,fallbackFormat:s,modifiers:i,pluralRules:m,postTranslation:f,warnHtmlMessage:_,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:v,__i18n:k,__root:F,__injectWithOption:T}}(e)),{__extender:n}=e,a={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 b(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=b(e)?!e:e},get silentFallbackWarn(){return b(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=b(e)?!e: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]),tc(...e){const[n,a,r]=e,l={plural:1};let s=null,c=null;if(!d(n))throw Error(We.INVALID_ARGUMENT);const i=n;return d(a)?l.locale=a:o(a)?l.plural=a:p(a)?s=a:y(a)&&(c=a),d(r)?l.locale=r:p(r)?s=r:y(r)&&(c=r),Reflect.apply(t.t,t,[i,s||c||{},l])},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 a.__extender=n,a}function Je(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[Pe](t.pluralizationRules||e.pluralizationRules);const n=Ae(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 Be={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function qe(){return t.Fragment}const Ke=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Be),setup(e,n){const{slots:a,attrs:r}=n,l=e.i18n||ct({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(a).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=d(e.plural)?+e.plural:e.plural);const c=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 a=e[n];return a&&(t[n]=a()),t}),{})}(n,o),i=l[we](e.keypath,c,s),m=u({},r),f=d(e.tag)||h(e.tag)?e.tag:qe();return t.h(f,m,i)}}}),Ze=Ke;function Qe(e,n,a,r){const{slots:l,attrs:o}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),d(e.format)?n.key=e.format:h(e.format)&&(d(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?u({},t,{[n]:e.format[n]}):t),{}));const c=r(e.value,n,s);let i=[n.key];p(c)?i=c.map(((e,t)=>{const n=l[e.type],a=n?n({[e.type]:e.value,index:t,parts:c}):[e.value];var r;return p(r=a)&&!d(r[0])&&(a[0].key=`${e.type}-${t}`),a})):d(c)&&(i=[c]);const m=u({},o),f=d(e.tag)||h(e.tag)?e.tag:qe();return t.h(f,m,i)}}const et=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Be),setup(e,t){const n=e.i18n||ct({useScope:e.scope,__useComponent:!0});return Qe(e,t,_e,((...e)=>n[Ce](...e)))}}),tt=et,nt=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Be),setup(e,t){const n=e.i18n||ct({useScope:e.scope,__useComponent:!0});return Qe(e,t,ie,((...e)=>n[Me](...e)))}}),at=nt;function rt(e){const a=t=>{const{instance:n,value:a}=t;if(!n||!n.$)throw Error(We.UNEXPECTED_ERROR);const r=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return null!=a?a.__composer:e.global.__composer}}(e,n.$),l=lt(a);return[Reflect.apply(r.t,r,[...ot(l)]),r]};return{created:(r,l)=>{const[o,s]=a(l);n&&e.global===s&&(r.__i18nWatcher=t.watch(s.locale,(()=>{l.instance&&l.instance.$forceUpdate()}))),r.__composer=s,r.textContent=o},unmounted:e=>{n&&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,a=lt(t);e.textContent=Reflect.apply(n.t,n,[...ot(a)])}},getSSRProps:e=>{const[t]=a(e);return{textContent:t}}}}function lt(e){if(d(e))return{path:e};if(y(e)){if(!("path"in e))throw Error(We.REQUIRED_VALUE,"path");return e}throw Error(We.INVALID_VALUE)}function ot(e){const{path:t,locale:n,args:a,choice:r,plural:l}=e,s={},c=a||{};return d(n)&&(s.locale=n),o(r)&&(s.plural=r),o(l)&&(s.plural=l),[t,c,s]}const st=a("global-vue-i18n");function ct(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(We.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(We.NOT_INSTALLED);const a=function(e){const n=t.inject(e.isCE?st:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?We.NOT_INSTALLED_WITH_PROVIDE:We.UNEXPECTED_ERROR);return n}(n),r=function(e){return"composition"===e.mode?e.global:e.global.__composer}(a),l=Ue(n),o=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===o)return xe(r,e,l),r;if("parent"===o){let t=function(e,t,n=!1){let a=null;const r=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)a=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(a=e.__composer,n&&a&&!a[De]&&(a=null))}if(null!=a)break;if(r===l)break;l=l.parent}return a}(a,n,e.__useComponent);return null==t&&(t=r),t}const s=a;let c=s.__getInstance(n);if(null==c){const a=u({},e);"__i18n"in l&&(a.__i18n=l.__i18n),r&&(a.__root=r),c=ze(a),s.__composerExtend&&(c[Se]=s.__composerExtend(c)),function(e,n,a){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=a;e.__deleteInstance(n);const r=t[Se];r&&(r(),delete t[Se])}),n)}(s,n,c),s.__setInstance(n,c)}return c}const it=["locale","fallbackLocale","availableLocales"],ut=["t","rt","d","n","tm","te"];return K=function(e,t){{const t=e.cacheKey;if(t){const n=O[t];return n||(O[t]=L(e))}return L(e)}},Z=function(e,t){if(!h(e))return null;let n=G.get(t);if(n||(n=function(e){const t=[];let n,a,r,l,o,s,c,i=-1,u=0,m=0;const f=[];function _(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===a?a=r:a+=r},f[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===a)return!1;if(a=V(a),!1===a)return!1;f[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!_()){if(l=H(n),c=x[u],o=c[l]||c.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&G.set(t,n)),!n)return null;const a=n.length;let r=e,l=0;for(;l<a;){const e=r[n[l]];if(void 0===e)return null;if(g(r))return null;r=e,l++}return r},Q=S,e.DatetimeFormat=nt,e.I18nD=at,e.I18nInjectionKey=st,e.I18nN=tt,e.I18nT=Ze,e.NumberFormat=et,e.Translation=Ke,e.VERSION=Oe,e.createI18n=function(e={},n){const r=!b(e.legacy)||e.legacy,l=!b(e.globalInjection)||e.globalInjection,o=new Map,[s,c]=function(e,n,a){const r=t.effectScope(),l=n?r.run((()=>Xe(e))):r.run((()=>ze(e)));if(null==l)throw Error(We.UNEXPECTED_ERROR);return[r,l]}(e,r),i=a(""),u={get mode(){return r?"legacy":"composition"},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=i,e.provide(e.__VUE_I18N_SYMBOL__,u),y(n[0])){const e=n[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let a=null;!r&&l&&(a=function(e,n){const a=Object.create(null);it.forEach((e=>{const r=Object.getOwnPropertyDescriptor(n,e);if(!r)throw Error(We.UNEXPECTED_ERROR);const l=t.isRef(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(a,e,l)})),e.config.globalProperties.$i18n=a,ut.forEach((t=>{const a=Object.getOwnPropertyDescriptor(n,t);if(!a||!a.value)throw Error(We.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,a)}));const r=()=>{delete e.config.globalProperties.$i18n,ut.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return r}(e,u.global)),function(e,t,...n){const a=y(n[0])?n[0]:{};(!b(a.globalInstall)||a.globalInstall)&&([Ke.name,"I18nT"].forEach((t=>e.component(t,Ke))),[et.name,"I18nN"].forEach((t=>e.component(t,et))),[nt.name,"I18nD"].forEach((t=>e.component(t,nt)))),e.directive("t",rt(t))}(e,u,...n),r&&e.mixin(function(e,n,a){return{beforeCreate(){const r=t.getCurrentInstance();if(!r)throw Error(We.UNEXPECTED_ERROR);const l=this.$options;if(l.i18n){const t=l.i18n;if(l.__i18n&&(t.__i18n=l.__i18n),t.__root=n,this===this.$root)this.$i18n=Je(e,t);else{t.__injectWithOption=!0,t.__extender=a.__vueI18nExtend,this.$i18n=Xe(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(l.__i18n)if(this===this.$root)this.$i18n=Je(e,l);else{this.$i18n=Xe({__i18n:l.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:n});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;l.__i18nGlobal&&xe(n,l,l),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),a.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(We.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),a.__deleteInstance(e),delete this.$i18n}}}(c,c.__composer,u));const o=e.unmount;e.unmount=()=>{a&&a(),u.dispose(),o()}},get global(){return c},dispose(){s.stop()},__instances:o,__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return u},e.useI18n=ct,e.vTDirective=rt,e}({},Vue); | ||
var VueI18n=function(e,t){"use strict";const n="undefined"!=typeof window,a=(e,t=!1)=>t?Symbol.for(e):Symbol(e),r=(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"),o=e=>"number"==typeof e&&isFinite(e),s=e=>"[object Date]"===k(e),i=e=>"[object RegExp]"===k(e),c=e=>y(e)&&0===Object.keys(e).length,u=Object.assign;function m(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const f=Object.prototype.hasOwnProperty;function _(e,t){return f.call(e,t)}const p=Array.isArray,g=e=>"function"==typeof e,d=e=>"string"==typeof e,b=e=>"boolean"==typeof e,h=e=>null!==e&&"object"==typeof e,v=e=>h(e)&&g(e.then)&&g(e.catch),E=Object.prototype.toString,k=e=>E.call(e),y=e=>"[object Object]"===k(e);function F(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const T=e=>!h(e)||p(e);function R(e,t){if(T(e)||T(t))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((a=>{h(e[a])&&!h(t[a])&&(t[a]=Array.isArray(e[a])?[]:{}),T(t[a])||T(e[a])?t[a]=e[a]:n.push({src:e[a],des:t[a]})}))}}function L(e){return t=>function(e,t){const n=t.b||t.body;if(1===(n.t||n.type)){const t=n,a=t.c||t.cases;return e.plural(a.reduce(((t,n)=>[...t,I(e,n)]),[]))}return I(e,n)}(t,e)}function I(e,t){const n=t.s||t.static;if(n)return"text"===e.type?n:e.normalize([n]);{const n=(t.i||t.items).reduce(((t,n)=>[...t,N(e,n)]),[]);return e.normalize(n)}}function N(e,t){const n=t.t||t.type;switch(n){case 3:{const e=t;return e.v||e.value}case 9:{const e=t;return e.v||e.value}case 4:{const n=t;return e.interpolate(e.named(n.k||n.key))}case 5:{const n=t;return e.interpolate(e.list(null!=n.i?n.i:n.index))}case 6:{const n=t,a=n.m||n.modifier;return e.linked(N(e,n.k||n.key),a?N(e,a):void 0,e.type)}case 7:{const e=t;return e.v||e.value}case 8:{const e=t;return e.v||e.value}default:throw new Error(`unhandled node type on format message part: ${n}`)}}let O=Object.create(null);const W=e=>h(e)&&(0===e.t||0===e.type)&&("b"in e||"body"in e);const w={INVALID_ARGUMENT:17,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23};function M(e,t){return null!=t.locale?P(t.locale):P(e.locale)}let C;function P(e){if(d(e))return e;if(g(e)){if(e.resolvedOnce&&null!=C)return C;if("Function"===e.constructor.name){const t=e();if(v(t))throw Error(w.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return C=t}throw Error(w.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Error(w.NOT_SUPPORT_LOCALE_TYPE)}function D(e,t,n){return[...new Set([n,...p(t)?t:h(t)?Object.keys(t):d(t)?[t]:[n]])]}function S(e,t,n){const a=d(n)?n:J,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let l=r.__localeChainCache.get(a);if(!l){l=[];let e=[n];for(;p(e);)e=A(l,e,t);const o=p(t)||!y(t)?t:t.default?t.default:null;e=d(o)?[o]:o,p(e)&&A(l,e,!1),r.__localeChainCache.set(a,l)}return l}function A(e,t,n){let a=!0;for(let r=0;r<t.length&&b(a);r++){const l=t[r];d(l)&&(a=$(e,t[r],n))}return a}function $(e,t,n){let a;const r=t.split("-");do{a=U(e,r.join("-"),n),r.splice(-1,1)}while(r.length&&!0===a);return a}function U(e,t,n){let a=!1;if(!e.includes(t)&&(a=!0,t)){a="!"!==t[t.length-1];const r=t.replace(/!/g,"");e.push(r),(p(n)||y(n))&&n[r]&&(a=n[r])}return a}const x=[];x[0]={w:[0],i:[3,0],"[":[4],o:[7]},x[1]={w:[1],".":[2],"[":[4],o:[7]},x[2]={w:[2],i:[3,0],0:[3,0]},x[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},x[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},x[5]={"'":[4,0],o:8,l:[5,0]},x[6]={'"':[4,0],o:8,l:[6,0]};const j=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function H(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 V(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,j.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 G=new Map;function Y(e,t){return h(e)?e[t]:null}const z="10.0.2",X=-1,J="en-US",B="",q=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let K,Z,Q;let ee=null;const te=e=>{ee=e},ne=()=>ee;let ae=0;function re(e={}){const t=g(e.onWarn)?e.onWarn:F,n=d(e.version)?e.version:z,a=d(e.locale)||g(e.locale)?e.locale:J,r=g(a)?J:a,l=p(e.fallbackLocale)||y(e.fallbackLocale)||d(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:r,o=y(e.messages)?e.messages:{[r]:{}},s=y(e.datetimeFormats)?e.datetimeFormats:{[r]:{}},c=y(e.numberFormats)?e.numberFormats:{[r]:{}},m=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&d(e)?e.toUpperCase():"vnode"===t&&h(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&d(e)?e.toLowerCase():"vnode"===t&&h(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&d(e)?q(e):"vnode"===t&&h(e)&&"__v_isVNode"in e?q(e.children):e}),f=e.pluralRules||{},_=g(e.missing)?e.missing:null,v=!b(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,E=!b(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,T=!!e.unresolving,R=g(e.postTranslation)?e.postTranslation:null,L=y(e.processor)?e.processor:null,I=!b(e.warnHtmlMessage)||e.warnHtmlMessage,N=!!e.escapeParameter,O=g(e.messageCompiler)?e.messageCompiler:K,W=g(e.messageResolver)?e.messageResolver:Z||Y,w=g(e.localeFallbacker)?e.localeFallbacker:Q||D,M=h(e.fallbackContext)?e.fallbackContext:void 0,C=e,P=h(C.__datetimeFormatters)?C.__datetimeFormatters:new Map,S=h(C.__numberFormatters)?C.__numberFormatters:new Map,A=h(C.__meta)?C.__meta:{};ae++;const $={version:n,cid:ae,locale:a,fallbackLocale:l,messages:o,modifiers:m,pluralRules:f,missing:_,missingWarn:v,fallbackWarn:E,fallbackFormat:k,unresolving:T,postTranslation:R,processor:L,warnHtmlMessage:I,escapeParameter:N,messageCompiler:O,messageResolver:W,localeFallbacker:w,fallbackContext:M,onWarn:t,__meta:A};return $.datetimeFormats=s,$.numberFormats=c,$.__datetimeFormatters=P,$.__numberFormatters=S,$}function le(e,t,n,a,r){const{missing:l,onWarn:o}=e;if(null!==l){const a=l(e,n,t,r);return d(a)?a:t}return t}function oe(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function se(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let l=n+1;l<t.length;l++)if(a=e,r=t[l],a!==r&&a.split("-")[0]===r.split("-")[0])return!0;var a,r;return!1}function ie(e,...t){const{datetimeFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,m,f,_]=ue(...t);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,g=M(e,f),h=o(e,r,g);if(!d(i)||""===i)return new Intl.DateTimeFormat(g,_).format(m);let v,E={},k=null;for(let c=0;c<h.length&&(v=h[c],E=n[v]||{},k=E[i],!y(k));c++)le(e,i,v,0,"datetime format");if(!y(k)||!d(v))return a?X:i;let F=`${v}__${i}`;c(_)||(F=`${F}__${JSON.stringify(_)}`);let T=s.get(F);return T||(T=new Intl.DateTimeFormat(v,u({},k,_)),s.set(F,T)),p?T.formatToParts(m):T.format(m)}const ce=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ue(...e){const[t,n,a,r]=e,l={};let i,c={};if(d(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(w.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();i=new Date(n);try{i.toISOString()}catch{throw Error(w.INVALID_ISO_DATE_ARGUMENT)}}else if(s(t)){if(isNaN(t.getTime()))throw Error(w.INVALID_DATE_ARGUMENT);i=t}else{if(!o(t))throw Error(w.INVALID_ARGUMENT);i=t}return d(n)?l.key=n:y(n)&&Object.keys(n).forEach((e=>{ce.includes(e)?c[e]=n[e]:l[e]=n[e]})),d(a)?l.locale=a:y(a)&&(c=a),y(r)&&(c=r),[l.key||"",i,l,c]}function me(e,t,n){const a=e;for(const r in n){const e=`${t}__${r}`;a.__datetimeFormatters.has(e)&&a.__datetimeFormatters.delete(e)}}function fe(e,...t){const{numberFormats:n,unresolving:a,fallbackLocale:r,onWarn:l,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,m,f,_]=pe(...t);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const p=!!f.part,g=M(e,f),h=o(e,r,g);if(!d(i)||""===i)return new Intl.NumberFormat(g,_).format(m);let v,E={},k=null;for(let c=0;c<h.length&&(v=h[c],E=n[v]||{},k=E[i],!y(k));c++)le(e,i,v,0,"number format");if(!y(k)||!d(v))return a?X:i;let F=`${v}__${i}`;c(_)||(F=`${F}__${JSON.stringify(_)}`);let T=s.get(F);return T||(T=new Intl.NumberFormat(v,u({},k,_)),s.set(F,T)),p?T.formatToParts(m):T.format(m)}const _e=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function pe(...e){const[t,n,a,r]=e,l={};let s={};if(!o(t))throw Error(w.INVALID_ARGUMENT);const i=t;return d(n)?l.key=n:y(n)&&Object.keys(n).forEach((e=>{_e.includes(e)?s[e]=n[e]:l[e]=n[e]})),d(a)?l.locale=a:y(a)&&(s=a),y(r)&&(s=r),[l.key||"",i,l,s]}function ge(e,t,n){const a=e;for(const r in n){const e=`${t}__${r}`;a.__numberFormatters.has(e)&&a.__numberFormatters.delete(e)}}const de=e=>e,be=e=>"",he="text",ve=e=>0===e.length?"":function(e,t=""){return e.reduce(((e,n,a)=>0===a?e+n:e+t+n),"")}(e),Ee=e=>null==e?"":p(e)||y(e)&&e.toString===E?JSON.stringify(e,null,2):String(e);function ke(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ye(e={}){const t=e.locale,n=function(e){const t=o(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(o(e.named.count)||o(e.named.n))?o(e.named.count)?e.named.count:o(e.named.n)?e.named.n:t:t}(e),a=h(e.pluralRules)&&d(t)&&g(e.pluralRules[t])?e.pluralRules[t]:ke,r=h(e.pluralRules)&&d(t)&&g(e.pluralRules[t])?ke:void 0,l=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function i(t,n){const a=g(e.messages)?e.messages(t,!!n):!!h(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):be)}const c=y(e.processor)&&g(e.processor.normalize)?e.processor.normalize:ve,m=y(e.processor)&&g(e.processor.interpolate)?e.processor.interpolate:Ee,f={list:e=>l[e],named:e=>s[e],plural:e=>e[a(n,e.length,r)],linked:(t,...n)=>{const[a,r]=n;let l="text",o="";1===n.length?h(a)?(o=a.modifier||o,l=a.type||l):d(a)&&(o=a||o):2===n.length&&(d(a)&&(o=a||o),d(r)&&(l=r||l));const s=i(t,!0)(f),c="vnode"===l&&p(s)&&o?s[0]:s;return o?(u=o,e.modifiers?e.modifiers[u]:de)(c,l):c;var u},message:i,type:y(e.processor)&&d(e.processor.type)?e.processor.type:he,interpolate:m,normalize:c,values:u({},l,s)};return f}const Fe=()=>"",Te=e=>g(e);function Re(e,...t){const{fallbackFormat:n,postTranslation:a,unresolving:r,messageCompiler:l,fallbackLocale:s,messages:i}=e,[c,u]=Ne(...t),f=b(u.missingWarn)?u.missingWarn:e.missingWarn,_=b(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,v=b(u.escapeParameter)?u.escapeParameter:e.escapeParameter,E=!!u.resolvedMessage,k=d(u.default)||b(u.default)?b(u.default)?l?c:()=>c:u.default:n?l?c:()=>c:null,y=n||null!=k&&(d(k)||g(k)),F=M(e,u);v&&function(e){p(e.list)?e.list=e.list.map((e=>d(e)?m(e):e)):h(e.named)&&Object.keys(e.named).forEach((t=>{d(e.named[t])&&(e.named[t]=m(e.named[t]))}))}(u);let[T,R,L]=E?[c,F,i[F]||{}]:Le(e,c,F,s,_,f),I=T,N=c;if(E||d(I)||W(I)||Te(I)||y&&(I=k,N=I),!(E||(d(I)||W(I)||Te(I))&&d(R)))return r?X:c;let O=!1;const w=Te(I)?I:Ie(e,c,R,I,N,(()=>{O=!0}));if(O)return I;const C=function(e,t,n,a){const{modifiers:r,pluralRules:l,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:m}=e,f=(a,r)=>{let l=s(n,a);if(null==l&&(m||r)){const[,,n]=Le(m||e,a,t,i,c,u);l=s(n,a)}if(d(l)||W(l)){let n=!1;const r=Ie(e,a,t,l,a,(()=>{n=!0}));return n?Fe:r}return Te(l)?l:Fe},_={locale:t,modifiers:r,pluralRules:l,messages:f};e.processor&&(_.processor=e.processor);a.list&&(_.list=a.list);a.named&&(_.named=a.named);o(a.plural)&&(_.pluralIndex=a.plural);return _}(e,R,L,u),P=function(e,t,n){const a=t(n);return a}(0,w,ye(C));return a?a(P,c):P}function Le(e,t,n,a,r,l){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,a,n);let m,f={},_=null;for(let p=0;p<u.length&&(m=u[p],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!(d(_)||W(_)||Te(_)));p++)if(!se(m,u)){const n=le(e,t,m,0,"translate");n!==t&&(_=n)}return[_,m,f]}function Ie(e,t,n,a,l,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(Te(a)){const e=a;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>a;return e.locale=n,e.key=t,e}const c=s(a,function(e,t,n,a,l,o){return{locale:t,key:n,warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>r(t,n,e)}}(0,n,l,0,i,o));return c.locale=n,c.key=t,c.source=a,c}function Ne(...e){const[t,n,a]=e,r={};if(!(d(t)||o(t)||Te(t)||W(t)))throw Error(w.INVALID_ARGUMENT);const l=o(t)?String(t):(Te(t),t);return o(n)?r.plural=n:d(n)?r.default=n:y(n)&&!c(n)?r.named=n:p(n)&&(r.list=n),o(a)?r.plural=a:d(a)?r.default=a:y(a)&&u(r,a),[l,r]}const Oe="10.0.2",We={UNEXPECTED_RETURN_TYPE:24,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34},we=a("__translateVNode"),Me=a("__datetimeParts"),Ce=a("__numberParts"),Pe=a("__setPluralRules"),De=a("__injectWithOption"),Se=a("__dispose");function Ae(e){if(!h(e))return e;for(const t in e)if(_(e,t))if(t.includes(".")){const n=t.split("."),a=n.length-1;let r=e,l=!1;for(let e=0;e<a;e++){if(n[e]in r||(r[n[e]]={}),!h(r[n[e]])){l=!0;break}r=r[n[e]]}l||(r[n[a]]=e[t],delete e[t]),h(r[n[a]])&&Ae(r[n[a]])}else h(e[t])&&Ae(e[t]);return e}function $e(e,t){const{messages:n,__i18n:a,messageResolver:r,flatJson:l}=t,o=y(n)?n:p(a)?{}:{[e]:{}};if(p(a)&&a.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||{},R(n,o[t])):R(n,o)}else d(e)&&R(JSON.parse(e),o)})),null==r&&l)for(const s in o)_(o,s)&&Ae(o[s]);return o}function Ue(e){return e.type}function xe(e,t,n){let a=h(t.messages)?t.messages:{};"__i18nGlobal"in n&&(a=$e(e.locale.value,{messages:a,__i18n:n.__i18nGlobal}));const r=Object.keys(a);if(r.length&&r.forEach((t=>{e.mergeLocaleMessage(t,a[t])})),h(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(h(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function je(e){return t.createVNode(t.Text,null,e,0)}const He=()=>[],Ve=()=>!1;let Ge=0;function Ye(e){return(n,a,r,l)=>e(a,r,t.getCurrentInstance()||void 0,l)}function ze(e={}){const{__root:a,__injectWithOption:r}=e,l=void 0===a,s=e.flatJson,c=n?t.ref:t.shallowRef;let m=!b(e.inheritLocale)||e.inheritLocale;const f=c(a&&m?a.locale.value:d(e.locale)?e.locale:J),v=c(a&&m?a.fallbackLocale.value:d(e.fallbackLocale)||p(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:f.value),E=c($e(f.value,e)),k=c(y(e.datetimeFormats)?e.datetimeFormats:{[f.value]:{}}),F=c(y(e.numberFormats)?e.numberFormats:{[f.value]:{}});let T=a?a.missingWarn:!b(e.missingWarn)&&!i(e.missingWarn)||e.missingWarn,L=a?a.fallbackWarn:!b(e.fallbackWarn)&&!i(e.fallbackWarn)||e.fallbackWarn,I=a?a.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,N=!!e.fallbackFormat,O=g(e.missing)?e.missing:null,w=g(e.missing)?Ye(e.missing):null,M=g(e.postTranslation)?e.postTranslation:null,C=a?a.warnHtmlMessage:!b(e.warnHtmlMessage)||e.warnHtmlMessage,P=!!e.escapeParameter;const D=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let A,$=e.pluralRules||a&&a.pluralRules;A=(()=>{l&&te(null);const t={version:Oe,locale:f.value,fallbackLocale:v.value,messages:E.value,modifiers:D,pluralRules:$,missing:null===w?void 0:w,missingWarn:T,fallbackWarn:L,fallbackFormat:N,unresolving:!0,postTranslation:null===M?void 0:M,warnHtmlMessage:C,escapeParameter:P,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=k.value,t.numberFormats=F.value,t.__datetimeFormatters=y(A)?A.__datetimeFormatters:void 0,t.__numberFormatters=y(A)?A.__numberFormatters:void 0;const n=re(t);return l&&te(n),n})(),oe(A,f.value,v.value);const U=t.computed({get:()=>f.value,set:e=>{f.value=e,A.locale=f.value}}),x=t.computed({get:()=>v.value,set:e=>{v.value=e,A.fallbackLocale=v.value,oe(A,f.value,e)}}),j=t.computed((()=>E.value)),H=t.computed((()=>k.value)),V=t.computed((()=>F.value));const G=(e,t,n,r,s,i)=>{let c;f.value,v.value,E.value,k.value,F.value;try{0,l||(A.fallbackContext=a?ne():void 0),c=e(A)}finally{l||(A.fallbackContext=void 0)}if("translate exists"!==n&&o(c)&&c===X||"translate exists"===n&&!c){const[e,n]=t();return a&&I?r(a):s(e)}if(i(c))return c;throw Error(We.UNEXPECTED_RETURN_TYPE)};function Y(...e){return G((t=>Reflect.apply(Re,null,[t,...e])),(()=>Ne(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>d(e)))}const z={normalize:function(e){return e.map((e=>d(e)||o(e)||b(e)?je(String(e)):e))},interpolate:e=>e,type:"vnode"};function q(e){return E.value[e]||{}}Ge++,a&&n&&(t.watch(a.locale,(e=>{m&&(f.value=e,A.locale=e,oe(A,f.value,v.value))})),t.watch(a.fallbackLocale,(e=>{m&&(v.value=e,A.fallbackLocale=e,oe(A,f.value,v.value))})));const K={id:Ge,locale:U,fallbackLocale:x,get inheritLocale(){return m},set inheritLocale(e){m=e,e&&a&&(f.value=a.locale.value,v.value=a.fallbackLocale.value,oe(A,f.value,v.value))},get availableLocales(){return Object.keys(E.value).sort()},messages:j,get modifiers(){return D},get pluralRules(){return $||{}},get isGlobal(){return l},get missingWarn(){return T},set missingWarn(e){T=e,A.missingWarn=T},get fallbackWarn(){return L},set fallbackWarn(e){L=e,A.fallbackWarn=L},get fallbackRoot(){return I},set fallbackRoot(e){I=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,A.fallbackFormat=N},get warnHtmlMessage(){return C},set warnHtmlMessage(e){C=e,A.warnHtmlMessage=e},get escapeParameter(){return P},set escapeParameter(e){P=e,A.escapeParameter=e},t:Y,getLocaleMessage:q,setLocaleMessage:function(e,t){if(s){const n={[e]:t};for(const e in n)_(n,e)&&Ae(n[e]);t=n[e]}E.value[e]=t,A.messages=E.value},mergeLocaleMessage:function(e,t){E.value[e]=E.value[e]||{};const n={[e]:t};if(s)for(const a in n)_(n,a)&&Ae(n[a]);R(t=n[e],E.value[e]),A.messages=E.value},getPostTranslationHandler:function(){return g(M)?M:null},setPostTranslationHandler:function(e){M=e,A.postTranslation=e},getMissingHandler:function(){return O},setMissingHandler:function(e){null!==e&&(w=Ye(e)),O=e,A.missing=w},[Pe]:function(e){$=e,A.pluralRules=$}};return K.datetimeFormats=H,K.numberFormats=V,K.rt=function(...e){const[t,n,a]=e;if(a&&!h(a))throw Error(We.INVALID_ARGUMENT);return Y(t,n,u({resolvedMessage:!0},a||{}))},K.te=function(e,t){return G((()=>{if(!e)return!1;const n=q(d(t)?t:f.value),a=A.messageResolver(n,e);return W(a)||Te(a)||d(a)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),Ve,(e=>b(e)))},K.tm=function(e){const t=function(e){let t=null;const n=S(A,v.value,f.value);for(let a=0;a<n.length;a++){const r=E.value[n[a]]||{},l=A.messageResolver(r,e);if(null!=l){t=l;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},K.d=function(...e){return G((t=>Reflect.apply(ie,null,[t,...e])),(()=>ue(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>B),(e=>d(e)))},K.n=function(...e){return G((t=>Reflect.apply(fe,null,[t,...e])),(()=>pe(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>B),(e=>d(e)))},K.getDateTimeFormat=function(e){return k.value[e]||{}},K.setDateTimeFormat=function(e,t){k.value[e]=t,A.datetimeFormats=k.value,me(A,e,t)},K.mergeDateTimeFormat=function(e,t){k.value[e]=u(k.value[e]||{},t),A.datetimeFormats=k.value,me(A,e,t)},K.getNumberFormat=function(e){return F.value[e]||{}},K.setNumberFormat=function(e,t){F.value[e]=t,A.numberFormats=F.value,ge(A,e,t)},K.mergeNumberFormat=function(e,t){F.value[e]=u(F.value[e]||{},t),A.numberFormats=F.value,ge(A,e,t)},K[De]=r,K[we]=function(...e){return G((t=>{let n;const a=t;try{a.processor=z,n=Reflect.apply(Re,null,[a,...e])}finally{a.processor=null}return n}),(()=>Ne(...e)),"translate",(t=>t[we](...e)),(e=>[je(e)]),(e=>p(e)))},K[Me]=function(...e){return G((t=>Reflect.apply(ie,null,[t,...e])),(()=>ue(...e)),"datetime format",(t=>t[Me](...e)),He,(e=>d(e)||p(e)))},K[Ce]=function(...e){return G((t=>Reflect.apply(fe,null,[t,...e])),(()=>pe(...e)),"number format",(t=>t[Ce](...e)),He,(e=>d(e)||p(e)))},K}function Xe(e={}){const t=ze(function(e){const t=d(e.locale)?e.locale:J,n=d(e.fallbackLocale)||p(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,a=g(e.missing)?e.missing:void 0,r=!b(e.silentTranslationWarn)&&!i(e.silentTranslationWarn)||!e.silentTranslationWarn,l=!b(e.silentFallbackWarn)&&!i(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!b(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,c=y(e.modifiers)?e.modifiers:{},m=e.pluralizationRules,f=g(e.postTranslation)?e.postTranslation:void 0,_=!d(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,h=!!e.escapeParameterHtml,v=!b(e.sync)||e.sync;let E=e.messages;if(y(e.sharedMessages)){const t=e.sharedMessages;E=Object.keys(t).reduce(((e,n)=>{const a=e[n]||(e[n]={});return u(a,t[n]),e}),E||{})}const{__i18n:k,__root:F,__injectWithOption:T}=e,R=e.datetimeFormats,L=e.numberFormats;return{locale:t,fallbackLocale:n,messages:E,flatJson:e.flatJson,datetimeFormats:R,numberFormats:L,missing:a,missingWarn:r,fallbackWarn:l,fallbackRoot:o,fallbackFormat:s,modifiers:c,pluralRules:m,postTranslation:f,warnHtmlMessage:_,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:v,__i18n:k,__root:F,__injectWithOption:T}}(e)),{__extender:n}=e,a={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 b(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=b(e)?!e:e},get silentFallbackWarn(){return b(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=b(e)?!e: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]),tc(...e){const[n,a,r]=e,l={plural:1};let s=null,i=null;if(!d(n))throw Error(We.INVALID_ARGUMENT);const c=n;return d(a)?l.locale=a:o(a)?l.plural=a:p(a)?s=a:y(a)&&(i=a),d(r)?l.locale=r:p(r)?s=r:y(r)&&(i=r),Reflect.apply(t.t,t,[c,s||i||{},l])},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 a.__extender=n,a}function Je(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[Pe](t.pluralizationRules||e.pluralizationRules);const n=$e(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 Be={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function qe(){return t.Fragment}const Ke=t.defineComponent({name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},Be),setup(e,n){const{slots:a,attrs:r}=n,l=e.i18n||it({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(a).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=d(e.plural)?+e.plural:e.plural);const i=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 a=e[n];return a&&(t[n]=a()),t}),{})}(n,o),c=l[we](e.keypath,i,s),m=u({},r),f=d(e.tag)||h(e.tag)?e.tag:qe();return t.h(f,m,c)}}}),Ze=Ke;function Qe(e,n,a,r){const{slots:l,attrs:o}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),d(e.format)?n.key=e.format:h(e.format)&&(d(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>a.includes(n)?u({},t,{[n]:e.format[n]}):t),{}));const i=r(e.value,n,s);let c=[n.key];p(i)?c=i.map(((e,t)=>{const n=l[e.type],a=n?n({[e.type]:e.value,index:t,parts:i}):[e.value];var r;return p(r=a)&&!d(r[0])&&(a[0].key=`${e.type}-${t}`),a})):d(i)&&(c=[i]);const m=u({},o),f=d(e.tag)||h(e.tag)?e.tag:qe();return t.h(f,m,c)}}const et=t.defineComponent({name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Be),setup(e,t){const n=e.i18n||it({useScope:e.scope,__useComponent:!0});return Qe(e,t,_e,((...e)=>n[Ce](...e)))}}),tt=et,nt=t.defineComponent({name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Be),setup(e,t){const n=e.i18n||it({useScope:e.scope,__useComponent:!0});return Qe(e,t,ce,((...e)=>n[Me](...e)))}}),at=nt;function rt(e){const a=t=>{const{instance:n,value:a}=t;if(!n||!n.$)throw Error(We.UNEXPECTED_ERROR);const r=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const a=n.__getInstance(t);return null!=a?a.__composer:e.global.__composer}}(e,n.$),l=lt(a);return[Reflect.apply(r.t,r,[...ot(l)]),r]};return{created:(r,l)=>{const[o,s]=a(l);n&&e.global===s&&(r.__i18nWatcher=t.watch(s.locale,(()=>{l.instance&&l.instance.$forceUpdate()}))),r.__composer=s,r.textContent=o},unmounted:e=>{n&&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,a=lt(t);e.textContent=Reflect.apply(n.t,n,[...ot(a)])}},getSSRProps:e=>{const[t]=a(e);return{textContent:t}}}}function lt(e){if(d(e))return{path:e};if(y(e)){if(!("path"in e))throw Error(We.REQUIRED_VALUE,"path");return e}throw Error(We.INVALID_VALUE)}function ot(e){const{path:t,locale:n,args:a,choice:r,plural:l}=e,s={},i=a||{};return d(n)&&(s.locale=n),o(r)&&(s.plural=r),o(l)&&(s.plural=l),[t,i,s]}const st=a("global-vue-i18n");function it(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(We.MUST_BE_CALL_SETUP_TOP);if(!n.isCE&&null!=n.appContext.app&&!n.appContext.app.__VUE_I18N_SYMBOL__)throw Error(We.NOT_INSTALLED);const a=function(e){const n=t.inject(e.isCE?st:e.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Error(e.isCE?We.NOT_INSTALLED_WITH_PROVIDE:We.UNEXPECTED_ERROR);return n}(n),r=function(e){return"composition"===e.mode?e.global:e.global.__composer}(a),l=Ue(n),o=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("global"===o)return xe(r,e,l),r;if("parent"===o){let t=function(e,t,n=!1){let a=null;const r=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)a=t.__getInstance(l);else{const e=t.__getInstance(l);null!=e&&(a=e.__composer,n&&a&&!a[De]&&(a=null))}if(null!=a)break;if(r===l)break;l=l.parent}return a}(a,n,e.__useComponent);return null==t&&(t=r),t}const s=a;let i=s.__getInstance(n);if(null==i){const a=u({},e);"__i18n"in l&&(a.__i18n=l.__i18n),r&&(a.__root=r),i=ze(a),s.__composerExtend&&(i[Se]=s.__composerExtend(i)),function(e,n,a){t.onMounted((()=>{}),n),t.onUnmounted((()=>{const t=a;e.__deleteInstance(n);const r=t[Se];r&&(r(),delete t[Se])}),n)}(s,n,i),s.__setInstance(n,i)}return i}const ct=["locale","fallbackLocale","availableLocales"],ut=["t","rt","d","n","tm","te"];return K=function(e,t){{const t=e.cacheKey;if(t){const n=O[t];return n||(O[t]=L(e))}return L(e)}},Z=function(e,t){if(!h(e))return null;let n=G.get(t);if(n||(n=function(e){const t=[];let n,a,r,l,o,s,i,c=-1,u=0,m=0;const f=[];function _(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===a?a=r:a+=r},f[1]=()=>{void 0!==a&&(t.push(a),a=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===a)return!1;if(a=V(a),!1===a)return!1;f[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!_()){if(l=H(n),i=x[u],o=i[l]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&G.set(t,n)),!n)return null;const a=n.length;let r=e,l=0;for(;l<a;){const e=r[n[l]];if(void 0===e)return null;if(g(r))return null;r=e,l++}return r},Q=S,e.DatetimeFormat=nt,e.I18nD=at,e.I18nInjectionKey=st,e.I18nN=tt,e.I18nT=Ze,e.NumberFormat=et,e.Translation=Ke,e.VERSION=Oe,e.createI18n=function(e={},n){const r=!b(e.legacy)||e.legacy,l=!b(e.globalInjection)||e.globalInjection,o=new Map,[s,i]=function(e,n,a){const r=t.effectScope(),l=n?r.run((()=>Xe(e))):r.run((()=>ze(e)));if(null==l)throw Error(We.UNEXPECTED_ERROR);return[r,l]}(e,r),c=a(""),u={get mode(){return r?"legacy":"composition"},async install(e,...n){if(e.__VUE_I18N_SYMBOL__=c,e.provide(e.__VUE_I18N_SYMBOL__,u),y(n[0])){const e=n[0];u.__composerExtend=e.__composerExtend,u.__vueI18nExtend=e.__vueI18nExtend}let a=null;!r&&l&&(a=function(e,n){const a=Object.create(null);ct.forEach((e=>{const r=Object.getOwnPropertyDescriptor(n,e);if(!r)throw Error(We.UNEXPECTED_ERROR);const l=t.isRef(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(a,e,l)})),e.config.globalProperties.$i18n=a,ut.forEach((t=>{const a=Object.getOwnPropertyDescriptor(n,t);if(!a||!a.value)throw Error(We.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${t}`,a)}));const r=()=>{delete e.config.globalProperties.$i18n,ut.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return r}(e,u.global)),function(e,t,...n){const a=y(n[0])?n[0]:{};(!b(a.globalInstall)||a.globalInstall)&&([Ke.name,"I18nT"].forEach((t=>e.component(t,Ke))),[et.name,"I18nN"].forEach((t=>e.component(t,et))),[nt.name,"I18nD"].forEach((t=>e.component(t,nt)))),e.directive("t",rt(t))}(e,u,...n),r&&e.mixin(function(e,n,a){return{beforeCreate(){const r=t.getCurrentInstance();if(!r)throw Error(We.UNEXPECTED_ERROR);const l=this.$options;if(l.i18n){const t=l.i18n;if(l.__i18n&&(t.__i18n=l.__i18n),t.__root=n,this===this.$root)this.$i18n=Je(e,t);else{t.__injectWithOption=!0,t.__extender=a.__vueI18nExtend,this.$i18n=Xe(t);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(l.__i18n)if(this===this.$root)this.$i18n=Je(e,l);else{this.$i18n=Xe({__i18n:l.__i18n,__injectWithOption:!0,__extender:a.__vueI18nExtend,__root:n});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;l.__i18nGlobal&&xe(n,l,l),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...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),a.__setInstance(r,this.$i18n)},mounted(){},unmounted(){const e=t.getCurrentInstance();if(!e)throw Error(We.UNEXPECTED_ERROR);const n=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__disposer&&(n.__disposer(),delete n.__disposer,delete n.__extender),a.__deleteInstance(e),delete this.$i18n}}}(i,i.__composer,u));const o=e.unmount;e.unmount=()=>{a&&a(),u.dispose(),o()}},get global(){return i},dispose(){s.stop()},__instances:o,__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,t){o.set(e,t)},__deleteInstance:function(e){o.delete(e)}};return u},e.useI18n=it,e.vTDirective=rt,e}({},Vue); |
{ | ||
"name": "vue-i18n", | ||
"version": "10.0.1", | ||
"version": "10.0.2", | ||
"description": "Internationalization plugin for Vue.js", | ||
@@ -39,7 +39,7 @@ "keywords": [ | ||
"@vue/devtools-api": "^6.5.0", | ||
"@intlify/core-base": "10.0.1", | ||
"@intlify/shared": "10.0.1" | ||
"@intlify/core-base": "10.0.2", | ||
"@intlify/shared": "10.0.2" | ||
}, | ||
"devDependencies": { | ||
"@intlify/devtools-types": "10.0.1" | ||
"@intlify/devtools-types": "10.0.2" | ||
}, | ||
@@ -46,0 +46,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1539870
38187
+ Added@intlify/core-base@10.0.2(transitive)
+ Added@intlify/message-compiler@10.0.2(transitive)
+ Added@intlify/shared@10.0.2(transitive)
- Removed@intlify/core-base@10.0.1(transitive)
- Removed@intlify/message-compiler@10.0.1(transitive)
- Removed@intlify/shared@10.0.1(transitive)
Updated@intlify/core-base@10.0.2
Updated@intlify/shared@10.0.2