Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-i18n-bridge

Package Overview
Dependencies
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-i18n-bridge - npm Package Compare versions

Comparing version 9.2.0-beta.40 to 9.2.0

4

dist/vue-i18n-bridge.esm-browser.prod.js
/*!
* vue-i18n-bridge v9.2.0-beta.40
* vue-i18n-bridge v9.2.0
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
import{ref as e,computed as t,watch as n,getCurrentInstance as r,h as a,effectScope as o,onBeforeMount as l,onUnmounted as s,shallowRef as c}from"vue-demi";const i="undefined"!=typeof window,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,f=e=>u?Symbol(e):e,m=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),p=e=>"number"==typeof e&&isFinite(e),d=e=>"[object RegExp]"===I(e),_=e=>F(e)&&0===Object.keys(e).length;function g(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const v=Object.assign;function b(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const h=Object.prototype.hasOwnProperty;function k(e,t){return h.call(e,t)}const y=Array.isArray,L=e=>"function"==typeof e,T=e=>"string"==typeof e,E=e=>"boolean"==typeof e,N=e=>null!==e&&"object"==typeof e,O=Object.prototype.toString,I=e=>O.call(e),F=e=>"[object Object]"===I(e),C=15;function P(e){throw e}function R(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const w=String.fromCharCode(8232),W=String.fromCharCode(8233);function S(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>"\r"===t[e]&&"\n"===t[e+1],s=e=>t[e]===W,c=e=>t[e]===w,i=e=>l(e)||(e=>"\n"===t[e])(e)||s(e)||c(e),u=e=>l(e)||s(e)||c(e)?"\n":t[e];function f(){return o=0,i(n)&&(r++,a=0),l(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 l(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 M=void 0;function x(e,t={}){const n=!1!==t.location,r=S(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},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,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=R(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function d(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function _(e){const t=d(e);return e.skipToPeek(),t}function g(e){if(e===M)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===M)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function h(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!a)||!(" "===r||"\n"===r):" "===o?(e.peek(),n(!0," ",a)):"\n"!==o||(e.peek(),n(!0,"\n",a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===M?M:t(n)?(e.next(),n):null}function y(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function L(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function E(e){let t="",n="";for(;t=L(e);)n+=t;return n}function N(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!h(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(h(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function O(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return I(e,t,4);case"U":return I(e,t,6);default:return o(),""}}function I(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=T(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function F(e){_(e);const t=p(e,"|");return _(e),t}function C(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=P(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,l=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,F(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,w(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){_(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===M&&o(),n}(e)),_(e),n;if(a=v(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${E(e)}`):t+=E(e),e.currentChar()===M&&o(),t}(e)),_(e),n;if(l=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){_(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=k(e,r);)n+="\\"===t?O(e):t;const a=e.currentChar();return"\n"===a||a===M?(o(),"\n"===a&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!l)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=k(e,r);)n+=t;return n}(e)),o(),n.value,_(e),n}return n}function P(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==a&&" "!==a||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),f(t,9,".");case":":return _(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,F(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),P(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),f(t,12,function(e){let t="",n="";for(;t=y(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?g(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(_(e),"{"===a?C(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?" "===a?r:"\n"===a?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,w(e,t))}}function w(e,t){let n={type:14};if(t.braceNest>0)return C(e,t)||m(t);if(t.inLinked)return P(e,t)||m(t);switch(e.currentChar()){case"{":return C(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return P(e,t)||m(t);default:if(b(e))return n=f(t,1,F(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=d(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?f(t,0,N(e)):f(t,4,function(e){_(e);return"%"!==e.currentChar()&&o(),e.next(),"%"}(e));if(h(e))return f(t,0,N(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:l}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=l,c.offset=a(),c.startLoc=o(),r.currentChar()===M?f(c,14):w(r,c)},currentOffset:a,currentPosition:o,context:i}}const A=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function D(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 $(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&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 l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(5,o,l);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(4,o,l);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(9,o,l);return s.value=t.replace(A,D),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(8,o,l);return 12!==t.type?(n.lastStartLoc,s.value="",a(s,o,l),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,U(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(t.lastStartLoc,U(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,U(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 5:null==o.value&&(t.lastStartLoc,U(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,U(o)),n.key=l(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,U(o)),n.key=c(e,o.value||"");break;default:t.lastStartLoc;const i=e.context(),u=r(7,i.offset,i.startLoc);return u.value="",a(u,i.offset,i.startLoc),n.key=u,a(n,i.offset,i.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&&(t.lastStartLoc,U(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,U(r)),n.items.push(l(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,U(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,U(r)),n.items.push(c(e,r.value||""));break;case 8:const a=i(e);n.items.push(a.node),u=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e){const t=e.context(),{offset:n,startLoc:o}=t,l=u(e);return 14===t.currentType?l:function(e,t,n,o){const l=e.context();let s=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=u(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==l.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,l)}return{parse:function(n){const o=x(n,v({},e)),l=o.context(),s=r(0,l.offset,l.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=f(o),14!==l.currentType&&(l.lastStartLoc,n[l.offset]),a(s,o.currentOffset(),o.currentPosition()),s}}}function U(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function j(e,t){for(let n=0;n<e.length;n++)V(e[n],t)}function V(e,t){switch(e.type){case 1:j(e.cases,t),t.helper("plural");break;case 2:j(e.items,t);break;case 6:V(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 H(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&&V(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function G(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?G(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&&(G(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 n=0;n<a&&(G(e,t.items[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),G(e,t.key),t.modifier?(e.push(", "),G(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)}}function B(e,t={}){const n=v({},t),r=$(n).parse(e);return H(r,n),((e,t={})=>{const n=T(t.mode)?t.mode:"normal",r=T(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",l=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,l={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function s(e,t){l.code+=e}function c(e,t=!0){const n=t?a:"";s(o?n+" ".repeat(e):n)}return{context:()=>l,push:s,indent:function(e=!0){const t=++l.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&c(t)},newline:function(){c(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:l});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),G(c,e),c.deindent(l),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const J=[];J[0]={w:[0],i:[3,0],"[":[4],o:[7]},J[1]={w:[1],".":[2],"[":[4],o:[7]},J[2]={w:[2],i:[3,0],0:[3,0]},J[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},J[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},J[5]={"'":[4,0],o:8,l:[5,0]},J[6]={'"':[4,0],o:8,l:[6,0]};const Y=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function z(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 X(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Y.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 q=new Map;function Z(e,t){return N(e)?e[t]:null}const K=e=>e,Q=e=>"",ee=e=>0===e.length?"":e.join(""),te=e=>null==e?"":y(e)||F(e)&&e.toString===O?JSON.stringify(e,null,2):String(e);function ne(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function re(e={}){const t=e.locale,n=function(e){const t=p(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(p(e.named.count)||p(e.named.n))?p(e.named.count)?e.named.count:p(e.named.n)?e.named.n:t:t}(e),r=N(e.pluralRules)&&T(t)&&L(e.pluralRules[t])?e.pluralRules[t]:ne,a=N(e.pluralRules)&&T(t)&&L(e.pluralRules[t])?ne:void 0,o=e.list||[],l=e.named||{};p(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,l);function s(t){const n=L(e.messages)?e.messages(t):!!N(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):Q)}const c=F(e.processor)&&L(e.processor.normalize)?e.processor.normalize:ee,i=F(e.processor)&&L(e.processor.interpolate)?e.processor.interpolate:te,u={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",l="";1===n.length?N(r)?(l=r.modifier||l,o=r.type||o):T(r)&&(l=r||l):2===n.length&&(T(r)&&(l=r||l),T(a)&&(o=a||o));let c=s(t)(u);return"vnode"===o&&y(c)&&l&&(c=c[0]),l?(i=l,e.modifiers?e.modifiers[i]:K)(c,o):c;var i},message:s,type:F(e.processor)&&T(e.processor.type)?e.processor.type:"text",interpolate:i,normalize:c};return u}function ae(e,t,n){return[...new Set([n,...y(t)?t:N(t)?Object.keys(t):T(t)?[t]:[n]])]}function oe(e,t,n){const r=T(n)?n:ie,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;y(e);)e=le(o,e,t);const l=y(t)||!F(t)?t:t.default?t.default:null;e=T(l)?[l]:l,y(e)&&le(o,e,!1),a.__localeChainCache.set(r,o)}return o}function le(e,t,n){let r=!0;for(let a=0;a<t.length&&E(r);a++){const o=t[a];T(o)&&(r=se(e,t[a],n))}return r}function se(e,t,n){let r;const a=t.split("-");do{r=ce(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function ce(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),(y(n)||F(n))&&n[a]&&(r=n[a])}return r}const ie="en-US",ue=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let fe,me,pe;let de=0;function _e(e={}){const t=T(e.version)?e.version:"9.2.0-beta.40",n=T(e.locale)?e.locale:ie,r=y(e.fallbackLocale)||F(e.fallbackLocale)||T(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=F(e.messages)?e.messages:{[n]:{}},o=F(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=F(e.numberFormats)?e.numberFormats:{[n]:{}},s=v({},e.modifiers||{},{upper:(e,t)=>"text"===t&&T(e)?e.toUpperCase():"vnode"===t&&N(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&T(e)?e.toLowerCase():"vnode"===t&&N(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&T(e)?ue(e):"vnode"===t&&N(e)&&"__v_isVNode"in e?ue(e.children):e}),c=e.pluralRules||{},i=L(e.missing)?e.missing:null,u=!E(e.missingWarn)&&!d(e.missingWarn)||e.missingWarn,f=!E(e.fallbackWarn)&&!d(e.fallbackWarn)||e.fallbackWarn,m=!!e.fallbackFormat,p=!!e.unresolving,_=L(e.postTranslation)?e.postTranslation:null,b=F(e.processor)?e.processor:null,h=!E(e.warnHtmlMessage)||e.warnHtmlMessage,k=!!e.escapeParameter,O=L(e.messageCompiler)?e.messageCompiler:fe,I=L(e.messageResolver)?e.messageResolver:me||Z,C=L(e.localeFallbacker)?e.localeFallbacker:pe||ae,P=N(e.fallbackContext)?e.fallbackContext:void 0,R=L(e.onWarn)?e.onWarn:g,w=e,W=N(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,S=N(w.__numberFormatters)?w.__numberFormatters:new Map,M=N(w.__meta)?w.__meta:{};de++;const x={version:t,cid:de,locale:n,fallbackLocale:r,messages:a,modifiers:s,pluralRules:c,missing:i,missingWarn:u,fallbackWarn:f,fallbackFormat:m,unresolving:p,postTranslation:_,processor:b,warnHtmlMessage:h,escapeParameter:k,messageCompiler:O,messageResolver:I,localeFallbacker:C,fallbackContext:P,onWarn:R,__meta:M};return x.datetimeFormats=o,x.numberFormats=l,x.__datetimeFormatters=W,x.__numberFormatters=S,x}function ge(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return T(r)?r:t}return t}function ve(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const be=e=>e;let he=Object.create(null);let ke=C;const ye=()=>++ke,Le={INVALID_ARGUMENT:ke,INVALID_DATE_ARGUMENT:ye(),INVALID_ISO_DATE_ARGUMENT:ye(),__EXTEND_POINT__:ye()},Te=()=>"",Ee=e=>L(e);function Ne(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:l,messages:s}=e,[c,i]=Fe(...t),u=E(i.missingWarn)?i.missingWarn:e.missingWarn,f=E(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,m=E(i.escapeParameter)?i.escapeParameter:e.escapeParameter,d=!!i.resolvedMessage,_=T(i.default)||E(i.default)?E(i.default)?o?c:()=>c:i.default:n?o?c:()=>c:"",g=n||""!==_,v=T(i.locale)?i.locale:e.locale;m&&function(e){y(e.list)?e.list=e.list.map((e=>T(e)?b(e):e)):N(e.named)&&Object.keys(e.named).forEach((t=>{T(e.named[t])&&(e.named[t]=b(e.named[t]))}))}(i);let[h,k,L]=d?[c,v,s[v]||{}]:Oe(e,c,v,l,f,u),O=h,I=c;if(d||T(O)||Ee(O)||g&&(O=_,I=O),!(d||(T(O)||Ee(O))&&T(k)))return a?-1:c;let F=!1;const C=Ee(O)?O:Ie(e,c,k,O,I,(()=>{F=!0}));if(F)return O;const P=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:l,fallbackLocale:s,fallbackWarn:c,missingWarn:i,fallbackContext:u}=e,f=r=>{let a=l(n,r);if(null==a&&u){const[,,e]=Oe(u,r,t,s,c,i);a=l(e,r)}if(T(a)){let n=!1;const o=Ie(e,r,t,a,r,(()=>{n=!0}));return n?Te:o}return Ee(a)?a:Te},m={locale:t,modifiers:a,pluralRules:o,messages:f};e.processor&&(m.processor=e.processor);r.list&&(m.list=r.list);r.named&&(m.named=r.named);p(r.plural)&&(m.pluralIndex=r.plural);return m}(e,k,L,i),R=function(e,t,n){return t(n)}(0,C,re(P));return r?r(R,c):R}function Oe(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;for(let n=0;n<u.length&&(f=u[n],m=l[f]||{},null===(p=c(m,t))&&(p=m[t]),!T(p)&&!L(p));n++){const n=ge(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,m]}function Ie(e,t,n,r,a,o){const{messageCompiler:l,warnHtmlMessage:s}=e;if(Ee(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 c=l(r,function(e,t,n,r,a,o){return{warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>m({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,s,o));return c.locale=n,c.key=t,c.source=r,c}function Fe(...e){const[t,n,r]=e,a={};if(!T(t)&&!p(t)&&!Ee(t))throw Error(Le.INVALID_ARGUMENT);const o=p(t)?String(t):(Ee(t),t);return p(n)?a.plural=n:T(n)?a.default=n:F(n)&&!_(n)?a.named=n:y(n)&&(a.list=n),p(r)?a.plural=r:T(r)?a.default=r:F(r)&&v(a,r),[o,a]}function Ce(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:s}=e,[c,i,u,f]=Re(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,p=T(u.locale)?u.locale:e.locale,d=l(e,a,p);if(!T(c)||""===c)return new Intl.DateTimeFormat(p,f).format(i);let g,b={},h=null;for(let t=0;t<d.length&&(g=d[t],b=n[g]||{},h=b[c],!F(h));t++)ge(e,c,g,0,"datetime format");if(!F(h)||!T(g))return r?-1:c;let k=`${g}__${c}`;_(f)||(k=`${k}__${JSON.stringify(f)}`);let y=s.get(k);return y||(y=new Intl.DateTimeFormat(g,v({},h,f)),s.set(k,y)),m?y.formatToParts(i):y.format(i)}const Pe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Re(...e){const[t,n,r,a]=e,o={};let l,s={};if(T(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Le.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();l=new Date(n);try{l.toISOString()}catch(e){throw Error(Le.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===I(t)){if(isNaN(t.getTime()))throw Error(Le.INVALID_DATE_ARGUMENT);l=t}else{if(!p(t))throw Error(Le.INVALID_ARGUMENT);l=t}return T(n)?o.key=n:F(n)&&Object.keys(n).forEach((e=>{Pe.includes(e)?s[e]=n[e]:o[e]=n[e]})),T(r)?o.locale=r:F(r)&&(s=r),F(a)&&(s=a),[o.key||"",l,o,s]}function we(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function We(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:s}=e,[c,i,u,f]=Me(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,p=T(u.locale)?u.locale:e.locale,d=l(e,a,p);if(!T(c)||""===c)return new Intl.NumberFormat(p,f).format(i);let g,b={},h=null;for(let t=0;t<d.length&&(g=d[t],b=n[g]||{},h=b[c],!F(h));t++)ge(e,c,g,0,"number format");if(!F(h)||!T(g))return r?-1:c;let k=`${g}__${c}`;_(f)||(k=`${k}__${JSON.stringify(f)}`);let y=s.get(k);return y||(y=new Intl.NumberFormat(g,v({},h,f)),s.set(k,y)),m?y.formatToParts(i):y.format(i)}const Se=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Me(...e){const[t,n,r,a]=e,o={};let l={};if(!p(t))throw Error(Le.INVALID_ARGUMENT);const s=t;return T(n)?o.key=n:F(n)&&Object.keys(n).forEach((e=>{Se.includes(e)?l[e]=n[e]:o[e]=n[e]})),T(r)?o.locale=r:F(r)&&(l=r),F(a)&&(l=a),[o.key||"",s,o,l]}function xe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const Ae="9.2.0-beta.40";let De=C;const $e=()=>++De,Ue={UNEXPECTED_RETURN_TYPE:De,INVALID_ARGUMENT:$e(),MUST_BE_CALL_SETUP_TOP:$e(),NOT_INSLALLED:$e(),NOT_AVAILABLE_IN_LEGACY_MODE:$e(),REQUIRED_VALUE:$e(),INVALID_VALUE:$e(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:$e(),NOT_INSLALLED_WITH_PROVIDE:$e(),UNEXPECTED_ERROR:$e(),NOT_COMPATIBLE_LEGACY_VUE_I18N:$e(),BRIDGE_SUPPORT_VUE_2_ONLY:$e(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:$e(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:$e(),__EXTEND_POINT__:$e()},je=f("__transrateVNode"),Ve=f("__datetimeParts"),He=f("__numberParts"),Ge=f("__setPluralRules"),Be=f("__legacyVueI18n"),Je=f("__injectWithOption");function Ye(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function ze(e){if(!N(e))return e;for(const t in e)if(k(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],N(a[n[r]])&&ze(a[n[r]])}else N(e[t])&&ze(e[t]);return e}function Xe(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=F(n)?n:y(r)?{}:{[e]:{}};if(y(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(l[t]=l[t]||{},Ze(n,l[t])):Ze(n,l)}else T(e)&&Ze(JSON.parse(e),l)})),null==a&&o)for(const e in l)k(l,e)&&ze(l[e]);return l}const qe=e=>!N(e)||y(e);function Ze(e,t){if(qe(e)||qe(t))throw Error(Ue.INVALID_VALUE);for(const n in e)k(e,n)&&(qe(e[n])||qe(t[n])?t[n]=e[n]:Ze(e[n],t[n]))}function Ke(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}let Qe=0;function et(e){return(t,n,a,o)=>e(n,a,r()||void 0,o)}function tt(r={},a){const{__root:o}=r,l=void 0===o;let s=!E(r.inheritLocale)||r.inheritLocale;const c=e(o&&s?o.locale.value:T(r.locale)?r.locale:ie),u=e(o&&s?o.fallbackLocale.value:T(r.fallbackLocale)||y(r.fallbackLocale)||F(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:c.value),f=e(Xe(c.value,r)),m=e(F(r.datetimeFormats)?r.datetimeFormats:{[c.value]:{}}),_=e(F(r.numberFormats)?r.numberFormats:{[c.value]:{}});let g=o?o.missingWarn:!E(r.missingWarn)&&!d(r.missingWarn)||r.missingWarn,b=o?o.fallbackWarn:!E(r.fallbackWarn)&&!d(r.fallbackWarn)||r.fallbackWarn,h=o?o.fallbackRoot:!E(r.fallbackRoot)||r.fallbackRoot,k=!!r.fallbackFormat,O=L(r.missing)?r.missing:null,I=L(r.missing)?et(r.missing):null,C=L(r.postTranslation)?r.postTranslation:null,P=o?o.warnHtmlMessage:!E(r.warnHtmlMessage)||r.warnHtmlMessage,R=!!r.escapeParameter;const w=o?o.modifiers:F(r.modifiers)?r.modifiers:{};let W,S,M=r.pluralRules||o&&o.pluralRules;{Ye(a);const e={locale:c.value,fallbackLocale:u.value,messages:f.value,dateTimeFormats:m.value,numberFormats:_.value,modifiers:w,missing:O,fallbackRoot:h,postTranslation:C,pluralizationRules:M,escapeParameterHtml:R,sync:s,silentFallbackWarn:E(b)?!b:b,silentTranslationWarn:E(g)?!g:g,formatFallbackMessages:E(k)?!k:k,warnHtmlInMessage:E(P)&&P?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};W=new a(e)}S=function(){const e={version:"9.2.0-beta.40",locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:w,pluralRules:M,missing:null===I?void 0:I,missingWarn:g,fallbackWarn:b,fallbackFormat:k,unresolving:!0,postTranslation:null===C?void 0:C,warnHtmlMessage:P,escapeParameter:R,messageResolver:r.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=m.value,e.numberFormats=_.value,e.__datetimeFormatters=F(S)?S.__datetimeFormatters:void 0,e.__numberFormatters=F(S)?S.__numberFormatters:void 0,_e(e)}(),ve(S,c.value,u.value);const x=t({get:()=>c.value,set:e=>{c.value=e,W&&!l&&(W.locale=e),S.locale=c.value}}),A=t({get:()=>u.value,set:e=>{u.value=e,W&&!l&&(W.fallbackLocale=e),S.fallbackLocale=u.value,ve(S,c.value,e)}}),D=t((()=>f.value)),$=t((()=>m.value)),U=t((()=>_.value));function j(e,t,n,r,a,l){let s;if(c.value,u.value,f.value,m.value,_.value,s=e(S),p(s)&&-1===s){const[e,n]=t();return o&&h?r(o):a(e)}if(l(s))return s;throw Error(Ue.UNEXPECTED_RETURN_TYPE)}function V(...e){return j((t=>Reflect.apply(Ne,null,[t,...e])),(()=>Fe(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>T(e)))}const H={normalize:function(e){return e.map((e=>T(e)||p(e)||E(e)?Ke(String(e)):e))},interpolate:e=>e,type:"vnode"};function G(e){return f.value[e]||{}}Qe++,o&&i&&(n(o.locale,(e=>{s&&(c.value=e,W&&!l&&(W.locale=e),S.locale=e,ve(S,c.value,u.value))})),n(o.fallbackLocale,(e=>{s&&(u.value=e,W&&!l&&(W.fallbackLocale=e),S.fallbackLocale=e,ve(S,c.value,u.value))})));const B={id:Qe,locale:x,fallbackLocale:A,get inheritLocale(){return s},set inheritLocale(e){s=e,W&&(W._sync=e),e&&o&&(c.value=o.locale.value,u.value=o.fallbackLocale.value,W&&(W.locale=o.locale.value,W.fallbackLocale=o.fallbackLocale.value),ve(S,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:D,get modifiers(){return w},get pluralRules(){return M||{}},get isGlobal(){return l},get missingWarn(){return g},set missingWarn(e){g=e,S.missingWarn=g},get fallbackWarn(){return b},set fallbackWarn(e){b=e,S.fallbackWarn=b},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return k},set fallbackFormat(e){k=e,S.fallbackFormat=k},get warnHtmlMessage(){return P},set warnHtmlMessage(e){P=e,S.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,S.escapeParameter=e},t:V,getLocaleMessage:G,setLocaleMessage:function(e,t){f.value[e]=t,W&&W.setLocaleMessage(e,t),S.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},W&&W.mergeLocaleMessage(e,t),Ze(t,f.value[e]),S.messages=f.value},getPostTranslationHandler:function(){return L(C)?C:null},setPostTranslationHandler:function(e){C=e,S.postTranslation=e},getMissingHandler:function(){return O},setMissingHandler:function(e){null!==e&&(I=et(e)),O=e,S.missing=I},[Ge]:function(e){M=e,S.pluralRules=M}};return B.datetimeFormats=$,B.numberFormats=U,B.rt=function(...e){const[t,n,r]=e;if(r&&!N(r))throw Error(Ue.INVALID_ARGUMENT);return V(t,n,v({resolvedMessage:!0},r||{}))},B.te=function(e,t){const n=G(T(t)?t:c.value);return null!==S.messageResolver(n,e)},B.tm=function(e){const t=function(e){let t=null;const n=oe(S,u.value,c.value);for(let r=0;r<n.length;r++){const a=f.value[n[r]]||{},o=S.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:o&&o.tm(e)||{}},B.d=function(...e){return j((t=>Reflect.apply(Ce,null,[t,...e])),(()=>Re(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>T(e)))},B.n=function(...e){return j((t=>Reflect.apply(We,null,[t,...e])),(()=>Me(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>T(e)))},B.getDateTimeFormat=function(e){return m.value[e]||{}},B.setDateTimeFormat=function(e,t){m.value[e]=t,W&&W.setDateTimeFormat(e,t),S.datetimeFormats=m.value,we(S,e,t)},B.mergeDateTimeFormat=function(e,t){m.value[e]=v(m.value[e]||{},t),W&&W.mergeDateTimeFormat(e,t),S.datetimeFormats=m.value,we(S,e,t)},B.getNumberFormat=function(e){return _.value[e]||{}},B.setNumberFormat=function(e,t){_.value[e]=t,W&&W.setNumberFormat(e,t),S.numberFormats=_.value,xe(S,e,t)},B.mergeNumberFormat=function(e,t){_.value[e]=v(_.value[e]||{},t),W&&W.mergeNumberFormat(e,t),S.numberFormats=_.value,xe(S,e,t)},B[Je]=r.__injectWithOption,B[je]=function(...e){return j((t=>{let n;const r=t;try{r.processor=H,n=Reflect.apply(Ne,null,[r,...e])}finally{r.processor=null}return n}),(()=>Fe(...e)),0,(t=>t[je](...e)),(e=>[Ke(e)]),(e=>y(e)))},B[Ve]=function(...e){return j((t=>Reflect.apply(Ce,null,[t,...e])),(()=>Re(...e)),0,(t=>t[Ve](...e)),(()=>[]),(e=>T(e)||y(e)))},B[He]=function(...e){return j((t=>Reflect.apply(We,null,[t,...e])),(()=>Me(...e)),0,(t=>t[He](...e)),(()=>[]),(e=>T(e)||y(e)))},B[Be]=W,B}const nt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const rt={name:"i18n-t",props:v({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>p(e)||!isNaN(e)}},nt),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||ut({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=T(e.plural)?+e.plural:e.plural);const c=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...y(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,l),i=o[je](e.keypath,c,s),u=v({},r),f=T(e.tag)||N(e.tag)?e.tag:"span";return a(f,u,i)}}};function at(e,t,n,r){const{slots:o,attrs:l}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),T(e.format)?t.key=e.format:N(e.format)&&(T(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?v({},t,{[r]:e.format[r]}):t),{}));const c=r(e.value,t,s);let i=[t.key];y(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 y(a=r)&&!T(a[0])&&(r[0].key=`${e.type}-${t}`),r})):T(c)&&(i=[c]);const u=v({},l),f=T(e.tag)||N(e.tag)?e.tag:"span";return a(f,u,i)}}const ot={name:"i18n-n",props:v({value:{type:Number,required:!0},format:{type:[String,Object]}},nt),setup(e,t){const n=e.i18n||ut({useScope:"parent",__useComponent:!0});return at(e,t,Se,((...e)=>n[He](...e)))}},lt={name:"i18n-d",props:v({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},nt),setup(e,t){const n=e.i18n||ut({useScope:"parent",__useComponent:!0});return at(e,t,Pe,((...e)=>n[Ve](...e)))}};let st=null;const ct=f("global-vue-i18n");function it(e={},t){st=t;const n=!E(e.legacy)||e.legacy,r=!E(e.globalInjection)||e.globalInjection,a=!n||!!e.allowComposition,l=new Map,[s,c]=function(e,t,n){const r=o();{if(!Ye(n))throw Error(Ue.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=r.run((()=>tt(e,n)));if(null==t)throw Error(Ue.UNEXPECTED_ERROR);return[r,t]}}(e,0,t);f("");{const e=c[Be];let t=null;Object.defineProperty(e,"global",{get:()=>c}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>a}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(a,...o)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(Ue.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=F(t[0])?t[0]:{};(!E(n.globalInstall)||n.globalInstall)&&(e.component(rt.name,rt),e.component(ot.name,ot),e.component(lt.name,lt))}(a,...o),!n&&r&&(t=function(e,t,n){const r=t.watchLocale(n);return e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])},r}(a,e,c)),a.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ze(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(F(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ze(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&F(r)&&Ze(r,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||F(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,st))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const o={__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return Object.keys(o).forEach((t=>Object.defineProperty(e,t,{value:o[t]}))),e}}function ut(n={}){const a=r();if(null==a)throw Error(Ue.MUST_BE_CALL_SETUP_TOP);if(null==st)throw Error(Ue.NOT_INSLALLED);const o=function(e){{const t=e.proxy;if(null==t)throw Error(Ue.UNEXPECTED_ERROR);const n=t._i18nBridgeRoot;if(!n)throw Error(Ue.NOT_INSLALLED);return n}}(a),u=function(e){return e.global}(o),f=function(e){return e.proxy.$options}(a),m=function(e,t){return _(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(n,f);if("legacy"===o.mode&&!n.__useComponent){if(!o.allowComposition)throw Error(Ue.NOT_AVAILABLE_IN_LEGACY_MODE);return function(n,r,a,o={}){const s="local"===r,i=c(null);if(s&&n.proxy&&!n.proxy.$options.i18n&&!n.proxy.$options.__i18n)throw Error(Ue.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=!E(o.inheritLocale)||o.inheritLocale,f=e(s&&u?a.locale.value:T(o.locale)?o.locale:ie),m=e(s&&u?a.fallbackLocale.value:T(o.fallbackLocale)||y(o.fallbackLocale)||F(o.fallbackLocale)||!1===o.fallbackLocale?o.fallbackLocale:f.value),p=e(Xe(f.value,o)),_=e(F(o.datetimeFormats)?o.datetimeFormats:{[f.value]:{}}),g=e(F(o.numberFormats)?o.numberFormats:{[f.value]:{}}),v=s?a.missingWarn:!E(o.missingWarn)&&!d(o.missingWarn)||o.missingWarn,b=s?a.fallbackWarn:!E(o.fallbackWarn)&&!d(o.fallbackWarn)||o.fallbackWarn,h=s?a.fallbackRoot:!E(o.fallbackRoot)||o.fallbackRoot,k=!!o.fallbackFormat,N=L(o.missing)?o.missing:null,O=L(o.postTranslation)?o.postTranslation:null,I=s?a.warnHtmlMessage:!E(o.warnHtmlMessage)||o.warnHtmlMessage,C=!!o.escapeParameter,P=s?a.modifiers:F(o.modifiers)?o.modifiers:{},R=o.pluralRules||s&&a.pluralRules;function w(){return[f.value,m.value,p.value,_.value,g.value]}const W=t({get:()=>i.value?i.value.locale.value:f.value,set:e=>{i.value&&(i.value.locale.value=e),f.value=e}}),S=t({get:()=>i.value?i.value.fallbackLocale.value:m.value,set:e=>{i.value&&(i.value.fallbackLocale.value=e),m.value=e}}),M=t((()=>i.value?i.value.messages.value:p.value)),x=t((()=>_.value)),A=t((()=>g.value));function D(){return i.value?i.value.getPostTranslationHandler():O}function $(e){i.value&&i.value.setPostTranslationHandler(e)}function U(){return i.value?i.value.getMissingHandler():N}function j(e){i.value&&i.value.setMissingHandler(e)}function V(e){return w(),e()}function H(...e){return i.value?V((()=>Reflect.apply(i.value.t,null,[...e]))):V((()=>""))}function G(...e){return i.value?Reflect.apply(i.value.rt,null,[...e]):""}function B(...e){return i.value?V((()=>Reflect.apply(i.value.d,null,[...e]))):V((()=>""))}function J(...e){return i.value?V((()=>Reflect.apply(i.value.n,null,[...e]))):V((()=>""))}function Y(e){return i.value?i.value.tm(e):{}}function z(e,t){return!!i.value&&i.value.te(e,t)}function X(e){return i.value?i.value.getLocaleMessage(e):{}}function q(e,t){i.value&&(i.value.setLocaleMessage(e,t),p.value[e]=t)}function Z(e,t){i.value&&i.value.mergeLocaleMessage(e,t)}function K(e){return i.value?i.value.getDateTimeFormat(e):{}}function Q(e,t){i.value&&(i.value.setDateTimeFormat(e,t),_.value[e]=t)}function ee(e,t){i.value&&i.value.mergeDateTimeFormat(e,t)}function te(e){return i.value?i.value.getNumberFormat(e):{}}function ne(e,t){i.value&&(i.value.setNumberFormat(e,t),g.value[e]=t)}function re(e,t){i.value&&i.value.mergeNumberFormat(e,t)}const ae={get id(){return i.value?i.value.id:-1},locale:W,fallbackLocale:S,messages:M,datetimeFormats:x,numberFormats:A,get inheritLocale(){return i.value?i.value.inheritLocale:u},set inheritLocale(e){i.value&&(i.value.inheritLocale=e)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(p.value)},get modifiers(){return i.value?i.value.modifiers:P},get pluralRules(){return i.value?i.value.pluralRules:R},get isGlobal(){return!!i.value&&i.value.isGlobal},get missingWarn(){return i.value?i.value.missingWarn:v},set missingWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackWarn(){return i.value?i.value.fallbackWarn:b},set fallbackWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackRoot(){return i.value?i.value.fallbackRoot:h},set fallbackRoot(e){i.value&&(i.value.fallbackRoot=e)},get fallbackFormat(){return i.value?i.value.fallbackFormat:k},set fallbackFormat(e){i.value&&(i.value.fallbackFormat=e)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:I},set warnHtmlMessage(e){i.value&&(i.value.warnHtmlMessage=e)},get escapeParameter(){return i.value?i.value.escapeParameter:C},set escapeParameter(e){i.value&&(i.value.escapeParameter=e)},t:H,getPostTranslationHandler:D,setPostTranslationHandler:$,getMissingHandler:U,setMissingHandler:j,rt:G,d:B,n:J,tm:Y,te:z,getLocaleMessage:X,setLocaleMessage:q,mergeLocaleMessage:Z,getDateTimeFormat:K,setDateTimeFormat:Q,mergeDateTimeFormat:ee,getNumberFormat:te,setNumberFormat:ne,mergeNumberFormat:re};function oe(e){e.locale.value=f.value,e.fallbackLocale.value=m.value,Object.keys(p.value).forEach((t=>{e.mergeLocaleMessage(t,p.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeDateTimeFormat(t,_.value[t])})),Object.keys(g.value).forEach((t=>{e.mergeNumberFormat(t,g.value[t])})),e.escapeParameter=C,e.fallbackFormat=k,e.fallbackRoot=h,e.fallbackWarn=b,e.missingWarn=v,e.warnHtmlMessage=I}return l((()=>{if(null==n.proxy||null==n.proxy.$i18n)throw Error(Ue.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const e=i.value=n.proxy.$i18n.__composer;"global"===r?(f.value=e.locale.value,m.value=e.fallbackLocale.value,p.value=e.messages.value,_.value=e.datetimeFormats.value,g.value=e.numberFormats.value):s&&oe(e)})),ae}(a,m,u,n)}if("global"===m)return function(e,t,n){let r=N(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Xe(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),N(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(N(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(u,n,f),u;if("parent"===m){let e=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;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[Je]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(o,a,n.__useComponent);return null==e&&(e=u),e}const p=o;let g=p.__getInstance(a);if(null==g){const e=v({},n);"__i18n"in f&&(e.__i18n=f.__i18n),u&&(e.__root=u),g=tt(e,st),function(e,t,n){{const r=t.proxy;if(null==r)throw Error(Ue.UNEXPECTED_ERROR);const a=n[Be];if(a===e)throw Error(Ue.UNEXPECTED_ERROR);r._i18n=a,r._i18n_bridge=!0,i&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let o=!1;l((()=>{r._i18n.subscribeDataChanging(r),o=!0})),s((()=>{o&&(r._i18n.unsubscribeDataChanging(r),o=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}))}}(p,a,g),p.__setInstance(a,g)}return g}const ft=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Ue.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};var mt;mt=function(e,t={}){{const n=(t.onCacheKey||be)(e),r=he[n];if(r)return r;let a=!1;const o=t.onError||P;t.onError=e=>{a=!0,o(e)};const{code:l}=B(e,t),s=new Function(`return ${l}`)();return a?s:he[n]=s}},fe=mt,me=function(e,t){if(!N(e))return null;let n=q.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,f=0;const m=[];function p(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=X(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=z(n),c=J[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&q.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;a=e,o++}return a},pe=oe;export{lt as DatetimeFormat,ct as I18nInjectionKey,ot as NumberFormat,rt as Translation,Ae as VERSION,ft as castToVueI18n,it as createI18n,ut as useI18n};
import{ref as e,computed as t,watch as n,getCurrentInstance as r,h as a,effectScope as o,onBeforeMount as l,onUnmounted as s,shallowRef as c}from"vue-demi";const i="undefined"!=typeof window,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,f=e=>u?Symbol(e):e,m=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),p=e=>"number"==typeof e&&isFinite(e),d=e=>"[object RegExp]"===I(e),_=e=>F(e)&&0===Object.keys(e).length;function g(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const v=Object.assign;function b(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const h=Object.prototype.hasOwnProperty;function k(e,t){return h.call(e,t)}const y=Array.isArray,L=e=>"function"==typeof e,T=e=>"string"==typeof e,E=e=>"boolean"==typeof e,N=e=>null!==e&&"object"==typeof e,O=Object.prototype.toString,I=e=>O.call(e),F=e=>"[object Object]"===I(e),C=15;function P(e){throw e}function R(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const w=String.fromCharCode(8232),W=String.fromCharCode(8233);function S(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>"\r"===t[e]&&"\n"===t[e+1],s=e=>t[e]===W,c=e=>t[e]===w,i=e=>l(e)||(e=>"\n"===t[e])(e)||s(e)||c(e),u=e=>l(e)||s(e)||c(e)?"\n":t[e];function f(){return o=0,i(n)&&(r++,a=0),l(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 l(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 M=void 0;function x(e,t={}){const n=!1!==t.location,r=S(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},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,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=R(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function d(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function _(e){const t=d(e);return e.skipToPeek(),t}function g(e){if(e===M)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===M)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function h(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!a)||!(" "===r||"\n"===r):" "===o?(e.peek(),n(!0," ",a)):"\n"!==o||(e.peek(),n(!0,"\n",a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===M?M:t(n)?(e.next(),n):null}function y(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function L(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function E(e){let t="",n="";for(;t=L(e);)n+=t;return n}function N(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!h(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(h(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function O(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return I(e,t,4);case"U":return I(e,t,6);default:return o(),""}}function I(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=T(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function F(e){_(e);const t=p(e,"|");return _(e),t}function C(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),_(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&_(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=P(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,l=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,F(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,w(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){_(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===M&&o(),n}(e)),_(e),n;if(a=v(e,t))return n=f(t,6,function(e){_(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${E(e)}`):t+=E(e),e.currentChar()===M&&o(),t}(e)),_(e),n;if(l=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){_(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&"\n"!==e;for(;t=k(e,r);)n+="\\"===t?O(e):t;const a=e.currentChar();return"\n"===a||a===M?(o(),"\n"===a&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),_(e),n;if(!r&&!a&&!l)return n=f(t,13,function(e){_(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=k(e,r);)n+=t;return n}(e)),o(),n.value,_(e),n}return n}function P(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==a&&" "!==a||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return _(e),e.next(),f(t,9,".");case":":return _(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,F(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(_(e),P(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=g(e.currentPeek());return e.resetPeek(),r}(e,t)?(_(e),f(t,12,function(e){let t="",n="";for(;t=y(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?g(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),r()):g(t))},a=r();return e.resetPeek(),a}(e,t)?(_(e),"{"===a?C(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?" "===a?r:"\n"===a?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,w(e,t))}}function w(e,t){let n={type:14};if(t.braceNest>0)return C(e,t)||m(t);if(t.inLinked)return P(e,t)||m(t);switch(e.currentChar()){case"{":return C(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return P(e,t)||m(t);default:if(b(e))return n=f(t,1,F(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=d(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?f(t,0,N(e)):f(t,4,function(e){_(e);return"%"!==e.currentChar()&&o(),e.next(),"%"}(e));if(h(e))return f(t,0,N(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:l}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=l,c.offset=a(),c.startLoc=o(),r.currentChar()===M?f(c,14):w(r,c)},currentOffset:a,currentPosition:o,context:i}}const A=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function D(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 $(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&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 l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(5,o,l);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(4,o,l);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(9,o,l);return s.value=t.replace(A,D),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(8,o,l);return 12!==t.type?(n.lastStartLoc,s.value="",a(s,o,l),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,U(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(t.lastStartLoc,U(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,U(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 5:null==o.value&&(t.lastStartLoc,U(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,U(o)),n.key=l(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,U(o)),n.key=c(e,o.value||"");break;default:t.lastStartLoc;const i=e.context(),u=r(7,i.offset,i.startLoc);return u.value="",a(u,i.offset,i.startLoc),n.key=u,a(n,i.offset,i.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&&(t.lastStartLoc,U(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,U(r)),n.items.push(l(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,U(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,U(r)),n.items.push(c(e,r.value||""));break;case 8:const a=i(e);n.items.push(a.node),u=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function f(e){const t=e.context(),{offset:n,startLoc:o}=t,l=u(e);return 14===t.currentType?l:function(e,t,n,o){const l=e.context();let s=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=u(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==l.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,l)}return{parse:function(n){const o=x(n,v({},e)),l=o.context(),s=r(0,l.offset,l.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=f(o),14!==l.currentType&&(l.lastStartLoc,n[l.offset]),a(s,o.currentOffset(),o.currentPosition()),s}}}function U(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function j(e,t){for(let n=0;n<e.length;n++)V(e[n],t)}function V(e,t){switch(e.type){case 1:j(e.cases,t),t.helper("plural");break;case 2:j(e.items,t);break;case 6:V(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 H(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&&V(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function G(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?G(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&&(G(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 n=0;n<a&&(G(e,t.items[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),G(e,t.key),t.modifier?(e.push(", "),G(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)}}function B(e,t={}){const n=v({},t),r=$(n).parse(e);return H(r,n),((e,t={})=>{const n=T(t.mode)?t.mode:"normal",r=T(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",l=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,l={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function s(e,t){l.code+=e}function c(e,t=!0){const n=t?a:"";s(o?n+" ".repeat(e):n)}return{context:()=>l,push:s,indent:function(e=!0){const t=++l.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&c(t)},newline:function(){c(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:l});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),G(c,e),c.deindent(l),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const J=[];J[0]={w:[0],i:[3,0],"[":[4],o:[7]},J[1]={w:[1],".":[2],"[":[4],o:[7]},J[2]={w:[2],i:[3,0],0:[3,0]},J[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},J[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},J[5]={"'":[4,0],o:8,l:[5,0]},J[6]={'"':[4,0],o:8,l:[6,0]};const Y=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function z(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 X(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Y.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 q=new Map;function Z(e,t){return N(e)?e[t]:null}const K=e=>e,Q=e=>"",ee=e=>0===e.length?"":e.join(""),te=e=>null==e?"":y(e)||F(e)&&e.toString===O?JSON.stringify(e,null,2):String(e);function ne(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function re(e={}){const t=e.locale,n=function(e){const t=p(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(p(e.named.count)||p(e.named.n))?p(e.named.count)?e.named.count:p(e.named.n)?e.named.n:t:t}(e),r=N(e.pluralRules)&&T(t)&&L(e.pluralRules[t])?e.pluralRules[t]:ne,a=N(e.pluralRules)&&T(t)&&L(e.pluralRules[t])?ne:void 0,o=e.list||[],l=e.named||{};p(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,l);function s(t){const n=L(e.messages)?e.messages(t):!!N(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):Q)}const c=F(e.processor)&&L(e.processor.normalize)?e.processor.normalize:ee,i=F(e.processor)&&L(e.processor.interpolate)?e.processor.interpolate:te,u={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",l="";1===n.length?N(r)?(l=r.modifier||l,o=r.type||o):T(r)&&(l=r||l):2===n.length&&(T(r)&&(l=r||l),T(a)&&(o=a||o));let c=s(t)(u);return"vnode"===o&&y(c)&&l&&(c=c[0]),l?(i=l,e.modifiers?e.modifiers[i]:K)(c,o):c;var i},message:s,type:F(e.processor)&&T(e.processor.type)?e.processor.type:"text",interpolate:i,normalize:c};return u}function ae(e,t,n){return[...new Set([n,...y(t)?t:N(t)?Object.keys(t):T(t)?[t]:[n]])]}function oe(e,t,n){const r=T(n)?n:ie,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;y(e);)e=le(o,e,t);const l=y(t)||!F(t)?t:t.default?t.default:null;e=T(l)?[l]:l,y(e)&&le(o,e,!1),a.__localeChainCache.set(r,o)}return o}function le(e,t,n){let r=!0;for(let a=0;a<t.length&&E(r);a++){const o=t[a];T(o)&&(r=se(e,t[a],n))}return r}function se(e,t,n){let r;const a=t.split("-");do{r=ce(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function ce(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),(y(n)||F(n))&&n[a]&&(r=n[a])}return r}const ie="en-US",ue=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let fe,me,pe;let de=0;function _e(e={}){const t=T(e.version)?e.version:"9.2.0",n=T(e.locale)?e.locale:ie,r=y(e.fallbackLocale)||F(e.fallbackLocale)||T(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=F(e.messages)?e.messages:{[n]:{}},o=F(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=F(e.numberFormats)?e.numberFormats:{[n]:{}},s=v({},e.modifiers||{},{upper:(e,t)=>"text"===t&&T(e)?e.toUpperCase():"vnode"===t&&N(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&T(e)?e.toLowerCase():"vnode"===t&&N(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&T(e)?ue(e):"vnode"===t&&N(e)&&"__v_isVNode"in e?ue(e.children):e}),c=e.pluralRules||{},i=L(e.missing)?e.missing:null,u=!E(e.missingWarn)&&!d(e.missingWarn)||e.missingWarn,f=!E(e.fallbackWarn)&&!d(e.fallbackWarn)||e.fallbackWarn,m=!!e.fallbackFormat,p=!!e.unresolving,_=L(e.postTranslation)?e.postTranslation:null,b=F(e.processor)?e.processor:null,h=!E(e.warnHtmlMessage)||e.warnHtmlMessage,k=!!e.escapeParameter,O=L(e.messageCompiler)?e.messageCompiler:fe,I=L(e.messageResolver)?e.messageResolver:me||Z,C=L(e.localeFallbacker)?e.localeFallbacker:pe||ae,P=N(e.fallbackContext)?e.fallbackContext:void 0,R=L(e.onWarn)?e.onWarn:g,w=e,W=N(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,S=N(w.__numberFormatters)?w.__numberFormatters:new Map,M=N(w.__meta)?w.__meta:{};de++;const x={version:t,cid:de,locale:n,fallbackLocale:r,messages:a,modifiers:s,pluralRules:c,missing:i,missingWarn:u,fallbackWarn:f,fallbackFormat:m,unresolving:p,postTranslation:_,processor:b,warnHtmlMessage:h,escapeParameter:k,messageCompiler:O,messageResolver:I,localeFallbacker:C,fallbackContext:P,onWarn:R,__meta:M};return x.datetimeFormats=o,x.numberFormats=l,x.__datetimeFormatters=W,x.__numberFormatters=S,x}function ge(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return T(r)?r:t}return t}function ve(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const be=e=>e;let he=Object.create(null);let ke=C;const ye=()=>++ke,Le={INVALID_ARGUMENT:ke,INVALID_DATE_ARGUMENT:ye(),INVALID_ISO_DATE_ARGUMENT:ye(),__EXTEND_POINT__:ye()},Te=()=>"",Ee=e=>L(e);function Ne(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:l,messages:s}=e,[c,i]=Fe(...t),u=E(i.missingWarn)?i.missingWarn:e.missingWarn,f=E(i.fallbackWarn)?i.fallbackWarn:e.fallbackWarn,m=E(i.escapeParameter)?i.escapeParameter:e.escapeParameter,d=!!i.resolvedMessage,_=T(i.default)||E(i.default)?E(i.default)?o?c:()=>c:i.default:n?o?c:()=>c:"",g=n||""!==_,v=T(i.locale)?i.locale:e.locale;m&&function(e){y(e.list)?e.list=e.list.map((e=>T(e)?b(e):e)):N(e.named)&&Object.keys(e.named).forEach((t=>{T(e.named[t])&&(e.named[t]=b(e.named[t]))}))}(i);let[h,k,L]=d?[c,v,s[v]||{}]:Oe(e,c,v,l,f,u),O=h,I=c;if(d||T(O)||Ee(O)||g&&(O=_,I=O),!(d||(T(O)||Ee(O))&&T(k)))return a?-1:c;let F=!1;const C=Ee(O)?O:Ie(e,c,k,O,I,(()=>{F=!0}));if(F)return O;const P=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:l,fallbackLocale:s,fallbackWarn:c,missingWarn:i,fallbackContext:u}=e,f=r=>{let a=l(n,r);if(null==a&&u){const[,,e]=Oe(u,r,t,s,c,i);a=l(e,r)}if(T(a)){let n=!1;const o=Ie(e,r,t,a,r,(()=>{n=!0}));return n?Te:o}return Ee(a)?a:Te},m={locale:t,modifiers:a,pluralRules:o,messages:f};e.processor&&(m.processor=e.processor);r.list&&(m.list=r.list);r.named&&(m.named=r.named);p(r.plural)&&(m.pluralIndex=r.plural);return m}(e,k,L,i),R=function(e,t,n){return t(n)}(0,C,re(P));return r?r(R,c):R}function Oe(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;for(let n=0;n<u.length&&(f=u[n],m=l[f]||{},null===(p=c(m,t))&&(p=m[t]),!T(p)&&!L(p));n++){const n=ge(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,m]}function Ie(e,t,n,r,a,o){const{messageCompiler:l,warnHtmlMessage:s}=e;if(Ee(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 c=l(r,function(e,t,n,r,a,o){return{warnHtmlMessage:a,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,n)=>m({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,s,o));return c.locale=n,c.key=t,c.source=r,c}function Fe(...e){const[t,n,r]=e,a={};if(!T(t)&&!p(t)&&!Ee(t))throw Error(Le.INVALID_ARGUMENT);const o=p(t)?String(t):(Ee(t),t);return p(n)?a.plural=n:T(n)?a.default=n:F(n)&&!_(n)?a.named=n:y(n)&&(a.list=n),p(r)?a.plural=r:T(r)?a.default=r:F(r)&&v(a,r),[o,a]}function Ce(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:s}=e,[c,i,u,f]=Re(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,p=T(u.locale)?u.locale:e.locale,d=l(e,a,p);if(!T(c)||""===c)return new Intl.DateTimeFormat(p,f).format(i);let g,b={},h=null;for(let t=0;t<d.length&&(g=d[t],b=n[g]||{},h=b[c],!F(h));t++)ge(e,c,g,0,"datetime format");if(!F(h)||!T(g))return r?-1:c;let k=`${g}__${c}`;_(f)||(k=`${k}__${JSON.stringify(f)}`);let y=s.get(k);return y||(y=new Intl.DateTimeFormat(g,v({},h,f)),s.set(k,y)),m?y.formatToParts(i):y.format(i)}const Pe=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Re(...e){const[t,n,r,a]=e,o={};let l,s={};if(T(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(Le.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();l=new Date(n);try{l.toISOString()}catch(e){throw Error(Le.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===I(t)){if(isNaN(t.getTime()))throw Error(Le.INVALID_DATE_ARGUMENT);l=t}else{if(!p(t))throw Error(Le.INVALID_ARGUMENT);l=t}return T(n)?o.key=n:F(n)&&Object.keys(n).forEach((e=>{Pe.includes(e)?s[e]=n[e]:o[e]=n[e]})),T(r)?o.locale=r:F(r)&&(s=r),F(a)&&(s=a),[o.key||"",l,o,s]}function we(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function We(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:s}=e,[c,i,u,f]=Me(...t);E(u.missingWarn)?u.missingWarn:e.missingWarn;E(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const m=!!u.part,p=T(u.locale)?u.locale:e.locale,d=l(e,a,p);if(!T(c)||""===c)return new Intl.NumberFormat(p,f).format(i);let g,b={},h=null;for(let t=0;t<d.length&&(g=d[t],b=n[g]||{},h=b[c],!F(h));t++)ge(e,c,g,0,"number format");if(!F(h)||!T(g))return r?-1:c;let k=`${g}__${c}`;_(f)||(k=`${k}__${JSON.stringify(f)}`);let y=s.get(k);return y||(y=new Intl.NumberFormat(g,v({},h,f)),s.set(k,y)),m?y.formatToParts(i):y.format(i)}const Se=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Me(...e){const[t,n,r,a]=e,o={};let l={};if(!p(t))throw Error(Le.INVALID_ARGUMENT);const s=t;return T(n)?o.key=n:F(n)&&Object.keys(n).forEach((e=>{Se.includes(e)?l[e]=n[e]:o[e]=n[e]})),T(r)?o.locale=r:F(r)&&(l=r),F(a)&&(l=a),[o.key||"",s,o,l]}function xe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const Ae="9.2.0";let De=C;const $e=()=>++De,Ue={UNEXPECTED_RETURN_TYPE:De,INVALID_ARGUMENT:$e(),MUST_BE_CALL_SETUP_TOP:$e(),NOT_INSLALLED:$e(),NOT_AVAILABLE_IN_LEGACY_MODE:$e(),REQUIRED_VALUE:$e(),INVALID_VALUE:$e(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:$e(),NOT_INSLALLED_WITH_PROVIDE:$e(),UNEXPECTED_ERROR:$e(),NOT_COMPATIBLE_LEGACY_VUE_I18N:$e(),BRIDGE_SUPPORT_VUE_2_ONLY:$e(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:$e(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:$e(),__EXTEND_POINT__:$e()},je=f("__transrateVNode"),Ve=f("__datetimeParts"),He=f("__numberParts"),Ge=f("__setPluralRules"),Be=f("__legacyVueI18n"),Je=f("__injectWithOption");function Ye(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function ze(e){if(!N(e))return e;for(const t in e)if(k(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],N(a[n[r]])&&ze(a[n[r]])}else N(e[t])&&ze(e[t]);return e}function Xe(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=F(n)?n:y(r)?{}:{[e]:{}};if(y(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(l[t]=l[t]||{},Ze(n,l[t])):Ze(n,l)}else T(e)&&Ze(JSON.parse(e),l)})),null==a&&o)for(const e in l)k(l,e)&&ze(l[e]);return l}const qe=e=>!N(e)||y(e);function Ze(e,t){if(qe(e)||qe(t))throw Error(Ue.INVALID_VALUE);for(const n in e)k(e,n)&&(qe(e[n])||qe(t[n])?t[n]=e[n]:Ze(e[n],t[n]))}function Ke(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}let Qe=0;function et(e){return(t,n,a,o)=>e(n,a,r()||void 0,o)}function tt(r={},a){const{__root:o}=r,l=void 0===o;let s=!E(r.inheritLocale)||r.inheritLocale;const c=e(o&&s?o.locale.value:T(r.locale)?r.locale:ie),u=e(o&&s?o.fallbackLocale.value:T(r.fallbackLocale)||y(r.fallbackLocale)||F(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:c.value),f=e(Xe(c.value,r)),m=e(F(r.datetimeFormats)?r.datetimeFormats:{[c.value]:{}}),_=e(F(r.numberFormats)?r.numberFormats:{[c.value]:{}});let g=o?o.missingWarn:!E(r.missingWarn)&&!d(r.missingWarn)||r.missingWarn,b=o?o.fallbackWarn:!E(r.fallbackWarn)&&!d(r.fallbackWarn)||r.fallbackWarn,h=o?o.fallbackRoot:!E(r.fallbackRoot)||r.fallbackRoot,k=!!r.fallbackFormat,O=L(r.missing)?r.missing:null,I=L(r.missing)?et(r.missing):null,C=L(r.postTranslation)?r.postTranslation:null,P=o?o.warnHtmlMessage:!E(r.warnHtmlMessage)||r.warnHtmlMessage,R=!!r.escapeParameter;const w=o?o.modifiers:F(r.modifiers)?r.modifiers:{};let W,S,M=r.pluralRules||o&&o.pluralRules;{Ye(a);const e={locale:c.value,fallbackLocale:u.value,messages:f.value,dateTimeFormats:m.value,numberFormats:_.value,modifiers:w,missing:O,fallbackRoot:h,postTranslation:C,pluralizationRules:M,escapeParameterHtml:R,sync:s,silentFallbackWarn:E(b)?!b:b,silentTranslationWarn:E(g)?!g:g,formatFallbackMessages:E(k)?!k:k,warnHtmlInMessage:E(P)&&P?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};W=new a(e)}S=function(){const e={version:"9.2.0",locale:c.value,fallbackLocale:u.value,messages:f.value,modifiers:w,pluralRules:M,missing:null===I?void 0:I,missingWarn:g,fallbackWarn:b,fallbackFormat:k,unresolving:!0,postTranslation:null===C?void 0:C,warnHtmlMessage:P,escapeParameter:R,messageResolver:r.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=m.value,e.numberFormats=_.value,e.__datetimeFormatters=F(S)?S.__datetimeFormatters:void 0,e.__numberFormatters=F(S)?S.__numberFormatters:void 0,_e(e)}(),ve(S,c.value,u.value);const x=t({get:()=>c.value,set:e=>{c.value=e,W&&!l&&(W.locale=e),S.locale=c.value}}),A=t({get:()=>u.value,set:e=>{u.value=e,W&&!l&&(W.fallbackLocale=e),S.fallbackLocale=u.value,ve(S,c.value,e)}}),D=t((()=>f.value)),$=t((()=>m.value)),U=t((()=>_.value));function j(e,t,n,r,a,l){let s;if(c.value,u.value,f.value,m.value,_.value,s=e(S),p(s)&&-1===s){const[e,n]=t();return o&&h?r(o):a(e)}if(l(s))return s;throw Error(Ue.UNEXPECTED_RETURN_TYPE)}function V(...e){return j((t=>Reflect.apply(Ne,null,[t,...e])),(()=>Fe(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>T(e)))}const H={normalize:function(e){return e.map((e=>T(e)||p(e)||E(e)?Ke(String(e)):e))},interpolate:e=>e,type:"vnode"};function G(e){return f.value[e]||{}}Qe++,o&&i&&(n(o.locale,(e=>{s&&(c.value=e,W&&!l&&(W.locale=e),S.locale=e,ve(S,c.value,u.value))})),n(o.fallbackLocale,(e=>{s&&(u.value=e,W&&!l&&(W.fallbackLocale=e),S.fallbackLocale=e,ve(S,c.value,u.value))})));const B={id:Qe,locale:x,fallbackLocale:A,get inheritLocale(){return s},set inheritLocale(e){s=e,W&&(W._sync=e),e&&o&&(c.value=o.locale.value,u.value=o.fallbackLocale.value,W&&(W.locale=o.locale.value,W.fallbackLocale=o.fallbackLocale.value),ve(S,c.value,u.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:D,get modifiers(){return w},get pluralRules(){return M||{}},get isGlobal(){return l},get missingWarn(){return g},set missingWarn(e){g=e,S.missingWarn=g},get fallbackWarn(){return b},set fallbackWarn(e){b=e,S.fallbackWarn=b},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return k},set fallbackFormat(e){k=e,S.fallbackFormat=k},get warnHtmlMessage(){return P},set warnHtmlMessage(e){P=e,S.warnHtmlMessage=e},get escapeParameter(){return R},set escapeParameter(e){R=e,S.escapeParameter=e},t:V,getLocaleMessage:G,setLocaleMessage:function(e,t){f.value[e]=t,W&&W.setLocaleMessage(e,t),S.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},W&&W.mergeLocaleMessage(e,t),Ze(t,f.value[e]),S.messages=f.value},getPostTranslationHandler:function(){return L(C)?C:null},setPostTranslationHandler:function(e){C=e,S.postTranslation=e},getMissingHandler:function(){return O},setMissingHandler:function(e){null!==e&&(I=et(e)),O=e,S.missing=I},[Ge]:function(e){M=e,S.pluralRules=M}};return B.datetimeFormats=$,B.numberFormats=U,B.rt=function(...e){const[t,n,r]=e;if(r&&!N(r))throw Error(Ue.INVALID_ARGUMENT);return V(t,n,v({resolvedMessage:!0},r||{}))},B.te=function(e,t){const n=G(T(t)?t:c.value);return null!==S.messageResolver(n,e)},B.tm=function(e){const t=function(e){let t=null;const n=oe(S,u.value,c.value);for(let r=0;r<n.length;r++){const a=f.value[n[r]]||{},o=S.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:o&&o.tm(e)||{}},B.d=function(...e){return j((t=>Reflect.apply(Ce,null,[t,...e])),(()=>Re(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>T(e)))},B.n=function(...e){return j((t=>Reflect.apply(We,null,[t,...e])),(()=>Me(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>T(e)))},B.getDateTimeFormat=function(e){return m.value[e]||{}},B.setDateTimeFormat=function(e,t){m.value[e]=t,W&&W.setDateTimeFormat(e,t),S.datetimeFormats=m.value,we(S,e,t)},B.mergeDateTimeFormat=function(e,t){m.value[e]=v(m.value[e]||{},t),W&&W.mergeDateTimeFormat(e,t),S.datetimeFormats=m.value,we(S,e,t)},B.getNumberFormat=function(e){return _.value[e]||{}},B.setNumberFormat=function(e,t){_.value[e]=t,W&&W.setNumberFormat(e,t),S.numberFormats=_.value,xe(S,e,t)},B.mergeNumberFormat=function(e,t){_.value[e]=v(_.value[e]||{},t),W&&W.mergeNumberFormat(e,t),S.numberFormats=_.value,xe(S,e,t)},B[Je]=r.__injectWithOption,B[je]=function(...e){return j((t=>{let n;const r=t;try{r.processor=H,n=Reflect.apply(Ne,null,[r,...e])}finally{r.processor=null}return n}),(()=>Fe(...e)),0,(t=>t[je](...e)),(e=>[Ke(e)]),(e=>y(e)))},B[Ve]=function(...e){return j((t=>Reflect.apply(Ce,null,[t,...e])),(()=>Re(...e)),0,(t=>t[Ve](...e)),(()=>[]),(e=>T(e)||y(e)))},B[He]=function(...e){return j((t=>Reflect.apply(We,null,[t,...e])),(()=>Me(...e)),0,(t=>t[He](...e)),(()=>[]),(e=>T(e)||y(e)))},B[Be]=W,B}const nt={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const rt={name:"i18n-t",props:v({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>p(e)||!isNaN(e)}},nt),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||ut({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(n).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=T(e.plural)?+e.plural:e.plural);const c=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...y(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,l),i=o[je](e.keypath,c,s),u=v({},r),f=T(e.tag)||N(e.tag)?e.tag:"span";return a(f,u,i)}}};function at(e,t,n,r){const{slots:o,attrs:l}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),T(e.format)?t.key=e.format:N(e.format)&&(T(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?v({},t,{[r]:e.format[r]}):t),{}));const c=r(e.value,t,s);let i=[t.key];y(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 y(a=r)&&!T(a[0])&&(r[0].key=`${e.type}-${t}`),r})):T(c)&&(i=[c]);const u=v({},l),f=T(e.tag)||N(e.tag)?e.tag:"span";return a(f,u,i)}}const ot={name:"i18n-n",props:v({value:{type:Number,required:!0},format:{type:[String,Object]}},nt),setup(e,t){const n=e.i18n||ut({useScope:"parent",__useComponent:!0});return at(e,t,Se,((...e)=>n[He](...e)))}},lt={name:"i18n-d",props:v({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},nt),setup(e,t){const n=e.i18n||ut({useScope:"parent",__useComponent:!0});return at(e,t,Pe,((...e)=>n[Ve](...e)))}};let st=null;const ct=f("global-vue-i18n");function it(e={},t){st=t;const n=!E(e.legacy)||e.legacy,r=!E(e.globalInjection)||e.globalInjection,a=!n||!!e.allowComposition,l=new Map,[s,c]=function(e,t,n){const r=o();{if(!Ye(n))throw Error(Ue.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=r.run((()=>tt(e,n)));if(null==t)throw Error(Ue.UNEXPECTED_ERROR);return[r,t]}}(e,0,t);f("");{const e=c[Be];let t=null;Object.defineProperty(e,"global",{get:()=>c}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>a}),Object.defineProperty(e,"__instances",{get:()=>l}),Object.defineProperty(e,"install",{writable:!0,value:(a,...o)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(Ue.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=F(t[0])?t[0]:{};(!E(n.globalInstall)||n.globalInstall)&&(e.component(rt.name,rt),e.component(ot.name,ot),e.component(lt.name,lt))}(a,...o),!n&&r&&(t=function(e,t,n){const r=t.watchLocale(n);return e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])},r}(a,e,c)),a.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ze(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(F(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ze(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&F(r)&&Ze(r,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||F(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,st))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),s.stop()}});const o={__getInstance:function(e){return l.get(e)||null},__setInstance:function(e,t){l.set(e,t)},__deleteInstance:function(e){l.delete(e)}};return Object.keys(o).forEach((t=>Object.defineProperty(e,t,{value:o[t]}))),e}}function ut(n={}){const a=r();if(null==a)throw Error(Ue.MUST_BE_CALL_SETUP_TOP);if(null==st)throw Error(Ue.NOT_INSLALLED);const o=function(e){{const t=e.proxy;if(null==t)throw Error(Ue.UNEXPECTED_ERROR);const n=t._i18nBridgeRoot;if(!n)throw Error(Ue.NOT_INSLALLED);return n}}(a),u=function(e){return e.global}(o),f=function(e){return e.proxy.$options}(a),m=function(e,t){return _(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(n,f);if("legacy"===o.mode&&!n.__useComponent){if(!o.allowComposition)throw Error(Ue.NOT_AVAILABLE_IN_LEGACY_MODE);return function(n,r,a,o={}){const s="local"===r,i=c(null);if(s&&n.proxy&&!n.proxy.$options.i18n&&!n.proxy.$options.__i18n)throw Error(Ue.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=!E(o.inheritLocale)||o.inheritLocale,f=e(s&&u?a.locale.value:T(o.locale)?o.locale:ie),m=e(s&&u?a.fallbackLocale.value:T(o.fallbackLocale)||y(o.fallbackLocale)||F(o.fallbackLocale)||!1===o.fallbackLocale?o.fallbackLocale:f.value),p=e(Xe(f.value,o)),_=e(F(o.datetimeFormats)?o.datetimeFormats:{[f.value]:{}}),g=e(F(o.numberFormats)?o.numberFormats:{[f.value]:{}}),v=s?a.missingWarn:!E(o.missingWarn)&&!d(o.missingWarn)||o.missingWarn,b=s?a.fallbackWarn:!E(o.fallbackWarn)&&!d(o.fallbackWarn)||o.fallbackWarn,h=s?a.fallbackRoot:!E(o.fallbackRoot)||o.fallbackRoot,k=!!o.fallbackFormat,N=L(o.missing)?o.missing:null,O=L(o.postTranslation)?o.postTranslation:null,I=s?a.warnHtmlMessage:!E(o.warnHtmlMessage)||o.warnHtmlMessage,C=!!o.escapeParameter,P=s?a.modifiers:F(o.modifiers)?o.modifiers:{},R=o.pluralRules||s&&a.pluralRules;function w(){return[f.value,m.value,p.value,_.value,g.value]}const W=t({get:()=>i.value?i.value.locale.value:f.value,set:e=>{i.value&&(i.value.locale.value=e),f.value=e}}),S=t({get:()=>i.value?i.value.fallbackLocale.value:m.value,set:e=>{i.value&&(i.value.fallbackLocale.value=e),m.value=e}}),M=t((()=>i.value?i.value.messages.value:p.value)),x=t((()=>_.value)),A=t((()=>g.value));function D(){return i.value?i.value.getPostTranslationHandler():O}function $(e){i.value&&i.value.setPostTranslationHandler(e)}function U(){return i.value?i.value.getMissingHandler():N}function j(e){i.value&&i.value.setMissingHandler(e)}function V(e){return w(),e()}function H(...e){return i.value?V((()=>Reflect.apply(i.value.t,null,[...e]))):V((()=>""))}function G(...e){return i.value?Reflect.apply(i.value.rt,null,[...e]):""}function B(...e){return i.value?V((()=>Reflect.apply(i.value.d,null,[...e]))):V((()=>""))}function J(...e){return i.value?V((()=>Reflect.apply(i.value.n,null,[...e]))):V((()=>""))}function Y(e){return i.value?i.value.tm(e):{}}function z(e,t){return!!i.value&&i.value.te(e,t)}function X(e){return i.value?i.value.getLocaleMessage(e):{}}function q(e,t){i.value&&(i.value.setLocaleMessage(e,t),p.value[e]=t)}function Z(e,t){i.value&&i.value.mergeLocaleMessage(e,t)}function K(e){return i.value?i.value.getDateTimeFormat(e):{}}function Q(e,t){i.value&&(i.value.setDateTimeFormat(e,t),_.value[e]=t)}function ee(e,t){i.value&&i.value.mergeDateTimeFormat(e,t)}function te(e){return i.value?i.value.getNumberFormat(e):{}}function ne(e,t){i.value&&(i.value.setNumberFormat(e,t),g.value[e]=t)}function re(e,t){i.value&&i.value.mergeNumberFormat(e,t)}const ae={get id(){return i.value?i.value.id:-1},locale:W,fallbackLocale:S,messages:M,datetimeFormats:x,numberFormats:A,get inheritLocale(){return i.value?i.value.inheritLocale:u},set inheritLocale(e){i.value&&(i.value.inheritLocale=e)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(p.value)},get modifiers(){return i.value?i.value.modifiers:P},get pluralRules(){return i.value?i.value.pluralRules:R},get isGlobal(){return!!i.value&&i.value.isGlobal},get missingWarn(){return i.value?i.value.missingWarn:v},set missingWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackWarn(){return i.value?i.value.fallbackWarn:b},set fallbackWarn(e){i.value&&(i.value.missingWarn=e)},get fallbackRoot(){return i.value?i.value.fallbackRoot:h},set fallbackRoot(e){i.value&&(i.value.fallbackRoot=e)},get fallbackFormat(){return i.value?i.value.fallbackFormat:k},set fallbackFormat(e){i.value&&(i.value.fallbackFormat=e)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:I},set warnHtmlMessage(e){i.value&&(i.value.warnHtmlMessage=e)},get escapeParameter(){return i.value?i.value.escapeParameter:C},set escapeParameter(e){i.value&&(i.value.escapeParameter=e)},t:H,getPostTranslationHandler:D,setPostTranslationHandler:$,getMissingHandler:U,setMissingHandler:j,rt:G,d:B,n:J,tm:Y,te:z,getLocaleMessage:X,setLocaleMessage:q,mergeLocaleMessage:Z,getDateTimeFormat:K,setDateTimeFormat:Q,mergeDateTimeFormat:ee,getNumberFormat:te,setNumberFormat:ne,mergeNumberFormat:re};function oe(e){e.locale.value=f.value,e.fallbackLocale.value=m.value,Object.keys(p.value).forEach((t=>{e.mergeLocaleMessage(t,p.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeDateTimeFormat(t,_.value[t])})),Object.keys(g.value).forEach((t=>{e.mergeNumberFormat(t,g.value[t])})),e.escapeParameter=C,e.fallbackFormat=k,e.fallbackRoot=h,e.fallbackWarn=b,e.missingWarn=v,e.warnHtmlMessage=I}return l((()=>{if(null==n.proxy||null==n.proxy.$i18n)throw Error(Ue.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const e=i.value=n.proxy.$i18n.__composer;"global"===r?(f.value=e.locale.value,m.value=e.fallbackLocale.value,p.value=e.messages.value,_.value=e.datetimeFormats.value,g.value=e.numberFormats.value):s&&oe(e)})),ae}(a,m,u,n)}if("global"===m)return function(e,t,n){let r=N(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Xe(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);if(a.length&&a.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),N(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(N(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}(u,n,f),u;if("parent"===m){let e=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;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[Je]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(o,a,n.__useComponent);return null==e&&(e=u),e}const p=o;let g=p.__getInstance(a);if(null==g){const e=v({},n);"__i18n"in f&&(e.__i18n=f.__i18n),u&&(e.__root=u),g=tt(e,st),function(e,t,n){{const r=t.proxy;if(null==r)throw Error(Ue.UNEXPECTED_ERROR);const a=n[Be];if(a===e)throw Error(Ue.UNEXPECTED_ERROR);r._i18n=a,r._i18n_bridge=!0,i&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let o=!1;l((()=>{r._i18n.subscribeDataChanging(r),o=!0})),s((()=>{o&&(r._i18n.unsubscribeDataChanging(r),o=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}))}}(p,a,g),p.__setInstance(a,g)}return g}const ft=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(Ue.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};var mt;mt=function(e,t={}){{const n=(t.onCacheKey||be)(e),r=he[n];if(r)return r;let a=!1;const o=t.onError||P;t.onError=e=>{a=!0,o(e)};const{code:l}=B(e,t),s=new Function(`return ${l}`)();return a?s:he[n]=s}},fe=mt,me=function(e,t){if(!N(e))return null;let n=q.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,f=0;const m=[];function p(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=X(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=z(n),c=J[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&q.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;a=e,o++}return a},pe=oe;export{lt as DatetimeFormat,ct as I18nInjectionKey,ot as NumberFormat,rt as Translation,Ae as VERSION,ft as castToVueI18n,it as createI18n,ut as useI18n};
/*!
* vue-i18n-bridge v9.2.0-beta.40
* vue-i18n-bridge v9.2.0
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,t){"use strict";const n="undefined"!=typeof window,r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=e=>r?Symbol(e):e,o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),s=e=>"[object RegExp]"===k(e),c=e=>y(e)&&0===Object.keys(e).length;function i(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const u=Object.assign;function f(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function p(e,t){return m.call(e,t)}const d=Array.isArray,g=e=>"function"==typeof e,_=e=>"string"==typeof e,v=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),y=e=>"[object Object]"===k(e),L=15;function T(e){throw e}function E(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const N=" ",I="\n",O=String.fromCharCode(8232),F=String.fromCharCode(8233);function C(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>"\r"===t[e]&&t[e+1]===I,s=e=>t[e]===F,c=e=>t[e]===O,i=e=>l(e)||(e=>t[e]===I)(e)||s(e)||c(e),u=e=>l(e)||s(e)||c(e)?I:t[e];function f(){return o=0,i(n)&&(r++,a=0),l(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 l(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 P=void 0;function R(e,t={}){const n=!1!==t.location,r=C(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},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,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=E(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function d(e){let t="";for(;e.currentPeek()===N||e.currentPeek()===I;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=d(e);return e.skipToPeek(),t}function _(e){if(e===P)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===P)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function h(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!a)||!(r===N||r===I):o===N?(e.peek(),n(!0,N,a)):o!==I||(e.peek(),n(!0,I,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===P?P:t(n)?(e.next(),n):null}function y(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function L(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function O(e){let t="",n="";for(;t=L(e);)n+=t;return n}function F(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!h(e))break;t+=n,e.next()}else if(n===N||n===I)if(h(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function R(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(),""}}function w(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=T(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function W(e){g(e);const t=p(e,"|");return g(e),t}function M(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=S(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,l=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,W(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,x(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){g(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===P&&o(),n}(e)),g(e),n;if(a=v(e,t))return n=f(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===P&&o(),t}(e)),g(e),n;if(l=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){g(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==I;for(;t=k(e,r);)n+="\\"===t?R(e):t;const a=e.currentChar();return a===I||a===P?(o(),a===I&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),g(e),n;if(!r&&!a&&!l)return n=f(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==N&&e!==I;for(;t=k(e,r);)n+=t;return n}(e)),o(),n.value,g(e),n}return n}function S(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==I&&a!==N||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),f(t,9,".");case":":return g(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,W(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),S(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),f(t,12,function(e){let t="",n="";for(;t=y(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?_(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===N||!t)&&(t===I?(e.peek(),r()):_(t))},a=r();return e.resetPeek(),a}(e,t)?(g(e),"{"===a?M(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===N?r:a===I?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,x(e,t))}}function x(e,t){let n={type:14};if(t.braceNest>0)return M(e,t)||m(t);if(t.inLinked)return S(e,t)||m(t);switch(e.currentChar()){case"{":return M(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return S(e,t)||m(t);default:if(b(e))return n=f(t,1,W(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=d(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?f(t,0,F(e)):f(t,4,function(e){g(e);return"%"!==e.currentChar()&&o(),e.next(),"%"}(e));if(h(e))return f(t,0,F(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:l}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=l,c.offset=a(),c.startLoc=o(),r.currentChar()===P?f(c,14):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 W(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 M(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&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 l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(5,o,l);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(4,o,l);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(9,o,l);return s.value=t.replace(w,W),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(8,o,l);return 12!==t.type?(n.lastStartLoc,s.value="",a(s,o,l),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,S(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(t.lastStartLoc,S(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,S(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 5:null==o.value&&(t.lastStartLoc,S(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,S(o)),n.key=l(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,S(o)),n.key=c(e,o.value||"");break;default:t.lastStartLoc;const i=e.context(),u=r(7,i.offset,i.startLoc);return u.value="",a(u,i.offset,i.startLoc),n.key=u,a(n,i.offset,i.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&&(t.lastStartLoc,S(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(l(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(c(e,r.value||""));break;case 8:const a=i(e);n.items.push(a.node),u=a.nextConsumeToken||null}}while(14!==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,l=f(e);return 14===t.currentType?l:function(e,t,n,o){const l=e.context();let s=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==l.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,l)}return{parse:function(n){const o=R(n,u({},e)),l=o.context(),s=r(0,l.offset,l.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=m(o),14!==l.currentType&&(l.lastStartLoc,n[l.offset]),a(s,o.currentOffset(),o.currentPosition()),s}}}function S(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function x(e,t){for(let n=0;n<e.length;n++)D(e[n],t)}function D(e,t){switch(e.type){case 1:x(e.cases,t),t.helper("plural");break;case 2:x(e.items,t);break;case 6:D(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 A(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&&D(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function $(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?$(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&&($(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 n=0;n<a&&($(e,t.items[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),$(e,t.key),t.modifier?(e.push(", "),$(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)}}function U(e,t={}){const n=u({},t),r=M(n).parse(e);return A(r,n),((e,t={})=>{const n=_(t.mode)?t.mode:"normal",r=_(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",l=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,l={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function s(e,t){l.code+=e}function c(e,t=!0){const n=t?a:"";s(o?n+" ".repeat(e):n)}return{context:()=>l,push:s,indent:function(e=!0){const t=++l.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&c(t)},newline:function(){c(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:l});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),$(c,e),c.deindent(l),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const j=[];j[0]={w:[0],i:[3,0],"[":[4],o:[7]},j[1]={w:[1],".":[2],"[":[4],o:[7]},j[2]={w:[2],i:[3,0],0:[3,0]},j[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},j[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},j[5]={"'":[4,0],o:8,l:[5,0]},j[6]={'"':[4,0],o:8,l:[6,0]};const V=/^\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 G(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,V.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 B=new Map;function J(e,t){return b(e)?e[t]:null}const Y=e=>e,z=e=>"",X=e=>0===e.length?"":e.join(""),q=e=>null==e?"":d(e)||y(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function K(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Z(e={}){const t=e.locale,n=function(e){const t=l(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(l(e.named.count)||l(e.named.n))?l(e.named.count)?e.named.count:l(e.named.n)?e.named.n:t:t}(e),r=b(e.pluralRules)&&_(t)&&g(e.pluralRules[t])?e.pluralRules[t]:K,a=b(e.pluralRules)&&_(t)&&g(e.pluralRules[t])?K:void 0,o=e.list||[],s=e.named||{};l(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function c(t){const n=g(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):z)}const i=y(e.processor)&&g(e.processor.normalize)?e.processor.normalize:X,u=y(e.processor)&&g(e.processor.interpolate)?e.processor.interpolate:q,f={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",l="";1===n.length?b(r)?(l=r.modifier||l,o=r.type||o):_(r)&&(l=r||l):2===n.length&&(_(r)&&(l=r||l),_(a)&&(o=a||o));let s=c(t)(f);return"vnode"===o&&d(s)&&l&&(s=s[0]),l?(i=l,e.modifiers?e.modifiers[i]:Y)(s,o):s;var i},message:c,type:y(e.processor)&&_(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:i};return f}function Q(e,t,n){return[...new Set([n,...d(t)?t:b(t)?Object.keys(t):_(t)?[t]:[n]])]}function ee(e,t,n){const r=_(n)?n:ae,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;d(e);)e=te(o,e,t);const l=d(t)||!y(t)?t:t.default?t.default:null;e=_(l)?[l]:l,d(e)&&te(o,e,!1),a.__localeChainCache.set(r,o)}return o}function te(e,t,n){let r=!0;for(let a=0;a<t.length&&v(r);a++){const o=t[a];_(o)&&(r=ne(e,t[a],n))}return r}function ne(e,t,n){let r;const a=t.split("-");do{r=re(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function re(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),(d(n)||y(n))&&n[a]&&(r=n[a])}return r}const ae="en-US",oe=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let le,se,ce;let ie=0;function ue(e={}){const t=_(e.version)?e.version:"9.2.0-beta.40",n=_(e.locale)?e.locale:ae,r=d(e.fallbackLocale)||y(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=y(e.messages)?e.messages:{[n]:{}},o=y(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=y(e.numberFormats)?e.numberFormats:{[n]:{}},c=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&_(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&_(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&_(e)?oe(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?oe(e.children):e}),f=e.pluralRules||{},m=g(e.missing)?e.missing:null,p=!v(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,h=!v(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,L=!!e.unresolving,T=g(e.postTranslation)?e.postTranslation:null,E=y(e.processor)?e.processor:null,N=!v(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,O=g(e.messageCompiler)?e.messageCompiler:le,F=g(e.messageResolver)?e.messageResolver:se||J,C=g(e.localeFallbacker)?e.localeFallbacker:ce||Q,P=b(e.fallbackContext)?e.fallbackContext:void 0,R=g(e.onWarn)?e.onWarn:i,w=e,W=b(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,M=b(w.__numberFormatters)?w.__numberFormatters:new Map,S=b(w.__meta)?w.__meta:{};ie++;const x={version:t,cid:ie,locale:n,fallbackLocale:r,messages:a,modifiers:c,pluralRules:f,missing:m,missingWarn:p,fallbackWarn:h,fallbackFormat:k,unresolving:L,postTranslation:T,processor:E,warnHtmlMessage:N,escapeParameter:I,messageCompiler:O,messageResolver:F,localeFallbacker:C,fallbackContext:P,onWarn:R,__meta:S};return x.datetimeFormats=o,x.numberFormats=l,x.__datetimeFormatters=W,x.__numberFormatters=M,x}function fe(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return _(r)?r:t}return t}function me(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const pe=e=>e;let de=Object.create(null);let ge=L;const _e=()=>++ge,ve={INVALID_ARGUMENT:ge,INVALID_DATE_ARGUMENT:_e(),INVALID_ISO_DATE_ARGUMENT:_e(),__EXTEND_POINT__:_e()},be=()=>"",he=e=>g(e);function ke(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:c}=e,[i,u]=Te(...t),m=v(u.missingWarn)?u.missingWarn:e.missingWarn,p=v(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,g=v(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,k=_(u.default)||v(u.default)?v(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:"",y=n||""!==k,L=_(u.locale)?u.locale:e.locale;g&&function(e){d(e.list)?e.list=e.list.map((e=>_(e)?f(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{_(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(u);let[T,E,N]=h?[i,L,c[L]||{}]:ye(e,i,L,s,p,m),I=T,O=i;if(h||_(I)||he(I)||y&&(I=k,O=I),!(h||(_(I)||he(I))&&_(E)))return a?-1:i;let F=!1;const C=he(I)?I:Le(e,i,E,I,O,(()=>{F=!0}));if(F)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=ye(f,r,t,c,i,u);a=s(e,r)}if(_(a)){let n=!1;const o=Le(e,r,t,a,r,(()=>{n=!0}));return n?be:o}return he(a)?a:be},p={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(p.processor=e.processor);r.list&&(p.list=r.list);r.named&&(p.named=r.named);l(r.plural)&&(p.pluralIndex=r.plural);return p}(e,E,N,u),R=function(e,t,n){return t(n)}(0,C,Z(P));return r?r(R,i):R}function ye(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;for(let n=0;n<u.length&&(f=u[n],m=l[f]||{},null===(p=c(m,t))&&(p=m[t]),!_(p)&&!g(p));n++){const n=fe(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,m]}function Le(e,t,n,r,a,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(he(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const i=s(r,function(e,t,n,r,a,l){return{warnHtmlMessage:a,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>o({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,c,l));return i.locale=n,i.key=t,i.source=r,i}function Te(...e){const[t,n,r]=e,a={};if(!_(t)&&!l(t)&&!he(t))throw Error(ve.INVALID_ARGUMENT);const o=l(t)?String(t):(he(t),t);return l(n)?a.plural=n:_(n)?a.default=n:y(n)&&!c(n)?a.named=n:d(n)&&(a.list=n),l(r)?a.plural=r:_(r)?a.default=r:y(r)&&u(a,r),[o,a]}function Ee(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:s}=e,[i,f,m,p]=Ie(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,g=_(m.locale)?m.locale:e.locale,b=l(e,a,g);if(!_(i)||""===i)return new Intl.DateTimeFormat(g,p).format(f);let h,k={},L=null;for(let t=0;t<b.length&&(h=b[t],k=n[h]||{},L=k[i],!y(L));t++)fe(e,i,h,0,"datetime format");if(!y(L)||!_(h))return r?-1:i;let T=`${h}__${i}`;c(p)||(T=`${T}__${JSON.stringify(p)}`);let E=s.get(T);return E||(E=new Intl.DateTimeFormat(h,u({},L,p)),s.set(T,E)),d?E.formatToParts(f):E.format(f)}const Ne=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ie(...e){const[t,n,r,a]=e,o={};let s,c={};if(_(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ve.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(e){throw Error(ve.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(ve.INVALID_DATE_ARGUMENT);s=t}else{if(!l(t))throw Error(ve.INVALID_ARGUMENT);s=t}return _(n)?o.key=n:y(n)&&Object.keys(n).forEach((e=>{Ne.includes(e)?c[e]=n[e]:o[e]=n[e]})),_(r)?o.locale=r:y(r)&&(c=r),y(a)&&(c=a),[o.key||"",s,o,c]}function Oe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Fe(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:s}=e,[i,f,m,p]=Pe(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,g=_(m.locale)?m.locale:e.locale,b=l(e,a,g);if(!_(i)||""===i)return new Intl.NumberFormat(g,p).format(f);let h,k={},L=null;for(let t=0;t<b.length&&(h=b[t],k=n[h]||{},L=k[i],!y(L));t++)fe(e,i,h,0,"number format");if(!y(L)||!_(h))return r?-1:i;let T=`${h}__${i}`;c(p)||(T=`${T}__${JSON.stringify(p)}`);let E=s.get(T);return E||(E=new Intl.NumberFormat(h,u({},L,p)),s.set(T,E)),d?E.formatToParts(f):E.format(f)}const Ce=["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,r,a]=e,o={};let s={};if(!l(t))throw Error(ve.INVALID_ARGUMENT);const c=t;return _(n)?o.key=n:y(n)&&Object.keys(n).forEach((e=>{Ce.includes(e)?s[e]=n[e]:o[e]=n[e]})),_(r)?o.locale=r:y(r)&&(s=r),y(a)&&(s=a),[o.key||"",c,o,s]}function Re(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const we="9.2.0-beta.40";let We=L;const Me=()=>++We,Se={UNEXPECTED_RETURN_TYPE:We,INVALID_ARGUMENT:Me(),MUST_BE_CALL_SETUP_TOP:Me(),NOT_INSLALLED:Me(),NOT_AVAILABLE_IN_LEGACY_MODE:Me(),REQUIRED_VALUE:Me(),INVALID_VALUE:Me(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Me(),NOT_INSLALLED_WITH_PROVIDE:Me(),UNEXPECTED_ERROR:Me(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Me(),BRIDGE_SUPPORT_VUE_2_ONLY:Me(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Me(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Me(),__EXTEND_POINT__:Me()},xe=a("__transrateVNode"),De=a("__datetimeParts"),Ae=a("__numberParts"),$e=a("__setPluralRules"),Ue=a("__legacyVueI18n"),je=a("__injectWithOption"),Ve="__VUE_I18N_BRIDGE__";function He(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Ge(e){if(!b(e))return e;for(const t in e)if(p(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],b(a[n[r]])&&Ge(a[n[r]])}else b(e[t])&&Ge(e[t]);return e}function Be(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=y(n)?n:d(r)?{}:{[e]:{}};if(d(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(l[t]=l[t]||{},Ye(n,l[t])):Ye(n,l)}else _(e)&&Ye(JSON.parse(e),l)})),null==a&&o)for(const e in l)p(l,e)&&Ge(l[e]);return l}const Je=e=>!b(e)||d(e);function Ye(e,t){if(Je(e)||Je(t))throw Error(Se.INVALID_VALUE);for(const n in e)p(e,n)&&(Je(e[n])||Je(t[n])?t[n]=e[n]:Ye(e[n],t[n]))}function ze(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}let Xe=0;function qe(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function Ke(e={},r){const{__root:a}=e,o=void 0===a;let c=!v(e.inheritLocale)||e.inheritLocale;const i=t.ref(a&&c?a.locale.value:_(e.locale)?e.locale:ae),f=t.ref(a&&c?a.fallbackLocale.value:_(e.fallbackLocale)||d(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),m=t.ref(Be(i.value,e)),p=t.ref(y(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),h=t.ref(y(e.numberFormats)?e.numberFormats:{[i.value]:{}});let k=a?a.missingWarn:!v(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,L=a?a.fallbackWarn:!v(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,T=a?a.fallbackRoot:!v(e.fallbackRoot)||e.fallbackRoot,E=!!e.fallbackFormat,N=g(e.missing)?e.missing:null,I=g(e.missing)?qe(e.missing):null,O=g(e.postTranslation)?e.postTranslation:null,F=a?a.warnHtmlMessage:!v(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter;const P=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let R,w,W=e.pluralRules||a&&a.pluralRules;{He(r);const e={locale:i.value,fallbackLocale:f.value,messages:m.value,dateTimeFormats:p.value,numberFormats:h.value,modifiers:P,missing:N,fallbackRoot:T,postTranslation:O,pluralizationRules:W,escapeParameterHtml:C,sync:c,silentFallbackWarn:v(L)?!L:L,silentTranslationWarn:v(k)?!k:k,formatFallbackMessages:v(E)?!E:E,warnHtmlInMessage:v(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:Ve};R=new r(e)}w=function(){const t={version:we,locale:i.value,fallbackLocale:f.value,messages:m.value,modifiers:P,pluralRules:W,missing:null===I?void 0:I,missingWarn:k,fallbackWarn:L,fallbackFormat:E,unresolving:!0,postTranslation:null===O?void 0:O,warnHtmlMessage:F,escapeParameter:C,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=p.value,t.numberFormats=h.value,t.__datetimeFormatters=y(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=y(w)?w.__numberFormatters:void 0,ue(t)}(),me(w,i.value,f.value);const M=t.computed({get:()=>i.value,set:e=>{i.value=e,R&&!o&&(R.locale=e),w.locale=i.value}}),S=t.computed({get:()=>f.value,set:e=>{f.value=e,R&&!o&&(R.fallbackLocale=e),w.fallbackLocale=f.value,me(w,i.value,e)}}),x=t.computed((()=>m.value)),D=t.computed((()=>p.value)),A=t.computed((()=>h.value));function $(e,t,n,r,o,s){let c;if(i.value,f.value,m.value,p.value,h.value,c=e(w),l(c)&&-1===c){const[e,n]=t();return a&&T?r(a):o(e)}if(s(c))return c;throw Error(Se.UNEXPECTED_RETURN_TYPE)}function U(...e){return $((t=>Reflect.apply(ke,null,[t,...e])),(()=>Te(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>_(e)))}const j={normalize:function(e){return e.map((e=>_(e)||l(e)||v(e)?ze(String(e)):e))},interpolate:e=>e,type:"vnode"};function V(e){return m.value[e]||{}}Xe++,a&&n&&(t.watch(a.locale,(e=>{c&&(i.value=e,R&&!o&&(R.locale=e),w.locale=e,me(w,i.value,f.value))})),t.watch(a.fallbackLocale,(e=>{c&&(f.value=e,R&&!o&&(R.fallbackLocale=e),w.fallbackLocale=e,me(w,i.value,f.value))})));const H={id:Xe,locale:M,fallbackLocale:S,get inheritLocale(){return c},set inheritLocale(e){c=e,R&&(R._sync=e),e&&a&&(i.value=a.locale.value,f.value=a.fallbackLocale.value,R&&(R.locale=a.locale.value,R.fallbackLocale=a.fallbackLocale.value),me(w,i.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:x,get modifiers(){return P},get pluralRules(){return W||{}},get isGlobal(){return o},get missingWarn(){return k},set missingWarn(e){k=e,w.missingWarn=k},get fallbackWarn(){return L},set fallbackWarn(e){L=e,w.fallbackWarn=L},get fallbackRoot(){return T},set fallbackRoot(e){T=e},get fallbackFormat(){return E},set fallbackFormat(e){E=e,w.fallbackFormat=E},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,w.warnHtmlMessage=e},get escapeParameter(){return C},set escapeParameter(e){C=e,w.escapeParameter=e},t:U,getLocaleMessage:V,setLocaleMessage:function(e,t){m.value[e]=t,R&&R.setLocaleMessage(e,t),w.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},R&&R.mergeLocaleMessage(e,t),Ye(t,m.value[e]),w.messages=m.value},getPostTranslationHandler:function(){return g(O)?O:null},setPostTranslationHandler:function(e){O=e,w.postTranslation=e},getMissingHandler:function(){return N},setMissingHandler:function(e){null!==e&&(I=qe(e)),N=e,w.missing=I},[$e]:function(e){W=e,w.pluralRules=W}};return H.datetimeFormats=D,H.numberFormats=A,H.rt=function(...e){const[t,n,r]=e;if(r&&!b(r))throw Error(Se.INVALID_ARGUMENT);return U(t,n,u({resolvedMessage:!0},r||{}))},H.te=function(e,t){const n=V(_(t)?t:i.value);return null!==w.messageResolver(n,e)},H.tm=function(e){const t=function(e){let t=null;const n=ee(w,f.value,i.value);for(let r=0;r<n.length;r++){const a=m.value[n[r]]||{},o=w.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},H.d=function(...e){return $((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Ie(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>_(e)))},H.n=function(...e){return $((t=>Reflect.apply(Fe,null,[t,...e])),(()=>Pe(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>_(e)))},H.getDateTimeFormat=function(e){return p.value[e]||{}},H.setDateTimeFormat=function(e,t){p.value[e]=t,R&&R.setDateTimeFormat(e,t),w.datetimeFormats=p.value,Oe(w,e,t)},H.mergeDateTimeFormat=function(e,t){p.value[e]=u(p.value[e]||{},t),R&&R.mergeDateTimeFormat(e,t),w.datetimeFormats=p.value,Oe(w,e,t)},H.getNumberFormat=function(e){return h.value[e]||{}},H.setNumberFormat=function(e,t){h.value[e]=t,R&&R.setNumberFormat(e,t),w.numberFormats=h.value,Re(w,e,t)},H.mergeNumberFormat=function(e,t){h.value[e]=u(h.value[e]||{},t),R&&R.mergeNumberFormat(e,t),w.numberFormats=h.value,Re(w,e,t)},H[je]=e.__injectWithOption,H[xe]=function(...e){return $((t=>{let n;const r=t;try{r.processor=j,n=Reflect.apply(ke,null,[r,...e])}finally{r.processor=null}return n}),(()=>Te(...e)),0,(t=>t[xe](...e)),(e=>[ze(e)]),(e=>d(e)))},H[De]=function(...e){return $((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Ie(...e)),0,(t=>t[De](...e)),(()=>[]),(e=>_(e)||d(e)))},H[Ae]=function(...e){return $((t=>Reflect.apply(Fe,null,[t,...e])),(()=>Pe(...e)),0,(t=>t[Ae](...e)),(()=>[]),(e=>_(e)||d(e)))},H[Ue]=R,H}const Ze={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Qe={name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>l(e)||!isNaN(e)}},Ze),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||ot({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(r).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=_(e.plural)?+e.plural:e.plural);const c=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...d(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,l),i=o[xe](e.keypath,c,s),f=u({},a),m=_(e.tag)||b(e.tag)?e.tag:"span";return t.h(m,f,i)}}};function et(e,n,r,a){const{slots:o,attrs:l}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),_(e.format)?n.key=e.format:b(e.format)&&(_(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?u({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let i=[n.key];d(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 d(a=r)&&!_(a[0])&&(r[0].key=`${e.type}-${t}`),r})):_(c)&&(i=[c]);const f=u({},l),m=_(e.tag)||b(e.tag)?e.tag:"span";return t.h(m,f,i)}}const tt={name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Ze),setup(e,t){const n=e.i18n||ot({useScope:"parent",__useComponent:!0});return et(e,t,Ce,((...e)=>n[Ae](...e)))}},nt={name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ze),setup(e,t){const n=e.i18n||ot({useScope:"parent",__useComponent:!0});return et(e,t,Ne,((...e)=>n[De](...e)))}};let rt=null;const at=a("global-vue-i18n");function ot(e={}){const r=t.getCurrentInstance();if(null==r)throw Error(Se.MUST_BE_CALL_SETUP_TOP);if(null==rt)throw Error(Se.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(Se.UNEXPECTED_ERROR);const n=t._i18nBridgeRoot;if(!n)throw Error(Se.NOT_INSLALLED);return n}}(r),o=function(e){return e.global}(a),l=function(e){return e.proxy.$options}(r),i=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(Se.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const o="local"===n,l=t.shallowRef(null);if(o&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(Se.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const c=!v(a.inheritLocale)||a.inheritLocale,i=t.ref(o&&c?r.locale.value:_(a.locale)?a.locale:ae),u=t.ref(o&&c?r.fallbackLocale.value:_(a.fallbackLocale)||d(a.fallbackLocale)||y(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:i.value),f=t.ref(Be(i.value,a)),m=t.ref(y(a.datetimeFormats)?a.datetimeFormats:{[i.value]:{}}),p=t.ref(y(a.numberFormats)?a.numberFormats:{[i.value]:{}}),b=o?r.missingWarn:!v(a.missingWarn)&&!s(a.missingWarn)||a.missingWarn,h=o?r.fallbackWarn:!v(a.fallbackWarn)&&!s(a.fallbackWarn)||a.fallbackWarn,k=o?r.fallbackRoot:!v(a.fallbackRoot)||a.fallbackRoot,L=!!a.fallbackFormat,T=g(a.missing)?a.missing:null,E=g(a.postTranslation)?a.postTranslation:null,N=o?r.warnHtmlMessage:!v(a.warnHtmlMessage)||a.warnHtmlMessage,I=!!a.escapeParameter,O=o?r.modifiers:y(a.modifiers)?a.modifiers:{},F=a.pluralRules||o&&r.pluralRules;function C(){return[i.value,u.value,f.value,m.value,p.value]}const P=t.computed({get:()=>l.value?l.value.locale.value:i.value,set:e=>{l.value&&(l.value.locale.value=e),i.value=e}}),R=t.computed({get:()=>l.value?l.value.fallbackLocale.value:u.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),u.value=e}}),w=t.computed((()=>l.value?l.value.messages.value:f.value)),W=t.computed((()=>m.value)),M=t.computed((()=>p.value));function S(){return l.value?l.value.getPostTranslationHandler():E}function x(e){l.value&&l.value.setPostTranslationHandler(e)}function D(){return l.value?l.value.getMissingHandler():T}function A(e){l.value&&l.value.setMissingHandler(e)}function $(e){return C(),e()}function U(...e){return l.value?$((()=>Reflect.apply(l.value.t,null,[...e]))):$((()=>""))}function j(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""}function V(...e){return l.value?$((()=>Reflect.apply(l.value.d,null,[...e]))):$((()=>""))}function H(...e){return l.value?$((()=>Reflect.apply(l.value.n,null,[...e]))):$((()=>""))}function G(e){return l.value?l.value.tm(e):{}}function B(e,t){return!!l.value&&l.value.te(e,t)}function J(e){return l.value?l.value.getLocaleMessage(e):{}}function Y(e,t){l.value&&(l.value.setLocaleMessage(e,t),f.value[e]=t)}function z(e,t){l.value&&l.value.mergeLocaleMessage(e,t)}function X(e){return l.value?l.value.getDateTimeFormat(e):{}}function q(e,t){l.value&&(l.value.setDateTimeFormat(e,t),m.value[e]=t)}function K(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)}function Z(e){return l.value?l.value.getNumberFormat(e):{}}function Q(e,t){l.value&&(l.value.setNumberFormat(e,t),p.value[e]=t)}function ee(e,t){l.value&&l.value.mergeNumberFormat(e,t)}const te={get id(){return l.value?l.value.id:-1},locale:P,fallbackLocale:R,messages:w,datetimeFormats:W,numberFormats:M,get inheritLocale(){return l.value?l.value.inheritLocale:c},set inheritLocale(e){l.value&&(l.value.inheritLocale=e)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(f.value)},get modifiers(){return l.value?l.value.modifiers:O},get pluralRules(){return l.value?l.value.pluralRules:F},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:b},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:h},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:k},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:L},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:N},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:I},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:U,getPostTranslationHandler:S,setPostTranslationHandler:x,getMissingHandler:D,setMissingHandler:A,rt:j,d:V,n:H,tm:G,te:B,getLocaleMessage:J,setLocaleMessage:Y,mergeLocaleMessage:z,getDateTimeFormat:X,setDateTimeFormat:q,mergeDateTimeFormat:K,getNumberFormat:Z,setNumberFormat:Q,mergeNumberFormat:ee};function ne(e){e.locale.value=i.value,e.fallbackLocale.value=u.value,Object.keys(f.value).forEach((t=>{e.mergeLocaleMessage(t,f.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeDateTimeFormat(t,m.value[t])})),Object.keys(p.value).forEach((t=>{e.mergeNumberFormat(t,p.value[t])})),e.escapeParameter=I,e.fallbackFormat=L,e.fallbackRoot=k,e.fallbackWarn=h,e.missingWarn=b,e.warnHtmlMessage=N}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Se.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=l.value=e.proxy.$i18n.__composer;"global"===n?(i.value=t.locale.value,u.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,p.value=t.numberFormats.value):o&&ne(t)})),te}(r,i,o,e)}if("global"===i)return function(e,t,n){let r=b(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Be(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])}))}}(o,e,l),o;if("parent"===i){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;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[je]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(a,r,e.__useComponent);return null==t&&(t=o),t}const f=a;let m=f.__getInstance(r);if(null==m){const a=u({},e);"__i18n"in l&&(a.__i18n=l.__i18n),o&&(a.__root=o),m=Ke(a,rt),function(e,r,a){{const o=r.proxy;if(null==o)throw Error(Se.UNEXPECTED_ERROR);const l=a[Ue];if(l===e)throw Error(Se.UNEXPECTED_ERROR);o._i18n=l,o._i18n_bridge=!0,n&&(o._i18nWatcher=o._i18n.watchI18nData(),o._i18n._sync&&(o._localeWatcher=o._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{o._i18n.subscribeDataChanging(o),s=!0})),t.onUnmounted((()=>{s&&(o._i18n.unsubscribeDataChanging(o),s=!1),o._i18nWatcher&&(o._i18nWatcher(),o._i18n.destroyVM(),delete o._i18nWatcher),o._localeWatcher&&(o._localeWatcher(),delete o._localeWatcher),delete o._i18n_bridge,delete o._i18n}))}}(f,r,m),f.__setInstance(r,m)}return m}var lt;return lt=function(e,t={}){{const n=(t.onCacheKey||pe)(e),r=de[n];if(r)return r;let a=!1;const o=t.onError||T;t.onError=e=>{a=!0,o(e)};const{code:l}=U(e,t),s=new Function(`return ${l}`)();return a?s:de[n]=s}},le=lt,se=function(e,t){if(!b(e))return null;let n=B.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,f=0;const m=[];function p(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=G(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=H(n),c=j[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&B.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;a=e,o++}return a},ce=ee,e.DatetimeFormat=nt,e.I18nInjectionKey=at,e.NumberFormat=tt,e.Translation=Qe,e.VERSION=we,e.castToVueI18n=e=>{if(!(Ve in e))throw Error(Se.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},n){rt=n;const r=!v(e.legacy)||e.legacy,o=!v(e.globalInjection)||e.globalInjection,l=!r||!!e.allowComposition,s=new Map,[c,i]=function(e,n,r){const a=t.effectScope();{if(!He(r))throw Error(Se.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=a.run((()=>Ke(e,r)));if(null==t)throw Error(Se.UNEXPECTED_ERROR);return[a,t]}}(e,0,n);a("");{const e=i[Ue];let t=null;Object.defineProperty(e,"global",{get:()=>i}),Object.defineProperty(e,"mode",{get:()=>r?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>l}),Object.defineProperty(e,"__instances",{get:()=>s}),Object.defineProperty(e,"install",{writable:!0,value:(n,...a)=>{if(2!==(n&&n.version&&Number(n.version.split(".")[0])||-1))throw Error(Se.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=y(t[0])?t[0]:{};(!v(n.globalInstall)||n.globalInstall)&&(e.component(Qe.name,Qe),e.component(tt.name,tt),e.component(nt.name,nt))}(n,...a),!r&&o&&(t=function(e,t,n){const r=t.watchLocale(n);return e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])},r}(n,e,i)),n.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ye(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ye(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&y(r)&&Ye(r,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||y(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,rt))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),c.stop()}});const n={__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return Object.keys(n).forEach((t=>Object.defineProperty(e,t,{value:n[t]}))),e}},e.useI18n=ot,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueDemi);
var VueI18nBridge=function(e,t){"use strict";const n="undefined"!=typeof window,r="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,a=e=>r?Symbol(e):e,o=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"==typeof e&&isFinite(e),s=e=>"[object RegExp]"===k(e),c=e=>y(e)&&0===Object.keys(e).length;function i(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const u=Object.assign;function f(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const m=Object.prototype.hasOwnProperty;function p(e,t){return m.call(e,t)}const d=Array.isArray,g=e=>"function"==typeof e,_=e=>"string"==typeof e,v=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),y=e=>"[object Object]"===k(e),L=15;function T(e){throw e}function E(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const N=" ",I="\n",O=String.fromCharCode(8232),F=String.fromCharCode(8233);function C(e){const t=e;let n=0,r=1,a=1,o=0;const l=e=>"\r"===t[e]&&t[e+1]===I,s=e=>t[e]===F,c=e=>t[e]===O,i=e=>l(e)||(e=>t[e]===I)(e)||s(e)||c(e),u=e=>l(e)||s(e)||c(e)?I:t[e];function f(){return o=0,i(n)&&(r++,a=0),l(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 l(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 P=void 0;function R(e,t={}){const n=!1!==t.location,r=C(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},l=o(),s=a(),c={currentType:14,offset:s,startLoc:l,endLoc:l,lastType:14,lastOffset:s,lastStartLoc:l,lastEndLoc:l,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=E(e.startLoc,e.endLoc)),null!=r&&(a.value=r),a}const m=e=>f(e,14);function p(e,t){return e.currentChar()===t?(e.next(),t):(o(),"")}function d(e){let t="";for(;e.currentPeek()===N||e.currentPeek()===I;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=d(e);return e.skipToPeek(),t}function _(e){if(e===P)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=function(e){if(e===P)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}function b(e){d(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function h(e,t=!0){const n=(t=!1,r="",a=!1)=>{const o=e.currentPeek();return"{"===o?"%"!==r&&t:"@"!==o&&o?"%"===o?(e.peek(),n(t,"%",!0)):"|"===o?!("%"!==r&&!a)||!(r===N||r===I):o===N?(e.peek(),n(!0,N,a)):o!==I||(e.peek(),n(!0,I,a)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function k(e,t){const n=e.currentChar();return n===P?P:t(n)?(e.next(),n):null}function y(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function L(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return k(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function O(e){let t="",n="";for(;t=L(e);)n+=t;return n}function F(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!h(e))break;t+=n,e.next()}else if(n===N||n===I)if(h(e))t+=n,e.next();else{if(b(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function R(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(),""}}function w(e,t,n){p(e,t);let r="";for(let t=0;t<n;t++){const t=T(e);if(!t){o(),e.currentChar();break}r+=t}return`\\${t}${r}`}function W(e){g(e);const t=p(e,"|");return g(e),t}function M(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&o(),e.next(),n=f(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&o(),e.next(),n=f(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&o(),n=S(e,t)||m(t),t.braceNest=0,n;default:let r=!0,a=!0,l=!0;if(b(e))return t.braceNest>0&&o(),n=f(t,1,W(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return o(),t.braceNest=0,x(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t))return n=f(t,5,function(e){g(e);let t="",n="";for(;t=y(e);)n+=t;return e.currentChar()===P&&o(),n}(e)),g(e),n;if(a=v(e,t))return n=f(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${O(e)}`):t+=O(e),e.currentChar()===P&&o(),t}(e)),g(e),n;if(l=function(e,t){const{currentType:n}=t;if(2!==n)return!1;d(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=f(t,7,function(e){g(e),p(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==I;for(;t=k(e,r);)n+="\\"===t?R(e):t;const a=e.currentChar();return a===I||a===P?(o(),a===I&&(e.next(),p(e,"'")),n):(p(e,"'"),n)}(e)),g(e),n;if(!r&&!a&&!l)return n=f(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==N&&e!==I;for(;t=k(e,r);)n+=t;return n}(e)),o(),n.value,g(e),n}return n}function S(e,t){const{currentType:n}=t;let r=null;const a=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||a!==I&&a!==N||o(),a){case"@":return e.next(),r=f(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),f(t,9,".");case":":return g(e),e.next(),f(t,10,":");default:return b(e)?(r=f(t,1,W(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;d(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;d(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),S(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;d(e);const r=_(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),f(t,12,function(e){let t="",n="";for(;t=y(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?_(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===N||!t)&&(t===I?(e.peek(),r()):_(t))},a=r();return e.resetPeek(),a}(e,t)?(g(e),"{"===a?M(e,t)||r:f(t,11,function(e){const t=(n=!1,r)=>{const a=e.currentChar();return"{"!==a&&"%"!==a&&"@"!==a&&"|"!==a&&a?a===N?r:a===I?(r+=a,e.next(),t(n,r)):(r+=a,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&o(),t.braceNest=0,t.inLinked=!1,x(e,t))}}function x(e,t){let n={type:14};if(t.braceNest>0)return M(e,t)||m(t);if(t.inLinked)return S(e,t)||m(t);switch(e.currentChar()){case"{":return M(e,t)||m(t);case"}":return o(),e.next(),f(t,3,"}");case"@":return S(e,t)||m(t);default:if(b(e))return n=f(t,1,W(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:a}=function(e){const t=d(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}(e);if(r)return a?f(t,0,F(e)):f(t,4,function(e){g(e);return"%"!==e.currentChar()&&o(),e.next(),"%"}(e));if(h(e))return f(t,0,F(e))}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:l}=c;return c.lastType=e,c.lastOffset=t,c.lastStartLoc=n,c.lastEndLoc=l,c.offset=a(),c.startLoc=o(),r.currentChar()===P?f(c,14):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 W(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 M(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,n,r){const a={type:e,start:n,end:n};return t&&(a.loc={start:r,end:r}),a}function a(e,n,r,a){e.end=n,a&&(e.type=a),t&&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 l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(5,o,l);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(4,o,l);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(9,o,l);return s.value=t.replace(w,W),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function i(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let o=e.nextToken();if(9===o.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:o,lastStartLoc:l}=n,s=r(8,o,l);return 12!==t.type?(n.lastStartLoc,s.value="",a(s,o,l),{nextConsumeToken:t,node:s}):(null==t.value&&(n.lastStartLoc,S(t)),s.value=t.value||"",a(s,e.currentOffset(),e.currentPosition()),{node:s})}(e);n.modifier=t.node,o=t.nextConsumeToken||e.nextToken()}switch(10!==o.type&&(t.lastStartLoc,S(o)),o=e.nextToken(),2===o.type&&(o=e.nextToken()),o.type){case 11:null==o.value&&(t.lastStartLoc,S(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 5:null==o.value&&(t.lastStartLoc,S(o)),n.key=s(e,o.value||"");break;case 6:null==o.value&&(t.lastStartLoc,S(o)),n.key=l(e,o.value||"");break;case 7:null==o.value&&(t.lastStartLoc,S(o)),n.key=c(e,o.value||"");break;default:t.lastStartLoc;const i=e.context(),u=r(7,i.offset,i.startLoc);return u.value="",a(u,i.offset,i.startLoc),n.key=u,a(n,i.offset,i.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&&(t.lastStartLoc,S(r)),n.items.push(o(e,r.value||""));break;case 6:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(l(e,r.value||""));break;case 5:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(s(e,r.value||""));break;case 7:null==r.value&&(t.lastStartLoc,S(r)),n.items.push(c(e,r.value||""));break;case 8:const a=i(e);n.items.push(a.node),u=a.nextConsumeToken||null}}while(14!==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,l=f(e);return 14===t.currentType?l:function(e,t,n,o){const l=e.context();let s=0===o.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(o);do{const t=f(e);s||(s=0===t.items.length),c.cases.push(t)}while(14!==l.currentType);return a(c,e.currentOffset(),e.currentPosition()),c}(e,n,o,l)}return{parse:function(n){const o=R(n,u({},e)),l=o.context(),s=r(0,l.offset,l.startLoc);return t&&s.loc&&(s.loc.source=n),s.body=m(o),14!==l.currentType&&(l.lastStartLoc,n[l.offset]),a(s,o.currentOffset(),o.currentPosition()),s}}}function S(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function x(e,t){for(let n=0;n<e.length;n++)D(e[n],t)}function D(e,t){switch(e.type){case 1:x(e.cases,t),t.helper("plural");break;case 2:x(e.items,t);break;case 6:D(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 A(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&&D(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function $(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?$(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&&($(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 n=0;n<a&&($(e,t.items[n]),n!==a-1);n++)e.push(", ");e.deindent(r()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),$(e,t.key),t.modifier?(e.push(", "),$(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)}}function U(e,t={}){const n=u({},t),r=M(n).parse(e);return A(r,n),((e,t={})=>{const n=_(t.mode)?t.mode:"normal",r=_(t.filename)?t.filename:"message.intl",a=!!t.sourceMap,o=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",l=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],c=function(e,t){const{sourceMap:n,filename:r,breakLineCode:a,needIndent:o}=t,l={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:a,needIndent:o,indentLevel:0};function s(e,t){l.code+=e}function c(e,t=!0){const n=t?a:"";s(o?n+" ".repeat(e):n)}return{context:()=>l,push:s,indent:function(e=!0){const t=++l.indentLevel;e&&c(t)},deindent:function(e=!0){const t=--l.indentLevel;e&&c(t)},newline:function(){c(l.indentLevel)},helper:e=>`_${e}`,needIndent:()=>l.needIndent}}(e,{mode:n,filename:r,sourceMap:a,breakLineCode:o,needIndent:l});c.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(l),s.length>0&&(c.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),c.newline()),c.push("return "),$(c,e),c.deindent(l),c.push("}");const{code:i,map:u}=c.context();return{ast:e,code:i,map:u?u.toJSON():void 0}})(r,n)}const j=[];j[0]={w:[0],i:[3,0],"[":[4],o:[7]},j[1]={w:[1],".":[2],"[":[4],o:[7]},j[2]={w:[2],i:[3,0],0:[3,0]},j[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},j[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},j[5]={"'":[4,0],o:8,l:[5,0]},j[6]={'"':[4,0],o:8,l:[6,0]};const V=/^\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 G(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,V.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 B=new Map;function J(e,t){return b(e)?e[t]:null}const Y=e=>e,z=e=>"",X=e=>0===e.length?"":e.join(""),q=e=>null==e?"":d(e)||y(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function K(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function Z(e={}){const t=e.locale,n=function(e){const t=l(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(l(e.named.count)||l(e.named.n))?l(e.named.count)?e.named.count:l(e.named.n)?e.named.n:t:t}(e),r=b(e.pluralRules)&&_(t)&&g(e.pluralRules[t])?e.pluralRules[t]:K,a=b(e.pluralRules)&&_(t)&&g(e.pluralRules[t])?K:void 0,o=e.list||[],s=e.named||{};l(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,s);function c(t){const n=g(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):z)}const i=y(e.processor)&&g(e.processor.normalize)?e.processor.normalize:X,u=y(e.processor)&&g(e.processor.interpolate)?e.processor.interpolate:q,f={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",l="";1===n.length?b(r)?(l=r.modifier||l,o=r.type||o):_(r)&&(l=r||l):2===n.length&&(_(r)&&(l=r||l),_(a)&&(o=a||o));let s=c(t)(f);return"vnode"===o&&d(s)&&l&&(s=s[0]),l?(i=l,e.modifiers?e.modifiers[i]:Y)(s,o):s;var i},message:c,type:y(e.processor)&&_(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:i};return f}function Q(e,t,n){return[...new Set([n,...d(t)?t:b(t)?Object.keys(t):_(t)?[t]:[n]])]}function ee(e,t,n){const r=_(n)?n:ae,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(r);if(!o){o=[];let e=[n];for(;d(e);)e=te(o,e,t);const l=d(t)||!y(t)?t:t.default?t.default:null;e=_(l)?[l]:l,d(e)&&te(o,e,!1),a.__localeChainCache.set(r,o)}return o}function te(e,t,n){let r=!0;for(let a=0;a<t.length&&v(r);a++){const o=t[a];_(o)&&(r=ne(e,t[a],n))}return r}function ne(e,t,n){let r;const a=t.split("-");do{r=re(e,a.join("-"),n),a.splice(-1,1)}while(a.length&&!0===r);return r}function re(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),(d(n)||y(n))&&n[a]&&(r=n[a])}return r}const ae="en-US",oe=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let le,se,ce;let ie=0;function ue(e={}){const t=_(e.version)?e.version:"9.2.0",n=_(e.locale)?e.locale:ae,r=d(e.fallbackLocale)||y(e.fallbackLocale)||_(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,a=y(e.messages)?e.messages:{[n]:{}},o=y(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},l=y(e.numberFormats)?e.numberFormats:{[n]:{}},c=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&_(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&_(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&_(e)?oe(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?oe(e.children):e}),f=e.pluralRules||{},m=g(e.missing)?e.missing:null,p=!v(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,h=!v(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,L=!!e.unresolving,T=g(e.postTranslation)?e.postTranslation:null,E=y(e.processor)?e.processor:null,N=!v(e.warnHtmlMessage)||e.warnHtmlMessage,I=!!e.escapeParameter,O=g(e.messageCompiler)?e.messageCompiler:le,F=g(e.messageResolver)?e.messageResolver:se||J,C=g(e.localeFallbacker)?e.localeFallbacker:ce||Q,P=b(e.fallbackContext)?e.fallbackContext:void 0,R=g(e.onWarn)?e.onWarn:i,w=e,W=b(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,M=b(w.__numberFormatters)?w.__numberFormatters:new Map,S=b(w.__meta)?w.__meta:{};ie++;const x={version:t,cid:ie,locale:n,fallbackLocale:r,messages:a,modifiers:c,pluralRules:f,missing:m,missingWarn:p,fallbackWarn:h,fallbackFormat:k,unresolving:L,postTranslation:T,processor:E,warnHtmlMessage:N,escapeParameter:I,messageCompiler:O,messageResolver:F,localeFallbacker:C,fallbackContext:P,onWarn:R,__meta:S};return x.datetimeFormats=o,x.numberFormats=l,x.__datetimeFormatters=W,x.__numberFormatters=M,x}function fe(e,t,n,r,a){const{missing:o,onWarn:l}=e;if(null!==o){const r=o(e,n,t,a);return _(r)?r:t}return t}function me(e,t,n){e.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const pe=e=>e;let de=Object.create(null);let ge=L;const _e=()=>++ge,ve={INVALID_ARGUMENT:ge,INVALID_DATE_ARGUMENT:_e(),INVALID_ISO_DATE_ARGUMENT:_e(),__EXTEND_POINT__:_e()},be=()=>"",he=e=>g(e);function ke(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:o,fallbackLocale:s,messages:c}=e,[i,u]=Te(...t),m=v(u.missingWarn)?u.missingWarn:e.missingWarn,p=v(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,g=v(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,k=_(u.default)||v(u.default)?v(u.default)?o?i:()=>i:u.default:n?o?i:()=>i:"",y=n||""!==k,L=_(u.locale)?u.locale:e.locale;g&&function(e){d(e.list)?e.list=e.list.map((e=>_(e)?f(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{_(e.named[t])&&(e.named[t]=f(e.named[t]))}))}(u);let[T,E,N]=h?[i,L,c[L]||{}]:ye(e,i,L,s,p,m),I=T,O=i;if(h||_(I)||he(I)||y&&(I=k,O=I),!(h||(_(I)||he(I))&&_(E)))return a?-1:i;let F=!1;const C=he(I)?I:Le(e,i,E,I,O,(()=>{F=!0}));if(F)return I;const P=function(e,t,n,r){const{modifiers:a,pluralRules:o,messageResolver:s,fallbackLocale:c,fallbackWarn:i,missingWarn:u,fallbackContext:f}=e,m=r=>{let a=s(n,r);if(null==a&&f){const[,,e]=ye(f,r,t,c,i,u);a=s(e,r)}if(_(a)){let n=!1;const o=Le(e,r,t,a,r,(()=>{n=!0}));return n?be:o}return he(a)?a:be},p={locale:t,modifiers:a,pluralRules:o,messages:m};e.processor&&(p.processor=e.processor);r.list&&(p.list=r.list);r.named&&(p.named=r.named);l(r.plural)&&(p.pluralIndex=r.plural);return p}(e,E,N,u),R=function(e,t,n){return t(n)}(0,C,Z(P));return r?r(R,i):R}function ye(e,t,n,r,a,o){const{messages:l,onWarn:s,messageResolver:c,localeFallbacker:i}=e,u=i(e,r,n);let f,m={},p=null;for(let n=0;n<u.length&&(f=u[n],m=l[f]||{},null===(p=c(m,t))&&(p=m[t]),!_(p)&&!g(p));n++){const n=fe(e,t,f,0,"translate");n!==t&&(p=n)}return[p,f,m]}function Le(e,t,n,r,a,l){const{messageCompiler:s,warnHtmlMessage:c}=e;if(he(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==s){const e=()=>r;return e.locale=n,e.key=t,e}const i=s(r,function(e,t,n,r,a,l){return{warnHtmlMessage:a,onError:e=>{throw l&&l(e),e},onCacheKey:e=>((e,t,n)=>o({l:e,k:t,s:n}))(t,n,e)}}(0,n,a,0,c,l));return i.locale=n,i.key=t,i.source=r,i}function Te(...e){const[t,n,r]=e,a={};if(!_(t)&&!l(t)&&!he(t))throw Error(ve.INVALID_ARGUMENT);const o=l(t)?String(t):(he(t),t);return l(n)?a.plural=n:_(n)?a.default=n:y(n)&&!c(n)?a.named=n:d(n)&&(a.list=n),l(r)?a.plural=r:_(r)?a.default=r:y(r)&&u(a,r),[o,a]}function Ee(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__datetimeFormatters:s}=e,[i,f,m,p]=Ie(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,g=_(m.locale)?m.locale:e.locale,b=l(e,a,g);if(!_(i)||""===i)return new Intl.DateTimeFormat(g,p).format(f);let h,k={},L=null;for(let t=0;t<b.length&&(h=b[t],k=n[h]||{},L=k[i],!y(L));t++)fe(e,i,h,0,"datetime format");if(!y(L)||!_(h))return r?-1:i;let T=`${h}__${i}`;c(p)||(T=`${T}__${JSON.stringify(p)}`);let E=s.get(T);return E||(E=new Intl.DateTimeFormat(h,u({},L,p)),s.set(T,E)),d?E.formatToParts(f):E.format(f)}const Ne=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Ie(...e){const[t,n,r,a]=e,o={};let s,c={};if(_(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ve.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(e){throw Error(ve.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(ve.INVALID_DATE_ARGUMENT);s=t}else{if(!l(t))throw Error(ve.INVALID_ARGUMENT);s=t}return _(n)?o.key=n:y(n)&&Object.keys(n).forEach((e=>{Ne.includes(e)?c[e]=n[e]:o[e]=n[e]})),_(r)?o.locale=r:y(r)&&(c=r),y(a)&&(c=a),[o.key||"",s,o,c]}function Oe(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__datetimeFormatters.has(n)&&r.__datetimeFormatters.delete(n)}}function Fe(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:o,localeFallbacker:l}=e,{__numberFormatters:s}=e,[i,f,m,p]=Pe(...t);v(m.missingWarn)?m.missingWarn:e.missingWarn;v(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn;const d=!!m.part,g=_(m.locale)?m.locale:e.locale,b=l(e,a,g);if(!_(i)||""===i)return new Intl.NumberFormat(g,p).format(f);let h,k={},L=null;for(let t=0;t<b.length&&(h=b[t],k=n[h]||{},L=k[i],!y(L));t++)fe(e,i,h,0,"number format");if(!y(L)||!_(h))return r?-1:i;let T=`${h}__${i}`;c(p)||(T=`${T}__${JSON.stringify(p)}`);let E=s.get(T);return E||(E=new Intl.NumberFormat(h,u({},L,p)),s.set(T,E)),d?E.formatToParts(f):E.format(f)}const Ce=["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,r,a]=e,o={};let s={};if(!l(t))throw Error(ve.INVALID_ARGUMENT);const c=t;return _(n)?o.key=n:y(n)&&Object.keys(n).forEach((e=>{Ce.includes(e)?s[e]=n[e]:o[e]=n[e]})),_(r)?o.locale=r:y(r)&&(s=r),y(a)&&(s=a),[o.key||"",c,o,s]}function Re(e,t,n){const r=e;for(const e in n){const n=`${t}__${e}`;r.__numberFormatters.has(n)&&r.__numberFormatters.delete(n)}}const we="9.2.0";let We=L;const Me=()=>++We,Se={UNEXPECTED_RETURN_TYPE:We,INVALID_ARGUMENT:Me(),MUST_BE_CALL_SETUP_TOP:Me(),NOT_INSLALLED:Me(),NOT_AVAILABLE_IN_LEGACY_MODE:Me(),REQUIRED_VALUE:Me(),INVALID_VALUE:Me(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Me(),NOT_INSLALLED_WITH_PROVIDE:Me(),UNEXPECTED_ERROR:Me(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Me(),BRIDGE_SUPPORT_VUE_2_ONLY:Me(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Me(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Me(),__EXTEND_POINT__:Me()},xe=a("__transrateVNode"),De=a("__datetimeParts"),Ae=a("__numberParts"),$e=a("__setPluralRules"),Ue=a("__legacyVueI18n"),je=a("__injectWithOption"),Ve="__VUE_I18N_BRIDGE__";function He(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Ge(e){if(!b(e))return e;for(const t in e)if(p(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let a=e;for(let e=0;e<r;e++)n[e]in a||(a[n[e]]={}),a=a[n[e]];a[n[r]]=e[t],delete e[t],b(a[n[r]])&&Ge(a[n[r]])}else b(e[t])&&Ge(e[t]);return e}function Be(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:o}=t,l=y(n)?n:d(r)?{}:{[e]:{}};if(d(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(l[t]=l[t]||{},Ye(n,l[t])):Ye(n,l)}else _(e)&&Ye(JSON.parse(e),l)})),null==a&&o)for(const e in l)p(l,e)&&Ge(l[e]);return l}const Je=e=>!b(e)||d(e);function Ye(e,t){if(Je(e)||Je(t))throw Error(Se.INVALID_VALUE);for(const n in e)p(e,n)&&(Je(e[n])||Je(t[n])?t[n]=e[n]:Ye(e[n],t[n]))}function ze(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}let Xe=0;function qe(e){return(n,r,a,o)=>e(r,a,t.getCurrentInstance()||void 0,o)}function Ke(e={},r){const{__root:a}=e,o=void 0===a;let c=!v(e.inheritLocale)||e.inheritLocale;const i=t.ref(a&&c?a.locale.value:_(e.locale)?e.locale:ae),f=t.ref(a&&c?a.fallbackLocale.value:_(e.fallbackLocale)||d(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:i.value),m=t.ref(Be(i.value,e)),p=t.ref(y(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),h=t.ref(y(e.numberFormats)?e.numberFormats:{[i.value]:{}});let k=a?a.missingWarn:!v(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,L=a?a.fallbackWarn:!v(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,T=a?a.fallbackRoot:!v(e.fallbackRoot)||e.fallbackRoot,E=!!e.fallbackFormat,N=g(e.missing)?e.missing:null,I=g(e.missing)?qe(e.missing):null,O=g(e.postTranslation)?e.postTranslation:null,F=a?a.warnHtmlMessage:!v(e.warnHtmlMessage)||e.warnHtmlMessage,C=!!e.escapeParameter;const P=a?a.modifiers:y(e.modifiers)?e.modifiers:{};let R,w,W=e.pluralRules||a&&a.pluralRules;{He(r);const e={locale:i.value,fallbackLocale:f.value,messages:m.value,dateTimeFormats:p.value,numberFormats:h.value,modifiers:P,missing:N,fallbackRoot:T,postTranslation:O,pluralizationRules:W,escapeParameterHtml:C,sync:c,silentFallbackWarn:v(L)?!L:L,silentTranslationWarn:v(k)?!k:k,formatFallbackMessages:v(E)?!E:E,warnHtmlInMessage:v(F)&&F?"warn":"off",__VUE_I18N_BRIDGE__:Ve};R=new r(e)}w=function(){const t={version:we,locale:i.value,fallbackLocale:f.value,messages:m.value,modifiers:P,pluralRules:W,missing:null===I?void 0:I,missingWarn:k,fallbackWarn:L,fallbackFormat:E,unresolving:!0,postTranslation:null===O?void 0:O,warnHtmlMessage:F,escapeParameter:C,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=p.value,t.numberFormats=h.value,t.__datetimeFormatters=y(w)?w.__datetimeFormatters:void 0,t.__numberFormatters=y(w)?w.__numberFormatters:void 0,ue(t)}(),me(w,i.value,f.value);const M=t.computed({get:()=>i.value,set:e=>{i.value=e,R&&!o&&(R.locale=e),w.locale=i.value}}),S=t.computed({get:()=>f.value,set:e=>{f.value=e,R&&!o&&(R.fallbackLocale=e),w.fallbackLocale=f.value,me(w,i.value,e)}}),x=t.computed((()=>m.value)),D=t.computed((()=>p.value)),A=t.computed((()=>h.value));function $(e,t,n,r,o,s){let c;if(i.value,f.value,m.value,p.value,h.value,c=e(w),l(c)&&-1===c){const[e,n]=t();return a&&T?r(a):o(e)}if(s(c))return c;throw Error(Se.UNEXPECTED_RETURN_TYPE)}function U(...e){return $((t=>Reflect.apply(ke,null,[t,...e])),(()=>Te(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>_(e)))}const j={normalize:function(e){return e.map((e=>_(e)||l(e)||v(e)?ze(String(e)):e))},interpolate:e=>e,type:"vnode"};function V(e){return m.value[e]||{}}Xe++,a&&n&&(t.watch(a.locale,(e=>{c&&(i.value=e,R&&!o&&(R.locale=e),w.locale=e,me(w,i.value,f.value))})),t.watch(a.fallbackLocale,(e=>{c&&(f.value=e,R&&!o&&(R.fallbackLocale=e),w.fallbackLocale=e,me(w,i.value,f.value))})));const H={id:Xe,locale:M,fallbackLocale:S,get inheritLocale(){return c},set inheritLocale(e){c=e,R&&(R._sync=e),e&&a&&(i.value=a.locale.value,f.value=a.fallbackLocale.value,R&&(R.locale=a.locale.value,R.fallbackLocale=a.fallbackLocale.value),me(w,i.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:x,get modifiers(){return P},get pluralRules(){return W||{}},get isGlobal(){return o},get missingWarn(){return k},set missingWarn(e){k=e,w.missingWarn=k},get fallbackWarn(){return L},set fallbackWarn(e){L=e,w.fallbackWarn=L},get fallbackRoot(){return T},set fallbackRoot(e){T=e},get fallbackFormat(){return E},set fallbackFormat(e){E=e,w.fallbackFormat=E},get warnHtmlMessage(){return F},set warnHtmlMessage(e){F=e,w.warnHtmlMessage=e},get escapeParameter(){return C},set escapeParameter(e){C=e,w.escapeParameter=e},t:U,getLocaleMessage:V,setLocaleMessage:function(e,t){m.value[e]=t,R&&R.setLocaleMessage(e,t),w.messages=m.value},mergeLocaleMessage:function(e,t){m.value[e]=m.value[e]||{},R&&R.mergeLocaleMessage(e,t),Ye(t,m.value[e]),w.messages=m.value},getPostTranslationHandler:function(){return g(O)?O:null},setPostTranslationHandler:function(e){O=e,w.postTranslation=e},getMissingHandler:function(){return N},setMissingHandler:function(e){null!==e&&(I=qe(e)),N=e,w.missing=I},[$e]:function(e){W=e,w.pluralRules=W}};return H.datetimeFormats=D,H.numberFormats=A,H.rt=function(...e){const[t,n,r]=e;if(r&&!b(r))throw Error(Se.INVALID_ARGUMENT);return U(t,n,u({resolvedMessage:!0},r||{}))},H.te=function(e,t){const n=V(_(t)?t:i.value);return null!==w.messageResolver(n,e)},H.tm=function(e){const t=function(e){let t=null;const n=ee(w,f.value,i.value);for(let r=0;r<n.length;r++){const a=m.value[n[r]]||{},o=w.messageResolver(a,e);if(null!=o){t=o;break}}return t}(e);return null!=t?t:a&&a.tm(e)||{}},H.d=function(...e){return $((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Ie(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>_(e)))},H.n=function(...e){return $((t=>Reflect.apply(Fe,null,[t,...e])),(()=>Pe(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>_(e)))},H.getDateTimeFormat=function(e){return p.value[e]||{}},H.setDateTimeFormat=function(e,t){p.value[e]=t,R&&R.setDateTimeFormat(e,t),w.datetimeFormats=p.value,Oe(w,e,t)},H.mergeDateTimeFormat=function(e,t){p.value[e]=u(p.value[e]||{},t),R&&R.mergeDateTimeFormat(e,t),w.datetimeFormats=p.value,Oe(w,e,t)},H.getNumberFormat=function(e){return h.value[e]||{}},H.setNumberFormat=function(e,t){h.value[e]=t,R&&R.setNumberFormat(e,t),w.numberFormats=h.value,Re(w,e,t)},H.mergeNumberFormat=function(e,t){h.value[e]=u(h.value[e]||{},t),R&&R.mergeNumberFormat(e,t),w.numberFormats=h.value,Re(w,e,t)},H[je]=e.__injectWithOption,H[xe]=function(...e){return $((t=>{let n;const r=t;try{r.processor=j,n=Reflect.apply(ke,null,[r,...e])}finally{r.processor=null}return n}),(()=>Te(...e)),0,(t=>t[xe](...e)),(e=>[ze(e)]),(e=>d(e)))},H[De]=function(...e){return $((t=>Reflect.apply(Ee,null,[t,...e])),(()=>Ie(...e)),0,(t=>t[De](...e)),(()=>[]),(e=>_(e)||d(e)))},H[Ae]=function(...e){return $((t=>Reflect.apply(Fe,null,[t,...e])),(()=>Pe(...e)),0,(t=>t[Ae](...e)),(()=>[]),(e=>_(e)||d(e)))},H[Ue]=R,H}const Ze={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Qe={name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>l(e)||!isNaN(e)}},Ze),setup(e,n){const{slots:r,attrs:a}=n,o=e.i18n||ot({useScope:e.scope,__useComponent:!0});return()=>{const l=Object.keys(r).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=_(e.plural)?+e.plural:e.plural);const c=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...d(t.children)?t.children:[t]]),[]);return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(n,l),i=o[xe](e.keypath,c,s),f=u({},a),m=_(e.tag)||b(e.tag)?e.tag:"span";return t.h(m,f,i)}}};function et(e,n,r,a){const{slots:o,attrs:l}=n;return()=>{const n={part:!0};let s={};e.locale&&(n.locale=e.locale),_(e.format)?n.key=e.format:b(e.format)&&(_(e.format.key)&&(n.key=e.format.key),s=Object.keys(e.format).reduce(((t,n)=>r.includes(n)?u({},t,{[n]:e.format[n]}):t),{}));const c=a(e.value,n,s);let i=[n.key];d(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 d(a=r)&&!_(a[0])&&(r[0].key=`${e.type}-${t}`),r})):_(c)&&(i=[c]);const f=u({},l),m=_(e.tag)||b(e.tag)?e.tag:"span";return t.h(m,f,i)}}const tt={name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},Ze),setup(e,t){const n=e.i18n||ot({useScope:"parent",__useComponent:!0});return et(e,t,Ce,((...e)=>n[Ae](...e)))}},nt={name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ze),setup(e,t){const n=e.i18n||ot({useScope:"parent",__useComponent:!0});return et(e,t,Ne,((...e)=>n[De](...e)))}};let rt=null;const at=a("global-vue-i18n");function ot(e={}){const r=t.getCurrentInstance();if(null==r)throw Error(Se.MUST_BE_CALL_SETUP_TOP);if(null==rt)throw Error(Se.NOT_INSLALLED);const a=function(e){{const t=e.proxy;if(null==t)throw Error(Se.UNEXPECTED_ERROR);const n=t._i18nBridgeRoot;if(!n)throw Error(Se.NOT_INSLALLED);return n}}(r),o=function(e){return e.global}(a),l=function(e){return e.proxy.$options}(r),i=function(e,t){return c(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,l);if("legacy"===a.mode&&!e.__useComponent){if(!a.allowComposition)throw Error(Se.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,n,r,a={}){const o="local"===n,l=t.shallowRef(null);if(o&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(Se.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const c=!v(a.inheritLocale)||a.inheritLocale,i=t.ref(o&&c?r.locale.value:_(a.locale)?a.locale:ae),u=t.ref(o&&c?r.fallbackLocale.value:_(a.fallbackLocale)||d(a.fallbackLocale)||y(a.fallbackLocale)||!1===a.fallbackLocale?a.fallbackLocale:i.value),f=t.ref(Be(i.value,a)),m=t.ref(y(a.datetimeFormats)?a.datetimeFormats:{[i.value]:{}}),p=t.ref(y(a.numberFormats)?a.numberFormats:{[i.value]:{}}),b=o?r.missingWarn:!v(a.missingWarn)&&!s(a.missingWarn)||a.missingWarn,h=o?r.fallbackWarn:!v(a.fallbackWarn)&&!s(a.fallbackWarn)||a.fallbackWarn,k=o?r.fallbackRoot:!v(a.fallbackRoot)||a.fallbackRoot,L=!!a.fallbackFormat,T=g(a.missing)?a.missing:null,E=g(a.postTranslation)?a.postTranslation:null,N=o?r.warnHtmlMessage:!v(a.warnHtmlMessage)||a.warnHtmlMessage,I=!!a.escapeParameter,O=o?r.modifiers:y(a.modifiers)?a.modifiers:{},F=a.pluralRules||o&&r.pluralRules;function C(){return[i.value,u.value,f.value,m.value,p.value]}const P=t.computed({get:()=>l.value?l.value.locale.value:i.value,set:e=>{l.value&&(l.value.locale.value=e),i.value=e}}),R=t.computed({get:()=>l.value?l.value.fallbackLocale.value:u.value,set:e=>{l.value&&(l.value.fallbackLocale.value=e),u.value=e}}),w=t.computed((()=>l.value?l.value.messages.value:f.value)),W=t.computed((()=>m.value)),M=t.computed((()=>p.value));function S(){return l.value?l.value.getPostTranslationHandler():E}function x(e){l.value&&l.value.setPostTranslationHandler(e)}function D(){return l.value?l.value.getMissingHandler():T}function A(e){l.value&&l.value.setMissingHandler(e)}function $(e){return C(),e()}function U(...e){return l.value?$((()=>Reflect.apply(l.value.t,null,[...e]))):$((()=>""))}function j(...e){return l.value?Reflect.apply(l.value.rt,null,[...e]):""}function V(...e){return l.value?$((()=>Reflect.apply(l.value.d,null,[...e]))):$((()=>""))}function H(...e){return l.value?$((()=>Reflect.apply(l.value.n,null,[...e]))):$((()=>""))}function G(e){return l.value?l.value.tm(e):{}}function B(e,t){return!!l.value&&l.value.te(e,t)}function J(e){return l.value?l.value.getLocaleMessage(e):{}}function Y(e,t){l.value&&(l.value.setLocaleMessage(e,t),f.value[e]=t)}function z(e,t){l.value&&l.value.mergeLocaleMessage(e,t)}function X(e){return l.value?l.value.getDateTimeFormat(e):{}}function q(e,t){l.value&&(l.value.setDateTimeFormat(e,t),m.value[e]=t)}function K(e,t){l.value&&l.value.mergeDateTimeFormat(e,t)}function Z(e){return l.value?l.value.getNumberFormat(e):{}}function Q(e,t){l.value&&(l.value.setNumberFormat(e,t),p.value[e]=t)}function ee(e,t){l.value&&l.value.mergeNumberFormat(e,t)}const te={get id(){return l.value?l.value.id:-1},locale:P,fallbackLocale:R,messages:w,datetimeFormats:W,numberFormats:M,get inheritLocale(){return l.value?l.value.inheritLocale:c},set inheritLocale(e){l.value&&(l.value.inheritLocale=e)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(f.value)},get modifiers(){return l.value?l.value.modifiers:O},get pluralRules(){return l.value?l.value.pluralRules:F},get isGlobal(){return!!l.value&&l.value.isGlobal},get missingWarn(){return l.value?l.value.missingWarn:b},set missingWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackWarn(){return l.value?l.value.fallbackWarn:h},set fallbackWarn(e){l.value&&(l.value.missingWarn=e)},get fallbackRoot(){return l.value?l.value.fallbackRoot:k},set fallbackRoot(e){l.value&&(l.value.fallbackRoot=e)},get fallbackFormat(){return l.value?l.value.fallbackFormat:L},set fallbackFormat(e){l.value&&(l.value.fallbackFormat=e)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:N},set warnHtmlMessage(e){l.value&&(l.value.warnHtmlMessage=e)},get escapeParameter(){return l.value?l.value.escapeParameter:I},set escapeParameter(e){l.value&&(l.value.escapeParameter=e)},t:U,getPostTranslationHandler:S,setPostTranslationHandler:x,getMissingHandler:D,setMissingHandler:A,rt:j,d:V,n:H,tm:G,te:B,getLocaleMessage:J,setLocaleMessage:Y,mergeLocaleMessage:z,getDateTimeFormat:X,setDateTimeFormat:q,mergeDateTimeFormat:K,getNumberFormat:Z,setNumberFormat:Q,mergeNumberFormat:ee};function ne(e){e.locale.value=i.value,e.fallbackLocale.value=u.value,Object.keys(f.value).forEach((t=>{e.mergeLocaleMessage(t,f.value[t])})),Object.keys(m.value).forEach((t=>{e.mergeDateTimeFormat(t,m.value[t])})),Object.keys(p.value).forEach((t=>{e.mergeNumberFormat(t,p.value[t])})),e.escapeParameter=I,e.fallbackFormat=L,e.fallbackRoot=k,e.fallbackWarn=h,e.missingWarn=b,e.warnHtmlMessage=N}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(Se.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=l.value=e.proxy.$i18n.__composer;"global"===n?(i.value=t.locale.value,u.value=t.fallbackLocale.value,f.value=t.messages.value,m.value=t.datetimeFormats.value,p.value=t.numberFormats.value):o&&ne(t)})),te}(r,i,o,e)}if("global"===i)return function(e,t,n){let r=b(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Be(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])}))}}(o,e,l),o;if("parent"===i){let t=function(e,t,n=!1){let r=null;const a=t.root;let o=t.parent;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[je]&&(r=null))}if(null!=r)break;if(a===o)break;o=o.parent}return r}(a,r,e.__useComponent);return null==t&&(t=o),t}const f=a;let m=f.__getInstance(r);if(null==m){const a=u({},e);"__i18n"in l&&(a.__i18n=l.__i18n),o&&(a.__root=o),m=Ke(a,rt),function(e,r,a){{const o=r.proxy;if(null==o)throw Error(Se.UNEXPECTED_ERROR);const l=a[Ue];if(l===e)throw Error(Se.UNEXPECTED_ERROR);o._i18n=l,o._i18n_bridge=!0,n&&(o._i18nWatcher=o._i18n.watchI18nData(),o._i18n._sync&&(o._localeWatcher=o._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{o._i18n.subscribeDataChanging(o),s=!0})),t.onUnmounted((()=>{s&&(o._i18n.unsubscribeDataChanging(o),s=!1),o._i18nWatcher&&(o._i18nWatcher(),o._i18n.destroyVM(),delete o._i18nWatcher),o._localeWatcher&&(o._localeWatcher(),delete o._localeWatcher),delete o._i18n_bridge,delete o._i18n}))}}(f,r,m),f.__setInstance(r,m)}return m}var lt;return lt=function(e,t={}){{const n=(t.onCacheKey||pe)(e),r=de[n];if(r)return r;let a=!1;const o=t.onError||T;t.onError=e=>{a=!0,o(e)};const{code:l}=U(e,t),s=new Function(`return ${l}`)();return a?s:de[n]=s}},le=lt,se=function(e,t){if(!b(e))return null;let n=B.get(t);if(n||(n=function(e){const t=[];let n,r,a,o,l,s,c,i=-1,u=0,f=0;const m=[];function p(){const t=e[i+1];if(5===u&&"'"===t||6===u&&'"'===t)return i++,a="\\"+t,m[0](),!0}for(m[0]=()=>{void 0===r?r=a:r+=a},m[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},m[2]=()=>{m[0](),f++},m[3]=()=>{if(f>0)f--,u=4,m[0]();else{if(f=0,void 0===r)return!1;if(r=G(r),!1===r)return!1;m[1]()}};null!==u;)if(i++,n=e[i],"\\"!==n||!p()){if(o=H(n),c=j[u],l=c[o]||c.l||8,8===l)return;if(u=l[0],void 0!==l[1]&&(s=m[l[1]],s&&(a=n,!1===s())))return;if(7===u)return t}}(t),n&&B.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;a=e,o++}return a},ce=ee,e.DatetimeFormat=nt,e.I18nInjectionKey=at,e.NumberFormat=tt,e.Translation=Qe,e.VERSION=we,e.castToVueI18n=e=>{if(!(Ve in e))throw Error(Se.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},n){rt=n;const r=!v(e.legacy)||e.legacy,o=!v(e.globalInjection)||e.globalInjection,l=!r||!!e.allowComposition,s=new Map,[c,i]=function(e,n,r){const a=t.effectScope();{if(!He(r))throw Error(Se.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=a.run((()=>Ke(e,r)));if(null==t)throw Error(Se.UNEXPECTED_ERROR);return[a,t]}}(e,0,n);a("");{const e=i[Ue];let t=null;Object.defineProperty(e,"global",{get:()=>i}),Object.defineProperty(e,"mode",{get:()=>r?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>l}),Object.defineProperty(e,"__instances",{get:()=>s}),Object.defineProperty(e,"install",{writable:!0,value:(n,...a)=>{if(2!==(n&&n.version&&Number(n.version.split(".")[0])||-1))throw Error(Se.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const n=y(t[0])?t[0]:{};(!v(n.globalInstall)||n.globalInstall)&&(e.component(Qe.name,Qe),e.component(tt.name,tt),e.component(nt.name,nt))}(n,...a),!r&&o&&(t=function(e,t,n){const r=t.watchLocale(n);return e.prototype.$t=function(...e){return Reflect.apply(n.t,n,[...e])},e.prototype.$d=function(...e){return Reflect.apply(n.d,n,[...e])},e.prototype.$n=function(...e){return Reflect.apply(n.n,n,[...e])},r}(n,e,i)),n.mixin(function(e,t){return{beforeCreate(){const n=this.$options;if(!n.__VUE18N__INSTANCE__)if(n.i18n=n.i18n||(n.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(n.i18n){if(n.i18n instanceof t){if(n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ye(JSON.parse(t),e))),Object.keys(e).forEach((t=>{n.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=n.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(n.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(n.i18n.root=this.$root,n.i18n.formatter=e.formatter,n.i18n.fallbackLocale=e.fallbackLocale,n.i18n.formatFallbackMessages=e.formatFallbackMessages,n.i18n.silentTranslationWarn=e.silentTranslationWarn,n.i18n.silentFallbackWarn=e.silentFallbackWarn,n.i18n.pluralizationRules=e.pluralizationRules,n.i18n.preserveDirectiveContent=e.preserveDirectiveContent),n.__i18nBridge)try{const e=n.i18n&&n.i18n.messages?n.i18n.messages:{};n.__i18nBridge.forEach((t=>Ye(JSON.parse(t),e))),n.i18n.messages=e}catch(e){}const{sharedMessages:r}=n.i18n;r&&y(r)&&Ye(r,n.i18n.messages),this._i18n=new t(n.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===n.i18n.sync||n.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t&&(this._i18n=n.parent.$i18n);else this._i18n=e},beforeMount(){const n=this.$options;n.__VUE18N__INSTANCE__||"composition"!==e.mode&&(n.i18n=n.i18n||(n.__i18nBridge?{}:null),n.i18n?(n.i18n instanceof t||y(n.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||n.parent&&n.parent.$i18n&&n.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,rt))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),c.stop()}});const n={__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return Object.keys(n).forEach((t=>Object.defineProperty(e,t,{value:n[t]}))),e}},e.useI18n=ot,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueDemi);
/*!
* vue-i18n-bridge v9.2.0-beta.40
* vue-i18n-bridge v9.2.0
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
import{ref as e,computed as a,watch as t,getCurrentInstance as n,h as l,effectScope as r,onBeforeMount as o,onUnmounted as s,shallowRef as i}from"vue-demi";const c="undefined"!=typeof window,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,m=e=>u?Symbol(e):e,f=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),_=e=>"number"==typeof e&&isFinite(e),g=e=>"[object RegExp]"===T(e),p=e=>R(e)&&0===Object.keys(e).length;function v(e,a){"undefined"!=typeof console&&(console.warn("[intlify] "+e),a&&console.warn(a.stack))}const b=Object.assign;function d(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const h=Object.prototype.hasOwnProperty;function k(e,a){return h.call(e,a)}const y=Array.isArray,E=e=>"function"==typeof e,L=e=>"string"==typeof e,N=e=>"boolean"==typeof e,F=e=>null!==e&&"object"==typeof e,I=Object.prototype.toString,T=e=>I.call(e),R=e=>"[object Object]"===T(e),O=15,W=[];W[0]={w:[0],i:[3,0],"[":[4],o:[7]},W[1]={w:[1],".":[2],"[":[4],o:[7]},W[2]={w:[2],i:[3,0],0:[3,0]},W[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},W[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},W[5]={"'":[4,0],o:8,l:[5,0]},W[6]={'"':[4,0],o:8,l:[6,0]};const w=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function M(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 D(e){const a=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(t=a,w.test(t)?function(e){const a=e.charCodeAt(0);return a!==e.charCodeAt(e.length-1)||34!==a&&39!==a?e:e.slice(1,-1)}(a):"*"+a);var t}const C=new Map;function A(e,a){return F(e)?e[a]:null}const P=e=>e,S=e=>"",$=e=>0===e.length?"":e.join(""),U=e=>null==e?"":y(e)||R(e)&&e.toString===I?JSON.stringify(e,null,2):String(e);function j(e,a){return e=Math.abs(e),2===a?e?e>1?1:0:1:e?Math.min(e,2):0}function V(e={}){const a=e.locale,t=function(e){const a=_(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(_(e.named.count)||_(e.named.n))?_(e.named.count)?e.named.count:_(e.named.n)?e.named.n:a:a}(e),n=F(e.pluralRules)&&L(a)&&E(e.pluralRules[a])?e.pluralRules[a]:j,l=F(e.pluralRules)&&L(a)&&E(e.pluralRules[a])?j:void 0,r=e.list||[],o=e.named||{};_(e.pluralIndex)&&function(e,a){a.count||(a.count=e),a.n||(a.n=e)}(t,o);function s(a){const t=E(e.messages)?e.messages(a):!!F(e.messages)&&e.messages[a];return t||(e.parent?e.parent.message(a):S)}const i=R(e.processor)&&E(e.processor.normalize)?e.processor.normalize:$,c=R(e.processor)&&E(e.processor.interpolate)?e.processor.interpolate:U,u={list:e=>r[e],named:e=>o[e],plural:e=>e[n(t,e.length,l)],linked:(a,...t)=>{const[n,l]=t;let r="text",o="";1===t.length?F(n)?(o=n.modifier||o,r=n.type||r):L(n)&&(o=n||o):2===t.length&&(L(n)&&(o=n||o),L(l)&&(r=l||r));let i=s(a)(u);return"vnode"===r&&y(i)&&o&&(i=i[0]),o?(c=o,e.modifiers?e.modifiers[c]:P)(i,r):i;var c},message:s,type:R(e.processor)&&L(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:i};return u}function H(e,a,t){return[...new Set([t,...y(a)?a:F(a)?Object.keys(a):L(a)?[a]:[t]])]}function x(e,a,t){const n=L(t)?t:X,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[t];for(;y(e);)e=G(r,e,a);const o=y(a)||!R(a)?a:a.default?a.default:null;e=L(o)?[o]:o,y(e)&&G(r,e,!1),l.__localeChainCache.set(n,r)}return r}function G(e,a,t){let n=!0;for(let l=0;l<a.length&&N(n);l++){const r=a[l];L(r)&&(n=B(e,a[l],t))}return n}function B(e,a,t){let n;const l=a.split("-");do{n=Y(e,l.join("-"),t),l.splice(-1,1)}while(l.length&&!0===n);return n}function Y(e,a,t){let n=!1;if(!e.includes(a)&&(n=!0,a)){n="!"!==a[a.length-1];const l=a.replace(/!/g,"");e.push(l),(y(t)||R(t))&&t[l]&&(n=t[l])}return n}const X="en-US",z=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let J,q;let Z=0;function K(e={}){const a=L(e.version)?e.version:"9.2.0-beta.40",t=L(e.locale)?e.locale:X,n=y(e.fallbackLocale)||R(e.fallbackLocale)||L(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,l=R(e.messages)?e.messages:{[t]:{}},r=R(e.datetimeFormats)?e.datetimeFormats:{[t]:{}},o=R(e.numberFormats)?e.numberFormats:{[t]:{}},s=b({},e.modifiers||{},{upper:(e,a)=>"text"===a&&L(e)?e.toUpperCase():"vnode"===a&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,a)=>"text"===a&&L(e)?e.toLowerCase():"vnode"===a&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,a)=>"text"===a&&L(e)?z(e):"vnode"===a&&F(e)&&"__v_isVNode"in e?z(e.children):e}),i=e.pluralRules||{},c=E(e.missing)?e.missing:null,u=!N(e.missingWarn)&&!g(e.missingWarn)||e.missingWarn,m=!N(e.fallbackWarn)&&!g(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,_=!!e.unresolving,p=E(e.postTranslation)?e.postTranslation:null,d=R(e.processor)?e.processor:null,h=!N(e.warnHtmlMessage)||e.warnHtmlMessage,k=!!e.escapeParameter,I=E(e.messageCompiler)?e.messageCompiler:undefined,T=E(e.messageResolver)?e.messageResolver:J||A,O=E(e.localeFallbacker)?e.localeFallbacker:q||H,W=F(e.fallbackContext)?e.fallbackContext:void 0,w=E(e.onWarn)?e.onWarn:v,M=e,D=F(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,C=F(M.__numberFormatters)?M.__numberFormatters:new Map,P=F(M.__meta)?M.__meta:{};Z++;const S={version:a,cid:Z,locale:t,fallbackLocale:n,messages:l,modifiers:s,pluralRules:i,missing:c,missingWarn:u,fallbackWarn:m,fallbackFormat:f,unresolving:_,postTranslation:p,processor:d,warnHtmlMessage:h,escapeParameter:k,messageCompiler:I,messageResolver:T,localeFallbacker:O,fallbackContext:W,onWarn:w,__meta:P};return S.datetimeFormats=r,S.numberFormats=o,S.__datetimeFormatters=D,S.__numberFormatters=C,S}function Q(e,a,t,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,t,a,l);return L(n)?n:a}return a}function ee(e,a,t){e.__localeChainCache=new Map,e.localeFallbacker(e,t,a)}let ae=O;const te=()=>++ae,ne={INVALID_ARGUMENT:ae,INVALID_DATE_ARGUMENT:te(),INVALID_ISO_DATE_ARGUMENT:te(),__EXTEND_POINT__:te()},le=()=>"",re=e=>E(e);function oe(e,...a){const{fallbackFormat:t,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:o,messages:s}=e,[i,c]=ce(...a),u=N(c.missingWarn)?c.missingWarn:e.missingWarn,m=N(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=N(c.escapeParameter)?c.escapeParameter:e.escapeParameter,g=!!c.resolvedMessage,p=L(c.default)||N(c.default)?N(c.default)?r?i:()=>i:c.default:t?r?i:()=>i:"",v=t||""!==p,b=L(c.locale)?c.locale:e.locale;f&&function(e){y(e.list)?e.list=e.list.map((e=>L(e)?d(e):e)):F(e.named)&&Object.keys(e.named).forEach((a=>{L(e.named[a])&&(e.named[a]=d(e.named[a]))}))}(c);let[h,k,E]=g?[i,b,s[b]||{}]:se(e,i,b,o,m,u),I=h,T=i;if(g||L(I)||re(I)||v&&(I=p,T=I),!(g||(L(I)||re(I))&&L(k)))return l?-1:i;let R=!1;const O=re(I)?I:ie(e,i,k,I,T,(()=>{R=!0}));if(R)return I;const W=function(e,a,t,n){const{modifiers:l,pluralRules:r,messageResolver:o,fallbackLocale:s,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m=n=>{let l=o(t,n);if(null==l&&u){const[,,e]=se(u,n,a,s,i,c);l=o(e,n)}if(L(l)){let t=!1;const r=ie(e,n,a,l,n,(()=>{t=!0}));return t?le:r}return re(l)?l:le},f={locale:a,modifiers:l,pluralRules:r,messages:m};e.processor&&(f.processor=e.processor);n.list&&(f.list=n.list);n.named&&(f.named=n.named);_(n.plural)&&(f.pluralIndex=n.plural);return f}(e,k,E,c),w=function(e,a,t){return a(t)}(0,O,V(W));return n?n(w,i):w}function se(e,a,t,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,t);let m,f={},_=null;for(let t=0;t<u.length&&(m=u[t],f=o[m]||{},null===(_=i(f,a))&&(_=f[a]),!L(_)&&!E(_));t++){const t=Q(e,a,m,0,"translate");t!==a&&(_=t)}return[_,m,f]}function ie(e,a,t,n,l,r){const{messageCompiler:o,warnHtmlMessage:s}=e;if(re(n)){const e=n;return e.locale=e.locale||t,e.key=e.key||a,e}if(null==o){const e=()=>n;return e.locale=t,e.key=a,e}const i=o(n,function(e,a,t,n,l,r){return{warnHtmlMessage:l,onError:e=>{throw r&&r(e),e},onCacheKey:e=>((e,a,t)=>f({l:e,k:a,s:t}))(a,t,e)}}(0,t,l,0,s,r));return i.locale=t,i.key=a,i.source=n,i}function ce(...e){const[a,t,n]=e,l={};if(!L(a)&&!_(a)&&!re(a))throw Error(ne.INVALID_ARGUMENT);const r=_(a)?String(a):(re(a),a);return _(t)?l.plural=t:L(t)?l.default=t:R(t)&&!p(t)?l.named=t:y(t)&&(l.list=t),_(n)?l.plural=n:L(n)?l.default=n:R(n)&&b(l,n),[r,l]}function ue(e,...a){const{datetimeFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,c,u,m]=fe(...a);N(u.missingWarn)?u.missingWarn:e.missingWarn;N(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,_=L(u.locale)?u.locale:e.locale,g=o(e,l,_);if(!L(i)||""===i)return new Intl.DateTimeFormat(_,m).format(c);let v,d={},h=null;for(let a=0;a<g.length&&(v=g[a],d=t[v]||{},h=d[i],!R(h));a++)Q(e,i,v,0,"datetime format");if(!R(h)||!L(v))return n?-1:i;let k=`${v}__${i}`;p(m)||(k=`${k}__${JSON.stringify(m)}`);let y=s.get(k);return y||(y=new Intl.DateTimeFormat(v,b({},h,m)),s.set(k,y)),f?y.formatToParts(c):y.format(c)}const me=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fe(...e){const[a,t,n,l]=e,r={};let o,s={};if(L(a)){const e=a.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ne.INVALID_ISO_DATE_ARGUMENT);const t=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(t);try{o.toISOString()}catch(e){throw Error(ne.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===T(a)){if(isNaN(a.getTime()))throw Error(ne.INVALID_DATE_ARGUMENT);o=a}else{if(!_(a))throw Error(ne.INVALID_ARGUMENT);o=a}return L(t)?r.key=t:R(t)&&Object.keys(t).forEach((e=>{me.includes(e)?s[e]=t[e]:r[e]=t[e]})),L(n)?r.locale=n:R(n)&&(s=n),R(l)&&(s=l),[r.key||"",o,r,s]}function _e(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__datetimeFormatters.has(t)&&n.__datetimeFormatters.delete(t)}}function ge(e,...a){const{numberFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,c,u,m]=ve(...a);N(u.missingWarn)?u.missingWarn:e.missingWarn;N(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,_=L(u.locale)?u.locale:e.locale,g=o(e,l,_);if(!L(i)||""===i)return new Intl.NumberFormat(_,m).format(c);let v,d={},h=null;for(let a=0;a<g.length&&(v=g[a],d=t[v]||{},h=d[i],!R(h));a++)Q(e,i,v,0,"number format");if(!R(h)||!L(v))return n?-1:i;let k=`${v}__${i}`;p(m)||(k=`${k}__${JSON.stringify(m)}`);let y=s.get(k);return y||(y=new Intl.NumberFormat(v,b({},h,m)),s.set(k,y)),f?y.formatToParts(c):y.format(c)}const pe=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ve(...e){const[a,t,n,l]=e,r={};let o={};if(!_(a))throw Error(ne.INVALID_ARGUMENT);const s=a;return L(t)?r.key=t:R(t)&&Object.keys(t).forEach((e=>{pe.includes(e)?o[e]=t[e]:r[e]=t[e]})),L(n)?r.locale=n:R(n)&&(o=n),R(l)&&(o=l),[r.key||"",s,r,o]}function be(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__numberFormatters.has(t)&&n.__numberFormatters.delete(t)}}const de="9.2.0-beta.40";let he=O;const ke=()=>++he,ye={UNEXPECTED_RETURN_TYPE:he,INVALID_ARGUMENT:ke(),MUST_BE_CALL_SETUP_TOP:ke(),NOT_INSLALLED:ke(),NOT_AVAILABLE_IN_LEGACY_MODE:ke(),REQUIRED_VALUE:ke(),INVALID_VALUE:ke(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ke(),NOT_INSLALLED_WITH_PROVIDE:ke(),UNEXPECTED_ERROR:ke(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ke(),BRIDGE_SUPPORT_VUE_2_ONLY:ke(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ke(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ke(),__EXTEND_POINT__:ke()},Ee=m("__transrateVNode"),Le=m("__datetimeParts"),Ne=m("__numberParts"),Fe=m("__setPluralRules"),Ie=m("__legacyVueI18n"),Te=m("__injectWithOption");function Re(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Oe(e){if(!F(e))return e;for(const a in e)if(k(e,a))if(a.includes(".")){const t=a.split("."),n=t.length-1;let l=e;for(let e=0;e<n;e++)t[e]in l||(l[t[e]]={}),l=l[t[e]];l[t[n]]=e[a],delete e[a],F(l[t[n]])&&Oe(l[t[n]])}else F(e[a])&&Oe(e[a]);return e}function We(e,a){const{messages:t,__i18n:n,messageResolver:l,flatJson:r}=a,o=R(t)?t:y(n)?{}:{[e]:{}};if(y(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:a,resource:t}=e;a?(o[a]=o[a]||{},Me(t,o[a])):Me(t,o)}else L(e)&&Me(JSON.parse(e),o)})),null==l&&r)for(const e in o)k(o,e)&&Oe(o[e]);return o}const we=e=>!F(e)||y(e);function Me(e,a){if(we(e)||we(a))throw Error(ye.INVALID_VALUE);for(const t in e)k(e,t)&&(we(e[t])||we(a[t])?a[t]=e[t]:Me(e[t],a[t]))}function De(e){return function(e){const a=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:a,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>a}}(e)}let Ce=0;function Ae(e){return(a,t,l,r)=>e(t,l,n()||void 0,r)}function Pe(n={},l){const{__root:r}=n,o=void 0===r;let s=!N(n.inheritLocale)||n.inheritLocale;const i=e(r&&s?r.locale.value:L(n.locale)?n.locale:X),u=e(r&&s?r.fallbackLocale.value:L(n.fallbackLocale)||y(n.fallbackLocale)||R(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:i.value),m=e(We(i.value,n)),f=e(R(n.datetimeFormats)?n.datetimeFormats:{[i.value]:{}}),p=e(R(n.numberFormats)?n.numberFormats:{[i.value]:{}});let v=r?r.missingWarn:!N(n.missingWarn)&&!g(n.missingWarn)||n.missingWarn,d=r?r.fallbackWarn:!N(n.fallbackWarn)&&!g(n.fallbackWarn)||n.fallbackWarn,h=r?r.fallbackRoot:!N(n.fallbackRoot)||n.fallbackRoot,k=!!n.fallbackFormat,I=E(n.missing)?n.missing:null,T=E(n.missing)?Ae(n.missing):null,O=E(n.postTranslation)?n.postTranslation:null,W=r?r.warnHtmlMessage:!N(n.warnHtmlMessage)||n.warnHtmlMessage,w=!!n.escapeParameter;const M=r?r.modifiers:R(n.modifiers)?n.modifiers:{};let D,C,A=n.pluralRules||r&&r.pluralRules;{Re(l);const e={locale:i.value,fallbackLocale:u.value,messages:m.value,dateTimeFormats:f.value,numberFormats:p.value,modifiers:M,missing:I,fallbackRoot:h,postTranslation:O,pluralizationRules:A,escapeParameterHtml:w,sync:s,silentFallbackWarn:N(d)?!d:d,silentTranslationWarn:N(v)?!v:v,formatFallbackMessages:N(k)?!k:k,warnHtmlInMessage:N(W)&&W?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};D=new l(e)}C=function(){const e={version:"9.2.0-beta.40",locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:M,pluralRules:A,missing:null===T?void 0:T,missingWarn:v,fallbackWarn:d,fallbackFormat:k,unresolving:!0,postTranslation:null===O?void 0:O,warnHtmlMessage:W,escapeParameter:w,messageResolver:n.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=f.value,e.numberFormats=p.value,e.__datetimeFormatters=R(C)?C.__datetimeFormatters:void 0,e.__numberFormatters=R(C)?C.__numberFormatters:void 0,K(e)}(),ee(C,i.value,u.value);const P=a({get:()=>i.value,set:e=>{i.value=e,D&&!o&&(D.locale=e),C.locale=i.value}}),S=a({get:()=>u.value,set:e=>{u.value=e,D&&!o&&(D.fallbackLocale=e),C.fallbackLocale=u.value,ee(C,i.value,e)}}),$=a((()=>m.value)),U=a((()=>f.value)),j=a((()=>p.value));function V(e,a,t,n,l,o){let s;if(i.value,u.value,m.value,f.value,p.value,s=e(C),_(s)&&-1===s){const[e,t]=a();return r&&h?n(r):l(e)}if(o(s))return s;throw Error(ye.UNEXPECTED_RETURN_TYPE)}function H(...e){return V((a=>Reflect.apply(oe,null,[a,...e])),(()=>ce(...e)),0,(a=>Reflect.apply(a.t,a,[...e])),(e=>e),(e=>L(e)))}const G={normalize:function(e){return e.map((e=>L(e)||_(e)||N(e)?De(String(e)):e))},interpolate:e=>e,type:"vnode"};function B(e){return m.value[e]||{}}Ce++,r&&c&&(t(r.locale,(e=>{s&&(i.value=e,D&&!o&&(D.locale=e),C.locale=e,ee(C,i.value,u.value))})),t(r.fallbackLocale,(e=>{s&&(u.value=e,D&&!o&&(D.fallbackLocale=e),C.fallbackLocale=e,ee(C,i.value,u.value))})));const Y={id:Ce,locale:P,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,D&&(D._sync=e),e&&r&&(i.value=r.locale.value,u.value=r.fallbackLocale.value,D&&(D.locale=r.locale.value,D.fallbackLocale=r.fallbackLocale.value),ee(C,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:$,get modifiers(){return M},get pluralRules(){return A||{}},get isGlobal(){return o},get missingWarn(){return v},set missingWarn(e){v=e,C.missingWarn=v},get fallbackWarn(){return d},set fallbackWarn(e){d=e,C.fallbackWarn=d},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return k},set fallbackFormat(e){k=e,C.fallbackFormat=k},get warnHtmlMessage(){return W},set warnHtmlMessage(e){W=e,C.warnHtmlMessage=e},get escapeParameter(){return w},set escapeParameter(e){w=e,C.escapeParameter=e},t:H,getLocaleMessage:B,setLocaleMessage:function(e,a){m.value[e]=a,D&&D.setLocaleMessage(e,a),C.messages=m.value},mergeLocaleMessage:function(e,a){m.value[e]=m.value[e]||{},D&&D.mergeLocaleMessage(e,a),Me(a,m.value[e]),C.messages=m.value},getPostTranslationHandler:function(){return E(O)?O:null},setPostTranslationHandler:function(e){O=e,C.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(T=Ae(e)),I=e,C.missing=T},[Fe]:function(e){A=e,C.pluralRules=A}};return Y.datetimeFormats=U,Y.numberFormats=j,Y.rt=function(...e){const[a,t,n]=e;if(n&&!F(n))throw Error(ye.INVALID_ARGUMENT);return H(a,t,b({resolvedMessage:!0},n||{}))},Y.te=function(e,a){const t=B(L(a)?a:i.value);return null!==C.messageResolver(t,e)},Y.tm=function(e){const a=function(e){let a=null;const t=x(C,u.value,i.value);for(let n=0;n<t.length;n++){const l=m.value[t[n]]||{},r=C.messageResolver(l,e);if(null!=r){a=r;break}}return a}(e);return null!=a?a:r&&r.tm(e)||{}},Y.d=function(...e){return V((a=>Reflect.apply(ue,null,[a,...e])),(()=>fe(...e)),0,(a=>Reflect.apply(a.d,a,[...e])),(()=>""),(e=>L(e)))},Y.n=function(...e){return V((a=>Reflect.apply(ge,null,[a,...e])),(()=>ve(...e)),0,(a=>Reflect.apply(a.n,a,[...e])),(()=>""),(e=>L(e)))},Y.getDateTimeFormat=function(e){return f.value[e]||{}},Y.setDateTimeFormat=function(e,a){f.value[e]=a,D&&D.setDateTimeFormat(e,a),C.datetimeFormats=f.value,_e(C,e,a)},Y.mergeDateTimeFormat=function(e,a){f.value[e]=b(f.value[e]||{},a),D&&D.mergeDateTimeFormat(e,a),C.datetimeFormats=f.value,_e(C,e,a)},Y.getNumberFormat=function(e){return p.value[e]||{}},Y.setNumberFormat=function(e,a){p.value[e]=a,D&&D.setNumberFormat(e,a),C.numberFormats=p.value,be(C,e,a)},Y.mergeNumberFormat=function(e,a){p.value[e]=b(p.value[e]||{},a),D&&D.mergeNumberFormat(e,a),C.numberFormats=p.value,be(C,e,a)},Y[Te]=n.__injectWithOption,Y[Ee]=function(...e){return V((a=>{let t;const n=a;try{n.processor=G,t=Reflect.apply(oe,null,[n,...e])}finally{n.processor=null}return t}),(()=>ce(...e)),0,(a=>a[Ee](...e)),(e=>[De(e)]),(e=>y(e)))},Y[Le]=function(...e){return V((a=>Reflect.apply(ue,null,[a,...e])),(()=>fe(...e)),0,(a=>a[Le](...e)),(()=>[]),(e=>L(e)||y(e)))},Y[Ne]=function(...e){return V((a=>Reflect.apply(ge,null,[a,...e])),(()=>ve(...e)),0,(a=>a[Ne](...e)),(()=>[]),(e=>L(e)||y(e)))},Y[Ie]=D,Y}const Se={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const $e={name:"i18n-t",props:b({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>_(e)||!isNaN(e)}},Se),setup(e,a){const{slots:t,attrs:n}=a,r=e.i18n||Be({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(t).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=L(e.plural)?+e.plural:e.plural);const i=function({slots:e},a){if(1===a.length&&"default"===a[0])return(e.default?e.default():[]).reduce(((e,a)=>[...e,...y(a.children)?a.children:[a]]),[]);return a.reduce(((a,t)=>{const n=e[t];return n&&(a[t]=n()),a}),{})}(a,o),c=r[Ee](e.keypath,i,s),u=b({},n),m=L(e.tag)||F(e.tag)?e.tag:"span";return l(m,u,c)}}};function Ue(e,a,t,n){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),L(e.format)?a.key=e.format:F(e.format)&&(L(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((a,n)=>t.includes(n)?b({},a,{[n]:e.format[n]}):a),{}));const i=n(e.value,a,s);let c=[a.key];y(i)?c=i.map(((e,a)=>{const t=r[e.type],n=t?t({[e.type]:e.value,index:a,parts:i}):[e.value];var l;return y(l=n)&&!L(l[0])&&(n[0].key=`${e.type}-${a}`),n})):L(i)&&(c=[i]);const u=b({},o),m=L(e.tag)||F(e.tag)?e.tag:"span";return l(m,u,c)}}const je={name:"i18n-n",props:b({value:{type:Number,required:!0},format:{type:[String,Object]}},Se),setup(e,a){const t=e.i18n||Be({useScope:"parent",__useComponent:!0});return Ue(e,a,pe,((...e)=>t[Ne](...e)))}},Ve={name:"i18n-d",props:b({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Se),setup(e,a){const t=e.i18n||Be({useScope:"parent",__useComponent:!0});return Ue(e,a,me,((...e)=>t[Le](...e)))}};let He=null;const xe=m("global-vue-i18n");function Ge(e={},a){He=a;const t=!N(e.legacy)||e.legacy,n=!N(e.globalInjection)||e.globalInjection,l=!t||!!e.allowComposition,o=new Map,[s,i]=function(e,a,t){const n=r();{if(!Re(t))throw Error(ye.NOT_COMPATIBLE_LEGACY_VUE_I18N);const a=n.run((()=>Pe(e,t)));if(null==a)throw Error(ye.UNEXPECTED_ERROR);return[n,a]}}(e,0,a);m("");{const e=i[Ie];let a=null;Object.defineProperty(e,"global",{get:()=>i}),Object.defineProperty(e,"mode",{get:()=>t?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>l}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{writable:!0,value:(l,...r)=>{if(2!==(l&&l.version&&Number(l.version.split(".")[0])||-1))throw Error(ye.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...a){const t=R(a[0])?a[0]:{};(!N(t.globalInstall)||t.globalInstall)&&(e.component($e.name,$e),e.component(je.name,je),e.component(Ve.name,Ve))}(l,...r),!t&&n&&(a=function(e,a,t){const n=a.watchLocale(t);return e.prototype.$t=function(...e){return Reflect.apply(t.t,t,[...e])},e.prototype.$d=function(...e){return Reflect.apply(t.d,t,[...e])},e.prototype.$n=function(...e){return Reflect.apply(t.n,t,[...e])},n}(l,e,i)),l.mixin(function(e,a){return{beforeCreate(){const t=this.$options;if(!t.__VUE18N__INSTANCE__)if(t.i18n=t.i18n||(t.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(t.i18n){if(t.i18n instanceof a){if(t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Me(JSON.parse(a),e))),Object.keys(e).forEach((a=>{t.i18n.mergeLocaleMessage(a,e[a])}))}catch(e){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(R(t.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this.$root.$i18n:null;if(e&&(t.i18n.root=this.$root,t.i18n.formatter=e.formatter,t.i18n.fallbackLocale=e.fallbackLocale,t.i18n.formatFallbackMessages=e.formatFallbackMessages,t.i18n.silentTranslationWarn=e.silentTranslationWarn,t.i18n.silentFallbackWarn=e.silentFallbackWarn,t.i18n.pluralizationRules=e.pluralizationRules,t.i18n.preserveDirectiveContent=e.preserveDirectiveContent),t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Me(JSON.parse(a),e))),t.i18n.messages=e}catch(e){}const{sharedMessages:n}=t.i18n;n&&R(n)&&Me(n,t.i18n.messages),this._i18n=new a(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a&&(this._i18n=t.parent.$i18n);else this._i18n=e},beforeMount(){const t=this.$options;t.__VUE18N__INSTANCE__||"composition"!==e.mode&&(t.i18n=t.i18n||(t.__i18nBridge?{}:null),t.i18n?(t.i18n instanceof a||R(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const a=this;this.$nextTick((()=>{a._subscribing&&(a._i18n.unsubscribeDataChanging(a),delete a._subscribing),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher)}))}}}(e,He))}}),Object.defineProperty(e,"dispose",{value:()=>{a&&a(),s.stop()}});const r={__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,a){o.set(e,a)},__deleteInstance:function(e){o.delete(e)}};return Object.keys(r).forEach((a=>Object.defineProperty(e,a,{value:r[a]}))),e}}function Be(t={}){const l=n();if(null==l)throw Error(ye.MUST_BE_CALL_SETUP_TOP);if(null==He)throw Error(ye.NOT_INSLALLED);const r=function(e){{const a=e.proxy;if(null==a)throw Error(ye.UNEXPECTED_ERROR);const t=a._i18nBridgeRoot;if(!t)throw Error(ye.NOT_INSLALLED);return t}}(l),u=function(e){return e.global}(r),m=function(e){return e.proxy.$options}(l),f=function(e,a){return p(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}(t,m);if("legacy"===r.mode&&!t.__useComponent){if(!r.allowComposition)throw Error(ye.NOT_AVAILABLE_IN_LEGACY_MODE);return function(t,n,l,r={}){const s="local"===n,c=i(null);if(s&&t.proxy&&!t.proxy.$options.i18n&&!t.proxy.$options.__i18n)throw Error(ye.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=!N(r.inheritLocale)||r.inheritLocale,m=e(s&&u?l.locale.value:L(r.locale)?r.locale:X),f=e(s&&u?l.fallbackLocale.value:L(r.fallbackLocale)||y(r.fallbackLocale)||R(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:m.value),_=e(We(m.value,r)),p=e(R(r.datetimeFormats)?r.datetimeFormats:{[m.value]:{}}),v=e(R(r.numberFormats)?r.numberFormats:{[m.value]:{}}),b=s?l.missingWarn:!N(r.missingWarn)&&!g(r.missingWarn)||r.missingWarn,d=s?l.fallbackWarn:!N(r.fallbackWarn)&&!g(r.fallbackWarn)||r.fallbackWarn,h=s?l.fallbackRoot:!N(r.fallbackRoot)||r.fallbackRoot,k=!!r.fallbackFormat,F=E(r.missing)?r.missing:null,I=E(r.postTranslation)?r.postTranslation:null,T=s?l.warnHtmlMessage:!N(r.warnHtmlMessage)||r.warnHtmlMessage,O=!!r.escapeParameter,W=s?l.modifiers:R(r.modifiers)?r.modifiers:{},w=r.pluralRules||s&&l.pluralRules;function M(){return[m.value,f.value,_.value,p.value,v.value]}const D=a({get:()=>c.value?c.value.locale.value:m.value,set:e=>{c.value&&(c.value.locale.value=e),m.value=e}}),C=a({get:()=>c.value?c.value.fallbackLocale.value:f.value,set:e=>{c.value&&(c.value.fallbackLocale.value=e),f.value=e}}),A=a((()=>c.value?c.value.messages.value:_.value)),P=a((()=>p.value)),S=a((()=>v.value));function $(){return c.value?c.value.getPostTranslationHandler():I}function U(e){c.value&&c.value.setPostTranslationHandler(e)}function j(){return c.value?c.value.getMissingHandler():F}function V(e){c.value&&c.value.setMissingHandler(e)}function H(e){return M(),e()}function x(...e){return c.value?H((()=>Reflect.apply(c.value.t,null,[...e]))):H((()=>""))}function G(...e){return c.value?Reflect.apply(c.value.rt,null,[...e]):""}function B(...e){return c.value?H((()=>Reflect.apply(c.value.d,null,[...e]))):H((()=>""))}function Y(...e){return c.value?H((()=>Reflect.apply(c.value.n,null,[...e]))):H((()=>""))}function z(e){return c.value?c.value.tm(e):{}}function J(e,a){return!!c.value&&c.value.te(e,a)}function q(e){return c.value?c.value.getLocaleMessage(e):{}}function Z(e,a){c.value&&(c.value.setLocaleMessage(e,a),_.value[e]=a)}function K(e,a){c.value&&c.value.mergeLocaleMessage(e,a)}function Q(e){return c.value?c.value.getDateTimeFormat(e):{}}function ee(e,a){c.value&&(c.value.setDateTimeFormat(e,a),p.value[e]=a)}function ae(e,a){c.value&&c.value.mergeDateTimeFormat(e,a)}function te(e){return c.value?c.value.getNumberFormat(e):{}}function ne(e,a){c.value&&(c.value.setNumberFormat(e,a),v.value[e]=a)}function le(e,a){c.value&&c.value.mergeNumberFormat(e,a)}const re={get id(){return c.value?c.value.id:-1},locale:D,fallbackLocale:C,messages:A,datetimeFormats:P,numberFormats:S,get inheritLocale(){return c.value?c.value.inheritLocale:u},set inheritLocale(e){c.value&&(c.value.inheritLocale=e)},get availableLocales(){return c.value?c.value.availableLocales:Object.keys(_.value)},get modifiers(){return c.value?c.value.modifiers:W},get pluralRules(){return c.value?c.value.pluralRules:w},get isGlobal(){return!!c.value&&c.value.isGlobal},get missingWarn(){return c.value?c.value.missingWarn:b},set missingWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackWarn(){return c.value?c.value.fallbackWarn:d},set fallbackWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackRoot(){return c.value?c.value.fallbackRoot:h},set fallbackRoot(e){c.value&&(c.value.fallbackRoot=e)},get fallbackFormat(){return c.value?c.value.fallbackFormat:k},set fallbackFormat(e){c.value&&(c.value.fallbackFormat=e)},get warnHtmlMessage(){return c.value?c.value.warnHtmlMessage:T},set warnHtmlMessage(e){c.value&&(c.value.warnHtmlMessage=e)},get escapeParameter(){return c.value?c.value.escapeParameter:O},set escapeParameter(e){c.value&&(c.value.escapeParameter=e)},t:x,getPostTranslationHandler:$,setPostTranslationHandler:U,getMissingHandler:j,setMissingHandler:V,rt:G,d:B,n:Y,tm:z,te:J,getLocaleMessage:q,setLocaleMessage:Z,mergeLocaleMessage:K,getDateTimeFormat:Q,setDateTimeFormat:ee,mergeDateTimeFormat:ae,getNumberFormat:te,setNumberFormat:ne,mergeNumberFormat:le};function oe(e){e.locale.value=m.value,e.fallbackLocale.value=f.value,Object.keys(_.value).forEach((a=>{e.mergeLocaleMessage(a,_.value[a])})),Object.keys(p.value).forEach((a=>{e.mergeDateTimeFormat(a,p.value[a])})),Object.keys(v.value).forEach((a=>{e.mergeNumberFormat(a,v.value[a])})),e.escapeParameter=O,e.fallbackFormat=k,e.fallbackRoot=h,e.fallbackWarn=d,e.missingWarn=b,e.warnHtmlMessage=T}return o((()=>{if(null==t.proxy||null==t.proxy.$i18n)throw Error(ye.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const e=c.value=t.proxy.$i18n.__composer;"global"===n?(m.value=e.locale.value,f.value=e.fallbackLocale.value,_.value=e.messages.value,p.value=e.datetimeFormats.value,v.value=e.numberFormats.value):s&&oe(e)})),re}(l,f,u,t)}if("global"===f)return function(e,a,t){let n=F(a.messages)?a.messages:{};"__i18nGlobal"in t&&(n=We(e.locale.value,{messages:n,__i18n:t.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((a=>{e.mergeLocaleMessage(a,n[a])})),F(a.datetimeFormats)){const t=Object.keys(a.datetimeFormats);t.length&&t.forEach((t=>{e.mergeDateTimeFormat(t,a.datetimeFormats[t])}))}if(F(a.numberFormats)){const t=Object.keys(a.numberFormats);t.length&&t.forEach((t=>{e.mergeNumberFormat(t,a.numberFormats[t])}))}}(u,t,m),u;if("parent"===f){let e=function(e,a,t=!1){let n=null;const l=a.root;let r=a.parent;for(;null!=r;){const a=e;if("composition"===e.mode)n=a.__getInstance(r);else{const e=a.__getInstance(r);null!=e&&(n=e.__composer,t&&n&&!n[Te]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(r,l,t.__useComponent);return null==e&&(e=u),e}const _=r;let v=_.__getInstance(l);if(null==v){const e=b({},t);"__i18n"in m&&(e.__i18n=m.__i18n),u&&(e.__root=u),v=Pe(e,He),function(e,a,t){{const n=a.proxy;if(null==n)throw Error(ye.UNEXPECTED_ERROR);const l=t[Ie];if(l===e)throw Error(ye.UNEXPECTED_ERROR);n._i18n=l,n._i18n_bridge=!0,c&&(n._i18nWatcher=n._i18n.watchI18nData(),n._i18n._sync&&(n._localeWatcher=n._i18n.watchLocale()));let r=!1;o((()=>{n._i18n.subscribeDataChanging(n),r=!0})),s((()=>{r&&(n._i18n.unsubscribeDataChanging(n),r=!1),n._i18nWatcher&&(n._i18nWatcher(),n._i18n.destroyVM(),delete n._i18nWatcher),n._localeWatcher&&(n._localeWatcher(),delete n._localeWatcher),delete n._i18n_bridge,delete n._i18n}))}}(_,l,v),_.__setInstance(l,v)}return v}const Ye=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(ye.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};J=function(e,a){if(!F(e))return null;let t=C.get(a);if(t||(t=function(e){const a=[];let t,n,l,r,o,s,i,c=-1,u=0,m=0;const f=[];function _(){const a=e[c+1];if(5===u&&"'"===a||6===u&&'"'===a)return c++,l="\\"+a,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(a.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=D(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,t=e[c],"\\"!==t||!_()){if(r=M(t),i=W[u],o=i[r]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=t,!1===s())))return;if(7===u)return a}}(a),t&&C.set(a,t)),!t)return null;const n=t.length;let l=e,r=0;for(;r<n;){const e=l[t[r]];if(void 0===e)return null;l=e,r++}return l},q=x;export{Ve as DatetimeFormat,xe as I18nInjectionKey,je as NumberFormat,$e as Translation,de as VERSION,Ye as castToVueI18n,Ge as createI18n,Be as useI18n};
import{ref as e,computed as a,watch as t,getCurrentInstance as n,h as l,effectScope as r,onBeforeMount as o,onUnmounted as s,shallowRef as i}from"vue-demi";const c="undefined"!=typeof window,u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,m=e=>u?Symbol(e):e,f=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),_=e=>"number"==typeof e&&isFinite(e),g=e=>"[object RegExp]"===T(e),p=e=>R(e)&&0===Object.keys(e).length;function v(e,a){"undefined"!=typeof console&&(console.warn("[intlify] "+e),a&&console.warn(a.stack))}const b=Object.assign;function d(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const h=Object.prototype.hasOwnProperty;function k(e,a){return h.call(e,a)}const y=Array.isArray,E=e=>"function"==typeof e,L=e=>"string"==typeof e,N=e=>"boolean"==typeof e,F=e=>null!==e&&"object"==typeof e,I=Object.prototype.toString,T=e=>I.call(e),R=e=>"[object Object]"===T(e),O=15,W=[];W[0]={w:[0],i:[3,0],"[":[4],o:[7]},W[1]={w:[1],".":[2],"[":[4],o:[7]},W[2]={w:[2],i:[3,0],0:[3,0]},W[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},W[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},W[5]={"'":[4,0],o:8,l:[5,0]},W[6]={'"':[4,0],o:8,l:[6,0]};const w=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function M(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 D(e){const a=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(t=a,w.test(t)?function(e){const a=e.charCodeAt(0);return a!==e.charCodeAt(e.length-1)||34!==a&&39!==a?e:e.slice(1,-1)}(a):"*"+a);var t}const C=new Map;function A(e,a){return F(e)?e[a]:null}const P=e=>e,S=e=>"",$=e=>0===e.length?"":e.join(""),U=e=>null==e?"":y(e)||R(e)&&e.toString===I?JSON.stringify(e,null,2):String(e);function j(e,a){return e=Math.abs(e),2===a?e?e>1?1:0:1:e?Math.min(e,2):0}function V(e={}){const a=e.locale,t=function(e){const a=_(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(_(e.named.count)||_(e.named.n))?_(e.named.count)?e.named.count:_(e.named.n)?e.named.n:a:a}(e),n=F(e.pluralRules)&&L(a)&&E(e.pluralRules[a])?e.pluralRules[a]:j,l=F(e.pluralRules)&&L(a)&&E(e.pluralRules[a])?j:void 0,r=e.list||[],o=e.named||{};_(e.pluralIndex)&&function(e,a){a.count||(a.count=e),a.n||(a.n=e)}(t,o);function s(a){const t=E(e.messages)?e.messages(a):!!F(e.messages)&&e.messages[a];return t||(e.parent?e.parent.message(a):S)}const i=R(e.processor)&&E(e.processor.normalize)?e.processor.normalize:$,c=R(e.processor)&&E(e.processor.interpolate)?e.processor.interpolate:U,u={list:e=>r[e],named:e=>o[e],plural:e=>e[n(t,e.length,l)],linked:(a,...t)=>{const[n,l]=t;let r="text",o="";1===t.length?F(n)?(o=n.modifier||o,r=n.type||r):L(n)&&(o=n||o):2===t.length&&(L(n)&&(o=n||o),L(l)&&(r=l||r));let i=s(a)(u);return"vnode"===r&&y(i)&&o&&(i=i[0]),o?(c=o,e.modifiers?e.modifiers[c]:P)(i,r):i;var c},message:s,type:R(e.processor)&&L(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:i};return u}function H(e,a,t){return[...new Set([t,...y(a)?a:F(a)?Object.keys(a):L(a)?[a]:[t]])]}function x(e,a,t){const n=L(t)?t:X,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[t];for(;y(e);)e=G(r,e,a);const o=y(a)||!R(a)?a:a.default?a.default:null;e=L(o)?[o]:o,y(e)&&G(r,e,!1),l.__localeChainCache.set(n,r)}return r}function G(e,a,t){let n=!0;for(let l=0;l<a.length&&N(n);l++){const r=a[l];L(r)&&(n=B(e,a[l],t))}return n}function B(e,a,t){let n;const l=a.split("-");do{n=Y(e,l.join("-"),t),l.splice(-1,1)}while(l.length&&!0===n);return n}function Y(e,a,t){let n=!1;if(!e.includes(a)&&(n=!0,a)){n="!"!==a[a.length-1];const l=a.replace(/!/g,"");e.push(l),(y(t)||R(t))&&t[l]&&(n=t[l])}return n}const X="en-US",z=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let J,q;let Z=0;function K(e={}){const a=L(e.version)?e.version:"9.2.0",t=L(e.locale)?e.locale:X,n=y(e.fallbackLocale)||R(e.fallbackLocale)||L(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,l=R(e.messages)?e.messages:{[t]:{}},r=R(e.datetimeFormats)?e.datetimeFormats:{[t]:{}},o=R(e.numberFormats)?e.numberFormats:{[t]:{}},s=b({},e.modifiers||{},{upper:(e,a)=>"text"===a&&L(e)?e.toUpperCase():"vnode"===a&&F(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,a)=>"text"===a&&L(e)?e.toLowerCase():"vnode"===a&&F(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,a)=>"text"===a&&L(e)?z(e):"vnode"===a&&F(e)&&"__v_isVNode"in e?z(e.children):e}),i=e.pluralRules||{},c=E(e.missing)?e.missing:null,u=!N(e.missingWarn)&&!g(e.missingWarn)||e.missingWarn,m=!N(e.fallbackWarn)&&!g(e.fallbackWarn)||e.fallbackWarn,f=!!e.fallbackFormat,_=!!e.unresolving,p=E(e.postTranslation)?e.postTranslation:null,d=R(e.processor)?e.processor:null,h=!N(e.warnHtmlMessage)||e.warnHtmlMessage,k=!!e.escapeParameter,I=E(e.messageCompiler)?e.messageCompiler:undefined,T=E(e.messageResolver)?e.messageResolver:J||A,O=E(e.localeFallbacker)?e.localeFallbacker:q||H,W=F(e.fallbackContext)?e.fallbackContext:void 0,w=E(e.onWarn)?e.onWarn:v,M=e,D=F(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,C=F(M.__numberFormatters)?M.__numberFormatters:new Map,P=F(M.__meta)?M.__meta:{};Z++;const S={version:a,cid:Z,locale:t,fallbackLocale:n,messages:l,modifiers:s,pluralRules:i,missing:c,missingWarn:u,fallbackWarn:m,fallbackFormat:f,unresolving:_,postTranslation:p,processor:d,warnHtmlMessage:h,escapeParameter:k,messageCompiler:I,messageResolver:T,localeFallbacker:O,fallbackContext:W,onWarn:w,__meta:P};return S.datetimeFormats=r,S.numberFormats=o,S.__datetimeFormatters=D,S.__numberFormatters=C,S}function Q(e,a,t,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,t,a,l);return L(n)?n:a}return a}function ee(e,a,t){e.__localeChainCache=new Map,e.localeFallbacker(e,t,a)}let ae=O;const te=()=>++ae,ne={INVALID_ARGUMENT:ae,INVALID_DATE_ARGUMENT:te(),INVALID_ISO_DATE_ARGUMENT:te(),__EXTEND_POINT__:te()},le=()=>"",re=e=>E(e);function oe(e,...a){const{fallbackFormat:t,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:o,messages:s}=e,[i,c]=ce(...a),u=N(c.missingWarn)?c.missingWarn:e.missingWarn,m=N(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,f=N(c.escapeParameter)?c.escapeParameter:e.escapeParameter,g=!!c.resolvedMessage,p=L(c.default)||N(c.default)?N(c.default)?r?i:()=>i:c.default:t?r?i:()=>i:"",v=t||""!==p,b=L(c.locale)?c.locale:e.locale;f&&function(e){y(e.list)?e.list=e.list.map((e=>L(e)?d(e):e)):F(e.named)&&Object.keys(e.named).forEach((a=>{L(e.named[a])&&(e.named[a]=d(e.named[a]))}))}(c);let[h,k,E]=g?[i,b,s[b]||{}]:se(e,i,b,o,m,u),I=h,T=i;if(g||L(I)||re(I)||v&&(I=p,T=I),!(g||(L(I)||re(I))&&L(k)))return l?-1:i;let R=!1;const O=re(I)?I:ie(e,i,k,I,T,(()=>{R=!0}));if(R)return I;const W=function(e,a,t,n){const{modifiers:l,pluralRules:r,messageResolver:o,fallbackLocale:s,fallbackWarn:i,missingWarn:c,fallbackContext:u}=e,m=n=>{let l=o(t,n);if(null==l&&u){const[,,e]=se(u,n,a,s,i,c);l=o(e,n)}if(L(l)){let t=!1;const r=ie(e,n,a,l,n,(()=>{t=!0}));return t?le:r}return re(l)?l:le},f={locale:a,modifiers:l,pluralRules:r,messages:m};e.processor&&(f.processor=e.processor);n.list&&(f.list=n.list);n.named&&(f.named=n.named);_(n.plural)&&(f.pluralIndex=n.plural);return f}(e,k,E,c),w=function(e,a,t){return a(t)}(0,O,V(W));return n?n(w,i):w}function se(e,a,t,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,t);let m,f={},_=null;for(let t=0;t<u.length&&(m=u[t],f=o[m]||{},null===(_=i(f,a))&&(_=f[a]),!L(_)&&!E(_));t++){const t=Q(e,a,m,0,"translate");t!==a&&(_=t)}return[_,m,f]}function ie(e,a,t,n,l,r){const{messageCompiler:o,warnHtmlMessage:s}=e;if(re(n)){const e=n;return e.locale=e.locale||t,e.key=e.key||a,e}if(null==o){const e=()=>n;return e.locale=t,e.key=a,e}const i=o(n,function(e,a,t,n,l,r){return{warnHtmlMessage:l,onError:e=>{throw r&&r(e),e},onCacheKey:e=>((e,a,t)=>f({l:e,k:a,s:t}))(a,t,e)}}(0,t,l,0,s,r));return i.locale=t,i.key=a,i.source=n,i}function ce(...e){const[a,t,n]=e,l={};if(!L(a)&&!_(a)&&!re(a))throw Error(ne.INVALID_ARGUMENT);const r=_(a)?String(a):(re(a),a);return _(t)?l.plural=t:L(t)?l.default=t:R(t)&&!p(t)?l.named=t:y(t)&&(l.list=t),_(n)?l.plural=n:L(n)?l.default=n:R(n)&&b(l,n),[r,l]}function ue(e,...a){const{datetimeFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[i,c,u,m]=fe(...a);N(u.missingWarn)?u.missingWarn:e.missingWarn;N(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,_=L(u.locale)?u.locale:e.locale,g=o(e,l,_);if(!L(i)||""===i)return new Intl.DateTimeFormat(_,m).format(c);let v,d={},h=null;for(let a=0;a<g.length&&(v=g[a],d=t[v]||{},h=d[i],!R(h));a++)Q(e,i,v,0,"datetime format");if(!R(h)||!L(v))return n?-1:i;let k=`${v}__${i}`;p(m)||(k=`${k}__${JSON.stringify(m)}`);let y=s.get(k);return y||(y=new Intl.DateTimeFormat(v,b({},h,m)),s.set(k,y)),f?y.formatToParts(c):y.format(c)}const me=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function fe(...e){const[a,t,n,l]=e,r={};let o,s={};if(L(a)){const e=a.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(ne.INVALID_ISO_DATE_ARGUMENT);const t=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(t);try{o.toISOString()}catch(e){throw Error(ne.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===T(a)){if(isNaN(a.getTime()))throw Error(ne.INVALID_DATE_ARGUMENT);o=a}else{if(!_(a))throw Error(ne.INVALID_ARGUMENT);o=a}return L(t)?r.key=t:R(t)&&Object.keys(t).forEach((e=>{me.includes(e)?s[e]=t[e]:r[e]=t[e]})),L(n)?r.locale=n:R(n)&&(s=n),R(l)&&(s=l),[r.key||"",o,r,s]}function _e(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__datetimeFormatters.has(t)&&n.__datetimeFormatters.delete(t)}}function ge(e,...a){const{numberFormats:t,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[i,c,u,m]=ve(...a);N(u.missingWarn)?u.missingWarn:e.missingWarn;N(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,_=L(u.locale)?u.locale:e.locale,g=o(e,l,_);if(!L(i)||""===i)return new Intl.NumberFormat(_,m).format(c);let v,d={},h=null;for(let a=0;a<g.length&&(v=g[a],d=t[v]||{},h=d[i],!R(h));a++)Q(e,i,v,0,"number format");if(!R(h)||!L(v))return n?-1:i;let k=`${v}__${i}`;p(m)||(k=`${k}__${JSON.stringify(m)}`);let y=s.get(k);return y||(y=new Intl.NumberFormat(v,b({},h,m)),s.set(k,y)),f?y.formatToParts(c):y.format(c)}const pe=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ve(...e){const[a,t,n,l]=e,r={};let o={};if(!_(a))throw Error(ne.INVALID_ARGUMENT);const s=a;return L(t)?r.key=t:R(t)&&Object.keys(t).forEach((e=>{pe.includes(e)?o[e]=t[e]:r[e]=t[e]})),L(n)?r.locale=n:R(n)&&(o=n),R(l)&&(o=l),[r.key||"",s,r,o]}function be(e,a,t){const n=e;for(const e in t){const t=`${a}__${e}`;n.__numberFormatters.has(t)&&n.__numberFormatters.delete(t)}}const de="9.2.0";let he=O;const ke=()=>++he,ye={UNEXPECTED_RETURN_TYPE:he,INVALID_ARGUMENT:ke(),MUST_BE_CALL_SETUP_TOP:ke(),NOT_INSLALLED:ke(),NOT_AVAILABLE_IN_LEGACY_MODE:ke(),REQUIRED_VALUE:ke(),INVALID_VALUE:ke(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ke(),NOT_INSLALLED_WITH_PROVIDE:ke(),UNEXPECTED_ERROR:ke(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ke(),BRIDGE_SUPPORT_VUE_2_ONLY:ke(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ke(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ke(),__EXTEND_POINT__:ke()},Ee=m("__transrateVNode"),Le=m("__datetimeParts"),Ne=m("__numberParts"),Fe=m("__setPluralRules"),Ie=m("__legacyVueI18n"),Te=m("__injectWithOption");function Re(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Oe(e){if(!F(e))return e;for(const a in e)if(k(e,a))if(a.includes(".")){const t=a.split("."),n=t.length-1;let l=e;for(let e=0;e<n;e++)t[e]in l||(l[t[e]]={}),l=l[t[e]];l[t[n]]=e[a],delete e[a],F(l[t[n]])&&Oe(l[t[n]])}else F(e[a])&&Oe(e[a]);return e}function We(e,a){const{messages:t,__i18n:n,messageResolver:l,flatJson:r}=a,o=R(t)?t:y(n)?{}:{[e]:{}};if(y(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:a,resource:t}=e;a?(o[a]=o[a]||{},Me(t,o[a])):Me(t,o)}else L(e)&&Me(JSON.parse(e),o)})),null==l&&r)for(const e in o)k(o,e)&&Oe(o[e]);return o}const we=e=>!F(e)||y(e);function Me(e,a){if(we(e)||we(a))throw Error(ye.INVALID_VALUE);for(const t in e)k(e,t)&&(we(e[t])||we(a[t])?a[t]=e[t]:Me(e[t],a[t]))}function De(e){return function(e){const a=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:a,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>a}}(e)}let Ce=0;function Ae(e){return(a,t,l,r)=>e(t,l,n()||void 0,r)}function Pe(n={},l){const{__root:r}=n,o=void 0===r;let s=!N(n.inheritLocale)||n.inheritLocale;const i=e(r&&s?r.locale.value:L(n.locale)?n.locale:X),u=e(r&&s?r.fallbackLocale.value:L(n.fallbackLocale)||y(n.fallbackLocale)||R(n.fallbackLocale)||!1===n.fallbackLocale?n.fallbackLocale:i.value),m=e(We(i.value,n)),f=e(R(n.datetimeFormats)?n.datetimeFormats:{[i.value]:{}}),p=e(R(n.numberFormats)?n.numberFormats:{[i.value]:{}});let v=r?r.missingWarn:!N(n.missingWarn)&&!g(n.missingWarn)||n.missingWarn,d=r?r.fallbackWarn:!N(n.fallbackWarn)&&!g(n.fallbackWarn)||n.fallbackWarn,h=r?r.fallbackRoot:!N(n.fallbackRoot)||n.fallbackRoot,k=!!n.fallbackFormat,I=E(n.missing)?n.missing:null,T=E(n.missing)?Ae(n.missing):null,O=E(n.postTranslation)?n.postTranslation:null,W=r?r.warnHtmlMessage:!N(n.warnHtmlMessage)||n.warnHtmlMessage,w=!!n.escapeParameter;const M=r?r.modifiers:R(n.modifiers)?n.modifiers:{};let D,C,A=n.pluralRules||r&&r.pluralRules;{Re(l);const e={locale:i.value,fallbackLocale:u.value,messages:m.value,dateTimeFormats:f.value,numberFormats:p.value,modifiers:M,missing:I,fallbackRoot:h,postTranslation:O,pluralizationRules:A,escapeParameterHtml:w,sync:s,silentFallbackWarn:N(d)?!d:d,silentTranslationWarn:N(v)?!v:v,formatFallbackMessages:N(k)?!k:k,warnHtmlInMessage:N(W)&&W?"warn":"off",__VUE_I18N_BRIDGE__:"__VUE_I18N_BRIDGE__"};D=new l(e)}C=function(){const e={version:"9.2.0",locale:i.value,fallbackLocale:u.value,messages:m.value,modifiers:M,pluralRules:A,missing:null===T?void 0:T,missingWarn:v,fallbackWarn:d,fallbackFormat:k,unresolving:!0,postTranslation:null===O?void 0:O,warnHtmlMessage:W,escapeParameter:w,messageResolver:n.messageResolver,__meta:{framework:"vue"}};return e.datetimeFormats=f.value,e.numberFormats=p.value,e.__datetimeFormatters=R(C)?C.__datetimeFormatters:void 0,e.__numberFormatters=R(C)?C.__numberFormatters:void 0,K(e)}(),ee(C,i.value,u.value);const P=a({get:()=>i.value,set:e=>{i.value=e,D&&!o&&(D.locale=e),C.locale=i.value}}),S=a({get:()=>u.value,set:e=>{u.value=e,D&&!o&&(D.fallbackLocale=e),C.fallbackLocale=u.value,ee(C,i.value,e)}}),$=a((()=>m.value)),U=a((()=>f.value)),j=a((()=>p.value));function V(e,a,t,n,l,o){let s;if(i.value,u.value,m.value,f.value,p.value,s=e(C),_(s)&&-1===s){const[e,t]=a();return r&&h?n(r):l(e)}if(o(s))return s;throw Error(ye.UNEXPECTED_RETURN_TYPE)}function H(...e){return V((a=>Reflect.apply(oe,null,[a,...e])),(()=>ce(...e)),0,(a=>Reflect.apply(a.t,a,[...e])),(e=>e),(e=>L(e)))}const G={normalize:function(e){return e.map((e=>L(e)||_(e)||N(e)?De(String(e)):e))},interpolate:e=>e,type:"vnode"};function B(e){return m.value[e]||{}}Ce++,r&&c&&(t(r.locale,(e=>{s&&(i.value=e,D&&!o&&(D.locale=e),C.locale=e,ee(C,i.value,u.value))})),t(r.fallbackLocale,(e=>{s&&(u.value=e,D&&!o&&(D.fallbackLocale=e),C.fallbackLocale=e,ee(C,i.value,u.value))})));const Y={id:Ce,locale:P,fallbackLocale:S,get inheritLocale(){return s},set inheritLocale(e){s=e,D&&(D._sync=e),e&&r&&(i.value=r.locale.value,u.value=r.fallbackLocale.value,D&&(D.locale=r.locale.value,D.fallbackLocale=r.fallbackLocale.value),ee(C,i.value,u.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:$,get modifiers(){return M},get pluralRules(){return A||{}},get isGlobal(){return o},get missingWarn(){return v},set missingWarn(e){v=e,C.missingWarn=v},get fallbackWarn(){return d},set fallbackWarn(e){d=e,C.fallbackWarn=d},get fallbackRoot(){return h},set fallbackRoot(e){h=e},get fallbackFormat(){return k},set fallbackFormat(e){k=e,C.fallbackFormat=k},get warnHtmlMessage(){return W},set warnHtmlMessage(e){W=e,C.warnHtmlMessage=e},get escapeParameter(){return w},set escapeParameter(e){w=e,C.escapeParameter=e},t:H,getLocaleMessage:B,setLocaleMessage:function(e,a){m.value[e]=a,D&&D.setLocaleMessage(e,a),C.messages=m.value},mergeLocaleMessage:function(e,a){m.value[e]=m.value[e]||{},D&&D.mergeLocaleMessage(e,a),Me(a,m.value[e]),C.messages=m.value},getPostTranslationHandler:function(){return E(O)?O:null},setPostTranslationHandler:function(e){O=e,C.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(T=Ae(e)),I=e,C.missing=T},[Fe]:function(e){A=e,C.pluralRules=A}};return Y.datetimeFormats=U,Y.numberFormats=j,Y.rt=function(...e){const[a,t,n]=e;if(n&&!F(n))throw Error(ye.INVALID_ARGUMENT);return H(a,t,b({resolvedMessage:!0},n||{}))},Y.te=function(e,a){const t=B(L(a)?a:i.value);return null!==C.messageResolver(t,e)},Y.tm=function(e){const a=function(e){let a=null;const t=x(C,u.value,i.value);for(let n=0;n<t.length;n++){const l=m.value[t[n]]||{},r=C.messageResolver(l,e);if(null!=r){a=r;break}}return a}(e);return null!=a?a:r&&r.tm(e)||{}},Y.d=function(...e){return V((a=>Reflect.apply(ue,null,[a,...e])),(()=>fe(...e)),0,(a=>Reflect.apply(a.d,a,[...e])),(()=>""),(e=>L(e)))},Y.n=function(...e){return V((a=>Reflect.apply(ge,null,[a,...e])),(()=>ve(...e)),0,(a=>Reflect.apply(a.n,a,[...e])),(()=>""),(e=>L(e)))},Y.getDateTimeFormat=function(e){return f.value[e]||{}},Y.setDateTimeFormat=function(e,a){f.value[e]=a,D&&D.setDateTimeFormat(e,a),C.datetimeFormats=f.value,_e(C,e,a)},Y.mergeDateTimeFormat=function(e,a){f.value[e]=b(f.value[e]||{},a),D&&D.mergeDateTimeFormat(e,a),C.datetimeFormats=f.value,_e(C,e,a)},Y.getNumberFormat=function(e){return p.value[e]||{}},Y.setNumberFormat=function(e,a){p.value[e]=a,D&&D.setNumberFormat(e,a),C.numberFormats=p.value,be(C,e,a)},Y.mergeNumberFormat=function(e,a){p.value[e]=b(p.value[e]||{},a),D&&D.mergeNumberFormat(e,a),C.numberFormats=p.value,be(C,e,a)},Y[Te]=n.__injectWithOption,Y[Ee]=function(...e){return V((a=>{let t;const n=a;try{n.processor=G,t=Reflect.apply(oe,null,[n,...e])}finally{n.processor=null}return t}),(()=>ce(...e)),0,(a=>a[Ee](...e)),(e=>[De(e)]),(e=>y(e)))},Y[Le]=function(...e){return V((a=>Reflect.apply(ue,null,[a,...e])),(()=>fe(...e)),0,(a=>a[Le](...e)),(()=>[]),(e=>L(e)||y(e)))},Y[Ne]=function(...e){return V((a=>Reflect.apply(ge,null,[a,...e])),(()=>ve(...e)),0,(a=>a[Ne](...e)),(()=>[]),(e=>L(e)||y(e)))},Y[Ie]=D,Y}const Se={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const $e={name:"i18n-t",props:b({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>_(e)||!isNaN(e)}},Se),setup(e,a){const{slots:t,attrs:n}=a,r=e.i18n||Be({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(t).filter((e=>"_"!==e)),s={};e.locale&&(s.locale=e.locale),void 0!==e.plural&&(s.plural=L(e.plural)?+e.plural:e.plural);const i=function({slots:e},a){if(1===a.length&&"default"===a[0])return(e.default?e.default():[]).reduce(((e,a)=>[...e,...y(a.children)?a.children:[a]]),[]);return a.reduce(((a,t)=>{const n=e[t];return n&&(a[t]=n()),a}),{})}(a,o),c=r[Ee](e.keypath,i,s),u=b({},n),m=L(e.tag)||F(e.tag)?e.tag:"span";return l(m,u,c)}}};function Ue(e,a,t,n){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),L(e.format)?a.key=e.format:F(e.format)&&(L(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((a,n)=>t.includes(n)?b({},a,{[n]:e.format[n]}):a),{}));const i=n(e.value,a,s);let c=[a.key];y(i)?c=i.map(((e,a)=>{const t=r[e.type],n=t?t({[e.type]:e.value,index:a,parts:i}):[e.value];var l;return y(l=n)&&!L(l[0])&&(n[0].key=`${e.type}-${a}`),n})):L(i)&&(c=[i]);const u=b({},o),m=L(e.tag)||F(e.tag)?e.tag:"span";return l(m,u,c)}}const je={name:"i18n-n",props:b({value:{type:Number,required:!0},format:{type:[String,Object]}},Se),setup(e,a){const t=e.i18n||Be({useScope:"parent",__useComponent:!0});return Ue(e,a,pe,((...e)=>t[Ne](...e)))}},Ve={name:"i18n-d",props:b({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Se),setup(e,a){const t=e.i18n||Be({useScope:"parent",__useComponent:!0});return Ue(e,a,me,((...e)=>t[Le](...e)))}};let He=null;const xe=m("global-vue-i18n");function Ge(e={},a){He=a;const t=!N(e.legacy)||e.legacy,n=!N(e.globalInjection)||e.globalInjection,l=!t||!!e.allowComposition,o=new Map,[s,i]=function(e,a,t){const n=r();{if(!Re(t))throw Error(ye.NOT_COMPATIBLE_LEGACY_VUE_I18N);const a=n.run((()=>Pe(e,t)));if(null==a)throw Error(ye.UNEXPECTED_ERROR);return[n,a]}}(e,0,a);m("");{const e=i[Ie];let a=null;Object.defineProperty(e,"global",{get:()=>i}),Object.defineProperty(e,"mode",{get:()=>t?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>l}),Object.defineProperty(e,"__instances",{get:()=>o}),Object.defineProperty(e,"install",{writable:!0,value:(l,...r)=>{if(2!==(l&&l.version&&Number(l.version.split(".")[0])||-1))throw Error(ye.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...a){const t=R(a[0])?a[0]:{};(!N(t.globalInstall)||t.globalInstall)&&(e.component($e.name,$e),e.component(je.name,je),e.component(Ve.name,Ve))}(l,...r),!t&&n&&(a=function(e,a,t){const n=a.watchLocale(t);return e.prototype.$t=function(...e){return Reflect.apply(t.t,t,[...e])},e.prototype.$d=function(...e){return Reflect.apply(t.d,t,[...e])},e.prototype.$n=function(...e){return Reflect.apply(t.n,t,[...e])},n}(l,e,i)),l.mixin(function(e,a){return{beforeCreate(){const t=this.$options;if(!t.__VUE18N__INSTANCE__)if(t.i18n=t.i18n||(t.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(t.i18n){if(t.i18n instanceof a){if(t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Me(JSON.parse(a),e))),Object.keys(e).forEach((a=>{t.i18n.mergeLocaleMessage(a,e[a])}))}catch(e){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(R(t.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this.$root.$i18n:null;if(e&&(t.i18n.root=this.$root,t.i18n.formatter=e.formatter,t.i18n.fallbackLocale=e.fallbackLocale,t.i18n.formatFallbackMessages=e.formatFallbackMessages,t.i18n.silentTranslationWarn=e.silentTranslationWarn,t.i18n.silentFallbackWarn=e.silentFallbackWarn,t.i18n.pluralizationRules=e.pluralizationRules,t.i18n.preserveDirectiveContent=e.preserveDirectiveContent),t.__i18nBridge)try{const e=t.i18n&&t.i18n.messages?t.i18n.messages:{};t.__i18nBridge.forEach((a=>Me(JSON.parse(a),e))),t.i18n.messages=e}catch(e){}const{sharedMessages:n}=t.i18n;n&&R(n)&&Me(n,t.i18n.messages),this._i18n=new a(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a&&(this._i18n=t.parent.$i18n);else this._i18n=e},beforeMount(){const t=this.$options;t.__VUE18N__INSTANCE__||"composition"!==e.mode&&(t.i18n=t.i18n||(t.__i18nBridge?{}:null),t.i18n?(t.i18n instanceof a||R(t.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof a||t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof a)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const a=this;this.$nextTick((()=>{a._subscribing&&(a._i18n.unsubscribeDataChanging(a),delete a._subscribing),a._i18nWatcher&&(a._i18nWatcher(),a._i18n.destroyVM(),delete a._i18nWatcher),a._localeWatcher&&(a._localeWatcher(),delete a._localeWatcher)}))}}}(e,He))}}),Object.defineProperty(e,"dispose",{value:()=>{a&&a(),s.stop()}});const r={__getInstance:function(e){return o.get(e)||null},__setInstance:function(e,a){o.set(e,a)},__deleteInstance:function(e){o.delete(e)}};return Object.keys(r).forEach((a=>Object.defineProperty(e,a,{value:r[a]}))),e}}function Be(t={}){const l=n();if(null==l)throw Error(ye.MUST_BE_CALL_SETUP_TOP);if(null==He)throw Error(ye.NOT_INSLALLED);const r=function(e){{const a=e.proxy;if(null==a)throw Error(ye.UNEXPECTED_ERROR);const t=a._i18nBridgeRoot;if(!t)throw Error(ye.NOT_INSLALLED);return t}}(l),u=function(e){return e.global}(r),m=function(e){return e.proxy.$options}(l),f=function(e,a){return p(e)?"__i18n"in a?"local":"global":e.useScope?e.useScope:"local"}(t,m);if("legacy"===r.mode&&!t.__useComponent){if(!r.allowComposition)throw Error(ye.NOT_AVAILABLE_IN_LEGACY_MODE);return function(t,n,l,r={}){const s="local"===n,c=i(null);if(s&&t.proxy&&!t.proxy.$options.i18n&&!t.proxy.$options.__i18n)throw Error(ye.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const u=!N(r.inheritLocale)||r.inheritLocale,m=e(s&&u?l.locale.value:L(r.locale)?r.locale:X),f=e(s&&u?l.fallbackLocale.value:L(r.fallbackLocale)||y(r.fallbackLocale)||R(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:m.value),_=e(We(m.value,r)),p=e(R(r.datetimeFormats)?r.datetimeFormats:{[m.value]:{}}),v=e(R(r.numberFormats)?r.numberFormats:{[m.value]:{}}),b=s?l.missingWarn:!N(r.missingWarn)&&!g(r.missingWarn)||r.missingWarn,d=s?l.fallbackWarn:!N(r.fallbackWarn)&&!g(r.fallbackWarn)||r.fallbackWarn,h=s?l.fallbackRoot:!N(r.fallbackRoot)||r.fallbackRoot,k=!!r.fallbackFormat,F=E(r.missing)?r.missing:null,I=E(r.postTranslation)?r.postTranslation:null,T=s?l.warnHtmlMessage:!N(r.warnHtmlMessage)||r.warnHtmlMessage,O=!!r.escapeParameter,W=s?l.modifiers:R(r.modifiers)?r.modifiers:{},w=r.pluralRules||s&&l.pluralRules;function M(){return[m.value,f.value,_.value,p.value,v.value]}const D=a({get:()=>c.value?c.value.locale.value:m.value,set:e=>{c.value&&(c.value.locale.value=e),m.value=e}}),C=a({get:()=>c.value?c.value.fallbackLocale.value:f.value,set:e=>{c.value&&(c.value.fallbackLocale.value=e),f.value=e}}),A=a((()=>c.value?c.value.messages.value:_.value)),P=a((()=>p.value)),S=a((()=>v.value));function $(){return c.value?c.value.getPostTranslationHandler():I}function U(e){c.value&&c.value.setPostTranslationHandler(e)}function j(){return c.value?c.value.getMissingHandler():F}function V(e){c.value&&c.value.setMissingHandler(e)}function H(e){return M(),e()}function x(...e){return c.value?H((()=>Reflect.apply(c.value.t,null,[...e]))):H((()=>""))}function G(...e){return c.value?Reflect.apply(c.value.rt,null,[...e]):""}function B(...e){return c.value?H((()=>Reflect.apply(c.value.d,null,[...e]))):H((()=>""))}function Y(...e){return c.value?H((()=>Reflect.apply(c.value.n,null,[...e]))):H((()=>""))}function z(e){return c.value?c.value.tm(e):{}}function J(e,a){return!!c.value&&c.value.te(e,a)}function q(e){return c.value?c.value.getLocaleMessage(e):{}}function Z(e,a){c.value&&(c.value.setLocaleMessage(e,a),_.value[e]=a)}function K(e,a){c.value&&c.value.mergeLocaleMessage(e,a)}function Q(e){return c.value?c.value.getDateTimeFormat(e):{}}function ee(e,a){c.value&&(c.value.setDateTimeFormat(e,a),p.value[e]=a)}function ae(e,a){c.value&&c.value.mergeDateTimeFormat(e,a)}function te(e){return c.value?c.value.getNumberFormat(e):{}}function ne(e,a){c.value&&(c.value.setNumberFormat(e,a),v.value[e]=a)}function le(e,a){c.value&&c.value.mergeNumberFormat(e,a)}const re={get id(){return c.value?c.value.id:-1},locale:D,fallbackLocale:C,messages:A,datetimeFormats:P,numberFormats:S,get inheritLocale(){return c.value?c.value.inheritLocale:u},set inheritLocale(e){c.value&&(c.value.inheritLocale=e)},get availableLocales(){return c.value?c.value.availableLocales:Object.keys(_.value)},get modifiers(){return c.value?c.value.modifiers:W},get pluralRules(){return c.value?c.value.pluralRules:w},get isGlobal(){return!!c.value&&c.value.isGlobal},get missingWarn(){return c.value?c.value.missingWarn:b},set missingWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackWarn(){return c.value?c.value.fallbackWarn:d},set fallbackWarn(e){c.value&&(c.value.missingWarn=e)},get fallbackRoot(){return c.value?c.value.fallbackRoot:h},set fallbackRoot(e){c.value&&(c.value.fallbackRoot=e)},get fallbackFormat(){return c.value?c.value.fallbackFormat:k},set fallbackFormat(e){c.value&&(c.value.fallbackFormat=e)},get warnHtmlMessage(){return c.value?c.value.warnHtmlMessage:T},set warnHtmlMessage(e){c.value&&(c.value.warnHtmlMessage=e)},get escapeParameter(){return c.value?c.value.escapeParameter:O},set escapeParameter(e){c.value&&(c.value.escapeParameter=e)},t:x,getPostTranslationHandler:$,setPostTranslationHandler:U,getMissingHandler:j,setMissingHandler:V,rt:G,d:B,n:Y,tm:z,te:J,getLocaleMessage:q,setLocaleMessage:Z,mergeLocaleMessage:K,getDateTimeFormat:Q,setDateTimeFormat:ee,mergeDateTimeFormat:ae,getNumberFormat:te,setNumberFormat:ne,mergeNumberFormat:le};function oe(e){e.locale.value=m.value,e.fallbackLocale.value=f.value,Object.keys(_.value).forEach((a=>{e.mergeLocaleMessage(a,_.value[a])})),Object.keys(p.value).forEach((a=>{e.mergeDateTimeFormat(a,p.value[a])})),Object.keys(v.value).forEach((a=>{e.mergeNumberFormat(a,v.value[a])})),e.escapeParameter=O,e.fallbackFormat=k,e.fallbackRoot=h,e.fallbackWarn=d,e.missingWarn=b,e.warnHtmlMessage=T}return o((()=>{if(null==t.proxy||null==t.proxy.$i18n)throw Error(ye.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const e=c.value=t.proxy.$i18n.__composer;"global"===n?(m.value=e.locale.value,f.value=e.fallbackLocale.value,_.value=e.messages.value,p.value=e.datetimeFormats.value,v.value=e.numberFormats.value):s&&oe(e)})),re}(l,f,u,t)}if("global"===f)return function(e,a,t){let n=F(a.messages)?a.messages:{};"__i18nGlobal"in t&&(n=We(e.locale.value,{messages:n,__i18n:t.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((a=>{e.mergeLocaleMessage(a,n[a])})),F(a.datetimeFormats)){const t=Object.keys(a.datetimeFormats);t.length&&t.forEach((t=>{e.mergeDateTimeFormat(t,a.datetimeFormats[t])}))}if(F(a.numberFormats)){const t=Object.keys(a.numberFormats);t.length&&t.forEach((t=>{e.mergeNumberFormat(t,a.numberFormats[t])}))}}(u,t,m),u;if("parent"===f){let e=function(e,a,t=!1){let n=null;const l=a.root;let r=a.parent;for(;null!=r;){const a=e;if("composition"===e.mode)n=a.__getInstance(r);else{const e=a.__getInstance(r);null!=e&&(n=e.__composer,t&&n&&!n[Te]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(r,l,t.__useComponent);return null==e&&(e=u),e}const _=r;let v=_.__getInstance(l);if(null==v){const e=b({},t);"__i18n"in m&&(e.__i18n=m.__i18n),u&&(e.__root=u),v=Pe(e,He),function(e,a,t){{const n=a.proxy;if(null==n)throw Error(ye.UNEXPECTED_ERROR);const l=t[Ie];if(l===e)throw Error(ye.UNEXPECTED_ERROR);n._i18n=l,n._i18n_bridge=!0,c&&(n._i18nWatcher=n._i18n.watchI18nData(),n._i18n._sync&&(n._localeWatcher=n._i18n.watchLocale()));let r=!1;o((()=>{n._i18n.subscribeDataChanging(n),r=!0})),s((()=>{r&&(n._i18n.unsubscribeDataChanging(n),r=!1),n._i18nWatcher&&(n._i18nWatcher(),n._i18n.destroyVM(),delete n._i18nWatcher),n._localeWatcher&&(n._localeWatcher(),delete n._localeWatcher),delete n._i18n_bridge,delete n._i18n}))}}(_,l,v),_.__setInstance(l,v)}return v}const Ye=e=>{if(!("__VUE_I18N_BRIDGE__"in e))throw Error(ye.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e};J=function(e,a){if(!F(e))return null;let t=C.get(a);if(t||(t=function(e){const a=[];let t,n,l,r,o,s,i,c=-1,u=0,m=0;const f=[];function _(){const a=e[c+1];if(5===u&&"'"===a||6===u&&'"'===a)return c++,l="\\"+a,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(a.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=D(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,t=e[c],"\\"!==t||!_()){if(r=M(t),i=W[u],o=i[r]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=t,!1===s())))return;if(7===u)return a}}(a),t&&C.set(a,t)),!t)return null;const n=t.length;let l=e,r=0;for(;r<n;){const e=l[t[r]];if(void 0===e)return null;l=e,r++}return l},q=x;export{Ve as DatetimeFormat,xe as I18nInjectionKey,je as NumberFormat,$e as Translation,de as VERSION,Ye as castToVueI18n,Ge as createI18n,Be as useI18n};
/*!
* vue-i18n-bridge v9.2.0-beta.40
* vue-i18n-bridge v9.2.0
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/
var VueI18nBridge=function(e,t){"use strict";const a="undefined"!=typeof window,n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=e=>n?Symbol(e):e,r=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 RegExp]"===k(e),i=e=>y(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const u=Object.assign;function m(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function _(e,t){return f.call(e,t)}const g=Array.isArray,p=e=>"function"==typeof e,v=e=>"string"==typeof e,b=e=>"boolean"==typeof e,d=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),y=e=>"[object Object]"===k(e),E=15,L=[];L[0]={w:[0],i:[3,0],"[":[4],o:[7]},L[1]={w:[1],".":[2],"[":[4],o:[7]},L[2]={w:[2],i:[3,0],0:[3,0]},L[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},L[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},L[5]={"'":[4,0],o:8,l:[5,0]},L[6]={'"':[4,0],o:8,l:[6,0]};const N=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function I(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 F(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,N.test(a)?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 a}const T=new Map;function R(e,t){return d(e)?e[t]:null}const O=e=>e,W=e=>"",w=e=>0===e.length?"":e.join(""),M=e=>null==e?"":g(e)||y(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function D(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function C(e={}){const t=e.locale,a=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),n=d(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?e.pluralRules[t]:D,l=d(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?D:void 0,r=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(a,s);function i(t){const a=p(e.messages)?e.messages(t):!!d(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):W)}const c=y(e.processor)&&p(e.processor.normalize)?e.processor.normalize:w,u=y(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:M,m={list:e=>r[e],named:e=>s[e],plural:e=>e[n(a,e.length,l)],linked:(t,...a)=>{const[n,l]=a;let r="text",o="";1===a.length?d(n)?(o=n.modifier||o,r=n.type||r):v(n)&&(o=n||o):2===a.length&&(v(n)&&(o=n||o),v(l)&&(r=l||r));let s=i(t)(m);return"vnode"===r&&g(s)&&o&&(s=s[0]),o?(c=o,e.modifiers?e.modifiers[c]:O)(s,r):s;var c},message:i,type:y(e.processor)&&v(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:c};return m}function A(e,t,a){return[...new Set([a,...g(t)?t:d(t)?Object.keys(t):v(t)?[t]:[a]])]}function P(e,t,a){const n=v(a)?a:j,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;g(e);)e=S(r,e,t);const o=g(t)||!y(t)?t:t.default?t.default:null;e=v(o)?[o]:o,g(e)&&S(r,e,!1),l.__localeChainCache.set(n,r)}return r}function S(e,t,a){let n=!0;for(let l=0;l<t.length&&b(n);l++){const r=t[l];v(r)&&(n=$(e,t[l],a))}return n}function $(e,t,a){let n;const l=t.split("-");do{n=U(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function U(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const l=t.replace(/!/g,"");e.push(l),(g(a)||y(a))&&a[l]&&(n=a[l])}return n}const j="en-US",V=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let H,x;let G=0;function B(e={}){const t=v(e.version)?e.version:"9.2.0-beta.40",a=v(e.locale)?e.locale:j,n=g(e.fallbackLocale)||y(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,l=y(e.messages)?e.messages:{[a]:{}},r=y(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},o=y(e.numberFormats)?e.numberFormats:{[a]:{}},i=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&v(e)?e.toUpperCase():"vnode"===t&&d(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&v(e)?e.toLowerCase():"vnode"===t&&d(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&v(e)?V(e):"vnode"===t&&d(e)&&"__v_isVNode"in e?V(e.children):e}),m=e.pluralRules||{},f=p(e.missing)?e.missing:null,_=!b(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,h=!b(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,E=!!e.unresolving,L=p(e.postTranslation)?e.postTranslation:null,N=y(e.processor)?e.processor:null,I=!b(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter,T=p(e.messageCompiler)?e.messageCompiler:undefined,O=p(e.messageResolver)?e.messageResolver:H||R,W=p(e.localeFallbacker)?e.localeFallbacker:x||A,w=d(e.fallbackContext)?e.fallbackContext:void 0,M=p(e.onWarn)?e.onWarn:c,D=e,C=d(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,P=d(D.__numberFormatters)?D.__numberFormatters:new Map,S=d(D.__meta)?D.__meta:{};G++;const $={version:t,cid:G,locale:a,fallbackLocale:n,messages:l,modifiers:i,pluralRules:m,missing:f,missingWarn:_,fallbackWarn:h,fallbackFormat:k,unresolving:E,postTranslation:L,processor:N,warnHtmlMessage:I,escapeParameter:F,messageCompiler:T,messageResolver:O,localeFallbacker:W,fallbackContext:w,onWarn:M,__meta:S};return $.datetimeFormats=r,$.numberFormats=o,$.__datetimeFormatters=C,$.__numberFormatters=P,$}function Y(e,t,a,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,a,t,l);return v(n)?n:t}return t}function X(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}let z=E;const J=()=>++z,q={INVALID_ARGUMENT:z,INVALID_DATE_ARGUMENT:J(),INVALID_ISO_DATE_ARGUMENT:J(),__EXTEND_POINT__:J()},Z=()=>"",K=e=>p(e);function Q(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:i}=e,[c,u]=ae(...t),f=b(u.missingWarn)?u.missingWarn:e.missingWarn,_=b(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=b(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,k=v(u.default)||b(u.default)?b(u.default)?r?c:()=>c:u.default:a?r?c:()=>c:"",y=a||""!==k,E=v(u.locale)?u.locale:e.locale;p&&function(e){g(e.list)?e.list=e.list.map((e=>v(e)?m(e):e)):d(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=m(e.named[t]))}))}(u);let[L,N,I]=h?[c,E,i[E]||{}]:ee(e,c,E,s,_,f),F=L,T=c;if(h||v(F)||K(F)||y&&(F=k,T=F),!(h||(v(F)||K(F))&&v(N)))return l?-1:c;let R=!1;const O=K(F)?F:te(e,c,N,F,T,(()=>{R=!0}));if(R)return F;const W=function(e,t,a,n){const{modifiers:l,pluralRules:r,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:m}=e,f=n=>{let l=s(a,n);if(null==l&&m){const[,,e]=ee(m,n,t,i,c,u);l=s(e,n)}if(v(l)){let a=!1;const r=te(e,n,t,l,n,(()=>{a=!0}));return a?Z:r}return K(l)?l:Z},_={locale:t,modifiers:l,pluralRules:r,messages:f};e.processor&&(_.processor=e.processor);n.list&&(_.list=n.list);n.named&&(_.named=n.named);o(n.plural)&&(_.pluralIndex=n.plural);return _}(e,N,I,u),w=function(e,t,a){return t(a)}(0,O,C(W));return n?n(w,c):w}function ee(e,t,a,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,f={},_=null;for(let a=0;a<u.length&&(m=u[a],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!v(_)&&!p(_));a++){const a=Y(e,t,m,0,"translate");a!==t&&(_=a)}return[_,m,f]}function te(e,t,a,n,l,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(K(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==s){const e=()=>n;return e.locale=a,e.key=t,e}const c=s(n,function(e,t,a,n,l,o){return{warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,a)=>r({l:e,k:t,s:a}))(t,a,e)}}(0,a,l,0,i,o));return c.locale=a,c.key=t,c.source=n,c}function ae(...e){const[t,a,n]=e,l={};if(!v(t)&&!o(t)&&!K(t))throw Error(q.INVALID_ARGUMENT);const r=o(t)?String(t):(K(t),t);return o(a)?l.plural=a:v(a)?l.default=a:y(a)&&!i(a)?l.named=a:g(a)&&(l.list=a),o(n)?l.plural=n:v(n)?l.default=n:y(n)&&u(l,n),[r,l]}function ne(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,m,f,_]=re(...t);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=v(f.locale)?f.locale:e.locale,d=o(e,l,p);if(!v(c)||""===c)return new Intl.DateTimeFormat(p,_).format(m);let h,k={},E=null;for(let t=0;t<d.length&&(h=d[t],k=a[h]||{},E=k[c],!y(E));t++)Y(e,c,h,0,"datetime format");if(!y(E)||!v(h))return n?-1:c;let L=`${h}__${c}`;i(_)||(L=`${L}__${JSON.stringify(_)}`);let N=s.get(L);return N||(N=new Intl.DateTimeFormat(h,u({},E,_)),s.set(L,N)),g?N.formatToParts(m):N.format(m)}const le=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function re(...e){const[t,a,n,l]=e,r={};let s,i={};if(v(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(q.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();s=new Date(a);try{s.toISOString()}catch(e){throw Error(q.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(q.INVALID_DATE_ARGUMENT);s=t}else{if(!o(t))throw Error(q.INVALID_ARGUMENT);s=t}return v(a)?r.key=a:y(a)&&Object.keys(a).forEach((e=>{le.includes(e)?i[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:y(n)&&(i=n),y(l)&&(i=l),[r.key||"",s,r,i]}function oe(e,t,a){const n=e;for(const e in a){const a=`${t}__${e}`;n.__datetimeFormatters.has(a)&&n.__datetimeFormatters.delete(a)}}function se(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,m,f,_]=ce(...t);b(f.missingWarn)?f.missingWarn:e.missingWarn;b(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=v(f.locale)?f.locale:e.locale,d=o(e,l,p);if(!v(c)||""===c)return new Intl.NumberFormat(p,_).format(m);let h,k={},E=null;for(let t=0;t<d.length&&(h=d[t],k=a[h]||{},E=k[c],!y(E));t++)Y(e,c,h,0,"number format");if(!y(E)||!v(h))return n?-1:c;let L=`${h}__${c}`;i(_)||(L=`${L}__${JSON.stringify(_)}`);let N=s.get(L);return N||(N=new Intl.NumberFormat(h,u({},E,_)),s.set(L,N)),g?N.formatToParts(m):N.format(m)}const ie=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ce(...e){const[t,a,n,l]=e,r={};let s={};if(!o(t))throw Error(q.INVALID_ARGUMENT);const i=t;return v(a)?r.key=a:y(a)&&Object.keys(a).forEach((e=>{ie.includes(e)?s[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:y(n)&&(s=n),y(l)&&(s=l),[r.key||"",i,r,s]}function ue(e,t,a){const n=e;for(const e in a){const a=`${t}__${e}`;n.__numberFormatters.has(a)&&n.__numberFormatters.delete(a)}}const me="9.2.0-beta.40";let fe=E;const _e=()=>++fe,ge={UNEXPECTED_RETURN_TYPE:fe,INVALID_ARGUMENT:_e(),MUST_BE_CALL_SETUP_TOP:_e(),NOT_INSLALLED:_e(),NOT_AVAILABLE_IN_LEGACY_MODE:_e(),REQUIRED_VALUE:_e(),INVALID_VALUE:_e(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:_e(),NOT_INSLALLED_WITH_PROVIDE:_e(),UNEXPECTED_ERROR:_e(),NOT_COMPATIBLE_LEGACY_VUE_I18N:_e(),BRIDGE_SUPPORT_VUE_2_ONLY:_e(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:_e(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:_e(),__EXTEND_POINT__:_e()},pe=l("__transrateVNode"),ve=l("__datetimeParts"),be=l("__numberParts"),de=l("__setPluralRules"),he=l("__legacyVueI18n"),ke=l("__injectWithOption"),ye="__VUE_I18N_BRIDGE__";function Ee(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Le(e){if(!d(e))return e;for(const t in e)if(_(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let l=e;for(let e=0;e<n;e++)a[e]in l||(l[a[e]]={}),l=l[a[e]];l[a[n]]=e[t],delete e[t],d(l[a[n]])&&Le(l[a[n]])}else d(e[t])&&Le(e[t]);return e}function Ne(e,t){const{messages:a,__i18n:n,messageResolver:l,flatJson:r}=t,o=y(a)?a:g(n)?{}:{[e]:{}};if(g(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||{},Fe(a,o[t])):Fe(a,o)}else v(e)&&Fe(JSON.parse(e),o)})),null==l&&r)for(const e in o)_(o,e)&&Le(o[e]);return o}const Ie=e=>!d(e)||g(e);function Fe(e,t){if(Ie(e)||Ie(t))throw Error(ge.INVALID_VALUE);for(const a in e)_(e,a)&&(Ie(e[a])||Ie(t[a])?t[a]=e[a]:Fe(e[a],t[a]))}function Te(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}let Re=0;function Oe(e){return(a,n,l,r)=>e(n,l,t.getCurrentInstance()||void 0,r)}function We(e={},n){const{__root:l}=e,r=void 0===l;let i=!b(e.inheritLocale)||e.inheritLocale;const c=t.ref(l&&i?l.locale.value:v(e.locale)?e.locale:j),m=t.ref(l&&i?l.fallbackLocale.value:v(e.fallbackLocale)||g(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),f=t.ref(Ne(c.value,e)),_=t.ref(y(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),h=t.ref(y(e.numberFormats)?e.numberFormats:{[c.value]:{}});let k=l?l.missingWarn:!b(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,E=l?l.fallbackWarn:!b(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,L=l?l.fallbackRoot:!b(e.fallbackRoot)||e.fallbackRoot,N=!!e.fallbackFormat,I=p(e.missing)?e.missing:null,F=p(e.missing)?Oe(e.missing):null,T=p(e.postTranslation)?e.postTranslation:null,R=l?l.warnHtmlMessage:!b(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter;const W=l?l.modifiers:y(e.modifiers)?e.modifiers:{};let w,M,D=e.pluralRules||l&&l.pluralRules;{Ee(n);const e={locale:c.value,fallbackLocale:m.value,messages:f.value,dateTimeFormats:_.value,numberFormats:h.value,modifiers:W,missing:I,fallbackRoot:L,postTranslation:T,pluralizationRules:D,escapeParameterHtml:O,sync:i,silentFallbackWarn:b(E)?!E:E,silentTranslationWarn:b(k)?!k:k,formatFallbackMessages:b(N)?!N:N,warnHtmlInMessage:b(R)&&R?"warn":"off",__VUE_I18N_BRIDGE__:ye};w=new n(e)}M=function(){const t={version:me,locale:c.value,fallbackLocale:m.value,messages:f.value,modifiers:W,pluralRules:D,missing:null===F?void 0:F,missingWarn:k,fallbackWarn:E,fallbackFormat:N,unresolving:!0,postTranslation:null===T?void 0:T,warnHtmlMessage:R,escapeParameter:O,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=_.value,t.numberFormats=h.value,t.__datetimeFormatters=y(M)?M.__datetimeFormatters:void 0,t.__numberFormatters=y(M)?M.__numberFormatters:void 0,B(t)}(),X(M,c.value,m.value);const C=t.computed({get:()=>c.value,set:e=>{c.value=e,w&&!r&&(w.locale=e),M.locale=c.value}}),A=t.computed({get:()=>m.value,set:e=>{m.value=e,w&&!r&&(w.fallbackLocale=e),M.fallbackLocale=m.value,X(M,c.value,e)}}),S=t.computed((()=>f.value)),$=t.computed((()=>_.value)),U=t.computed((()=>h.value));function V(e,t,a,n,r,s){let i;if(c.value,m.value,f.value,_.value,h.value,i=e(M),o(i)&&-1===i){const[e,a]=t();return l&&L?n(l):r(e)}if(s(i))return i;throw Error(ge.UNEXPECTED_RETURN_TYPE)}function H(...e){return V((t=>Reflect.apply(Q,null,[t,...e])),(()=>ae(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const x={normalize:function(e){return e.map((e=>v(e)||o(e)||b(e)?Te(String(e)):e))},interpolate:e=>e,type:"vnode"};function G(e){return f.value[e]||{}}Re++,l&&a&&(t.watch(l.locale,(e=>{i&&(c.value=e,w&&!r&&(w.locale=e),M.locale=e,X(M,c.value,m.value))})),t.watch(l.fallbackLocale,(e=>{i&&(m.value=e,w&&!r&&(w.fallbackLocale=e),M.fallbackLocale=e,X(M,c.value,m.value))})));const Y={id:Re,locale:C,fallbackLocale:A,get inheritLocale(){return i},set inheritLocale(e){i=e,w&&(w._sync=e),e&&l&&(c.value=l.locale.value,m.value=l.fallbackLocale.value,w&&(w.locale=l.locale.value,w.fallbackLocale=l.fallbackLocale.value),X(M,c.value,m.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:S,get modifiers(){return W},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return k},set missingWarn(e){k=e,M.missingWarn=k},get fallbackWarn(){return E},set fallbackWarn(e){E=e,M.fallbackWarn=E},get fallbackRoot(){return L},set fallbackRoot(e){L=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,M.fallbackFormat=N},get warnHtmlMessage(){return R},set warnHtmlMessage(e){R=e,M.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,M.escapeParameter=e},t:H,getLocaleMessage:G,setLocaleMessage:function(e,t){f.value[e]=t,w&&w.setLocaleMessage(e,t),M.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},w&&w.mergeLocaleMessage(e,t),Fe(t,f.value[e]),M.messages=f.value},getPostTranslationHandler:function(){return p(T)?T:null},setPostTranslationHandler:function(e){T=e,M.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(F=Oe(e)),I=e,M.missing=F},[de]:function(e){D=e,M.pluralRules=D}};return Y.datetimeFormats=$,Y.numberFormats=U,Y.rt=function(...e){const[t,a,n]=e;if(n&&!d(n))throw Error(ge.INVALID_ARGUMENT);return H(t,a,u({resolvedMessage:!0},n||{}))},Y.te=function(e,t){const a=G(v(t)?t:c.value);return null!==M.messageResolver(a,e)},Y.tm=function(e){const t=function(e){let t=null;const a=P(M,m.value,c.value);for(let n=0;n<a.length;n++){const l=f.value[a[n]]||{},r=M.messageResolver(l,e);if(null!=r){t=r;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},Y.d=function(...e){return V((t=>Reflect.apply(ne,null,[t,...e])),(()=>re(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>v(e)))},Y.n=function(...e){return V((t=>Reflect.apply(se,null,[t,...e])),(()=>ce(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>v(e)))},Y.getDateTimeFormat=function(e){return _.value[e]||{}},Y.setDateTimeFormat=function(e,t){_.value[e]=t,w&&w.setDateTimeFormat(e,t),M.datetimeFormats=_.value,oe(M,e,t)},Y.mergeDateTimeFormat=function(e,t){_.value[e]=u(_.value[e]||{},t),w&&w.mergeDateTimeFormat(e,t),M.datetimeFormats=_.value,oe(M,e,t)},Y.getNumberFormat=function(e){return h.value[e]||{}},Y.setNumberFormat=function(e,t){h.value[e]=t,w&&w.setNumberFormat(e,t),M.numberFormats=h.value,ue(M,e,t)},Y.mergeNumberFormat=function(e,t){h.value[e]=u(h.value[e]||{},t),w&&w.mergeNumberFormat(e,t),M.numberFormats=h.value,ue(M,e,t)},Y[ke]=e.__injectWithOption,Y[pe]=function(...e){return V((t=>{let a;const n=t;try{n.processor=x,a=Reflect.apply(Q,null,[n,...e])}finally{n.processor=null}return a}),(()=>ae(...e)),0,(t=>t[pe](...e)),(e=>[Te(e)]),(e=>g(e)))},Y[ve]=function(...e){return V((t=>Reflect.apply(ne,null,[t,...e])),(()=>re(...e)),0,(t=>t[ve](...e)),(()=>[]),(e=>v(e)||g(e)))},Y[be]=function(...e){return V((t=>Reflect.apply(se,null,[t,...e])),(()=>ce(...e)),0,(t=>t[be](...e)),(()=>[]),(e=>v(e)||g(e)))},Y[he]=w,Y}const we={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Me={name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},we),setup(e,a){const{slots:n,attrs:l}=a,r=e.i18n||$e({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=v(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...g(t.children)?t.children:[t]]),[]);return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}(a,o),c=r[pe](e.keypath,i,s),m=u({},l),f=v(e.tag)||d(e.tag)?e.tag:"span";return t.h(f,m,c)}}};function De(e,a,n,l){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),v(e.format)?a.key=e.format:d(e.format)&&(v(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((t,a)=>n.includes(a)?u({},t,{[a]:e.format[a]}):t),{}));const i=l(e.value,a,s);let c=[a.key];g(i)?c=i.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:i}):[e.value];var l;return g(l=n)&&!v(l[0])&&(n[0].key=`${e.type}-${t}`),n})):v(i)&&(c=[i]);const m=u({},o),f=v(e.tag)||d(e.tag)?e.tag:"span";return t.h(f,m,c)}}const Ce={name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},we),setup(e,t){const a=e.i18n||$e({useScope:"parent",__useComponent:!0});return De(e,t,ie,((...e)=>a[be](...e)))}},Ae={name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},we),setup(e,t){const a=e.i18n||$e({useScope:"parent",__useComponent:!0});return De(e,t,le,((...e)=>a[ve](...e)))}};let Pe=null;const Se=l("global-vue-i18n");function $e(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(ge.MUST_BE_CALL_SETUP_TOP);if(null==Pe)throw Error(ge.NOT_INSLALLED);const l=function(e){{const t=e.proxy;if(null==t)throw Error(ge.UNEXPECTED_ERROR);const a=t._i18nBridgeRoot;if(!a)throw Error(ge.NOT_INSLALLED);return a}}(n),r=function(e){return e.global}(l),o=function(e){return e.proxy.$options}(n),c=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("legacy"===l.mode&&!e.__useComponent){if(!l.allowComposition)throw Error(ge.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,a,n,l={}){const r="local"===a,o=t.shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(ge.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=!b(l.inheritLocale)||l.inheritLocale,c=t.ref(r&&i?n.locale.value:v(l.locale)?l.locale:j),u=t.ref(r&&i?n.fallbackLocale.value:v(l.fallbackLocale)||g(l.fallbackLocale)||y(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:c.value),m=t.ref(Ne(c.value,l)),f=t.ref(y(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),_=t.ref(y(l.numberFormats)?l.numberFormats:{[c.value]:{}}),d=r?n.missingWarn:!b(l.missingWarn)&&!s(l.missingWarn)||l.missingWarn,h=r?n.fallbackWarn:!b(l.fallbackWarn)&&!s(l.fallbackWarn)||l.fallbackWarn,k=r?n.fallbackRoot:!b(l.fallbackRoot)||l.fallbackRoot,E=!!l.fallbackFormat,L=p(l.missing)?l.missing:null,N=p(l.postTranslation)?l.postTranslation:null,I=r?n.warnHtmlMessage:!b(l.warnHtmlMessage)||l.warnHtmlMessage,F=!!l.escapeParameter,T=r?n.modifiers:y(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function O(){return[c.value,u.value,m.value,f.value,_.value]}const W=t.computed({get:()=>o.value?o.value.locale.value:c.value,set:e=>{o.value&&(o.value.locale.value=e),c.value=e}}),w=t.computed({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),u.value=e}}),M=t.computed((()=>o.value?o.value.messages.value:m.value)),D=t.computed((()=>f.value)),C=t.computed((()=>_.value));function A(){return o.value?o.value.getPostTranslationHandler():N}function P(e){o.value&&o.value.setPostTranslationHandler(e)}function S(){return o.value?o.value.getMissingHandler():L}function $(e){o.value&&o.value.setMissingHandler(e)}function U(e){return O(),e()}function V(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function H(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function x(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function G(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function B(e){return o.value?o.value.tm(e):{}}function Y(e,t){return!!o.value&&o.value.te(e,t)}function X(e){return o.value?o.value.getLocaleMessage(e):{}}function z(e,t){o.value&&(o.value.setLocaleMessage(e,t),m.value[e]=t)}function J(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function q(e){return o.value?o.value.getDateTimeFormat(e):{}}function Z(e,t){o.value&&(o.value.setDateTimeFormat(e,t),f.value[e]=t)}function K(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function Q(e){return o.value?o.value.getNumberFormat(e):{}}function ee(e,t){o.value&&(o.value.setNumberFormat(e,t),_.value[e]=t)}function te(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const ae={get id(){return o.value?o.value.id:-1},locale:W,fallbackLocale:w,messages:M,datetimeFormats:D,numberFormats:C,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(m.value)},get modifiers(){return o.value?o.value.modifiers:T},get pluralRules(){return o.value?o.value.pluralRules:R},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:d},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:k},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:E},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:I},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:F},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:V,getPostTranslationHandler:A,setPostTranslationHandler:P,getMissingHandler:S,setMissingHandler:$,rt:H,d:x,n:G,tm:B,te:Y,getLocaleMessage:X,setLocaleMessage:z,mergeLocaleMessage:J,getDateTimeFormat:q,setDateTimeFormat:Z,mergeDateTimeFormat:K,getNumberFormat:Q,setNumberFormat:ee,mergeNumberFormat:te};function ne(e){e.locale.value=c.value,e.fallbackLocale.value=u.value,Object.keys(m.value).forEach((t=>{e.mergeLocaleMessage(t,m.value[t])})),Object.keys(f.value).forEach((t=>{e.mergeDateTimeFormat(t,f.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeNumberFormat(t,_.value[t])})),e.escapeParameter=F,e.fallbackFormat=E,e.fallbackRoot=k,e.fallbackWarn=h,e.missingWarn=d,e.warnHtmlMessage=I}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(ge.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===a?(c.value=t.locale.value,u.value=t.fallbackLocale.value,m.value=t.messages.value,f.value=t.datetimeFormats.value,_.value=t.numberFormats.value):r&&ne(t)})),ae}(n,c,r,e)}if("global"===c)return function(e,t,a){let n=d(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=Ne(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),d(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(d(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}(r,e,o),r;if("parent"===c){let t=function(e,t,a=!1){let n=null;const l=t.root;let r=t.parent;for(;null!=r;){const t=e;if("composition"===e.mode)n=t.__getInstance(r);else{const e=t.__getInstance(r);null!=e&&(n=e.__composer,a&&n&&!n[ke]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(l,n,e.__useComponent);return null==t&&(t=r),t}const m=l;let f=m.__getInstance(n);if(null==f){const l=u({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),f=We(l,Pe),function(e,n,l){{const r=n.proxy;if(null==r)throw Error(ge.UNEXPECTED_ERROR);const o=l[he];if(o===e)throw Error(ge.UNEXPECTED_ERROR);r._i18n=o,r._i18n_bridge=!0,a&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),s=!0})),t.onUnmounted((()=>{s&&(r._i18n.unsubscribeDataChanging(r),s=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}))}}(m,n,f),m.__setInstance(n,f)}return f}return H=function(e,t){if(!d(e))return null;let a=T.get(t);if(a||(a=function(e){const t=[];let a,n,l,r,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++,l="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=F(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!_()){if(r=I(a),i=L[u],o=i[r]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=a,!1===s())))return;if(7===u)return t}}(t),a&&T.set(t,a)),!a)return null;const n=a.length;let l=e,r=0;for(;r<n;){const e=l[a[r]];if(void 0===e)return null;l=e,r++}return l},x=P,e.DatetimeFormat=Ae,e.I18nInjectionKey=Se,e.NumberFormat=Ce,e.Translation=Me,e.VERSION=me,e.castToVueI18n=e=>{if(!(ye in e))throw Error(ge.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){Pe=a;const n=!b(e.legacy)||e.legacy,r=!b(e.globalInjection)||e.globalInjection,o=!n||!!e.allowComposition,s=new Map,[i,c]=function(e,a,n){const l=t.effectScope();{if(!Ee(n))throw Error(ge.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=l.run((()=>We(e,n)));if(null==t)throw Error(ge.UNEXPECTED_ERROR);return[l,t]}}(e,0,a);l("");{const e=c[he];let t=null;Object.defineProperty(e,"global",{get:()=>c}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>o}),Object.defineProperty(e,"__instances",{get:()=>s}),Object.defineProperty(e,"install",{writable:!0,value:(a,...l)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(ge.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const a=y(t[0])?t[0]:{};(!b(a.globalInstall)||a.globalInstall)&&(e.component(Me.name,Me),e.component(Ce.name,Ce),e.component(Ae.name,Ae))}(a,...l),!n&&r&&(t=function(e,t,a){const n=t.watchLocale(a);return e.prototype.$t=function(...e){return Reflect.apply(a.t,a,[...e])},e.prototype.$d=function(...e){return Reflect.apply(a.d,a,[...e])},e.prototype.$n=function(...e){return Reflect.apply(a.n,a,[...e])},n}(a,e,c)),a.mixin(function(e,t){return{beforeCreate(){const a=this.$options;if(!a.__VUE18N__INSTANCE__)if(a.i18n=a.i18n||(a.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(a.i18n){if(a.i18n instanceof t){if(a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>Fe(JSON.parse(t),e))),Object.keys(e).forEach((t=>{a.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=a.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(a.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(a.i18n.root=this.$root,a.i18n.formatter=e.formatter,a.i18n.fallbackLocale=e.fallbackLocale,a.i18n.formatFallbackMessages=e.formatFallbackMessages,a.i18n.silentTranslationWarn=e.silentTranslationWarn,a.i18n.silentFallbackWarn=e.silentFallbackWarn,a.i18n.pluralizationRules=e.pluralizationRules,a.i18n.preserveDirectiveContent=e.preserveDirectiveContent),a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>Fe(JSON.parse(t),e))),a.i18n.messages=e}catch(e){}const{sharedMessages:n}=a.i18n;n&&y(n)&&Fe(n,a.i18n.messages),this._i18n=new t(a.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===a.i18n.sync||a.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t&&(this._i18n=a.parent.$i18n);else this._i18n=e},beforeMount(){const a=this.$options;a.__VUE18N__INSTANCE__||"composition"!==e.mode&&(a.i18n=a.i18n||(a.__i18nBridge?{}:null),a.i18n?(a.i18n instanceof t||y(a.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Pe))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),i.stop()}});const a={__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return Object.keys(a).forEach((t=>Object.defineProperty(e,t,{value:a[t]}))),e}},e.useI18n=$e,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueDemi);
var VueI18nBridge=function(e,t){"use strict";const a="undefined"!=typeof window,n="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,l=e=>n?Symbol(e):e,r=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 RegExp]"===k(e),i=e=>y(e)&&0===Object.keys(e).length;function c(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const u=Object.assign;function m(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const f=Object.prototype.hasOwnProperty;function _(e,t){return f.call(e,t)}const g=Array.isArray,p=e=>"function"==typeof e,v=e=>"string"==typeof e,d=e=>"boolean"==typeof e,b=e=>null!==e&&"object"==typeof e,h=Object.prototype.toString,k=e=>h.call(e),y=e=>"[object Object]"===k(e),E=15,L=[];L[0]={w:[0],i:[3,0],"[":[4],o:[7]},L[1]={w:[1],".":[2],"[":[4],o:[7]},L[2]={w:[2],i:[3,0],0:[3,0]},L[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},L[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},L[5]={"'":[4,0],o:8,l:[5,0]},L[6]={'"':[4,0],o:8,l:[6,0]};const N=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function I(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 F(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,N.test(a)?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 a}const T=new Map;function R(e,t){return b(e)?e[t]:null}const O=e=>e,W=e=>"",w=e=>0===e.length?"":e.join(""),M=e=>null==e?"":g(e)||y(e)&&e.toString===h?JSON.stringify(e,null,2):String(e);function D(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function C(e={}){const t=e.locale,a=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),n=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?e.pluralRules[t]:D,l=b(e.pluralRules)&&v(t)&&p(e.pluralRules[t])?D:void 0,r=e.list||[],s=e.named||{};o(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(a,s);function i(t){const a=p(e.messages)?e.messages(t):!!b(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):W)}const c=y(e.processor)&&p(e.processor.normalize)?e.processor.normalize:w,u=y(e.processor)&&p(e.processor.interpolate)?e.processor.interpolate:M,m={list:e=>r[e],named:e=>s[e],plural:e=>e[n(a,e.length,l)],linked:(t,...a)=>{const[n,l]=a;let r="text",o="";1===a.length?b(n)?(o=n.modifier||o,r=n.type||r):v(n)&&(o=n||o):2===a.length&&(v(n)&&(o=n||o),v(l)&&(r=l||r));let s=i(t)(m);return"vnode"===r&&g(s)&&o&&(s=s[0]),o?(c=o,e.modifiers?e.modifiers[c]:O)(s,r):s;var c},message:i,type:y(e.processor)&&v(e.processor.type)?e.processor.type:"text",interpolate:u,normalize:c};return m}function A(e,t,a){return[...new Set([a,...g(t)?t:b(t)?Object.keys(t):v(t)?[t]:[a]])]}function P(e,t,a){const n=v(a)?a:j,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let r=l.__localeChainCache.get(n);if(!r){r=[];let e=[a];for(;g(e);)e=S(r,e,t);const o=g(t)||!y(t)?t:t.default?t.default:null;e=v(o)?[o]:o,g(e)&&S(r,e,!1),l.__localeChainCache.set(n,r)}return r}function S(e,t,a){let n=!0;for(let l=0;l<t.length&&d(n);l++){const r=t[l];v(r)&&(n=$(e,t[l],a))}return n}function $(e,t,a){let n;const l=t.split("-");do{n=U(e,l.join("-"),a),l.splice(-1,1)}while(l.length&&!0===n);return n}function U(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n="!"!==t[t.length-1];const l=t.replace(/!/g,"");e.push(l),(g(a)||y(a))&&a[l]&&(n=a[l])}return n}const j="en-US",V=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;let H,x;let G=0;function B(e={}){const t=v(e.version)?e.version:"9.2.0",a=v(e.locale)?e.locale:j,n=g(e.fallbackLocale)||y(e.fallbackLocale)||v(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,l=y(e.messages)?e.messages:{[a]:{}},r=y(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},o=y(e.numberFormats)?e.numberFormats:{[a]:{}},i=u({},e.modifiers||{},{upper:(e,t)=>"text"===t&&v(e)?e.toUpperCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&v(e)?e.toLowerCase():"vnode"===t&&b(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&v(e)?V(e):"vnode"===t&&b(e)&&"__v_isVNode"in e?V(e.children):e}),m=e.pluralRules||{},f=p(e.missing)?e.missing:null,_=!d(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,h=!d(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,k=!!e.fallbackFormat,E=!!e.unresolving,L=p(e.postTranslation)?e.postTranslation:null,N=y(e.processor)?e.processor:null,I=!d(e.warnHtmlMessage)||e.warnHtmlMessage,F=!!e.escapeParameter,T=p(e.messageCompiler)?e.messageCompiler:undefined,O=p(e.messageResolver)?e.messageResolver:H||R,W=p(e.localeFallbacker)?e.localeFallbacker:x||A,w=b(e.fallbackContext)?e.fallbackContext:void 0,M=p(e.onWarn)?e.onWarn:c,D=e,C=b(D.__datetimeFormatters)?D.__datetimeFormatters:new Map,P=b(D.__numberFormatters)?D.__numberFormatters:new Map,S=b(D.__meta)?D.__meta:{};G++;const $={version:t,cid:G,locale:a,fallbackLocale:n,messages:l,modifiers:i,pluralRules:m,missing:f,missingWarn:_,fallbackWarn:h,fallbackFormat:k,unresolving:E,postTranslation:L,processor:N,warnHtmlMessage:I,escapeParameter:F,messageCompiler:T,messageResolver:O,localeFallbacker:W,fallbackContext:w,onWarn:M,__meta:S};return $.datetimeFormats=r,$.numberFormats=o,$.__datetimeFormatters=C,$.__numberFormatters=P,$}function Y(e,t,a,n,l){const{missing:r,onWarn:o}=e;if(null!==r){const n=r(e,a,t,l);return v(n)?n:t}return t}function X(e,t,a){e.__localeChainCache=new Map,e.localeFallbacker(e,a,t)}let z=E;const J=()=>++z,q={INVALID_ARGUMENT:z,INVALID_DATE_ARGUMENT:J(),INVALID_ISO_DATE_ARGUMENT:J(),__EXTEND_POINT__:J()},Z=()=>"",K=e=>p(e);function Q(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:l,messageCompiler:r,fallbackLocale:s,messages:i}=e,[c,u]=ae(...t),f=d(u.missingWarn)?u.missingWarn:e.missingWarn,_=d(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=d(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,k=v(u.default)||d(u.default)?d(u.default)?r?c:()=>c:u.default:a?r?c:()=>c:"",y=a||""!==k,E=v(u.locale)?u.locale:e.locale;p&&function(e){g(e.list)?e.list=e.list.map((e=>v(e)?m(e):e)):b(e.named)&&Object.keys(e.named).forEach((t=>{v(e.named[t])&&(e.named[t]=m(e.named[t]))}))}(u);let[L,N,I]=h?[c,E,i[E]||{}]:ee(e,c,E,s,_,f),F=L,T=c;if(h||v(F)||K(F)||y&&(F=k,T=F),!(h||(v(F)||K(F))&&v(N)))return l?-1:c;let R=!1;const O=K(F)?F:te(e,c,N,F,T,(()=>{R=!0}));if(R)return F;const W=function(e,t,a,n){const{modifiers:l,pluralRules:r,messageResolver:s,fallbackLocale:i,fallbackWarn:c,missingWarn:u,fallbackContext:m}=e,f=n=>{let l=s(a,n);if(null==l&&m){const[,,e]=ee(m,n,t,i,c,u);l=s(e,n)}if(v(l)){let a=!1;const r=te(e,n,t,l,n,(()=>{a=!0}));return a?Z:r}return K(l)?l:Z},_={locale:t,modifiers:l,pluralRules:r,messages:f};e.processor&&(_.processor=e.processor);n.list&&(_.list=n.list);n.named&&(_.named=n.named);o(n.plural)&&(_.pluralIndex=n.plural);return _}(e,N,I,u),w=function(e,t,a){return t(a)}(0,O,C(W));return n?n(w,c):w}function ee(e,t,a,n,l,r){const{messages:o,onWarn:s,messageResolver:i,localeFallbacker:c}=e,u=c(e,n,a);let m,f={},_=null;for(let a=0;a<u.length&&(m=u[a],f=o[m]||{},null===(_=i(f,t))&&(_=f[t]),!v(_)&&!p(_));a++){const a=Y(e,t,m,0,"translate");a!==t&&(_=a)}return[_,m,f]}function te(e,t,a,n,l,o){const{messageCompiler:s,warnHtmlMessage:i}=e;if(K(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}if(null==s){const e=()=>n;return e.locale=a,e.key=t,e}const c=s(n,function(e,t,a,n,l,o){return{warnHtmlMessage:l,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,a)=>r({l:e,k:t,s:a}))(t,a,e)}}(0,a,l,0,i,o));return c.locale=a,c.key=t,c.source=n,c}function ae(...e){const[t,a,n]=e,l={};if(!v(t)&&!o(t)&&!K(t))throw Error(q.INVALID_ARGUMENT);const r=o(t)?String(t):(K(t),t);return o(a)?l.plural=a:v(a)?l.default=a:y(a)&&!i(a)?l.named=a:g(a)&&(l.list=a),o(n)?l.plural=n:v(n)?l.default=n:y(n)&&u(l,n),[r,l]}function ne(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[c,m,f,_]=re(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=v(f.locale)?f.locale:e.locale,b=o(e,l,p);if(!v(c)||""===c)return new Intl.DateTimeFormat(p,_).format(m);let h,k={},E=null;for(let t=0;t<b.length&&(h=b[t],k=a[h]||{},E=k[c],!y(E));t++)Y(e,c,h,0,"datetime format");if(!y(E)||!v(h))return n?-1:c;let L=`${h}__${c}`;i(_)||(L=`${L}__${JSON.stringify(_)}`);let N=s.get(L);return N||(N=new Intl.DateTimeFormat(h,u({},E,_)),s.set(L,N)),g?N.formatToParts(m):N.format(m)}const le=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function re(...e){const[t,a,n,l]=e,r={};let s,i={};if(v(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Error(q.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();s=new Date(a);try{s.toISOString()}catch(e){throw Error(q.INVALID_ISO_DATE_ARGUMENT)}}else if("[object Date]"===k(t)){if(isNaN(t.getTime()))throw Error(q.INVALID_DATE_ARGUMENT);s=t}else{if(!o(t))throw Error(q.INVALID_ARGUMENT);s=t}return v(a)?r.key=a:y(a)&&Object.keys(a).forEach((e=>{le.includes(e)?i[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:y(n)&&(i=n),y(l)&&(i=l),[r.key||"",s,r,i]}function oe(e,t,a){const n=e;for(const e in a){const a=`${t}__${e}`;n.__datetimeFormatters.has(a)&&n.__datetimeFormatters.delete(a)}}function se(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:l,onWarn:r,localeFallbacker:o}=e,{__numberFormatters:s}=e,[c,m,f,_]=ce(...t);d(f.missingWarn)?f.missingWarn:e.missingWarn;d(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const g=!!f.part,p=v(f.locale)?f.locale:e.locale,b=o(e,l,p);if(!v(c)||""===c)return new Intl.NumberFormat(p,_).format(m);let h,k={},E=null;for(let t=0;t<b.length&&(h=b[t],k=a[h]||{},E=k[c],!y(E));t++)Y(e,c,h,0,"number format");if(!y(E)||!v(h))return n?-1:c;let L=`${h}__${c}`;i(_)||(L=`${L}__${JSON.stringify(_)}`);let N=s.get(L);return N||(N=new Intl.NumberFormat(h,u({},E,_)),s.set(L,N)),g?N.formatToParts(m):N.format(m)}const ie=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ce(...e){const[t,a,n,l]=e,r={};let s={};if(!o(t))throw Error(q.INVALID_ARGUMENT);const i=t;return v(a)?r.key=a:y(a)&&Object.keys(a).forEach((e=>{ie.includes(e)?s[e]=a[e]:r[e]=a[e]})),v(n)?r.locale=n:y(n)&&(s=n),y(l)&&(s=l),[r.key||"",i,r,s]}function ue(e,t,a){const n=e;for(const e in a){const a=`${t}__${e}`;n.__numberFormatters.has(a)&&n.__numberFormatters.delete(a)}}const me="9.2.0";let fe=E;const _e=()=>++fe,ge={UNEXPECTED_RETURN_TYPE:fe,INVALID_ARGUMENT:_e(),MUST_BE_CALL_SETUP_TOP:_e(),NOT_INSLALLED:_e(),NOT_AVAILABLE_IN_LEGACY_MODE:_e(),REQUIRED_VALUE:_e(),INVALID_VALUE:_e(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:_e(),NOT_INSLALLED_WITH_PROVIDE:_e(),UNEXPECTED_ERROR:_e(),NOT_COMPATIBLE_LEGACY_VUE_I18N:_e(),BRIDGE_SUPPORT_VUE_2_ONLY:_e(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:_e(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:_e(),__EXTEND_POINT__:_e()},pe=l("__transrateVNode"),ve=l("__datetimeParts"),de=l("__numberParts"),be=l("__setPluralRules"),he=l("__legacyVueI18n"),ke=l("__injectWithOption"),ye="__VUE_I18N_BRIDGE__";function Ee(e){return null!=e&&null!=e.version&&(Number(e.version.split(".")[0])||-1)>=8}function Le(e){if(!b(e))return e;for(const t in e)if(_(e,t))if(t.includes(".")){const a=t.split("."),n=a.length-1;let l=e;for(let e=0;e<n;e++)a[e]in l||(l[a[e]]={}),l=l[a[e]];l[a[n]]=e[t],delete e[t],b(l[a[n]])&&Le(l[a[n]])}else b(e[t])&&Le(e[t]);return e}function Ne(e,t){const{messages:a,__i18n:n,messageResolver:l,flatJson:r}=t,o=y(a)?a:g(n)?{}:{[e]:{}};if(g(n)&&n.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:a}=e;t?(o[t]=o[t]||{},Fe(a,o[t])):Fe(a,o)}else v(e)&&Fe(JSON.parse(e),o)})),null==l&&r)for(const e in o)_(o,e)&&Le(o[e]);return o}const Ie=e=>!b(e)||g(e);function Fe(e,t){if(Ie(e)||Ie(t))throw Error(ge.INVALID_VALUE);for(const a in e)_(e,a)&&(Ie(e[a])||Ie(t[a])?t[a]=e[a]:Fe(e[a],t[a]))}function Te(e){return function(e){const t=void 0;return{tag:void 0,data:void 0,children:void 0,text:e,elm:void 0,ns:void 0,context:void 0,fnContext:void 0,fnOptions:void 0,fnScopeId:void 0,key:void 0,componentOptions:void 0,componentInstance:t,parent:void 0,raw:!1,isStatic:!1,isRootInsert:!0,isComment:!1,isCloned:!1,isOnce:!1,asyncFactory:void 0,asyncMeta:void 0,isAsyncPlaceholder:!1,child:()=>t}}(e)}let Re=0;function Oe(e){return(a,n,l,r)=>e(n,l,t.getCurrentInstance()||void 0,r)}function We(e={},n){const{__root:l}=e,r=void 0===l;let i=!d(e.inheritLocale)||e.inheritLocale;const c=t.ref(l&&i?l.locale.value:v(e.locale)?e.locale:j),m=t.ref(l&&i?l.fallbackLocale.value:v(e.fallbackLocale)||g(e.fallbackLocale)||y(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:c.value),f=t.ref(Ne(c.value,e)),_=t.ref(y(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),h=t.ref(y(e.numberFormats)?e.numberFormats:{[c.value]:{}});let k=l?l.missingWarn:!d(e.missingWarn)&&!s(e.missingWarn)||e.missingWarn,E=l?l.fallbackWarn:!d(e.fallbackWarn)&&!s(e.fallbackWarn)||e.fallbackWarn,L=l?l.fallbackRoot:!d(e.fallbackRoot)||e.fallbackRoot,N=!!e.fallbackFormat,I=p(e.missing)?e.missing:null,F=p(e.missing)?Oe(e.missing):null,T=p(e.postTranslation)?e.postTranslation:null,R=l?l.warnHtmlMessage:!d(e.warnHtmlMessage)||e.warnHtmlMessage,O=!!e.escapeParameter;const W=l?l.modifiers:y(e.modifiers)?e.modifiers:{};let w,M,D=e.pluralRules||l&&l.pluralRules;{Ee(n);const e={locale:c.value,fallbackLocale:m.value,messages:f.value,dateTimeFormats:_.value,numberFormats:h.value,modifiers:W,missing:I,fallbackRoot:L,postTranslation:T,pluralizationRules:D,escapeParameterHtml:O,sync:i,silentFallbackWarn:d(E)?!E:E,silentTranslationWarn:d(k)?!k:k,formatFallbackMessages:d(N)?!N:N,warnHtmlInMessage:d(R)&&R?"warn":"off",__VUE_I18N_BRIDGE__:ye};w=new n(e)}M=function(){const t={version:me,locale:c.value,fallbackLocale:m.value,messages:f.value,modifiers:W,pluralRules:D,missing:null===F?void 0:F,missingWarn:k,fallbackWarn:E,fallbackFormat:N,unresolving:!0,postTranslation:null===T?void 0:T,warnHtmlMessage:R,escapeParameter:O,messageResolver:e.messageResolver,__meta:{framework:"vue"}};return t.datetimeFormats=_.value,t.numberFormats=h.value,t.__datetimeFormatters=y(M)?M.__datetimeFormatters:void 0,t.__numberFormatters=y(M)?M.__numberFormatters:void 0,B(t)}(),X(M,c.value,m.value);const C=t.computed({get:()=>c.value,set:e=>{c.value=e,w&&!r&&(w.locale=e),M.locale=c.value}}),A=t.computed({get:()=>m.value,set:e=>{m.value=e,w&&!r&&(w.fallbackLocale=e),M.fallbackLocale=m.value,X(M,c.value,e)}}),S=t.computed((()=>f.value)),$=t.computed((()=>_.value)),U=t.computed((()=>h.value));function V(e,t,a,n,r,s){let i;if(c.value,m.value,f.value,_.value,h.value,i=e(M),o(i)&&-1===i){const[e,a]=t();return l&&L?n(l):r(e)}if(s(i))return i;throw Error(ge.UNEXPECTED_RETURN_TYPE)}function H(...e){return V((t=>Reflect.apply(Q,null,[t,...e])),(()=>ae(...e)),0,(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>v(e)))}const x={normalize:function(e){return e.map((e=>v(e)||o(e)||d(e)?Te(String(e)):e))},interpolate:e=>e,type:"vnode"};function G(e){return f.value[e]||{}}Re++,l&&a&&(t.watch(l.locale,(e=>{i&&(c.value=e,w&&!r&&(w.locale=e),M.locale=e,X(M,c.value,m.value))})),t.watch(l.fallbackLocale,(e=>{i&&(m.value=e,w&&!r&&(w.fallbackLocale=e),M.fallbackLocale=e,X(M,c.value,m.value))})));const Y={id:Re,locale:C,fallbackLocale:A,get inheritLocale(){return i},set inheritLocale(e){i=e,w&&(w._sync=e),e&&l&&(c.value=l.locale.value,m.value=l.fallbackLocale.value,w&&(w.locale=l.locale.value,w.fallbackLocale=l.fallbackLocale.value),X(M,c.value,m.value))},get availableLocales(){return Object.keys(f.value).sort()},messages:S,get modifiers(){return W},get pluralRules(){return D||{}},get isGlobal(){return r},get missingWarn(){return k},set missingWarn(e){k=e,M.missingWarn=k},get fallbackWarn(){return E},set fallbackWarn(e){E=e,M.fallbackWarn=E},get fallbackRoot(){return L},set fallbackRoot(e){L=e},get fallbackFormat(){return N},set fallbackFormat(e){N=e,M.fallbackFormat=N},get warnHtmlMessage(){return R},set warnHtmlMessage(e){R=e,M.warnHtmlMessage=e},get escapeParameter(){return O},set escapeParameter(e){O=e,M.escapeParameter=e},t:H,getLocaleMessage:G,setLocaleMessage:function(e,t){f.value[e]=t,w&&w.setLocaleMessage(e,t),M.messages=f.value},mergeLocaleMessage:function(e,t){f.value[e]=f.value[e]||{},w&&w.mergeLocaleMessage(e,t),Fe(t,f.value[e]),M.messages=f.value},getPostTranslationHandler:function(){return p(T)?T:null},setPostTranslationHandler:function(e){T=e,M.postTranslation=e},getMissingHandler:function(){return I},setMissingHandler:function(e){null!==e&&(F=Oe(e)),I=e,M.missing=F},[be]:function(e){D=e,M.pluralRules=D}};return Y.datetimeFormats=$,Y.numberFormats=U,Y.rt=function(...e){const[t,a,n]=e;if(n&&!b(n))throw Error(ge.INVALID_ARGUMENT);return H(t,a,u({resolvedMessage:!0},n||{}))},Y.te=function(e,t){const a=G(v(t)?t:c.value);return null!==M.messageResolver(a,e)},Y.tm=function(e){const t=function(e){let t=null;const a=P(M,m.value,c.value);for(let n=0;n<a.length;n++){const l=f.value[a[n]]||{},r=M.messageResolver(l,e);if(null!=r){t=r;break}}return t}(e);return null!=t?t:l&&l.tm(e)||{}},Y.d=function(...e){return V((t=>Reflect.apply(ne,null,[t,...e])),(()=>re(...e)),0,(t=>Reflect.apply(t.d,t,[...e])),(()=>""),(e=>v(e)))},Y.n=function(...e){return V((t=>Reflect.apply(se,null,[t,...e])),(()=>ce(...e)),0,(t=>Reflect.apply(t.n,t,[...e])),(()=>""),(e=>v(e)))},Y.getDateTimeFormat=function(e){return _.value[e]||{}},Y.setDateTimeFormat=function(e,t){_.value[e]=t,w&&w.setDateTimeFormat(e,t),M.datetimeFormats=_.value,oe(M,e,t)},Y.mergeDateTimeFormat=function(e,t){_.value[e]=u(_.value[e]||{},t),w&&w.mergeDateTimeFormat(e,t),M.datetimeFormats=_.value,oe(M,e,t)},Y.getNumberFormat=function(e){return h.value[e]||{}},Y.setNumberFormat=function(e,t){h.value[e]=t,w&&w.setNumberFormat(e,t),M.numberFormats=h.value,ue(M,e,t)},Y.mergeNumberFormat=function(e,t){h.value[e]=u(h.value[e]||{},t),w&&w.mergeNumberFormat(e,t),M.numberFormats=h.value,ue(M,e,t)},Y[ke]=e.__injectWithOption,Y[pe]=function(...e){return V((t=>{let a;const n=t;try{n.processor=x,a=Reflect.apply(Q,null,[n,...e])}finally{n.processor=null}return a}),(()=>ae(...e)),0,(t=>t[pe](...e)),(e=>[Te(e)]),(e=>g(e)))},Y[ve]=function(...e){return V((t=>Reflect.apply(ne,null,[t,...e])),(()=>re(...e)),0,(t=>t[ve](...e)),(()=>[]),(e=>v(e)||g(e)))},Y[de]=function(...e){return V((t=>Reflect.apply(se,null,[t,...e])),(()=>ce(...e)),0,(t=>t[de](...e)),(()=>[]),(e=>v(e)||g(e)))},Y[he]=w,Y}const we={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};const Me={name:"i18n-t",props:u({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>o(e)||!isNaN(e)}},we),setup(e,a){const{slots:n,attrs:l}=a,r=e.i18n||$e({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=v(e.plural)?+e.plural:e.plural);const i=function({slots:e},t){if(1===t.length&&"default"===t[0])return(e.default?e.default():[]).reduce(((e,t)=>[...e,...g(t.children)?t.children:[t]]),[]);return t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}(a,o),c=r[pe](e.keypath,i,s),m=u({},l),f=v(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,m,c)}}};function De(e,a,n,l){const{slots:r,attrs:o}=a;return()=>{const a={part:!0};let s={};e.locale&&(a.locale=e.locale),v(e.format)?a.key=e.format:b(e.format)&&(v(e.format.key)&&(a.key=e.format.key),s=Object.keys(e.format).reduce(((t,a)=>n.includes(a)?u({},t,{[a]:e.format[a]}):t),{}));const i=l(e.value,a,s);let c=[a.key];g(i)?c=i.map(((e,t)=>{const a=r[e.type],n=a?a({[e.type]:e.value,index:t,parts:i}):[e.value];var l;return g(l=n)&&!v(l[0])&&(n[0].key=`${e.type}-${t}`),n})):v(i)&&(c=[i]);const m=u({},o),f=v(e.tag)||b(e.tag)?e.tag:"span";return t.h(f,m,c)}}const Ce={name:"i18n-n",props:u({value:{type:Number,required:!0},format:{type:[String,Object]}},we),setup(e,t){const a=e.i18n||$e({useScope:"parent",__useComponent:!0});return De(e,t,ie,((...e)=>a[de](...e)))}},Ae={name:"i18n-d",props:u({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},we),setup(e,t){const a=e.i18n||$e({useScope:"parent",__useComponent:!0});return De(e,t,le,((...e)=>a[ve](...e)))}};let Pe=null;const Se=l("global-vue-i18n");function $e(e={}){const n=t.getCurrentInstance();if(null==n)throw Error(ge.MUST_BE_CALL_SETUP_TOP);if(null==Pe)throw Error(ge.NOT_INSLALLED);const l=function(e){{const t=e.proxy;if(null==t)throw Error(ge.UNEXPECTED_ERROR);const a=t._i18nBridgeRoot;if(!a)throw Error(ge.NOT_INSLALLED);return a}}(n),r=function(e){return e.global}(l),o=function(e){return e.proxy.$options}(n),c=function(e,t){return i(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}(e,o);if("legacy"===l.mode&&!e.__useComponent){if(!l.allowComposition)throw Error(ge.NOT_AVAILABLE_IN_LEGACY_MODE);return function(e,a,n,l={}){const r="local"===a,o=t.shallowRef(null);if(r&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw Error(ge.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=!d(l.inheritLocale)||l.inheritLocale,c=t.ref(r&&i?n.locale.value:v(l.locale)?l.locale:j),u=t.ref(r&&i?n.fallbackLocale.value:v(l.fallbackLocale)||g(l.fallbackLocale)||y(l.fallbackLocale)||!1===l.fallbackLocale?l.fallbackLocale:c.value),m=t.ref(Ne(c.value,l)),f=t.ref(y(l.datetimeFormats)?l.datetimeFormats:{[c.value]:{}}),_=t.ref(y(l.numberFormats)?l.numberFormats:{[c.value]:{}}),b=r?n.missingWarn:!d(l.missingWarn)&&!s(l.missingWarn)||l.missingWarn,h=r?n.fallbackWarn:!d(l.fallbackWarn)&&!s(l.fallbackWarn)||l.fallbackWarn,k=r?n.fallbackRoot:!d(l.fallbackRoot)||l.fallbackRoot,E=!!l.fallbackFormat,L=p(l.missing)?l.missing:null,N=p(l.postTranslation)?l.postTranslation:null,I=r?n.warnHtmlMessage:!d(l.warnHtmlMessage)||l.warnHtmlMessage,F=!!l.escapeParameter,T=r?n.modifiers:y(l.modifiers)?l.modifiers:{},R=l.pluralRules||r&&n.pluralRules;function O(){return[c.value,u.value,m.value,f.value,_.value]}const W=t.computed({get:()=>o.value?o.value.locale.value:c.value,set:e=>{o.value&&(o.value.locale.value=e),c.value=e}}),w=t.computed({get:()=>o.value?o.value.fallbackLocale.value:u.value,set:e=>{o.value&&(o.value.fallbackLocale.value=e),u.value=e}}),M=t.computed((()=>o.value?o.value.messages.value:m.value)),D=t.computed((()=>f.value)),C=t.computed((()=>_.value));function A(){return o.value?o.value.getPostTranslationHandler():N}function P(e){o.value&&o.value.setPostTranslationHandler(e)}function S(){return o.value?o.value.getMissingHandler():L}function $(e){o.value&&o.value.setMissingHandler(e)}function U(e){return O(),e()}function V(...e){return o.value?U((()=>Reflect.apply(o.value.t,null,[...e]))):U((()=>""))}function H(...e){return o.value?Reflect.apply(o.value.rt,null,[...e]):""}function x(...e){return o.value?U((()=>Reflect.apply(o.value.d,null,[...e]))):U((()=>""))}function G(...e){return o.value?U((()=>Reflect.apply(o.value.n,null,[...e]))):U((()=>""))}function B(e){return o.value?o.value.tm(e):{}}function Y(e,t){return!!o.value&&o.value.te(e,t)}function X(e){return o.value?o.value.getLocaleMessage(e):{}}function z(e,t){o.value&&(o.value.setLocaleMessage(e,t),m.value[e]=t)}function J(e,t){o.value&&o.value.mergeLocaleMessage(e,t)}function q(e){return o.value?o.value.getDateTimeFormat(e):{}}function Z(e,t){o.value&&(o.value.setDateTimeFormat(e,t),f.value[e]=t)}function K(e,t){o.value&&o.value.mergeDateTimeFormat(e,t)}function Q(e){return o.value?o.value.getNumberFormat(e):{}}function ee(e,t){o.value&&(o.value.setNumberFormat(e,t),_.value[e]=t)}function te(e,t){o.value&&o.value.mergeNumberFormat(e,t)}const ae={get id(){return o.value?o.value.id:-1},locale:W,fallbackLocale:w,messages:M,datetimeFormats:D,numberFormats:C,get inheritLocale(){return o.value?o.value.inheritLocale:i},set inheritLocale(e){o.value&&(o.value.inheritLocale=e)},get availableLocales(){return o.value?o.value.availableLocales:Object.keys(m.value)},get modifiers(){return o.value?o.value.modifiers:T},get pluralRules(){return o.value?o.value.pluralRules:R},get isGlobal(){return!!o.value&&o.value.isGlobal},get missingWarn(){return o.value?o.value.missingWarn:b},set missingWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackWarn(){return o.value?o.value.fallbackWarn:h},set fallbackWarn(e){o.value&&(o.value.missingWarn=e)},get fallbackRoot(){return o.value?o.value.fallbackRoot:k},set fallbackRoot(e){o.value&&(o.value.fallbackRoot=e)},get fallbackFormat(){return o.value?o.value.fallbackFormat:E},set fallbackFormat(e){o.value&&(o.value.fallbackFormat=e)},get warnHtmlMessage(){return o.value?o.value.warnHtmlMessage:I},set warnHtmlMessage(e){o.value&&(o.value.warnHtmlMessage=e)},get escapeParameter(){return o.value?o.value.escapeParameter:F},set escapeParameter(e){o.value&&(o.value.escapeParameter=e)},t:V,getPostTranslationHandler:A,setPostTranslationHandler:P,getMissingHandler:S,setMissingHandler:$,rt:H,d:x,n:G,tm:B,te:Y,getLocaleMessage:X,setLocaleMessage:z,mergeLocaleMessage:J,getDateTimeFormat:q,setDateTimeFormat:Z,mergeDateTimeFormat:K,getNumberFormat:Q,setNumberFormat:ee,mergeNumberFormat:te};function ne(e){e.locale.value=c.value,e.fallbackLocale.value=u.value,Object.keys(m.value).forEach((t=>{e.mergeLocaleMessage(t,m.value[t])})),Object.keys(f.value).forEach((t=>{e.mergeDateTimeFormat(t,f.value[t])})),Object.keys(_.value).forEach((t=>{e.mergeNumberFormat(t,_.value[t])})),e.escapeParameter=F,e.fallbackFormat=E,e.fallbackRoot=k,e.fallbackWarn=h,e.missingWarn=b,e.warnHtmlMessage=I}return t.onBeforeMount((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw Error(ge.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const t=o.value=e.proxy.$i18n.__composer;"global"===a?(c.value=t.locale.value,u.value=t.fallbackLocale.value,m.value=t.messages.value,f.value=t.datetimeFormats.value,_.value=t.numberFormats.value):r&&ne(t)})),ae}(n,c,r,e)}if("global"===c)return function(e,t,a){let n=b(t.messages)?t.messages:{};"__i18nGlobal"in a&&(n=Ne(e.locale.value,{messages:n,__i18n:a.__i18nGlobal}));const l=Object.keys(n);if(l.length&&l.forEach((t=>{e.mergeLocaleMessage(t,n[t])})),b(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach((a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])}))}if(b(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach((a=>{e.mergeNumberFormat(a,t.numberFormats[a])}))}}(r,e,o),r;if("parent"===c){let t=function(e,t,a=!1){let n=null;const l=t.root;let r=t.parent;for(;null!=r;){const t=e;if("composition"===e.mode)n=t.__getInstance(r);else{const e=t.__getInstance(r);null!=e&&(n=e.__composer,a&&n&&!n[ke]&&(n=null))}if(null!=n)break;if(l===r)break;r=r.parent}return n}(l,n,e.__useComponent);return null==t&&(t=r),t}const m=l;let f=m.__getInstance(n);if(null==f){const l=u({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),f=We(l,Pe),function(e,n,l){{const r=n.proxy;if(null==r)throw Error(ge.UNEXPECTED_ERROR);const o=l[he];if(o===e)throw Error(ge.UNEXPECTED_ERROR);r._i18n=o,r._i18n_bridge=!0,a&&(r._i18nWatcher=r._i18n.watchI18nData(),r._i18n._sync&&(r._localeWatcher=r._i18n.watchLocale()));let s=!1;t.onBeforeMount((()=>{r._i18n.subscribeDataChanging(r),s=!0})),t.onUnmounted((()=>{s&&(r._i18n.unsubscribeDataChanging(r),s=!1),r._i18nWatcher&&(r._i18nWatcher(),r._i18n.destroyVM(),delete r._i18nWatcher),r._localeWatcher&&(r._localeWatcher(),delete r._localeWatcher),delete r._i18n_bridge,delete r._i18n}))}}(m,n,f),m.__setInstance(n,f)}return f}return H=function(e,t){if(!b(e))return null;let a=T.get(t);if(a||(a=function(e){const t=[];let a,n,l,r,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++,l="\\"+t,f[0](),!0}for(f[0]=()=>{void 0===n?n=l:n+=l},f[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},f[2]=()=>{f[0](),m++},f[3]=()=>{if(m>0)m--,u=4,f[0]();else{if(m=0,void 0===n)return!1;if(n=F(n),!1===n)return!1;f[1]()}};null!==u;)if(c++,a=e[c],"\\"!==a||!_()){if(r=I(a),i=L[u],o=i[r]||i.l||8,8===o)return;if(u=o[0],void 0!==o[1]&&(s=f[o[1]],s&&(l=a,!1===s())))return;if(7===u)return t}}(t),a&&T.set(t,a)),!a)return null;const n=a.length;let l=e,r=0;for(;r<n;){const e=l[a[r]];if(void 0===e)return null;l=e,r++}return l},x=P,e.DatetimeFormat=Ae,e.I18nInjectionKey=Se,e.NumberFormat=Ce,e.Translation=Me,e.VERSION=me,e.castToVueI18n=e=>{if(!(ye in e))throw Error(ge.NOT_COMPATIBLE_LEGACY_VUE_I18N);return e},e.createI18n=function(e={},a){Pe=a;const n=!d(e.legacy)||e.legacy,r=!d(e.globalInjection)||e.globalInjection,o=!n||!!e.allowComposition,s=new Map,[i,c]=function(e,a,n){const l=t.effectScope();{if(!Ee(n))throw Error(ge.NOT_COMPATIBLE_LEGACY_VUE_I18N);const t=l.run((()=>We(e,n)));if(null==t)throw Error(ge.UNEXPECTED_ERROR);return[l,t]}}(e,0,a);l("");{const e=c[he];let t=null;Object.defineProperty(e,"global",{get:()=>c}),Object.defineProperty(e,"mode",{get:()=>n?"legacy":"composition"}),Object.defineProperty(e,"allowComposition",{get:()=>o}),Object.defineProperty(e,"__instances",{get:()=>s}),Object.defineProperty(e,"install",{writable:!0,value:(a,...l)=>{if(2!==(a&&a.version&&Number(a.version.split(".")[0])||-1))throw Error(ge.BRIDGE_SUPPORT_VUE_2_ONLY);!function(e,...t){const a=y(t[0])?t[0]:{};(!d(a.globalInstall)||a.globalInstall)&&(e.component(Me.name,Me),e.component(Ce.name,Ce),e.component(Ae.name,Ae))}(a,...l),!n&&r&&(t=function(e,t,a){const n=t.watchLocale(a);return e.prototype.$t=function(...e){return Reflect.apply(a.t,a,[...e])},e.prototype.$d=function(...e){return Reflect.apply(a.d,a,[...e])},e.prototype.$n=function(...e){return Reflect.apply(a.n,a,[...e])},n}(a,e,c)),a.mixin(function(e,t){return{beforeCreate(){const a=this.$options;if(!a.__VUE18N__INSTANCE__)if(a.i18n=a.i18n||(a.__i18nBridge?{}:null),this._i18nBridgeRoot=e,"composition"!==e.mode)if(a.i18n){if(a.i18n instanceof t){if(a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>Fe(JSON.parse(t),e))),Object.keys(e).forEach((t=>{a.i18n.mergeLocaleMessage(t,e[t])}))}catch(e){}this._i18n=a.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(y(a.i18n)){const e=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this.$root.$i18n:null;if(e&&(a.i18n.root=this.$root,a.i18n.formatter=e.formatter,a.i18n.fallbackLocale=e.fallbackLocale,a.i18n.formatFallbackMessages=e.formatFallbackMessages,a.i18n.silentTranslationWarn=e.silentTranslationWarn,a.i18n.silentFallbackWarn=e.silentFallbackWarn,a.i18n.pluralizationRules=e.pluralizationRules,a.i18n.preserveDirectiveContent=e.preserveDirectiveContent),a.__i18nBridge)try{const e=a.i18n&&a.i18n.messages?a.i18n.messages:{};a.__i18nBridge.forEach((t=>Fe(JSON.parse(t),e))),a.i18n.messages=e}catch(e){}const{sharedMessages:n}=a.i18n;n&&y(n)&&Fe(n,a.i18n.messages),this._i18n=new t(a.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===a.i18n.sync||a.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t?this._i18n=this.$root.$i18n:a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t&&(this._i18n=a.parent.$i18n);else this._i18n=e},beforeMount(){const a=this.$options;a.__VUE18N__INSTANCE__||"composition"!==e.mode&&(a.i18n=a.i18n||(a.__i18nBridge?{}:null),a.i18n?(a.i18n instanceof t||y(a.i18n))&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof t||a.parent&&a.parent.$i18n&&a.parent.$i18n instanceof t)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0))},beforeDestroy(){if(this.$options.__VUE18N__INSTANCE__)return;if(this._i18nBridgeRoot)return void delete this._i18nBridgeRoot;if("composition"===e.mode)return void delete this._i18n;if(!this._i18n)return;const t=this;this.$nextTick((()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)}))}}}(e,Pe))}}),Object.defineProperty(e,"dispose",{value:()=>{t&&t(),i.stop()}});const a={__getInstance:function(e){return s.get(e)||null},__setInstance:function(e,t){s.set(e,t)},__deleteInstance:function(e){s.delete(e)}};return Object.keys(a).forEach((t=>Object.defineProperty(e,t,{value:a[t]}))),e}},e.useI18n=$e,Object.defineProperty(e,"__esModule",{value:!0}),e}({},VueDemi);
{
"name": "vue-i18n-bridge",
"version": "9.2.0-beta.40",
"version": "9.2.0",
"description": "A bridge for Vue I18n Legacy",

@@ -40,5 +40,5 @@ "keywords": [

"dependencies": {
"@intlify/core-base": "9.2.0-beta.40",
"@intlify/shared": "9.2.0-beta.40",
"@intlify/vue-devtools": "9.2.0-beta.40",
"@intlify/core-base": "9.2.0",
"@intlify/shared": "9.2.0",
"@intlify/vue-devtools": "9.2.0",
"@vue/devtools-api": "^6.2.1",

@@ -48,3 +48,3 @@ "vue-demi": "^0.13.4"

"devDependencies": {
"@intlify/devtools-if": "9.2.0-beta.40"
"@intlify/devtools-if": "9.2.0"
},

@@ -51,0 +51,0 @@ "peerDependencies": {

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 too big to display

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 too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc