UNPKG

vue-component-toolkit

Version:

A Vue3 component toolkit library

21 lines 160 kB
(function(x,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],n):(x=typeof globalThis<"u"?globalThis:x||self,n(x["Vue Component Toolkit"]={},x.Vue))})(this,function(x,n){"use strict";var Fd=Object.defineProperty;var Md=(x,n,He)=>n in x?Fd(x,n,{enumerable:!0,configurable:!0,writable:!0,value:He}):x[n]=He;var ue=(x,n,He)=>Md(x,typeof n!="symbol"?n+"":n,He);const He={class:"comp-accordion bg-gray-100 p-4 rounded-lg shadow-md flex flex-col"},Bo={__name:"Accordion",props:{selected:{type:Number,default:0}},setup(e){const t=e,o=n.useSlots(),r=n.ref(null),l=n.ref(t.selected),s=a=>{l.value=a};return n.onMounted(()=>{var a;r.value=(a=o.default)==null?void 0:a.call(o)}),(a,i)=>(n.openBlock(),n.createElementBlock("div",He,[r.value?n.createCommentVNode("",!0):n.renderSlot(a.$slots,"default",{key:0}),r.value?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:1},n.renderList(r.value,(c,d)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(c),n.mergeProps({key:d,ref_for:!0},c.props,{id:d,selected:d===l.value,onSelect:s}),null,16,["id","selected"]))),128)):n.createCommentVNode("",!0)]))}},M=(e,t)=>{const o=e.__vccOpts||e;for(const[r,l]of t)o[r]=l;return o},xo=["disabled"],Ro={class:"horizontal"},Do=M({__name:"Button",props:{variant:{type:String,default:"primary"},size:{type:String,default:"md"},disabled:{type:Boolean,default:!1},off:{type:Boolean,default:!1},text:{type:String},onClick:{type:Function},icon:{type:Object},style:{type:Object}},setup(e){const t=e,o=n.computed(()=>t.style),r=n.computed(()=>t.text?"px-4":"px-2"),l=n.computed(()=>{const a={primary:"bg-blue-500 text-white hover:bg-blue-600 active:bg-blue-700 focus:ring-blue-500",secondary:"bg-gray-500 text-white hover:bg-gray-600 active:bg-gray-700 focus:ring-gray-500",danger:"bg-red-500 text-white hover:bg-red-600 active:bg-red-700 focus:ring-red-500"};return a[t.variant]||a.primary}),s=n.computed(()=>{const a={sm:"text-sm",md:"text-base",lg:"text-lg"};return a[t.size]||a.md});return(a,i)=>(n.openBlock(),n.createElementBlock("button",{style:n.normalizeStyle(o.value),class:n.normalizeClass(["py-2 rounded-lg font-medium rounded-md transition-colors duration-300 active:opacity-80 active:scale-95",r.value,l.value,s.value,{"opacity-50 cursor-not-allowed":e.disabled},{"opacity-50 ":e.off}]),disabled:e.disabled,onClick:i[0]||(i[0]=c=>!e.disabled&&a.$emit("click"))},[n.createElementVNode("div",Ro,[n.createTextVNode(n.toDisplayString(e.text)+" ",1),e.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.icon),{key:0,class:"px-1"})):n.createCommentVNode("",!0)])],14,xo))}},[["__scopeId","data-v-b0896a09"]]),Vo={class:"comp-card w-full p-6 border rounded-lg bg-gray-100 shadow flex flex-col"},Po={key:0,class:"text-xl font-semibold text-gray-800"},Fo={key:1,class:"text-gray-600 mt-2"},Mo=M({__name:"Card",props:{title:{type:String,required:!1},description:{type:String,required:!1}},setup(e){const t=e;return(o,r)=>(n.openBlock(),n.createElementBlock("div",Vo,[t.title?(n.openBlock(),n.createElementBlock("h3",Po,n.toDisplayString(t.title),1)):n.createCommentVNode("",!0),t.description?(n.openBlock(),n.createElementBlock("p",Fo,n.toDisplayString(t.description),1)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"slot",style:n.normalizeStyle(t.title||t.description?{"margin-top":"16px"}:{})},[n.renderSlot(o.$slots,"default",{},void 0,!0)],4)]))}},[["__scopeId","data-v-55aff5c1"]]),$o={class:"flex flex-col items-center w-full"},Uo={class:"relative w-40 h-40"},jo={class:"w-full h-full transform -rotate-90"},qo=["stroke-dasharray","stroke-dashoffset"],Ho={class:"absolute inset-0 flex flex-col items-center justify-center"},zo={class:"text-2xl font-bold text-gray-800"},Wo={class:"mt-4 flex items-center gap-4"},Gt=100,Go="°C",Yo=40,Ko="#00C853",Xo="#D32F2F",vo={__name:"CircularGauge",setup(e){const t=n.ref(50),o=n.computed(()=>2*Math.PI*Yo),r=(i,c,d,f,h)=>{const m=(i-c)/(d-c),E=(u,g)=>Math.round(u+(g-u)*m).toString(16).padStart(2,"0"),k=E(parseInt(f.slice(1,3),16),parseInt(h.slice(1,3),16)),N=E(parseInt(f.slice(3,5),16),parseInt(h.slice(3,5),16)),y=E(parseInt(f.slice(5,7),16),parseInt(h.slice(5,7),16));return`#${k}${N}${y}`},l=n.computed(()=>r(t.value,0,Gt,Ko,Xo)),s=()=>{t.value<Gt&&(t.value+=5)},a=()=>{t.value>0&&(t.value-=5)};return(i,c)=>(n.openBlock(),n.createElementBlock("div",$o,[n.createElementVNode("div",Uo,[(n.openBlock(),n.createElementBlock("svg",jo,[c[0]||(c[0]=n.createElementVNode("circle",{class:"text-gray-300",stroke:"currentColor","stroke-width":"10",fill:"transparent",r:"40",cx:"50%",cy:"50%"},null,-1)),n.createElementVNode("circle",{style:n.normalizeStyle({stroke:l.value}),class:"transition-all duration-300","stroke-dasharray":o.value,"stroke-dashoffset":o.value-t.value/Gt*o.value,"stroke-width":"10",fill:"transparent",r:"40",cx:"50%",cy:"50%"},null,12,qo)])),n.createElementVNode("div",Ho,[n.createElementVNode("span",zo,n.toDisplayString(t.value),1),n.createElementVNode("span",{class:"text-sm text-gray-500"},n.toDisplayString(Go))])]),n.createElementVNode("div",Wo,[n.createElementVNode("button",{onClick:a,class:"px-4 py-2 bg-gray-300 rounded-full hover:bg-gray-400 transition"}," - "),n.createElementVNode("button",{onClick:s,class:"px-4 py-2 text-white rounded-full transition",style:n.normalizeStyle({backgroundColor:l.value})}," + ",4)])]))}},Jo={class:"flex flex-col items-center w-full"},Qo={class:"relative w-40 h-40"},Zo={class:"w-full h-full",viewBox:"0 0 100 100"},el=["x","y"],tl=["x2","y2"],nl=["x2","y2"],rl=["x2","y2"],ol={class:"mt-4 text-xl font-semibold text-gray-800"},ll={__name:"Clock",setup(e){const t=n.ref(new Date),o=()=>{t.value=new Date};n.onMounted(()=>{setInterval(o,1e3)});const r=(m,E)=>{const k=(m-90)*(Math.PI/180);return{x:50+E*Math.cos(k),y:50+E*Math.sin(k)}},l=m=>50+38*Math.cos((m*30-90)*(Math.PI/180)),s=m=>50+38*Math.sin((m*30-90)*(Math.PI/180))+2,a=n.ref({}),i=n.ref({}),c=n.ref({}),d=()=>{const m=t.value,E=m.getHours()%12,k=m.getMinutes(),N=m.getSeconds();a.value=r((E+k/60)*30,20),i.value=r(k*6,30),c.value=r(N*6,38)};d(),setInterval(d,1e3);const f=n.ref("");return setInterval(()=>{f.value=t.value.toLocaleTimeString()},1e3),(m,E)=>(n.openBlock(),n.createElementBlock("div",Jo,[n.createElementVNode("div",Qo,[(n.openBlock(),n.createElementBlock("svg",Zo,[E[0]||(E[0]=n.createElementVNode("circle",{cx:"50",cy:"50",r:"48",stroke:"currentColor","stroke-width":"4",fill:"transparent",class:"text-gray-300"},null,-1)),(n.openBlock(),n.createElementBlock(n.Fragment,null,n.renderList(12,k=>n.createElementVNode("text",{key:k,x:l(k),y:s(k),"text-anchor":"middle",class:"text-sm font-bold text-gray-800"},n.toDisplayString(k),9,el)),64)),n.createElementVNode("line",{x1:50,y1:50,x2:a.value.x,y2:a.value.y,stroke:"currentColor","stroke-width":"4",class:"text-gray-700 transition-all duration-300"},null,8,tl),n.createElementVNode("line",{x1:50,y1:50,x2:i.value.x,y2:i.value.y,stroke:"currentColor","stroke-width":"3",class:"text-gray-900 transition-all duration-300"},null,8,nl),n.createElementVNode("line",{x1:50,y1:50,x2:c.value.x,y2:c.value.y,stroke:"red","stroke-width":"2",class:"transition-all duration-100"},null,8,rl),E[1]||(E[1]=n.createElementVNode("circle",{cx:"50",cy:"50",r:"2",fill:"black"},null,-1))]))]),n.createElementVNode("div",ol,n.toDisplayString(f.value),1)]))}};/*! * shared v11.0.0-beta.2 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const Ne=typeof window<"u";let de,Be;if(process.env.NODE_ENV!=="production"){const e=Ne&&window.performance;e&&e.mark&&e.measure&&e.clearMarks&&e.clearMeasures&&(de=t=>{e.mark(t)},Be=(t,o,r)=>{e.measure(t,o,r),e.clearMarks(o),e.clearMarks(r)})}const sl=/\{([0-9a-zA-Z]+)\}/g;function kt(e,...t){return t.length===1&&U(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(sl,(o,r)=>t.hasOwnProperty(r)?t[r]:"")}const we=(e,t=!1)=>t?Symbol.for(e):Symbol(e),al=(e,t,o)=>il({l:e,k:t,s:o}),il=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),ee=e=>typeof e=="number"&&isFinite(e),cl=e=>Yt(e)==="[object Date]",Nt=e=>Yt(e)==="[object RegExp]",wt=e=>j(e)&&Object.keys(e).length===0,te=Object.assign,ul=Object.create,z=(e=null)=>ul(e);let Un;const xe=()=>Un||(Un=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:z());function jn(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const dl=Object.prototype.hasOwnProperty;function he(e,t){return dl.call(e,t)}const Z=Array.isArray,W=e=>typeof e=="function",B=e=>typeof e=="string",Y=e=>typeof e=="boolean",U=e=>e!==null&&typeof e=="object",fl=e=>U(e)&&W(e.then)&&W(e.catch),qn=Object.prototype.toString,Yt=e=>qn.call(e),j=e=>Yt(e)==="[object Object]",ml=e=>e==null?"":Z(e)||j(e)&&e.toString===qn?JSON.stringify(e,null,2):String(e);function Kt(e,t=""){return e.reduce((o,r,l)=>l===0?o+r:o+t+r,"")}const Hn=2;function pl(e,t=0,o=e.length){const r=e.split(/\r?\n/);let l=0;const s=[];for(let a=0;a<r.length;a++)if(l+=r[a].length+1,l>=t){for(let i=a-Hn;i<=a+Hn||o>l;i++){if(i<0||i>=r.length)continue;const c=i+1;s.push(`${c}${" ".repeat(3-String(c).length)}| ${r[i]}`);const d=r[i].length;if(i===a){const f=t-(l-d)+1,h=Math.max(1,o>l?d-f:o-t);s.push(" | "+" ".repeat(f)+"^".repeat(h))}else if(i>a){if(o>l){const f=Math.max(Math.min(o-l,d),1);s.push(" | "+"^".repeat(f))}l+=d+1}}break}return s.join(` `)}function Te(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const zn={};function _l(e){zn[e]||(zn[e]=!0,Te(e))}function hl(){const e=new Map;return{events:e,on(o,r){const l=e.get(o);l&&l.push(r)||e.set(o,[r])},off(o,r){const l=e.get(o);l&&l.splice(l.indexOf(r)>>>0,1)},emit(o,r){(e.get(o)||[]).slice().map(l=>l(r)),(e.get("*")||[]).slice().map(l=>l(o,r))}}}const Ct=e=>!U(e)||Z(e);function St(e,t){if(Ct(e)||Ct(t))throw new Error("Invalid value");const o=[{src:e,des:t}];for(;o.length;){const{src:r,des:l}=o.pop();Object.keys(r).forEach(s=>{s!=="__proto__"&&(U(r[s])&&!U(l[s])&&(l[s]=Array.isArray(r[s])?[]:z()),Ct(l[s])||Ct(r[s])?l[s]=r[s]:o.push({src:r[s],des:l[s]}))})}}/*! * message-compiler v11.0.0-beta.2 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function gl(e,t,o){return{line:e,column:t,offset:o}}function Xt(e,t,o){return{start:e,end:t}}const P={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16},yl=17,El={[P.EXPECTED_TOKEN]:"Expected token: '{0}'",[P.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[P.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[P.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[P.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[P.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[P.EMPTY_PLACEHOLDER]:"Empty placeholder",[P.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[P.INVALID_LINKED_FORMAT]:"Invalid linked format",[P.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[P.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[P.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[P.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[P.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[P.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function ze(e,t,o={}){const{domain:r,messages:l,args:s}=o,a=process.env.NODE_ENV!=="production"?kt((l||El)[e]||"",...s||[]):e,i=new SyntaxError(String(a));return i.code=e,t&&(i.location=t),i.domain=r,i}function bl(e){throw e}const kl=/<\/?[\w\s="/.':;#-\/]+>/,Nl=e=>kl.test(e),Ce=" ",wl="\r",le=` `,Cl="\u2028",Sl="\u2029";function Ol(e){const t=e;let o=0,r=1,l=1,s=0;const a=S=>t[S]===wl&&t[S+1]===le,i=S=>t[S]===le,c=S=>t[S]===Sl,d=S=>t[S]===Cl,f=S=>a(S)||i(S)||c(S)||d(S),h=()=>o,m=()=>r,E=()=>l,k=()=>s,N=S=>a(S)||c(S)||d(S)?le:t[S],y=()=>N(o),u=()=>N(o+s);function g(){return s=0,f(o)&&(r++,l=0),a(o)&&o++,o++,l++,t[o]}function b(){return a(o+s)&&s++,s++,t[o+s]}function C(){o=0,r=1,l=1,s=0}function L(S=0){s=S}function A(){const S=o+s;for(;S!==o;)g();s=0}return{index:h,line:m,column:E,peekOffset:k,charAt:N,currentChar:y,currentPeek:u,next:g,peek:b,reset:C,resetPeek:L,skipToPeek:A}}const Le=void 0,Tl=".",Wn="'",Ll="tokenizer";function Al(e,t={}){const o=t.location!==!1,r=Ol(e),l=()=>r.index(),s=()=>gl(r.line(),r.column(),r.index()),a=s(),i=l(),c={currentType:13,offset:i,startLoc:a,endLoc:a,lastType:13,lastOffset:i,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},d=()=>c,{onError:f}=t;function h(p,_,T,...D){const X=d();if(_.column+=T,_.offset+=T,f){const v=o?Xt(X.startLoc,_):null,q=ze(p,v,{domain:Ll,args:D});f(q)}}function m(p,_,T){p.endLoc=s(),p.currentType=_;const D={type:_};return o&&(D.loc=Xt(p.startLoc,p.endLoc)),T!=null&&(D.value=T),D}const E=p=>m(p,13);function k(p,_){return p.currentChar()===_?(p.next(),_):(h(P.EXPECTED_TOKEN,s(),0,_),"")}function N(p){let _="";for(;p.currentPeek()===Ce||p.currentPeek()===le;)_+=p.currentPeek(),p.peek();return _}function y(p){const _=N(p);return p.skipToPeek(),_}function u(p){if(p===Le)return!1;const _=p.charCodeAt(0);return _>=97&&_<=122||_>=65&&_<=90||_===95}function g(p){if(p===Le)return!1;const _=p.charCodeAt(0);return _>=48&&_<=57}function b(p,_){const{currentType:T}=_;if(T!==2)return!1;N(p);const D=u(p.currentPeek());return p.resetPeek(),D}function C(p,_){const{currentType:T}=_;if(T!==2)return!1;N(p);const D=p.currentPeek()==="-"?p.peek():p.currentPeek(),X=g(D);return p.resetPeek(),X}function L(p,_){const{currentType:T}=_;if(T!==2)return!1;N(p);const D=p.currentPeek()===Wn;return p.resetPeek(),D}function A(p,_){const{currentType:T}=_;if(T!==7)return!1;N(p);const D=p.currentPeek()===".";return p.resetPeek(),D}function S(p,_){const{currentType:T}=_;if(T!==8)return!1;N(p);const D=u(p.currentPeek());return p.resetPeek(),D}function R(p,_){const{currentType:T}=_;if(!(T===7||T===11))return!1;N(p);const D=p.currentPeek()===":";return p.resetPeek(),D}function $(p,_){const{currentType:T}=_;if(T!==9)return!1;const D=()=>{const v=p.currentPeek();return v==="{"?u(p.peek()):v==="@"||v==="|"||v===":"||v==="."||v===Ce||!v?!1:v===le?(p.peek(),D()):ce(p,!1)},X=D();return p.resetPeek(),X}function G(p){N(p);const _=p.currentPeek()==="|";return p.resetPeek(),_}function ce(p,_=!0){const T=(X=!1,v="")=>{const q=p.currentPeek();return q==="{"||q==="@"||!q?X:q==="|"?!(v===Ce||v===le):q===Ce?(p.peek(),T(!0,Ce)):q===le?(p.peek(),T(!0,le)):!0},D=T();return _&&p.resetPeek(),D}function K(p,_){const T=p.currentChar();return T===Le?Le:_(T)?(p.next(),T):null}function ke(p){const _=p.charCodeAt(0);return _>=97&&_<=122||_>=65&&_<=90||_>=48&&_<=57||_===95||_===36}function mt(p){return K(p,ke)}function Oe(p){const _=p.charCodeAt(0);return _>=97&&_<=122||_>=65&&_<=90||_>=48&&_<=57||_===95||_===36||_===45}function ve(p){return K(p,Oe)}function V(p){const _=p.charCodeAt(0);return _>=48&&_<=57}function se(p){return K(p,V)}function _e(p){const _=p.charCodeAt(0);return _>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102}function ye(p){return K(p,_e)}function $e(p){let _="",T="";for(;_=se(p);)T+=_;return T}function pt(p){let _="";for(;;){const T=p.currentChar();if(T==="{"||T==="}"||T==="@"||T==="|"||!T)break;if(T===Ce||T===le)if(ce(p))_+=T,p.next();else{if(G(p))break;_+=T,p.next()}else _+=T,p.next()}return _}function _t(p){y(p);let _="",T="";for(;_=ve(p);)T+=_;return p.currentChar()===Le&&h(P.UNTERMINATED_CLOSING_BRACE,s(),0),T}function ht(p){y(p);let _="";return p.currentChar()==="-"?(p.next(),_+=`-${$e(p)}`):_+=$e(p),p.currentChar()===Le&&h(P.UNTERMINATED_CLOSING_BRACE,s(),0),_}function gt(p){return p!==Wn&&p!==le}function Ao(p){y(p),k(p,"'");let _="",T="";for(;_=K(p,gt);)_==="\\"?T+=Dn(p):T+=_;const D=p.currentChar();return D===le||D===Le?(h(P.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),D===le&&(p.next(),k(p,"'")),T):(k(p,"'"),T)}function Dn(p){const _=p.currentChar();switch(_){case"\\":case"'":return p.next(),`\\${_}`;case"u":return zt(p,_,4);case"U":return zt(p,_,6);default:return h(P.UNKNOWN_ESCAPE_SEQUENCE,s(),0,_),""}}function zt(p,_,T){k(p,_);let D="";for(let X=0;X<T;X++){const v=ye(p);if(!v){h(P.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${_}${D}${p.currentChar()}`);break}D+=v}return`\\${_}${D}`}function Vn(p){return p!=="{"&&p!=="}"&&p!==Ce&&p!==le}function Pn(p){y(p);let _="",T="";for(;_=K(p,Vn);)T+=_;return T}function Fn(p){let _="",T="";for(;_=mt(p);)T+=_;return T}function Mn(p){const _=T=>{const D=p.currentChar();return D==="{"||D==="@"||D==="|"||D==="("||D===")"||!D||D===Ce?T:(T+=D,p.next(),_(T))};return _("")}function yt(p){y(p);const _=k(p,"|");return y(p),_}function Et(p,_){let T=null;switch(p.currentChar()){case"{":return _.braceNest>=1&&h(P.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),p.next(),T=m(_,2,"{"),y(p),_.braceNest++,T;case"}":return _.braceNest>0&&_.currentType===2&&h(P.EMPTY_PLACEHOLDER,s(),0),p.next(),T=m(_,3,"}"),_.braceNest--,_.braceNest>0&&y(p),_.inLinked&&_.braceNest===0&&(_.inLinked=!1),T;case"@":return _.braceNest>0&&h(P.UNTERMINATED_CLOSING_BRACE,s(),0),T=Ue(p,_)||E(_),_.braceNest=0,T;default:{let X=!0,v=!0,q=!0;if(G(p))return _.braceNest>0&&h(P.UNTERMINATED_CLOSING_BRACE,s(),0),T=m(_,1,yt(p)),_.braceNest=0,_.inLinked=!1,T;if(_.braceNest>0&&(_.currentType===4||_.currentType===5||_.currentType===6))return h(P.UNTERMINATED_CLOSING_BRACE,s(),0),_.braceNest=0,bt(p,_);if(X=b(p,_))return T=m(_,4,_t(p)),y(p),T;if(v=C(p,_))return T=m(_,5,ht(p)),y(p),T;if(q=L(p,_))return T=m(_,6,Ao(p)),y(p),T;if(!X&&!v&&!q)return T=m(_,12,Pn(p)),h(P.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,T.value),y(p),T;break}}return T}function Ue(p,_){const{currentType:T}=_;let D=null;const X=p.currentChar();switch((T===7||T===8||T===11||T===9)&&(X===le||X===Ce)&&h(P.INVALID_LINKED_FORMAT,s(),0),X){case"@":return p.next(),D=m(_,7,"@"),_.inLinked=!0,D;case".":return y(p),p.next(),m(_,8,".");case":":return y(p),p.next(),m(_,9,":");default:return G(p)?(D=m(_,1,yt(p)),_.braceNest=0,_.inLinked=!1,D):A(p,_)||R(p,_)?(y(p),Ue(p,_)):S(p,_)?(y(p),m(_,11,Fn(p))):$(p,_)?(y(p),X==="{"?Et(p,_)||D:m(_,10,Mn(p))):(T===7&&h(P.INVALID_LINKED_FORMAT,s(),0),_.braceNest=0,_.inLinked=!1,bt(p,_))}}function bt(p,_){let T={type:13};if(_.braceNest>0)return Et(p,_)||E(_);if(_.inLinked)return Ue(p,_)||E(_);switch(p.currentChar()){case"{":return Et(p,_)||E(_);case"}":return h(P.UNBALANCED_CLOSING_BRACE,s(),0),p.next(),m(_,3,"}");case"@":return Ue(p,_)||E(_);default:{if(G(p))return T=m(_,1,yt(p)),_.braceNest=0,_.inLinked=!1,T;if(ce(p))return m(_,0,pt(p));break}}return T}function $n(){const{currentType:p,offset:_,startLoc:T,endLoc:D}=c;return c.lastType=p,c.lastOffset=_,c.lastStartLoc=T,c.lastEndLoc=D,c.offset=l(),c.startLoc=s(),r.currentChar()===Le?m(c,13):bt(r,c)}return{nextToken:$n,currentOffset:l,currentPosition:s,context:d}}const Il="parser",Bl=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function xl(e,t,o){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||o,16);return r<=55295||r>=57344?String.fromCodePoint(r):"�"}}}function Rl(e={}){const t=e.location!==!1,{onError:o}=e;function r(u,g,b,C,...L){const A=u.currentPosition();if(A.offset+=C,A.column+=C,o){const S=t?Xt(b,A):null,R=ze(g,S,{domain:Il,args:L});o(R)}}function l(u,g,b){const C={type:u};return t&&(C.start=g,C.end=g,C.loc={start:b,end:b}),C}function s(u,g,b,C){t&&(u.end=g,u.loc&&(u.loc.end=b))}function a(u,g){const b=u.context(),C=l(3,b.offset,b.startLoc);return C.value=g,s(C,u.currentOffset(),u.currentPosition()),C}function i(u,g){const b=u.context(),{lastOffset:C,lastStartLoc:L}=b,A=l(5,C,L);return A.index=parseInt(g,10),u.nextToken(),s(A,u.currentOffset(),u.currentPosition()),A}function c(u,g){const b=u.context(),{lastOffset:C,lastStartLoc:L}=b,A=l(4,C,L);return A.key=g,u.nextToken(),s(A,u.currentOffset(),u.currentPosition()),A}function d(u,g){const b=u.context(),{lastOffset:C,lastStartLoc:L}=b,A=l(9,C,L);return A.value=g.replace(Bl,xl),u.nextToken(),s(A,u.currentOffset(),u.currentPosition()),A}function f(u){const g=u.nextToken(),b=u.context(),{lastOffset:C,lastStartLoc:L}=b,A=l(8,C,L);return g.type!==11?(r(u,P.UNEXPECTED_EMPTY_LINKED_MODIFIER,b.lastStartLoc,0),A.value="",s(A,C,L),{nextConsumeToken:g,node:A}):(g.value==null&&r(u,P.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,Ee(g)),A.value=g.value||"",s(A,u.currentOffset(),u.currentPosition()),{node:A})}function h(u,g){const b=u.context(),C=l(7,b.offset,b.startLoc);return C.value=g,s(C,u.currentOffset(),u.currentPosition()),C}function m(u){const g=u.context(),b=l(6,g.offset,g.startLoc);let C=u.nextToken();if(C.type===8){const L=f(u);b.modifier=L.node,C=L.nextConsumeToken||u.nextToken()}switch(C.type!==9&&r(u,P.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(C)),C=u.nextToken(),C.type===2&&(C=u.nextToken()),C.type){case 10:C.value==null&&r(u,P.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(C)),b.key=h(u,C.value||"");break;case 4:C.value==null&&r(u,P.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(C)),b.key=c(u,C.value||"");break;case 5:C.value==null&&r(u,P.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(C)),b.key=i(u,C.value||"");break;case 6:C.value==null&&r(u,P.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee(C)),b.key=d(u,C.value||"");break;default:{r(u,P.UNEXPECTED_EMPTY_LINKED_KEY,g.lastStartLoc,0);const L=u.context(),A=l(7,L.offset,L.startLoc);return A.value="",s(A,L.offset,L.startLoc),b.key=A,s(b,L.offset,L.startLoc),{nextConsumeToken:C,node:b}}}return s(b,u.currentOffset(),u.currentPosition()),{node:b}}function E(u){const g=u.context(),b=g.currentType===1?u.currentOffset():g.offset,C=g.currentType===1?g.endLoc:g.startLoc,L=l(2,b,C);L.items=[];let A=null;do{const $=A||u.nextToken();switch(A=null,$.type){case 0:$.value==null&&r(u,P.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee($)),L.items.push(a(u,$.value||""));break;case 5:$.value==null&&r(u,P.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee($)),L.items.push(i(u,$.value||""));break;case 4:$.value==null&&r(u,P.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee($)),L.items.push(c(u,$.value||""));break;case 6:$.value==null&&r(u,P.UNEXPECTED_LEXICAL_ANALYSIS,g.lastStartLoc,0,Ee($)),L.items.push(d(u,$.value||""));break;case 7:{const G=m(u);L.items.push(G.node),A=G.nextConsumeToken||null;break}}}while(g.currentType!==13&&g.currentType!==1);const S=g.currentType===1?g.lastOffset:u.currentOffset(),R=g.currentType===1?g.lastEndLoc:u.currentPosition();return s(L,S,R),L}function k(u,g,b,C){const L=u.context();let A=C.items.length===0;const S=l(1,g,b);S.cases=[],S.cases.push(C);do{const R=E(u);A||(A=R.items.length===0),S.cases.push(R)}while(L.currentType!==13);return A&&r(u,P.MUST_HAVE_MESSAGES_IN_PLURAL,b,0),s(S,u.currentOffset(),u.currentPosition()),S}function N(u){const g=u.context(),{offset:b,startLoc:C}=g,L=E(u);return g.currentType===13?L:k(u,b,C,L)}function y(u){const g=Al(u,te({},e)),b=g.context(),C=l(0,b.offset,b.startLoc);return t&&C.loc&&(C.loc.source=u),C.body=N(g),e.onCacheKey&&(C.cacheKey=e.onCacheKey(u)),b.currentType!==13&&r(g,P.UNEXPECTED_LEXICAL_ANALYSIS,b.lastStartLoc,0,u[b.offset]||""),s(C,g.currentOffset(),g.currentPosition()),C}return{parse:y}}function Ee(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Dl(e,t={}){const o={ast:e,helpers:new Set};return{context:()=>o,helper:s=>(o.helpers.add(s),s)}}function Gn(e,t){for(let o=0;o<e.length;o++)vt(e[o],t)}function vt(e,t){switch(e.type){case 1:Gn(e.cases,t),t.helper("plural");break;case 2:Gn(e.items,t);break;case 6:{vt(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Vl(e,t={}){const o=Dl(e);o.helper("normalize"),e.body&&vt(e.body,o);const r=o.context();e.helpers=Array.from(r.helpers)}function Pl(e){const t=e.body;return t.type===2?Yn(t):t.cases.forEach(o=>Yn(o)),e}function Yn(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let o=0;o<e.items.length;o++){const r=e.items[o];if(!(r.type===3||r.type===9)||r.value==null)break;t.push(r.value)}if(t.length===e.items.length){e.static=Kt(t);for(let o=0;o<e.items.length;o++){const r=e.items[o];(r.type===3||r.type===9)&&delete r.value}}}}const Fl="minifier";function We(e){switch(e.t=e.type,e.type){case 0:{const t=e;We(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,o=t.cases;for(let r=0;r<o.length;r++)We(o[r]);t.c=o,delete t.cases;break}case 2:{const t=e,o=t.items;for(let r=0;r<o.length;r++)We(o[r]);t.i=o,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;We(t.key),t.k=t.key,delete t.key,t.modifier&&(We(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:if(process.env.NODE_ENV!=="production")throw ze(P.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:Fl,args:[e.type]})}delete e.type}const Ml="parser";function $l(e,t){const{sourceMap:o,filename:r,breakLineCode:l,needIndent:s}=t,a=t.location!==!1,i={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:l,needIndent:s,indentLevel:0};a&&e.loc&&(i.source=e.loc.source);const c=()=>i;function d(y,u){i.code+=y}function f(y,u=!0){const g=u?l:"";d(s?g+" ".repeat(y):g)}function h(y=!0){const u=++i.indentLevel;y&&f(u)}function m(y=!0){const u=--i.indentLevel;y&&f(u)}function E(){f(i.indentLevel)}return{context:c,push:d,indent:h,deindent:m,newline:E,helper:y=>`_${y}`,needIndent:()=>i.needIndent}}function Ul(e,t){const{helper:o}=e;e.push(`${o("linked")}(`),Ge(e,t.key),t.modifier?(e.push(", "),Ge(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function jl(e,t){const{helper:o,needIndent:r}=e;e.push(`${o("normalize")}([`),e.indent(r());const l=t.items.length;for(let s=0;s<l&&(Ge(e,t.items[s]),s!==l-1);s++)e.push(", ");e.deindent(r()),e.push("])")}function ql(e,t){const{helper:o,needIndent:r}=e;if(t.cases.length>1){e.push(`${o("plural")}([`),e.indent(r());const l=t.cases.length;for(let s=0;s<l&&(Ge(e,t.cases[s]),s!==l-1);s++)e.push(", ");e.deindent(r()),e.push("])")}}function Hl(e,t){t.body?Ge(e,t.body):e.push("null")}function Ge(e,t){const{helper:o}=e;switch(t.type){case 0:Hl(e,t);break;case 1:ql(e,t);break;case 2:jl(e,t);break;case 6:Ul(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(`${o("interpolate")}(${o("list")}(${t.index}))`,t);break;case 4:e.push(`${o("interpolate")}(${o("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;default:if(process.env.NODE_ENV!=="production")throw ze(P.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:Ml,args:[t.type]})}}const zl=(e,t={})=>{const o=B(t.mode)?t.mode:"normal",r=B(t.filename)?t.filename:"message.intl",l=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:o==="arrow"?";":` `,a=t.needIndent?t.needIndent:o!=="arrow",i=e.helpers||[],c=$l(e,{mode:o,filename:r,sourceMap:l,breakLineCode:s,needIndent:a});c.push(o==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(a),i.length>0&&(c.push(`const { ${Kt(i.map(h=>`${h}: _${h}`),", ")} } = ctx`),c.newline()),c.push("return "),Ge(c,e),c.deindent(a),c.push("}"),delete e.helpers;const{code:d,map:f}=c.context();return{ast:e,code:d,map:f?f.toJSON():void 0}};function Wl(e,t={}){const o=te({},t),r=!!o.jit,l=!!o.minify,s=o.optimize==null?!0:o.optimize,i=Rl(o).parse(e);return r?(s&&Pl(i),l&&We(i),{ast:i,code:""}):(Vl(i,o),zl(i,o))}/*! * core-base v11.0.0-beta.2 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function Gl(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(xe().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(xe().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Jt(e){return o=>Yl(o,e)}function Yl(e,t){const o=Xl(t);if(o==null)throw Qe(0);if(Zt(o)===1){const s=Jl(o);return e.plural(s.reduce((a,i)=>[...a,Kn(e,i)],[]))}else return Kn(e,o)}const Kl=["b","body"];function Xl(e){return Ae(e,Kl)}const vl=["c","cases"];function Jl(e){return Ae(e,vl,[])}function Kn(e,t){const o=Zl(t);if(o!=null)return e.type==="text"?o:e.normalize([o]);{const r=ts(t).reduce((l,s)=>[...l,Qt(e,s)],[]);return e.normalize(r)}}const Ql=["s","static"];function Zl(e){return Ae(e,Ql)}const es=["i","items"];function ts(e){return Ae(e,es,[])}function Qt(e,t){const o=Zt(t);switch(o){case 3:return Ot(t,o);case 9:return Ot(t,o);case 4:{const r=t;if(he(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(he(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Qe(o)}case 5:{const r=t;if(he(r,"i")&&ee(r.i))return e.interpolate(e.list(r.i));if(he(r,"index")&&ee(r.index))return e.interpolate(e.list(r.index));throw Qe(o)}case 6:{const r=t,l=ls(r),s=as(r);return e.linked(Qt(e,s),l?Qt(e,l):void 0,e.type)}case 7:return Ot(t,o);case 8:return Ot(t,o);default:throw new Error(`unhandled node on format message part: ${o}`)}}const ns=["t","type"];function Zt(e){return Ae(e,ns)}const rs=["v","value"];function Ot(e,t){const o=Ae(e,rs);if(o)return o;throw Qe(t)}const os=["m","modifier"];function ls(e){return Ae(e,os)}const ss=["k","key"];function as(e){const t=Ae(e,ss);if(t)return t;throw Qe(6)}function Ae(e,t,o){for(let r=0;r<t.length;r++){const l=t[r];if(he(e,l)&&e[l]!=null)return e[l]}return o}function Qe(e){return new Error(`unhandled node type: ${e}`)}const is="Detected HTML in '{source}' message. Recommend not using HTML messages to avoid XSS.";function cs(e,t){t&&Nl(e)&&Te(kt(is,{source:e}))}const us=e=>e;let Tt=z();function Re(e){return U(e)&&Zt(e)===0&&(he(e,"b")||he(e,"body"))}function ds(e,t={}){let o=!1;const r=t.onError||bl;return t.onError=l=>{o=!0,r(l)},{...Wl(e,t),detectError:o}}function fs(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&B(e)){const o=Y(t.warnHtmlMessage)?t.warnHtmlMessage:!0;process.env.NODE_ENV!=="production"&&cs(e,o);const l=(t.onCacheKey||us)(e),s=Tt[l];if(s)return s;const{ast:a,detectError:i}=ds(e,{...t,location:process.env.NODE_ENV!=="production",jit:!0}),c=Jt(a);return i?c:Tt[l]=c}else{if(process.env.NODE_ENV!=="production"&&!Re(e))return Te(`the message that is resolve with key '${t.key}' is not supported for jit compilation`),()=>e;const o=e.cacheKey;if(o){const r=Tt[o];return r||(Tt[o]=Jt(e))}else return Jt(e)}}let Ze=null;function ms(e){Ze=e}function ps(e,t,o){Ze&&Ze.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:o})}const _s=hs("function:translate");function hs(e){return t=>Ze&&Ze.emit(e,t)}const re={INVALID_ARGUMENT:yl,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},gs=24;function Se(e){return ze(e,null,process.env.NODE_ENV!=="production"?{messages:ys}:void 0)}const ys={[re.INVALID_ARGUMENT]:"Invalid arguments",[re.INVALID_DATE_ARGUMENT]:"The date provided is an invalid Date object.Make sure your Date represents a valid date.",[re.INVALID_ISO_DATE_ARGUMENT]:"The argument provided is not a valid ISO date string",[re.NOT_SUPPORT_NON_STRING_MESSAGE]:"Not support non-string message",[re.NOT_SUPPORT_LOCALE_PROMISE_VALUE]:"cannot support promise value",[re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]:"cannot support async function",[re.NOT_SUPPORT_LOCALE_TYPE]:"cannot support locale type"};function en(e,t){return t.locale!=null?Xn(t.locale):Xn(e.locale)}let tn;function Xn(e){if(B(e))return e;if(W(e)){if(e.resolvedOnce&&tn!=null)return tn;if(e.constructor.name==="Function"){const t=e();if(fl(t))throw Se(re.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return tn=t}else throw Se(re.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Se(re.NOT_SUPPORT_LOCALE_TYPE)}function Es(e,t,o){return[...new Set([o,...Z(t)?t:U(t)?Object.keys(t):B(t)?[t]:[o]])]}function vn(e,t,o){const r=B(o)?o:At,l=e;l.__localeChainCache||(l.__localeChainCache=new Map);let s=l.__localeChainCache.get(r);if(!s){s=[];let a=[o];for(;Z(a);)a=Jn(s,a,t);const i=Z(t)||!j(t)?t:t.default?t.default:null;a=B(i)?[i]:i,Z(a)&&Jn(s,a,!1),l.__localeChainCache.set(r,s)}return s}function Jn(e,t,o){let r=!0;for(let l=0;l<t.length&&Y(r);l++){const s=t[l];B(s)&&(r=bs(e,t[l],o))}return r}function bs(e,t,o){let r;const l=t.split("-");do{const s=l.join("-");r=ks(e,s,o),l.splice(-1,1)}while(l.length&&r===!0);return r}function ks(e,t,o){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const l=t.replace(/!/g,"");e.push(l),(Z(o)||j(o))&&o[l]&&(r=o[l])}return r}const Ie=[];Ie[0]={w:[0],i:[3,0],"[":[4],o:[7]},Ie[1]={w:[1],".":[2],"[":[4],o:[7]},Ie[2]={w:[2],i:[3,0],0:[3,0]},Ie[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Ie[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Ie[5]={"'":[4,0],o:8,l:[5,0]},Ie[6]={'"':[4,0],o:8,l:[6,0]};const Ns=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ws(e){return Ns.test(e)}function Cs(e){const t=e.charCodeAt(0),o=e.charCodeAt(e.length-1);return t===o&&(t===34||t===39)?e.slice(1,-1):e}function Ss(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 Os(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:ws(t)?Cs(t):"*"+t}function Ts(e){const t=[];let o=-1,r=0,l=0,s,a,i,c,d,f,h;const m=[];m[0]=()=>{a===void 0?a=i:a+=i},m[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},m[2]=()=>{m[0](),l++},m[3]=()=>{if(l>0)l--,r=4,m[0]();else{if(l=0,a===void 0||(a=Os(a),a===!1))return!1;m[1]()}};function E(){const k=e[o+1];if(r===5&&k==="'"||r===6&&k==='"')return o++,i="\\"+k,m[0](),!0}for(;r!==null;)if(o++,s=e[o],!(s==="\\"&&E())){if(c=Ss(s),h=Ie[r],d=h[c]||h.l||8,d===8||(r=d[0],d[1]!==void 0&&(f=m[d[1]],f&&(i=s,f()===!1))))return;if(r===7)return t}}const Qn=new Map;function Ls(e,t){return U(e)?e[t]:null}function As(e,t){if(!U(e))return null;let o=Qn.get(t);if(o||(o=Ts(t),o&&Qn.set(t,o)),!o)return null;const r=o.length;let l=e,s=0;for(;s<r;){const a=l[o[s]];if(a===void 0||W(l))return null;l=a,s++}return l}const ae={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7},Is=8,Bs={[ae.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[ae.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[ae.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[ae.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[ae.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[ae.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale.",[ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER]:"This project is using Custom Message Compiler, which is an experimental feature. It may receive breaking changes or be removed in the future."};function De(e,...t){return kt(Bs[e],...t)}const xs="11.0.0-beta.2",Lt=-1,At="en-US",It="",Zn=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Rs(){return{upper:(e,t)=>t==="text"&&B(e)?e.toUpperCase():t==="vnode"&&U(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&B(e)?e.toLowerCase():t==="vnode"&&U(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&B(e)?Zn(e):t==="vnode"&&U(e)&&"__v_isVNode"in e?Zn(e.children):e}}let er;function Ds(e){er=e}let tr;function Vs(e){tr=e}let nr;function Ps(e){nr=e}let rr=null;const Fs=e=>{rr=e},Ms=()=>rr;let or=null;const lr=e=>{or=e},$s=()=>or;let sr=0;function Us(e={}){const t=W(e.onWarn)?e.onWarn:Te,o=B(e.version)?e.version:xs,r=B(e.locale)||W(e.locale)?e.locale:At,l=W(r)?At:r,s=Z(e.fallbackLocale)||j(e.fallbackLocale)||B(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l,a=j(e.messages)?e.messages:nn(l),i=j(e.datetimeFormats)?e.datetimeFormats:nn(l),c=j(e.numberFormats)?e.numberFormats:nn(l),d=te(z(),e.modifiers,Rs()),f=e.pluralRules||z(),h=W(e.missing)?e.missing:null,m=Y(e.missingWarn)||Nt(e.missingWarn)?e.missingWarn:!0,E=Y(e.fallbackWarn)||Nt(e.fallbackWarn)?e.fallbackWarn:!0,k=!!e.fallbackFormat,N=!!e.unresolving,y=W(e.postTranslation)?e.postTranslation:null,u=j(e.processor)?e.processor:null,g=Y(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,C=W(e.messageCompiler)?e.messageCompiler:er;process.env.NODE_ENV!=="production"&&W(e.messageCompiler)&&_l(De(ae.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));const L=W(e.messageResolver)?e.messageResolver:tr||Ls,A=W(e.localeFallbacker)?e.localeFallbacker:nr||Es,S=U(e.fallbackContext)?e.fallbackContext:void 0,R=e,$=U(R.__datetimeFormatters)?R.__datetimeFormatters:new Map,G=U(R.__numberFormatters)?R.__numberFormatters:new Map,ce=U(R.__meta)?R.__meta:{};sr++;const K={version:o,cid:sr,locale:r,fallbackLocale:s,messages:a,modifiers:d,pluralRules:f,missing:h,missingWarn:m,fallbackWarn:E,fallbackFormat:k,unresolving:N,postTranslation:y,processor:u,warnHtmlMessage:g,escapeParameter:b,messageCompiler:C,messageResolver:L,localeFallbacker:A,fallbackContext:S,onWarn:t,__meta:ce};return K.datetimeFormats=i,K.numberFormats=c,K.__datetimeFormatters=$,K.__numberFormatters=G,process.env.NODE_ENV!=="production"&&(K.__v_emitter=R.__v_emitter!=null?R.__v_emitter:void 0),(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__)&&ps(K,o,ce),K}const nn=e=>({[e]:z()});function Bt(e,t){return e instanceof RegExp?e.test(t):e}function ar(e,t){return e instanceof RegExp?e.test(t):e}function rn(e,t,o,r,l){const{missing:s,onWarn:a}=e;if(process.env.NODE_ENV!=="production"){const i=e.__v_emitter;i&&i.emit("missing",{locale:o,key:t,type:l,groupId:`${l}:${t}`})}if(s!==null){const i=s(e,o,t,l);return B(i)?i:t}else return process.env.NODE_ENV!=="production"&&ar(r,t)&&a(De(ae.NOT_FOUND_KEY,{key:t,locale:o})),t}function et(e,t,o){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,o,t)}function ir(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function js(e,t){const o=t.indexOf(e);if(o===-1)return!1;for(let r=o+1;r<t.length;r++)if(ir(e,t[r]))return!0;return!1}const cr=typeof Intl<"u",ur={dateTimeFormat:cr&&typeof Intl.DateTimeFormat<"u",numberFormat:cr&&typeof Intl.NumberFormat<"u"};function dr(e,...t){const{datetimeFormats:o,unresolving:r,fallbackLocale:l,onWarn:s,localeFallbacker:a}=e,{__datetimeFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!ur.dateTimeFormat)return s(De(ae.CANNOT_FORMAT_DATE)),It;const[c,d,f,h]=on(...t),m=Y(f.missingWarn)?f.missingWarn:e.missingWarn,E=Y(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,k=!!f.part,N=en(e,f),y=a(e,l,N);if(!B(c)||c==="")return new Intl.DateTimeFormat(N,h).format(d);let u={},g,b=null,C=N,L=null;const A="datetime format";for(let $=0;$<y.length;$++){if(g=L=y[$],process.env.NODE_ENV!=="production"&&N!==g&&Bt(E,c)&&s(De(ae.FALLBACK_TO_DATE_FORMAT,{key:c,target:g})),process.env.NODE_ENV!=="production"&&N!==g){const G=e.__v_emitter;G&&G.emit("fallback",{type:A,key:c,from:C,to:L,groupId:`${A}:${c}`})}if(u=o[g]||{},b=u[c],j(b))break;rn(e,c,g,m,A),C=L}if(!j(b)||!B(g))return r?Lt:c;let S=`${g}__${c}`;wt(h)||(S=`${S}__${JSON.stringify(h)}`);let R=i.get(S);return R||(R=new Intl.DateTimeFormat(g,te({},b,h)),i.set(S,R)),k?R.formatToParts(d):R.format(d)}const fr=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function on(...e){const[t,o,r,l]=e,s=z();let a=z(),i;if(B(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw Se(re.INVALID_ISO_DATE_ARGUMENT);const d=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();i=new Date(d);try{i.toISOString()}catch{throw Se(re.INVALID_ISO_DATE_ARGUMENT)}}else if(cl(t)){if(isNaN(t.getTime()))throw Se(re.INVALID_DATE_ARGUMENT);i=t}else if(ee(t))i=t;else throw Se(re.INVALID_ARGUMENT);return B(o)?s.key=o:j(o)&&Object.keys(o).forEach(c=>{fr.includes(c)?a[c]=o[c]:s[c]=o[c]}),B(r)?s.locale=r:j(r)&&(a=r),j(l)&&(a=l),[s.key||"",i,s,a]}function mr(e,t,o){const r=e;for(const l in o){const s=`${t}__${l}`;r.__datetimeFormatters.has(s)&&r.__datetimeFormatters.delete(s)}}function pr(e,...t){const{numberFormats:o,unresolving:r,fallbackLocale:l,onWarn:s,localeFallbacker:a}=e,{__numberFormatters:i}=e;if(process.env.NODE_ENV!=="production"&&!ur.numberFormat)return s(De(ae.CANNOT_FORMAT_NUMBER)),It;const[c,d,f,h]=ln(...t),m=Y(f.missingWarn)?f.missingWarn:e.missingWarn,E=Y(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,k=!!f.part,N=en(e,f),y=a(e,l,N);if(!B(c)||c==="")return new Intl.NumberFormat(N,h).format(d);let u={},g,b=null,C=N,L=null;const A="number format";for(let $=0;$<y.length;$++){if(g=L=y[$],process.env.NODE_ENV!=="production"&&N!==g&&Bt(E,c)&&s(De(ae.FALLBACK_TO_NUMBER_FORMAT,{key:c,target:g})),process.env.NODE_ENV!=="production"&&N!==g){const G=e.__v_emitter;G&&G.emit("fallback",{type:A,key:c,from:C,to:L,groupId:`${A}:${c}`})}if(u=o[g]||{},b=u[c],j(b))break;rn(e,c,g,m,A),C=L}if(!j(b)||!B(g))return r?Lt:c;let S=`${g}__${c}`;wt(h)||(S=`${S}__${JSON.stringify(h)}`);let R=i.get(S);return R||(R=new Intl.NumberFormat(g,te({},b,h)),i.set(S,R)),k?R.formatToParts(d):R.format(d)}const _r=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function ln(...e){const[t,o,r,l]=e,s=z();let a=z();if(!ee(t))throw Se(re.INVALID_ARGUMENT);const i=t;return B(o)?s.key=o:j(o)&&Object.keys(o).forEach(c=>{_r.includes(c)?a[c]=o[c]:s[c]=o[c]}),B(r)?s.locale=r:j(r)&&(a=r),j(l)&&(a=l),[s.key||"",i,s,a]}function hr(e,t,o){const r=e;for(const l in o){const s=`${t}__${l}`;r.__numberFormatters.has(s)&&r.__numberFormatters.delete(s)}}const qs=e=>e,Hs=e=>"",zs="text",Ws=e=>e.length===0?"":Kt(e),Gs=ml;function gr(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Ys(e){const t=ee(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(ee(e.named.count)||ee(e.named.n))?ee(e.named.count)?e.named.count:ee(e.named.n)?e.named.n:t:t}function Ks(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Xs(e={}){const t=e.locale,o=Ys(e),r=U(e.pluralRules)&&B(t)&&W(e.pluralRules[t])?e.pluralRules[t]:gr,l=U(e.pluralRules)&&B(t)&&W(e.pluralRules[t])?gr:void 0,s=u=>u[r(o,u.length,l)],a=e.list||[],i=u=>a[u],c=e.named||z();ee(e.pluralIndex)&&Ks(o,c);const d=u=>c[u];function f(u,g){const b=W(e.messages)?e.messages(u,!!g):U(e.messages)?e.messages[u]:!1;return b||(e.parent?e.parent.message(u):Hs)}const h=u=>e.modifiers?e.modifiers[u]:qs,m=j(e.processor)&&W(e.processor.normalize)?e.processor.normalize:Ws,E=j(e.processor)&&W(e.processor.interpolate)?e.processor.interpolate:Gs,k=j(e.processor)&&B(e.processor.type)?e.processor.type:zs,y={list:i,named:d,plural:s,linked:(u,...g)=>{const[b,C]=g;let L="text",A="";g.length===1?U(b)?(A=b.modifier||A,L=b.type||L):B(b)&&(A=b||A):g.length===2&&(B(b)&&(A=b||A),B(C)&&(L=C||L));const S=f(u,!0)(y),R=L==="vnode"&&Z(S)&&A?S[0]:S;return A?h(A)(R,L):R},message:f,type:k,interpolate:E,normalize:m,values:te(z(),a,c)};return y}const yr=()=>"",pe=e=>W(e);function Er(e,...t){const{fallbackFormat:o,postTranslation:r,unresolving:l,messageCompiler:s,fallbackLocale:a,messages:i}=e,[c,d]=sn(...t),f=Y(d.missingWarn)?d.missingWarn:e.missingWarn,h=Y(d.fallbackWarn)?d.fallbackWarn:e.fallbackWarn,m=Y(d.escapeParameter)?d.escapeParameter:e.escapeParameter,E=!!d.resolvedMessage,k=B(d.default)||Y(d.default)?Y(d.default)?s?c:()=>c:d.default:o?s?c:()=>c:null,N=o||k!=null&&(B(k)||W(k)),y=en(e,d);m&&vs(d);let[u,g,b]=E?[c,y,i[y]||z()]:br(e,c,y,a,h,f),C=u,L=c;if(!E&&!(B(C)||Re(C)||pe(C))&&N&&(C=k,L=C),!E&&(!(B(C)||Re(C)||pe(C))||!B(g)))return l?Lt:c;if(process.env.NODE_ENV!=="production"&&B(C)&&e.messageCompiler==null)return Te(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${c}'.`),c;let A=!1;const S=()=>{A=!0},R=pe(C)?C:kr(e,c,g,C,L,S);if(A)return C;const $=ea(e,g,b,d),G=Xs($),ce=Js(e,R,G),K=r?r(ce,c):ce;if(process.env.NODE_ENV!=="production"||__INTLIFY_PROD_DEVTOOLS__){const ke={timestamp:Date.now(),key:B(c)?c:pe(C)?C.key:"",locale:g||(pe(C)?C.locale:""),format:B(C)?C:pe(C)?C.source:"",message:K};ke.meta=te({},e.__meta,Ms()||{}),_s(ke)}return K}function vs(e){Z(e.list)?e.list=e.list.map(t=>B(t)?jn(t):t):U(e.named)&&Object.keys(e.named).forEach(t=>{B(e.named[t])&&(e.named[t]=jn(e.named[t]))})}function br(e,t,o,r,l,s){const{messages:a,onWarn:i,messageResolver:c,localeFallbacker:d}=e,f=d(e,r,o);let h=z(),m,E=null,k=o,N=null;const y="translate";for(let u=0;u<f.length;u++){if(m=N=f[u],process.env.NODE_ENV!=="production"&&o!==m&&!ir(o,m)&&Bt(l,t)&&i(De(ae.FALLBACK_TO_TRANSLATE,{key:t,target:m})),process.env.NODE_ENV!=="production"&&o!==m){const L=e.__v_emitter;L&&L.emit("fallback",{type:y,key:t,from:k,to:N,groupId:`${y}:${t}`})}h=a[m]||z();let g=null,b,C;if(process.env.NODE_ENV!=="production"&&Ne&&(g=window.performance.now(),b="intlify-message-resolve-start",C="intlify-message-resolve-end",de&&de(b)),(E=c(h,t))===null&&(E=h[t]),process.env.NODE_ENV!=="production"&&Ne){const L=window.performance.now(),A=e.__v_emitter;A&&g&&E&&A.emit("message-resolve",{type:"message-resolve",key:t,message:E,time:L-g,groupId:`${y}:${t}`}),b&&C&&de&&Be&&(de(C),Be("intlify message resolve",b,C))}if(B(E)||Re(E)||pe(E))break;if(!js(m,f)){const L=rn(e,t,m,s,y);L!==t&&(E=L)}k=N}return[E,m,h]}function kr(e,t,o,r,l,s){const{messageCompiler:a,warnHtmlMessage:i}=e;if(pe(r)){const m=r;return m.locale=m.locale||o,m.key=m.key||t,m}if(a==null){const m=()=>r;return m.locale=o,m.key=t,m}let c=null,d,f;process.env.NODE_ENV!=="production"&&Ne&&(c=window.performance.now(),d="intlify-message-compilation-start",f="intlify-message-compilation-end",de&&de(d));const h=a(r,Qs(e,o,l,r,i,s));if(process.env.NODE_ENV!=="production"&&Ne){const m=window.performance.now(),E=e.__v_emitter;E&&c&&E.emit("message-compilation",{type:"message-compilation",message:r,time:m-c,groupId:`translate:${t}`}),d&&f&&de&&Be&&(de(f),Be("intlify message compilation",d,f))}return h.locale=o,h.key=t,h.source=r,h}function Js(e,t,o){let r=null,l,s;process.env.NODE_ENV!=="production"&&Ne&&(r=window.performance.now(),l="intlify-message-evaluation-start",s="intlify-message-evaluation-end",de&&de(l));const a=t(o);if(process.env.NODE_ENV!=="production"&&Ne){const i=window.performance.now(),c=e.__v_emitter;c&&r&&c.emit("message-evaluation",{type:"message-evaluation",value:a,time:i-r,groupId:`translate:${t.key}`}),l&&s&&de&&Be&&(de(s),Be("intlify message evaluation",l,s))}return a}function sn(...e){const[t,o,r]=e,l=z();if(!B(t)&&!ee(t)&&!pe(t)&&!Re(t))throw Se(re.INVALID_ARGUMENT);const s=ee(t)?String(t):(pe(t),t);return ee(o)?l.plural=o:B(o)?l.default=o:j(o)&&!wt(o)?l.named=o:Z(o)&&(l.list=o),ee(r)?l.plural=r:B(r)?l.default=r:j(r)&&te(l,r),[s,l]}function Qs(e,t,o,r,l,s){return{locale:t,key:o,warnHtmlMessage:l,onError:a=>{if(s&&s(a),process.env.NODE_ENV!=="production"){const i=Zs(r),c=`Message compilation error: ${a.message}`,d=a.location&&i&&pl(i,a.location.start.offset,a.location.end.offset),f=e.__v_emitter;f&&i&&f.emit("compile-error",{message:i,error:a.message,start:a.location&&a.location.start.offset,end:a.location&&a.location.end.offset,groupId:`translate:${o}`}),console.error(d?`${c} ${d}`:c)}else throw a},onCacheKey:a=>al(t,o,a)}}function Zs(e){if(B(e))return e;if(e.loc&&e.loc.source)return e.loc.source}function ea(e,t,o,r){const{modifiers:l,pluralRules:s,messageResolver:a,fallbackLocale:i,fallbackWarn:c,missingWarn:d,fallbackContext:f}=e,m={locale:t,modifiers:l,pluralRules:s,messages:(E,k)=>{let N=a(o,E);if(N==null&&(f||k)){const[,,y]=br(f||e,E,t,i,c,d);N=a(y,E)}if(B(N)||Re(N)){let y=!1;const g=kr(e,E,t,N,E,()=>{y=!0});return y?yr:g}else return pe(N)?N:yr}};return e.processor&&(m.processor=e.processor),r.list&&(m.list=r.list),r.named&&(m.named=r.named),ee(r.plural)&&(m.pluralIndex=r.plural),m}Gl();/*! * vue-i18n v11.0.0-beta.2 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const ta="11.0.0-beta.2";function na(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(xe().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(xe().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(xe().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(xe().__INTLIFY_PROD_DEVTOOLS__=!1)}const ne={UNEXPECTED_RETURN_TYPE:gs,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_COMPATIBLE_LEGACY_VUE_I18N:33,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function tt(e,...t){return ze(e,null,process.env.NODE_ENV!=="production"?{messages:ra,args:t}:void 0)}const ra={[ne.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[ne.INVALID_ARGUMENT]:"Invalid argument",[ne.MUST_BE_CALL_