constt=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];functione(t,e){"undefined"!=typeofconsole&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}constn=Array.isArray;functions(t){returnnull!==t&&"object"==typeoft}functioni(t){return"string"==typeoft}constr=Object.prototype.toString,a="[object Object]";functiono(t){returnr.call(t)===a}functionl(t){returnnull==t}functionc(t){return"function"==typeoft}functionh(...t){lete=null,i=null;return1===t.length?s(t[0])||n(t[0])?i=t[0]:"string"==typeoft[0]&&(e=t[0]):2===t.length&&("string"==typeoft[0]&&(e=t[0]),(s(t[1])||n(t[1]))&&(i=t[1])),{locale:e,params:i}}functionu(t){returnJSON.parse(JSON.stringify(t))}function_(t,e){return!!~t.indexOf(e)}constm=Object.prototype.hasOwnProperty;functionf(t,e){returnm.call(t,e)}functiong(t){conste=Object(t);for(lett=1;t<arguments.length;t++){constn=arguments[t];if(null!=n){lett;for(tinn)f(n,t)&&(s(n[t])?e[t]=g(e[t],n[t]):e[t]=n[t])}}returne}functionp(t,e){if(t===e)return!0;consti=s(t),r=s(e);if(!i||!r)return!i&&!r&&String(t)===String(e);try{consts=n(t),i=n(e);if(s&&i)returnt.length===e.length&&t.every((t,n)=>p(t,e[n]));if(s||i)return!1;{constn=Object.keys(t),s=Object.keys(e);returnn.length===s.length&&n.every(n=>p(t[n],e[n]))}}catch(t){return!1}}vard={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render(t,{data:e,parent:n,props:s,slots:i}){const{$i18n:r}=n;if(!r)return;const{path:a,locale:o,places:l}=s,c=i(),h=r.i(a,o,function(t){lete;for(eint)if("default"!==e)return!1;returnBoolean(e)}(c)||l?function(t,e){constn=e?function(t){returnArray.isArray(t)?t.reduce(v,{}):Object.assign({},t)}(e):{};if(!t)returnn;consts=(t=t.filter(t=>t.tag||""!==t.text.trim())).every(y);returnt.reduce(s?b:v,n)}(c.default,l):c),u=s.tag&&!0!==s.tag||!1===s.tag?s.tag:"span";returnu?t(u,e,h):h}};functionb(t,e){returne.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}functionv(t,e,n){returnt[n]=e,t}functiony(t){returnBoolean(t.data&&t.data.attrs&&t.data.attrs.place)}vark={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render(e,{props:n,parent:r,data:a}){consto=r.$i18n;if(!o)returnnull;letl=null,c=null;i(n.format)?l=n.format:s(n.format)&&(n.format.key&&(l=n.format.key),c=Object.keys(n.format).reduce((e,s)=>_(t,s)?Object.assign({},e,{[s]:n.format[s]}):e,null));consth=n.locale||o.locale,u=o._ntp(n.value,h,l,c),m=u.map((t,e)=>{constn=a.scopedSlots&&a.scopedSlots[t.type];returnn?n({[t.type]:t.value,index:e,parts:u}):t.value}),f=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";returnf?e(f,{attrs:a.attrs,class:a.class,staticClass:a.staticClass},m):m}};functionF(t,e,n){M(t,n)&&C(t,e,n)}function$(t,e,n,s){if(!M(t,n))return;consti=n.context.$i18n;(function(t,e){constn=e.context;returnt._locale===n.$i18n.locale})(t,n)&&p(e.value,e.oldValue)&&p(t._localeMessage,i.getLocaleMessage(i.locale))||C(t,e,n)}functionw(t,n,s,i){if(!s.context)returnvoide("Vue instance does not exists in VNode context");constr=s.context.$i18n||{};n.modifiers.preserve||r.preserveDirectiveContent||(t.textContent=""),t._vt=void0,deletet._vt,t._locale=void0,deletet._locale,t._localeMessage=void0,deletet._localeMessage}functionM(t,n){consts=n.context;returns?!!s.$i18n||(e("VueI18n instance does not exists in Vue instance"),!1):(e("Vue instance does not exists in VNode context"),!1)}functionC(t,n,s){constr=n.value,{path:a,locale:l,args:c,choice:h}=function(t){lete,n,s,r;i(t)?e=t:o(t)&&(e=t.path,n=t.locale,s=t.args,r=t.choice);return{path:e,locale:n,args:s,choice:r}}(r);if(!a&&!l&&!c)returnvoide("value type not supported");if(!a)returnvoide("`path` is required in v-t directive");constu=s.context;t._vt=t.textContent=null!=h?u.$i18n.tc(a,h,...T(l,c)):u.$i18n.t(a,...T(l,c)),t._locale=u.$i18n.locale,t._localeMessage=u.$i18n.getLocaleMessage(u.$i18n.locale)}functionT(t,e){constn=[];returnt&&n.push(t),e&&(Array.isArray(e)||o(e))&&n.push(e),n}letI;functionD(t,e={bridge:!1}){D.installed=!0;(I=t).version&&Number(I.version.split(".")[0]);!function(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get(){returnthis._i18n}}),t.prototype.$t=function(t,...e){constn=this.$i18n;returnn._t(t,n.locale,n._getMessages(),this,...e)},t.prototype.$tc=function(t,e,...n){consts=this.$i18n;returns._tc(t,s.locale,s._getMessages(),this,e,...n)},t.prototype.$te=function(t,e){constn=this.$i18n;returnn._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t,...e){returnthis.$i18n.d(t,...e)},t.prototype.$n=function(t,...e){returnthis.$i18n.n(t,...e)}}(I),I.mixin(function(t=!1){functione(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}returnt?{mounted:e}:{beforeCreate(){constt=this.$options;if(t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n){if(t.i18ninstanceofQ){if(t.__i18nBridge||t.__i18n)try{lete=t.i18n&&t.i18n.messages?t.i18n.messages:{};(t.__i18nBridge||t.__i18n).forEach(t=>{e=g(e,JSON.parse(t))}),Object.keys(e).forEach(n=>{t.i18n.mergeLocaleMessage(n,e[n])})}catch(t){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}elseif(o(t.i18n)){conste=this.$root&&this.$root.$i18n&&this.$root.$i18ninstanceofQ?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||t.__i18n)try{lete=t.i18n&&t.i18n.messages?t.i18n.messages:{};(t.__i18nBridge||t.__i18n).forEach(t=>{e=g(e,JSON.parse(t))}),t.i18n.messages=e}catch(t){}const{sharedMessages:n}=t.i18n;n&&o(n)&&(t.i18n.messages=g(t.i18n.messages,n)),this._i18n=newQ(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),e&&e.onComponentInstanceCreated(this._i18n)}}elsethis.$root&&this.$root.$i18n&&this.$root.$i18ninstanceofQ?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18ninstanceofQ&&(this._i18n=t.parent.$i18n)},beforeMount(){constt=this.$options;t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n?t.i18ninstanceofQ?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):o(t.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18ninstanceofQ?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18ninstanceofQ&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy(){if(!this._i18n)return;constt=this;this.$nextTick(()=>{t._subscribing&&(t._i18n.unsubscribeDataChanging(t),deletet._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),deletet._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),deletet._localeWatcher)})}}}(e.bridge)),I.directive("t",{bind:F,update:$,unbind:w}),I.component(d.name,d),I.component(k.name,k),I.config.optionMergeStrategies.i18n=function(t,e){returnvoid0===e?t:e}}constL=/^(?:\d)+/,O=/^(?:\w)+/;constx=0,N=1,W=2,j=3,E=0,S=4,R=5,V=6,H=7,A=8,P=[];P[E]={ws:[E],ident:[3,x],"[":[S],eof:[H]},P[1]={ws:[1],".":[2],"[":[S],eof:[H]},P[2]={ws:[2],ident:[3,x],0:[3,x],number:[3,x]},P[3]={ident:[3,x],0:[3,x],number:[3,x],ws:[1,N],".":[2,N],"[":[S,N],eof:[H,N]},P[S]={"'":[R,x],'"':[V,x],"[":[S,W],"]":[1,j],eof:A,else:[S,x]},P[R]={"'":[S,x],eof:A,else:[R,x]},P[V]={'"':[S,x],eof:A,else:[V,x]};constB=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;functionU(t){if(null==t)return"eof";switch(t.charCodeAt(0)){case91:case93:case46:case34:case39:returnt;case95:case36:case45:return"ident";case9:case10:case13:case160:case65279:case8232:case8233:return"ws"}return"ident"}functionz(t){conste=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(n=e,B.test(n)?function(t){conste=t.charCodeAt(0);returne!==t.charCodeAt(t.length-1)||34!==e&&39!==e?t:t.slice(1,-1)}(e):"*"+e);varn}classG{constructor(){this._cache=Object.create(null)}parsePath(t){lete=this._cache[t];returne||(e=function(t){conste=[];letn,s,i,r,a,o,l,c=-1,h=E,u=0;const_=[];functionm(){conste=t[c+1];if(h===R&&"'"===e||h===V&&'"'===e)returnc++,i="\\"+e,_[x](),!0}for(_[N]=function(){void0!==s&&(e.push(s),s=void0)},_[x]=function(){void0===s?s=i:s+=i},_[W]=function(){_[x](),u++},_[j]=function(){if(u>0)u--,h=S,_[x]();else{if(u=0,void0===s)return!1;if(!1===(s=z(s)))return!1;_[N]()}};null!==h;)if("\\"!==(n=t[++c])||!m()){if(r=U(n),(a=(l=P[h])[r]||l.else||A)===A)return;if(h=a[0],(o=_[a[1]])&&(i=void0===(i=a[2])?n:i,!1===o()))return;if(h===H)returne}}(t))&&(this._cache[t]=e),e||[]}getPathValue(t,e){if(!s(t))returnnull;constn=this.parsePath(e);if(0===n.length)returnnull;{conste=n.length;lets=t,i=0;for(;i<e;){constt=s[n[i]];if(null==t)returnnull;s=t,i++}returns}}}constq=/<\/?[\w\s="/.':;#-\/]+>/,J=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,Z=/^@(?:\.([a-zA-Z]+))?:/,Y=/[()]/g,X={upper:t=>t.toLocaleUpperCase(),lower:t=>t.toLocaleLowerCase(),capitalize:t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`},K=newclass{constructor(){this._caches=Object.create(null)}interpolate(t,e){if(!e)return[t];letn=this._caches[t];returnn||(n=function(t){conste=[];letn=0,s="";for(;n<t.length;){leti=t[n++];if("{"===i){s&&e.push({type:"text",value:s}),s="";letr="";for(i=t[n++];void0!==i&&"}"!==i;)r+=i,i=t[n++];consta="}"===i,o=L.test(r)?"list":a&&O.test(r)?"named":"unknown";e.push({value:r,type:o})}else"%"===i?"{"!==t[n]&&(s+=i):s+=i}returns&&e.push({type:"text",value:s}),e}(t),this._caches[t]=n),function(t,e){constn=[];leti=0;constr=Array.isArray(e)?"list":s(e)?"named":"unknown";if("unknown"===r)returnn;for(;i<t.length;){consts=t[i];switch(s.type){case"text":n.push(s.value);break;case"list":n.push(e[parseInt(s.value,10)]);break;case"named":"named"===r&&n.push(e[s.value])}i++}returnn}(n,e)}};classQ{constructor(t={}){!I&&"undefined"!=typeofwindow&&window.Vue&&D(window.Vue);conste=t.locale||"en-US",n=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),s=t.messages||{},i=t.dateTimeFormats||t.datetimeFormats||{},r=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||K,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void0===t.sync||!!t.sync,this._fallbackRoot=void0===t.fallbackRoot||!!t.fallbackRoot,this._fallbackRootWithEmptyString=void0===t.fallbackRootWithEmptyString||!!t.fallbackRootWithEmptyString,this._formatFallbackMessages=void0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=newG,this._dataListeners=newSet,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"int&&(this.__VUE_I18N_BRIDGE__=t.__VUE_I18N_BRIDGE__),this.getChoiceIndex=((t,e)=>{constn=Object.getPrototypeOf(this);if(n&&n.getChoiceIndex){returnn.getChoiceIndex.call(this,t,e)}returnthis.localeinthis.pluralizationRules?this.pluralizationRules[this.locale].apply(this,[t,e]):((t,e)=>(t=Math.abs(t),2===e?t?t>1?1:0:1:t?Math.min(t,2):0))(t,e)}),this._exist=((t,e)=>!(!t||!e)&&(!l(this._path.getPathValue(t,e))||!!t[e])),"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(s).forEach(t=>{this._checkLocaleMessage(t,this._warnHtmlInMessage,s[t])}),this._initVM({locale:e,fallbackLocale:n,messages:s,dateTimeFormats:i,numberFormats:r})}_checkLocaleMessage(t,s,r){consta=(t,s,r,l)=>{if(o(r))Object.keys(r).forEach(e=>{constn=r[e];o(n)?(l.push(e),l.push("."),a(t,s,n,l),l.pop(),l.pop()):(l.push(e),a(t,s,n,l),l.pop())});elseif(n(r))r.forEach((e,n)=>{o(e)?(l.push(`[${n}]`),l.push("."),a(t,s,e,l),l.pop(),l.pop()):(l.push(`[${n}]`),a(t,s,e,l),l.pop())});elseif(i(r)){if(q.test(r)){constn=`Detected HTML in message '${r}' of keypath '${l.join("")}' at '${s}'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp`;"warn"===t?e(n):"error"===t&&function(t,e){"undefined"!=typeofconsole&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}(n)}}};a(s,t,r,[])}_initVM(t){conste=I.config.silent;I.config.silent=!0,this._vm=newI({data:t,__VUE18N__INSTANCE__:!0}),I.config.silent=e}destroyVM(){this._vm.$destroy()}subscribeDataChanging(t){this._dataListeners.add(t)}unsubscribeDataChanging(t){!function(t,e){if(t.delete(e));}(this._dataListeners,t)}watchI18nData(){returnthis._vm.$watch("$data",()=>{constt=function(t){conste=[];returnt.forEach(t=>e.push(t)),e}(this._dataListeners);lete=t.length;for(;e--;)I.nextTick(()=>{t[e]&&t[e].$forceUpdate()})},{deep:!0})}watchLocale(t){if(t){if(!this.__VUE_I18N_BRIDGE__)returnnull;conste=this,n=this._vm;returnthis.vm.$watch("locale",s=>{n.$set(n,"locale",s),e.__VUE_I18N_BRIDGE__&&t&&(t.locale.value=s),n.$forceUpdate()},{immediate:!0})}{if(!this._sync||!this._root)returnnull;constt=this._vm;returnthis._root.$i18n.vm.$watch("locale",e=>{t.$set(t,"locale",e),t.$forceUpdate()},{immediate:!0})}}onComponentInstanceCreated(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)}getvm(){returnthis._vm}getmessages(){returnu(this._getMessages())}getdateTimeFormats(){returnu(this._getDateTimeFormats())}getnumberFormats(){returnu(this._getNumberFormats())}getavailableLocales(){returnObject.keys(this.messages).sort()}getlocale(){returnthis._vm.locale}setlocale(t){this._vm.$set(this._vm,"locale",t)}getfallbackLocale(){returnthis._vm.fallbackLocale}setfallbackLocale(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)}getformatFallbackMessages(){returnthis._formatFallbackMessages}setformatFallbackMessages(t){this._formatFallbackMessages=t}getmissing(){returnthis._missing}setmissing(t){this._missing=t}getformatter(){returnthis._formatter}setformatter(t){this._formatter=t}getsilentTranslationWarn(){returnthis._silentTranslationWarn}setsilentTranslationWarn(t){this._silentTranslationWarn=t}getsilentFallbackWarn(){returnthis._silentFallbackWarn}setsilentFallbackWarn(t){this._silentFallbackWarn=t}getpreserveDirectiveContent(){returnthis._preserveDirectiveContent}setpreserveDirectiveContent(t){this._preserveDirectiveContent=t}getwarnHtmlInMessage(){returnthis._warnHtmlInMessage}setwarnHtmlInMessage(t){conste=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,e!==t&&("warn"===t||"error"===t)){constt=this._getMessages();Object.keys(t).forEach(e=>{this._checkLocaleMessage(e,this._warnHtmlInMessage,t[e])})}}getpostTranslation(){returnthis._postTranslation}setpostTranslation(t){this._postTranslation=t}getsync(){returnthis._sync}setsync(t){this._sync=t}_getMessages(){returnthis._vm.messages}_getDateTimeFormats(){returnthis._vm.dateTimeFormats}_getNumberFormats(){returnthis._vm.numberFormats}_warnDefault(t,e,n,s,r,a){if(!l(n))returnn;if(this._missing){constn=this._missing.apply(null,[t,e,s,r]);if(i(n))returnn}if(this._formatFallbackMessages){constt=h(...r);returnthis._render(e,a,t.params,e)}returne}_isFallbackRoot(t){return(this._fallbackRootWithEmptyString?!t:l(t))&&!l(this._root)&&this._fallbackRoot}_isSilentFallbackWarn(t){returnthis._silentFallbackWarninstanceofRegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn}_isSilentFallback(t,e){returnthis._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)}_isSilentTranslationWarn(t){returnthis._silentTranslationWarninstanceofRegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn}_interpolate(t,e,s,r,a,h,u){if(!e)returnnull;const_=this._path.getPathValue(e,s);if(n(_)||o(_))return_;letm;if(l(_)){if(!o(e))returnnull;if(!i(m=e[s])&&!c(m))returnnull}else{if(!i(_)&&!c(_))returnnull;m=_}returni(m)&&(m.indexOf("@:")>=0||m.indexOf("@.")>=0)&&(m=this._link(t,e,m,r,"raw",h,u)),this._render(m,a,h,s)}_link(t,e,s,i,r,a,o){letl=s;constc=l.match(J);for(letsinc){if(!c.hasOwnProperty(s))continue;consth=c[s],u=h.match(Z),[m,f]=u,g=h.replace(m,"").replace(Y,"");if(_(o,g))returnl;o.push(g);letp=this._interpolate(t,e,g,i,"raw"===r?"string":r,"raw"===r?void0:a,o);if(this._isFallbackRoot(p)){if(!this._root)throwError("unexpected error");constt=this._root.$i18n;p=t._translate(t._getMessages(),t.locale,t.fallbackLocale,g,i,r,a)}p=this._warnDefault(t,g,p,i,n(a)?a:[a],r),this._modifiers.hasOwnProperty(f)?p=this._modifiers[f](p):X.hasOwnProperty(f)&&(p=X[f](p)),o.pop(),l=p?l.replace(h,p):l}returnl}_createMessageContext(t,e,i,r){consta=n(t)?t:[],o=s(t)?t:{},l=this._getMessages(),c=this.locale;return{list:t=>a[t],named:t=>o[t],values:t,formatter:e,path:i,messages:l,locale:c,linked:t=>this._interpolate(c,l[c]||{},t,null,r,void0,[t])}}_render(t,e,n,s){if(c(t))returnt(this._createMessageContext(n,this._formatter||K,s,e));letr=this._formatter.interpolate(t,n,s);returnr||(r=K.interpolate(t,n,s)),"string"!==e||i(r)?r:r.join("")}_appendItemToChain(t,e,n){lets=!1;return_(t,e)||(s=!0,e&&(s="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(s=n[e]))),s}_appendLocaleToChain(t,e,n){lets;consti=e.split("-");do{conste=i.join("-");s=this._appendItemToChain(t,e,n),i.splice(-1,1)}while(i.length&&!0===s);returns}_appendBlockToChain(t,e,n){lets=!0;for(letr=0;r<e.length&&"boolean"==typeofs;r++){consta=e[r];i(a)&&(s=this._appendLocaleToChain(t,a,n))}returns}_getLocaleChain(t,e){if(""===t)return[];this._localeChainCache||(this._localeChainCache={});letr=this._localeChainCache[t];if(!r){e||(e=this.fallbackLocale),r=[];leta,o=[t];for(;n(o);)o=this._appendBlockToChain(r,o,e);(o=i(a=n(e)?e:s(e)?e.default?e.default:null:e)?[a]:a)&&this._appendBlockToChain(r,o,null),this._localeChainCache[t]=r}returnr}_translate(t,e,n,s,i,r,a){consto=this._getLocaleChain(e,n);letc;for(lete=0;e<o.length;e++){constn=o[e];if(!l(c=this._interpolate(n,t[n],s,i,r,a,[s])))returnc}returnnull}_t(t,e,n,s,...i){if(!t)return"";constr=h(...i);vara;this._escapeParameterHtml&&(r.params=(null!=(a=r.params)&&Object.keys(a).forEach(t=>{"string"==typeofa[t]&&(a[t]=function(t){returnt.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}(a[t]))}),a));consto=r.locale||e;letl=this._translate(n,o,this.fallbackLocale,t,s,"string",r.params);if(this._isFallbackRoot(l)){if(!this._root)throwError("unexpected error");returnthis._root.$t(t,...i)}returnl=this._warnDefault(o,t,l,s,i,"string"),this._postTranslation&&null!=l&&(l=this._postTranslation(l,t)),l}t(t,...e){returnthis._t(t,this.locale,this._getMessages(),null,...e)}_i(t,e,n,s,i){constr=this._translate(n,e,this.fallbackLocale,t,s,"raw",i);if(this._isFallbackRoot(r)){if(!this._root)throwError("unexpected error");returnthis._root.$i18n.i(t,e,i)}returnthis._warnDefault(e,t,r,s,[i],"raw")}i(t,e,n){returnt?(i(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""}_tc(t,e,n,s,i,...r){if(!t)return"";void0===i&&(i=1);consta={count:i,n:i},o=h(...r);returno.params=Object.assign(a,o.params),r=null===o.locale?[o.params]:[o.locale,o.params],this.fetchChoice(this._t(t,e,n,s,...r),i)}fetchChoice(t,e){if(!t||!i(t))returnnull;constn=t.split("|");returnn[e=this.getChoiceIndex(e,n.length)]?n[e].trim():t}tc(t,e,...n){returnthis._tc(t,this.locale,this._getMessages(),null,e,...n)}_te(t,e,n,...s){consti=h(...s).locale||e;returnthis._exist(n[i],t)}te(t,e){returnthis._te(t,this.locale,this._getMessages(),e)}getLocaleMessage(t){returnu(this._vm.messages[t]||{})}setLocaleMessage(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)}mergeLocaleMessage(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,g(void0!==this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))}getDateTimeFormat(t){returnu(this._vm.dateTimeFormats[t]||{})}setDateTimeFormat(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)}mergeDateTimeFormat(t,e){this._vm.$set(this._vm.dateTimeFormats,t,g(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)}_clearDateTimeFormat(t,e){for(letnine){conste=`${t}__${n}`;this._dateTimeFormatters.hasOwnProperty(e)&&deletethis._dateTimeFormatters[e]}}_localizeDateTime(t,e,n,s,i){letr=e,a=s[r];consto=this._getLocaleChain(e,n);for(lett=0;t<o.length;t++){conste=o[t];if(r=e,!l(a=s[e])&&!l(a[i]))break}if(l(a)||l(a[i]))returnnull;{conste=a[i],n=`${r}__${i}`;lets=this._dateTimeFormatters[n];returns||(s=this._dateTimeFormatters[n]=newIntl.DateTimeFormat(r,e)),s.format(t)}}_d(t,e,n){if(!n)returnnewIntl.DateTimeFormat(e).format(t);consts=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),n);if(this._isFallbackRoot(s)){if(!this._root)throwError("unexpected error");returnthis._root.$i18n.d(t,n,e)}returns||""}d(t,...e){letn=this.locale,r=null;return1===e.length?i(e[0])?r=e[0]:s(e[0])&&(e[0].locale&&(n=e[0].locale),e[0].key&&(r=e[0].key)):2===e.length&&(i(e[0])&&(r=e[0]),i(e[1])&&(n=e[1])),this._d(t,n,r)}getNumberFormat(t){returnu(this._vm.numberFormats[t]||{})}setNumberFormat(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)}mergeNumberFormat(t,e){this._vm.$set(this._vm.numberFormats,t,g(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)}_clearNumberFormat(t,e){for(letnine){conste=`${t}__${n}`;this._numberFormatters.hasOwnProperty(e)&&deletethis._numberFormatters[e]}}_getNumberFormatter(t,e,n,s,i,r){leta=e,o=s[a];constc=this._getLocaleChain(e,n);for(lett=0;t<c.length;t++){conste=c[t];if(a=e,!l(o=s[e])&&!l(o[i]))break}if(l(o)||l(o[i]))returnnull;{constt=o[i];lete;if(r)e=newIntl.NumberFormat(a,Object.assign({},t,r));else{constn=`${a}__${i}`;(e=this._numberFormatters[n])||(e=this._numberFormatters[n]=newIntl.NumberFormat(a,t))}returne}}_n(t,e,n,s){if(!Q.availabilities.numberFormat)return"";if(!n){return(s?newIntl.NumberFormat(e,s):newIntl.NumberFormat(e)).format(t)}consti=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,s),r=i&&i.format(t);if(this._isFallbackRoot(r)){if(!this._root)throwError("unexpected error");returnthis._root.$i18n.n(t,Object.assign({},{key:n,locale:e},s))}returnr||""}n(e,...n){letr=this.locale,a=null,o=null;return1===n.length?i(n[0])?a=n[0]:s(n[0])&&(n[0].locale&&(r=n[0].locale),n[0].key&&(a=n[0].key),o=Object.keys(n[0]).reduce((e,s)=>_(t,s)?Object.assign({},e,{[s]:n[0][s]}):e,null)):2===n.length&&(i(n[0])&&(a=n[0]),i(n[1])&&(r=n[1])),this._n(e,r,a,o)}_ntp(t,e,n,s){if(!Q.availabilities.numberFormat)return[];if(!n){return(s?newIntl.NumberFormat(e,s):newIntl.NumberFormat(e)).formatToParts(t)}consti=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,s),r=i&&i.formatToParts(t);if(this._isFallbackRoot(r)){if(!this._root)throwError("unexpected error");returnthis._root.$i18n._ntp(t,e,n,s)}returnr||[]}}lettt;Object.defineProperty(Q,"availabilities",{get(){if(!tt){constt="undefined"!=typeofIntl;tt={dateTimeFormat:t&&void0!==Intl.DateTimeFormat,numberFormat:t&&void0!==Intl.NumberFormat}}returntt}}),Q.install=D,Q.version="8.27.2";exportdefaultQ;