import{D as ce,F as Nt,X as he,m as Ut,j as Yt,l as Gt,r as de,c as _e,f as st,k as Jt,e as lt,aN as ct}from"./runtime-core.esm-bundler.82ad49fb.js";/*!
  * @intlify/shared v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const Kt=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",z=e=>Kt?Symbol(e):e,Bt=(e,t,a)=>qt({l:e,k:t,s:a}),qt=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),A=e=>typeof e=="number"&&isFinite(e),Zt=e=>Xe(e)==="[object Date]",ie=e=>Xe(e)==="[object RegExp]",Se=e=>w(e)&&Object.keys(e).length===0;function Qt(e,t){typeof console!="undefined"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const x=Object.assign;let it;const be=()=>it||(it=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function ot(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Xt=Object.prototype.hasOwnProperty;function Mt(e,t){return Xt.call(e,t)}const R=Array.isArray,H=e=>typeof e=="function",p=e=>typeof e=="string",W=e=>typeof e=="boolean",Y=e=>e!==null&&typeof e=="object",Et=Object.prototype.toString,Xe=e=>Et.call(e),w=e=>Xe(e)==="[object Object]",zt=e=>e==null?"":R(e)||w(e)&&e.toString===Et?JSON.stringify(e,null,2):String(e);/*!
  * @intlify/message-resolver v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const en=Object.prototype.hasOwnProperty;function tn(e,t){return en.call(e,t)}const Ie=e=>e!==null&&typeof e=="object",ne=[];ne[0]={w:[0],i:[3,0],["["]:[4],o:[7]};ne[1]={w:[1],["."]:[2],["["]:[4],o:[7]};ne[2]={w:[2],i:[3,0],[0]:[3,0]};ne[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};ne[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};ne[5]={["'"]:[4,0],o:8,l:[5,0]};ne[6]={['"']:[4,0],o:8,l:[6,0]};const nn=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function an(e){return nn.test(e)}function rn(e){const t=e.charCodeAt(0),a=e.charCodeAt(e.length-1);return t===a&&(t===34||t===39)?e.slice(1,-1):e}function sn(e){if(e==null)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 ln(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:an(t)?rn(t):"*"+t}function cn(e){const t=[];let a=-1,n=0,s=0,r,i,o,m,g,I,F;const T=[];T[0]=()=>{i===void 0?i=o:i+=o},T[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},T[2]=()=>{T[0](),s++},T[3]=()=>{if(s>0)s--,n=4,T[0]();else{if(s=0,i===void 0||(i=ln(i),i===!1))return!1;T[1]()}};function N(){const M=e[a+1];if(n===5&&M==="'"||n===6&&M==='"')return a++,o="\\"+M,T[0](),!0}for(;n!==null;)if(a++,r=e[a],!(r==="\\"&&N())){if(m=sn(r),F=ne[n],g=F[m]||F.l||8,g===8||(n=g[0],g[1]!==void 0&&(I=T[g[1]],I&&(o=r,I()===!1))))return;if(n===7)return t}}const ut=new Map;function Oe(e,t){if(!Ie(e))return null;let a=ut.get(t);if(a||(a=cn(t),a&&ut.set(t,a)),!a)return null;const n=a.length;let s=e,r=0;for(;r<n;){const i=s[a[r]];if(i===void 0)return null;s=i,r++}return s}function Ue(e){if(!Ie(e))return e;for(const t in e)if(!!tn(e,t))if(!t.includes("."))Ie(e[t])&&Ue(e[t]);else{const a=t.split("."),n=a.length-1;let s=e;for(let r=0;r<n;r++)a[r]in s||(s[a[r]]={}),s=s[a[r]];s[a[n]]=e[t],delete e[t],Ie(s[a[n]])&&Ue(s[a[n]])}return e}/*!
  * @intlify/runtime v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const on=e=>e,un=e=>"",fn="text",mn=e=>e.length===0?"":e.join(""),dn=zt;function ft(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function _n(e){const t=A(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(A(e.named.count)||A(e.named.n))?A(e.named.count)?e.named.count:A(e.named.n)?e.named.n:t:t}function gn(e,t){t.count||(t.count=e),t.n||(t.n=e)}function bn(e={}){const t=e.locale,a=_n(e),n=Y(e.pluralRules)&&p(t)&&H(e.pluralRules[t])?e.pluralRules[t]:ft,s=Y(e.pluralRules)&&p(t)&&H(e.pluralRules[t])?ft:void 0,r=b=>b[n(a,b.length,s)],i=e.list||[],o=b=>i[b],m=e.named||{};A(e.pluralIndex)&&gn(a,m);const g=b=>m[b];function I(b){const u=H(e.messages)?e.messages(b):Y(e.messages)?e.messages[b]:!1;return u||(e.parent?e.parent.message(b):un)}const F=b=>e.modifiers?e.modifiers[b]:on,T=w(e.processor)&&H(e.processor.normalize)?e.processor.normalize:mn,N=w(e.processor)&&H(e.processor.interpolate)?e.processor.interpolate:dn,M=w(e.processor)&&p(e.processor.type)?e.processor.type:fn,v={list:o,named:g,plural:r,linked:(b,u)=>{const h=I(b)(v);return p(u)?F(u)(h):h},message:I,type:M,interpolate:N,normalize:T};return v}/*!
  * @intlify/message-compiler v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */function Ce(e,t,a={}){const{domain:n,messages:s,args:r}=a,i=e,o=new SyntaxError(String(i));return o.code=e,t&&(o.location=t),o.domain=n,o}function hn(e){throw e}function kn(e,t,a){return{line:e,column:t,offset:a}}function Ye(e,t,a){const n={start:e,end:t};return a!=null&&(n.source=a),n}const X=" ",Ln="\r",U=`
`,yn=String.fromCharCode(8232),pn=String.fromCharCode(8233);function Tn(e){const t=e;let a=0,n=1,s=1,r=0;const i=C=>t[C]===Ln&&t[C+1]===U,o=C=>t[C]===U,m=C=>t[C]===pn,g=C=>t[C]===yn,I=C=>i(C)||o(C)||m(C)||g(C),F=()=>a,T=()=>n,N=()=>s,M=()=>r,v=C=>i(C)||m(C)||g(C)?U:t[C],b=()=>v(a),u=()=>v(a+r);function h(){return r=0,I(a)&&(n++,s=0),i(a)&&a++,a++,s++,t[a]}function L(){return i(a+r)&&r++,r++,t[a+r]}function f(){a=0,n=1,s=1,r=0}function O(C=0){r=C}function S(){const C=a+r;for(;C!==a;)h();r=0}return{index:F,line:T,column:N,peekOffset:M,charAt:v,currentChar:b,currentPeek:u,next:h,peek:L,reset:f,resetPeek:O,skipToPeek:S}}const te=void 0,mt="'",Fn="tokenizer";function In(e,t={}){const a=t.location!==!1,n=Tn(e),s=()=>n.index(),r=()=>kn(n.line(),n.column(),n.index()),i=r(),o=s(),m={currentType:14,offset:o,startLoc:i,endLoc:i,lastType:14,lastOffset:o,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},g=()=>m,{onError:I}=t;function F(l,c,d,...y){const P=g();if(c.column+=d,c.offset+=d,I){const E=Ye(P.startLoc,c),J=Ce(l,E,{domain:Fn,args:y});I(J)}}function T(l,c,d){l.endLoc=r(),l.currentType=c;const y={type:c};return a&&(y.loc=Ye(l.startLoc,l.endLoc)),d!=null&&(y.value=d),y}const N=l=>T(l,14);function M(l,c){return l.currentChar()===c?(l.next(),c):(F(0,r(),0,c),"")}function v(l){let c="";for(;l.currentPeek()===X||l.currentPeek()===U;)c+=l.currentPeek(),l.peek();return c}function b(l){const c=v(l);return l.skipToPeek(),c}function u(l){if(l===te)return!1;const c=l.charCodeAt(0);return c>=97&&c<=122||c>=65&&c<=90||c===95}function h(l){if(l===te)return!1;const c=l.charCodeAt(0);return c>=48&&c<=57}function L(l,c){const{currentType:d}=c;if(d!==2)return!1;v(l);const y=u(l.currentPeek());return l.resetPeek(),y}function f(l,c){const{currentType:d}=c;if(d!==2)return!1;v(l);const y=l.currentPeek()==="-"?l.peek():l.currentPeek(),P=h(y);return l.resetPeek(),P}function O(l,c){const{currentType:d}=c;if(d!==2)return!1;v(l);const y=l.currentPeek()===mt;return l.resetPeek(),y}function S(l,c){const{currentType:d}=c;if(d!==8)return!1;v(l);const y=l.currentPeek()===".";return l.resetPeek(),y}function C(l,c){const{currentType:d}=c;if(d!==9)return!1;v(l);const y=u(l.currentPeek());return l.resetPeek(),y}function $(l,c){const{currentType:d}=c;if(!(d===8||d===12))return!1;v(l);const y=l.currentPeek()===":";return l.resetPeek(),y}function D(l,c){const{currentType:d}=c;if(d!==10)return!1;const y=()=>{const E=l.currentPeek();return E==="{"?u(l.peek()):E==="@"||E==="%"||E==="|"||E===":"||E==="."||E===X||!E?!1:E===U?(l.peek(),y()):u(E)},P=y();return l.resetPeek(),P}function G(l){v(l);const c=l.currentPeek()==="|";return l.resetPeek(),c}function ee(l,c=!0){const d=(P=!1,E="",J=!1)=>{const Q=l.currentPeek();return Q==="{"?E==="%"?!1:P:Q==="@"||!Q?E==="%"?!0:P:Q==="%"?(l.peek(),d(P,"%",!0)):Q==="|"?E==="%"||J?!0:!(E===X||E===U):Q===X?(l.peek(),d(!0,X,J)):Q===U?(l.peek(),d(!0,U,J)):!0},y=d();return c&&l.resetPeek(),y}function ae(l,c){const d=l.currentChar();return d===te?te:c(d)?(l.next(),d):null}function ye(l){return ae(l,d=>{const y=d.charCodeAt(0);return y>=97&&y<=122||y>=65&&y<=90||y>=48&&y<=57||y===95||y===36})}function we(l){return ae(l,d=>{const y=d.charCodeAt(0);return y>=48&&y<=57})}function Ne(l){return ae(l,d=>{const y=d.charCodeAt(0);return y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102})}function Z(l){let c="",d="";for(;c=we(l);)d+=c;return d}function pe(l){let c="";for(;;){const d=l.currentChar();if(d==="{"||d==="}"||d==="@"||d==="|"||!d)break;if(d==="%")if(ee(l))c+=d,l.next();else break;else if(d===X||d===U)if(ee(l))c+=d,l.next();else{if(G(l))break;c+=d,l.next()}else c+=d,l.next()}return c}function Me(l){b(l);let c="",d="";for(;c=ye(l);)d+=c;return l.currentChar()===te&&F(6,r(),0),d}function Ee(l){b(l);let c="";return l.currentChar()==="-"?(l.next(),c+=`-${Z(l)}`):c+=Z(l),l.currentChar()===te&&F(6,r(),0),c}function We(l){b(l),M(l,"'");let c="",d="";const y=E=>E!==mt&&E!==U;for(;c=ae(l,y);)c==="\\"?d+=De(l):d+=c;const P=l.currentChar();return P===U||P===te?(F(2,r(),0),P===U&&(l.next(),M(l,"'")),d):(M(l,"'"),d)}function De(l){const c=l.currentChar();switch(c){case"\\":case"'":return l.next(),`\\${c}`;case"u":return Re(l,c,4);case"U":return Re(l,c,6);default:return F(3,r(),0,c),""}}function Re(l,c,d){M(l,c);let y="";for(let P=0;P<d;P++){const E=Ne(l);if(!E){F(4,r(),0,`\\${c}${y}${l.currentChar()}`);break}y+=E}return`\\${c}${y}`}function $e(l){b(l);let c="",d="";const y=P=>P!=="{"&&P!=="}"&&P!==X&&P!==U;for(;c=ae(l,y);)d+=c;return d}function Ae(l){let c="",d="";for(;c=ye(l);)d+=c;return d}function xe(l){const c=(d=!1,y)=>{const P=l.currentChar();return P==="{"||P==="%"||P==="@"||P==="|"||!P||P===X?y:P===U?(y+=P,l.next(),c(d,y)):(y+=P,l.next(),c(!0,y))};return c(!1,"")}function ue(l){b(l);const c=M(l,"|");return b(l),c}function fe(l,c){let d=null;switch(l.currentChar()){case"{":return c.braceNest>=1&&F(8,r(),0),l.next(),d=T(c,2,"{"),b(l),c.braceNest++,d;case"}":return c.braceNest>0&&c.currentType===2&&F(7,r(),0),l.next(),d=T(c,3,"}"),c.braceNest--,c.braceNest>0&&b(l),c.inLinked&&c.braceNest===0&&(c.inLinked=!1),d;case"@":return c.braceNest>0&&F(6,r(),0),d=re(l,c)||N(c),c.braceNest=0,d;default:let P=!0,E=!0,J=!0;if(G(l))return c.braceNest>0&&F(6,r(),0),d=T(c,1,ue(l)),c.braceNest=0,c.inLinked=!1,d;if(c.braceNest>0&&(c.currentType===5||c.currentType===6||c.currentType===7))return F(6,r(),0),c.braceNest=0,me(l,c);if(P=L(l,c))return d=T(c,5,Me(l)),b(l),d;if(E=f(l,c))return d=T(c,6,Ee(l)),b(l),d;if(J=O(l,c))return d=T(c,7,We(l)),b(l),d;if(!P&&!E&&!J)return d=T(c,13,$e(l)),F(1,r(),0,d.value),b(l),d;break}return d}function re(l,c){const{currentType:d}=c;let y=null;const P=l.currentChar();switch((d===8||d===9||d===12||d===10)&&(P===U||P===X)&&F(9,r(),0),P){case"@":return l.next(),y=T(c,8,"@"),c.inLinked=!0,y;case".":return b(l),l.next(),T(c,9,".");case":":return b(l),l.next(),T(c,10,":");default:return G(l)?(y=T(c,1,ue(l)),c.braceNest=0,c.inLinked=!1,y):S(l,c)||$(l,c)?(b(l),re(l,c)):C(l,c)?(b(l),T(c,12,Ae(l))):D(l,c)?(b(l),P==="{"?fe(l,c)||y:T(c,11,xe(l))):(d===8&&F(9,r(),0),c.braceNest=0,c.inLinked=!1,me(l,c))}}function me(l,c){let d={type:14};if(c.braceNest>0)return fe(l,c)||N(c);if(c.inLinked)return re(l,c)||N(c);const y=l.currentChar();switch(y){case"{":return fe(l,c)||N(c);case"}":return F(5,r(),0),l.next(),T(c,3,"}");case"@":return re(l,c)||N(c);default:if(G(l))return d=T(c,1,ue(l)),c.braceNest=0,c.inLinked=!1,d;if(ee(l))return T(c,0,pe(l));if(y==="%")return l.next(),T(c,4,"%");break}return d}function He(){const{currentType:l,offset:c,startLoc:d,endLoc:y}=m;return m.lastType=l,m.lastOffset=c,m.lastStartLoc=d,m.lastEndLoc=y,m.offset=s(),m.startLoc=r(),n.currentChar()===te?T(m,14):me(n,m)}return{nextToken:He,currentOffset:s,currentPosition:r,context:g}}const On="parser",vn=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Sn(e,t,a){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const n=parseInt(t||a,16);return n<=55295||n>=57344?String.fromCodePoint(n):"\uFFFD"}}}function Cn(e={}){const t=e.location!==!1,{onError:a}=e;function n(u,h,L,f,...O){const S=u.currentPosition();if(S.offset+=f,S.column+=f,a){const C=Ye(L,S),$=Ce(h,C,{domain:On,args:O});a($)}}function s(u,h,L){const f={type:u,start:h,end:h};return t&&(f.loc={start:L,end:L}),f}function r(u,h,L,f){u.end=h,f&&(u.type=f),t&&u.loc&&(u.loc.end=L)}function i(u,h){const L=u.context(),f=s(3,L.offset,L.startLoc);return f.value=h,r(f,u.currentOffset(),u.currentPosition()),f}function o(u,h){const L=u.context(),{lastOffset:f,lastStartLoc:O}=L,S=s(5,f,O);return S.index=parseInt(h,10),u.nextToken(),r(S,u.currentOffset(),u.currentPosition()),S}function m(u,h){const L=u.context(),{lastOffset:f,lastStartLoc:O}=L,S=s(4,f,O);return S.key=h,u.nextToken(),r(S,u.currentOffset(),u.currentPosition()),S}function g(u,h){const L=u.context(),{lastOffset:f,lastStartLoc:O}=L,S=s(9,f,O);return S.value=h.replace(vn,Sn),u.nextToken(),r(S,u.currentOffset(),u.currentPosition()),S}function I(u){const h=u.nextToken(),L=u.context(),{lastOffset:f,lastStartLoc:O}=L,S=s(8,f,O);return h.type!==12?(n(u,11,L.lastStartLoc,0),S.value="",r(S,f,O),{nextConsumeToken:h,node:S}):(h.value==null&&n(u,13,L.lastStartLoc,0,B(h)),S.value=h.value||"",r(S,u.currentOffset(),u.currentPosition()),{node:S})}function F(u,h){const L=u.context(),f=s(7,L.offset,L.startLoc);return f.value=h,r(f,u.currentOffset(),u.currentPosition()),f}function T(u){const h=u.context(),L=s(6,h.offset,h.startLoc);let f=u.nextToken();if(f.type===9){const O=I(u);L.modifier=O.node,f=O.nextConsumeToken||u.nextToken()}switch(f.type!==10&&n(u,13,h.lastStartLoc,0,B(f)),f=u.nextToken(),f.type===2&&(f=u.nextToken()),f.type){case 11:f.value==null&&n(u,13,h.lastStartLoc,0,B(f)),L.key=F(u,f.value||"");break;case 5:f.value==null&&n(u,13,h.lastStartLoc,0,B(f)),L.key=m(u,f.value||"");break;case 6:f.value==null&&n(u,13,h.lastStartLoc,0,B(f)),L.key=o(u,f.value||"");break;case 7:f.value==null&&n(u,13,h.lastStartLoc,0,B(f)),L.key=g(u,f.value||"");break;default:n(u,12,h.lastStartLoc,0);const O=u.context(),S=s(7,O.offset,O.startLoc);return S.value="",r(S,O.offset,O.startLoc),L.key=S,r(L,O.offset,O.startLoc),{nextConsumeToken:f,node:L}}return r(L,u.currentOffset(),u.currentPosition()),{node:L}}function N(u){const h=u.context(),L=h.currentType===1?u.currentOffset():h.offset,f=h.currentType===1?h.endLoc:h.startLoc,O=s(2,L,f);O.items=[];let S=null;do{const D=S||u.nextToken();switch(S=null,D.type){case 0:D.value==null&&n(u,13,h.lastStartLoc,0,B(D)),O.items.push(i(u,D.value||""));break;case 6:D.value==null&&n(u,13,h.lastStartLoc,0,B(D)),O.items.push(o(u,D.value||""));break;case 5:D.value==null&&n(u,13,h.lastStartLoc,0,B(D)),O.items.push(m(u,D.value||""));break;case 7:D.value==null&&n(u,13,h.lastStartLoc,0,B(D)),O.items.push(g(u,D.value||""));break;case 8:const G=T(u);O.items.push(G.node),S=G.nextConsumeToken||null;break}}while(h.currentType!==14&&h.currentType!==1);const C=h.currentType===1?h.lastOffset:u.currentOffset(),$=h.currentType===1?h.lastEndLoc:u.currentPosition();return r(O,C,$),O}function M(u,h,L,f){const O=u.context();let S=f.items.length===0;const C=s(1,h,L);C.cases=[],C.cases.push(f);do{const $=N(u);S||(S=$.items.length===0),C.cases.push($)}while(O.currentType!==14);return S&&n(u,10,L,0),r(C,u.currentOffset(),u.currentPosition()),C}function v(u){const h=u.context(),{offset:L,startLoc:f}=h,O=N(u);return h.currentType===14?O:M(u,L,f,O)}function b(u){const h=In(u,x({},e)),L=h.context(),f=s(0,L.offset,L.startLoc);return t&&f.loc&&(f.loc.source=u),f.body=v(h),L.currentType!==14&&n(h,13,L.lastStartLoc,0,u[L.offset]||""),r(f,h.currentOffset(),h.currentPosition()),f}return{parse:b}}function B(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"\u2026":t}function Pn(e,t={}){const a={ast:e,helpers:new Set};return{context:()=>a,helper:r=>(a.helpers.add(r),r)}}function dt(e,t){for(let a=0;a<e.length;a++)ze(e[a],t)}function ze(e,t){switch(e.type){case 1:dt(e.cases,t),t.helper("plural");break;case 2:dt(e.items,t);break;case 6:ze(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function wn(e,t={}){const a=Pn(e);a.helper("normalize"),e.body&&ze(e.body,a);const n=a.context();e.helpers=Array.from(n.helpers)}function Nn(e,t){const{sourceMap:a,filename:n,breakLineCode:s,needIndent:r}=t,i={source:e.loc.source,filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0},o=()=>i;function m(v,b){i.code+=v}function g(v,b=!0){const u=b?s:"";m(r?u+"  ".repeat(v):u)}function I(v=!0){const b=++i.indentLevel;v&&g(b)}function F(v=!0){const b=--i.indentLevel;v&&g(b)}function T(){g(i.indentLevel)}return{context:o,push:m,indent:I,deindent:F,newline:T,helper:v=>`_${v}`,needIndent:()=>i.needIndent}}function Mn(e,t){const{helper:a}=e;e.push(`${a("linked")}(`),oe(e,t.key),t.modifier&&(e.push(", "),oe(e,t.modifier)),e.push(")")}function En(e,t){const{helper:a,needIndent:n}=e;e.push(`${a("normalize")}([`),e.indent(n());const s=t.items.length;for(let r=0;r<s&&(oe(e,t.items[r]),r!==s-1);r++)e.push(", ");e.deindent(n()),e.push("])")}function Wn(e,t){const{helper:a,needIndent:n}=e;if(t.cases.length>1){e.push(`${a("plural")}([`),e.indent(n());const s=t.cases.length;for(let r=0;r<s&&(oe(e,t.cases[r]),r!==s-1);r++)e.push(", ");e.deindent(n()),e.push("])")}}function Dn(e,t){t.body?oe(e,t.body):e.push("null")}function oe(e,t){const{helper:a}=e;switch(t.type){case 0:Dn(e,t);break;case 1:Wn(e,t);break;case 2:En(e,t);break;case 6:Mn(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${a("interpolate")}(${a("list")}(${t.index}))`,t);break;case 4:e.push(`${a("interpolate")}(${a("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Rn=(e,t={})=>{const a=p(t.mode)?t.mode:"normal",n=p(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,r=t.breakLineCode!=null?t.breakLineCode:a==="arrow"?";":`
`,i=t.needIndent?t.needIndent:a!=="arrow",o=e.helpers||[],m=Nn(e,{mode:a,filename:n,sourceMap:s,breakLineCode:r,needIndent:i});m.push(a==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),m.indent(i),o.length>0&&(m.push(`const { ${o.map(F=>`${F}: _${F}`).join(", ")} } = ctx`),m.newline()),m.push("return "),oe(m,e),m.deindent(i),m.push("}");const{code:g,map:I}=m.context();return{ast:e,code:g,map:I?I.toJSON():void 0}};function $n(e,t={}){const a=x({},t),s=Cn(a).parse(e);return wn(s,a),Rn(s,a)}/*!
  * @intlify/devtools-if v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const Wt={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
  * @intlify/core-base v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */let ke=null;function An(e){ke=e}function xn(e,t,a){ke&&ke.emit(Wt.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:a})}const Hn=jn(Wt.FunctionTranslate);function jn(e){return t=>ke&&ke.emit(e,t)}const Vn="9.1.10",Pe=-1,_t="";function Un(){return{upper:e=>p(e)?e.toUpperCase():e,lower:e=>p(e)?e.toLowerCase():e,capitalize:e=>p(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}}let Dt;function Yn(e){Dt=e}let Rt=null;const gt=e=>{Rt=e},Gn=()=>Rt;let bt=0;function Jn(e={}){const t=p(e.version)?e.version:Vn,a=p(e.locale)?e.locale:"en-US",n=R(e.fallbackLocale)||w(e.fallbackLocale)||p(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,s=w(e.messages)?e.messages:{[a]:{}},r=w(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},i=w(e.numberFormats)?e.numberFormats:{[a]:{}},o=x({},e.modifiers||{},Un()),m=e.pluralRules||{},g=H(e.missing)?e.missing:null,I=W(e.missingWarn)||ie(e.missingWarn)?e.missingWarn:!0,F=W(e.fallbackWarn)||ie(e.fallbackWarn)?e.fallbackWarn:!0,T=!!e.fallbackFormat,N=!!e.unresolving,M=H(e.postTranslation)?e.postTranslation:null,v=w(e.processor)?e.processor:null,b=W(e.warnHtmlMessage)?e.warnHtmlMessage:!0,u=!!e.escapeParameter,h=H(e.messageCompiler)?e.messageCompiler:Dt,L=H(e.onWarn)?e.onWarn:Qt,f=e,O=Y(f.__datetimeFormatters)?f.__datetimeFormatters:new Map,S=Y(f.__numberFormatters)?f.__numberFormatters:new Map,C=Y(f.__meta)?f.__meta:{};bt++;const $={version:t,cid:bt,locale:a,fallbackLocale:n,messages:s,datetimeFormats:r,numberFormats:i,modifiers:o,pluralRules:m,missing:g,missingWarn:I,fallbackWarn:F,fallbackFormat:T,unresolving:N,postTranslation:M,processor:v,warnHtmlMessage:b,escapeParameter:u,messageCompiler:h,onWarn:L,__datetimeFormatters:O,__numberFormatters:S,__meta:C};return __INTLIFY_PROD_DEVTOOLS__&&xn($,t,C),$}function et(e,t,a,n,s){const{missing:r,onWarn:i}=e;if(r!==null){const o=r(e,a,t,s);return p(o)?o:t}else return t}function Le(e,t,a){const n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let s=n.__localeChainCache.get(a);if(!s){s=[];let r=[a];for(;R(r);)r=ht(s,r,t);const i=R(t)?t:w(t)?t.default?t.default:null:t;r=p(i)?[i]:i,R(r)&&ht(s,r,!1),n.__localeChainCache.set(a,s)}return s}function ht(e,t,a){let n=!0;for(let s=0;s<t.length&&W(n);s++){const r=t[s];p(r)&&(n=Kn(e,t[s],a))}return n}function Kn(e,t,a){let n;const s=t.split("-");do{const r=s.join("-");n=Bn(e,r,a),s.splice(-1,1)}while(s.length&&n===!0);return n}function Bn(e,t,a){let n=!1;if(!e.includes(t)&&(n=!0,t)){n=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(R(a)||w(a))&&a[s]&&(n=a[s])}return n}function ge(e,t,a){const n=e;n.__localeChainCache=new Map,Le(e,a,t)}const qn=e=>e;let kt=Object.create(null);function Zn(e,t={}){{const n=(t.onCacheKey||qn)(e),s=kt[n];if(s)return s;let r=!1;const i=t.onError||hn;t.onError=g=>{r=!0,i(g)};const{code:o}=$n(e,t),m=new Function(`return ${o}`)();return r?m:kt[n]=m}}function le(e){return Ce(e,null,void 0)}const Lt=()=>"",q=e=>H(e);function yt(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:s,fallbackLocale:r,messages:i}=e,[o,m]=Ge(...t),g=W(m.missingWarn)?m.missingWarn:e.missingWarn,I=W(m.fallbackWarn)?m.fallbackWarn:e.fallbackWarn,F=W(m.escapeParameter)?m.escapeParameter:e.escapeParameter,T=!!m.resolvedMessage,N=p(m.default)||W(m.default)?W(m.default)?o:m.default:a?o:"",M=a||N!=="",v=p(m.locale)?m.locale:e.locale;F&&Qn(m);let[b,u,h]=T?[o,v,i[v]||{}]:Xn(e,o,v,r,I,g),L=o;if(!T&&!(p(b)||q(b))&&M&&(b=N,L=b),!T&&(!(p(b)||q(b))||!p(u)))return s?Pe:o;let f=!1;const O=()=>{f=!0},S=q(b)?b:$t(e,o,u,b,L,O);if(f)return b;const C=ta(e,u,h,m),$=bn(C),D=zn(e,S,$),G=n?n(D):D;if(__INTLIFY_PROD_DEVTOOLS__){const ee={timestamp:Date.now(),key:p(o)?o:q(b)?b.key:"",locale:u||(q(b)?b.locale:""),format:p(b)?b:q(b)?b.source:"",message:G};ee.meta=x({},e.__meta,Gn()||{}),Hn(ee)}return G}function Qn(e){R(e.list)?e.list=e.list.map(t=>p(t)?ot(t):t):Y(e.named)&&Object.keys(e.named).forEach(t=>{p(e.named[t])&&(e.named[t]=ot(e.named[t]))})}function Xn(e,t,a,n,s,r){const{messages:i,onWarn:o}=e,m=Le(e,n,a);let g={},I,F=null;const T="translate";for(let N=0;N<m.length&&(I=m[N],g=i[I]||{},(F=Oe(g,t))===null&&(F=g[t]),!(p(F)||H(F)));N++){const M=et(e,t,I,r,T);M!==t&&(F=M)}return[F,I,g]}function $t(e,t,a,n,s,r){const{messageCompiler:i,warnHtmlMessage:o}=e;if(q(n)){const g=n;return g.locale=g.locale||a,g.key=g.key||t,g}const m=i(n,ea(e,a,s,n,o,r));return m.locale=a,m.key=t,m.source=n,m}function zn(e,t,a){return t(a)}function Ge(...e){const[t,a,n]=e,s={};if(!p(t)&&!A(t)&&!q(t))throw le(14);const r=A(t)?String(t):(q(t),t);return A(a)?s.plural=a:p(a)?s.default=a:w(a)&&!Se(a)?s.named=a:R(a)&&(s.list=a),A(n)?s.plural=n:p(n)?s.default=n:w(n)&&x(s,n),[r,s]}function ea(e,t,a,n,s,r){return{warnHtmlMessage:s,onError:i=>{throw r&&r(i),i},onCacheKey:i=>Bt(t,a,i)}}function ta(e,t,a,n){const{modifiers:s,pluralRules:r}=e,o={locale:t,modifiers:s,pluralRules:r,messages:m=>{const g=Oe(a,m);if(p(g)){let I=!1;const T=$t(e,m,t,g,m,()=>{I=!0});return I?Lt:T}else return q(g)?g:Lt}};return e.processor&&(o.processor=e.processor),n.list&&(o.list=n.list),n.named&&(o.named=n.named),A(n.plural)&&(o.pluralIndex=n.plural),o}function pt(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:s,onWarn:r}=e,{__datetimeFormatters:i}=e,[o,m,g,I]=Je(...t),F=W(g.missingWarn)?g.missingWarn:e.missingWarn;W(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn;const T=!!g.part,N=p(g.locale)?g.locale:e.locale,M=Le(e,s,N);if(!p(o)||o==="")return new Intl.DateTimeFormat(N).format(m);let v={},b,u=null;const h="datetime format";for(let O=0;O<M.length&&(b=M[O],v=a[b]||{},u=v[o],!w(u));O++)et(e,o,b,F,h);if(!w(u)||!p(b))return n?Pe:o;let L=`${b}__${o}`;Se(I)||(L=`${L}__${JSON.stringify(I)}`);let f=i.get(L);return f||(f=new Intl.DateTimeFormat(b,x({},u,I)),i.set(L,f)),T?f.formatToParts(m):f.format(m)}function Je(...e){const[t,a,n,s]=e;let r={},i={},o;if(p(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw le(16);o=new Date(t);try{o.toISOString()}catch{throw le(16)}}else if(Zt(t)){if(isNaN(t.getTime()))throw le(15);o=t}else if(A(t))o=t;else throw le(14);return p(a)?r.key=a:w(a)&&(r=a),p(n)?r.locale=n:w(n)&&(i=n),w(s)&&(i=s),[r.key||"",o,r,i]}function Tt(e,t,a){const n=e;for(const s in a){const r=`${t}__${s}`;!n.__datetimeFormatters.has(r)||n.__datetimeFormatters.delete(r)}}function Ft(e,...t){const{numberFormats:a,unresolving:n,fallbackLocale:s,onWarn:r}=e,{__numberFormatters:i}=e,[o,m,g,I]=Ke(...t),F=W(g.missingWarn)?g.missingWarn:e.missingWarn;W(g.fallbackWarn)?g.fallbackWarn:e.fallbackWarn;const T=!!g.part,N=p(g.locale)?g.locale:e.locale,M=Le(e,s,N);if(!p(o)||o==="")return new Intl.NumberFormat(N).format(m);let v={},b,u=null;const h="number format";for(let O=0;O<M.length&&(b=M[O],v=a[b]||{},u=v[o],!w(u));O++)et(e,o,b,F,h);if(!w(u)||!p(b))return n?Pe:o;let L=`${b}__${o}`;Se(I)||(L=`${L}__${JSON.stringify(I)}`);let f=i.get(L);return f||(f=new Intl.NumberFormat(b,x({},u,I)),i.set(L,f)),T?f.formatToParts(m):f.format(m)}function Ke(...e){const[t,a,n,s]=e;let r={},i={};if(!A(t))throw le(14);const o=t;return p(a)?r.key=a:w(a)&&(r=a),p(n)?r.locale=n:w(n)&&(i=n),w(s)&&(i=s),[r.key||"",o,r,i]}function It(e,t,a){const n=e;for(const s in a){const r=`${t}__${s}`;!n.__numberFormatters.has(r)||n.__numberFormatters.delete(r)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(be().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
  * vue-i18n v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const na="9.1.10";function aa(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(be().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(be().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(be().__INTLIFY_PROD_DEVTOOLS__=!1)}function j(e,...t){return Ce(e,null,void 0)}const Ve="__INTLIFY_META__",Be=z("__transrateVNode"),qe=z("__datetimeParts"),Ze=z("__numberParts");z("__enableEmitter");z("__disableEmitter");const At=z("__setPluralRules");z("__intlifyMeta");const xt=z("__injectWithOption");let Ot=0;function vt(e){return(t,a,n,s)=>e(a,n,he()||void 0,s)}function tt(e,t){const{messages:a,__i18n:n}=t,s=w(a)?a:R(n)?{}:{[e]:{}};if(R(n)&&n.forEach(({locale:r,resource:i})=>{r?(s[r]=s[r]||{},ve(i,s[r])):ve(i,s)}),t.flatJson)for(const r in s)Mt(s,r)&&Ue(s[r]);return s}const Fe=e=>!Y(e)||R(e);function ve(e,t){if(Fe(e)||Fe(t))throw j(20);for(const a in e)Mt(e,a)&&(Fe(e[a])||Fe(t[a])?t[a]=e[a]:ve(e[a],t[a]))}const ra=()=>{const e=he();return e&&e.type[Ve]?{[Ve]:e.type[Ve]}:null};function nt(e={}){const{__root:t}=e,a=t===void 0;let n=W(e.inheritLocale)?e.inheritLocale:!0;const s=de(t&&n?t.locale.value:p(e.locale)?e.locale:"en-US"),r=de(t&&n?t.fallbackLocale.value:p(e.fallbackLocale)||R(e.fallbackLocale)||w(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),i=de(tt(s.value,e)),o=de(w(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),m=de(w(e.numberFormats)?e.numberFormats:{[s.value]:{}});let g=t?t.missingWarn:W(e.missingWarn)||ie(e.missingWarn)?e.missingWarn:!0,I=t?t.fallbackWarn:W(e.fallbackWarn)||ie(e.fallbackWarn)?e.fallbackWarn:!0,F=t?t.fallbackRoot:W(e.fallbackRoot)?e.fallbackRoot:!0,T=!!e.fallbackFormat,N=H(e.missing)?e.missing:null,M=H(e.missing)?vt(e.missing):null,v=H(e.postTranslation)?e.postTranslation:null,b=W(e.warnHtmlMessage)?e.warnHtmlMessage:!0,u=!!e.escapeParameter;const h=t?t.modifiers:w(e.modifiers)?e.modifiers:{};let L=e.pluralRules||t&&t.pluralRules,f;function O(){return Jn({version:na,locale:s.value,fallbackLocale:r.value,messages:i.value,datetimeFormats:o.value,numberFormats:m.value,modifiers:h,pluralRules:L,missing:M===null?void 0:M,missingWarn:g,fallbackWarn:I,fallbackFormat:T,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:b,escapeParameter:u,__datetimeFormatters:w(f)?f.__datetimeFormatters:void 0,__numberFormatters:w(f)?f.__numberFormatters:void 0,__v_emitter:w(f)?f.__v_emitter:void 0,__meta:{framework:"vue"}})}f=O(),ge(f,s.value,r.value);function S(){return[s.value,r.value,i.value,o.value,m.value]}const C=_e({get:()=>s.value,set:_=>{s.value=_,f.locale=s.value}}),$=_e({get:()=>r.value,set:_=>{r.value=_,f.fallbackLocale=r.value,ge(f,s.value,_)}}),D=_e(()=>i.value),G=_e(()=>o.value),ee=_e(()=>m.value);function ae(){return H(v)?v:null}function ye(_){v=_,f.postTranslation=_}function we(){return N}function Ne(_){_!==null&&(M=vt(_)),N=_,f.missing=M}function Z(_,k,K,V,je,Te){S();let se;if(__INTLIFY_PROD_DEVTOOLS__)try{gt(ra()),se=_(f)}finally{gt(null)}else se=_(f);if(A(se)&&se===Pe){const[Vt,pa]=k();return t&&F?V(t):je(Vt)}else{if(Te(se))return se;throw j(14)}}function pe(..._){return Z(k=>yt(k,..._),()=>Ge(..._),"translate",k=>k.t(..._),k=>k,k=>p(k))}function Me(..._){const[k,K,V]=_;if(V&&!Y(V))throw j(15);return pe(k,K,x({resolvedMessage:!0},V||{}))}function Ee(..._){return Z(k=>pt(k,..._),()=>Je(..._),"datetime format",k=>k.d(..._),()=>_t,k=>p(k))}function We(..._){return Z(k=>Ft(k,..._),()=>Ke(..._),"number format",k=>k.n(..._),()=>_t,k=>p(k))}function De(_){return _.map(k=>p(k)?lt(ct,null,k,0):k)}const $e={normalize:De,interpolate:_=>_,type:"vnode"};function Ae(..._){return Z(k=>{let K;const V=k;try{V.processor=$e,K=yt(V,..._)}finally{V.processor=null}return K},()=>Ge(..._),"translate",k=>k[Be](..._),k=>[lt(ct,null,k,0)],k=>R(k))}function xe(..._){return Z(k=>Ft(k,..._),()=>Ke(..._),"number format",k=>k[Ze](..._),()=>[],k=>p(k)||R(k))}function ue(..._){return Z(k=>pt(k,..._),()=>Je(..._),"datetime format",k=>k[qe](..._),()=>[],k=>p(k)||R(k))}function fe(_){L=_,f.pluralRules=L}function re(_,k){const K=p(k)?k:s.value,V=l(K);return Oe(V,_)!==null}function me(_){let k=null;const K=Le(f,r.value,s.value);for(let V=0;V<K.length;V++){const je=i.value[K[V]]||{},Te=Oe(je,_);if(Te!=null){k=Te;break}}return k}function He(_){const k=me(_);return k!=null?k:t?t.tm(_)||{}:{}}function l(_){return i.value[_]||{}}function c(_,k){i.value[_]=k,f.messages=i.value}function d(_,k){i.value[_]=i.value[_]||{},ve(k,i.value[_]),f.messages=i.value}function y(_){return o.value[_]||{}}function P(_,k){o.value[_]=k,f.datetimeFormats=o.value,Tt(f,_,k)}function E(_,k){o.value[_]=x(o.value[_]||{},k),f.datetimeFormats=o.value,Tt(f,_,k)}function J(_){return m.value[_]||{}}function Q(_,k){m.value[_]=k,f.numberFormats=m.value,It(f,_,k)}function jt(_,k){m.value[_]=x(m.value[_]||{},k),f.numberFormats=m.value,It(f,_,k)}return Ot++,t&&(st(t.locale,_=>{n&&(s.value=_,f.locale=_,ge(f,s.value,r.value))}),st(t.fallbackLocale,_=>{n&&(r.value=_,f.fallbackLocale=_,ge(f,s.value,r.value))})),{id:Ot,locale:C,fallbackLocale:$,get inheritLocale(){return n},set inheritLocale(_){n=_,_&&t&&(s.value=t.locale.value,r.value=t.fallbackLocale.value,ge(f,s.value,r.value))},get availableLocales(){return Object.keys(i.value).sort()},messages:D,datetimeFormats:G,numberFormats:ee,get modifiers(){return h},get pluralRules(){return L||{}},get isGlobal(){return a},get missingWarn(){return g},set missingWarn(_){g=_,f.missingWarn=g},get fallbackWarn(){return I},set fallbackWarn(_){I=_,f.fallbackWarn=I},get fallbackRoot(){return F},set fallbackRoot(_){F=_},get fallbackFormat(){return T},set fallbackFormat(_){T=_,f.fallbackFormat=T},get warnHtmlMessage(){return b},set warnHtmlMessage(_){b=_,f.warnHtmlMessage=_},get escapeParameter(){return u},set escapeParameter(_){u=_,f.escapeParameter=_},t:pe,rt:Me,d:Ee,n:We,te:re,tm:He,getLocaleMessage:l,setLocaleMessage:c,mergeLocaleMessage:d,getDateTimeFormat:y,setDateTimeFormat:P,mergeDateTimeFormat:E,getNumberFormat:J,setNumberFormat:Q,mergeNumberFormat:jt,getPostTranslationHandler:ae,setPostTranslationHandler:ye,getMissingHandler:we,setMissingHandler:Ne,[Be]:Ae,[Ze]:xe,[qe]:ue,[At]:fe,[xt]:e.__injectWithOption}}function sa(e){const t=p(e.locale)?e.locale:"en-US",a=p(e.fallbackLocale)||R(e.fallbackLocale)||w(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,n=H(e.missing)?e.missing:void 0,s=W(e.silentTranslationWarn)||ie(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,r=W(e.silentFallbackWarn)||ie(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=W(e.fallbackRoot)?e.fallbackRoot:!0,o=!!e.formatFallbackMessages,m=w(e.modifiers)?e.modifiers:{},g=e.pluralizationRules,I=H(e.postTranslation)?e.postTranslation:void 0,F=p(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,T=!!e.escapeParameterHtml,N=W(e.sync)?e.sync:!0;let M=e.messages;if(w(e.sharedMessages)){const O=e.sharedMessages;M=Object.keys(O).reduce((C,$)=>{const D=C[$]||(C[$]={});return x(D,O[$]),C},M||{})}const{__i18n:v,__root:b,__injectWithOption:u}=e,h=e.datetimeFormats,L=e.numberFormats,f=e.flatJson;return{locale:t,fallbackLocale:a,messages:M,flatJson:f,datetimeFormats:h,numberFormats:L,missing:n,missingWarn:s,fallbackWarn:r,fallbackRoot:i,fallbackFormat:o,modifiers:m,pluralRules:g,postTranslation:I,warnHtmlMessage:F,escapeParameter:T,inheritLocale:N,__i18n:v,__root:b,__injectWithOption:u}}function Qe(e={}){const t=nt(sa(e)),a={id:t.id,get locale(){return t.locale.value},set locale(n){t.locale.value=n},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(n){t.fallbackLocale.value=n},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(n){},get missing(){return t.getMissingHandler()},set missing(n){t.setMissingHandler(n)},get silentTranslationWarn(){return W(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(n){t.missingWarn=W(n)?!n:n},get silentFallbackWarn(){return W(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(n){t.fallbackWarn=W(n)?!n:n},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(n){t.fallbackFormat=n},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(n){t.setPostTranslationHandler(n)},get sync(){return t.inheritLocale},set sync(n){t.inheritLocale=n},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(n){t.warnHtmlMessage=n!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(n){t.escapeParameter=n},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(n){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...n){const[s,r,i]=n,o={};let m=null,g=null;if(!p(s))throw j(15);const I=s;return p(r)?o.locale=r:R(r)?m=r:w(r)&&(g=r),R(i)?m=i:w(i)&&(g=i),t.t(I,m||g||{},o)},rt(...n){return t.rt(...n)},tc(...n){const[s,r,i]=n,o={plural:1};let m=null,g=null;if(!p(s))throw j(15);const I=s;return p(r)?o.locale=r:A(r)?o.plural=r:R(r)?m=r:w(r)&&(g=r),p(i)?o.locale=i:R(i)?m=i:w(i)&&(g=i),t.t(I,m||g||{},o)},te(n,s){return t.te(n,s)},tm(n){return t.tm(n)},getLocaleMessage(n){return t.getLocaleMessage(n)},setLocaleMessage(n,s){t.setLocaleMessage(n,s)},mergeLocaleMessage(n,s){t.mergeLocaleMessage(n,s)},d(...n){return t.d(...n)},getDateTimeFormat(n){return t.getDateTimeFormat(n)},setDateTimeFormat(n,s){t.setDateTimeFormat(n,s)},mergeDateTimeFormat(n,s){t.mergeDateTimeFormat(n,s)},n(...n){return t.n(...n)},getNumberFormat(n){return t.getNumberFormat(n)},setNumberFormat(n,s){t.setNumberFormat(n,s)},mergeNumberFormat(n,s){t.mergeNumberFormat(n,s)},getChoiceIndex(n,s){return-1},__onComponentInstanceCreated(n){const{componentInstanceCreatedListener:s}=e;s&&s(n,a)}};return a}const at={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}},St={name:"i18n-t",props:x({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>A(e)||!isNaN(e)}},at),setup(e,t){const{slots:a,attrs:n}=t,s=e.i18n||rt({useScope:e.scope,__useComponent:!0}),r=Object.keys(a).filter(i=>i!=="_");return()=>{const i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=p(e.plural)?+e.plural:e.plural);const o=la(t,r),m=s[Be](e.keypath,o,i),g=x({},n);return p(e.tag)?ce(e.tag,g,m):Y(e.tag)?ce(e.tag,g,m):ce(Nt,g,m)}}};function la({slots:e},t){return t.length===1&&t[0]==="default"?e.default?e.default():[]:t.reduce((a,n)=>{const s=e[n];return s&&(a[n]=s()),a},{})}function Ht(e,t,a,n){const{slots:s,attrs:r}=t;return()=>{const i={part:!0};let o={};e.locale&&(i.locale=e.locale),p(e.format)?i.key=e.format:Y(e.format)&&(p(e.format.key)&&(i.key=e.format.key),o=Object.keys(e.format).reduce((F,T)=>a.includes(T)?x({},F,{[T]:e.format[T]}):F,{}));const m=n(e.value,i,o);let g=[i.key];R(m)?g=m.map((F,T)=>{const N=s[F.type];return N?N({[F.type]:F.value,index:T,parts:m}):[F.value]}):p(m)&&(g=[m]);const I=x({},r);return p(e.tag)?ce(e.tag,I,g):Y(e.tag)?ce(e.tag,I,g):ce(Nt,I,g)}}const ca=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],Ct={name:"i18n-n",props:x({value:{type:Number,required:!0},format:{type:[String,Object]}},at),setup(e,t){const a=e.i18n||rt({useScope:"parent",__useComponent:!0});return Ht(e,t,ca,(...n)=>a[Ze](...n))}},ia=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],Pt={name:"i18n-d",props:x({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},at),setup(e,t){const a=e.i18n||rt({useScope:"parent",__useComponent:!0});return Ht(e,t,ia,(...n)=>a[qe](...n))}};function oa(e,t){const a=e;if(e.mode==="composition")return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return n!=null?n.__composer:e.global.__composer}}function ua(e){const t=(a,{instance:n,value:s,modifiers:r})=>{if(!n||!n.$)throw j(22);const i=oa(e,n.$),o=fa(s);a.textContent=i.t(...ma(o))};return{beforeMount:t,beforeUpdate:t}}function fa(e){if(p(e))return{path:e};if(w(e)){if(!("path"in e))throw j(19,"path");return e}else throw j(20)}function ma(e){const{path:t,locale:a,args:n,choice:s,plural:r}=e,i={},o=n||{};return p(a)&&(i.locale=a),A(s)&&(i.plural=s),A(r)&&(i.plural=r),[t,o,i]}function da(e,t,...a){const n=w(a[0])?a[0]:{},s=!!n.useI18nComponentName;(W(n.globalInstall)?n.globalInstall:!0)&&(e.component(s?"i18n":St.name,St),e.component(Ct.name,Ct),e.component(Pt.name,Pt)),e.directive("t",ua(t))}function _a(e,t,a){return{beforeCreate(){const n=he();if(!n)throw j(22);const s=this.$options;if(s.i18n){const r=s.i18n;s.__i18n&&(r.__i18n=s.__i18n),r.__root=t,this===this.$root?this.$i18n=wt(e,r):(r.__injectWithOption=!0,this.$i18n=Qe(r))}else s.__i18n?this===this.$root?this.$i18n=wt(e,s):this.$i18n=Qe({__i18n:s.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),a.__setInstance(n,this.$i18n),this.$t=(...r)=>this.$i18n.t(...r),this.$rt=(...r)=>this.$i18n.rt(...r),this.$tc=(...r)=>this.$i18n.tc(...r),this.$te=(r,i)=>this.$i18n.te(r,i),this.$d=(...r)=>this.$i18n.d(...r),this.$n=(...r)=>this.$i18n.n(...r),this.$tm=r=>this.$i18n.tm(r)},mounted(){},beforeUnmount(){const n=he();if(!n)throw j(22);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,a.__deleteInstance(n),delete this.$i18n}}}function wt(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[At](t.pluralizationRules||e.pluralizationRules);const a=tt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach(n=>e.mergeLocaleMessage(n,a[n])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n])),t.numberFormats&&Object.keys(t.numberFormats).forEach(n=>e.mergeNumberFormat(n,t.numberFormats[n])),e}function Fa(e={}){const t=__VUE_I18N_LEGACY_API__&&W(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,a=!!e.globalInjection,n=new Map,s=__VUE_I18N_LEGACY_API__&&t?Qe(e):nt(e),r=z(""),i={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(o,...m){o.__VUE_I18N_SYMBOL__=r,o.provide(o.__VUE_I18N_SYMBOL__,i),!t&&a&&La(o,i.global),__VUE_I18N_FULL_INSTALL__&&da(o,i,...m),__VUE_I18N_LEGACY_API__&&t&&o.mixin(_a(s,s.__composer,i))},get global(){return s},__instances:n,__getInstance(o){return n.get(o)||null},__setInstance(o,m){n.set(o,m)},__deleteInstance(o){n.delete(o)}};return i}function rt(e={}){const t=he();if(t==null)throw j(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw j(17);const a=Ut(t.appContext.app.__VUE_I18N_SYMBOL__);if(!a)throw j(22);const n=a.mode==="composition"?a.global:a.global.__composer,s=Se(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if(s==="global"){let o=Y(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(o=tt(n.locale.value,{messages:o,__i18n:t.type.__i18nGlobal}));const m=Object.keys(o);if(m.length&&m.forEach(g=>{n.mergeLocaleMessage(g,o[g])}),Y(e.datetimeFormats)){const g=Object.keys(e.datetimeFormats);g.length&&g.forEach(I=>{n.mergeDateTimeFormat(I,e.datetimeFormats[I])})}if(Y(e.numberFormats)){const g=Object.keys(e.numberFormats);g.length&&g.forEach(I=>{n.mergeNumberFormat(I,e.numberFormats[I])})}return n}if(s==="parent"){let o=ga(a,t,e.__useComponent);return o==null&&(o=n),o}if(a.mode==="legacy")throw j(18);const r=a;let i=r.__getInstance(t);if(i==null){const o=t.type,m=x({},e);o.__i18n&&(m.__i18n=o.__i18n),n&&(m.__root=n),i=nt(m),ba(r,t),r.__setInstance(t,i)}return i}function ga(e,t,a=!1){let n=null;const s=t.root;let r=t.parent;for(;r!=null;){const i=e;if(e.mode==="composition")n=i.__getInstance(r);else{const o=i.__getInstance(r);o!=null&&(n=o.__composer),a&&n&&!n[xt]&&(n=null)}if(n!=null||s===r)break;r=r.parent}return n}function ba(e,t,a){Yt(()=>{},t),Gt(()=>{e.__deleteInstance(t)},t)}const ha=["locale","fallbackLocale","availableLocales"],ka=["t","rt","d","n","tm"];function La(e,t){const a=Object.create(null);ha.forEach(n=>{const s=Object.getOwnPropertyDescriptor(t,n);if(!s)throw j(22);const r=Jt(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(a,n,r)}),e.config.globalProperties.$i18n=a,ka.forEach(n=>{const s=Object.getOwnPropertyDescriptor(t,n);if(!s||!s.value)throw j(22);Object.defineProperty(e.config.globalProperties,`$${n}`,s)})}Yn(Zn);aa();if(__INTLIFY_PROD_DEVTOOLS__){const e=be();e.__INTLIFY__=!0,An(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}export{Pt as DatetimeFormat,Ct as NumberFormat,St as Translation,na as VERSION,Fa as createI18n,rt as useI18n,ua as vTDirective};
