/*!
  * @intlify/shared v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const Ve=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",zt=e=>Ve?Symbol(e):e,qe=(e,t,s)=>Ge({l:e,k:t,s}),Ge=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),A=e=>typeof e=="number"&&isFinite(e),Ye=e=>oe(e)==="[object Date]",ge=e=>oe(e)==="[object RegExp]",ce=e=>F(e)&&Object.keys(e).length===0;function Be(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Y=Object.assign;let be;const Qe=()=>be||(be=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ye(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const Ze=Object.prototype.hasOwnProperty;function en(e,t){return Ze.call(e,t)}const K=Array.isArray,W=e=>typeof e=="function",C=e=>typeof e=="string",R=e=>typeof e=="boolean",G=e=>e!==null&&typeof e=="object",Ne=Object.prototype.toString,oe=e=>Ne.call(e),F=e=>oe(e)==="[object Object]",Xe=e=>e==null?"":K(e)||F(e)&&e.toString===Ne?JSON.stringify(e,null,2):String(e);/*!
  * @intlify/message-resolver v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const ze=Object.prototype.hasOwnProperty;function et(e,t){return ze.call(e,t)}const te=e=>e!==null&&typeof e=="object",V=[];V[0]={w:[0],i:[3,0],"[":[4],o:[7]};V[1]={w:[1],".":[2],"[":[4],o:[7]};V[2]={w:[2],i:[3,0],0:[3,0]};V[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};V[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};V[5]={"'":[4,0],o:8,l:[5,0]};V[6]={'"':[4,0],o:8,l:[6,0]};const tt=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function nt(e){return tt.test(e)}function rt(e){const t=e.charCodeAt(0),s=e.charCodeAt(e.length-1);return t===s&&(t===34||t===39)?e.slice(1,-1):e}function st(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 at(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:nt(t)?rt(t):"*"+t}function lt(e){const t=[];let s=-1,a=0,o=0,l,m,h,d,y,P,_;const k=[];k[0]=()=>{m===void 0?m=h:m+=h},k[1]=()=>{m!==void 0&&(t.push(m),m=void 0)},k[2]=()=>{k[0](),o++},k[3]=()=>{if(o>0)o--,a=4,k[0]();else{if(o=0,m===void 0||(m=at(m),m===!1))return!1;k[1]()}};function N(){const I=e[s+1];if(a===5&&I==="'"||a===6&&I==='"')return s++,h="\\"+I,k[0](),!0}for(;a!==null;)if(s++,l=e[s],!(l==="\\"&&N())){if(d=st(l),_=V[a],y=_[d]||_.l||8,y===8||(a=y[0],y[1]!==void 0&&(P=k[y[1]],P&&(h=l,P()===!1))))return;if(a===7)return t}}const ke=new Map;function Ie(e,t){if(!te(e))return null;let s=ke.get(t);if(s||(s=lt(t),s&&ke.set(t,s)),!s)return null;const a=s.length;let o=e,l=0;for(;l<a;){const m=o[s[l]];if(m===void 0)return null;o=m,l++}return o}function Le(e){if(!te(e))return e;for(const t in e)if(et(e,t))if(!t.includes("."))te(e[t])&&Le(e[t]);else{const s=t.split("."),a=s.length-1;let o=e;for(let l=0;l<a;l++)s[l]in o||(o[s[l]]={}),o=o[s[l]];o[s[a]]=e[t],delete e[t],te(o[s[a]])&&Le(o[s[a]])}return e}/*!
  * @intlify/runtime v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const ct=e=>e,ot=e=>"",it="text",ut=e=>e.length===0?"":e.join(""),ft=Xe;function _e(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function dt(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 mt(e,t){t.count||(t.count=e),t.n||(t.n=e)}function pt(e={}){const t=e.locale,s=dt(e),a=G(e.pluralRules)&&C(t)&&W(e.pluralRules[t])?e.pluralRules[t]:_e,o=G(e.pluralRules)&&C(t)&&W(e.pluralRules[t])?_e:void 0,l=f=>f[a(s,f.length,o)],m=e.list||[],h=f=>m[f],d=e.named||{};A(e.pluralIndex)&&mt(s,d);const y=f=>d[f];function P(f){const c=W(e.messages)?e.messages(f):G(e.messages)?e.messages[f]:!1;return c||(e.parent?e.parent.message(f):ot)}const _=f=>e.modifiers?e.modifiers[f]:ct,k=F(e.processor)&&W(e.processor.normalize)?e.processor.normalize:ut,N=F(e.processor)&&W(e.processor.interpolate)?e.processor.interpolate:ft,I=F(e.processor)&&C(e.processor.type)?e.processor.type:it,O={list:h,named:y,plural:l,linked:(f,c)=>{const p=P(f)(O);return C(c)?_(c)(p):p},message:P,type:I,interpolate:N,normalize:k};return O}/*!
  * @intlify/message-compiler v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */function ie(e,t,s={}){const{domain:a,messages:o,args:l}=s,m=e,h=new SyntaxError(String(m));return h.code=e,t&&(h.location=t),h.domain=a,h}function ht(e){throw e}function gt(e,t,s){return{line:e,column:t,offset:s}}function le(e,t,s){const a={start:e,end:t};return s!=null&&(a.source=s),a}const U=" ",bt="\r",M=`
`,yt=String.fromCharCode(8232),kt=String.fromCharCode(8233);function Lt(e){const t=e;let s=0,a=1,o=1,l=0;const m=S=>t[S]===bt&&t[S+1]===M,h=S=>t[S]===M,d=S=>t[S]===kt,y=S=>t[S]===yt,P=S=>m(S)||h(S)||d(S)||y(S),_=()=>s,k=()=>a,N=()=>o,I=()=>l,O=S=>m(S)||d(S)||y(S)?M:t[S],f=()=>O(s),c=()=>O(s+l);function p(){return l=0,P(s)&&(a++,o=0),m(s)&&s++,s++,o++,t[s]}function b(){return m(s+l)&&l++,l++,t[s+l]}function u(){s=0,a=1,o=1,l=0}function L(S=0){l=S}function T(){const S=s+l;for(;S!==s;)p();l=0}return{index:_,line:k,column:N,peekOffset:I,charAt:O,currentChar:f,currentPeek:c,next:p,peek:b,reset:u,resetPeek:L,skipToPeek:T}}const J=void 0,Te="'",_t="tokenizer";function Tt(e,t={}){const s=t.location!==!1,a=Lt(e),o=()=>a.index(),l=()=>gt(a.line(),a.column(),a.index()),m=l(),h=o(),d={currentType:14,offset:h,startLoc:m,endLoc:m,lastType:14,lastOffset:h,lastStartLoc:m,lastEndLoc:m,braceNest:0,inLinked:!1,text:""},y=()=>d,{onError:P}=t;function _(n,r,i,...g){const w=y();if(r.column+=i,r.offset+=i,P){const E=le(w.startLoc,r),j=ie(n,E,{domain:_t,args:g});P(j)}}function k(n,r,i){n.endLoc=l(),n.currentType=r;const g={type:r};return s&&(g.loc=le(n.startLoc,n.endLoc)),i!=null&&(g.value=i),g}const N=n=>k(n,14);function I(n,r){return n.currentChar()===r?(n.next(),r):(_(0,l(),0,r),"")}function O(n){let r="";for(;n.currentPeek()===U||n.currentPeek()===M;)r+=n.currentPeek(),n.peek();return r}function f(n){const r=O(n);return n.skipToPeek(),r}function c(n){if(n===J)return!1;const r=n.charCodeAt(0);return r>=97&&r<=122||r>=65&&r<=90||r===95}function p(n){if(n===J)return!1;const r=n.charCodeAt(0);return r>=48&&r<=57}function b(n,r){const{currentType:i}=r;if(i!==2)return!1;O(n);const g=c(n.currentPeek());return n.resetPeek(),g}function u(n,r){const{currentType:i}=r;if(i!==2)return!1;O(n);const g=n.currentPeek()==="-"?n.peek():n.currentPeek(),w=p(g);return n.resetPeek(),w}function L(n,r){const{currentType:i}=r;if(i!==2)return!1;O(n);const g=n.currentPeek()===Te;return n.resetPeek(),g}function T(n,r){const{currentType:i}=r;if(i!==8)return!1;O(n);const g=n.currentPeek()===".";return n.resetPeek(),g}function S(n,r){const{currentType:i}=r;if(i!==9)return!1;O(n);const g=c(n.currentPeek());return n.resetPeek(),g}function D(n,r){const{currentType:i}=r;if(!(i===8||i===12))return!1;O(n);const g=n.currentPeek()===":";return n.resetPeek(),g}function v(n,r){const{currentType:i}=r;if(i!==10)return!1;const g=()=>{const E=n.currentPeek();return E==="{"?c(n.peek()):E==="@"||E==="%"||E==="|"||E===":"||E==="."||E===U||!E?!1:E===M?(n.peek(),g()):c(E)},w=g();return n.resetPeek(),w}function $(n){O(n);const r=n.currentPeek()==="|";return n.resetPeek(),r}function B(n,r=!0){const i=(w=!1,E="",j=!1)=>{const q=n.currentPeek();return q==="{"?E==="%"?!1:w:q==="@"||!q?E==="%"?!0:w:q==="%"?(n.peek(),i(w,"%",!0)):q==="|"?E==="%"||j?!0:!(E===U||E===M):q===U?(n.peek(),i(!0,U,j)):q===M?(n.peek(),i(!0,M,j)):!0},g=i();return r&&n.resetPeek(),g}function X(n,r){const i=n.currentChar();return i===J?J:r(i)?(n.next(),i):null}function me(n){return X(n,i=>{const g=i.charCodeAt(0);return g>=97&&g<=122||g>=65&&g<=90||g>=48&&g<=57||g===95||g===36})}function De(n){return X(n,i=>{const g=i.charCodeAt(0);return g>=48&&g<=57})}function Ae(n){return X(n,i=>{const g=i.charCodeAt(0);return g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102})}function pe(n){let r="",i="";for(;r=De(n);)i+=r;return i}function Re(n){let r="";for(;;){const i=n.currentChar();if(i==="{"||i==="}"||i==="@"||i==="|"||!i)break;if(i==="%")if(B(n))r+=i,n.next();else break;else if(i===U||i===M)if(B(n))r+=i,n.next();else{if($(n))break;r+=i,n.next()}else r+=i,n.next()}return r}function We(n){f(n);let r="",i="";for(;r=me(n);)i+=r;return n.currentChar()===J&&_(6,l(),0),i}function $e(n){f(n);let r="";return n.currentChar()==="-"?(n.next(),r+=`-${pe(n)}`):r+=pe(n),n.currentChar()===J&&_(6,l(),0),r}function xe(n){f(n),I(n,"'");let r="",i="";const g=E=>E!==Te&&E!==M;for(;r=X(n,g);)r==="\\"?i+=He(n):i+=r;const w=n.currentChar();return w===M||w===J?(_(2,l(),0),w===M&&(n.next(),I(n,"'")),i):(I(n,"'"),i)}function He(n){const r=n.currentChar();switch(r){case"\\":case"'":return n.next(),`\\${r}`;case"u":return he(n,r,4);case"U":return he(n,r,6);default:return _(3,l(),0,r),""}}function he(n,r,i){I(n,r);let g="";for(let w=0;w<i;w++){const E=Ae(n);if(!E){_(4,l(),0,`\\${r}${g}${n.currentChar()}`);break}g+=E}return`\\${r}${g}`}function Ue(n){f(n);let r="",i="";const g=w=>w!=="{"&&w!=="}"&&w!==U&&w!==M;for(;r=X(n,g);)i+=r;return i}function je(n){let r="",i="";for(;r=me(n);)i+=r;return i}function Je(n){const r=(i=!1,g)=>{const w=n.currentChar();return w==="{"||w==="%"||w==="@"||w==="|"||!w||w===U?g:w===M?(g+=w,n.next(),r(i,g)):(g+=w,n.next(),r(!0,g))};return r(!1,"")}function re(n){f(n);const r=I(n,"|");return f(n),r}function se(n,r){let i=null;switch(n.currentChar()){case"{":return r.braceNest>=1&&_(8,l(),0),n.next(),i=k(r,2,"{"),f(n),r.braceNest++,i;case"}":return r.braceNest>0&&r.currentType===2&&_(7,l(),0),n.next(),i=k(r,3,"}"),r.braceNest--,r.braceNest>0&&f(n),r.inLinked&&r.braceNest===0&&(r.inLinked=!1),i;case"@":return r.braceNest>0&&_(6,l(),0),i=ee(n,r)||N(r),r.braceNest=0,i;default:let w=!0,E=!0,j=!0;if($(n))return r.braceNest>0&&_(6,l(),0),i=k(r,1,re(n)),r.braceNest=0,r.inLinked=!1,i;if(r.braceNest>0&&(r.currentType===5||r.currentType===6||r.currentType===7))return _(6,l(),0),r.braceNest=0,ae(n,r);if(w=b(n,r))return i=k(r,5,We(n)),f(n),i;if(E=u(n,r))return i=k(r,6,$e(n)),f(n),i;if(j=L(n,r))return i=k(r,7,xe(n)),f(n),i;if(!w&&!E&&!j)return i=k(r,13,Ue(n)),_(1,l(),0,i.value),f(n),i;break}return i}function ee(n,r){const{currentType:i}=r;let g=null;const w=n.currentChar();switch((i===8||i===9||i===12||i===10)&&(w===M||w===U)&&_(9,l(),0),w){case"@":return n.next(),g=k(r,8,"@"),r.inLinked=!0,g;case".":return f(n),n.next(),k(r,9,".");case":":return f(n),n.next(),k(r,10,":");default:return $(n)?(g=k(r,1,re(n)),r.braceNest=0,r.inLinked=!1,g):T(n,r)||D(n,r)?(f(n),ee(n,r)):S(n,r)?(f(n),k(r,12,je(n))):v(n,r)?(f(n),w==="{"?se(n,r)||g:k(r,11,Je(n))):(i===8&&_(9,l(),0),r.braceNest=0,r.inLinked=!1,ae(n,r))}}function ae(n,r){let i={type:14};if(r.braceNest>0)return se(n,r)||N(r);if(r.inLinked)return ee(n,r)||N(r);const g=n.currentChar();switch(g){case"{":return se(n,r)||N(r);case"}":return _(5,l(),0),n.next(),k(r,3,"}");case"@":return ee(n,r)||N(r);default:if($(n))return i=k(r,1,re(n)),r.braceNest=0,r.inLinked=!1,i;if(B(n))return k(r,0,Re(n));if(g==="%")return n.next(),k(r,4,"%");break}return i}function Ke(){const{currentType:n,offset:r,startLoc:i,endLoc:g}=d;return d.lastType=n,d.lastOffset=r,d.lastStartLoc=i,d.lastEndLoc=g,d.offset=o(),d.startLoc=l(),a.currentChar()===J?k(d,14):ae(a,d)}return{nextToken:Ke,currentOffset:o,currentPosition:l,context:y}}const Ct="parser",Ot=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function St(e,t,s){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const a=parseInt(t||s,16);return a<=55295||a>=57344?String.fromCodePoint(a):"�"}}}function wt(e={}){const t=e.location!==!1,{onError:s}=e;function a(c,p,b,u,...L){const T=c.currentPosition();if(T.offset+=u,T.column+=u,s){const S=le(b,T),D=ie(p,S,{domain:Ct,args:L});s(D)}}function o(c,p,b){const u={type:c,start:p,end:p};return t&&(u.loc={start:b,end:b}),u}function l(c,p,b,u){c.end=p,u&&(c.type=u),t&&c.loc&&(c.loc.end=b)}function m(c,p){const b=c.context(),u=o(3,b.offset,b.startLoc);return u.value=p,l(u,c.currentOffset(),c.currentPosition()),u}function h(c,p){const b=c.context(),{lastOffset:u,lastStartLoc:L}=b,T=o(5,u,L);return T.index=parseInt(p,10),c.nextToken(),l(T,c.currentOffset(),c.currentPosition()),T}function d(c,p){const b=c.context(),{lastOffset:u,lastStartLoc:L}=b,T=o(4,u,L);return T.key=p,c.nextToken(),l(T,c.currentOffset(),c.currentPosition()),T}function y(c,p){const b=c.context(),{lastOffset:u,lastStartLoc:L}=b,T=o(9,u,L);return T.value=p.replace(Ot,St),c.nextToken(),l(T,c.currentOffset(),c.currentPosition()),T}function P(c){const p=c.nextToken(),b=c.context(),{lastOffset:u,lastStartLoc:L}=b,T=o(8,u,L);return p.type!==12?(a(c,11,b.lastStartLoc,0),T.value="",l(T,u,L),{nextConsumeToken:p,node:T}):(p.value==null&&a(c,13,b.lastStartLoc,0,x(p)),T.value=p.value||"",l(T,c.currentOffset(),c.currentPosition()),{node:T})}function _(c,p){const b=c.context(),u=o(7,b.offset,b.startLoc);return u.value=p,l(u,c.currentOffset(),c.currentPosition()),u}function k(c){const p=c.context(),b=o(6,p.offset,p.startLoc);let u=c.nextToken();if(u.type===9){const L=P(c);b.modifier=L.node,u=L.nextConsumeToken||c.nextToken()}switch(u.type!==10&&a(c,13,p.lastStartLoc,0,x(u)),u=c.nextToken(),u.type===2&&(u=c.nextToken()),u.type){case 11:u.value==null&&a(c,13,p.lastStartLoc,0,x(u)),b.key=_(c,u.value||"");break;case 5:u.value==null&&a(c,13,p.lastStartLoc,0,x(u)),b.key=d(c,u.value||"");break;case 6:u.value==null&&a(c,13,p.lastStartLoc,0,x(u)),b.key=h(c,u.value||"");break;case 7:u.value==null&&a(c,13,p.lastStartLoc,0,x(u)),b.key=y(c,u.value||"");break;default:a(c,12,p.lastStartLoc,0);const L=c.context(),T=o(7,L.offset,L.startLoc);return T.value="",l(T,L.offset,L.startLoc),b.key=T,l(b,L.offset,L.startLoc),{nextConsumeToken:u,node:b}}return l(b,c.currentOffset(),c.currentPosition()),{node:b}}function N(c){const p=c.context(),b=p.currentType===1?c.currentOffset():p.offset,u=p.currentType===1?p.endLoc:p.startLoc,L=o(2,b,u);L.items=[];let T=null;do{const v=T||c.nextToken();switch(T=null,v.type){case 0:v.value==null&&a(c,13,p.lastStartLoc,0,x(v)),L.items.push(m(c,v.value||""));break;case 6:v.value==null&&a(c,13,p.lastStartLoc,0,x(v)),L.items.push(h(c,v.value||""));break;case 5:v.value==null&&a(c,13,p.lastStartLoc,0,x(v)),L.items.push(d(c,v.value||""));break;case 7:v.value==null&&a(c,13,p.lastStartLoc,0,x(v)),L.items.push(y(c,v.value||""));break;case 8:const $=k(c);L.items.push($.node),T=$.nextConsumeToken||null;break}}while(p.currentType!==14&&p.currentType!==1);const S=p.currentType===1?p.lastOffset:c.currentOffset(),D=p.currentType===1?p.lastEndLoc:c.currentPosition();return l(L,S,D),L}function I(c,p,b,u){const L=c.context();let T=u.items.length===0;const S=o(1,p,b);S.cases=[],S.cases.push(u);do{const D=N(c);T||(T=D.items.length===0),S.cases.push(D)}while(L.currentType!==14);return T&&a(c,10,b,0),l(S,c.currentOffset(),c.currentPosition()),S}function O(c){const p=c.context(),{offset:b,startLoc:u}=p,L=N(c);return p.currentType===14?L:I(c,b,u,L)}function f(c){const p=Tt(c,Y({},e)),b=p.context(),u=o(0,b.offset,b.startLoc);return t&&u.loc&&(u.loc.source=c),u.body=O(p),b.currentType!==14&&a(p,13,b.lastStartLoc,0,c[b.offset]||""),l(u,p.currentOffset(),p.currentPosition()),u}return{parse:f}}function x(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Pt(e,t={}){const s={ast:e,helpers:new Set};return{context:()=>s,helper:l=>(s.helpers.add(l),l)}}function Ce(e,t){for(let s=0;s<e.length;s++)ue(e[s],t)}function ue(e,t){switch(e.type){case 1:Ce(e.cases,t),t.helper("plural");break;case 2:Ce(e.items,t);break;case 6:ue(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 Nt(e,t={}){const s=Pt(e);s.helper("normalize"),e.body&&ue(e.body,s);const a=s.context();e.helpers=Array.from(a.helpers)}function It(e,t){const{sourceMap:s,filename:a,breakLineCode:o,needIndent:l}=t,m={source:e.loc.source,filename:a,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:l,indentLevel:0},h=()=>m;function d(O,f){m.code+=O}function y(O,f=!0){const c=f?o:"";d(l?c+"  ".repeat(O):c)}function P(O=!0){const f=++m.indentLevel;O&&y(f)}function _(O=!0){const f=--m.indentLevel;O&&y(f)}function k(){y(m.indentLevel)}return{context:h,push:d,indent:P,deindent:_,newline:k,helper:O=>`_${O}`,needIndent:()=>m.needIndent}}function Et(e,t){const{helper:s}=e;e.push(`${s("linked")}(`),Z(e,t.key),t.modifier&&(e.push(", "),Z(e,t.modifier)),e.push(")")}function Ft(e,t){const{helper:s,needIndent:a}=e;e.push(`${s("normalize")}([`),e.indent(a());const o=t.items.length;for(let l=0;l<o&&(Z(e,t.items[l]),l!==o-1);l++)e.push(", ");e.deindent(a()),e.push("])")}function vt(e,t){const{helper:s,needIndent:a}=e;if(t.cases.length>1){e.push(`${s("plural")}([`),e.indent(a());const o=t.cases.length;for(let l=0;l<o&&(Z(e,t.cases[l]),l!==o-1);l++)e.push(", ");e.deindent(a()),e.push("])")}}function Mt(e,t){t.body?Z(e,t.body):e.push("null")}function Z(e,t){const{helper:s}=e;switch(t.type){case 0:Mt(e,t);break;case 1:vt(e,t);break;case 2:Ft(e,t);break;case 6:Et(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(`${s("interpolate")}(${s("list")}(${t.index}))`,t);break;case 4:e.push(`${s("interpolate")}(${s("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 Dt=(e,t={})=>{const s=C(t.mode)?t.mode:"normal",a=C(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,l=t.breakLineCode!=null?t.breakLineCode:s==="arrow"?";":`
`,m=t.needIndent?t.needIndent:s!=="arrow",h=e.helpers||[],d=It(e,{mode:s,filename:a,sourceMap:o,breakLineCode:l,needIndent:m});d.push(s==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),d.indent(m),h.length>0&&(d.push(`const { ${h.map(_=>`${_}: _${_}`).join(", ")} } = ctx`),d.newline()),d.push("return "),Z(d,e),d.deindent(m),d.push("}");const{code:y,map:P}=d.context();return{ast:e,code:y,map:P?P.toJSON():void 0}};function At(e,t={}){const s=Y({},t),o=wt(s).parse(e);return Nt(o,s),Dt(o,s)}/*!
  * @intlify/devtools-if v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */const Ee={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
  * @intlify/core-base v9.1.10
  * (c) 2022 kazuya kawaguchi
  * Released under the MIT License.
  */let z=null;function tn(e){z=e}function Rt(e,t,s){z&&z.emit(Ee.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:s})}const Wt=$t(Ee.FunctionTranslate);function $t(e){return t=>z&&z.emit(e,t)}const xt="9.1.10",fe=-1,nn="";function Ht(){return{upper:e=>C(e)?e.toUpperCase():e,lower:e=>C(e)?e.toLowerCase():e,capitalize:e=>C(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}}let Fe;function rn(e){Fe=e}let ve=null;const sn=e=>{ve=e},Ut=()=>ve;let Oe=0;function an(e={}){const t=C(e.version)?e.version:xt,s=C(e.locale)?e.locale:"en-US",a=K(e.fallbackLocale)||F(e.fallbackLocale)||C(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,o=F(e.messages)?e.messages:{[s]:{}},l=F(e.datetimeFormats)?e.datetimeFormats:{[s]:{}},m=F(e.numberFormats)?e.numberFormats:{[s]:{}},h=Y({},e.modifiers||{},Ht()),d=e.pluralRules||{},y=W(e.missing)?e.missing:null,P=R(e.missingWarn)||ge(e.missingWarn)?e.missingWarn:!0,_=R(e.fallbackWarn)||ge(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,N=!!e.unresolving,I=W(e.postTranslation)?e.postTranslation:null,O=F(e.processor)?e.processor:null,f=R(e.warnHtmlMessage)?e.warnHtmlMessage:!0,c=!!e.escapeParameter,p=W(e.messageCompiler)?e.messageCompiler:Fe,b=W(e.onWarn)?e.onWarn:Be,u=e,L=G(u.__datetimeFormatters)?u.__datetimeFormatters:new Map,T=G(u.__numberFormatters)?u.__numberFormatters:new Map,S=G(u.__meta)?u.__meta:{};Oe++;const D={version:t,cid:Oe,locale:s,fallbackLocale:a,messages:o,datetimeFormats:l,numberFormats:m,modifiers:h,pluralRules:d,missing:y,missingWarn:P,fallbackWarn:_,fallbackFormat:k,unresolving:N,postTranslation:I,processor:O,warnHtmlMessage:f,escapeParameter:c,messageCompiler:p,onWarn:b,__datetimeFormatters:L,__numberFormatters:T,__meta:S};return __INTLIFY_PROD_DEVTOOLS__&&Rt(D,t,S),D}function de(e,t,s,a,o){const{missing:l,onWarn:m}=e;if(l!==null){const h=l(e,s,t,o);return C(h)?h:t}else return t}function ne(e,t,s){const a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let o=a.__localeChainCache.get(s);if(!o){o=[];let l=[s];for(;K(l);)l=Se(o,l,t);const m=K(t)?t:F(t)?t.default?t.default:null:t;l=C(m)?[m]:m,K(l)&&Se(o,l,!1),a.__localeChainCache.set(s,o)}return o}function Se(e,t,s){let a=!0;for(let o=0;o<t.length&&R(a);o++){const l=t[o];C(l)&&(a=jt(e,t[o],s))}return a}function jt(e,t,s){let a;const o=t.split("-");do{const l=o.join("-");a=Jt(e,l,s),o.splice(-1,1)}while(o.length&&a===!0);return a}function Jt(e,t,s){let a=!1;if(!e.includes(t)&&(a=!0,t)){a=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(K(s)||F(s))&&s[o]&&(a=s[o])}return a}function ln(e,t,s){const a=e;a.__localeChainCache=new Map,ne(e,s,t)}const Kt=e=>e;let we=Object.create(null);function cn(e,t={}){{const a=(t.onCacheKey||Kt)(e),o=we[a];if(o)return o;let l=!1;const m=t.onError||ht;t.onError=y=>{l=!0,m(y)};const{code:h}=At(e,t),d=new Function(`return ${h}`)();return l?d:we[a]=d}}function Q(e){return ie(e,null,void 0)}const Pe=()=>"",H=e=>W(e);function on(e,...t){const{fallbackFormat:s,postTranslation:a,unresolving:o,fallbackLocale:l,messages:m}=e,[h,d]=Yt(...t),y=R(d.missingWarn)?d.missingWarn:e.missingWarn,P=R(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,_=R(d.escapeParameter)?d.escapeParameter:e.escapeParameter,k=!!d.resolvedMessage,N=C(d.default)||R(d.default)?R(d.default)?h:d.default:s?h:"",I=s||N!=="",O=C(d.locale)?d.locale:e.locale;_&&Vt(d);let[f,c,p]=k?[h,O,m[O]||{}]:qt(e,h,O,l,P,y),b=h;if(!k&&!(C(f)||H(f))&&I&&(f=N,b=f),!k&&(!(C(f)||H(f))||!C(c)))return o?fe:h;let u=!1;const L=()=>{u=!0},T=H(f)?f:Me(e,h,c,f,b,L);if(u)return f;const S=Qt(e,c,p,d),D=pt(S),v=Gt(e,T,D),$=a?a(v):v;if(__INTLIFY_PROD_DEVTOOLS__){const B={timestamp:Date.now(),key:C(h)?h:H(f)?f.key:"",locale:c||(H(f)?f.locale:""),format:C(f)?f:H(f)?f.source:"",message:$};B.meta=Y({},e.__meta,Ut()||{}),Wt(B)}return $}function Vt(e){K(e.list)?e.list=e.list.map(t=>C(t)?ye(t):t):G(e.named)&&Object.keys(e.named).forEach(t=>{C(e.named[t])&&(e.named[t]=ye(e.named[t]))})}function qt(e,t,s,a,o,l){const{messages:m,onWarn:h}=e,d=ne(e,a,s);let y={},P,_=null;const k="translate";for(let N=0;N<d.length&&(P=d[N],y=m[P]||{},(_=Ie(y,t))===null&&(_=y[t]),!(C(_)||W(_)));N++){const I=de(e,t,P,l,k);I!==t&&(_=I)}return[_,P,y]}function Me(e,t,s,a,o,l){const{messageCompiler:m,warnHtmlMessage:h}=e;if(H(a)){const y=a;return y.locale=y.locale||s,y.key=y.key||t,y}const d=m(a,Bt(e,s,o,a,h,l));return d.locale=s,d.key=t,d.source=a,d}function Gt(e,t,s){return t(s)}function Yt(...e){const[t,s,a]=e,o={};if(!C(t)&&!A(t)&&!H(t))throw Q(14);const l=A(t)?String(t):(H(t),t);return A(s)?o.plural=s:C(s)?o.default=s:F(s)&&!ce(s)?o.named=s:K(s)&&(o.list=s),A(a)?o.plural=a:C(a)?o.default=a:F(a)&&Y(o,a),[l,o]}function Bt(e,t,s,a,o,l){return{warnHtmlMessage:o,onError:m=>{throw l&&l(m),m},onCacheKey:m=>qe(t,s,m)}}function Qt(e,t,s,a){const{modifiers:o,pluralRules:l}=e,h={locale:t,modifiers:o,pluralRules:l,messages:d=>{const y=Ie(s,d);if(C(y)){let P=!1;const k=Me(e,d,t,y,d,()=>{P=!0});return P?Pe:k}else return H(y)?y:Pe}};return e.processor&&(h.processor=e.processor),a.list&&(h.list=a.list),a.named&&(h.named=a.named),A(a.plural)&&(h.pluralIndex=a.plural),h}function un(e,...t){const{datetimeFormats:s,unresolving:a,fallbackLocale:o,onWarn:l}=e,{__datetimeFormatters:m}=e,[h,d,y,P]=Zt(...t),_=R(y.missingWarn)?y.missingWarn:e.missingWarn;R(y.fallbackWarn)?y.fallbackWarn:e.fallbackWarn;const k=!!y.part,N=C(y.locale)?y.locale:e.locale,I=ne(e,o,N);if(!C(h)||h==="")return new Intl.DateTimeFormat(N).format(d);let O={},f,c=null;const p="datetime format";for(let L=0;L<I.length&&(f=I[L],O=s[f]||{},c=O[h],!F(c));L++)de(e,h,f,_,p);if(!F(c)||!C(f))return a?fe:h;let b=`${f}__${h}`;ce(P)||(b=`${b}__${JSON.stringify(P)}`);let u=m.get(b);return u||(u=new Intl.DateTimeFormat(f,Y({},c,P)),m.set(b,u)),k?u.formatToParts(d):u.format(d)}function Zt(...e){const[t,s,a,o]=e;let l={},m={},h;if(C(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw Q(16);h=new Date(t);try{h.toISOString()}catch{throw Q(16)}}else if(Ye(t)){if(isNaN(t.getTime()))throw Q(15);h=t}else if(A(t))h=t;else throw Q(14);return C(s)?l.key=s:F(s)&&(l=s),C(a)?l.locale=a:F(a)&&(m=a),F(o)&&(m=o),[l.key||"",h,l,m]}function fn(e,t,s){const a=e;for(const o in s){const l=`${t}__${o}`;a.__datetimeFormatters.has(l)&&a.__datetimeFormatters.delete(l)}}function dn(e,...t){const{numberFormats:s,unresolving:a,fallbackLocale:o,onWarn:l}=e,{__numberFormatters:m}=e,[h,d,y,P]=Xt(...t),_=R(y.missingWarn)?y.missingWarn:e.missingWarn;R(y.fallbackWarn)?y.fallbackWarn:e.fallbackWarn;const k=!!y.part,N=C(y.locale)?y.locale:e.locale,I=ne(e,o,N);if(!C(h)||h==="")return new Intl.NumberFormat(N).format(d);let O={},f,c=null;const p="number format";for(let L=0;L<I.length&&(f=I[L],O=s[f]||{},c=O[h],!F(c));L++)de(e,h,f,_,p);if(!F(c)||!C(f))return a?fe:h;let b=`${f}__${h}`;ce(P)||(b=`${b}__${JSON.stringify(P)}`);let u=m.get(b);return u||(u=new Intl.NumberFormat(f,Y({},c,P)),m.set(b,u)),k?u.formatToParts(d):u.format(d)}function Xt(...e){const[t,s,a,o]=e;let l={},m={};if(!A(t))throw Q(14);const h=t;return C(s)?l.key=s:F(s)&&(l=s),C(a)?l.locale=a:F(a)&&(m=a),F(o)&&(m=o),[l.key||"",h,l,m]}function mn(e,t,s){const a=e;for(const o in s){const l=`${t}__${o}`;a.__numberFormatters.has(l)&&a.__numberFormatters.delete(l)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Qe().__INTLIFY_PROD_DEVTOOLS__=!1);export{Zt as A,un as B,Xt as C,dn as D,ne as E,nn as M,fe as N,Y as a,C as b,G as c,R as d,ce as e,ie as f,Qe as g,F as h,A as i,K as j,en as k,Le as l,zt as m,ge as n,W as o,cn as p,an as q,rn as r,tn as s,Ie as t,ln as u,fn as v,mn as w,sn as x,Yt as y,on as z};
